#4487 closed defect (fixed)
OMOptim does not communicate with OMC
Reported by: | daniel.fischer@… | Owned by: | adrpo |
---|---|---|---|
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)
Change History (12)
comment:1 Changed 7 years ago by adeas31
comment:2 Changed 7 years ago by daniel.fischer@…
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 Changed 7 years ago by adeas31
Can you also check if object reference file is created in the directory or not?
comment:4 follow-up: ↓ 9 Changed 7 years ago by 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/
comment:5 Changed 7 years ago by adrpo
- Owner changed from hubert.thieriot to adrpo
- Status changed from new to accepted
comment:6 Changed 7 years ago by adrpo
I tested it now and it seems to be working.
comment:7 Changed 7 years ago by hkiel
- Resolution set to fixed
- Status changed from accepted to closed
comment:8 Changed 7 years ago by pesimon
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.
comment:9 in reply to: ↑ 4 Changed 7 years ago by Mike
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 Changed 7 years ago by adrpo
- Version changed from v1.11.0 to v1.12.0
comment:11 Changed 7 years ago by adrpo
- Milestone changed from Future to 1.12.0
- Version changed from v1.12.0 to v1.11.0
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.