Archived OpenModelica forums. Posting is disabled.

Alternative forums include GitHub discussions or StackOverflow (make sure to read the Stack Overflow rules; you need to have well-formed questions)


Forgot password? | Forgot username? | Register

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 current/wink
http://openmodelica.org:8080/cb/issue/1515

Re: Simple simulation fails to terminate

Sorry. I should have checked the bug reports first. I get results from the simulation so this is not a critical "bug" anyway.

Runar

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

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.

There are 0 guests and 0 other users also viewing this topic
You are here: