- Index
- » Users
- » svenjens
- » Profile
Posts
Posts
I am doing several simulations, where parameters are changed by updating the Model_init.xml.
Some values do not arrive.
model SubModel
parameter Real C = 1;
...
end SubModel;
model MainModel
parameter Real C = 2;
SubModel submodel(C=C);
...
end MainModel;
When I reset parameter MainModel.C in init.xml to a value of 3 (or something else), then the value of submodel.C does not change - it remains 2.
The flat model says:
parameter Real C = 2;
parameter Real submodel.C = C;
The MainModel_init.xml is changed from:
(MainModel.)C -> <Real fixed="true" start="2" useNominal="false" useStart="true" />
submodel.C -> <Real fixed="true" start="2" useNominal="false" useStart="true" />
to:
(MainModel.)C -> <Real fixed="true" start="3" useNominal="false" useStart="true" />
submodel.C -> <Real fixed="true" start="2" useNominal="false" useStart="true" />
The MainModel_res.mat says:
C = 3
submodel.C = 2
---
Problem was solved by setting preOptModules without "evaluateReplaceProtectedFinalEvaluateParameters".
Hallo!
I'm new in OpenModelica and want to use it for university.
I installed and tried out OM 1.9.0 on my desktop computer (AMD AthlonX4) on Windows7 and Ubuntu12.04 without any problems.
On my laptop (IBM ThinkPad X30 with Mobile Pentium III-M) I installed OM 1.9.0 on WindowsXP and XUbuntu 11.10 (both 32bit) from installer/apt-package without any errors.
On WindowsXP OMEdit crashes with exception after starting a simulation.
I tried an older version (1.6.0 from zip, with running the UpdateEnv.exe) - without success.
On XUbuntu OMEdit shows error message "Connection to OpenModelica Compiler has been interrupted. OMEdit will close." on startup, after clicking in OMLibrary-window it closes after showing the message again.
Typing for example "omc +s Circle.mo" on the console fails too - the last row of output is "illegal instruction" and no files are created.
I tried to fix the problem by setting the environment variables described in [man omc] - in particular the MODELICAUSERCFLAGS to "-O2 -march=pentium3m -fomit-frame-pointer -pipe"- but without any effect (they had been unset and have been deleted after OM-update today: are they unused?).
I think the reason is the instruction set of the cpu - mmx and sse are supported but sse2 and other nice features not.
So my question is: Do I have to build OM from sources with special compiler flags or only set special compiler flags for creation of model.executables.
Is there a configuration tool?
Is the reason another one?
Thanks!
- Index
- » Users
- » svenjens
- » Profile