Running command: translateModel(Modelica.Media.Examples.WaterIF97,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|V|medium.h|medium.p",fileNamePrefix="Modelica_3.2.2_Modelica.Media.Examples.WaterIF97") Notification: Performance of loadModel(Modelica): time 1.835/1.835, allocations: 194.9 MB / 208 MB, free: 3.152 MB / 170.7 MB Notification: Performance of FrontEnd - loaded program: time 2.793e-05/2.808e-05, allocations: 4 kB / 255.4 MB, free: 2.684 MB / 202.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.07722/0.07727, allocations: 44.49 MB / 299.9 MB, free: 6.133 MB / 250.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 6.057/6.135, allocations: 2.614 GB / 2.907 GB, free: 55.11 MB / 410.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001908/6.135, allocations: 67.91 kB / 2.907 GB, free: 55.05 MB / 410.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.5663/6.701, allocations: 107.1 MB / 3.012 GB, free: 90.54 MB / 410.7 MB Notification: Performance of FrontEnd: time 2.184e-06/6.701, allocations: 0 / 3.012 GB, free: 90.54 MB / 410.7 MB Notification: Performance of Transformations before backend: time 1.401e-05/6.701, allocations: 1.531 kB / 3.012 GB, free: 90.54 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: 34 * Number of variables: 34 Notification: Performance of Generate backend data structure: time 0.00586/6.707, allocations: 1.145 MB / 3.013 GB, free: 89.9 MB / 410.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.376e-05/6.707, allocations: 11.06 kB / 3.013 GB, free: 89.9 MB / 410.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000603/6.708, allocations: 59.5 kB / 3.013 GB, free: 89.89 MB / 410.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002506/6.708, allocations: 217 kB / 3.013 GB, free: 89.69 MB / 410.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.437e-05/6.708, allocations: 15.22 kB / 3.013 GB, free: 89.69 MB / 410.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.202e-05/6.708, allocations: 14.97 kB / 3.013 GB, free: 89.69 MB / 410.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001356/6.71, allocations: 371.5 kB / 3.014 GB, free: 89.57 MB / 410.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.369e-05/6.71, allocations: 3.625 kB / 3.014 GB, free: 89.57 MB / 410.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.598e-05/6.71, allocations: 7 kB / 3.014 GB, free: 89.57 MB / 410.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.363e-06/6.71, allocations: 3.656 kB / 3.014 GB, free: 89.57 MB / 410.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001147/6.711, allocations: 308.6 kB / 3.014 GB, free: 89.57 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.001404/6.712, allocations: 1.197 MB / 3.015 GB, free: 88.55 MB / 410.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0008929/6.713, allocations: 262.9 kB / 3.015 GB, free: 88.47 MB / 410.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001852/6.713, allocations: 92.95 kB / 3.015 GB, free: 88.45 MB / 410.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.1018/6.815, allocations: 47.35 MB / 3.062 GB, free: 51.63 MB / 410.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.047e-05/6.815, allocations: 34.75 kB / 3.062 GB, free: 51.59 MB / 410.7 MB Notification: Performance of pre-optimization done (n=23): time 3.177e-06/6.815, allocations: 0 / 3.062 GB, free: 51.59 MB / 410.7 MB Notification: Performance of matching and sorting (n=33): time 0.006559/6.822, allocations: 1.429 MB / 3.063 GB, free: 50.36 MB / 410.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.332e-05/6.822, allocations: 106.8 kB / 3.063 GB, free: 50.23 MB / 410.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.149e-05/6.822, allocations: 111 kB / 3.063 GB, free: 50.12 MB / 410.7 MB Notification: Performance of collectPreVariables (initialization): time 3.785e-05/6.822, allocations: 33.7 kB / 3.063 GB, free: 50.08 MB / 410.7 MB Notification: Performance of collectInitialEqns (initialization): time 4.296e-05/6.822, allocations: 104.6 kB / 3.063 GB, free: 49.98 MB / 410.7 MB Notification: Performance of collectInitialBindings (initialization): time 8.753e-05/6.822, allocations: 110 kB / 3.063 GB, free: 49.88 MB / 410.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.89e-05/6.822, allocations: 12.06 kB / 3.063 GB, free: 49.87 MB / 410.7 MB Notification: Performance of setup shared object (initialization): time 5.806e-05/6.822, allocations: 326.6 kB / 3.064 GB, free: 49.55 MB / 410.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002451/6.823, allocations: 108 kB / 3.064 GB, free: 49.44 MB / 410.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000269/6.823, allocations: 170.5 kB / 3.064 GB, free: 49.26 MB / 410.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002712/6.823, allocations: 124.2 kB / 3.064 GB, free: 49.15 MB / 410.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.831e-06/6.823, allocations: 0 / 3.064 GB, free: 49.15 MB / 410.7 MB Notification: Performance of matching and sorting (n=41) (initialization): time 0.0008776/6.824, allocations: 366.7 kB / 3.065 GB, free: 48.81 MB / 410.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.964e-05/6.824, allocations: 10.41 kB / 3.065 GB, free: 48.8 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.23e-06/6.824, allocations: 3.938 kB / 3.065 GB, free: 48.8 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002844/6.825, allocations: 39.28 kB / 3.065 GB, free: 48.77 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005762/6.825, allocations: 95.3 kB / 3.065 GB, free: 48.69 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0003301/6.825, allocations: 0.5482 MB / 3.065 GB, free: 48.12 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003623/6.826, allocations: 23.52 kB / 3.065 GB, free: 48.11 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.049e-05/6.826, allocations: 19.61 kB / 3.065 GB, free: 48.09 MB / 410.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 8 * Number of states: 0 () * Number of discrete variables: 3 (medium.phase,state.phase,state2.phase) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (40): * Single equations (assignments): 39 * 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: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 1 {1 1} Notification: Performance of prepare postOptimizeDAE: time 0.0001242/6.826, allocations: 128.8 kB / 3.065 GB, free: 47.96 MB / 410.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001235/6.826, allocations: 24 kB / 3.065 GB, free: 47.93 MB / 410.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001998/6.828, allocations: 1.427 MB / 3.067 GB, free: 46.63 MB / 410.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.684e-05/6.828, allocations: 19.64 kB / 3.067 GB, free: 46.62 MB / 410.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.097e-06/6.828, allocations: 0 / 3.067 GB, free: 46.62 MB / 410.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.385e-06/6.828, allocations: 4 kB / 3.067 GB, free: 46.62 MB / 410.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002829/6.831, allocations: 1.95 MB / 3.069 GB, free: 44.82 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.063e-06/6.831, allocations: 4 kB / 3.069 GB, free: 44.82 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005492/6.832, allocations: 90.58 kB / 3.069 GB, free: 44.75 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003822/6.832, allocations: 71.91 kB / 3.069 GB, free: 44.69 MB / 410.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.559e-05/6.832, allocations: 15.75 kB / 3.069 GB, free: 44.68 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0003258/6.833, allocations: 0.5868 MB / 3.069 GB, free: 44.08 MB / 410.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.609e-06/6.833, allocations: 4.031 kB / 3.069 GB, free: 44.07 MB / 410.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001884/6.834, allocations: 1.675 MB / 3.071 GB, free: 42.44 MB / 410.7 MB Notification: Performance of postOpt removeConstants (simulation): time 8.676e-05/6.835, allocations: 128.4 kB / 3.071 GB, free: 42.3 MB / 410.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.062e-05/6.835, allocations: 15.38 kB / 3.071 GB, free: 42.29 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005482/6.835, allocations: 27.12 kB / 3.071 GB, free: 42.27 MB / 410.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.369e-05/6.835, allocations: 31.67 kB / 3.071 GB, free: 42.25 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.837e-05/6.835, allocations: 11.84 kB / 3.071 GB, free: 42.24 MB / 410.7 MB Notification: Performance of sorting global known variables: time 5.625e-05/6.835, allocations: 95.23 kB / 3.071 GB, free: 42.14 MB / 410.7 MB Notification: Performance of sort global known variables: time 7.65e-07/6.835, allocations: 4.219 kB / 3.071 GB, free: 42.14 MB / 410.7 MB Notification: Performance of remove unused functions: time 0.003923/6.839, allocations: 0.9663 MB / 3.072 GB, free: 41.2 MB / 410.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 7 * Number of states: 3 (medium.p,medium.h,V) * Number of discrete variables: 11 ($cse2.phase,$cse2.region,$cse3.phase,$cse3.region,$cse4.phase,$cse4.region,$cse5.region3boundary,$cse6.region3boundary,medium.phase,$cse1.phase,$cse1.region) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (38): * Single equations (assignments): 31 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 6 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 1 {1 1} Notification: Performance of Backend phase and start with SimCode phase: time 0.007251/6.847, allocations: 1.248 MB / 3.074 GB, free: 40.06 MB / 410.7 MB Notification: Performance of simCode: created initialization part: time 0.001199/6.848, allocations: 0.5408 MB / 3.074 GB, free: 39.55 MB / 410.7 MB Notification: Performance of simCode: created event and clocks part: time 4.842e-06/6.848, allocations: 0 / 3.074 GB, free: 39.55 MB / 410.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0006945/6.849, allocations: 495.6 kB / 3.075 GB, free: 39.1 MB / 410.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007551/6.849, allocations: 70.75 kB / 3.075 GB, free: 39.05 MB / 410.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002133/6.852, allocations: 1.052 MB / 3.076 GB, free: 38.06 MB / 410.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002795/6.852, allocations: 0.8226 MB / 3.076 GB, free: 37.26 MB / 410.7 MB Notification: Performance of simCode: alias equations: time 0.0005196/6.852, allocations: 138.9 kB / 3.077 GB, free: 37.18 MB / 410.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001644/6.853, allocations: 30.95 kB / 3.077 GB, free: 37.15 MB / 410.7 MB Notification: Performance of SimCode: time 1.649e-06/6.853, allocations: 0 / 3.077 GB, free: 37.15 MB / 410.7 MB Notification: Performance of Templates: time 0.04322/6.896, allocations: 27.4 MB / 3.103 GB, free: 16.83 MB / 410.7 MB