Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_3.2.3_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 3.2.3+maint.om/package.mo", uses=false) 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(Modelica.Media.Examples.TwoPhaseWater.TestTwoPhaseStates,tolerance=1e-06,outputFormat="mat",numberOfIntervals=4400,variableFilter="time|medium.h|medium.p",fileNamePrefix="Modelica_3.2.3_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_3.2.3_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.001481/0.001481, allocations: 111.4 kB / 18.41 MB, free: 4.664 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.001304/0.001304, allocations: 193.4 kB / 19.35 MB, free: 3.738 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.625/1.625, allocations: 205.1 MB / 225.2 MB, free: 12.24 MB / 190.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 3.727e-05/3.728e-05, allocations: 3.125 kB / 331.5 MB, free: 1.004 MB / 270.1 MB Notification: Performance of NFInst.instantiate(Modelica.Media.Examples.TwoPhaseWater.TestTwoPhaseStates): time 0.01655/0.0166, allocations: 13.33 MB / 344.8 MB, free: 3.625 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.01782/0.03446, allocations: 15.54 MB / 360.4 MB, free: 4.031 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002917/0.0348, allocations: 3.938 kB / 360.4 MB, free: 4.027 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0004313/0.03524, allocations: 79.48 kB / 360.4 MB, free: 3.949 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003762/0.03562, allocations: 107.2 kB / 360.5 MB, free: 3.844 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.01896/0.05465, allocations: 5.949 MB / 366.5 MB, free: 13.87 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.0006474/0.05531, allocations: 366.5 kB / 366.8 MB, free: 13.51 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 6.719e-05/0.05538, allocations: 13.12 kB / 366.9 MB, free: 13.5 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0005772/0.05597, allocations: 235 kB / 367.1 MB, free: 13.27 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001847/0.05617, allocations: 107.5 kB / 367.2 MB, free: 13.16 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 3.352e-05/0.05621, allocations: 16 kB / 367.2 MB, free: 13.15 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.01309/0.0693, allocations: 6.236 MB / 373.4 MB, free: 6.906 MB / 318.1 MB Notification: Performance of combineBinaries: time 0.0004418/0.06978, allocations: 316.7 kB / 373.8 MB, free: 6.594 MB / 318.1 MB Notification: Performance of replaceArrayConstructors: time 0.0001714/0.06996, allocations: 197.2 kB / 373.9 MB, free: 6.398 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001042/0.07008, allocations: 31.94 kB / 374 MB, free: 6.367 MB / 318.1 MB Notification: Performance of FrontEnd: time 5.301e-05/0.07014, allocations: 7.938 kB / 374 MB, free: 6.359 MB / 318.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.001566/0.07171, allocations: 1.173 MB / 375.2 MB, free: 5.074 MB / 318.1 MB Notification: Performance of FunctionAlias: time 0.0001251/0.07185, allocations: 63.8 kB / 375.2 MB, free: 5.012 MB / 318.1 MB Notification: Performance of Early Inline: time 0.001441/0.07329, allocations: 1.168 MB / 376.4 MB, free: 3.816 MB / 318.1 MB Notification: Performance of simplify1: time 7.217e-05/0.07338, allocations: 67.91 kB / 376.5 MB, free: 3.75 MB / 318.1 MB Notification: Performance of Alias: time 0.0009065/0.0743, allocations: 0.6119 MB / 377.1 MB, free: 3.07 MB / 318.1 MB Notification: Performance of simplify2: time 6.255e-05/0.07437, allocations: 67.91 kB / 377.1 MB, free: 3.004 MB / 318.1 MB Notification: Performance of Events: time 0.0001784/0.07456, allocations: 107.3 kB / 377.2 MB, free: 2.898 MB / 318.1 MB Notification: Performance of Detect States: time 0.0003046/0.07487, allocations: 246.2 kB / 377.5 MB, free: 2.645 MB / 318.1 MB Notification: Performance of Partitioning: time 0.0004177/0.0753, allocations: 349.3 kB / 377.8 MB, free: 2.285 MB / 318.1 MB Notification: Performance of Causalize: time 0.002053/0.07736, allocations: 1.773 MB / 379.6 MB, free: 496 kB / 318.1 MB Notification: Performance of After Index Reduction Inline: time 0.2375/0.3148, allocations: 1.878 MB / 381.5 MB, free: 21.42 MB / 318.1 MB Notification: Performance of Inline: time 0.003362/0.3183, allocations: 2.021 MB / 383.5 MB, free: 21.35 MB / 318.1 MB Notification: Performance of Partitioning: time 0.0001418/0.3184, allocations: 57.44 kB / 383.5 MB, free: 21.33 MB / 318.1 MB Notification: Performance of Cleanup: time 0.0002143/0.3187, allocations: 94 kB / 383.6 MB, free: 21.33 MB / 318.1 MB Notification: Performance of Causalize: time 0.00271/0.3214, allocations: 1.504 MB / 385.1 MB, free: 21.16 MB / 318.1 MB Notification: Performance of Tearing: time 9.758e-06/0.3214, allocations: 1.281 kB / 385.1 MB, free: 21.16 MB / 318.1 MB Notification: Performance of Initialization: time 1.643e-06/0.3214, allocations: 0 / 385.1 MB, free: 21.16 MB / 318.1 MB Notification: Performance of Tearing: time 6.693e-06/0.3214, allocations: 6.297 kB / 385.2 MB, free: 21.16 MB / 318.1 MB Notification: Performance of Categorize: time 2.015e-05/0.3215, allocations: 2.75 kB / 385.2 MB, free: 21.16 MB / 318.1 MB Notification: Performance of Solve: time 0.0005958/0.3221, allocations: 253.1 kB / 385.4 MB, free: 21.15 MB / 318.1 MB Notification: Performance of Jacobian: time 0.0006235/0.3227, allocations: 0.5964 MB / 386 MB, free: 20.91 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 5.819e-05/0.3228, allocations: 32.7 kB / 386 MB, free: 20.89 MB / 318.1 MB Notification: Performance of SimCode: time 0.01744/0.3402, allocations: 5.155 MB / 391.2 MB, free: 19.72 MB / 318.1 MB Notification: Performance of Templates: time 0.03688/0.3771, allocations: 30.34 MB / 421.5 MB, free: 2.242 MB / 318.1 MB make -j1 -f Modelica_3.2.3_Modelica.Media.Examples.TwoPhaseWater.TestTwoPhaseStates.makefile make -j1 -f Modelica_3.2.3_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_3_2_3_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_3.2.3_Modelica.Media.Examples.TwoPhaseWater.TestTwoPhaseStates.o Modelica_3.2.3_Modelica.Media.Examples.TwoPhaseWater.TestTwoPhaseStates.c Modelica_3.2.3_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_3.2.3_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_3.2.3_Modelica.Media.Examples.TwoPhaseWater.TestTwoPhaseStates.c:251:22: error: use of undeclared identifier 'i' switch(i) ^ Modelica_3.2.3_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_3.2.3_Modelica.Media.Examples.TwoPhaseWater.TestTwoPhaseStates.o] Error 1