Opened 18 years ago
Last modified 18 years ago
#109 closed defect (fixed)
Sorting not done in When Equations
Reported by: | Peter Fritzson | Owned by: | Peter Fritzson |
---|---|---|---|
Priority: | critical | Milestone: | |
Component: | Version: | ||
Keywords: | Cc: | Peter Fritzson, haklu |
Description
Note:
See TracTickets
for help on using tickets.
Dear Peter:
From Francois Cellier:
I wish to bring the following OpenModelica error to your attention. Ernesto
Kofman simulated the following trivial model in Dymola and OpenModelica:
name: WhenSemantics1
keywords: when semantics
status: correct
Simple when
model timeev
equation
end timeev;
Dymola simulates the model correctly. The variable z always assumes a value of
a value of -1. The reason is that the equations inside the WHEN loop ought to
be sorted. Variable y needs to be computed before z. Dymola sorts these
equations, whereas OpenModelica keeps the equations in their original sequence.