Opened 7 years ago

Closed 7 years ago

Last modified 7 years ago

#4487 closed defect (fixed)

OMOptim does not communicate with OMC

Reported by: daniel.fischer@… Owned by: Adrian Pop
Priority: high Milestone: 1.12.0
Component: OMOptim Version: v1.11.0
Keywords: OMOptim Cc:

Description

I have posted the issue below on Stackoverflow 2 weeks ago. I am not sure if this is the formal way to post a bug, and see if anyone is/will work on it. I am running Win 7. Using Task Manager/Processes I can see OMOptim.exe is running and omc.exe was also stated by OMOptim, so I suspect the issue is OMOptim does not see info. from omc.

Here's my original post.

I am trying to use OMOptim within OpenModelica. When starting OMOptim, it took it a considerable amount of time to put the canvas on; once it was on, I looked in the Message Output (under Log/MO) and found the message OMC not started. Please start it again (menu OMC->restart). I try Tools/OMC/start omc and just like the previous post, I get:

08:43:31] OMC not started. Please start it again (menu OMC->restart)
[08:57:34] OMC: unable to find OMC server, Object reference file C:/Users/Daniel/AppData/Local/Temp/OpenModelica/OMOptim//openmodelica.objid.OMOptim{E5F24F12-CB25-40B3-81BD-255279DBC379}085713394 not created.

Of course trying to load a model into OMOptim fails with complaint that omc is not running.

Attachments (1)

OMLog.txt (584 bytes ) - added by daniel.fischer@… 7 years ago.
OMLog.txt

Download all attachments as: .zip

Change History (12)

comment:1 by Adeel Asghar, 7 years ago

Can you see if the file C:/Users/Daniel/AppData/Local/Temp/OpenModelica/OMOptim//openmodelica.objid.OMOptim{E5F24F12-CB25-40B3-81BD-255279DBC379}085713394 is created? (Note that next time you start OMOptim a new file is generated.)

Also attach the files OMLog.txt and openmodelica.omc.output.OMOptim.

by daniel.fischer@…, 7 years ago

Attachment: OMLog.txt added

OMLog.txt

comment:2 by daniel.fischer@…, 7 years ago

I am trying to attach, but apparently I am spam.... and whatever I type is not good enough for the spam filter...

OMLog.txt
13:33:00 OMC: attempt to start
13:33:00 OMC: running command: C:\OpenModelica1.12.0-dev.alpha1-64bit\/bin/omc.exe +c=OMOptim{1072EA2E-1867-40EA-A030-23CA2FD33725}133300526 +d=interactiveCorba +corbaObjectReferenceFilePath=C:/Users/Daniel/AppData/Local/Temp/OpenModelica/OMOptim/
13:33:21 OMC: unable to find OMC server, Object reference file C:/Users/Daniel/AppData/Local/Temp/OpenModelica/OMOptim//openmodelica.objid.OMOptim{1072EA2E-1867-40EA-A030-23CA2FD33725}133300526 not created.
13:33:21 OMC: getClassNames()
13:33:21 OMC not started. Please start it again (menu OMC->restart)

OMOPtim
13:33:00 OMC: attempt to start
13:33:00 OMC: running command: C:\OpenModelica1.12.0-dev.alpha1-64bit\/bin/omc.exe +c=OMOptim{1072EA2E-1867-40EA-A030-23CA2FD33725}133300526 +d=interactiveCorba +corbaObjectReferenceFilePath=C:/Users/Daniel/AppData/Local/Temp/OpenModelica/OMOptim/
13:33:21 OMC: unable to find OMC server, Object reference file C:/Users/Daniel/AppData/Local/Temp/OpenModelica/OMOptim//openmodelica.objid.OMOptim{1072EA2E-1867-40EA-A030-23CA2FD33725}133300526 not created.
13:33:21 OMC: getClassNames()
13:33:21 OMC not started. Please start it again (menu OMC->restart)

Please let me know if you can use this info, else I will keep fighting to upload the files.

Thank you for your efforts.

daniel

comment:3 by Adeel Asghar, 7 years ago

Can you also check if object reference file is created in the directory or not?

comment:4 by Adrian Pop, 7 years ago

I think I fixed this with: 72a076/OMCompiler https://github.com/OpenModelica/OMCompiler/pull/1741
right after you reported it on StackOverflow but didn't had time to test it.
The Corba file was not created in the given path, but directly in the temp directory.

Have you tried with the latest nightly-builds? As far as I can see you are still using alpha1
https://build.openmodelica.org/omc/builds/windows/nightly-builds/

comment:5 by Adrian Pop, 7 years ago

Owner: changed from Hubert Thieriot to Adrian Pop
Status: newaccepted

comment:6 by Adrian Pop, 7 years ago

I tested it now and it seems to be working.

comment:7 by Henning Kiel, 7 years ago

Resolution: fixed
Status: acceptedclosed

comment:8 by pesimon, 7 years ago

Still appears to be defective on Linux (Lubuntu 16.04). I compiled OMOptim from the GitHub repo today.

OMC: unable to find OMC server, Object reference file /tmp/OpenModelica_pesimon/OMOptimopenmodelica.objid.OMOptim123622265 not created.

The specified file exists in the directory.

in reply to:  4 comment:9 by Mike, 7 years ago

Replying to adrpo:

I think I fixed this with: 72a076/OMCompiler https://github.com/OpenModelica/OMCompiler/pull/1741
right after you reported it on StackOverflow but didn't had time to test it.
The Corba file was not created in the given path, but directly in the temp directory.

Have you tried with the latest nightly-builds? As far as I can see you are still using alpha1
https://build.openmodelica.org/omc/builds/windows/nightly-builds/

I have the same problem, may you please detail the steps you made to correct this error?

comment:10 by Adrian Pop, 7 years ago

Version: v1.11.0v1.12.0

comment:11 by Adrian Pop, 7 years ago

Milestone: Future1.12.0
Version: v1.12.0v1.11.0
Note: See TracTickets for help on using tickets.