Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr BuildingSystems_BuildingSystems.Technologies.Cogeneration.Examples.CogenerationUnitWithStorage.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo", uses=false) Using package BuildingSystems with version 2.0.0-beta (/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo) Using package NcDataReader2 with version 2.5.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Running command: "" <> buildModelFMU(BuildingSystems.Technologies.Cogeneration.Examples.CogenerationUnitWithStorage,fileNamePrefix="BuildingSystems_BuildingSystems_Technologies_Cogeneration_Examples_CogenerationUnitWithStorage",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(BuildingSystems.Technologies.Cogeneration.Examples.CogenerationUnitWithStorage,fileNamePrefix="BuildingSystems_BuildingSystems_Technologies_Cogeneration_Examples_CogenerationUnitWithStorage",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001719/0.001719, allocations: 108 kB / 15.61 MB, free: 152 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.002959/0.002959, allocations: 195.2 kB / 16.53 MB, free: 6.664 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.988/1.988, allocations: 222.9 MB / 240.2 MB, free: 4.426 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.004312/0.004312, allocations: 282.7 kB / 290.7 MB, free: 2.023 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo): time 1.59/1.59, allocations: 169.3 MB / 0.4982 GB, free: 13.97 MB / 382.1 MB Notification: Performance of FrontEnd - loaded program: time 0.003598/0.003598, allocations: 102.5 kB / 0.5953 GB, free: 27.87 MB / 430.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2591/0.2628, allocations: 86.98 MB / 0.6803 GB, free: 0.6016 MB / 478.1 MB Notification: Performance of NFInst.instantiate(BuildingSystems.Technologies.Cogeneration.Examples.CogenerationUnitWithStorage): time 0.7764/1.039, allocations: 115 MB / 0.7926 GB, free: 7.973 MB / 0.5606 GB Notification: Performance of NFInst.instExpressions: time 0.05535/1.095, allocations: 29.39 MB / 0.8213 GB, free: 6.969 MB / 0.5606 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0102/1.105, allocations: 160.9 kB / 0.8215 GB, free: 6.969 MB / 0.5606 GB Notification: Performance of NFTyping.typeComponents: time 0.01572/1.121, allocations: 4.896 MB / 0.8263 GB, free: 6.074 MB / 0.5606 GB Notification: Performance of NFTyping.typeBindings: time 0.01955/1.14, allocations: 3.992 MB / 0.8302 GB, free: 4.66 MB / 0.5606 GB Notification: Performance of NFTyping.typeClassSections: time 0.01227/1.153, allocations: 3.202 MB / 0.8333 GB, free: 3.207 MB / 0.5606 GB Notification: Performance of NFFlatten.flatten: time 0.02348/1.176, allocations: 12.76 MB / 0.8457 GB, free: 13.24 MB / 0.5762 GB Notification: Performance of NFFlatten.resolveConnections: time 0.00818/1.184, allocations: 3.714 MB / 0.8494 GB, free: 11 MB / 0.5762 GB Notification: Performance of NFEvalConstants.evaluate: time 0.01299/1.197, allocations: 3.546 MB / 0.8528 GB, free: 9.18 MB / 0.5762 GB Notification: Performance of NFSimplifyModel.simplify: time 0.01049/1.208, allocations: 2.85 MB / 0.8556 GB, free: 7.648 MB / 0.5762 GB Notification: Performance of NFPackage.collectConstants: time 0.002889/1.211, allocations: 391.4 kB / 0.856 GB, free: 7.648 MB / 0.5762 GB Notification: Performance of NFFlatten.collectFunctions: time 0.01445/1.225, allocations: 2.47 MB / 0.8584 GB, free: 6.562 MB / 0.5762 GB Notification: Performance of NFScalarize.scalarize: time 0.004153/1.23, allocations: 1.199 MB / 0.8596 GB, free: 5.699 MB / 0.5762 GB Notification: Performance of NFVerifyModel.verify: time 0.009281/1.239, allocations: 2.314 MB / 0.8618 GB, free: 4.152 MB / 0.5762 GB Notification: Performance of NFConvertDAE.convert: time 0.01646/1.255, allocations: 6.953 MB / 0.8686 GB, free: 14.71 MB / 0.5919 GB Notification: Performance of FrontEnd - DAE generated: time 7.213e-06/1.256, allocations: 0 / 0.8686 GB, free: 14.71 MB / 0.5919 GB Notification: Performance of FrontEnd: time 1.964e-06/1.256, allocations: 0 / 0.8686 GB, free: 14.71 MB / 0.5919 GB Notification: Performance of Transformations before backend: time 0.0002708/1.256, allocations: 0 / 0.8686 GB, free: 14.71 MB / 0.5919 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 607 * Number of variables: 607 Notification: Performance of Generate backend data structure: time 0.01467/1.27, allocations: 4.769 MB / 0.8733 GB, free: 9.891 MB / 0.5919 GB Notification: Performance of prepare preOptimizeDAE: time 6.661e-05/1.271, allocations: 11.98 kB / 0.8733 GB, free: 9.879 MB / 0.5919 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.001306/1.272, allocations: 337.4 kB / 0.8736 GB, free: 9.539 MB / 0.5919 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.00392/1.276, allocations: 0.6311 MB / 0.8742 GB, free: 8.902 MB / 0.5919 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0102/1.286, allocations: 4.262 MB / 0.8784 GB, free: 4.664 MB / 0.5919 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002834/1.286, allocations: 195.2 kB / 0.8786 GB, free: 4.473 MB / 0.5919 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0009456/1.287, allocations: 247.9 kB / 0.8788 GB, free: 4.23 MB / 0.5919 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00808/1.295, allocations: 3.051 MB / 0.8818 GB, free: 1.035 MB / 0.5919 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.721e-05/1.296, allocations: 3.938 kB / 0.8818 GB, free: 1.031 MB / 0.5919 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0004789/1.296, allocations: 102.7 kB / 0.8819 GB, free: 0.9336 MB / 0.5919 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001152/1.296, allocations: 96.52 kB / 0.882 GB, free: 0.8359 MB / 0.5919 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.005917/1.302, allocations: 2.389 MB / 0.8843 GB, free: 14.43 MB / 0.6075 GB Warning: The model contains alias variables with redundant start and/or conflicting 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.02716/1.329, allocations: 13.01 MB / 0.897 GB, free: 0.8672 MB / 0.6075 GB Notification: Performance of preOpt comSubExp (simulation): time 0.003733/1.333, allocations: 1.723 MB / 0.8987 GB, free: 15.11 MB / 0.6231 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.002006/1.335, allocations: 1.02 MB / 0.8997 GB, free: 14.1 MB / 0.6231 GB Notification: Performance of preOpt evalFunc (simulation): time 0.009554/1.345, allocations: 4.314 MB / 0.9039 GB, free: 9.582 MB / 0.6231 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.271e-05/1.345, allocations: 55.5 kB / 0.904 GB, free: 9.52 MB / 0.6231 GB Notification: Performance of preOpt simplifyInStream (simulation): time 0.001623/1.346, allocations: 142.2 kB / 0.9041 GB, free: 9.379 MB / 0.6231 GB Notification: Performance of pre-optimization done (n=125): time 9.137e-06/1.347, allocations: 0 / 0.9041 GB, free: 9.379 MB / 0.6231 GB Notification: Performance of matching and sorting (n=125): time 0.006507/1.353, allocations: 2.395 MB / 0.9064 GB, free: 6.973 MB / 0.6231 GB Notification: Performance of inlineWhenForInitialization (initialization): time 7.273e-05/1.353, allocations: 94.11 kB / 0.9065 GB, free: 6.863 MB / 0.6231 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.008075/1.361, allocations: 3.457 MB / 0.9099 GB, free: 3.422 MB / 0.6231 GB Notification: Performance of collectPreVariables (initialization): time 0.0004204/1.362, allocations: 57.7 kB / 0.91 GB, free: 3.359 MB / 0.6231 GB Notification: Performance of collectInitialEqns (initialization): time 0.002512/1.364, allocations: 1.688 MB / 0.9116 GB, free: 1.668 MB / 0.6231 GB Notification: Performance of collectInitialBindings (initialization): time 0.0008525/1.365, allocations: 456.3 kB / 0.9121 GB, free: 1.227 MB / 0.6231 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001283/1.366, allocations: 451.6 kB / 0.9125 GB, free: 0.7773 MB / 0.6231 GB Notification: Performance of setup shared object (initialization): time 0.0001534/1.367, allocations: 313 kB / 0.9128 GB, free: 480 kB / 0.6231 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001928/1.369, allocations: 0.8423 MB / 0.9136 GB, free: 15.62 MB / 0.6387 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002512/1.371, allocations: 1.457 MB / 0.915 GB, free: 13.91 MB / 0.6387 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.01761/1.389, allocations: 4.604 MB / 0.9195 GB, free: 9.082 MB / 0.6387 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.388e-05/1.389, allocations: 8 kB / 0.9195 GB, free: 9.074 MB / 0.6387 GB Notification: Performance of matching and sorting (n=288) (initialization): time 0.008124/1.397, allocations: 2.836 MB / 0.9223 GB, free: 6.223 MB / 0.6387 GB Notification: Performance of prepare postOptimizeDAE: time 6.526e-05/1.397, allocations: 12 kB / 0.9223 GB, free: 6.211 MB / 0.6387 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.905e-05/1.397, allocations: 16 kB / 0.9223 GB, free: 6.195 MB / 0.6387 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0006865/1.398, allocations: 176.8 kB / 0.9225 GB, free: 6.02 MB / 0.6387 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002117/1.4, allocations: 483.2 kB / 0.923 GB, free: 5.547 MB / 0.6387 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003282/1.403, allocations: 2.503 MB / 0.9254 GB, free: 2.91 MB / 0.6387 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003957/1.407, allocations: 119.8 kB / 0.9255 GB, free: 2.793 MB / 0.6387 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0004236/1.408, allocations: 99.91 kB / 0.9256 GB, free: 2.695 MB / 0.6387 GB Warning: Assuming fixed start value for the following 6 variables: storage.vol[1].dynBal.U:VARIABLE(start = storage.vol[1].dynBal.fluidVolume * storage.vol[1].dynBal.rho_start * BuildingSystems.Technologies.Cogeneration.Examples.CogenerationUnitWithStorage.storage.vol.dynBal.Medium.specificInternalEnergy(BuildingSystems.Technologies.Cogeneration.Examples.CogenerationUnitWithStorage.storage.vol.dynBal.Medium.setState_pTX(storage.vol[1].dynBal.p_start, storage.vol[1].dynBal.T_start, {})) + (storage.vol[1].dynBal.T_start - 273.15) * 0.0 unit = "J" fixed = true nominal = 100000.0 protected = true ) "Internal energy of fluid" type: Real [2] storage.vol[2].dynBal.U:VARIABLE(start = storage.vol[2].dynBal.fluidVolume * storage.vol[2].dynBal.rho_start * BuildingSystems.Technologies.Cogeneration.Examples.CogenerationUnitWithStorage.storage.vol.dynBal.Medium.specificInternalEnergy(BuildingSystems.Technologies.Cogeneration.Examples.CogenerationUnitWithStorage.storage.vol.dynBal.Medium.setState_pTX(storage.vol[2].dynBal.p_start, storage.vol[2].dynBal.T_start, {})) + (storage.vol[2].dynBal.T_start - 273.15) * 0.0 unit = "J" fixed = true nominal = 100000.0 protected = true ) "Internal energy of fluid" type: Real [2] storage.vol_bot.dynBal.U:VARIABLE(start = storage.vol_bot.dynBal.fluidVolume * storage.vol_bot.dynBal.rho_start * BuildingSystems.Technologies.Cogeneration.Examples.CogenerationUnitWithStorage.storage.vol_bot.dynBal.Medium.specificInternalEnergy(BuildingSystems.Technologies.Cogeneration.Examples.CogenerationUnitWithStorage.storage.vol_bot.dynBal.Medium.setState_pTX(storage.vol_bot.dynBal.p_start, storage.vol_bot.dynBal.T_start, {})) + (storage.vol_bot.dynBal.T_start - 273.15) * 0.0 unit = "J" fixed = true 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.Technologies.Cogeneration.Examples.CogenerationUnitWithStorage.storage.vol_top.dynBal.Medium.specificInternalEnergy(BuildingSystems.Technologies.Cogeneration.Examples.CogenerationUnitWithStorage.storage.vol_top.dynBal.Medium.setState_pTX(storage.vol_top.dynBal.p_start, storage.vol_top.dynBal.T_start, {})) + (storage.vol_top.dynBal.T_start - 273.15) * 0.0 unit = "J" fixed = true nominal = 100000.0 protected = true ) "Internal energy of fluid" type: Real pump.vol.dynBal.U:VARIABLE(start = pump.vol.dynBal.fluidVolume * pump.vol.dynBal.rho_start * BuildingSystems.Technologies.Cogeneration.Examples.CogenerationUnitWithStorage.pump.vol.dynBal.Medium.specificInternalEnergy(BuildingSystems.Technologies.Cogeneration.Examples.CogenerationUnitWithStorage.pump.vol.dynBal.Medium.setState_pTX(pump.vol.dynBal.p_start, pump.vol.dynBal.T_start, {})) + (pump.vol.dynBal.T_start - 273.15) * 0.0 unit = "J" fixed = true nominal = 100000.0 protected = true ) "Internal energy of fluid" type: Real CHP.vol.dynBal.U:VARIABLE(start = CHP.vol.dynBal.fluidVolume * CHP.vol.dynBal.rho_start * BuildingSystems.Technologies.Cogeneration.Examples.CogenerationUnitWithStorage.CHP.vol.dynBal.Medium.specificInternalEnergy(BuildingSystems.Technologies.Cogeneration.Examples.CogenerationUnitWithStorage.CHP.vol.dynBal.Medium.setState_pTX(CHP.vol.dynBal.p_start, CHP.vol.dynBal.T_start, {})) + (CHP.vol.dynBal.T_start - 273.15) * 0.0 unit = "J" fixed = true nominal = 100000.0 protected = true final = true ) "Internal energy of fluid" type: Real Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.00476/1.412, allocations: 1.914 MB / 0.9275 GB, free: 0.7734 MB / 0.6387 GB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.002506/1.415, allocations: 1.44 MB / 0.9289 GB, free: 15.07 MB / 0.6544 GB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.02011/1.435, allocations: 4.55 MB / 0.9333 GB, free: 10.29 MB / 0.6544 GB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 2.978e-05/1.435, allocations: 4 kB / 0.9333 GB, free: 10.29 MB / 0.6544 GB Notification: Performance of matching and sorting (n=288) (initialization_lambda0): time 0.009535/1.445, allocations: 2.804 MB / 0.9361 GB, free: 7.469 MB / 0.6544 GB Notification: Performance of prepare postOptimizeDAE: time 4.259e-05/1.445, allocations: 16.12 kB / 0.9361 GB, free: 7.453 MB / 0.6544 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.395e-05/1.445, allocations: 24 kB / 0.9361 GB, free: 7.43 MB / 0.6544 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0007755/1.446, allocations: 172.9 kB / 0.9363 GB, free: 7.258 MB / 0.6544 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003073/1.449, allocations: 479.2 kB / 0.9367 GB, free: 6.789 MB / 0.6544 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004165/1.453, allocations: 2.506 MB / 0.9392 GB, free: 4.148 MB / 0.6544 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.005994/1.459, allocations: 131.8 kB / 0.9393 GB, free: 4.02 MB / 0.6544 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000772/1.46, allocations: 91.98 kB / 0.9394 GB, free: 3.93 MB / 0.6544 GB Warning: Assuming fixed start value for the following 6 variables: storage.vol[1].dynBal.U:VARIABLE(start = storage.vol[1].dynBal.fluidVolume * storage.vol[1].dynBal.rho_start * BuildingSystems.Technologies.Cogeneration.Examples.CogenerationUnitWithStorage.storage.vol.dynBal.Medium.specificInternalEnergy(BuildingSystems.Technologies.Cogeneration.Examples.CogenerationUnitWithStorage.storage.vol.dynBal.Medium.setState_pTX(storage.vol[1].dynBal.p_start, storage.vol[1].dynBal.T_start, {})) + (storage.vol[1].dynBal.T_start - 273.15) * 0.0 unit = "J" fixed = true nominal = 100000.0 protected = true ) "Internal energy of fluid" type: Real [2] storage.vol[2].dynBal.U:VARIABLE(start = storage.vol[2].dynBal.fluidVolume * storage.vol[2].dynBal.rho_start * BuildingSystems.Technologies.Cogeneration.Examples.CogenerationUnitWithStorage.storage.vol.dynBal.Medium.specificInternalEnergy(BuildingSystems.Technologies.Cogeneration.Examples.CogenerationUnitWithStorage.storage.vol.dynBal.Medium.setState_pTX(storage.vol[2].dynBal.p_start, storage.vol[2].dynBal.T_start, {})) + (storage.vol[2].dynBal.T_start - 273.15) * 0.0 unit = "J" fixed = true nominal = 100000.0 protected = true ) "Internal energy of fluid" type: Real [2] storage.vol_bot.dynBal.U:VARIABLE(start = storage.vol_bot.dynBal.fluidVolume * storage.vol_bot.dynBal.rho_start * BuildingSystems.Technologies.Cogeneration.Examples.CogenerationUnitWithStorage.storage.vol_bot.dynBal.Medium.specificInternalEnergy(BuildingSystems.Technologies.Cogeneration.Examples.CogenerationUnitWithStorage.storage.vol_bot.dynBal.Medium.setState_pTX(storage.vol_bot.dynBal.p_start, storage.vol_bot.dynBal.T_start, {})) + (storage.vol_bot.dynBal.T_start - 273.15) * 0.0 unit = "J" fixed = true 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.Technologies.Cogeneration.Examples.CogenerationUnitWithStorage.storage.vol_top.dynBal.Medium.specificInternalEnergy(BuildingSystems.Technologies.Cogeneration.Examples.CogenerationUnitWithStorage.storage.vol_top.dynBal.Medium.setState_pTX(storage.vol_top.dynBal.p_start, storage.vol_top.dynBal.T_start, {})) + (storage.vol_top.dynBal.T_start - 273.15) * 0.0 unit = "J" fixed = true nominal = 100000.0 protected = true ) "Internal energy of fluid" type: Real pump.vol.dynBal.U:VARIABLE(start = pump.vol.dynBal.fluidVolume * pump.vol.dynBal.rho_start * BuildingSystems.Technologies.Cogeneration.Examples.CogenerationUnitWithStorage.pump.vol.dynBal.Medium.specificInternalEnergy(BuildingSystems.Technologies.Cogeneration.Examples.CogenerationUnitWithStorage.pump.vol.dynBal.Medium.setState_pTX(pump.vol.dynBal.p_start, pump.vol.dynBal.T_start, {})) + (pump.vol.dynBal.T_start - 273.15) * 0.0 unit = "J" fixed = true nominal = 100000.0 protected = true ) "Internal energy of fluid" type: Real CHP.vol.dynBal.U:VARIABLE(start = CHP.vol.dynBal.fluidVolume * CHP.vol.dynBal.rho_start * BuildingSystems.Technologies.Cogeneration.Examples.CogenerationUnitWithStorage.CHP.vol.dynBal.Medium.specificInternalEnergy(BuildingSystems.Technologies.Cogeneration.Examples.CogenerationUnitWithStorage.CHP.vol.dynBal.Medium.setState_pTX(CHP.vol.dynBal.p_start, CHP.vol.dynBal.T_start, {})) + (CHP.vol.dynBal.T_start - 273.15) * 0.0 unit = "J" fixed = true nominal = 100000.0 protected = true final = true ) "Internal energy of fluid" type: Real Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 77 * Number of states: 0 () * Number of discrete variables: 2 ($PRE.control.y,control.y) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (245): * Single equations (assignments): 242 * Array equations: 1 * Algorithm blocks: 0 * Record equations: 1 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 1 system {(1,10,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.001905/1.462, allocations: 0.4952 MB / 0.9399 GB, free: 3.43 MB / 0.6544 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.00234/1.464, allocations: 331.8 kB / 0.9402 GB, free: 3.102 MB / 0.6544 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.008932/1.473, allocations: 2.015 MB / 0.9422 GB, free: 1.102 MB / 0.6544 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.565e-05/1.473, allocations: 15.94 kB / 0.9422 GB, free: 1.086 MB / 0.6544 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.637e-05/1.473, allocations: 4 kB / 0.9422 GB, free: 1.082 MB / 0.6544 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.005684/1.479, allocations: 1.761 MB / 0.9439 GB, free: 15.23 MB / 0.67 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01051/1.489, allocations: 2.634 MB / 0.9465 GB, free: 12.59 MB / 0.67 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.27e-05/1.49, allocations: 4 kB / 0.9465 GB, free: 12.58 MB / 0.67 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002926/1.493, allocations: 259.6 kB / 0.9467 GB, free: 12.33 MB / 0.67 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0009713/1.494, allocations: 156.6 kB / 0.9469 GB, free: 12.17 MB / 0.67 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.000307/1.494, allocations: 35.98 kB / 0.9469 GB, free: 12.14 MB / 0.67 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004638/1.499, allocations: 2.478 MB / 0.9493 GB, free: 9.523 MB / 0.67 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.276e-06/1.499, allocations: 112 / 0.9493 GB, free: 9.523 MB / 0.67 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01089/1.509, allocations: 2.824 MB / 0.9521 GB, free: 6.68 MB / 0.67 GB Notification: Performance of postOpt removeConstants (simulation): time 0.003093/1.513, allocations: 0.5944 MB / 0.9527 GB, free: 6.062 MB / 0.67 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001798/1.514, allocations: 28 kB / 0.9527 GB, free: 6.035 MB / 0.67 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.004131/1.519, allocations: 99.73 kB / 0.9528 GB, free: 5.938 MB / 0.67 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004974/1.519, allocations: 89.17 kB / 0.9529 GB, free: 5.848 MB / 0.67 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.000372/1.52, allocations: 63.95 kB / 0.9529 GB, free: 5.785 MB / 0.67 GB Notification: Performance of sorting global known variables: time 0.008892/1.529, allocations: 2.343 MB / 0.9552 GB, free: 3.461 MB / 0.67 GB Notification: Performance of sort global known variables: time 7.61e-07/1.529, allocations: 0 / 0.9552 GB, free: 3.461 MB / 0.67 GB Notification: Performance of remove unused functions: time 0.01446/1.543, allocations: 1.874 MB / 0.9571 GB, free: 1.586 MB / 0.67 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.s[1],pump.filter.s[2],exp.m,exp.H,CHP.vol.dynBal.U) * Number of discrete variables: 1 (control.y) * Number of discrete states: 1 (control.y) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (124): * Single equations (assignments): 117 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 6 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 1 system {(1,10,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.01458/1.558, allocations: 4.342 MB / 0.9613 GB, free: 13.4 MB / 0.6856 GB Notification: Performance of simCode: created initialization part: time 0.01409/1.572, allocations: 4.074 MB / 0.9653 GB, free: 9.305 MB / 0.6856 GB Notification: Performance of simCode: created event and clocks part: time 1.524e-05/1.572, allocations: 4.562 kB / 0.9653 GB, free: 9.301 MB / 0.6856 GB Notification: Performance of simCode: created simulation system equations: time 0.003113/1.575, allocations: 0.9315 MB / 0.9662 GB, free: 8.359 MB / 0.6856 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.01767/1.593, allocations: 1.815 MB / 0.968 GB, free: 6.617 MB / 0.6856 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0835/1.676, allocations: 29.4 MB / 0.9967 GB, free: 6.953 MB / 0.7169 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.004949/1.681, allocations: 2.406 MB / 0.999 GB, free: 4.527 MB / 0.7169 GB Notification: Performance of simCode: alias equations: time 0.006484/1.688, allocations: 1.079 MB / 1 GB, free: 3.473 MB / 0.7169 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.003466/1.691, allocations: 1.522 MB / 1.002 GB, free: 1.949 MB / 0.7169 GB Notification: Performance of SimCode: time 1.974e-06/1.691, allocations: 0 / 1.002 GB, free: 1.949 MB / 0.7169 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.7878/2.479, allocations: 97.29 MB / 1.097 GB, free: 291.2 MB / 0.7794 GB Notification: Performance of buildModelFMU: Generate platform static: time 17.79/20.27, allocations: 1.328 kB / 1.097 GB, free: 291.2 MB / 0.7794 GB (rm -f BuildingSystems_BuildingSystems.Technologies.Cogeneration.Examples.CogenerationUnitWithStorage.pipe ; mkfifo BuildingSystems_BuildingSystems.Technologies.Cogeneration.Examples.CogenerationUnitWithStorage.pipe ; head -c 1048576 < BuildingSystems_BuildingSystems.Technologies.Cogeneration.Examples.CogenerationUnitWithStorage.pipe >> ../files/BuildingSystems_BuildingSystems.Technologies.Cogeneration.Examples.CogenerationUnitWithStorage.sim & python3 -m fmpy simulate --output-file BuildingSystems_BuildingSystems.Technologies.Cogeneration.Examples.CogenerationUnitWithStorage_res.csv --start-time 0 --stop-time 20000 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 8 BuildingSystems_BuildingSystems_Technologies_Cogeneration_Examples_CogenerationUnitWithStorage.fmu > BuildingSystems_BuildingSystems.Technologies.Cogeneration.Examples.CogenerationUnitWithStorage.pipe 2>&1)