Opened 7 years ago

Closed 2 years ago

#2482 closed enhancement (fixed)

Debug simulation

Reported by: Christian Andersson Owned by: Christian Andersson
Priority: major Milestone: Pending
Component: PyFMI Version: trunk
Keywords: Cc:


In order to debug a simulation we need to provide more debug information. It would be convenient for instance to provide the estimated local error for all to states so that one can determine the state that dominates the error.

I propose that as a first step we should provide the information (some specific to CVode)::

  • Estimated local error
  • Order used
  • Elapsed real time
  • Events

I also propose that the debugging information is to be activated using a flag in simulation options and if set should write a file named model_name_debug.txt containing the information in the current directory.

For convenience there should also be a class that are able to load a debug file.

Change History (6)

comment:1 Changed 7 years ago by Christian Andersson


Added writing debug information from a simulation. Added so that the estimated local error is logged and also the order, events and elapsed real time. Additionally I added a convenience class for loading a debug file. Related to ticket:2482

comment:2 Changed 7 years ago by Christian Andersson


Updated timings. Related to ticket:2482

comment:3 Changed 7 years ago by Christian Andersson


Added some more information to the simulation log. Related to ticket:2482

comment:4 Changed 7 years ago by Christian Andersson

Milestone: PyFMI-1.3.xFuture

comment:5 Changed 6 years ago by Tove Bergdahl

Milestone: FuturePending

comment:6 Changed 2 years ago by Jesper Mattsson

Resolution: fixed
Status: newclosed

Seems to be done.

Note: See TracTickets for help on using tickets.