Skip to content

Failed

tests / 04 testsuite-clang 1/3 / simulation_modelica_inlineFunction.inlineArray2.mos (from (result.xml))

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

Stacktrace

Output mismatch (see stdout for details)

Standard Output

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

==== Log /tmp/omc-rtest-unknown/simulation/modelica/inlineFunction/inlineArray2.mos_temp9466/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: clang  -O0 -DOM_HAVE_PTHREADS -fPIC -falign-functions -mfpmath=sse -fno-dollars-in-identifiers -Wno-parentheses-equality     -I\"/var/lib/jenkins2/ws/OpenModelica_PR-9221/build/bin/../include/omc/c\" -I\"/var/lib/jenkins2/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
clang  -O0 -DOM_HAVE_PTHREADS -fPIC -falign-functions -mfpmath=sse -fno-dollars-in-identifiers -Wno-parentheses-equality     -I\"/var/lib/jenkins2/ws/OpenModelica_PR-9221/build/bin/../include/omc/c\" -I\"/var/lib/jenkins2/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
clang  -O0 -DOM_HAVE_PTHREADS -fPIC -falign-functions -mfpmath=sse -fno-dollars-in-identifiers -Wno-parentheses-equality     -I\"/var/lib/jenkins2/ws/OpenModelica_PR-9221/build/bin/../include/omc/c\" -I\"/var/lib/jenkins2/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
clang  -O0 -DOM_HAVE_PTHREADS -fPIC -falign-functions -mfpmath=sse -fno-dollars-in-identifiers -Wno-parentheses-equality     -I\"/var/lib/jenkins2/ws/OpenModelica_PR-9221/build/bin/../include/omc/c\" -I\"/var/lib/jenkins2/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
clang  -O0 -DOM_HAVE_PTHREADS -fPIC -falign-functions -mfpmath=sse -fno-dollars-in-identifiers -Wno-parentheses-equality     -I\"/var/lib/jenkins2/ws/OpenModelica_PR-9221/build/bin/../include/omc/c\" -I\"/var/lib/jenkins2/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
clang  -O0 -DOM_HAVE_PTHREADS -fPIC -falign-functions -mfpmath=sse -fno-dollars-in-identifiers -Wno-parentheses-equality     -I\"/var/lib/jenkins2/ws/OpenModelica_PR-9221/build/bin/../include/omc/c\" -I\"/var/lib/jenkins2/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:170:119: error: passing 'double' to parameter of incompatible type 'real_array' (aka 'struct base_array_s')
  (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 */);
                                                                                                                      ^~~
/var/lib/jenkins2/ws/OpenModelica_PR-9221/build/bin/../include/omc/c/util/real_array.h:159:64: note: passing argument to parameter 'a' here
extern real_array mul_alloc_real_array_scalar(const real_array a, const modelica_real b);
                                                               ^
1 error generated.
make: *** [<builtin>: foo_03lsy.o] Error 1
"



Equation mismatch: diff says:
--- /tmp/omc-rtest-unknown/simulation/modelica/inlineFunction/inlineArray2.mos_temp9466/equations-expected2024-01-20 04:04:40.467067956 +0000
+++ /tmp/omc-rtest-unknown/simulation/modelica/inlineFunction/inlineArray2.mos_temp9466/equations-got2024-01-20 04:04:41.819058960 +0000
@@ -2,14 +2,27 @@
 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: clang  -O0 -DOM_HAVE_PTHREADS -fPIC -falign-functions -mfpmath=sse -fno-dollars-in-identifiers -Wno-parentheses-equality     -I\"/var/lib/jenkins2/ws/OpenModelica_PR-9221/build/bin/../include/omc/c\" -I\"/var/lib/jenkins2/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
+clang -O0 -DOM_HAVE_PTHREADS -fPIC -falign-functions -mfpmath=sse -fno-dollars-in-identifiers -Wno-parentheses-equality     -I\"/var/lib/jenkins2/ws/OpenModelica_PR-9221/build/bin/../include/omc/c\" -I\"/var/lib/jenkins2/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
+clang -O0 -DOM_HAVE_PTHREADS -fPIC -falign-functions -mfpmath=sse -fno-dollars-in-identifiers -Wno-parentheses-equality     -I\"/var/lib/jenkins2/ws/OpenModelica_PR-9221/build/bin/../include/omc/c\" -I\"/var/lib/jenkins2/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
+clang -O0 -DOM_HAVE_PTHREADS -fPIC -falign-functions -mfpmath=sse -fno-dollars-in-identifiers -Wno-parentheses-equality     -I\"/var/lib/jenkins2/ws/OpenModelica_PR-9221/build/bin/../include/omc/c\" -I\"/var/lib/jenkins2/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
+clang -O0 -DOM_HAVE_PTHREADS -fPIC -falign-functions -mfpmath=sse -fno-dollars-in-identifiers -Wno-parentheses-equality     -I\"/var/lib/jenkins2/ws/OpenModelica_PR-9221/build/bin/../include/omc/c\" -I\"/var/lib/jenkins2/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
+clang -O0 -DOM_HAVE_PTHREADS -fPIC -falign-functions -mfpmath=sse -fno-dollars-in-identifiers -Wno-parentheses-equality     -I\"/var/lib/jenkins2/ws/OpenModelica_PR-9221/build/bin/../include/omc/c\" -I\"/var/lib/jenkins2/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:170:119: error: passing 'double' to parameter of incompatible type 'real_array' (aka 'struct base_array_s')
+(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 */);
+^~~
+/var/lib/jenkins2/ws/OpenModelica_PR-9221/build/bin/../include/omc/c/util/real_array.h:159:64: note: passing argument to parameter 'a' here
+extern real_array mul_alloc_real_array_scalar(const real_array a, const modelica_real b);
+^
+1 error generated.
+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_temp9466, time: 1]