Question-and-Answer Resource for the Building Energy Modeling Community
Get started with the Help page
Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

impossible to open the buildings library with python_interface from Dymola

Hello everyone,

I'm currently trying to launch my modelica model with python in order to make my parameters studies more efficient. I'm trying to use the python_interface integrated to Dymola.

I have no problem loading my model with the "openModel" command from the interface. However, my model needs the buildings library in order to work, and it seems impossible to load it from python.

I tried using the "openModel" command, but nothing happened (not even an error; the buildings library simply does not appear in the Dymola window).

I also tried writing a modelica script containing instructions to open the buildings library, and then executed it from python with the "RunScript" command. Again, nothing happened.

I really don't understand this problem because it shouldn't be any different to open my model or the buildings library from python. Do you have any idea what the problem may be and how I can solve it ?

Thank you very much in advance for your time,

Romain

impossible to open the buildings library with python_interface from Dymola

Hello everyone,

I'm currently trying to launch my modelica model with python in order to make my parameters studies more efficient. I'm trying to use the python_interface integrated to Dymola.

I have no problem loading my model with the "openModel" command from the interface. However, my model needs the buildings library in order to work, and it seems impossible to load it from python.

I tried using the "openModel" command, but nothing happened (not even an error; the buildings library simply does not appear in the Dymola window).

I also tried writing a modelica script containing instructions to open the buildings library, and then executed it from python with the "RunScript" command. Again, nothing happened.

I really don't understand this problem because it shouldn't be any different to open my model or the buildings library from python. Do you have any idea what the problem may be and how I can solve it ?

Thank you very much in advance for your time,

Romain