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.1_cpp_Modelica.Fluid.Examples.HeatingSystem") Notification: Performance of loadModel(Modelica): time 1.594/1.594, allocations: 171.2 MB / 183.8 MB, free: 11.94 MB / 154.7 MB Notification: Performance of FrontEnd - loaded program: time 3.001e-05/3.019e-05, allocations: 0 / 225 MB, free: 2.719 MB / 186.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2165/0.2165, allocations: 38.77 MB / 263.8 MB, free: 9.875 MB / 218.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 6.033/6.249, allocations: 2.551 GB / 2.809 GB, free: 96.25 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002085/6.25, allocations: 74.8 kB / 2.809 GB, free: 96.25 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.725/10.98, allocations: 0.9963 GB / 3.805 GB, free: 33.66 MB / 426.7 MB Notification: Performance of FrontEnd: time 2.368e-06/10.98, allocations: 0.5 kB / 3.805 GB, free: 33.66 MB / 426.7 MB Notification: Performance of Transformations before backend: time 0.0004049/10.98, allocations: 70.89 kB / 3.805 GB, free: 33.66 MB / 426.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.01705/10.99, allocations: 4.274 MB / 3.809 GB, free: 32.48 MB / 426.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.146e-05/10.99, allocations: 9.938 kB / 3.809 GB, free: 32.48 MB / 426.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01017/11, allocations: 0.981 MB / 3.81 GB, free: 32.32 MB / 426.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.007844/11.01, allocations: 2.212 MB / 3.813 GB, free: 31.85 MB / 426.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000412/11.01, allocations: 283.5 kB / 3.813 GB, free: 31.78 MB / 426.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001033/11.01, allocations: 247.8 kB / 3.813 GB, free: 31.78 MB / 426.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01255/11.02, allocations: 4.436 MB / 3.817 GB, free: 31.19 MB / 426.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.668e-05/11.02, allocations: 11.91 kB / 3.817 GB, free: 31.18 MB / 426.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0004684/11.03, allocations: 109 kB / 3.818 GB, free: 31.18 MB / 426.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0002973/11.03, allocations: 217.7 kB / 3.818 GB, free: 31.18 MB / 426.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0118/11.04, allocations: 4.001 MB / 3.822 GB, free: 31.16 MB / 426.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.03419/11.07, allocations: 19 MB / 3.84 GB, free: 20.36 MB / 426.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01354/11.09, allocations: 2.757 MB / 3.843 GB, free: 20.31 MB / 426.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.005055/11.09, allocations: 1.479 MB / 3.844 GB, free: 20.3 MB / 426.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.05867/11.15, allocations: 17.06 MB / 3.861 GB, free: 9.773 MB / 426.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.211e-05/11.15, allocations: 56.78 kB / 3.861 GB, free: 9.734 MB / 426.7 MB Notification: Performance of preOpt simplifyInStream (simulation): time 0.002067/11.15, allocations: 238.5 kB / 3.861 GB, free: 9.633 MB / 426.7 MB Notification: Performance of pre-optimization done (n=194): time 7.285e-06/11.15, allocations: 0 / 3.861 GB, free: 9.633 MB / 426.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.04373/11.2, allocations: 11.2 MB / 3.872 GB, free: 8.664 MB / 426.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.000105/11.2, allocations: 136.4 kB / 3.872 GB, free: 8.539 MB / 426.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003321/11.2, allocations: 1.656 MB / 3.874 GB, free: 8.297 MB / 426.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0005574/11.2, allocations: 64.05 kB / 3.874 GB, free: 8.266 MB / 426.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0008074/11.2, allocations: 1.067 MB / 3.875 GB, free: 7.727 MB / 426.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0009493/11.2, allocations: 0.7286 MB / 3.876 GB, free: 7.262 MB / 426.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002743/11.2, allocations: 50.97 kB / 3.876 GB, free: 7.262 MB / 426.7 MB Notification: Performance of setup shared object (initialization): time 0.0002742/11.2, allocations: 405.1 kB / 3.876 GB, free: 6.945 MB / 426.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002992/11.2, allocations: 1.323 MB / 3.878 GB, free: 6.938 MB / 426.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003575/11.21, allocations: 1.819 MB / 3.879 GB, free: 6.41 MB / 426.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003574/11.21, allocations: 1.526 MB / 3.881 GB, free: 6.391 MB / 426.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.384e-05/11.21, allocations: 8.375 kB / 3.881 GB, free: 6.391 MB / 426.7 MB Notification: Performance of matching and sorting (n=306) (initialization): time 0.01141/11.22, allocations: 4.432 MB / 3.885 GB, free: 6.258 MB / 426.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.002793/11.23, allocations: 5.318 MB / 3.89 GB, free: 16.73 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.81e-05/11.23, allocations: 15.12 kB / 3.89 GB, free: 16.73 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.01925/11.25, allocations: 3.766 MB / 3.894 GB, free: 16.68 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001823/11.25, allocations: 311 kB / 3.894 GB, free: 16.68 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01013/11.26, allocations: 4.571 MB / 3.899 GB, free: 16.09 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004166/11.26, allocations: 313.3 kB / 3.899 GB, free: 16.07 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0007584/11.26, allocations: 114.2 kB / 3.899 GB, free: 16.07 MB / 442.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.349e-05/11.26, allocations: 5.906 kB / 3.899 GB, free: 16.07 MB / 442.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.009426/11.27, allocations: 3.902 MB / 3.903 GB, free: 16.01 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.708e-05/11.27, allocations: 13.69 kB / 3.903 GB, free: 16.01 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.01125/11.28, allocations: 2.452 MB / 3.905 GB, free: 15.97 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002173/11.29, allocations: 379.8 kB / 3.906 GB, free: 15.97 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.007084/11.29, allocations: 3.548 MB / 3.909 GB, free: 15.39 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003141/11.3, allocations: 310.7 kB / 3.91 GB, free: 15.38 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0004807/11.3, allocations: 114.9 kB / 3.91 GB, free: 15.38 MB / 442.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.0008217/11.3, allocations: 247.1 kB / 3.91 GB, free: 15.25 MB / 442.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0007417/11.3, allocations: 235.1 kB / 3.91 GB, free: 15.13 MB / 442.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01629/11.31, allocations: 9.378 MB / 3.919 GB, free: 14.32 MB / 442.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0001082/11.31, allocations: 106.8 kB / 3.919 GB, free: 14.32 MB / 442.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.614e-05/11.31, allocations: 4.969 kB / 3.919 GB, free: 14.32 MB / 442.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.01325/11.33, allocations: 8.25 MB / 3.927 GB, free: 13.4 MB / 442.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02711/11.36, allocations: 13.61 MB / 3.941 GB, free: 8.457 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.001e-05/11.36, allocations: 0 / 3.941 GB, free: 8.457 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002625/11.36, allocations: 411.8 kB / 3.941 GB, free: 8.445 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.008231/11.37, allocations: 2.671 MB / 3.944 GB, free: 7.816 MB / 442.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0005978/11.37, allocations: 72.34 kB / 3.944 GB, free: 7.781 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.008489/11.38, allocations: 6.926 MB / 3.951 GB, free: 1.91 MB / 442.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.703e-06/11.38, allocations: 0 / 3.951 GB, free: 1.91 MB / 442.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.02169/11.4, allocations: 9.999 MB / 3.96 GB, free: 8.914 MB / 458.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.00289/11.4, allocations: 0.8328 MB / 3.961 GB, free: 8.164 MB / 458.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001006/11.4, allocations: 55.7 kB / 3.961 GB, free: 8.113 MB / 458.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.003597/11.4, allocations: 257.8 kB / 3.961 GB, free: 7.938 MB / 458.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0008155/11.41, allocations: 205.4 kB / 3.962 GB, free: 7.82 MB / 458.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0003518/11.41, allocations: 86.58 kB / 3.962 GB, free: 7.746 MB / 458.7 MB Notification: Performance of sorting global known variables: time 0.003254/11.41, allocations: 1.316 MB / 3.963 GB, free: 6.531 MB / 458.7 MB Notification: Performance of sort global known variables: time 1.327e-06/11.41, allocations: 0 / 3.963 GB, free: 6.531 MB / 458.7 MB Notification: Performance of remove unused functions: time 0.01368/11.42, allocations: 3.043 MB / 3.966 GB, free: 3.551 MB / 458.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.01388/11.44, allocations: 3.096 MB / 3.969 GB, free: 1.363 MB / 458.7 MB Notification: Performance of simCode: created initialization part: time 0.398/11.83, allocations: 6.149 MB / 3.975 GB, free: 60.74 MB / 458.7 MB Notification: Performance of simCode: created event and clocks part: time 1.14e-05/11.83, allocations: 7.297 kB / 3.975 GB, free: 60.74 MB / 458.7 MB Notification: Performance of simCode: created simulation system equations: time 0.00625/11.84, allocations: 2.948 MB / 3.978 GB, free: 60.72 MB / 458.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.006549/11.85, allocations: 1.086 MB / 3.979 GB, free: 60.7 MB / 458.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01549/11.86, allocations: 7.364 MB / 3.986 GB, free: 59.39 MB / 458.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002425/11.87, allocations: 2.521 MB / 3.989 GB, free: 58.63 MB / 458.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001101/11.87, allocations: 200.6 kB / 3.989 GB, free: 58.62 MB / 458.7 MB Notification: Performance of SimCode: time 1.744e-06/11.87, allocations: 4.312 kB / 3.989 GB, free: 58.62 MB / 458.7 MB Notification: Performance of Templates: time 0.1696/12.04, allocations: 137.3 MB / 4.123 GB, free: 8.43 MB / 458.7 MB