Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_3.2.1_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.1+maint.om/package.mo", uses=false) Using package ModelicaTest with version 3.2.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.1+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="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="ModelicaTest_3.2.1_ModelicaTest.Media.TestOnly.IdealGasN2") translateModel(ModelicaTest.Media.TestOnly.IdealGasN2,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="ModelicaTest_3.2.1_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.0009964/0.0009965, allocations: 106.8 kB / 16.42 MB, free: 6.512 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.0009759/0.000976, 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.222/1.222, 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/ModelicaTest 3.2.1+maint.om/package.mo): time 0.1661/0.1661, allocations: 38 MB / 308.6 MB, free: 6.004 MB / 254.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.355e-05/1.355e-05, allocations: 2.281 kB / 433.6 MB, free: 14.51 MB / 318.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Media.TestOnly.IdealGasN2): time 0.3449/0.3449, allocations: 150.6 MB / 0.5705 GB, free: 13.26 MB / 414.1 MB Notification: Performance of NFInst.instExpressions: time 0.001045/0.346, allocations: 0.9729 MB / 0.5714 GB, free: 13.07 MB / 414.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 4.54e-05/0.3461, allocations: 1.812 kB / 0.5714 GB, free: 13.07 MB / 414.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002364/0.3463, allocations: 27.47 kB / 0.5715 GB, free: 13.05 MB / 414.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0005187/0.3469, allocations: 251.9 kB / 0.5717 GB, free: 12.93 MB / 414.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002909/0.3472, allocations: 113 kB / 0.5718 GB, free: 12.89 MB / 414.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001986/0.3474, allocations: 179.1 kB / 0.572 GB, free: 12.83 MB / 414.1 MB Notification: Performance of NFFlatten.resolveConnections: time 3.546e-05/0.3475, allocations: 4.906 kB / 0.572 GB, free: 12.83 MB / 414.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001728/0.3477, allocations: 97.02 kB / 0.5721 GB, free: 12.79 MB / 414.1 MB Notification: Performance of NFSimplifyModel.simplify: time 8.101e-05/0.3478, allocations: 47.5 kB / 0.5721 GB, free: 12.78 MB / 414.1 MB Notification: Performance of NFPackage.collectConstants: time 1.668e-05/0.3478, allocations: 9.219 kB / 0.5721 GB, free: 12.77 MB / 414.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0003644/0.3481, allocations: 260.3 kB / 0.5724 GB, free: 12.71 MB / 414.1 MB Notification: Performance of combineBinaries: time 0.0001225/0.3483, allocations: 143.6 kB / 0.5725 GB, free: 12.64 MB / 414.1 MB Notification: Performance of replaceArrayConstructors: time 5.286e-05/0.3483, allocations: 82.78 kB / 0.5726 GB, free: 12.59 MB / 414.1 MB Notification: Performance of NFVerifyModel.verify: time 2.416e-05/0.3484, allocations: 13.28 kB / 0.5726 GB, free: 12.59 MB / 414.1 MB Notification: Performance of FrontEnd: time 1.152e-05/0.3484, allocations: 10.28 kB / 0.5726 GB, free: 12.58 MB / 414.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.0005159/0.3489, allocations: 0.5058 MB / 0.5731 GB, free: 12.2 MB / 414.1 MB Notification: Performance of FunctionAlias: time 2.819e-05/0.3489, allocations: 21.27 kB / 0.5731 GB, free: 12.2 MB / 414.1 MB Notification: Performance of Early Inline: time 0.0006763/0.3496, allocations: 0.7798 MB / 0.5739 GB, free: 11.95 MB / 414.1 MB Notification: Performance of simplify1: time 6.668e-05/0.3497, allocations: 81.22 kB / 0.574 GB, free: 11.93 MB / 414.1 MB Notification: Performance of Alias: time 0.0004487/0.3502, allocations: 403.5 kB / 0.5744 GB, free: 11.7 MB / 414.1 MB Notification: Performance of simplify2: time 6.385e-05/0.3502, allocations: 84.44 kB / 0.5744 GB, free: 11.68 MB / 414.1 MB Notification: Performance of Events: time 0.0001358/0.3504, allocations: 88.92 kB / 0.5745 GB, free: 11.65 MB / 414.1 MB Notification: Performance of Detect States: time 0.0001926/0.3506, allocations: 163.7 kB / 0.5747 GB, free: 11.58 MB / 414.1 MB Notification: Performance of Partitioning: time 0.0001656/0.3507, allocations: 164 kB / 0.5748 GB, free: 11.52 MB / 414.1 MB Notification: Performance of Causalize: time 0.0008654/0.3516, allocations: 0.9501 MB / 0.5758 GB, free: 11.28 MB / 414.1 MB Notification: Performance of After Index Reduction Inline: time 0.0003907/0.352, allocations: 0.5149 MB / 0.5763 GB, free: 11.11 MB / 414.1 MB Notification: Performance of Inline: time 0.001202/0.3532, allocations: 1.545 MB / 0.5778 GB, free: 10.64 MB / 414.1 MB Notification: Performance of Partitioning: time 2.694e-05/0.3533, allocations: 29.55 kB / 0.5778 GB, free: 10.62 MB / 414.1 MB Notification: Performance of Cleanup: time 5.647e-05/0.3533, allocations: 72.12 kB / 0.5779 GB, free: 10.59 MB / 414.1 MB Notification: Performance of Causalize: time 0.001636/0.355, allocations: 1.843 MB / 0.5797 GB, free: 9.945 MB / 414.1 MB Notification: Performance of Tearing: time 6.071e-06/0.355, allocations: 2.906 kB / 0.5797 GB, free: 9.945 MB / 414.1 MB Notification: Performance of Initialization: time 3.9e-07/0.355, allocations: 0 / 0.5797 GB, free: 9.945 MB / 414.1 MB Notification: Performance of Tearing: time 0.000643/0.3556, allocations: 423.7 kB / 0.5801 GB, free: 9.594 MB / 414.1 MB Notification: Performance of Categorize: time 8.236e-06/0.3557, allocations: 1.906 kB / 0.5801 GB, free: 9.594 MB / 414.1 MB Notification: Performance of Solve: time 0.0004139/0.3561, allocations: 486.3 kB / 0.5805 GB, free: 9.211 MB / 414.1 MB Notification: Performance of Jacobian: time 0.0002902/0.3564, allocations: 403.5 kB / 0.5809 GB, free: 8.898 MB / 414.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.143e-05/0.3564, allocations: 20.28 kB / 0.5809 GB, free: 8.887 MB / 414.1 MB Notification: Performance of SimCode: time 0.00173/0.3581, allocations: 1.596 MB / 0.5825 GB, free: 7.656 MB / 414.1 MB Notification: Performance of Templates: time 0.008722/0.3669, allocations: 6.106 MB / 0.5885 GB, free: 2.648 MB / 414.1 MB make -j1 -f ModelicaTest_3.2.1_ModelicaTest.Media.TestOnly.IdealGasN2.makefile make -j1 -f ModelicaTest_3.2.1_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_1_ModelicaTest_Media_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 ModelicaTest_3.2.1_ModelicaTest.Media.TestOnly.IdealGasN2.o ModelicaTest_3.2.1_ModelicaTest.Media.TestOnly.IdealGasN2.c ModelicaTest_3.2.1_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.1_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.1_ModelicaTest.Media.TestOnly.IdealGasN2.c:251:22: error: use of undeclared identifier 'i' switch(i) ^ ModelicaTest_3.2.1_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.1_ModelicaTest.Media.TestOnly.IdealGasN2.o] Error 1