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_cpp_ModelicaTest.Fluid.TestComponents.Vessels.TestTankWithTopPorts") Notification: Performance of loadModel(ModelicaTest): time 2.033/2.033, allocations: 209.3 MB / 224.4 MB, free: 0.5156 MB / 186.7 MB Notification: Performance of FrontEnd - loaded program: time 3.495e-05/3.491e-05, allocations: 0 / 276.2 MB, free: 15.86 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3764/0.3765, allocations: 48.7 MB / 324.9 MB, free: 2.91 MB / 266.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Fluid.TestComponents.Vessels.TestTankWithTopPorts): time 0.08438/0.4609, allocations: 47.95 MB / 372.8 MB, free: 15.56 MB / 314.7 MB Notification: Performance of NFInst.instExpressions: time 0.02621/0.4872, allocations: 13.16 MB / 386 MB, free: 2.367 MB / 314.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001253/0.4885, allocations: 31.75 kB / 386 MB, free: 2.336 MB / 314.7 MB Notification: Performance of NFTyping.typeComponents: time 0.001652/0.4902, allocations: 366.1 kB / 386.4 MB, free: 1.977 MB / 314.7 MB Notification: Performance of NFTyping.typeBindings: time 0.01463/0.5048, allocations: 3.423 MB / 389.8 MB, free: 14.54 MB / 330.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.006928/0.5118, allocations: 1.667 MB / 391.4 MB, free: 12.87 MB / 330.7 MB Notification: Performance of NFFlatten.flatten: time 0.003086/0.5149, allocations: 1.237 MB / 392.7 MB, free: 11.63 MB / 330.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001259/0.5162, allocations: 0.5625 MB / 393.2 MB, free: 11.06 MB / 330.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.009562/0.5258, allocations: 3.497 MB / 396.7 MB, free: 7.559 MB / 330.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.008182/0.5341, allocations: 3.22 MB / 400 MB, free: 4.336 MB / 330.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.01976/0.5539, allocations: 6.532 MB / 406.5 MB, free: 13.8 MB / 346.7 MB Notification: Performance of NFPackage.collectConstants: time 0.003217/0.5572, allocations: 427.9 kB / 406.9 MB, free: 13.38 MB / 346.7 MB Notification: Performance of NFScalarize.scalarize: time 0.000753/0.558, allocations: 251.3 kB / 407.2 MB, free: 13.13 MB / 346.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0005532/0.5585, allocations: 120 kB / 407.3 MB, free: 13.02 MB / 346.7 MB Notification: Performance of NFConvertDAE.convert: time 0.009527/0.5681, allocations: 3.508 MB / 410.8 MB, free: 9.5 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.398e-06/0.5682, allocations: 0 / 410.8 MB, free: 9.5 MB / 346.7 MB Notification: Performance of FrontEnd: time 3.036e-06/0.5682, allocations: 0 / 410.8 MB, free: 9.5 MB / 346.7 MB Notification: Performance of Transformations before backend: time 4.763e-05/0.5682, allocations: 0 / 410.8 MB, free: 9.5 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.006466/0.5747, allocations: 1.619 MB / 412.4 MB, free: 7.828 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.055e-05/0.5748, allocations: 8.031 kB / 412.4 MB, free: 7.82 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.003519/0.5783, allocations: 310.5 kB / 412.7 MB, free: 7.516 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001901/0.5803, allocations: 0.6445 MB / 413.4 MB, free: 6.832 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003416/0.5807, allocations: 303.5 kB / 413.6 MB, free: 6.488 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002813/0.581, allocations: 84 kB / 413.7 MB, free: 6.406 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.005847/0.5868, allocations: 1.523 MB / 415.3 MB, free: 4.797 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.669e-05/0.5869, allocations: 4 kB / 415.3 MB, free: 4.793 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002055/0.5872, allocations: 36 kB / 415.3 MB, free: 4.758 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.77e-05/0.5873, allocations: 41.94 kB / 415.3 MB, free: 4.719 MB / 346.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.006279/0.5935, allocations: 1.377 MB / 416.7 MB, free: 3.34 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.01398/0.6076, allocations: 6.389 MB / 423.1 MB, free: 12.47 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.004953/0.6126, allocations: 1.003 MB / 424.1 MB, free: 11.45 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.06296/0.6756, allocations: 18.79 MB / 442.9 MB, free: 6.383 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.479e-05/0.6757, allocations: 47.05 kB / 442.9 MB, free: 6.328 MB / 378.7 MB Notification: Performance of pre-optimization done (n=59): time 3.106e-06/0.6757, allocations: 0 / 442.9 MB, free: 6.328 MB / 378.7 MB Notification: Performance of matching and sorting (n=64): time 0.01446/0.6902, allocations: 3.02 MB / 446 MB, free: 3.254 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001004/0.6903, allocations: 162.8 kB / 446.1 MB, free: 3.059 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001417/0.6917, allocations: 0.7066 MB / 446.8 MB, free: 2.344 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0002023/0.692, allocations: 45.69 kB / 446.9 MB, free: 2.293 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0004588/0.6924, allocations: 469.5 kB / 447.3 MB, free: 1.832 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003149/0.6928, allocations: 213.1 kB / 447.5 MB, free: 1.621 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.517e-05/0.6929, allocations: 20 kB / 447.6 MB, free: 1.602 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 0.0001728/0.6931, allocations: 354.7 kB / 447.9 MB, free: 1.246 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001838/0.6949, allocations: 461.7 kB / 448.4 MB, free: 0.793 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002038/0.697, allocations: 0.7234 MB / 449.1 MB, free: 15.95 MB / 394.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001833/0.6988, allocations: 498.8 kB / 449.6 MB, free: 15.46 MB / 394.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.203e-06/0.6989, allocations: 0 / 449.6 MB, free: 15.46 MB / 394.7 MB Notification: Performance of matching and sorting (n=116) (initialization): time 0.004626/0.7035, allocations: 1.243 MB / 450.8 MB, free: 14.21 MB / 394.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.372e-05/0.7036, allocations: 11.59 kB / 450.8 MB, free: 14.2 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.144e-05/0.7036, allocations: 8.812 kB / 450.8 MB, free: 14.19 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005609/0.7042, allocations: 100.8 kB / 450.9 MB, free: 14.09 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.006659/0.7109, allocations: 355.4 kB / 451.3 MB, free: 13.74 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.008939/0.7198, allocations: 6.414 MB / 457.7 MB, free: 6.781 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001872/0.7218, allocations: 140 kB / 457.8 MB, free: 6.645 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001662/0.722, allocations: 43.98 kB / 457.9 MB, free: 6.602 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.0008164/0.7228, allocations: 351.5 kB / 458.2 MB, free: 6.246 MB / 394.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002864/0.7231, allocations: 90.97 kB / 458.3 MB, free: 6.156 MB / 394.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.006283/0.7294, allocations: 2.2 MB / 460.5 MB, free: 3.934 MB / 394.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.609e-05/0.7295, allocations: 19.97 kB / 460.5 MB, free: 3.914 MB / 394.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.574e-06/0.7295, allocations: 3.953 kB / 460.5 MB, free: 3.91 MB / 394.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.315e-05/0.7295, allocations: 3.984 kB / 460.5 MB, free: 3.906 MB / 394.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.009327/0.7388, allocations: 3.446 MB / 464 MB, free: 404 kB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.033e-05/0.7389, allocations: 0 / 464 MB, free: 404 kB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.006356/0.7453, allocations: 303.7 kB / 464.3 MB, free: 100 kB / 394.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0006319/0.746, allocations: 112.8 kB / 464.4 MB, free: 15.98 MB / 410.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.000154/0.7461, allocations: 15.98 kB / 464.4 MB, free: 15.97 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.008959/0.7551, allocations: 6.39 MB / 470.8 MB, free: 9.027 MB / 410.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.951e-06/0.7552, allocations: 3.938 kB / 470.8 MB, free: 9.023 MB / 410.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.006307/0.7615, allocations: 2.243 MB / 473 MB, free: 6.719 MB / 410.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0006607/0.7622, allocations: 314.9 kB / 473.3 MB, free: 6.391 MB / 410.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003625/0.7626, allocations: 27.98 kB / 473.4 MB, free: 6.363 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001545/0.7641, allocations: 115.8 kB / 473.5 MB, free: 6.25 MB / 410.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004563/0.7646, allocations: 132.3 kB / 473.6 MB, free: 6.121 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001015/0.7647, allocations: 27.98 kB / 473.6 MB, free: 6.094 MB / 410.7 MB Notification: Performance of sorting global known variables: time 0.001701/0.7664, allocations: 0.7774 MB / 474.4 MB, free: 5.309 MB / 410.7 MB Notification: Performance of sort global known variables: time 5.51e-07/0.7665, allocations: 4 kB / 474.4 MB, free: 5.305 MB / 410.7 MB Notification: Performance of remove unused functions: time 0.004666/0.7711, allocations: 1.164 MB / 475.6 MB, free: 4.141 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.00708/0.7783, allocations: 1.29 MB / 476.9 MB, free: 2.852 MB / 410.7 MB Notification: Performance of simCode: created initialization part: time 0.008318/0.7866, allocations: 1.29 MB / 478.2 MB, free: 1.559 MB / 410.7 MB Notification: Performance of simCode: created event and clocks part: time 9.598e-06/0.7867, allocations: 0 / 478.2 MB, free: 1.559 MB / 410.7 MB Notification: Performance of simCode: created simulation system equations: time 0.006778/0.7935, allocations: 0.8749 MB / 479 MB, free: 0.6797 MB / 410.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004857/0.7984, allocations: 0.5085 MB / 479.5 MB, free: 176 kB / 410.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.2678/1.066, allocations: 2.994 MB / 482.5 MB, free: 131.3 MB / 410.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001131/1.067, allocations: 1.226 MB / 483.8 MB, free: 130.6 MB / 410.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005673/1.068, allocations: 85.31 kB / 483.8 MB, free: 130.6 MB / 410.7 MB Notification: Performance of SimCode: time 1.894e-06/1.068, allocations: 0 / 483.8 MB, free: 130.6 MB / 410.7 MB Notification: Performance of Templates: time 0.104/1.172, allocations: 60.27 MB / 0.5314 GB, free: 86.43 MB / 410.7 MB