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

Posts

Posts

Hi,
  Welcome to Openmodelica. Openmodelica is very good software and very userfriendly.
  And it comes with lots of examples. First you should try to reproduce example models. Check the kinds of components they're using in the examples, and then try to reproduce the same. That should get you started.

Having said that, check out this link - https://www.youtube.com/watch?v=1Ke7KNipPds

Also, remember that you cannot connect a resistor to a gear directly. The point is, you can not randomly connect to elements.

All the best.

Apr-02-15 12:23:07
Examples in the VehicleInterface library are not working properly.

Hi Friends,
  I've downloaded the vehicle interfaces library available. Now the problem is, it may  not loading properly (at least examples).
  I tried two examples - Conventional Automatic Vehicle, and the model icons were not loading properly, but I think simulation went good. I've attached the image.
https://openmodelica.org/images/agorapro/attachments/4059/mini_viconven.png

And then I tried Rear wheel Drive automatic vehicle. In this example, unfortunately, I could neither see the icons nor could run example properly. I've attached the image, and also, these are the errors I got.

1] 17:51:23 Symbolic Error
Too many equations, over-determined system. The model has 2001 equation(s) and 1990 variable(s).

[2] 17:51:23 Translation Error
Internal error pre-optimization module clockPartitioning failed.

[3] 17:51:23 Symbolic Error
[VehicleInterfaces.Mechanics: 183:7-183:21]: Found equation without time-dependent variables: driverEnvironment.brakePosition.flange_a.f = 0.0

https://openmodelica.org/images/agorapro/attachments/4059/mini_virear.png

How do I debug it? How do I check if model is properly loading?

Please let me know what  I can do to resolve issue. Thank you very much.

Nov-04-14 03:43:50
Errors while creating models in OMEdit - Variables/Components not defined?

I did update, and it seems to be working.. Will let you know if I face problem in future.
thanks so much... current/smile

Nov-04-14 01:10:46
Errors while creating models in OMEdit - Variables/Components not defined?

Thanks so much for early reply!

I'm not sure if I know correct way to check version of OMEdit.
But in About - I saw this one...
Connected to OpenModelica 1.9.2+dev (r23121)

As I said, I'm using nightly build on debian linux OS, and I do update every now and then. Last time updated was on weekend, Saturday, I think.

Nov-04-14 00:53:22
Errors while creating models in OMEdit - Variables/Components not defined?

Please check image of model here -



Nov-04-14 00:51:34
Errors while creating models in OMEdit - Variables/Components not defined?

Hi!
I'm trying to create models in OMEdit, but not able to do so properly because it's throwing error - "Not Found in Scope" repeatedly. This was not for just one model, but for different models I tried to create. I'm using linux version of openmodelica - nightly build.
When I tried to create basic electric circuit, I got the set of equations like this - with model name "ele"

model ele
equation
  connect(constantvoltage1.p, ground1.p) annotation(Line(points = {{10, -20}, {-79.9235, -20}, {-79.9235, -29.4455}, {-79.9235, -29.4455}}, color = {0, 0, 255}));
  connect(inductor1.n, constantvoltage1.n) annotation(Line(points = {{50, 40}, {55.8317, 40}, {55.8317, -19.5029}, {30.2103, -19.5029}, {30.2103, -19.5029}}, color = {0, 0, 255}));
  connect(resistor1.n, inductor1.p) annotation(Line(points = {{-10, 40}, {30.5927, 40}, {30.5927, 39.3881}, {30.5927, 39.3881}}, color = {0, 0, 255}));
  connect(ground1.p, resistor1.p) annotation(Line(points = {{-80, -30}, {-80.3059, -30}, {-80.3059, 39.7706}, {-29.8279, 39.7706}, {-29.8279, 39.7706}}, color = {0, 0, 255}));
  annotation(Icon(coordinateSystem(extent = {{-100, -100}, {100, 100}}, preserveAspectRatio = true, initialScale = 0.1, grid = {2, 2})), Diagram(coordinateSystem(extent = {{-100, -100}, {100, 100}}, preserveAspectRatio = true, initialScale = 0.1, grid = {2, 2})));
end ele;

I should see the components in the "text view" of model, right? But I'm only seeing equations but not definitions of components.
I'm also attaching the screenshot.
The errors I'm seeing -

[/home/***********/ele.mo:3:3-3:162] Error: Variable constantvoltage1.p not found in scope ele.
[:0:0-0:0] Error: Error occurred while flattening model ele

