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
  • » josemari37
  • » Profile

Posts

Posts

Openmodelica works fine in Ubuntu 10.04!

The error reported in my previous comment probably was due to some "copy paste" wrong type, so I'm sorry.

Jose

Many thanks, Sjoelund,

I tried again and it works!  I don't understand what I was wrong, I'm very sorry.
Have a good day,
Jose

Those are my session entrances:

OpenModelica 1.5.0
Copyright (c) OSMC 2002-2009

To get help on using OMShell and OpenModelica, type "help()" and press enter.

>> loadModel(Modelica)
true

>> loadFile("/usr/share/doc/omc/testmodels/dcmotor.mo")
true

>> simulate(dcmotor,startTime=0.0,stopTime=10.0)
record SimulationResult
    resultFile = "dcmotor_res.plt"
end SimulationResult;

>> list(dcmotor)
"model dcmotor
  Modelica.Electrical.Analog.Basic.Resistor r1(R = 10);
  Modelica.Electrical.Analog.Basic.Inductor i1;
  Modelica.Electrical.Analog.Basic.EMF emf1;
  Modelica.Mechanics.Rotational.Inertia load;
  Modelica.Electrical.Analog.Basic.Ground g;
  Modelica.Electrical.Analog.Sources.ConstantVoltage v;

equation
  connect(v.p,r1.p);
  connect(v.n,g.p);
  connect(r1.n,i1.p);
  connect(i1.n,emf1.p);
  connect(emf1.n,g.p);
  connect(emf1.flange_b,load.flange_a);
end dcmotor;

"

I've installed Openmodelica in Ubuntu 10.04, and after doing the first User Guide examples, an error appears:

>> simulate(dcmotor,startTime=0.0,stopTime=10.0)
record SimulationResult
    resultFile = "Simulation failed.
Error: Error occured while flattening model dcmotor
"

Anybody knows about it?

Thanks,

Jose

I've installed Openmodelica in Ubuntu 10.04, and after doing the first User Guide examples, an error appears:

>> simulate(dcmotor,startTime=0.0,stopTime=10.0)
record SimulationResult
    resultFile = "Simulation failed.
Error: Error occured while flattening model dcmotor
"

Anybody knows about it?

Thanks,

Jose

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