Running command: "" <> buildModelFMU(Modelica.Fluid.Examples.HeatingSystem,fileNamePrefix="Modelica_3_2_2_Modelica_Fluid_Examples_HeatingSystem",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(Modelica): time 1.955/1.955, allocations: 194.9 MB / 208 MB, free: 3.258 MB / 170.7 MB Notification: Performance of FrontEnd - loaded program: time 3.067e-05/3.084e-05, allocations: 4 kB / 255.4 MB, free: 2.645 MB / 202.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09298/0.09303, allocations: 44.52 MB / 300 MB, free: 6.07 MB / 250.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 7.909/8.002, allocations: 2.661 GB / 2.954 GB, free: 73.31 MB / 410.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003074/8.003, allocations: 71.03 kB / 2.954 GB, free: 73.28 MB / 410.7 MB Notification: Performance of FrontEnd - DAE generated: time 5.643/13.65, allocations: 1.022 GB / 3.976 GB, free: 30.78 MB / 458.7 MB Notification: Performance of FrontEnd: time 2.504e-06/13.65, allocations: 4 kB / 3.976 GB, free: 30.78 MB / 458.7 MB Notification: Performance of Transformations before backend: time 0.0003291/13.65, allocations: 66 kB / 3.976 GB, free: 30.77 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.02065/13.67, allocations: 4.397 MB / 3.98 GB, free: 28.38 MB / 458.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.006e-05/13.67, allocations: 7.875 kB / 3.98 GB, free: 28.38 MB / 458.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.001798/13.67, allocations: 422.2 kB / 3.98 GB, free: 28.15 MB / 458.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0115/13.68, allocations: 1.029 MB / 3.981 GB, free: 27.9 MB / 458.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00879/13.69, allocations: 2.208 MB / 3.984 GB, free: 26.83 MB / 458.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0004111/13.69, allocations: 284.8 kB / 3.984 GB, free: 26.66 MB / 458.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001154/13.69, allocations: 255.1 kB / 3.984 GB, free: 26.45 MB / 458.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01439/13.7, allocations: 4.472 MB / 3.989 GB, free: 22.56 MB / 458.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001145/13.71, allocations: 7.938 kB / 3.989 GB, free: 22.55 MB / 458.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0008062/13.71, allocations: 112 kB / 3.989 GB, free: 22.44 MB / 458.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0004031/13.71, allocations: 217 kB / 3.989 GB, free: 22.26 MB / 458.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01426/13.72, allocations: 4.05 MB / 3.993 GB, free: 18.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.4561/14.18, allocations: 19 MB / 4.011 GB, free: 25.35 MB / 458.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01099/14.19, allocations: 2.773 MB / 4.014 GB, free: 25.3 MB / 458.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.004791/14.19, allocations: 1.479 MB / 4.016 GB, free: 25.29 MB / 458.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.05368/14.25, allocations: 17.06 MB / 4.032 GB, free: 14.79 MB / 458.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 9.444e-05/14.25, allocations: 67.61 kB / 4.032 GB, free: 14.75 MB / 458.7 MB Notification: Performance of preOpt simplifyInStream (simulation): time 0.003985/14.25, allocations: 234.4 kB / 4.032 GB, free: 14.75 MB / 458.7 MB Notification: Performance of pre-optimization done (n=194): time 1.412e-05/14.25, allocations: 0.7656 kB / 4.032 GB, free: 14.75 MB / 458.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.05482/14.31, allocations: 11.19 MB / 4.043 GB, free: 13.95 MB / 458.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.804e-05/14.31, allocations: 127.5 kB / 4.044 GB, free: 13.82 MB / 458.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003639/14.31, allocations: 1.666 MB / 4.045 GB, free: 13.59 MB / 458.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0006846/14.31, allocations: 63.42 kB / 4.045 GB, free: 13.55 MB / 458.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.001022/14.31, allocations: 1.147 MB / 4.046 GB, free: 13.2 MB / 458.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.001185/14.31, allocations: 0.7275 MB / 4.047 GB, free: 12.83 MB / 458.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003012/14.31, allocations: 51.91 kB / 4.047 GB, free: 12.83 MB / 458.7 MB Notification: Performance of setup shared object (initialization): time 0.0001714/14.31, allocations: 407.8 kB / 4.047 GB, free: 12.52 MB / 458.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003351/14.32, allocations: 1.32 MB / 4.049 GB, free: 12.52 MB / 458.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003699/14.32, allocations: 1.815 MB / 4.051 GB, free: 11.99 MB / 458.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.00373/14.32, allocations: 1.542 MB / 4.052 GB, free: 11.96 MB / 458.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.699e-05/14.32, allocations: 6.094 kB / 4.052 GB, free: 11.96 MB / 458.7 MB Notification: Performance of matching and sorting (n=306) (initialization): time 0.01214/14.34, allocations: 4.604 MB / 4.057 GB, free: 11.75 MB / 458.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.00219/14.34, allocations: 5.531 MB / 4.062 GB, free: 21.99 MB / 474.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.995e-05/14.34, allocations: 11.25 kB / 4.062 GB, free: 21.99 MB / 474.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.03311/14.37, allocations: 3.784 MB / 4.066 GB, free: 21.94 MB / 474.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003926/14.38, allocations: 316.5 kB / 4.066 GB, free: 21.94 MB / 474.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01883/14.39, allocations: 4.564 MB / 4.07 GB, free: 21.35 MB / 474.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.007836/14.4, allocations: 321.6 kB / 4.071 GB, free: 21.34 MB / 474.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001044/14.4, allocations: 122.5 kB / 4.071 GB, free: 21.34 MB / 474.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.176e-05/14.4, allocations: 5.578 kB / 4.071 GB, free: 21.34 MB / 474.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.01592/14.42, allocations: 3.93 MB / 4.075 GB, free: 21.27 MB / 474.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.245e-05/14.42, allocations: 16.44 kB / 4.075 GB, free: 21.27 MB / 474.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.01603/14.44, allocations: 2.618 MB / 4.077 GB, free: 21.23 MB / 474.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002995/14.44, allocations: 377.4 kB / 4.078 GB, free: 21.23 MB / 474.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.009196/14.45, allocations: 3.557 MB / 4.081 GB, free: 20.65 MB / 474.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004777/14.45, allocations: 307.4 kB / 4.081 GB, free: 20.64 MB / 474.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0004746/14.45, allocations: 114.2 kB / 4.081 GB, free: 20.64 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.0009205/14.45, allocations: 249.9 kB / 4.082 GB, free: 20.52 MB / 474.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0007535/14.45, allocations: 230.2 kB / 4.082 GB, free: 20.41 MB / 474.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01866/14.47, allocations: 9.378 MB / 4.091 GB, free: 19.6 MB / 474.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.000137/14.47, allocations: 109.4 kB / 4.091 GB, free: 19.6 MB / 474.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.626e-05/14.47, allocations: 3.969 kB / 4.091 GB, free: 19.6 MB / 474.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.01519/14.49, allocations: 8.245 MB / 4.099 GB, free: 18.68 MB / 474.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.03131/14.52, allocations: 13.61 MB / 4.113 GB, free: 17.72 MB / 474.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.923e-05/14.52, allocations: 2.562 kB / 4.113 GB, free: 17.72 MB / 474.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.003754/14.52, allocations: 412 kB / 4.113 GB, free: 17.72 MB / 474.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.01113/14.54, allocations: 2.684 MB / 4.116 GB, free: 17.57 MB / 474.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.000781/14.54, allocations: 72.77 kB / 4.116 GB, free: 17.57 MB / 474.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.008706/14.54, allocations: 6.922 MB / 4.122 GB, free: 13.39 MB / 474.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.901e-06/14.54, allocations: 3.656 kB / 4.122 GB, free: 13.39 MB / 474.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.02256/14.57, allocations: 9.959 MB / 4.132 GB, free: 9.84 MB / 474.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.002966/14.57, allocations: 0.8316 MB / 4.133 GB, free: 9.34 MB / 474.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001117/14.57, allocations: 63.17 kB / 4.133 GB, free: 9.301 MB / 474.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.004701/14.58, allocations: 259.7 kB / 4.133 GB, free: 9.254 MB / 474.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001002/14.58, allocations: 200.3 kB / 4.133 GB, free: 9.227 MB / 474.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0004167/14.58, allocations: 88.09 kB / 4.134 GB, free: 9.207 MB / 474.7 MB Notification: Performance of sorting global known variables: time 0.00354/14.58, allocations: 1.313 MB / 4.135 GB, free: 8.68 MB / 474.7 MB Notification: Performance of sort global known variables: time 1.293e-06/14.58, allocations: 0 / 4.135 GB, free: 8.68 MB / 474.7 MB Notification: Performance of remove unused functions: time 0.01393/14.6, allocations: 3.07 MB / 4.138 GB, free: 8.328 MB / 474.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.03741/14.63, allocations: 12.85 MB / 4.15 GB, free: 2.781 MB / 474.7 MB Notification: Performance of simCode: created initialization part: time 0.02444/14.66, allocations: 6.425 MB / 4.157 GB, free: 13.86 MB / 490.7 MB Notification: Performance of simCode: created event and clocks part: time 1.707e-05/14.66, allocations: 2.688 kB / 4.157 GB, free: 13.86 MB / 490.7 MB Notification: Performance of simCode: created simulation system equations: time 0.009496/14.67, allocations: 2.978 MB / 4.16 GB, free: 11.19 MB / 490.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.01039/14.68, allocations: 1.09 MB / 4.161 GB, free: 10.45 MB / 490.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.03255/14.71, allocations: 8.937 MB / 4.169 GB, free: 3.078 MB / 490.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.00552/14.72, allocations: 2.581 MB / 4.172 GB, free: 1.078 MB / 490.7 MB Notification: Performance of simCode: alias equations: time 0.01405/14.73, allocations: 2.217 MB / 4.174 GB, free: 15.93 MB / 0.4949 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.004656/14.73, allocations: 1.465 MB / 4.175 GB, free: 14.59 MB / 0.4949 GB Notification: Performance of SimCode: time 1.943e-06/14.73, allocations: 0 / 4.175 GB, free: 14.59 MB / 0.4949 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.7588/15.49, allocations: 153.8 MB / 4.326 GB, free: 42.39 MB / 0.4949 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002004/15.49, allocations: 169.8 kB / 4.326 GB, free: 42.16 MB / 0.4949 GB Notification: Performance of buildModelFMU: Generate platform static: time 10.39/25.88, allocations: 0 / 4.326 GB, free: 42.16 MB / 0.4949 GB TODO: How the !@#!# did the simulation report success but simulation result Modelica_3.2.2_Modelica.Fluid.Examples.HeatingSystem_res.mat does not exist to compare? outputFormat=mat