Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_3.2.3_ModelicaTest.Media.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) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo", uses=false) Using package ModelicaTest with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/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(ModelicaTest.Media.TestOnly.IdealGasN2,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|medium.T|medium.p",fileNamePrefix="ModelicaTest_3.2.3_ModelicaTest.Media.TestOnly.IdealGasN2") translateModel(ModelicaTest.Media.TestOnly.IdealGasN2,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|medium.T|medium.p",fileNamePrefix="ModelicaTest_3.2.3_ModelicaTest.Media.TestOnly.IdealGasN2") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001537/0.001537, allocations: 113.2 kB / 17.1 MB, free: 5.82 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.002122/0.002122, allocations: 197.5 kB / 18.03 MB, free: 4.949 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.98/1.98, allocations: 205.1 MB / 223.9 MB, free: 12.24 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo): time 0.2866/0.2866, allocations: 43.52 MB / 314.8 MB, free: 464 kB / 254.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.991e-05/2.991e-05, allocations: 2.281 kB / 442.4 MB, free: 5.762 MB / 318.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Media.TestOnly.IdealGasN2): time 0.6475/0.6475, allocations: 150.6 MB / 0.5791 GB, free: 14.69 MB / 430.1 MB Notification: Performance of NFInst.instExpressions: time 0.00141/0.649, allocations: 0.974 MB / 0.58 GB, free: 14.62 MB / 430.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 6.14e-05/0.6491, allocations: 0 / 0.58 GB, free: 14.62 MB / 430.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003428/0.6494, allocations: 34.38 kB / 0.5801 GB, free: 14.61 MB / 430.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0007478/0.6502, allocations: 246 kB / 0.5803 GB, free: 14.54 MB / 430.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004489/0.6507, allocations: 123 kB / 0.5804 GB, free: 14.53 MB / 430.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003162/0.6511, allocations: 172.7 kB / 0.5806 GB, free: 14.49 MB / 430.1 MB Notification: Performance of NFFlatten.resolveConnections: time 6.416e-05/0.6511, allocations: 12.77 kB / 0.5806 GB, free: 14.48 MB / 430.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002845/0.6514, allocations: 99.47 kB / 0.5807 GB, free: 14.47 MB / 430.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001317/0.6516, allocations: 44.91 kB / 0.5807 GB, free: 14.46 MB / 430.1 MB Notification: Performance of NFPackage.collectConstants: time 2.462e-05/0.6516, allocations: 7.625 kB / 0.5807 GB, free: 14.46 MB / 430.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0005122/0.6521, allocations: 263.1 kB / 0.581 GB, free: 14.45 MB / 430.1 MB Notification: Performance of combineBinaries: time 0.0001876/0.6523, allocations: 146.7 kB / 0.5811 GB, free: 14.38 MB / 430.1 MB Notification: Performance of replaceArrayConstructors: time 7.768e-05/0.6524, allocations: 83.48 kB / 0.5812 GB, free: 14.33 MB / 430.1 MB Notification: Performance of NFVerifyModel.verify: time 3.293e-05/0.6524, allocations: 18.09 kB / 0.5812 GB, free: 14.33 MB / 430.1 MB Notification: Performance of FrontEnd: time 1.944e-05/0.6525, allocations: 6.219 kB / 0.5812 GB, free: 14.32 MB / 430.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.0007942/0.6533, allocations: 0.5038 MB / 0.5817 GB, free: 13.98 MB / 430.1 MB Notification: Performance of FunctionAlias: time 3.963e-05/0.6533, allocations: 23.92 kB / 0.5818 GB, free: 13.97 MB / 430.1 MB Notification: Performance of Early Inline: time 0.001037/0.6544, allocations: 0.7843 MB / 0.5825 GB, free: 13.88 MB / 430.1 MB Notification: Performance of simplify1: time 0.000108/0.6545, allocations: 83.92 kB / 0.5826 GB, free: 13.87 MB / 430.1 MB Notification: Performance of Alias: time 0.0006993/0.6552, allocations: 404.7 kB / 0.583 GB, free: 13.7 MB / 430.1 MB Notification: Performance of simplify2: time 0.0001033/0.6553, allocations: 87.06 kB / 0.5831 GB, free: 13.69 MB / 430.1 MB Notification: Performance of Events: time 0.0001759/0.6555, allocations: 87.47 kB / 0.5832 GB, free: 13.68 MB / 430.1 MB Notification: Performance of Detect States: time 0.000263/0.6558, allocations: 163.9 kB / 0.5833 GB, free: 13.61 MB / 430.1 MB Notification: Performance of Partitioning: time 0.0002191/0.656, allocations: 165.2 kB / 0.5835 GB, free: 13.55 MB / 430.1 MB Notification: Performance of Causalize: time 0.0008254/0.6568, allocations: 0.5639 MB / 0.584 GB, free: 13.38 MB / 430.1 MB Notification: Performance of After Index Reduction Inline: time 0.0005464/0.6574, allocations: 0.5022 MB / 0.5845 GB, free: 13.22 MB / 430.1 MB Notification: Performance of Inline: time 0.001773/0.6591, allocations: 1.549 MB / 0.586 GB, free: 12.75 MB / 430.1 MB Notification: Performance of Partitioning: time 3.822e-05/0.6592, allocations: 29.73 kB / 0.5861 GB, free: 12.72 MB / 430.1 MB Notification: Performance of Cleanup: time 8.487e-05/0.6593, allocations: 77.92 kB / 0.5861 GB, free: 12.69 MB / 430.1 MB Notification: Performance of Causalize: time 0.001637/0.6609, allocations: 1.124 MB / 0.5872 GB, free: 12.41 MB / 430.1 MB Notification: Performance of Tearing: time 0.0009106/0.6619, allocations: 405 kB / 0.5876 GB, free: 12.13 MB / 430.1 MB Notification: Performance of Initialization: time 4.81e-07/0.6619, allocations: 0 / 0.5876 GB, free: 12.13 MB / 430.1 MB Notification: Performance of Tearing: time 0.0001894/0.6621, allocations: 244.5 kB / 0.5878 GB, free: 11.89 MB / 430.1 MB Notification: Performance of Categorize: time 1.575e-05/0.6621, allocations: 2.75 kB / 0.5878 GB, free: 11.89 MB / 430.1 MB Notification: Performance of Solve: time 0.0005378/0.6626, allocations: 472.8 kB / 0.5883 GB, free: 11.55 MB / 430.1 MB Notification: Performance of Jacobian: time 0.0003704/0.663, allocations: 403.8 kB / 0.5887 GB, free: 11.3 MB / 430.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 4.95e-05/0.6631, allocations: 22.28 kB / 0.5887 GB, free: 11.29 MB / 430.1 MB Notification: Performance of SimCode: time 0.002147/0.6652, allocations: 1.578 MB / 0.5902 GB, free: 10.18 MB / 430.1 MB Notification: Performance of Templates: time 0.01166/0.6769, allocations: 6.141 MB / 0.5962 GB, free: 7.004 MB / 430.1 MB make -j1 -f ModelicaTest_3.2.3_ModelicaTest.Media.TestOnly.IdealGasN2.makefile make -j1 -f ModelicaTest_3.2.3_ModelicaTest.Media.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=ModelicaTest_3_2_3_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_3.2.3_ModelicaTest.Media.TestOnly.IdealGasN2.o ModelicaTest_3.2.3_ModelicaTest.Media.TestOnly.IdealGasN2.c ModelicaTest_3.2.3_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_3.2.3_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_3.2.3_ModelicaTest.Media.TestOnly.IdealGasN2.c:251:22: error: use of undeclared identifier 'i' switch(i) ^ ModelicaTest_3.2.3_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_3.2.3_ModelicaTest.Media.TestOnly.IdealGasN2.o] Error 1