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_4.0.0_ModelicaTest.Fluid.TestComponents.Vessels.TestTankWithTopPorts") Notification: Performance of loadModel(ModelicaTest): time 2.351/2.351, allocations: 270 MB / 283.6 MB, free: 3.113 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 5.506e-05/5.52e-05, allocations: 4 kB / 348.4 MB, free: 10.84 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1257/0.1258, allocations: 61.88 MB / 410.3 MB, free: 13.02 MB / 346.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 7.042/7.167, allocations: 2.771 GB / 3.171 GB, free: 164.6 MB / 0.5261 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002508/7.168, allocations: 83.89 kB / 3.171 GB, free: 164.5 MB / 0.5261 GB Notification: Performance of FrontEnd - DAE generated: time 2.307/9.474, allocations: 0.5592 GB / 3.73 GB, free: 13.24 MB / 0.5417 GB Notification: Performance of FrontEnd: time 2.789e-06/9.474, allocations: 0 / 3.73 GB, free: 13.24 MB / 0.5417 GB Notification: Performance of Transformations before backend: time 8.796e-05/9.475, allocations: 31.12 kB / 3.731 GB, free: 13.21 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.008288/9.483, allocations: 2.03 MB / 3.732 GB, free: 11.15 MB / 0.5417 GB Notification: Performance of prepare preOptimizeDAE: time 4.761e-05/9.483, allocations: 12.03 kB / 3.733 GB, free: 11.14 MB / 0.5417 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.003519/9.486, allocations: 314.5 kB / 3.733 GB, free: 10.83 MB / 0.5417 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002141/9.489, allocations: 0.6805 MB / 3.733 GB, free: 10.12 MB / 0.5417 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003422/9.489, allocations: 295.6 kB / 3.734 GB, free: 9.781 MB / 0.5417 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003088/9.489, allocations: 84 kB / 3.734 GB, free: 9.699 MB / 0.5417 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.004955/9.494, allocations: 1.482 MB / 3.735 GB, free: 8.125 MB / 0.5417 GB Notification: Performance of preOpt findStateOrder (simulation): time 4.732e-05/9.494, allocations: 3.938 kB / 3.735 GB, free: 8.121 MB / 0.5417 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002142/9.495, allocations: 44 kB / 3.735 GB, free: 8.078 MB / 0.5417 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.186e-05/9.495, allocations: 37.98 kB / 3.735 GB, free: 8.043 MB / 0.5417 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.004675/9.499, allocations: 1.257 MB / 3.737 GB, free: 6.785 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.3836/9.883, allocations: 6.408 MB / 3.743 GB, free: 59.99 MB / 0.5417 GB Notification: Performance of preOpt comSubExp (simulation): time 0.003754/9.887, allocations: 0.8908 MB / 3.744 GB, free: 59.94 MB / 0.5417 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.001025/9.888, allocations: 389.9 kB / 3.744 GB, free: 59.93 MB / 0.5417 GB Notification: Performance of preOpt evalFunc (simulation): time 0.03679/9.925, allocations: 15.6 MB / 3.759 GB, free: 50.55 MB / 0.5417 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.68e-05/9.925, allocations: 43.84 kB / 3.759 GB, free: 50.51 MB / 0.5417 GB Notification: Performance of pre-optimization done (n=59): time 4.135e-06/9.925, allocations: 0 / 3.759 GB, free: 50.51 MB / 0.5417 GB Notification: Performance of matching and sorting (n=64): time 0.009194/9.934, allocations: 2.494 MB / 3.762 GB, free: 50.07 MB / 0.5417 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.922e-05/9.934, allocations: 164.6 kB / 3.762 GB, free: 49.88 MB / 0.5417 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001457/9.936, allocations: 0.7168 MB / 3.763 GB, free: 49.75 MB / 0.5417 GB Notification: Performance of collectPreVariables (initialization): time 0.0002231/9.936, allocations: 50.72 kB / 3.763 GB, free: 49.72 MB / 0.5417 GB Notification: Performance of collectInitialEqns (initialization): time 0.0004106/9.936, allocations: 439.3 kB / 3.763 GB, free: 49.55 MB / 0.5417 GB Notification: Performance of collectInitialBindings (initialization): time 0.0002921/9.937, allocations: 215.5 kB / 3.763 GB, free: 49.45 MB / 0.5417 GB Notification: Performance of simplifyInitialFunctions (initialization): time 8.811e-05/9.937, allocations: 16.06 kB / 3.763 GB, free: 49.45 MB / 0.5417 GB Notification: Performance of setup shared object (initialization): time 0.0001865/9.937, allocations: 402.1 kB / 3.764 GB, free: 49.13 MB / 0.5417 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00103/9.938, allocations: 377.8 kB / 3.764 GB, free: 49.13 MB / 0.5417 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001196/9.939, allocations: 0.5975 MB / 3.765 GB, free: 48.88 MB / 0.5417 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001084/9.94, allocations: 403.1 kB / 3.765 GB, free: 48.87 MB / 0.5417 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.545e-06/9.94, allocations: 1.75 kB / 3.765 GB, free: 48.87 MB / 0.5417 GB Notification: Performance of matching and sorting (n=108) (initialization): time 0.003133/9.943, allocations: 1.093 MB / 3.766 GB, free: 48.76 MB / 0.5417 GB Notification: Performance of prepare postOptimizeDAE: time 3.324e-05/9.944, allocations: 11.59 kB / 3.766 GB, free: 48.76 MB / 0.5417 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.936e-05/9.944, allocations: 6.156 kB / 3.766 GB, free: 48.76 MB / 0.5417 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004725/9.944, allocations: 93.61 kB / 3.766 GB, free: 48.75 MB / 0.5417 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0046/9.949, allocations: 404.6 kB / 3.767 GB, free: 48.75 MB / 0.5417 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.006702/9.955, allocations: 6.398 MB / 3.773 GB, free: 42.96 MB / 0.5417 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001718/9.957, allocations: 142 kB / 3.773 GB, free: 42.96 MB / 0.5417 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002124/9.957, allocations: 44.05 kB / 3.773 GB, free: 42.96 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.0003681/9.958, allocations: 177.2 kB / 3.773 GB, free: 42.86 MB / 0.5417 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003142/9.958, allocations: 87.97 kB / 3.773 GB, free: 42.81 MB / 0.5417 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004211/9.962, allocations: 2.129 MB / 3.775 GB, free: 42.57 MB / 0.5417 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.266e-05/9.962, allocations: 18.89 kB / 3.775 GB, free: 42.57 MB / 0.5417 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.396e-06/9.962, allocations: 1.312 kB / 3.775 GB, free: 42.57 MB / 0.5417 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.423e-05/9.962, allocations: 3.141 kB / 3.775 GB, free: 42.57 MB / 0.5417 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.007825/9.97, allocations: 3.378 MB / 3.779 GB, free: 42.17 MB / 0.5417 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.244e-05/9.97, allocations: 3.844 kB / 3.779 GB, free: 42.17 MB / 0.5417 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.004637/9.975, allocations: 369.4 kB / 3.779 GB, free: 42.17 MB / 0.5417 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0005152/9.976, allocations: 96.73 kB / 3.779 GB, free: 42.16 MB / 0.5417 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001542/9.976, allocations: 21.16 kB / 3.779 GB, free: 42.16 MB / 0.5417 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.006689/9.982, allocations: 6.383 MB / 3.785 GB, free: 36.37 MB / 0.5417 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.723e-06/9.983, allocations: 3.938 kB / 3.785 GB, free: 36.37 MB / 0.5417 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003793/9.986, allocations: 2.065 MB / 3.787 GB, free: 35.92 MB / 0.5417 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0007162/9.987, allocations: 343.8 kB / 3.788 GB, free: 35.76 MB / 0.5417 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003668/9.987, allocations: 29.62 kB / 3.788 GB, free: 35.76 MB / 0.5417 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001419/9.989, allocations: 117.9 kB / 3.788 GB, free: 35.75 MB / 0.5417 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000447/9.989, allocations: 132.6 kB / 3.788 GB, free: 35.75 MB / 0.5417 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001135/9.99, allocations: 27.73 kB / 3.788 GB, free: 35.75 MB / 0.5417 GB Notification: Performance of sorting global known variables: time 0.001659/9.991, allocations: 0.8676 MB / 3.789 GB, free: 35.63 MB / 0.5417 GB Notification: Performance of sort global known variables: time 2.339e-06/9.991, allocations: 0 / 3.789 GB, free: 35.63 MB / 0.5417 GB Notification: Performance of remove unused functions: time 0.00628/9.998, allocations: 1.308 MB / 3.79 GB, free: 35.63 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.009357/10.01, allocations: 1.913 MB / 3.792 GB, free: 35.44 MB / 0.5417 GB Notification: Performance of simCode: created initialization part: time 0.005293/10.01, allocations: 1.163 MB / 3.793 GB, free: 35.42 MB / 0.5417 GB Notification: Performance of simCode: created event and clocks part: time 8.464e-06/10.01, allocations: 0 / 3.793 GB, free: 35.42 MB / 0.5417 GB Notification: Performance of simCode: created simulation system equations: time 0.004308/10.02, allocations: 0.8535 MB / 3.794 GB, free: 35.42 MB / 0.5417 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003652/10.02, allocations: 0.5203 MB / 3.795 GB, free: 35.41 MB / 0.5417 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004555/10.02, allocations: 1.925 MB / 3.796 GB, free: 34.95 MB / 0.5417 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0008144/10.03, allocations: 1.247 MB / 3.798 GB, free: 34.25 MB / 0.5417 GB Notification: Performance of simCode: alias equations: time 0.001642/10.03, allocations: 498 kB / 3.798 GB, free: 34.23 MB / 0.5417 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003886/10.03, allocations: 77.09 kB / 3.798 GB, free: 34.23 MB / 0.5417 GB Notification: Performance of SimCode: time 1.871e-06/10.03, allocations: 3.938 kB / 3.798 GB, free: 34.23 MB / 0.5417 GB Notification: Performance of Templates: time 0.1005/10.13, allocations: 54.28 MB / 3.851 GB, free: 31.9 MB / 0.5417 GB