0

I have a problem compiling FMU's in Jmodelica. for a medium size model I get the following error.

enter image description here

I already chanded the runtime parameter of JAVA in control panel and also tired setting the JVM allocated memory as high as possible using Xmx command. I'm running it on a pc with 128GB RAM. Does anyone know how can I solve this issue in Jmodelica?

Wyck
  • 10,311
  • 6
  • 39
  • 60
  • 1
    It's better quote the error than post a picture of it. That way it's searchable for others. – Wyck Dec 10 '19 at 14:41

1 Answers1

0

The JVM that is being used from JModelica does not take into account the system settings for the JAVA runtime parameter. You'll need to set it in the compile_fmu command. I.e.

compile_fmu(...., jvm_args="-Xmx10g")
Christian Winther
  • 1,113
  • 1
  • 9
  • 17