Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Annex60_1.0.0_Annex60.Media.Specialized.Air.Examples.PerfectGasTestImplementation.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) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Annex60 1.0.0/package.mo", uses=false) Using package Annex60 with version 1.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Annex60 1.0.0/package.mo) 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(Annex60.Media.Specialized.Air.Examples.PerfectGasTestImplementation,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Annex60_1.0.0_Annex60.Media.Specialized.Air.Examples.PerfectGasTestImplementation") translateModel(Annex60.Media.Specialized.Air.Examples.PerfectGasTestImplementation,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Annex60_1.0.0_Annex60.Media.Specialized.Air.Examples.PerfectGasTestImplementation") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001205/0.001205, allocations: 109.8 kB / 16.42 MB, free: 6.516 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.001352/0.001352, allocations: 187.2 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.247/1.247, allocations: 205.1 MB / 223.2 MB, free: 12.23 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Annex60 1.0.0/package.mo): time 0.2449/0.2449, allocations: 54.95 MB / 325.5 MB, free: 4.867 MB / 270.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.285e-05/2.286e-05, allocations: 2.281 kB / 456.9 MB, free: 2.664 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Annex60.Media.Specialized.Air.Examples.PerfectGasTestImplementation): time 0.3729/0.373, allocations: 161.2 MB / 0.6036 GB, free: 5.211 MB / 430.1 MB Notification: Performance of NFInst.instExpressions: time 0.002885/0.3759, allocations: 2.386 MB / 0.6059 GB, free: 3.336 MB / 430.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001564/0.3761, allocations: 6.719 kB / 0.606 GB, free: 3.332 MB / 430.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0007313/0.3768, allocations: 258 kB / 0.6062 GB, free: 3.125 MB / 430.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0007376/0.3776, allocations: 439.1 kB / 0.6066 GB, free: 2.777 MB / 430.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.000687/0.3783, allocations: 343.3 kB / 0.6069 GB, free: 2.52 MB / 430.1 MB Notification: Performance of NFFlatten.flatten: time 0.0009325/0.3792, allocations: 1.094 MB / 0.608 GB, free: 1.91 MB / 430.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002538/0.3795, allocations: 145.7 kB / 0.6082 GB, free: 1.828 MB / 430.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0008969/0.3804, allocations: 0.5832 MB / 0.6087 GB, free: 1.484 MB / 430.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003736/0.3808, allocations: 327.5 kB / 0.609 GB, free: 1.301 MB / 430.1 MB Notification: Performance of NFPackage.collectConstants: time 6.076e-05/0.3809, allocations: 48.16 kB / 0.6091 GB, free: 1.301 MB / 430.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002979/0.3812, allocations: 152.6 kB / 0.6092 GB, free: 1.242 MB / 430.1 MB Notification: Performance of combineBinaries: time 0.0006363/0.3818, allocations: 0.7851 MB / 0.61 GB, free: 0.7383 MB / 430.1 MB Notification: Performance of replaceArrayConstructors: time 0.0003171/0.3821, allocations: 483.4 kB / 0.6105 GB, free: 420 kB / 430.1 MB Notification: Performance of NFVerifyModel.verify: time 9.311e-05/0.3822, allocations: 83.16 kB / 0.6105 GB, free: 392 kB / 430.1 MB Notification: Performance of FrontEnd: time 4.667e-05/0.3823, allocations: 8.781 kB / 0.6105 GB, free: 388 kB / 430.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 89 (86) * Number of variables: 89 (83) Notification: Performance of Bindings: time 0.002128/0.3844, allocations: 2.263 MB / 0.6127 GB, free: 14.67 MB / 446.1 MB Notification: Performance of FunctionAlias: time 0.0002133/0.3846, allocations: 188 kB / 0.6129 GB, free: 14.53 MB / 446.1 MB Notification: Performance of Early Inline: time 0.001054/0.3857, allocations: 1.196 MB / 0.6141 GB, free: 13.6 MB / 446.1 MB Notification: Performance of simplify1: time 0.0001105/0.3858, allocations: 105.2 kB / 0.6142 GB, free: 13.53 MB / 446.1 MB Notification: Performance of Alias: time 0.001551/0.3874, allocations: 1.42 MB / 0.6156 GB, free: 12.54 MB / 446.1 MB Notification: Performance of simplify2: time 9.034e-05/0.3875, allocations: 89.88 kB / 0.6157 GB, free: 12.48 MB / 446.1 MB Notification: Performance of Events: time 0.0002512/0.3877, allocations: 186.2 kB / 0.6158 GB, free: 12.34 MB / 446.1 MB Notification: Performance of Detect States: time 0.0005388/0.3883, allocations: 349.5 kB / 0.6162 GB, free: 12.06 MB / 446.1 MB Notification: Performance of Partitioning: time 0.0005138/0.3888, allocations: 0.5124 MB / 0.6167 GB, free: 11.68 MB / 446.1 MB Notification: Performance of Causalize: time 0.002834/0.3917, allocations: 2.987 MB / 0.6196 GB, free: 8.93 MB / 446.1 MB Notification: Performance of After Index Reduction Inline: time 0.0009405/0.3926, allocations: 1.003 MB / 0.6206 GB, free: 7.902 MB / 446.1 MB Notification: Performance of Inline: time 0.001757/0.3944, allocations: 1.847 MB / 0.6224 GB, free: 6.016 MB / 446.1 MB Notification: Performance of Partitioning: time 0.0001007/0.3945, allocations: 98.72 kB / 0.6225 GB, free: 5.914 MB / 446.1 MB Notification: Performance of Cleanup: time 7.2e-05/0.3946, allocations: 83.84 kB / 0.6226 GB, free: 5.832 MB / 446.1 MB Notification: Performance of Causalize: time 0.003196/0.3978, allocations: 3.53 MB / 0.626 GB, free: 2.414 MB / 446.1 MB Notification: Performance of Tearing: time 0.0005929/0.3984, allocations: 0.6642 MB / 0.6267 GB, free: 1.645 MB / 446.1 MB Notification: Performance of Initialization: time 7.02e-07/0.3984, allocations: 4.062 kB / 0.6267 GB, free: 1.641 MB / 446.1 MB Notification: Performance of Tearing: time 0.0006556/0.399, allocations: 0.9362 MB / 0.6276 GB, free: 0.5508 MB / 446.1 MB Notification: Performance of Categorize: time 2.159e-05/0.3991, allocations: 4 kB / 0.6276 GB, free: 0.5469 MB / 446.1 MB Notification: Performance of Solve: time 0.000721/0.3998, allocations: 0.6327 MB / 0.6282 GB, free: 15.86 MB / 462.1 MB Notification: Performance of Jacobian: time 0.001108/0.4009, allocations: 1.074 MB / 0.6292 GB, free: 14.74 MB / 462.1 MB Notification: Partition statistics after passing the back-end: * Number of ODE partitions: ..................... 0 * Number of algebraic partitions: ............... 3 * 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: ............................. 3 (3) {volume.m, volume.mXi, volume.U} * Number of discrete states: .................... 0 (0) {} * Number of clocked states: ..................... 0 (0) {NOT YET AVAILABLE} * Number of discrete variables: ................. 12 (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: ........... 61 (scalar:49, array:12, record:0) * Number of multi strong components: ............ 0 (algorithm:0, when:0, if:0, tuple:0) * Number of for-loop strong components: ......... 3 (generic: 3, entwined:0) * Number of algebraic-loop strong components: ... 4 (linear: 0, nonlinear:4) Notification: [Initialization] Strong Component statistics after passing the back-end: * Number of single strong components: ........... 87 (scalar:71, array:16, record:0) * Number of multi strong components: ............ 0 (algorithm:0, when:0, if:0, tuple:0) * Number of for-loop strong components: ......... 3 (generic: 3, entwined:0) * Number of algebraic-loop strong components: ... 2 (linear: 0, nonlinear:2) Notification: Performance of backend: time 6.828e-05/0.401, allocations: 45.67 kB / 0.6293 GB, free: 14.71 MB / 462.1 MB Notification: Performance of SimCode: time 0.003198/0.4042, allocations: 3.526 MB / 0.6327 GB, free: 11.11 MB / 462.1 MB Notification: Performance of Templates: time 0.01108/0.4153, allocations: 6.987 MB / 0.6396 GB, free: 4.168 MB / 462.1 MB make -j1 -f Annex60_1.0.0_Annex60.Media.Specialized.Air.Examples.PerfectGasTestImplementation.makefile make -j1 -f Annex60_1.0.0_Annex60.Media.Specialized.Air.Examples.PerfectGasTestImplementation.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=Annex60_1_0_0_Annex60_Media_Specialized_Air_Examples_PerfectGasTestImplementation -DOMC_NUM_MIXED_SYSTEMS=0 -DOMC_NUM_LINEAR_SYSTEMS=0 -DOMC_NUM_NONLINEAR_SYSTEMS=6 -DOMC_NDELAY_EXPRESSIONS=0 -DOMC_NVAR_STRING=0 -c -o Annex60_1.0.0_Annex60.Media.Specialized.Air.Examples.PerfectGasTestImplementation.o Annex60_1.0.0_Annex60.Media.Specialized.Air.Examples.PerfectGasTestImplementation.c Annex60_1.0.0_Annex60.Media.Specialized.Air.Examples.PerfectGasTestImplementation.c:305:59: error: use of undeclared identifier 'i' tmp20 = modelica_integer_to_modelica_string(i, ((modelica_integer) 0), 1 /* true */); ^ Annex60_1.0.0_Annex60.Media.Specialized.Air.Examples.PerfectGasTestImplementation.c:308:127: error: use of undeclared identifier 'i' tmp24 = modelica_real_to_modelica_string((&data->localData[0]->realVars[46] /* ambient.medium.X[1] variable */)[i - 1], ((modelica_integer) 6), ((modelica_integer) 0), 1 /* true */); ^ Annex60_1.0.0_Annex60.Media.Specialized.Air.Examples.PerfectGasTestImplementation.c:311:22: error: use of undeclared identifier 'i' switch(i) ^ Annex60_1.0.0_Annex60.Media.Specialized.Air.Examples.PerfectGasTestImplementation.c:324:118: error: use of undeclared identifier 'i' throwStreamPrint(threadData, "Index %ld out of bounds [1..2] for array {\"water\", \"air\"}", (long) i); ^ Annex60_1.0.0_Annex60.Media.Specialized.Air.Examples.PerfectGasTestImplementation.c:516:59: error: use of undeclared identifier 'i' tmp72 = modelica_integer_to_modelica_string(i, ((modelica_integer) 0), 1 /* true */); ^ Annex60_1.0.0_Annex60.Media.Specialized.Air.Examples.PerfectGasTestImplementation.c:519:137: error: use of undeclared identifier 'i' tmp76 = modelica_real_to_modelica_string((&data->localData[0]->realVars[29] /* fixedMassFlowRate.medium.X[1] variable */)[i - 1], ((modelica_integer) 6), ((modelica_integer) 0), 1 /* true */); ^ Annex60_1.0.0_Annex60.Media.Specialized.Air.Examples.PerfectGasTestImplementation.c:522:22: error: use of undeclared identifier 'i' switch(i) ^ Annex60_1.0.0_Annex60.Media.Specialized.Air.Examples.PerfectGasTestImplementation.c:535:118: error: use of undeclared identifier 'i' throwStreamPrint(threadData, "Index %ld out of bounds [1..2] for array {\"water\", \"air\"}", (long) i); ^ Annex60_1.0.0_Annex60.Media.Specialized.Air.Examples.PerfectGasTestImplementation.c:727:60: error: use of undeclared identifier 'i' tmp124 = modelica_integer_to_modelica_string(i, ((modelica_integer) 0), 1 /* true */); ^ Annex60_1.0.0_Annex60.Media.Specialized.Air.Examples.PerfectGasTestImplementation.c:730:127: error: use of undeclared identifier 'i' tmp128 = modelica_real_to_modelica_string((&data->localData[0]->realVars[13] /* volume.medium.X[1] variable */)[i - 1], ((modelica_integer) 6), ((modelica_integer) 0), 1 /* true */); ^ Annex60_1.0.0_Annex60.Media.Specialized.Air.Examples.PerfectGasTestImplementation.c:733:22: error: use of undeclared identifier 'i' switch(i) ^ Annex60_1.0.0_Annex60.Media.Specialized.Air.Examples.PerfectGasTestImplementation.c:746:118: error: use of undeclared identifier 'i' throwStreamPrint(threadData, "Index %ld out of bounds [1..2] for array {\"water\", \"air\"}", (long) i); ^ 12 errors generated. make: *** [: Annex60_1.0.0_Annex60.Media.Specialized.Air.Examples.PerfectGasTestImplementation.o] Error 1