Opened 5 years ago

Closed 5 years ago

#5734 closed defect (invalid)

OMPython ZMQ session does not connect in "OpenModelica v1.14.0-dev.beta3 (64-bit)"

Reported by: gijs.schimmel@… Owned by: GijsS
Priority: high Milestone: NeedsInput
Component: OMPython Version: v1.14.0-dev.beta2
Keywords: Cc: Adrian Pop

Description

Just last week, I managed to use Python to connect to Modelica 1.13 to linearize models and get the ABCD matrices. In the dev version OpenModelica v1.14.0-dev.beta3 (64-bit) this does not work anymore.

This Python script:
from OMPython import OMCSessionZMQ
omc = OMCSessionZMQ()

produces the following error:
2019-12-05 12:02:33,037 - OMPython - ERROR - OMC Server is down. Please start it! Log-file says:
The system cannot find the path specified.

The error is also present when using ModelicaSystem

Change History (3)

comment:1 by anonymous, 5 years ago

Resolution: fixed
Status: newclosed

Resolved: I found out that the error disappears when the system is restarted (Windows 10).

comment:2 by Francesco Casella, 5 years ago

Resolution: fixed
Status: closedreopened

comment:3 by Francesco Casella, 5 years ago

Cc: Adrian Pop added
Resolution: invalid
Status: reopenedclosed

I often have similar issues when I open a command line window in Windows, which stays open for a week or so because I hybernate my laptop every night, and then I install a new version of OMC. Of course all the system variables are broken and I need to restart that. I guess there are many similar problems.

@adrpo, maybe we should suggest in the installer to restart the OS if there are issues after the installation? This should not be mandatory, though

Note: See TracTickets for help on using tickets.