Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_trunk_ModelicaTest.Media.TestOnly.IdealGasN2.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo", uses=false) Using package ModelicaTest with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo) Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Running command: translateModel(ModelicaTest.Media.TestOnly.IdealGasN2,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|medium.T|medium.p",fileNamePrefix="ModelicaTest_trunk_ModelicaTest.Media.TestOnly.IdealGasN2") translateModel(ModelicaTest.Media.TestOnly.IdealGasN2,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|medium.T|medium.p",fileNamePrefix="ModelicaTest_trunk_ModelicaTest.Media.TestOnly.IdealGasN2") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001062/0.001066, allocations: 115 kB / 18.47 MB, free: 4.621 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001083/0.001083, allocations: 209.1 kB / 19.42 MB, free: 3.68 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.15/1.15, allocations: 227.4 MB / 247.6 MB, free: 10.47 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.1734/0.1734, allocations: 46.1 MB / 345 MB, free: 11.48 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.53e-05/1.53e-05, allocations: 2.281 kB / 481.9 MB, free: 4.16 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Media.TestOnly.IdealGasN2): time 0.3032/0.3032, allocations: 152.3 MB / 0.6193 GB, free: 9.945 MB / 462.1 MB Notification: Performance of NFInst.instExpressions: time 0.001192/0.3044, allocations: 1.056 MB / 0.6203 GB, free: 8.902 MB / 462.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 5.391e-05/0.3045, allocations: 0 / 0.6203 GB, free: 8.902 MB / 462.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002107/0.3047, allocations: 27.83 kB / 0.6204 GB, free: 8.875 MB / 462.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0006427/0.3054, allocations: 278.5 kB / 0.6206 GB, free: 8.609 MB / 462.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003245/0.3057, allocations: 123.1 kB / 0.6207 GB, free: 8.492 MB / 462.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002264/0.306, allocations: 191.2 kB / 0.6209 GB, free: 8.305 MB / 462.1 MB Notification: Performance of NFFlatten.resolveConnections: time 3.839e-05/0.306, allocations: 4 kB / 0.6209 GB, free: 8.301 MB / 462.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001854/0.3062, allocations: 87.69 kB / 0.621 GB, free: 8.215 MB / 462.1 MB Notification: Performance of NFSimplifyModel.simplify: time 9.705e-05/0.3063, allocations: 59.7 kB / 0.6211 GB, free: 8.156 MB / 462.1 MB Notification: Performance of NFPackage.collectConstants: time 2.26e-05/0.3063, allocations: 8 kB / 0.6211 GB, free: 8.148 MB / 462.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0004728/0.3068, allocations: 287.6 kB / 0.6213 GB, free: 7.867 MB / 462.1 MB Notification: Performance of combineBinaries: time 0.0001143/0.307, allocations: 146.6 kB / 0.6215 GB, free: 7.723 MB / 462.1 MB Notification: Performance of replaceArrayConstructors: time 5.422e-05/0.307, allocations: 82.86 kB / 0.6216 GB, free: 7.641 MB / 462.1 MB Notification: Performance of NFVerifyModel.verify: time 2.257e-05/0.307, allocations: 16 kB / 0.6216 GB, free: 7.625 MB / 462.1 MB Notification: Performance of FrontEnd: time 1.347e-05/0.3071, allocations: 3.938 kB / 0.6216 GB, free: 7.621 MB / 462.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.0005508/0.3076, allocations: 0.5137 MB / 0.6221 GB, free: 7.012 MB / 462.1 MB Notification: Performance of FunctionAlias: time 3.501e-05/0.3077, allocations: 23.92 kB / 0.6221 GB, free: 6.988 MB / 462.1 MB Notification: Performance of Early Inline: time 0.000723/0.3084, allocations: 0.7828 MB / 0.6229 GB, free: 6.18 MB / 462.1 MB Notification: Performance of simplify1: time 7.683e-05/0.3085, allocations: 83.92 kB / 0.623 GB, free: 6.098 MB / 462.1 MB Notification: Performance of Alias: time 0.0004916/0.309, allocations: 413.4 kB / 0.6233 GB, free: 5.625 MB / 462.1 MB Notification: Performance of simplify2: time 7.332e-05/0.309, allocations: 79.94 kB / 0.6234 GB, free: 5.547 MB / 462.1 MB Notification: Performance of Events: time 0.0001312/0.3092, allocations: 96.38 kB / 0.6235 GB, free: 5.453 MB / 462.1 MB Notification: Performance of Detect States: time 0.0001901/0.3094, allocations: 163.1 kB / 0.6237 GB, free: 5.281 MB / 462.1 MB Notification: Performance of Partitioning: time 0.0001726/0.3096, allocations: 163.1 kB / 0.6238 GB, free: 5.109 MB / 462.1 MB Notification: Performance of Causalize: time 0.0005999/0.3102, allocations: 0.5488 MB / 0.6244 GB, free: 4.559 MB / 462.1 MB Notification: Performance of After Index Reduction Inline: time 0.0004017/0.3106, allocations: 0.508 MB / 0.6249 GB, free: 4.023 MB / 462.1 MB Notification: Performance of Inline: time 0.001273/0.3119, allocations: 1.55 MB / 0.6264 GB, free: 2.438 MB / 462.1 MB Notification: Performance of Partitioning: time 2.471e-05/0.3119, allocations: 24.11 kB / 0.6264 GB, free: 2.406 MB / 462.1 MB Notification: Performance of Cleanup: time 6.679e-05/0.312, allocations: 83.83 kB / 0.6265 GB, free: 2.324 MB / 462.1 MB Notification: Performance of Causalize: time 0.001279/0.3133, allocations: 1.124 MB / 0.6276 GB, free: 1.195 MB / 462.1 MB Notification: Performance of Tearing: time 0.0006434/0.3139, allocations: 430 kB / 0.628 GB, free: 0.7266 MB / 462.1 MB Notification: Performance of Initialization: time 6.21e-07/0.3139, allocations: 0 / 0.628 GB, free: 0.7266 MB / 462.1 MB Notification: Performance of Tearing: time 0.0001415/0.3141, allocations: 246.2 kB / 0.6282 GB, free: 448 kB / 462.1 MB Notification: Performance of Categorize: time 8.276e-06/0.3141, allocations: 3.984 kB / 0.6282 GB, free: 444 kB / 462.1 MB Notification: Performance of Solve: time 0.0004564/0.3145, allocations: 0.6457 MB / 0.6289 GB, free: 15.73 MB / 478.1 MB Notification: Performance of Jacobian: time 0.0003052/0.3149, allocations: 413.9 kB / 0.6292 GB, free: 15.29 MB / 478.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: ........... 18 (scalar:17, 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: Performance of backend: time 3.152e-05/0.3149, allocations: 14.52 kB / 0.6293 GB, free: 15.29 MB / 478.1 MB Notification: Performance of SimCode: time 0.001527/0.3164, allocations: 1.595 MB / 0.6308 GB, free: 13.66 MB / 478.1 MB Notification: Performance of Templates: time 0.008559/0.325, allocations: 6.169 MB / 0.6368 GB, free: 7.492 MB / 478.1 MB make -j1 -f ModelicaTest_trunk_ModelicaTest.Media.TestOnly.IdealGasN2.makefile make -j1 -f ModelicaTest_trunk_ModelicaTest.Media.TestOnly.IdealGasN2.makefile clang -Os -DOM_HAVE_PTHREADS -fPIC -falign-functions -mfpmath=sse -fno-dollars-in-identifiers -Wno-parentheses-equality -Os -march=native -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=ModelicaTest_trunk_ModelicaTest_Media_TestOnly_IdealGasN2 -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 ModelicaTest_trunk_ModelicaTest.Media.TestOnly.IdealGasN2.o ModelicaTest_trunk_ModelicaTest.Media.TestOnly.IdealGasN2.c ModelicaTest_trunk_ModelicaTest.Media.TestOnly.IdealGasN2.c:245:59: error: use of undeclared identifier 'i' tmp24 = modelica_integer_to_modelica_string(i, ((modelica_integer) 0), 1 /* true */); ^ ModelicaTest_trunk_ModelicaTest.Media.TestOnly.IdealGasN2.c:248:118: error: use of undeclared identifier 'i' tmp28 = modelica_real_to_modelica_string((&data->localData[0]->realVars[8] /* medium.X[1] variable */)[i - 1], ((modelica_integer) 6), ((modelica_integer) 0), 1 /* true */); ^ ModelicaTest_trunk_ModelicaTest.Media.TestOnly.IdealGasN2.c:251:22: error: use of undeclared identifier 'i' switch(i) ^ ModelicaTest_trunk_ModelicaTest.Media.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: *** [: ModelicaTest_trunk_ModelicaTest.Media.TestOnly.IdealGasN2.o] Error 1