Running command: translateModel(Modelica.Fluid.Examples.HeatingSystem,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|heater.mediums.1..h|heater.mediums.1..p|pipe.mediums.1..h|pipe.mediums.1..p|pipe.mediums.2..h|pipe.mediums.2..p|radiator.mediums.1..h|radiator.mediums.1..p|tank.level|tank.medium.h",fileNamePrefix="Modelica_3.2.2_Modelica.Fluid.Examples.HeatingSystem") Notification: Performance of loadModel(Modelica): time 1.992/1.992, allocations: 194.9 MB / 208 MB, free: 3.25 MB / 170.7 MB Notification: Performance of FrontEnd - loaded program: time 2.725e-05/2.743e-05, allocations: 4 kB / 255.4 MB, free: 2.719 MB / 202.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08263/0.08268, allocations: 44.5 MB / 299.9 MB, free: 6.156 MB / 250.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 6.38/6.462, allocations: 2.661 GB / 2.954 GB, free: 101.8 MB / 410.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002238/6.463, allocations: 77.44 kB / 2.954 GB, free: 101.8 MB / 410.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.945/11.41, allocations: 1.022 GB / 3.976 GB, free: 26.65 MB / 458.7 MB Notification: Performance of FrontEnd: time 2.649e-06/11.41, allocations: 0 / 3.976 GB, free: 26.65 MB / 458.7 MB Notification: Performance of Transformations before backend: time 0.0002794/11.41, allocations: 74.11 kB / 3.976 GB, free: 26.64 MB / 458.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.01658/11.42, allocations: 4.389 MB / 3.98 GB, free: 24.57 MB / 458.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.458e-05/11.42, allocations: 7.094 kB / 3.98 GB, free: 24.57 MB / 458.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01009/11.43, allocations: 1.029 MB / 3.981 GB, free: 24.41 MB / 458.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.007543/11.44, allocations: 2.205 MB / 3.983 GB, free: 23.92 MB / 458.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0004343/11.44, allocations: 284.7 kB / 3.983 GB, free: 23.85 MB / 458.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001126/11.44, allocations: 252 kB / 3.984 GB, free: 23.84 MB / 458.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01323/11.46, allocations: 4.435 MB / 3.988 GB, free: 23.26 MB / 458.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.737e-05/11.46, allocations: 6.906 kB / 3.988 GB, free: 23.26 MB / 458.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0005689/11.46, allocations: 106.3 kB / 3.988 GB, free: 23.26 MB / 458.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0003024/11.46, allocations: 222.5 kB / 3.988 GB, free: 23.25 MB / 458.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01291/11.47, allocations: 3.996 MB / 3.992 GB, free: 23.23 MB / 458.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.03217/11.5, allocations: 19.01 MB / 4.011 GB, free: 12.41 MB / 458.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.007551/11.51, allocations: 2.768 MB / 4.013 GB, free: 12.35 MB / 458.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.003083/11.51, allocations: 1.477 MB / 4.015 GB, free: 12.34 MB / 458.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.04049/11.55, allocations: 17.06 MB / 4.032 GB, free: 17.82 MB / 474.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.18e-05/11.55, allocations: 57.22 kB / 4.032 GB, free: 17.78 MB / 474.7 MB Notification: Performance of preOpt simplifyInStream (simulation): time 0.001971/11.56, allocations: 238.9 kB / 4.032 GB, free: 17.68 MB / 474.7 MB Notification: Performance of pre-optimization done (n=194): time 6.931e-06/11.56, allocations: 2.188 kB / 4.032 GB, free: 17.68 MB / 474.7 MB 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: pump.medium.h Please use -d=bltdump for more information. Notification: Performance of matching and sorting (n=215): time 0.04174/11.6, allocations: 11.19 MB / 4.043 GB, free: 16.69 MB / 474.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001/11.6, allocations: 127.1 kB / 4.043 GB, free: 16.57 MB / 474.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003257/11.6, allocations: 1.657 MB / 4.045 GB, free: 16.32 MB / 474.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0005062/11.6, allocations: 66.23 kB / 4.045 GB, free: 16.29 MB / 474.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0008962/11.6, allocations: 1.147 MB / 4.046 GB, free: 15.82 MB / 474.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0009186/11.6, allocations: 0.7309 MB / 4.046 GB, free: 15.35 MB / 474.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002759/11.6, allocations: 46.19 kB / 4.046 GB, free: 15.35 MB / 474.7 MB Notification: Performance of setup shared object (initialization): time 0.0002787/11.6, allocations: 410 kB / 4.047 GB, free: 15.04 MB / 474.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002779/11.61, allocations: 1.319 MB / 4.048 GB, free: 15.03 MB / 474.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003104/11.61, allocations: 1.801 MB / 4.05 GB, free: 14.5 MB / 474.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003084/11.61, allocations: 1.535 MB / 4.051 GB, free: 14.46 MB / 474.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.402e-05/11.61, allocations: 3.75 kB / 4.051 GB, free: 14.46 MB / 474.7 MB Notification: Performance of matching and sorting (n=306) (initialization): time 0.01053/11.62, allocations: 4.568 MB / 4.056 GB, free: 14.24 MB / 474.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.002643/11.63, allocations: 5.54 MB / 4.061 GB, free: 8.418 MB / 474.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.607e-05/11.63, allocations: 13.47 kB / 4.061 GB, free: 8.418 MB / 474.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.02076/11.65, allocations: 3.765 MB / 4.065 GB, free: 8.309 MB / 474.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001801/11.65, allocations: 313.4 kB / 4.065 GB, free: 8.309 MB / 474.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.009691/11.66, allocations: 4.569 MB / 4.07 GB, free: 7.699 MB / 474.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003895/11.66, allocations: 317.1 kB / 4.07 GB, free: 7.66 MB / 474.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0005352/11.66, allocations: 122.4 kB / 4.07 GB, free: 7.66 MB / 474.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.412e-05/11.66, allocations: 3.469 kB / 4.07 GB, free: 7.66 MB / 474.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.008955/11.67, allocations: 3.888 MB / 4.074 GB, free: 7.594 MB / 474.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.365e-05/11.67, allocations: 16.7 kB / 4.074 GB, free: 7.59 MB / 474.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.01171/11.68, allocations: 2.607 MB / 4.077 GB, free: 7.508 MB / 474.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002242/11.69, allocations: 378.9 kB / 4.077 GB, free: 7.504 MB / 474.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.006851/11.69, allocations: 3.551 MB / 4.08 GB, free: 6.918 MB / 474.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004015/11.7, allocations: 318.6 kB / 4.081 GB, free: 6.875 MB / 474.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0006472/11.7, allocations: 113.8 kB / 4.081 GB, free: 6.875 MB / 474.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 61 * 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 (166): * Single equations (assignments): 165 * 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: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 1 {19 122} Notification: Performance of prepare postOptimizeDAE: time 0.0008636/11.7, allocations: 247 kB / 4.081 GB, free: 6.75 MB / 474.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0007157/11.7, allocations: 231.1 kB / 4.081 GB, free: 6.633 MB / 474.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01583/11.72, allocations: 9.379 MB / 4.09 GB, free: 3.324 MB / 474.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0001323/11.72, allocations: 113.4 kB / 4.09 GB, free: 3.254 MB / 474.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.349e-05/11.72, allocations: 0 / 4.09 GB, free: 3.254 MB / 474.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.01604/11.73, allocations: 8.271 MB / 4.099 GB, free: 11.73 MB / 490.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.03014/11.76, allocations: 13.61 MB / 4.112 GB, free: 0 / 490.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.103e-05/11.76, allocations: 0 / 4.112 GB, free: 0 / 490.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.005629/11.77, allocations: 0.5437 MB / 4.112 GB, free: 0 / 490.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.4066/12.17, allocations: 2.676 MB / 4.115 GB, free: 55.83 MB / 490.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0005985/12.18, allocations: 79.08 kB / 4.115 GB, free: 55.83 MB / 490.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.007335/12.18, allocations: 6.92 MB / 4.122 GB, free: 51.69 MB / 490.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.897e-06/12.18, allocations: 2.719 kB / 4.122 GB, free: 51.69 MB / 490.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01849/12.2, allocations: 9.957 MB / 4.132 GB, free: 51.08 MB / 490.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.002643/12.2, allocations: 0.83 MB / 4.132 GB, free: 50.97 MB / 490.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001138/12.21, allocations: 59.81 kB / 4.132 GB, free: 50.96 MB / 490.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.003562/12.21, allocations: 263.6 kB / 4.133 GB, free: 50.96 MB / 490.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0007847/12.21, allocations: 198.9 kB / 4.133 GB, free: 50.95 MB / 490.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0003355/12.21, allocations: 86.95 kB / 4.133 GB, free: 50.95 MB / 490.7 MB Notification: Performance of sorting global known variables: time 0.002957/12.21, allocations: 1.312 MB / 4.134 GB, free: 50.79 MB / 490.7 MB Notification: Performance of sort global known variables: time 1.209e-06/12.21, allocations: 6.938 kB / 4.134 GB, free: 50.79 MB / 490.7 MB Notification: Performance of remove unused functions: time 0.01304/12.23, allocations: 3.064 MB / 4.137 GB, free: 50.79 MB / 490.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 4 * Number of states: 10 (tank.medium.h,tank.level,heater.mediums[1].p,heater.mediums[1].h,radiator.mediums[1].p,radiator.mediums[1].h,pipe.mediums[1].p,pipe.mediums[1].h,pipe.mediums[2].p,pipe.mediums[2].h) * Number of discrete variables: 58 ($cse3.phase,$cse3.region,$cse6.phase,$cse6.region,$cse7.phase,$cse7.region,$cse8.region3boundary,$cse9.region3boundary,$cse10.phase,$cse10.region,$cse11.phase,$cse11.region,$cse14.phase,$cse14.region,$cse15.phase,$cse15.region,$cse17.phase,$cse17.region,$cse18.phase,$cse18.region,$cse19.region3boundary,$cse20.region3boundary,$cse21.phase,$cse21.region,$cse24.phase,$cse24.region,$cse25.phase,$cse25.region,$cse26.region3boundary,$cse27.region3boundary,$cse28.phase,$cse28.region,$cse31.phase,$cse31.region,$cse32.phase,$cse32.region,$cse35.phase,$cse35.region,$cse38.region3boundary,$cse39.region3boundary,$cse40.phase,$cse40.region,$cse41.region3boundary,$cse42.region3boundary,$cse43.phase,$cse43.region,$cse45.phase,$cse45.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 (208): * Single equations (assignments): 175 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 25 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 8 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 8 {2 4,1 1,2 9,1 1,4 18,1 1,1 10,1 1} Notification: Performance of Backend phase and start with SimCode phase: time 0.01353/12.24, allocations: 3.106 MB / 4.14 GB, free: 50.55 MB / 490.7 MB Notification: Performance of simCode: created initialization part: time 0.01485/12.25, allocations: 6.133 MB / 4.146 GB, free: 50.39 MB / 490.7 MB Notification: Performance of simCode: created event and clocks part: time 1.026e-05/12.25, allocations: 1.906 kB / 4.146 GB, free: 50.39 MB / 490.7 MB Notification: Performance of simCode: created simulation system equations: time 0.006351/12.26, allocations: 2.961 MB / 4.149 GB, free: 50.37 MB / 490.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.007013/12.27, allocations: 1.087 MB / 4.15 GB, free: 50.34 MB / 490.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0158/12.28, allocations: 7.323 MB / 4.157 GB, free: 49 MB / 490.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002617/12.29, allocations: 2.578 MB / 4.16 GB, free: 48.21 MB / 490.7 MB Notification: Performance of simCode: alias equations: time 0.006495/12.29, allocations: 2.141 MB / 4.162 GB, free: 48.16 MB / 490.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0008287/12.29, allocations: 162.9 kB / 4.162 GB, free: 48.15 MB / 490.7 MB Notification: Performance of SimCode: time 1.869e-06/12.29, allocations: 0.5469 kB / 4.162 GB, free: 48.15 MB / 490.7 MB Notification: Performance of Templates: time 0.2184/12.51, allocations: 117.4 MB / 4.277 GB, free: 5.102 MB / 490.7 MB