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_trunk_ModelicaTest.Fluid.TestComponents.Vessels.TestTankWithTopPorts") Notification: Performance of loadModel(ModelicaTest): time 2.432/2.432, allocations: 270 MB / 283.6 MB, free: 1.906 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 2.851e-05/2.859e-05, allocations: 4 kB / 348.4 MB, free: 2.793 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3213/0.3214, allocations: 61.88 MB / 410.3 MB, free: 10.74 MB / 330.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 7.27/7.591, allocations: 2.771 GB / 3.171 GB, free: 131.3 MB / 0.5261 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002532/7.591, allocations: 84.16 kB / 3.171 GB, free: 131.3 MB / 0.5261 GB Notification: Performance of FrontEnd - DAE generated: time 2.268/9.859, allocations: 0.5592 GB / 3.73 GB, free: 11.11 MB / 0.5417 GB Notification: Performance of FrontEnd: time 3.858e-06/9.859, allocations: 0 / 3.73 GB, free: 11.11 MB / 0.5417 GB Notification: Performance of Transformations before backend: time 8.341e-05/9.859, allocations: 30.73 kB / 3.731 GB, free: 11.08 MB / 0.5417 GB 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.008103/9.868, allocations: 2.028 MB / 3.732 GB, free: 9.023 MB / 0.5417 GB Notification: Performance of prepare preOptimizeDAE: time 4.738e-05/9.868, allocations: 11.97 kB / 3.733 GB, free: 9.012 MB / 0.5417 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.003415/9.871, allocations: 318.5 kB / 3.733 GB, free: 8.699 MB / 0.5417 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002062/9.873, allocations: 0.6842 MB / 3.733 GB, free: 7.984 MB / 0.5417 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003411/9.874, allocations: 295.6 kB / 3.734 GB, free: 7.648 MB / 0.5417 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003272/9.874, allocations: 88 kB / 3.734 GB, free: 7.562 MB / 0.5417 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00455/9.878, allocations: 1.482 MB / 3.735 GB, free: 5.988 MB / 0.5417 GB Notification: Performance of preOpt findStateOrder (simulation): time 3.636e-05/9.879, allocations: 0 / 3.735 GB, free: 5.988 MB / 0.5417 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001883/9.879, allocations: 40 kB / 3.735 GB, free: 5.949 MB / 0.5417 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.205e-05/9.879, allocations: 37.98 kB / 3.735 GB, free: 5.91 MB / 0.5417 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.004174/9.883, allocations: 1.257 MB / 3.737 GB, free: 4.652 MB / 0.5417 GB 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.3722/10.26, allocations: 6.41 MB / 3.743 GB, free: 58.27 MB / 0.5417 GB Notification: Performance of preOpt comSubExp (simulation): time 0.003444/10.26, allocations: 0.892 MB / 3.744 GB, free: 58.22 MB / 0.5417 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0009485/10.26, allocations: 394 kB / 3.744 GB, free: 58.2 MB / 0.5417 GB Notification: Performance of preOpt evalFunc (simulation): time 0.03614/10.3, allocations: 15.6 MB / 3.759 GB, free: 48.82 MB / 0.5417 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.975e-05/10.3, allocations: 44.53 kB / 3.759 GB, free: 48.79 MB / 0.5417 GB Notification: Performance of pre-optimization done (n=59): time 4.268e-06/10.3, allocations: 0 / 3.759 GB, free: 48.79 MB / 0.5417 GB Notification: Performance of matching and sorting (n=64): time 0.00896/10.3, allocations: 2.501 MB / 3.762 GB, free: 48.31 MB / 0.5417 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.327e-05/10.31, allocations: 164.5 kB / 3.762 GB, free: 48.12 MB / 0.5417 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001173/10.31, allocations: 0.7153 MB / 3.763 GB, free: 47.99 MB / 0.5417 GB Notification: Performance of collectPreVariables (initialization): time 0.0002011/10.31, allocations: 54.12 kB / 3.763 GB, free: 47.96 MB / 0.5417 GB Notification: Performance of collectInitialEqns (initialization): time 0.0003613/10.31, allocations: 436.3 kB / 3.763 GB, free: 47.79 MB / 0.5417 GB Notification: Performance of collectInitialBindings (initialization): time 0.00028/10.31, allocations: 211.7 kB / 3.763 GB, free: 47.69 MB / 0.5417 GB Notification: Performance of simplifyInitialFunctions (initialization): time 8.305e-05/10.31, allocations: 17.03 kB / 3.763 GB, free: 47.69 MB / 0.5417 GB Notification: Performance of setup shared object (initialization): time 0.0001549/10.31, allocations: 400.7 kB / 3.764 GB, free: 47.38 MB / 0.5417 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0008305/10.31, allocations: 376.6 kB / 3.764 GB, free: 47.37 MB / 0.5417 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0009236/10.31, allocations: 0.6003 MB / 3.765 GB, free: 47.12 MB / 0.5417 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007909/10.31, allocations: 401.1 kB / 3.765 GB, free: 47.11 MB / 0.5417 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.958e-06/10.31, allocations: 5.688 kB / 3.765 GB, free: 47.11 MB / 0.5417 GB Notification: Performance of matching and sorting (n=108) (initialization): time 0.002622/10.31, allocations: 1.084 MB / 3.766 GB, free: 47.01 MB / 0.5417 GB Notification: Performance of prepare postOptimizeDAE: time 2.953e-05/10.31, allocations: 8.906 kB / 3.766 GB, free: 47.01 MB / 0.5417 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.446e-05/10.31, allocations: 6.781 kB / 3.766 GB, free: 47.01 MB / 0.5417 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004542/10.31, allocations: 89.91 kB / 3.766 GB, free: 47 MB / 0.5417 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004335/10.32, allocations: 412.7 kB / 3.767 GB, free: 47 MB / 0.5417 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.006503/10.32, allocations: 6.4 MB / 3.773 GB, free: 41.21 MB / 0.5417 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001565/10.33, allocations: 136.9 kB / 3.773 GB, free: 41.2 MB / 0.5417 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001779/10.33, allocations: 44.69 kB / 3.773 GB, free: 41.2 MB / 0.5417 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 28 * 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 (103): * Single equations (assignments): 98 * 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.0003265/10.33, allocations: 172.7 kB / 3.773 GB, free: 41.1 MB / 0.5417 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000279/10.33, allocations: 88.72 kB / 3.773 GB, free: 41.05 MB / 0.5417 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0033/10.33, allocations: 2.135 MB / 3.775 GB, free: 40.82 MB / 0.5417 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.636e-05/10.33, allocations: 19.73 kB / 3.775 GB, free: 40.82 MB / 0.5417 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.742e-06/10.33, allocations: 0 / 3.775 GB, free: 40.82 MB / 0.5417 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.214e-05/10.33, allocations: 3.516 kB / 3.775 GB, free: 40.82 MB / 0.5417 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.006243/10.34, allocations: 3.374 MB / 3.779 GB, free: 40.41 MB / 0.5417 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.219e-05/10.34, allocations: 3.781 kB / 3.779 GB, free: 40.41 MB / 0.5417 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.004834/10.34, allocations: 372.9 kB / 3.779 GB, free: 40.41 MB / 0.5417 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0004811/10.34, allocations: 101 kB / 3.779 GB, free: 40.4 MB / 0.5417 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001601/10.34, allocations: 19.91 kB / 3.779 GB, free: 40.4 MB / 0.5417 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.006107/10.35, allocations: 6.386 MB / 3.785 GB, free: 34.61 MB / 0.5417 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.066e-06/10.35, allocations: 0 / 3.785 GB, free: 34.61 MB / 0.5417 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0036/10.35, allocations: 2.065 MB / 3.787 GB, free: 34.17 MB / 0.5417 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0006853/10.35, allocations: 348 kB / 3.788 GB, free: 34 MB / 0.5417 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003278/10.35, allocations: 30.69 kB / 3.788 GB, free: 34 MB / 0.5417 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001422/10.35, allocations: 115.8 kB / 3.788 GB, free: 34 MB / 0.5417 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003597/10.35, allocations: 128.4 kB / 3.788 GB, free: 33.99 MB / 0.5417 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001017/10.35, allocations: 29.78 kB / 3.788 GB, free: 33.99 MB / 0.5417 GB Notification: Performance of sorting global known variables: time 0.001513/10.36, allocations: 0.8707 MB / 3.789 GB, free: 33.88 MB / 0.5417 GB Notification: Performance of sort global known variables: time 9.22e-07/10.36, allocations: 0 / 3.789 GB, free: 33.88 MB / 0.5417 GB Notification: Performance of remove unused functions: time 0.005597/10.36, allocations: 1.298 MB / 3.79 GB, free: 33.88 MB / 0.5417 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,$cse11.phase,$cse11.region,$cse12.phase,$cse12.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.008864/10.37, allocations: 1.916 MB / 3.792 GB, free: 33.69 MB / 0.5417 GB Notification: Performance of simCode: created initialization part: time 0.005431/10.38, allocations: 1.162 MB / 3.793 GB, free: 33.68 MB / 0.5417 GB Notification: Performance of simCode: created event and clocks part: time 8.106e-06/10.38, allocations: 2.969 kB / 3.793 GB, free: 33.68 MB / 0.5417 GB Notification: Performance of simCode: created simulation system equations: time 0.00475/10.38, allocations: 0.8533 MB / 3.794 GB, free: 33.67 MB / 0.5417 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003495/10.38, allocations: 0.5278 MB / 3.795 GB, free: 33.66 MB / 0.5417 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0041/10.39, allocations: 1.928 MB / 3.796 GB, free: 33.2 MB / 0.5417 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007895/10.39, allocations: 1.248 MB / 3.798 GB, free: 32.49 MB / 0.5417 GB Notification: Performance of simCode: alias equations: time 0.001811/10.39, allocations: 497.2 kB / 3.798 GB, free: 32.48 MB / 0.5417 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003674/10.39, allocations: 86.81 kB / 3.798 GB, free: 32.47 MB / 0.5417 GB Notification: Performance of SimCode: time 1.763e-06/10.39, allocations: 0 / 3.798 GB, free: 32.47 MB / 0.5417 GB Notification: Performance of Templates: time 0.1025/10.49, allocations: 54.28 MB / 3.851 GB, free: 30.13 MB / 0.5417 GB