Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_3.2.3_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="mat",numberOfIntervals=5000,variableFilter="time|volume.medium.T|volume.medium.p",fileNamePrefix="Modelica_3.2.3_Modelica.Media.Examples.Tests.MediaTestModels.LinearFluid.LinearColdWater") translateModel(Modelica.Media.Examples.Tests.MediaTestModels.LinearFluid.LinearColdWater,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|volume.medium.T|volume.medium.p",fileNamePrefix="Modelica_3.2.3_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.001227/0.001227, allocations: 107 kB / 18.41 MB, free: 4.684 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.001134/0.001134, allocations: 193.4 kB / 19.35 MB, free: 3.762 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.623/1.623, allocations: 205.1 MB / 225.2 MB, free: 12.23 MB / 190.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.342e-05/2.341e-05, allocations: 2.281 kB / 329.2 MB, free: 3.312 MB / 270.1 MB Notification: Performance of NFInst.instantiate(Modelica.Media.Examples.Tests.MediaTestModels.LinearFluid.LinearColdWater): time 0.01724/0.01727, allocations: 15.85 MB / 345.1 MB, free: 3.398 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.002963/0.02028, allocations: 1.912 MB / 347 MB, free: 1.48 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001689/0.02047, allocations: 4 kB / 347 MB, free: 1.477 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0006269/0.02111, allocations: 174.9 kB / 347.1 MB, free: 1.305 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.000596/0.02171, allocations: 306.3 kB / 347.4 MB, free: 1.004 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0006799/0.02247, allocations: 291.4 kB / 347.7 MB, free: 0.7188 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.0009897/0.02347, allocations: 0.907 MB / 348.6 MB, free: 15.81 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002463/0.02372, allocations: 125.2 kB / 348.8 MB, free: 15.68 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001029/0.02476, allocations: 0.5331 MB / 349.3 MB, free: 15.14 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003196/0.02509, allocations: 251 kB / 349.5 MB, free: 14.9 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 4.817e-05/0.02515, allocations: 28 kB / 349.6 MB, free: 14.87 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.000189/0.02534, allocations: 56 kB / 349.6 MB, free: 14.82 MB / 302.1 MB Notification: Performance of combineBinaries: time 0.0004729/0.02582, allocations: 0.5339 MB / 350.1 MB, free: 14.28 MB / 302.1 MB Notification: Performance of replaceArrayConstructors: time 0.0002397/0.02607, allocations: 331.6 kB / 350.5 MB, free: 13.95 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 6.93e-05/0.02615, allocations: 67.88 kB / 350.5 MB, free: 13.88 MB / 302.1 MB Notification: Performance of FrontEnd: time 5.994e-05/0.02621, allocations: 11.88 kB / 350.5 MB, free: 13.87 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.001635/0.02785, allocations: 1.549 MB / 352.1 MB, free: 12.21 MB / 302.1 MB Notification: Performance of FunctionAlias: time 0.0001291/0.02799, allocations: 87.75 kB / 352.2 MB, free: 12.13 MB / 302.1 MB Notification: Performance of Early Inline: time 0.0008138/0.02881, allocations: 0.7518 MB / 352.9 MB, free: 11.35 MB / 302.1 MB Notification: Performance of simplify1: time 0.0001583/0.02898, allocations: 67.8 kB / 353 MB, free: 11.28 MB / 302.1 MB Notification: Performance of Alias: time 0.001831/0.03082, allocations: 1.345 MB / 354.3 MB, free: 9.793 MB / 302.1 MB Notification: Performance of simplify2: time 5.279e-05/0.03089, allocations: 51.94 kB / 354.4 MB, free: 9.742 MB / 302.1 MB Notification: Performance of Events: time 0.0002323/0.03113, allocations: 123 kB / 354.5 MB, free: 9.621 MB / 302.1 MB Notification: Performance of Detect States: time 0.0003453/0.03148, allocations: 223.6 kB / 354.7 MB, free: 9.387 MB / 302.1 MB Notification: Performance of Partitioning: time 0.000419/0.03191, allocations: 329.5 kB / 355.1 MB, free: 8.965 MB / 302.1 MB Notification: Performance of Causalize: time 0.00128/0.0332, allocations: 1.047 MB / 356.1 MB, free: 7.82 MB / 302.1 MB Notification: Performance of After Index Reduction Inline: time 0.0005114/0.03373, allocations: 498.6 kB / 356.6 MB, free: 7.305 MB / 302.1 MB Notification: Performance of Inline: time 0.00136/0.03509, allocations: 1.022 MB / 357.6 MB, free: 6.25 MB / 302.1 MB Notification: Performance of Partitioning: time 7.789e-05/0.03518, allocations: 74.33 kB / 357.7 MB, free: 6.168 MB / 302.1 MB Notification: Performance of Cleanup: time 5.078e-05/0.03524, allocations: 43.91 kB / 357.7 MB, free: 6.125 MB / 302.1 MB Notification: Performance of Causalize: time 0.001865/0.03711, allocations: 1.437 MB / 359.2 MB, free: 4.688 MB / 302.1 MB Notification: Performance of Tearing: time 0.0002559/0.03738, allocations: 238.2 kB / 359.4 MB, free: 4.406 MB / 302.1 MB Notification: Performance of Initialization: time 3.9e-07/0.03739, allocations: 0 / 359.4 MB, free: 4.406 MB / 302.1 MB Notification: Performance of Tearing: time 0.0004576/0.03785, allocations: 0.5434 MB / 359.9 MB, free: 3.766 MB / 302.1 MB Notification: Performance of Categorize: time 2.153e-05/0.03788, allocations: 0 / 359.9 MB, free: 3.766 MB / 302.1 MB Notification: Performance of Solve: time 0.0003327/0.03822, allocations: 223.4 kB / 360.2 MB, free: 3.547 MB / 302.1 MB Notification: Performance of Jacobian: time 0.0004093/0.03864, allocations: 382 kB / 360.5 MB, free: 3.137 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 6.976e-05/0.03872, allocations: 40.58 kB / 360.6 MB, free: 3.098 MB / 302.1 MB Notification: Performance of SimCode: time 0.002424/0.04115, allocations: 2.04 MB / 362.6 MB, free: 1.02 MB / 302.1 MB Notification: Performance of Templates: time 0.009427/0.0506, allocations: 4.301 MB / 366.9 MB, free: 12.71 MB / 318.1 MB make -j1 -f Modelica_3.2.3_Modelica.Media.Examples.Tests.MediaTestModels.LinearFluid.LinearColdWater.makefile make -j1 -f Modelica_3.2.3_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_3_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.3_Modelica.Media.Examples.Tests.MediaTestModels.LinearFluid.LinearColdWater.o Modelica_3.2.3_Modelica.Media.Examples.Tests.MediaTestModels.LinearFluid.LinearColdWater.c Modelica_3.2.3_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.3_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.3_Modelica.Media.Examples.Tests.MediaTestModels.LinearFluid.LinearColdWater.c:311:22: error: use of undeclared identifier 'i' switch(i) ^ Modelica_3.2.3_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.3_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.3_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.3_Modelica.Media.Examples.Tests.MediaTestModels.LinearFluid.LinearColdWater.c:462:22: error: use of undeclared identifier 'i' switch(i) ^ Modelica_3.2.3_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.3_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.3_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.3_Modelica.Media.Examples.Tests.MediaTestModels.LinearFluid.LinearColdWater.c:613:22: error: use of undeclared identifier 'i' switch(i) ^ Modelica_3.2.3_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.3_Modelica.Media.Examples.Tests.MediaTestModels.LinearFluid.LinearColdWater.o] Error 1