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.1_cpp_Modelica.Media.Examples.WaterIF97") Notification: Performance of loadModel(Modelica): time 1.644/1.644, allocations: 171.2 MB / 183.8 MB, free: 12.02 MB / 154.7 MB Notification: Performance of FrontEnd - loaded program: time 3.012e-05/3.031e-05, allocations: 7.438 kB / 225 MB, free: 2.801 MB / 186.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2099/0.2099, allocations: 38.77 MB / 263.7 MB, free: 9.758 MB / 218.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 5.548/5.758, allocations: 2.504 GB / 2.762 GB, free: 30.09 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001934/5.758, allocations: 69.09 kB / 2.762 GB, free: 30.03 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.5452/6.303, allocations: 105.6 MB / 2.865 GB, free: 68.94 MB / 362.7 MB Notification: Performance of FrontEnd: time 2.127e-06/6.303, allocations: 0 / 2.865 GB, free: 68.94 MB / 362.7 MB Notification: Performance of Transformations before backend: time 1.219e-05/6.303, allocations: 0 / 2.865 GB, free: 68.94 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: 34 * Number of variables: 34 Notification: Performance of Generate backend data structure: time 0.005698/6.309, allocations: 1.139 MB / 2.866 GB, free: 67.9 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.32e-05/6.309, allocations: 12.03 kB / 2.866 GB, free: 67.89 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0005856/6.31, allocations: 51.02 kB / 2.866 GB, free: 67.85 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002408/6.31, allocations: 210.5 kB / 2.866 GB, free: 67.62 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.367e-05/6.31, allocations: 27.97 kB / 2.866 GB, free: 67.6 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.89e-05/6.31, allocations: 16 kB / 2.866 GB, free: 67.58 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001152/6.311, allocations: 371.1 kB / 2.867 GB, free: 67.28 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.969e-05/6.311, allocations: 3.938 kB / 2.867 GB, free: 67.27 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.508e-05/6.311, allocations: 8 kB / 2.867 GB, free: 67.27 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.381e-06/6.311, allocations: 4 kB / 2.867 GB, free: 67.26 MB / 362.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001113/6.312, allocations: 297.7 kB / 2.867 GB, free: 67.02 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.001352/6.314, allocations: 1.192 MB / 2.868 GB, free: 65.8 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0007606/6.314, allocations: 262.5 kB / 2.869 GB, free: 65.56 MB / 362.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001746/6.315, allocations: 90.91 kB / 2.869 GB, free: 65.46 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.09375/6.408, allocations: 47.27 MB / 2.915 GB, free: 17.25 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.956e-05/6.409, allocations: 38.69 kB / 2.915 GB, free: 17.21 MB / 362.7 MB Notification: Performance of pre-optimization done (n=23): time 2.922e-06/6.409, allocations: 0 / 2.915 GB, free: 17.21 MB / 362.7 MB Notification: Performance of matching and sorting (n=33): time 0.006636/6.415, allocations: 1.424 MB / 2.916 GB, free: 15.73 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.4e-05/6.415, allocations: 114.8 kB / 2.916 GB, free: 15.59 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.739e-05/6.415, allocations: 124.7 kB / 2.916 GB, free: 15.46 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 3.961e-05/6.415, allocations: 33.7 kB / 2.917 GB, free: 15.43 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 4.966e-05/6.415, allocations: 179.1 kB / 2.917 GB, free: 15.25 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 9.21e-05/6.416, allocations: 114.3 kB / 2.917 GB, free: 15.14 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.804e-05/6.416, allocations: 4 kB / 2.917 GB, free: 15.13 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 6.153e-05/6.416, allocations: 322.8 kB / 2.917 GB, free: 14.81 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002473/6.416, allocations: 108 kB / 2.917 GB, free: 14.7 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002717/6.416, allocations: 174.7 kB / 2.917 GB, free: 14.51 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002657/6.417, allocations: 124.7 kB / 2.917 GB, free: 14.39 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.983e-06/6.417, allocations: 0 / 2.917 GB, free: 14.39 MB / 362.7 MB Notification: Performance of matching and sorting (n=41) (initialization): time 0.0008655/6.417, allocations: 362 kB / 2.918 GB, free: 14.02 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.811e-05/6.417, allocations: 8 kB / 2.918 GB, free: 14.02 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.653e-06/6.417, allocations: 2.938 kB / 2.918 GB, free: 14.02 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002798/6.418, allocations: 41.05 kB / 2.918 GB, free: 13.97 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005752/6.418, allocations: 87.88 kB / 2.918 GB, free: 13.89 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0003306/6.419, allocations: 0.5561 MB / 2.919 GB, free: 13.3 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000363/6.419, allocations: 28.06 kB / 2.919 GB, free: 13.28 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.942e-05/6.419, allocations: 16 kB / 2.919 GB, free: 13.26 MB / 362.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.0001273/6.419, allocations: 120.9 kB / 2.919 GB, free: 13.14 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001254/6.419, allocations: 19.77 kB / 2.919 GB, free: 13.12 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002053/6.422, allocations: 1.429 MB / 2.92 GB, free: 11.67 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.9e-05/6.422, allocations: 23.97 kB / 2.92 GB, free: 11.65 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.028e-06/6.422, allocations: 0 / 2.92 GB, free: 11.65 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.061e-05/6.422, allocations: 3.984 kB / 2.92 GB, free: 11.64 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003138/6.425, allocations: 1.963 MB / 2.922 GB, free: 9.609 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.351e-05/6.425, allocations: 2.688 kB / 2.922 GB, free: 9.609 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.00093/6.426, allocations: 79.88 kB / 2.922 GB, free: 9.531 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.000622/6.426, allocations: 76.83 kB / 2.922 GB, free: 9.453 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.183e-05/6.427, allocations: 16.36 kB / 2.922 GB, free: 9.438 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0005451/6.427, allocations: 0.5836 MB / 2.923 GB, free: 8.828 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.085e-06/6.427, allocations: 3.938 kB / 2.923 GB, free: 8.824 MB / 362.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003267/6.43, allocations: 1.68 MB / 2.924 GB, free: 7.078 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001325/6.431, allocations: 132.3 kB / 2.925 GB, free: 6.93 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.188e-05/6.431, allocations: 15.95 kB / 2.925 GB, free: 6.914 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0008352/6.432, allocations: 24.02 kB / 2.925 GB, free: 6.891 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000109/6.432, allocations: 31.91 kB / 2.925 GB, free: 6.859 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.663e-05/6.432, allocations: 19.98 kB / 2.925 GB, free: 6.84 MB / 362.7 MB Notification: Performance of sorting global known variables: time 8.745e-05/6.432, allocations: 91.27 kB / 2.925 GB, free: 6.75 MB / 362.7 MB Notification: Performance of sort global known variables: time 1.105e-06/6.432, allocations: 0 / 2.925 GB, free: 6.75 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.005689/6.438, allocations: 0.9601 MB / 2.926 GB, free: 5.789 MB / 362.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.01062/6.448, allocations: 1.236 MB / 2.927 GB, free: 4.543 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.001996/6.45, allocations: 0.5505 MB / 2.927 GB, free: 3.988 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 8.876e-06/6.45, allocations: 0 / 2.927 GB, free: 3.988 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 0.00124/6.452, allocations: 484.8 kB / 2.928 GB, free: 3.516 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001375/6.453, allocations: 72.69 kB / 2.928 GB, free: 3.445 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003707/6.457, allocations: 1.084 MB / 2.929 GB, free: 2.328 MB / 362.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004167/6.457, allocations: 0.8295 MB / 2.93 GB, free: 1.473 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003116/6.458, allocations: 39.42 kB / 2.93 GB, free: 1.434 MB / 362.7 MB Notification: Performance of SimCode: time 2.556e-06/6.458, allocations: 0 / 2.93 GB, free: 1.434 MB / 362.7 MB Notification: Performance of Templates: time 0.24/6.698, allocations: 23.48 MB / 2.953 GB, free: 73.07 MB / 362.7 MB