- Index
- » Usage and Applications
- » OpenModelica Usage and Applications
- » Simple simulation fails to terminate
Simple simulation fails to terminate
Simple simulation fails to terminate
Running a simple simulation:
"""
model VesselSim
import SI = Modelica.SIunits;
constant SI.Position Smax = 3125. "Travel distance";
constant SI.Mass mass = 1939 * 1024 "Vessel mass";
SI.Velocity speed(start=0.0) "Vessel speed";
SI.Position position(start=0.0) "Vessel position";
equation
mass*der(speed) = 70000. - 65000.;
der(position) = speed;
when position >= Smax then
terminate("Simulation reached end of travel");
end when;
annotation(experiment(StartTime = 0.0, StopTime = 3600.0, Tolerance = 1e-06));
end VesselSim;
"""
The simulation runs OK exept it fails to terminate in the when condition. This simulation was
also run on Dymola 7.4 and behaved as expected.
Runar
Re: Simple simulation fails to terminate
Go vote for bug #1515 if you want this fixed. Maybe Willi forgot about it
http://openmodelica.org:8080/cb/issue/1515
- sjoelund.se
- 1700 Posts
Re: Simple simulation fails to terminate
I see that in the bug tracker reports bugs date back up to 2006.
Are those old bugs still active?
In case they are not, what is the reason for not deleting them?
Thanks
Massimo
- ceraolo
- 147 Posts
Re: Simple simulation fails to terminate
A few of them are still valid. Some have known problems that are still being worked on. Many of them are now invalid but noone has had time to check them all.
- sjoelund.se
- 1700 Posts
- Index
- » Usage and Applications
- » OpenModelica Usage and Applications
- » Simple simulation fails to terminate