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
  • » mabu
  • » Profile

Posts

Posts

Mar-30-13 20:56:43
Modelica installed. Not a single code works!

It is still the same error. But I can change to euler (forward I guess?) and it will work. I know it means
less accuracy, but I have never heard of DASSL before. What kind of integration method is it?

Still, thanks for the work sjoelund.se! I have no idea why I have this error and why you can not reproduce it,
so I do not know if there is a way for further investigations. Please tell me what kind of data I can send to
you...

Happy eastern to you!

Code:


DASSL--  SOME ELEMENT OF INFO VECTOR IS NOT ZERO OR ONE
stdout            | warning | The code has encountered trouble from which it cannot recover.
stdout            | warning | can't continue. time = 0.006000
stdout            | info    | model terminate | Integrator failed. | Simulation terminated at time 0.006
LOG_STATS         | info    | ### STATISTICS ###
LOG_STATS         | info    | timer
|                 | |       | |   0.00125966s [ 55.8%] pre-initialization
|                 | |       | |  0.000697574s [ 30.9%] initialization
|                 | |       | |  0.000175581s [  7.8%] steps
|                 | |       | |   0.00127572s [ 56.6%] creating output-file
|                 | |       | |    1.676e-06s [  0.1%] event-handling
|                 | |       | |   1.0336e-05s [  0.5%] overhead
|                 | |       | |    0.0022558s [100.0%] simulation
LOG_STATS         | info    | events
|                 | |       | |     0 state events
|                 | |       | |     0 sample events
LOG_STATS         | info    | solver
|                 | |       | |     0 steps taken
|                 | |       | |     0 calls of functionODE
|                 | |       | |     0 evaluations of jacobian
|                 | |       | |     0 error test failures
|                 | |       | |     0 convergence test failures
LOG_STATS         | info    | ### END STATISTICS ###

Mar-29-13 20:07:21
Modelica installed. Not a single code works!

OMShell Copyright 1997-2013, Open Source Modelica Consortium (OSMC)
Distributed under OMSC-PL and GPL, see www.openmodelica.org

To get help on using OMShell and OpenModelica, type "help()" and press enter
Started server using:omc +d=interactive > /tmp/omshell.log 2>&1 &
>>> checkSettings()
record OpenModelica.Scripting.CheckSettingsResult
    OPENMODELICAHOME = "/usr/local",
    OPENMODELICALIBRARY = "/usr/local/lib/omlibrary:/home/mathias/.openmodelica/libraries/",
    OMC_PATH = "/usr/local/bin/omc",
    SYSTEM_PATH = "/usr/bin:/usr/local/bin:/usr/bin:/bin:/usr/local/sbin:/usr/sbin:/sbin:/usr/bin/core_perl:/opt/qt/bin:/usr/lib/qt4/bin",
    OMDEV_PATH = "",
    OMC_FOUND = true,
    MODELICAUSERCFLAGS = "",
    WORKING_DIRECTORY = "/home/mathias",
    CREATE_FILE_WORKS = true,
    REMOVE_FILE_WORKS = true,
    OS = "linux",
    SYSTEM_INFO = "Linux laptop 3.8.4-1-ARCH #1 SMP PREEMPT Wed Mar 20 22:10:25 CET 2013 x86_64 GNU/Linux
",
    RTLIBS = "  -lrt -lgc -fopenmp -llapack  -lpthread",
    C_COMPILER = "gcc",
    C_COMPILER_VERSION = "Es werden eingebaute Spezifikationen verwendet.
COLLECT_GCC=gcc
COLLECT_LTO_WRAPPER=/usr/lib/gcc/x86_64-unknown-linux-gnu/4.7.2/lto-wrapper
Ziel: x86_64-unknown-linux-gnu
Konfiguriert mit: /build/src/gcc-4.7.2/configure --prefix=/usr --libdir=/usr/lib --libexecdir=/usr/lib --mandir=/usr/share/man --infodir=/usr/share/info --with-bugurl=https://bugs.archlinux.org/ --enable-languages=c,c++,ada,fortran,go,lto,objc,obj-c++ --enable-shared --enable-threads=posix --with-system-zlib --enable-__cxa_atexit --disable-libunwind-exceptions --enable-clocale=gnu --disable-libstdcxx-pch --enable-libstdcxx-time --enable-gnu-unique-object --enable-linker-build-id --with-ppl --enable-cloog-backend=isl --disable-ppl-version-check --disable-cloog-version-check --enable-lto --enable-gold --enable-ld=default --enable-plugin --with-plugin-ld=ld.gold --with-linker-hash-style=gnu --enable-multilib --disable-libssp --disable-build-with-cxx --disable-build-poststage1-with-cxx --enable-checking=release
Thread-Modell: posix
gcc-Version 4.7.2 (GCC)
",
    C_COMPILER_RESPONDING = true,
    HAVE_CORBA = true,
    CONFIGURE_CMDLINE = "Configured 2013-03-29 14:46:31 using arguments: '--with-omniORB --without-paradiseo --prefix=/usr/local'"
