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
  • Index
  • » Users
  • » tben
  • » Profile

Posts

Posts

Jul-10-10 14:55:21
every simulation run by omc fails

sudo apt-get clean
sudo apt-get upgrade


I am using nigthly build. The last version is omc_5840-1_i386.deb and all is OK.

I am starting to learn Modelica language.

Jul-09-10 23:14:22
every simulation run by omc fails

This one: http://www.openmodelica.org/index.php/forum/topic?id=76

Failed to fetch ..... size mismatch
when
sudo apt-get upgrade

Jul-09-10 10:12:16
every simulation run by omc fails

I have installed omc_5833-1_i386.deb. That's work fine. Thank you for your help.

Take care: Build repository don't work, I have downloaded and installed files manualy. I have already seen a post for this issue but bug continues.

Jul-07-10 23:33:05
every simulation run by omc fails

Hereafter information needed:

Code:

thierry@ACER-ASPIRE:~/camp$ uname -m

i686

I have upgraded Openmodelica (Nightly build)

Code:

thierry@ACER-ASPIRE:~/camp$ apt-cache show omc | grep Version

Version: 5813-1
Version: 5809-1
Version: 5795-1
Version: 5791-1
Version: 5790-1
Version: 5789-1
Version: 5788-1
Version: 5785-1
Version: 5771-1
Version: 5764-1
Version: 5756-1
Version: 5737-1
Version: 5736-1
Version: 5734-1
Version: 5733-1
Version: 5728-1
Version: 5721-1
Version: 5718-1
Version: 5717-1
Version: 5715-1
Version: 5714-1

But result is the same:

Code:

thierry@ACER-ASPIRE:~/camp$ omc +showErrorMessages +d=failtrace sim_BouncingBall.mos

/*- CevalScript.cevalGenerateFunctionDAEs failed( loadFile )*/
/*- CevalScript.cevalGenerateFunction failed(loadFile)*/
true
""
/*- CevalScript.cevalGenerateFunctionDAEs failed( simulate )*/
/*- CevalScript.cevalGenerateFunction failed(simulate)*/
record SimulationResult
    resultFile = "Simulation failed.
"
end SimulationResult;
""
"No simulation result to plot."
"No simulation result to plot."
/*- CevalScript.cevalGenerateFunctionDAEs failed( system )*/
/*- CevalScript.cevalGenerateFunction failed(system)*/
0

I have installed Openmodelica on a laptop with Windows, all work fine. But it would be nice if i can run Openmodelica with my machine.

Jul-06-10 20:07:24
every simulation run by omc fails

Code:

thierry@ACER-ASPIRE:~/camp$ gdb ./BouncingBall

GNU gdb (GDB) 7.1-ubuntu
Copyright (C) 2010 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law.  Type "show copying"
and "show warranty" for details.
This GDB was configured as "i486-linux-gnu".
For bug reporting instructions, please see:
<http://www.gnu.org/software/gdb/bugs/>...
Reading symbols from /home/thierry/camp/BouncingBall...(no debugging symbols found)...done.
(gdb) run
Starting program: /home/thierry/camp/BouncingBall
[Thread debugging using libthread_db enabled]

Program received signal SIGILL, Illegal instruction.
0x0805283d in startNonInteractiveSimulation(int, char**) ()
(gdb) bt
#0  0x0805283d in startNonInteractiveSimulation(int, char**) ()
#1  0x08052d98 in main ()
(gdb)

The command

Code:

thierry@ACER-ASPIRE:~/camp$ apt-cache show omc

returns 3 pages. So I run

Code:

thierry@ACER-ASPIRE:~/camp$ apt-cache show omc | grep Version

Version: 5809-1
Version: 5795-1
Version: 5791-1
Version: 5790-1
Version: 5789-1
Version: 5788-1
Version: 5785-1
Version: 5771-1
Version: 5764-1
Version: 5756-1
Version: 5737-1
Version: 5736-1
Version: 5734-1
Version: 5733-1
Version: 5728-1
Version: 5721-1
Version: 5718-1
Version: 5717-1
Version: 5715-1
Version: 5714-1
thierry@ACER-ASPIRE:~/camp$

I have seen in old forum a concern regarding SSE2 instruction. This could be my problem?

Jul-06-10 19:41:07
every simulation run by omc fails

Code:

thierry@ACER-ASPIRE:~/camp$ ls

abc.txt           BouncingBall_functions.cpp  BouncingBall.log       output.log
BouncingBall      BouncingBall_init.txt       BouncingBall.makefile  sim_BouncingBall.mos
BouncingBall.cpp  BouncingBall.libs           BouncingBall.mo
thierry@ACER-ASPIRE:~/camp$ ./BouncingBall
Instruction non permise
thierry@ACER-ASPIRE:~/camp$ cat output.log
Illegal instruction

What does it means? It is the same with Windows.

French translation: "Instruction non permise" = "lllegal instruction"

Jul-05-10 23:45:29
every simulation run by omc fails

I have made a mistake in a previous message. The error message is not the same when I copy BouncingBall.mo and sim_BoucingBall.mos under /home. See the result:

Code:

thierry@ACER-ASPIRE:~/camp$ ls

BouncingBall.mo  sim_BouncingBall.mos
thierry@ACER-ASPIRE:~/camp$ touch abc.txt
thierry@ACER-ASPIRE:~/camp$ ls
abc.txt  BouncingBall.mo  sim_BouncingBall.mos
thierry@ACER-ASPIRE:~/camp$ omc +showErrorMessages +d=failtrace sim_BouncingBall.mos
/*- CevalScript.cevalGenerateFunctionDAEs failed( loadFile )*/
/*- CevalScript.cevalGenerateFunction failed(loadFile)*/
true
""
/*- CevalScript.cevalGenerateFunctionDAEs failed( simulate )*/
/*- CevalScript.cevalGenerateFunction failed(simulate)*/
record SimulationResult
    resultFile = "Simulation failed.
