Opened 14 years ago
Last modified 14 years ago
#1263 closed defect (fixed)
Problem with Pre() with fixed variables
Reported by: | Hassen | Owned by: | Hassen |
---|---|---|---|
Priority: | critical | Milestone: | |
Component: | Version: | ||
Keywords: | Cc: | Hassen, |
Description
This model turns correctly under Dymola and not under OpenModelica
model PreBug
Integer x(start=4,fixed=true);
equation
if time >0.1 and pre(x)== 10 then
x=pre(x)-1;
else
x=4;
end if;
end PreBug;
Note that if we change the if condition by (if time >0.1 and pre(x)== 4) the simulation will stop at time =0.1 under Dymola. This is du to the restart condition.
Note:
See TracTickets
for help on using tickets.
Fixed with revision 6060!
The solvers euler, rungekutta and dassl2 stops also at time point 0.1.
But dassl remains in an infinite loop.