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

Posts

Posts

there already is a repository with debian files here:

http://build.openmodelica.org/apt/pool/

but when using the proposed way to add the resources it will not find the packages:

Code:

for deb in deb deb-src; do echo "$deb http://build.openmodelica.org/apt `lsb_release -cs` nightly"; done | sudo tee /etc/apt/sources.list.d/openmodelica.list

I think it probably has something to do, that it doesn't appear here yet:   http://build.openmodelica.org/apt/dists/

so I just wanted to notify the developers current/wink

Feb-14-14 18:19:28
opemmodelica can not simulate multibody mechanical simulations

ok.. ...   I did a little bit more research and found this in the openmodelica model:

Code:

 PointMass pointMass1(r_0(start = {3,0,0}, each fixed = true), v_0(start = {0,0,-1}, each fixed = true));

  PointMass pointMass2 annotation(Placement(transformation(extent = {{-60,-10},{-40,10}}, rotation = 0)));
  PointMass pointMass3(r_0(start = {2,1,0}, each fixed = true), v_0(start = {0,0,-1}, each fixed = true)) ;

with r_0(start = {3,0,0}, each fixed = true)  defined int Pointmass1  AND  Pointmass3 and each set fixed to true, that means we have an overdetermined system ....
if I just remove one of the "fixed=true" inits from the the openmodelica example, it works ... :

So the big question is:  is this a bug from modelica or from openmodelica?

Feb-14-14 13:35:39
opemmodelica can not simulate multibody mechanical simulations

I think this example used to work in earlier version of openmodelica (I use OpenModelica 1.9.1+dev (r18855) (Bootstrapping version)) on ubuntu 12.10. Could anyone help me to get this running again?

Hi, this is the error I get, when trying to simulate the "PointGravityWithPointMasses2" Example in Openmodelica:

Code:

/tmp/OpenModelica/OMEdit/Modelica.Mechanics.MultiBody.Examples.Elementary.PointGravityWithPointMasses2 -port=35254 -logFormat=xml -w -lv=LOG_STATS

stdout        | warning     | Failed to solve linear system of equations (no. 216) at time 0.000000, system is singular for U[7, 7].
LOG_LS        | warning     | linear system fails: Linear function (index 102, size 4) at t=0
|        | |     | | [1] der(referenceSystem.pointMass1.Q[1])
|        | |     | | [2] der(referenceSystem.pointMass1.Q[3])
|        | |     | | [3] der(referenceSystem.pointMass1.Q[2])
|        | |     | | [4] der(referenceSystem.pointMass1.Q[4])
stdout        | warning     | Error in initialization. Storing results and exiting.
Use -lv=LOG_INIT -w for more information.
Simulation process exited with code 255

and in the message browser:

Code:


[:0:0-0:0] Error: Failed to open simulation result /tmp/OpenModelica/OMEdit/Modelica.Mechanics.MultiBody.Examples.Elementary.PointGravityWithPointMasses2_res.mat: Too few rows in data_2 matrix

EDIT:  I just tried it with the "RML version" version of omc  and it doesn't work, too. Same error message

EDIT:   And I also just found out that the error has nee reported to track from someone three months ago:  https://trac.openmodelica.org/OpenModel … #comment:1

If this really is a bug it is rather serious I think, because multibody systems is a really important simulation domain in Openmodelica

May-10-13 12:03:16
Category: Developer

I tried running the Energy Storages library, developed by the modelica consortium ( you can find it here: https://www.modelica.org/libraries and here: https://github.com/modelica/Modelica_EnergyStorages)

but I get this error message when running the "SimpleCellDrivingCycle" example (as well as the other examples):

Code:

Symbolic    10:50:18    /usr/lib/omlibrary/Modelica 3.2.1/Blocks/Tables.mo    58:7-58:116    Assertion triggered during translation: "tableOnFile = false and parameter table is an empty matrix"

As I am not that much of an expert in modelica. I wanted to ask: is there maybe an easy workaround to get this to work, like a simple code modification to remove incopatibilities between modelica 3.2 and 3.2.1? Or maybe this is a bug in OpenModelica?

greetings Tom

Feb-04-13 18:53:18
Category: Programming

hmm. that would be pretty bad news, because that is exactly what I  want to do (increase x by one at each continuous step).

Feb-04-13 18:08:30
Category: Programming

I would like to do something like this: In this model X should be increased by "1"  with each timestep of the simulation. But I always get this error:

Code:

assert            | assert  | ERROR: Too many event iterations. System is inconsistent. Simulation terminate.

Code:

class stepfunction

  parameter Real seed = 1234;
  parameter Real range = 10;
  Integer X(start = 0);
algorithm
  X := X+1;
end stepfunction;

Any Idea, or hint what I could change to make it work?

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