- Index
- » Users
- » matth
- » Profile
Posts
Posts
Hi,
I ran into the same error today. Did you ever find a solution?
It seems to only happen for Dymola 2022 with MSVS2013, all other combinations worked for me.
Thanks for any insights,
I assume this question was also from you?
https://github.com/CoolProp/CoolProp/issues/1350
Matthis
I replied on github:
https://github.com/thorade/HelmholtzMedia/issues/41
For the original topic of this thread, please also see this github ticket:
https://github.com/thorade/HelmholtzMedia/issues/39
Finally I did use Windows to look into some problem with the 32bit version and Annex60:
https://github.com/iea-annex60/modelica … issues/668
OpenModelica seems to be treating some Reals as Integers, is that a bug or is that a feature?
For some numbers it did not matter, but some Integers get truncated in the 32bit version.
OK, thanks. I think I will just use another Virtual Box image or Windows.
Is it possible to install OpenModelica with 32bit and 64bit in parallel on Ubuntu? Or are both installed anyway and I just need to start the correct one?
Code:
file $(which omc)
tells me it is 64bit
On Windows it should be possible by just installing to different directories, correct?
Maybe the dependencies are wrong, because after installing some additional packages it now works.
I had to run
Code:
sudo apt-get install omniorb python-omniorb omniidl omniidl-python
to make it work.
Not sure whether the package
Code:
omniorb-idl
is also required.
Did you find a fix for this?
I am also on Ubuntu 14.04 and used "apt-get install omniORB omniidl omniidl-python" to install omniORB,
but I am als getting the ImportError: No module named omniORB
On Ubuntu 16.04 everything worked as expected.
Thanks once again, this works.
I guess I have to check the result file for every simulation, if I run multiple simulations like in the below script? Or is there a more elegant way?
Code:
loadFile("ExtraMath/package.mo");
loadFile("ExtraMathTest/package.mo");
res1:=simulate(ExtraMathTest.test_Exponential);
res2:=simulate(ExtraMathTest.test_Power);
res3:=simulate(ExtraMathTest.test_ErrorGamma);
res4:=simulate(ExtraMathTest.test_Success);
res5:=simulate(ExtraMathTest.test_Failure);
resF:=res4.resultFile;
if resF=="" then
exit(1);
end if;
And, last not least: The CI script is downloading omc and the MSL from the OpenModelica server on every push (or if configured accordingly, on every pull request only). That might be noticeable traffic. Do you consider that acceptable?
Martin, may I ask one more questions:
I have a simulation that fails and is supposed to fail, but when I run it from a mos script like omc test_Failure.mos, omc returns code 0, so the CI build is marked as successful. What command do I have to add/edit? Something like getErrorString()?
Thanks
I did not get it to work so far. If you do, I would be interested in instructions.
Thanks, so that was easy, I am now using stable on 14.04 LTS.
Hi,
I was looking into TravisCI and possibilities how to use it for testing Modelica libraries. They allow installing packages using apt-get, so installing omc was straight forward. But, unfortunately, they are using Ubuntu 12.04 LTS (precise pangolin) as default, 14.04 LTS (trusty tahr) can be used also:
https://github.com/travis-ci/travis-ci/issues/5821
https://docs.travis-ci.com/user/ci-envi … vironments
The latest omc release on 12.04 LTS is 1.9.2,
the latest omc release on 14.04 LTS is 1.9.7.
https://travis-ci.org/thorade/ExtraMath/builds
https://github.com/thorade/ExtraMath/commits/travisCI
Would it be possible to also build releases (not the nightlies) for older LTS releases? Especially one of the two mentioned ones?
Thaks for considering, I understand this has not a hgh priority.
Matthis
Hi Thomas,
I am also still interested in getting this to work.
Did you also read the github issue linked in the first post?
https://github.com/tshort/openmodelica- … t/issues/2
Especially, installing emscripten was a bit cumbersome.
Are you able to run the emscripten basic examples as described on the emscripten homepage?
http://kripken.github.io/emscripten-sit … nvironment
The error you mention also appeared on my machine after I changed the simCodeTarget.
What simcodeTarget did you define: C or Javascript??
Regards,
Matthis
Hello,
I am trying to compile the example model Modelica.Blocks.Examples.PID_Controller to JavaScript using emscripten, as done and described by Tom Short here:
https://github.com/tshort/openmodelica-javascript
The resulting JavaScript should then be embedded in a markdown file as shown here:
https://github.com/tshort/mdpad/tree/gh-pages/
I installed all required tools on Xubuntu 16.04, emscripten had to be installed from source, because the version installed by apt-get from the Ubuntu servers produced a lot of warnings. When I now call a mos file with the following content:
Code:
loadModel(Modelica);
setCommandLineOptions("+simCodeTarget=JavaScript");
buildModel(Modelica.Blocks.Examples.PID_Controller);
a lot of files are produced, but not the main JS file.
Has somebody successfully compiled to JavaScript? Did I miss anything obvious?
I also filed an issue, describing what I have done so far here:
https://github.com/tshort/openmodelica- … t/issues/2
Thanks in advance,
Matthis
Same question was asked here:
http://stackoverflow.com/questions/3644 … elica-wt-r
Not sure if the ThermoCycle library works with OpenModelica yet:
https://github.com/thermocycle/Thermocy … /issues/32
For fluid properties, it relies on ExternalMedia and CoolProp, so you should first try to get that part running.
Then afterwards, try the more advanced examples.
As far as I know, there is no book on modeling R410A HVAC cylces with OpenModelica,
but the ThermoCycle paper is probably a good starting point:
http://dx.doi.org/10.3384/ecp14096683
A closely related question has been asked here:
http://stackoverflow.com/questions/1905 … a-modelica
The paper you mention is this one:
http://dx.doi.org/10.3384/ecp09430013
You will have to contact the authors directly, their library is (as far as I know) not available online.
There are also other table implementations available, check out these papers:
http://dx.doi.org/10.3384/ecp14096885
http://dx.doi.org/10.3384/ecp12076323
Not in your case, but otherwise, the list of libraries on the modelica.org homepage is always a good starting point:
https://modelica.org/libraries
http://impact.modelica.org/libraries.html
http://impact.github.io/
Hi,
I dont want to push you into using that library, I dont even use it myself, but the repository is not empty, there are lots of files, including the Modelica files, and there is plenty of documentation, see also my first post here.
A 3D interpolating table is just not part of the MSL and no matter what solution you are going for will include some work.
Best,
Matthis
AFAIK the Modelica tables all use external C code, but in all cases you dont have to configure that, you just stay on the Modelcia side of the wrapper.
There are some examples available: Go to https://bitbucket.org/3DS/simdevtools/src then Modelica, SimDevTools, Examples
You might also be interested in the following references:
http://dx.doi.org/10.3384/ECP14096885
http://en.slideshare.net/Modelon/nd-loo … r-modelica
https://bitbucket.org/3DS/simdevtools
You might be interested in this paper:
http://dx.doi.org/10.3384/ecp15118459
https://github.com/casella/ScalableTestSuite
Thanks, this does now work for me, using Xubuntu 15.10 and OpenModelica Nightly.
Googling the supervisors name and institution returned his email address. You can try sending an email to him. I personally would never use Facebook for professional communication.
Currently, R134a has only setState_ph implemented. You cannot use other input pairs. That means, R134a is incompatible with parts of Modelica.Fluid.
Also read:
https://trac.modelica.org/Modelica/ticket/1394
http://stackoverflow.com/questions/2037 … 134a-error
R134a is a pure fluid, there is no composition.
The following worked for me:
Code:
model test
package Medium = Modelica.Media.R134a.R134a_ph;
parameter Medium.AbsolutePressure p = 300000;
parameter Medium.SpecificEnthalpy h = 420000;
Real rho;
equation
rho = Medium.density(Medium.setState_ph(p, h));
end test;
At least two of the authors still work at Politecnico di Milano:
http://home.deib.polimi.it/
http://home.deib.polimi.it/lovera/
http://home.deib.polimi.it/casella/
Related issue on github:
https://github.com/CoolProp/ExternalMedia/issues/13
Related issue in the OpenModelica Trac:
https://trac.openmodelica.org/OpenModelica/ticket/3089
Hello,
I would like to use OpenModelica to create a HTML documentaion just like the one that can be found here:
https://build.openmodelica.org/Documentation/
On the bottom of the page it says:
Generated using GenerateDoc.mos
https://build.openmodelica.org/Document … ateDoc.mos
but is not clear to me how to use that file.
As I did not find any button "Generate HTML documentation" I guess I should call omc from the command line, but what parameters/options would I have to pass?
Regards,
Matthis
Thank you Adrian!
If there is anything that I can do to help, please let me know.
Hello,
I have written the library HelmholtzMedia (using Dymola) and published it on github:
https://github.com/thorade/HelmholtzMedia
I am currently trying to make it work with OpenModelica, but I am having some trouble.
What I have done so far:
I created an issue on the github tracker:
https://github.com/thorade/HelmholtzMedia/issues/21
I cleaned the code to remove all Dymola warning in pedantic mode.
I tried to follow the advice given on
https://trac.openmodelica.org/OpenModel … tLibraries
but I am still getting some errors like
Code:
Variable xy.z not found in scope z.y.x
To reproduce the error message, download the latest master.zip from
https://github.com/thorade/HelmholtzMed … master.zip
and either check the model
Code:
HelmholtzMedia.HelmholtzFluids.Helium
or try to simulate the model
Code:
HelmholtzMedia.Examples.Validation.CheckDerivativesHelium
Problem is: I don't understand the error message, because the variable seems to be there!?
It is declared in
Code:
HelmholtzMedia.Interface.PartialHelmholtzMedium
Any help appreciated. I guess I am missing something obvious here, but I need help getting started.
Regards,
Matthis
I do now have the "Introduction" book since a couple of weeks. In the preface it is stated that it gives a basic introduction only (and therefore could be used in a university class) but an update for the more extensive "Principles" is planned, too.
I have just seen that it is available for pre-order on amazon! I think I can wait until August.
http://eu.wiley.com/WileyCDA/WileyTitle … 1068X.html
http://amzn.com/111801068X
http://www.amazon.de/dp/111801068X
Hi,
are there plans yet when the updated version of the book will be available?
I would like to buy a book about Modelica soon, so is it a good idea to wait?
Regards,
Matthis
- Index
- » Users
- » matth
- » Profile