Opened 10 years ago

Closed 10 years ago

#3043 closed defect (fixed)

OMEdit re-simulation issues: Step size is not correctly updated

Reported by: Jan Kokert Owned by: Adeel Asghar
Priority: high Milestone: 1.9.2
Component: Run-time Version: trunk
Keywords: update step size Cc: Willi Braun, massimo ceraolo

Description

Open a very simple model and simulate it for "1 s".
Now re-simulate the model and change the stop time to "1000 s" e.g. (by "Re-simulate Setup").

Observation: The simulation will take tremendously longer. Obviously the step size is not correctly updated, given by the number of intervals and the simulation time.

BTW: By clicking [cancel simulation] you will experience #3042

Change History (5)

comment:1 by Adeel Asghar, 10 years ago

Cc: Willi Braun added
Component: OMEditRun-time
Owner: changed from Adeel Asghar to somebody

OMEdit doesn't set the step size. It is automatically calculated by the solver using,

(StopTime - StartTime) / NumberOfIntervals

So for 1s step size is 0.002. I can see this in the model_init.xml file but when we re-simulate for 1000s then the step size should be 2 but this is not the case. Jan's observation is correct.

comment:2 by Jan Kokert, 10 years ago

Good to know, that this issue is reproducible :)

comment:3 by Adeel Asghar, 10 years ago

Cc: massimo ceraolo added
Owner: changed from somebody to Adeel Asghar
Status: newaccepted

I looked into it again and I think it is OMEdit issue. OMEdit should send the step size to simulation executable based on the above formula. I will fix it soon.

comment:4 by Adeel Asghar, 10 years ago

Also I think Number of intervals should be changeable.

comment:5 by Adeel Asghar, 10 years ago

Resolution: fixed
Status: acceptedclosed

Fixed in r23887.

Note: See TracTickets for help on using tickets.