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 1.965/1.965, allocations: 209.3 MB / 221.9 MB, free: 7.734 MB / 186.7 MB Notification: Performance of FrontEnd - loaded program: time 3.147e-05/3.175e-05, allocations: 4 kB / 273.1 MB, free: 3.66 MB / 218.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08784/0.08789, allocations: 48.7 MB / 321.8 MB, free: 2.863 MB / 266.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 6.153/6.241, allocations: 2.486 GB / 2.8 GB, free: 120.5 MB / 426.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0004218/6.242, allocations: 82.72 kB / 2.8 GB, free: 120.5 MB / 426.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.305/8.547, allocations: 0.5364 GB / 3.337 GB, free: 38.7 MB / 442.7 MB Notification: Performance of FrontEnd: time 2.47e-06/8.547, allocations: 0 / 3.337 GB, free: 38.7 MB / 442.7 MB Notification: Performance of Transformations before backend: time 7.087e-05/8.547, allocations: 22.22 kB / 3.337 GB, free: 38.7 MB / 442.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.006836/8.554, allocations: 1.992 MB / 3.339 GB, free: 37.81 MB / 442.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.132e-05/8.554, allocations: 6.406 kB / 3.339 GB, free: 37.81 MB / 442.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.003187/8.557, allocations: 316.5 kB / 3.339 GB, free: 37.76 MB / 442.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001779/8.559, allocations: 0.6928 MB / 3.34 GB, free: 37.48 MB / 442.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001993/8.559, allocations: 301.3 kB / 3.34 GB, free: 37.23 MB / 442.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001879/8.559, allocations: 83.41 kB / 3.34 GB, free: 37.23 MB / 442.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.004147/8.563, allocations: 1.46 MB / 3.341 GB, free: 36.97 MB / 442.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.021e-05/8.563, allocations: 5.797 kB / 3.341 GB, free: 36.97 MB / 442.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001547/8.564, allocations: 38.27 kB / 3.341 GB, free: 36.97 MB / 442.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.793e-05/8.564, allocations: 44.83 kB / 3.341 GB, free: 36.97 MB / 442.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003745/8.567, allocations: 1.248 MB / 3.343 GB, free: 36.97 MB / 442.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.01043/8.578, allocations: 6.369 MB / 3.349 GB, free: 32.91 MB / 442.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002851/8.581, allocations: 0.8771 MB / 3.35 GB, free: 32.86 MB / 442.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0007375/8.582, allocations: 378.4 kB / 3.35 GB, free: 32.84 MB / 442.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.04108/8.623, allocations: 18.61 MB / 3.368 GB, free: 21.16 MB / 442.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.449e-05/8.623, allocations: 48.2 kB / 3.368 GB, free: 21.12 MB / 442.7 MB Notification: Performance of pre-optimization done (n=59): time 3.872e-06/8.623, allocations: 0 / 3.368 GB, free: 21.12 MB / 442.7 MB Notification: Performance of matching and sorting (n=64): time 0.008812/8.632, allocations: 2.466 MB / 3.371 GB, free: 20.57 MB / 442.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.003e-05/8.632, allocations: 164 kB / 3.371 GB, free: 20.38 MB / 442.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001122/8.633, allocations: 0.6929 MB / 3.372 GB, free: 20.25 MB / 442.7 MB Notification: Performance of collectPreVariables (initialization): time 0.000161/8.633, allocations: 47.8 kB / 3.372 GB, free: 20.21 MB / 442.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003004/8.633, allocations: 474.6 kB / 3.372 GB, free: 19.93 MB / 442.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002252/8.634, allocations: 215.5 kB / 3.372 GB, free: 19.8 MB / 442.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.352e-05/8.634, allocations: 23.12 kB / 3.372 GB, free: 19.8 MB / 442.7 MB Notification: Performance of setup shared object (initialization): time 8.834e-05/8.634, allocations: 349.6 kB / 3.373 GB, free: 19.48 MB / 442.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0008078/8.635, allocations: 389.4 kB / 3.373 GB, free: 19.48 MB / 442.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0009982/8.636, allocations: 0.64 MB / 3.374 GB, free: 19.15 MB / 442.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0008939/8.637, allocations: 429.3 kB / 3.374 GB, free: 19.13 MB / 442.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.604e-06/8.637, allocations: 3.781 kB / 3.374 GB, free: 19.13 MB / 442.7 MB Notification: Performance of matching and sorting (n=116) (initialization): time 0.002567/8.639, allocations: 1.075 MB / 3.375 GB, free: 19.04 MB / 442.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.981e-05/8.639, allocations: 13.8 kB / 3.375 GB, free: 19.04 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.655e-05/8.639, allocations: 9.594 kB / 3.375 GB, free: 19.04 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004443/8.64, allocations: 92.69 kB / 3.375 GB, free: 19.03 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004516/8.644, allocations: 422.7 kB / 3.376 GB, free: 19.03 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.006991/8.651, allocations: 6.421 MB / 3.382 GB, free: 29.21 MB / 458.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001638/8.653, allocations: 137.9 kB / 3.382 GB, free: 29.19 MB / 458.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001388/8.653, allocations: 48.86 kB / 3.382 GB, free: 29.19 MB / 458.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.0003555/8.653, allocations: 176 kB / 3.382 GB, free: 29.08 MB / 458.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002316/8.654, allocations: 91.92 kB / 3.382 GB, free: 29.04 MB / 458.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003403/8.657, allocations: 2.084 MB / 3.384 GB, free: 28.75 MB / 458.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.094e-05/8.657, allocations: 21.14 kB / 3.384 GB, free: 28.75 MB / 458.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.653e-06/8.657, allocations: 0 / 3.384 GB, free: 28.75 MB / 458.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.572e-05/8.657, allocations: 7.266 kB / 3.384 GB, free: 28.75 MB / 458.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.006331/8.664, allocations: 3.288 MB / 3.388 GB, free: 28.34 MB / 458.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.271e-05/8.664, allocations: 3.562 kB / 3.388 GB, free: 28.34 MB / 458.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.004544/8.668, allocations: 375.4 kB / 3.388 GB, free: 28.33 MB / 458.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0005218/8.669, allocations: 92.44 kB / 3.388 GB, free: 28.32 MB / 458.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001534/8.669, allocations: 28.3 kB / 3.388 GB, free: 28.32 MB / 458.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.008087/8.677, allocations: 6.382 MB / 3.394 GB, free: 22.5 MB / 458.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.826e-06/8.677, allocations: 3.594 kB / 3.394 GB, free: 22.5 MB / 458.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003434/8.681, allocations: 2.031 MB / 3.396 GB, free: 22.05 MB / 458.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0006302/8.681, allocations: 319.2 kB / 3.397 GB, free: 21.87 MB / 458.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000262/8.681, allocations: 29.7 kB / 3.397 GB, free: 21.87 MB / 458.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001191/8.683, allocations: 115.2 kB / 3.397 GB, free: 21.86 MB / 458.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003379/8.683, allocations: 138 kB / 3.397 GB, free: 21.84 MB / 458.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.981e-05/8.683, allocations: 29.48 kB / 3.397 GB, free: 21.84 MB / 458.7 MB Notification: Performance of sorting global known variables: time 0.001308/8.684, allocations: 0.7646 MB / 3.398 GB, free: 21.73 MB / 458.7 MB Notification: Performance of sort global known variables: time 8.01e-07/8.685, allocations: 3.344 kB / 3.398 GB, free: 21.73 MB / 458.7 MB Notification: Performance of remove unused functions: time 0.005542/8.69, allocations: 1.291 MB / 3.399 GB, free: 21.56 MB / 458.7 MB 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.008604/8.699, allocations: 1.894 MB / 3.401 GB, free: 21.12 MB / 458.7 MB Notification: Performance of simCode: created initialization part: time 0.005519/8.704, allocations: 1.17 MB / 3.402 GB, free: 21.11 MB / 458.7 MB Notification: Performance of simCode: created event and clocks part: time 7.55e-06/8.704, allocations: 0 / 3.402 GB, free: 21.11 MB / 458.7 MB Notification: Performance of simCode: created simulation system equations: time 0.00467/8.709, allocations: 0.8409 MB / 3.403 GB, free: 21.1 MB / 458.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003446/8.712, allocations: 0.5066 MB / 3.403 GB, free: 21.06 MB / 458.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003884/8.716, allocations: 1.937 MB / 3.405 GB, free: 20.48 MB / 458.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0009793/8.717, allocations: 1.22 MB / 3.406 GB, free: 19.76 MB / 458.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004458/8.718, allocations: 85.61 kB / 3.406 GB, free: 19.75 MB / 458.7 MB Notification: Performance of SimCode: time 1.74e-06/8.718, allocations: 4 kB / 3.406 GB, free: 19.75 MB / 458.7 MB Notification: Performance of Templates: time 0.3727/9.091, allocations: 63.28 MB / 3.468 GB, free: 68.4 MB / 474.7 MB