Skip to content

Failed

tests / 02 testsuite-gcc 2/3 / simulation_modelica_inlineFunction.inlineArray3.mos (from (result.xml))

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

Stacktrace

Output mismatch (see stdout for details)

Standard Output

 + inlineArray3                                                                      ... equation mismatch [time: 4]

==== Log /tmp/omc-rtest-unknown/simulation/modelica/inlineFunction/inlineArray3.mos_temp1121/log-inlineArray3.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: 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\").
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/jenkins1/ws/OpenModelica_PR-9221/build/bin/../include/omc/c\" -I\"/var/lib/jenkins1/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=1 -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/jenkins1/ws/OpenModelica_PR-9221/build/bin/../include/omc/c\" -I\"/var/lib/jenkins1/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=1 -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/jenkins1/ws/OpenModelica_PR-9221/build/bin/../include/omc/c\" -I\"/var/lib/jenkins1/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=1 -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/jenkins1/ws/OpenModelica_PR-9221/build/bin/../include/omc/c\" -I\"/var/lib/jenkins1/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=1 -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/jenkins1/ws/OpenModelica_PR-9221/build/bin/../include/omc/c\" -I\"/var/lib/jenkins1/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=1 -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/jenkins1/ws/OpenModelica_PR-9221/build/bin/../include/omc/c\" -I\"/var/lib/jenkins1/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=1 -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_295':
foo_03lsy.c:131:119: error: incompatible type for argument 1 of 'mul_alloc_real_array_scalar'
  131 |   (parentJacobian->tmpVars[26]) /* __OMC__73$LOOPT.$pDERA.dummyVarA JACOBIAN_TMP_VAR */ = mul_alloc_real_array_scalar(0.1, (parentJacobian->tmpVars[85]) /* y$$Pfoo$Pf24.$pDERA.dummyVarA[1] JACOBIAN_TMP_VAR */ + (parentJacobian->tmpVars[93]) /* y$$Pfoo$Pf6.$pDERA.dummyVarA[2] JACOBIAN_TMP_VAR */ + (parentJacobian->tmpVars[94]) /* y$$Pfoo$Pf6.$pDERA.dummyVarA[3] JACOBIAN_TMP_VAR */ + (parentJacobian->tmpVars[95]) /* y$$Pfoo$Pf6.$pDERA.dummyVarA[4] JACOBIAN_TMP_VAR */ + (parentJacobian->tmpVars[96]) /* y$$Pfoo$Pf6.$pDERA.dummyVarA[5] JACOBIAN_TMP_VAR */ + (parentJacobian->tmpVars[97]) /* y$$Pfoo$Pf6.$pDERA.dummyVarA[6] JACOBIAN_TMP_VAR */ + (parentJacobian->tmpVars[98]) /* y$$Pfoo$Pf6.$pDERA.dummyVarA[7] JACOBIAN_TMP_VAR */);
      |                                                                                                                       ^~~
      |                                                                                                                       |
      |                                                                                                                       double
