Opened 11 years ago

Closed 10 years ago

#2540 closed enhancement (fixed)

OMEdit: simulation output window

Reported by: Lennart Ochel Owned by: Adeel Asghar
Priority: high Milestone: 1.9.2
Component: OMEdit Version: trunk
Keywords: Cc:

Description

It would be good to change the simulation output in a way that it becomes possible to collapse/expand messages. That should be quite easy, because the xml-format already provides some kind of tree-structure for these messages.

Current output:

C:/Users/lochel/AppData/Local/Temp/OpenModelica/OMEdit/ttt.exe -port=11794 -logFormat=xml -w -lv=LOG_STATS
LOG_STATS	| info	 | ### STATISTICS ###
LOG_STATS	| info	 | timer
|		| |	 | |   0.00151945s [  6.1%] pre-initialization
|		| |	 | |  0.000154589s [  0.6%] initialization
|		| |	 | | 9.95344e-006s [  0.0%] steps
|		| |	 | |   0.00196829s [  8.0%] creating output-file
|		| |	 | |  0.000149924s [  0.6%] event-handling
|		| |	 | |   0.00055677s [  2.2%] overhead
|		| |	 | |     0.020393s [ 82.4%] simulation
|		| |	 | |     0.024752s [100.0%] total
LOG_STATS	| info	 | events
|		| |	 | |     0 state events
|		| |	 | |     0 time events
LOG_STATS	| info	 | solver
|		| |	 | |    19 steps taken
|		| |	 | |    19 calls of functionODE
|		| |	 | |    18 evaluations of jacobian
|		| |	 | |     0 error test failures
|		| |	 | |     0 convergence test failures
LOG_STATS	| info	 | ### END STATISTICS ###

That could be the new output:

  C:/Users/lochel/AppData/Local/Temp/OpenModelica/OMEdit/ttt.exe -port=11794 -logFormat=xml -w -lv=LOG_STATS
  LOG_STATS	| info	 | ### STATISTICS ###
+ LOG_STATS	| info	 | timer […]
+ LOG_STATS	| info	 | events […]
+ LOG_STATS	| info	 | solver […]
  LOG_STATS	| info	 | ### END STATISTICS ###

Change History (3)

comment:1 by Martin Sjölund, 11 years ago

Good ticket. I had something like this in mind (for OMEdit to read simulation output better, not only for the debugger).

comment:2 by Martin Sjölund, 10 years ago

Milestone: 1.9.11.9.2

This ticket was not closed for 1.9.1, which has now been released. It was batch modified for milestone 1.9.2 (but maybe an empty milestone was more appropriate; feel free to change it).

comment:3 by Adeel Asghar, 10 years ago

Resolution: fixed
Status: newclosed

Done in r23595. However, the old text output still exists. You can switch between them via options.
I removed the stream and type from the text when displaying in the tree. I think it doesn't make sense to show LOG_STATS and info/warning/error to user. The tree only shows the message but the the tooltip shows everything and even when you copy the text everything is copied i.e stream, type and message.

We need better message now. For example check Dymola messages. More user friendly not 0.00151945s [ 6.1%] pre-initialization.......

I am closing this ticket. But if you want me to update the text display of the tree you can reopen it or create a new one.

Note: See TracTickets for help on using tickets.