end OpenModelica.Scripting.CheckSettingsResult;
>>>


The sentence "Es werden eingebaute Spezifikationen verwendet." tells the user that buildin specifications are used.

Mar-29-13 19:54:38
Modelica installed. Not a single code works!

Hey!

I just downloaded the latest OM code from svn and compiled it on archlinux kernel 3.8.4 x86_64 with
g++ 4.7.2
./configure --with-omniORB --without-paradiseo

I tried it with paradisEO 1.3/1.4 beta and 2.0.1 (I know 2.0 is unsupported) but it seems like there are
too many comiler errors due to the original code itself... So I had to add the extra flag ...

Everything works (OMShell, OMEdit, OMNotebook, ...) but not a single code can be simulated! In
general the error starts like:

DASSL--  SOME ELEMENT OF INFO VECTOR IS NOT ZERO OR ONE
stdout            | warning | The code has encountered trouble from which it cannot recover.


I have no clue where to start on debugging this demon at all and would appreciate
any helpful advices as I need this to run on my laptop soon. Lately I used a different machine
with ubuntu (works like a charm) but I can not change my whole system just because of OM!

build/bin did not exist. After creating it by myself the makefile runs just fine!
Still there were some error about the boost lib, openscenegraph, gtkgl ...
But in the end I think it will all went through. It compiles for ages and is still
busy...
Thanks sjoelund.se for the reply!

Hey! I have some trouble compiling OpenModelica on my machine.
I hope somebody can help me to solve this issue. I have no clue
why there is an error before compiling...

 Spoiler Show Spoiler Hide Spoiler
 
