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.001059/0.001059, allocations: 95.98 kB / 16.3 MB, free: 6.457 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.001025/0.001025, allocations: 183.7 kB / 17.19 MB, free: 6.34 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.311/1.311, allocations: 205.4 MB / 223.3 MB, free: 13.18 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.0004145/0.0004145, allocations: 15.44 kB / 280.1 MB, free: 3.762 MB / 222.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.07792/0.07834, allocations: 47.59 MB / 327.7 MB, free: 4.102 MB / 270.1 MB Notification: Performance of NFInst.instantiate(Modelica.Media.Examples.TwoPhaseWater.TestTwoPhaseStates): time 0.01214/0.09053, allocations: 11.44 MB / 339.1 MB, free: 8.613 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.01424/0.1048, allocations: 13.12 MB / 352.3 MB, free: 11.47 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001398/0.105, allocations: 0 / 352.3 MB, free: 11.47 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.000334/0.1053, allocations: 71.66 kB / 352.3 MB, free: 11.4 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002735/0.1056, allocations: 107.7 kB / 352.4 MB, free: 11.29 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.01162/0.1173, allocations: 4.597 MB / 357 MB, free: 6.684 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003571/0.1176, allocations: 215.5 kB / 357.2 MB, free: 6.473 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 6.069e-05/0.1177, allocations: 21.67 kB / 357.3 MB, free: 6.453 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004895/0.1182, allocations: 235.1 kB / 357.5 MB, free: 6.223 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001363/0.1183, allocations: 91.66 kB / 357.6 MB, free: 6.133 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 2.13e-05/0.1184, allocations: 8 kB / 357.6 MB, free: 6.125 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.01185/0.1302, allocations: 6.649 MB / 364.2 MB, free: 15.47 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 8.775e-05/0.1304, allocations: 43.83 kB / 364.3 MB, free: 15.43 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 8.717e-05/0.1304, allocations: 61.64 kB / 364.3 MB, free: 15.36 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.005042/0.1355, allocations: 2.604 MB / 366.9 MB, free: 12.75 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.226e-06/0.1355, allocations: 0 / 366.9 MB, free: 12.75 MB / 318.1 MB Notification: Performance of FrontEnd: time 2.294e-06/0.1355, allocations: 0 / 366.9 MB, free: 12.75 MB / 318.1 MB Notification: Performance of Transformations before backend: time 7.404e-06/0.1355, allocations: 0 / 366.9 MB, free: 12.75 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.002345/0.1379, allocations: 0.9555 MB / 367.9 MB, free: 11.75 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.586e-05/0.1379, allocations: 12.03 kB / 367.9 MB, free: 11.73 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001348/0.1393, allocations: 175.6 kB / 368.1 MB, free: 11.56 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002793/0.1396, allocations: 266.6 kB / 368.3 MB, free: 11.26 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.257e-05/0.1396, allocations: 16.44 kB / 368.4 MB, free: 11.24 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.193e-05/0.1397, allocations: 23.91 kB / 368.4 MB, free: 11.22 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002824/0.1425, allocations: 0.909 MB / 369.3 MB, free: 10.29 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.069e-05/0.1425, allocations: 0 / 369.3 MB, free: 10.29 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.298e-05/0.1426, allocations: 12 kB / 369.3 MB, free: 10.28 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.967e-06/0.1426, allocations: 11.95 kB / 369.3 MB, free: 10.27 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003026/0.1456, allocations: 0.9812 MB / 370.3 MB, free: 9.285 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.001512/0.1471, allocations: 1.339 MB / 371.6 MB, free: 7.812 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002388/0.1495, allocations: 0.7214 MB / 372.4 MB, free: 7.082 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.2183/0.3679, allocations: 37.76 MB / 410.1 MB, free: 8.098 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.552e-05/0.3679, allocations: 34.72 kB / 410.1 MB, free: 8.059 MB / 318.1 MB Notification: Performance of pre-optimization done (n=33): time 2.665e-06/0.3679, allocations: 0 / 410.1 MB, free: 8.059 MB / 318.1 MB Notification: Performance of matching and sorting (n=33): time 0.004451/0.3724, allocations: 1.37 MB / 411.5 MB, free: 7.703 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.559e-05/0.3724, allocations: 58.66 kB / 411.6 MB, free: 7.641 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.634e-05/0.3725, allocations: 131.3 kB / 411.7 MB, free: 7.535 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 6.725e-05/0.3726, allocations: 29.45 kB / 411.7 MB, free: 7.504 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 3.836e-05/0.3726, allocations: 125.3 kB / 411.9 MB, free: 7.41 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001002/0.3727, allocations: 109.1 kB / 412 MB, free: 7.34 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.825e-05/0.3728, allocations: 3.812 kB / 412 MB, free: 7.34 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 4.725e-05/0.3729, allocations: 333.6 kB / 412.3 MB, free: 7.02 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005031/0.3734, allocations: 342.1 kB / 412.6 MB, free: 6.969 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005175/0.3739, allocations: 411.9 kB / 413 MB, free: 6.836 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005215/0.3744, allocations: 342.3 kB / 413.4 MB, free: 6.809 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.726e-06/0.3744, allocations: 0 / 413.4 MB, free: 6.809 MB / 318.1 MB Notification: Performance of matching and sorting (n=41) (initialization): time 0.001395/0.3758, allocations: 0.8763 MB / 414.2 MB, free: 6.652 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.602e-05/0.3759, allocations: 5.719 kB / 414.2 MB, free: 6.652 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.843e-06/0.3759, allocations: 1.719 kB / 414.2 MB, free: 6.652 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.49e-05/0.3759, allocations: 8.359 kB / 414.3 MB, free: 6.648 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005982/0.3765, allocations: 184.2 kB / 414.4 MB, free: 6.602 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.147e-06/0.3765, allocations: 3.344 kB / 414.4 MB, free: 6.602 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003499/0.3769, allocations: 41.64 kB / 414.5 MB, free: 6.582 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.271e-05/0.377, allocations: 63.12 kB / 414.5 MB, free: 6.566 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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0001882/0.3772, allocations: 148.8 kB / 414.7 MB, free: 6.445 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.714e-05/0.3773, allocations: 16.03 kB / 414.7 MB, free: 6.438 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.005261/0.3825, allocations: 7.974 MB / 422.7 MB, free: 2.105 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.023e-05/0.3826, allocations: 27.08 kB / 422.7 MB, free: 2.086 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.572e-06/0.3826, allocations: 3.953 kB / 422.7 MB, free: 2.082 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.494e-06/0.3826, allocations: 7.297 kB / 422.7 MB, free: 2.078 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002208/0.3848, allocations: 3.603 MB / 426.3 MB, free: 15.49 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.248e-06/0.3848, allocations: 3.094 kB / 426.3 MB, free: 15.49 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006272/0.3855, allocations: 112.7 kB / 426.4 MB, free: 15.4 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.529e-06/0.3855, allocations: 0 / 426.4 MB, free: 15.4 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.692e-05/0.3855, allocations: 11.36 kB / 426.4 MB, free: 15.39 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.308e-06/0.3855, allocations: 4 kB / 426.4 MB, free: 15.39 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.459e-06/0.3855, allocations: 3.953 kB / 426.4 MB, free: 15.38 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002152/0.3877, allocations: 1.853 MB / 428.3 MB, free: 14.21 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 7.905e-05/0.3878, allocations: 140.2 kB / 428.4 MB, free: 14.05 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.046e-05/0.3879, allocations: 10.22 kB / 428.4 MB, free: 14.05 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003014/0.3882, allocations: 27.92 kB / 428.5 MB, free: 14.03 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.5e-05/0.3883, allocations: 31.7 kB / 428.5 MB, free: 14 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.697e-05/0.3883, allocations: 15.2 kB / 428.5 MB, free: 13.99 MB / 334.1 MB Notification: Performance of sorting global known variables: time 5.166e-05/0.3884, allocations: 90.77 kB / 428.6 MB, free: 13.9 MB / 334.1 MB Notification: Performance of sort global known variables: time 2.41e-07/0.3884, allocations: 0 / 428.6 MB, free: 13.9 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.002416/0.3908, allocations: 0.9797 MB / 429.6 MB, free: 13.04 MB / 334.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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.003401/0.3942, allocations: 1.128 MB / 430.7 MB, free: 12.09 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.001355/0.3956, allocations: 0.9082 MB / 431.6 MB, free: 11.52 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 2.615e-06/0.3956, allocations: 4.438 kB / 431.6 MB, free: 11.52 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0006465/0.3962, allocations: 0.5956 MB / 432.2 MB, free: 11.21 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005243/0.3968, allocations: 75.62 kB / 432.3 MB, free: 11.16 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001759/0.3985, allocations: 1.608 MB / 433.9 MB, free: 9.797 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000379/0.3989, allocations: 0.8653 MB / 434.8 MB, free: 8.898 MB / 334.1 MB Notification: Performance of simCode: alias equations: time 0.001851/0.4008, allocations: 1.783 MB / 436.6 MB, free: 7.148 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003047/0.4011, allocations: 87.73 kB / 436.6 MB, free: 7.082 MB / 334.1 MB Notification: Performance of SimCode: time 5.31e-07/0.4011, allocations: 0 / 436.6 MB, free: 7.082 MB / 334.1 MB Notification: Performance of Templates: time 0.05134/0.4524, allocations: 40.75 MB / 477.4 MB, free: 14.45 MB / 382.1 MB make -j1 -f Modelica_3.2.2_Modelica.Media.Examples.TwoPhaseWater.TestTwoPhaseStates.makefile Environment - environmentSimulation: (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) Environment - environmentSimulation: