Opened 6 years ago
Closed 6 years ago
#5219 closed defect (fixed)
Wrong outputs in modelDescription.xml
Reported by: | lochel | Owned by: | lochel |
---|---|---|---|
Priority: | blocker | Milestone: | 1.13.0 |
Component: | FMI | Version: | v1.13.0-dev-nightly |
Keywords: | Cc: | adrpo |
Description (last modified by lochel)
FMUs generated from the attached Modelica model (which is using the PlanarMechanics library) contain 3 variables that are marked as output:
<!-- Index of variable = "14" --> <ScalarVariable name="der(speed)" valueReference="13" variability="continuous" causality="output" initial="exact"> <Real start="0.0"/> </ScalarVariable> <!-- Index of variable = "401" --> <ScalarVariable name="position" valueReference="400" variability="continuous" causality="output" initial="exact"> <Real start="0.0"/> </ScalarVariable> <!-- Index of variable = "420" --> <ScalarVariable name="speed" valueReference="419" variability="continuous" causality="output" initial="exact"> <Real start="0.0"/> </ScalarVariable>
The Outputs section of the ModelStructure definition list only two of them:
<Unknown index="401" dependencies="1" dependenciesKind="dependent" /> <Unknown index="420" dependencies="2" dependenciesKind="dependent" />
The ModelStructure seem to be correct, but the entiremodelDescription.xml becomes invalid due to the previously defined third output.
Attachments (1)
Change History (6)
Changed 6 years ago by lochel
comment:1 Changed 6 years ago by lochel
- Description modified (diff)
comment:2 Changed 6 years ago by lochel
- Owner set to lochel
- Status changed from new to accepted
comment:3 Changed 6 years ago by lochel
comment:4 Changed 6 years ago by lochel
The issue is addressed in OpenModelica/OMCompiler#2788.
comment:5 Changed 6 years ago by lochel
- Resolution set to fixed
- Status changed from accepted to closed
The problem comes from the index reduction, which introduces dummy states derivatives and assigns the causality of the correspondent dummy state to it.