Archived OpenModelica forums. Posting is disabled.

Alternative forums include GitHub discussions or StackOverflow (make sure to read the Stack Overflow rules; you need to have well-formed questions)


Forgot password? | Forgot username? | Register
  • Index
  • » Users
  • » romgerale
  • » Profile

Posts

Posts

Aug-10-13 20:45:28
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.

Jul-13-12 05:16:45
StateGraph.Examples.FirstExample does not work

When I simulate (startTime=0 and stopTime=5) StateGraph.Examples.FirstExample it shows all steps as active = false.

I have tried with OpenModelica 1.8.1 (r11643) and it did not work.

  • Index
  • » Users
  • » romgerale
  • » Profile
You are here: