Skip to content

Failed

tests / 01 testsuite-gcc 1/3 / simulation_modelica_inlineFunction.inlineArray2.mos (from (result.xml))

Failing for the past 86 builds (Since #1 )
Took 3 sec.

Stacktrace

Output mismatch (see stdout for details)

Standard Output

 + inlineArray2                                                                      ... equation mismatch [time: 3]

==== Log /tmp/omc-rtest-unknown/simulation/modelica/inlineFunction/inlineArray2.mos_temp5616/log-inlineArray2.mos
true
true
""
true
""
record SimulationResult
    resultFile = "",
    simulationOptions = "startTime = 0.0, stopTime = 1.0, numberOfIntervals = 500, tolerance = 1e-6, method = 'dassl', fileNamePrefix = 'foo', options = '', outputFormat = 'mat', variableFilter = '.*', cflags = '', simflags = ''",
    messages = "Failed to build model: foo"
end SimulationResult;
"Warning: There are tearing variables with annotation attribute '__OpenModelica_tearingSelect = never'. Use -d=tearingdump and -d=tearingdumpV for more information.
Error: Error building simulator. Build log: gcc  -O0 -DOM_HAVE_PTHREADS -fPIC -falign-functions -mfpmath=sse -fno-dollars-in-identifiers -Wno-parentheses-equality     -I\"/var/lib/jenkins/ws/OpenModelica_PR-9221/build/bin/../include/omc/c\" -I\"/var/lib/jenkins/ws/OpenModelica_PR-9221/build/bin/../include/omc\" -I. -DOPENMODELICA_XML_FROM_FILE_AT_RUNTIME -DOMC_MODEL_PREFIX=foo -DOMC_NUM_MIXED_SYSTEMS=0 -DOMC_NUM_LINEAR_SYSTEMS=4 -DOMC_NUM_NONLINEAR_SYSTEMS=2 -DOMC_NDELAY_EXPRESSIONS=0 -DOMC_NVAR_STRING=0  -c -o foo.o foo.c
gcc  -O0 -DOM_HAVE_PTHREADS -fPIC -falign-functions -mfpmath=sse -fno-dollars-in-identifiers -Wno-parentheses-equality     -I\"/var/lib/jenkins/ws/OpenModelica_PR-9221/build/bin/../include/omc/c\" -I\"/var/lib/jenkins/ws/OpenModelica_PR-9221/build/bin/../include/omc\" -I. -DOPENMODELICA_XML_FROM_FILE_AT_RUNTIME -DOMC_MODEL_PREFIX=foo -DOMC_NUM_MIXED_SYSTEMS=0 -DOMC_NUM_LINEAR_SYSTEMS=4 -DOMC_NUM_NONLINEAR_SYSTEMS=2 -DOMC_NDELAY_EXPRESSIONS=0 -DOMC_NVAR_STRING=0  -c -o foo_functions.o foo_functions.c
gcc  -O0 -DOM_HAVE_PTHREADS -fPIC -falign-functions -mfpmath=sse -fno-dollars-in-identifiers -Wno-parentheses-equality     -I\"/var/lib/jenkins/ws/OpenModelica_PR-9221/build/bin/../include/omc/c\" -I\"/var/lib/jenkins/ws/OpenModelica_PR-9221/build/bin/../include/omc\" -I. -DOPENMODELICA_XML_FROM_FILE_AT_RUNTIME -DOMC_MODEL_PREFIX=foo -DOMC_NUM_MIXED_SYSTEMS=0 -DOMC_NUM_LINEAR_SYSTEMS=4 -DOMC_NUM_NONLINEAR_SYSTEMS=2 -DOMC_NDELAY_EXPRESSIONS=0 -DOMC_NVAR_STRING=0  -c -o foo_records.o foo_records.c
gcc  -O0 -DOM_HAVE_PTHREADS -fPIC -falign-functions -mfpmath=sse -fno-dollars-in-identifiers -Wno-parentheses-equality     -I\"/var/lib/jenkins/ws/OpenModelica_PR-9221/build/bin/../include/omc/c\" -I\"/var/lib/jenkins/ws/OpenModelica_PR-9221/build/bin/../include/omc\" -I. -DOPENMODELICA_XML_FROM_FILE_AT_RUNTIME -DOMC_MODEL_PREFIX=foo -DOMC_NUM_MIXED_SYSTEMS=0 -DOMC_NUM_LINEAR_SYSTEMS=4 -DOMC_NUM_NONLINEAR_SYSTEMS=2 -DOMC_NDELAY_EXPRESSIONS=0 -DOMC_NVAR_STRING=0  -c -o foo_01exo.o foo_01exo.c
gcc  -O0 -DOM_HAVE_PTHREADS -fPIC -falign-functions -mfpmath=sse -fno-dollars-in-identifiers -Wno-parentheses-equality     -I\"/var/lib/jenkins/ws/OpenModelica_PR-9221/build/bin/../include/omc/c\" -I\"/var/lib/jenkins/ws/OpenModelica_PR-9221/build/bin/../include/omc\" -I. -DOPENMODELICA_XML_FROM_FILE_AT_RUNTIME -DOMC_MODEL_PREFIX=foo -DOMC_NUM_MIXED_SYSTEMS=0 -DOMC_NUM_LINEAR_SYSTEMS=4 -DOMC_NUM_NONLINEAR_SYSTEMS=2 -DOMC_NDELAY_EXPRESSIONS=0 -DOMC_NVAR_STRING=0  -c -o foo_02nls.o foo_02nls.c
gcc  -O0 -DOM_HAVE_PTHREADS -fPIC -falign-functions -mfpmath=sse -fno-dollars-in-identifiers -Wno-parentheses-equality     -I\"/var/lib/jenkins/ws/OpenModelica_PR-9221/build/bin/../include/omc/c\" -I\"/var/lib/jenkins/ws/OpenModelica_PR-9221/build/bin/../include/omc\" -I. -DOPENMODELICA_XML_FROM_FILE_AT_RUNTIME -DOMC_MODEL_PREFIX=foo -DOMC_NUM_MIXED_SYSTEMS=0 -DOMC_NUM_LINEAR_SYSTEMS=4 -DOMC_NUM_NONLINEAR_SYSTEMS=2 -DOMC_NDELAY_EXPRESSIONS=0 -DOMC_NVAR_STRING=0  -c -o foo_03lsy.o foo_03lsy.c
foo_03lsy.c: In function 'foo_eqFunction_290':
foo_03lsy.c:170:119: error: incompatible type for argument 1 of 'mul_alloc_real_array_scalar'
  170 |   (parentJacobian->tmpVars[27]) /* __OMC__71$LOOPT.$pDERA.dummyVarA JACOBIAN_TMP_VAR */ = mul_alloc_real_array_scalar(0.1, (parentJacobian->tmpVars[86]) /* y$$Pfoo$Pf22.$pDERA.dummyVarA[1] JACOBIAN_TMP_VAR */ + (parentJacobian->tmpVars[94]) /* y$$Pfoo$Pf4.$pDERA.dummyVarA[2] JACOBIAN_TMP_VAR */ + (parentJacobian->tmpVars[95]) /* y$$Pfoo$Pf4.$pDERA.dummyVarA[3] JACOBIAN_TMP_VAR */ + (parentJacobian->tmpVars[96]) /* y$$Pfoo$Pf4.$pDERA.dummyVarA[4] JACOBIAN_TMP_VAR */ + (parentJacobian->tmpVars[97]) /* y$$Pfoo$Pf4.$pDERA.dummyVarA[5] JACOBIAN_TMP_VAR */ + (parentJacobian->tmpVars[98]) /* y$$Pfoo$Pf4.$pDERA.dummyVarA[6] JACOBIAN_TMP_VAR */ + (parentJacobian->tmpVars[99]) /* y$$Pfoo$Pf4.$pDERA.dummyVarA[7] JACOBIAN_TMP_VAR */);
      |                                                                                                                       ^~~
      |                                                                                                                       |
      |                                                                                                                       double
In file included from /var/lib/jenkins/ws/OpenModelica_PR-9221/build/bin/../include/omc/c/openmodelica_func.h:50,
                 from foo_model.h:6,
                 from foo_03lsy.c:2:
/var/lib/jenkins/ws/OpenModelica_PR-9221/build/bin/../include/omc/c/util/real_array.h:159:64: note: expected 'real_array' {aka 'const struct base_array_s'} but argument is of type 'double'
  159 | extern real_array mul_alloc_real_array_scalar(const real_array a, const modelica_real b);
      |                                               ~~~~~~~~~~~~~~~~~^
foo_03lsy.c: At top level:
cc1: note: unrecognized command-line option '-Wno-parentheses-equality' may have been intended to silence earlier diagnostics
make: *** [<builtin>: foo_03lsy.o] Error 1
"



Equation mismatch: diff says:
--- /tmp/omc-rtest-unknown/simulation/modelica/inlineFunction/inlineArray2.mos_temp5616/equations-expected2024-01-20 04:08:27.334252545 +0000
+++ /tmp/omc-rtest-unknown/simulation/modelica/inlineFunction/inlineArray2.mos_temp5616/equations-got2024-01-20 04:08:30.002184287 +0000
@@ -2,14 +2,34 @@
 true
 ""
 true
 ""
 record SimulationResult
-resultFile = "foo_res.mat",
-simulationOptions = "startTime = 0.0, stopTime = 1.0, numberOfIntervals = 500, tolerance = 1e-06, method = 'dassl', fileNamePrefix = 'foo', options = '', outputFormat = 'mat', variableFilter = '.*', cflags = '', simflags = ''",
-messages = "LOG_SUCCESS       | info    | The initialization finished successfully without homotopy method.
-LOG_SUCCESS       | info    | The simulation finished successfully.
-"
+resultFile = "",
+simulationOptions = "startTime = 0.0, stopTime = 1.0, numberOfIntervals = 500, tolerance = 1e-6, method = 'dassl', fileNamePrefix = 'foo', options = '', outputFormat = 'mat', variableFilter = '.*', cflags = '', simflags = ''",
+messages = "Failed to build model: foo"
 end SimulationResult;
-""
-{-1.0,-0.9862025310764797,-0.9859173056116497}
-{1.0,1.464675331140519,1.826435278620429}
+"Warning: There are tearing variables with annotation attribute '__OpenModelica_tearingSelect = never'. Use -d=tearingdump and -d=tearingdumpV for more information.
+Error: Error building simulator. Build log: gcc  -O0 -DOM_HAVE_PTHREADS -fPIC -falign-functions -mfpmath=sse -fno-dollars-in-identifiers -Wno-parentheses-equality     -I\"/var/lib/jenkins/ws/OpenModelica_PR-9221/build/bin/../include/omc/c\" -I\"/var/lib/jenkins/ws/OpenModelica_PR-9221/build/bin/../include/omc\" -I. -DOPENMODELICA_XML_FROM_FILE_AT_RUNTIME -DOMC_MODEL_PREFIX=foo -DOMC_NUM_MIXED_SYSTEMS=0 -DOMC_NUM_LINEAR_SYSTEMS=4 -DOMC_NUM_NONLINEAR_SYSTEMS=2 -DOMC_NDELAY_EXPRESSIONS=0 -DOMC_NVAR_STRING=0  -c -o foo.o foo.c
+gcc -O0 -DOM_HAVE_PTHREADS -fPIC -falign-functions -mfpmath=sse -fno-dollars-in-identifiers -Wno-parentheses-equality     -I\"/var/lib/jenkins/ws/OpenModelica_PR-9221/build/bin/../include/omc/c\" -I\"/var/lib/jenkins/ws/OpenModelica_PR-9221/build/bin/../include/omc\" -I. -DOPENMODELICA_XML_FROM_FILE_AT_RUNTIME -DOMC_MODEL_PREFIX=foo -DOMC_NUM_MIXED_SYSTEMS=0 -DOMC_NUM_LINEAR_SYSTEMS=4 -DOMC_NUM_NONLINEAR_SYSTEMS=2 -DOMC_NDELAY_EXPRESSIONS=0 -DOMC_NVAR_STRING=0  -c -o foo_functions.o foo_functions.c
+gcc -O0 -DOM_HAVE_PTHREADS -fPIC -falign-functions -mfpmath=sse -fno-dollars-in-identifiers -Wno-parentheses-equality     -I\"/var/lib/jenkins/ws/OpenModelica_PR-9221/build/bin/../include/omc/c\" -I\"/var/lib/jenkins/ws/OpenModelica_PR-9221/build/bin/../include/omc\" -I. -DOPENMODELICA_XML_FROM_FILE_AT_RUNTIME -DOMC_MODEL_PREFIX=foo -DOMC_NUM_MIXED_SYSTEMS=0 -DOMC_NUM_LINEAR_SYSTEMS=4 -DOMC_NUM_NONLINEAR_SYSTEMS=2 -DOMC_NDELAY_EXPRESSIONS=0 -DOMC_NVAR_STRING=0  -c -o foo_records.o foo_records.c
+gcc -O0 -DOM_HAVE_PTHREADS -fPIC -falign-functions -mfpmath=sse -fno-dollars-in-identifiers -Wno-parentheses-equality     -I\"/var/lib/jenkins/ws/OpenModelica_PR-9221/build/bin/../include/omc/c\" -I\"/var/lib/jenkins/ws/OpenModelica_PR-9221/build/bin/../include/omc\" -I. -DOPENMODELICA_XML_FROM_FILE_AT_RUNTIME -DOMC_MODEL_PREFIX=foo -DOMC_NUM_MIXED_SYSTEMS=0 -DOMC_NUM_LINEAR_SYSTEMS=4 -DOMC_NUM_NONLINEAR_SYSTEMS=2 -DOMC_NDELAY_EXPRESSIONS=0 -DOMC_NVAR_STRING=0  -c -o foo_01exo.o foo_01exo.c
+gcc -O0 -DOM_HAVE_PTHREADS -fPIC -falign-functions -mfpmath=sse -fno-dollars-in-identifiers -Wno-parentheses-equality     -I\"/var/lib/jenkins/ws/OpenModelica_PR-9221/build/bin/../include/omc/c\" -I\"/var/lib/jenkins/ws/OpenModelica_PR-9221/build/bin/../include/omc\" -I. -DOPENMODELICA_XML_FROM_FILE_AT_RUNTIME -DOMC_MODEL_PREFIX=foo -DOMC_NUM_MIXED_SYSTEMS=0 -DOMC_NUM_LINEAR_SYSTEMS=4 -DOMC_NUM_NONLINEAR_SYSTEMS=2 -DOMC_NDELAY_EXPRESSIONS=0 -DOMC_NVAR_STRING=0  -c -o foo_02nls.o foo_02nls.c
+gcc -O0 -DOM_HAVE_PTHREADS -fPIC -falign-functions -mfpmath=sse -fno-dollars-in-identifiers -Wno-parentheses-equality     -I\"/var/lib/jenkins/ws/OpenModelica_PR-9221/build/bin/../include/omc/c\" -I\"/var/lib/jenkins/ws/OpenModelica_PR-9221/build/bin/../include/omc\" -I. -DOPENMODELICA_XML_FROM_FILE_AT_RUNTIME -DOMC_MODEL_PREFIX=foo -DOMC_NUM_MIXED_SYSTEMS=0 -DOMC_NUM_LINEAR_SYSTEMS=4 -DOMC_NUM_NONLINEAR_SYSTEMS=2 -DOMC_NDELAY_EXPRESSIONS=0 -DOMC_NVAR_STRING=0  -c -o foo_03lsy.o foo_03lsy.c
+foo_03lsy.c: In function 'foo_eqFunction_290':
+foo_03lsy.c:170:119: error: incompatible type for argument 1 of 'mul_alloc_real_array_scalar'
+170 |   (parentJacobian->tmpVars[27]) /* __OMC__71$LOOPT.$pDERA.dummyVarA JACOBIAN_TMP_VAR */ = mul_alloc_real_array_scalar(0.1, (parentJacobian->tmpVars[86]) /* y$$Pfoo$Pf22.$pDERA.dummyVarA[1] JACOBIAN_TMP_VAR */ + (parentJacobian->tmpVars[94]) /* y$$Pfoo$Pf4.$pDERA.dummyVarA[2] JACOBIAN_TMP_VAR */ + (parentJacobian->tmpVars[95]) /* y$$Pfoo$Pf4.$pDERA.dummyVarA[3] JACOBIAN_TMP_VAR */ + (parentJacobian->tmpVars[96]) /* y$$Pfoo$Pf4.$pDERA.dummyVarA[4] JACOBIAN_TMP_VAR */ + (parentJacobian->tmpVars[97]) /* y$$Pfoo$Pf4.$pDERA.dummyVarA[5] JACOBIAN_TMP_VAR */ + (parentJacobian->tmpVars[98]) /* y$$Pfoo$Pf4.$pDERA.dummyVarA[6] JACOBIAN_TMP_VAR */ + (parentJacobian->tmpVars[99]) /* y$$Pfoo$Pf4.$pDERA.dummyVarA[7] JACOBIAN_TMP_VAR */);
+| ^~~
+| |
+| double
+In file included from /var/lib/jenkins/ws/OpenModelica_PR-9221/build/bin/../include/omc/c/openmodelica_func.h:50,
+from foo_model.h:6,
+from foo_03lsy.c:2:
+/var/lib/jenkins/ws/OpenModelica_PR-9221/build/bin/../include/omc/c/util/real_array.h:159:64: note: expected 'real_array' {aka 'const struct base_array_s'} but argument is of type 'double'
+159 | extern real_array mul_alloc_real_array_scalar(const real_array a, const modelica_real b);
+| ~~~~~~~~~~~~~~~~~^
+foo_03lsy.c: At top level:
+cc1: note: unrecognized command-line option '-Wno-parentheses-equality' may have been intended to silence earlier diagnostics
+make: *** [<builtin>: foo_03lsy.o] Error 1
+"
+
+

Equation mismatch: omc-diff says:
Failed 'f' '"'
Line 7: Text differs:
expected: resultFile = "foo_res.mat",
got:      resultFile = "",

== 1 out of 1 tests failed [simulation/modelica/inlineFunction/inlineArray2.mos_temp5616, time: 3]