Opened 4 years ago

Last modified 3 years ago

#5971 new defect

TLM pendulum example error

Reported by: lluc@… Owned by: lochel
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)

TLM_error.PNG (11.0 KB) - added by lluc@… 4 years ago.
Scripting error
TLM_error2.PNG (125.5 KB) - added by lluc@… 4 years ago.
Simulation window error
Error3.PNG (52.5 KB) - added by lluc@… 4 years ago.
Error installed without spaces, in C:/
TLMlogfilemanager.txt (397.4 KB) - added by lluc@… 4 years ago.
manager
monitorlog.txt (2.5 KB) - added by lluc@… 4 years ago.
monitor

Download all attachments as: .zip

Change History (12)

Changed 4 years ago by lluc@…

Scripting error

Changed 4 years ago by lluc@…

Simulation window error

comment:1 Changed 4 years ago by phannebohm

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.

comment:2 follow-up: Changed 4 years ago by lluc@…

I have installed it again in C:/, but I get the following error also, I attach the file. Thank you

Changed 4 years ago by lluc@…

Error installed without spaces, in C:/

comment:3 Changed 4 years ago by casella

  • Milestone changed from Future to 1.16.0
  • Priority changed from high to critical

comment:4 in reply to: ↑ 2 Changed 4 years ago by phannebohm

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.

Changed 4 years ago by lluc@…

manager

Changed 4 years ago by lluc@…

monitor

comment:5 Changed 3 years ago by casella

  • Milestone changed from 1.16.0 to 1.17.0

Retargeted to 1.17.0 after 1.16.0 release

comment:6 Changed 3 years ago by casella

  • Milestone changed from 1.17.0 to 1.18.0

Retargeted to 1.18.0 because of 1.17.0 timed release.

comment:7 Changed 3 years ago by casella

  • Milestone 1.18.0 deleted

Ticket retargeted after milestone closed

Note: See TracTickets for help on using tickets.