In file included from /var/lib/jenkins1/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/jenkins1/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
"

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: 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\").
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/jenkins1/ws/OpenModelica_PR-9221/build/bin/../include/omc/c\" -I\"/var/lib/jenkins1/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=1 -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/jenkins1/ws/OpenModelica_PR-9221/build/bin/../include/omc/c\" -I\"/var/lib/jenkins1/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=1 -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/jenkins1/ws/OpenModelica_PR-9221/build/bin/../include/omc/c\" -I\"/var/lib/jenkins1/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=1 -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/jenkins1/ws/OpenModelica_PR-9221/build/bin/../include/omc/c\" -I\"/var/lib/jenkins1/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=1 -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/jenkins1/ws/OpenModelica_PR-9221/build/bin/../include/omc/c\" -I\"/var/lib/jenkins1/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=1 -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/jenkins1/ws/OpenModelica_PR-9221/build/bin/../include/omc/c\" -I\"/var/lib/jenkins1/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=1 -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 'residualFunc119':
foo_03lsy.c:115:61: error: incompatible type for argument 1 of 'mul_alloc_real_array_scalar'
  115 |   res[0] = sub_alloc_real_array(mul_alloc_real_array_scalar(sum_real_array(add_alloc_real_array(add_alloc_real_array(add_alloc_real_array(add_alloc_real_array(mul_alloc_real_array_scalar(omc__omcQ_24DER_24_24Pfoo_24Pf(threadData, tmp0, tmp1), (parentJacobian->tmpVars[25]) /* x.$pDERA.dummyVarA[1] JACOBIAN_TMP_VAR */), mul_alloc_real_array_scalar(omc__omcQ_24DER_24_24Pfoo_24Pf(threadData, tmp2, tmp3), (parentJacobian->tmpVars[26]) /* x.$pDERA.dummyVarA[2] JACOBIAN_TMP_VAR */)), mul_alloc_real_array_scalar(omc__omcQ_24DER_24_24Pfoo_24Pf(threadData, tmp4, tmp5), (parentJacobian->tmpVars[27]) /* x.$pDERA.dummyVarA[3] JACOBIAN_TMP_VAR */)), mul_alloc_real_array_scalar(omc__omcQ_24DER_24_24Pfoo_24Pf(threadData, tmp6, tmp7), (parentJacobian->tmpVars[28]) /* x.$pDERA.dummyVarA[4] JACOBIAN_TMP_VAR */)), mul_alloc_real_array_scalar(omc__omcQ_24DER_24_24Pfoo_24Pf(threadData, tmp8, tmp9), (parentJacobian->tmpVars[29]) /* x.$pDERA.dummyVarA[5] JACOBIAN_TMP_VAR */))), 0.1), (parentJacobian->tmpVars[13]) /* a.$pDERA.dummyVarA[1] JACOBIAN_TMP_VAR */);
      |                                                             ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
      |                                                             |
      |                                                             modelica_real {aka double}
In file included from /var/lib/jenkins1/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/jenkins1/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 'modelica_real' {aka 'double'}
  159 | extern real_array mul_alloc_real_array_scalar(const real_array a, const modelica_real b);
      |                                               ~~~~~~~~~~~~~~~~~^
foo_03lsy.c:115:1000: error: incompatible type for argument 2 of 'sub_alloc_real_array'
  115 |   res[0] = sub_alloc_real_array(mul_alloc_real_array_scalar(sum_real_array(add_alloc_real_array(add_alloc_real_array(add_alloc_real_array(add_alloc_real_array(mul_alloc_real_array_scalar(omc__omcQ_24DER_24_24Pfoo_24Pf(threadData, tmp0, tmp1), (parentJacobian->tmpVars[25]) /* x.$pDERA.dummyVarA[1] JACOBIAN_TMP_VAR */), mul_alloc_real_array_scalar(omc__omcQ_24DER_24_24Pfoo_24Pf(threadData, tmp2, tmp3), (parentJacobian->tmpVars[26]) /* x.$pDERA.dummyVarA[2] JACOBIAN_TMP_VAR */)), mul_alloc_real_array_scalar(omc__omcQ_24DER_24_24Pfoo_24Pf(threadData, tmp4, tmp5), (parentJacobian->tmpVars[27]) /* x.$pDERA.dummyVarA[3] JACOBIAN_TMP_VAR */)), mul_alloc_real_array_scalar(omc__omcQ_24DER_24_24Pfoo_24Pf(threadData, tmp6, tmp7), (parentJacobian->tmpVars[28]) /* x.$pDERA.dummyVarA[4] JACOBIAN_TMP_VAR */)), mul_alloc_real_array_scalar(omc__omcQ_24DER_24_24Pfoo_24Pf(threadData, tmp8, tmp9), (parentJacobian->tmpVars[29]) /* x.$pDERA.dummyVarA[5] JACOBIAN_TMP_VAR */))), 0.1), (parentJacobian->tmpVars[13]) /* a.$pDERA.dummyVarA[1] JACOBIAN_TMP_VAR */);
      |                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                ~~~~~~~~~~~~~~~~~~~~~~~~^~~~~
      |                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        |
      |                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        modelica_real {aka double}
