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.001555/0.001555, allocations: 109.6 kB / 18.46 MB, free: 4.59 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.001486/0.001486, allocations: 191.1 kB / 19.4 MB, free: 3.664 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.342/1.342, allocations: 222.9 MB / 243.1 MB, free: 15.07 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.2257/0.2257, allocations: 44.19 MB / 337.4 MB, free: 2.672 MB / 270.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 3.128e-05/3.129e-05, allocations: 5.516 kB / 471.1 MB, free: 13.26 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Media.TestOnly.IdealGasN2): time 0.5211/0.5212, allocations: 149.4 MB / 0.606 GB, free: 10.26 MB / 446.1 MB Notification: Performance of NFInst.instExpressions: time 0.001304/0.5225, allocations: 0.9657 MB / 0.6069 GB, free: 9.301 MB / 446.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 5.877e-05/0.5226, allocations: 0 / 0.6069 GB, free: 9.301 MB / 446.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002514/0.5229, allocations: 31.81 kB / 0.6069 GB, free: 9.27 MB / 446.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0005952/0.5235, allocations: 243.3 kB / 0.6072 GB, free: 9.039 MB / 446.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003953/0.5239, allocations: 120.5 kB / 0.6073 GB, free: 8.922 MB / 446.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002452/0.5242, allocations: 171.3 kB / 0.6074 GB, free: 8.754 MB / 446.1 MB Notification: Performance of NFFlatten.resolveConnections: time 4.531e-05/0.5242, allocations: 4 kB / 0.6075 GB, free: 8.75 MB / 446.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000218/0.5244, allocations: 99.61 kB / 0.6075 GB, free: 8.652 MB / 446.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000102/0.5246, allocations: 51.78 kB / 0.6076 GB, free: 8.602 MB / 446.1 MB Notification: Performance of NFPackage.collectConstants: time 2.128e-05/0.5246, allocations: 4 kB / 0.6076 GB, free: 8.598 MB / 446.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0004328/0.525, allocations: 267.7 kB / 0.6079 GB, free: 8.336 MB / 446.1 MB Notification: Performance of combineBinaries: time 0.000135/0.5252, allocations: 139.3 kB / 0.608 GB, free: 8.199 MB / 446.1 MB Notification: Performance of replaceArrayConstructors: time 5.961e-05/0.5252, allocations: 94.27 kB / 0.6081 GB, free: 8.109 MB / 446.1 MB Notification: Performance of NFVerifyModel.verify: time 3.332e-05/0.5253, allocations: 19.94 kB / 0.6081 GB, free: 8.09 MB / 446.1 MB Notification: Performance of FrontEnd: time 1.135e-05/0.5253, allocations: 0 / 0.6081 GB, free: 8.09 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.0005818/0.5259, allocations: 0.5066 MB / 0.6086 GB, free: 7.488 MB / 446.1 MB Notification: Performance of FunctionAlias: time 2.68e-05/0.5259, allocations: 19.92 kB / 0.6086 GB, free: 7.469 MB / 446.1 MB Notification: Performance of Early Inline: time 0.0008251/0.5267, allocations: 0.7867 MB / 0.6094 GB, free: 6.656 MB / 446.1 MB Notification: Performance of simplify1: time 8.444e-05/0.5268, allocations: 83.94 kB / 0.6095 GB, free: 6.574 MB / 446.1 MB Notification: Performance of Alias: time 0.000542/0.5274, allocations: 411.8 kB / 0.6099 GB, free: 6.105 MB / 446.1 MB Notification: Performance of simplify2: time 9.97e-05/0.5275, allocations: 83.92 kB / 0.6099 GB, free: 6.023 MB / 446.1 MB Notification: Performance of Events: time 0.0001535/0.5277, allocations: 91.8 kB / 0.61 GB, free: 5.934 MB / 446.1 MB Notification: Performance of Detect States: time 0.0002274/0.5279, allocations: 160.1 kB / 0.6102 GB, free: 5.762 MB / 446.1 MB Notification: Performance of Partitioning: time 0.0001849/0.5281, allocations: 156.2 kB / 0.6103 GB, free: 5.594 MB / 446.1 MB Notification: Performance of Causalize: time 0.0006692/0.5288, allocations: 0.5586 MB / 0.6109 GB, free: 5.031 MB / 446.1 MB Notification: Performance of After Index Reduction Inline: time 0.0004571/0.5292, allocations: 0.508 MB / 0.6114 GB, free: 4.496 MB / 446.1 MB Notification: Performance of Inline: time 0.001412/0.5306, allocations: 1.546 MB / 0.6129 GB, free: 2.914 MB / 446.1 MB Notification: Performance of Partitioning: time 3.834e-05/0.5307, allocations: 24.12 kB / 0.6129 GB, free: 2.883 MB / 446.1 MB Notification: Performance of Cleanup: time 6.509e-05/0.5308, allocations: 79.83 kB / 0.613 GB, free: 2.805 MB / 446.1 MB Notification: Performance of Causalize: time 0.001408/0.5322, allocations: 1.132 MB / 0.6141 GB, free: 1.668 MB / 446.1 MB Notification: Performance of Tearing: time 0.0007088/0.5329, allocations: 411.1 kB / 0.6145 GB, free: 1.219 MB / 446.1 MB Notification: Performance of Initialization: time 6.61e-07/0.5329, allocations: 4 kB / 0.6145 GB, free: 1.215 MB / 446.1 MB Notification: Performance of Tearing: time 0.0001678/0.5331, allocations: 242.2 kB / 0.6147 GB, free: 0.9297 MB / 446.1 MB Notification: Performance of Categorize: time 9.588e-06/0.5331, allocations: 3.938 kB / 0.6147 GB, free: 0.9258 MB / 446.1 MB Notification: Performance of Solve: time 0.000477/0.5336, allocations: 476.9 kB / 0.6152 GB, free: 420 kB / 446.1 MB Notification: Performance of Jacobian: time 0.0003601/0.534, allocations: 413.9 kB / 0.6156 GB, free: 15.97 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: 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.912e-05/0.534, allocations: 26.47 kB / 0.6156 GB, free: 15.95 MB / 462.1 MB Notification: Performance of SimCode: time 0.001906/0.5359, allocations: 1.576 MB / 0.6171 GB, free: 14.34 MB / 462.1 MB Notification: Performance of Templates: time 0.01015/0.5461, allocations: 6.138 MB / 0.6231 GB, free: 8.203 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