OpenModelica / OMSimulator

The OpenModelica FMI & SSP-based co-simulation environment.
Other
70 stars 50 forks source link

Simulation of FMUs requiring licenses #1161

Open robha67 opened 2 years ago

robha67 commented 2 years ago

1) Export FMU that requires license to execute, from for example dymola without source code generation licence or with altair romAI block. The latter is what we have tried that does not work 2) Set environment variable pointing to local license file 3) Simulate FMU in OMSimulator

This seems not to work, I don't know if it is related to the unpacking of FMUs in omsimulator. The FMU:s are re-named if I am not misstaken. Could this result in the license file not being found?

@lochel @arun3688

arun3688 commented 2 years ago

@robha67 could you provide an example fmu for such cases so we can reproduce the issue

robha67 commented 2 years ago

I could update the EMBrACE SSP that is in the testsuite but it will only be possible to re-produce the issue if you have a local license file available on your computer. The error stems from an FMU export of the Altair tool Activate but I suspect that a Dymola FMU would produce the same problem if exported without the code generation licence. Do you have a Dymola licence available?

@arun3688