Opened 5 years ago
Last modified 3 years ago
#5971 new defect
TLM pendulum example error
Reported by: | Owned by: | Lennart Ochel | |
---|---|---|---|
Priority: | critical | Milestone: | |
Component: | OMSimulator | Version: | |
Keywords: | TLM | Cc: |
Description
When executing the pendulum example as in https://www.openmodelica.org/doc/OpenModelicaUsersGuide/v1.11.0-dev.beta2/tlmcosimulation.html I get the following scripting and simulation errors (attachments). I also load the OM_TLM library. How should I run it to be able to simulate?
Thank you.
Attachments (5)
Change History (12)
by , 5 years ago
Attachment: | TLM_error.PNG added |
---|
comment:1 by , 5 years ago
From your TLM_error2.png it looks like the space in the path "C:/Program Files/..." isn't handled correctly by one of the batch files on Windows (spaces in filenames, directorynames are evil). The people who wrote the tutorial installed OpenModelica directly in "C:/" and not in "C:/Program Files/", that's why they didn't encounter your issue, I suppose.
I proposed a fix in PR 123. Sadly I cannot check this, since I do not have a Windows machine available... maybe you can comment on this?
I guess you could always install your OpenModelica to a path that doesn't contain spaces to avoid this issue.
follow-up: 4 comment:2 by , 5 years ago
I have installed it again in C:/, but I get the following error also, I attach the file. Thank you
comment:3 by , 5 years ago
Milestone: | Future → 1.16.0 |
---|---|
Priority: | high → critical |
comment:4 by , 5 years ago
Replying to phannebohm:
I proposed a fix in PR 123.
Okay great, I think the problem with spaces is gone. That was easy.
Replying to lluc@…:
I have installed it again in C:/, but I get the following error also, I attach the file. Thank you
I don't really understand what's going on there. I tested on Windows 10 now. My system also cannot find some specified path (no idea which path is meant there). But I don't get your error
singleModel = Fatal error: Component shaft2 is already connected
Instead in the manager log file after
Info: ----- Waiting for registration requests -----
the communication seems to wait indefinitely for something. I'm not sure what's supposed to happen there.
Can you attach the log files for manager and monitor? You need to activate Debug Mode first in the setup before simulating.
comment:6 by , 4 years ago
Milestone: | 1.17.0 → 1.18.0 |
---|
Retargeted to 1.18.0 because of 1.17.0 timed release.
Scripting error