Opened 4 years ago

Closed 3 years ago

#5752 closed defect (fixed)

Chemical library broken because of issue with String array package constant

Reported by: casella Owned by: perost
Priority: high Milestone: 1.17.0
Component: New Instantiation Version:
Keywords: Cc: marek@…

Description

Please check Chemical.Examples.WaterVaporization. The NF fails with

[/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/Chemical 1.2.0-beta/package.mo:2818:8-2819:54:writable]
Error: Failed to deduce dimension 1 of References due to missing binding equation.

Apparently, OpenModelica can not deduce the dimension of array defined as parameter String[:] References={""}; in replaced record redeclare record extends SubstanceData of re-declared package of replaceable package stateOfMatter = Incompressible constrainedby StateOfMatter

This issue affects most Chemical models since the last update of the library.

@marek tried to fix this by replacing the declaration with parameter String[1] References={""};, but I guess this shouldn't be necessary.

@perost, can you give a look?

Change History (2)

comment:1 Changed 3 years ago by casella

  • Milestone changed from 1.16.0 to 1.17.0

Retargeted to 1.17.0 after 1.16.0 release

comment:2 Changed 3 years ago by casella

  • Resolution set to fixed
  • Status changed from new to closed

This issue seems to have been fixed in the meantime, the models simulates successfully.

Note: See TracTickets for help on using tickets.