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.733/2.733, allocations: 234.9 MB / 250.1 MB, free: 9.926 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 3.655e-05/3.654e-05, allocations: 4 kB / 308 MB, free: 15.91 MB / 266.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4304/0.4304, allocations: 54.85 MB / 362.9 MB, free: 12.07 MB / 298.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Fluid.TestComponents.Vessels.TestTankWithTopPorts): time 0.08392/0.5144, allocations: 48.33 MB / 411.2 MB, free: 13.4 MB / 346.7 MB Notification: Performance of NFInst.instExpressions: time 0.02611/0.5406, allocations: 13.27 MB / 424.4 MB, free: 108 kB / 346.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001165/0.5418, allocations: 31.75 kB / 424.5 MB, free: 76 kB / 346.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0015/0.5433, allocations: 366.1 kB / 424.8 MB, free: 15.71 MB / 362.7 MB Notification: Performance of NFTyping.typeBindings: time 0.01435/0.5577, allocations: 3.454 MB / 428.3 MB, free: 12.25 MB / 362.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.007113/0.5649, allocations: 1.702 MB / 430 MB, free: 10.54 MB / 362.7 MB Notification: Performance of NFFlatten.flatten: time 0.00311/0.568, allocations: 1.252 MB / 431.2 MB, free: 9.289 MB / 362.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001396/0.5695, allocations: 0.57 MB / 431.8 MB, free: 8.711 MB / 362.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.009533/0.579, allocations: 3.544 MB / 435.4 MB, free: 5.164 MB / 362.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.008342/0.5874, allocations: 3.243 MB / 438.6 MB, free: 1.918 MB / 362.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.02012/0.6076, allocations: 6.637 MB / 445.2 MB, free: 11.27 MB / 378.7 MB Notification: Performance of NFPackage.collectConstants: time 0.003309/0.611, allocations: 439.9 kB / 445.7 MB, free: 10.84 MB / 378.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0006751/0.6117, allocations: 251.2 kB / 445.9 MB, free: 10.6 MB / 378.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0005515/0.6123, allocations: 116 kB / 446 MB, free: 10.48 MB / 378.7 MB Notification: Performance of NFConvertDAE.convert: time 0.009841/0.6222, allocations: 3.547 MB / 449.6 MB, free: 6.93 MB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.809e-06/0.6222, allocations: 0 / 449.6 MB, free: 6.93 MB / 378.7 MB Notification: Performance of FrontEnd: time 2.574e-06/0.6222, allocations: 0 / 449.6 MB, free: 6.93 MB / 378.7 MB Notification: Performance of Transformations before backend: time 4.615e-05/0.6223, allocations: 8 kB / 449.6 MB, free: 6.922 MB / 378.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.006593/0.6289, allocations: 1.63 MB / 451.2 MB, free: 5.238 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.283e-05/0.629, allocations: 12.03 kB / 451.2 MB, free: 5.227 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.003572/0.6325, allocations: 314.5 kB / 451.5 MB, free: 4.918 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001943/0.6345, allocations: 0.6485 MB / 452.2 MB, free: 4.227 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003347/0.6349, allocations: 291.6 kB / 452.5 MB, free: 3.895 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002915/0.6352, allocations: 91.89 kB / 452.6 MB, free: 3.805 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.005608/0.6408, allocations: 1.518 MB / 454.1 MB, free: 2.203 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.429e-05/0.6409, allocations: 11.94 kB / 454.1 MB, free: 2.191 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001802/0.6411, allocations: 39.95 kB / 454.1 MB, free: 2.152 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.972e-05/0.6412, allocations: 38 kB / 454.2 MB, free: 2.117 MB / 378.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.005958/0.6472, allocations: 1.374 MB / 455.5 MB, free: 0.7422 MB / 378.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.01431/0.6616, allocations: 6.393 MB / 461.9 MB, free: 9.871 MB / 394.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.004975/0.6666, allocations: 1 MB / 462.9 MB, free: 8.855 MB / 394.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.06605/0.7327, allocations: 18.91 MB / 481.8 MB, free: 3.664 MB / 410.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.448e-05/0.7328, allocations: 43.12 kB / 481.9 MB, free: 3.613 MB / 410.7 MB Notification: Performance of pre-optimization done (n=59): time 3.226e-06/0.7328, allocations: 4 kB / 481.9 MB, free: 3.609 MB / 410.7 MB Notification: Performance of matching and sorting (n=64): time 0.01708/0.7499, allocations: 3.012 MB / 484.9 MB, free: 0.5391 MB / 410.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001519/0.7501, allocations: 166.8 kB / 485.1 MB, free: 348 kB / 410.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002094/0.7522, allocations: 0.7027 MB / 485.8 MB, free: 15.63 MB / 426.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0003457/0.7526, allocations: 49.69 kB / 485.8 MB, free: 15.57 MB / 426.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0006662/0.7533, allocations: 469.5 kB / 486.3 MB, free: 15.11 MB / 426.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0005443/0.7539, allocations: 217.1 kB / 486.5 MB, free: 14.9 MB / 426.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001408/0.754, allocations: 20 kB / 486.5 MB, free: 14.88 MB / 426.7 MB Notification: Performance of setup shared object (initialization): time 0.0002314/0.7543, allocations: 346.8 kB / 486.8 MB, free: 14.53 MB / 426.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00254/0.7569, allocations: 461.6 kB / 487.3 MB, free: 14.08 MB / 426.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003057/0.76, allocations: 0.731 MB / 488 MB, free: 13.23 MB / 426.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002783/0.7628, allocations: 490.9 kB / 488.5 MB, free: 12.75 MB / 426.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.547e-05/0.7629, allocations: 4 kB / 488.5 MB, free: 12.75 MB / 426.7 MB Notification: Performance of matching and sorting (n=116) (initialization): time 0.006834/0.7697, allocations: 1.247 MB / 489.7 MB, free: 11.49 MB / 426.7 MB Notification: Performance of prepare postOptimizeDAE: time 4.673e-05/0.7698, allocations: 8 kB / 489.8 MB, free: 11.48 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.881e-05/0.7699, allocations: 8.047 kB / 489.8 MB, free: 11.47 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0007846/0.7707, allocations: 96.78 kB / 489.9 MB, free: 11.38 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.009235/0.78, allocations: 363.8 kB / 490.2 MB, free: 11.02 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01242/0.7924, allocations: 6.414 MB / 496.6 MB, free: 4.059 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002676/0.7952, allocations: 140 kB / 496.8 MB, free: 3.922 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002501/0.7955, allocations: 43.98 kB / 496.8 MB, free: 3.879 MB / 426.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.001167/0.7967, allocations: 339.6 kB / 497.1 MB, free: 3.539 MB / 426.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004507/0.7971, allocations: 90.97 kB / 497.2 MB, free: 3.449 MB / 426.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.008848/0.806, allocations: 2.2 MB / 499.4 MB, free: 1.227 MB / 426.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.26e-05/0.8061, allocations: 23.97 kB / 499.5 MB, free: 1.203 MB / 426.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.833e-06/0.8061, allocations: 0 / 499.5 MB, free: 1.203 MB / 426.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.697e-05/0.8062, allocations: 7.984 kB / 499.5 MB, free: 1.195 MB / 426.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.3406/1.147, allocations: 3.436 MB / 0.4911 GB, free: 126.5 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.352e-05/1.147, allocations: 4.938 kB / 0.4911 GB, free: 126.5 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.006398/1.153, allocations: 304.5 kB / 0.4914 GB, free: 126.5 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0006324/1.154, allocations: 104.2 kB / 0.4915 GB, free: 126.5 MB / 426.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001871/1.154, allocations: 20.88 kB / 0.4915 GB, free: 126.5 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.007372/1.162, allocations: 6.389 MB / 0.4978 GB, free: 120.4 MB / 426.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.28e-06/1.162, allocations: 1.219 kB / 0.4978 GB, free: 120.4 MB / 426.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.006342/1.168, allocations: 2.247 MB / 0.5 GB, free: 119.4 MB / 426.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0006404/1.169, allocations: 314.8 kB / 0.5003 GB, free: 119.3 MB / 426.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0004194/1.169, allocations: 27.56 kB / 0.5003 GB, free: 119.3 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001655/1.171, allocations: 112.8 kB / 0.5004 GB, free: 119.2 MB / 426.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004573/1.171, allocations: 132.1 kB / 0.5005 GB, free: 119.2 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.000102/1.171, allocations: 27.72 kB / 0.5005 GB, free: 119.2 MB / 426.7 MB Notification: Performance of sorting global known variables: time 0.00153/1.173, allocations: 0.7807 MB / 0.5013 GB, free: 118.9 MB / 426.7 MB Notification: Performance of sort global known variables: time 8.21e-07/1.173, allocations: 0 / 0.5013 GB, free: 118.9 MB / 426.7 MB Notification: Performance of remove unused functions: time 0.004791/1.178, allocations: 1.177 MB / 0.5025 GB, free: 118.8 MB / 426.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.007216/1.185, allocations: 1.299 MB / 0.5037 GB, free: 118.7 MB / 426.7 MB Notification: Performance of simCode: created initialization part: time 0.007988/1.193, allocations: 1.291 MB / 0.505 GB, free: 118.2 MB / 426.7 MB Notification: Performance of simCode: created event and clocks part: time 1.003e-05/1.193, allocations: 0 / 0.505 GB, free: 118.2 MB / 426.7 MB Notification: Performance of simCode: created simulation system equations: time 0.006218/1.199, allocations: 0.8739 MB / 0.5058 GB, free: 117.8 MB / 426.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00481/1.204, allocations: 0.5048 MB / 0.5063 GB, free: 117.6 MB / 426.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006218/1.211, allocations: 3.004 MB / 0.5093 GB, free: 114.8 MB / 426.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007735/1.211, allocations: 1.223 MB / 0.5105 GB, free: 113.5 MB / 426.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005194/1.212, allocations: 87.42 kB / 0.5105 GB, free: 113.4 MB / 426.7 MB Notification: Performance of SimCode: time 1.853e-06/1.212, allocations: 0 / 0.5105 GB, free: 113.4 MB / 426.7 MB Notification: Performance of Templates: time 0.1006/1.313, allocations: 60.43 MB / 0.5696 GB, free: 52.98 MB / 426.7 MB