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.1_Modelica.Media.Examples.TwoPhaseWater.TestTwoPhaseStates") Notification: Performance of loadModel(Modelica): time 1.592/1.592, allocations: 171.2 MB / 183.3 MB, free: 12.07 MB / 154.7 MB Notification: Performance of FrontEnd - loaded program: time 3.501e-05/3.509e-05, allocations: 8 kB / 225 MB, free: 2.336 MB / 186.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2106/0.2106, allocations: 38.76 MB / 263.8 MB, free: 9.836 MB / 218.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 6.777/6.988, allocations: 2.735 GB / 2.992 GB, free: 7.852 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.2184/7.206, allocations: 10.68 MB / 3.003 GB, free: 102.4 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.3629/7.569, allocations: 110.9 MB / 3.111 GB, free: 40.25 MB / 362.7 MB Notification: Performance of FrontEnd: time 1.839e-06/7.569, allocations: 0 / 3.111 GB, free: 40.25 MB / 362.7 MB Notification: Performance of Transformations before backend: time 1.425e-05/7.569, allocations: 4 kB / 3.111 GB, free: 40.24 MB / 362.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.004357/7.574, allocations: 1.122 MB / 3.112 GB, free: 39.07 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.147e-05/7.574, allocations: 8.031 kB / 3.112 GB, free: 39.07 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001895/7.576, allocations: 187.6 kB / 3.112 GB, free: 38.88 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003191/7.576, allocations: 258.7 kB / 3.113 GB, free: 38.59 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.961e-05/7.576, allocations: 16.44 kB / 3.113 GB, free: 38.57 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.4e-05/7.576, allocations: 23.91 kB / 3.113 GB, free: 38.55 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003464/7.58, allocations: 0.9121 MB / 3.114 GB, free: 37.62 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.519e-05/7.58, allocations: 0 / 3.114 GB, free: 37.62 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.821e-05/7.58, allocations: 4 kB / 3.114 GB, free: 37.61 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.071e-05/7.58, allocations: 8 kB / 3.114 GB, free: 37.61 MB / 362.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003525/7.583, allocations: 0.9572 MB / 3.115 GB, free: 36.65 MB / 362.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.001739/7.585, allocations: 1.354 MB / 3.116 GB, free: 35.15 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002784/7.588, allocations: 0.7174 MB / 3.117 GB, free: 34.43 MB / 362.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002619/7.588, allocations: 141.3 kB / 3.117 GB, free: 34.29 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.2838/7.872, allocations: 36.72 MB / 3.153 GB, free: 62.52 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.687e-05/7.872, allocations: 34.91 kB / 3.153 GB, free: 62.48 MB / 362.7 MB Notification: Performance of pre-optimization done (n=33): time 3.317e-06/7.872, allocations: 0 / 3.153 GB, free: 62.48 MB / 362.7 MB Notification: Performance of matching and sorting (n=33): time 0.005589/7.878, allocations: 1.228 MB / 3.154 GB, free: 62.45 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.205e-05/7.878, allocations: 54.41 kB / 3.154 GB, free: 62.38 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001135/7.878, allocations: 112.5 kB / 3.154 GB, free: 62.29 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 0.000101/7.878, allocations: 35.05 kB / 3.154 GB, free: 62.26 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 6.876e-05/7.878, allocations: 124.5 kB / 3.154 GB, free: 62.18 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001529/7.878, allocations: 114.1 kB / 3.154 GB, free: 62.12 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.47e-05/7.878, allocations: 6.312 kB / 3.154 GB, free: 62.12 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 6.44e-05/7.879, allocations: 330.5 kB / 3.155 GB, free: 61.8 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006574/7.879, allocations: 308.4 kB / 3.155 GB, free: 61.8 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0007028/7.88, allocations: 390.7 kB / 3.155 GB, free: 61.73 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006757/7.881, allocations: 306.1 kB / 3.156 GB, free: 61.73 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.313e-06/7.881, allocations: 0 / 3.156 GB, free: 61.73 MB / 362.7 MB Notification: Performance of matching and sorting (n=41) (initialization): time 0.001987/7.883, allocations: 0.8274 MB / 3.156 GB, free: 61.68 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.292e-05/7.883, allocations: 3.656 kB / 3.156 GB, free: 61.68 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.608e-06/7.883, allocations: 3.812 kB / 3.156 GB, free: 61.68 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.08e-05/7.883, allocations: 3.281 kB / 3.156 GB, free: 61.68 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008828/7.884, allocations: 174.2 kB / 3.156 GB, free: 61.68 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.487e-05/7.884, allocations: 13.95 kB / 3.156 GB, free: 61.68 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000513/7.884, allocations: 37.09 kB / 3.157 GB, free: 61.68 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001418/7.884, allocations: 64.59 kB / 3.157 GB, free: 61.67 MB / 362.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.0002119/7.885, allocations: 127.9 kB / 3.157 GB, free: 61.57 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001341/7.885, allocations: 18.23 kB / 3.157 GB, free: 61.56 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.006607/7.891, allocations: 6.285 MB / 3.163 GB, free: 61.42 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.958e-05/7.891, allocations: 21.48 kB / 3.163 GB, free: 61.42 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.568e-06/7.891, allocations: 3.344 kB / 3.163 GB, free: 61.42 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.125e-05/7.891, allocations: 3.844 kB / 3.163 GB, free: 61.42 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002696/7.894, allocations: 2.815 MB / 3.166 GB, free: 60.6 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.842e-06/7.894, allocations: 0 / 3.166 GB, free: 60.6 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008374/7.895, allocations: 122.2 kB / 3.166 GB, free: 60.6 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 8.015e-06/7.895, allocations: 0 / 3.166 GB, free: 60.6 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.508e-05/7.895, allocations: 26.11 kB / 3.166 GB, free: 60.6 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 7.642e-06/7.895, allocations: 9.844 kB / 3.166 GB, free: 60.6 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.431e-06/7.895, allocations: 2.812 kB / 3.166 GB, free: 60.6 MB / 362.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002354/7.898, allocations: 1.493 MB / 3.167 GB, free: 59.93 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 8.934e-05/7.898, allocations: 123.1 kB / 3.167 GB, free: 59.82 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.728e-05/7.898, allocations: 10.31 kB / 3.167 GB, free: 59.81 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004827/7.898, allocations: 27.22 kB / 3.167 GB, free: 59.81 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001157/7.898, allocations: 38.19 kB / 3.167 GB, free: 59.8 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.553e-05/7.898, allocations: 27.67 kB / 3.167 GB, free: 59.8 MB / 362.7 MB Notification: Performance of sorting global known variables: time 5.986e-05/7.899, allocations: 86.84 kB / 3.168 GB, free: 59.72 MB / 362.7 MB Notification: Performance of sort global known variables: time 7.66e-07/7.899, allocations: 2.531 kB / 3.168 GB, free: 59.72 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.003957/7.903, allocations: 0.9988 MB / 3.169 GB, free: 59.68 MB / 362.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: 9 ($cse1.phase,$cse1.region,$cse3.phase,$cse3.region,$cse4.phase,$cse4.region,$cse6.region3boundary,$cse7.region3boundary,medium.phase) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (40): * Single equations (assignments): 35 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 5 * 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.007352/7.91, allocations: 1.257 MB / 3.17 GB, free: 59.56 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.001618/7.912, allocations: 0.7835 MB / 3.171 GB, free: 59.25 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 6.283e-06/7.912, allocations: 0 / 3.171 GB, free: 59.25 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0007627/7.912, allocations: 480.9 kB / 3.171 GB, free: 59.04 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006922/7.913, allocations: 83.88 kB / 3.171 GB, free: 59.02 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00182/7.915, allocations: 0.8702 MB / 3.172 GB, free: 58.67 MB / 362.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000256/7.915, allocations: 0.8146 MB / 3.173 GB, free: 57.97 MB / 362.7 MB Notification: Performance of simCode: alias equations: time 0.003167/7.918, allocations: 2.741 MB / 3.175 GB, free: 57.91 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004494/7.919, allocations: 93.38 kB / 3.175 GB, free: 57.89 MB / 362.7 MB Notification: Performance of SimCode: time 1.856e-06/7.919, allocations: 0 / 3.175 GB, free: 57.89 MB / 362.7 MB Notification: Performance of Templates: time 0.04926/7.968, allocations: 31.3 MB / 3.206 GB, free: 57.14 MB / 362.7 MB