I am using Dymola to design a small model of some DC motors and a power source. After I finished my work I saved everything and closed Dymola. When I opened it the next time some (not all) of the connections did not show up anymore. So I tried to draw them again, but Dymola tells me that the connections already exist. When I look at the connections in the Text section they are still there.
I am using Ubuntu 18.04 and Dymola Version 2019 FD01 (64-bit), 2018-10-10. I also tried to open the model in Openmodelica. But there also were the same connections missing.
and the text representation:
connect(controlSoftware.s1, switches.s1);
connect(controlSoftware.s12, switches.s12);
connect(controlSoftware.s2, switches.s2);
connect(controlSoftware.r1, switches.r1);
connect(controlSoftware.r2, switches.r2);
connect(switches.p, constantVoltage.p);
connect(switches.pin_n, motorWithCurrentSensor.n);
connect(switches.pin_n1, motorWithCurrentSensor1.n);
connect(controlSoftware.cur1, motorWithCurrentSensor.Currenctsensor);
connect(motorWithCurrentSensor.pin, constantVoltage.n);
connect(motorWithCurrentSensor1.pin, constantVoltage.n);
connect(motorWithCurrentSensor.Speedsensor, controlSoftware.speed1);
connect(controlSoftware.speed2, motorWithCurrentSensor1.Speedsensor);
connect(controlSoftware.cur2, motorWithCurrentSensor1.Currenctsensor);
connect(ground.p, constantVoltage.n);
What can I do to get the connections back? I have a really hard time fixing things without graphical representation.
Thank you for your help
Best regards Gerald
I see that you are on Ubuntu and there is actually a bug in (at least) Dymola2019FD01 where it does mix up komma and decimal point when writing out annotation coordinates. So if you check you might see some graphical annotations having {10,5,10}
instead of {10.5,10}
rendering them invalid. I haven't tested if this has been resolved in Dymola2020 but until then you can use the workaround to start Dymola like this:
#!/bin/sh
export LC_ALL=C
exec /usr/local/bin/dymola-2019FD01-x86_64 $*
I.e., make sure the local is set to "C" so that Dymola does not get confused.