Archived OpenModelica forums. Posting is disabled.

Alternative forums include GitHub discussions or StackOverflow (make sure to read the Stack Overflow rules; you need to have well-formed questions)


Forgot password? | Forgot username? | Register

Simulation with many variables (Heap error)

Simulation with many variables (Heap error)

Hi,
I have troubles compiling models with large numbers of variables. If the number of variables exceeds 1000 variables, I receive a heap error on gcc or gdb. It is reproducable, i.e. it seems to be the number of variables. I have increased the heapsize to (1GB) buy adding some compiler options. This helps to make a step from ~500 up to 1000, but this seems to be the "sound wall".
Are there any additional measures to handle this topic or do I realy standing in front of the "sound wall".
Thanks.

Re: Simulation with many variables (Heap error)

What output format and OMC version are you using? (Older versions or .plt output put the result-file in memory; use .mat format to save a lot of heap)

Re: Simulation with many variables (Heap error)

I'm using version 1.9.6.
Mat-File is used as an output file.

Re: Simulation with many variables (Heap error)

Try the 64bit nightly-build as it can access far more memory current/smile
https://build.openmodelica.org/omc/buil … lds/64bit/

There are 0 guests and 0 other users also viewing this topic
You are here: