Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_3.1_Modelica.Media.Examples.TestOnly.IdealGasN2.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.TestOnly.IdealGasN2,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Modelica_3.1_Modelica.Media.Examples.TestOnly.IdealGasN2") translateModel(Modelica.Media.Examples.TestOnly.IdealGasN2,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Modelica_3.1_Modelica.Media.Examples.TestOnly.IdealGasN2") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001076/0.001076, allocations: 105.2 kB / 16.42 MB, free: 6.031 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.0009959/0.0009959, allocations: 183.7 kB / 17.35 MB, free: 5.602 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.368/1.368, allocations: 205.1 MB / 223.2 MB, free: 12.23 MB / 190.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.664e-05/2.665e-05, allocations: 6.219 kB / 327.2 MB, free: 3.336 MB / 270.1 MB Notification: Performance of NFInst.instantiate(Modelica.Media.Examples.TestOnly.IdealGasN2): time 0.3597/0.3598, allocations: 150.6 MB / 477.8 MB, free: 15.39 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.001491/0.3613, allocations: 0.972 MB / 478.7 MB, free: 14.43 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000122/0.3615, allocations: 0 / 478.7 MB, free: 14.43 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003032/0.3618, allocations: 35.75 kB / 478.8 MB, free: 14.39 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0009022/0.3627, allocations: 244.5 kB / 479 MB, free: 14.16 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004081/0.3632, allocations: 111.7 kB / 479.1 MB, free: 14.05 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002934/0.3635, allocations: 175.3 kB / 479.3 MB, free: 13.88 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 4.853e-05/0.3635, allocations: 11.98 kB / 479.3 MB, free: 13.87 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002631/0.3638, allocations: 95.61 kB / 479.4 MB, free: 13.77 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001217/0.3639, allocations: 47.78 kB / 479.4 MB, free: 13.73 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 2.938e-05/0.364, allocations: 8 kB / 479.4 MB, free: 13.72 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.000519/0.3645, allocations: 259.7 kB / 479.7 MB, free: 13.46 MB / 382.1 MB Notification: Performance of combineBinaries: time 0.000152/0.3646, allocations: 151.2 kB / 479.9 MB, free: 13.32 MB / 382.1 MB Notification: Performance of replaceArrayConstructors: time 6.234e-05/0.3647, allocations: 79.91 kB / 479.9 MB, free: 13.24 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 2.392e-05/0.3647, allocations: 12 kB / 479.9 MB, free: 13.23 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.813e-05/0.3648, allocations: 4 kB / 479.9 MB, free: 13.22 MB / 382.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 19 (19) * Number of variables: 19 (19) Notification: Performance of Bindings: time 0.0006169/0.3654, allocations: 0.5077 MB / 480.5 MB, free: 12.62 MB / 382.1 MB Notification: Performance of FunctionAlias: time 3.993e-05/0.3654, allocations: 20.39 kB / 480.5 MB, free: 12.6 MB / 382.1 MB Notification: Performance of Early Inline: time 0.00081/0.3663, allocations: 0.7732 MB / 481.2 MB, free: 11.8 MB / 382.1 MB Notification: Performance of simplify1: time 8.487e-05/0.3664, allocations: 92.47 kB / 481.3 MB, free: 11.71 MB / 382.1 MB Notification: Performance of Alias: time 0.0005264/0.3669, allocations: 405 kB / 481.7 MB, free: 11.25 MB / 382.1 MB Notification: Performance of simplify2: time 8.675e-05/0.367, allocations: 79.94 kB / 481.8 MB, free: 11.17 MB / 382.1 MB Notification: Performance of Events: time 0.0001463/0.3671, allocations: 91.84 kB / 481.9 MB, free: 11.08 MB / 382.1 MB Notification: Performance of Detect States: time 0.0002225/0.3674, allocations: 156 kB / 482.1 MB, free: 10.91 MB / 382.1 MB Notification: Performance of Partitioning: time 0.000198/0.3676, allocations: 173.8 kB / 482.2 MB, free: 10.73 MB / 382.1 MB Notification: Performance of Causalize: time 0.001037/0.3686, allocations: 0.9446 MB / 483.2 MB, free: 9.77 MB / 382.1 MB Notification: Performance of After Index Reduction Inline: time 0.0004429/0.3691, allocations: 0.5052 MB / 483.7 MB, free: 9.238 MB / 382.1 MB Notification: Performance of Inline: time 0.001415/0.3705, allocations: 1.546 MB / 485.2 MB, free: 7.656 MB / 382.1 MB Notification: Performance of Partitioning: time 2.613e-05/0.3705, allocations: 24.12 kB / 485.2 MB, free: 7.625 MB / 382.1 MB Notification: Performance of Cleanup: time 7.927e-05/0.3706, allocations: 75.89 kB / 485.3 MB, free: 7.551 MB / 382.1 MB Notification: Performance of Causalize: time 0.001822/0.3724, allocations: 1.865 MB / 487.2 MB, free: 5.691 MB / 382.1 MB Notification: Performance of Tearing: time 6.552e-06/0.3725, allocations: 0 / 487.2 MB, free: 5.691 MB / 382.1 MB Notification: Performance of Initialization: time 2.91e-07/0.3725, allocations: 0 / 487.2 MB, free: 5.691 MB / 382.1 MB Notification: Performance of Tearing: time 0.0006494/0.3731, allocations: 418.3 kB / 487.6 MB, free: 5.234 MB / 382.1 MB Notification: Performance of Categorize: time 8.707e-06/0.3731, allocations: 0 / 487.6 MB, free: 5.234 MB / 382.1 MB Notification: Performance of Solve: time 0.000393/0.3735, allocations: 484.9 kB / 488.1 MB, free: 4.711 MB / 382.1 MB Notification: Performance of Jacobian: time 0.0003112/0.3739, allocations: 408.5 kB / 488.5 MB, free: 4.277 MB / 382.1 MB Notification: Partition statistics after passing the back-end: * Number of ODE partitions: ..................... 0 * Number of algebraic partitions: ............... 0 * Number of ODE event partitions: ............... 1 * Number of algebraic event partitions: ......... 1 * 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) {m, U} * Number of discrete states: .................... 0 (0) {} * Number of clocked states: ..................... 0 (0) {NOT YET AVAILABLE} * Number of discrete variables: ................. 4 (4) {$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: ........... 16 (scalar:15, array:1, 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: ........... 21 (scalar:20, array:1, 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: ... 0 (linear: 0, nonlinear:0) Notification: Performance of backend: time 3.683e-05/0.3739, allocations: 23.73 kB / 488.5 MB, free: 4.258 MB / 382.1 MB Notification: Performance of SimCode: time 0.001592/0.3755, allocations: 1.607 MB / 490.1 MB, free: 2.621 MB / 382.1 MB Notification: Performance of Templates: time 0.009027/0.3845, allocations: 6.16 MB / 496.2 MB, free: 12.46 MB / 398.1 MB make -j1 -f Modelica_3.1_Modelica.Media.Examples.TestOnly.IdealGasN2.makefile make -j1 -f Modelica_3.1_Modelica.Media.Examples.TestOnly.IdealGasN2.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_TestOnly_IdealGasN2 -DOMC_NUM_MIXED_SYSTEMS=0 -DOMC_NUM_LINEAR_SYSTEMS=0 -DOMC_NUM_NONLINEAR_SYSTEMS=2 -DOMC_NDELAY_EXPRESSIONS=0 -DOMC_NVAR_STRING=0 -c -o Modelica_3.1_Modelica.Media.Examples.TestOnly.IdealGasN2.o Modelica_3.1_Modelica.Media.Examples.TestOnly.IdealGasN2.c Modelica_3.1_Modelica.Media.Examples.TestOnly.IdealGasN2.c:245: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.TestOnly.IdealGasN2.c:248:118: error: use of undeclared identifier 'i' tmp24 = modelica_real_to_modelica_string((&data->localData[0]->realVars[8] /* medium.X[1] variable */)[i - 1], ((modelica_integer) 6), ((modelica_integer) 0), 1 /* true */); ^ Modelica_3.1_Modelica.Media.Examples.TestOnly.IdealGasN2.c:251:22: error: use of undeclared identifier 'i' switch(i) ^ Modelica_3.1_Modelica.Media.Examples.TestOnly.IdealGasN2.c:259:106: error: use of undeclared identifier 'i' throwStreamPrint(threadData, "Index %ld out of bounds [1..1] for array {\"N2\"}", (long) i); ^ 4 errors generated. make: *** [: Modelica_3.1_Modelica.Media.Examples.TestOnly.IdealGasN2.o] Error 1