[mathias@laptop openmodelica]$ ./configure-post.sh --with-omniORB
[mathias@laptop openmodelica]$ ./configure --prefix=/usr/local
checking for gcc... gcc
checking whether the C compiler works... yes
checking for C compiler default output file name... a.out
checking for suffix of executables...
checking whether we are cross compiling... no
checking for suffix of object files... o
checking whether we are using the GNU C compiler... yes
checking whether gcc accepts -g... yes
checking for gcc option to accept ISO C89... none needed
checking for g++... g++
checking whether we are using the GNU C++ compiler... yes
checking whether g++ accepts -g... yes
checking how to run the C preprocessor... gcc -E
checking whether make sets $(MAKE)... yes
checking for flex... flex
checking lex output file root... lex.yy
checking lex library... -lfl
checking whether yytext is a pointer... yes
checking x86_64 CFLAGS... adding -fPIC
checking for $RMLHOME... no
checking for rmlc... /usr/local/bin/rmlc
checking for grep that handles long lines and -e... /usr/bin/grep
checking for egrep... /usr/bin/grep -E
checking for ANSI C header files... yes
checking for sys/types.h... yes
checking for sys/stat.h... yes
checking for stdlib.h... yes
checking for string.h... yes
checking for memory.h... yes
checking for strings.h... yes
checking for inttypes.h... yes
checking for stdint.h... yes
checking for unistd.h... yes
checking sys/time.h usability... yes
checking sys/time.h presence... yes
checking for sys/time.h... yes
checking sqlite3.h usability... yes
checking sqlite3.h presence... yes
checking for sqlite3.h... yes
checking f2c.h usability... no
checking f2c.h presence... no
checking for f2c.h... no
checking for rml includefiles in /usr/local... yes
checking if the user wants RML -trace support... yes
checking for antlr.Tool support... ANTLR Parser Generator   Version 2.7.7 (20060906)   1989-2005
yes
checking if the user wants to compile OMShell-terminal... yes
checking readline/readline.h usability... yes
checking readline/readline.h presence... yes
checking for readline/readline.h... yes
checking readline/history.h usability... yes
checking readline/history.h presence... yes
checking for readline/history.h... yes
checking for library containing readline... -lreadline
checking expat.h usability... yes
checking expat.h presence... yes
checking for expat.h... yes
checking for an ANSI C-conforming const... yes
checking for size_t... yes
checking for vprintf... yes
checking for _doprnt... no
checking for getcwd... yes
checking for select... yes
checking for strdup... yes
checking for strerror... yes
checking for scandir... yes
checking for OpenMP... yes
checking for library containing dlopen... -ldl
checking for library containing sqrt... -lm
checking for library containing colamd... no
checking for library containing make_lp... -llpsolve55
checking lp_lib.h usability... no
checking lp_lib.h presence... no
checking for lp_lib.h... no
checking lpsolve/lp_lib.h usability... yes
checking lpsolve/lp_lib.h presence... yes
checking for lpsolve/lp_lib.h... yes
checking for socket... yes
checking for gethostbyname... yes
checking for sqlite3_libversion in -lsqlite3... yes
checking LAPACK flags... ok
checking kinsol/kinsol.h usability... no
checking kinsol/kinsol.h presence... no
checking for kinsol/kinsol.h... no
checking kinsol/kinsol_dense.h usability... no
checking kinsol/kinsol_dense.h presence... no
checking for kinsol/kinsol_dense.h... no
checking nvector/nvector_serial.h usability... no
checking nvector/nvector_serial.h presence... no
checking for nvector/nvector_serial.h... no
checking sundials/sundials_types.h usability... no
checking sundials/sundials_types.h presence... no
checking for sundials/sundials_types.h... no
checking sundials/sundials_math.h usability... no
checking sundials/sundials_math.h presence... no
checking for sundials/sundials_math.h... no
checking Sundials linking... failed to link KINInit
checking locale.h usability... yes
checking locale.h presence... yes
checking for locale.h... yes
checking libintl.h usability... yes
checking libintl.h presence... yes
checking for libintl.h... yes
checking gettext linking... in C-library
checking for CORBA... none
checking if the user wants to use the Python interface... no
checking if the user wants Modelica3D... yes
checking for OpenCL... checking CL/cl.h usability... no
checking CL/cl.h presence... no
checking for CL/cl.h... no
checking OpenCL/cl.h usability... no
checking OpenCL/cl.h presence... no
checking for OpenCL/cl.h... no
checking for qmake-qt4... no
checking for qmake-mac... no
checking for qmake... qmake
checking for qmake arguments... qmake
checking for qwt... with_qwt_suffix=
/usr/include/qwt/
checking if the user wants OMNotebook... yes
checking for paradisEO... //usr/local
Not compiling ModPar
Not compiling with BOOST
checking for revision... 14837
checking for OpenModelica platform name... linux-x86_64
checking for Modelica platform name... linux64
configure: creating ./config.status
config.status: creating Makefile
config.status: WARNING:  'Makefile.in' seems to ignore the --datarootdir setting
config.status: creating Compiler/Makefile
config.status: creating Compiler/omc_release/Makefile
config.status: creating Compiler/runtime/Makefile
config.status: creating Compiler/modpar/Makefile
config.status: creating Compiler/runtime/config.unix.h
config.status: creating PythonInterface/Makefile
config.status: creating PythonInterface/OMPython/OMConfig.py
config.status: creating Parser/Makefile
config.status: creating OMNotebook/OMNotebookGUI/OMNotebook.config
config.status: creating OMNotebook/OMNotebookGUI/Makefile.unix
config.status: creating OMShell/OMShellGUI/OMShell.config
config.status: creating OMShell/OMShellGUI/Makefile.unix
config.status: creating OMEdit/OMEditGUI/Makefile.unix
config.status: creating OMEdit/OMEditGUI/OMEdit.config
config.status: creating OMPlot/OMPlotGUI/Makefile.unix
config.status: creating OMPlot/OMPlotGUI/OMPlotGUI.config
config.status: creating OMOptim/build/Makefile.unix
config.status: creating OMOptim/build/OMOptim.config
config.status: creating OMOptimBasis/build/Makefile.unix
config.status: creating OMOptimBasis/build/OMOptimBasis.config
config.status: creating OMVisualize/OMVisualizeGUI/OMVisualizeGUI.config
config.status: creating testsuite/openmodelica/bootstrapping/LinkMain.makefile
config.status: creating SimulationRuntime/fmi/import/Makefile
config.status: creating SimulationRuntime/c/Makefile
config.status: creating SimulationRuntime/c/ModelicaExternalC/Makefile
config.status: creating SimulationRuntime/c/simulation/libf2c/makefile.u
config.status: creating SimulationRuntime/ParModelica/OpenCLRuntime/Makefile
config.status: creating SimulationRuntime/interactive/Makefile
config.status: creating mosh/src/Makefile
config.status: executing config.unix.h.fix commands

Configured OpenModelica successfully using the following options:
Simulations may use sundials suite: No
Simulations may use IPOPT: No
ParModelica: No
Build OMNotebook: Yes

[mathias@laptop openmodelica]$ make
make -C testsuite/ -f Makefile omc-diff
make[1]: Entering directory `/home/mathias/software/openmodelica/testsuite'
make -C difftool
make[2]: Entering directory `/home/mathias/software/openmodelica/testsuite/difftool'
flex omc-diff.l
gcc -o ../../build/bin/omc-diff lex.yy.c
/usr/bin/ld: cannot open output file ../../build/bin/omc-diff: Datei oder Verzeichnis nicht gefunden
collect2: Fehler: ld gab 1 als Ende-Status zurück
make[2]: *** [../../build/bin/omc-diff] Fehler 1
make[2]: Leaving directory `/home/mathias/software/openmodelica/testsuite/difftool'
make[1]: *** [omc-diff] Fehler 2
make[1]: Leaving directory `/home/mathias/software/openmodelica/testsuite'
make: *** [omc-diff] Fehler 2
[mathias@laptop openmodelica]$

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