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.001276/0.001276, allocations: 100 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.001611/0.001611, allocations: 177.3 kB / 15.94 MB, free: 228 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.435/1.435, allocations: 205.4 MB / 222.1 MB, free: 5.492 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.0004461/0.0004462, allocations: 12 kB / 278.9 MB, free: 12.73 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2189/0.2193, allocations: 47.57 MB / 326.4 MB, free: 1.422 MB / 254.1 MB Notification: Performance of NFInst.instantiate(Modelica.Media.Examples.TwoPhaseWater.TestTwoPhaseStates): time 0.01265/0.232, allocations: 11.44 MB / 337.9 MB, free: 8.047 MB / 270.1 MB Notification: Performance of NFInst.instExpressions: time 0.01368/0.2457, allocations: 13.14 MB / 351 MB, free: 10.88 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001579/0.2459, allocations: 4 kB / 351 MB, free: 10.88 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003015/0.2462, allocations: 67.72 kB / 351.1 MB, free: 10.81 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002539/0.2465, allocations: 103.7 kB / 351.2 MB, free: 10.71 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.01264/0.2592, allocations: 4.601 MB / 355.8 MB, free: 6.098 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003513/0.2595, allocations: 207.6 kB / 356 MB, free: 5.895 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 5.387e-05/0.2596, allocations: 17.67 kB / 356 MB, free: 5.879 MB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004908/0.2601, allocations: 239.1 kB / 356.2 MB, free: 5.645 MB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001394/0.2602, allocations: 91.67 kB / 356.3 MB, free: 5.555 MB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 2.116e-05/0.2603, allocations: 8 kB / 356.3 MB, free: 5.547 MB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.01164/0.2719, allocations: 6.645 MB / 363 MB, free: 14.89 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 9.882e-05/0.272, allocations: 43.83 kB / 363 MB, free: 14.85 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 9.232e-05/0.2721, allocations: 61.58 kB / 363.1 MB, free: 14.79 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.005127/0.2773, allocations: 2.612 MB / 365.7 MB, free: 12.17 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.096e-06/0.2773, allocations: 0 / 365.7 MB, free: 12.17 MB / 302.1 MB Notification: Performance of FrontEnd: time 2.645e-06/0.2773, allocations: 7.938 kB / 365.7 MB, free: 12.16 MB / 302.1 MB Notification: Performance of Transformations before backend: time 7.014e-06/0.2773, allocations: 0 / 365.7 MB, free: 12.16 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.002723/0.2801, allocations: 0.9477 MB / 366.7 MB, free: 11.16 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.488e-05/0.2801, allocations: 12.03 kB / 366.7 MB, free: 11.15 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001362/0.2815, allocations: 179.6 kB / 366.8 MB, free: 10.97 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002929/0.2818, allocations: 262.7 kB / 367.1 MB, free: 10.68 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.62e-05/0.2818, allocations: 20.44 kB / 367.1 MB, free: 10.66 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.218e-05/0.2819, allocations: 20 kB / 367.1 MB, free: 10.64 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002915/0.2848, allocations: 0.909 MB / 368 MB, free: 9.707 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.355e-05/0.2849, allocations: 3.938 kB / 368 MB, free: 9.703 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.356e-05/0.2849, allocations: 11.98 kB / 368.1 MB, free: 9.691 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.877e-06/0.2849, allocations: 7.953 kB / 368.1 MB, free: 9.684 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002954/0.2879, allocations: 0.9813 MB / 369 MB, free: 8.703 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.001508/0.2894, allocations: 1.347 MB / 370.4 MB, free: 7.219 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002555/0.292, allocations: 0.7292 MB / 371.1 MB, free: 6.48 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.07337/0.3653, allocations: 37.75 MB / 408.9 MB, free: 12.28 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.769e-05/0.3654, allocations: 42.78 kB / 408.9 MB, free: 12.23 MB / 350.1 MB Notification: Performance of pre-optimization done (n=33): time 2.595e-06/0.3655, allocations: 0 / 408.9 MB, free: 12.23 MB / 350.1 MB Notification: Performance of matching and sorting (n=33): time 0.004947/0.3704, allocations: 1.37 MB / 410.3 MB, free: 10.86 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.638e-05/0.3705, allocations: 55.41 kB / 410.3 MB, free: 10.79 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001212/0.3706, allocations: 121.9 kB / 410.5 MB, free: 10.66 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 7.55e-05/0.3707, allocations: 33.7 kB / 410.5 MB, free: 10.62 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 7.046e-05/0.3708, allocations: 116.7 kB / 410.6 MB, free: 10.5 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001199/0.3709, allocations: 110.3 kB / 410.7 MB, free: 10.39 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.094e-05/0.371, allocations: 12 kB / 410.7 MB, free: 10.38 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001078/0.3711, allocations: 326.8 kB / 411 MB, free: 10.05 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005685/0.3716, allocations: 348.1 kB / 411.4 MB, free: 9.711 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006182/0.3723, allocations: 407.3 kB / 411.8 MB, free: 9.285 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005718/0.3729, allocations: 340.1 kB / 412.1 MB, free: 8.953 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.296e-06/0.3729, allocations: 7.938 kB / 412.1 MB, free: 8.945 MB / 350.1 MB Notification: Performance of matching and sorting (n=41) (initialization): time 0.00162/0.3745, allocations: 0.8719 MB / 413 MB, free: 8.066 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.01e-05/0.3745, allocations: 8.25 kB / 413 MB, free: 8.059 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.598e-06/0.3745, allocations: 4 kB / 413 MB, free: 8.055 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.17e-05/0.3746, allocations: 7.953 kB / 413 MB, free: 8.047 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006326/0.3752, allocations: 175.7 kB / 413.2 MB, free: 7.875 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.221e-05/0.3752, allocations: 7.984 kB / 413.2 MB, free: 7.867 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003709/0.3756, allocations: 43.73 kB / 413.2 MB, free: 7.824 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001062/0.3757, allocations: 59.94 kB / 413.3 MB, free: 7.766 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.0002192/0.376, allocations: 137.8 kB / 413.4 MB, free: 7.621 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.748e-05/0.3761, allocations: 11.91 kB / 413.4 MB, free: 7.609 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.007248/0.3833, allocations: 7.986 MB / 421.4 MB, free: 15.61 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.151e-05/0.3834, allocations: 35.91 kB / 421.5 MB, free: 15.57 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.743e-06/0.3834, allocations: 0 / 421.5 MB, free: 15.57 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.486e-06/0.3834, allocations: 3.984 kB / 421.5 MB, free: 15.57 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003085/0.3865, allocations: 3.596 MB / 425.1 MB, free: 11.71 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.726e-06/0.3865, allocations: 0 / 425.1 MB, free: 11.71 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006166/0.3871, allocations: 115.8 kB / 425.2 MB, free: 11.59 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 7.724e-06/0.3872, allocations: 4 kB / 425.2 MB, free: 11.59 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.475e-05/0.3872, allocations: 11.98 kB / 425.2 MB, free: 11.58 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.839e-06/0.3872, allocations: 4 kB / 425.2 MB, free: 11.57 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.975e-06/0.3872, allocations: 3.953 kB / 425.2 MB, free: 11.57 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002309/0.3895, allocations: 1.846 MB / 427 MB, free: 9.707 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001316/0.3897, allocations: 144.1 kB / 427.2 MB, free: 9.547 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.604e-05/0.3898, allocations: 7.984 kB / 427.2 MB, free: 9.539 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003103/0.3901, allocations: 20 kB / 427.2 MB, free: 9.52 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.142e-05/0.3902, allocations: 39.95 kB / 427.3 MB, free: 9.48 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.864e-05/0.3902, allocations: 19.98 kB / 427.3 MB, free: 9.461 MB / 366.1 MB Notification: Performance of sorting global known variables: time 6.87e-05/0.3903, allocations: 99.14 kB / 427.4 MB, free: 9.363 MB / 366.1 MB Notification: Performance of sort global known variables: time 2.1e-07/0.3903, allocations: 0 / 427.4 MB, free: 9.363 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.002509/0.3928, allocations: 0.9838 MB / 428.4 MB, free: 8.379 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.004354/0.3972, allocations: 1.116 MB / 429.5 MB, free: 7.254 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.001752/0.3989, allocations: 0.9156 MB / 430.4 MB, free: 6.34 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 3.937e-06/0.399, allocations: 0 / 430.4 MB, free: 6.34 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0007399/0.3997, allocations: 0.5908 MB / 431 MB, free: 5.746 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005521/0.4003, allocations: 72.05 kB / 431 MB, free: 5.676 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001928/0.4022, 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.0003797/0.4026, allocations: 0.8692 MB / 433.5 MB, free: 3.164 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.001868/0.4045, allocations: 1.787 MB / 435.3 MB, free: 1.375 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003065/0.4048, allocations: 91.34 kB / 435.4 MB, free: 1.285 MB / 366.1 MB Notification: Performance of SimCode: time 6.21e-07/0.4048, allocations: 0 / 435.4 MB, free: 1.285 MB / 366.1 MB Notification: Performance of Templates: time 0.1823/0.5871, allocations: 40.74 MB / 476.1 MB, free: 102.5 MB / 382.1 MB make -j1 -f Modelica_3.1_Modelica.Media.Examples.TwoPhaseWater.TestTwoPhaseStates.makefile Environment - environmentSimulation: (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) Environment - environmentSimulation: