Opened 7 years ago

Closed 7 years ago

#4486 closed defect (fixed)

Report end of initialization and start of simulation in the log

Reported by: casella Owned by: adeas31
Priority: critical Milestone: 1.12.0
Component: OMEdit Version:
Keywords: Cc:

Description

When running a Modelica model simulation there are two major milestones: the first is the success of the intialization, the second is the success of the simulation. The information regarding the achievement of these milestones should be clear and always provided to the end user.

The second milestone is already reported with the message

stdout | OMEditInfo | <p>Simulation process finished successfully.</p>

However, the first one is not reported explicitly, so if there are errors it is not immediately apparent whether the problem is during the initialization or during the simulation phase. This is particularly annoying since sometimes some recoverable errors are reported anyway in the log window, which makes the whole thing even more confusing.

Please add a corresponding message

stdout | OMEditInfo | <p>Initialization process finished successfully.</p>

when the initialization process is successfully concluded.

Change History (9)

comment:1 Changed 7 years ago by lochel

This is reported if the flag -lv=LOG_INIT is used. This message can be changed to use the default output stream to make it always available. Would that solve the issue?

comment:2 Changed 7 years ago by casella

This message should always be reported, without the need of setting any special log flag. If what you propose achieves this, it's fine :)

comment:3 Changed 7 years ago by ptaeuber

@casella Do you want this for OMEdit (OMEditInfo) or for the OMC in general?

comment:4 Changed 7 years ago by casella

I guess both would be ideal, though what is really essential is the information provided to the OMEdit user, which is usually not an advanced one.

comment:5 Changed 7 years ago by ptaeuber

I moved the success information to the omc standard output:
https://github.com/OpenModelica/OMCompiler/commit/dc49b6e2487ff342f938e51c34adac2f75ebd6a2

Please check if this is what you need.

comment:6 Changed 7 years ago by casella

The current omc output is fine, however at the end of the simulation OMEdit reports

stdout | info | <p>The simulation finished successfully.</p>
stdout | OMEditInfo | <p>Simulation process finished successfully.</p>

I would now remove the OMEditInfo output which is redundant.

comment:7 Changed 7 years ago by casella

Also, if -lv=LOG_INIT is activated, the message

stdout | info | <p>The initialization finished successfully with homotopy method.</p>

is folded below the homotopy process line and only shows up if this part of the OMEdit log window is unfolded, which is a bit inconvenient. @adeas31, can you make sure that this message always shows up without the need of unfolding anything?

Thanks!

comment:8 Changed 7 years ago by adeas31

I have removed the redundant OMEditInfo output in 116a854/OMEdit.

For me the message,

stdout | info | <p>The initialization finished successfully with homotopy method.</p>

is always appearing unfolded.

comment:9 Changed 7 years ago by casella

  • Resolution set to fixed
  • Status changed from new to closed
Note: See TracTickets for help on using tickets.