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.001544/0.001544, allocations: 107.3 kB / 15.33 MB, free: 0.5039 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.001862/0.001862, allocations: 199 kB / 16.26 MB, free: 6.629 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.323/1.323, allocations: 205.1 MB / 222.1 MB, free: 4.715 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.001108/0.001108, allocations: 55.94 kB / 278.2 MB, free: 12.68 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1873/0.1884, allocations: 46.63 MB / 324.8 MB, free: 1.926 MB / 254.1 MB Notification: Performance of NFInst.instantiate(Modelica.Media.Examples.TwoPhaseWater.TestTwoPhaseStates): time 0.01479/0.2032, allocations: 13.46 MB / 338.3 MB, free: 6.605 MB / 270.1 MB Notification: Performance of NFInst.instExpressions: time 0.01573/0.219, allocations: 15.59 MB / 353.9 MB, free: 6.961 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001516/0.2192, allocations: 4 kB / 353.9 MB, free: 6.957 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003203/0.2196, allocations: 71.66 kB / 354 MB, free: 6.887 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002955/0.2199, allocations: 103.3 kB / 354.1 MB, free: 6.785 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.01426/0.2342, allocations: 5.236 MB / 359.3 MB, free: 1.535 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004598/0.2346, allocations: 338.6 kB / 359.6 MB, free: 1.203 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 5.239e-05/0.2347, allocations: 17.67 kB / 359.7 MB, free: 1.188 MB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004397/0.2351, allocations: 223 kB / 359.9 MB, free: 0.9688 MB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001442/0.2353, allocations: 107.7 kB / 360 MB, free: 0.8633 MB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 2.527e-05/0.2353, allocations: 12 kB / 360 MB, free: 0.8516 MB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0111/0.2464, allocations: 6.657 MB / 366.6 MB, free: 10.19 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 8.962e-05/0.2466, allocations: 43.83 kB / 366.7 MB, free: 10.14 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001415/0.2467, allocations: 103.6 kB / 366.8 MB, free: 10.04 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.008119/0.2548, allocations: 3.918 MB / 370.7 MB, free: 6.117 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.942e-06/0.2549, allocations: 4 kB / 370.7 MB, free: 6.113 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.864e-06/0.2549, allocations: 0 / 370.7 MB, free: 6.113 MB / 302.1 MB Notification: Performance of Transformations before backend: time 7.204e-06/0.2549, allocations: 0 / 370.7 MB, free: 6.113 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.00229/0.2572, allocations: 0.9908 MB / 371.7 MB, free: 5.07 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.492e-05/0.2573, allocations: 8.031 kB / 371.7 MB, free: 5.062 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.00141/0.2587, allocations: 176.5 kB / 371.9 MB, free: 4.891 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002605/0.2589, allocations: 252.1 kB / 372.1 MB, free: 4.605 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.812e-05/0.259, allocations: 16.81 kB / 372.1 MB, free: 4.59 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.874e-05/0.259, allocations: 28.31 kB / 372.2 MB, free: 4.562 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003074/0.2621, allocations: 0.905 MB / 373.1 MB, free: 3.637 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.505e-05/0.2622, allocations: 4 kB / 373.1 MB, free: 3.633 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.117e-05/0.2622, allocations: 8 kB / 373.1 MB, free: 3.625 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.197e-06/0.2622, allocations: 8 kB / 373.1 MB, free: 3.617 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003278/0.2655, allocations: 0.9734 MB / 374.1 MB, free: 2.645 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.001528/0.267, allocations: 1.354 MB / 375.4 MB, free: 1.152 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002599/0.2696, allocations: 0.7283 MB / 376.1 MB, free: 424 kB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002476/0.2699, allocations: 160.8 kB / 376.3 MB, free: 260 kB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.06896/0.3389, allocations: 37.38 MB / 413.7 MB, free: 6.422 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.836e-05/0.3389, allocations: 34.5 kB / 413.7 MB, free: 6.379 MB / 350.1 MB Notification: Performance of pre-optimization done (n=33): time 1.984e-06/0.3389, allocations: 4 kB / 413.7 MB, free: 6.375 MB / 350.1 MB Notification: Performance of matching and sorting (n=33): time 0.005158/0.3441, allocations: 1.372 MB / 415.1 MB, free: 4.996 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.794e-05/0.3442, allocations: 55.41 kB / 415.2 MB, free: 4.93 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.861e-05/0.3443, allocations: 113.8 kB / 415.3 MB, free: 4.809 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 7.466e-05/0.3443, allocations: 33.7 kB / 415.3 MB, free: 4.77 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 6.354e-05/0.3444, allocations: 112.7 kB / 415.4 MB, free: 4.652 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001213/0.3445, allocations: 118.4 kB / 415.5 MB, free: 4.535 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002667/0.3448, allocations: 165.5 kB / 415.7 MB, free: 4.367 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 9.271e-05/0.3449, allocations: 326.8 kB / 416 MB, free: 4.039 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000586/0.3455, allocations: 335.6 kB / 416.3 MB, free: 3.711 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00066/0.3462, allocations: 419.2 kB / 416.7 MB, free: 3.273 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001239/0.3474, allocations: 0.6987 MB / 417.4 MB, free: 2.547 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.026e-06/0.3474, allocations: 0 / 417.4 MB, free: 2.547 MB / 350.1 MB Notification: Performance of matching and sorting (n=41) (initialization): time 0.001704/0.3491, allocations: 0.8761 MB / 418.3 MB, free: 1.664 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.813e-05/0.3492, allocations: 8 kB / 418.3 MB, free: 1.656 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.153e-06/0.3492, allocations: 0 / 418.3 MB, free: 1.656 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.689e-05/0.3492, allocations: 7.938 kB / 418.3 MB, free: 1.648 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006803/0.3499, allocations: 179.8 kB / 418.5 MB, free: 1.473 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.121e-05/0.3499, allocations: 4 kB / 418.5 MB, free: 1.469 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003903/0.3503, allocations: 43.8 kB / 418.6 MB, free: 1.426 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001231/0.3504, allocations: 63.94 kB / 418.6 MB, free: 1.363 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 (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0002285/0.3507, allocations: 142.1 kB / 418.8 MB, free: 1.215 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001436/0.3508, allocations: 15.81 kB / 418.8 MB, free: 1.199 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.006654/0.3575, allocations: 7.978 MB / 426.7 MB, free: 9.203 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.987e-05/0.3576, allocations: 31.95 kB / 426.8 MB, free: 9.172 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.079e-05/0.3576, allocations: 4 kB / 426.8 MB, free: 9.168 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.588e-06/0.3576, allocations: 3.984 kB / 426.8 MB, free: 9.164 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00277/0.3604, allocations: 3.596 MB / 430.4 MB, free: 5.305 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.803e-06/0.3604, allocations: 0 / 430.4 MB, free: 5.305 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006924/0.3611, allocations: 107.8 kB / 430.5 MB, free: 5.199 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 6.703e-06/0.3611, allocations: 4 kB / 430.5 MB, free: 5.195 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.469e-05/0.3612, allocations: 15.92 kB / 430.5 MB, free: 5.18 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.797e-06/0.3612, allocations: 4 kB / 430.5 MB, free: 5.176 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.573e-06/0.3612, allocations: 0 / 430.5 MB, free: 5.176 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00228/0.3635, allocations: 1.835 MB / 432.3 MB, free: 3.324 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001053/0.3636, allocations: 148.1 kB / 432.5 MB, free: 3.16 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.062e-05/0.3637, allocations: 11.94 kB / 432.5 MB, free: 3.148 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003243/0.364, allocations: 20.05 kB / 432.5 MB, free: 3.129 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.65e-05/0.3641, allocations: 27.97 kB / 432.5 MB, free: 3.102 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.99e-05/0.3641, allocations: 19.97 kB / 432.6 MB, free: 3.082 MB / 366.1 MB Notification: Performance of sorting global known variables: time 5.548e-05/0.3642, allocations: 91.27 kB / 432.7 MB, free: 2.992 MB / 366.1 MB Notification: Performance of sort global known variables: time 2.11e-07/0.3642, allocations: 0 / 432.7 MB, free: 2.992 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.003056/0.3673, allocations: 0.9838 MB / 433.6 MB, free: 2.008 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.004865/0.3721, allocations: 1.127 MB / 434.8 MB, free: 0.8711 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.001996/0.3742, allocations: 0.9231 MB / 435.7 MB, free: 15.95 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 4.538e-06/0.3742, allocations: 0 / 435.7 MB, free: 15.95 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0007218/0.3749, allocations: 0.5908 MB / 436.3 MB, free: 15.36 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006572/0.3756, allocations: 88.56 kB / 436.4 MB, free: 15.27 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001783/0.3774, allocations: 1.57 MB / 437.9 MB, free: 13.67 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000335/0.3777, allocations: 0.8536 MB / 438.8 MB, free: 12.79 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.001803/0.3795, allocations: 1.78 MB / 440.6 MB, free: 11.01 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003278/0.3799, allocations: 91.3 kB / 440.7 MB, free: 10.92 MB / 382.1 MB Notification: Performance of SimCode: time 7.41e-07/0.3799, allocations: 0 / 440.7 MB, free: 10.92 MB / 382.1 MB Notification: Performance of Templates: time 0.167/0.5469, allocations: 41.06 MB / 481.7 MB, free: 96.9 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)