Opened 6 years ago
Closed 6 years ago
#5359 closed defect (fixed)
Some simulation setting annotations used only once per session
Reported by: | anonymous | Owned by: | Adeel Asghar |
---|---|---|---|
Priority: | high | Milestone: | 1.14.0 |
Component: | OMEdit | Version: | v1.13.0 |
Keywords: | Cc: |
Description
When I inlcude annotations for setting the output interval into a model, these settings seem to be assumed only for the first time the model is simulated in an OpenModelica session. For example if I create this model
model IntervalTest
Real y(start = 1, fixed = true);
Real v(start = 1, fixed = true);
equation
der(y) = v;
der(v) = -100 * y;
annotation(
experiment(StartTime = 0, StopTime = 67, Tolerance = 1e-06, Interval = 0.01),
OpenModelica_simulationFlags(lv = "LOG_STATS", outputFormat = "mat", s = "dassl"));
end IntervalTest;
and simulate it for the first time, the output interval is correctly set to 10 milliseconds. But when I change Interval
to 0.001, save the model and simulate, the output interval stays at 10ms. Neither closing all results and plot windows, nor closing the model window, nor even unloading the whole project file from OpenModelica and subsequently reloading it does change the output interval to the value I have set in the model.
Only after closing OpenModelica and reopening it, will the new output interval be respected. If I change in the model text the stiffness value of the above oscillator model from 100 to 25 (der(v)=...
), the simulation results will change accordingly (i.e. to half the oscillator frequency), but if I do the same with Interval
, it will not. This is an inconsistent user experience.
Change History (2)
comment:1 by , 6 years ago
Component: | *unknown* → OMEdit |
---|---|
Milestone: | Future → 1.14.0 |
Owner: | changed from | to
comment:2 by , 6 years ago
Resolution: | → fixed |
---|---|
Status: | new → closed |
Fixed in 8fc9c91/OpenModelica.