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.001108/0.001108, allocations: 90.28 kB / 15.36 MB, free: 0.7383 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.009437/0.009437, allocations: 171.7 kB / 16.26 MB, free: 6.613 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.369/1.369, allocations: 205.4 MB / 222.4 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.000458/0.0004584, allocations: 14.81 kB / 279.4 MB, free: 12.52 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2036/0.204, allocations: 47.58 MB / 327 MB, free: 1.352 MB / 254.1 MB Notification: Performance of NFInst.instantiate(Modelica.Media.Examples.TwoPhaseWater.TestTwoPhaseStates): time 0.01482/0.2189, allocations: 13.66 MB / 340.7 MB, free: 5.656 MB / 270.1 MB Notification: Performance of NFInst.instExpressions: time 0.01855/0.2375, allocations: 16.32 MB / 357 MB, free: 5.293 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001522/0.2377, allocations: 0 / 357 MB, free: 5.293 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003396/0.238, allocations: 79.59 kB / 357.1 MB, free: 5.215 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003427/0.2384, allocations: 99.34 kB / 357.2 MB, free: 5.117 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.01543/0.2538, allocations: 4.701 MB / 361.9 MB, free: 412 kB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.0005301/0.2544, allocations: 366.5 kB / 362.2 MB, free: 44 kB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 6.732e-05/0.2545, allocations: 17.62 kB / 362.2 MB, free: 24 kB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0005895/0.2551, allocations: 211.2 kB / 362.4 MB, free: 15.81 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002005/0.2553, allocations: 107.6 kB / 362.6 MB, free: 15.71 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 2.605e-05/0.2553, allocations: 8 kB / 362.6 MB, free: 15.7 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.01332/0.2686, allocations: 6.676 MB / 369.2 MB, free: 9.02 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 9.197e-05/0.2688, allocations: 35.83 kB / 369.3 MB, free: 8.984 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001519/0.2689, allocations: 125.3 kB / 369.4 MB, free: 8.855 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.008659/0.2776, allocations: 3.887 MB / 373.3 MB, free: 4.961 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.679e-06/0.2776, allocations: 0 / 373.3 MB, free: 4.961 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.783e-06/0.2776, allocations: 0 / 373.3 MB, free: 4.961 MB / 302.1 MB Notification: Performance of Transformations before backend: time 7.153e-06/0.2777, allocations: 0 / 373.3 MB, free: 4.961 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.002632/0.2803, allocations: 0.9556 MB / 374.2 MB, free: 3.953 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.854e-05/0.2803, allocations: 12.02 kB / 374.2 MB, free: 3.941 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001426/0.2818, allocations: 180.6 kB / 374.4 MB, free: 3.766 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002942/0.2821, allocations: 256 kB / 374.7 MB, free: 3.477 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.886e-05/0.2821, allocations: 20.81 kB / 374.7 MB, free: 3.457 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.41e-05/0.2822, allocations: 24.28 kB / 374.7 MB, free: 3.434 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003124/0.2853, allocations: 0.909 MB / 375.6 MB, free: 2.504 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.302e-05/0.2854, allocations: 4 kB / 375.6 MB, free: 2.5 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.816e-05/0.2854, allocations: 12 kB / 375.6 MB, free: 2.488 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.012e-05/0.2854, allocations: 11.97 kB / 375.7 MB, free: 2.477 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003234/0.2887, allocations: 0.9851 MB / 376.6 MB, free: 1.492 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.001615/0.2903, allocations: 1.346 MB / 378 MB, free: 8 kB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002527/0.2928, allocations: 0.7324 MB / 378.7 MB, free: 15.26 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002722/0.2931, allocations: 156.8 kB / 378.9 MB, free: 15.11 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.07647/0.3696, allocations: 37.75 MB / 416.6 MB, free: 4.91 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.738e-05/0.3697, allocations: 38.5 kB / 416.7 MB, free: 4.863 MB / 350.1 MB Notification: Performance of pre-optimization done (n=33): time 2.194e-06/0.3697, allocations: 0 / 416.7 MB, free: 4.863 MB / 350.1 MB Notification: Performance of matching and sorting (n=33): time 0.005232/0.3749, allocations: 1.376 MB / 418 MB, free: 3.48 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.98e-05/0.375, allocations: 55.41 kB / 418.1 MB, free: 3.414 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001234/0.3751, allocations: 121.7 kB / 418.2 MB, free: 3.285 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 8.996e-05/0.3752, allocations: 33.69 kB / 418.2 MB, free: 3.246 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 6.984e-05/0.3753, allocations: 116.7 kB / 418.4 MB, free: 3.125 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001463/0.3755, allocations: 110.4 kB / 418.5 MB, free: 3.016 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000115/0.3756, allocations: 37.7 kB / 418.5 MB, free: 2.973 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001057/0.3757, allocations: 322.8 kB / 418.8 MB, free: 2.648 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006407/0.3764, allocations: 347.6 kB / 419.2 MB, free: 2.309 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006917/0.3771, allocations: 419.6 kB / 419.6 MB, free: 1.871 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001288/0.3784, allocations: 0.7115 MB / 420.3 MB, free: 1.133 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.009e-06/0.3784, allocations: 0 / 420.3 MB, free: 1.133 MB / 350.1 MB Notification: Performance of matching and sorting (n=41) (initialization): time 0.001748/0.3801, allocations: 0.8913 MB / 421.2 MB, free: 240 kB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.21e-05/0.3802, allocations: 4 kB / 421.2 MB, free: 236 kB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.688e-06/0.3802, allocations: 4 kB / 421.2 MB, free: 232 kB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.046e-05/0.3802, allocations: 8.188 kB / 421.2 MB, free: 224 kB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007091/0.3809, allocations: 183.8 kB / 421.4 MB, free: 40 kB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.16e-05/0.3809, allocations: 4 kB / 421.4 MB, free: 36 kB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004196/0.3814, allocations: 47.66 kB / 421.4 MB, free: 15.98 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001025/0.3815, allocations: 63.88 kB / 421.5 MB, free: 15.93 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.0002483/0.3817, allocations: 141.7 kB / 421.6 MB, free: 15.78 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001001/0.3818, allocations: 19.81 kB / 421.6 MB, free: 15.76 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.008312/0.3902, allocations: 7.982 MB / 429.6 MB, free: 7.762 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.412e-05/0.3902, allocations: 27.95 kB / 429.6 MB, free: 7.734 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.566e-06/0.3902, allocations: 0 / 429.6 MB, free: 7.734 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.334e-05/0.3903, allocations: 7.969 kB / 429.7 MB, free: 7.727 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003384/0.3937, allocations: 3.592 MB / 433.2 MB, free: 3.867 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.421e-05/0.3937, allocations: 0 / 433.2 MB, free: 3.867 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.00066/0.3944, allocations: 107.8 kB / 433.4 MB, free: 3.762 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 8.896e-06/0.3944, allocations: 0 / 433.4 MB, free: 3.762 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.648e-05/0.3945, allocations: 19.92 kB / 433.4 MB, free: 3.742 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 7.544e-06/0.3945, allocations: 12 kB / 433.4 MB, free: 3.73 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.563e-06/0.3945, allocations: 0 / 433.4 MB, free: 3.73 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002499/0.397, allocations: 1.85 MB / 435.2 MB, free: 1.863 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001496/0.3972, allocations: 144.1 kB / 435.4 MB, free: 1.703 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.85e-05/0.3972, allocations: 15.94 kB / 435.4 MB, free: 1.688 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003378/0.3976, allocations: 19.98 kB / 435.4 MB, free: 1.668 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.981e-05/0.3977, allocations: 27.95 kB / 435.4 MB, free: 1.641 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.237e-05/0.3977, allocations: 12 kB / 435.4 MB, free: 1.629 MB / 366.1 MB Notification: Performance of sorting global known variables: time 7.815e-05/0.3978, allocations: 99.27 kB / 435.5 MB, free: 1.531 MB / 366.1 MB Notification: Performance of sort global known variables: time 2.41e-07/0.3978, allocations: 0 / 435.5 MB, free: 1.531 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.00325/0.4011, allocations: 0.9838 MB / 436.5 MB, free: 0.5469 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.004882/0.406, allocations: 1.128 MB / 437.7 MB, free: 15.41 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.001615/0.4076, allocations: 0.904 MB / 438.6 MB, free: 14.51 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 5.019e-06/0.4076, allocations: 4.125 kB / 438.6 MB, free: 14.5 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0008062/0.4084, allocations: 0.5947 MB / 439.2 MB, free: 13.91 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007235/0.4092, allocations: 83.86 kB / 439.2 MB, free: 13.82 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002154/0.4113, allocations: 1.614 MB / 440.9 MB, free: 12.18 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003711/0.4117, allocations: 0.8536 MB / 441.7 MB, free: 11.3 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.002083/0.4138, allocations: 1.78 MB / 443.5 MB, free: 9.523 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003658/0.4142, allocations: 91.34 kB / 443.6 MB, free: 9.434 MB / 382.1 MB Notification: Performance of SimCode: time 4.41e-07/0.4142, allocations: 0 / 443.6 MB, free: 9.434 MB / 382.1 MB Notification: Performance of Templates: time 0.2085/0.6227, allocations: 40.44 MB / 484 MB, free: 94.86 MB / 382.1 MB make -j1 -f Modelica_3.1_Modelica.Media.Examples.TwoPhaseWater.TestTwoPhaseStates.makefile (rm -f Modelica_3.1_Modelica.Media.Examples.TwoPhaseWater.TestTwoPhaseStates.pipe ; mkfifo Modelica_3.1_Modelica.Media.Examples.TwoPhaseWater.TestTwoPhaseStates.pipe ; head -c 1048576 < Modelica_3.1_Modelica.Media.Examples.TwoPhaseWater.TestTwoPhaseStates.pipe >> ../files/Modelica_3.1_Modelica.Media.Examples.TwoPhaseWater.TestTwoPhaseStates.sim & ./Modelica_3.1_Modelica.Media.Examples.TwoPhaseWater.TestTwoPhaseStates -abortSlowSimulation -alarm=480 -lv LOG_STATS > Modelica_3.1_Modelica.Media.Examples.TwoPhaseWater.TestTwoPhaseStates.pipe 2>&1)