Archived OpenModelica forums. Posting is disabled.

Alternative forums include GitHub discussions or StackOverflow (make sure to read the Stack Overflow rules; you need to have well-formed questions)


Forgot password? | Forgot username? | Register

Installing OpenModelica 1.9.3

Installing OpenModelica 1.9.3

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

Re: Installing OpenModelica 1.9.3

You do not need OMDev folder. Remove that and also remove OMDEV environment variable if you have it.

You could also try the nightly-builds:
https://build.openmodelica.org/omc/buil … ly-builds/
as we fixed a lot of issues in the compiler since 1.9.3.

Re: Installing OpenModelica 1.9.3

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 current/smile 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?

Re: Installing OpenModelica 1.9.3

Check your activity monitor and see if the simulation process is perhaps still running (you can kill it if you want to lose the simulation results).

Also check your firewall since the simulation process and OMEdit communicate via TCP/IP.

Re: Installing OpenModelica 1.9.3

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?

Re: Installing OpenModelica 1.9.3

That messages says that "ld" cannot open Modelica.Mechanics.Translational.Examples.Accelerate.exe for writing (the C code was generated and now the  linker ld wants to build the executable) which means something is blocking it.
What kind of antivirus do you have?

Re: Installing OpenModelica 1.9.3

I have Avast Free Antivirus. I  turned it off and I still get the same error current/sad I launched OpenModelica as adminstrator. What could it be?

Re: Installing OpenModelica 1.9.3

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!?

Re: Installing OpenModelica 1.9.3

It could be that a process got stuck while writing or executing that file. Have a look in task manager to see. I would suggest also a computer restart.

Re: Installing OpenModelica 1.9.3

I know now is late, but for recording and future users:

I had the same problem as described above, and the cause of it was that I had my file saved in a folder named with a word with accents.

When I removed all accents and possible weird things from the name of the folder, everything came back to normal, the simulation ran beautifully and the compiler wasn´t stopped anymore, hahahaha.

Good luck!

There are 0 guests and 0 other users also viewing this topic
You are here: