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.686/1.686, allocations: 171.2 MB / 183.8 MB, free: 12.02 MB / 154.7 MB Notification: Performance of FrontEnd - loaded program: time 4.219e-05/4.198e-05, allocations: 7.438 kB / 225.1 MB, free: 2.703 MB / 186.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2653/0.2653, allocations: 38.77 MB / 263.8 MB, free: 9.766 MB / 218.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 7.574/7.839, allocations: 2.551 GB / 2.809 GB, free: 2.957 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003247/7.839, allocations: 75.59 kB / 2.809 GB, free: 2.922 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 5.456/13.3, allocations: 0.9963 GB / 3.805 GB, free: 22.14 MB / 410.7 MB Notification: Performance of FrontEnd: time 1.743e-06/13.3, allocations: 0 / 3.805 GB, free: 22.14 MB / 410.7 MB Notification: Performance of Transformations before backend: time 0.0003678/13.3, allocations: 68.89 kB / 3.805 GB, free: 22.13 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.02053/13.32, allocations: 4.281 MB / 3.81 GB, free: 20.04 MB / 410.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.98e-05/13.32, allocations: 7.156 kB / 3.81 GB, free: 20.04 MB / 410.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.002067/13.32, allocations: 423.9 kB / 3.81 GB, free: 19.98 MB / 410.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01165/13.33, allocations: 0.9844 MB / 3.811 GB, free: 19.81 MB / 410.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.009307/13.34, allocations: 2.198 MB / 3.813 GB, free: 19.25 MB / 410.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0005248/13.34, allocations: 288.7 kB / 3.813 GB, free: 19.18 MB / 410.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001465/13.34, allocations: 250.1 kB / 3.814 GB, free: 19.18 MB / 410.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01507/13.36, allocations: 4.449 MB / 3.818 GB, free: 17.96 MB / 410.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001085/13.36, allocations: 14.27 kB / 3.818 GB, free: 17.96 MB / 410.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0006763/13.36, allocations: 110.8 kB / 3.818 GB, free: 17.88 MB / 410.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0003882/13.36, allocations: 222.5 kB / 3.818 GB, free: 17.84 MB / 410.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01396/13.37, allocations: 4.001 MB / 3.822 GB, free: 15.88 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.04137/13.41, allocations: 19.03 MB / 3.841 GB, free: 12.29 MB / 426.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01017/13.42, allocations: 2.764 MB / 3.843 GB, free: 9.516 MB / 426.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.004332/13.43, allocations: 1.478 MB / 3.845 GB, free: 8.039 MB / 426.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.4053/13.83, allocations: 17.04 MB / 3.862 GB, free: 30.32 MB / 426.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.673e-05/13.83, allocations: 57.06 kB / 3.862 GB, free: 30.28 MB / 426.7 MB Notification: Performance of preOpt simplifyInStream (simulation): time 0.002635/13.84, allocations: 233.5 kB / 3.862 GB, free: 30.28 MB / 426.7 MB Notification: Performance of pre-optimization done (n=194): time 7.814e-06/13.84, allocations: 1.938 kB / 3.862 GB, free: 30.28 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.05229/13.89, allocations: 11.2 MB / 3.873 GB, free: 29.53 MB / 426.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.843e-05/13.89, allocations: 128.2 kB / 3.873 GB, free: 29.4 MB / 426.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003715/13.89, allocations: 1.658 MB / 3.875 GB, free: 29.17 MB / 426.7 MB Notification: Performance of collectPreVariables (initialization): time 0.000685/13.89, allocations: 64.27 kB / 3.875 GB, free: 29.14 MB / 426.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0009439/13.89, allocations: 1.074 MB / 3.876 GB, free: 28.71 MB / 426.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.001216/13.9, allocations: 0.7329 MB / 3.876 GB, free: 28.35 MB / 426.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002971/13.9, allocations: 45.31 kB / 3.876 GB, free: 28.35 MB / 426.7 MB Notification: Performance of setup shared object (initialization): time 0.000184/13.9, allocations: 403.5 kB / 3.877 GB, free: 28.04 MB / 426.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003291/13.9, allocations: 1.324 MB / 3.878 GB, free: 28.03 MB / 426.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003912/13.9, allocations: 1.806 MB / 3.88 GB, free: 27.5 MB / 426.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.00399/13.91, allocations: 1.532 MB / 3.881 GB, free: 27.48 MB / 426.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.935e-05/13.91, allocations: 5.797 kB / 3.881 GB, free: 27.48 MB / 426.7 MB Notification: Performance of matching and sorting (n=306) (initialization): time 0.01197/13.92, allocations: 4.435 MB / 3.886 GB, free: 27.34 MB / 426.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.001175/13.92, allocations: 5.323 MB / 3.891 GB, free: 21.82 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.38e-05/13.92, allocations: 16.92 kB / 3.891 GB, free: 21.82 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.02354/13.94, allocations: 3.765 MB / 3.895 GB, free: 21.77 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002318/13.95, allocations: 316.8 kB / 3.895 GB, free: 21.77 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01155/13.96, allocations: 4.57 MB / 3.899 GB, free: 21.18 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004921/13.96, allocations: 314 kB / 3.9 GB, free: 21.17 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0004455/13.96, allocations: 126 kB / 3.9 GB, free: 21.17 MB / 426.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.613e-05/13.96, allocations: 3.094 kB / 3.9 GB, free: 21.17 MB / 426.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.01042/13.97, allocations: 3.895 MB / 3.904 GB, free: 21.11 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.385e-05/13.97, allocations: 14.47 kB / 3.904 GB, free: 21.11 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.01404/13.99, allocations: 2.449 MB / 3.906 GB, free: 21.07 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002861/13.99, allocations: 383.6 kB / 3.906 GB, free: 21.07 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.007758/14, allocations: 3.548 MB / 3.91 GB, free: 20.5 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003852/14, allocations: 313.2 kB / 3.91 GB, free: 20.48 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003981/14, allocations: 116.4 kB / 3.91 GB, free: 20.48 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.0008753/14, allocations: 256.2 kB / 3.91 GB, free: 20.37 MB / 426.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0007901/14, allocations: 228.7 kB / 3.911 GB, free: 20.25 MB / 426.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01768/14.02, allocations: 9.362 MB / 3.92 GB, free: 19.46 MB / 426.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.00013/14.02, allocations: 112.6 kB / 3.92 GB, free: 19.45 MB / 426.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.408e-05/14.02, allocations: 1.406 kB / 3.92 GB, free: 19.45 MB / 426.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.01443/14.04, allocations: 8.254 MB / 3.928 GB, free: 18.54 MB / 426.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02853/14.07, allocations: 13.61 MB / 3.941 GB, free: 17.57 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.883e-05/14.07, allocations: 3.844 kB / 3.941 GB, free: 17.57 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.003529/14.07, allocations: 402 kB / 3.942 GB, free: 17.57 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.009282/14.08, allocations: 2.677 MB / 3.944 GB, free: 17.43 MB / 426.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0006488/14.08, allocations: 72.22 kB / 3.944 GB, free: 17.43 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.007222/14.09, allocations: 6.927 MB / 3.951 GB, free: 13.24 MB / 426.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.469e-06/14.09, allocations: 1.5 kB / 3.951 GB, free: 13.24 MB / 426.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01931/14.11, allocations: 9.961 MB / 3.961 GB, free: 9.406 MB / 426.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.002769/14.11, allocations: 0.83 MB / 3.962 GB, free: 8.898 MB / 426.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0008776/14.11, allocations: 61.16 kB / 3.962 GB, free: 8.863 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.003976/14.11, allocations: 261 kB / 3.962 GB, free: 8.816 MB / 426.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0006478/14.11, allocations: 203.6 kB / 3.962 GB, free: 8.789 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0003013/14.11, allocations: 86.62 kB / 3.962 GB, free: 8.773 MB / 426.7 MB Notification: Performance of sorting global known variables: time 0.002857/14.12, allocations: 1.319 MB / 3.963 GB, free: 8.242 MB / 426.7 MB Notification: Performance of sort global known variables: time 7.82e-07/14.12, allocations: 0 / 3.963 GB, free: 8.242 MB / 426.7 MB Notification: Performance of remove unused functions: time 0.01358/14.13, allocations: 3.038 MB / 3.966 GB, free: 7.895 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.0329/14.16, allocations: 12.87 MB / 3.979 GB, free: 2.824 MB / 426.7 MB Notification: Performance of simCode: created initialization part: time 0.02057/14.18, allocations: 6.196 MB / 3.985 GB, free: 13.99 MB / 442.7 MB Notification: Performance of simCode: created event and clocks part: time 9.568e-06/14.18, allocations: 0 / 3.985 GB, free: 13.99 MB / 442.7 MB Notification: Performance of simCode: created simulation system equations: time 0.00853/14.19, allocations: 2.946 MB / 3.988 GB, free: 11.35 MB / 442.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.009702/14.2, allocations: 1.079 MB / 3.989 GB, free: 10.61 MB / 442.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02958/14.23, allocations: 8.906 MB / 3.998 GB, free: 3.359 MB / 442.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.003427/14.24, allocations: 2.522 MB / 4 GB, free: 1.449 MB / 442.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.003526/14.24, allocations: 1.509 MB / 4.002 GB, free: 68 kB / 442.7 MB Notification: Performance of SimCode: time 2.966e-06/14.24, allocations: 1.641 kB / 4.002 GB, free: 68 kB / 442.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 5.866/20.11, allocations: 154 MB / 4.152 GB, free: 28.52 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