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.0009879/0.0009879, allocations: 102.5 kB / 16.62 MB, free: 6.809 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.001026/0.001026, allocations: 189.8 kB / 17.55 MB, free: 5.953 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.274/1.274, allocations: 205.1 MB / 223.4 MB, free: 12.45 MB / 190.1 MB Notification: Modelica requested package Complex of version 3.2.3. Complex 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica requested package ModelicaServices of version 3.2.3. ModelicaServices 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.001089/0.001089, allocations: 59.91 kB / 279.5 MB, free: 3.492 MB / 222.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.07221/0.0733, allocations: 46.62 MB / 326.1 MB, free: 4.801 MB / 270.1 MB Notification: Performance of NFInst.instantiate(Modelica.Media.Examples.TwoPhaseWater.TestTwoPhaseStates): time 0.01361/0.08695, allocations: 13.45 MB / 339.6 MB, free: 7.285 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.01524/0.1022, allocations: 15.59 MB / 355.2 MB, free: 7.648 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001335/0.1024, allocations: 4 kB / 355.2 MB, free: 7.645 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003099/0.1028, allocations: 71.66 kB / 355.2 MB, free: 7.574 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002994/0.1031, allocations: 103.3 kB / 355.3 MB, free: 7.473 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.01335/0.1164, allocations: 5.243 MB / 360.6 MB, free: 2.215 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004044/0.1168, allocations: 338.6 kB / 360.9 MB, free: 1.883 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 4.5e-05/0.1169, allocations: 17.69 kB / 360.9 MB, free: 1.867 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004075/0.1173, allocations: 223 kB / 361.2 MB, free: 1.648 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001456/0.1175, allocations: 107.7 kB / 361.3 MB, free: 1.543 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 2.502e-05/0.1175, allocations: 12 kB / 361.3 MB, free: 1.531 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0103/0.1278, allocations: 6.657 MB / 367.9 MB, free: 10.87 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 7.534e-05/0.1279, allocations: 51.83 kB / 368 MB, free: 10.82 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001273/0.1281, allocations: 99.59 kB / 368.1 MB, free: 10.72 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.006803/0.1349, allocations: 3.914 MB / 372 MB, free: 6.797 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.847e-06/0.1349, allocations: 4 kB / 372 MB, free: 6.793 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.202e-06/0.1349, allocations: 0 / 372 MB, free: 6.793 MB / 318.1 MB Notification: Performance of Transformations before backend: time 5.961e-06/0.1349, allocations: 0 / 372 MB, free: 6.793 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 * Number of variables: 53 Notification: Performance of Generate backend data structure: time 0.002191/0.1371, allocations: 0.983 MB / 373 MB, free: 5.762 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.374e-05/0.1371, allocations: 12.03 kB / 373 MB, free: 5.75 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001284/0.1384, allocations: 176.6 kB / 373.2 MB, free: 5.578 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002425/0.1387, allocations: 264 kB / 373.4 MB, free: 5.281 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.707e-05/0.1387, allocations: 12.81 kB / 373.4 MB, free: 5.266 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.299e-05/0.1388, allocations: 24.38 kB / 373.5 MB, free: 5.242 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003009/0.1418, allocations: 0.9128 MB / 374.4 MB, free: 4.309 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.299e-05/0.1418, allocations: 4 kB / 374.4 MB, free: 4.305 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.128e-05/0.1419, allocations: 8 kB / 374.4 MB, free: 4.297 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.166e-06/0.1419, allocations: 8 kB / 374.4 MB, free: 4.289 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003141/0.145, allocations: 0.9656 MB / 375.4 MB, free: 3.324 MB / 318.1 MB Warning: The model contains alias variables with redundant start and/or conflicting nominal values. It is recommended to resolve the conflicts, because otherwise the system could be hard to solve. To print the conflicting alias sets and the chosen candidates please use -d=aliasConflicts. Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001409/0.1464, allocations: 1.346 MB / 376.7 MB, free: 1.844 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002516/0.149, allocations: 0.7283 MB / 377.4 MB, free: 1.105 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002534/0.1492, allocations: 160.8 kB / 377.6 MB, free: 0.9453 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.1833/0.3325, allocations: 37.39 MB / 415 MB, free: 24.97 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.512e-05/0.3326, allocations: 38.56 kB / 415 MB, free: 24.92 MB / 318.1 MB Notification: Performance of pre-optimization done (n=33): time 2.284e-06/0.3326, allocations: 0 / 415 MB, free: 24.92 MB / 318.1 MB Notification: Performance of matching and sorting (n=33): time 0.004958/0.3376, allocations: 1.36 MB / 416.4 MB, free: 23.57 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.113e-05/0.3376, allocations: 55.41 kB / 416.4 MB, free: 23.5 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.233e-05/0.3377, allocations: 120.2 kB / 416.6 MB, free: 23.38 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 6.562e-05/0.3377, allocations: 29.7 kB / 416.6 MB, free: 23.34 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 3.678e-05/0.3378, allocations: 113.8 kB / 416.7 MB, free: 23.24 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001112/0.3379, allocations: 121.2 kB / 416.8 MB, free: 23.14 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002353/0.3381, allocations: 161.6 kB / 417 MB, free: 22.97 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 3.896e-05/0.3382, allocations: 326.8 kB / 417.3 MB, free: 22.64 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005095/0.3387, allocations: 341.4 kB / 417.6 MB, free: 22.31 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005576/0.3393, allocations: 411 kB / 418 MB, free: 21.89 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001063/0.3403, allocations: 0.7121 MB / 418.7 MB, free: 21.16 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.064e-06/0.3404, allocations: 4 kB / 418.7 MB, free: 21.15 MB / 318.1 MB Notification: Performance of matching and sorting (n=41) (initialization): time 0.001499/0.3419, allocations: 0.864 MB / 419.6 MB, free: 20.29 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.559e-05/0.3419, allocations: 8.25 kB / 419.6 MB, free: 20.28 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.352e-06/0.3419, allocations: 5.219 kB / 419.6 MB, free: 20.27 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.47e-05/0.3419, allocations: 4 kB / 419.6 MB, free: 20.27 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006315/0.3426, allocations: 179.7 kB / 419.8 MB, free: 20.09 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.765e-06/0.3426, allocations: 7.938 kB / 419.8 MB, free: 20.09 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003864/0.343, allocations: 41.59 kB / 419.8 MB, free: 20.05 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.797e-05/0.3431, allocations: 59.94 kB / 419.9 MB, free: 19.99 MB / 318.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 9 * Number of states: 0 () * Number of discrete variables: 4 (medium.phase,medium.bubble2.phase,medium.bubble.phase,medium.dew.phase) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (41): * Single equations (assignments): 41 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0001843/0.3433, allocations: 145.8 kB / 420 MB, free: 19.84 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001393/0.3434, allocations: 15.81 kB / 420.1 MB, free: 19.82 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004785/0.3482, allocations: 7.965 MB / 428 MB, free: 11.86 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.126e-05/0.3482, allocations: 35.83 kB / 428.1 MB, free: 11.82 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.909e-06/0.3482, allocations: 4 kB / 428.1 MB, free: 11.82 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.473e-06/0.3483, allocations: 3.984 kB / 428.1 MB, free: 11.82 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001845/0.3501, allocations: 3.598 MB / 431.7 MB, free: 7.965 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.31e-06/0.3501, allocations: 3.984 kB / 431.7 MB, free: 7.961 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006213/0.3508, allocations: 103.9 kB / 431.8 MB, free: 7.859 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.157e-06/0.3508, allocations: 3.938 kB / 431.8 MB, free: 7.855 MB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.555e-05/0.3508, allocations: 15.98 kB / 431.8 MB, free: 7.84 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.965e-06/0.3508, allocations: 3.938 kB / 431.8 MB, free: 7.836 MB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.332e-06/0.3508, allocations: 0 / 431.8 MB, free: 7.836 MB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001694/0.3525, allocations: 1.842 MB / 433.6 MB, free: 5.98 MB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.292e-05/0.3526, allocations: 148.2 kB / 433.8 MB, free: 5.816 MB / 318.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.038e-05/0.3526, allocations: 4 kB / 433.8 MB, free: 5.812 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000301/0.3529, allocations: 31.98 kB / 433.8 MB, free: 5.781 MB / 318.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.316e-05/0.353, allocations: 23.97 kB / 433.8 MB, free: 5.758 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.369e-05/0.3531, allocations: 15.98 kB / 433.9 MB, free: 5.742 MB / 318.1 MB Notification: Performance of sorting global known variables: time 3.066e-05/0.3531, allocations: 95.11 kB / 433.9 MB, free: 5.652 MB / 318.1 MB Notification: Performance of sort global known variables: time 1.9e-07/0.3531, allocations: 0 / 433.9 MB, free: 5.652 MB / 318.1 MB Notification: Performance of remove unused functions: time 0.002082/0.3552, allocations: 0.9822 MB / 434.9 MB, free: 4.754 MB / 318.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 2 (medium.p,medium.h) * Number of discrete variables: 15 ($cse1.phase,$cse1.region,$cse3.phase,$cse3.region,$cse4.phase,$cse4.region,$cse5.phase,$cse5.region,$cse6.phase,$cse6.region,$cse7.phase,$cse7.region,$cse9.region3boundary,$cse10.region3boundary,medium.phase) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (43): * Single equations (assignments): 35 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 8 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.003297/0.3585, allocations: 1.131 MB / 436.1 MB, free: 3.75 MB / 318.1 MB Notification: Performance of simCode: created initialization part: time 0.001549/0.3601, allocations: 0.9353 MB / 437 MB, free: 2.816 MB / 318.1 MB Notification: Performance of simCode: created event and clocks part: time 2.224e-06/0.3601, allocations: 0 / 437 MB, free: 2.816 MB / 318.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0005514/0.3606, allocations: 0.5908 MB / 437.6 MB, free: 2.227 MB / 318.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005916/0.3612, allocations: 84.89 kB / 437.7 MB, free: 2.148 MB / 318.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001453/0.3627, allocations: 1.554 MB / 439.2 MB, free: 0.5781 MB / 318.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002959/0.363, allocations: 0.8536 MB / 440.1 MB, free: 15.7 MB / 334.1 MB Notification: Performance of simCode: alias equations: time 0.001884/0.3649, allocations: 1.784 MB / 441.9 MB, free: 13.91 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003348/0.3652, allocations: 87.36 kB / 441.9 MB, free: 13.83 MB / 334.1 MB Notification: Performance of SimCode: time 4.11e-07/0.3653, allocations: 0 / 441.9 MB, free: 13.83 MB / 334.1 MB Notification: Performance of Templates: time 0.04943/0.4147, allocations: 41.06 MB / 483 MB, free: 4.688 MB / 366.1 MB make -j1 -f Modelica_3.2.2_Modelica.Media.Examples.TwoPhaseWater.TestTwoPhaseStates.makefile (rm -f Modelica_3.2.2_Modelica.Media.Examples.TwoPhaseWater.TestTwoPhaseStates.pipe ; mkfifo Modelica_3.2.2_Modelica.Media.Examples.TwoPhaseWater.TestTwoPhaseStates.pipe ; head -c 1048576 < Modelica_3.2.2_Modelica.Media.Examples.TwoPhaseWater.TestTwoPhaseStates.pipe >> ../files/Modelica_3.2.2_Modelica.Media.Examples.TwoPhaseWater.TestTwoPhaseStates.sim & ./Modelica_3.2.2_Modelica.Media.Examples.TwoPhaseWater.TestTwoPhaseStates -abortSlowSimulation -alarm=480 -lv LOG_STATS > Modelica_3.2.2_Modelica.Media.Examples.TwoPhaseWater.TestTwoPhaseStates.pipe 2>&1)