Running command: "" <> buildModelFMU(Modelica.Fluid.Examples.HeatingSystem,fileNamePrefix="Modelica_3_2_2_cpp_Modelica_Fluid_Examples_HeatingSystem",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(Modelica): time 1.963/1.963, allocations: 194.9 MB / 208.4 MB, free: 3.238 MB / 170.7 MB Notification: Performance of FrontEnd - loaded program: time 3.303e-05/3.317e-05, allocations: 1.406 kB / 255.4 MB, free: 3.102 MB / 202.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1347/0.1347, allocations: 44.5 MB / 299.9 MB, free: 6.547 MB / 250.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 7.871/8.006, allocations: 2.661 GB / 2.954 GB, free: 36.23 MB / 410.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002562/8.006, allocations: 78.56 kB / 2.954 GB, free: 36.19 MB / 410.7 MB Notification: Performance of FrontEnd - DAE generated: time 5.834/13.84, allocations: 1.022 GB / 3.976 GB, free: 26.14 MB / 458.7 MB Notification: Performance of FrontEnd: time 3.477e-06/13.84, allocations: 0 / 3.976 GB, free: 26.14 MB / 458.7 MB Notification: Performance of Transformations before backend: time 0.0003602/13.84, allocations: 77.45 kB / 3.976 GB, free: 26.12 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.02131/13.86, allocations: 4.391 MB / 3.98 GB, free: 24.23 MB / 458.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.753e-05/13.86, allocations: 10.81 kB / 3.98 GB, free: 24.23 MB / 458.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.001858/13.86, allocations: 418.9 kB / 3.98 GB, free: 24.17 MB / 458.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01186/13.88, allocations: 1.037 MB / 3.981 GB, free: 24 MB / 458.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.009774/13.89, allocations: 2.203 MB / 3.984 GB, free: 23.52 MB / 458.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0005228/13.89, allocations: 299.2 kB / 3.984 GB, free: 23.44 MB / 458.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001292/13.89, allocations: 248.2 kB / 3.984 GB, free: 23.44 MB / 458.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01428/13.9, allocations: 4.448 MB / 3.988 GB, free: 22.85 MB / 458.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001028/13.9, allocations: 12.34 kB / 3.989 GB, free: 22.85 MB / 458.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0005401/13.9, allocations: 109.7 kB / 3.989 GB, free: 22.85 MB / 458.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.000409/13.9, allocations: 223.5 kB / 3.989 GB, free: 22.84 MB / 458.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01394/13.92, allocations: 3.997 MB / 3.993 GB, free: 22.82 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.03972/13.96, allocations: 19.02 MB / 4.011 GB, free: 12 MB / 458.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.009044/13.97, allocations: 2.76 MB / 4.014 GB, free: 11.96 MB / 458.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.003806/13.97, allocations: 1.475 MB / 4.015 GB, free: 11.95 MB / 458.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.05391/14.02, allocations: 17.07 MB / 4.032 GB, free: 17.42 MB / 474.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.374e-05/14.02, allocations: 51.25 kB / 4.032 GB, free: 17.38 MB / 474.7 MB Notification: Performance of preOpt simplifyInStream (simulation): time 0.002665/14.03, allocations: 240 kB / 4.032 GB, free: 17.27 MB / 474.7 MB Notification: Performance of pre-optimization done (n=194): time 6.392e-06/14.03, allocations: 3.938 kB / 4.032 GB, free: 17.27 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.05001/14.08, allocations: 11.19 MB / 4.043 GB, free: 16.31 MB / 474.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.974e-05/14.08, allocations: 131 kB / 4.043 GB, free: 16.19 MB / 474.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003565/14.08, allocations: 1.657 MB / 4.045 GB, free: 15.95 MB / 474.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0007325/14.08, allocations: 67.33 kB / 4.045 GB, free: 15.92 MB / 474.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.000858/14.08, allocations: 1.074 MB / 4.046 GB, free: 15.38 MB / 474.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.00115/14.08, allocations: 0.7294 MB / 4.047 GB, free: 14.91 MB / 474.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002905/14.08, allocations: 49.56 kB / 4.047 GB, free: 14.91 MB / 474.7 MB Notification: Performance of setup shared object (initialization): time 0.0002445/14.08, allocations: 405.7 kB / 4.047 GB, free: 14.59 MB / 474.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003375/14.09, allocations: 1.327 MB / 4.049 GB, free: 14.59 MB / 474.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003772/14.09, allocations: 1.801 MB / 4.05 GB, free: 14.07 MB / 474.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003994/14.1, allocations: 1.539 MB / 4.052 GB, free: 14.04 MB / 474.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.952e-05/14.1, allocations: 3.969 kB / 4.052 GB, free: 14.04 MB / 474.7 MB Notification: Performance of matching and sorting (n=306) (initialization): time 0.01238/14.11, allocations: 4.435 MB / 4.056 GB, free: 13.9 MB / 474.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.002036/14.11, allocations: 5.319 MB / 4.061 GB, free: 8.371 MB / 474.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.337e-05/14.11, allocations: 12.59 kB / 4.061 GB, free: 8.371 MB / 474.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.02354/14.13, allocations: 3.771 MB / 4.065 GB, free: 8.32 MB / 474.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002351/14.14, allocations: 308 kB / 4.065 GB, free: 8.32 MB / 474.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01109/14.15, allocations: 4.572 MB / 4.07 GB, free: 7.715 MB / 474.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004757/14.15, allocations: 314.9 kB / 4.07 GB, free: 7.699 MB / 474.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003587/14.15, allocations: 122.1 kB / 4.07 GB, free: 7.699 MB / 474.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.375e-05/14.15, allocations: 1 kB / 4.07 GB, free: 7.699 MB / 474.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.00938/14.16, allocations: 3.896 MB / 4.074 GB, free: 7.637 MB / 474.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.363e-05/14.16, allocations: 13.31 kB / 4.074 GB, free: 7.637 MB / 474.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.01416/14.18, allocations: 2.462 MB / 4.076 GB, free: 7.602 MB / 474.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002922/14.18, allocations: 377.1 kB / 4.077 GB, free: 7.602 MB / 474.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.007837/14.19, allocations: 3.55 MB / 4.08 GB, free: 7.023 MB / 474.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003822/14.19, allocations: 312 kB / 4.081 GB, free: 7.008 MB / 474.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003615/14.19, allocations: 111.1 kB / 4.081 GB, free: 7.008 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.0008687/14.19, allocations: 245.3 kB / 4.081 GB, free: 6.887 MB / 474.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0007662/14.19, allocations: 233.8 kB / 4.081 GB, free: 6.766 MB / 474.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01757/14.21, allocations: 9.373 MB / 4.09 GB, free: 5.957 MB / 474.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0001343/14.21, allocations: 109.6 kB / 4.09 GB, free: 5.953 MB / 474.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.387e-05/14.21, allocations: 0 / 4.09 GB, free: 5.953 MB / 474.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0147/14.22, allocations: 8.252 MB / 4.099 GB, free: 5.039 MB / 474.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02871/14.25, allocations: 13.61 MB / 4.112 GB, free: 0.6211 MB / 474.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.418e-05/14.25, allocations: 0 / 4.112 GB, free: 0.6211 MB / 474.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.003627/14.26, allocations: 416.4 kB / 4.112 GB, free: 0.6055 MB / 474.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.009677/14.27, allocations: 2.671 MB / 4.115 GB, free: 15.97 MB / 490.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0006949/14.27, allocations: 77.31 kB / 4.115 GB, free: 15.93 MB / 490.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.008193/14.28, allocations: 6.921 MB / 4.122 GB, free: 10.63 MB / 490.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.25e-06/14.28, allocations: 3.875 kB / 4.122 GB, free: 10.63 MB / 490.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.02146/14.3, allocations: 9.965 MB / 4.131 GB, free: 3.094 MB / 490.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.003096/14.3, allocations: 0.8338 MB / 4.132 GB, free: 2.34 MB / 490.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0009452/14.3, allocations: 58.42 kB / 4.132 GB, free: 2.289 MB / 490.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.004205/14.31, allocations: 255.8 kB / 4.132 GB, free: 2.113 MB / 490.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0007164/14.31, allocations: 201.6 kB / 4.133 GB, free: 1.996 MB / 490.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0003186/14.31, allocations: 83.95 kB / 4.133 GB, free: 1.926 MB / 490.7 MB Notification: Performance of sorting global known variables: time 0.003174/14.31, allocations: 1.315 MB / 4.134 GB, free: 0.7109 MB / 490.7 MB Notification: Performance of sort global known variables: time 6.11e-07/14.31, allocations: 0 / 4.134 GB, free: 0.7109 MB / 490.7 MB Notification: Performance of remove unused functions: time 0.01455/14.32, allocations: 3.079 MB / 4.137 GB, free: 13.71 MB / 0.4948 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.03673/14.36, allocations: 12.89 MB / 4.15 GB, free: 2.426 MB / 0.4948 GB Notification: Performance of simCode: created initialization part: time 0.3958/14.76, allocations: 6.402 MB / 4.156 GB, free: 68.59 MB / 0.4948 GB Notification: Performance of simCode: created event and clocks part: time 1.057e-05/14.76, allocations: 2.781 kB / 4.156 GB, free: 68.59 MB / 0.4948 GB Notification: Performance of simCode: created simulation system equations: time 0.009146/14.77, allocations: 2.942 MB / 4.159 GB, free: 68.56 MB / 0.4948 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.01034/14.78, allocations: 1.087 MB / 4.16 GB, free: 68.54 MB / 0.4948 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02765/14.8, allocations: 8.912 MB / 4.169 GB, free: 67.16 MB / 0.4948 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002879/14.81, allocations: 2.522 MB / 4.171 GB, free: 66.4 MB / 0.4948 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.003067/14.81, allocations: 1.509 MB / 4.172 GB, free: 66.39 MB / 0.4948 GB Notification: Performance of SimCode: time 1.693e-06/14.81, allocations: 0 / 4.172 GB, free: 66.39 MB / 0.4948 GB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 5.503/20.31, allocations: 154.1 MB / 4.323 GB, free: 9.473 MB / 0.4948 GB TODO: How the !@#!# did the simulation report success but simulation result Modelica_3.2.2_cpp_Modelica.Fluid.Examples.HeatingSystem_res.mat does not exist to compare? outputFormat=mat