In file included from /var/lib/jenkins1/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/jenkins1/ws/OpenModelica_PR-9221/build/bin/../include/omc/c/util/real_array.h:150:77: note: expected 'real_array' {aka 'const struct base_array_s'} but argument is of type 'modelica_real' {aka 'double'}
  150 | extern real_array sub_alloc_real_array(const real_array a, const real_array 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/inlineArray3.mos_temp1121/equations-expected2024-01-20 04:06:37.519540299 +0000
+++ /tmp/omc-rtest-unknown/simulation/modelica/inlineFunction/inlineArray3.mos_temp1121/equations-got2024-01-20 04:06:41.995540281 +0000
@@ -2,26 +2,77 @@
 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;
 "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\").
+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/jenkins1/ws/OpenModelica_PR-9221/build/bin/../include/omc/c\" -I\"/var/lib/jenkins1/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=1 -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/jenkins1/ws/OpenModelica_PR-9221/build/bin/../include/omc/c\" -I\"/var/lib/jenkins1/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=1 -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/jenkins1/ws/OpenModelica_PR-9221/build/bin/../include/omc/c\" -I\"/var/lib/jenkins1/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=1 -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/jenkins1/ws/OpenModelica_PR-9221/build/bin/../include/omc/c\" -I\"/var/lib/jenkins1/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=1 -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/jenkins1/ws/OpenModelica_PR-9221/build/bin/../include/omc/c\" -I\"/var/lib/jenkins1/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=1 -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/jenkins1/ws/OpenModelica_PR-9221/build/bin/../include/omc/c\" -I\"/var/lib/jenkins1/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=1 -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_295':
+foo_03lsy.c:131:119: error: incompatible type for argument 1 of 'mul_alloc_real_array_scalar'
+131 |   (parentJacobian->tmpVars[26]) /* __OMC__73$LOOPT.$pDERA.dummyVarA JACOBIAN_TMP_VAR */ = mul_alloc_real_array_scalar(0.1, (parentJacobian->tmpVars[85]) /* y$$Pfoo$Pf24.$pDERA.dummyVarA[1] JACOBIAN_TMP_VAR */ + (parentJacobian->tmpVars[93]) /* y$$Pfoo$Pf6.$pDERA.dummyVarA[2] JACOBIAN_TMP_VAR */ + (parentJacobian->tmpVars[94]) /* y$$Pfoo$Pf6.$pDERA.dummyVarA[3] JACOBIAN_TMP_VAR */ + (parentJacobian->tmpVars[95]) /* y$$Pfoo$Pf6.$pDERA.dummyVarA[4] JACOBIAN_TMP_VAR */ + (parentJacobian->tmpVars[96]) /* y$$Pfoo$Pf6.$pDERA.dummyVarA[5] JACOBIAN_TMP_VAR */ + (parentJacobian->tmpVars[97]) /* y$$Pfoo$Pf6.$pDERA.dummyVarA[6] JACOBIAN_TMP_VAR */ + (parentJacobian->tmpVars[98]) /* y$$Pfoo$Pf6.$pDERA.dummyVarA[7] JACOBIAN_TMP_VAR */);
+| ^~~
+| |
+| double
+In file included from /var/lib/jenkins1/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/jenkins1/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
 "
-{0.04812243429093915,-2.749810253792299,-24.0237961570759}
+
 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;
 "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\").
+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/jenkins1/ws/OpenModelica_PR-9221/build/bin/../include/omc/c\" -I\"/var/lib/jenkins1/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=1 -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/jenkins1/ws/OpenModelica_PR-9221/build/bin/../include/omc/c\" -I\"/var/lib/jenkins1/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=1 -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/jenkins1/ws/OpenModelica_PR-9221/build/bin/../include/omc/c\" -I\"/var/lib/jenkins1/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=1 -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/jenkins1/ws/OpenModelica_PR-9221/build/bin/../include/omc/c\" -I\"/var/lib/jenkins1/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=1 -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/jenkins1/ws/OpenModelica_PR-9221/build/bin/../include/omc/c\" -I\"/var/lib/jenkins1/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=1 -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/jenkins1/ws/OpenModelica_PR-9221/build/bin/../include/omc/c\" -I\"/var/lib/jenkins1/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=1 -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 'residualFunc119':
+foo_03lsy.c:115:61: error: incompatible type for argument 1 of 'mul_alloc_real_array_scalar'
+115 |   res[0] = sub_alloc_real_array(mul_alloc_real_array_scalar(sum_real_array(add_alloc_real_array(add_alloc_real_array(add_alloc_real_array(add_alloc_real_array(mul_alloc_real_array_scalar(omc__omcQ_24DER_24_24Pfoo_24Pf(threadData, tmp0, tmp1), (parentJacobian->tmpVars[25]) /* x.$pDERA.dummyVarA[1] JACOBIAN_TMP_VAR */), mul_alloc_real_array_scalar(omc__omcQ_24DER_24_24Pfoo_24Pf(threadData, tmp2, tmp3), (parentJacobian->tmpVars[26]) /* x.$pDERA.dummyVarA[2] JACOBIAN_TMP_VAR */)), mul_alloc_real_array_scalar(omc__omcQ_24DER_24_24Pfoo_24Pf(threadData, tmp4, tmp5), (parentJacobian->tmpVars[27]) /* x.$pDERA.dummyVarA[3] JACOBIAN_TMP_VAR */)), mul_alloc_real_array_scalar(omc__omcQ_24DER_24_24Pfoo_24Pf(threadData, tmp6, tmp7), (parentJacobian->tmpVars[28]) /* x.$pDERA.dummyVarA[4] JACOBIAN_TMP_VAR */)), mul_alloc_real_array_scalar(omc__omcQ_24DER_24_24Pfoo_24Pf(threadData, tmp8, tmp9), (parentJacobian->tmpVars[29]) /* x.$pDERA.dummyVarA[5] JACOBIAN_TMP_VAR */))), 0.1), (parentJacobian->tmpVars[13]) /* a.$pDERA.dummyVarA[1] JACOBIAN_TMP_VAR */);
+| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+| |
+| modelica_real {aka double}
+In file included from /var/lib/jenkins1/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/jenkins1/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 'modelica_real' {aka 'double'}
+159 | extern real_array mul_alloc_real_array_scalar(const real_array a, const modelica_real b);
+| ~~~~~~~~~~~~~~~~~^
+foo_03lsy.c:115:1000: error: incompatible type for argument 2 of 'sub_alloc_real_array'
+115 |   res[0] = sub_alloc_real_array(mul_alloc_real_array_scalar(sum_real_array(add_alloc_real_array(add_alloc_real_array(add_alloc_real_array(add_alloc_real_array(mul_alloc_real_array_scalar(omc__omcQ_24DER_24_24Pfoo_24Pf(threadData, tmp0, tmp1), (parentJacobian->tmpVars[25]) /* x.$pDERA.dummyVarA[1] JACOBIAN_TMP_VAR */), mul_alloc_real_array_scalar(omc__omcQ_24DER_24_24Pfoo_24Pf(threadData, tmp2, tmp3), (parentJacobian->tmpVars[26]) /* x.$pDERA.dummyVarA[2] JACOBIAN_TMP_VAR */)), mul_alloc_real_array_scalar(omc__omcQ_24DER_24_24Pfoo_24Pf(threadData, tmp4, tmp5), (parentJacobian->tmpVars[27]) /* x.$pDERA.dummyVarA[3] JACOBIAN_TMP_VAR */)), mul_alloc_real_array_scalar(omc__omcQ_24DER_24_24Pfoo_24Pf(threadData, tmp6, tmp7), (parentJacobian->tmpVars[28]) /* x.$pDERA.dummyVarA[4] JACOBIAN_TMP_VAR */)), mul_alloc_real_array_scalar(omc__omcQ_24DER_24_24Pfoo_24Pf(threadData, tmp8, tmp9), (parentJacobian->tmpVars[29]) /* x.$pDERA.dummyVarA[5] JACOBIAN_TMP_VAR */))), 0.1), (parentJacobian->tmpVars[13]) /* a.$pDERA.dummyVarA[1] JACOBIAN_TMP_VAR */);
+| ~~~~~~~~~~~~~~~~~~~~~~~~^~~~~
+| |
+| modelica_real {aka double}
+In file included from /var/lib/jenkins1/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/jenkins1/ws/OpenModelica_PR-9221/build/bin/../include/omc/c/util/real_array.h:150:77: note: expected 'real_array' {aka 'const struct base_array_s'} but argument is of type 'modelica_real' {aka 'double'}
+150 | extern real_array sub_alloc_real_array(const real_array a, const real_array 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
 "
-{0.04812243429093915,-2.749810335170811,-24.02379626652536}
+

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/inlineArray3.mos_temp1121, time: 5]