Running command: translateModel(Modelica.Media.Examples.SimpleLiquidWater,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|medium.T",fileNamePrefix="Modelica_3.2.2_cpp_Modelica.Media.Examples.SimpleLiquidWater") Notification: Performance of loadModel(Modelica): time 1.949/1.949, allocations: 194.9 MB / 208.4 MB, free: 3.16 MB / 170.7 MB Notification: Performance of FrontEnd - loaded program: time 3.143e-05/3.17e-05, allocations: 3.438 kB / 255.3 MB, free: 3.203 MB / 202.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08256/0.08262, allocations: 44.51 MB / 299.8 MB, free: 6.641 MB / 250.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.7574/0.8401, allocations: 268.4 MB / 0.5549 GB, free: 110.6 MB / 410.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001733/0.8403, allocations: 65.58 kB / 0.555 GB, free: 110.6 MB / 410.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.03169/0.872, allocations: 9.323 MB / 0.5641 GB, free: 109.4 MB / 410.7 MB Notification: Performance of FrontEnd: time 1.705e-06/0.8721, allocations: 0 / 0.5641 GB, free: 109.4 MB / 410.7 MB Notification: Performance of Transformations before backend: time 1.45e-05/0.8721, allocations: 3.875 kB / 0.5641 GB, free: 109.4 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.0008882/0.873, allocations: 445.2 kB / 0.5645 GB, free: 109 MB / 410.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.009e-05/0.8731, allocations: 19.53 kB / 0.5645 GB, free: 109 MB / 410.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002299/0.8733, allocations: 19.44 kB / 0.5645 GB, free: 109 MB / 410.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002103/0.8735, allocations: 207.9 kB / 0.5647 GB, free: 108.8 MB / 410.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.748e-05/0.8736, allocations: 11.47 kB / 0.5647 GB, free: 108.8 MB / 410.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.983e-05/0.8736, allocations: 26.34 kB / 0.5648 GB, free: 108.7 MB / 410.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003674/0.874, allocations: 200.6 kB / 0.565 GB, free: 108.7 MB / 410.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.75e-05/0.874, allocations: 0 / 0.565 GB, free: 108.7 MB / 410.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.334e-05/0.8741, allocations: 7.188 kB / 0.565 GB, free: 108.7 MB / 410.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.023e-06/0.8741, allocations: 3.781 kB / 0.565 GB, free: 108.7 MB / 410.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002748/0.8744, allocations: 131.7 kB / 0.5651 GB, free: 108.6 MB / 410.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001337/0.8757, allocations: 0.9431 MB / 0.566 GB, free: 107.9 MB / 410.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003131/0.8761, allocations: 125 kB / 0.5661 GB, free: 107.9 MB / 410.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 9.934e-05/0.8762, allocations: 51.64 kB / 0.5662 GB, free: 107.9 MB / 410.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.00059/0.8768, allocations: 0.5109 MB / 0.5667 GB, free: 107.4 MB / 410.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.804e-05/0.8768, allocations: 38.39 kB / 0.5667 GB, free: 107.3 MB / 410.7 MB Notification: Performance of pre-optimization done (n=14): time 2.866e-06/0.8768, allocations: 0 / 0.5667 GB, free: 107.3 MB / 410.7 MB Notification: Performance of matching and sorting (n=20): time 0.001999/0.8788, allocations: 0.6257 MB / 0.5673 GB, free: 107 MB / 410.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.151e-05/0.8789, allocations: 59.28 kB / 0.5674 GB, free: 106.9 MB / 410.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001343/0.8791, allocations: 146.7 kB / 0.5675 GB, free: 106.8 MB / 410.7 MB Notification: Performance of collectPreVariables (initialization): time 2.84e-05/0.8791, allocations: 29.52 kB / 0.5676 GB, free: 106.8 MB / 410.7 MB Notification: Performance of collectInitialEqns (initialization): time 6.357e-05/0.8792, allocations: 209.3 kB / 0.5678 GB, free: 106.6 MB / 410.7 MB Notification: Performance of collectInitialBindings (initialization): time 5.613e-05/0.8792, allocations: 66 kB / 0.5678 GB, free: 106.5 MB / 410.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.208e-05/0.8793, allocations: 15.12 kB / 0.5678 GB, free: 106.5 MB / 410.7 MB Notification: Performance of setup shared object (initialization): time 5.625e-05/0.8794, allocations: 318.3 kB / 0.5681 GB, free: 106.2 MB / 410.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000163/0.8795, allocations: 67.75 kB / 0.5682 GB, free: 106.2 MB / 410.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002039/0.8797, allocations: 171.6 kB / 0.5684 GB, free: 106.1 MB / 410.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001977/0.88, allocations: 91.67 kB / 0.5684 GB, free: 106 MB / 410.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.001e-06/0.88, allocations: 3.938 kB / 0.5685 GB, free: 106 MB / 410.7 MB Notification: Performance of matching and sorting (n=37) (initialization): time 0.0005865/0.8806, allocations: 277.8 kB / 0.5687 GB, free: 105.9 MB / 410.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.032e-05/0.8806, allocations: 10.81 kB / 0.5687 GB, free: 105.9 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.831e-06/0.8806, allocations: 3.188 kB / 0.5687 GB, free: 105.9 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.421e-05/0.8807, allocations: 15.17 kB / 0.5687 GB, free: 105.9 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000476/0.8811, allocations: 84.97 kB / 0.5688 GB, free: 105.9 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.29e-05/0.8812, allocations: 3.875 kB / 0.5688 GB, free: 105.9 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003301/0.8815, allocations: 26.05 kB / 0.5689 GB, free: 105.9 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.355e-05/0.8816, allocations: 11.06 kB / 0.5689 GB, free: 105.9 MB / 410.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 16 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (37): * Single equations (assignments): 37 * 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.0001002/0.8817, allocations: 122.7 kB / 0.569 GB, free: 105.8 MB / 410.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.817e-05/0.8818, allocations: 15.38 kB / 0.569 GB, free: 105.8 MB / 410.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0005679/0.8824, allocations: 211.7 kB / 0.5692 GB, free: 105.7 MB / 410.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.689e-06/0.8824, allocations: 3.906 kB / 0.5692 GB, free: 105.7 MB / 410.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.912e-06/0.8824, allocations: 0 / 0.5692 GB, free: 105.7 MB / 410.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.463e-06/0.8824, allocations: 0 / 0.5692 GB, free: 105.7 MB / 410.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001307/0.8837, allocations: 0.573 MB / 0.5698 GB, free: 105.3 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.667e-06/0.8838, allocations: 3.984 kB / 0.5698 GB, free: 105.3 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004219/0.8842, allocations: 54.58 kB / 0.5698 GB, free: 105.2 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 7.866e-06/0.8842, allocations: 0 / 0.5698 GB, free: 105.2 MB / 410.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.133e-05/0.8843, allocations: 15.77 kB / 0.5698 GB, free: 105.2 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 7.441e-06/0.8843, allocations: 3.906 kB / 0.5698 GB, free: 105.2 MB / 410.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.833e-06/0.8843, allocations: 0 / 0.5698 GB, free: 105.2 MB / 410.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005897/0.8849, allocations: 402.6 kB / 0.5702 GB, free: 105 MB / 410.7 MB Notification: Performance of postOpt removeConstants (simulation): time 5.239e-05/0.885, allocations: 84.95 kB / 0.5703 GB, free: 104.9 MB / 410.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.936e-05/0.885, allocations: 7.562 kB / 0.5703 GB, free: 104.9 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003343/0.8854, allocations: 15.7 kB / 0.5703 GB, free: 104.9 MB / 410.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.001e-05/0.8854, allocations: 19.78 kB / 0.5703 GB, free: 104.9 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.708e-05/0.8855, allocations: 15.83 kB / 0.5704 GB, free: 104.9 MB / 410.7 MB Notification: Performance of sorting global known variables: time 8.307e-05/0.8856, allocations: 108.7 kB / 0.5705 GB, free: 104.8 MB / 410.7 MB Notification: Performance of sort global known variables: time 7.36e-07/0.8856, allocations: 0 / 0.5705 GB, free: 104.8 MB / 410.7 MB Notification: Performance of remove unused functions: time 0.0005455/0.8861, allocations: 70.14 kB / 0.5705 GB, free: 104.8 MB / 410.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 5 * Number of states: 1 (medium.T) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (20): * Single equations (assignments): 20 * 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 Backend phase and start with SimCode phase: time 0.0002316/0.8864, allocations: 142 kB / 0.5707 GB, free: 104.7 MB / 410.7 MB Notification: Performance of simCode: created initialization part: time 0.0004275/0.8868, allocations: 186.8 kB / 0.5708 GB, free: 104.6 MB / 410.7 MB Notification: Performance of simCode: created event and clocks part: time 3.697e-06/0.8868, allocations: 0 / 0.5708 GB, free: 104.6 MB / 410.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001548/0.887, allocations: 81.2 kB / 0.5709 GB, free: 104.6 MB / 410.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004082/0.8874, allocations: 36.22 kB / 0.571 GB, free: 104.6 MB / 410.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0008558/0.8883, allocations: 323.7 kB / 0.5713 GB, free: 104.4 MB / 410.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001659/0.8885, allocations: 0.7204 MB / 0.572 GB, free: 103.7 MB / 410.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001513/0.8887, allocations: 27.45 kB / 0.572 GB, free: 103.6 MB / 410.7 MB Notification: Performance of SimCode: time 2.079e-06/0.8887, allocations: 0 / 0.572 GB, free: 103.6 MB / 410.7 MB Notification: Performance of Templates: time 0.005311/0.894, allocations: 2.725 MB / 0.5747 GB, free: 102.2 MB / 410.7 MB