Running command: "" <> buildModelFMU(Modelica.Fluid.Examples.HeatingSystem,fileNamePrefix="Modelica_3_2_1_cpp_Modelica_Fluid_Examples_HeatingSystem",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(Modelica): time 1.784/1.784, allocations: 171.2 MB / 183.8 MB, free: 12.02 MB / 154.7 MB Notification: Performance of FrontEnd - loaded program: time 3.376e-05/3.379e-05, allocations: 4 kB / 225.1 MB, free: 2.703 MB / 186.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2636/0.2637, allocations: 38.77 MB / 263.8 MB, free: 9.863 MB / 218.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 7.455/7.719, allocations: 2.551 GB / 2.809 GB, free: 4.496 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002557/7.719, allocations: 73.59 kB / 2.809 GB, free: 4.465 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 5.368/13.09, allocations: 0.9963 GB / 3.805 GB, free: 22.61 MB / 410.7 MB Notification: Performance of FrontEnd: time 2.335e-06/13.09, allocations: 0 / 3.805 GB, free: 22.61 MB / 410.7 MB Notification: Performance of Transformations before backend: time 0.0003641/13.09, allocations: 75.67 kB / 3.805 GB, free: 22.59 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.02097/13.11, allocations: 4.273 MB / 3.81 GB, free: 20.52 MB / 410.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.133e-05/13.11, allocations: 12.19 kB / 3.81 GB, free: 20.52 MB / 410.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.002125/13.11, allocations: 414.6 kB / 3.81 GB, free: 20.45 MB / 410.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01195/13.12, allocations: 0.9905 MB / 3.811 GB, free: 20.28 MB / 410.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.009922/13.13, allocations: 2.204 MB / 3.813 GB, free: 19.72 MB / 410.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0005239/13.13, allocations: 287.4 kB / 3.813 GB, free: 19.65 MB / 410.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001514/13.13, allocations: 250 kB / 3.814 GB, free: 19.64 MB / 410.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0169/13.15, allocations: 4.478 MB / 3.818 GB, free: 18.73 MB / 410.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001399/13.15, allocations: 8.75 kB / 3.818 GB, free: 18.72 MB / 410.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001266/13.15, allocations: 106.2 kB / 3.818 GB, free: 18.65 MB / 410.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0004281/13.15, allocations: 229 kB / 3.818 GB, free: 18.61 MB / 410.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01484/13.17, allocations: 4.044 MB / 3.822 GB, free: 17.3 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.04444/13.21, allocations: 19.03 MB / 3.841 GB, free: 14.48 MB / 426.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01057/13.22, allocations: 2.772 MB / 3.844 GB, free: 11.7 MB / 426.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.004585/13.23, allocations: 1.482 MB / 3.845 GB, free: 10.22 MB / 426.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.4093/13.64, allocations: 17.06 MB / 3.862 GB, free: 32.01 MB / 426.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.241e-05/13.64, allocations: 58.44 kB / 3.862 GB, free: 31.97 MB / 426.7 MB Notification: Performance of preOpt simplifyInStream (simulation): time 0.002596/13.64, allocations: 236 kB / 3.862 GB, free: 31.97 MB / 426.7 MB Notification: Performance of pre-optimization done (n=194): time 9.988e-06/13.64, allocations: 0 / 3.862 GB, free: 31.97 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.05359/13.69, allocations: 11.19 MB / 3.873 GB, free: 31.22 MB / 426.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.967e-05/13.69, allocations: 127.5 kB / 3.873 GB, free: 31.1 MB / 426.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004121/13.7, allocations: 1.661 MB / 3.875 GB, free: 30.87 MB / 426.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0007101/13.7, allocations: 64.64 kB / 3.875 GB, free: 30.84 MB / 426.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.001072/13.7, allocations: 1.074 MB / 3.876 GB, free: 30.41 MB / 426.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.001334/13.7, allocations: 0.7269 MB / 3.876 GB, free: 30.04 MB / 426.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003594/13.7, allocations: 50.81 kB / 3.876 GB, free: 30.04 MB / 426.7 MB Notification: Performance of setup shared object (initialization): time 0.0002355/13.7, allocations: 408.5 kB / 3.877 GB, free: 29.73 MB / 426.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00374/13.71, allocations: 1.32 MB / 3.878 GB, free: 29.72 MB / 426.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.004485/13.71, allocations: 1.822 MB / 3.88 GB, free: 29.19 MB / 426.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.004397/13.71, allocations: 1.532 MB / 3.881 GB, free: 29.17 MB / 426.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.299e-05/13.71, allocations: 2.594 kB / 3.881 GB, free: 29.17 MB / 426.7 MB Notification: Performance of matching and sorting (n=306) (initialization): time 0.01397/13.73, allocations: 4.478 MB / 3.886 GB, free: 29.03 MB / 426.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.001175/13.73, allocations: 5.318 MB / 3.891 GB, free: 23.5 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.59e-05/13.73, allocations: 15.81 kB / 3.891 GB, free: 23.5 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.02422/13.75, allocations: 3.778 MB / 3.895 GB, free: 23.46 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002476/13.76, allocations: 312.6 kB / 3.895 GB, free: 23.46 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01319/13.77, allocations: 4.568 MB / 3.899 GB, free: 22.86 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.005616/13.78, allocations: 313.8 kB / 3.9 GB, free: 22.86 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001085/13.78, allocations: 119.3 kB / 3.9 GB, free: 22.86 MB / 426.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.269e-05/13.78, allocations: 5.25 kB / 3.9 GB, free: 22.86 MB / 426.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.01234/13.79, allocations: 3.93 MB / 3.904 GB, free: 22.8 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.842e-05/13.79, allocations: 16.69 kB / 3.904 GB, free: 22.8 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.01504/13.8, allocations: 2.471 MB / 3.906 GB, free: 22.76 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00305/13.81, allocations: 382.9 kB / 3.906 GB, free: 22.76 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.008622/13.82, allocations: 3.553 MB / 3.91 GB, free: 22.18 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004189/13.82, allocations: 311.5 kB / 3.91 GB, free: 22.17 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0006948/13.82, allocations: 115 kB / 3.91 GB, free: 22.17 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.0009447/13.82, allocations: 242.9 kB / 3.911 GB, free: 22.06 MB / 426.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0008493/13.82, allocations: 229.4 kB / 3.911 GB, free: 21.95 MB / 426.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.02178/13.84, allocations: 9.377 MB / 3.92 GB, free: 21.14 MB / 426.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0001824/13.85, allocations: 104.1 kB / 3.92 GB, free: 21.14 MB / 426.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.012e-05/13.85, allocations: 2.438 kB / 3.92 GB, free: 21.14 MB / 426.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.02099/13.87, allocations: 8.25 MB / 3.928 GB, free: 20.23 MB / 426.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0405/13.91, allocations: 13.62 MB / 3.941 GB, free: 19.25 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.093e-05/13.91, allocations: 0 / 3.941 GB, free: 19.25 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.00477/13.91, allocations: 406.7 kB / 3.942 GB, free: 19.25 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.01155/13.92, allocations: 2.676 MB / 3.944 GB, free: 19.11 MB / 426.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0007097/13.92, allocations: 75.41 kB / 3.944 GB, free: 19.11 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.007274/13.93, allocations: 6.935 MB / 3.951 GB, free: 14.93 MB / 426.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.889e-06/13.93, allocations: 0 / 3.951 GB, free: 14.93 MB / 426.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.02045/13.95, allocations: 9.966 MB / 3.961 GB, free: 11.1 MB / 426.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.002845/13.95, allocations: 0.8304 MB / 3.962 GB, free: 10.59 MB / 426.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0008795/13.96, allocations: 57.02 kB / 3.962 GB, free: 10.55 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.004163/13.96, allocations: 259.2 kB / 3.962 GB, free: 10.51 MB / 426.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0006918/13.96, allocations: 199 kB / 3.962 GB, free: 10.48 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0003047/13.96, allocations: 86.09 kB / 3.962 GB, free: 10.47 MB / 426.7 MB Notification: Performance of sorting global known variables: time 0.0029/13.96, allocations: 1.317 MB / 3.964 GB, free: 9.938 MB / 426.7 MB Notification: Performance of sort global known variables: time 8.62e-07/13.96, allocations: 0.875 kB / 3.964 GB, free: 9.938 MB / 426.7 MB Notification: Performance of remove unused functions: time 0.01412/13.98, allocations: 3.045 MB / 3.967 GB, free: 9.586 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.03407/14.01, allocations: 12.85 MB / 3.979 GB, free: 4.543 MB / 426.7 MB Notification: Performance of simCode: created initialization part: time 0.01808/14.03, allocations: 6.092 MB / 3.985 GB, free: 15.82 MB / 442.7 MB Notification: Performance of simCode: created event and clocks part: time 1.385e-05/14.03, allocations: 7.5 kB / 3.985 GB, free: 15.81 MB / 442.7 MB Notification: Performance of simCode: created simulation system equations: time 0.008868/14.04, allocations: 2.952 MB / 3.988 GB, free: 13.16 MB / 442.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.01029/14.05, allocations: 1.077 MB / 3.989 GB, free: 12.42 MB / 442.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.03649/14.09, allocations: 8.918 MB / 3.998 GB, free: 5.16 MB / 442.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.004274/14.09, allocations: 2.527 MB / 4 GB, free: 3.25 MB / 442.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.004612/14.1, allocations: 1.503 MB / 4.002 GB, free: 1.867 MB / 442.7 MB Notification: Performance of SimCode: time 1.884e-06/14.1, allocations: 0 / 4.002 GB, free: 1.867 MB / 442.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 5.453/19.55, allocations: 154 MB / 4.152 GB, free: 30.71 MB / 458.7 MB TODO: How the !@#!# did the simulation report success but simulation result Modelica_3.2.1_cpp_Modelica.Fluid.Examples.HeatingSystem_res.mat does not exist to compare? outputFormat=mat