Running command: translateModel(Modelica.Media.Examples.TwoPhaseWater.TestTwoPhaseStates,tolerance=1e-06,outputFormat="mat",numberOfIntervals=4400,variableFilter="time|medium.h|medium.p",fileNamePrefix="Modelica_4.0.0_Modelica.Media.Examples.TwoPhaseWater.TestTwoPhaseStates") Notification: Performance of loadModel(Modelica): time 1.888/1.888, allocations: 225.8 MB / 238.8 MB, free: 11.15 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 2.784e-05/2.795e-05, allocations: 4 kB / 292.1 MB, free: 8.316 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09348/0.09353, allocations: 50.42 MB / 342.6 MB, free: 5.883 MB / 282.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 7.695/7.789, allocations: 3.026 GB / 3.361 GB, free: 16.89 MB / 442.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.02853/7.817, allocations: 11.16 MB / 3.372 GB, free: 5.613 MB / 442.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.6529/8.47, allocations: 113.9 MB / 3.483 GB, free: 67.44 MB / 442.7 MB Notification: Performance of FrontEnd: time 2.634e-06/8.47, allocations: 0 / 3.483 GB, free: 67.44 MB / 442.7 MB Notification: Performance of Transformations before backend: time 1.313e-05/8.47, allocations: 0 / 3.483 GB, free: 67.44 MB / 442.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.004403/8.475, allocations: 1.133 MB / 3.484 GB, free: 66.26 MB / 442.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.047e-05/8.475, allocations: 18.22 kB / 3.484 GB, free: 66.24 MB / 442.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001769/8.476, allocations: 179.5 kB / 3.484 GB, free: 66.07 MB / 442.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002912/8.477, allocations: 266.7 kB / 3.484 GB, free: 65.77 MB / 442.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.257e-05/8.477, allocations: 16.44 kB / 3.484 GB, free: 65.75 MB / 442.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.469e-05/8.477, allocations: 27.95 kB / 3.484 GB, free: 65.72 MB / 442.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003382/8.48, allocations: 0.9005 MB / 3.485 GB, free: 64.8 MB / 442.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.984e-05/8.48, allocations: 4 kB / 3.485 GB, free: 64.8 MB / 442.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.153e-05/8.48, allocations: 4 kB / 3.485 GB, free: 64.8 MB / 442.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.044e-05/8.48, allocations: 11.94 kB / 3.485 GB, free: 64.79 MB / 442.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003475/8.484, allocations: 0.9455 MB / 3.486 GB, free: 63.84 MB / 442.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.001692/8.486, allocations: 1.351 MB / 3.488 GB, free: 62.35 MB / 442.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002782/8.488, allocations: 0.7251 MB / 3.488 GB, free: 61.61 MB / 442.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002637/8.489, allocations: 146.2 kB / 3.488 GB, free: 61.47 MB / 442.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.07577/8.565, allocations: 37.37 MB / 3.525 GB, free: 19.66 MB / 442.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.3e-05/8.565, allocations: 34.84 kB / 3.525 GB, free: 19.62 MB / 442.7 MB Notification: Performance of pre-optimization done (n=33): time 2.99e-06/8.565, allocations: 0 / 3.525 GB, free: 19.62 MB / 442.7 MB Notification: Performance of matching and sorting (n=33): time 0.00548/8.57, allocations: 1.245 MB / 3.526 GB, free: 18.37 MB / 442.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.06e-05/8.57, allocations: 55.41 kB / 3.526 GB, free: 18.3 MB / 442.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001003/8.57, allocations: 109.1 kB / 3.526 GB, free: 18.19 MB / 442.7 MB Notification: Performance of collectPreVariables (initialization): time 8.878e-05/8.57, allocations: 33.7 kB / 3.526 GB, free: 18.15 MB / 442.7 MB Notification: Performance of collectInitialEqns (initialization): time 4.869e-05/8.57, allocations: 120.4 kB / 3.527 GB, free: 18.03 MB / 442.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001381/8.571, allocations: 106.3 kB / 3.527 GB, free: 17.92 MB / 442.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.389e-05/8.571, allocations: 8 kB / 3.527 GB, free: 17.91 MB / 442.7 MB Notification: Performance of setup shared object (initialization): time 5.786e-05/8.571, allocations: 322.8 kB / 3.527 GB, free: 17.59 MB / 442.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006413/8.571, allocations: 323.9 kB / 3.527 GB, free: 17.27 MB / 442.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000674/8.572, allocations: 371.7 kB / 3.528 GB, free: 16.88 MB / 442.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006438/8.573, allocations: 311.8 kB / 3.528 GB, free: 16.58 MB / 442.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.963e-06/8.573, allocations: 7.953 kB / 3.528 GB, free: 16.57 MB / 442.7 MB Notification: Performance of matching and sorting (n=41) (initialization): time 0.00196/8.575, allocations: 0.8176 MB / 3.529 GB, free: 15.75 MB / 442.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.28e-05/8.575, allocations: 4.25 kB / 3.529 GB, free: 15.74 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.627e-06/8.575, allocations: 8 kB / 3.529 GB, free: 15.73 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.485e-05/8.575, allocations: 4 kB / 3.529 GB, free: 15.73 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008767/8.576, allocations: 179.7 kB / 3.529 GB, free: 15.55 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.275e-05/8.576, allocations: 4 kB / 3.529 GB, free: 15.55 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004997/8.576, allocations: 39.72 kB / 3.529 GB, free: 15.51 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001393/8.576, allocations: 67.94 kB / 3.529 GB, free: 15.45 MB / 442.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.0002028/8.577, allocations: 124.8 kB / 3.529 GB, free: 15.32 MB / 442.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001337/8.577, allocations: 19.77 kB / 3.529 GB, free: 15.3 MB / 442.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.006664/8.583, allocations: 6.503 MB / 3.535 GB, free: 8.785 MB / 442.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.202e-05/8.584, allocations: 27.95 kB / 3.536 GB, free: 8.758 MB / 442.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.441e-06/8.584, allocations: 0 / 3.536 GB, free: 8.758 MB / 442.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.676e-06/8.584, allocations: 0 / 3.536 GB, free: 8.758 MB / 442.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00272/8.586, allocations: 2.91 MB / 3.538 GB, free: 5.641 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.397e-06/8.586, allocations: 0 / 3.538 GB, free: 5.641 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0009849/8.587, allocations: 127.8 kB / 3.538 GB, free: 5.516 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.133e-05/8.587, allocations: 4 kB / 3.538 GB, free: 5.512 MB / 442.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.992e-05/8.587, allocations: 23.97 kB / 3.539 GB, free: 5.488 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.631e-06/8.587, allocations: 0 / 3.539 GB, free: 5.488 MB / 442.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.644e-06/8.587, allocations: 4 kB / 3.539 GB, free: 5.484 MB / 442.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00264/8.59, allocations: 1.743 MB / 3.54 GB, free: 3.723 MB / 442.7 MB Notification: Performance of postOpt removeConstants (simulation): time 8.789e-05/8.59, allocations: 140.3 kB / 3.54 GB, free: 3.566 MB / 442.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.836e-05/8.59, allocations: 12 kB / 3.54 GB, free: 3.555 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004632/8.591, allocations: 23.98 kB / 3.54 GB, free: 3.531 MB / 442.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001124/8.591, allocations: 39.94 kB / 3.54 GB, free: 3.492 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.752e-05/8.591, allocations: 27.91 kB / 3.54 GB, free: 3.465 MB / 442.7 MB Notification: Performance of sorting global known variables: time 5.95e-05/8.591, allocations: 91.28 kB / 3.541 GB, free: 3.375 MB / 442.7 MB Notification: Performance of sort global known variables: time 7.71e-07/8.591, allocations: 0 / 3.541 GB, free: 3.375 MB / 442.7 MB Notification: Performance of remove unused functions: time 0.004091/8.595, allocations: 1.003 MB / 3.542 GB, free: 2.371 MB / 442.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.007394/8.603, allocations: 1.276 MB / 3.543 GB, free: 1.094 MB / 442.7 MB Notification: Performance of simCode: created initialization part: time 0.0016/8.604, allocations: 0.8446 MB / 3.544 GB, free: 256 kB / 442.7 MB Notification: Performance of simCode: created event and clocks part: time 4.347e-06/8.604, allocations: 0 / 3.544 GB, free: 256 kB / 442.7 MB Notification: Performance of simCode: created simulation system equations: time 0.2494/8.854, allocations: 0.5544 MB / 3.544 GB, free: 84.61 MB / 442.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007206/8.854, allocations: 75.38 kB / 3.544 GB, free: 84.61 MB / 442.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002268/8.857, allocations: 1.001 MB / 3.545 GB, free: 84.46 MB / 442.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003937/8.857, allocations: 0.8576 MB / 3.546 GB, free: 83.76 MB / 442.7 MB Notification: Performance of simCode: alias equations: time 0.004063/8.861, allocations: 2.741 MB / 3.549 GB, free: 83.7 MB / 442.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004792/8.862, allocations: 99.08 kB / 3.549 GB, free: 83.7 MB / 442.7 MB Notification: Performance of SimCode: time 1.658e-06/8.862, allocations: 1.219 kB / 3.549 GB, free: 83.7 MB / 442.7 MB Notification: Performance of Templates: time 0.05385/8.916, allocations: 31.64 MB / 3.58 GB, free: 83.26 MB / 442.7 MB