Skip to content

Failed

tests / 04 testsuite-clang 1/3 / openmodelica_omsi_omsic.simulateSimpleOMSU.mos (from (result.xml))

Failing for the past 1 build (Since #8 )
Took 1 sec.

Stacktrace

Output mismatch (see stdout for details)

Standard Output

 + simulateSimpleOMSU                                                                ... equation mismatch [time: 1]

==== Log /tmp/omc-rtest-omtmpuser/openmodelica/omsi/omsic/simulateSimpleOMSU.mos_temp1516/log-simulateSimpleOMSU.mos
true
""
""
true
""
""
"Warning: The initial conditions are not fully specified. For more information set -d=initialization. In OMEdit Tools->Options->Simulation->Show additional information from the initialization process, in OMNotebook call setCommandLineOptions(\"-d=initialization\").
Error: Error building simulator. Build log: make: Entering directory '/var/lib/jenkins1/ws/OpenModelica_PR-12404/testsuite/openmodelica/omsi/omsic/simulateSimpleOMSU.mos_temp1516/helloWorldOMSU.fmutmp'
mkdir -p helloWorldOMSU.fmutmp/sources helloWorldOMSU.fmutmp/sources/include helloWorldOMSU.fmutmp/sources/libs
mkdir -p helloWorldOMSU.fmutmp/resources
mkdir -p helloWorldOMSU.fmutmp/binaries/linux64
# Basic OMSI and OMSIC files
cp -a '/var/lib/jenkins1/ws/OpenModelica_PR-12404/build/bin/..'/include/omc/omsi/* helloWorldOMSU.fmutmp/sources/include/
cp -a '/var/lib/jenkins1/ws/OpenModelica_PR-12404/build/bin/..'/include/omc/omsic/* helloWorldOMSU.fmutmp/sources/include/
cp -a '/var/lib/jenkins1/ws/OpenModelica_PR-12404/build/bin/../lib/x86_64-linux-gnu'/omc/omsi/libOMSIBase_static.* helloWorldOMSU.fmutmp/sources/libs
cp -a '/var/lib/jenkins1/ws/OpenModelica_PR-12404/build/bin/../lib/x86_64-linux-gnu'/omc/omsi/libOMSIC_static.* helloWorldOMSU.fmutmp/sources/libs
cp -a '/var/lib/jenkins1/ws/OpenModelica_PR-12404/build/bin/../lib/x86_64-linux-gnu'/omc/omsi/libOMSISolver_static.* helloWorldOMSU.fmutmp/sources/libs
# Third party libraries
cp -f '/var/lib/jenkins1/ws/OpenModelica_PR-12404/build/bin/../lib/x86_64-linux-gnu'/omc/omsi/libexpat.* helloWorldOMSU.fmutmp/sources/libs
cp -fP '/var/lib/jenkins1/ws/OpenModelica_PR-12404/build/bin/../lib/x86_64-linux-gnu'/omc/libsundials_kinsol.so* '/var/lib/jenkins1/ws/OpenModelica_PR-12404/build/bin/../lib/x86_64-linux-gnu'/omc/libsundials_nvecserial.so*  helloWorldOMSU.fmutmp/binaries/linux64
cp -a modelDescription.xml helloWorldOMSU.fmutmp/
cp -a helloWorldOMSU_omsic.c helloWorldOMSU_init_eqns.c   helloWorldOMSU_sim_eqns.c   helloWorldOMSU.fmutmp/sources/
cp -a helloWorldOMSU_omsic.h helloWorldOMSU_init_eqns.h helloWorldOMSU_sim_eqns.h helloWorldOMSU.fmutmp/sources/include
cp -a helloWorldOMSU_info.json helloWorldOMSU.fmutmp/resources/
cp -a helloWorldOMSU_init.xml helloWorldOMSU.fmutmp/resources/
clang -fPIC -Wall -Wextra -ansi -pedantic -g -I'/var/lib/jenkins1/ws/OpenModelica_PR-12404/build/bin/..'/include/omc/omsi  -I'/var/lib/jenkins1/ws/OpenModelica_PR-12404/build/bin/..'/include/omc/omsi/base -I'/var/lib/jenkins1/ws/OpenModelica_PR-12404/build/bin/..'/include/omc/omsi/solver -I'/var/lib/jenkins1/ws/OpenModelica_PR-12404/build/bin/..'/include/omc/omsi/fmi2 -I'/var/lib/jenkins1/ws/OpenModelica_PR-12404/build/bin/..'/include/omc/omsic -I'/var/lib/jenkins1/ws/OpenModelica_PR-12404/build/bin/..'/include/omc/omsic/fmi2 -c helloWorldOMSU_omsic.c
helloWorldOMSU_omsic.c:49:54: warning: unused parameter 'sample_events' [-Wunused-parameter]
   49 | void helloWorldOMSU_instantiate_samples(omsi_sample* sample_events)
      |                                                      ^
1 warning generated.
clang -fPIC -Wall -Wextra -ansi -pedantic -g -I'/var/lib/jenkins1/ws/OpenModelica_PR-12404/build/bin/..'/include/omc/omsi  -I'/var/lib/jenkins1/ws/OpenModelica_PR-12404/build/bin/..'/include/omc/omsi/base -I'/var/lib/jenkins1/ws/OpenModelica_PR-12404/build/bin/..'/include/omc/omsi/solver -I'/var/lib/jenkins1/ws/OpenModelica_PR-12404/build/bin/..'/include/omc/omsi/fmi2 -I'/var/lib/jenkins1/ws/OpenModelica_PR-12404/build/bin/..'/include/omc/omsic -I'/var/lib/jenkins1/ws/OpenModelica_PR-12404/build/bin/..'/include/omc/omsic/fmi2 -c helloWorldOMSU_init_eqns.c
helloWorldOMSU_init_eqns.c:66:27: error: incompatible function pointer types assigning to 'omsi_status (*)(struct omsi_function_t *, const omsi_values *, void *)' (aka 'omsi_status (*)(struct omsi_function_t *, const struct omsi_values *, void *)') from 'omsi_status (omsi_function_t *, omsi_values *, void *)' (aka 'omsi_status (struct omsi_function_t *, struct omsi_values *, void *)') [-Wincompatible-function-pointer-types]
   66 |   omsi_function->evaluate = helloWorldOMSU_init_eqns_allEqns;
      |                           ^ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
helloWorldOMSU_init_eqns.c:77:86: warning: unused parameter 'model_vars_and_params' [-Wunused-parameter]
   77 |  void helloWorldOMSU_eqFunction_1(omsi_function_t* this_function, const omsi_values* model_vars_and_params){
      |                                                                                      ^
helloWorldOMSU_init_eqns.c:101:23: warning: variable 'new_status' set but not used [-Wunused-but-set-variable]
  101 |   omsi_status status, new_status;
      |                       ^
helloWorldOMSU_init_eqns.c:97:116: warning: unused parameter 'data' [-Wunused-parameter]
   97 | omsi_status helloWorldOMSU_init_eqns_allEqns(omsi_function_t* init_eqns, omsi_values* model_vars_and_params, void* data){
      |                                                                                                                    ^
3 warnings and 1 error generated.
make: *** [helloWorldOMSU_FMU.makefile:95: helloWorldOMSU_init_eqns.o] Error 1
make: Leaving directory '/var/lib/jenkins1/ws/OpenModelica_PR-12404/testsuite/openmodelica/omsi/omsic/simulateSimpleOMSU.mos_temp1516/helloWorldOMSU.fmutmp'
"
1
""
"error:   [oms_extractFMIKind] failed to extract \"modelDescription.xml\" from \"helloWorldOMSU.fmu\"
error:   [oms_RunFile] oms_extractFMIKind failed
info:    0 warnings
info:    2 errors
"
{NaN,NaN}
{NaN,NaN}

Equation mismatch: diff says:
--- /tmp/omc-rtest-omtmpuser/openmodelica/omsi/omsic/simulateSimpleOMSU.mos_temp1516/equations-expected2024-06-15 02:03:05.012605505 +0000
+++ /tmp/omc-rtest-omtmpuser/openmodelica/omsi/omsic/simulateSimpleOMSU.mos_temp1516/equations-got2024-06-15 02:03:06.356597164 +0000
@@ -1,18 +1,56 @@
 true
 ""
 ""
 true
 ""
-"helloWorldOMSU.fmu"
+""
 "Warning: The initial conditions are not fully specified. For more information set -d=initialization. In OMEdit Tools->Options->Simulation->Show additional information from the initialization process, in OMNotebook call setCommandLineOptions(\"-d=initialization\").
+Error: Error building simulator. Build log: make: Entering directory '/var/lib/jenkins1/ws/OpenModelica_PR-12404/testsuite/openmodelica/omsi/omsic/simulateSimpleOMSU.mos_temp1516/helloWorldOMSU.fmutmp'
+mkdir -p helloWorldOMSU.fmutmp/sources helloWorldOMSU.fmutmp/sources/include helloWorldOMSU.fmutmp/sources/libs
+mkdir -p helloWorldOMSU.fmutmp/resources
+mkdir -p helloWorldOMSU.fmutmp/binaries/linux64
+# Basic OMSI and OMSIC files
+cp -a '/var/lib/jenkins1/ws/OpenModelica_PR-12404/build/bin/..'/include/omc/omsi/* helloWorldOMSU.fmutmp/sources/include/
+cp -a '/var/lib/jenkins1/ws/OpenModelica_PR-12404/build/bin/..'/include/omc/omsic/* helloWorldOMSU.fmutmp/sources/include/
+cp -a '/var/lib/jenkins1/ws/OpenModelica_PR-12404/build/bin/../lib/x86_64-linux-gnu'/omc/omsi/libOMSIBase_static.* helloWorldOMSU.fmutmp/sources/libs
+cp -a '/var/lib/jenkins1/ws/OpenModelica_PR-12404/build/bin/../lib/x86_64-linux-gnu'/omc/omsi/libOMSIC_static.* helloWorldOMSU.fmutmp/sources/libs
+cp -a '/var/lib/jenkins1/ws/OpenModelica_PR-12404/build/bin/../lib/x86_64-linux-gnu'/omc/omsi/libOMSISolver_static.* helloWorldOMSU.fmutmp/sources/libs
+# Third party libraries
+cp -f '/var/lib/jenkins1/ws/OpenModelica_PR-12404/build/bin/../lib/x86_64-linux-gnu'/omc/omsi/libexpat.* helloWorldOMSU.fmutmp/sources/libs
+cp -fP '/var/lib/jenkins1/ws/OpenModelica_PR-12404/build/bin/../lib/x86_64-linux-gnu'/omc/libsundials_kinsol.so* '/var/lib/jenkins1/ws/OpenModelica_PR-12404/build/bin/../lib/x86_64-linux-gnu'/omc/libsundials_nvecserial.so*  helloWorldOMSU.fmutmp/binaries/linux64
+cp -a modelDescription.xml helloWorldOMSU.fmutmp/
+cp -a helloWorldOMSU_omsic.c helloWorldOMSU_init_eqns.c   helloWorldOMSU_sim_eqns.c   helloWorldOMSU.fmutmp/sources/
+cp -a helloWorldOMSU_omsic.h helloWorldOMSU_init_eqns.h helloWorldOMSU_sim_eqns.h helloWorldOMSU.fmutmp/sources/include
+cp -a helloWorldOMSU_info.json helloWorldOMSU.fmutmp/resources/
+cp -a helloWorldOMSU_init.xml helloWorldOMSU.fmutmp/resources/
+clang -fPIC -Wall -Wextra -ansi -pedantic -g -I'/var/lib/jenkins1/ws/OpenModelica_PR-12404/build/bin/..'/include/omc/omsi  -I'/var/lib/jenkins1/ws/OpenModelica_PR-12404/build/bin/..'/include/omc/omsi/base -I'/var/lib/jenkins1/ws/OpenModelica_PR-12404/build/bin/..'/include/omc/omsi/solver -I'/var/lib/jenkins1/ws/OpenModelica_PR-12404/build/bin/..'/include/omc/omsi/fmi2 -I'/var/lib/jenkins1/ws/OpenModelica_PR-12404/build/bin/..'/include/omc/omsic -I'/var/lib/jenkins1/ws/OpenModelica_PR-12404/build/bin/..'/include/omc/omsic/fmi2 -c helloWorldOMSU_omsic.c
+helloWorldOMSU_omsic.c:49:54: warning: unused parameter 'sample_events' [-Wunused-parameter]
+49 | void helloWorldOMSU_instantiate_samples(omsi_sample* sample_events)
+| ^
+1 warning generated.
+clang -fPIC -Wall -Wextra -ansi -pedantic -g -I'/var/lib/jenkins1/ws/OpenModelica_PR-12404/build/bin/..'/include/omc/omsi  -I'/var/lib/jenkins1/ws/OpenModelica_PR-12404/build/bin/..'/include/omc/omsi/base -I'/var/lib/jenkins1/ws/OpenModelica_PR-12404/build/bin/..'/include/omc/omsi/solver -I'/var/lib/jenkins1/ws/OpenModelica_PR-12404/build/bin/..'/include/omc/omsi/fmi2 -I'/var/lib/jenkins1/ws/OpenModelica_PR-12404/build/bin/..'/include/omc/omsic -I'/var/lib/jenkins1/ws/OpenModelica_PR-12404/build/bin/..'/include/omc/omsic/fmi2 -c helloWorldOMSU_init_eqns.c
+helloWorldOMSU_init_eqns.c:66:27: error: incompatible function pointer types assigning to 'omsi_status (*)(struct omsi_function_t *, const omsi_values *, void *)' (aka 'omsi_status (*)(struct omsi_function_t *, const struct omsi_values *, void *)') from 'omsi_status (omsi_function_t *, omsi_values *, void *)' (aka 'omsi_status (struct omsi_function_t *, struct omsi_values *, void *)') [-Wincompatible-function-pointer-types]
+66 |   omsi_function->evaluate = helloWorldOMSU_init_eqns_allEqns;
+| ^ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+helloWorldOMSU_init_eqns.c:77:86: warning: unused parameter 'model_vars_and_params' [-Wunused-parameter]
+77 |  void helloWorldOMSU_eqFunction_1(omsi_function_t* this_function, const omsi_values* model_vars_and_params){
+| ^
+helloWorldOMSU_init_eqns.c:101:23: warning: variable 'new_status' set but not used [-Wunused-but-set-variable]
+101 |   omsi_status status, new_status;
+| ^
+helloWorldOMSU_init_eqns.c:97:116: warning: unused parameter 'data' [-Wunused-parameter]
+97 | omsi_status helloWorldOMSU_init_eqns_allEqns(omsi_function_t* init_eqns, omsi_values* model_vars_and_params, void* data){
+| ^
+3 warnings and 1 error generated.
+make: *** [helloWorldOMSU_FMU.makefile:95: helloWorldOMSU_init_eqns.o] Error 1
+make: Leaving directory '/var/lib/jenkins1/ws/OpenModelica_PR-12404/testsuite/openmodelica/omsi/omsic/simulateSimpleOMSU.mos_temp1516/helloWorldOMSU.fmutmp'
 "
-0
+1
 ""
-"info:    maximum step size for 'model.root': 0.002000
-info:    Result file: helloWorldOMSU_res.mat (bufferSize=1)
-info:    Final Statistics for 'model.root':
-NumSteps = 505 NumRhsEvals  = 510 NumLinSolvSetups = 30
-NumNonlinSolvIters = 509 NumNonlinSolvConvFails = 0 NumErrTestFails = 1
+"error: [oms_extractFMIKind] failed to extract \"modelDescription.xml\" from \"helloWorldOMSU.fmu\"
+error: [oms_RunFile] oms_extractFMIKind failed
+info: 0 warnings
+info: 2 errors
 "
-{1.0,7.389140833856468}
-{2.0,14.778281667712935}
+{NaN,NaN}
+{NaN,NaN}

Equation mismatch: omc-diff says:
Failed 'h' '"'
Line 6: Text differs:
expected: "helloWorldOMSU.fmu"
got:      ""

== 1 out of 1 tests failed [openmodelica/omsi/omsic/simulateSimpleOMSU.mos_temp1516, time: 1]