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.818/1.818, allocations: 194.9 MB / 208.4 MB, free: 3.164 MB / 170.7 MB Notification: Performance of FrontEnd - loaded program: time 4.578e-05/4.61e-05, allocations: 9.922 kB / 255.3 MB, free: 3.184 MB / 202.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09794/0.09801, allocations: 44.49 MB / 299.8 MB, free: 6.629 MB / 250.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.7781/0.8761, allocations: 316.4 MB / 0.6018 GB, free: 91.01 MB / 410.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002062/0.8764, allocations: 81.03 kB / 0.6019 GB, free: 90.93 MB / 410.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.7053/1.582, allocations: 130.2 MB / 0.7291 GB, free: 112.3 MB / 410.7 MB Notification: Performance of FrontEnd: time 2.24e-06/1.582, allocations: 0 / 0.7291 GB, free: 112.3 MB / 410.7 MB Notification: Performance of Transformations before backend: time 6.733e-05/1.582, allocations: 16.88 kB / 0.7291 GB, free: 112.3 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.002997/1.585, allocations: 1.089 MB / 0.7301 GB, free: 111.7 MB / 410.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.441e-05/1.585, allocations: 7.531 kB / 0.7301 GB, free: 111.7 MB / 410.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0006393/1.586, allocations: 96.06 kB / 0.7302 GB, free: 111.6 MB / 410.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001862/1.587, allocations: 0.6498 MB / 0.7309 GB, free: 111.2 MB / 410.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001238/1.588, allocations: 108.8 kB / 0.731 GB, free: 111.2 MB / 410.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001721/1.588, allocations: 57.89 kB / 0.731 GB, free: 111.2 MB / 410.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001952/1.59, allocations: 0.8813 MB / 0.7319 GB, free: 110.8 MB / 410.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.985e-05/1.59, allocations: 0 / 0.7319 GB, free: 110.8 MB / 410.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001231/1.59, allocations: 18.72 kB / 0.7319 GB, free: 110.8 MB / 410.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001033/1.59, allocations: 58.02 kB / 0.732 GB, free: 110.8 MB / 410.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001817/1.592, allocations: 0.8112 MB / 0.7327 GB, free: 110.5 MB / 410.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.007151/1.599, allocations: 3.309 MB / 0.736 GB, free: 108.6 MB / 410.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001178/1.6, allocations: 0.647 MB / 0.7366 GB, free: 108.3 MB / 410.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006317/1.601, allocations: 362.8 kB / 0.737 GB, free: 108.2 MB / 410.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.003423/1.604, allocations: 2.066 MB / 0.739 GB, free: 106.7 MB / 410.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.087e-05/1.604, allocations: 43.06 kB / 0.739 GB, free: 106.6 MB / 410.7 MB Notification: Performance of pre-optimization done (n=56): time 3.517e-06/1.604, allocations: 6.234 kB / 0.739 GB, free: 106.6 MB / 410.7 MB Notification: Performance of matching and sorting (n=66): time 0.005738/1.61, allocations: 2.218 MB / 0.7412 GB, free: 105.7 MB / 410.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.9e-05/1.61, allocations: 85.52 kB / 0.7413 GB, free: 105.6 MB / 410.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0009548/1.611, allocations: 0.5925 MB / 0.7418 GB, free: 105.3 MB / 410.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001244/1.611, allocations: 40.89 kB / 0.7419 GB, free: 105.3 MB / 410.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.00019/1.612, allocations: 360.7 kB / 0.7422 GB, free: 104.9 MB / 410.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.000211/1.612, allocations: 225.2 kB / 0.7424 GB, free: 104.8 MB / 410.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.854e-05/1.612, allocations: 15.47 kB / 0.7425 GB, free: 104.8 MB / 410.7 MB Notification: Performance of setup shared object (initialization): time 7.979e-05/1.612, allocations: 343.9 kB / 0.7428 GB, free: 104.4 MB / 410.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000704/1.613, allocations: 346 kB / 0.7431 GB, free: 104.3 MB / 410.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000771/1.614, allocations: 0.492 MB / 0.7436 GB, free: 104 MB / 410.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007816/1.614, allocations: 404.2 kB / 0.744 GB, free: 103.9 MB / 410.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.769e-06/1.614, allocations: 0 / 0.744 GB, free: 103.9 MB / 410.7 MB Notification: Performance of matching and sorting (n=95) (initialization): time 0.002388/1.617, allocations: 1.08 MB / 0.745 GB, free: 103.5 MB / 410.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0003344/1.617, allocations: 1.576 MB / 0.7466 GB, free: 101.8 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.361e-05/1.617, allocations: 4.594 kB / 0.7466 GB, free: 101.8 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001586/1.619, allocations: 429.4 kB / 0.747 GB, free: 101.7 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0009243/1.62, allocations: 161.9 kB / 0.7471 GB, free: 101.7 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001393/1.621, allocations: 1.023 MB / 0.7481 GB, free: 101 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001/1.622, allocations: 46.91 kB / 0.7482 GB, free: 101 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001213/1.622, allocations: 38.89 kB / 0.7482 GB, free: 101 MB / 410.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.323e-05/1.622, allocations: 3.875 kB / 0.7482 GB, free: 101 MB / 410.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.002005/1.624, allocations: 0.918 MB / 0.7491 GB, free: 100.6 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.209e-05/1.624, allocations: 3.906 kB / 0.7491 GB, free: 100.6 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0006958/1.625, allocations: 242 kB / 0.7494 GB, free: 100.6 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008484/1.626, allocations: 164.6 kB / 0.7495 GB, free: 100.6 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0007939/1.627, allocations: 0.8136 MB / 0.7503 GB, free: 99.93 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006723/1.627, allocations: 38.22 kB / 0.7503 GB, free: 99.92 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.851e-05/1.628, allocations: 34.97 kB / 0.7504 GB, free: 99.91 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.0002964/1.628, allocations: 154.8 kB / 0.7505 GB, free: 99.77 MB / 410.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002398/1.628, allocations: 76.19 kB / 0.7506 GB, free: 99.73 MB / 410.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002437/1.631, allocations: 1.085 MB / 0.7517 GB, free: 99.29 MB / 410.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.998e-06/1.631, allocations: 9.875 kB / 0.7517 GB, free: 99.29 MB / 410.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.723e-06/1.631, allocations: 3.938 kB / 0.7517 GB, free: 99.29 MB / 410.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.261e-05/1.631, allocations: 7.141 kB / 0.7517 GB, free: 99.29 MB / 410.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003936/1.635, allocations: 1.986 MB / 0.7536 GB, free: 98.38 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.25e-06/1.635, allocations: 3.844 kB / 0.7536 GB, free: 98.38 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007431/1.635, allocations: 118.8 kB / 0.7537 GB, free: 98.38 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001538/1.637, allocations: 442.9 kB / 0.7542 GB, free: 98.29 MB / 410.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001209/1.637, allocations: 14.48 kB / 0.7542 GB, free: 98.29 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001331/1.638, allocations: 1.028 MB / 0.7552 GB, free: 97.48 MB / 410.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.17e-06/1.639, allocations: 7.953 kB / 0.7552 GB, free: 97.47 MB / 410.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002956/1.641, allocations: 1.572 MB / 0.7567 GB, free: 96.05 MB / 410.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0006078/1.642, allocations: 250 kB / 0.757 GB, free: 95.82 MB / 410.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000177/1.642, allocations: 12 kB / 0.757 GB, free: 95.81 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0007799/1.643, allocations: 53.44 kB / 0.757 GB, free: 95.77 MB / 410.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001697/1.643, allocations: 63 kB / 0.7571 GB, free: 95.73 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.626e-05/1.643, allocations: 31.81 kB / 0.7571 GB, free: 95.71 MB / 410.7 MB Notification: Performance of sorting global known variables: time 0.0007171/1.644, allocations: 471.4 kB / 0.7576 GB, free: 95.3 MB / 410.7 MB Notification: Performance of sort global known variables: time 7.8e-07/1.644, allocations: 0 / 0.7576 GB, free: 95.3 MB / 410.7 MB Notification: Performance of remove unused functions: time 0.002206/1.646, allocations: 0.6313 MB / 0.7582 GB, free: 94.68 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.001477/1.648, allocations: 0.5921 MB / 0.7588 GB, free: 94.19 MB / 410.7 MB Notification: Performance of simCode: created initialization part: time 0.00313/1.651, allocations: 1.333 MB / 0.7601 GB, free: 92.98 MB / 410.7 MB Notification: Performance of simCode: created event and clocks part: time 7.762e-06/1.651, allocations: 4 kB / 0.7601 GB, free: 92.98 MB / 410.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001116/1.652, allocations: 461.8 kB / 0.7605 GB, free: 92.57 MB / 410.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002113/1.654, allocations: 339 kB / 0.7608 GB, free: 92.33 MB / 410.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003476/1.658, allocations: 1.397 MB / 0.7622 GB, free: 91.1 MB / 410.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000513/1.658, allocations: 0.9998 MB / 0.7632 GB, free: 90.11 MB / 410.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004007/1.659, allocations: 87.34 kB / 0.7633 GB, free: 90.02 MB / 410.7 MB Notification: Performance of SimCode: time 2.03e-06/1.659, allocations: 0 / 0.7633 GB, free: 90.02 MB / 410.7 MB Notification: Performance of Templates: time 0.02952/1.688, allocations: 19.19 MB / 0.782 GB, free: 71.02 MB / 410.7 MB