Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_3.2.3_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="mat",numberOfIntervals=5000,variableFilter="time|medium.T|medium.p",fileNamePrefix="Modelica_3.2.3_Modelica.Media.Examples.TestOnly.IdealGasN2") translateModel(Modelica.Media.Examples.TestOnly.IdealGasN2,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|medium.T|medium.p",fileNamePrefix="Modelica_3.2.3_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.001151/0.001151, allocations: 107.5 kB / 18.41 MB, free: 4.664 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.001131/0.001131, allocations: 189.3 kB / 19.35 MB, free: 3.738 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.428/1.428, allocations: 205.1 MB / 225.2 MB, free: 12.23 MB / 190.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.295e-05/2.295e-05, allocations: 2.281 kB / 329.2 MB, free: 3.355 MB / 270.1 MB Notification: Performance of NFInst.instantiate(Modelica.Media.Examples.TestOnly.IdealGasN2): time 0.3788/0.3788, allocations: 150.6 MB / 479.8 MB, free: 15.42 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.001508/0.3804, allocations: 0.9732 MB / 480.7 MB, free: 14.45 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 9.877e-05/0.3805, allocations: 0 / 480.7 MB, free: 14.45 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002952/0.3808, allocations: 31.83 kB / 480.8 MB, free: 14.42 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0008207/0.3816, allocations: 242.6 kB / 481 MB, free: 14.18 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004107/0.3821, allocations: 113.1 kB / 481.1 MB, free: 14.07 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002987/0.3824, allocations: 183.2 kB / 481.3 MB, free: 13.89 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 5.016e-05/0.3825, allocations: 7.984 kB / 481.3 MB, free: 13.89 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002608/0.3828, allocations: 91.69 kB / 481.4 MB, free: 13.8 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001199/0.3829, allocations: 47.84 kB / 481.4 MB, free: 13.75 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 3.717e-05/0.3829, allocations: 4 kB / 481.4 MB, free: 13.75 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0005537/0.3835, allocations: 267.6 kB / 481.7 MB, free: 13.48 MB / 382.1 MB Notification: Performance of combineBinaries: time 0.0001442/0.3836, allocations: 143.2 kB / 481.8 MB, free: 13.34 MB / 382.1 MB Notification: Performance of replaceArrayConstructors: time 6.788e-05/0.3837, allocations: 86.48 kB / 481.9 MB, free: 13.26 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 3.447e-05/0.3838, allocations: 15.94 kB / 481.9 MB, free: 13.25 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.776e-05/0.3838, allocations: 0 / 481.9 MB, free: 13.25 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.0006791/0.3845, allocations: 0.5059 MB / 482.4 MB, free: 12.64 MB / 382.1 MB Notification: Performance of FunctionAlias: time 4.636e-05/0.3845, allocations: 32.38 kB / 482.5 MB, free: 12.61 MB / 382.1 MB Notification: Performance of Early Inline: time 0.0009094/0.3854, allocations: 0.777 MB / 483.2 MB, free: 11.8 MB / 382.1 MB Notification: Performance of simplify1: time 0.000101/0.3855, allocations: 83.94 kB / 483.3 MB, free: 11.72 MB / 382.1 MB Notification: Performance of Alias: time 0.0007745/0.3863, allocations: 402.8 kB / 483.7 MB, free: 11.26 MB / 382.1 MB Notification: Performance of simplify2: time 0.000126/0.3865, allocations: 95.84 kB / 483.8 MB, free: 11.17 MB / 382.1 MB Notification: Performance of Detect States: time 0.0002817/0.3868, allocations: 148.8 kB / 484 MB, free: 11.01 MB / 382.1 MB Notification: Performance of Events: time 0.0002074/0.387, allocations: 94.88 kB / 484.1 MB, free: 10.92 MB / 382.1 MB Notification: Performance of Partitioning: time 0.0002511/0.3872, allocations: 165.5 kB / 484.2 MB, free: 10.74 MB / 382.1 MB Notification: Performance of Causalize: time 0.0007699/0.388, allocations: 0.5501 MB / 484.8 MB, free: 10.19 MB / 382.1 MB Notification: Performance of After Index Reduction Inline: time 0.0004655/0.3885, allocations: 0.5119 MB / 485.3 MB, free: 9.648 MB / 382.1 MB Notification: Performance of Inline: time 0.001546/0.39, allocations: 1.546 MB / 486.8 MB, free: 8.066 MB / 382.1 MB Notification: Performance of Partitioning: time 4.025e-05/0.3901, allocations: 28.06 kB / 486.8 MB, free: 8.031 MB / 382.1 MB Notification: Performance of Cleanup: time 0.0001103/0.3902, allocations: 71.89 kB / 486.9 MB, free: 7.961 MB / 382.1 MB Notification: Performance of Causalize: time 0.001536/0.3918, allocations: 1.125 MB / 488 MB, free: 6.828 MB / 382.1 MB Notification: Performance of Tearing: time 0.001181/0.3929, allocations: 0.5994 MB / 488.6 MB, free: 6.18 MB / 382.1 MB Notification: Performance of Initialization: time 7.31e-07/0.393, allocations: 1.094 kB / 488.6 MB, free: 6.18 MB / 382.1 MB Notification: Performance of Tearing: time 0.0002045/0.3932, allocations: 258.2 kB / 488.9 MB, free: 5.879 MB / 382.1 MB Notification: Performance of Categorize: time 1.527e-05/0.3932, allocations: 7.969 kB / 488.9 MB, free: 5.871 MB / 382.1 MB Notification: Performance of Solve: time 0.0005645/0.3938, allocations: 0.5231 MB / 489.4 MB, free: 5.297 MB / 382.1 MB Notification: Performance of Jacobian: time 0.0003718/0.3941, allocations: 413.9 kB / 489.8 MB, free: 4.855 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: 1, nonlinear:1) 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: 1, nonlinear:1) Notification: Performance of backend: time 6.209e-05/0.3942, allocations: 37.53 kB / 489.9 MB, free: 4.82 MB / 382.1 MB Notification: Performance of SimCode: time 0.002105/0.3963, allocations: 1.604 MB / 491.5 MB, free: 3.188 MB / 382.1 MB Notification: Performance of Templates: time 0.01068/0.407, allocations: 6.122 MB / 497.6 MB, free: 13.06 MB / 398.1 MB make -j1 -f Modelica_3.2.3_Modelica.Media.Examples.TestOnly.IdealGasN2.makefile make -j1 -f Modelica_3.2.3_Modelica.Media.Examples.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=Modelica_3_2_3_Modelica_Media_Examples_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 Modelica_3.2.3_Modelica.Media.Examples.TestOnly.IdealGasN2.o Modelica_3.2.3_Modelica.Media.Examples.TestOnly.IdealGasN2.c Modelica_3.2.3_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.2.3_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.2.3_Modelica.Media.Examples.TestOnly.IdealGasN2.c:251:22: error: use of undeclared identifier 'i' switch(i) ^ Modelica_3.2.3_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.2.3_Modelica.Media.Examples.TestOnly.IdealGasN2.o] Error 1