Opened 14 years ago

Last modified 14 years ago

#1377 closed defect (fixed)

Display the messages from the SimulationResults in the Messages window

Reported by: Adrian Pop Owned by: Adrian Pop
Priority: critical Milestone:
Component: Interactive Model Editor Interface Version:
Keywords: Cc: Adrian Pop, Adeel Asghar

Description

When you simulate a model display the messages that you get in the SimulationResult in the messages window. This way if there is a problem with the simulation at least the user sees it.
Have a look at the attachment, the selected part should be displayed in the messages window, like this:

Simulation of 'Modelica.Blocks.Examples.PID_Controller' completed successfully with message:
"Simulation call assert() at time 0
Level : error
Message : LimPID: During initialization the limits have been switched off.
After initialization, the output y (=12.0514) is outside of the limits of yMin (=-12) and yMax (=12)"

or if there is no message, i.e. messages = "" you should display:

Simulation of 'Modelica.Blocks.Examples.PID_Controller' completed successfully.

Attachments (1)

OMEdit-simulation-messages.png (123.4 KB ) - added by Adrian Pop 14 years ago.

Download all attachments as: .zip

Change History (3)

by Adrian Pop, 14 years ago

comment:1 by Adrian Pop, 14 years ago

Maybe would be a good idea to also display the messages in RED if there is a message string that is not empty.

comment:2 by Adeel Asghar, 14 years ago

Now the message is always printed whether simulation is successful or there is some error. If messages = "" then no message is printed.

Note: See TracTickets for help on using tickets.