- Index
- » Users
- » DeGlenn
- » Profile
Posts
Posts
Hi Adeel,
Is there also a way of calling `setCommandLineOptions("-d=newInst")` before creating a ModelicaSystem object?
Code:
mod = ModelicaSystem()
mod.sendExpression('setCommandLineOptions("-d=newInst")')
mod.sendExpression("loadFile(cd() + \"/mymodel.mo\")")
mod.buildModel()
Because when calling ModelicaSystem('mymodel.mo', 'mymodel') it automatically creates a new OMCSession.
Kind regards,
/Glenn
Dear all,
When trying to run a modelica model with OMPython, I get the same error messages as I would in OpenModelica with "old frontend for code generation" enabled. Unfortunately I only got this model to work in OpenModelica with this option disables, i.e. in the new frontend.
Is there a workaround to this in OMPython? Or should I debug the model in OpenModelica using the old frontend code generation?
i'm using the latest stable dev (1.15.0).
Many thanks for the help!
Cheers,
/Glenn
PS: I've also tried to generate an FMU (this also only worked in the new frontend, but then failed with e.g. pyfmi and FMU simulator - i.e. the FMU seems corrupted).
This solved the problem indeed, many thanks for your fast reply!
Cheers,
/Glenn
Hi,
I've been trying to run the PhotovoltaicCoolingSystems example in the latest stable OpenModelica (1.14.1) but the compilation fails (using gcc). With the other, more simple, examples I experience no issues. Any idea what can be the problem? According to this is should work. Many thanks for your help!
https://github.com/UdK-VPT/BuildingSystems/issues/151
Cheers,
Glenn
- Index
- » Users
- » DeGlenn
- » Profile