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.001579/0.001579, allocations: 107.4 kB / 15.22 MB, free: 0.6562 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.001275/0.001275, allocations: 191 kB / 16.13 MB, free: 6.598 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.329/1.329, allocations: 205.1 MB / 222 MB, free: 4.719 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.001158/0.001158, allocations: 51.94 kB / 278.1 MB, free: 12.75 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1931/0.1943, allocations: 46.62 MB / 324.7 MB, free: 1.938 MB / 254.1 MB Notification: Performance of NFInst.instantiate(Modelica.Media.Examples.TwoPhaseWater.TestTwoPhaseStates): time 0.01605/0.2104, allocations: 14.15 MB / 338.8 MB, free: 5.98 MB / 270.1 MB Notification: Performance of NFInst.instExpressions: time 0.01691/0.2273, allocations: 16.6 MB / 355.4 MB, free: 5.328 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001485/0.2275, allocations: 0 / 355.4 MB, free: 5.328 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003421/0.2279, allocations: 79.55 kB / 355.5 MB, free: 5.25 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002929/0.2282, allocations: 103.3 kB / 355.6 MB, free: 5.148 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.01354/0.2418, allocations: 4.704 MB / 360.3 MB, free: 440 kB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004598/0.2423, allocations: 366.5 kB / 360.7 MB, free: 72 kB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 6.383e-05/0.2423, allocations: 17.62 kB / 360.7 MB, free: 52 kB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0005104/0.2428, allocations: 211 kB / 360.9 MB, free: 15.84 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001628/0.243, allocations: 103.6 kB / 361 MB, free: 15.74 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 2.404e-05/0.243, allocations: 8 kB / 361 MB, free: 15.73 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.01181/0.2549, allocations: 6.68 MB / 367.7 MB, free: 9.047 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 8.596e-05/0.255, allocations: 35.89 kB / 367.7 MB, free: 9.012 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001452/0.2551, allocations: 91.55 kB / 367.8 MB, free: 8.922 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.007637/0.2628, allocations: 3.91 MB / 371.7 MB, free: 5.004 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.728e-06/0.2628, allocations: 3.938 kB / 371.7 MB, free: 5 MB / 302.1 MB Notification: Performance of FrontEnd: time 9.62e-07/0.2628, allocations: 0 / 371.7 MB, free: 5 MB / 302.1 MB Notification: Performance of Transformations before backend: time 4.869e-06/0.2628, allocations: 4 kB / 371.7 MB, free: 4.996 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.002133/0.265, allocations: 0.9869 MB / 372.7 MB, free: 3.957 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.646e-05/0.265, allocations: 8.031 kB / 372.7 MB, free: 3.949 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001372/0.2664, allocations: 180.5 kB / 372.9 MB, free: 3.773 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000235/0.2666, allocations: 259.9 kB / 373.1 MB, free: 3.48 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.315e-05/0.2667, allocations: 20.81 kB / 373.2 MB, free: 3.461 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.031e-05/0.2667, allocations: 20.38 kB / 373.2 MB, free: 3.441 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003116/0.2699, allocations: 0.905 MB / 374.1 MB, free: 2.516 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.137e-05/0.2699, allocations: 0 / 374.1 MB, free: 2.516 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.242e-05/0.2699, allocations: 8 kB / 374.1 MB, free: 2.508 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.925e-06/0.2699, allocations: 11.94 kB / 374.1 MB, free: 2.496 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003255/0.2732, allocations: 0.9773 MB / 375.1 MB, free: 1.52 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.00143/0.2746, allocations: 1.346 MB / 376.4 MB, free: 36 kB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002644/0.2773, allocations: 0.7245 MB / 377.2 MB, free: 15.3 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002544/0.2776, allocations: 156.8 kB / 377.3 MB, free: 15.14 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.06981/0.3474, allocations: 37.39 MB / 414.7 MB, free: 5.305 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.409e-05/0.3474, allocations: 38.56 kB / 414.7 MB, free: 5.258 MB / 350.1 MB Notification: Performance of pre-optimization done (n=33): time 2.013e-06/0.3475, allocations: 3.938 kB / 414.7 MB, free: 5.254 MB / 350.1 MB Notification: Performance of matching and sorting (n=33): time 0.005245/0.3527, allocations: 1.36 MB / 416.1 MB, free: 3.887 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.371e-05/0.3528, allocations: 55.41 kB / 416.2 MB, free: 3.82 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.771e-05/0.3529, allocations: 117.8 kB / 416.3 MB, free: 3.695 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 7.357e-05/0.353, allocations: 33.7 kB / 416.3 MB, free: 3.656 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 6.461e-05/0.353, allocations: 116.7 kB / 416.4 MB, free: 3.535 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001284/0.3532, allocations: 110.4 kB / 416.5 MB, free: 3.426 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002786/0.3535, allocations: 173.8 kB / 416.7 MB, free: 3.25 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001074/0.3536, allocations: 322.8 kB / 417 MB, free: 2.926 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006246/0.3542, allocations: 343.6 kB / 417.4 MB, free: 2.59 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006925/0.3549, allocations: 415.2 kB / 417.8 MB, free: 2.156 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001314/0.3562, allocations: 0.7076 MB / 418.5 MB, free: 1.422 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.446e-06/0.3562, allocations: 0 / 418.5 MB, free: 1.422 MB / 350.1 MB Notification: Performance of matching and sorting (n=41) (initialization): time 0.001787/0.358, allocations: 0.8758 MB / 419.3 MB, free: 0.5391 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.926e-05/0.3581, allocations: 4 kB / 419.3 MB, free: 0.5352 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.022e-05/0.3581, allocations: 4 kB / 419.3 MB, free: 0.5312 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.669e-05/0.3581, allocations: 11.88 kB / 419.4 MB, free: 0.5195 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006798/0.3588, allocations: 171.8 kB / 419.5 MB, free: 360 kB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.021e-05/0.3588, allocations: 7.984 kB / 419.5 MB, free: 352 kB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003918/0.3592, allocations: 43.92 kB / 419.6 MB, free: 308 kB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001051/0.3593, allocations: 59.94 kB / 419.6 MB, free: 248 kB / 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.0002258/0.3596, allocations: 141.7 kB / 419.8 MB, free: 96 kB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001398/0.3597, allocations: 15.81 kB / 419.8 MB, free: 80 kB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.007369/0.3671, allocations: 7.974 MB / 427.8 MB, free: 8.09 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.097e-05/0.3671, allocations: 27.95 kB / 427.8 MB, free: 8.062 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.703e-06/0.3671, allocations: 0 / 427.8 MB, free: 8.062 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.788e-06/0.3672, allocations: 7.969 kB / 427.8 MB, free: 8.055 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002916/0.3701, allocations: 3.588 MB / 431.4 MB, free: 4.199 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.047e-06/0.3701, allocations: 0 / 431.4 MB, free: 4.199 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006862/0.3708, allocations: 115.8 kB / 431.5 MB, free: 4.086 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 7.013e-06/0.3708, allocations: 4 kB / 431.5 MB, free: 4.082 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.164e-05/0.3709, allocations: 15.92 kB / 431.5 MB, free: 4.066 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.406e-06/0.3709, allocations: 0 / 431.5 MB, free: 4.066 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.413e-06/0.3709, allocations: 4 kB / 431.5 MB, free: 4.062 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002233/0.3731, allocations: 1.831 MB / 433.4 MB, free: 2.215 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 8.613e-05/0.3732, allocations: 144.2 kB / 433.5 MB, free: 2.055 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.471e-05/0.3733, allocations: 19.92 kB / 433.5 MB, free: 2.035 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003235/0.3736, allocations: 16 kB / 433.5 MB, free: 2.02 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.122e-05/0.3737, allocations: 27.95 kB / 433.6 MB, free: 1.992 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.132e-05/0.3738, allocations: 19.98 kB / 433.6 MB, free: 1.973 MB / 366.1 MB Notification: Performance of sorting global known variables: time 4.969e-05/0.3738, allocations: 99.14 kB / 433.7 MB, free: 1.875 MB / 366.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.3738, allocations: 0 / 433.7 MB, free: 1.875 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.002525/0.3764, allocations: 0.9799 MB / 434.7 MB, free: 0.8945 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.003699/0.3801, allocations: 1.127 MB / 435.8 MB, free: 15.76 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.001496/0.3816, allocations: 0.9036 MB / 436.7 MB, free: 14.86 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 2.464e-06/0.3816, allocations: 0 / 436.7 MB, free: 14.86 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0007056/0.3823, allocations: 0.5869 MB / 437.3 MB, free: 14.27 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006268/0.3829, allocations: 88.34 kB / 437.4 MB, free: 14.18 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001874/0.3848, allocations: 1.559 MB / 438.9 MB, free: 12.59 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003527/0.3852, allocations: 0.8536 MB / 439.8 MB, free: 11.71 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.001788/0.387, allocations: 1.78 MB / 441.5 MB, free: 9.93 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000347/0.3873, allocations: 83.36 kB / 441.6 MB, free: 9.848 MB / 382.1 MB Notification: Performance of SimCode: time 5.91e-07/0.3874, allocations: 0 / 441.6 MB, free: 9.848 MB / 382.1 MB Notification: Performance of Templates: time 0.1671/0.5544, allocations: 40.54 MB / 482.2 MB, free: 95.77 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)