Running command: translateModel(ModelicaTest.Fluid.TestComponents.Vessels.TestTankWithTopPorts,tolerance=1e-05,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|tank.level|tank.medium.h|tank.aboveLevel.1.|tank.aboveLevel.2.|tank.aboveLevel.3.|tank.aboveLevel.4.|tank.ports_m_flow_out.1.|tank.ports_m_flow_out.2.|tank.ports_m_flow_out.3.|tank.ports_m_flow_out.4.",fileNamePrefix="ModelicaTest_3.2.2_cpp_ModelicaTest.Fluid.TestComponents.Vessels.TestTankWithTopPorts") Notification: Performance of loadModel(ModelicaTest): time 2.122/2.122, allocations: 235 MB / 247.6 MB, free: 14.36 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 2.801e-05/2.816e-05, allocations: 4 kB / 304.9 MB, free: 5.641 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3245/0.3245, allocations: 54.85 MB / 359.8 MB, free: 2.668 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 5.896/6.221, allocations: 2.597 GB / 2.948 GB, free: 86.67 MB / 490.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002404/6.221, allocations: 84.89 kB / 2.948 GB, free: 86.59 MB / 490.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.401/8.622, allocations: 0.5503 GB / 3.498 GB, free: 41.7 MB / 490.7 MB Notification: Performance of FrontEnd: time 3.104e-06/8.622, allocations: 0 / 3.498 GB, free: 41.7 MB / 490.7 MB Notification: Performance of Transformations before backend: time 7.379e-05/8.622, allocations: 30 kB / 3.498 GB, free: 41.7 MB / 490.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 212 * Number of variables: 212 Notification: Performance of Generate backend data structure: time 0.006769/8.629, allocations: 2.032 MB / 3.5 GB, free: 40.71 MB / 490.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.186e-05/8.629, allocations: 9.031 kB / 3.5 GB, free: 40.71 MB / 490.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.003316/8.633, allocations: 320.8 kB / 3.501 GB, free: 40.66 MB / 490.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001674/8.634, allocations: 0.7023 MB / 3.501 GB, free: 40.38 MB / 490.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001872/8.634, allocations: 299.4 kB / 3.502 GB, free: 40.12 MB / 490.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001893/8.635, allocations: 91.42 kB / 3.502 GB, free: 40.12 MB / 490.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003803/8.639, allocations: 1.461 MB / 3.503 GB, free: 39.86 MB / 490.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.685e-05/8.639, allocations: 6.938 kB / 3.503 GB, free: 39.86 MB / 490.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001473/8.639, allocations: 37.78 kB / 3.503 GB, free: 39.86 MB / 490.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.223e-05/8.639, allocations: 35.03 kB / 3.503 GB, free: 39.86 MB / 490.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003328/8.642, allocations: 1.252 MB / 3.504 GB, free: 39.85 MB / 490.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.009891/8.652, allocations: 6.367 MB / 3.511 GB, free: 35.79 MB / 490.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.003069/8.655, allocations: 0.8853 MB / 3.511 GB, free: 35.73 MB / 490.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0007444/8.656, allocations: 372 kB / 3.512 GB, free: 35.71 MB / 490.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.04203/8.698, allocations: 18.7 MB / 3.53 GB, free: 23.99 MB / 490.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.372e-05/8.698, allocations: 44.22 kB / 3.53 GB, free: 23.95 MB / 490.7 MB Notification: Performance of pre-optimization done (n=59): time 3.641e-06/8.698, allocations: 0 / 3.53 GB, free: 23.95 MB / 490.7 MB Notification: Performance of matching and sorting (n=64): time 0.008636/8.707, allocations: 2.469 MB / 3.533 GB, free: 23.39 MB / 490.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.09e-05/8.707, allocations: 164.9 kB / 3.533 GB, free: 23.2 MB / 490.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001101/8.708, allocations: 0.6941 MB / 3.533 GB, free: 23.07 MB / 490.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001533/8.708, allocations: 46.8 kB / 3.533 GB, free: 23.04 MB / 490.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003014/8.708, allocations: 470.4 kB / 3.534 GB, free: 22.7 MB / 490.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002211/8.709, allocations: 219 kB / 3.534 GB, free: 22.54 MB / 490.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.161e-05/8.709, allocations: 19.88 kB / 3.534 GB, free: 22.53 MB / 490.7 MB Notification: Performance of setup shared object (initialization): time 8.78e-05/8.709, allocations: 349.7 kB / 3.534 GB, free: 22.2 MB / 490.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0008513/8.71, allocations: 379.4 kB / 3.535 GB, free: 22.07 MB / 490.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0009703/8.711, allocations: 0.6462 MB / 3.535 GB, free: 21.59 MB / 490.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000849/8.712, allocations: 426.3 kB / 3.536 GB, free: 21.44 MB / 490.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.488e-06/8.712, allocations: 3.656 kB / 3.536 GB, free: 21.44 MB / 490.7 MB Notification: Performance of matching and sorting (n=116) (initialization): time 0.002485/8.714, allocations: 1.087 MB / 3.537 GB, free: 21.06 MB / 490.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.21e-05/8.714, allocations: 5.719 kB / 3.537 GB, free: 21.06 MB / 490.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.407e-05/8.714, allocations: 9.75 kB / 3.537 GB, free: 21.06 MB / 490.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004334/8.715, allocations: 97.06 kB / 3.537 GB, free: 21.03 MB / 490.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.005173/8.72, allocations: 426.2 kB / 3.537 GB, free: 21 MB / 490.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.007319/8.727, allocations: 6.404 MB / 3.544 GB, free: 30.82 MB / 0.4948 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001622/8.729, allocations: 146 kB / 3.544 GB, free: 30.79 MB / 0.4948 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001268/8.729, allocations: 45.31 kB / 3.544 GB, free: 30.78 MB / 0.4948 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 36 * Number of states: 0 () * Number of discrete variables: 21 (tank.heatTransfer.states[1].phase,$PRE.tank.ports_m_flow_out[1],tank.ports_m_flow_out[1],$PRE.tank.ports_m_flow_out[2],tank.ports_m_flow_out[2],$PRE.tank.ports_m_flow_out[3],tank.ports_m_flow_out[3],$PRE.tank.ports_m_flow_out[4],tank.ports_m_flow_out[4],$PRE.tank.aboveLevel[1],tank.aboveLevel[1],$PRE.tank.aboveLevel[2],tank.aboveLevel[2],$PRE.tank.aboveLevel[3],tank.aboveLevel[3],$PRE.tank.aboveLevel[4],tank.aboveLevel[4],massFlowRate[1].medium.phase,massFlowRate[2].medium.phase,Boundary_fixed.medium.phase,Boundary_fixed.state.phase) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (111): * Single equations (assignments): 106 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 4 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details: * Constant Jacobian: 0 * Linear Jacobian (size,density): 0 * Non-linear Jacobian: 4 {1,1,1,1} * Without analytic Jacobian: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 1 {1 5} Notification: Performance of prepare postOptimizeDAE: time 0.0003369/8.729, allocations: 188.5 kB / 3.544 GB, free: 30.62 MB / 0.4948 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000219/8.73, allocations: 87.12 kB / 3.544 GB, free: 30.58 MB / 0.4948 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003118/8.733, allocations: 2.071 MB / 3.546 GB, free: 29.61 MB / 0.4948 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.141e-05/8.733, allocations: 18.03 kB / 3.546 GB, free: 29.61 MB / 0.4948 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.403e-06/8.733, allocations: 3.344 kB / 3.546 GB, free: 29.61 MB / 0.4948 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.058e-05/8.733, allocations: 3.469 kB / 3.546 GB, free: 29.61 MB / 0.4948 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.005612/8.738, allocations: 3.296 MB / 3.549 GB, free: 28.11 MB / 0.4948 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.835e-06/8.738, allocations: 3.656 kB / 3.549 GB, free: 28.11 MB / 0.4948 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.004298/8.743, allocations: 375.6 kB / 3.55 GB, free: 28.09 MB / 0.4948 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0004452/8.743, allocations: 95.59 kB / 3.55 GB, free: 28.06 MB / 0.4948 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001047/8.743, allocations: 29.23 kB / 3.55 GB, free: 28.05 MB / 0.4948 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.007503/8.751, allocations: 6.375 MB / 3.556 GB, free: 21.88 MB / 0.4948 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.179e-06/8.751, allocations: 7.094 kB / 3.556 GB, free: 21.88 MB / 0.4948 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003447/8.754, allocations: 2.039 MB / 3.558 GB, free: 20.81 MB / 0.4948 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0004878/8.755, allocations: 315.7 kB / 3.558 GB, free: 20.57 MB / 0.4948 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002286/8.755, allocations: 31.5 kB / 3.558 GB, free: 20.56 MB / 0.4948 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001098/8.756, allocations: 116.4 kB / 3.558 GB, free: 20.54 MB / 0.4948 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003246/8.757, allocations: 131.3 kB / 3.559 GB, free: 20.52 MB / 0.4948 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.059e-05/8.757, allocations: 24.88 kB / 3.559 GB, free: 20.51 MB / 0.4948 GB Notification: Performance of sorting global known variables: time 0.001271/8.758, allocations: 0.7677 MB / 3.559 GB, free: 20.19 MB / 0.4948 GB Notification: Performance of sort global known variables: time 7.89e-07/8.758, allocations: 0 / 3.559 GB, free: 20.19 MB / 0.4948 GB Notification: Performance of remove unused functions: time 0.0055/8.764, allocations: 1.296 MB / 3.561 GB, free: 19.94 MB / 0.4948 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 6 * Number of states: 2 (tank.medium.h,tank.level) * Number of discrete variables: 20 ($cse3.phase,$cse3.region,$cse7.phase,$cse7.region,$cse10.phase,$cse10.region,$cse11.phase,$cse11.region,tank.heatTransfer.states[1].phase,tank.ports_m_flow_out[1],tank.ports_m_flow_out[2],tank.ports_m_flow_out[3],tank.ports_m_flow_out[4],tank.aboveLevel[1],tank.aboveLevel[2],tank.aboveLevel[3],tank.aboveLevel[4],massFlowRate[1].medium.phase,massFlowRate[2].medium.phase,Boundary_fixed.medium.phase) * Number of discrete states: 8 (tank.aboveLevel[1],tank.ports_m_flow_out[1],tank.aboveLevel[2],tank.ports_m_flow_out[2],tank.aboveLevel[3],tank.ports_m_flow_out[3],tank.aboveLevel[4],tank.ports_m_flow_out[4]) * Top-level inputs: 0 Notification: Strong component statistics for simulation (63): * Single equations (assignments): 54 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 4 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 4 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details: * Constant Jacobian: 0 * Linear Jacobian (size,density): 0 * Non-linear Jacobian: 4 {1,1,1,1} * Without analytic Jacobian: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 1 {2 4} Notification: Performance of Backend phase and start with SimCode phase: time 0.008341/8.772, allocations: 1.928 MB / 3.563 GB, free: 19.43 MB / 0.4948 GB Notification: Performance of simCode: created initialization part: time 0.005483/8.777, allocations: 1.17 MB / 3.564 GB, free: 19.06 MB / 0.4948 GB Notification: Performance of simCode: created event and clocks part: time 7.311e-06/8.777, allocations: 0 / 3.564 GB, free: 19.06 MB / 0.4948 GB Notification: Performance of simCode: created simulation system equations: time 0.004634/8.782, allocations: 0.8436 MB / 3.564 GB, free: 18.79 MB / 0.4948 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003514/8.786, allocations: 0.4987 MB / 3.565 GB, free: 18.66 MB / 0.4948 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003837/8.79, allocations: 1.931 MB / 3.567 GB, free: 17.55 MB / 0.4948 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0009801/8.791, allocations: 1.216 MB / 3.568 GB, free: 16.49 MB / 0.4948 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004256/8.791, allocations: 92.02 kB / 3.568 GB, free: 16.41 MB / 0.4948 GB Notification: Performance of SimCode: time 2.319e-06/8.791, allocations: 4 kB / 3.568 GB, free: 16.41 MB / 0.4948 GB Notification: Performance of Templates: time 0.3909/9.182, allocations: 63.44 MB / 3.63 GB, free: 54.49 MB / 0.4948 GB