- Index
- » Users
- » ehrnandezd
- » Profile
Posts
Posts
Today updated my OM and it stopped working, my os is ubuntu 12.04, the compiler displays the following error:
Translation 10:23:01 0:0-0:0 Error building simulator. Buildlog: gcc -falign-functions -march=native -mfpmath=sse -fPIC -I"/usr/include/omc" -I. -L"/usr/lib/omlibrary/Modelica 3.2.1/Mechanics" -c -o Modelica.Mechanics.Translational.Examples.ElastoGap.o Modelica.Mechanics.Translational.Examples.ElastoGap.c
gcc -falign-functions -march=native -mfpmath=sse -fPIC -I"/usr/include/omc" -I. -L"/usr/lib/omlibrary/Modelica 3.2.1/Mechanics" -c -o Modelica.Mechanics.Translational.Examples.ElastoGap_records.o Modelica.Mechanics.Translational.Examples.ElastoGap_records.c
g++ -I. -o Modelica.Mechanics.Translational.Examples.ElastoGap Modelica.Mechanics.Translational.Examples.ElastoGap.o Modelica.Mechanics.Translational.Examples.ElastoGap_records.o -I"/usr/include/omc" -I. -L"/usr/lib/omlibrary/Modelica 3.2.1/Mechanics" -L"/usr/lib/omlibrary/Modelica 3.2.1/Mechanics" -falign-functions -march=native -mfpmath=sse -fPIC -L"/usr/lib/omc" -Wl,-rpath,'/usr/lib/omc' -lSimulationRuntimeC -ldl -linteractive -lexpat -Wl,-Bsymbolic-functions -Wl,-z,relro -lrt -lgc -fopenmp -lsundials_kinsol -lsundials_nvecserial -llapack -lpthread -Wl,-Bstatic -lf2c -Wl,-Bdynamic
/usr/bin/ld: cannot find -lSimulationRuntimeC
/usr/bin/ld: cannot find -linteractive
collect2: ld returned 1 exit status
make: *** [omc_main_target] Error 1
Greetings from Colombia
I m testing examples, openModelica 1.9.0 Beta2 (r13569)... and it has troubles in compilation
OS:Ubuntu 10.04- 2.6.32-45-generic #99-Ubuntu SMP Tue Oct 16 16:26:56 UTC 2012 x86_64 GNU/Linux
thanks in advance
error:
Translation 08:39:07 0:0-0:0 Error building simulator. Buildlog: gcc -falign-functions -march=native -mfpmath=sse -fPIC -I"/usr/include/omc" -I. -L"/usr/lib/omlibrary/Modelica 3.1/Mechanics/MultiBody/Examples/Elementary" -c -o Modelica.Mechanics.MultiBody.Examples.Elementary.SpringMassSystem.o Modelica.Mechanics.MultiBody.Examples.Elementary.SpringMassSystem.c
gcc -falign-functions -march=native -mfpmath=sse -fPIC -I"/usr/include/omc" -I. -L"/usr/lib/omlibrary/Modelica 3.1/Mechanics/MultiBody/Examples/Elementary" -c -o Modelica.Mechanics.MultiBody.Examples.Elementary.SpringMassSystem_records.o Modelica.Mechanics.MultiBody.Examples.Elementary.SpringMassSystem_records.c
g++ -I. -o Modelica.Mechanics.MultiBody.Examples.Elementary.SpringMassSystem Modelica.Mechanics.MultiBody.Examples.Elementary.SpringMassSystem.o Modelica.Mechanics.MultiBody.Examples.Elementary.SpringMassSystem_records.o -I"/usr/include/omc" -I. -L"/usr/lib/omlibrary/Modelica 3.1/Mechanics/MultiBody/Examples/Elementary" -L"/usr/lib/omlibrary/Modelica 3.1/Mechanics/MultiBody/Examples/Elementary" -falign-functions -march=native -mfpmath=sse -fPIC -L"/usr/lib/omc" -lSimulationRuntimeC -ldl -linteractive -lexpat -lrt -fopenmp -lsundials_kinsol -lsundials_nvecserial -llapack -lpthread -Wl,-Bstatic -lf2c -Wl,-Bdynamic
/usr/lib/omc/libSimulationRuntimeC.a(libSimulationRuntimeC.a.o): In function `kinsol_initialization':
(.text+0x59847): undefined reference to `KINSetUserData'
/usr/lib/omc/libSimulationRuntimeC.a(libSimulationRuntimeC.a.o): In function `kinsol_initialization':
(.text+0x59890): undefined reference to `KINInit'
/usr/lib/omc/libSimulationRuntimeC.a(libSimulationRuntimeC.a.o): In function `kinsol_initialization':
(.text+0x59914): undefined reference to `KINDlsGetNumJacEvals'
/usr/lib/omc/libSimulationRuntimeC.a(libSimulationRuntimeC.a.o): In function `kinsol_initialization':
(.text+0x59928): undefined reference to `KINDlsGetNumFuncEvals'
collect2: ld returned 1 exit status
make: *** [omc_main_target] Error 1
On OMNotebook i wrote following.
Code:
cd("/home/elkin/OM")
loadModel(Modelica)
class Masa = Modelica.Mechanics.Translational.Components.Mass;
class Resorte=Modelica.Mechanics.Translational.Components.Spring;
class SoporteFijo= Modelica.Mechanics.Translational.Components.Fixed;
model Oscilador
Masa masa1(L = 1, s(start = -0.5));
Resorte resorte1(s_rel0 = 2, c = 10000);
SoporteFijo soporte1(s0 = 1.0);
equation
connect(resorte1.flange_b, soporte1.flange);
connect(masa1.flange_b, resorte1.flange_a);
end Oscilador;
simulate( Oscilador,stopTime=0.5 )
plot(masa1.s)
The simulation was different at:
Code:
model Oscilador04
Modelica.Mechanics.Translational.Components.Mass mass1(s(start = -0.5), L(start = 1), m = 1) ;
Modelica.Mechanics.Translational.Components.Fixed fixed1(s0 = 1) ;
Modelica.Mechanics.Translational.Components.Spring spring1(c = 10000, s_rel0 = 2);
equation
connect(spring1.flange_b,fixed1.flange) ;
connect(mass1.flange_b,spring1.flange_a) ;
end Oscilador04;
simulate( Oscilador04,stopTime=0.5 )
plot(mass1.s)
- Index
- » Users
- » ehrnandezd
- » Profile