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.942/1.942, allocations: 194.9 MB / 208 MB, free: 3.188 MB / 170.7 MB Notification: Performance of FrontEnd - loaded program: time 3.362e-05/3.375e-05, allocations: 4 kB / 255.5 MB, free: 2.621 MB / 202.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.107/0.107, allocations: 44.5 MB / 300 MB, free: 6.055 MB / 250.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 8.054/8.161, allocations: 2.661 GB / 2.954 GB, free: 35.08 MB / 410.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002264/8.162, allocations: 77.94 kB / 2.954 GB, free: 35.05 MB / 410.7 MB Notification: Performance of FrontEnd - DAE generated: time 6.092/14.25, allocations: 1.022 GB / 3.976 GB, free: 25.88 MB / 458.7 MB Notification: Performance of FrontEnd: time 2.395e-06/14.25, allocations: 2.734 kB / 3.976 GB, free: 25.88 MB / 458.7 MB Notification: Performance of Transformations before backend: time 0.0004419/14.25, allocations: 71.89 kB / 3.976 GB, free: 25.87 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.02404/14.28, allocations: 4.394 MB / 3.98 GB, free: 23.97 MB / 458.7 MB Notification: Performance of prepare preOptimizeDAE: time 6.118e-05/14.28, allocations: 8.688 kB / 3.98 GB, free: 23.97 MB / 458.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.002524/14.28, allocations: 421.1 kB / 3.981 GB, free: 23.9 MB / 458.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01274/14.29, allocations: 1.028 MB / 3.982 GB, free: 23.74 MB / 458.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0101/14.3, allocations: 2.204 MB / 3.984 GB, free: 23.26 MB / 458.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0005481/14.3, allocations: 295.2 kB / 3.984 GB, free: 23.18 MB / 458.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001556/14.31, allocations: 249 kB / 3.984 GB, free: 23.18 MB / 458.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0163/14.32, allocations: 4.451 MB / 3.989 GB, free: 22.59 MB / 458.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001184/14.32, allocations: 11 kB / 3.989 GB, free: 22.59 MB / 458.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0006911/14.32, allocations: 105.8 kB / 3.989 GB, free: 22.59 MB / 458.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.000411/14.32, allocations: 229 kB / 3.989 GB, free: 22.58 MB / 458.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01463/14.34, allocations: 3.999 MB / 3.993 GB, free: 22.56 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.05486/14.39, allocations: 19.02 MB / 4.011 GB, free: 11.74 MB / 458.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01435/14.41, allocations: 2.755 MB / 4.014 GB, free: 11.7 MB / 458.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.006052/14.41, allocations: 1.478 MB / 4.015 GB, free: 11.69 MB / 458.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.06255/14.48, allocations: 17.06 MB / 4.032 GB, free: 17.16 MB / 474.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 7.321e-05/14.48, allocations: 54.75 kB / 4.032 GB, free: 17.12 MB / 474.7 MB Notification: Performance of preOpt simplifyInStream (simulation): time 0.002869/14.48, allocations: 235.9 kB / 4.032 GB, free: 17.01 MB / 474.7 MB Notification: Performance of pre-optimization done (n=194): time 1.167e-05/14.48, allocations: 3.625 kB / 4.032 GB, free: 17.01 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.05339/14.53, allocations: 11.19 MB / 4.043 GB, free: 16.05 MB / 474.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001073/14.53, allocations: 130.6 kB / 4.043 GB, free: 15.93 MB / 474.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003849/14.54, allocations: 1.652 MB / 4.045 GB, free: 15.69 MB / 474.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0007573/14.54, allocations: 68.55 kB / 4.045 GB, free: 15.66 MB / 474.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.001078/14.54, allocations: 1.152 MB / 4.046 GB, free: 15.18 MB / 474.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.001304/14.54, allocations: 0.7324 MB / 4.047 GB, free: 14.71 MB / 474.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003174/14.54, allocations: 46.56 kB / 4.047 GB, free: 14.71 MB / 474.7 MB Notification: Performance of setup shared object (initialization): time 0.0002589/14.54, allocations: 403.4 kB / 4.047 GB, free: 14.4 MB / 474.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003506/14.54, allocations: 1.317 MB / 4.049 GB, free: 14.39 MB / 474.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.004372/14.55, allocations: 1.806 MB / 4.05 GB, free: 13.88 MB / 474.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.004476/14.55, allocations: 1.54 MB / 4.052 GB, free: 13.85 MB / 474.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.725e-05/14.55, allocations: 4.875 kB / 4.052 GB, free: 13.85 MB / 474.7 MB Notification: Performance of matching and sorting (n=306) (initialization): time 0.01327/14.57, allocations: 4.563 MB / 4.056 GB, free: 13.64 MB / 474.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.002126/14.57, allocations: 5.531 MB / 4.062 GB, free: 7.871 MB / 474.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.252e-05/14.57, allocations: 15.03 kB / 4.062 GB, free: 7.871 MB / 474.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.024/14.59, allocations: 3.771 MB / 4.066 GB, free: 7.82 MB / 474.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00244/14.59, allocations: 307.9 kB / 4.066 GB, free: 7.82 MB / 474.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01257/14.61, allocations: 4.576 MB / 4.07 GB, free: 7.215 MB / 474.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.005382/14.61, allocations: 313.1 kB / 4.071 GB, free: 7.199 MB / 474.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0008003/14.61, allocations: 114.3 kB / 4.071 GB, free: 7.199 MB / 474.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.719e-05/14.61, allocations: 8.312 kB / 4.071 GB, free: 7.199 MB / 474.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.01088/14.62, allocations: 3.898 MB / 4.075 GB, free: 7.137 MB / 474.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.086e-05/14.62, allocations: 14.72 kB / 4.075 GB, free: 7.137 MB / 474.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.01578/14.64, allocations: 2.604 MB / 4.077 GB, free: 7.102 MB / 474.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002975/14.64, allocations: 379.6 kB / 4.077 GB, free: 7.102 MB / 474.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.009057/14.65, allocations: 3.555 MB / 4.081 GB, free: 6.52 MB / 474.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004942/14.66, allocations: 313.3 kB / 4.081 GB, free: 6.5 MB / 474.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0006923/14.66, allocations: 109.8 kB / 4.081 GB, free: 6.5 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.0009245/14.66, allocations: 255 kB / 4.082 GB, free: 6.379 MB / 474.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0008076/14.66, allocations: 231.2 kB / 4.082 GB, free: 6.262 MB / 474.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01818/14.68, allocations: 9.375 MB / 4.091 GB, free: 5.449 MB / 474.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0001339/14.68, allocations: 114.5 kB / 4.091 GB, free: 5.445 MB / 474.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.342e-05/14.68, allocations: 0 / 4.091 GB, free: 5.445 MB / 474.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.01456/14.69, allocations: 8.253 MB / 4.099 GB, free: 4.531 MB / 474.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0291/14.72, allocations: 13.61 MB / 4.112 GB, free: 112 kB / 474.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.528e-05/14.72, allocations: 0 / 4.112 GB, free: 112 kB / 474.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.003607/14.73, allocations: 414.3 kB / 4.113 GB, free: 96 kB / 474.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.009805/14.74, allocations: 2.683 MB / 4.115 GB, free: 15.5 MB / 490.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0006486/14.74, allocations: 78.3 kB / 4.115 GB, free: 15.46 MB / 490.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.008178/14.74, allocations: 6.923 MB / 4.122 GB, free: 10.16 MB / 490.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.929e-06/14.74, allocations: 0 / 4.122 GB, free: 10.16 MB / 490.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.02193/14.77, allocations: 9.96 MB / 4.132 GB, free: 2.062 MB / 490.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.003304/14.77, allocations: 0.8347 MB / 4.133 GB, free: 1.309 MB / 490.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001017/14.77, allocations: 55.66 kB / 4.133 GB, free: 1.258 MB / 490.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.004594/14.78, allocations: 262.2 kB / 4.133 GB, free: 1.078 MB / 490.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0007561/14.78, allocations: 202.2 kB / 4.133 GB, free: 0.9609 MB / 490.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0003395/14.78, allocations: 86.48 kB / 4.133 GB, free: 0.8906 MB / 490.7 MB Notification: Performance of sorting global known variables: time 0.003292/14.78, allocations: 1.317 MB / 4.135 GB, free: 15.68 MB / 0.4949 GB Notification: Performance of sort global known variables: time 7.51e-07/14.78, allocations: 448 / 4.135 GB, free: 15.68 MB / 0.4949 GB Notification: Performance of remove unused functions: time 0.01587/14.8, allocations: 3.071 MB / 4.138 GB, free: 12.66 MB / 0.4949 GB 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.03837/14.83, allocations: 12.89 MB / 4.15 GB, free: 1.332 MB / 0.4949 GB Notification: Performance of simCode: created initialization part: time 0.4315/15.27, allocations: 6.27 MB / 4.156 GB, free: 68.03 MB / 0.4949 GB Notification: Performance of simCode: created event and clocks part: time 1.34e-05/15.27, allocations: 0.875 kB / 4.156 GB, free: 68.03 MB / 0.4949 GB Notification: Performance of simCode: created simulation system equations: time 0.009318/15.28, allocations: 2.959 MB / 4.159 GB, free: 68 MB / 0.4949 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.01008/15.29, allocations: 1.074 MB / 4.16 GB, free: 67.98 MB / 0.4949 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02896/15.31, allocations: 8.922 MB / 4.169 GB, free: 66.6 MB / 0.4949 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.003281/15.32, allocations: 2.578 MB / 4.172 GB, free: 65.81 MB / 0.4949 GB Notification: Performance of simCode: alias equations: time 0.008264/15.33, allocations: 2.136 MB / 4.174 GB, free: 65.77 MB / 0.4949 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.00335/15.33, allocations: 1.47 MB / 4.175 GB, free: 65.77 MB / 0.4949 GB Notification: Performance of SimCode: time 1.923e-06/15.33, allocations: 0 / 4.175 GB, free: 65.77 MB / 0.4949 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.3599/15.69, allocations: 153.7 MB / 4.325 GB, free: 5.484 MB / 0.4949 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.000233/15.69, allocations: 168.5 kB / 4.325 GB, free: 5.258 MB / 0.4949 GB Notification: Performance of buildModelFMU: Generate platform static: time 10.83/26.52, allocations: 0 / 4.325 GB, free: 5.258 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