Running command: translateModel(Modelica.Media.Examples.TwoPhaseWater.TestTwoPhaseStates,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Modelica_3.1_cpp_Modelica.Media.Examples.TwoPhaseWater.TestTwoPhaseStates") Notification: Performance of loadModel(Modelica): time 1.041/1.041, allocations: 111.1 MB / 126.3 MB, free: 6.402 MB / 106.7 MB Notification: Performance of FrontEnd - loaded program: time 2.39e-05/2.388e-05, allocations: 0 / 154.5 MB, free: 2.828 MB / 122.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.05318/0.05323, allocations: 25.18 MB / 179.7 MB, free: 9.613 MB / 154.7 MB Notification: Performance of NFInst.instantiate(Modelica.Media.Examples.TwoPhaseWater.TestTwoPhaseStates): time 0.0224/0.07569, allocations: 13.22 MB / 192.9 MB, free: 12.36 MB / 170.7 MB Notification: Performance of NFInst.instExpressions: time 0.1754/0.2511, allocations: 13.56 MB / 206.5 MB, free: 3.832 MB / 170.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001862/0.2514, allocations: 3.875 kB / 206.5 MB, free: 3.832 MB / 170.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0003196/0.2517, allocations: 61.34 kB / 206.5 MB, free: 3.832 MB / 170.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0003179/0.252, allocations: 97.66 kB / 206.6 MB, free: 3.828 MB / 170.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0157/0.2678, allocations: 4.373 MB / 211 MB, free: 3.73 MB / 170.7 MB Notification: Performance of NFFlatten.flatten: time 0.000521/0.2683, allocations: 169.4 kB / 211.2 MB, free: 3.73 MB / 170.7 MB Notification: Performance of NFFlatten.resolveConnections: time 4.291e-05/0.2684, allocations: 7.062 kB / 211.2 MB, free: 3.73 MB / 170.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0005879/0.269, allocations: 212.3 kB / 211.4 MB, free: 3.727 MB / 170.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002016/0.2692, allocations: 84.91 kB / 211.5 MB, free: 3.727 MB / 170.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.01791/0.2871, allocations: 6.319 MB / 217.8 MB, free: 2.562 MB / 170.7 MB Notification: Performance of NFPackage.collectConstants: time 0.002603/0.2898, allocations: 356.6 kB / 218.1 MB, free: 2.562 MB / 170.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0001433/0.2899, allocations: 35.84 kB / 218.2 MB, free: 2.555 MB / 170.7 MB Notification: Performance of NFVerifyModel.verify: time 0.000159/0.2901, allocations: 24.03 kB / 218.2 MB, free: 2.555 MB / 170.7 MB Notification: Performance of NFConvertDAE.convert: time 0.007489/0.2976, allocations: 2.481 MB / 220.7 MB, free: 1.566 MB / 170.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.148e-06/0.2977, allocations: 0 / 220.7 MB, free: 1.566 MB / 170.7 MB Notification: Performance of FrontEnd: time 2.665e-06/0.2977, allocations: 0 / 220.7 MB, free: 1.566 MB / 170.7 MB Notification: Performance of Transformations before backend: time 2.102e-05/0.2977, allocations: 4 kB / 220.7 MB, free: 1.562 MB / 170.7 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.003549/0.3013, allocations: 0.9514 MB / 221.6 MB, free: 0.875 MB / 170.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.545e-05/0.3013, allocations: 8.969 kB / 221.6 MB, free: 0.875 MB / 170.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.463e-05/0.3014, allocations: 22.75 kB / 221.7 MB, free: 0.8633 MB / 170.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002923/0.3017, allocations: 235.7 kB / 221.9 MB, free: 0.6367 MB / 170.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.31e-05/0.3018, allocations: 27.86 kB / 221.9 MB, free: 0.6289 MB / 170.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.156e-05/0.3019, allocations: 18.84 kB / 221.9 MB, free: 0.6289 MB / 170.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001109/0.303, allocations: 449.7 kB / 222.4 MB, free: 500 kB / 170.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.899e-05/0.303, allocations: 0 / 222.4 MB, free: 500 kB / 170.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.733e-05/0.3031, allocations: 8.688 kB / 222.4 MB, free: 500 kB / 170.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.176e-05/0.3031, allocations: 14.7 kB / 222.4 MB, free: 496 kB / 170.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001449/0.3046, allocations: 0.6427 MB / 223 MB, free: 388 kB / 170.7 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.002509/0.3071, allocations: 1.535 MB / 224.6 MB, free: 15.14 MB / 186.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0007446/0.3079, allocations: 229.8 kB / 224.8 MB, free: 15.09 MB / 186.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.2492/0.5571, allocations: 69.78 MB / 294.6 MB, free: 3.387 MB / 250.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.595e-05/0.5572, allocations: 41.78 kB / 294.6 MB, free: 3.34 MB / 250.7 MB Notification: Performance of pre-optimization done (n=33): time 3.707e-06/0.5572, allocations: 0 / 294.6 MB, free: 3.34 MB / 250.7 MB Notification: Performance of matching and sorting (n=33): time 0.002146/0.5594, allocations: 0.5543 MB / 295.2 MB, free: 2.949 MB / 250.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.114e-05/0.5594, allocations: 55.41 kB / 295.2 MB, free: 2.883 MB / 250.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001279/0.5596, allocations: 112.3 kB / 295.3 MB, free: 2.773 MB / 250.7 MB Notification: Performance of collectPreVariables (initialization): time 4.618e-05/0.5596, allocations: 36.89 kB / 295.4 MB, free: 2.738 MB / 250.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001018/0.5597, allocations: 184.6 kB / 295.6 MB, free: 2.562 MB / 250.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001282/0.5599, allocations: 113.4 kB / 295.7 MB, free: 2.465 MB / 250.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.725e-05/0.5599, allocations: 14.25 kB / 295.7 MB, free: 2.461 MB / 250.7 MB Notification: Performance of setup shared object (initialization): time 0.0001342/0.5601, allocations: 326.7 kB / 296 MB, free: 2.137 MB / 250.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004572/0.5605, allocations: 137.6 kB / 296.1 MB, free: 2.051 MB / 250.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005191/0.5611, allocations: 212.1 kB / 296.3 MB, free: 1.875 MB / 250.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005047/0.5616, allocations: 161.1 kB / 296.5 MB, free: 1.785 MB / 250.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.727e-06/0.5616, allocations: 0 / 296.5 MB, free: 1.785 MB / 250.7 MB Notification: Performance of matching and sorting (n=41) (initialization): time 0.001278/0.5629, allocations: 428 kB / 296.9 MB, free: 1.496 MB / 250.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.147e-05/0.5629, allocations: 4 kB / 296.9 MB, free: 1.492 MB / 250.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.094e-05/0.563, allocations: 4 kB / 296.9 MB, free: 1.488 MB / 250.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.547e-05/0.563, allocations: 4.25 kB / 296.9 MB, free: 1.484 MB / 250.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005715/0.5636, allocations: 88.8 kB / 297 MB, free: 1.406 MB / 250.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.854e-05/0.5636, allocations: 7.984 kB / 297 MB, free: 1.398 MB / 250.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003297/0.564, allocations: 38.2 kB / 297.1 MB, free: 1.367 MB / 250.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.753e-05/0.564, allocations: 15.5 kB / 297.1 MB, free: 1.355 MB / 250.7 MB Warning: Assuming fixed start value for the following 2 variables: medium.h:VARIABLE(flow=false min = -100000000.0 max = 100000000.0 start = 800000.0 unit = "J/kg" fixed = true nominal = 1000000.0 ) "Specific enthalpy of medium" type: Real medium.p:VARIABLE(flow=false min = max(0.0, max(0.0, max(0.0, max(0.0, max(0.0, 2000.0))))) max = min(100000000.0, min(100000000.0, min(100000000.0, min(100000000.0, min(100000000.0, 1000000000.0))))) start = 700.0 unit = "Pa" fixed = true nominal = 100000.0 ) "Absolute pressure of medium" type: Real 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 () * 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.0003787/0.5644, allocations: 177 kB / 297.2 MB, free: 1.195 MB / 250.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.326e-05/0.5645, allocations: 15.84 kB / 297.3 MB, free: 1.18 MB / 250.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002025/0.5665, allocations: 0.8259 MB / 298.1 MB, free: 0.6172 MB / 250.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.615e-05/0.5666, allocations: 7.984 kB / 298.1 MB, free: 0.6094 MB / 250.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.761e-06/0.5666, allocations: 0 / 298.1 MB, free: 0.6094 MB / 250.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.019e-05/0.5666, allocations: 4.922 kB / 298.1 MB, free: 0.6055 MB / 250.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0008445/0.5675, allocations: 0.4929 MB / 298.6 MB, free: 204 kB / 250.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.912e-06/0.5675, allocations: 0 / 298.6 MB, free: 204 kB / 250.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005424/0.568, allocations: 81.02 kB / 298.7 MB, free: 132 kB / 250.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 7.304e-06/0.5681, allocations: 0 / 298.7 MB, free: 132 kB / 250.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.386e-05/0.5681, allocations: 17.12 kB / 298.7 MB, free: 120 kB / 250.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.28e-06/0.5681, allocations: 0 / 298.7 MB, free: 120 kB / 250.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.461e-06/0.5682, allocations: 3.984 kB / 298.7 MB, free: 116 kB / 250.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.1626/0.7307, allocations: 0.8644 MB / 299.6 MB, free: 83.07 MB / 250.7 MB Notification: Performance of postOpt removeConstants (simulation): time 9.01e-05/0.7309, allocations: 109.3 kB / 299.7 MB, free: 82.98 MB / 250.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.69e-05/0.731, allocations: 7.828 kB / 299.7 MB, free: 82.98 MB / 250.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002945/0.7313, allocations: 24.91 kB / 299.7 MB, free: 82.98 MB / 250.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001107/0.7314, allocations: 37.39 kB / 299.7 MB, free: 82.98 MB / 250.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.712e-05/0.7315, allocations: 16.61 kB / 299.7 MB, free: 82.98 MB / 250.7 MB Notification: Performance of sorting global known variables: time 6.603e-05/0.7315, allocations: 92.92 kB / 299.8 MB, free: 82.91 MB / 250.7 MB Notification: Performance of sort global known variables: time 3.7e-07/0.7315, allocations: 0 / 299.8 MB, free: 82.91 MB / 250.7 MB Notification: Performance of remove unused functions: time 0.003999/0.7356, allocations: 1.042 MB / 300.9 MB, free: 82.89 MB / 250.7 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: 3 ($cse5.region3boundary,$cse6.region3boundary,medium.phase) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (39): * Single equations (assignments): 37 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 2 * 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.007417/0.743, allocations: 1.318 MB / 302.2 MB, free: 82.7 MB / 250.7 MB Notification: Performance of simCode: created initialization part: time 0.001313/0.7444, allocations: 443.8 kB / 302.6 MB, free: 82.7 MB / 250.7 MB Notification: Performance of simCode: created event and clocks part: time 4.869e-06/0.7444, allocations: 0 / 302.6 MB, free: 82.7 MB / 250.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0006226/0.745, allocations: 278.3 kB / 302.9 MB, free: 82.7 MB / 250.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008529/0.7459, allocations: 82.08 kB / 303 MB, free: 82.69 MB / 250.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001624/0.7475, allocations: 0.8695 MB / 303.9 MB, free: 82.26 MB / 250.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002543/0.7478, allocations: 0.7666 MB / 304.6 MB, free: 81.56 MB / 250.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002152/0.748, allocations: 50.88 kB / 304.7 MB, free: 81.55 MB / 250.7 MB Notification: Performance of SimCode: time 1.123e-06/0.7481, allocations: 1.219 kB / 304.7 MB, free: 81.55 MB / 250.7 MB Notification: Performance of Templates: time 0.05523/0.8033, allocations: 22.82 MB / 327.5 MB, free: 65.2 MB / 250.7 MB