Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_3.1_Modelica.Media.Examples.Tests.MediaTestModels.Water.WaterIF97_pT.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.Water.WaterIF97_pT,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Modelica_3.1_Modelica.Media.Examples.Tests.MediaTestModels.Water.WaterIF97_pT") translateModel(Modelica.Media.Examples.Tests.MediaTestModels.Water.WaterIF97_pT,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Modelica_3.1_Modelica.Media.Examples.Tests.MediaTestModels.Water.WaterIF97_pT") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001343/0.001343, allocations: 107.5 kB / 16.42 MB, free: 6.461 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.001419/0.00142, allocations: 187.2 kB / 17.35 MB, free: 5.711 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.332/1.332, allocations: 205.1 MB / 223.2 MB, free: 12.21 MB / 190.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.047e-05/2.047e-05, allocations: 2.281 kB / 327.2 MB, free: 3.285 MB / 270.1 MB Notification: Performance of NFInst.instantiate(Modelica.Media.Examples.Tests.MediaTestModels.Water.WaterIF97_pT): time 0.03149/0.03152, allocations: 32.56 MB / 359.8 MB, free: 2.594 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.0171/0.04866, allocations: 15.74 MB / 375.5 MB, free: 2.809 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000309/0.04901, allocations: 7.938 kB / 375.5 MB, free: 2.801 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0007986/0.04981, allocations: 266.4 kB / 375.8 MB, free: 2.539 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0006796/0.0505, allocations: 365.9 kB / 376.2 MB, free: 2.18 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.1914/0.2421, allocations: 5.769 MB / 381.9 MB, free: 11.8 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.001951/0.244, allocations: 1.066 MB / 383 MB, free: 11.8 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.00029/0.2443, allocations: 127.6 kB / 383.1 MB, free: 11.79 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.00683/0.2512, allocations: 2.203 MB / 385.3 MB, free: 11.32 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004491/0.2516, allocations: 267.1 kB / 385.6 MB, free: 11.32 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 7.929e-05/0.2517, allocations: 38.19 kB / 385.6 MB, free: 11.32 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.005688/0.2574, allocations: 3.624 MB / 389.2 MB, free: 11.31 MB / 318.1 MB Notification: Performance of combineBinaries: time 0.0005078/0.2579, allocations: 0.6358 MB / 389.9 MB, free: 11.12 MB / 318.1 MB Notification: Performance of replaceArrayConstructors: time 0.0002056/0.2582, allocations: 396.6 kB / 390.3 MB, free: 10.9 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001302/0.2583, allocations: 76.53 kB / 390.3 MB, free: 10.89 MB / 318.1 MB Notification: Performance of FrontEnd: time 6.541e-05/0.2584, allocations: 7.219 kB / 390.3 MB, free: 10.89 MB / 318.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 78 (78) * Number of variables: 78 (78) Notification: Performance of Bindings: time 0.001527/0.2599, allocations: 1.959 MB / 392.3 MB, free: 10.03 MB / 318.1 MB Notification: Performance of FunctionAlias: time 0.0001109/0.26, allocations: 108.9 kB / 392.4 MB, free: 10.02 MB / 318.1 MB Notification: Performance of Early Inline: time 0.0007761/0.2608, allocations: 0.9889 MB / 393.4 MB, free: 9.918 MB / 318.1 MB Notification: Performance of simplify1: time 5.434e-05/0.2609, allocations: 63.34 kB / 393.5 MB, free: 9.918 MB / 318.1 MB Notification: Performance of Alias: time 0.001498/0.2624, allocations: 1.508 MB / 395 MB, free: 9.359 MB / 318.1 MB Notification: Performance of simplify2: time 5.114e-05/0.2624, allocations: 50.5 kB / 395 MB, free: 9.359 MB / 318.1 MB Notification: Performance of Events: time 0.0001827/0.2626, allocations: 127.4 kB / 395.1 MB, free: 9.34 MB / 318.1 MB Notification: Performance of Detect States: time 0.0002771/0.2629, allocations: 247.9 kB / 395.4 MB, free: 9.289 MB / 318.1 MB Notification: Performance of Partitioning: time 0.0003699/0.2633, allocations: 438.9 kB / 395.8 MB, free: 9.027 MB / 318.1 MB Notification: Performance of Causalize: time 0.001641/0.2649, allocations: 1.861 MB / 397.7 MB, free: 8.598 MB / 318.1 MB Notification: Performance of After Index Reduction Inline: time 0.000643/0.2656, allocations: 0.6808 MB / 398.4 MB, free: 8.504 MB / 318.1 MB Notification: Performance of Inline: time 0.001141/0.2667, allocations: 1.142 MB / 399.5 MB, free: 8.336 MB / 318.1 MB Notification: Performance of Partitioning: time 8.211e-05/0.2668, allocations: 85.19 kB / 399.6 MB, free: 8.301 MB / 318.1 MB Notification: Performance of Cleanup: time 5.107e-05/0.2669, allocations: 51.06 kB / 399.6 MB, free: 8.293 MB / 318.1 MB Notification: Performance of Causalize: time 0.001832/0.2687, allocations: 2.088 MB / 401.7 MB, free: 7.828 MB / 318.1 MB Notification: Performance of Tearing: time 0.0001993/0.2689, allocations: 238.7 kB / 401.9 MB, free: 7.586 MB / 318.1 MB Notification: Performance of Initialization: time 4.21e-07/0.2689, allocations: 3.938 kB / 402 MB, free: 7.582 MB / 318.1 MB Notification: Performance of Tearing: time 0.0002499/0.2692, allocations: 0.4983 MB / 402.5 MB, free: 7.082 MB / 318.1 MB Notification: Performance of Categorize: time 2.157e-05/0.2692, allocations: 10.73 kB / 402.5 MB, free: 7.074 MB / 318.1 MB Notification: Performance of Solve: time 0.0003084/0.2695, allocations: 229.8 kB / 402.7 MB, free: 7 MB / 318.1 MB Notification: Performance of Jacobian: time 0.000284/0.2698, allocations: 443.8 kB / 403.1 MB, free: 6.688 MB / 318.1 MB Notification: Partition statistics after passing the back-end: * Number of ODE partitions: ..................... 0 * Number of algebraic partitions: ............... 5 * Number of ODE event partitions: ............... 1 * Number of algebraic event partitions: ......... 9 * 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: ................. 9 (9) {volume.medium.state.phase, fixedMassFlowRate.medium.state.phase, ambient.medium.state.phase, $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: ........... 45 (scalar:42, 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: ........... 70 (scalar:64, 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.525e-05/0.2699, allocations: 41.41 kB / 403.2 MB, free: 6.66 MB / 318.1 MB Notification: Performance of SimCode: time 0.005405/0.2753, allocations: 4.11 MB / 407.3 MB, free: 5.02 MB / 318.1 MB Notification: Performance of Templates: time 0.02188/0.2972, allocations: 19.28 MB / 426.5 MB, free: 3.941 MB / 334.1 MB make -j1 -f Modelica_3.1_Modelica.Media.Examples.Tests.MediaTestModels.Water.WaterIF97_pT.makefile make -j1 -f Modelica_3.1_Modelica.Media.Examples.Tests.MediaTestModels.Water.WaterIF97_pT.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_1_Modelica_Media_Examples_Tests_MediaTestModels_Water_WaterIF97_pT -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.1_Modelica.Media.Examples.Tests.MediaTestModels.Water.WaterIF97_pT.o Modelica_3.1_Modelica.Media.Examples.Tests.MediaTestModels.Water.WaterIF97_pT.c Modelica_3.1_Modelica.Media.Examples.Tests.MediaTestModels.Water.WaterIF97_pT.c:305:59: error: use of undeclared identifier 'i' tmp20 = modelica_integer_to_modelica_string(i, ((modelica_integer) 0), 1 /* true */); ^ Modelica_3.1_Modelica.Media.Examples.Tests.MediaTestModels.Water.WaterIF97_pT.c:308:127: error: use of undeclared identifier 'i' tmp24 = modelica_real_to_modelica_string((&data->localData[0]->realVars[31] /* ambient.medium.X[1] variable */)[i - 1], ((modelica_integer) 6), ((modelica_integer) 0), 1 /* true */); ^ Modelica_3.1_Modelica.Media.Examples.Tests.MediaTestModels.Water.WaterIF97_pT.c:311:22: error: use of undeclared identifier 'i' switch(i) ^ Modelica_3.1_Modelica.Media.Examples.Tests.MediaTestModels.Water.WaterIF97_pT.c:319:109: error: use of undeclared identifier 'i' throwStreamPrint(threadData, "Index %ld out of bounds [1..1] for array {\"water\"}", (long) i); ^ Modelica_3.1_Modelica.Media.Examples.Tests.MediaTestModels.Water.WaterIF97_pT.c:456:59: error: use of undeclared identifier 'i' tmp59 = modelica_integer_to_modelica_string(i, ((modelica_integer) 0), 1 /* true */); ^ Modelica_3.1_Modelica.Media.Examples.Tests.MediaTestModels.Water.WaterIF97_pT.c:459:137: error: use of undeclared identifier 'i' tmp63 = modelica_real_to_modelica_string((&data->localData[0]->realVars[20] /* fixedMassFlowRate.medium.X[1] variable */)[i - 1], ((modelica_integer) 6), ((modelica_integer) 0), 1 /* true */); ^ Modelica_3.1_Modelica.Media.Examples.Tests.MediaTestModels.Water.WaterIF97_pT.c:462:22: error: use of undeclared identifier 'i' switch(i) ^ Modelica_3.1_Modelica.Media.Examples.Tests.MediaTestModels.Water.WaterIF97_pT.c:470:109: error: use of undeclared identifier 'i' throwStreamPrint(threadData, "Index %ld out of bounds [1..1] for array {\"water\"}", (long) i); ^ Modelica_3.1_Modelica.Media.Examples.Tests.MediaTestModels.Water.WaterIF97_pT.c:607:59: error: use of undeclared identifier 'i' tmp98 = modelica_integer_to_modelica_string(i, ((modelica_integer) 0), 1 /* true */); ^ Modelica_3.1_Modelica.Media.Examples.Tests.MediaTestModels.Water.WaterIF97_pT.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.1_Modelica.Media.Examples.Tests.MediaTestModels.Water.WaterIF97_pT.c:613:22: error: use of undeclared identifier 'i' switch(i) ^ Modelica_3.1_Modelica.Media.Examples.Tests.MediaTestModels.Water.WaterIF97_pT.c:621:109: error: use of undeclared identifier 'i' throwStreamPrint(threadData, "Index %ld out of bounds [1..1] for array {\"water\"}", (long) i); ^ 12 errors generated. make: *** [: Modelica_3.1_Modelica.Media.Examples.Tests.MediaTestModels.Water.WaterIF97_pT.o] Error 1