- Index
- » Usage and Applications
- » OpenModelica Usage and Applications
- » Loading Standard Library
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).
- sjoelund.se
- 1700 Posts
- Index
- » Usage and Applications
- » OpenModelica Usage and Applications
- » Loading Standard Library