Running command: translateModel(BuildingSystems.Technologies.Cogeneration.Examples.CogenerationUnitWithStorage,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="BuildingSystems_BuildingSystems.Technologies.Cogeneration.Examples.CogenerationUnitWithStorage") Notification: Performance of loadModel(BuildingSystems): time 3.139/3.139, allocations: 343.8 MB / 355.9 MB, free: 9.383 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 3.437e-05/3.443e-05, allocations: 5.875 kB / 436.6 MB, free: 2.473 MB / 346.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1381/0.1382, allocations: 77.73 MB / 0.5022 GB, free: 4.586 MB / 426.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 1.248/1.386, allocations: 413.3 MB / 0.9059 GB, free: 116.7 MB / 0.6511 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002268/1.386, allocations: 81.58 kB / 0.906 GB, free: 116.7 MB / 0.6511 GB Notification: Performance of FrontEnd - DAE generated: time 4.615/6.001, allocations: 0.9736 GB / 1.88 GB, free: 67.1 MB / 0.6823 GB Notification: Performance of FrontEnd: time 2.466e-06/6.001, allocations: 0 / 1.88 GB, free: 67.1 MB / 0.6823 GB Notification: Performance of Transformations before backend: time 0.0004981/6.002, allocations: 90.72 kB / 1.88 GB, free: 67.09 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.008926/6.011, allocations: 3.29 MB / 1.883 GB, free: 65.61 MB / 0.6823 GB Notification: Performance of prepare preOptimizeDAE: time 4.175e-05/6.011, allocations: 9.781 kB / 1.883 GB, free: 65.61 MB / 0.6823 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.003485/6.014, allocations: 0.5364 MB / 1.883 GB, free: 65.41 MB / 0.6823 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01242/6.027, allocations: 4.286 MB / 1.888 GB, free: 64.8 MB / 0.6823 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002176/6.027, allocations: 185.6 kB / 1.888 GB, free: 64.79 MB / 0.6823 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0007694/6.028, allocations: 248 kB / 1.888 GB, free: 64.79 MB / 0.6823 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.006866/6.035, allocations: 2.789 MB / 1.891 GB, free: 64.39 MB / 0.6823 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.865e-05/6.035, allocations: 7.031 kB / 1.891 GB, free: 64.39 MB / 0.6823 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003676/6.035, allocations: 101.7 kB / 1.891 GB, free: 64.39 MB / 0.6823 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.99e-05/6.035, allocations: 78.41 kB / 1.891 GB, free: 64.39 MB / 0.6823 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.005634/6.041, allocations: 2.116 MB / 1.893 GB, free: 64.37 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.022/6.063, allocations: 12.2 MB / 1.905 GB, free: 59.36 MB / 0.6823 GB Notification: Performance of preOpt comSubExp (simulation): time 0.003357/6.067, allocations: 1.698 MB / 1.907 GB, free: 59.13 MB / 0.6823 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.001998/6.069, allocations: 1.012 MB / 1.908 GB, free: 59.12 MB / 0.6823 GB Notification: Performance of preOpt evalFunc (simulation): time 0.009833/6.078, allocations: 4.25 MB / 1.912 GB, free: 57.66 MB / 0.6823 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.083e-05/6.079, allocations: 54.62 kB / 1.912 GB, free: 57.62 MB / 0.6823 GB Notification: Performance of preOpt simplifyInStream (simulation): time 0.00187/6.08, allocations: 281.5 kB / 1.912 GB, free: 57.53 MB / 0.6823 GB Notification: Performance of pre-optimization done (n=128): time 5.44e-06/6.08, allocations: 0 / 1.912 GB, free: 57.53 MB / 0.6823 GB Notification: Performance of matching and sorting (n=128): time 0.003782/6.084, allocations: 1.563 MB / 1.914 GB, free: 57.3 MB / 0.6823 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.999e-05/6.084, allocations: 144.7 kB / 1.914 GB, free: 57.15 MB / 0.6823 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.005608/6.09, allocations: 2.719 MB / 1.916 GB, free: 56.89 MB / 0.6823 GB Notification: Performance of collectPreVariables (initialization): time 0.0003194/6.09, allocations: 58.83 kB / 1.916 GB, free: 56.86 MB / 0.6823 GB Notification: Performance of collectInitialEqns (initialization): time 0.001604/6.092, allocations: 1.546 MB / 1.918 GB, free: 56.35 MB / 0.6823 GB Notification: Performance of collectInitialBindings (initialization): time 0.0005889/6.093, allocations: 468 kB / 1.918 GB, free: 56.06 MB / 0.6823 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001368/6.093, allocations: 37.52 kB / 1.918 GB, free: 56.06 MB / 0.6823 GB Notification: Performance of setup shared object (initialization): time 0.0001295/6.093, allocations: 372.7 kB / 1.919 GB, free: 55.75 MB / 0.6823 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001335/6.094, allocations: 0.6073 MB / 1.919 GB, free: 55.75 MB / 0.6823 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001698/6.096, allocations: 1.185 MB / 1.92 GB, free: 55.07 MB / 0.6823 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001807/6.098, allocations: 0.8343 MB / 1.921 GB, free: 55.04 MB / 0.6823 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.531e-05/6.098, allocations: 2.844 kB / 1.921 GB, free: 55.04 MB / 0.6823 GB Notification: Performance of matching and sorting (n=224) (initialization): time 0.005226/6.103, allocations: 2.184 MB / 1.923 GB, free: 54.82 MB / 0.6823 GB Notification: Performance of prepare postOptimizeDAE: time 0.001396/6.104, allocations: 7.119 MB / 1.93 GB, free: 47.23 MB / 0.6823 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.227e-05/6.105, allocations: 20.78 kB / 1.93 GB, free: 47.23 MB / 0.6823 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0006768/6.105, allocations: 173.9 kB / 1.931 GB, free: 47.22 MB / 0.6823 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002421/6.108, allocations: 409.7 kB / 1.931 GB, free: 47.22 MB / 0.6823 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002832/6.111, allocations: 2.267 MB / 1.933 GB, free: 45.87 MB / 0.6823 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00365/6.114, allocations: 184 kB / 1.933 GB, free: 45.86 MB / 0.6823 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003524/6.115, allocations: 87.03 kB / 1.933 GB, free: 45.86 MB / 0.6823 GB Notification: Performance of prepare postOptimizeDAE: time 1.368e-05/6.115, allocations: 7.344 kB / 1.933 GB, free: 45.86 MB / 0.6823 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.006037/6.121, allocations: 1.886 MB / 1.935 GB, free: 45.81 MB / 0.6823 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.767e-05/6.121, allocations: 19.97 kB / 1.935 GB, free: 45.81 MB / 0.6823 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0009964/6.122, allocations: 174.4 kB / 1.935 GB, free: 45.8 MB / 0.6823 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003599/6.125, allocations: 404.9 kB / 1.936 GB, free: 45.8 MB / 0.6823 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002777/6.128, allocations: 2.267 MB / 1.938 GB, free: 44.44 MB / 0.6823 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003344/6.132, allocations: 174.5 kB / 1.938 GB, free: 44.43 MB / 0.6823 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003853/6.132, allocations: 83.92 kB / 1.938 GB, free: 44.43 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.000835/6.133, allocations: 398.8 kB / 1.939 GB, free: 44.27 MB / 0.6823 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0008498/6.134, allocations: 301.5 kB / 1.939 GB, free: 44.11 MB / 0.6823 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004586/6.138, allocations: 1.915 MB / 1.941 GB, free: 43.99 MB / 0.6823 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.437e-05/6.138, allocations: 21.06 kB / 1.941 GB, free: 43.99 MB / 0.6823 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.392e-06/6.138, allocations: 3.906 kB / 1.941 GB, free: 43.99 MB / 0.6823 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.002861/6.141, allocations: 1.693 MB / 1.943 GB, free: 43.5 MB / 0.6823 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.009949/6.151, allocations: 4.527 MB / 1.947 GB, free: 43.05 MB / 0.6823 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.587e-06/6.151, allocations: 0 / 1.947 GB, free: 43.05 MB / 0.6823 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001733/6.153, allocations: 247.6 kB / 1.947 GB, free: 43.05 MB / 0.6823 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0005281/6.154, allocations: 160 kB / 1.947 GB, free: 43.04 MB / 0.6823 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001293/6.154, allocations: 38.53 kB / 1.947 GB, free: 43.04 MB / 0.6823 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002605/6.156, allocations: 2.229 MB / 1.95 GB, free: 41.69 MB / 0.6823 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.156e-06/6.156, allocations: 6.125 kB / 1.95 GB, free: 41.69 MB / 0.6823 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005449/6.162, allocations: 2.671 MB / 1.952 GB, free: 41.33 MB / 0.6823 GB Notification: Performance of postOpt removeConstants (simulation): time 0.00197/6.164, allocations: 0.6101 MB / 1.953 GB, free: 41.08 MB / 0.6823 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000586/6.165, allocations: 27.75 kB / 1.953 GB, free: 41.08 MB / 0.6823 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002253/6.167, allocations: 147.2 kB / 1.953 GB, free: 41.07 MB / 0.6823 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002334/6.167, allocations: 93.27 kB / 1.953 GB, free: 41.07 MB / 0.6823 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001541/6.167, allocations: 45.11 kB / 1.953 GB, free: 41.07 MB / 0.6823 GB Notification: Performance of sorting global known variables: time 0.00396/6.171, allocations: 2.1 MB / 1.955 GB, free: 40.91 MB / 0.6823 GB Notification: Performance of sort global known variables: time 1.218e-06/6.171, allocations: 6.094 kB / 1.955 GB, free: 40.9 MB / 0.6823 GB Notification: Performance of remove unused functions: time 0.007854/6.179, allocations: 1.931 MB / 1.957 GB, free: 40.6 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.003986/6.183, allocations: 1.755 MB / 1.959 GB, free: 40.09 MB / 0.6823 GB Notification: Performance of simCode: created initialization part: time 0.005931/6.189, allocations: 2.953 MB / 1.962 GB, free: 39.68 MB / 0.6823 GB Notification: Performance of simCode: created event and clocks part: time 7.252e-06/6.189, allocations: 3.938 kB / 1.962 GB, free: 39.67 MB / 0.6823 GB Notification: Performance of simCode: created simulation system equations: time 0.00163/6.191, allocations: 0.8727 MB / 1.962 GB, free: 39.54 MB / 0.6823 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00987/6.201, allocations: 1.53 MB / 1.964 GB, free: 39.46 MB / 0.6823 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01084/6.212, allocations: 5.072 MB / 1.969 GB, free: 37.99 MB / 0.6823 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002288/6.214, allocations: 2.303 MB / 1.971 GB, free: 37.19 MB / 0.6823 GB Notification: Performance of simCode: alias equations: time 0.007063/6.221, allocations: 1.443 MB / 1.973 GB, free: 37.03 MB / 0.6823 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0007079/6.222, allocations: 185.6 kB / 1.973 GB, free: 37.02 MB / 0.6823 GB Notification: Performance of SimCode: time 2.269e-06/6.222, allocations: 0 / 1.973 GB, free: 37.02 MB / 0.6823 GB Notification: Performance of Templates: time 0.1513/6.373, allocations: 72.05 MB / 2.043 GB, free: 10.16 MB / 0.698 GB