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.968/1.968, allocations: 194.9 MB / 208.4 MB, free: 3.25 MB / 170.7 MB Notification: Performance of FrontEnd - loaded program: time 2.777e-05/2.781e-05, allocations: 4 kB / 255.4 MB, free: 3.109 MB / 202.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09315/0.0932, allocations: 44.51 MB / 299.9 MB, free: 6.547 MB / 250.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 7.512/7.605, allocations: 2.661 GB / 2.954 GB, free: 55.39 MB / 410.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002562/7.605, allocations: 73.53 kB / 2.954 GB, free: 55.36 MB / 410.7 MB Notification: Performance of FrontEnd - DAE generated: time 5.272/12.88, allocations: 1.022 GB / 3.976 GB, free: 4.34 MB / 442.7 MB Notification: Performance of FrontEnd: time 2.435e-06/12.88, allocations: 0 / 3.976 GB, free: 4.34 MB / 442.7 MB Notification: Performance of Transformations before backend: time 0.000342/12.88, allocations: 75.92 kB / 3.976 GB, free: 4.266 MB / 442.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.02068/12.9, allocations: 4.393 MB / 3.98 GB, free: 15.8 MB / 458.7 MB Notification: Performance of prepare preOptimizeDAE: time 8.127e-05/12.9, allocations: 8.031 kB / 3.98 GB, free: 15.8 MB / 458.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.002077/12.9, allocations: 415.7 kB / 3.98 GB, free: 15.38 MB / 458.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01234/12.91, allocations: 1.035 MB / 3.981 GB, free: 14.34 MB / 458.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01046/12.92, allocations: 2.204 MB / 3.984 GB, free: 12.08 MB / 458.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0005886/12.92, allocations: 289.6 kB / 3.984 GB, free: 11.79 MB / 458.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001521/12.93, allocations: 247.9 kB / 3.984 GB, free: 11.54 MB / 458.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01739/12.94, allocations: 4.477 MB / 3.988 GB, free: 6.84 MB / 458.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001092/12.94, allocations: 7.938 kB / 3.988 GB, free: 6.832 MB / 458.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.000751/12.94, allocations: 112 kB / 3.989 GB, free: 6.723 MB / 458.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0004651/12.94, allocations: 216.8 kB / 3.989 GB, free: 6.508 MB / 458.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01583/12.96, allocations: 4.048 MB / 3.993 GB, free: 2.445 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.4288/13.39, allocations: 19.02 MB / 4.011 GB, free: 14.2 MB / 458.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.009768/13.4, allocations: 2.777 MB / 4.014 GB, free: 14.15 MB / 458.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.004415/13.4, allocations: 1.479 MB / 4.015 GB, free: 14.14 MB / 458.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.05473/13.46, allocations: 17.06 MB / 4.032 GB, free: 19.63 MB / 474.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 9.504e-05/13.46, allocations: 59.69 kB / 4.032 GB, free: 19.59 MB / 474.7 MB Notification: Performance of preOpt simplifyInStream (simulation): time 0.002712/13.46, allocations: 241.5 kB / 4.032 GB, free: 19.54 MB / 474.7 MB Notification: Performance of pre-optimization done (n=194): time 8.396e-06/13.46, allocations: 1.75 kB / 4.032 GB, free: 19.54 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.05182/13.51, allocations: 11.19 MB / 4.043 GB, free: 18.62 MB / 474.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001142/13.51, allocations: 133.1 kB / 4.043 GB, free: 18.49 MB / 474.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003578/13.52, allocations: 1.657 MB / 4.045 GB, free: 18.26 MB / 474.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0007271/13.52, allocations: 64.14 kB / 4.045 GB, free: 18.23 MB / 474.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0009114/13.52, allocations: 1.075 MB / 4.046 GB, free: 17.8 MB / 474.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.001144/13.52, allocations: 0.7289 MB / 4.047 GB, free: 17.44 MB / 474.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002899/13.52, allocations: 49.25 kB / 4.047 GB, free: 17.44 MB / 474.7 MB Notification: Performance of setup shared object (initialization): time 0.0002333/13.52, allocations: 403.5 kB / 4.047 GB, free: 17.12 MB / 474.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003318/13.52, allocations: 1.325 MB / 4.049 GB, free: 17.12 MB / 474.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003919/13.53, allocations: 1.818 MB / 4.05 GB, free: 16.59 MB / 474.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003954/13.53, allocations: 1.542 MB / 4.052 GB, free: 16.56 MB / 474.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.616e-05/13.53, allocations: 3.25 kB / 4.052 GB, free: 16.56 MB / 474.7 MB Notification: Performance of matching and sorting (n=306) (initialization): time 0.01192/13.54, allocations: 4.477 MB / 4.056 GB, free: 16.43 MB / 474.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.002009/13.55, allocations: 5.31 MB / 4.061 GB, free: 10.9 MB / 474.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.595e-05/13.55, allocations: 16.97 kB / 4.062 GB, free: 10.9 MB / 474.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.02368/13.57, allocations: 3.781 MB / 4.065 GB, free: 10.86 MB / 474.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002412/13.57, allocations: 314.5 kB / 4.066 GB, free: 10.86 MB / 474.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01171/13.58, allocations: 4.571 MB / 4.07 GB, free: 10.25 MB / 474.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.005143/13.59, allocations: 318.2 kB / 4.07 GB, free: 10.25 MB / 474.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0005203/13.59, allocations: 118.2 kB / 4.07 GB, free: 10.25 MB / 474.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.508e-05/13.59, allocations: 6.344 kB / 4.07 GB, free: 10.25 MB / 474.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.01005/13.6, allocations: 3.925 MB / 4.074 GB, free: 10.19 MB / 474.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.411e-05/13.6, allocations: 21.52 kB / 4.074 GB, free: 10.19 MB / 474.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.01447/13.61, allocations: 2.467 MB / 4.077 GB, free: 10.15 MB / 474.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002959/13.62, allocations: 379.4 kB / 4.077 GB, free: 10.15 MB / 474.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.007895/13.62, allocations: 3.549 MB / 4.08 GB, free: 9.57 MB / 474.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003978/13.63, allocations: 314.3 kB / 4.081 GB, free: 9.562 MB / 474.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003985/13.63, allocations: 115 kB / 4.081 GB, free: 9.562 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.0009086/13.63, allocations: 238.9 kB / 4.081 GB, free: 9.445 MB / 474.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0008046/13.63, allocations: 238.7 kB / 4.081 GB, free: 9.32 MB / 474.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01785/13.65, allocations: 9.379 MB / 4.091 GB, free: 8.516 MB / 474.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0001312/13.65, allocations: 107.2 kB / 4.091 GB, free: 8.516 MB / 474.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.512e-05/13.65, allocations: 4.516 kB / 4.091 GB, free: 8.512 MB / 474.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.015/13.66, allocations: 8.256 MB / 4.099 GB, free: 7.594 MB / 474.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02967/13.69, allocations: 13.6 MB / 4.112 GB, free: 6.629 MB / 474.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.76e-05/13.69, allocations: 3.125 kB / 4.112 GB, free: 6.629 MB / 474.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.003636/13.7, allocations: 411.3 kB / 4.112 GB, free: 6.629 MB / 474.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.009523/13.71, allocations: 2.678 MB / 4.115 GB, free: 6.492 MB / 474.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0007152/13.71, allocations: 74.19 kB / 4.115 GB, free: 6.492 MB / 474.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.008175/13.72, allocations: 6.93 MB / 4.122 GB, free: 17.94 MB / 490.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.181e-06/13.72, allocations: 0 / 4.122 GB, free: 17.94 MB / 490.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01962/13.74, allocations: 9.959 MB / 4.132 GB, free: 13.5 MB / 490.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.002983/13.74, allocations: 0.8258 MB / 4.132 GB, free: 12.99 MB / 490.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0009396/13.74, allocations: 63.52 kB / 4.132 GB, free: 12.95 MB / 490.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.004351/13.74, allocations: 273.2 kB / 4.133 GB, free: 12.9 MB / 490.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0008132/13.75, allocations: 194.7 kB / 4.133 GB, free: 12.88 MB / 490.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0003149/13.75, allocations: 88.38 kB / 4.133 GB, free: 12.86 MB / 490.7 MB Notification: Performance of sorting global known variables: time 0.002882/13.75, allocations: 1.313 MB / 4.134 GB, free: 12.33 MB / 490.7 MB Notification: Performance of sort global known variables: time 8.82e-07/13.75, allocations: 0 / 4.134 GB, free: 12.33 MB / 490.7 MB Notification: Performance of remove unused functions: time 0.01387/13.76, allocations: 3.072 MB / 4.137 GB, free: 11.98 MB / 490.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.03755/13.8, allocations: 12.87 MB / 4.15 GB, free: 6.121 MB / 490.7 MB Notification: Performance of simCode: created initialization part: time 0.01954/13.82, allocations: 6.094 MB / 4.156 GB, free: 0.7227 MB / 490.7 MB Notification: Performance of simCode: created event and clocks part: time 1.167e-05/13.82, allocations: 5.094 kB / 4.156 GB, free: 0.7227 MB / 490.7 MB Notification: Performance of simCode: created simulation system equations: time 0.01799/13.84, allocations: 3.527 MB / 4.159 GB, free: 15.57 MB / 0.4948 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.009903/13.85, allocations: 1.076 MB / 4.16 GB, free: 14.84 MB / 0.4948 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02795/13.88, allocations: 8.934 MB / 4.169 GB, free: 7.457 MB / 0.4948 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.003043/13.88, allocations: 2.524 MB / 4.171 GB, free: 5.504 MB / 0.4948 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.003367/13.88, allocations: 1.507 MB / 4.173 GB, free: 4.117 MB / 0.4948 GB Notification: Performance of SimCode: time 2.064e-06/13.88, allocations: 0 / 4.173 GB, free: 4.117 MB / 0.4948 GB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 5.712/19.59, allocations: 155.3 MB / 4.325 GB, free: 29.21 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