I remember seeing same kind of errors in different models also, so I suspect this to be a generic problem. Can anybody suggest what i might be doing wrong or is it the problem with OMEdit?
Please let me know.

Thank you in advance.

Oct-13-14 05:07:00
Lots of errors when trying to simulate examples in OMEdit.

ceraolo
Sounds really interesting work. I'll look into it.

sjoelund.se
The link you provided isn't working.. at least for me. Even if it's working, as you said, it's short one. So do you think it would be appropriate if I write an detailed tutorial?

Oct-13-14 05:01:12
Lots of errors when trying to simulate examples in OMEdit.

sjoelund.se,
Sorry, for delayed response. i would definitely be interested in doing that. But I will need some guidance. I learn on my own, but small help here and there would be really great. So what I should do next?

Oct-09-14 01:49:49
Lots of errors when trying to simulate examples in OMEdit.

Thank your for reply.. And it's good that you told me about status of library coverage.
I think openmodelica is a really great tool, and I feel that I should also contribute in any way I can.
I'm just learning OpenModelica, and I've some experience in programming. If there is some work I can take up, I'll be happy to do so.
Can you let me know what are the ways I can contribute? [Coding/Writing Tutorials/ etc].  One thing I'm already doing is writing tutorials for an absolute beginner (say, for engineering students, and conducting workshops on it..)
Another thing I'm thinking is writing libraries..

Best Wishes

Oct-09-14 01:23:29
Lots of errors when trying to simulate examples in OMEdit.

Thank you!!! Apologize I could not reply earlier.

I ran updates and I could run pendulum problem smoothly.
For Heat exchanger simulation I saw some message like this -->
/tmp/OpenModelica_xxxxxxxxxxx/OMEdit/Modelica.Fluid.Examples.HeatExchanger.HeatExchangerSimulation -port=35128 -logFormat=xml -w -lv=LOG_STATS
Simulation process exited with code 255

And for  Fluid -> Examples -> Pumping System -
/tmp/OpenModelica_xxxxxxx/OMEdit/Modelica.Fluid.Examples.PumpingSystem -port=55007 -logFormat=xml -w -lv=LOG_STATS
stdout        | warning     | While solving non-linear system an assertion failed during initialization.
|        | |     | | The non-linear solver tries to solve the problem that could take some time.
|        | |     | | It could help to provide better start-values for the iteration variables.
|        | |     | | For more information simulate with -lv LOG_NLS
LOG_NLS        | warning     | nonlinear system 92 fails: at t=0 Debug more
|        | |     | | proper start-values for some of the following iteration variables might help
|        | |     | | [1] Real reservoir.s[1](start=3, nominal=1)
|        | |     | | [2] Real pipe.flowModel.states[2].p(start=100000, nominal=100000)
assert        | debug     | Solving non-linear system failed at time=0.
For more information please use -lv LOG_NLS. Debug more
assert        | info     | simulation terminated by an assertion at initialization
Simulation process exited with code 255

Both are exiting with code 255... Is this something I've to worry about?

Thank you!

Oct-07-14 13:20:41
Lots of errors when trying to simulate examples in OMEdit.

