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

Modelica Standard Library 2.2.1

Modelica Standard Library 2.2.1

Hi,

I am trying to compile a package that I built and compile using Dymola 6.0 and Modelica Standard Library 2.2.1 in OpenModelica. It seems that the default standard Modelica library that is loaded in OpenModelica is version 3.1? Is it possible to change this and compile a model/package that uses Modelica 2.2.1? If yes, how?

Thanks in Advance,
Erick

Edited by: eosilva - Nov-23-11 20:49:56

Re: Modelica Standard Library 2.2.1

First install the MSL package (installed by default on OSX/Windows):

Code:

apt-get install omlibrary-msl221

Then load it:

Code:

loadModel(Modelica,{"2.2.1"})

Re: Modelica Standard Library 2.2.1

Hi

Thanks for your answer.

In OMShell I got the error message:

"Error: Class loadModel not found in scope <global scope> (looking for a function or record)."

I am using OpenModelica 1.7.0RC1 at Windows.

TIA,
Erick

Re: Modelica Standard Library 2.2.1

1.7 is too old for this API; you need to manually move libraries around or change the environment variable OPENMODELICALIBRARY

Re: Modelica Standard Library 2.2.1

Thanks.

It works now.

Erick

There are 0 guests and 0 other users also viewing this topic
You are here: