Opened 6 years ago

Last modified 6 years ago

#5219 closed defect

Wrong outputs in modelDescription.xml — at Initial Version

Reported by: Lennart Ochel Owned by:
Priority: blocker Milestone: 1.13.0
Component: FMI Version: v1.13.0-dev-nightly
Keywords: Cc: Adrian Pop

Description

FMUs generated from the attached Modelica model 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.

Change History (1)

by Lennart Ochel, 6 years ago

Attachment: issue_B.mo added
Note: See TracTickets for help on using tickets.