- Index
- » Usage and Applications
- » OpenModelica Usage and Applications
- » Another question to solve... Yes,...
Another question to solve... Yes, still a newbie and stuck!
Another question to solve... Yes, still a newbie and stuck!
Ok, after some reading, I struggled to draw a circuit in OMEdit (1.7 under Ubuntu 10.10 64 bits). A simple two capacitors in parallel with a Sine Voltage (suppose to have defined parameters correctly). But i stuck at the same error.
Code:
---- Error 1 : 20:47:50 ----
Unable to simulate the Model 'prueba'
Following Error has occurred.
Error building simulator. Buildlog: perl /usr/share/omc/scripts/convert_lines.pl prueba.cpp prueba.conv.cpp.tmp
g++ -I. -o prueba prueba.conv.cpp prueba_functions.cpp -L"/home/aurelio/Escritorio" "-L/usr/lib/omlibrary/msl31/Resources/Library/linux-x86_64" "-L/usr/lib/omlibrary/msl31/Resources/Library/linux64" "-L/usr/lib/omlibrary/msl31/Resources/Library" -lModelicaExternalC -lsim -linteractive -I"/usr/include/omc" -O3 -falign-functions -march=native -mfpmath=sse -Wl,-Bsymbolic-functions -lsendData -lQtNetwork -lQtCore -lQtGui -lrt -lpthread -L"/usr/lib/omc" -lc_runtime -Wl,-Bstatic -lf2c -Wl,-Bdynamic prueba_records.c
prueba.cpp: In function âvoid init_Alias(DATA*)â:
prueba.cpp:225: error: â$Psinevoltage1$PsignalSource$Pyâ was not declared in this scope
prueba.cpp:228: error: â$Pcapacitor2$Pp$Pvâ was not declared in this scope
make: *** [prueba] Error 1
What's wrong? Please help...
Writing the model
model prueba
Modelica.Electrical.Analog.Basic.Ground ground1 annotation(Placement(visible = true, transformation(origin = {2,-61}, extent = {{-15,-15},{15,15}}, rotation = 0)));
Modelica.Electrical.Analog.Basic.Capacitor capacitor2(C = 32) annotation(Placement(visible = true, transformation(origin = {-4,53.5}, extent = {{-15,-15},{15,15}}, rotation = 0)));
Modelica.Electrical.Analog.Basic.Capacitor capacitor1(C = 23.2) annotation(Placement(visible = true, transformation(origin = {38.5,5}, extent = {{-15,15},{15,-15}}, rotation = -90)));
Modelica.Electrical.Analog.Sources.SineVoltage sinevoltage1(V = 50, phase = 0, freqHz = 10) annotation(Placement(visible = true, transformation(origin = {-45.5,4}, extent = {{-15,15},{15,-15}}, rotation = -90)));
equation
connect(ground1.p,capacitor1.n) annotation(Line(points = {{2,-46},{2,-45.5},{38,-45.5},{38,-10},{38.5,-10}}));
connect(capacitor2.n,capacitor1.n) annotation(Line(points = {{11,53.5},{65.5,53.5},{65.5,-10},{38.5,-10},{38.5,-10}}));
connect(sinevoltage1.p,capacitor2.p) annotation(Line(points = {{-45.5,19},{-45.5,19},{-45.5,54},{-19,54},{-19,53.5}}));
connect(capacitor1.n,sinevoltage1.n) annotation(Line(points = {{38.5,-10},{38.5,-10},{38.5,-29.5},{-45,-29.5},{-45,-11},{-45.5,-11}}));
connect(sinevoltage1.p,capacitor1.p) annotation(Line(points = {{-45.5,19},{-45.5,19},{-45.5,32.5},{38.5,32.5},{38.5,20},{38.5,20}}));
end prueba;
Re: Another question to solve... Yes, still a newbie and stuck!
This would have been fixed in the trunk yesterday, but someone broke compilation of OMEdit
Anyway, it should be solved with today's build around 14:00 CEST for your system (I'm just assuming no one will break the builds on a Saturday).
- sjoelund.se
- 1700 Posts
Re: Another question to solve... Yes, still a newbie and stuck!
Yes. A reinstall in a bit over an hour from now should solve it. I would suggest using the stable builds in classes though (as the nightly builds break from time to time).
- sjoelund.se
- 1700 Posts
Re: Another question to solve... Yes, still a newbie and stuck!
Oh, that error was solved but now, I can run the simulation process but after picking up a variable to plot down, initialize it and launch it, I confronted with other error again:
Code:
DDASRT: The code has encountered trouble from which it cannot recover.
Excuse me, I don't want to be a pain in your neck. But, what's wrong now, please? Maybe it's my fault. I don't konw.
In the other hand, I don't find any stable package to download for Ubuntu 10.10 since the downloading process is controlled by apt-get repository tool. Or maybe I should use a source distribution?
Re: Another question to solve... Yes, still a newbie and stuck!
You can use the stable packages for 10.04 as they also work with 10.10. The additional things included in Qt 4.7 are minimal.
As for the solver... I have no clue, and that's why I hate DASSL. Euler and RK worked, but I don't know if the result was correct or not.
- sjoelund.se
- 1700 Posts
- Index
- » Usage and Applications
- » OpenModelica Usage and Applications
- » Another question to solve... Yes,...