Opened 9 years ago
Closed 9 years ago
#3413 closed defect (fixed)
OMNotebook fails to simulate on OS X
Reported by: | Henning Kiel | Owned by: | Henning Kiel |
---|---|---|---|
Priority: | high | Milestone: | 1.9.3 |
Component: | Run-time | Version: | trunk |
Keywords: | Cc: |
Description
Running the "HelloWorld" example from the DrModelica does not work on my OS X (local build from git).
I run OMNotebook from command line without installation: build/Applications/OMNotebook.app/Contents/MacOS/OMNotebook
Running simulations in OMEdit this way works fine.
OMNotebook compiles everything fine (executable is produced in tmp folder), but system() call seems to fail with "interrupted system call" though:
record SimulationResult resultFile = "", messages = "Failed to build model: HelloWorld" end SimulationResult; OMC-ERROR: "Error: system(make -j4 -f HelloWorld.makefile) failed: Interrupted system call Error: Error building simulator. Build log: clang -O0 -march=native -I"/Users/henning/src/OpenModelica/build/include/omc/c" -I. -DOPENMODELICA_XML_FROM_FILE_AT_RUNTIME -c -o HelloWorld.o HelloWorld.c clang -O0 -march=native -I"/Users/henning/src/OpenModelica/build/include/omc/c" -I. -DOPENMODELICA_XML_FROM_FILE_AT_RUNTIME -c -o HelloWorld_functions.o HelloWorld_functions.c clang -O0 -march=native -I"/Users/henning/src/OpenModelica/build/include/omc/c" -I. -DOPENMODELICA_XML_FROM_FILE_AT_RUNTIME -c -o HelloWorld_records.o HelloWorld_records.c clang -O0 -march=native -I"/Users/henning/src/OpenModelica/build/include/omc/c" -I. -DOPENMODELICA_XML_FROM_FILE_AT_RUNTIME -c -o HelloWorld_01exo.o HelloWorld_01exo.c clang -O0 -march=native -I"/Users/henning/src/OpenModelica/build/include/omc/c" -I. -DOPENMODELICA_XML_FROM_FILE_AT_RUNTIME -c -o HelloWorld_02nls.o HelloWorld_02nls.c clang -O0 -march=native -I"/Users/henning/src/OpenModelica/build/include/omc/c" -I. -DOPENMODELICA_XML_FROM_FILE_AT_RUNTIME -c -o HelloWorld_03lsy.o HelloWorld_03lsy.c clang -O0 -march=native -I"/Users/henning/src/OpenModelica/build/include/omc/c" -I. -DOPENMODELICA_XML_FROM_FILE_AT_RUNTIME -c -o HelloWorld_04set.o HelloWorld_04set.c clang -O0 -march=native -I"/Users/henning/src/OpenModelica/build/include/omc/c" -I. -DOPENMODELICA_XML_FROM_FILE_AT_RUNTIME -c -o HelloWorld_05evt.o HelloWorld_05evt.c clang -O0 -march=native -I"/Users/henning/src/OpenModelica/build/include/omc/c" -I. -DOPENMODELICA_XML_FROM_FILE_AT_RUNTIME -c -o HelloWorld_06inz.o HelloWorld_06inz.c clang -O0 -march=native -I"/Users/henning/src/OpenModelica/build/include/omc/c" -I. -DOPENMODELICA_XML_FROM_FILE_AT_RUNTIME -c -o HelloWorld_07dly.o HelloWorld_07dly.c clang -O0 -march=native -I"/Users/henning/src/OpenModelica/build/include/omc/c" -I. -DOPENMODELICA_XML_FROM_FILE_AT_RUNTIME -c -o HelloWorld_08bnd.o HelloWorld_08bnd.c clang -O0 -march=native -I"/Users/henning/src/OpenModelica/build/include/omc/c" -I. -DOPENMODELICA_XML_FROM_FILE_AT_RUNTIME -c -o HelloWorld_09alg.o HelloWorld_09alg.c clang -O0 -march=native -I"/Users/henning/src/OpenModelica/build/include/omc/c" -I. -DOPENMODELICA_XML_FROM_FILE_AT_RUNTIME -c -o HelloWorld_10asr.o HelloWorld_10asr.c clang -O0 -march=native -I"/Users/henning/src/OpenModelica/build/include/omc/c" -I. -DOPENMODELICA_XML_FROM_FILE_AT_RUNTIME -c -o HelloWorld_11mix.o HelloWorld_11mix.c clang -O0 -march=native -I"/Users/henning/src/OpenModelica/build/include/omc/c" -I. -DOPENMODELICA_XML_FROM_FILE_AT_RUNTIME -c -o HelloWorld_12jac.o HelloWorld_12jac.c clang -O0 -march=native -I"/Users/henning/src/OpenModelica/build/include/omc/c" -I. -DOPENMODELICA_XML_FROM_FILE_AT_RUNTIME -c -o HelloWorld_13opt.o HelloWorld_13opt.c clang -O0 -march=native -I"/Users/henning/src/OpenModelica/build/include/omc/c" -I. -DOPENMODELICA_XML_FROM_FILE_AT_RUNTIME -c -o HelloWorld_14lnz.o HelloWorld_14lnz.c clang -O0 -march=native -I"/Users/henning/src/OpenModelica/build/include/omc/c" -I. -DOPENMODELICA_XML_FROM_FILE_AT_RUNTIME -c -o HelloWorld_15syn.o HelloWorld_15syn.c clang -I. -o HelloWorld HelloWorld.o HelloWorld_functions.o HelloWorld_records.o HelloWorld_01exo.o HelloWorld_02nls.o HelloWorld_03lsy.o HelloWorld_04set.o HelloWorld_05evt.o HelloWorld_06inz.o HelloWorld_07dly.o HelloWorld_08bnd.o HelloWorld_09alg.o HelloWorld_10asr.o HelloWorld_11mix.o HelloWorld_12jac.o HelloWorld_13opt.o HelloWorld_14lnz.o HelloWorld_15syn.o -I"/Users/henning/src/OpenModelica/build/include/omc/c" -I. -DOPENMODELICA_XML_FROM_FILE_AT_RUNTIME -O0 -march=native -L"/Users/henning/src/OpenModelica/build/lib/x86_64-darwin13.4.0/omc" -L"/Users/henning/src/OpenModelica/build/lib" -Wl,-rpath,"/Users/henning/src/OpenModelica/build/lib/x86_64-darwin13.4.0/omc" -Wl,-rpath,"/Users/henning/src/OpenModelica/build/lib" -lSimulationRuntimeC -llapack -lblas -lm -lomcgc "
Change History (6)
comment:1 by , 9 years ago
comment:2 by , 9 years ago
setCommandLineOptions("-n=1")
is accepted and I see that a following simulation uses "-j1" option for make
comment:4 by , 9 years ago
yes, it still fails.
Same output except for the "-j1"
plot( x )
afterwards gives a 'false'
comment:5 by , 9 years ago
Component: | Unknown → Run-time |
---|---|
Milestone: | Future → 1.9.3 |
Owner: | changed from | to
Status: | new → assigned |
waitpid() returns with EINTR. Solution is to fix SystemImplsystemCall() by repeating waitpid() until anything else than EINTR is received.
comment:6 by , 9 years ago
Resolution: | → fixed |
---|---|
Status: | assigned → closed |
Does running
setCommandLineOptions("-n=1")
in a cell work?