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.0008687/0.0008688, allocations: 91.84 kB / 15.06 MB, free: 1.098 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.0008374/0.0008374, allocations: 172.7 kB / 15.95 MB, free: 208 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.385/1.385, allocations: 205.4 MB / 222.1 MB, free: 5.5 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.000438/0.000438, allocations: 12 kB / 278.9 MB, free: 12.7 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2145/0.215, allocations: 47.58 MB / 326.5 MB, free: 1.445 MB / 254.1 MB Notification: Performance of NFInst.instantiate(Modelica.Media.Examples.TwoPhaseWater.TestTwoPhaseStates): time 0.01431/0.2293, allocations: 12.37 MB / 338.8 MB, free: 7.098 MB / 270.1 MB Notification: Performance of NFInst.instExpressions: time 0.01549/0.2449, allocations: 14.36 MB / 353.2 MB, free: 8.707 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001459/0.245, allocations: 0 / 353.2 MB, free: 8.707 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002695/0.2453, allocations: 67.53 kB / 353.3 MB, free: 8.641 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002668/0.2456, allocations: 99.34 kB / 353.4 MB, free: 8.543 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0126/0.2582, allocations: 4.519 MB / 357.9 MB, free: 4.008 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004589/0.2587, allocations: 334.6 kB / 358.2 MB, free: 3.68 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 6.217e-05/0.2588, allocations: 13.69 kB / 358.2 MB, free: 3.668 MB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004613/0.2592, allocations: 203.1 kB / 358.4 MB, free: 3.469 MB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001708/0.2594, allocations: 111.6 kB / 358.5 MB, free: 3.359 MB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 3.209e-05/0.2594, allocations: 8 kB / 358.5 MB, free: 3.352 MB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.01158/0.271, allocations: 6.461 MB / 365 MB, free: 12.88 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 7.854e-05/0.2711, allocations: 39.89 kB / 365 MB, free: 12.84 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 8.428e-05/0.2712, allocations: 61.64 kB / 365.1 MB, free: 12.78 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.00429/0.2755, allocations: 2.616 MB / 367.7 MB, free: 10.16 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.39e-06/0.2756, allocations: 4 kB / 367.7 MB, free: 10.15 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.794e-06/0.2756, allocations: 0 / 367.7 MB, free: 10.15 MB / 302.1 MB Notification: Performance of Transformations before backend: time 6.442e-06/0.2756, allocations: 0 / 367.7 MB, free: 10.15 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.002607/0.2782, allocations: 0.9554 MB / 368.7 MB, free: 9.145 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.166e-05/0.2782, allocations: 8.031 kB / 368.7 MB, free: 9.137 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001396/0.2796, allocations: 191.6 kB / 368.9 MB, free: 8.949 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003285/0.28, allocations: 250.8 kB / 369.1 MB, free: 8.664 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.15e-05/0.28, allocations: 12.44 kB / 369.1 MB, free: 8.652 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.618e-05/0.2801, allocations: 24 kB / 369.1 MB, free: 8.629 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002886/0.283, allocations: 0.909 MB / 370 MB, free: 7.699 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.289e-05/0.283, allocations: 7.938 kB / 370.1 MB, free: 7.691 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.288e-05/0.2831, allocations: 8 kB / 370.1 MB, free: 7.684 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.66e-05/0.2831, allocations: 11.95 kB / 370.1 MB, free: 7.672 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002987/0.2861, allocations: 0.9851 MB / 371.1 MB, free: 6.688 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.001644/0.2877, allocations: 1.351 MB / 372.4 MB, free: 5.199 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002323/0.2901, allocations: 0.7214 MB / 373.1 MB, free: 4.469 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002777/0.2904, allocations: 165.3 kB / 373.3 MB, free: 4.305 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.06756/0.3579, allocations: 37.75 MB / 411 MB, free: 10.11 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.496e-05/0.358, allocations: 38.8 kB / 411.1 MB, free: 10.06 MB / 350.1 MB Notification: Performance of pre-optimization done (n=33): time 2.054e-06/0.358, allocations: 0 / 411.1 MB, free: 10.06 MB / 350.1 MB Notification: Performance of matching and sorting (n=33): time 0.004828/0.3629, allocations: 1.373 MB / 412.5 MB, free: 8.684 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.127e-05/0.3629, allocations: 55.41 kB / 412.5 MB, free: 8.617 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001427/0.3631, allocations: 125.8 kB / 412.6 MB, free: 8.484 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 6.077e-05/0.3632, allocations: 33.7 kB / 412.7 MB, free: 8.445 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 6.876e-05/0.3632, allocations: 120.7 kB / 412.8 MB, free: 8.32 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.000129/0.3634, allocations: 114.3 kB / 412.9 MB, free: 8.207 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.165e-05/0.3634, allocations: 8 kB / 412.9 MB, free: 8.199 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001416/0.3636, allocations: 326.8 kB / 413.2 MB, free: 7.871 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005884/0.3642, allocations: 339.8 kB / 413.6 MB, free: 7.539 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006907/0.3649, allocations: 411.3 kB / 414 MB, free: 7.109 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000603/0.3655, allocations: 335.9 kB / 414.3 MB, free: 6.781 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.21e-06/0.3655, allocations: 4 kB / 414.3 MB, free: 6.777 MB / 350.1 MB Notification: Performance of matching and sorting (n=41) (initialization): time 0.001599/0.3671, allocations: 0.872 MB / 415.2 MB, free: 5.898 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.166e-05/0.3671, allocations: 8 kB / 415.2 MB, free: 5.891 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.002e-05/0.3672, allocations: 3.953 kB / 415.2 MB, free: 5.887 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.953e-05/0.3672, allocations: 4.375 kB / 415.2 MB, free: 5.883 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006245/0.3678, allocations: 183.8 kB / 415.4 MB, free: 5.703 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.022e-05/0.3678, allocations: 4 kB / 415.4 MB, free: 5.699 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003318/0.3682, allocations: 43.86 kB / 415.4 MB, free: 5.656 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001221/0.3683, allocations: 67.88 kB / 415.5 MB, free: 5.59 MB / 350.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.0001933/0.3685, allocations: 141.8 kB / 415.6 MB, free: 5.441 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.246e-05/0.3686, allocations: 11.91 kB / 415.6 MB, free: 5.43 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.007869/0.3765, allocations: 7.982 MB / 423.6 MB, free: 13.43 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.582e-05/0.3765, allocations: 31.91 kB / 423.6 MB, free: 13.4 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.093e-06/0.3766, allocations: 0 / 423.6 MB, free: 13.4 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.004e-05/0.3766, allocations: 7.984 kB / 423.6 MB, free: 13.39 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003252/0.3798, allocations: 3.596 MB / 427.2 MB, free: 9.531 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.457e-06/0.3799, allocations: 4 kB / 427.2 MB, free: 9.527 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006037/0.3805, allocations: 103.8 kB / 427.3 MB, free: 9.426 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.49e-05/0.3805, allocations: 7.984 kB / 427.3 MB, free: 9.418 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.941e-05/0.3806, allocations: 15.98 kB / 427.4 MB, free: 9.402 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 7.535e-06/0.3806, allocations: 7.953 kB / 427.4 MB, free: 9.395 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.794e-06/0.3806, allocations: 0 / 427.4 MB, free: 9.395 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002356/0.3829, allocations: 1.846 MB / 429.2 MB, free: 7.531 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001084/0.3831, allocations: 144.2 kB / 429.4 MB, free: 7.371 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.254e-05/0.3831, allocations: 12 kB / 429.4 MB, free: 7.359 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002926/0.3834, allocations: 24.05 kB / 429.4 MB, free: 7.336 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.443e-05/0.3835, allocations: 31.91 kB / 429.4 MB, free: 7.305 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.894e-05/0.3836, allocations: 16 kB / 429.4 MB, free: 7.289 MB / 366.1 MB Notification: Performance of sorting global known variables: time 6.472e-05/0.3836, allocations: 91.27 kB / 429.5 MB, free: 7.199 MB / 366.1 MB Notification: Performance of sort global known variables: time 2.1e-07/0.3836, allocations: 0 / 429.5 MB, free: 7.199 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.00261/0.3863, allocations: 0.9762 MB / 430.5 MB, free: 6.223 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 (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.003592/0.3899, allocations: 1.132 MB / 431.6 MB, free: 5.082 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.001523/0.3914, allocations: 0.908 MB / 432.5 MB, free: 4.176 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 3.016e-06/0.3914, allocations: 3.938 kB / 432.6 MB, free: 4.172 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.000733/0.3922, allocations: 0.5991 MB / 433.1 MB, free: 3.57 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006305/0.3928, allocations: 79.92 kB / 433.2 MB, free: 3.492 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001902/0.3947, allocations: 1.595 MB / 434.8 MB, free: 1.867 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004194/0.3951, allocations: 0.8614 MB / 435.7 MB, free: 0.9844 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.001959/0.3971, allocations: 1.78 MB / 437.5 MB, free: 15.2 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003108/0.3974, allocations: 91.28 kB / 437.6 MB, free: 15.11 MB / 382.1 MB Notification: Performance of SimCode: time 1.092e-06/0.3974, allocations: 0 / 437.6 MB, free: 15.11 MB / 382.1 MB Notification: Performance of Templates: time 0.2051/0.6025, allocations: 40.74 MB / 478.3 MB, free: 101.1 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)