- Index
- » Users
- » semicolon
- » Profile
Posts
Posts
I was misguided. I've read that svn is more up-to-date and git is just mirror. Now it works with v1.9.4-dev.beta2.79+g3f4477c. Thanks a lot guys. Happy modeling.
I compiled from svn source. How can I reach the release version?
Hi all,
I want to enable warnings about unit mismatches (dimentionality) on modelica code. Here is the test code I mis-formulated on purpose:
Code:
class test
Real v(final unit="V");
Real i(final unit="A");
parameter Real r(start = 120, final unit="Ohm");
equation
v = i * i * r;
v = sin(time);
end test;
Here is the script I used for compiling:
Code:
loadModel(Modelica);
loadFile("test.mo");
simulate(test, stopTime=10);
plot(i);
I compile the code above with the following command:
Code:
omc t.mos --debug=dumpEqInUC --debug=dumpEqUCStruct --debug=dumpUnits
But there is no warning about units. How to enable unit check? Thanks.
omc version: 1.9.3+dev (r25940)
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.
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.
- Index
- » Users
- » semicolon
- » Profile