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.001075/0.001075, allocations: 103.6 kB / 16.51 MB, free: 6.645 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.001022/0.001023, allocations: 195.1 kB / 17.42 MB, free: 6.066 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.266/1.266, allocations: 205.1 MB / 223.3 MB, free: 12.46 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.001082/0.001082, allocations: 55.92 kB / 279.3 MB, free: 3.594 MB / 222.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.07903/0.08012, allocations: 46.63 MB / 326 MB, free: 4.898 MB / 270.1 MB Notification: Performance of NFInst.instantiate(Modelica.Media.Examples.TwoPhaseWater.TestTwoPhaseStates): time 0.01508/0.09524, allocations: 14.15 MB / 340.1 MB, free: 6.684 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.01666/0.1119, allocations: 16.6 MB / 356.7 MB, free: 6.031 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001457/0.1121, allocations: 0 / 356.7 MB, free: 6.031 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003208/0.1125, allocations: 71.67 kB / 356.8 MB, free: 5.961 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002753/0.1128, allocations: 103.3 kB / 356.9 MB, free: 5.859 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0127/0.1255, allocations: 4.708 MB / 361.6 MB, free: 1.137 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004202/0.1259, allocations: 370.5 kB / 362 MB, free: 0.7734 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 4.826e-05/0.126, allocations: 13.69 kB / 362 MB, free: 0.7578 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004031/0.1264, allocations: 211 kB / 362.2 MB, free: 0.5508 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001353/0.1265, allocations: 107.6 kB / 362.3 MB, free: 456 kB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 2.235e-05/0.1266, allocations: 8 kB / 362.3 MB, free: 448 kB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.01099/0.1376, allocations: 6.68 MB / 369 MB, free: 9.75 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 7.831e-05/0.1377, allocations: 35.83 kB / 369 MB, free: 9.715 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001506/0.1378, allocations: 95.59 kB / 369.1 MB, free: 9.621 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.007984/0.1458, allocations: 3.907 MB / 373 MB, free: 5.707 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.35e-06/0.1459, allocations: 0 / 373 MB, free: 5.707 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.472e-06/0.1459, allocations: 0 / 373 MB, free: 5.707 MB / 318.1 MB Notification: Performance of Transformations before backend: time 5.871e-06/0.1459, allocations: 0 / 373 MB, free: 5.707 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.002403/0.1483, allocations: 0.9908 MB / 374 MB, free: 4.668 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.281e-05/0.1484, allocations: 8.031 kB / 374 MB, free: 4.66 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001381/0.1497, allocations: 180.5 kB / 374.2 MB, free: 4.484 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002496/0.15, allocations: 256 kB / 374.4 MB, free: 4.195 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.351e-05/0.15, allocations: 16.81 kB / 374.4 MB, free: 4.176 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.344e-05/0.1501, allocations: 20.38 kB / 374.5 MB, free: 4.156 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003105/0.1532, allocations: 0.9128 MB / 375.4 MB, free: 3.223 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.185e-05/0.1532, allocations: 0 / 375.4 MB, free: 3.223 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.192e-05/0.1533, allocations: 8 kB / 375.4 MB, free: 3.215 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.173e-06/0.1533, allocations: 8 kB / 375.4 MB, free: 3.207 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003199/0.1565, allocations: 0.9734 MB / 376.4 MB, free: 2.234 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.001484/0.158, allocations: 1.346 MB / 377.7 MB, free: 0.7539 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002645/0.1606, allocations: 0.7322 MB / 378.4 MB, free: 12 kB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.1412/0.3018, allocations: 150.6 kB / 378.6 MB, free: 54.27 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.06654/0.3684, allocations: 37.4 MB / 416 MB, free: 24.11 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.753e-05/0.3685, allocations: 38.55 kB / 416 MB, free: 24.07 MB / 318.1 MB Notification: Performance of pre-optimization done (n=33): time 3.276e-06/0.3685, allocations: 0 / 416 MB, free: 24.07 MB / 318.1 MB Notification: Performance of matching and sorting (n=33): time 0.00521/0.3737, allocations: 1.357 MB / 417.4 MB, free: 22.72 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.932e-05/0.3738, allocations: 56.61 kB / 417.4 MB, free: 22.65 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.878e-05/0.3739, allocations: 124.8 kB / 417.6 MB, free: 22.52 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 7.576e-05/0.374, allocations: 29.7 kB / 417.6 MB, free: 22.49 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 4.933e-05/0.374, allocations: 122.5 kB / 417.7 MB, free: 22.38 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001205/0.3742, allocations: 108.3 kB / 417.8 MB, free: 22.28 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002549/0.3744, allocations: 173.5 kB / 418 MB, free: 22.11 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 4.746e-05/0.3745, allocations: 322.8 kB / 418.3 MB, free: 21.78 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005591/0.375, allocations: 343.6 kB / 418.6 MB, free: 21.45 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006333/0.3757, allocations: 411.2 kB / 419 MB, free: 21.02 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001156/0.3769, allocations: 0.7086 MB / 419.7 MB, free: 20.29 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.158e-06/0.3769, allocations: 0 / 419.7 MB, free: 20.29 MB / 318.1 MB Notification: Performance of matching and sorting (n=41) (initialization): time 0.001647/0.3785, allocations: 0.8679 MB / 420.6 MB, free: 19.42 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.807e-05/0.3786, allocations: 8 kB / 420.6 MB, free: 19.41 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.584e-06/0.3786, allocations: 4.188 kB / 420.6 MB, free: 19.41 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.813e-05/0.3786, allocations: 8 kB / 420.6 MB, free: 19.4 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006309/0.3792, allocations: 179.8 kB / 420.8 MB, free: 19.22 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.116e-05/0.3792, allocations: 4.547 kB / 420.8 MB, free: 19.22 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004095/0.3797, allocations: 36.61 kB / 420.8 MB, free: 19.18 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.82e-05/0.3798, allocations: 59.94 kB / 420.9 MB, free: 19.12 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.0002109/0.38, allocations: 141.8 kB / 421 MB, free: 18.98 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001557/0.3802, allocations: 22.98 kB / 421.1 MB, free: 18.96 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.005431/0.3856, allocations: 7.968 MB / 429 MB, free: 11 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.272e-05/0.3856, allocations: 29.05 kB / 429.1 MB, free: 10.98 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.883e-06/0.3856, allocations: 0 / 429.1 MB, free: 10.98 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.302e-06/0.3857, allocations: 11.98 kB / 429.1 MB, free: 10.96 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002041/0.3877, allocations: 3.596 MB / 432.7 MB, free: 7.113 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.591e-06/0.3877, allocations: 0 / 432.7 MB, free: 7.113 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006351/0.3884, allocations: 108.9 kB / 432.8 MB, free: 7.008 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.012e-05/0.3884, allocations: 4 kB / 432.8 MB, free: 7.004 MB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.557e-05/0.3884, allocations: 21.89 kB / 432.8 MB, free: 6.984 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.557e-06/0.3884, allocations: 1.688 kB / 432.8 MB, free: 6.984 MB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.104e-06/0.3885, allocations: 0 / 432.8 MB, free: 6.984 MB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001919/0.3904, allocations: 1.831 MB / 434.6 MB, free: 5.137 MB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 6.213e-05/0.3905, allocations: 148.2 kB / 434.8 MB, free: 4.973 MB / 318.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.265e-05/0.3905, allocations: 11.94 kB / 434.8 MB, free: 4.961 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000322/0.3908, allocations: 16 kB / 434.8 MB, free: 4.945 MB / 318.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001032/0.391, allocations: 35.95 kB / 434.8 MB, free: 4.91 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.002e-05/0.391, allocations: 15.98 kB / 434.9 MB, free: 4.895 MB / 318.1 MB Notification: Performance of sorting global known variables: time 4.436e-05/0.3911, allocations: 95.11 kB / 435 MB, free: 4.805 MB / 318.1 MB Notification: Performance of sort global known variables: time 1.01e-07/0.3911, allocations: 0 / 435 MB, free: 4.805 MB / 318.1 MB Notification: Performance of remove unused functions: time 0.002581/0.3936, allocations: 0.9823 MB / 435.9 MB, free: 3.906 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.004584/0.3982, allocations: 1.128 MB / 437.1 MB, free: 2.914 MB / 318.1 MB Notification: Performance of simCode: created initialization part: time 0.001487/0.3997, allocations: 0.9001 MB / 438 MB, free: 2.016 MB / 318.1 MB Notification: Performance of simCode: created event and clocks part: time 3.356e-06/0.3998, allocations: 4.125 kB / 438 MB, free: 2.012 MB / 318.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0006996/0.4005, allocations: 0.5908 MB / 438.6 MB, free: 1.422 MB / 318.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006818/0.4012, allocations: 83.91 kB / 438.6 MB, free: 1.34 MB / 318.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001747/0.4029, allocations: 1.551 MB / 440.2 MB, free: 15.77 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003906/0.4033, allocations: 0.8536 MB / 441 MB, free: 14.88 MB / 334.1 MB Notification: Performance of simCode: alias equations: time 0.001888/0.4052, allocations: 1.789 MB / 442.8 MB, free: 13.1 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003598/0.4056, allocations: 95.3 kB / 442.9 MB, free: 13.01 MB / 334.1 MB Notification: Performance of SimCode: time 3.7e-07/0.4056, allocations: 0 / 442.9 MB, free: 13.01 MB / 334.1 MB Notification: Performance of Templates: time 0.05548/0.4611, allocations: 40.53 MB / 483.5 MB, free: 4.422 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)