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_ModelicaTest.Fluid.TestComponents.Vessels.TestTankWithTopPorts") Notification: Performance of loadModel(ModelicaTest): time 2.364/2.364, allocations: 235 MB / 247.2 MB, free: 14.37 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 4.725e-05/4.758e-05, allocations: 4 kB / 304.9 MB, free: 5.156 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4261/0.4262, allocations: 54.85 MB / 359.8 MB, free: 3.137 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 6.186/6.613, allocations: 2.597 GB / 2.948 GB, free: 86.12 MB / 490.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002437/6.613, allocations: 79.95 kB / 2.948 GB, free: 86.04 MB / 490.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.52/9.133, allocations: 0.5503 GB / 3.498 GB, free: 42.21 MB / 490.7 MB Notification: Performance of FrontEnd: time 1.99e-06/9.133, allocations: 3.938 kB / 3.498 GB, free: 42.2 MB / 490.7 MB Notification: Performance of Transformations before backend: time 8.095e-05/9.133, allocations: 25.59 kB / 3.498 GB, free: 42.2 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.007853/9.141, allocations: 2.031 MB / 3.5 GB, free: 41.2 MB / 490.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.531e-05/9.141, allocations: 10.56 kB / 3.5 GB, free: 41.2 MB / 490.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.003829/9.145, allocations: 328.9 kB / 3.501 GB, free: 41.15 MB / 490.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001919/9.147, allocations: 0.6942 MB / 3.501 GB, free: 40.87 MB / 490.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002391/9.147, allocations: 306.4 kB / 3.502 GB, free: 40.62 MB / 490.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003203/9.148, allocations: 82.98 kB / 3.502 GB, free: 40.61 MB / 490.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.004515/9.152, allocations: 1.458 MB / 3.503 GB, free: 40.35 MB / 490.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.183e-05/9.152, allocations: 2.344 kB / 3.503 GB, free: 40.35 MB / 490.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001868/9.153, allocations: 43.23 kB / 3.503 GB, free: 40.35 MB / 490.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.192e-05/9.153, allocations: 39.48 kB / 3.503 GB, free: 40.35 MB / 490.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003986/9.157, allocations: 1.255 MB / 3.504 GB, free: 40.35 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.01049/9.167, allocations: 6.367 MB / 3.511 GB, free: 36.29 MB / 490.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.003242/9.171, allocations: 0.8806 MB / 3.511 GB, free: 36.23 MB / 490.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0008283/9.171, allocations: 374.9 kB / 3.512 GB, free: 36.21 MB / 490.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.05662/9.228, allocations: 18.69 MB / 3.53 GB, free: 24.49 MB / 490.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.161e-05/9.228, allocations: 45.38 kB / 3.53 GB, free: 24.45 MB / 490.7 MB Notification: Performance of pre-optimization done (n=59): time 8.291e-06/9.228, allocations: 0 / 3.53 GB, free: 24.45 MB / 490.7 MB Notification: Performance of matching and sorting (n=64): time 0.01601/9.244, allocations: 2.467 MB / 3.533 GB, free: 23.86 MB / 490.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.6e-05/9.244, allocations: 172 kB / 3.533 GB, free: 23.66 MB / 490.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002266/9.247, allocations: 0.6898 MB / 3.533 GB, free: 23.38 MB / 490.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0003168/9.247, allocations: 50.08 kB / 3.533 GB, free: 23.33 MB / 490.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0006423/9.248, allocations: 459.4 kB / 3.534 GB, free: 22.97 MB / 490.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0004828/9.248, allocations: 221 kB / 3.534 GB, free: 22.81 MB / 490.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001683/9.248, allocations: 19.31 kB / 3.534 GB, free: 22.79 MB / 490.7 MB Notification: Performance of setup shared object (initialization): time 0.0002776/9.249, allocations: 398.6 kB / 3.534 GB, free: 22.45 MB / 490.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001695/9.25, allocations: 382.1 kB / 3.535 GB, free: 22.31 MB / 490.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002069/9.253, allocations: 0.6411 MB / 3.535 GB, free: 21.83 MB / 490.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001864/9.254, allocations: 426 kB / 3.536 GB, free: 21.69 MB / 490.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.6e-05/9.255, allocations: 2.594 kB / 3.536 GB, free: 21.69 MB / 490.7 MB Notification: Performance of matching and sorting (n=116) (initialization): time 0.002965/9.258, allocations: 1.132 MB / 3.537 GB, free: 21.27 MB / 490.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.988e-05/9.258, allocations: 7.25 kB / 3.537 GB, free: 21.27 MB / 490.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.753e-05/9.258, allocations: 7.938 kB / 3.537 GB, free: 21.27 MB / 490.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004631/9.258, allocations: 91.33 kB / 3.537 GB, free: 21.24 MB / 490.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004682/9.263, allocations: 429.3 kB / 3.537 GB, free: 21.21 MB / 490.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.006409/9.269, allocations: 6.4 MB / 3.544 GB, free: 15.04 MB / 490.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001805/9.271, allocations: 146.9 kB / 3.544 GB, free: 15 MB / 490.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001638/9.271, allocations: 45.34 kB / 3.544 GB, free: 14.99 MB / 490.7 MB 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.000328/9.272, allocations: 185.6 kB / 3.544 GB, free: 14.83 MB / 490.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002552/9.272, allocations: 90.53 kB / 3.544 GB, free: 14.79 MB / 490.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003331/9.275, allocations: 2.075 MB / 3.546 GB, free: 13.82 MB / 490.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.651e-05/9.275, allocations: 15.19 kB / 3.546 GB, free: 13.82 MB / 490.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.852e-06/9.275, allocations: 3.938 kB / 3.546 GB, free: 13.82 MB / 490.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.217e-05/9.275, allocations: 3.328 kB / 3.546 GB, free: 13.82 MB / 490.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.006208/9.282, allocations: 3.302 MB / 3.549 GB, free: 12.32 MB / 490.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.219e-05/9.282, allocations: 3.562 kB / 3.549 GB, free: 12.32 MB / 490.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.004156/9.286, allocations: 368.8 kB / 3.55 GB, free: 12.3 MB / 490.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0004945/9.286, allocations: 110.1 kB / 3.55 GB, free: 12.26 MB / 490.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001613/9.287, allocations: 17.84 kB / 3.55 GB, free: 12.25 MB / 490.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00807/9.295, allocations: 6.373 MB / 3.556 GB, free: 22.09 MB / 0.4948 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.173e-06/9.295, allocations: 7.781 kB / 3.556 GB, free: 22.09 MB / 0.4948 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003722/9.298, allocations: 2.043 MB / 3.558 GB, free: 21.02 MB / 0.4948 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0006805/9.299, allocations: 314.1 kB / 3.558 GB, free: 20.79 MB / 0.4948 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003243/9.3, allocations: 35.39 kB / 3.558 GB, free: 20.77 MB / 0.4948 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001435/9.301, allocations: 109.9 kB / 3.559 GB, free: 20.75 MB / 0.4948 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003753/9.301, allocations: 132.5 kB / 3.559 GB, free: 20.73 MB / 0.4948 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001077/9.302, allocations: 29.94 kB / 3.559 GB, free: 20.72 MB / 0.4948 GB Notification: Performance of sorting global known variables: time 0.001458/9.303, allocations: 0.7659 MB / 3.559 GB, free: 20.4 MB / 0.4948 GB Notification: Performance of sort global known variables: time 9.21e-07/9.303, allocations: 0 / 3.559 GB, free: 20.4 MB / 0.4948 GB Notification: Performance of remove unused functions: time 0.006094/9.309, allocations: 1.296 MB / 3.561 GB, free: 20.14 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.009554/9.319, allocations: 1.912 MB / 3.563 GB, free: 19.64 MB / 0.4948 GB Notification: Performance of simCode: created initialization part: time 0.005125/9.324, allocations: 1.173 MB / 3.564 GB, free: 19.27 MB / 0.4948 GB Notification: Performance of simCode: created event and clocks part: time 8.629e-06/9.324, allocations: 3.938 kB / 3.564 GB, free: 19.27 MB / 0.4948 GB Notification: Performance of simCode: created simulation system equations: time 0.004699/9.329, allocations: 0.8529 MB / 3.565 GB, free: 18.99 MB / 0.4948 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003405/9.332, allocations: 0.5056 MB / 3.565 GB, free: 18.87 MB / 0.4948 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004106/9.336, allocations: 1.903 MB / 3.567 GB, free: 18.02 MB / 0.4948 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.00103/9.337, allocations: 1.232 MB / 3.568 GB, free: 17.26 MB / 0.4948 GB Notification: Performance of simCode: alias equations: time 0.001715/9.339, allocations: 495.2 kB / 3.569 GB, free: 17.23 MB / 0.4948 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003532/9.339, allocations: 84.95 kB / 3.569 GB, free: 17.21 MB / 0.4948 GB Notification: Performance of SimCode: time 1.884e-06/9.339, allocations: 0 / 3.569 GB, free: 17.21 MB / 0.4948 GB Notification: Performance of Templates: time 0.4186/9.758, allocations: 53.75 MB / 3.621 GB, free: 55.98 MB / 0.4948 GB