Ha ha. I've not used omc at terminal before....
But I just did what you asked. (created a folder called "mod".
This is the output I got at terminal...
vi a.mos
omc a.mos
true
""
{"/home/xxxxxxxxx/mod/Modelica.Mechanics.MultiBody.Examples.Elementary.DoublePendulum","Modelica.Mechanics.MultiBody.Examples.Elementary.DoublePendulum_init.xml"}
""
And I've got so many files created. So how do I check if the results are okay?

Oct-07-14 11:07:18
Lots of errors when trying to simulate examples in OMEdit.

  I'm seeing the old problems I used to see in the nightly build. I think that happened because I did software update in available in Debian, which I think installed newer versionf of openmodelica codes. I'll first show the errors that are being generated -
When try to simulate double pendulum - mechanics multibody example
[:0:0-0:0] Error: Internal error Transformation Module PFPlusExt index Reduction Method Pantelides failed!
[:0:0-0:0] Error: Internal error - IndexReduction.pantelidesIndexReduction failed!
[:0:0-0:0] Error: Internal error IndexReduction.pantelidesIndexReduction failed! Found empty set of continues equations. Use +d=bltdump to get more information.

When I try to simulate Fluid -> Examples -> Pumping System -
[:0:0-0:0] Error: Error occurred while flattening model Modelica.Fluid.Examples.PumpingSystem
[/usr/lib/omlibrary/Modelica 3.2.1/Fluid/Examples/PumpingSystem.mo:52:5-54:75] Error: Failed to elaborate expression: {Modelica.Fluid.Vessels.BaseClasses.VesselPortsData(diameter = 0.3), Modelica.Fluid.Vessels.BaseClasses.VesselPortsData(diameter = 0.3), Modelica.Fluid.Vessels.BaseClasses.VesselPortsData(diameter = 0.01)}.

When I tried to do heat exchange simulation in fluids -
43 warnings and 4 errors generated.
make: *** [Modelica.Fluid.Examples.HeatExchanger.HeatExchangerSimulation.o] Error 1
Compilation process exited with code 2

And this is what I got when I ran dpkg command ->

dpkg -l omc omlib-modelica-3.2.1 omlib-complex-3.2.1 omlib-modelicaservices-3.2.1
Desired=Unknown/Install/Remove/Purge/Hold
| Status=Not/Inst/Conf-files/Unpacked/halF-conf/Half-inst/trig-aWait/Trig-pend
|/ Err?=(none)/Reinst-required (Status,Err: uppercase=bad)
||/ Name                            Version              Architecture         Description
+++-===============================-====================-====================-====================================================================
ii  omc                             22602-1              i386                 The OpenModelica Compiler
ii  omlib-complex-3.2.1             6931-om1-1           all                  Complex 3.2.1 is a Modelica library
ii  omlib-modelica-3.2.1            7867-om1-1           all                  Modelica 3.2.1 is a Modelica library
ii  omlib-modelicaservices-3.2.1    6931-om1-1           all                  ModelicaServices 3.2.1 is a Modelica library



Thank you for your time and support!

Oct-07-14 09:13:05
Lots of errors when trying to simulate examples in OMEdit.

Hi!
  I've installed nightly build. I'm running the double pendulum example in mechanics. I"m getting this error -
  [:0:0-0:0] Error: Error occurred while flattening model Modelica.Mechanics.MultiBody.Examples.Elementary.DoublePendulum
  [/usr/lib/omlibrary/Modelica 3.2.1/Mechanics/MultiBody/Parts.mo:894:5-895:13] Error: Class world__gravityAcceleration not found in scope Modelica.Mechanics.MultiBody.Parts.Body (looking for a function or record).
  [:0:0-0:0] Notification: Instantiation of DoublePendulum failed.

  Similar Problem when running Mechanics -> Systems- RobotR3 -> Full Robot -
   [:0:0-0:0] Error: Error occurred while flattening model Modelica.Mechanics.MultiBody.Examples.Systems.RobotR3.fullRobot
   [/usr/lib/omlibrary/Modelica 3.2.1/Mechanics/MultiBody/Parts.mo:894:5-895:13] Error: Class world__gravityAcceleration not found in scope Modelica.Mechanics.MultiBody.Parts.Body (looking for a function or record).
   [:0:0-0:0] Notification: Instantiation of fullRobot failed.

   Good thing is some errors are not being generated.  For example, when I last time ran examples in Fluid systems, there were some errors in nightly build. I'm not seeing them in fresh installation of nightly build. But I have this problem repeatedly appear in mechanical problems -  Error: Class world__gravityAcceleration  not found

How do I resolve this??


 

Oct-06-14 18:07:09
Lots of errors when trying to simulate examples in OMEdit.

Hey, thanks so much for the response. I don't have record of errors as of now, but remember seeing many examples not running (in nightly build)...
But as both of you are suggesting the nightly build, I'll re-install with nightly build, and get back to you.


Oct-06-14 10:31:51
Lots of errors when trying to simulate examples in OMEdit.

Hi!
  I just installed openmodelica stable version on debian-linux platform. I'm trying to run examples given OMEdit, but I'm encountering lots and lots of errors.
(About menu saying -   OpenModelica 1.9.1+dev (r22383) (RML version) )
  Don't know what happened. I'll give you few samples here -

1.  When trying to simulate DoublePendulum example in mechanics - elementary examples I'm facing these errors-
  [:0:0-0:0] Error: Error occurred while flattening model Modelica.Mechanics.MultiBody.Examples.Elementary.DoublePendulum
  [/usr/lib/omlibrary/Modelica 3.2.1/Mechanics/MultiBody/Parts.mo:894:5-895:13] Error: Class world__gravityAcceleration not found in scope Modelica.Mechanics.MultiBody.Parts.Body (looking for a function or record).


2. Rotational 3D effects - Gyroscopic effects - Errors -
   [:0:0-0:0] Error: Error occurred while flattening model Modelica.Mechanics.MultiBody.Examples.Rotational3DEffects.GyroscopicEffects
   [/usr/lib/omlibrary/Modelica 3.2.1/Mechanics/MultiBody/Parts.mo:894:5-895:13] Error: Class world__gravityAcceleration not found in scope Modelica.Mechanics.MultiBody.Parts.Body (looking for a function or record).

3. DCPM - DC Machines Start in Electrical Examples - Errors:
   [:0:0-0:0] Error: Duplicate modification of element  = (typed)dcpm.ViNominal, type:
DAE.PROP(Real(quantity = "ElectricPotential", unit = "V"), C_PARAM) and  = (typed)95.0 DAE.PROP(Real(min = 1e-60, quantity = "ElectricPotential", unit = "V"), C_CONST), value: 95.0 on component VRef.
   [/usr/lib/omlibrary/Modelica 3.2.1/Electrical/Machines.mo:13496:7-13499:80] Error: Variable dcpm.coreParameters: Duplicate modification of element final  = (typed)1 DAE.PROP(Integer, C_CONST), value: 1 and  = (typed)1 DAE.PROP(Integer, C_CONST), value: 1 on component m.
   [/usr/lib/omlibrary/Modelica 3.2.1/Electrical/Machines.mo:13496:7-13499:80] Error: Variable dcpm.coreParameters: Duplicate modification of element  = (typed)dcpm.ViNominal, type:
DAE.PROP(Real(quantity = "ElectricPotential", unit = "V"), C_PARAM) and  = (typed)95.0 DAE.PROP(Real(min = 1e-60, quantity = "ElectricPotential", unit = "V"), C_CONST), value: 95.0 on component VRef.

4. Solenoid Actuator- in magnetic Flux tubes examples -
  [:0:0-0:0] Error: Cannot instantiate Modelica.Magnetic.FluxTubes.Examples.SolenoidActuator due to class specialization PACKAGE.

5. AIMC - DOC in Basic Machines in  Fundamental Wave in Magnetic -
   [:0:0-0:0] Error: Duplicate modification of element  = (typed)6.283185307179586 * aimcM.fsNominal / /*Real*/(aimcM.p) DAE.PROP(Real, C_PARAM), value: 157.0796326794897 and  = (typed)314.1592653589793 DAE.PROP(Real(min = 1e-60, quantity = "AngularVelocity", unit = "rad/s"), C_CONST), value: 314.1592653589793 on component wRef.
   [/usr/lib/omlibrary/Modelica 3.2.1/Magnetic/FundamentalWave.mo:6689:7-6695:42] Error: Variable aimcM.statorCoreParameters: Duplicate modification of element final  = (typed)3 DAE.PROP(Integer, C_CONST), value: 3 and  = (typed)3 DAE.PROP(Integer, C_CONST), value: 3 on component m.
   [/usr/lib/omlibrary/Modelica 3.2.1/Magnetic/FundamentalWave.mo:6689:7-6695:42] Error: Variable aimcM.statorCoreParameters: Duplicate modification of element  = (typed)6.283185307179586 * aimcM.fsNominal / /*Real*/(aimcM.p) DAE.PROP(Real, C_PARAM), value: 157.0796326794897 and  = (typed)314.1592653589793 DAE.PROP(Real(min = 1e-60, quantity = "AngularVelocity", unit = "rad/s"), C_CONST), value: 314.1592653589793 on component wRef.
  [/usr/lib/omlibrary/Modelica 3.2.1/Magnetic/FundamentalWave.mo:6689:7-6695:42] Error: Variable aimcM.statorCoreParameters: Duplicate modification of element  {start  = (typed)100 DAE.PROP(Integer, C_CONST), value: 100}  and  = (typed)100.0 DAE.PROP(Real(min = 1e-60, quantity = "ElectricPotential", unit = "V"), C_CONST), value: 100.0 on component VRef.

I just gave some examples here. Please help me here, I'm new to OMEdit, though I've some experience in Dr Modelica notebook. I am about give workshop on OpenModelica to collge students. I don't want to disappoint them. Please help me here.
Just want to tell you that, I'd first installed "nightly" build, which was giving much more problems, and then I removed it and installed stable version. This is comparitely better. But I still want to know if the problem is only with examples or with open modelica itself.

What should I do? Is there any library(of examples) i should replace? Is there any way I can check to see if at least compiler and library of components is installed fine?

Sorry. This has been a lengthy post, but I hope you understand.

Thank you!

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