Running command: translateModel(Modelica.Fluid.Examples.Tanks.EmptyTanks,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|tank1.level|tank2.level|tank2.ports.1..m_flow",fileNamePrefix="Modelica_3.2.2_cpp_Modelica.Fluid.Examples.Tanks.EmptyTanks") Notification: Performance of loadModel(Modelica): time 1.871/1.871, allocations: 195 MB / 203.2 MB, free: 13.8 MB / 170.7 MB Notification: Performance of FrontEnd - loaded program: time 1.908e-05/1.917e-05, allocations: 0 / 249.6 MB, free: 15.32 MB / 218.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2536/0.2536, allocations: 44.51 MB / 294.1 MB, free: 14.32 MB / 250.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.8066/1.06, allocations: 315.7 MB / 0.5956 GB, free: 94.53 MB / 394.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002179/1.061, allocations: 73.69 kB / 0.5956 GB, free: 94.53 MB / 394.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.6201/1.681, allocations: 129.3 MB / 0.7219 GB, free: 92.45 MB / 394.7 MB Notification: Performance of FrontEnd: time 2.456e-06/1.681, allocations: 0 / 0.7219 GB, free: 92.45 MB / 394.7 MB Notification: Performance of Transformations before backend: time 6.729e-05/1.681, allocations: 21.31 kB / 0.722 GB, free: 92.45 MB / 394.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 138 * Number of variables: 138 Notification: Performance of Generate backend data structure: time 0.002781/1.684, allocations: 1.07 MB / 0.723 GB, free: 91.9 MB / 394.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.945e-05/1.684, allocations: 11.19 kB / 0.723 GB, free: 91.9 MB / 394.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0005384/1.684, allocations: 96.75 kB / 0.7231 GB, free: 91.86 MB / 394.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001678/1.686, allocations: 0.6539 MB / 0.7237 GB, free: 91.61 MB / 394.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001013/1.686, allocations: 82.38 kB / 0.7238 GB, free: 91.55 MB / 394.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001403/1.686, allocations: 34.56 kB / 0.7239 GB, free: 91.55 MB / 394.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.001644/1.688, allocations: 0.7438 MB / 0.7246 GB, free: 91.55 MB / 394.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001642/1.69, allocations: 0.8133 MB / 0.7254 GB, free: 91.45 MB / 394.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.246e-05/1.69, allocations: 5.172 kB / 0.7254 GB, free: 91.45 MB / 394.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001115/1.69, allocations: 0 / 0.7254 GB, free: 91.45 MB / 394.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.303e-05/1.69, allocations: 50.62 kB / 0.7254 GB, free: 91.44 MB / 394.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.007157/1.697, allocations: 3.18 MB / 0.7285 GB, free: 90.34 MB / 394.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001092/1.698, allocations: 0.6162 MB / 0.7291 GB, free: 90.32 MB / 394.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005948/1.699, allocations: 351.5 kB / 0.7295 GB, free: 90.3 MB / 394.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.003541/1.702, allocations: 2.023 MB / 0.7314 GB, free: 89.16 MB / 394.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.787e-05/1.702, allocations: 38.03 kB / 0.7315 GB, free: 89.12 MB / 394.7 MB Notification: Performance of pre-optimization done (n=56): time 3.557e-06/1.702, allocations: 3.844 kB / 0.7315 GB, free: 89.12 MB / 394.7 MB Notification: Performance of matching and sorting (n=66): time 0.009958/1.712, allocations: 2.487 MB / 0.7339 GB, free: 88.7 MB / 394.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.42e-05/1.712, allocations: 85.02 kB / 0.734 GB, free: 88.6 MB / 394.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0007308/1.713, allocations: 451.5 kB / 0.7344 GB, free: 88.48 MB / 394.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001407/1.713, allocations: 29.14 kB / 0.7345 GB, free: 88.45 MB / 394.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002676/1.714, allocations: 378.3 kB / 0.7348 GB, free: 88.21 MB / 394.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002398/1.714, allocations: 216.8 kB / 0.735 GB, free: 88.07 MB / 394.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.21e-05/1.714, allocations: 0 / 0.735 GB, free: 88.07 MB / 394.7 MB Notification: Performance of setup shared object (initialization): time 8.002e-05/1.714, allocations: 345.8 kB / 0.7354 GB, free: 87.75 MB / 394.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006802/1.715, allocations: 339.9 kB / 0.7357 GB, free: 87.75 MB / 394.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0007118/1.715, allocations: 480.5 kB / 0.7361 GB, free: 87.6 MB / 394.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.004972/1.72, allocations: 0.9994 MB / 0.7371 GB, free: 87.59 MB / 394.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.217e-05/1.721, allocations: 0 / 0.7371 GB, free: 87.59 MB / 394.7 MB Notification: Performance of matching and sorting (n=95) (initialization): time 0.00709/1.728, allocations: 1.648 MB / 0.7387 GB, free: 87.52 MB / 394.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.000329/1.728, allocations: 1.577 MB / 0.7403 GB, free: 85.89 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.482e-05/1.728, allocations: 3.344 kB / 0.7403 GB, free: 85.89 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001098/1.729, allocations: 371.1 kB / 0.7406 GB, free: 85.88 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008412/1.73, allocations: 159.3 kB / 0.7408 GB, free: 85.88 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002542/1.733, allocations: 1.226 MB / 0.742 GB, free: 85.35 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00098/1.734, allocations: 37.33 kB / 0.742 GB, free: 85.34 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001176/1.734, allocations: 34.23 kB / 0.742 GB, free: 85.34 MB / 394.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.442e-05/1.734, allocations: 6.312 kB / 0.742 GB, free: 85.34 MB / 394.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.006023/1.74, allocations: 1.307 MB / 0.7433 GB, free: 85.32 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.545e-05/1.74, allocations: 3.875 kB / 0.7433 GB, free: 85.32 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0007078/1.741, allocations: 247 kB / 0.7436 GB, free: 85.31 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008074/1.741, allocations: 165.3 kB / 0.7437 GB, free: 85.31 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0008438/1.742, allocations: 0.8242 MB / 0.7445 GB, free: 84.79 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005768/1.743, allocations: 33.2 kB / 0.7446 GB, free: 84.79 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.606e-05/1.743, allocations: 31.62 kB / 0.7446 GB, free: 84.79 MB / 394.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 18 * Number of states: 0 () * Number of discrete variables: 4 (tank1.regularFlow[1],tank1.inFlow[1],tank2.regularFlow[1],tank2.inFlow[1]) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (83): * Single equations (assignments): 82 * 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 {4 9} Notification: Performance of prepare postOptimizeDAE: time 0.0002964/1.743, allocations: 132.1 kB / 0.7447 GB, free: 84.67 MB / 394.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002206/1.744, allocations: 69.09 kB / 0.7448 GB, free: 84.64 MB / 394.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003922/1.747, allocations: 1.191 MB / 0.7459 GB, free: 84.55 MB / 394.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.099e-05/1.747, allocations: 7.469 kB / 0.7459 GB, free: 84.55 MB / 394.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.181e-06/1.748, allocations: 2.438 kB / 0.7459 GB, free: 84.55 MB / 394.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.176e-05/1.748, allocations: 3.891 kB / 0.7459 GB, free: 84.55 MB / 394.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.005351/1.753, allocations: 2.025 MB / 0.7479 GB, free: 84.25 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.508e-06/1.753, allocations: 0 / 0.7479 GB, free: 84.25 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007871/1.754, allocations: 116.1 kB / 0.748 GB, free: 84.25 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001083/1.755, allocations: 377.2 kB / 0.7484 GB, free: 84.23 MB / 394.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.479e-05/1.755, allocations: 10.8 kB / 0.7484 GB, free: 84.23 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002394/1.757, allocations: 1.213 MB / 0.7496 GB, free: 83.7 MB / 394.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.421e-06/1.757, allocations: 0 / 0.7496 GB, free: 83.7 MB / 394.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004486/1.762, allocations: 1.691 MB / 0.7512 GB, free: 83.5 MB / 394.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0005614/1.762, allocations: 235.4 kB / 0.7515 GB, free: 83.37 MB / 394.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001593/1.763, allocations: 0 / 0.7515 GB, free: 83.37 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0008588/1.764, allocations: 35.38 kB / 0.7515 GB, free: 83.37 MB / 394.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001579/1.764, allocations: 56.28 kB / 0.7516 GB, free: 83.37 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001019/1.764, allocations: 27.41 kB / 0.7516 GB, free: 83.37 MB / 394.7 MB Notification: Performance of sorting global known variables: time 0.0005056/1.764, allocations: 342.3 kB / 0.7519 GB, free: 83.28 MB / 394.7 MB Notification: Performance of sort global known variables: time 8.96e-07/1.764, allocations: 0 / 0.7519 GB, free: 83.28 MB / 394.7 MB Notification: Performance of remove unused functions: time 0.00214/1.767, allocations: 0.5907 MB / 0.7525 GB, free: 83.18 MB / 394.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 4 (tank1.medium.T,tank1.level,tank2.medium.T,tank2.level) * Number of discrete variables: 4 (tank1.regularFlow[1],tank1.inFlow[1],tank2.regularFlow[1],tank2.inFlow[1]) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (58): * Single equations (assignments): 57 * 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 {4 12} Notification: Performance of Backend phase and start with SimCode phase: time 0.001491/1.768, allocations: 0.5833 MB / 0.7531 GB, free: 82.98 MB / 394.7 MB Notification: Performance of simCode: created initialization part: time 0.002962/1.771, allocations: 1.282 MB / 0.7543 GB, free: 82.95 MB / 394.7 MB Notification: Performance of simCode: created event and clocks part: time 6.104e-06/1.771, allocations: 1.5 kB / 0.7543 GB, free: 82.95 MB / 394.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001126/1.772, allocations: 438.6 kB / 0.7547 GB, free: 82.95 MB / 394.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001811/1.774, allocations: 310.8 kB / 0.755 GB, free: 82.94 MB / 394.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003337/1.777, allocations: 1.34 MB / 0.7563 GB, free: 82.6 MB / 394.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005219/1.778, allocations: 1.006 MB / 0.7573 GB, free: 81.89 MB / 394.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003878/1.778, allocations: 78.88 kB / 0.7574 GB, free: 81.89 MB / 394.7 MB Notification: Performance of SimCode: time 1.878e-06/1.778, allocations: 0 / 0.7574 GB, free: 81.89 MB / 394.7 MB Notification: Performance of Templates: time 0.02869/1.807, allocations: 18.6 MB / 0.7756 GB, free: 78.27 MB / 394.7 MB