Closed AnHeuermann closed 9 months ago
The last time Modelica/Resources/C-Sources/ModelicaTables.h
contained ModelicaTables_*
functions was for MSL 3.2.1.
I have substituted ClaRa.Components.Utilities.Blocks.ParameterizableTable1D by Modelica.Blocks.Tables.CombiTable1Dv. That should solve the issue.
ClaRa.Components.Utilities.Blocks.ParameterizableTable1D used to be necessary because, for example, if the value of the "table" parameter depends on values calculated initially equation, OpenModelica and SimulationX (MSL3.2.1) did not support its use. It was however already solved.
Description
Some ClaRa components define impure functions that use external C functions from
ModelicaTables
.In
ClaRa.Components.Utilities.Blocks.ParameterizableTable1D
I'm not sure what functions ModelicaExternalC should provide and where to look this up.
For MSL 4.0.0
Modelica.Blocks.Types.ExternalCombiTimeTable.constructor
hasExpected Behavior
I guess the correct C library would be
ModelicaStandardTables
. But I'm not sure if it is good to depend on C functions from other libraries. Maybe use the Modelica blocks from the MSL instead which know what C functions they depend on (and ship).If using
Modelica.Blocks.Tables.CombiTable1Ds
isn't an option ship all external C functions needed by ClaRa inClaRa/Resources/Library
andClaRa/Resources/C-Sources
.Related Issues
This breaks FMU export in OpenModelica, see https://github.com/OpenModelica/OpenModelica/issues/11996.