"
end SimulationResult;
""
"No simulation result to plot."
"No simulation result to plot."
/*- CevalScript.cevalGenerateFunctionDAEs failed( system )*/
/*- CevalScript.cevalGenerateFunction failed(system)*/
0
thierry@ACER-ASPIRE:~/camp$ ls
abc.txt  BouncingBall.mo  sim_BouncingBall.mos

When I run the BouncingBall model inside OMShell-terminal, OMC write the files:

Code:

thierry@ACER-ASPIRE:~/camp$ OMShell-terminal

Open Source Modelica Terminal Shell
Copyright 1997-2008, PELAB, Linkoping University

To get help on using Mosh and OpenModelica, type "help()" and press enter
Started server using:/usr//bin/omc +d=interactive > /tmp/omshell.log 2>&1 &
res = 0
>>> loadModel(Modelica)
true
>>> loadFile("BouncingBall.mo")
true
>>> simulate(BouncingBall,stopTime=3.0)
record SimulationResult
    resultFile = "Simulation failed.
"
end SimulationResult;
>>> getErrorString()
""
>>> quit()
quit requested, shutting server down
thierry@ACER-ASPIRE:~/camp$ ls
abc.txt           BouncingBall_functions.cpp  BouncingBall.log       output.log
BouncingBall      BouncingBall_init.txt       BouncingBall.makefile  sim_BouncingBall.mos
BouncingBall.cpp  BouncingBall.libs           BouncingBall.mo
thierry@ACER-ASPIRE:~/camp$

Another information, the log file:

Code:

thierry@ACER-ASPIRE:~/camp$ cat BouncingBall.log

g++ -I"/usr//include/omc" -msse2 -mfpmath=sse  -I. -o BouncingBall BouncingBall.cpp   -lsim -L"/usr//lib/omc" -lc_runtime -lf2c -linteractive -lsendData -lQtNetwork -lQtCore -lQtGui -lpthread
thierry@ACER-ASPIRE:~/camp$

What is your feeling?

Thanks and regards,

Jul-04-10 16:33:48
every simulation run by omc fails

I have copied and pasted sim_BouncingBall.mos in /home/thierry/tmp/ and I have run 'omc +showErrorMessages +d=failtrace  sim_BouncingBall.mos': same result than message #8.

Hereafter the result of checkSettings() command in OMShell-terminal.

Code:

>>> checkSettings()

record OpenModelica.Diagnostics.ImportantValues
    OPENMODELICAHOME = "/usr/",
    OPENMODELICALIBRARY = "/usr/share/omlibrary/modelicalib/",
    OMC_PATH = "/usr//bin/omc",
    OMC_FOUND = true,
    MODELICAUSERCFLAGS = "",
    WORKING_DIRECTORY = "/home/thierry/tmp",
    OS = "linux",
    SENDDATALIBS = " -lsendData -lQtNetwork -lQtCore -lQtGui -lpthread",
    C_COMPILER = "g++",
    C_COMPILER_RESPONDING = true,
    CONFIGURE_CMDLINE = "Configured 2010-07-03 11:00:11 using arguments: '--host=i486-linux-gnu --build=i486-linux-gnu --prefix=/usr --with-omniORB=/usr --with-static-lpsolve=/usr --with-sendData-Qt build_alias=i486-linux-gnu host_alias=i486-linux-gnu CFLAGS=-Wall -g -O2 LDFLAGS= CPPFLAGS='"
end OpenModelica.Diagnostics.ImportantValues;

OMC_PATH contains double slash "//". This is the problem?
No possibility to run checkSettings() with Windows.

Jul-03-10 21:34:47
every simulation run by omc fails

Hello,

I have the same issue with Kubuntu 10.04 and Openmodelica 1.5.0 : all simulations failed!

I try the following command

Code:

thierry@ACER-ASPIRE:/usr/share/doc/omc/testmodels$ omc +showErrorMessages +d=failtrace sim_BouncingBall.mos

The result is :

Code:

/*- CevalScript.cevalGenerateFunctionDAEs failed( loadFile )*/

/*- CevalScript.cevalGenerateFunction failed(loadFile)*/
true
""
/*- CevalScript.cevalGenerateFunctionDAEs failed( simulate )*/
/*- CevalScript.cevalGenerateFunction failed(simulate)*/
-!!!Tpl.textFile failed - a system error ?
-!!!Tpl.textFile failed - a system error ?
-!!!Tpl.textFile failed - a system error ?
-SimCodegen.generateInitData failed
record SimulationResult
    resultFile = "Simulation failed.
ERROR: Error writing to file BouncingBall.cpp.
ERROR: Error writing to file BouncingBall_functions.cpp.
ERROR: Error writing to file BouncingBall.makefile.
ERROR: Error writing to file BouncingBall_init.txt.
"
end SimulationResult;
""
"No simulation result to plot."
"No simulation result to plot."
/*- CevalScript.cevalGenerateFunctionDAEs failed( system )*/
/*- CevalScript.cevalGenerateFunction failed(system)*/
0

I have also a HDD with Windows OS (XP SP3) and the result is the same.

I note FONTE user is French (He start the message with "Bonjour"), like me. Do you think Regional or Local Settings could be a way to fix the issue (French have comma for decimal separator)?

Thanks for your help.

  • Index
  • » Users
  • » tben
  • » Profile
You are here: