Running command: "" <> buildModelFMU(BuildingSystems.Technologies.Cogeneration.Examples.CogenerationUnitWithStorage,fileNamePrefix="BuildingSystems_BuildingSystems_Technologies_Cogeneration_Examples_CogenerationUnitWithStorage",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(BuildingSystems): time 3.173/3.173, allocations: 343.7 MB / 355.9 MB, free: 9.379 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 3.258e-05/3.235e-05, allocations: 8 kB / 436.6 MB, free: 2.363 MB / 346.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.18/0.1801, allocations: 77.73 MB / 0.5023 GB, free: 4.477 MB / 426.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 1.491/1.671, allocations: 413.3 MB / 0.906 GB, free: 116.3 MB / 0.6511 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002973/1.671, allocations: 89.19 kB / 0.906 GB, free: 116.3 MB / 0.6511 GB Notification: Performance of FrontEnd - DAE generated: time 5.214/6.886, allocations: 0.9736 GB / 1.88 GB, free: 66.88 MB / 0.6823 GB Notification: Performance of FrontEnd: time 2.114e-06/6.886, allocations: 0 / 1.88 GB, free: 66.88 MB / 0.6823 GB Notification: Performance of Transformations before backend: time 0.0005514/6.886, allocations: 92.44 kB / 1.88 GB, free: 66.87 MB / 0.6823 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 604 * Number of variables: 604 Notification: Performance of Generate backend data structure: time 0.01061/6.897, allocations: 3.298 MB / 1.883 GB, free: 65.39 MB / 0.6823 GB Notification: Performance of prepare preOptimizeDAE: time 4.962e-05/6.897, allocations: 14.41 kB / 1.883 GB, free: 65.39 MB / 0.6823 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0009838/6.898, allocations: 331.9 kB / 1.883 GB, free: 65.34 MB / 0.6823 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.003859/6.902, allocations: 0.5298 MB / 1.884 GB, free: 65.14 MB / 0.6823 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01475/6.917, allocations: 4.291 MB / 1.888 GB, free: 64.53 MB / 0.6823 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001896/6.917, allocations: 189.4 kB / 1.888 GB, free: 64.52 MB / 0.6823 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0005848/6.917, allocations: 247.8 kB / 1.888 GB, free: 64.52 MB / 0.6823 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.006855/6.924, allocations: 2.791 MB / 1.891 GB, free: 64.12 MB / 0.6823 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.307e-05/6.924, allocations: 12.41 kB / 1.891 GB, free: 64.12 MB / 0.6823 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003512/6.925, allocations: 100 kB / 1.891 GB, free: 64.12 MB / 0.6823 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.698e-05/6.925, allocations: 72.08 kB / 1.891 GB, free: 64.11 MB / 0.6823 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.005805/6.931, allocations: 2.122 MB / 1.893 GB, free: 64.1 MB / 0.6823 GB 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.0235/6.954, allocations: 12.19 MB / 1.905 GB, free: 59.09 MB / 0.6823 GB Notification: Performance of preOpt comSubExp (simulation): time 0.003899/6.958, allocations: 1.701 MB / 1.907 GB, free: 58.86 MB / 0.6823 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.002307/6.961, allocations: 1.007 MB / 1.908 GB, free: 58.85 MB / 0.6823 GB Notification: Performance of preOpt evalFunc (simulation): time 0.01084/6.971, allocations: 4.264 MB / 1.912 GB, free: 57.39 MB / 0.6823 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.825e-05/6.972, allocations: 50.56 kB / 1.912 GB, free: 57.35 MB / 0.6823 GB Notification: Performance of preOpt simplifyInStream (simulation): time 0.001961/6.973, allocations: 278.1 kB / 1.912 GB, free: 57.27 MB / 0.6823 GB Notification: Performance of pre-optimization done (n=128): time 6.121e-06/6.973, allocations: 0 / 1.912 GB, free: 57.27 MB / 0.6823 GB Notification: Performance of matching and sorting (n=128): time 0.004002/6.978, allocations: 1.563 MB / 1.914 GB, free: 57.04 MB / 0.6823 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.117e-05/6.978, allocations: 149.8 kB / 1.914 GB, free: 56.88 MB / 0.6823 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.005815/6.983, allocations: 2.723 MB / 1.917 GB, free: 56.62 MB / 0.6823 GB Notification: Performance of collectPreVariables (initialization): time 0.0003904/6.984, allocations: 53.58 kB / 1.917 GB, free: 56.59 MB / 0.6823 GB Notification: Performance of collectInitialEqns (initialization): time 0.001692/6.986, allocations: 1.545 MB / 1.918 GB, free: 56.08 MB / 0.6823 GB Notification: Performance of collectInitialBindings (initialization): time 0.0006871/6.986, allocations: 465.5 kB / 1.919 GB, free: 55.79 MB / 0.6823 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001371/6.986, allocations: 35.69 kB / 1.919 GB, free: 55.79 MB / 0.6823 GB Notification: Performance of setup shared object (initialization): time 0.0001368/6.987, allocations: 379.6 kB / 1.919 GB, free: 55.48 MB / 0.6823 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001502/6.988, allocations: 0.605 MB / 1.92 GB, free: 55.48 MB / 0.6823 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001808/6.99, allocations: 1.179 MB / 1.921 GB, free: 54.79 MB / 0.6823 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001853/6.992, allocations: 0.8353 MB / 1.922 GB, free: 54.77 MB / 0.6823 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.413e-05/6.992, allocations: 6.844 kB / 1.922 GB, free: 54.77 MB / 0.6823 GB Notification: Performance of matching and sorting (n=224) (initialization): time 0.005565/6.997, allocations: 2.179 MB / 1.924 GB, free: 54.55 MB / 0.6823 GB Notification: Performance of prepare postOptimizeDAE: time 0.001569/6.999, allocations: 7.115 MB / 1.931 GB, free: 46.96 MB / 0.6823 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.809e-05/6.999, allocations: 17.03 kB / 1.931 GB, free: 46.96 MB / 0.6823 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0008319/7, allocations: 180.3 kB / 1.931 GB, free: 46.96 MB / 0.6823 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003098/7.003, allocations: 414.7 kB / 1.931 GB, free: 46.96 MB / 0.6823 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00301/7.006, allocations: 2.274 MB / 1.934 GB, free: 45.6 MB / 0.6823 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004316/7.01, allocations: 183.1 kB / 1.934 GB, free: 45.58 MB / 0.6823 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002825/7.011, allocations: 86.86 kB / 1.934 GB, free: 45.58 MB / 0.6823 GB Notification: Performance of prepare postOptimizeDAE: time 1.233e-05/7.011, allocations: 3.531 kB / 1.934 GB, free: 45.58 MB / 0.6823 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.00459/7.015, allocations: 1.886 MB / 1.936 GB, free: 45.54 MB / 0.6823 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.691e-05/7.015, allocations: 16.16 kB / 1.936 GB, free: 45.54 MB / 0.6823 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0006512/7.016, allocations: 172.2 kB / 1.936 GB, free: 45.53 MB / 0.6823 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00265/7.019, allocations: 405.2 kB / 1.936 GB, free: 45.53 MB / 0.6823 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002899/7.022, allocations: 2.269 MB / 1.939 GB, free: 44.17 MB / 0.6823 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004025/7.026, allocations: 175.1 kB / 1.939 GB, free: 44.16 MB / 0.6823 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002615/7.026, allocations: 83.53 kB / 1.939 GB, free: 44.16 MB / 0.6823 GB Warning: Assuming fixed start value for the following 6 variables: CHP.vol.dynBal.U:VARIABLE(start = CHP.vol.dynBal.fluidVolume * CHP.vol.dynBal.rho_start * BuildingSystems.Fluid.Interfaces.ConservationEquation$CHP$vol$dynBal.Medium.specificInternalEnergy(BuildingSystems.Fluid.Interfaces.ConservationEquation$CHP$vol$dynBal.Medium.setState_pTX(CHP.vol.dynBal.p_start, CHP.vol.dynBal.T_start, {})) + (-273.15 + CHP.vol.dynBal.T_start) * 0.0 unit = "J" nominal = 100000.0 protected = true final = true ) "Internal energy of fluid" type: Real pump.vol.dynBal.U:VARIABLE(start = pump.vol.dynBal.fluidVolume * pump.vol.dynBal.rho_start * BuildingSystems.Fluid.Interfaces.ConservationEquation$pump$vol$dynBal.Medium.specificInternalEnergy(BuildingSystems.Fluid.Interfaces.ConservationEquation$pump$vol$dynBal.Medium.setState_pTX(pump.vol.dynBal.p_start, pump.vol.dynBal.T_start, {})) + (-273.15 + pump.vol.dynBal.T_start) * 0.0 unit = "J" nominal = 100000.0 protected = true ) "Internal energy of fluid" type: Real storage.vol_top.dynBal.U:VARIABLE(start = storage.vol_top.dynBal.fluidVolume * storage.vol_top.dynBal.rho_start * BuildingSystems.Fluid.Interfaces.ConservationEquation$storage$vol_top$dynBal.Medium.specificInternalEnergy(BuildingSystems.Fluid.Interfaces.ConservationEquation$storage$vol_top$dynBal.Medium.setState_pTX(storage.vol_top.dynBal.p_start, storage.vol_top.dynBal.T_start, {})) + (-273.15 + storage.vol_top.dynBal.T_start) * 0.0 unit = "J" nominal = 100000.0 protected = true ) "Internal energy of fluid" type: Real storage.vol_bot.dynBal.U:VARIABLE(start = storage.vol_bot.dynBal.fluidVolume * storage.vol_bot.dynBal.rho_start * BuildingSystems.Fluid.Interfaces.ConservationEquation$storage$vol_bot$dynBal.Medium.specificInternalEnergy(BuildingSystems.Fluid.Interfaces.ConservationEquation$storage$vol_bot$dynBal.Medium.setState_pTX(storage.vol_bot.dynBal.p_start, storage.vol_bot.dynBal.T_start, {})) + (-273.15 + storage.vol_bot.dynBal.T_start) * 0.0 unit = "J" nominal = 100000.0 protected = true ) "Internal energy of fluid" type: Real storage.vol[2].dynBal.U:VARIABLE(start = storage.vol[2].dynBal.fluidVolume * storage.vol[2].dynBal.rho_start * BuildingSystems.Fluid.Interfaces.ConservationEquation$storage$vol$dynBal.Medium.specificInternalEnergy(BuildingSystems.Fluid.Interfaces.ConservationEquation$storage$vol$dynBal.Medium.setState_pTX(storage.vol[2].dynBal.p_start, storage.vol[2].dynBal.T_start, {})) + (-273.15 + storage.vol[2].dynBal.T_start) * 0.0 unit = "J" nominal = 100000.0 protected = true ) "Internal energy of fluid" type: Real [2] storage.vol[1].dynBal.U:VARIABLE(start = storage.vol[1].dynBal.fluidVolume * storage.vol[1].dynBal.rho_start * BuildingSystems.Fluid.Interfaces.ConservationEquation$storage$vol$dynBal.Medium.specificInternalEnergy(BuildingSystems.Fluid.Interfaces.ConservationEquation$storage$vol$dynBal.Medium.setState_pTX(storage.vol[1].dynBal.p_start, storage.vol[1].dynBal.T_start, {})) + (-273.15 + storage.vol[1].dynBal.T_start) * 0.0 unit = "J" nominal = 100000.0 protected = true ) "Internal energy of fluid" type: Real [2] Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 74 * Number of states: 0 () * Number of discrete variables: 2 ($PRE.control.y,control.y) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (211): * Single equations (assignments): 207 * Array equations: 2 * Algorithm blocks: 0 * Record equations: 1 * 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: 1 {(1,100.0%) 10} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0008819/7.027, allocations: 393 kB / 1.939 GB, free: 44 MB / 0.6823 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0007999/7.028, allocations: 299.9 kB / 1.939 GB, free: 43.84 MB / 0.6823 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.005083/7.033, allocations: 1.921 MB / 1.941 GB, free: 43.71 MB / 0.6823 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.657e-05/7.033, allocations: 23.28 kB / 1.941 GB, free: 43.71 MB / 0.6823 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.253e-06/7.033, allocations: 0 / 1.941 GB, free: 43.71 MB / 0.6823 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.003192/7.036, allocations: 1.697 MB / 1.943 GB, free: 43.23 MB / 0.6823 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01114/7.047, allocations: 4.518 MB / 1.947 GB, free: 42.78 MB / 0.6823 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.069e-05/7.047, allocations: 0 / 1.947 GB, free: 42.78 MB / 0.6823 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002216/7.05, allocations: 258.3 kB / 1.948 GB, free: 42.78 MB / 0.6823 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0006558/7.05, allocations: 151.8 kB / 1.948 GB, free: 42.77 MB / 0.6823 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001398/7.05, allocations: 35.92 kB / 1.948 GB, free: 42.77 MB / 0.6823 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002858/7.053, allocations: 2.237 MB / 1.95 GB, free: 41.41 MB / 0.6823 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.314e-06/7.053, allocations: 0 / 1.95 GB, free: 41.41 MB / 0.6823 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.006177/7.06, allocations: 2.682 MB / 1.953 GB, free: 41.05 MB / 0.6823 GB Notification: Performance of postOpt removeConstants (simulation): time 0.002176/7.062, allocations: 0.6004 MB / 1.953 GB, free: 40.8 MB / 0.6823 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0006417/7.062, allocations: 31.78 kB / 1.953 GB, free: 40.8 MB / 0.6823 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002715/7.065, allocations: 153.3 kB / 1.953 GB, free: 40.79 MB / 0.6823 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000251/7.065, allocations: 88.88 kB / 1.953 GB, free: 40.79 MB / 0.6823 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002478/7.066, allocations: 48.72 kB / 1.954 GB, free: 40.78 MB / 0.6823 GB Notification: Performance of sorting global known variables: time 0.005684/7.071, allocations: 2.098 MB / 1.956 GB, free: 40.62 MB / 0.6823 GB Notification: Performance of sort global known variables: time 1.393e-06/7.071, allocations: 0 / 1.956 GB, free: 40.62 MB / 0.6823 GB Notification: Performance of remove unused functions: time 0.008535/7.08, allocations: 1.935 MB / 1.957 GB, free: 40.32 MB / 0.6823 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 12 (senTemIn.T,senTemOut.T,storage.vol[1].dynBal.U,storage.vol[2].dynBal.U,storage.vol_bot.dynBal.U,storage.vol_top.dynBal.U,pump.vol.dynBal.U,pump.filter.x[1],pump.filter.x[2],exp.m,exp.H,CHP.vol.dynBal.U) * Number of discrete variables: 1 (control.y) * Number of discrete states: 1 (control.y) * Top-level inputs: 0 Notification: Strong component statistics for simulation (127): * Single equations (assignments): 120 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 6 * 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: 1 {(1,100.0%) 10} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.01016/7.09, allocations: 4.885 MB / 1.962 GB, free: 39 MB / 0.6823 GB Notification: Performance of simCode: created initialization part: time 0.006733/7.097, allocations: 2.955 MB / 1.965 GB, free: 38.59 MB / 0.6823 GB Notification: Performance of simCode: created event and clocks part: time 9.678e-06/7.097, allocations: 3.5 kB / 1.965 GB, free: 38.59 MB / 0.6823 GB Notification: Performance of simCode: created simulation system equations: time 0.001802/7.099, allocations: 0.8677 MB / 1.966 GB, free: 38.45 MB / 0.6823 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0124/7.111, allocations: 1.531 MB / 1.967 GB, free: 38.37 MB / 0.6823 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01594/7.127, allocations: 6.037 MB / 1.973 GB, free: 36.69 MB / 0.6823 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002267/7.13, allocations: 2.309 MB / 1.976 GB, free: 35.89 MB / 0.6823 GB Notification: Performance of simCode: alias equations: time 0.008001/7.138, allocations: 1.442 MB / 1.977 GB, free: 35.73 MB / 0.6823 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0025/7.14, allocations: 1.289 MB / 1.978 GB, free: 34.94 MB / 0.6823 GB Notification: Performance of SimCode: time 1.292e-06/7.14, allocations: 0 / 1.978 GB, free: 34.94 MB / 0.6823 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.8136/7.954, allocations: 102.2 MB / 2.078 GB, free: 81.59 MB / 0.698 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002852/7.954, allocations: 249.8 kB / 2.078 GB, free: 81.25 MB / 0.698 GB Notification: Performance of buildModelFMU: Generate platform static: time 7.141/15.1, allocations: 6.312 kB / 2.078 GB, free: 81.25 MB / 0.698 GB