- Index
- » Users
- » axelr
- » Profile
Posts
Posts
Thanks!
Has this possibly been fixed?
If I change the extent attribute in the annotation of an element, I can make it look smaller, but the connections have then to be manually adapted, since the connections otherwise do not appear to be connected to the components. This seems be very time-consuming. Any alternative?
I tried to use the OMC API methods to read simulation results like readSimulationResult but I didn't get any result.
I also tried to use JMatIO - Matlab's MAT-file I/O in JAVA but I got an error saying that the .mat file is not a valid MATLAB 5.0 MAT-file.
Should I just export the simulation results in csv? Is there another better alternative?
Thanks,
Axel
Thanks for clarifying this!
Thanks! Actually, I think that I asked the wrong question. Sorry!
Can I use the OMC Scritping API to parse redeclare statements in an extends clause, as shown below?
Code:
model MyModel
extends MyClass(redeclare MySubComponentClass1 specificComponent1, redeclare MySubComponentClass2 specificComponent2);
end MyModel;
I would like to retrieve the modifications associated with a class extends redeclaration mechanism.
I used as test model the one from GitHub (https://github.com/OpenModelica/OpenMod … _calls.mo)
and I performed the call
getExtendsModifierNames(D2,B2)
as documented in this test case (https://github.com/OpenModelica/OpenMod … param.mos)
but the result was "Error" and the getErrorString() call returned an empty string. Is this normal?
Thank you very much!
Hello,
I have several Modelica models that I cannot open and simulate with OpenModelica because they don't have a single nonstructured entity. How best to convert these models into models that can be opened with OpenModelica? Is this only possible through manual refactoring of the models? If yes, is there a certain best practice to apply?
Best regards,
Axel
Thanks for your help. I want to improve the SysML-Modelica transformation and make it work between OpenModelica 1.9.3 and MagicDraw 18.2 (https://github.com/SysMLModelicaIntegra … modelica).
I tried this command
getParameterValue("BouncingBall","e")
on the BouncingBall model within share\doc\omc\testmodels:
model BouncingBall
parameter Real e=0.7 "coefficient of restitution";
...
and I received this error message:
[<interactive>:1:1-1:0:writable] Error: Class getParameterValue not found in scope <global scope> (looking for a function or record).
According to this web page (https://build.openmodelica.org/Document … alue.html), the getParameterValue function should work. What did I miss? Any help would be greatly appreciated. Thanks.
BTW, loadModel(Modelica) and loadFile(getInstallationDirectoryPath()+"/share/doc/omc/testmodels/BouncingBall.mo") both returned true beforehand.
Best regards,
Axel
I realized that I can simulate certain example Modelica models such as Modelica.Mechanics.Translational.Examples.Oscillator. However, I get this same error when simulating Modelica.Mechanics.Translational.Examples.Accelerate
c:/openmodelica1.9.3/mingw/bin/../lib/gcc/mingw32/4.4.0/../../../../mingw32/bin/ld.exe: cannot open output file Modelica.Mechanics.Translational.Examples.Accelerate.exe: Permission denied
collect2: ld returned 1 exit status
mingw32-make: *** [omc_main_target] Error 1
Compilation process failed. Exited with code 2.
So the error is specific to this example model!?
I have Avast Free Antivirus. I turned it off and I still get the same error I launched OpenModelica as adminstrator. What could it be?
Thanks a lot! I can now compile the model. However I then run into this new problem:
c:/openmodelica1.9.3/mingw/bin/../lib/gcc/mingw32/4.4.0/../../../../mingw32/bin/ld.exe: cannot open output file Modelica.Mechanics.Translational.Examples.Accelerate.exe: Permission denied
collect2: ld returned 1 exit status
mingw32-make: *** [omc_main_target] Error 1
Compilation process failed. Exited with code 2.
How should I tell openModelica where to find ld.exe? Do I have to look at the compile.bat file? If yes, which lines do I have to change?
Thanks for the recommendation. I tried to install the latest nightly build OpenModelica-v1.9.4-dev-578-ga08261b.exe but it made my Windows explorer freeze and I wasn't able to install it However, I tried to install the OpenModelica-v1.9.3 release again, this time as administrator, and I was able to compile a Modelica model. I got the message "compilation process finished sucessfully" but then OMEdit started to freeze (OMEdit window not responding). Do you have any idea what could cause this problem?
Hello,
I just installed OpenModelica 1.9.3 for Windows. When I tried to simulate a model, the process would never end. No error message was indicated. I tried this from both from OMEdit and from OMShell. Same result. I suppose that my compilation settings are not ok. How can I check them? Do I need the OMDev folder? I had it installed on my machine a few years ago when I was using OpenModelica 1.8.1 and I deleted it to do a fresh start.
Best regards,
Axel
- Index
- » Users
- » axelr
- » Profile