Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_3.2.2_Modelica.Media.Examples.Tests.MediaTestModels.LinearFluid.LinearColdWater.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+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.Tests.MediaTestModels.LinearFluid.LinearColdWater,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Modelica_3.2.2_Modelica.Media.Examples.Tests.MediaTestModels.LinearFluid.LinearColdWater") translateModel(Modelica.Media.Examples.Tests.MediaTestModels.LinearFluid.LinearColdWater,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Modelica_3.2.2_Modelica.Media.Examples.Tests.MediaTestModels.LinearFluid.LinearColdWater") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001241/0.001241, allocations: 109.5 kB / 17.75 MB, free: 5.348 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001268/0.001268, allocations: 184.2 kB / 18.68 MB, free: 4.426 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.309/1.309, allocations: 205.1 MB / 224.6 MB, free: 12.23 MB / 190.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.853e-05/1.854e-05, allocations: 3.406 kB / 328.5 MB, free: 3.312 MB / 270.1 MB Notification: Performance of NFInst.instantiate(Modelica.Media.Examples.Tests.MediaTestModels.LinearFluid.LinearColdWater): time 0.01466/0.01469, allocations: 15.85 MB / 344.4 MB, free: 3.398 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.002422/0.01716, allocations: 1.912 MB / 346.3 MB, free: 1.48 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001393/0.01732, allocations: 4 kB / 346.3 MB, free: 1.477 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0005281/0.01785, allocations: 170.9 kB / 346.5 MB, free: 1.309 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0005118/0.01837, allocations: 322.2 kB / 346.8 MB, free: 0.9922 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.000559/0.01899, allocations: 279.4 kB / 347.1 MB, free: 0.7188 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.0007936/0.01979, allocations: 0.9148 MB / 348 MB, free: 15.8 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002158/0.02002, allocations: 121.2 kB / 348.1 MB, free: 15.68 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000807/0.02083, allocations: 0.5331 MB / 348.6 MB, free: 15.14 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002799/0.02112, allocations: 243 kB / 348.9 MB, free: 14.9 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 4.55e-05/0.02118, allocations: 32 kB / 348.9 MB, free: 14.87 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001647/0.02135, allocations: 55.98 kB / 349 MB, free: 14.82 MB / 302.1 MB Notification: Performance of combineBinaries: time 0.0004445/0.0218, allocations: 0.5417 MB / 349.5 MB, free: 14.27 MB / 302.1 MB Notification: Performance of replaceArrayConstructors: time 0.0001951/0.022, allocations: 331.6 kB / 349.8 MB, free: 13.94 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 6.078e-05/0.02207, allocations: 59.88 kB / 349.9 MB, free: 13.88 MB / 302.1 MB Notification: Performance of FrontEnd: time 3.489e-05/0.02211, allocations: 7.938 kB / 349.9 MB, free: 13.88 MB / 302.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 60 (60) * Number of variables: 60 (60) Notification: Performance of Bindings: time 0.0014/0.02352, allocations: 1.549 MB / 351.4 MB, free: 12.22 MB / 302.1 MB Notification: Performance of FunctionAlias: time 0.000109/0.02363, allocations: 91.73 kB / 351.5 MB, free: 12.13 MB / 302.1 MB Notification: Performance of Early Inline: time 0.0006491/0.02429, allocations: 0.7479 MB / 352.3 MB, free: 11.35 MB / 302.1 MB Notification: Performance of simplify1: time 8.43e-05/0.02438, allocations: 67.91 kB / 352.3 MB, free: 11.29 MB / 302.1 MB Notification: Performance of Alias: time 0.001329/0.02572, allocations: 1.221 MB / 353.6 MB, free: 9.922 MB / 302.1 MB Notification: Performance of simplify2: time 4.769e-05/0.02578, allocations: 51.95 kB / 353.6 MB, free: 9.871 MB / 302.1 MB Notification: Performance of Events: time 0.0001732/0.02596, allocations: 111.2 kB / 353.7 MB, free: 9.762 MB / 302.1 MB Notification: Performance of Detect States: time 0.0004347/0.0264, allocations: 205.1 kB / 353.9 MB, free: 9.543 MB / 302.1 MB Notification: Performance of Partitioning: time 0.0003118/0.02672, allocations: 341.5 kB / 354.2 MB, free: 9.109 MB / 302.1 MB Notification: Performance of Causalize: time 0.001319/0.02804, allocations: 1.405 MB / 355.7 MB, free: 7.609 MB / 302.1 MB Notification: Performance of After Index Reduction Inline: time 0.0004345/0.02849, allocations: 494.8 kB / 356.1 MB, free: 7.102 MB / 302.1 MB Notification: Performance of Inline: time 0.0009504/0.02945, allocations: 1.03 MB / 357.2 MB, free: 6.035 MB / 302.1 MB Notification: Performance of Partitioning: time 6.584e-05/0.02952, allocations: 70.28 kB / 357.2 MB, free: 5.961 MB / 302.1 MB Notification: Performance of Cleanup: time 3.76e-05/0.02957, allocations: 39.91 kB / 357.3 MB, free: 5.922 MB / 302.1 MB Notification: Performance of Causalize: time 0.001627/0.0312, allocations: 1.827 MB / 359.1 MB, free: 4.117 MB / 302.1 MB Notification: Performance of Tearing: time 0.0002396/0.03145, allocations: 254.1 kB / 359.3 MB, free: 3.82 MB / 302.1 MB Notification: Performance of Initialization: time 3.51e-07/0.03146, allocations: 0 / 359.3 MB, free: 3.82 MB / 302.1 MB Notification: Performance of Tearing: time 0.0003497/0.03181, allocations: 0.5357 MB / 359.9 MB, free: 3.188 MB / 302.1 MB Notification: Performance of Categorize: time 1.854e-05/0.03184, allocations: 3.938 kB / 359.9 MB, free: 3.184 MB / 302.1 MB Notification: Performance of Solve: time 0.0002999/0.03214, allocations: 219.4 kB / 360.1 MB, free: 2.973 MB / 302.1 MB Notification: Performance of Jacobian: time 0.0002854/0.03244, allocations: 374 kB / 360.5 MB, free: 2.57 MB / 302.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: ......... 6 * 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: ............................. 2 (2) {volume.m, volume.U} * Number of discrete states: .................... 0 (0) {} * Number of clocked states: ..................... 0 (0) {NOT YET AVAILABLE} * Number of discrete variables: ................. 6 (6) {$SEV_5[$i1], $SEV_4, $SEV_3[$i1], $SEV_2, $SEV_1[$i1], $SEV_0} * Number of top-level inputs: ................... 0 (0) {} Notification: [Simulation] Strong Component statistics after passing the back-end: * Number of single strong components: ........... 33 (scalar:30, array:3, record:0) * Number of multi strong components: ............ 0 (algorithm:0, when:0, if:0, tuple:0) * Number of for-loop strong components: ......... 0 (generic: 0, entwined:0) * Number of algebraic-loop strong components: ... 2 (linear: 0, nonlinear:2) Notification: [Initialization] Strong Component statistics after passing the back-end: * Number of single strong components: ........... 58 (scalar:52, array:6, record:0) * Number of multi strong components: ............ 0 (algorithm:0, when:0, if:0, tuple:0) * Number of for-loop strong components: ......... 0 (generic: 0, entwined:0) * Number of algebraic-loop strong components: ... 1 (linear: 0, nonlinear:1) Notification: Performance of backend: time 4.837e-05/0.03249, allocations: 47.28 kB / 360.5 MB, free: 2.531 MB / 302.1 MB Notification: Performance of SimCode: time 0.00188/0.03438, allocations: 2.068 MB / 362.6 MB, free: 436 kB / 302.1 MB Notification: Performance of Templates: time 0.007417/0.04181, allocations: 4.174 MB / 366.8 MB, free: 12.25 MB / 318.1 MB make -j1 -f Modelica_3.2.2_Modelica.Media.Examples.Tests.MediaTestModels.LinearFluid.LinearColdWater.makefile make -j1 -f Modelica_3.2.2_Modelica.Media.Examples.Tests.MediaTestModels.LinearFluid.LinearColdWater.makefile clang -Os -DOM_HAVE_PTHREADS -fPIC -falign-functions -mfpmath=sse -fno-dollars-in-identifiers -Wno-parentheses-equality -Os -march=native -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_3_2_2_Modelica_Media_Examples_Tests_MediaTestModels_LinearFluid_LinearColdWater -DOMC_NUM_MIXED_SYSTEMS=0 -DOMC_NUM_LINEAR_SYSTEMS=0 -DOMC_NUM_NONLINEAR_SYSTEMS=3 -DOMC_NDELAY_EXPRESSIONS=0 -DOMC_NVAR_STRING=0 -c -o Modelica_3.2.2_Modelica.Media.Examples.Tests.MediaTestModels.LinearFluid.LinearColdWater.o Modelica_3.2.2_Modelica.Media.Examples.Tests.MediaTestModels.LinearFluid.LinearColdWater.c Modelica_3.2.2_Modelica.Media.Examples.Tests.MediaTestModels.LinearFluid.LinearColdWater.c:305:59: error: use of undeclared identifier 'i' tmp20 = modelica_integer_to_modelica_string(i, ((modelica_integer) 0), 1 /* true */); ^ Modelica_3.2.2_Modelica.Media.Examples.Tests.MediaTestModels.LinearFluid.LinearColdWater.c:308:127: error: use of undeclared identifier 'i' tmp24 = modelica_real_to_modelica_string((&data->localData[0]->realVars[25] /* ambient.medium.X[1] variable */)[i - 1], ((modelica_integer) 6), ((modelica_integer) 0), 1 /* true */); ^ Modelica_3.2.2_Modelica.Media.Examples.Tests.MediaTestModels.LinearFluid.LinearColdWater.c:311:22: error: use of undeclared identifier 'i' switch(i) ^ Modelica_3.2.2_Modelica.Media.Examples.Tests.MediaTestModels.LinearFluid.LinearColdWater.c:319:121: error: use of undeclared identifier 'i' throwStreamPrint(threadData, "Index %ld out of bounds [1..1] for array {\"Linear cold water\"}", (long) i); ^ Modelica_3.2.2_Modelica.Media.Examples.Tests.MediaTestModels.LinearFluid.LinearColdWater.c:456:59: error: use of undeclared identifier 'i' tmp59 = modelica_integer_to_modelica_string(i, ((modelica_integer) 0), 1 /* true */); ^ Modelica_3.2.2_Modelica.Media.Examples.Tests.MediaTestModels.LinearFluid.LinearColdWater.c:459:137: error: use of undeclared identifier 'i' tmp63 = modelica_real_to_modelica_string((&data->localData[0]->realVars[17] /* fixedMassFlowRate.medium.X[1] variable */)[i - 1], ((modelica_integer) 6), ((modelica_integer) 0), 1 /* true */); ^ Modelica_3.2.2_Modelica.Media.Examples.Tests.MediaTestModels.LinearFluid.LinearColdWater.c:462:22: error: use of undeclared identifier 'i' switch(i) ^ Modelica_3.2.2_Modelica.Media.Examples.Tests.MediaTestModels.LinearFluid.LinearColdWater.c:470:121: error: use of undeclared identifier 'i' throwStreamPrint(threadData, "Index %ld out of bounds [1..1] for array {\"Linear cold water\"}", (long) i); ^ Modelica_3.2.2_Modelica.Media.Examples.Tests.MediaTestModels.LinearFluid.LinearColdWater.c:607:59: error: use of undeclared identifier 'i' tmp98 = modelica_integer_to_modelica_string(i, ((modelica_integer) 0), 1 /* true */); ^ Modelica_3.2.2_Modelica.Media.Examples.Tests.MediaTestModels.LinearFluid.LinearColdWater.c:610:126: error: use of undeclared identifier 'i' tmp102 = modelica_real_to_modelica_string((&data->localData[0]->realVars[8] /* volume.medium.X[1] variable */)[i - 1], ((modelica_integer) 6), ((modelica_integer) 0), 1 /* true */); ^ Modelica_3.2.2_Modelica.Media.Examples.Tests.MediaTestModels.LinearFluid.LinearColdWater.c:613:22: error: use of undeclared identifier 'i' switch(i) ^ Modelica_3.2.2_Modelica.Media.Examples.Tests.MediaTestModels.LinearFluid.LinearColdWater.c:621:121: error: use of undeclared identifier 'i' throwStreamPrint(threadData, "Index %ld out of bounds [1..1] for array {\"Linear cold water\"}", (long) i); ^ 12 errors generated. make: *** [: Modelica_3.2.2_Modelica.Media.Examples.Tests.MediaTestModels.LinearFluid.LinearColdWater.o] Error 1