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.882/1.882, allocations: 171.2 MB / 183.3 MB, free: 12.07 MB / 154.7 MB Notification: Performance of FrontEnd - loaded program: time 3.815e-05/3.841e-05, allocations: 4 kB / 225.1 MB, free: 2.254 MB / 186.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3223/0.3224, allocations: 38.78 MB / 263.9 MB, free: 9.703 MB / 218.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 7.84/8.163, allocations: 2.551 GB / 2.809 GB, free: 3.129 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003556/8.163, allocations: 71.16 kB / 2.809 GB, free: 3.098 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 5.853/14.02, allocations: 0.9963 GB / 3.805 GB, free: 22.02 MB / 410.7 MB Notification: Performance of FrontEnd: time 2.184e-06/14.02, allocations: 0 / 3.805 GB, free: 22.02 MB / 410.7 MB Notification: Performance of Transformations before backend: time 0.0003415/14.02, allocations: 74.88 kB / 3.805 GB, free: 22 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.02096/14.04, allocations: 4.277 MB / 3.81 GB, free: 19.92 MB / 410.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.068e-05/14.04, allocations: 12.91 kB / 3.81 GB, free: 19.92 MB / 410.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.001897/14.04, allocations: 417.1 kB / 3.81 GB, free: 19.86 MB / 410.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01181/14.05, allocations: 0.9792 MB / 3.811 GB, free: 19.69 MB / 410.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.008937/14.06, allocations: 2.208 MB / 3.813 GB, free: 19.13 MB / 410.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0004717/14.06, allocations: 289.3 kB / 3.813 GB, free: 19.05 MB / 410.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001357/14.06, allocations: 252.5 kB / 3.814 GB, free: 19.05 MB / 410.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01524/14.08, allocations: 4.445 MB / 3.818 GB, free: 17.86 MB / 410.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001121/14.08, allocations: 7.25 kB / 3.818 GB, free: 17.86 MB / 410.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0006111/14.08, allocations: 114.8 kB / 3.818 GB, free: 17.79 MB / 410.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0004055/14.08, allocations: 220.4 kB / 3.818 GB, free: 17.75 MB / 410.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01411/14.09, allocations: 4.001 MB / 3.822 GB, free: 15.87 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.04102/14.13, allocations: 19.02 MB / 3.841 GB, free: 12.34 MB / 426.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0106/14.14, allocations: 2.767 MB / 3.843 GB, free: 9.566 MB / 426.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.004637/14.15, allocations: 1.481 MB / 3.845 GB, free: 8.09 MB / 426.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.4615/14.61, allocations: 17.04 MB / 3.862 GB, free: 30.28 MB / 426.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.788e-05/14.61, allocations: 59.22 kB / 3.862 GB, free: 30.24 MB / 426.7 MB Notification: Performance of preOpt simplifyInStream (simulation): time 0.002611/14.61, allocations: 236.6 kB / 3.862 GB, free: 30.24 MB / 426.7 MB Notification: Performance of pre-optimization done (n=194): time 9.017e-06/14.61, allocations: 0 / 3.862 GB, free: 30.24 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.053/14.67, allocations: 11.19 MB / 3.873 GB, free: 29.49 MB / 426.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.879e-05/14.67, allocations: 127.3 kB / 3.873 GB, free: 29.37 MB / 426.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004131/14.67, allocations: 1.654 MB / 3.875 GB, free: 29.14 MB / 426.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0007208/14.67, allocations: 68.05 kB / 3.875 GB, free: 29.11 MB / 426.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.001232/14.67, allocations: 1.153 MB / 3.876 GB, free: 28.74 MB / 426.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.00143/14.67, allocations: 0.7306 MB / 3.876 GB, free: 28.38 MB / 426.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003456/14.67, allocations: 55.31 kB / 3.876 GB, free: 28.38 MB / 426.7 MB Notification: Performance of setup shared object (initialization): time 0.0002147/14.67, allocations: 397.2 kB / 3.877 GB, free: 28.07 MB / 426.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00381/14.68, allocations: 1.326 MB / 3.878 GB, free: 28.06 MB / 426.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.004245/14.68, allocations: 1.802 MB / 3.88 GB, free: 27.54 MB / 426.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.004223/14.69, allocations: 1.532 MB / 3.881 GB, free: 27.52 MB / 426.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.035e-05/14.69, allocations: 4.281 kB / 3.881 GB, free: 27.52 MB / 426.7 MB Notification: Performance of matching and sorting (n=306) (initialization): time 0.01347/14.7, allocations: 4.567 MB / 3.886 GB, free: 27.31 MB / 426.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.001314/14.7, allocations: 5.534 MB / 3.891 GB, free: 21.54 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.944e-05/14.7, allocations: 12.78 kB / 3.891 GB, free: 21.54 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.02364/14.73, allocations: 3.775 MB / 3.895 GB, free: 21.5 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002453/14.73, allocations: 311.4 kB / 3.895 GB, free: 21.5 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01182/14.74, allocations: 4.571 MB / 3.9 GB, free: 20.9 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.005191/14.75, allocations: 314.2 kB / 3.9 GB, free: 20.89 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0007905/14.75, allocations: 118.1 kB / 3.9 GB, free: 20.89 MB / 426.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.54e-05/14.75, allocations: 3.844 kB / 3.9 GB, free: 20.89 MB / 426.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.01098/14.76, allocations: 3.892 MB / 3.904 GB, free: 20.84 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.025e-05/14.76, allocations: 14.22 kB / 3.904 GB, free: 20.84 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.01578/14.77, allocations: 2.609 MB / 3.907 GB, free: 20.8 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002982/14.78, allocations: 377.5 kB / 3.907 GB, free: 20.8 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.008295/14.78, allocations: 3.555 MB / 3.91 GB, free: 20.22 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004763/14.79, allocations: 311.9 kB / 3.911 GB, free: 20.21 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0007963/14.79, allocations: 111.2 kB / 3.911 GB, free: 20.21 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.0009549/14.79, allocations: 246.9 kB / 3.911 GB, free: 20.09 MB / 426.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0008469/14.79, allocations: 235.1 kB / 3.911 GB, free: 19.97 MB / 426.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01926/14.81, allocations: 9.382 MB / 3.92 GB, free: 19.17 MB / 426.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0001477/14.81, allocations: 112.2 kB / 3.92 GB, free: 19.17 MB / 426.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.792e-05/14.81, allocations: 0 / 3.92 GB, free: 19.17 MB / 426.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.01536/14.83, allocations: 8.247 MB / 3.929 GB, free: 18.25 MB / 426.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.03035/14.86, allocations: 13.6 MB / 3.942 GB, free: 17.29 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.129e-05/14.86, allocations: 3.844 kB / 3.942 GB, free: 17.29 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.003683/14.86, allocations: 404.2 kB / 3.942 GB, free: 17.29 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.009668/14.87, allocations: 2.683 MB / 3.945 GB, free: 17.14 MB / 426.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.000727/14.87, allocations: 75.38 kB / 3.945 GB, free: 17.14 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.007379/14.88, allocations: 6.93 MB / 3.952 GB, free: 12.96 MB / 426.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.07e-06/14.88, allocations: 2.906 kB / 3.952 GB, free: 12.96 MB / 426.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01982/14.9, allocations: 9.96 MB / 3.961 GB, free: 9.012 MB / 426.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.002795/14.9, allocations: 0.8261 MB / 3.962 GB, free: 8.508 MB / 426.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0009067/14.9, allocations: 59.83 kB / 3.962 GB, free: 8.469 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.004057/14.91, allocations: 265 kB / 3.963 GB, free: 8.422 MB / 426.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0007048/14.91, allocations: 196.2 kB / 3.963 GB, free: 8.398 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0003191/14.91, allocations: 88.64 kB / 3.963 GB, free: 8.379 MB / 426.7 MB Notification: Performance of sorting global known variables: time 0.002831/14.91, allocations: 1.311 MB / 3.964 GB, free: 7.852 MB / 426.7 MB Notification: Performance of sort global known variables: time 7.92e-07/14.91, allocations: 0 / 3.964 GB, free: 7.852 MB / 426.7 MB Notification: Performance of remove unused functions: time 0.01395/14.92, allocations: 3.05 MB / 3.967 GB, free: 7.496 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.03484/14.96, allocations: 12.87 MB / 3.98 GB, free: 2.426 MB / 426.7 MB Notification: Performance of simCode: created initialization part: time 0.02355/14.98, allocations: 6.485 MB / 3.986 GB, free: 13.89 MB / 442.7 MB Notification: Performance of simCode: created event and clocks part: time 9.317e-06/14.98, allocations: 2.516 kB / 3.986 GB, free: 13.89 MB / 442.7 MB Notification: Performance of simCode: created simulation system equations: time 0.008083/14.99, allocations: 2.964 MB / 3.989 GB, free: 11.24 MB / 442.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.009845/15, allocations: 1.075 MB / 3.99 GB, free: 10.5 MB / 442.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.03149/15.03, allocations: 8.916 MB / 3.999 GB, free: 3.262 MB / 442.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.005028/15.04, allocations: 2.576 MB / 4.001 GB, free: 1.312 MB / 442.7 MB Notification: Performance of simCode: alias equations: time 0.01106/15.05, allocations: 2.148 MB / 4.003 GB, free: 68 kB / 442.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.01336/15.06, allocations: 1.776 MB / 4.005 GB, free: 15.91 MB / 458.7 MB Notification: Performance of SimCode: time 1.563e-06/15.06, allocations: 0.5625 kB / 4.005 GB, free: 15.91 MB / 458.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.7214/15.78, allocations: 153.4 MB / 4.155 GB, free: 28.74 MB / 458.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001739/15.78, allocations: 168.2 kB / 4.155 GB, free: 28.52 MB / 458.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 9.848/25.63, allocations: 0 / 4.155 GB, free: 28.52 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