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.0009412/0.0009412, allocations: 99.39 kB / 15.05 MB, free: 1.105 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.0009291/0.0009292, allocations: 177.3 kB / 15.95 MB, free: 216 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.33/1.33, allocations: 205.4 MB / 222.1 MB, free: 5.656 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.0004313/0.0004313, allocations: 12 kB / 278.9 MB, free: 12.84 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2045/0.2049, allocations: 47.58 MB / 326.4 MB, free: 1.391 MB / 254.1 MB Notification: Performance of NFInst.instantiate(Modelica.Media.Examples.TwoPhaseWater.TestTwoPhaseStates): time 0.01242/0.2174, allocations: 11.43 MB / 337.9 MB, free: 8.055 MB / 270.1 MB Notification: Performance of NFInst.instExpressions: time 0.01461/0.2321, allocations: 13.14 MB / 351 MB, free: 10.89 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000117/0.2322, allocations: 8 kB / 351 MB, free: 10.88 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003184/0.2325, allocations: 63.72 kB / 351.1 MB, free: 10.82 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002351/0.2328, allocations: 103.7 kB / 351.2 MB, free: 10.71 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.01173/0.2445, allocations: 4.605 MB / 355.8 MB, free: 6.098 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.000326/0.2449, allocations: 211.5 kB / 356 MB, free: 5.891 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 5.267e-05/0.2449, allocations: 9.688 kB / 356 MB, free: 5.883 MB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000492/0.2454, allocations: 239.1 kB / 356.2 MB, free: 5.648 MB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001248/0.2456, allocations: 91.69 kB / 356.3 MB, free: 5.559 MB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 2.122e-05/0.2456, allocations: 12 kB / 356.3 MB, free: 5.547 MB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.01124/0.2568, allocations: 6.645 MB / 363 MB, free: 14.89 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 7.088e-05/0.2569, allocations: 43.77 kB / 363 MB, free: 14.85 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 7.279e-05/0.257, allocations: 61.64 kB / 363.1 MB, free: 14.79 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.004308/0.2613, allocations: 2.608 MB / 365.7 MB, free: 12.17 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.378e-06/0.2614, allocations: 0 / 365.7 MB, free: 12.17 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.633e-06/0.2614, allocations: 4 kB / 365.7 MB, free: 12.17 MB / 302.1 MB Notification: Performance of Transformations before backend: time 1.323e-05/0.2614, allocations: 0 / 365.7 MB, free: 12.17 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.002532/0.2639, allocations: 0.9516 MB / 366.7 MB, free: 11.16 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.349e-05/0.264, allocations: 8.031 kB / 366.7 MB, free: 11.16 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001381/0.2654, allocations: 183.6 kB / 366.8 MB, free: 10.98 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002882/0.2657, allocations: 262.6 kB / 367.1 MB, free: 10.68 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.576e-05/0.2657, allocations: 20.44 kB / 367.1 MB, free: 10.66 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.624e-05/0.2657, allocations: 23.98 kB / 367.1 MB, free: 10.64 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002952/0.2687, allocations: 0.909 MB / 368.1 MB, free: 9.707 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.172e-05/0.2687, allocations: 3.938 kB / 368.1 MB, free: 9.703 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.316e-05/0.2688, allocations: 4 kB / 368.1 MB, free: 9.699 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.638e-06/0.2688, allocations: 15.89 kB / 368.1 MB, free: 9.684 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003039/0.2718, allocations: 0.9774 MB / 369.1 MB, free: 8.707 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.001555/0.2734, allocations: 1.347 MB / 370.4 MB, free: 7.223 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002442/0.2759, allocations: 0.7253 MB / 371.1 MB, free: 6.488 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.07474/0.3506, allocations: 37.75 MB / 408.9 MB, free: 12.29 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.05e-05/0.3507, allocations: 38.78 kB / 408.9 MB, free: 12.24 MB / 350.1 MB Notification: Performance of pre-optimization done (n=33): time 2.415e-06/0.3507, allocations: 0 / 408.9 MB, free: 12.24 MB / 350.1 MB Notification: Performance of matching and sorting (n=33): time 0.005056/0.3558, allocations: 1.374 MB / 410.3 MB, free: 10.86 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.121e-05/0.3558, allocations: 51.41 kB / 410.3 MB, free: 10.8 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001123/0.3559, allocations: 125.9 kB / 410.5 MB, free: 10.67 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 8.172e-05/0.356, allocations: 29.7 kB / 410.5 MB, free: 10.63 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 7.198e-05/0.3561, allocations: 112.7 kB / 410.6 MB, free: 10.52 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001474/0.3563, allocations: 118.3 kB / 410.7 MB, free: 10.4 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.903e-05/0.3564, allocations: 8 kB / 410.7 MB, free: 10.39 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001181/0.3565, allocations: 326.8 kB / 411 MB, free: 10.06 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005811/0.3571, allocations: 343.8 kB / 411.4 MB, free: 9.727 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006338/0.3577, allocations: 415.2 kB / 411.8 MB, free: 9.293 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006007/0.3583, allocations: 336.1 kB / 412.1 MB, free: 8.965 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.897e-06/0.3583, allocations: 8 kB / 412.1 MB, free: 8.957 MB / 350.1 MB Notification: Performance of matching and sorting (n=41) (initialization): time 0.001646/0.36, allocations: 0.868 MB / 413 MB, free: 8.082 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.168e-05/0.36, allocations: 8.25 kB / 413 MB, free: 8.074 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.003e-06/0.36, allocations: 4 kB / 413 MB, free: 8.07 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.204e-05/0.3601, allocations: 7.953 kB / 413 MB, free: 8.062 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006379/0.3607, allocations: 184.1 kB / 413.2 MB, free: 7.883 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.929e-06/0.3607, allocations: 4 kB / 413.2 MB, free: 7.879 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003738/0.3611, allocations: 35.73 kB / 413.2 MB, free: 7.844 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000105/0.3612, allocations: 67.94 kB / 413.3 MB, free: 7.777 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.0002315/0.3615, allocations: 145.7 kB / 413.4 MB, free: 7.625 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.09e-05/0.3616, allocations: 15.89 kB / 413.5 MB, free: 7.609 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.007408/0.369, allocations: 7.982 MB / 421.4 MB, free: 15.61 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.233e-05/0.369, allocations: 31.91 kB / 421.5 MB, free: 15.58 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.624e-06/0.369, allocations: 0 / 421.5 MB, free: 15.58 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.127e-06/0.3691, allocations: 3.984 kB / 421.5 MB, free: 15.58 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003228/0.3723, allocations: 3.604 MB / 425.1 MB, free: 11.71 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.065e-06/0.3723, allocations: 0 / 425.1 MB, free: 11.71 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006163/0.3729, allocations: 107.8 kB / 425.2 MB, free: 11.6 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 6.802e-06/0.373, allocations: 8 kB / 425.2 MB, free: 11.59 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.177e-05/0.373, allocations: 11.98 kB / 425.2 MB, free: 11.58 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.727e-06/0.373, allocations: 0 / 425.2 MB, free: 11.58 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.491e-05/0.3731, allocations: 7.953 kB / 425.2 MB, free: 11.57 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002324/0.3754, allocations: 1.85 MB / 427.1 MB, free: 9.707 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001017/0.3755, allocations: 140.2 kB / 427.2 MB, free: 9.551 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.541e-05/0.3756, allocations: 8 kB / 427.2 MB, free: 9.543 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003157/0.3759, allocations: 23.98 kB / 427.2 MB, free: 9.52 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.434e-05/0.376, allocations: 35.97 kB / 427.3 MB, free: 9.484 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.57e-05/0.376, allocations: 16 kB / 427.3 MB, free: 9.469 MB / 366.1 MB Notification: Performance of sorting global known variables: time 5.496e-05/0.3761, allocations: 95.2 kB / 427.4 MB, free: 9.375 MB / 366.1 MB Notification: Performance of sort global known variables: time 1.1e-07/0.3761, allocations: 0 / 427.4 MB, free: 9.375 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.002795/0.3789, allocations: 0.9799 MB / 428.4 MB, free: 8.395 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.004395/0.3833, allocations: 1.127 MB / 429.5 MB, free: 7.258 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.001604/0.3849, allocations: 0.9117 MB / 430.4 MB, free: 6.348 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 3.557e-06/0.3849, allocations: 0 / 430.4 MB, free: 6.348 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0007715/0.3857, allocations: 0.5946 MB / 431 MB, free: 5.75 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005654/0.3863, allocations: 76.05 kB / 431.1 MB, free: 5.676 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001941/0.3883, allocations: 1.591 MB / 432.6 MB, free: 4.055 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004056/0.3887, allocations: 0.8692 MB / 433.5 MB, free: 3.164 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.002022/0.3907, allocations: 1.78 MB / 435.3 MB, free: 1.383 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003103/0.391, allocations: 87.36 kB / 435.4 MB, free: 1.297 MB / 366.1 MB Notification: Performance of SimCode: time 4.61e-07/0.391, allocations: 0 / 435.4 MB, free: 1.297 MB / 366.1 MB Notification: Performance of Templates: time 0.2082/0.5993, allocations: 40.74 MB / 476.1 MB, free: 102.4 MB / 382.1 MB make -j1 -f Modelica_3.2.1_Modelica.Media.Examples.TwoPhaseWater.TestTwoPhaseStates.makefile Environment - environmentSimulation: (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) Environment - environmentSimulation: