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.001008/0.001008, allocations: 98.27 kB / 15.36 MB, free: 0.7344 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.007436/0.007437, allocations: 172 kB / 16.27 MB, free: 6.652 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.363/1.363, allocations: 205.4 MB / 222.5 MB, free: 5.555 MB / 174.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.0004312/0.0004313, allocations: 16.38 kB / 279.4 MB, free: 12.52 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1995/0.2, allocations: 47.58 MB / 327 MB, free: 1.418 MB / 254.1 MB Notification: Performance of NFInst.instantiate(Modelica.Media.Examples.TwoPhaseWater.TestTwoPhaseStates): time 0.015/0.215, allocations: 13.66 MB / 340.7 MB, free: 5.684 MB / 270.1 MB Notification: Performance of NFInst.instExpressions: time 0.01761/0.2326, allocations: 16.31 MB / 357 MB, free: 5.328 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.00013/0.2328, allocations: 0 / 357 MB, free: 5.328 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003097/0.2331, allocations: 75.59 kB / 357.1 MB, free: 5.254 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002759/0.2334, allocations: 103.3 kB / 357.2 MB, free: 5.152 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.01276/0.2462, allocations: 4.701 MB / 361.9 MB, free: 448 kB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004263/0.2466, allocations: 370.5 kB / 362.2 MB, free: 76 kB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 5.165e-05/0.2467, allocations: 17.62 kB / 362.2 MB, free: 56 kB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004704/0.2472, allocations: 215.2 kB / 362.5 MB, free: 15.84 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001496/0.2473, allocations: 107.6 kB / 362.6 MB, free: 15.73 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 2.223e-05/0.2474, allocations: 8 kB / 362.6 MB, free: 15.73 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.01091/0.2583, allocations: 6.672 MB / 369.2 MB, free: 9.051 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 7.872e-05/0.2584, allocations: 39.83 kB / 369.3 MB, free: 9.012 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001263/0.2585, allocations: 117.3 kB / 369.4 MB, free: 8.891 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.006293/0.2648, allocations: 3.891 MB / 373.3 MB, free: 4.992 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.707e-06/0.2648, allocations: 0 / 373.3 MB, free: 4.992 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.823e-06/0.2648, allocations: 0 / 373.3 MB, free: 4.992 MB / 302.1 MB Notification: Performance of Transformations before backend: time 4.809e-06/0.2649, allocations: 0 / 373.3 MB, free: 4.992 MB / 302.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.002139/0.267, allocations: 0.9518 MB / 374.2 MB, free: 3.988 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.557e-05/0.267, allocations: 8.031 kB / 374.2 MB, free: 3.98 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001346/0.2684, allocations: 180.5 kB / 374.4 MB, free: 3.805 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002484/0.2687, allocations: 260 kB / 374.7 MB, free: 3.512 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.09e-05/0.2687, allocations: 16.81 kB / 374.7 MB, free: 3.496 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.888e-05/0.2687, allocations: 28.28 kB / 374.7 MB, free: 3.469 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003032/0.2718, allocations: 0.9129 MB / 375.6 MB, free: 2.535 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.123e-05/0.2718, allocations: 0 / 375.6 MB, free: 2.535 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.248e-05/0.2719, allocations: 8 kB / 375.6 MB, free: 2.527 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.052e-05/0.2719, allocations: 4 kB / 375.6 MB, free: 2.523 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003135/0.275, allocations: 0.989 MB / 376.6 MB, free: 1.535 MB / 302.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.001479/0.2765, allocations: 1.354 MB / 378 MB, free: 44 kB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002532/0.279, allocations: 0.7323 MB / 378.7 MB, free: 15.3 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002784/0.2793, allocations: 164.8 kB / 378.9 MB, free: 15.14 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.07599/0.3553, allocations: 37.75 MB / 416.6 MB, free: 4.941 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.586e-05/0.3554, allocations: 38.5 kB / 416.7 MB, free: 4.895 MB / 350.1 MB Notification: Performance of pre-optimization done (n=33): time 2.374e-06/0.3554, allocations: 0 / 416.7 MB, free: 4.895 MB / 350.1 MB Notification: Performance of matching and sorting (n=33): time 0.005041/0.3605, allocations: 1.376 MB / 418 MB, free: 3.512 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.851e-05/0.3605, allocations: 59.41 kB / 418.1 MB, free: 3.441 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.85e-05/0.3606, allocations: 125.6 kB / 418.2 MB, free: 3.309 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 7.077e-05/0.3607, allocations: 29.7 kB / 418.3 MB, free: 3.273 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 6.799e-05/0.3608, allocations: 116.7 kB / 418.4 MB, free: 3.152 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001315/0.3609, allocations: 114.4 kB / 418.5 MB, free: 3.039 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001022/0.361, allocations: 37.7 kB / 418.5 MB, free: 2.996 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001018/0.3611, allocations: 318.8 kB / 418.8 MB, free: 2.676 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006085/0.3618, allocations: 351.6 kB / 419.2 MB, free: 2.332 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006726/0.3624, allocations: 411.2 kB / 419.6 MB, free: 1.902 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001234/0.3637, allocations: 0.7193 MB / 420.3 MB, free: 1.156 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.544e-06/0.3637, allocations: 0 / 420.3 MB, free: 1.156 MB / 350.1 MB Notification: Performance of matching and sorting (n=41) (initialization): time 0.001626/0.3653, allocations: 0.8874 MB / 421.2 MB, free: 268 kB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.844e-05/0.3654, allocations: 4 kB / 421.2 MB, free: 264 kB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.334e-05/0.3654, allocations: 4 kB / 421.2 MB, free: 260 kB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.966e-05/0.3654, allocations: 7.938 kB / 421.2 MB, free: 252 kB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006293/0.366, allocations: 175.8 kB / 421.4 MB, free: 76 kB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.104e-05/0.3661, allocations: 12.22 kB / 421.4 MB, free: 64 kB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003929/0.3665, allocations: 51.67 kB / 421.4 MB, free: 12 kB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000115/0.3666, allocations: 59.95 kB / 421.5 MB, free: 15.95 MB / 366.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.0002152/0.3668, allocations: 141.7 kB / 421.6 MB, free: 15.8 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.302e-05/0.3669, allocations: 15.81 kB / 421.6 MB, free: 15.79 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.007277/0.3742, allocations: 7.982 MB / 429.6 MB, free: 7.789 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.788e-05/0.3742, allocations: 27.95 kB / 429.7 MB, free: 7.762 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.322e-06/0.3743, allocations: 0 / 429.7 MB, free: 7.762 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.686e-06/0.3743, allocations: 7.984 kB / 429.7 MB, free: 7.754 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002898/0.3772, allocations: 3.584 MB / 433.2 MB, free: 3.906 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.631e-06/0.3772, allocations: 0 / 433.2 MB, free: 3.906 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006097/0.3778, allocations: 115.8 kB / 433.4 MB, free: 3.793 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.601e-06/0.3778, allocations: 384 / 433.4 MB, free: 3.793 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.619e-05/0.3779, allocations: 15.92 kB / 433.4 MB, free: 3.777 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.557e-06/0.3779, allocations: 4 kB / 433.4 MB, free: 3.773 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.463e-06/0.3779, allocations: 0 / 433.4 MB, free: 3.773 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002393/0.3803, allocations: 1.854 MB / 435.2 MB, free: 1.902 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 9.115e-05/0.3804, allocations: 144.1 kB / 435.4 MB, free: 1.742 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.011e-05/0.3804, allocations: 15.92 kB / 435.4 MB, free: 1.727 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003071/0.3808, allocations: 24.06 kB / 435.4 MB, free: 1.703 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.041e-05/0.3809, allocations: 23.95 kB / 435.4 MB, free: 1.68 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.265e-05/0.381, allocations: 19.98 kB / 435.5 MB, free: 1.66 MB / 366.1 MB Notification: Performance of sorting global known variables: time 5.79e-05/0.381, allocations: 91.27 kB / 435.5 MB, free: 1.57 MB / 366.1 MB Notification: Performance of sort global known variables: time 1.31e-07/0.381, allocations: 0 / 435.5 MB, free: 1.57 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.002747/0.3838, allocations: 0.9838 MB / 436.5 MB, free: 0.5859 MB / 366.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.00389/0.3877, allocations: 1.135 MB / 437.7 MB, free: 15.44 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.001543/0.3892, allocations: 0.9114 MB / 438.6 MB, free: 14.53 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 3.516e-06/0.3893, allocations: 0 / 438.6 MB, free: 14.53 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0007091/0.39, allocations: 0.5991 MB / 439.2 MB, free: 13.93 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006887/0.3907, allocations: 75.92 kB / 439.2 MB, free: 13.86 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001881/0.3926, allocations: 1.603 MB / 440.8 MB, free: 12.22 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003603/0.3929, allocations: 0.8615 MB / 441.7 MB, free: 11.34 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.001869/0.3948, allocations: 1.78 MB / 443.5 MB, free: 9.559 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003203/0.3951, allocations: 83.36 kB / 443.6 MB, free: 9.477 MB / 382.1 MB Notification: Performance of SimCode: time 5.1e-07/0.3951, allocations: 0 / 443.6 MB, free: 9.477 MB / 382.1 MB Notification: Performance of Templates: time 0.192/0.5871, allocations: 40.43 MB / 484 MB, free: 94.93 MB / 382.1 MB make -j1 -f Modelica_3.2.1_Modelica.Media.Examples.TwoPhaseWater.TestTwoPhaseStates.makefile (rm -f Modelica_3.2.1_Modelica.Media.Examples.TwoPhaseWater.TestTwoPhaseStates.pipe ; mkfifo Modelica_3.2.1_Modelica.Media.Examples.TwoPhaseWater.TestTwoPhaseStates.pipe ; head -c 1048576 < Modelica_3.2.1_Modelica.Media.Examples.TwoPhaseWater.TestTwoPhaseStates.pipe >> ../files/Modelica_3.2.1_Modelica.Media.Examples.TwoPhaseWater.TestTwoPhaseStates.sim & ./Modelica_3.2.1_Modelica.Media.Examples.TwoPhaseWater.TestTwoPhaseStates -abortSlowSimulation -alarm=480 -lv LOG_STATS > Modelica_3.2.1_Modelica.Media.Examples.TwoPhaseWater.TestTwoPhaseStates.pipe 2>&1)