Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_3.2.1_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.1_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.1_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.001165/0.001166, allocations: 107.3 kB / 16.42 MB, free: 6.52 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.001116/0.001116, allocations: 190 kB / 17.36 MB, free: 5.73 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.258/1.258, allocations: 205.1 MB / 223.2 MB, free: 12.25 MB / 190.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.663e-05/1.664e-05, allocations: 2.281 kB / 327.2 MB, free: 3.305 MB / 270.1 MB Notification: Performance of NFInst.instantiate(Modelica.Media.Examples.Tests.MediaTestModels.LinearFluid.LinearColdWater): time 0.01418/0.01421, allocations: 15.84 MB / 343.1 MB, free: 3.398 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.002448/0.01669, allocations: 1.92 MB / 345 MB, free: 1.473 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001435/0.01686, allocations: 4 kB / 345 MB, free: 1.469 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0005348/0.0174, allocations: 170.9 kB / 345.2 MB, free: 1.301 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0005067/0.01791, allocations: 310.3 kB / 345.5 MB, free: 0.9961 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0006262/0.01865, allocations: 279.5 kB / 345.7 MB, free: 0.7227 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.001037/0.01969, allocations: 0.9109 MB / 346.6 MB, free: 15.81 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002552/0.01996, allocations: 129.2 kB / 346.8 MB, free: 15.68 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001018/0.02098, allocations: 0.5331 MB / 347.3 MB, free: 15.14 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003033/0.0213, allocations: 243 kB / 347.5 MB, free: 14.9 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 4.641e-05/0.02135, allocations: 32 kB / 347.6 MB, free: 14.87 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001896/0.02155, allocations: 52 kB / 347.6 MB, free: 14.82 MB / 302.1 MB Notification: Performance of combineBinaries: time 0.0004848/0.02204, allocations: 0.5417 MB / 348.2 MB, free: 14.27 MB / 302.1 MB Notification: Performance of replaceArrayConstructors: time 0.0002194/0.02227, allocations: 335.6 kB / 348.5 MB, free: 13.94 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 7.384e-05/0.02235, allocations: 67.81 kB / 348.6 MB, free: 13.88 MB / 302.1 MB Notification: Performance of FrontEnd: time 4.743e-05/0.02241, allocations: 11.94 kB / 348.6 MB, free: 13.86 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.001436/0.02385, allocations: 1.537 MB / 350.1 MB, free: 12.22 MB / 302.1 MB Notification: Performance of FunctionAlias: time 0.0001164/0.02397, allocations: 95.72 kB / 350.2 MB, free: 12.12 MB / 302.1 MB Notification: Performance of Early Inline: time 0.0006583/0.02464, allocations: 0.7518 MB / 351 MB, free: 11.34 MB / 302.1 MB Notification: Performance of simplify1: time 5.941e-05/0.02471, allocations: 63.88 kB / 351 MB, free: 11.28 MB / 302.1 MB Notification: Performance of Alias: time 0.001479/0.02619, allocations: 1.221 MB / 352.2 MB, free: 9.918 MB / 302.1 MB Notification: Performance of simplify2: time 4.367e-05/0.02625, allocations: 47.95 kB / 352.3 MB, free: 9.871 MB / 302.1 MB Notification: Performance of Events: time 0.0001763/0.02643, allocations: 115.2 kB / 352.4 MB, free: 9.758 MB / 302.1 MB Notification: Performance of Detect States: time 0.0002432/0.02669, allocations: 205 kB / 352.6 MB, free: 9.539 MB / 302.1 MB Notification: Performance of Partitioning: time 0.0003251/0.02702, allocations: 341.5 kB / 352.9 MB, free: 9.105 MB / 302.1 MB Notification: Performance of Causalize: time 0.00136/0.02839, allocations: 1.4 MB / 354.3 MB, free: 7.613 MB / 302.1 MB Notification: Performance of After Index Reduction Inline: time 0.0004644/0.02886, allocations: 494.6 kB / 354.8 MB, free: 7.105 MB / 302.1 MB Notification: Performance of Inline: time 0.0009487/0.02982, allocations: 1.033 MB / 355.8 MB, free: 6.035 MB / 302.1 MB Notification: Performance of Partitioning: time 6.502e-05/0.02989, allocations: 70.3 kB / 355.9 MB, free: 5.961 MB / 302.1 MB Notification: Performance of Cleanup: time 3.89e-05/0.02994, allocations: 43.89 kB / 356 MB, free: 5.918 MB / 302.1 MB Notification: Performance of Causalize: time 0.001652/0.0316, allocations: 1.831 MB / 357.8 MB, free: 4.109 MB / 302.1 MB Notification: Performance of Tearing: time 0.0002449/0.03185, allocations: 246.1 kB / 358 MB, free: 3.82 MB / 302.1 MB Notification: Performance of Initialization: time 4.61e-07/0.03186, allocations: 64 / 358 MB, free: 3.82 MB / 302.1 MB Notification: Performance of Tearing: time 0.0004461/0.03231, allocations: 0.5356 MB / 358.6 MB, free: 3.188 MB / 302.1 MB Notification: Performance of Categorize: time 1.741e-05/0.03235, allocations: 4.031 kB / 358.6 MB, free: 3.184 MB / 302.1 MB Notification: Performance of Solve: time 0.0002952/0.03265, allocations: 219.4 kB / 358.8 MB, free: 2.973 MB / 302.1 MB Notification: Performance of Jacobian: time 0.0002897/0.03294, allocations: 382 kB / 359.2 MB, free: 2.562 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.244e-05/0.03299, allocations: 42.84 kB / 359.2 MB, free: 2.527 MB / 302.1 MB Notification: Performance of SimCode: time 0.001794/0.03479, allocations: 2.057 MB / 361.3 MB, free: 444 kB / 302.1 MB Notification: Performance of Templates: time 0.007412/0.04222, allocations: 4.173 MB / 365.4 MB, free: 12.26 MB / 318.1 MB make -j1 -f Modelica_3.2.1_Modelica.Media.Examples.Tests.MediaTestModels.LinearFluid.LinearColdWater.makefile make -j1 -f Modelica_3.2.1_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 -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_1_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.1_Modelica.Media.Examples.Tests.MediaTestModels.LinearFluid.LinearColdWater.o Modelica_3.2.1_Modelica.Media.Examples.Tests.MediaTestModels.LinearFluid.LinearColdWater.c Modelica_3.2.1_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.1_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.1_Modelica.Media.Examples.Tests.MediaTestModels.LinearFluid.LinearColdWater.c:311:22: error: use of undeclared identifier 'i' switch(i) ^ Modelica_3.2.1_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.1_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.1_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.1_Modelica.Media.Examples.Tests.MediaTestModels.LinearFluid.LinearColdWater.c:462:22: error: use of undeclared identifier 'i' switch(i) ^ Modelica_3.2.1_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.1_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.1_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.1_Modelica.Media.Examples.Tests.MediaTestModels.LinearFluid.LinearColdWater.c:613:22: error: use of undeclared identifier 'i' switch(i) ^ Modelica_3.2.1_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.1_Modelica.Media.Examples.Tests.MediaTestModels.LinearFluid.LinearColdWater.o] Error 1