Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_3.1_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.1_Modelica.Media.Examples.TwoPhaseWater.TestTwoPhaseStates") translateModel(Modelica.Media.Examples.TwoPhaseWater.TestTwoPhaseStates,tolerance=1e-06,outputFormat="empty",numberOfIntervals=4400,variableFilter="",fileNamePrefix="Modelica_3.1_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.001292/0.001292, allocations: 107.5 kB / 16.42 MB, free: 5.984 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.001234/0.001234, allocations: 191.4 kB / 17.35 MB, free: 5.578 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.381/1.381, allocations: 205.1 MB / 223.2 MB, free: 12.22 MB / 190.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.214e-05/2.215e-05, allocations: 2.281 kB / 329.5 MB, free: 0.9883 MB / 270.1 MB Notification: Performance of NFInst.instantiate(Modelica.Media.Examples.TwoPhaseWater.TestTwoPhaseStates): time 0.01614/0.01617, allocations: 13.34 MB / 342.8 MB, free: 3.594 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.0161/0.03229, allocations: 15.52 MB / 358.4 MB, free: 4.02 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001462/0.03247, allocations: 3.938 kB / 358.4 MB, free: 4.016 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003785/0.03285, allocations: 83.47 kB / 358.4 MB, free: 3.934 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003461/0.03321, allocations: 115.2 kB / 358.6 MB, free: 3.82 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.01505/0.04833, allocations: 5.948 MB / 364.5 MB, free: 13.85 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004661/0.04881, allocations: 366.5 kB / 364.9 MB, free: 13.49 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 4.59e-05/0.04886, allocations: 9.125 kB / 364.9 MB, free: 13.48 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004485/0.04932, allocations: 243 kB / 365.1 MB, free: 13.24 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001416/0.04947, allocations: 107.6 kB / 365.2 MB, free: 13.14 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 2.691e-05/0.0495, allocations: 12 kB / 365.2 MB, free: 13.12 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.009387/0.0589, allocations: 6.232 MB / 371.5 MB, free: 6.887 MB / 318.1 MB Notification: Performance of combineBinaries: time 0.0002896/0.05921, allocations: 316.8 kB / 371.8 MB, free: 6.574 MB / 318.1 MB Notification: Performance of replaceArrayConstructors: time 0.000135/0.05935, allocations: 197.2 kB / 372 MB, free: 6.379 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 5.943e-05/0.05942, allocations: 31.94 kB / 372 MB, free: 6.348 MB / 318.1 MB Notification: Performance of FrontEnd: time 3.11e-05/0.05946, allocations: 7.938 kB / 372 MB, free: 6.34 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.001096/0.06056, allocations: 1.109 MB / 373.1 MB, free: 5.121 MB / 318.1 MB Notification: Performance of FunctionAlias: time 6.87e-05/0.06063, allocations: 55.92 kB / 373.2 MB, free: 5.066 MB / 318.1 MB Notification: Performance of Early Inline: time 0.00114/0.06178, allocations: 1.168 MB / 374.3 MB, free: 3.871 MB / 318.1 MB Notification: Performance of simplify1: time 5.594e-05/0.06185, allocations: 67.91 kB / 374.4 MB, free: 3.805 MB / 318.1 MB Notification: Performance of Alias: time 0.0006826/0.06253, allocations: 0.6042 MB / 375 MB, free: 3.133 MB / 318.1 MB Notification: Performance of simplify2: time 0.0001196/0.06267, allocations: 67.91 kB / 375.1 MB, free: 3.066 MB / 318.1 MB Notification: Performance of Events: time 0.0001538/0.06283, allocations: 115.3 kB / 375.2 MB, free: 2.953 MB / 318.1 MB Notification: Performance of Detect States: time 0.0002645/0.0631, allocations: 246.2 kB / 375.4 MB, free: 2.695 MB / 318.1 MB Notification: Performance of Partitioning: time 0.0003899/0.0635, allocations: 349.3 kB / 375.8 MB, free: 2.336 MB / 318.1 MB Notification: Performance of Causalize: time 0.002094/0.0656, allocations: 2.154 MB / 377.9 MB, free: 192 kB / 318.1 MB Notification: Performance of After Index Reduction Inline: time 0.173/0.2386, allocations: 1.878 MB / 379.8 MB, free: 22.36 MB / 318.1 MB Notification: Performance of Inline: time 0.002121/0.2407, allocations: 2.025 MB / 381.8 MB, free: 22.29 MB / 318.1 MB Notification: Performance of Partitioning: time 8.437e-05/0.2408, allocations: 51.09 kB / 381.9 MB, free: 22.27 MB / 318.1 MB Notification: Performance of Cleanup: time 0.0001151/0.241, allocations: 95.2 kB / 382 MB, free: 22.27 MB / 318.1 MB Notification: Performance of Causalize: time 0.001973/0.2429, allocations: 2.116 MB / 384.1 MB, free: 22.14 MB / 318.1 MB Notification: Performance of Tearing: time 7.494e-06/0.243, allocations: 5.406 kB / 384.1 MB, free: 22.13 MB / 318.1 MB Notification: Performance of Initialization: time 4.6e-07/0.243, allocations: 0 / 384.1 MB, free: 22.13 MB / 318.1 MB Notification: Performance of Tearing: time 4.288e-06/0.243, allocations: 0 / 384.1 MB, free: 22.13 MB / 318.1 MB Notification: Performance of Categorize: time 1.303e-05/0.243, allocations: 5.297 kB / 384.1 MB, free: 22.13 MB / 318.1 MB Notification: Performance of Solve: time 0.0003742/0.2434, allocations: 251.3 kB / 384.3 MB, free: 22.12 MB / 318.1 MB Notification: Performance of Jacobian: time 0.0004592/0.2438, allocations: 0.592 MB / 384.9 MB, free: 21.88 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 4.356e-05/0.2439, allocations: 41.56 kB / 385 MB, free: 21.87 MB / 318.1 MB Notification: Performance of SimCode: time 0.01306/0.257, allocations: 5.15 MB / 390.1 MB, free: 20.64 MB / 318.1 MB Notification: Performance of Templates: time 0.03122/0.2882, allocations: 30.26 MB / 420.4 MB, free: 2.848 MB / 318.1 MB make -j1 -f Modelica_3.1_Modelica.Media.Examples.TwoPhaseWater.TestTwoPhaseStates.makefile make -j1 -f Modelica_3.1_Modelica.Media.Examples.TwoPhaseWater.TestTwoPhaseStates.makefile clang -Os -DOM_HAVE_PTHREADS -fPIC -falign-functions -mfpmath=sse -fno-dollars-in-identifiers -Wno-parentheses-equality -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_1_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.1_Modelica.Media.Examples.TwoPhaseWater.TestTwoPhaseStates.o Modelica_3.1_Modelica.Media.Examples.TwoPhaseWater.TestTwoPhaseStates.c Modelica_3.1_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.1_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.1_Modelica.Media.Examples.TwoPhaseWater.TestTwoPhaseStates.c:251:22: error: use of undeclared identifier 'i' switch(i) ^ Modelica_3.1_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.1_Modelica.Media.Examples.TwoPhaseWater.TestTwoPhaseStates.o] Error 1