Running command: translateModel(Modelica.Media.Examples.TwoPhaseWater.TestTwoPhaseStates,tolerance=1e-06,outputFormat="mat",numberOfIntervals=4400,variableFilter="time|medium.h|medium.p",fileNamePrefix="Modelica_3.2.3_Modelica.Media.Examples.TwoPhaseWater.TestTwoPhaseStates") Notification: Performance of loadModel(Modelica): time 1.875/1.875, allocations: 205.8 MB / 218.9 MB, free: 9.27 MB / 186.7 MB Notification: Performance of FrontEnd - loaded program: time 3.201e-05/3.215e-05, allocations: 7.984 kB / 269.3 MB, free: 6.406 MB / 218.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08628/0.08634, allocations: 47.58 MB / 316.9 MB, free: 6.746 MB / 266.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 7.565/7.652, allocations: 3.02 GB / 3.33 GB, free: 124.1 MB / 426.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.03094/7.683, allocations: 10.94 MB / 3.341 GB, free: 122.6 MB / 426.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.3857/8.068, allocations: 112.9 MB / 3.451 GB, free: 38.86 MB / 426.7 MB Notification: Performance of FrontEnd: time 2.085e-06/8.068, allocations: 0 / 3.451 GB, free: 38.86 MB / 426.7 MB Notification: Performance of Transformations before backend: time 1.327e-05/8.068, allocations: 4 kB / 3.451 GB, free: 38.86 MB / 426.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.004384/8.073, allocations: 1.129 MB / 3.452 GB, free: 37.68 MB / 426.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.303e-05/8.073, allocations: 12.03 kB / 3.452 GB, free: 37.67 MB / 426.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001837/8.075, allocations: 179.6 kB / 3.452 GB, free: 37.5 MB / 426.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002965/8.075, allocations: 258.7 kB / 3.452 GB, free: 37.2 MB / 426.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.851e-05/8.075, allocations: 24.38 kB / 3.452 GB, free: 37.18 MB / 426.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.181e-05/8.075, allocations: 24 kB / 3.452 GB, free: 37.16 MB / 426.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003396/8.078, allocations: 0.8966 MB / 3.453 GB, free: 36.24 MB / 426.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.9e-05/8.079, allocations: 0 / 3.453 GB, free: 36.24 MB / 426.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.626e-05/8.079, allocations: 19.97 kB / 3.453 GB, free: 36.22 MB / 426.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.422e-06/8.079, allocations: 4 kB / 3.453 GB, free: 36.21 MB / 426.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003462/8.082, allocations: 0.9493 MB / 3.454 GB, free: 35.27 MB / 426.7 MB Warning: The model contains alias variables with conflicting start and/or 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.001718/8.084, allocations: 1.343 MB / 3.456 GB, free: 33.78 MB / 426.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002769/8.087, allocations: 0.7212 MB / 3.456 GB, free: 33.05 MB / 426.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002589/8.087, allocations: 145.4 kB / 3.456 GB, free: 32.91 MB / 426.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.3211/8.408, allocations: 37.35 MB / 3.493 GB, free: 69.81 MB / 426.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.258e-05/8.408, allocations: 47.89 kB / 3.493 GB, free: 69.77 MB / 426.7 MB Notification: Performance of pre-optimization done (n=33): time 3.934e-06/8.408, allocations: 1.344 kB / 3.493 GB, free: 69.77 MB / 426.7 MB Notification: Performance of matching and sorting (n=33): time 0.006243/8.414, allocations: 1.229 MB / 3.494 GB, free: 69.74 MB / 426.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.85e-05/8.414, allocations: 56.34 kB / 3.494 GB, free: 69.68 MB / 426.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001138/8.415, allocations: 108.2 kB / 3.494 GB, free: 69.59 MB / 426.7 MB Notification: Performance of collectPreVariables (initialization): time 9.434e-05/8.415, allocations: 35.23 kB / 3.494 GB, free: 69.55 MB / 426.7 MB Notification: Performance of collectInitialEqns (initialization): time 5.824e-05/8.415, allocations: 122.5 kB / 3.494 GB, free: 69.46 MB / 426.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001502/8.415, allocations: 118 kB / 3.495 GB, free: 69.41 MB / 426.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.342e-05/8.415, allocations: 5.25 kB / 3.495 GB, free: 69.41 MB / 426.7 MB Notification: Performance of setup shared object (initialization): time 6.525e-05/8.415, allocations: 325.3 kB / 3.495 GB, free: 69.09 MB / 426.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006934/8.416, allocations: 315.1 kB / 3.495 GB, free: 69.09 MB / 426.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0007656/8.417, allocations: 385.7 kB / 3.496 GB, free: 69.02 MB / 426.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007174/8.417, allocations: 315.7 kB / 3.496 GB, free: 69.02 MB / 426.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.342e-06/8.417, allocations: 1.469 kB / 3.496 GB, free: 69.02 MB / 426.7 MB Notification: Performance of matching and sorting (n=41) (initialization): time 0.00217/8.42, allocations: 0.8126 MB / 3.497 GB, free: 68.97 MB / 426.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.47e-05/8.42, allocations: 6.703 kB / 3.497 GB, free: 68.97 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.396e-06/8.42, allocations: 2.5 kB / 3.497 GB, free: 68.97 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.307e-05/8.42, allocations: 3.906 kB / 3.497 GB, free: 68.97 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0009362/8.421, allocations: 183.8 kB / 3.497 GB, free: 68.97 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.628e-05/8.421, allocations: 10.36 kB / 3.497 GB, free: 68.96 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000511/8.421, allocations: 39.66 kB / 3.497 GB, free: 68.96 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001603/8.421, allocations: 64.41 kB / 3.497 GB, free: 68.96 MB / 426.7 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 () * 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.00021/8.422, allocations: 120.2 kB / 3.497 GB, free: 68.85 MB / 426.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001382/8.422, allocations: 20.38 kB / 3.497 GB, free: 68.84 MB / 426.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.008248/8.43, allocations: 6.51 MB / 3.503 GB, free: 68.67 MB / 426.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.444e-05/8.43, allocations: 25.62 kB / 3.503 GB, free: 68.67 MB / 426.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.078e-06/8.43, allocations: 5.344 kB / 3.504 GB, free: 68.67 MB / 426.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.314e-05/8.43, allocations: 4.938 kB / 3.504 GB, free: 68.66 MB / 426.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002912/8.433, allocations: 2.892 MB / 3.506 GB, free: 67.84 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.277e-05/8.433, allocations: 1.031 kB / 3.506 GB, free: 67.84 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001039/8.434, allocations: 129 kB / 3.506 GB, free: 67.84 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.014e-05/8.434, allocations: 3 kB / 3.506 GB, free: 67.84 MB / 426.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.354e-05/8.434, allocations: 18.58 kB / 3.506 GB, free: 67.84 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.467e-06/8.434, allocations: 3.594 kB / 3.506 GB, free: 67.84 MB / 426.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.577e-06/8.434, allocations: 3.562 kB / 3.506 GB, free: 67.84 MB / 426.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00298/8.437, allocations: 1.745 MB / 3.508 GB, free: 67.61 MB / 426.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001258/8.437, allocations: 142.2 kB / 3.508 GB, free: 67.49 MB / 426.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.487e-05/8.438, allocations: 5.344 kB / 3.508 GB, free: 67.49 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004762/8.438, allocations: 31.64 kB / 3.508 GB, free: 67.49 MB / 426.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001316/8.438, allocations: 41.14 kB / 3.508 GB, free: 67.48 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.653e-05/8.438, allocations: 28.7 kB / 3.508 GB, free: 67.48 MB / 426.7 MB Notification: Performance of sorting global known variables: time 7.958e-05/8.438, allocations: 91.61 kB / 3.509 GB, free: 67.41 MB / 426.7 MB Notification: Performance of sort global known variables: time 8.92e-07/8.438, allocations: 0 / 3.509 GB, free: 67.41 MB / 426.7 MB Notification: Performance of remove unused functions: time 0.004054/8.442, allocations: 1.003 MB / 3.509 GB, free: 67.4 MB / 426.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: 13 ($cse1.phase,$cse1.region,$cse3.phase,$cse3.region,$cse4.phase,$cse4.region,$cse5.phase,$cse5.region,$cse6.phase,$cse6.region,$cse8.region3boundary,$cse9.region3boundary,medium.phase) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (42): * Single equations (assignments): 35 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 7 * 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.007371/8.45, allocations: 1.254 MB / 3.511 GB, free: 67.3 MB / 426.7 MB Notification: Performance of simCode: created initialization part: time 0.001796/8.452, allocations: 0.8484 MB / 3.512 GB, free: 67.3 MB / 426.7 MB Notification: Performance of simCode: created event and clocks part: time 6.599e-06/8.452, allocations: 0 / 3.512 GB, free: 67.3 MB / 426.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0008811/8.453, allocations: 0.5573 MB / 3.512 GB, free: 67.3 MB / 426.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007194/8.453, allocations: 85.16 kB / 3.512 GB, free: 67.29 MB / 426.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002064/8.455, allocations: 1.008 MB / 3.513 GB, free: 67.12 MB / 426.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002897/8.456, allocations: 0.852 MB / 3.514 GB, free: 66.43 MB / 426.7 MB Notification: Performance of simCode: alias equations: time 0.003528/8.459, allocations: 2.738 MB / 3.517 GB, free: 66.37 MB / 426.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004944/8.46, allocations: 98.59 kB / 3.517 GB, free: 66.36 MB / 426.7 MB Notification: Performance of SimCode: time 2.261e-06/8.46, allocations: 0 / 3.517 GB, free: 66.36 MB / 426.7 MB Notification: Performance of Templates: time 0.05558/8.515, allocations: 31.57 MB / 3.548 GB, free: 65.72 MB / 426.7 MB