Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_3.2.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.2.1_Modelica.Media.Examples.TwoPhaseWater.TestTwoPhaseStates") translateModel(Modelica.Media.Examples.TwoPhaseWater.TestTwoPhaseStates,tolerance=1e-06,outputFormat="empty",numberOfIntervals=4400,variableFilter="",fileNamePrefix="Modelica_3.2.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.001215/0.001215, allocations: 108.4 kB / 16.42 MB, free: 6.465 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.001133/0.001133, allocations: 191.7 kB / 17.36 MB, free: 5.707 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.242/1.242, allocations: 205.1 MB / 223.2 MB, free: 12.25 MB / 190.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.046e-05/2.047e-05, allocations: 2.281 kB / 329.5 MB, free: 1 MB / 270.1 MB Notification: Performance of NFInst.instantiate(Modelica.Media.Examples.TwoPhaseWater.TestTwoPhaseStates): time 0.01357/0.0136, allocations: 13.34 MB / 342.8 MB, free: 3.609 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.0147/0.02832, allocations: 15.53 MB / 358.4 MB, free: 4.027 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000103/0.02844, allocations: 0 / 358.4 MB, free: 4.027 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002812/0.02873, allocations: 83.48 kB / 358.4 MB, free: 3.945 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002875/0.02903, allocations: 107.3 kB / 358.6 MB, free: 3.84 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0135/0.04258, allocations: 5.948 MB / 364.5 MB, free: 13.87 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004731/0.04307, allocations: 370.5 kB / 364.9 MB, free: 13.5 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 5.318e-05/0.04313, allocations: 17.11 kB / 364.9 MB, free: 13.49 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004761/0.04361, allocations: 231 kB / 365.1 MB, free: 13.26 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001669/0.04379, allocations: 107.6 kB / 365.2 MB, free: 13.16 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 2.708e-05/0.04382, allocations: 12 kB / 365.2 MB, free: 13.14 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.008375/0.0522, allocations: 6.236 MB / 371.5 MB, free: 6.902 MB / 318.1 MB Notification: Performance of combineBinaries: time 0.0002654/0.05248, allocations: 316.7 kB / 371.8 MB, free: 6.59 MB / 318.1 MB Notification: Performance of replaceArrayConstructors: time 0.000141/0.05263, allocations: 205.2 kB / 372 MB, free: 6.387 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 5.195e-05/0.05269, allocations: 31.94 kB / 372 MB, free: 6.355 MB / 318.1 MB Notification: Performance of FrontEnd: time 2.273e-05/0.05272, allocations: 7.938 kB / 372 MB, free: 6.348 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.001075/0.0538, allocations: 1.105 MB / 373.1 MB, free: 5.133 MB / 318.1 MB Notification: Performance of FunctionAlias: time 8.1e-05/0.05389, allocations: 55.83 kB / 373.2 MB, free: 5.078 MB / 318.1 MB Notification: Performance of Early Inline: time 0.001306/0.0552, allocations: 1.161 MB / 374.3 MB, free: 3.891 MB / 318.1 MB Notification: Performance of simplify1: time 8.136e-05/0.05529, allocations: 63.91 kB / 374.4 MB, free: 3.828 MB / 318.1 MB Notification: Performance of Alias: time 0.0007633/0.05606, allocations: 0.6158 MB / 375 MB, free: 3.145 MB / 318.1 MB Notification: Performance of simplify2: time 9.689e-05/0.05617, allocations: 71.91 kB / 375.1 MB, free: 3.074 MB / 318.1 MB Notification: Performance of Events: time 0.0001703/0.05635, allocations: 111.2 kB / 375.2 MB, free: 2.965 MB / 318.1 MB Notification: Performance of Detect States: time 0.0002839/0.05664, allocations: 236.5 kB / 375.4 MB, free: 2.719 MB / 318.1 MB Notification: Performance of Partitioning: time 0.0004796/0.05713, allocations: 353.3 kB / 375.8 MB, free: 2.355 MB / 318.1 MB Notification: Performance of Causalize: time 0.002241/0.05938, allocations: 2.161 MB / 377.9 MB, free: 208 kB / 318.1 MB Notification: Performance of After Index Reduction Inline: time 0.1531/0.2124, allocations: 1.876 MB / 379.8 MB, free: 21.79 MB / 318.1 MB Notification: Performance of Inline: time 0.002445/0.2149, allocations: 2.022 MB / 381.8 MB, free: 21.72 MB / 318.1 MB Notification: Performance of Partitioning: time 9.556e-05/0.2151, allocations: 58.08 kB / 381.9 MB, free: 21.7 MB / 318.1 MB Notification: Performance of Cleanup: time 0.0001095/0.2152, allocations: 90.19 kB / 382 MB, free: 21.7 MB / 318.1 MB Notification: Performance of Causalize: time 0.002004/0.2172, allocations: 2.12 MB / 384.1 MB, free: 21.57 MB / 318.1 MB Notification: Performance of Tearing: time 7.855e-06/0.2172, allocations: 4 kB / 384.1 MB, free: 21.57 MB / 318.1 MB Notification: Performance of Initialization: time 5.21e-07/0.2172, allocations: 2.875 kB / 384.1 MB, free: 21.57 MB / 318.1 MB Notification: Performance of Tearing: time 4.348e-06/0.2172, allocations: 0 / 384.1 MB, free: 21.57 MB / 318.1 MB Notification: Performance of Categorize: time 1.427e-05/0.2172, allocations: 3.938 kB / 384.1 MB, free: 21.57 MB / 318.1 MB Notification: Performance of Solve: time 0.0003972/0.2176, allocations: 248.1 kB / 384.3 MB, free: 21.55 MB / 318.1 MB Notification: Performance of Jacobian: time 0.0004593/0.2181, allocations: 0.5947 MB / 384.9 MB, free: 21.32 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.207e-05/0.2182, allocations: 30.72 kB / 385 MB, free: 21.31 MB / 318.1 MB Notification: Performance of SimCode: time 0.0105/0.2287, allocations: 5.151 MB / 390.1 MB, free: 20.08 MB / 318.1 MB Notification: Performance of Templates: time 0.0283/0.257, allocations: 30.27 MB / 420.4 MB, free: 2.402 MB / 318.1 MB make -j1 -f Modelica_3.2.1_Modelica.Media.Examples.TwoPhaseWater.TestTwoPhaseStates.makefile make -j1 -f Modelica_3.2.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_2_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.2.1_Modelica.Media.Examples.TwoPhaseWater.TestTwoPhaseStates.o Modelica_3.2.1_Modelica.Media.Examples.TwoPhaseWater.TestTwoPhaseStates.c Modelica_3.2.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.2.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.2.1_Modelica.Media.Examples.TwoPhaseWater.TestTwoPhaseStates.c:251:22: error: use of undeclared identifier 'i' switch(i) ^ Modelica_3.2.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.2.1_Modelica.Media.Examples.TwoPhaseWater.TestTwoPhaseStates.o] Error 1