Opened 6 years ago

Last modified 6 years ago

#5000 new defect

Use Model_init.xml in the resources folder of FMU instead of compiling Model_init_fmu.c

Reported by: Adrian Pop Owned by: Lennart Ochel
Priority: high Milestone: Future
Component: FMI Version:
Keywords: Cc:

Description

Compiling the huge function inside Model_init_fmu.c takes forever, we should try to load the data from the resources folder of FMU.

Change History (2)

comment:1 by Francesco Casella, 6 years ago

We have ticket number 5000 :)

Champagne for all?

comment:2 by Martin Sjölund, 6 years ago

Model_init_fmu.c for the model give by Adrian only takes 2.0s on my machine and the entire FMU around 9s on ripper.openmodelica.org (as reported by the Python script).

https://github.com/OpenModelica/OMCompiler/pull/2525 won't fix this problem, but another one. We don't have an XML parser inside the FMU so we couldn't easily make the init.c file into an init.xml.

Note: See TracTickets for help on using tickets.