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

Loading Standard Library

Loading Standard Library

Hi all,

I downloaded pre-built binaries for Linux of OpenModelica, got all dependicies to up and run the program. But I couldn't make it load Modelica Standard Library at startup.

Directory structure is as following under my home ~/Programs/OpenModelica/ :
.
├── bin
├── include
│   ├── i486-linux-gnu
│   ├── omc
│   ├── omplot
│   └── x86_64-linux-gnu
├── lib
│   ├── i486-linux-gnu
│   └── x86_64-linux-gnu
├── Modelica-3.2.1-build.4
│   ├── Modelica\ 3.2.1
│   ├── ModelicaReference\ 3.2.1
│   └── ModelicaServices\ 3.2.1
└── share
    ├── applications
    ├── doc
    ├── locale
    ├── menu
    ├── mime
    ├── omc
    ├── omedit
    ├── omnotebook
    ├── omshell
    └── pixmaps

I run OMEdit as following command :
LD_LIBRARY_PATH=../lib ./OMEdit

Version:
OpenModelica 1.9.4~dev-336-g168e4

I exported MODELICAPATH environment variable. But, OMEdit->Tools->Options->Libraries shows MODELICAPATH=    as empty.

I downloaded Modelica Standard Library separately.

Thanks for any help.

Re: Loading Standard Library

Can you simulate any models with that setup? lib/omlibrary seems to be missing and includes ModelicaBuiltin.mo. Usually you would have MSL in the default MODELICAPATH and not try to export it yourself. Note that the env.var used for the MODELICAPATH is actually OPENMODELICALIBRARY in order to not conflict with other installed Modelica tools.

/usr/lib/omlibrary/ModelicaServices 3.2.1
/usr/lib/omlibrary/Modelica 3.2.1
/usr/lib/omlibrary/Complex 3.2.1

Or you could try https://build.openmodelica.org/librarie … 332.tar.xz (note that the version OM ships with is a patched MSL, especially so for ModelicaServices which is intended to be tool-specific).

Re: Loading Standard Library

I cannot simulate anything. My problem looks much deeper than that. I cannot even save a file.
I will try to install using .rpm files.

There are 0 guests and 0 other users also viewing this topic