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.849/1.849, allocations: 194.9 MB / 208.4 MB, free: 3.16 MB / 170.7 MB Notification: Performance of FrontEnd - loaded program: time 2.698e-05/2.705e-05, allocations: 4 kB / 255.4 MB, free: 3.176 MB / 202.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08077/0.08082, allocations: 44.49 MB / 299.9 MB, free: 6.621 MB / 250.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.7923/0.8731, allocations: 316.4 MB / 0.6018 GB, free: 91.01 MB / 410.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002032/0.8734, allocations: 77.55 kB / 0.6019 GB, free: 90.94 MB / 410.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.6288/1.502, allocations: 130.2 MB / 0.7291 GB, free: 112.2 MB / 410.7 MB Notification: Performance of FrontEnd: time 2.14e-06/1.502, allocations: 0 / 0.7291 GB, free: 112.2 MB / 410.7 MB Notification: Performance of Transformations before backend: time 7.853e-05/1.502, allocations: 28.72 kB / 0.7291 GB, free: 112.2 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: 138 * Number of variables: 138 Notification: Performance of Generate backend data structure: time 0.003139/1.505, allocations: 1.079 MB / 0.7302 GB, free: 111.6 MB / 410.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.325e-05/1.506, allocations: 8.438 kB / 0.7302 GB, free: 111.6 MB / 410.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0006245/1.506, allocations: 98.05 kB / 0.7303 GB, free: 111.5 MB / 410.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001807/1.508, allocations: 0.6475 MB / 0.7309 GB, free: 111.1 MB / 410.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.00011/1.508, allocations: 106.6 kB / 0.731 GB, free: 111 MB / 410.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000156/1.508, allocations: 54.44 kB / 0.731 GB, free: 111 MB / 410.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001934/1.51, allocations: 0.8745 MB / 0.7319 GB, free: 110.7 MB / 410.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.923e-05/1.51, allocations: 3.812 kB / 0.7319 GB, free: 110.7 MB / 410.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001178/1.51, allocations: 28.95 kB / 0.7319 GB, free: 110.6 MB / 410.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.223e-05/1.511, allocations: 46.5 kB / 0.732 GB, free: 110.6 MB / 410.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001716/1.512, allocations: 0.8098 MB / 0.7328 GB, free: 110.4 MB / 410.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.007433/1.52, allocations: 3.304 MB / 0.736 GB, free: 108.5 MB / 410.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001264/1.521, allocations: 0.6421 MB / 0.7366 GB, free: 108.2 MB / 410.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0007141/1.522, allocations: 354.8 kB / 0.737 GB, free: 108.1 MB / 410.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.003874/1.526, allocations: 2.076 MB / 0.739 GB, free: 106.6 MB / 410.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.115e-05/1.526, allocations: 42.84 kB / 0.739 GB, free: 106.5 MB / 410.7 MB Notification: Performance of pre-optimization done (n=56): time 3.8e-06/1.526, allocations: 3.938 kB / 0.739 GB, free: 106.5 MB / 410.7 MB Notification: Performance of matching and sorting (n=66): time 0.006073/1.532, allocations: 2.218 MB / 0.7412 GB, free: 105.5 MB / 410.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.687e-05/1.532, allocations: 84.64 kB / 0.7413 GB, free: 105.4 MB / 410.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001009/1.533, allocations: 0.5962 MB / 0.7419 GB, free: 105.2 MB / 410.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001365/1.533, allocations: 41.67 kB / 0.7419 GB, free: 105.1 MB / 410.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.000193/1.533, allocations: 357.6 kB / 0.7422 GB, free: 104.8 MB / 410.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002204/1.534, allocations: 223.7 kB / 0.7425 GB, free: 104.7 MB / 410.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.092e-05/1.534, allocations: 15.59 kB / 0.7425 GB, free: 104.6 MB / 410.7 MB Notification: Performance of setup shared object (initialization): time 8.048e-05/1.534, allocations: 340.9 kB / 0.7428 GB, free: 104.3 MB / 410.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0007701/1.535, allocations: 351.7 kB / 0.7431 GB, free: 104.2 MB / 410.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0008318/1.535, allocations: 492.7 kB / 0.7436 GB, free: 103.9 MB / 410.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0008457/1.536, allocations: 406.8 kB / 0.744 GB, free: 103.8 MB / 410.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.738e-06/1.536, allocations: 0 / 0.744 GB, free: 103.8 MB / 410.7 MB Notification: Performance of matching and sorting (n=95) (initialization): time 0.002561/1.539, allocations: 1.07 MB / 0.745 GB, free: 103.4 MB / 410.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0003353/1.539, allocations: 1.576 MB / 0.7466 GB, free: 101.7 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.262e-05/1.539, allocations: 7.047 kB / 0.7466 GB, free: 101.7 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001737/1.541, allocations: 434.5 kB / 0.747 GB, free: 101.6 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000956/1.542, allocations: 153.9 kB / 0.7471 GB, free: 101.6 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001401/1.543, allocations: 1.027 MB / 0.7481 GB, free: 100.9 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00114/1.545, allocations: 50.92 kB / 0.7482 GB, free: 100.9 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001254/1.545, allocations: 38.7 kB / 0.7482 GB, free: 100.9 MB / 410.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.528e-05/1.545, allocations: 5.938 kB / 0.7482 GB, free: 100.9 MB / 410.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.002191/1.547, allocations: 0.9033 MB / 0.7491 GB, free: 100.5 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.219e-05/1.547, allocations: 7.312 kB / 0.7491 GB, free: 100.5 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0007768/1.548, allocations: 239.1 kB / 0.7494 GB, free: 100.5 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001049/1.549, allocations: 167.5 kB / 0.7495 GB, free: 100.5 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0008657/1.55, allocations: 0.8029 MB / 0.7503 GB, free: 99.83 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007356/1.551, allocations: 42.27 kB / 0.7503 GB, free: 99.82 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001067/1.551, allocations: 35.02 kB / 0.7504 GB, free: 99.81 MB / 410.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.0002967/1.551, allocations: 148.3 kB / 0.7505 GB, free: 99.67 MB / 410.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000252/1.551, allocations: 77.5 kB / 0.7506 GB, free: 99.63 MB / 410.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002515/1.554, allocations: 1.086 MB / 0.7516 GB, free: 99.2 MB / 410.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.112e-05/1.554, allocations: 6.844 kB / 0.7517 GB, free: 99.2 MB / 410.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.238e-06/1.554, allocations: 0 / 0.7517 GB, free: 99.2 MB / 410.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.478e-05/1.554, allocations: 7.609 kB / 0.7517 GB, free: 99.2 MB / 410.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004298/1.558, allocations: 1.989 MB / 0.7536 GB, free: 98.3 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.446e-06/1.558, allocations: 0 / 0.7536 GB, free: 98.3 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0009137/1.559, allocations: 120.2 kB / 0.7537 GB, free: 98.29 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001744/1.561, allocations: 444.3 kB / 0.7541 GB, free: 98.2 MB / 410.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001274/1.561, allocations: 15.62 kB / 0.7542 GB, free: 98.19 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001407/1.563, allocations: 1.024 MB / 0.7552 GB, free: 97.44 MB / 410.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.911e-06/1.563, allocations: 6.328 kB / 0.7552 GB, free: 97.44 MB / 410.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003106/1.566, allocations: 1.569 MB / 0.7567 GB, free: 96.02 MB / 410.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0006232/1.566, allocations: 259 kB / 0.7569 GB, free: 95.79 MB / 410.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001864/1.567, allocations: 10.59 kB / 0.7569 GB, free: 95.78 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0008397/1.567, allocations: 54.33 kB / 0.757 GB, free: 95.73 MB / 410.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001627/1.568, allocations: 61.66 kB / 0.7571 GB, free: 95.7 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001018/1.568, allocations: 27.89 kB / 0.7571 GB, free: 95.68 MB / 410.7 MB Notification: Performance of sorting global known variables: time 0.0007263/1.568, allocations: 469 kB / 0.7575 GB, free: 95.26 MB / 410.7 MB Notification: Performance of sort global known variables: time 7.85e-07/1.568, allocations: 4 kB / 0.7575 GB, free: 95.26 MB / 410.7 MB Notification: Performance of remove unused functions: time 0.002193/1.571, allocations: 0.6316 MB / 0.7582 GB, free: 94.64 MB / 410.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.001515/1.572, allocations: 0.6028 MB / 0.7587 GB, free: 94.14 MB / 410.7 MB Notification: Performance of simCode: created initialization part: time 0.003157/1.575, allocations: 1.307 MB / 0.76 GB, free: 92.96 MB / 410.7 MB Notification: Performance of simCode: created event and clocks part: time 6.978e-06/1.575, allocations: 2.875 kB / 0.76 GB, free: 92.96 MB / 410.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001151/1.577, allocations: 458 kB / 0.7605 GB, free: 92.55 MB / 410.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002133/1.579, allocations: 353.9 kB / 0.7608 GB, free: 92.3 MB / 410.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003575/1.582, allocations: 1.378 MB / 0.7621 GB, free: 91.08 MB / 410.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005092/1.583, allocations: 1.007 MB / 0.7631 GB, free: 90.16 MB / 410.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004243/1.583, allocations: 87.34 kB / 0.7632 GB, free: 90.08 MB / 410.7 MB Notification: Performance of SimCode: time 2.038e-06/1.583, allocations: 4 kB / 0.7632 GB, free: 90.07 MB / 410.7 MB Notification: Performance of Templates: time 0.02918/1.613, allocations: 19.17 MB / 0.7819 GB, free: 71.09 MB / 410.7 MB