Opened 9 years ago
Closed 9 years ago
#3651 closed defect (fixed)
Wrong SimCode.SimVar information for statemachine models
Reported by: | Niklas Worschech | Owned by: | Bernhard Thiele |
---|---|---|---|
Priority: | critical | Milestone: | Future |
Component: | Backend | Version: | |
Keywords: | statemachine, cpp code generation | Cc: | Adrian Pop, Niklas Worschech |
Description
For statemachine models the SimVar.numArrayElement variable is not correctly generatet. The cpp code generation uses the numArrayElement information to generate code for array variables. e.g for the test model: testsuite\simulation\modelica\statemachines\TicksInState.mo for the model variable smOf.state1.tFrom the corresponding simvar numArrayElement is not set. This leads to an error message in the cpp code generation: Template error: A template call failed (a call with 1 parameter)...
The error message comes from the cpp template function arrayextentDims
where numArrayElement is used.
Change History (2)
comment:1 by , 9 years ago
Owner: | changed from | to
---|---|
Status: | new → assigned |
comment:2 by , 9 years ago
Resolution: | → fixed |
---|---|
Status: | assigned → closed |
Should be fixed by https://github.com/OpenModelica/OMCompiler/commit/0e016dc235f2d72d19081e52ac2a3db276b5c6c0