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.1_ModelicaTest.Fluid.TestComponents.Vessels.TestTankWithTopPorts") Notification: Performance of loadModel(ModelicaTest): time 1.951/1.951, allocations: 209.3 MB / 223.8 MB, free: 444 kB / 186.7 MB Notification: Performance of FrontEnd - loaded program: time 6.337e-05/6.367e-05, allocations: 4 kB / 276.2 MB, free: 15.2 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.354/0.3541, allocations: 48.68 MB / 324.9 MB, free: 3.375 MB / 266.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Fluid.TestComponents.Vessels.TestTankWithTopPorts): time 0.08391/0.4381, allocations: 47.96 MB / 372.8 MB, free: 15.47 MB / 314.7 MB Notification: Performance of NFInst.instExpressions: time 0.02722/0.4654, allocations: 13.16 MB / 386 MB, free: 2.273 MB / 314.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001152/0.4666, allocations: 31.75 kB / 386 MB, free: 2.242 MB / 314.7 MB Notification: Performance of NFTyping.typeComponents: time 0.001408/0.468, allocations: 362.1 kB / 386.4 MB, free: 1.887 MB / 314.7 MB Notification: Performance of NFTyping.typeBindings: time 0.01615/0.4842, allocations: 3.424 MB / 389.8 MB, free: 14.45 MB / 330.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.007988/0.4922, allocations: 1.663 MB / 391.5 MB, free: 12.79 MB / 330.7 MB Notification: Performance of NFFlatten.flatten: time 0.002859/0.4951, allocations: 1.245 MB / 392.7 MB, free: 11.54 MB / 330.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001166/0.4963, allocations: 0.5625 MB / 393.3 MB, free: 10.96 MB / 330.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.009063/0.5054, allocations: 3.497 MB / 396.8 MB, free: 7.465 MB / 330.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.007979/0.5134, allocations: 3.216 MB / 400 MB, free: 4.246 MB / 330.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.02016/0.5336, allocations: 6.532 MB / 406.5 MB, free: 13.71 MB / 346.7 MB Notification: Performance of NFPackage.collectConstants: time 0.003026/0.5367, allocations: 428 kB / 406.9 MB, free: 13.29 MB / 346.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0005846/0.5373, allocations: 247.2 kB / 407.2 MB, free: 13.05 MB / 346.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0004953/0.5379, allocations: 120 kB / 407.3 MB, free: 12.93 MB / 346.7 MB Notification: Performance of NFConvertDAE.convert: time 0.009561/0.5474, allocations: 3.512 MB / 410.8 MB, free: 9.41 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.538e-06/0.5475, allocations: 0 / 410.8 MB, free: 9.41 MB / 346.7 MB Notification: Performance of FrontEnd: time 3.066e-06/0.5475, allocations: 0 / 410.8 MB, free: 9.41 MB / 346.7 MB Notification: Performance of Transformations before backend: time 2.555e-05/0.5475, allocations: 0 / 410.8 MB, free: 9.41 MB / 346.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.006428/0.554, allocations: 1.619 MB / 412.4 MB, free: 7.738 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.174e-05/0.554, allocations: 8.031 kB / 412.4 MB, free: 7.73 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.003419/0.5575, allocations: 310.6 kB / 412.7 MB, free: 7.426 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001788/0.5593, allocations: 0.6406 MB / 413.4 MB, free: 6.746 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003097/0.5596, allocations: 303.6 kB / 413.7 MB, free: 6.402 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002317/0.5599, allocations: 80 kB / 413.8 MB, free: 6.324 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.006248/0.5661, allocations: 1.519 MB / 415.3 MB, free: 4.719 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.354e-05/0.5663, allocations: 3.938 kB / 415.3 MB, free: 4.715 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002182/0.5665, allocations: 40 kB / 415.3 MB, free: 4.676 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.79e-05/0.5666, allocations: 41.98 kB / 415.4 MB, free: 4.637 MB / 346.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.006876/0.5735, allocations: 1.377 MB / 416.7 MB, free: 3.258 MB / 346.7 MB Warning: The model contains alias variables with redundant start and/or conflicting 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.01407/0.5876, allocations: 6.389 MB / 423.1 MB, free: 12.39 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.004993/0.5927, allocations: 1.002 MB / 424.1 MB, free: 11.37 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.06335/0.6561, allocations: 18.79 MB / 442.9 MB, free: 6.305 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.281e-05/0.6562, allocations: 47.06 kB / 443 MB, free: 6.25 MB / 378.7 MB Notification: Performance of pre-optimization done (n=59): time 3.396e-06/0.6562, allocations: 0 / 443 MB, free: 6.25 MB / 378.7 MB Notification: Performance of matching and sorting (n=64): time 0.01534/0.6715, allocations: 3.024 MB / 446 MB, free: 3.172 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001031/0.6717, allocations: 162.8 kB / 446.1 MB, free: 2.977 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001529/0.6732, allocations: 0.7027 MB / 446.8 MB, free: 2.266 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0002377/0.6735, allocations: 49.7 kB / 446.9 MB, free: 2.211 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0005035/0.674, allocations: 451 kB / 447.3 MB, free: 1.766 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003754/0.6744, allocations: 213.1 kB / 447.5 MB, free: 1.555 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000103/0.6745, allocations: 16 kB / 447.6 MB, free: 1.539 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 0.0002477/0.6748, allocations: 410.6 kB / 448 MB, free: 1.129 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001967/0.6768, allocations: 461.7 kB / 448.4 MB, free: 0.6758 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00224/0.6791, allocations: 0.7195 MB / 449.1 MB, free: 15.84 MB / 394.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002008/0.6811, allocations: 498.8 kB / 449.6 MB, free: 15.35 MB / 394.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.987e-06/0.6812, allocations: 0 / 449.6 MB, free: 15.35 MB / 394.7 MB Notification: Performance of matching and sorting (n=116) (initialization): time 0.005267/0.6865, allocations: 1.29 MB / 450.9 MB, free: 14.05 MB / 394.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.8e-05/0.6866, allocations: 8.125 kB / 450.9 MB, free: 14.04 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.073e-05/0.6866, allocations: 12 kB / 450.9 MB, free: 14.03 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005649/0.6872, allocations: 104.7 kB / 451 MB, free: 13.92 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.006765/0.694, allocations: 355.4 kB / 451.4 MB, free: 13.57 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.008941/0.7029, allocations: 6.422 MB / 457.8 MB, free: 6.605 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001988/0.705, allocations: 139.8 kB / 457.9 MB, free: 6.469 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002048/0.7052, allocations: 43.98 kB / 458 MB, free: 6.426 MB / 394.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.0008774/0.7061, allocations: 343.4 kB / 458.3 MB, free: 6.082 MB / 394.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003266/0.7065, allocations: 90.97 kB / 458.4 MB, free: 5.992 MB / 394.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.006628/0.7131, allocations: 2.211 MB / 460.6 MB, free: 3.758 MB / 394.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.261e-05/0.7132, allocations: 15.98 kB / 460.6 MB, free: 3.742 MB / 394.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.025e-06/0.7132, allocations: 3.953 kB / 460.6 MB, free: 3.738 MB / 394.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.905e-05/0.7133, allocations: 7.984 kB / 460.6 MB, free: 3.73 MB / 394.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01016/0.7234, allocations: 3.446 MB / 464.1 MB, free: 224 kB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.064e-05/0.7235, allocations: 0 / 464.1 MB, free: 224 kB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.00633/0.7298, allocations: 307.6 kB / 464.4 MB, free: 15.92 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0005989/0.7305, allocations: 100.8 kB / 464.5 MB, free: 15.82 MB / 410.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001492/0.7307, allocations: 23.98 kB / 464.5 MB, free: 15.79 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.008592/0.7393, allocations: 6.379 MB / 470.9 MB, free: 8.863 MB / 410.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.833e-06/0.7393, allocations: 3.938 kB / 470.9 MB, free: 8.859 MB / 410.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.006409/0.7457, allocations: 2.247 MB / 473.1 MB, free: 6.551 MB / 410.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0006793/0.7465, allocations: 314.9 kB / 473.4 MB, free: 6.223 MB / 410.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0004272/0.7469, allocations: 27.98 kB / 473.5 MB, free: 6.195 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001726/0.7487, allocations: 112 kB / 473.6 MB, free: 6.086 MB / 410.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0005182/0.7492, allocations: 136.3 kB / 473.7 MB, free: 5.953 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001187/0.7494, allocations: 35.91 kB / 473.7 MB, free: 5.918 MB / 410.7 MB Notification: Performance of sorting global known variables: time 0.001715/0.7511, allocations: 0.7735 MB / 474.5 MB, free: 5.137 MB / 410.7 MB Notification: Performance of sort global known variables: time 6.61e-07/0.7511, allocations: 0 / 474.5 MB, free: 5.137 MB / 410.7 MB Notification: Performance of remove unused functions: time 0.00475/0.7559, allocations: 1.167 MB / 475.7 MB, free: 3.969 MB / 410.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 6 * Number of states: 2 (tank.level,tank.medium.h) * 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.00776/0.7637, allocations: 1.285 MB / 477 MB, free: 2.68 MB / 410.7 MB Notification: Performance of simCode: created initialization part: time 0.008155/0.7719, allocations: 1.29 MB / 478.3 MB, free: 1.387 MB / 410.7 MB Notification: Performance of simCode: created event and clocks part: time 7.104e-06/0.772, allocations: 0 / 478.3 MB, free: 1.387 MB / 410.7 MB Notification: Performance of simCode: created simulation system equations: time 0.006369/0.7783, allocations: 0.8866 MB / 479.2 MB, free: 0.4961 MB / 410.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.2948/1.073, allocations: 0.507 MB / 479.7 MB, free: 132.9 MB / 410.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.007261/1.081, allocations: 2.961 MB / 482.6 MB, free: 131.7 MB / 410.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001149/1.082, allocations: 1.236 MB / 483.9 MB, free: 131 MB / 410.7 MB Notification: Performance of simCode: alias equations: time 0.002153/1.084, allocations: 0.5038 MB / 484.4 MB, free: 131 MB / 410.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004799/1.084, allocations: 82.3 kB / 484.4 MB, free: 131 MB / 410.7 MB Notification: Performance of SimCode: time 1.583e-06/1.084, allocations: 0 / 484.4 MB, free: 131 MB / 410.7 MB Notification: Performance of Templates: time 0.09977/1.184, allocations: 43.03 MB / 0.5151 GB, free: 102.8 MB / 410.7 MB