Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_3.2.2_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="empty",numberOfIntervals=4400,variableFilter="",fileNamePrefix="Modelica_3.2.2_Modelica.Media.Examples.TwoPhaseWater.TestTwoPhaseStates") translateModel(Modelica.Media.Examples.TwoPhaseWater.TestTwoPhaseStates,tolerance=1e-06,outputFormat="empty",numberOfIntervals=4400,variableFilter="",fileNamePrefix="Modelica_3.2.2_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.001166/0.001166, allocations: 113 kB / 17.75 MB, free: 5.348 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.001159/0.001159, allocations: 184.7 kB / 18.68 MB, free: 4.426 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.24/1.24, allocations: 205.1 MB / 224.5 MB, free: 12.25 MB / 190.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.036e-05/2.037e-05, allocations: 2.281 kB / 330.8 MB, free: 1.008 MB / 270.1 MB Notification: Performance of NFInst.instantiate(Modelica.Media.Examples.TwoPhaseWater.TestTwoPhaseStates): time 0.01564/0.01567, allocations: 13.34 MB / 344.2 MB, free: 3.617 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.01604/0.03173, allocations: 15.53 MB / 359.7 MB, free: 4.031 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001141/0.03187, allocations: 0 / 359.7 MB, free: 4.031 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003551/0.03224, allocations: 91.47 kB / 359.8 MB, free: 3.941 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003066/0.0326, allocations: 111.2 kB / 359.9 MB, free: 3.832 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0151/0.04772, allocations: 5.945 MB / 365.8 MB, free: 13.86 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.00053/0.04826, allocations: 358.5 kB / 366.2 MB, free: 13.51 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 5.502e-05/0.04833, allocations: 21.11 kB / 366.2 MB, free: 13.49 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004749/0.04881, allocations: 239 kB / 366.4 MB, free: 13.26 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001458/0.04896, allocations: 103.5 kB / 366.5 MB, free: 13.16 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 3.356e-05/0.049, allocations: 12 kB / 366.5 MB, free: 13.14 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0092/0.05821, allocations: 6.244 MB / 372.8 MB, free: 6.895 MB / 318.1 MB Notification: Performance of combineBinaries: time 0.0002744/0.0585, allocations: 312.8 kB / 373.1 MB, free: 6.586 MB / 318.1 MB Notification: Performance of replaceArrayConstructors: time 0.0001234/0.05863, allocations: 189.2 kB / 373.3 MB, free: 6.398 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 4.985e-05/0.05869, allocations: 35.94 kB / 373.3 MB, free: 6.363 MB / 318.1 MB Notification: Performance of FrontEnd: time 2.829e-05/0.05872, allocations: 7.938 kB / 373.3 MB, free: 6.355 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.001065/0.0598, allocations: 1.105 MB / 374.4 MB, free: 5.141 MB / 318.1 MB Notification: Performance of FunctionAlias: time 6.242e-05/0.05986, allocations: 51.95 kB / 374.5 MB, free: 5.09 MB / 318.1 MB Notification: Performance of Early Inline: time 0.001141/0.06101, allocations: 1.172 MB / 375.7 MB, free: 3.891 MB / 318.1 MB Notification: Performance of simplify1: time 6.457e-05/0.06108, allocations: 63.91 kB / 375.7 MB, free: 3.828 MB / 318.1 MB Notification: Performance of Alias: time 0.0007254/0.06182, allocations: 0.6081 MB / 376.3 MB, free: 3.152 MB / 318.1 MB Notification: Performance of simplify2: time 5.295e-05/0.06188, allocations: 67.89 kB / 376.4 MB, free: 3.086 MB / 318.1 MB Notification: Performance of Events: time 0.0001435/0.06203, allocations: 107.3 kB / 376.5 MB, free: 2.98 MB / 318.1 MB Notification: Performance of Detect States: time 0.0002561/0.0623, allocations: 258.2 kB / 376.7 MB, free: 2.711 MB / 318.1 MB Notification: Performance of Partitioning: time 0.0003296/0.06263, allocations: 345.3 kB / 377.1 MB, free: 2.355 MB / 318.1 MB Notification: Performance of Causalize: time 0.002053/0.06469, allocations: 2.168 MB / 379.3 MB, free: 200 kB / 318.1 MB Notification: Performance of After Index Reduction Inline: time 0.1696/0.2343, allocations: 1.866 MB / 381.1 MB, free: 21.68 MB / 318.1 MB Notification: Performance of Inline: time 0.001802/0.2361, allocations: 2.025 MB / 383.1 MB, free: 21.61 MB / 318.1 MB Notification: Performance of Partitioning: time 7.501e-05/0.2362, allocations: 55.66 kB / 383.2 MB, free: 21.59 MB / 318.1 MB Notification: Performance of Cleanup: time 9.135e-05/0.2363, allocations: 92.09 kB / 383.3 MB, free: 21.59 MB / 318.1 MB Notification: Performance of Causalize: time 0.001748/0.2381, allocations: 2.124 MB / 385.4 MB, free: 21.46 MB / 318.1 MB Notification: Performance of Tearing: time 7.223e-06/0.2381, allocations: 2.906 kB / 385.4 MB, free: 21.46 MB / 318.1 MB Notification: Performance of Initialization: time 2.91e-07/0.2381, allocations: 0 / 385.4 MB, free: 21.46 MB / 318.1 MB Notification: Performance of Tearing: time 3.817e-06/0.2381, allocations: 1.875 kB / 385.4 MB, free: 21.46 MB / 318.1 MB Notification: Performance of Categorize: time 1.378e-05/0.2381, allocations: 3.25 kB / 385.4 MB, free: 21.46 MB / 318.1 MB Notification: Performance of Solve: time 0.0003434/0.2385, allocations: 252.4 kB / 385.7 MB, free: 21.45 MB / 318.1 MB Notification: Performance of Jacobian: time 0.000439/0.2389, allocations: 0.5896 MB / 386.3 MB, free: 21.21 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 3.877e-05/0.239, allocations: 37.36 kB / 386.3 MB, free: 21.2 MB / 318.1 MB Notification: Performance of SimCode: time 0.01175/0.2507, allocations: 5.142 MB / 391.4 MB, free: 19.97 MB / 318.1 MB Notification: Performance of Templates: time 0.02957/0.2803, allocations: 30.25 MB / 421.7 MB, free: 2.359 MB / 318.1 MB make -j1 -f Modelica_3.2.2_Modelica.Media.Examples.TwoPhaseWater.TestTwoPhaseStates.makefile make -j1 -f Modelica_3.2.2_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_2_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.2_Modelica.Media.Examples.TwoPhaseWater.TestTwoPhaseStates.o Modelica_3.2.2_Modelica.Media.Examples.TwoPhaseWater.TestTwoPhaseStates.c Modelica_3.2.2_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.2_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.2_Modelica.Media.Examples.TwoPhaseWater.TestTwoPhaseStates.c:251:22: error: use of undeclared identifier 'i' switch(i) ^ Modelica_3.2.2_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.2_Modelica.Media.Examples.TwoPhaseWater.TestTwoPhaseStates.o] Error 1