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

cc1.exe: out of memory allocating 16008 bytes

cc1.exe: out of memory allocating 16008 bytes

Hello,

I'm trying to run a rather large model (with aproximately 11000 equations.), after a while the compiler runs out of the 4GB of memory and quits, in the log file the following message is shown.

cc1.exe: out of memory allocating 16008 bytes
mingw32-make: *** [MyModels.someModel.o] Error 1

Is there a way to get the model running other than installing more memory?

Regards,

Arne Sinnema

Edited by: Arne - Oct-14-13 15:24:08

Re: cc1.exe: out of memory allocating 16008 bytes

Yes, you need to run Linux in order to handle large models. GCC on Windows cannot allocate more than 4GB of memory even if you have more memory installed.
You could also try to set the CFLAGS to -O0 or possibly, if you are not already using the latest nightly build try it (https://trac.openmodelica.org/OpenModel … eset/17653 has some changes that reduce memory consumption).

Re: cc1.exe: out of memory allocating 16008 bytes

Hi,

We are looking into using mingw64 on Windows to compile OpenModelica
and that would make it able to use more memory (than 4G) for compiling
models. It will take a while thou. You could try the latest nightly build:
https://build.openmodelica.org/omc/buil … ly-builds/
as this one splits the generated C code into several files so it should
get the memory consumption for gcc down.

Cheers,
Adrian Pop/

Re: cc1.exe: out of memory allocating 16008 bytes

Thanks, indeed the latest version of OpenModelica compiles the model.

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