Skip to content

Issues with library loading for fmi-fmpy ClaRa testing #219

@casella

Description

@casella

Please check this regression report. Basically, all the ClaRa and ClaRa_dev got broken.

As I understand, the test was run in the brief interval between the release of TILMedia 1.9.0 and the release of ClaRa 1.9.0. This is the error message in the failing models

Notification: SMArtInt requested package Modelica of version 4.0.0. Modelica 4.1.0 is used instead which states that it is fully compatible without conversion script needed.
Notification: ClaRa requested package Modelica of version 4.0.0. Modelica 4.1.0 is used instead which states that it is fully compatible without conversion script needed.
Notification: Skipped loading package TILMedia (1.8.2 ClaRa) using MODELICAPATH /home/hudson/saved_omc/libraries/.openmodelica/libraries (uses-annotation may be wrong).
Warning: Requested package SMArtInt of version 0.5.1, but this package was already loaded with version %version%. OpenModelica cannot reason about compatibility between the two packages since they are not semantic versions.
Notification: Performance of FrontEnd - loaded program: time 0.03667/0.03667, allocations: 21.62 MB / 0.6344 GB, free: 6.148 MB / 462.1 MB
Notification: Performance of FrontEnd - Absyn->SCode: time 0.2068/0.2434, allocations: 81.68 MB / 0.7141 GB, free: 4.312 MB / 0.5294 GB
Notification: TILMedia requested package Modelica of version 4.0.0. Modelica 4.1.0 is used instead which states that it is fully compatible without conversion script needed.
Notification: Automatically loaded package TILMedia 1.9.0 ClaRa due to usage.
[/home/hudson/saved_omc/libraries/.openmodelica/libraries/ClaRa 1.8.2-main/SimCenter.mo:20:3-22:173:writable] Error: Class TILMedia.VLEFluidTypes.TILMedia_SplineWater not found in scope SimCenter.

Apparently, TILMedia 1.9.0 contains TILMedia.VLEFluid.Types.TILMedia_SplineWater instead of TILMedia.VLEFluidTypes.TILMedia_SplineWater.
There are two problems here:

  1. The CI should use the exact version of the dependencies. We already agree on that, see When running the library testing, stick to the exact versions required of dependencies #214. I thought this was done already, maybe I misunderstood
  2. I don't understand "Automatically loaded package TILMedia 1.9.0 ClaRa due to usage." TilMedia 1.9.0 ClaRa
    has no conversion script and no noneFromVersion annotation, so if ClaRa 1.8.2 uses TILMedia 1.8.2, why is 1.9.0 loaded instead?

Metadata

Metadata

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions