Running command: "" <> buildModelFMU(Modelica.Fluid.Examples.HeatingSystem,fileNamePrefix="Modelica_3_2_1_Modelica_Fluid_Examples_HeatingSystem",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(Modelica): time 1.748/1.748, allocations: 171.2 MB / 183.3 MB, free: 12.02 MB / 154.7 MB Notification: Performance of FrontEnd - loaded program: time 4.211e-05/4.231e-05, allocations: 4 kB / 225.1 MB, free: 2.211 MB / 186.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2653/0.2654, allocations: 38.76 MB / 263.8 MB, free: 9.809 MB / 218.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 7.699/7.965, allocations: 2.551 GB / 2.809 GB, free: 4.105 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002611/7.965, allocations: 75.34 kB / 2.809 GB, free: 4.07 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 5.683/13.65, allocations: 0.9963 GB / 3.805 GB, free: 22.11 MB / 410.7 MB Notification: Performance of FrontEnd: time 2.485e-06/13.65, allocations: 0 / 3.805 GB, free: 22.11 MB / 410.7 MB Notification: Performance of Transformations before backend: time 0.0004084/13.65, allocations: 73.02 kB / 3.805 GB, free: 22.09 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.022/13.67, allocations: 4.277 MB / 3.81 GB, free: 20.01 MB / 410.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.823e-05/13.67, allocations: 11.31 kB / 3.81 GB, free: 20.01 MB / 410.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.002365/13.67, allocations: 414.9 kB / 3.81 GB, free: 19.95 MB / 410.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01223/13.69, allocations: 0.9857 MB / 3.811 GB, free: 19.78 MB / 410.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0104/13.7, allocations: 2.206 MB / 3.813 GB, free: 19.22 MB / 410.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0005596/13.7, allocations: 284.4 kB / 3.813 GB, free: 19.15 MB / 410.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001521/13.7, allocations: 251.2 kB / 3.814 GB, free: 19.14 MB / 410.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01698/13.72, allocations: 4.483 MB / 3.818 GB, free: 18.26 MB / 410.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001392/13.72, allocations: 7.594 kB / 3.818 GB, free: 18.25 MB / 410.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001126/13.72, allocations: 106.5 kB / 3.818 GB, free: 18.18 MB / 410.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0003958/13.72, allocations: 219 kB / 3.818 GB, free: 18.15 MB / 410.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01445/13.73, allocations: 4.053 MB / 3.822 GB, free: 16.76 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.04622/13.78, allocations: 19.03 MB / 3.841 GB, free: 13.64 MB / 426.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01462/13.79, allocations: 2.777 MB / 3.844 GB, free: 10.86 MB / 426.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.006324/13.8, allocations: 1.478 MB / 3.845 GB, free: 9.379 MB / 426.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.437/14.24, allocations: 17.04 MB / 3.862 GB, free: 31.25 MB / 426.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.606e-05/14.24, allocations: 58.5 kB / 3.862 GB, free: 31.21 MB / 426.7 MB Notification: Performance of preOpt simplifyInStream (simulation): time 0.00256/14.24, allocations: 237.3 kB / 3.862 GB, free: 31.21 MB / 426.7 MB Notification: Performance of pre-optimization done (n=194): time 7.404e-06/14.24, allocations: 0 / 3.862 GB, free: 31.21 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.05022/14.29, allocations: 11.19 MB / 3.873 GB, free: 30.46 MB / 426.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.273e-05/14.29, allocations: 127 kB / 3.873 GB, free: 30.34 MB / 426.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003627/14.29, allocations: 1.659 MB / 3.875 GB, free: 30.11 MB / 426.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0006934/14.29, allocations: 60.39 kB / 3.875 GB, free: 30.07 MB / 426.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.001049/14.29, allocations: 1.157 MB / 3.876 GB, free: 29.71 MB / 426.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.001186/14.3, allocations: 0.733 MB / 3.876 GB, free: 29.34 MB / 426.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002961/14.3, allocations: 47.75 kB / 3.877 GB, free: 29.34 MB / 426.7 MB Notification: Performance of setup shared object (initialization): time 0.0001696/14.3, allocations: 403.1 kB / 3.877 GB, free: 29.04 MB / 426.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003391/14.3, allocations: 1.319 MB / 3.878 GB, free: 29.03 MB / 426.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.004517/14.3, allocations: 1.82 MB / 3.88 GB, free: 28.5 MB / 426.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.004498/14.31, allocations: 1.537 MB / 3.881 GB, free: 28.48 MB / 426.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.098e-05/14.31, allocations: 6.469 kB / 3.882 GB, free: 28.48 MB / 426.7 MB Notification: Performance of matching and sorting (n=306) (initialization): time 0.01227/14.32, allocations: 4.598 MB / 3.886 GB, free: 28.27 MB / 426.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.001167/14.32, allocations: 5.535 MB / 3.891 GB, free: 22.5 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.76e-05/14.32, allocations: 15.06 kB / 3.891 GB, free: 22.5 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.02337/14.35, allocations: 3.786 MB / 3.895 GB, free: 22.46 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002347/14.35, allocations: 310.1 kB / 3.895 GB, free: 22.46 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01155/14.36, allocations: 4.571 MB / 3.9 GB, free: 21.86 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.005062/14.37, allocations: 311.8 kB / 3.9 GB, free: 21.86 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0004323/14.37, allocations: 119.8 kB / 3.9 GB, free: 21.86 MB / 426.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.705e-05/14.37, allocations: 3.969 kB / 3.9 GB, free: 21.86 MB / 426.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.01496/14.38, allocations: 3.934 MB / 3.904 GB, free: 21.8 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.824e-05/14.38, allocations: 19.16 kB / 3.904 GB, free: 21.8 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.02323/14.4, allocations: 2.615 MB / 3.907 GB, free: 21.76 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004118/14.41, allocations: 377.7 kB / 3.907 GB, free: 21.76 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01374/14.42, allocations: 3.554 MB / 3.911 GB, free: 21.18 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.007271/14.43, allocations: 326.7 kB / 3.911 GB, free: 21.17 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001224/14.43, allocations: 112.8 kB / 3.911 GB, free: 21.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.002267/14.43, allocations: 245.2 kB / 3.911 GB, free: 21.05 MB / 426.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001622/14.43, allocations: 232.2 kB / 3.911 GB, free: 20.93 MB / 426.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.02505/14.46, allocations: 9.372 MB / 3.921 GB, free: 20.13 MB / 426.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0001507/14.46, allocations: 113.4 kB / 3.921 GB, free: 20.13 MB / 426.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.764e-05/14.46, allocations: 0 / 3.921 GB, free: 20.13 MB / 426.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.01631/14.48, allocations: 8.248 MB / 3.929 GB, free: 19.21 MB / 426.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.03357/14.51, allocations: 13.61 MB / 3.942 GB, free: 18.25 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.845e-05/14.51, allocations: 3.562 kB / 3.942 GB, free: 18.25 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.003808/14.51, allocations: 409.6 kB / 3.942 GB, free: 18.25 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.01009/14.52, allocations: 2.678 MB / 3.945 GB, free: 18.11 MB / 426.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0007797/14.52, allocations: 73.45 kB / 3.945 GB, free: 18.11 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.007714/14.53, allocations: 6.932 MB / 3.952 GB, free: 13.92 MB / 426.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.49e-06/14.53, allocations: 3.031 kB / 3.952 GB, free: 13.92 MB / 426.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.02343/14.56, allocations: 9.956 MB / 3.962 GB, free: 10.02 MB / 426.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.003357/14.56, allocations: 0.8313 MB / 3.962 GB, free: 9.508 MB / 426.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001445/14.56, allocations: 60.14 kB / 3.962 GB, free: 9.473 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.004864/14.57, allocations: 261.4 kB / 3.963 GB, free: 9.426 MB / 426.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001123/14.57, allocations: 201.9 kB / 3.963 GB, free: 9.398 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0006131/14.57, allocations: 82.98 kB / 3.963 GB, free: 9.383 MB / 426.7 MB Notification: Performance of sorting global known variables: time 0.00371/14.57, allocations: 1.316 MB / 3.964 GB, free: 8.852 MB / 426.7 MB Notification: Performance of sort global known variables: time 9.02e-07/14.57, allocations: 0 / 3.964 GB, free: 8.852 MB / 426.7 MB Notification: Performance of remove unused functions: time 0.01622/14.59, allocations: 3.054 MB / 3.967 GB, free: 8.5 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.03827/14.63, allocations: 12.84 MB / 3.98 GB, free: 3.457 MB / 426.7 MB Notification: Performance of simCode: created initialization part: time 0.02166/14.65, allocations: 6.257 MB / 3.986 GB, free: 14.39 MB / 442.7 MB Notification: Performance of simCode: created event and clocks part: time 1.281e-05/14.65, allocations: 6.188 kB / 3.986 GB, free: 14.39 MB / 442.7 MB Notification: Performance of simCode: created simulation system equations: time 0.009628/14.66, allocations: 2.975 MB / 3.989 GB, free: 11.71 MB / 442.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.01058/14.67, allocations: 1.073 MB / 3.99 GB, free: 10.98 MB / 442.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.03438/14.7, allocations: 8.931 MB / 3.999 GB, free: 3.719 MB / 442.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.005205/14.71, allocations: 2.583 MB / 4.001 GB, free: 1.766 MB / 442.7 MB Notification: Performance of simCode: alias equations: time 0.01009/14.72, allocations: 2.153 MB / 4.003 GB, free: 0.5547 MB / 442.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.007472/14.73, allocations: 1.657 MB / 4.005 GB, free: 15.91 MB / 458.7 MB Notification: Performance of SimCode: time 2.755e-06/14.73, allocations: 0 / 4.005 GB, free: 15.91 MB / 458.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.7033/15.43, allocations: 153.5 MB / 4.155 GB, free: 28.58 MB / 458.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001984/15.43, allocations: 169.5 kB / 4.155 GB, free: 28.35 MB / 458.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 10.15/25.58, allocations: 64 / 4.155 GB, free: 28.35 MB / 458.7 MB TODO: How the !@#!# did the simulation report success but simulation result Modelica_3.2.1_Modelica.Fluid.Examples.HeatingSystem_res.mat does not exist to compare? outputFormat=mat