Opened 5 years ago

Closed 5 years ago

#5681 closed enhancement (duplicate)

huge amounts of logging data

Reported by: john.pye@… Owned by: somebody
Priority: high Milestone: 1.14.0
Component: OMEdit Version:
Keywords: Cc:

Description

Hi there

Simon was working on a big model at CEA-LITEN and found that he was getting crashes (out of memory) from OMEdit. It turned out that he was logging a huge amount of data into the log window, and that was filling up the memory.

I would suggest that this issue could be resolved by using a buffer in this window, instead of an endless string. The buffer could just store the last N lines. This would avoid out of memory errors, and could be user-configurable to allow more or less lines of buffer as desired.

One must ask the question why people leave logging turned on for long-running simulations. It is so that they have some information visible if (when) the simulation finally fails. The leads to another possible solution for this issue, which would be to find ways to provide the logging/reporting/inspection of the model and/or solver state after the solver fails. Currently there doesn't seem to be any way to do that, hence users just output lots and lots of data and comb through it only for the tiny last bit of the output which actually matters to them. It's all a little bit inefficient as an approach, and could perhaps be tackled in some future work, in some way.

I wasn't sure which component to report this to, so left it *unknown*.

Cheers
JP

Change History (1)

comment:1 by Francesco Casella, 5 years ago

Component: *unknown*OMEdit
Milestone: Future1.14.0
Resolution: duplicate
Status: newclosed

John, this is a well-know issue (at least for the die-hards like us doing thermo-hydraulic modelling in Modelica). It should have been fixed already, see #4475. You can get this behaviour in the recently released 1.14.0-dev.beta1 release, or in the latest nightly build.

If something is still wrong or unclear, please reopen this ticket and provide more input.

Note: See TracTickets for help on using tickets.