Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Media.Examples.ReferenceAir.MoistAir1.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001354/0.001354, allocations: 104.8 kB / 19.77 MB, free: 2.539 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001161/0.001161, allocations: 188.5 kB / 22.94 MB, free: 5.621 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.256/1.256, allocations: 225.6 MB / 251.6 MB, free: 13.51 MB / 206.1 MB " [Timeout remaining time 179] Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Running command: translateModel(Modelica.Media.Examples.ReferenceAir.MoistAir1,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5002,variableFilter="time|volume.medium.T|volume.medium.Xi.1.|volume.medium.p",fileNamePrefix="Modelica_4.0.0_Modelica.Media.Examples.ReferenceAir.MoistAir1") translateModel(Modelica.Media.Examples.ReferenceAir.MoistAir1,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5002,variableFilter="time|volume.medium.T|volume.medium.Xi.1.|volume.medium.p",fileNamePrefix="Modelica_4.0.0_Modelica.Media.Examples.ReferenceAir.MoistAir1") [Timeout 660] "Notification: Performance of FrontEnd - Absyn->SCode: time 1.265e-05/1.265e-05, allocations: 2.281 kB / 369.4 MB, free: 10.21 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Media.Examples.ReferenceAir.MoistAir1): time 0.1703/0.1703, allocations: 51.02 MB / 420.5 MB, free: 4.086 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.006161/0.1764, allocations: 5.245 MB / 425.7 MB, free: 15.83 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001654/0.1766, allocations: 2.781 kB / 425.7 MB, free: 15.83 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0007039/0.1773, allocations: 258.6 kB / 426 MB, free: 15.62 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0005654/0.1779, allocations: 362.2 kB / 426.3 MB, free: 15.33 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.01725/0.1951, allocations: 7.137 MB / 433.4 MB, free: 8.559 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.001275/0.1964, allocations: 1.161 MB / 434.6 MB, free: 7.395 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001959/0.1966, allocations: 84.09 kB / 434.7 MB, free: 7.305 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.005649/0.2022, allocations: 3.664 MB / 438.4 MB, free: 3.629 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004682/0.2027, allocations: 402.6 kB / 438.7 MB, free: 3.234 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 7.802e-05/0.2028, allocations: 56 kB / 438.8 MB, free: 3.18 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0136/0.2164, allocations: 9.888 MB / 448.7 MB, free: 9.277 MB / 350.1 MB Notification: Performance of combineBinaries: time 0.00088/0.2173, allocations: 0.9726 MB / 449.7 MB, free: 8.297 MB / 350.1 MB Notification: Performance of replaceArrayConstructors: time 0.0003812/0.2176, allocations: 0.5297 MB / 450.2 MB, free: 7.762 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001167/0.2178, allocations: 95.75 kB / 450.3 MB, free: 7.668 MB / 350.1 MB Notification: Performance of FrontEnd: time 6.473e-05/0.2178, allocations: 12 kB / 450.3 MB, free: 7.656 MB / 350.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 107 (104) * Number of variables: 107 (101) Notification: Performance of Bindings: time 0.002145/0.22, allocations: 2.167 MB / 452.5 MB, free: 5.348 MB / 350.1 MB Notification: Performance of FunctionAlias: time 0.0003943/0.2204, allocations: 376.6 kB / 452.8 MB, free: 4.988 MB / 350.1 MB Notification: Performance of Early Inline: time 0.001335/0.2217, allocations: 1.27 MB / 454.1 MB, free: 3.68 MB / 350.1 MB Notification: Performance of Simplify 1: time 0.0003638/0.2221, allocations: 291.4 kB / 454.4 MB, free: 3.363 MB / 350.1 MB Notification: Performance of Alias: time 0.00256/0.2246, allocations: 1.995 MB / 456.4 MB, free: 1.094 MB / 350.1 MB Notification: Performance of Simplify 2: time 0.0003119/0.2249, allocations: 259.3 kB / 456.6 MB, free: 0.8125 MB / 350.1 MB Notification: Performance of Remove Stream: time 0.0002486/0.2252, allocations: 243.4 kB / 456.9 MB, free: 0.5469 MB / 350.1 MB Notification: Performance of Detect States: time 0.000387/0.2256, allocations: 317.2 kB / 457.2 MB, free: 200 kB / 350.1 MB Notification: Performance of Events: time 0.0002675/0.2258, allocations: 203.8 kB / 457.4 MB, free: 15.99 MB / 366.1 MB Notification: Performance of Partitioning: time 0.0006693/0.2265, allocations: 0.6387 MB / 458 MB, free: 15.25 MB / 366.1 MB Notification: Performance of Causalize: time 0.002857/0.2294, allocations: 2.374 MB / 460.4 MB, free: 12.77 MB / 366.1 MB Notification: Performance of After Index Reduction Inline: time 0.001081/0.2304, allocations: 1.049 MB / 461.4 MB, free: 11.72 MB / 366.1 MB Notification: Performance of Simplify: time 0.0008047/0.2312, allocations: 0.6258 MB / 462.1 MB, free: 11.05 MB / 366.1 MB Notification: Performance of Inline: time 0.001521/0.2328, allocations: 1.496 MB / 463.6 MB, free: 9.551 MB / 366.1 MB Notification: Performance of Partitioning: time 6.854e-05/0.2328, allocations: 39.62 kB / 463.6 MB, free: 9.5 MB / 366.1 MB Notification: Performance of Cleanup: time 0.0002967/0.2331, allocations: 347.5 kB / 463.9 MB, free: 9.16 MB / 366.1 MB Notification: Performance of Causalize: time 0.00382/0.237, allocations: 3.087 MB / 467 MB, free: 6.074 MB / 366.1 MB Notification: Performance of Tearing: time 0.0005404/0.2375, allocations: 0.5744 MB / 467.6 MB, free: 5.402 MB / 366.1 MB Notification: Performance of Initialization: time 5.71e-07/0.2375, allocations: 0 / 467.6 MB, free: 5.402 MB / 366.1 MB Notification: Performance of Remove Dummies: time 1.189e-05/0.2375, allocations: 8.5 kB / 467.6 MB, free: 5.395 MB / 366.1 MB Notification: Performance of Tearing: time 0.0006978/0.2382, allocations: 0.8112 MB / 468.4 MB, free: 4.438 MB / 366.1 MB Notification: Performance of Categorize: time 1.942e-05/0.2382, allocations: 11.92 kB / 468.4 MB, free: 4.426 MB / 366.1 MB Notification: Performance of Solve: time 0.0006465/0.2389, allocations: 338.8 kB / 468.8 MB, free: 4.094 MB / 366.1 MB Notification: Performance of Jacobian: time 0.000691/0.2396, allocations: 0.6295 MB / 469.4 MB, free: 3.422 MB / 366.1 MB Notification: Partition statistics after passing the back-end: * Number of ODE partitions: ..................... 0 * Number of algebraic partitions: ............... 6 * Number of ODE event partitions: ............... 1 * Number of algebraic event partitions: ......... 7 * Number of clocked partitions: ................. 0 * Number of initial partitions: ................. 1 * Number of initial(lambda=0) partitions: ....... 0 Notification: Variable statistics after passing the back-end: * Number of states: ............................. 3 (3) {volume.m, volume.mXi, volume.U} * Number of discrete states: .................... 0 (0) {} * Number of clocked states: ..................... 0 (0) {} * Number of discrete variables: ................. 12 (9) {$SEV_8, $SEV_7, $SEV_6, $SEV_5, $SEV_4, $SEV_3, $SEV_2, $SEV_1, $SEV_0} * Number of clocks: ............................. 0 (0) {} * Number of top-level inputs: ................... 0 (0) {} Notification: [Simulation] Strong Component statistics after passing the back-end: * Number of single strong components: ........... 77 (scalar:69, array:8, record:0) * Number of multi strong components: ............ 0 (algorithm:0, when:0, if:0, tuple:0) * Number of for-loop strong components: ......... 3 (resizable: 3, generic: 0, entwined:0) * Number of algebraic-loop strong components: ... 3 (linear: 0, nonlinear:3) Notification: [Initialization] Strong Component statistics after passing the back-end: * Number of single strong components: ........... 104 (scalar:90, array:14, record:0) * Number of multi strong components: ............ 0 (algorithm:0, when:0, if:0, tuple:0) * Number of for-loop strong components: ......... 3 (resizable: 3, generic: 0, entwined:0) * Number of algebraic-loop strong components: ... 2 (linear: 0, nonlinear:2) Notification: Performance of backend: time 6.514e-05/0.2396, allocations: 60.25 kB / 469.5 MB, free: 3.367 MB / 366.1 MB Notification: Performance of SimCode: time 0.01969/0.2593, allocations: 10.76 MB / 480.2 MB, free: 8.523 MB / 382.1 MB [CodegenCFunctions.tpl:3991:16-3991:16:writable] Error: Template error: literalExpConstArrayVal failed: Complex(0.0368017112855051, 0.0510878114959572). [CodegenCFunctions.tpl:3991:16-3991:16:writable] Error: Template error: literalExpConstArrayVal failed: Complex(0.337315741065416, 0.335449415919309). [CodegenCFunctions.tpl:3991:16-3991:16:writable] Error: Template error: literalExpConstArrayVal failed: Complex(-72.597457432922, -78.100842711287). [CodegenCFunctions.tpl:3991:16-3991:16:writable] Error: Template error: literalExpConstArrayVal failed: Complex(-5.57107698030123e-5, 4.64578634580806e-5). [CodegenCFunctions.tpl:3991:16-3991:16:writable] Error: Template error: literalExpConstArrayVal failed: Complex(2.34801409215913e-11, -2.85651142904972e-11). Notification: Performance of Templates: time 0.06036/0.3197, allocations: 45.14 MB / 0.513 GB, free: 11.36 MB / 430.1 MB " [Timeout remaining time 660] make -j1 -f Modelica_4.0.0_Modelica.Media.Examples.ReferenceAir.MoistAir1.makefile [Timeout 660] make -j1 -f Modelica_4.0.0_Modelica.Media.Examples.ReferenceAir.MoistAir1.makefile clang -Os -DOM_HAVE_PTHREADS -fPIC -falign-functions -mfpmath=sse -fno-dollars-in-identifiers -Wno-parentheses-equality -Os -march=native "-I/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/Resources/C-Sources" -I"/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/bin/../include/omc/c" -I"/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/bin/../include/omc" -I. -DOPENMODELICA_XML_FROM_FILE_AT_RUNTIME -DOMC_MODEL_PREFIX=Modelica_4_0_0_Modelica_Media_Examples_ReferenceAir_MoistAir1 -DOMC_NUM_MIXED_SYSTEMS=0 -DOMC_NUM_LINEAR_SYSTEMS=0 -DOMC_NUM_NONLINEAR_SYSTEMS=5 -DOMC_NDELAY_EXPRESSIONS=0 -DOMC_NVAR_STRING=0 -c -o Modelica_4.0.0_Modelica.Media.Examples.ReferenceAir.MoistAir1.o Modelica_4.0.0_Modelica.Media.Examples.ReferenceAir.MoistAir1.c In file included from Modelica_4.0.0_Modelica.Media.Examples.ReferenceAir.MoistAir1.c:7: In file included from ./Modelica_4.0.0_Modelica.Media.Examples.ReferenceAir.MoistAir1_model.h:237: ./Modelica_4.0.0_Modelica.Media.Examples.ReferenceAir.MoistAir1_literals.h:190:14: error: unknown type name 'modelica_Complex'; did you mean 'modelica_complex'? static const modelica_Complex _OMC_LIT56_data[] = { ^~~~~~~~~~~~~~~~ modelica_complex /var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/bin/../include/omc/c/gc/../openmodelica_types.h:99:15: note: 'modelica_complex' declared here typedef void* modelica_complex; /* currently only External objects are represented using modelica_complex.*/ ^ In file included from Modelica_4.0.0_Modelica.Media.Examples.ReferenceAir.MoistAir1.c:7: In file included from ./Modelica_4.0.0_Modelica.Media.Examples.ReferenceAir.MoistAir1_model.h:237: ./Modelica_4.0.0_Modelica.Media.Examples.ReferenceAir.MoistAir1_literals.h:191:2: error: "[CodegenCFunctions.tpl:3991:16-3991:16] literalExpConstArrayVal failed: Complex(0.0368017112855051, 0.0510878114959572)" #error "[CodegenCFunctions.tpl:3991:16-3991:16] literalExpConstArrayVal failed: Complex(0.0368017112855051, 0.0510878114959572)" ^ ./Modelica_4.0.0_Modelica.Media.Examples.ReferenceAir.MoistAir1_literals.h:192:1: error: expected expression , ^ ./Modelica_4.0.0_Modelica.Media.Examples.ReferenceAir.MoistAir1_literals.h:193:2: error: "[CodegenCFunctions.tpl:3991:16-3991:16] literalExpConstArrayVal failed: Complex(0.337315741065416, 0.335449415919309)" #error "[CodegenCFunctions.tpl:3991:16-3991:16] literalExpConstArrayVal failed: Complex(0.337315741065416, 0.335449415919309)" ^ ./Modelica_4.0.0_Modelica.Media.Examples.ReferenceAir.MoistAir1_literals.h:199:14: error: unknown type name 'modelica_Complex'; did you mean 'modelica_complex'? static const modelica_Complex _OMC_LIT57_data[] = { ^~~~~~~~~~~~~~~~ modelica_complex /var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/bin/../include/omc/c/gc/../openmodelica_types.h:99:15: note: 'modelica_complex' declared here typedef void* modelica_complex; /* currently only External objects are represented using modelica_complex.*/ ^ In file included from Modelica_4.0.0_Modelica.Media.Examples.ReferenceAir.MoistAir1.c:7: In file included from ./Modelica_4.0.0_Modelica.Media.Examples.ReferenceAir.MoistAir1_model.h:237: ./Modelica_4.0.0_Modelica.Media.Examples.ReferenceAir.MoistAir1_literals.h:200:2: error: "[CodegenCFunctions.tpl:3991:16-3991:16] literalExpConstArrayVal failed: Complex(-72.597457432922, -78.100842711287)" #error "[CodegenCFunctions.tpl:3991:16-3991:16] literalExpConstArrayVal failed: Complex(-72.597457432922, -78.100842711287)" ^ ./Modelica_4.0.0_Modelica.Media.Examples.ReferenceAir.MoistAir1_literals.h:201:1: error: expected expression , ^ ./Modelica_4.0.0_Modelica.Media.Examples.ReferenceAir.MoistAir1_literals.h:202:2: error: "[CodegenCFunctions.tpl:3991:16-3991:16] literalExpConstArrayVal failed: Complex(-5.57107698030123e-5, 4.64578634580806e-5)" #error "[CodegenCFunctions.tpl:3991:16-3991:16] literalExpConstArrayVal failed: Complex(-5.57107698030123e-5, 4.64578634580806e-5)" ^ ./Modelica_4.0.0_Modelica.Media.Examples.ReferenceAir.MoistAir1_literals.h:203:1: error: expected expression , ^ ./Modelica_4.0.0_Modelica.Media.Examples.ReferenceAir.MoistAir1_literals.h:204:2: error: "[CodegenCFunctions.tpl:3991:16-3991:16] literalExpConstArrayVal failed: Complex(2.34801409215913e-11, -2.85651142904972e-11)" #error "[CodegenCFunctions.tpl:3991:16-3991:16] literalExpConstArrayVal failed: Complex(2.34801409215913e-11, -2.85651142904972e-11)" ^ Modelica_4.0.0_Modelica.Media.Examples.ReferenceAir.MoistAir1.c:152:274: error: passing 'real_array' (aka 'struct base_array_s') to parameter of incompatible type 'modelica_real' (aka 'double') usub_alloc_real_array(div_alloc_real_array(sub_alloc_real_array(mul_alloc_real_array_scalar(tmp1, (data->localData[0]->realVars[data->simulationInfo->realVarsIndex[0]] /* volume.m STATE(1,der(volume.m)) */)), tmp2), sub_alloc_real_array(add_alloc_real_array_scalar(tmp3, mul_alloc_real_array_scalar(tmp4, (data->localData[0]->realVars[data->simulationInfo->realVarsIndex[0]] /* volume.m STATE(1,der(volume.m)) */))), tmp5)),&tmp6); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/bin/../include/omc/c/util/real_array.h:143:89: note: passing argument to parameter 'sc' here extern real_array add_alloc_real_array_scalar(const real_array arr, const modelica_real sc); ^ 11 errors generated. make: *** [: Modelica_4.0.0_Modelica.Media.Examples.ReferenceAir.MoistAir1.o] Error 1 [Calling os._exit(0), Time elapsed: 2.294667928479612]