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.2_Modelica.Media.Examples.TwoPhaseWater.TestTwoPhaseStates") Notification: Performance of loadModel(Modelica): time 1.775/1.775, allocations: 194.9 MB / 208 MB, free: 3.164 MB / 170.7 MB Notification: Performance of FrontEnd - loaded program: time 2.786e-05/2.808e-05, allocations: 0 / 255.4 MB, free: 2.707 MB / 202.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.07854/0.07859, allocations: 44.5 MB / 299.9 MB, free: 6.137 MB / 250.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 6.902/6.981, allocations: 2.844 GB / 3.137 GB, free: 54.64 MB / 410.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.02883/7.009, allocations: 10.88 MB / 3.148 GB, free: 46.26 MB / 410.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.6025/7.612, allocations: 112.8 MB / 3.258 GB, free: 87.57 MB / 410.7 MB Notification: Performance of FrontEnd: time 2.184e-06/7.612, allocations: 0 / 3.258 GB, free: 87.57 MB / 410.7 MB Notification: Performance of Transformations before backend: time 1.367e-05/7.612, allocations: 3.469 kB / 3.258 GB, free: 87.57 MB / 410.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.004398/7.616, allocations: 1.126 MB / 3.259 GB, free: 86.84 MB / 410.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.991e-05/7.616, allocations: 7.938 kB / 3.259 GB, free: 86.84 MB / 410.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001819/7.618, allocations: 191.1 kB / 3.259 GB, free: 86.82 MB / 410.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003118/7.619, allocations: 257.3 kB / 3.26 GB, free: 86.62 MB / 410.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.866e-05/7.619, allocations: 15.22 kB / 3.26 GB, free: 86.62 MB / 410.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.248e-05/7.619, allocations: 22.5 kB / 3.26 GB, free: 86.62 MB / 410.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003881/7.623, allocations: 0.907 MB / 3.261 GB, free: 86.54 MB / 410.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.964e-05/7.623, allocations: 3.312 kB / 3.261 GB, free: 86.54 MB / 410.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.107e-05/7.623, allocations: 3.5 kB / 3.261 GB, free: 86.54 MB / 410.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.073e-05/7.623, allocations: 10.3 kB / 3.261 GB, free: 86.54 MB / 410.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003522/7.626, allocations: 0.953 MB / 3.262 GB, free: 86.53 MB / 410.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.001778/7.628, allocations: 1.347 MB / 3.263 GB, free: 85.57 MB / 410.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.003302/7.631, allocations: 0.7263 MB / 3.264 GB, free: 85.52 MB / 410.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002934/7.632, allocations: 142 kB / 3.264 GB, free: 85.46 MB / 410.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.07779/7.71, allocations: 37.35 MB / 3.3 GB, free: 51.61 MB / 410.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.676e-05/7.71, allocations: 34.84 kB / 3.3 GB, free: 51.57 MB / 410.7 MB Notification: Performance of pre-optimization done (n=33): time 3.521e-06/7.71, allocations: 0 / 3.3 GB, free: 51.57 MB / 410.7 MB Notification: Performance of matching and sorting (n=33): time 0.005314/7.715, allocations: 1.248 MB / 3.301 GB, free: 50.6 MB / 410.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.901e-05/7.715, allocations: 55.41 kB / 3.301 GB, free: 50.54 MB / 410.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001016/7.715, allocations: 104.5 kB / 3.302 GB, free: 50.43 MB / 410.7 MB Notification: Performance of collectPreVariables (initialization): time 8.172e-05/7.715, allocations: 33.7 kB / 3.302 GB, free: 50.39 MB / 410.7 MB Notification: Performance of collectInitialEqns (initialization): time 4.882e-05/7.715, allocations: 120.5 kB / 3.302 GB, free: 50.27 MB / 410.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001355/7.715, allocations: 112.2 kB / 3.302 GB, free: 50.17 MB / 410.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.557e-05/7.716, allocations: 12 kB / 3.302 GB, free: 50.16 MB / 410.7 MB Notification: Performance of setup shared object (initialization): time 6.974e-05/7.716, allocations: 325.4 kB / 3.302 GB, free: 49.84 MB / 410.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006318/7.716, allocations: 317.7 kB / 3.302 GB, free: 49.55 MB / 410.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006555/7.717, allocations: 372.5 kB / 3.303 GB, free: 49.18 MB / 410.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000649/7.718, allocations: 320.8 kB / 3.303 GB, free: 48.9 MB / 410.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.949e-06/7.718, allocations: 0 / 3.303 GB, free: 48.9 MB / 410.7 MB Notification: Performance of matching and sorting (n=41) (initialization): time 0.001911/7.72, allocations: 0.8093 MB / 3.304 GB, free: 48.18 MB / 410.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.944e-05/7.72, allocations: 6.031 kB / 3.304 GB, free: 48.18 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.629e-06/7.72, allocations: 4 kB / 3.304 GB, free: 48.18 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.545e-05/7.72, allocations: 7.953 kB / 3.304 GB, free: 48.17 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008517/7.721, allocations: 187.1 kB / 3.304 GB, free: 48.04 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.188e-05/7.721, allocations: 4 kB / 3.304 GB, free: 48.03 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004923/7.721, allocations: 50.78 kB / 3.304 GB, free: 47.99 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001367/7.721, allocations: 65.11 kB / 3.304 GB, free: 47.94 MB / 410.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.0002024/7.721, allocations: 116.9 kB / 3.304 GB, free: 47.82 MB / 410.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001306/7.722, allocations: 15.81 kB / 3.304 GB, free: 47.8 MB / 410.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.006578/7.728, allocations: 6.51 MB / 3.311 GB, free: 42.01 MB / 410.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.241e-05/7.728, allocations: 31.3 kB / 3.311 GB, free: 41.99 MB / 410.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.842e-06/7.728, allocations: 3.953 kB / 3.311 GB, free: 41.98 MB / 410.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.964e-06/7.728, allocations: 0 / 3.311 GB, free: 41.98 MB / 410.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002529/7.731, allocations: 2.892 MB / 3.314 GB, free: 39.18 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.174e-06/7.731, allocations: 0 / 3.314 GB, free: 39.18 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008267/7.732, allocations: 128.9 kB / 3.314 GB, free: 39.1 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.043e-05/7.732, allocations: 3.984 kB / 3.314 GB, free: 39.09 MB / 410.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.519e-05/7.732, allocations: 19.56 kB / 3.314 GB, free: 39.08 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 7.532e-06/7.732, allocations: 11.89 kB / 3.314 GB, free: 39.07 MB / 410.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.089e-06/7.732, allocations: 3.938 kB / 3.314 GB, free: 39.06 MB / 410.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002529/7.734, allocations: 1.744 MB / 3.315 GB, free: 37.42 MB / 410.7 MB Notification: Performance of postOpt removeConstants (simulation): time 8.433e-05/7.735, allocations: 136.3 kB / 3.316 GB, free: 37.27 MB / 410.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.696e-05/7.735, allocations: 11.84 kB / 3.316 GB, free: 37.26 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004555/7.735, allocations: 22.86 kB / 3.316 GB, free: 37.24 MB / 410.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001103/7.735, allocations: 48.38 kB / 3.316 GB, free: 37.21 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.486e-05/7.735, allocations: 22.94 kB / 3.316 GB, free: 37.19 MB / 410.7 MB Notification: Performance of sorting global known variables: time 5.756e-05/7.735, allocations: 87.28 kB / 3.316 GB, free: 37.11 MB / 410.7 MB Notification: Performance of sort global known variables: time 7.23e-07/7.735, allocations: 0 / 3.316 GB, free: 37.11 MB / 410.7 MB Notification: Performance of remove unused functions: time 0.003925/7.739, allocations: 1 MB / 3.317 GB, free: 36.13 MB / 410.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.007069/7.746, allocations: 1.263 MB / 3.318 GB, free: 34.97 MB / 410.7 MB Notification: Performance of simCode: created initialization part: time 0.001611/7.748, allocations: 0.8413 MB / 3.319 GB, free: 34.19 MB / 410.7 MB Notification: Performance of simCode: created event and clocks part: time 4.841e-06/7.748, allocations: 0.5 kB / 3.319 GB, free: 34.19 MB / 410.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0007751/7.749, allocations: 0.5653 MB / 3.319 GB, free: 33.65 MB / 410.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006716/7.75, allocations: 77.72 kB / 3.319 GB, free: 33.6 MB / 410.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001859/7.751, allocations: 1.006 MB / 3.32 GB, free: 32.66 MB / 410.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002826/7.752, allocations: 0.8539 MB / 3.321 GB, free: 31.84 MB / 410.7 MB Notification: Performance of simCode: alias equations: time 0.003009/7.755, allocations: 2.74 MB / 3.324 GB, free: 30.21 MB / 410.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004477/7.755, allocations: 101.2 kB / 3.324 GB, free: 30.14 MB / 410.7 MB Notification: Performance of SimCode: time 1.587e-06/7.755, allocations: 0 / 3.324 GB, free: 30.14 MB / 410.7 MB Notification: Performance of Templates: time 0.05757/7.813, allocations: 31.57 MB / 3.355 GB, free: 0.6445 MB / 410.7 MB