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

Problem with OpenModelica 1.9.0 beta 3

Problem with OpenModelica 1.9.0 beta 3

I downloaded and installed Open Modelica 1.9.0 beta 3 and tried to execute the hello world example.
Open Modelica Notebook seems to hang and after a long time errors After simulate .. I receive the following error messages (see below pdf file).
If I run the same example with Open Modelica 1.8.1 the problem runs ok

Re: Problem with OpenModelica 1.9.0 beta 3

Hi,

Do you mean HelloWorld from DrModelica?
If so, it seems we made a mistake in the beta3 and used "simulation" command instead of "simulate" command.
Just change "simulation" to "simulate" and it should work.

We'll fix this as soon as possible with a beta4.

Cheers,
Adrian Pop/

Re: Problem with OpenModelica 1.9.0 beta 3

I tried Hello World from the delivered Open Modelica Notebook. I tried both simulation and simulate - both with the same result.

Re: Problem with OpenModelica 1.9.0 beta 3

What OS are you running? And what is the output of checkSettings()?

Re: Problem with OpenModelica 1.9.0 beta 3

I use Windows 7 SP1 X64bit version, i7 processor, 20MB memory. The case I am trying to solve is from OpenModelica Notebook with one change insted of simulation I use simulate
-----------------------------
I receive the following error message:
record SimulationResult
    resultFile = "",
    simulationOptions = "startTime = 0.0, stopTime = 4.0, numberOfIntervals = 500, tolerance = 0.000001, method = 'dassl', fileNamePrefix = 'HelloWorld', storeInTemp = false, noClean = false, options = '', outputFormat = 'mat', variableFilter = '.*', measureTime = false, cflags = '', simflags = ''",
    messages = "Simulation failed for model: HelloWorld
Error: Error building simulator. Buildlog: gcc   -falign-functions -msse2 -mfpmath=sse   -I\"C:/OpenModelica1.9.0//include/omc\" -I.    -c -o HelloWorld.o HelloWorld.c
gcc   -falign-functions -msse2 -mfpmath=sse   -I\"C:/OpenModelica1.9.0//include/omc\" -I.    -c -o HelloWorld_records.o HelloWorld_records.c
mingw32-make: *** [HelloWorld_records.o] Error 1

",
    timeFrontend = 0.0,
    timeBackend = 0.0,
    timeSimCode = 0.0,
    timeTemplates = 0.0,
    timeCompile = 0.0,
    timeSimulation = 0.0,
    timeTotal = 0.0
end SimulationResult;

Can anybody help?

Re: Problem with OpenModelica 1.9.0 beta 3

Hi,

Do you have an older OMDev installed? If you don't know what that is then the answer is no.

If not, you can uninstall the beta3, install the latest nightly build:
https://build.openmodelica.org/omc/buil … ly-builds/
and restart and try again. We changed simulation to simulate in OMNotebook.

Cheers,
Adrian Pop/

Re: Problem with OpenModelica 1.9.0 beta 3

Dear Adrian,
I uninstalled beta 3 downloaded the latest nightly build and installed it:
I received the same error message as before:
record SimulationResult
    resultFile = "",
    messages = "Simulation failed for model: HelloWorld
Error: Error building simulator. Buildlog: gcc   -falign-functions -msse2 -mfpmath=sse   -I\"C:/OpenModelica1.9.0//include/omc\" -I.    -c -o HelloWorld.o HelloWorld.c
gcc   -falign-functions -msse2 -mfpmath=sse   -I\"C:/OpenModelica1.9.0//include/omc\" -I.    -c -o HelloWorld_records.o HelloWorld_records.c
mingw32-make: *** [HelloWorld_records.o] Error 1

"
end SimulationResult;
I wanted to mention that all example which are in OpenModel Notebook use simulation instead of simulate.
thank you for your help
Chris Nabold

Re: Problem with OpenModelica 1.9.0 beta 3

Hi,

Ok. Something is definitely wrong with your installation.
In nightly build revision 15012 all DrModelica from OMNotebook has simulate instead of simulation.

Did you uninstalled 1.8.0?
In the HelloWorld example, instead of simulate or plot write: checkSettings()
and Shift+Enter. You should get something like this:

