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_Modelica.Fluid.Examples.HeatingSystem") Notification: Performance of loadModel(Modelica): time 1.89/1.89, allocations: 171.2 MB / 183.3 MB, free: 12.07 MB / 154.7 MB Notification: Performance of FrontEnd - loaded program: time 3.21e-05/3.225e-05, allocations: 4 kB / 225 MB, free: 2.348 MB / 186.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2109/0.2109, allocations: 38.76 MB / 263.8 MB, free: 9.844 MB / 218.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 5.997/6.208, allocations: 2.551 GB / 2.809 GB, free: 38.07 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001827/6.208, allocations: 78.81 kB / 2.809 GB, free: 38.03 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 5.066/11.27, allocations: 0.9963 GB / 3.805 GB, free: 25.05 MB / 410.7 MB Notification: Performance of FrontEnd: time 2.358e-06/11.27, allocations: 0 / 3.805 GB, free: 25.05 MB / 410.7 MB Notification: Performance of Transformations before backend: time 0.0002998/11.27, allocations: 74.33 kB / 3.805 GB, free: 25.04 MB / 410.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.01634/11.29, allocations: 4.268 MB / 3.809 GB, free: 23.03 MB / 410.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.304e-05/11.29, allocations: 12.91 kB / 3.81 GB, free: 23.03 MB / 410.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.009977/11.3, allocations: 0.9786 MB / 3.81 GB, free: 22.86 MB / 410.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.007354/11.31, allocations: 2.203 MB / 3.813 GB, free: 22.35 MB / 410.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0004161/11.31, allocations: 288.9 kB / 3.813 GB, free: 22.28 MB / 410.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.00107/11.31, allocations: 251.3 kB / 3.813 GB, free: 22.28 MB / 410.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01378/11.32, allocations: 4.44 MB / 3.817 GB, free: 21.66 MB / 410.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.597e-05/11.32, allocations: 7.719 kB / 3.817 GB, free: 21.65 MB / 410.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0005761/11.32, allocations: 108 kB / 3.818 GB, free: 21.65 MB / 410.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0002947/11.32, allocations: 220.7 kB / 3.818 GB, free: 21.64 MB / 410.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0126/11.34, allocations: 3.998 MB / 3.822 GB, free: 21.59 MB / 410.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.0318/11.37, allocations: 19 MB / 3.84 GB, free: 10.55 MB / 410.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.007978/11.38, allocations: 2.767 MB / 3.843 GB, free: 10.48 MB / 410.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.003012/11.38, allocations: 1.476 MB / 3.844 GB, free: 10.47 MB / 410.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.03891/11.42, allocations: 17.06 MB / 3.861 GB, free: 14.23 MB / 426.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.573e-05/11.42, allocations: 53.62 kB / 3.861 GB, free: 14.18 MB / 426.7 MB Notification: Performance of preOpt simplifyInStream (simulation): time 0.001929/11.42, allocations: 234.2 kB / 3.861 GB, free: 14 MB / 426.7 MB Notification: Performance of pre-optimization done (n=194): time 5.922e-06/11.42, allocations: 4 kB / 3.861 GB, free: 14 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.04314/11.46, allocations: 11.19 MB / 3.872 GB, free: 5.59 MB / 426.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001059/11.46, allocations: 128.8 kB / 3.872 GB, free: 5.441 MB / 426.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003891/11.47, allocations: 1.663 MB / 3.874 GB, free: 3.906 MB / 426.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0005697/11.47, allocations: 61.7 kB / 3.874 GB, free: 3.84 MB / 426.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.001208/11.47, allocations: 1.151 MB / 3.875 GB, free: 2.801 MB / 426.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.001155/11.47, allocations: 0.7251 MB / 3.876 GB, free: 2.145 MB / 426.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003081/11.47, allocations: 48 kB / 3.876 GB, free: 2.098 MB / 426.7 MB Notification: Performance of setup shared object (initialization): time 0.0003819/11.47, allocations: 400 kB / 3.876 GB, free: 1.73 MB / 426.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003381/11.48, allocations: 1.32 MB / 3.878 GB, free: 0.5586 MB / 426.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.3376/11.81, allocations: 2.047 MB / 3.88 GB, free: 39.49 MB / 426.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003767/11.82, allocations: 1.534 MB / 3.881 GB, free: 39.47 MB / 426.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.156e-05/11.82, allocations: 7.188 kB / 3.881 GB, free: 39.47 MB / 426.7 MB Notification: Performance of matching and sorting (n=306) (initialization): time 0.01047/11.83, allocations: 4.566 MB / 3.886 GB, free: 39.38 MB / 426.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.001091/11.83, allocations: 5.53 MB / 3.891 GB, free: 33.62 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.624e-05/11.83, allocations: 15.41 kB / 3.891 GB, free: 33.62 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.01973/11.85, allocations: 3.768 MB / 3.895 GB, free: 33.58 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001653/11.85, allocations: 315 kB / 3.895 GB, free: 33.58 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.009431/11.86, allocations: 4.568 MB / 3.899 GB, free: 33.02 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003705/11.86, allocations: 318.8 kB / 3.9 GB, free: 33.02 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0004504/11.86, allocations: 123.9 kB / 3.9 GB, free: 33.02 MB / 426.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.467e-05/11.86, allocations: 5.625 kB / 3.9 GB, free: 33.02 MB / 426.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.008741/11.87, allocations: 3.893 MB / 3.904 GB, free: 32.96 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.848e-05/11.87, allocations: 15.44 kB / 3.904 GB, free: 32.96 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.01289/11.89, allocations: 2.605 MB / 3.906 GB, free: 32.93 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002038/11.89, allocations: 378.8 kB / 3.907 GB, free: 32.93 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.006944/11.89, allocations: 3.555 MB / 3.91 GB, free: 32.38 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003532/11.9, allocations: 313 kB / 3.91 GB, free: 32.38 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0004313/11.9, allocations: 110.4 kB / 3.91 GB, free: 32.38 MB / 426.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.0007936/11.9, allocations: 241.6 kB / 3.911 GB, free: 32.27 MB / 426.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0006555/11.9, allocations: 231.6 kB / 3.911 GB, free: 32.27 MB / 426.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0159/11.92, allocations: 9.384 MB / 3.92 GB, free: 31.64 MB / 426.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.000103/11.92, allocations: 107.5 kB / 3.92 GB, free: 31.64 MB / 426.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.212e-05/11.92, allocations: 4.281 kB / 3.92 GB, free: 31.64 MB / 426.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0131/11.93, allocations: 8.254 MB / 3.928 GB, free: 30.73 MB / 426.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02562/11.95, allocations: 13.59 MB / 3.942 GB, free: 29.84 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.055e-05/11.96, allocations: 0 / 3.942 GB, free: 29.84 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002513/11.96, allocations: 408.8 kB / 3.942 GB, free: 29.84 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.008069/11.97, allocations: 2.675 MB / 3.945 GB, free: 29.7 MB / 426.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0005393/11.97, allocations: 73.45 kB / 3.945 GB, free: 29.7 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.006431/11.97, allocations: 6.933 MB / 3.951 GB, free: 25.51 MB / 426.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.86e-06/11.97, allocations: 0 / 3.951 GB, free: 25.51 MB / 426.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01715/11.99, allocations: 9.958 MB / 3.961 GB, free: 24.69 MB / 426.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.002356/11.99, allocations: 0.8313 MB / 3.962 GB, free: 24.4 MB / 426.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0006666/11.99, allocations: 55.88 kB / 3.962 GB, free: 24.4 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002732/12, allocations: 264.5 kB / 3.962 GB, free: 24.39 MB / 426.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0005338/12, allocations: 192.6 kB / 3.962 GB, free: 24.39 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0003005/12, allocations: 88.94 kB / 3.962 GB, free: 24.39 MB / 426.7 MB Notification: Performance of sorting global known variables: time 0.00245/12, allocations: 1.312 MB / 3.964 GB, free: 24.23 MB / 426.7 MB Notification: Performance of sort global known variables: time 9.72e-07/12, allocations: 0 / 3.964 GB, free: 24.23 MB / 426.7 MB Notification: Performance of remove unused functions: time 0.0112/12.01, allocations: 3.05 MB / 3.967 GB, free: 24.16 MB / 426.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.0125/12.02, allocations: 3.097 MB / 3.97 GB, free: 23.79 MB / 426.7 MB Notification: Performance of simCode: created initialization part: time 0.01455/12.04, allocations: 6.127 MB / 3.976 GB, free: 22.78 MB / 426.7 MB Notification: Performance of simCode: created event and clocks part: time 9.586e-06/12.04, allocations: 0 / 3.976 GB, free: 22.78 MB / 426.7 MB Notification: Performance of simCode: created simulation system equations: time 0.00687/12.04, allocations: 2.966 MB / 3.979 GB, free: 21.56 MB / 426.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.006909/12.05, allocations: 1.086 MB / 3.98 GB, free: 21.34 MB / 426.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01525/12.07, allocations: 7.325 MB / 3.987 GB, free: 18.66 MB / 426.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002868/12.07, allocations: 2.576 MB / 3.989 GB, free: 17.75 MB / 426.7 MB Notification: Performance of simCode: alias equations: time 0.006847/12.08, allocations: 2.142 MB / 3.991 GB, free: 17.7 MB / 426.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0008156/12.08, allocations: 161.7 kB / 3.992 GB, free: 17.68 MB / 426.7 MB Notification: Performance of SimCode: time 2.079e-06/12.08, allocations: 0 / 3.992 GB, free: 17.68 MB / 426.7 MB Notification: Performance of Templates: time 0.522/12.6, allocations: 117.1 MB / 4.106 GB, free: 51.21 MB / 442.7 MB