Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_4.0.0_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 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo", uses=false) Using package ModelicaTest with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+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_4.0.0_ModelicaTest.Media.TestOnly.IdealGasN2") translateModel(ModelicaTest.Media.TestOnly.IdealGasN2,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|medium.T|medium.p",fileNamePrefix="ModelicaTest_4.0.0_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.001262/0.001262, allocations: 105.6 kB / 18.46 MB, free: 4.594 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.001281/0.001281, allocations: 177.5 kB / 19.39 MB, free: 3.672 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.38/1.38, allocations: 222.9 MB / 243.1 MB, free: 15.14 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo): time 0.2299/0.2299, allocations: 44.18 MB / 337.4 MB, free: 2.672 MB / 270.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.953e-05/2.954e-05, allocations: 5.656 kB / 471.1 MB, free: 13.24 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Media.TestOnly.IdealGasN2): time 0.5374/0.5374, allocations: 149.4 MB / 0.606 GB, free: 10.28 MB / 446.1 MB Notification: Performance of NFInst.instExpressions: time 0.001305/0.5388, allocations: 0.9679 MB / 0.6069 GB, free: 9.316 MB / 446.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 5.873e-05/0.5389, allocations: 0 / 0.6069 GB, free: 9.316 MB / 446.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003186/0.5392, allocations: 35.75 kB / 0.6069 GB, free: 9.281 MB / 446.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0006356/0.5398, allocations: 242.7 kB / 0.6072 GB, free: 9.043 MB / 446.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003818/0.5403, allocations: 120 kB / 0.6073 GB, free: 8.93 MB / 446.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002596/0.5405, allocations: 179.3 kB / 0.6075 GB, free: 8.754 MB / 446.1 MB Notification: Performance of NFFlatten.resolveConnections: time 5.21e-05/0.5406, allocations: 8 kB / 0.6075 GB, free: 8.746 MB / 446.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002157/0.5408, allocations: 99.55 kB / 0.6076 GB, free: 8.648 MB / 446.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001033/0.5409, allocations: 47.84 kB / 0.6076 GB, free: 8.602 MB / 446.1 MB Notification: Performance of NFPackage.collectConstants: time 2.52e-05/0.541, allocations: 4 kB / 0.6076 GB, free: 8.598 MB / 446.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0004388/0.5414, allocations: 259.7 kB / 0.6079 GB, free: 8.344 MB / 446.1 MB Notification: Performance of combineBinaries: time 0.0001464/0.5416, allocations: 151.2 kB / 0.608 GB, free: 8.195 MB / 446.1 MB Notification: Performance of replaceArrayConstructors: time 5.947e-05/0.5416, allocations: 78.88 kB / 0.6081 GB, free: 8.117 MB / 446.1 MB Notification: Performance of NFVerifyModel.verify: time 2.705e-05/0.5417, allocations: 19.94 kB / 0.6081 GB, free: 8.098 MB / 446.1 MB Notification: Performance of FrontEnd: time 1.494e-05/0.5417, allocations: 0 / 0.6081 GB, free: 8.098 MB / 446.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.0006289/0.5423, allocations: 0.5072 MB / 0.6086 GB, free: 7.492 MB / 446.1 MB Notification: Performance of FunctionAlias: time 3.485e-05/0.5424, allocations: 27.88 kB / 0.6086 GB, free: 7.465 MB / 446.1 MB Notification: Performance of Early Inline: time 0.0007755/0.5431, allocations: 0.7819 MB / 0.6094 GB, free: 6.656 MB / 446.1 MB Notification: Performance of simplify1: time 7.829e-05/0.5432, allocations: 85.62 kB / 0.6095 GB, free: 6.574 MB / 446.1 MB Notification: Performance of Alias: time 0.0005563/0.5438, allocations: 407.8 kB / 0.6099 GB, free: 6.109 MB / 446.1 MB Notification: Performance of simplify2: time 8.594e-05/0.5439, allocations: 79.94 kB / 0.6099 GB, free: 6.031 MB / 446.1 MB Notification: Performance of Detect States: time 0.0002264/0.5441, allocations: 158.8 kB / 0.6101 GB, free: 5.863 MB / 446.1 MB Notification: Performance of Events: time 0.0001605/0.5443, allocations: 94.3 kB / 0.6102 GB, free: 5.773 MB / 446.1 MB Notification: Performance of Partitioning: time 0.0001925/0.5445, allocations: 159.7 kB / 0.6103 GB, free: 5.605 MB / 446.1 MB Notification: Performance of Causalize: time 0.0006604/0.5452, allocations: 0.5513 MB / 0.6109 GB, free: 5.043 MB / 446.1 MB Notification: Performance of After Index Reduction Inline: time 0.0004453/0.5456, allocations: 0.5157 MB / 0.6114 GB, free: 4.5 MB / 446.1 MB Notification: Performance of Inline: time 0.001332/0.547, allocations: 1.542 MB / 0.6129 GB, free: 2.922 MB / 446.1 MB Notification: Performance of Partitioning: time 3.143e-05/0.547, allocations: 24.12 kB / 0.6129 GB, free: 2.891 MB / 446.1 MB Notification: Performance of Cleanup: time 6.246e-05/0.5471, allocations: 79.78 kB / 0.613 GB, free: 2.812 MB / 446.1 MB Notification: Performance of Causalize: time 0.001342/0.5484, allocations: 1.133 MB / 0.6141 GB, free: 1.672 MB / 446.1 MB Notification: Performance of Tearing: time 0.001167/0.5496, allocations: 0.5956 MB / 0.6147 GB, free: 1.027 MB / 446.1 MB Notification: Performance of Initialization: time 7.52e-07/0.5496, allocations: 0 / 0.6147 GB, free: 1.027 MB / 446.1 MB Notification: Performance of Tearing: time 0.0002102/0.5498, allocations: 266.2 kB / 0.6149 GB, free: 0.7188 MB / 446.1 MB Notification: Performance of Categorize: time 1.145e-05/0.5498, allocations: 0 / 0.6149 GB, free: 0.7188 MB / 446.1 MB Notification: Performance of Solve: time 0.000531/0.5504, allocations: 0.5309 MB / 0.6154 GB, free: 140 kB / 446.1 MB Notification: Performance of Jacobian: time 0.0003393/0.5507, allocations: 409.9 kB / 0.6158 GB, free: 15.7 MB / 462.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 5.17e-05/0.5508, allocations: 27.27 kB / 0.6158 GB, free: 15.68 MB / 462.1 MB Notification: Performance of SimCode: time 0.001812/0.5526, allocations: 1.594 MB / 0.6174 GB, free: 14.06 MB / 462.1 MB Notification: Performance of Templates: time 0.0106/0.5632, allocations: 6.066 MB / 0.6233 GB, free: 7.984 MB / 462.1 MB make -j1 -f ModelicaTest_4.0.0_ModelicaTest.Media.TestOnly.IdealGasN2.makefile make -j1 -f ModelicaTest_4.0.0_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_4_0_0_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_4.0.0_ModelicaTest.Media.TestOnly.IdealGasN2.o ModelicaTest_4.0.0_ModelicaTest.Media.TestOnly.IdealGasN2.c ModelicaTest_4.0.0_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_4.0.0_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_4.0.0_ModelicaTest.Media.TestOnly.IdealGasN2.c:251:22: error: use of undeclared identifier 'i' switch(i) ^ ModelicaTest_4.0.0_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_4.0.0_ModelicaTest.Media.TestOnly.IdealGasN2.o] Error 1