Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Media.Examples.TwoPhaseWater.TestTwoPhaseStates.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) 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(Modelica.Media.Examples.TwoPhaseWater.TestTwoPhaseStates,tolerance=1e-06,outputFormat="mat",numberOfIntervals=4400,variableFilter="time|medium.h|medium.p",fileNamePrefix="Modelica_4.0.0_Modelica.Media.Examples.TwoPhaseWater.TestTwoPhaseStates") translateModel(Modelica.Media.Examples.TwoPhaseWater.TestTwoPhaseStates,tolerance=1e-06,outputFormat="mat",numberOfIntervals=4400,variableFilter="time|medium.h|medium.p",fileNamePrefix="Modelica_4.0.0_Modelica.Media.Examples.TwoPhaseWater.TestTwoPhaseStates") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001793/0.001792, allocations: 115.8 kB / 17.76 MB, free: 5.336 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.002152/0.002152, allocations: 185.8 kB / 18.68 MB, free: 4.414 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.291/1.291, allocations: 222.9 MB / 242.4 MB, free: 15.15 MB / 206.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.238e-05/2.239e-05, allocations: 2.281 kB / 354.2 MB, free: 0.9727 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Media.Examples.TwoPhaseWater.TestTwoPhaseStates): time 0.01608/0.01611, allocations: 13.34 MB / 367.6 MB, free: 3.582 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.2015/0.2176, allocations: 15.54 MB / 383.1 MB, free: 9.043 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001691/0.2179, allocations: 1.094 kB / 383.1 MB, free: 9.043 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003644/0.2182, allocations: 91.78 kB / 383.2 MB, free: 8.996 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003261/0.2186, allocations: 108.3 kB / 383.3 MB, free: 8.934 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.01961/0.2383, allocations: 5.955 MB / 389.3 MB, free: 7.277 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.0005808/0.2389, allocations: 374 kB / 389.6 MB, free: 7.18 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 5.517e-05/0.2389, allocations: 20.42 kB / 389.6 MB, free: 7.172 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004808/0.2394, allocations: 244.8 kB / 389.9 MB, free: 7.086 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001633/0.2396, allocations: 104.4 kB / 390 MB, free: 7.059 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 3.599e-05/0.2396, allocations: 14.22 kB / 390 MB, free: 7.059 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0129/0.2525, allocations: 6.246 MB / 396.2 MB, free: 4.707 MB / 302.1 MB Notification: Performance of combineBinaries: time 0.0003597/0.2529, allocations: 314.4 kB / 396.6 MB, free: 4.504 MB / 302.1 MB Notification: Performance of replaceArrayConstructors: time 0.0001133/0.253, allocations: 195.8 kB / 396.7 MB, free: 4.371 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 8.007e-05/0.2531, allocations: 32.62 kB / 396.8 MB, free: 4.363 MB / 302.1 MB Notification: Performance of FrontEnd: time 4.84e-05/0.2532, allocations: 6.75 kB / 396.8 MB, free: 4.359 MB / 302.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 53 (41) * Number of variables: 53 (53) Notification: Performance of Bindings: time 0.001223/0.2544, allocations: 1.175 MB / 398 MB, free: 3.441 MB / 302.1 MB Notification: Performance of FunctionAlias: time 6.231e-05/0.2545, allocations: 56.97 kB / 398 MB, free: 3.395 MB / 302.1 MB Notification: Performance of Early Inline: time 0.0011/0.2556, allocations: 1.173 MB / 399.2 MB, free: 2.543 MB / 302.1 MB Notification: Performance of simplify1: time 5.615e-05/0.2557, allocations: 69.52 kB / 399.3 MB, free: 2.484 MB / 302.1 MB Notification: Performance of Alias: time 0.0006952/0.2564, allocations: 0.612 MB / 399.9 MB, free: 2.008 MB / 302.1 MB Notification: Performance of simplify2: time 4.985e-05/0.2564, allocations: 62.28 kB / 399.9 MB, free: 1.957 MB / 302.1 MB Notification: Performance of Detect States: time 0.0002234/0.2566, allocations: 236.6 kB / 400.2 MB, free: 1.762 MB / 302.1 MB Notification: Performance of Events: time 0.0001416/0.2568, allocations: 117.4 kB / 400.3 MB, free: 1.672 MB / 302.1 MB Notification: Performance of Partitioning: time 0.0002917/0.2571, allocations: 351.2 kB / 400.6 MB, free: 1.469 MB / 302.1 MB Notification: Performance of Causalize: time 0.001725/0.2588, allocations: 1.777 MB / 402.4 MB, free: 0.7422 MB / 302.1 MB Notification: Performance of After Index Reduction Inline: time 0.001706/0.2605, allocations: 1.879 MB / 404.3 MB, free: 15.28 MB / 318.1 MB Notification: Performance of Inline: time 0.001924/0.2625, allocations: 2.027 MB / 406.3 MB, free: 13.28 MB / 318.1 MB Notification: Performance of Partitioning: time 6.054e-05/0.2625, allocations: 50.38 kB / 406.3 MB, free: 13.22 MB / 318.1 MB Notification: Performance of Cleanup: time 8.41e-05/0.2626, allocations: 95.89 kB / 406.4 MB, free: 13.12 MB / 318.1 MB Notification: Performance of Causalize: time 0.001781/0.2644, allocations: 1.511 MB / 408 MB, free: 11.62 MB / 318.1 MB Notification: Performance of Tearing: time 1.545e-05/0.2644, allocations: 3.938 kB / 408 MB, free: 11.61 MB / 318.1 MB Notification: Performance of Initialization: time 4.71e-07/0.2645, allocations: 0 / 408 MB, free: 11.61 MB / 318.1 MB Notification: Performance of Tearing: time 4.719e-06/0.2645, allocations: 8 kB / 408 MB, free: 11.61 MB / 318.1 MB Notification: Performance of Categorize: time 1.192e-05/0.2645, allocations: 3.938 kB / 408 MB, free: 11.6 MB / 318.1 MB Notification: Performance of Solve: time 0.0003682/0.2649, allocations: 246.5 kB / 408.2 MB, free: 11.36 MB / 318.1 MB Notification: Performance of Jacobian: time 0.0005669/0.2654, allocations: 0.5958 MB / 408.8 MB, free: 10.73 MB / 318.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) {medium.p, medium.h} * Number of discrete states: .................... 0 (0) {} * Number of clocked states: ..................... 0 (0) {NOT YET AVAILABLE} * Number of discrete variables: ................. 9 (9) {medium.state.phase, medium.phase, medium.dew.phase, medium.bubble.phase, medium.bubble2.phase, $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: ........... 53 (scalar:52, 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: [Initialization] Strong Component statistics after passing the back-end: * Number of single strong components: ........... 55 (scalar:54, 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 6.332e-05/0.2655, allocations: 36.2 kB / 408.8 MB, free: 10.7 MB / 318.1 MB Notification: Performance of SimCode: time 0.01284/0.2783, allocations: 5.199 MB / 414 MB, free: 5.461 MB / 318.1 MB Notification: Performance of Templates: time 0.03915/0.3175, allocations: 30.35 MB / 444.4 MB, free: 7.086 MB / 350.1 MB make -j1 -f Modelica_4.0.0_Modelica.Media.Examples.TwoPhaseWater.TestTwoPhaseStates.makefile make -j1 -f Modelica_4.0.0_Modelica.Media.Examples.TwoPhaseWater.TestTwoPhaseStates.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_4_0_0_Modelica_Media_Examples_TwoPhaseWater_TestTwoPhaseStates -DOMC_NUM_MIXED_SYSTEMS=0 -DOMC_NUM_LINEAR_SYSTEMS=0 -DOMC_NUM_NONLINEAR_SYSTEMS=0 -DOMC_NDELAY_EXPRESSIONS=0 -DOMC_NVAR_STRING=0 -c -o Modelica_4.0.0_Modelica.Media.Examples.TwoPhaseWater.TestTwoPhaseStates.o Modelica_4.0.0_Modelica.Media.Examples.TwoPhaseWater.TestTwoPhaseStates.c Modelica_4.0.0_Modelica.Media.Examples.TwoPhaseWater.TestTwoPhaseStates.c:245:59: error: use of undeclared identifier 'i' tmp20 = modelica_integer_to_modelica_string(i, ((modelica_integer) 0), 1 /* true */); ^ Modelica_4.0.0_Modelica.Media.Examples.TwoPhaseWater.TestTwoPhaseStates.c:248:118: error: use of undeclared identifier 'i' tmp24 = modelica_real_to_modelica_string((&data->localData[0]->realVars[5] /* medium.X[1] variable */)[i - 1], ((modelica_integer) 6), ((modelica_integer) 0), 1 /* true */); ^ Modelica_4.0.0_Modelica.Media.Examples.TwoPhaseWater.TestTwoPhaseStates.c:251:22: error: use of undeclared identifier 'i' switch(i) ^ Modelica_4.0.0_Modelica.Media.Examples.TwoPhaseWater.TestTwoPhaseStates.c:259:109: error: use of undeclared identifier 'i' throwStreamPrint(threadData, "Index %ld out of bounds [1..1] for array {\"water\"}", (long) i); ^ 4 errors generated. make: *** [: Modelica_4.0.0_Modelica.Media.Examples.TwoPhaseWater.TestTwoPhaseStates.o] Error 1