Opened 9 years ago

Closed 9 years ago

#3043 closed defect (fixed)

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

Reported by: janK Owned by: adeas31
Priority: high Milestone: 1.9.2
Component: Run-time Version: trunk
Keywords: update step size Cc: wbraun, 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 Changed 9 years ago by adeas31

  • Cc wbraun added
  • Component changed from OMEdit to Run-time
  • Owner changed from adeas31 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 Changed 9 years ago by janK

Good to know, that this issue is reproducible :)

comment:3 Changed 9 years ago by adeas31

  • Cc ceraolo added
  • Owner changed from somebody to adeas31
  • Status changed from new to accepted

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 Changed 9 years ago by adeas31

Also I think Number of intervals should be changeable.

comment:5 Changed 9 years ago by adeas31

  • Resolution set to fixed
  • Status changed from accepted to closed

Fixed in r23887.

Note: See TracTickets for help on using tickets.