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.001785/0.001785, allocations: 104.6 kB / 21.19 MB, free: 0.7734 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.002232/0.002232, allocations: 185.2 kB / 24.48 MB, free: 4.188 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.275/1.275, allocations: 225.6 MB / 253.3 MB, free: 13.02 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.816e-05/1.816e-05, allocations: 2.281 kB / 371.7 MB, free: 9.414 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Media.Examples.ReferenceAir.MoistAir1): time 0.1785/0.1786, allocations: 51.05 MB / 422.7 MB, free: 3.34 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.006313/0.1849, allocations: 5.245 MB / 427.9 MB, free: 15.08 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003123/0.1852, allocations: 8.75 kB / 428 MB, free: 15.08 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0007732/0.186, allocations: 255.2 kB / 428.2 MB, free: 14.87 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0007207/0.1867, allocations: 369.5 kB / 428.6 MB, free: 14.57 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.01932/0.206, allocations: 7.187 MB / 435.8 MB, free: 7.578 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.001374/0.2074, allocations: 1.177 MB / 436.9 MB, free: 6.398 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002311/0.2076, allocations: 92.56 kB / 437 MB, free: 6.301 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.006303/0.2139, allocations: 3.642 MB / 440.7 MB, free: 2.652 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0005602/0.2145, allocations: 398.6 kB / 441 MB, free: 2.262 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001125/0.2146, allocations: 56 kB / 441.1 MB, free: 2.207 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.01405/0.2286, allocations: 9.947 MB / 451.1 MB, free: 8.246 MB / 350.1 MB Notification: Performance of combineBinaries: time 0.001044/0.2297, allocations: 1.066 MB / 452.1 MB, free: 7.172 MB / 350.1 MB Notification: Performance of replaceArrayConstructors: time 0.0005168/0.2302, allocations: 0.6099 MB / 452.7 MB, free: 6.559 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001614/0.2304, allocations: 99.75 kB / 452.8 MB, free: 6.461 MB / 350.1 MB Notification: Performance of FrontEnd: time 5.954e-05/0.2304, allocations: 8 kB / 452.8 MB, free: 6.453 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.003157/0.2336, allocations: 2.887 MB / 455.7 MB, free: 3.422 MB / 350.1 MB Notification: Performance of FunctionAlias: time 0.0005376/0.2341, allocations: 377.8 kB / 456.1 MB, free: 3.055 MB / 350.1 MB Notification: Performance of Early Inline: time 0.002061/0.2362, allocations: 1.731 MB / 457.8 MB, free: 1.281 MB / 350.1 MB Notification: Performance of Simplify 1: time 0.0006297/0.2368, allocations: 360.1 kB / 458.2 MB, free: 0.8789 MB / 350.1 MB Notification: Performance of Alias: time 0.003309/0.2401, allocations: 2.341 MB / 460.5 MB, free: 14.27 MB / 366.1 MB Notification: Performance of Simplify 2: time 0.0004827/0.2406, allocations: 324 kB / 460.8 MB, free: 13.91 MB / 366.1 MB Notification: Performance of Remove Stream: time 0.0003207/0.2409, allocations: 248 kB / 461.1 MB, free: 13.64 MB / 366.1 MB Notification: Performance of Detect States: time 0.000528/0.2414, allocations: 414.4 kB / 461.5 MB, free: 13.18 MB / 366.1 MB Notification: Performance of Events: time 0.0003089/0.2417, allocations: 207 kB / 461.7 MB, free: 12.98 MB / 366.1 MB Notification: Performance of Partitioning: time 0.0007959/0.2425, allocations: 0.6233 MB / 462.3 MB, free: 12.25 MB / 366.1 MB Notification: Performance of Causalize: time 0.00325/0.2458, allocations: 2.301 MB / 464.6 MB, free: 9.852 MB / 366.1 MB Notification: Performance of After Index Reduction Inline: time 0.001709/0.2475, allocations: 1.537 MB / 466.1 MB, free: 8.312 MB / 366.1 MB Notification: Performance of Simplify: time 0.001075/0.2486, allocations: 0.6944 MB / 466.8 MB, free: 7.547 MB / 366.1 MB Notification: Performance of Inline: time 0.002254/0.2508, allocations: 2.219 MB / 469.1 MB, free: 5.324 MB / 366.1 MB Notification: Performance of Partitioning: time 7.657e-05/0.2509, allocations: 43.98 kB / 469.1 MB, free: 5.27 MB / 366.1 MB Notification: Performance of Cleanup: time 0.0003173/0.2512, allocations: 343.6 kB / 469.4 MB, free: 4.934 MB / 366.1 MB Notification: Performance of Causalize: time 0.003984/0.2552, allocations: 2.999 MB / 472.4 MB, free: 1.93 MB / 366.1 MB Notification: Performance of Tearing: time 0.0005965/0.2558, allocations: 0.594 MB / 473 MB, free: 1.238 MB / 366.1 MB Notification: Performance of Initialization: time 7.02e-07/0.2558, allocations: 0 / 473 MB, free: 1.238 MB / 366.1 MB Notification: Performance of Remove Dummies: time 1.327e-05/0.2558, allocations: 0.5 kB / 473 MB, free: 1.238 MB / 366.1 MB Notification: Performance of Tearing: time 0.0007398/0.2566, allocations: 0.8462 MB / 473.9 MB, free: 252 kB / 366.1 MB Notification: Performance of Categorize: time 1.938e-05/0.2566, allocations: 4 kB / 473.9 MB, free: 248 kB / 366.1 MB Notification: Performance of Solve: time 0.001161/0.2577, allocations: 0.8075 MB / 474.7 MB, free: 15.43 MB / 382.1 MB Notification: Performance of Jacobian: time 0.0006693/0.2584, allocations: 0.587 MB / 475.3 MB, free: 14.8 MB / 382.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 7.224e-05/0.2585, allocations: 61.42 kB / 475.3 MB, free: 14.75 MB / 382.1 MB Notification: Performance of SimCode: time 0.02163/0.2801, allocations: 10.86 MB / 486.2 MB, free: 3.801 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.06037/0.3405, allocations: 45.47 MB / 0.5192 GB, free: 6.316 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.345929702743888] Failed to read output from testmodel.py, exit status != 0: ['time', 'volume.medium.T', 'volume.medium.Xi[1]', 'volume.medium.p'] 0.34781259996816516 0.361147198 0.12786234300000002 Calling exit ...