Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_3.1_Modelica.Media.Examples.Tests.MediaTestModels.Air.SimpleAir.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.Air.SimpleAir,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Modelica_3.1_Modelica.Media.Examples.Tests.MediaTestModels.Air.SimpleAir") translateModel(Modelica.Media.Examples.Tests.MediaTestModels.Air.SimpleAir,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Modelica_3.1_Modelica.Media.Examples.Tests.MediaTestModels.Air.SimpleAir") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001209/0.001209, allocations: 112.3 kB / 16.42 MB, free: 6.5 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.001113/0.001113, allocations: 189.9 kB / 17.35 MB, free: 5.754 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.346/1.346, allocations: 205.1 MB / 223.2 MB, free: 12.25 MB / 190.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.897e-05/1.898e-05, allocations: 2.281 kB / 327.2 MB, free: 3.297 MB / 270.1 MB Notification: Performance of NFInst.instantiate(Modelica.Media.Examples.Tests.MediaTestModels.Air.SimpleAir): time 0.3287/0.3287, allocations: 144 MB / 471.2 MB, free: 6.012 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.002322/0.3311, allocations: 1.728 MB / 473 MB, free: 4.285 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001415/0.3312, allocations: 4 kB / 473 MB, free: 4.281 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0006277/0.3319, allocations: 174.9 kB / 473.1 MB, free: 4.109 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0005269/0.3324, allocations: 330.2 kB / 473.4 MB, free: 3.785 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0009785/0.3334, allocations: 413.3 kB / 473.9 MB, free: 3.383 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.0009122/0.3344, allocations: 0.9148 MB / 474.8 MB, free: 2.465 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002505/0.3346, allocations: 121.5 kB / 474.9 MB, free: 2.344 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000622/0.3352, allocations: 430.6 kB / 475.3 MB, free: 1.922 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000371/0.3356, allocations: 291 kB / 475.6 MB, free: 1.637 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 5.158e-05/0.3357, allocations: 36 kB / 475.6 MB, free: 1.602 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0003857/0.3361, allocations: 175.6 kB / 475.8 MB, free: 1.43 MB / 366.1 MB Notification: Performance of combineBinaries: time 0.0004634/0.3366, allocations: 0.55 MB / 476.3 MB, free: 0.875 MB / 366.1 MB Notification: Performance of replaceArrayConstructors: time 0.0002292/0.3368, allocations: 323.6 kB / 476.7 MB, free: 0.5547 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 7.165e-05/0.3369, allocations: 67.81 kB / 476.7 MB, free: 500 kB / 366.1 MB Notification: Performance of FrontEnd: time 5.369e-05/0.3369, allocations: 13.97 kB / 476.7 MB, free: 488 kB / 366.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.001494/0.3384, allocations: 1.577 MB / 478.3 MB, free: 14.8 MB / 382.1 MB Notification: Performance of FunctionAlias: time 0.0001157/0.3386, allocations: 77.91 kB / 478.4 MB, free: 14.72 MB / 382.1 MB Notification: Performance of Early Inline: time 0.0006733/0.3392, allocations: 0.7332 MB / 479.1 MB, free: 13.96 MB / 382.1 MB Notification: Performance of simplify1: time 4.85e-05/0.3393, allocations: 47.94 kB / 479.2 MB, free: 13.92 MB / 382.1 MB Notification: Performance of Alias: time 0.001482/0.3408, allocations: 1.356 MB / 480.5 MB, free: 12.41 MB / 382.1 MB Notification: Performance of simplify2: time 4.428e-05/0.3408, allocations: 43.95 kB / 480.6 MB, free: 12.36 MB / 382.1 MB Notification: Performance of Events: time 0.0002185/0.3411, allocations: 147.6 kB / 480.7 MB, free: 12.22 MB / 382.1 MB Notification: Performance of Detect States: time 0.0002364/0.3413, allocations: 190.1 kB / 480.9 MB, free: 12.02 MB / 382.1 MB Notification: Performance of Partitioning: time 0.0003244/0.3416, allocations: 353.6 kB / 481.3 MB, free: 11.55 MB / 382.1 MB Notification: Performance of Causalize: time 0.001229/0.3429, allocations: 1.275 MB / 482.5 MB, free: 10.16 MB / 382.1 MB Notification: Performance of After Index Reduction Inline: time 0.0004394/0.3433, allocations: 498.3 kB / 483 MB, free: 9.652 MB / 382.1 MB Notification: Performance of Inline: time 0.0009659/0.3443, allocations: 0.9969 MB / 484 MB, free: 8.621 MB / 382.1 MB Notification: Performance of Partitioning: time 6.814e-05/0.3444, allocations: 58.36 kB / 484.1 MB, free: 8.555 MB / 382.1 MB Notification: Performance of Cleanup: time 4.214e-05/0.3444, allocations: 43.89 kB / 484.1 MB, free: 8.512 MB / 382.1 MB Notification: Performance of Causalize: time 0.001694/0.3461, allocations: 1.778 MB / 485.9 MB, free: 6.754 MB / 382.1 MB Notification: Performance of Tearing: time 0.0002257/0.3464, allocations: 246.1 kB / 486.1 MB, free: 6.465 MB / 382.1 MB Notification: Performance of Initialization: time 4e-07/0.3464, allocations: 0 / 486.1 MB, free: 6.465 MB / 382.1 MB Notification: Performance of Tearing: time 0.0001726/0.3466, allocations: 262.2 kB / 486.4 MB, free: 6.16 MB / 382.1 MB Notification: Performance of Categorize: time 2.023e-05/0.3466, allocations: 7.969 kB / 486.4 MB, free: 6.152 MB / 382.1 MB Notification: Performance of Solve: time 0.0005157/0.3471, allocations: 0.5081 MB / 486.9 MB, free: 5.594 MB / 382.1 MB Notification: Performance of Jacobian: time 0.000245/0.3474, allocations: 326 kB / 487.2 MB, free: 5.238 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: ......... 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) {$SEV_8, $SEV_7[$i1], $SEV_6, $SEV_5, $SEV_4[$i1], $SEV_3, $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: ........... 32 (scalar:29, 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: ........... 57 (scalar:51, 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 5.482e-05/0.3474, allocations: 40.66 kB / 487.3 MB, free: 5.203 MB / 382.1 MB Notification: Performance of SimCode: time 0.002216/0.3497, allocations: 2.123 MB / 489.4 MB, free: 3.039 MB / 382.1 MB Notification: Performance of Templates: time 0.008865/0.3585, allocations: 4.902 MB / 494.3 MB, free: 14.14 MB / 398.1 MB make -j1 -f Modelica_3.1_Modelica.Media.Examples.Tests.MediaTestModels.Air.SimpleAir.makefile make -j1 -f Modelica_3.1_Modelica.Media.Examples.Tests.MediaTestModels.Air.SimpleAir.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_Air_SimpleAir -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.Air.SimpleAir.o Modelica_3.1_Modelica.Media.Examples.Tests.MediaTestModels.Air.SimpleAir.c Modelica_3.1_Modelica.Media.Examples.Tests.MediaTestModels.Air.SimpleAir.c:353: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.Air.SimpleAir.c:356:127: error: use of undeclared identifier 'i' tmp24 = modelica_real_to_modelica_string((&data->localData[0]->realVars[20] /* ambient.medium.X[1] variable */)[i - 1], ((modelica_integer) 6), ((modelica_integer) 0), 1 /* true */); ^ Modelica_3.1_Modelica.Media.Examples.Tests.MediaTestModels.Air.SimpleAir.c:359:22: error: use of undeclared identifier 'i' switch(i) ^ Modelica_3.1_Modelica.Media.Examples.Tests.MediaTestModels.Air.SimpleAir.c:367:113: error: use of undeclared identifier 'i' throwStreamPrint(threadData, "Index %ld out of bounds [1..1] for array {\"SimpleAir\"}", (long) i); ^ Modelica_3.1_Modelica.Media.Examples.Tests.MediaTestModels.Air.SimpleAir.c:574:59: error: use of undeclared identifier 'i' tmp79 = modelica_integer_to_modelica_string(i, ((modelica_integer) 0), 1 /* true */); ^ Modelica_3.1_Modelica.Media.Examples.Tests.MediaTestModels.Air.SimpleAir.c:577:137: error: use of undeclared identifier 'i' tmp83 = modelica_real_to_modelica_string((&data->localData[0]->realVars[14] /* fixedMassFlowRate.medium.X[1] variable */)[i - 1], ((modelica_integer) 6), ((modelica_integer) 0), 1 /* true */); ^ Modelica_3.1_Modelica.Media.Examples.Tests.MediaTestModels.Air.SimpleAir.c:580:22: error: use of undeclared identifier 'i' switch(i) ^ Modelica_3.1_Modelica.Media.Examples.Tests.MediaTestModels.Air.SimpleAir.c:588:113: error: use of undeclared identifier 'i' throwStreamPrint(threadData, "Index %ld out of bounds [1..1] for array {\"SimpleAir\"}", (long) i); ^ Modelica_3.1_Modelica.Media.Examples.Tests.MediaTestModels.Air.SimpleAir.c:795:60: error: use of undeclared identifier 'i' tmp138 = modelica_integer_to_modelica_string(i, ((modelica_integer) 0), 1 /* true */); ^ Modelica_3.1_Modelica.Media.Examples.Tests.MediaTestModels.Air.SimpleAir.c:798:126: error: use of undeclared identifier 'i' tmp142 = modelica_real_to_modelica_string((&data->localData[0]->realVars[7] /* volume.medium.X[1] variable */)[i - 1], ((modelica_integer) 6), ((modelica_integer) 0), 1 /* true */); ^ Modelica_3.1_Modelica.Media.Examples.Tests.MediaTestModels.Air.SimpleAir.c:801:22: error: use of undeclared identifier 'i' switch(i) ^ Modelica_3.1_Modelica.Media.Examples.Tests.MediaTestModels.Air.SimpleAir.c:809:113: error: use of undeclared identifier 'i' throwStreamPrint(threadData, "Index %ld out of bounds [1..1] for array {\"SimpleAir\"}", (long) i); ^ 12 errors generated. make: *** [: Modelica_3.1_Modelica.Media.Examples.Tests.MediaTestModels.Air.SimpleAir.o] Error 1