Code:


record OpenModelica.Scripting.CheckSettingsResult
    OPENMODELICAHOME = "C:/OpenModelica1.9.0-r15012/",
    OPENMODELICALIBRARY = "C:/OpenModelica1.9.0-r15012/lib/omlibrary",
    OMC_PATH = "C:/OpenModelica1.9.0-r15012//bin/omc.exe",
    OMDEV_PATH = "",
    OMC_FOUND = true,
    MODELICAUSERCFLAGS = "",
    WORKING_DIRECTORY = "C:/Users/adrpo/AppData/Local/Temp/OpenModelica",
    CREATE_FILE_WORKS = false,
    REMOVE_FILE_WORKS = false,
    OS = "Windows_NT",
    SYSTEM_INFO = "",
    RTLIBS = " -static-libgcc -luuid -lole32 -lws2_32 -lsundials_kinsol -lsundials_nvecserial -llapack-mingw",
    C_COMPILER = "gcc",
    C_COMPILER_RESPONDING = false,
    HAVE_CORBA = true,
    CONFIGURE_CMDLINE = "Manually created Makefiles for OMDev"
end OpenModelica.Scripting.CheckSettingsResult;

Let us know how your result from checkSettings looks like.

Another problem might be if your uninstall did not complete because omc.exe was still running (in the background).
To make sure everything is installed correctly:
1. reboot (so that no more omc or other OpenModelica programs are left running)
2. backup any models or notebooks you might have in c:\OpenModelica1.9.0\
3. uninstall the nightly-build
4. delete c:\OpenModelica1.9.0 folder
5. reinstall the nightly-build

Sorry about all this trouble.
We did not have these issues with anybody else and is rather complicated to find out what goes wrong.

Cheers,
Adrian Pop/

Re: Problem with OpenModelica 1.9.0 beta 3

I did as you proposed. Interesting to see that on all my machines (4) with win 7 x64 I get the same results! If I uninstall Openmodelica V1.9 and reinstall Openmodelica 1.8.1 the problems run ok! Below the results from checkSettings:

record OpenModelica.Scripting.CheckSettingsResult
    OPENMODELICAHOME = "C:/OpenModelica1.9.0/",
    OPENMODELICALIBRARY = "C:/OpenModelica1.9.0/lib/omlibrary",
    OMC_PATH = "C:/OpenModelica1.9.0//bin/omc.exe",
    OMDEV_PATH = "",
    OMC_FOUND = true,
    MODELICAUSERCFLAGS = "",
    WORKING_DIRECTORY = "C:/Users/Chris/AppData/Local/Temp/OpenModelica",
    CREATE_FILE_WORKS = true,
    REMOVE_FILE_WORKS = true,
    OS = "Windows_NT",
    SYSTEM_INFO = "windows32 Ceres 2.6.1 7601 i686-pc Intel unknown MinGW
",
    RTLIBS = " -static-libgcc -luuid -lole32 -lws2_32 -lsundials_kinsol -lsundials_nvecserial -llapack-mingw",
    C_COMPILER = "gcc",
    C_COMPILER_RESPONDING = false,
    HAVE_CORBA = true,
    CONFIGURE_CMDLINE = "Manually created Makefiles for OMDev"
end OpenModelica.Scripting.CheckSettingsResult;

Re: Problem with OpenModelica 1.9.0 beta 3

Hi,

I think i found the problem. I'll fix it and make a new nightly-build and let you know when is ready.
We will also make a beta4 soon to fix this issue.

Thanks for your input!

Cheers,
Adrian Pop/

Re: Problem with OpenModelica 1.9.0 beta 3

Hi,

Try the latest nightly-build:
https://build.openmodelica.org/omc/buil … ly-builds/
make sure you uninstalled any previous OpenModelica installation.
Let me know how it goes.

Cheers,
Adrian Pop/

Re: Problem with OpenModelica 1.9.0 beta 3

What is the equivalent solvent for dasel  2  in open modelica 1.9  ?

Re: Problem with OpenModelica 1.9.0 beta 3

It's just dassl.
The solver method "dassl2" was just a develompent version of the currect "dassl" solver method.

so long.
Willi

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