Modelica and Vensim Functions generated NullPointerExeption

Discussion about the use of Simantics System Dynamics
Post Reply
Juerg
Posts: 2
Joined: August 26th, 2014, 12:29 pm

Modelica and Vensim Functions generated NullPointerExeption

Post by Juerg » August 26th, 2014, 1:05 pm

If I am using Modelica or Vensim Functions then I get NullPointerExeption. If I open some Modelica Functions then the code is not compile or empty (see screen shot).
I am using Simantics-1.8.0-Synsdyn-32.

Any help is appreciated

Regards
Juerg
Attachments
Bildschirmfoto 2014-08-26 um 11.51.43.png
Bildschirmfoto 2014-08-26 um 11.51.43.png (207.5 KiB) Viewed 31871 times
Tuomas Miettinen
Site Admin
Posts: 31
Joined: March 11th, 2013, 3:14 pm

Re: Modelica and Vensim Functions generated NullPointerExept

Post by Tuomas Miettinen » August 26th, 2014, 2:15 pm

This is due to the custom "internal" Modelica solver being set as the default solver, instead of OpenModelica. The internal solver is faster but is missing a lot of features supported by OpenModelica. Switching to OpenModelica solves this issue. The solver can be changed in Window -> Preferences -> Solver.

(Btw, the Modelica code editor shows merely interfaces for most built-in functions, and not even that for other ones.)
Juerg
Posts: 2
Joined: August 26th, 2014, 12:29 pm

Re: Modelica and Vensim Functions generated NullPointerExept

Post by Juerg » August 26th, 2014, 5:22 pm

Thanks for the fast replay. I have changed the Solver to the OpenModelica and now it works.

Many thanks and best regards
Juerg
Post Reply