Opened 5 years ago

Last modified 3 years ago

#5971 new defect

TLM pendulum example error

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

TLM_error.PNG (11.0 KB ) - added by lluc@… 5 years ago.
Scripting error
TLM_error2.PNG (125.5 KB ) - added by lluc@… 5 years ago.
Simulation window error
Error3.PNG (52.5 KB ) - added by lluc@… 5 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)

by lluc@…, 5 years ago

Attachment: TLM_error.PNG added

Scripting error

by lluc@…, 5 years ago

Attachment: TLM_error2.PNG added

Simulation window error

comment:1 by Philip Hannebohm, 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.

comment:2 by lluc@…, 5 years ago

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

by lluc@…, 5 years ago

Attachment: Error3.PNG added

Error installed without spaces, in C:/

comment:3 by Francesco Casella, 5 years ago

Milestone: Future1.16.0
Priority: highcritical

in reply to:  2 comment:4 by Philip Hannebohm, 4 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.

by lluc@…, 4 years ago

Attachment: TLMlogfilemanager.txt added

manager

by lluc@…, 4 years ago

Attachment: monitorlog.txt added

monitor

comment:5 by Francesco Casella, 4 years ago

Milestone: 1.16.01.17.0

Retargeted to 1.17.0 after 1.16.0 release

comment:6 by Francesco Casella, 4 years ago

Milestone: 1.17.01.18.0

Retargeted to 1.18.0 because of 1.17.0 timed release.

comment:7 by Francesco Casella, 3 years ago

Milestone: 1.18.0

Ticket retargeted after milestone closed

Note: See TracTickets for help on using tickets.