- Index
- » Usage and Applications
- » OpenModelica Usage and Applications
- » Error when compiling a simple...
Error when compiling a simple Modelica Program
Error when compiling a simple Modelica Program
Dear all,
I am using OpenModelica Connection Editor, version : 1.9.0 beta4 (r15030) on Windows.
I am trying to simulate a variation of BouncingBall using a PointMass and I am receiving the following error:
Translation 19:38:16 0:0-0:0 Error building simulator. Buildlog: gcc -falign-functions -msse2 -mfpmath=sse -I"C:/OpenModelica1.9.0//include/omc" -I. -L"C:/OpenModelica1.9.0/my" -c -o Ball.o Ball.c
Ball.c: In function 'functionDAE':
Ball.c:12724: error: lvalue required as unary '&' operand
mingw32-make: *** [Ball.o] Error 1
The program is:
model Ball
inner Modelica.Mechanics.MultiBody.World world;
Modelica.Mechanics.MultiBody.Parts.PointMass pointmass1(m = 1, r_0(start = {0,10,0}));
parameter Real c = 0.5;
equation
when pointmass1.r_0[2] < 0 then
reinit(pointmass1.v_0[2], -c * pointmass1.v_0[2]);
end when;
end Ball;
Could you help me to understand the problem?
Should I need to install cygwin?
Best Regards,
Alessandro Romero.
- Index
- » Usage and Applications
- » OpenModelica Usage and Applications
- » Error when compiling a simple...