Running command: translateModel(ModelicaTest.Fluid.TestExamplesVariants.HeatingSystem_SteadyState,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|tank.m|m_flow|T_forward|T_return|tankLevel|tank.ports.1..m_flow|tank.ports.1..p|tank.ports.1..h_outflow|tank.ports.2..m_flow|tank.ports.2..p|tank.ports.2..h_outflow|tank.portsData.1..diameter|tank.portsData.1..height|tank.portsData.1..zeta_out|tank.portsData.1..zeta_in|tank.portsData.2..diameter|tank.portsData.2..height|tank.portsData.2..zeta_out|tank.portsData.2..zeta_in|tank.ports_H_flow.1.|tank.ports_H_flow.2.|tank.ports_E_flow.1.|tank.ports_E_flow.2.|tank.ports_penetration.1.|tank.ports_penetration.2.|tank.portsData_diameter_internal.1.|tank.portsData_diameter_internal.2.|tank.portsData_height_internal.1.|tank.portsData_height_internal.2.|tank.portsData_zeta_in_internal.1.|tank.portsData_zeta_in_internal.2.|tank.portsData_zeta_out_internal.1.|tank.portsData_zeta_out_internal.2.|tank.portsData_diameter.1.|tank.portsData_diameter.2.|tank.portsData_height.1.|tank.portsData_height.2.|tank.portsData_zeta_in.1.|tank.portsData_zeta_in.2.|tank.portsData_zeta_out.1.|tank.portsData_zeta_out.2.|pump.port_b.m_flow|pump.port_b.p|pump.port_b.h_outflow|valve.port_b.m_flow|valve.port_b.p|valve.port_b.h_outflow|valve.minLimiter.y|sensor_m_flow.port_b.m_flow|sensor_m_flow.port_b.p|sensor_m_flow.port_b.h_outflow|heater.port_b.m_flow|heater.port_b.p|heater.port_b.h_outflow|radiator.port_b.m_flow|radiator.port_b.p|radiator.port_b.h_outflow|handle.y|pipe.port_b.m_flow|pipe.port_b.p|pipe.port_b.h_outflow",fileNamePrefix="ModelicaTest_3.2.1_cpp_ModelicaTest.Fluid.TestExamplesVariants.HeatingSystem_SteadyState") Notification: Performance of loadModel(ModelicaTest): time 1.897/1.897, allocations: 209.3 MB / 221.9 MB, free: 7.742 MB / 186.7 MB Notification: Performance of FrontEnd - loaded program: time 3.179e-05/3.195e-05, allocations: 8 kB / 273.1 MB, free: 3.652 MB / 218.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08695/0.08701, allocations: 48.69 MB / 321.8 MB, free: 2.863 MB / 266.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 6.222/6.309, allocations: 2.56 GB / 2.874 GB, free: 89.02 MB / 442.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002249/6.309, allocations: 85.25 kB / 2.874 GB, free: 88.98 MB / 442.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.735/11.04, allocations: 0.9956 GB / 3.869 GB, free: 32.03 MB / 490.7 MB Notification: Performance of FrontEnd: time 2.443e-06/11.04, allocations: 0.7812 kB / 3.869 GB, free: 32.03 MB / 490.7 MB Notification: Performance of Transformations before backend: time 0.0003196/11.04, allocations: 75.33 kB / 3.869 GB, free: 32.02 MB / 490.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 670 * Number of variables: 670 Notification: Performance of Generate backend data structure: time 0.01639/11.06, allocations: 4.263 MB / 3.874 GB, free: 30.17 MB / 490.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.561e-05/11.06, allocations: 11.5 kB / 3.874 GB, free: 30.17 MB / 490.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01096/11.07, allocations: 0.9831 MB / 3.875 GB, free: 30 MB / 490.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.007827/11.08, allocations: 2.23 MB / 3.877 GB, free: 29.52 MB / 490.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0004319/11.08, allocations: 285.1 kB / 3.877 GB, free: 29.45 MB / 490.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001061/11.08, allocations: 241.2 kB / 3.877 GB, free: 29.45 MB / 490.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.014/11.09, allocations: 4.42 MB / 3.882 GB, free: 28.86 MB / 490.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.584e-05/11.1, allocations: 7.094 kB / 3.882 GB, free: 28.86 MB / 490.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.000717/11.1, allocations: 112.4 kB / 3.882 GB, free: 28.86 MB / 490.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0003177/11.1, allocations: 225.8 kB / 3.882 GB, free: 28.85 MB / 490.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01293/11.11, allocations: 3.979 MB / 3.886 GB, free: 28.84 MB / 490.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.03313/11.14, allocations: 19.05 MB / 3.904 GB, free: 17.91 MB / 490.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.007772/11.15, allocations: 2.657 MB / 3.907 GB, free: 17.86 MB / 490.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002767/11.15, allocations: 1.296 MB / 3.908 GB, free: 17.85 MB / 490.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.03992/11.19, allocations: 17.05 MB / 3.925 GB, free: 23.33 MB / 0.4948 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.733e-05/11.19, allocations: 60.92 kB / 3.925 GB, free: 23.29 MB / 0.4948 GB Notification: Performance of preOpt simplifyInStream (simulation): time 0.002179/11.2, allocations: 358.2 kB / 3.925 GB, free: 23.18 MB / 0.4948 GB Notification: Performance of pre-optimization done (n=181): time 8.506e-06/11.2, allocations: 0 / 3.925 GB, free: 23.18 MB / 0.4948 GB Warning: Some equations could not be differentiated for following variables having attribute stateSelect=StateSelect.prefer. They will be treated as if they had stateSelect=StateSelect.default ======================================== 1: pump.medium.p 2: tank.medium.h 3: radiator.mediums[1].h 4: pipe.mediums[2].h 5: pipe.mediums[2].p 6: pipe.mediums[1].p 7: pipe.mediums[1].h 8: heater.mediums[1].h 9: radiator.mediums[1].p 10: pump.medium.h 11: heater.mediums[1].p Please use -d=bltdump for more information. Notification: Performance of matching and sorting (n=283): time 0.6276/11.82, allocations: 62.2 MB / 3.986 GB, free: 18.82 MB / 0.4948 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.6833/12.51, allocations: 87.08 MB / 4.071 GB, free: 47.47 MB / 0.5105 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003368/12.51, allocations: 1.668 MB / 4.073 GB, free: 47.25 MB / 0.5105 GB Notification: Performance of collectPreVariables (initialization): time 0.000797/12.51, allocations: 79.16 kB / 4.073 GB, free: 47.22 MB / 0.5105 GB Notification: Performance of collectInitialEqns (initialization): time 0.0008173/12.51, allocations: 1.086 MB / 4.074 GB, free: 46.78 MB / 0.5105 GB Notification: Performance of collectInitialBindings (initialization): time 0.001345/12.51, allocations: 0.9446 MB / 4.075 GB, free: 46.26 MB / 0.5105 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0004584/12.51, allocations: 59.78 kB / 4.075 GB, free: 46.26 MB / 0.5105 GB Notification: Performance of setup shared object (initialization): time 0.000191/12.51, allocations: 427.8 kB / 4.075 GB, free: 45.95 MB / 0.5105 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.005461/12.52, allocations: 2.572 MB / 4.078 GB, free: 45.93 MB / 0.5105 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.006177/12.53, allocations: 3.116 MB / 4.081 GB, free: 45.37 MB / 0.5105 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.007634/12.53, allocations: 2.999 MB / 4.084 GB, free: 45.32 MB / 0.5105 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.459e-05/12.53, allocations: 4.531 kB / 4.084 GB, free: 45.32 MB / 0.5105 GB Notification: Performance of matching and sorting (n=372) (initialization): time 0.0215/12.55, allocations: 8.483 MB / 4.092 GB, free: 45.12 MB / 0.5105 GB Notification: Performance of prepare postOptimizeDAE: time 0.001186/12.56, allocations: 5.838 MB / 4.098 GB, free: 39.08 MB / 0.5105 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.043e-05/12.56, allocations: 16.69 kB / 4.098 GB, free: 39.08 MB / 0.5105 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.09706/12.65, allocations: 16.39 MB / 4.114 GB, free: 38.7 MB / 0.5105 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002422/12.66, allocations: 377.7 kB / 4.114 GB, free: 38.7 MB / 0.5105 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.02396/12.68, allocations: 10.08 MB / 4.124 GB, free: 37.54 MB / 0.5105 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.005761/12.68, allocations: 404.9 kB / 4.124 GB, free: 37.53 MB / 0.5105 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001034/12.69, allocations: 182.6 kB / 4.125 GB, free: 37.53 MB / 0.5105 GB Notification: Performance of prepare postOptimizeDAE: time 1.453e-05/12.69, allocations: 6.938 kB / 4.125 GB, free: 37.53 MB / 0.5105 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.01996/12.71, allocations: 7.936 MB / 4.132 GB, free: 37.41 MB / 0.5105 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.756e-05/12.71, allocations: 16.78 kB / 4.132 GB, free: 37.41 MB / 0.5105 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.03821/12.74, allocations: 8.125 MB / 4.14 GB, free: 37.28 MB / 0.5105 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002571/12.75, allocations: 452 kB / 4.141 GB, free: 37.28 MB / 0.5105 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.02077/12.77, allocations: 9.175 MB / 4.15 GB, free: 36.14 MB / 0.5105 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004977/12.77, allocations: 401.1 kB / 4.15 GB, free: 36.13 MB / 0.5105 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0009814/12.77, allocations: 174.8 kB / 4.15 GB, free: 36.13 MB / 0.5105 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 67 * Number of states: 0 () * Number of discrete variables: 19 (radiator.state_b.phase,radiator.state_a.phase,heater.state_b.phase,heater.state_a.phase,tank.heatTransfer.states[1].phase,tank.regularFlow[1],tank.regularFlow[2],tank.inFlow[1],tank.inFlow[2],pump.heatTransfer.states[1].phase,heater.statesFM[2].phase,radiator.statesFM[2].phase,pipe.statesFM[1].phase,pipe.statesFM[2].phase,pipe.state_b.phase,pipe.state_a.phase,valve.state_b.phase,valve.state_a.phase,pump.monitoring.state_in.phase) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (178): * Single equations (assignments): 176 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 2 {15 79,17 85} Notification: Performance of prepare postOptimizeDAE: time 0.001326/12.78, allocations: 268 kB / 4.15 GB, free: 36.02 MB / 0.5105 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0009824/12.78, allocations: 254.7 kB / 4.151 GB, free: 35.89 MB / 0.5105 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.03317/12.81, allocations: 17.21 MB / 4.167 GB, free: 32.57 MB / 0.5105 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0001424/12.81, allocations: 121.2 kB / 4.168 GB, free: 32.54 MB / 0.5105 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.171e-06/12.81, allocations: 0 / 4.168 GB, free: 32.54 MB / 0.5105 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.02696/12.84, allocations: 15.4 MB / 4.183 GB, free: 25.6 MB / 0.5105 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.05249/12.89, allocations: 27.24 MB / 4.209 GB, free: 10.94 MB / 0.5105 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.667e-05/12.89, allocations: 4 kB / 4.209 GB, free: 10.93 MB / 0.5105 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001455/12.89, allocations: 233 kB / 4.209 GB, free: 10.75 MB / 0.5105 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.4509/13.34, allocations: 26.9 MB / 4.236 GB, free: 60 MB / 0.5261 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.00086/13.34, allocations: 106.1 kB / 4.236 GB, free: 60 MB / 0.5261 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.02872/13.37, allocations: 15.5 MB / 4.251 GB, free: 58.83 MB / 0.5261 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 0.4102/13.78, allocations: 144.4 MB / 4.392 GB, free: 27.25 MB / 0.5261 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.3964/14.18, allocations: 22.45 MB / 4.414 GB, free: 59.63 MB / 0.5261 GB Notification: Performance of postOpt removeConstants (simulation): time 0.003826/14.18, allocations: 1.157 MB / 4.415 GB, free: 59.54 MB / 0.5261 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001259/14.18, allocations: 56.19 kB / 4.415 GB, free: 59.54 MB / 0.5261 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.005553/14.19, allocations: 435 kB / 4.416 GB, free: 59.54 MB / 0.5261 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001185/14.19, allocations: 262 kB / 4.416 GB, free: 59.54 MB / 0.5261 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0005892/14.19, allocations: 141.1 kB / 4.416 GB, free: 59.54 MB / 0.5261 GB Notification: Performance of sorting global known variables: time 0.003101/14.19, allocations: 1.326 MB / 4.417 GB, free: 59.38 MB / 0.5261 GB Notification: Performance of sort global known variables: time 9.65e-07/14.19, allocations: 3.312 kB / 4.417 GB, free: 59.38 MB / 0.5261 GB Notification: Performance of remove unused functions: time 0.031/14.22, allocations: 7.19 MB / 4.424 GB, free: 59.25 MB / 0.5261 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 9 * Number of states: 1 ($STATESET1.x) * Number of discrete variables: 60 ($cse85.phase,$cse85.region,$cse88.phase,$cse88.region,$cse89.phase,$cse89.region,$cse91.phase,$cse91.region,$cse93.phase,$cse93.region,$cse94.region3boundary,$cse95.region3boundary,$cse96.phase,$cse96.region,$cse97.phase,$cse97.region,$cse101.phase,$cse101.region,$cse102.phase,$cse102.region,$cse105.phase,$cse105.region,$cse106.phase,$cse106.region,$cse107.region3boundary,$cse108.region3boundary,$cse109.phase,$cse109.region,$cse116.phase,$cse116.region,$cse117.phase,$cse117.region,$cse118.region3boundary,$cse119.region3boundary,$cse120.phase,$cse120.region,$cse130.phase,$cse130.region,$cse131.phase,$cse131.region,$cse132.phase,$cse132.region,$cse133.region3boundary,$cse134.region3boundary,$cse135.phase,$cse135.region,$cse136.region3boundary,$cse137.region3boundary,$cse138.phase,$cse138.region,tank.heatTransfer.states[1].phase,tank.regularFlow[1],tank.regularFlow[2],tank.inFlow[1],tank.inFlow[2],pump.heatTransfer.states[1].phase,heater.statesFM[2].phase,radiator.statesFM[2].phase,pipe.statesFM[1].phase,pipe.statesFM[2].phase) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (112): * Single equations (assignments): 103 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 7 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 2 {15 82,19 121} Notification: Performance of Backend phase and start with SimCode phase: time 0.03929/14.26, allocations: 5.715 MB / 4.43 GB, free: 58.56 MB / 0.5261 GB Notification: Performance of simCode: created initialization part: time 0.03275/14.3, allocations: 11.7 MB / 4.441 GB, free: 58.39 MB / 0.5261 GB Notification: Performance of simCode: created event and clocks part: time 1.249e-05/14.3, allocations: 3.531 kB / 4.441 GB, free: 58.39 MB / 0.5261 GB Notification: Performance of simCode: created simulation system equations: time 0.015/14.31, allocations: 5.629 MB / 4.447 GB, free: 58.3 MB / 0.5261 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00755/14.32, allocations: 1.074 MB / 4.448 GB, free: 58.27 MB / 0.5261 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02392/14.34, allocations: 11.68 MB / 4.459 GB, free: 55.88 MB / 0.5261 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.003736/14.35, allocations: 2.986 MB / 4.462 GB, free: 55.05 MB / 0.5261 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.00236/14.35, allocations: 316.7 kB / 4.462 GB, free: 55.05 MB / 0.5261 GB Notification: Performance of SimCode: time 1.803e-06/14.35, allocations: 3.656 kB / 4.462 GB, free: 55.05 MB / 0.5261 GB Notification: Performance of Templates: time 0.7558/15.11, allocations: 215.8 MB / 4.673 GB, free: 55.01 MB / 0.5261 GB