CCSI-Toolset / FOQUS

FOQUS: Framework for Optimization and Quantification of Uncertainty and Surrogates
https://foqus.readthedocs.io
Other
46 stars 54 forks source link

FOQUS Cloud: User Plugin Application #1119

Closed boverhof closed 1 year ago

boverhof commented 1 year ago

Description

boverhof commented 1 year ago

Costing Plugin sinter configuration json

{
  "title": "CCS_costing",
  "config-version": "1.8",
  "description": "Python User plugin: CCS Costing",
  "model": {
    "file": "CCS_costing_plugin.py",
    "DigestValue": "",
    "SignatureMethodAlgorithm": "sha1"
  },
  "input-files": [
  ],
  "author": "Joshua Boverhof",
  "date": "03/08/2023",
  "filetype": "sinterconfig",
  "filetype-version": 0.3,
  "application": {
    "name": "FOQUS-User-Plugin",
    "version": "1.0.0",
    "constraint": "AT-LEAST"
  },
  "inputs": {
  },
  "outputs": {
  }
}
boverhof commented 1 year ago

FOQUS Client Upload Attempt


## Error 
<img width="530" alt="Screen Shot 2023-03-08 at 9 43 41 AM" src="https://user-images.githubusercontent.com/738295/223789480-80863694-246e-4b16-aac4-c1ef3d44f979.png">
boverhof commented 1 year ago

Application FOQUS-User-Plugin

boverhof commented 1 year ago

Simulation Create Fails

boverhof commented 1 year ago

Sinter config upload fails

boverhof commented 1 year ago

Update PUT simulation input file

      else if (obj.filetype == "sinterconfig" && obj["filetype-version"] == "0.3") {
        var app_name = obj.application.name;
        app_name = app_name.toLowerCase();
        if (obj.model.file.endsWith('.py') && app_name == "foqus-user-plugin")
          params.Key = user_name + "/" + name + "/" + app_name + ".json";
        else if (obj.model.file.endsWith('.acmf') && app_name == "Aspen Custom Modeler")
          params.Key = user_name + "/" + name + "/acm_sinter.json";
        else if (obj.model.file.endsWith('.bkp'))
          params.Key = user_name + "/" + name + "/aspenplus_sinter.json";
        else {
          log(event.body);
          done(new Error(`Inspection sinter config v0.3 failed to identify configuration file type`));
          return;
        }
      }
boverhof commented 1 year ago

Uploaded User Plugin

Screen Shot 2023-03-08 at 10 52 15 AM
boverhof commented 1 year ago

FOQUS Plugin Lookup

$ sed -n '345,355p' foqus_lib/framework/session/session.py 
        self.pymodels = pluginSearch.plugins(
            idString="#\s?FOQUS_PYMODEL_PLUGIN",
            pathList=[
                os.path.join(os.getcwd(), "user_plugins"),
                os.path.dirname(pymodel.__file__),
            ],
        )
        try:
            self.flowsheet.pymodels = self.pymodels
        except:
            pass
boverhof commented 1 year ago

Lookup Plugin on Aspen12 VM Client

>>> import os
>>> from foqus_lib.framework.pymodel import pymodel
>>> from foqus_lib.framework.plugins import pluginSearch
>>> pymodels = pluginSearch.plugins(idString="#\s?FOQUS_PYMODEL_PLUGIN", pathList=[os.path.join(os.getcwd(), "user_plugins"), os.path.dirname(pymodel.__file__),],)
>>> pymodels
<foqus_lib.framework.plugins.pluginSearch.plugins object at 0x0000020098E36130>
>>> pymodels.__dict__
{'idString': '#\\s?FOQUS_PYMODEL_PLUGIN', 
'pathList': ['C:\\Users\\Administrator\\Desktop\\josh_working_dir\\user_plugins', 'C:\\ProgramData\\Anaconda3\\envs\\foqus\\lib\\site-packages\\foqus_lib\\framework\\pymodel'], 
'charLimit': 1150, 
'plugins': {
  'CCS_costing_plugin': <module 'CCS_costing_plugin' from 'C:\\Users\\Administrator\\Desktop\\josh_working_dir\\user_plugins\\CCS_costing_plugin.py'>, 
  'heat_integration': <module 'heat_integration' from 'C:\\ProgramData\\Anaconda3\\envs\\foqus\\lib\\site-packages\\foqus_lib\\framework\\pymodel\\heat_integration.py'>, 
  'pymodel_test': <module 'pymodel_test' from 'C:\\ProgramData\\Anaconda3\\envs\\foqus\\lib\\site-packages\\foqus_lib\\framework\\pymodel\\pymodel_test.py'>, 
  'steam_cycle': <module 'steam_cycle' from 'C:\\ProgramData\\Anaconda3\\envs\\foqus\\lib\\site-packages\\foqus_lib\\framework\\pymodel\\steam_cycle.py'>}
}
>>>
boverhof commented 1 year ago

Change flowsheet foqus-user-plugin turbApp

boverhof commented 1 year ago

User Plugin

boverhof commented 1 year ago

Job Succeeds

Job Output

{'solTime': 0, 'input': {'graph': {}, 'CCSI_MEAModel': {'ABSDIAM': 1, 'ABSPACKHT': 30, 'STRDIAM': 1, 'STRPACKHT': 25, 'CO2LEANLOADING': 0.2, 'LEANRICHHXAREASPEC': 80, 'LEANSOLVENTTEMP': 40, 'FLUEGASINTEMP': 40, 'STRPRESSURE': 185, 'FLUEGASINFLOW': 2000, 'FLUEGASFRACCO2': 0.05, 'FLUEGASFRACO2': 0.084, 'FLUEGASFRACH2O': 0.086, 'FLUEGASFRACN2': 0.78}, 'CCS_costing': {'Absorber.Volume': 0, 'Absorber.Packing_Volume': 0, 'Stripper.Volume': 0, 'Stripper.Packing_Volume': 0, 'Condenser.Area': 0, 'Stripper.Reboiler_Area': 0, 'LeanRichHX.Area': 0, 'LeanSolventCooler.Area': 0, 'CO2Product.Flow': 0, 'FlueGas.Flow': 0, 'NetPlantPower': 650, 'Utilities.Water': 0, 'Utilities.Steam': 0, 'Utilities.Solvent': 0, 'Utilities.Electricity': 0, 'CE_Index.Year': 2018}}, 'output': {'graph': {'error': 0}, 'CCSI_MEAModel': {'ABSVOLUME': 0, 'ABSPACKVOL': 0, 'STRVOLUME': 0, 'STRPACKVOL': 0, 'CONDENSERAREA': 0, 'STRREBAREA': 0, 'LEANRICHHXAREA': 0, 'COOLERAREA': 0, 'CO2PRODFLOW': 0, 'FLUEGASFLOW': 0, 'RATEWATER': 0, 'RATESTEAM': 0, 'RATEMEA': 0, 'RATEELECTRICITY': 0, 'CO2FRACCAP': 0, 'ABSFRACFLOOD': 0, 'STRFRACFLOOD': 0, 'LEANSOLVFLOW': 5796.48792, 'QREB': 347712.253, 'SRD': 3.35810066, 'status': 0}, 'CCS_costing': {'Absorber.Total_Plant_Cost': 1.3886593705269759, 'Absorber.Packing.Total_Plant_Cost': 1.203395894325608, 'Stripper.Total_Plant_Cost': 0.20634864588003515, 'Stripper.Packing.Total_Plant_Cost': 0.15770819055219565, 'Stripper.Condenser.Total_Plant_Cost': 0.00894523073157076, 'Stripper.Reboiler.Total_Plant_Cost': 0.042815990775907316, 'LeanRichHX.Total_Plant_Cost': 0.11411726654844366, 'LeanSolventCooler.Total_Plant_Cost': 0.031603827573924874, 'FlueGasBlower1.Total_Plant_Cost': 0, 'FlueGasBlower2.Total_Plant_Cost': 0.016680830876214244, 'FlueGasDirectContactCooler1.Total_Plant_Cost': 0.05906082360728565, 'FlueGasDirectContactCooler2.Total_Plant_Cost': 0, 'FlueGasDirectContactCooler1.Packing.Total_Plant_Cost': 0.07328818635677407, 'FlueGasDirectContactCooler2.Packing.Total_Plant_Cost': 0.03868227160087614, 'PretreatmentPump1.Total_Plant_Cost': 0.007862035923562593, 'PretreatmentPump2.Total_Plant_Cost': 0, 'PretreatmentCooler1.Total_Plant_Cost': 0, 'PretreatmentCooler2.Total_Plant_Cost': 0.004149664823885809, 'PretreatmentTank1.Total_Plant_Cost': 0.0036196502024322826, 'PretreatmentTank2.Total_Plant_Cost': 0.001910489250600892, 'WashingColumn1.Total_Plant_Cost': 0.11061339650873707, 'WashingColumn2.Total_Plant_Cost': 0.05838290806674986, 'WashingColumn1.Packing.Total_Plant_Cost': 0.080177198032371, 'WashingColumn2 .Packing.Total_Plant_Cost': 0.04231836404556815, 'WashingColumn1.Cooler.Total_Plant_Cost': 0.002685546924385242, 'WashingColumn2 .Cooler.Total_Plant_Cost': 0.0014174597665748557, 'WashingColumn1.SolventPump.Total_Plant_Cost': 0.0006616564886166539, 'WashingColumn2 .SolventPump.Total_Plant_Cost': 0.000349229217851776, 'Condenser1.Pump.Total_Plant_Cost': 0.0013622339471519344, 'Condenser2 .Pump.Total_Plant_Cost': 0.0007190013308713036, 'Stripper1.RefluxDrum.Total_Plant_Cost': 0.0017903646162568281, 'Stripper2.RefluxDrum.Total_Plant_Cost': 0.0032663203316724934, 'LeanSolventPump1.Total_Plant_Cost': 0, 'LeanSolventPump2.Total_Plant_Cost': 0, 'SolventStorageTank1.Total_Plant_Cost': 0.013310971712170331, 'SolventStorageTank2.Total_Plant_Cost': 0.007025670147371023, 'WashingSolventTank1.Total_Plant_Cost': 0.0017903646162568281, 'WashingSolventTank2.Total_Plant_Cost': 0.0009449731777165704, 'SolventStripperReclaimer1.Total_Plant_Cost': 0.007044695555271432, 'SolventStripperReclaimer2.Total_Plant_Cost': 0.0037182640253630274, 'SolventReclaimerCooler1.Total_Plant_Cost': 0.007005774585352805, 'SolventReclaimerCooler2.Total_Plant_Cost': 0.0036977211301952757, 'SolventFiltration1.Total_Plant_Cost': 0.03370555994953072, 'SolventFiltration2.Total_Plant_Cost': 0.017790147215272827, 'TPC': 3.8975757737963006, 'Utilities.Water': 0.08656566413033356, 'Utilities.Steam': 0.05654235740578879, 'Utilities.Solvent': 0.16280820375746133, 'Utilities.Electricity': 0.038248804836724035, 'TotalCost.Capital': 0.1296586669958502, 'TotalCost.Fixed': 3.2882849999999997, 'TotalCost.Variable': 0.3441650301303077, 'TotalCost.PerElectricity': 71.63979975508192, 'TotalCost.PerCapture': 734.4190131575258}}, 'graphError': 0, 'nodeError': {'CCSI_MEAModel': 0, 'CCS_costing': 0}, 'nodeSettings': {'CCSI_MEAModel': {}, 'CCS_costing': {}}, 'turbineMessages': {'CCSI_MEAModel': 'NULL', 'CCS_costing': 'NULL'}, 'input_vectorvals': {'CCSI_MEAModel': {}, 'CCS_costing': {}}, 'output_vectorvals': {'CCSI_MEAModel': {}, 'CCS_costing': {}, 'LowConc': {}}, 'session': '4a3522fe-b0d4-40d4-8ad8-dae5533ec0af', 'Id': '735b04f0-f071-4588-b329-216619388bba', 'resub': 0}
>>> x.get("output").keys()
dict_keys(['graph', 'CCSI_MEAModel', 'CCS_costing'])
>>> x.get("output")['CCSI_MEAModel']
{'ABSVOLUME': 0, 'ABSPACKVOL': 0, 'STRVOLUME': 0, 'STRPACKVOL': 0, 'CONDENSERAREA': 0, 'STRREBAREA': 0, 'LEANRICHHXAREA': 0, 'COOLERAREA': 0, 'CO2PRODFLOW': 0, 'FLUEGASFLOW': 0, 'RATEWATER': 0, 'RATESTEAM': 0, 'RATEMEA': 0, 'RATEELECTRICITY': 0, 'CO2FRACCAP': 0, 'ABSFRACFLOOD': 0, 'STRFRACFLOOD': 0, 'LEANSOLVFLOW': 5796.48792, 'QREB': 347712.253, 'SRD': 3.35810066, 'status': 0}
>>> 
>>> x.get("output")['CCS_costing']
{'Absorber.Total_Plant_Cost': 1.3886593705269759, 'Absorber.Packing.Total_Plant_Cost': 1.203395894325608, 'Stripper.Total_Plant_Cost': 0.20634864588003515, 'Stripper.Packing.Total_Plant_Cost': 0.15770819055219565, 'Stripper.Condenser.Total_Plant_Cost': 0.00894523073157076, 'Stripper.Reboiler.Total_Plant_Cost': 0.042815990775907316, 'LeanRichHX.Total_Plant_Cost': 0.11411726654844366, 'LeanSolventCooler.Total_Plant_Cost': 0.031603827573924874, 'FlueGasBlower1.Total_Plant_Cost': 0, 'FlueGasBlower2.Total_Plant_Cost': 0.016680830876214244, 'FlueGasDirectContactCooler1.Total_Plant_Cost': 0.05906082360728565, 'FlueGasDirectContactCooler2.Total_Plant_Cost': 0, 'FlueGasDirectContactCooler1.Packing.Total_Plant_Cost': 0.07328818635677407, 'FlueGasDirectContactCooler2.Packing.Total_Plant_Cost': 0.03868227160087614, 'PretreatmentPump1.Total_Plant_Cost': 0.007862035923562593, 'PretreatmentPump2.Total_Plant_Cost': 0, 'PretreatmentCooler1.Total_Plant_Cost': 0, 'PretreatmentCooler2.Total_Plant_Cost': 0.004149664823885809, 'PretreatmentTank1.Total_Plant_Cost': 0.0036196502024322826, 'PretreatmentTank2.Total_Plant_Cost': 0.001910489250600892, 'WashingColumn1.Total_Plant_Cost': 0.11061339650873707, 'WashingColumn2.Total_Plant_Cost': 0.05838290806674986, 'WashingColumn1.Packing.Total_Plant_Cost': 0.080177198032371, 'WashingColumn2 .Packing.Total_Plant_Cost': 0.04231836404556815, 'WashingColumn1.Cooler.Total_Plant_Cost': 0.002685546924385242, 'WashingColumn2 .Cooler.Total_Plant_Cost': 0.0014174597665748557, 'WashingColumn1.SolventPump.Total_Plant_Cost': 0.0006616564886166539, 'WashingColumn2 .SolventPump.Total_Plant_Cost': 0.000349229217851776, 'Condenser1.Pump.Total_Plant_Cost': 0.0013622339471519344, 'Condenser2 .Pump.Total_Plant_Cost': 0.0007190013308713036, 'Stripper1.RefluxDrum.Total_Plant_Cost': 0.0017903646162568281, 'Stripper2.RefluxDrum.Total_Plant_Cost': 0.0032663203316724934, 'LeanSolventPump1.Total_Plant_Cost': 0, 'LeanSolventPump2.Total_Plant_Cost': 0, 'SolventStorageTank1.Total_Plant_Cost': 0.013310971712170331, 'SolventStorageTank2.Total_Plant_Cost': 0.007025670147371023, 'WashingSolventTank1.Total_Plant_Cost': 0.0017903646162568281, 'WashingSolventTank2.Total_Plant_Cost': 0.0009449731777165704, 'SolventStripperReclaimer1.Total_Plant_Cost': 0.007044695555271432, 'SolventStripperReclaimer2.Total_Plant_Cost': 0.0037182640253630274, 'SolventReclaimerCooler1.Total_Plant_Cost': 0.007005774585352805, 'SolventReclaimerCooler2.Total_Plant_Cost': 0.0036977211301952757, 'SolventFiltration1.Total_Plant_Cost': 0.03370555994953072, 'SolventFiltration2.Total_Plant_Cost': 0.017790147215272827, 'TPC': 3.8975757737963006, 'Utilities.Water': 0.08656566413033356, 'Utilities.Steam': 0.05654235740578879, 'Utilities.Solvent': 0.16280820375746133, 'Utilities.Electricity': 0.038248804836724035, 'TotalCost.Capital': 0.1296586669958502, 'TotalCost.Fixed': 3.2882849999999997, 'TotalCost.Variable': 0.3441650301303077, 'TotalCost.PerElectricity': 71.63979975508192, 'TotalCost.PerCapture': 734.4190131575258}
>>> 
>>> 
>>> x.get("output")['graph']
{'error': 0}
boverhof commented 1 year ago

Frontend

boverhof commented 1 year ago

Transfer Edge Fails

{"Id": 6, "Guid": "65bdf5df-f251-4003-9ba8-7751633c1803", "Simulation": "LowConcentration", "State": "success", "Messages": ["event=setup,consumer=576ec2ac-7cce-46e8-a04e-eb77770cdfe8", "working directory setup finished", "sinter read setup finished", "event=running,consumer=576ec2ac-7cce-46e8-a04e-eb77770cdfe8", "sinter inputs sent, running simulation", "Real Run was complete and successful.", "event=sucess,consumer=576ec2ac-7cce-46e8-a04e-eb77770cdfe8"], "Input": {"ABSDIAM": 1.0, "ABSPACKHT": 30.0, "CO2LEANLOADING": 0.2, "FLUEGASFRACCO2": 0.05, "FLUEGASFRACH2O": 0.086, "FLUEGASFRACN2": 0.78, "FLUEGASFRACO2": 0.084, "FLUEGASINFLOW": 2000.0, "FLUEGASINTEMP": 40.0, "LEANRICHHXAREASPEC": 80.0, "LEANSOLVENTTEMP": 40.0, "STRDIAM": 1.0, "STRPACKHT": 25.0, "STRPRESSURE": 185.0}, "Output": {"ABSVOLUME": {"value": 23.5619449, "units": "cum"}, "ABSPACKVOL": {"value": 23.090706, "units": "cum"}, "STRVOLUME": {"value": 19.6349541, "units": "cum"}, "STRPACKVOL": {"value": 19.242255, "units": "cum"}, "CONDENSERAREA": {"value": 0.335083414, "units": "sqm"}, "STRREBAREA": {"value": 0.376808902, "units": "sqm"}, "LEANRICHHXAREA": {"value": 79.9954594, "units": "sqm"}, "COOLERAREA": {"value": 0.0997176522, "units": "sqm"}, "CO2PRODFLOW": {"value": 308.885056, "units": "lb/hr"}, "FLUEGASFLOW": {"value": 1639.20754, "units": "cum/hr"}, "RATEWATER": {"value": 19.9289788, "units": "gpm"}, "RATESTEAM": {"value": 231.036799, "units": "kg/hr"}, "RATEMEA": {"value": 0.720316549, "units": "kg/hr"}, "RATEELECTRICITY": {"value": 0.770991647, "units": "kW"}, "CO2FRACCAP": {"value": 89.9943504, "units": null}, "ABSFRACFLOOD": {"value": 0.155527715, "units": null}, "STRFRACFLOOD": {"value": 0.0325027811, "units": null}, "LEANSOLVFLOW": {"value": 2223.41946, "units": "kg/hr"}, "QREB": {"value": 130584.206, "units": "Watt"}, "SRD": {"value": 3.3552935, "units": "MJ/kg CO2"}, "status": {"units": "", "value": 0}}, "Errors": [], "Status": 0, "Session": "fc3e5839-6026-4f3c-97a9-e101245bf156", "Initialize": false, "Reset": false, "Visible": false, "Consumer": "576ec2ac-7cce-46e8-a04e-eb77770cdfe8", "Create": "2023-03-10T20:21:14.2170000", "Submit": "2023-03-10T20:21:14.2770000", "Setup": "2023-03-10T20:21:17.8070000", "Running": "2023-03-10T20:21:28.0870000", "Finished": "2023-03-10T20:28:47.5070000"}

2023-03-10 20:28:50,464 - DEBUG - foqus.foqus_lib.framework.graph.node - Outputs: ABSVOLUME = 23.5619449 ABSPACKVOL = 23.090706 STRVOLUME = 19.6349541 STRPACKVOL = 19.242255 CONDENSERAREA = 0.335083414 STRREBAREA = 0.376808902 LEANRICHHXAREA = 79.9954594 COOLERAREA = 0.0997176522 CO2PRODFLOW = 308.885056 FLUEGASFLOW = 1639.20754 RATEWATER = 19.9289788 RATESTEAM = 231.036799 RATEMEA = 0.720316549 RATEELECTRICITY = 0.770991647 CO2FRACCAP = 89.9943504 ABSFRACFLOOD = 0.155527715 STRFRACFLOOD = 0.0325027811 LEANSOLVFLOW = 2223.41946 QREB = 130584.206 SRD = 3.3552935 status = 0

2023-03-10 20:28:50,464 - DEBUG - foqus.foqus_lib.framework.sim.turbineConfiguration - turbine configuration="turbine.cfg" 2023-03-10 20:28:50,464 - DEBUG - foqus.foqus_lib.framework.sim.turbineConfiguration - turbine configuration application url="http://localhost:8000/TurbineLite/application/" 2023-03-10 20:28:50,464 - DEBUG - foqus.foqus_lib.framework.sim.turbineConfiguration - turbine configuration url="http://localhost:8000/TurbineLite"

2023-03-10 20:28:50,464 - DEBUG - foqus.foqus_lib.framework.graph.graph - runGraph(CCSI_MEAModel): transfer edge

2023-03-10 20:28:50,511 - INFO - foqus.foqus_lib.service.flowsheet - TurbineLiteDB.consumer_status 2023-03-10 20:28:51,042 - INFO - foqus.foqus_lib.service.flowsheet - TurbineLiteDB.consumer_status 2023-03-10 20:28:51,042 - INFO - foqus.foqus_lib.service.flowsheet - TurbineLiteDB.job_save_output 2023-03-10 20:28:51,042 - DEBUG - foqus.foqus_lib.service.flowsheet - TurbineLiteDB.job_save_output: {"solTime": 0, "input": {"graph": {}, "CCSI_MEAModel": {"ABSDIAM": 1.0, "ABSPACKHT": 30.0, "STRDIAM": 1.0, "STRPACKHT": 25.0, "CO2LEANLOADING": 0.2, "LEANRICHHXAREASPEC": 80.0, "LEANSOLVENTTEMP": 40.0, "FLUEGASINTEMP": 40.0, "STRPRESSURE": 185.0, "FLUEGASINFLOW": 2000.0, "FLUEGASFRACCO2": 0.05, "FLUEGASFRACO2": 0.084, "FLUEGASFRACH2O": 0.086, "FLUEGASFRACN2": 0.78}, "CCS_costing": {"Absorber.Volume": 22.5538944, "Absorber.Packing_Volume": 22.1028165, "Stripper.Volume": 3.22889153, "Stripper.Packing_Volume": 3.1643137, "Condenser.Area": 0.936174117, "Stripper.Reboiler_Area": 1.35659952, "LeanRichHX.Area": 52.034442, "LeanSolventCooler.Area": 1.13815527, "CO2Product.Flow": 1152.69703, "FlueGas.Flow": 2002.0657, "NetPlantPower": 650.0, "Utilities.Water": 86.623102, "Utilities.Steam": 879.971152, "Utilities.Solvent": 1.75976342, "Utilities.Electricity": 72.7716987, "CE_Index.Year": 2018.0}}, "output": {"graph": {"error": -1.0}, "CCSI_MEAModel": {"ABSVOLUME": 0.0, "ABSPACKVOL": 0.0, "STRVOLUME": 0.0, "STRPACKVOL": 0.0, "CONDENSERAREA": 0.0, "STRREBAREA": 0.0, "LEANRICHHXAREA": 0.0, "COOLERAREA": 0.0, "CO2PRODFLOW": 0.0, "FLUEGASFLOW": 0.0, "RATEWATER": 0.0, "RATESTEAM": 0.0, "RATEMEA": 0.0, "RATEELECTRICITY": 0.0, "CO2FRACCAP": 0.0, "ABSFRACFLOOD": 0.0, "STRFRACFLOOD": 0.0, "LEANSOLVFLOW": 5796.48792, "QREB": 347712.253, "SRD": 3.35810066, "status": 0.0}, "CCS_costing": {"Absorber.Total_Plant_Cost": 1.3886593705269759, "Absorber.Packing.Total_Plant_Cost": 1.203395894325608, "Stripper.Total_Plant_Cost": 0.20634864588003515, "Stripper.Packing.Total_Plant_Cost": 0.15770819055219565, "Stripper.Condenser.Total_Plant_Cost": 0.00894523073157076, "Stripper.Reboiler.Total_Plant_Cost": 0.042815990775907316, "LeanRichHX.Total_Plant_Cost": 0.11411726654844366, "LeanSolventCooler.Total_Plant_Cost": 0.031603827573924874, "FlueGasBlower1.Total_Plant_Cost": 0.0, "FlueGasBlower2.Total_Plant_Cost": 0.016680830876214244, "FlueGasDirectContactCooler1.Total_Plant_Cost": 0.05906082360728565, "FlueGasDirectContactCooler2.Total_Plant_Cost": 0.0, "FlueGasDirectContactCooler1.Packing.Total_Plant_Cost": 0.07328818635677407, "FlueGasDirectContactCooler2.Packing.Total_Plant_Cost": 0.03868227160087614, "PretreatmentPump1.Total_Plant_Cost": 0.007862035923562593, "PretreatmentPump2.Total_Plant_Cost": 0.0, "PretreatmentCooler1.Total_Plant_Cost": 0.0, "PretreatmentCooler2.Total_Plant_Cost": 0.004149664823885809, "PretreatmentTank1.Total_Plant_Cost": 0.0036196502024322826, "PretreatmentTank2.Total_Plant_Cost": 0.001910489250600892, "WashingColumn1.Total_Plant_Cost": 0.11061339650873707, "WashingColumn2.Total_Plant_Cost": 0.05838290806674986, "WashingColumn1.Packing.Total_Plant_Cost": 0.080177198032371, "WashingColumn2 .Packing.Total_Plant_Cost": 0.04231836404556815, "WashingColumn1.Cooler.Total_Plant_Cost": 0.002685546924385242, "WashingColumn2 .Cooler.Total_Plant_Cost": 0.0014174597665748557, "WashingColumn1.SolventPump.Total_Plant_Cost": 0.0006616564886166539, "WashingColumn2 .SolventPump.Total_Plant_Cost": 0.000349229217851776, "Condenser1.Pump.Total_Plant_Cost": 0.0013622339471519344, "Condenser2 .Pump.Total_Plant_Cost": 0.0007190013308713036, "Stripper1.RefluxDrum.Total_Plant_Cost": 0.0017903646162568281, "Stripper2.RefluxDrum.Total_Plant_Cost": 0.0032663203316724934, "LeanSolventPump1.Total_Plant_Cost": 0.0, "LeanSolventPump2.Total_Plant_Cost": 0.0, "SolventStorageTank1.Total_Plant_Cost": 0.013310971712170331, "SolventStorageTank2.Total_Plant_Cost": 0.007025670147371023, "WashingSolventTank1.Total_Plant_Cost": 0.0017903646162568281, "WashingSolventTank2.Total_Plant_Cost": 0.0009449731777165704, "SolventStripperReclaimer1.Total_Plant_Cost": 0.007044695555271432, "SolventStripperReclaimer2.Total_Plant_Cost": 0.0037182640253630274, "SolventReclaimerCooler1.Total_Plant_Cost": 0.007005774585352805, "SolventReclaimerCooler2.Total_Plant_Cost": 0.0036977211301952757, "SolventFiltration1.Total_Plant_Cost": 0.03370555994953072, "SolventFiltration2.Total_Plant_Cost": 0.017790147215272827, "TPC": 3.8975757737963006, "Utilities.Water": 0.08656566413033356, "Utilities.Steam": 0.05654235740578879, "Utilities.Solvent": 0.16280820375746133, "Utilities.Electricity": 0.038248804836724035, "TotalCost.Capital": 0.1296586669958502, "TotalCost.Fixed": 3.2882849999999997, "TotalCost.Variable": 0.3441650301303077, "TotalCost.PerElectricity": 71.63979975508192, "TotalCost.PerCapture": 734.4190131575258}}, "graphError": 19, "nodeError": {"CCSI_MEAModel": -1, "CCS_costing": -1}, "nodeSettings": {"CCSI_MEAModel": {"Visible": false, "Initialize Model": false, "Reset": false, "Reset on Fail": true, "Retry": false, "Allow Simulation Warnings": true, "Max consumer reuse": 90, "Maximum Wait Time (s)": 1440.0, "Maximum Run Time (s)": 840.0, "Min Status Check Interval": 4.0, "Max Status Check Interval": 5.0, "Override Turbine Configuration": "NULL"}, "CCS_costing": {}}, "turbineMessages": {"CCSI_MEAModel": "NULL", "CCS_costing": "NULL"}, "input_vectorvals": {}, "output_vectorvals": {"CCSI_MEAModel": {}, "CCS_costing": {}, "LowConc": {}}} 2023-03-10 20:28:51,042 - DEBUG - foqus.foqus_lib.service.flowsheet - _sns_notification obj: {'resource': 'job', 'event': 'output', 'jobid': '519d3652-a8b8-4209-baba-dc4ffc2fa23d', 'username': 'boverhof', 'value': {'solTime': 0, 'input': {'graph': {}, 'CCSI_MEAModel': {'ABSDIAM': 1.0, 'ABSPACKHT': 30.0, 'STRDIAM': 1.0, 'STRPACKHT': 25.0, 'CO2LEANLOADING': 0.2, 'LEANRICHHXAREASPEC': 80.0, 'LEANSOLVENTTEMP': 40.0, 'FLUEGASINTEMP': 40.0, 'STRPRESSURE': 185.0, 'FLUEGASINFLOW': 2000.0, 'FLUEGASFRACCO2': 0.05, 'FLUEGASFRACO2': 0.084, 'FLUEGASFRACH2O': 0.086, 'FLUEGASFRACN2': 0.78}, 'CCS_costing': {'Absorber.Volume': 22.5538944, 'Absorber.Packing_Volume': 22.1028165, 'Stripper.Volume': 3.22889153, 'Stripper.Packing_Volume': 3.1643137, 'Condenser.Area': 0.936174117, 'Stripper.Reboiler_Area': 1.35659952, 'LeanRichHX.Area': 52.034442, 'LeanSolventCooler.Area': 1.13815527, 'CO2Product.Flow': 1152.69703, 'FlueGas.Flow': 2002.0657, 'NetPlantPower': 650.0, 'Utilities.Water': 86.623102, 'Utilities.Steam': 879.971152, 'Utilities.Solvent': 1.75976342, 'Utilities.Electricity': 72.7716987, 'CE_Index.Year': 2018.0}}, 'output': {'graph': {'error': -1.0}, 'CCSI_MEAModel': {'ABSVOLUME': 0.0, 'ABSPACKVOL': 0.0, 'STRVOLUME': 0.0, 'STRPACKVOL': 0.0, 'CONDENSERAREA': 0.0, 'STRREBAREA': 0.0, 'LEANRICHHXAREA': 0.0, 'COOLERAREA': 0.0, 'CO2PRODFLOW': 0.0, 'FLUEGASFLOW': 0.0, 'RATEWATER': 0.0, 'RATESTEAM': 0.0, 'RATEMEA': 0.0, 'RATEELECTRICITY': 0.0, 'CO2FRACCAP': 0.0, 'ABSFRACFLOOD': 0.0, 'STRFRACFLOOD': 0.0, 'LEANSOLVFLOW': 5796.48792, 'QREB': 347712.253, 'SRD': 3.35810066, 'status': 0.0}, 'CCS_costing': {'Absorber.Total_Plant_Cost': 1.3886593705269759, 'Absorber.Packing.Total_Plant_Cost': 1.203395894325608, 'Stripper.Total_Plant_Cost': 0.20634864588003515, 'Stripper.Packing.Total_Plant_Cost': 0.15770819055219565, 'Stripper.Condenser.Total_Plant_Cost': 0.00894523073157076, 'Stripper.Reboiler.Total_Plant_Cost': 0.042815990775907316, 'LeanRichHX.Total_Plant_Cost': 0.11411726654844366, 'LeanSolventCooler.Total_Plant_Cost': 0.031603827573924874, 'FlueGasBlower1.Total_Plant_Cost': 0.0, 'FlueGasBlower2.Total_Plant_Cost': 0.016680830876214244, 'FlueGasDirectContactCooler1.Total_Plant_Cost': 0.05906082360728565, 'FlueGasDirectContactCooler2.Total_Plant_Cost': 0.0, 'FlueGasDirectContactCooler1.Packing.Total_Plant_Cost': 0.07328818635677407, 'FlueGasDirectContactCooler2.Packing.Total_Plant_Cost': 0.03868227160087614, 'PretreatmentPump1.Total_Plant_Cost': 0.007862035923562593, 'PretreatmentPump2.Total_Plant_Cost': 0.0, 'PretreatmentCooler1.Total_Plant_Cost': 0.0, 'PretreatmentCooler2.Total_Plant_Cost': 0.004149664823885809, 'PretreatmentTank1.Total_Plant_Cost': 0.0036196502024322826, 'PretreatmentTank2.Total_Plant_Cost': 0.001910489250600892, 'WashingColumn1.Total_Plant_Cost': 0.11061339650873707, 'WashingColumn2.Total_Plant_Cost': 0.05838290806674986, 'WashingColumn1.Packing.Total_Plant_Cost': 0.080177198032371, 'WashingColumn2 .Packing.Total_Plant_Cost': 0.04231836404556815, 'WashingColumn1.Cooler.Total_Plant_Cost': 0.002685546924385242, 'WashingColumn2 .Cooler.Total_Plant_Cost': 0.0014174597665748557, 'WashingColumn1.SolventPump.Total_Plant_Cost': 0.0006616564886166539, 'WashingColumn2 .SolventPump.Total_Plant_Cost': 0.000349229217851776, 'Condenser1.Pump.Total_Plant_Cost': 0.0013622339471519344, 'Condenser2 .Pump.Total_Plant_Cost': 0.0007190013308713036, 'Stripper1.RefluxDrum.Total_Plant_Cost': 0.0017903646162568281, 'Stripper2.RefluxDrum.Total_Plant_Cost': 0.0032663203316724934, 'LeanSolventPump1.Total_Plant_Cost': 0.0, 'LeanSolventPump2.Total_Plant_Cost': 0.0, 'SolventStorageTank1.Total_Plant_Cost': 0.013310971712170331, 'SolventStorageTank2.Total_Plant_Cost': 0.007025670147371023, 'WashingSolventTank1.Total_Plant_Cost': 0.0017903646162568281, 'WashingSolventTank2.Total_Plant_Cost': 0.0009449731777165704, 'SolventStripperReclaimer1.Total_Plant_Cost': 0.007044695555271432, 'SolventStripperReclaimer2.Total_Plant_Cost': 0.0037182640253630274, 'SolventReclaimerCooler1.Total_Plant_Cost': 0.007005774585352805, 'SolventReclaimerCooler2.Total_Plant_Cost': 0.0036977211301952757, 'SolventFiltration1.Total_Plant_Cost': 0.03370555994953072, 'SolventFiltration2.Total_Plant_Cost': 0.017790147215272827, 'TPC': 3.8975757737963006, 'Utilities.Water': 0.08656566413033356, 'Utilities.Steam': 0.05654235740578879, 'Utilities.Solvent': 0.16280820375746133, 'Utilities.Electricity': 0.038248804836724035, 'TotalCost.Capital': 0.1296586669958502, 'TotalCost.Fixed': 3.2882849999999997, 'TotalCost.Variable': 0.3441650301303077, 'TotalCost.PerElectricity': 71.63979975508192, 'TotalCost.PerCapture': 734.4190131575258}}, 'graphError': 19, 'nodeError': {'CCSI_MEAModel': -1, 'CCS_costing': -1}, 'nodeSettings': {'CCSI_MEAModel': {'Visible': False, 'Initialize Model': False, 'Reset': False, 'Reset on Fail': True, 'Retry': False, 'Allow Simulation Warnings': True, 'Max consumer reuse': 90, 'Maximum Wait Time (s)': 1440.0, 'Maximum Run Time (s)': 840.0, 'Min Status Check Interval': 4.0, 'Max Status Check Interval': 5.0, 'Override Turbine Configuration': 'NULL'}, 'CCS_costing': {}}, 'turbineMessages': {'CCSI_MEAModel': 'NULL', 'CCS_costing': 'NULL'}, 'input_vectorvals': {}, 'output_vectorvals': {'CCSI_MEAModel': {}, 'CCS_costing': {}, 'LowConc': {}}}, 'rc': 0, 'sessionid': '4626cf29-8929-425a-914b-0ea1260ad643'} 2023-03-10 20:28:51,042 - DEBUG - foqus.foqus_lib.service.flowsheet - _sns_notification event: job.unknown 2023-03-10 20:28:51,042 - DEBUG - foqus.foqus_lib.service.flowsheet - MessageAttributes: {'event': {'DataType': 'String', 'StringValue': 'job.unknown'}, 'username': {'DataType': 'String', 'StringValue': 'boverhof'}} 2023-03-10 20:28:53,395 - INFO - foqus.foqus_lib.service.flowsheet - TurbineLiteDB.job_change_status {'Simulation': 'zzfoqus_LowConcentration', 'Input': {'graph': {}, 'CCSI_MEAModel': {'ABSDIAM': 1, 'ABSPACKHT': 30, 'STRDIAM': 1, 'STRPACKHT': 25, 'CO2LEANLOADING': 0.2, 'LEANRICHHXAREASPEC': 80, 'LEANSOLVENTTEMP': 40, 'FLUEGASINTEMP': 40, 'STRPRESSURE': 185, 'FLUEGASINFLOW': 2000, 'FLUEGASFRACCO2': 0.05, 'FLUEGASFRACO2': 0.084, 'FLUEGASFRACH2O': 0.086, 'FLUEGASFRACN2': 0.78}, 'CCS_costing': {'Absorber.Volume': 22.5538944, 'Absorber.Packing_Volume': 22.1028165, 'Stripper.Volume': 3.22889153, 'Stripper.Packing_Volume': 3.1643137, 'Condenser.Area': 0.936174117, 'Stripper.Reboiler_Area': 1.35659952, 'LeanRichHX.Area': 52.034442, 'LeanSolventCooler.Area': 1.13815527, 'CO2Product.Flow': 1152.69703, 'FlueGas.Flow': 2002.0657, 'NetPlantPower': 650, 'Utilities.Water': 86.623102, 'Utilities.Steam': 879.971152, 'Utilities.Solvent': 1.75976342, 'Utilities.Electricity': 72.7716987, 'CE_Index.Year': 2018}}, 'Reset': False, 'Id': '519d3652-a8b8-4209-baba-dc4ffc2fa23d', 'resource': 'job', 'status': 'submit', 'jobid': '519d3652-a8b8-4209-baba-dc4ffc2fa23d', 'sessionid': '4626cf29-8929-425a-914b-0ea1260ad643', 'event': 'status'}

2023-03-10 20:28:53,395 - DEBUG - foqus.foqus_lib.service.flowsheet - _sns_notification obj: {'resource': 'job', 'event': 'status', 'rc': 0, 'status': 'error', 'jobid': '519d3652-a8b8-4209-baba-dc4ffc2fa23d', 'instanceid': 'i-02cb0386390294045', 'consumer': '258a56f0-8aa7-48e2-8733-78730a507df3', 'sessionid': '4626cf29-8929-425a-914b-0ea1260ad643', 'message': 'Flowsheet Error: [\'Traceback (most recent call last):\n\', \' File "c:\\users\\administrator\\desktop\\foqus\\foqus_lib\\framework\\graph\\graph.py", line 874, in run\ \n self.solve()\ \n\', \' File "c:\\users\\administrator\\desktop\\foqus\\foqus_lib\\framework\\graph\\graph.py", line 1042, in solve\ \n self.runGraph(order)\ \n\', \' File "c:\\users\\administrator\\desktop\\foqus\\foqus_lib\\framework\\graph\\graph.py", line 1359, in runGraph\ \n calcError = self.runNode(name)\n\', \' File "c:\\users\\administrator\\desktop\\foqus\\foqus_lib\\framework\\graph\\graph.py", line 1375, in runNode\ \n node.runCalc()\n\', \' File "c:\\users\\administrator\\desktop\\foqus\\foqus_lib\\framework\\graph\\node.py", line 1303, in runCalc\n self.runModel()\n\', \' File "c:\\users\\administrator\\desktop\\foqus\\foqus_lib\\framework\\graph\\node.py", line 1324, in runModel\ \n self.runPymodelPlugin()\n\', \' File "c:\\users\\administrator\\desktop\\foqus\\foqus_lib\\framework\\graph\\node.py", line 1372, in runPymodelPlugin\n self.pyModel.run()\n\', \'
File "C:\\ProgramData\\foqus_service\\user_plugins\\CCS_costing.py", line 1326, in run\n results = solver.solve(m, tee=True)\n\', \'
File "C:\\tools\\Anaconda3\\envs\\foqus\\lib\\site-packages\\pyomo\\opt\\base\\solvers.py", line 579, in solve\n _status = self._apply_solver()\n\', \'
File "C:\\tools\\Anaconda3\\envs\\foqus\\lib\\site-packages\\pyomo\\opt\\solver\\shellcmd.py", line 264, in _apply_solver\n
sys.stdout.flush()\n\', "AttributeError: \'NoneType\' object has no attribute \'flush\'\n"]'}

bpaul4 commented 1 year ago

Hi @boverhof, please let me know if the issue has been resolved over the weekend.

It appears this can occur when the output path is not specified or does not exist, as you mentioned offline stdout must be connected to a write location for the output. I'm tagging @eslickj who may have more suggestions on properly setting up stdout.

boverhof commented 1 year ago

Local Costing_Plugin DEBUG Run

## Execute Costing Plugin

2023-03-16 20:31:51,198 - DEBUG - foqus.foqus_lib.framework.sim.turbineConfiguration - turbine configuration application url="http://localhost:8000/TurbineLite/application/" 2023-03-16 20:31:51,198 - DEBUG - foqus.foqus_lib.framework.sim.turbineConfiguration - turbine configuration url="http://localhost:8000/TurbineLite" 2023-03-16 20:31:51,682 - DEBUG - foqus.foqus_lib.gui.main.mainWindow - checkSim: singleRun running 2023-03-16 20:31:52,198 - DEBUG - foqus.foqus_lib.gui.main.mainWindow - checkSim: singleRun running 2023-03-16 20:31:52,682 - DEBUG - foqus.foqus_lib.gui.main.mainWindow - checkSim: singleRun running 2023-03-16 20:31:53,182 - DEBUG - foqus.foqus_lib.gui.main.mainWindow - checkSim: singleRun running Ipopt 3.13.2: nlp_scaling_method=gradient-based tol=1e-06 max_iter=200


This program contains Ipopt, a library for large-scale nonlinear optimization. Ipopt is released as open source code under the Eclipse Public License (EPL). For more information visit http://projects.coin-or.org/Ipopt

This version of Ipopt was compiled from source code available at https://github.com/IDAES/Ipopt as part of the Institute for the Design of Advanced Energy Systems Process Systems Engineering Framework (IDAES PSE Framework) Copyright (c) 2018-2019. See https://github.com/IDAES/idaes-pse.

This version of Ipopt was compiled using HSL, a collection of Fortran codes for large-scale scientific computation. All technical papers, sales and publicity material resulting from use of the HSL codes within IPOPT must contain the following acknowledgement: HSL, a collection of Fortran codes for large-scale scientific computation. See http://www.hsl.rl.ac.uk.


This is Ipopt version 3.13.2, running with linear solver ma27.

Number of nonzeros in equality constraint Jacobian...: 132 Number of nonzeros in inequality constraint Jacobian.: 0 Number of nonzeros in Lagrangian Hessian.............: 0

Total number of variables............................: 88 variables with only lower bounds: 0 variables with lower and upper bounds: 88 variables with only upper bounds: 0 Total number of equality constraints.................: 88 Total number of inequality constraints...............: 0 inequality constraints with only lower bounds: 0 inequality constraints with lower and upper bounds: 0 inequality constraints with only upper bounds: 0

iter objective inf_pr inf_du lg(mu) ||d|| lg(rg) alpha_du alpha_pr ls 0 0.0000000e+00 4.89e+00 0.00e+00 -1.0 0.00e+00 - 0.00e+00 0.00e+00 0 1 0.0000000e+00 3.05e-02 4.93e-02 -1.0 7.48e+00 - 9.89e-01 9.94e-01h 1 2 0.0000000e+00 2.22e-16 3.53e+00 -1.0 4.66e-02 - 9.91e-01 1.00e+00h 1

Number of Iterations....: 2

                               (scaled)                 (unscaled)

Objective...............: 0.0000000000000000e+00 0.0000000000000000e+00 Dual infeasibility......: 0.0000000000000000e+00 0.0000000000000000e+00 Constraint violation....: 2.2204460492503131e-16 2.2204460492503131e-16 Complementarity.........: 0.0000000000000000e+00 0.0000000000000000e+00 Overall NLP error.......: 2.2204460492503131e-16 2.2204460492503131e-16

Number of objective function evaluations = 3 Number of objective gradient evaluations = 3 Number of equality constraint evaluations = 3 Number of inequality constraint evaluations = 0 Number of equality constraint Jacobian evaluations = 3 Number of inequality constraint Jacobian evaluations = 0 Number of Lagrangian Hessian evaluations = 2 Total CPU secs in IPOPT (w/o function evaluations) = 0.000 Total CPU secs in NLP function evaluations = 0.000

EXIT: Optimal Solution Found. Ipopt 3.13.2: nlp_scaling_method=gradient-based tol=1e-06 max_iter=200


This program contains Ipopt, a library for large-scale nonlinear optimization. Ipopt is released as open source code under the Eclipse Public License (EPL). For more information visit http://projects.coin-or.org/Ipopt

This version of Ipopt was compiled from source code available at https://github.com/IDAES/Ipopt as part of the Institute for the Design of Advanced Energy Systems Process Systems Engineering Framework (IDAES PSE Framework) Copyright (c) 2018-2019. See https://github.com/IDAES/idaes-pse.

This version of Ipopt was compiled using HSL, a collection of Fortran codes for large-scale scientific computation. All technical papers, sales and publicity material resulting from use of the HSL codes within IPOPT must contain the following acknowledgement: HSL, a collection of Fortran codes for large-scale scientific computation. See http://www.hsl.rl.ac.uk.


This is Ipopt version 3.13.2, running with linear solver ma27.

Number of nonzeros in equality constraint Jacobian...: 177 Number of nonzeros in inequality constraint Jacobian.: 0 Number of nonzeros in Lagrangian Hessian.............: 1

Total number of variables............................: 114 variables with only lower bounds: 0 variables with lower and upper bounds: 95 variables with only upper bounds: 0 Total number of equality constraints.................: 105 Total number of inequality constraints...............: 0 inequality constraints with only lower bounds: 0 inequality constraints with lower and upper bounds: 0 inequality constraints with only upper bounds: 0

iter objective inf_pr inf_du lg(mu) ||d|| lg(rg) alpha_du alpha_pr ls 0 0.0000000e+00 1.00e+02 0.00e+00 -1.0 0.00e+00 - 0.00e+00 0.00e+00 0 1 0.0000000e+00 1.00e+00 1.09e-01 -1.0 1.00e+02 -4.0 9.80e-01 9.90e-01h 1 2 0.0000000e+00 1.00e-02 1.68e-01 -1.0 1.22e+00 -4.5 9.90e-01 9.90e-01h 1 3 0.0000000e+00 1.00e-04 1.56e+01 -1.0 3.47e+00 -5.0 1.00e+00 9.90e-01h 1 4 0.0000000e+00 2.73e-07 1.19e+01 -2.5 2.60e-01 -5.4 1.00e+00 9.97e-01h 1 5 0.0000000e+00 2.11e-12 8.93e-01 -2.5 4.44e-01 -5.9 1.00e+00 1.00e+00h 1 6 0.0000000e+00 1.39e-17 2.97e-11 -3.8 2.11e-12 -6.4 1.00e+00 1.00e+00h 1 7 0.0000000e+00 4.59e-40 2.41e-12 -5.7 1.38e-17 -6.9 1.00e+00 1.00e+00 0 8 0.0000000e+00 1.38e-40 3.60e-14 -7.0 6.26e-35 -7.3 1.00e+00 1.00e+00 0

Number of Iterations....: 8

                               (scaled)                 (unscaled)

Objective...............: 0.0000000000000000e+00 0.0000000000000000e+00 Dual infeasibility......: 3.6012440838494246e-14 3.6012440838494246e-14 Constraint violation....: 1.3775324423698682e-40 1.3775324423698682e-40 Complementarity.........: 9.0909090909091073e-08 9.0909090909091073e-08 Overall NLP error.......: 9.0909090909091073e-08 9.0909090909091073e-08

Number of objective function evaluations = 9 Number of objective gradient evaluations = 9 Number of equality constraint evaluations = 9 Number of inequality constraint evaluations = 0 Number of equality constraint Jacobian evaluations = 9 Number of inequality constraint Jacobian evaluations = 0 Number of Lagrangian Hessian evaluations = 8 Total CPU secs in IPOPT (w/o function evaluations) = 0.000 Total CPU secs in NLP function evaluations = 0.000

EXIT: Optimal Solution Found. 2023-03-16 20:31:53,682 - DEBUG - foqus.foqus_lib.gui.main.mainWindow - checkSim: singleRun stopSim 2023-03-16 20:31:53,682 - DEBUG - foqus.foqus_lib.gui.main.mainWindow - stopSim SingleRun: {'solTime': 377.7995710372925, 'input': {'graph': OrderedDict(), 'CCSI_MEAModel': OrderedDict([('ABSDIAM', 1.0), ('ABSPACKHT', 30.0), ('STRDIAM', 1.0), ('STRPACKHT', 25.0), ('CO2LEANLOADING', 0.2), ('LEANRICHHXAREASPEC', 80.0), ('LEANSOLVENTTEMP', 40.0), ('FLUEGASINTEMP', 40.0), ('STRPRESSURE', 185.0), ('FLUEGASINFLOW', 2000.0), ('FLUEGASFRACCO2', 0.05), ('FLUEGASFRACO2', 0.084), ('FLUEGASFRACH2O', 0.086), ('FLUEGASFRACN2', 0.78)]), 'CCS_costing': OrderedDict([('Absorber.Volume', 23.5619449), ('Absorber.Packing_Volume', 23.090706), ('Stripper.Volume', 19.6349541), ('Stripper.Packing_Volume', 19.242255), ('Condenser.Area', 0.335083414), ('Stripper.Reboiler_Area', 0.376808902), ('LeanRichHX.Area', 79.9954594), ('LeanSolventCooler.Area', 0.0997176522), ('CO2Product.Flow', 308.885056), ('FlueGas.Flow', 1639.20754), ('NetPlantPower', 650.0), ('Utilities.Water', 19.9289788), ('Utilities.Steam', 231.036799), ('Utilities.Solvent', 0.720316549), ('Utilities.Electricity', 0.770991647), ('CE_Index.Year', 2018.0)])}, 'output': {'graph': OrderedDict([('error', 0.0)]), 'CCSI_MEAModel': OrderedDict([('ABSVOLUME', 23.5619449), ('ABSPACKVOL', 23.090706), ('STRVOLUME', 19.6349541), ('STRPACKVOL', 19.242255), ('CONDENSERAREA', 0.335083414), ('STRREBAREA', 0.376808902), ('LEANRICHHXAREA', 79.9954594), ('COOLERAREA', 0.0997176522), ('CO2PRODFLOW', 308.885056), ('FLUEGASFLOW', 1639.20754), ('RATEWATER', 19.9289788), ('RATESTEAM', 231.036799), ('RATEMEA', 0.720316549), ('RATEELECTRICITY', 0.770991647), ('CO2FRACCAP', 89.9943504), ('ABSFRACFLOOD', 0.155527715), ('STRFRACFLOOD', 0.0325027811), ('LEANSOLVFLOW', 2223.41946), ('QREB', 130584.206), ('SRD', 3.3552935), ('status', 0.0)]), 'CCS_costing': OrderedDict([('Absorber.Total_Plant_Cost', 1.4255730779771971), ('Absorber.Packing.Total_Plant_Cost', 1.2353848798194054), ('Stripper.Total_Plant_Cost', 0.6095193311873336), ('Stripper.Packing.Total_Plant_Cost', 0.4658435743704144), ('Stripper.Condenser.Total_Plant_Cost', 0.004829134798345195), ('Stripper.Reboiler.Total_Plant_Cost', 0.019852156735063266), ('LeanRichHX.Total_Plant_Cost', 0.14771208267001476), ('LeanSolventCooler.Total_Plant_Cost', 0.014341306502343209), ('FlueGasBlower1.Total_Plant_Cost', 0.0), ('FlueGasBlower2.Total_Plant_Cost', 0.014794866470994964), ('FlueGasDirectContactCooler1.Total_Plant_Cost', 0.05238330185235286), ('FlueGasDirectContactCooler2.Total_Plant_Cost', 0.0), ('FlueGasDirectContactCooler1.Packing.Total_Plant_Cost', 0.03325699525112348), ('FlueGasDirectContactCooler2.Packing.Total_Plant_Cost', 0.03430878517842798), ('PretreatmentPump1.Total_Plant_Cost', 0.003567664918070601), ('PretreatmentPump2.Total_Plant_Cost', 0.0), ('PretreatmentCooler1.Total_Plant_Cost', 0.0), ('PretreatmentCooler2.Total_Plant_Cost', 0.003680496338843575), ('PretreatmentTank1.Total_Plant_Cost', 0.0016425387989136926), ('PretreatmentTank2.Total_Plant_Cost', 0.0016944859381804577), ('WashingColumn1.Total_Plant_Cost', 0.05019457275820124), ('WashingColumn2.Total_Plant_Cost', 0.05178203264848237), ('WashingColumn1.Packing.Total_Plant_Cost', 0.03638311748131406), ('WashingColumn2 .Packing.Total_Plant_Cost', 0.03753377454464239), ('WashingColumn1.Cooler.Total_Plant_Cost', 0.0012186578185488688), ('WashingColumn2 .Cooler.Total_Plant_Cost', 0.0012571992444564686), ('WashingColumn1.SolventPump.Total_Plant_Cost', 0.000300249027758417), ('WashingColumn2 .SolventPump.Total_Plant_Cost', 0.0003097447413878256), ('Condenser1.Pump.Total_Plant_Cost', 0.000618159763032035), ('Condenser2 .Pump.Total_Plant_Cost', 0.0006377097616808175), ('Stripper1.RefluxDrum.Total_Plant_Cost', 0.000812438545699246), ('Stripper2.RefluxDrum.Total_Plant_Cost', 0.002897024345921428), ('LeanSolventPump1.Total_Plant_Cost', 0.0), ('LeanSolventPump2.Total_Plant_Cost', 0.0), ('SolventStorageTank1.Total_Plant_Cost', 0.006040303970198741), ('SolventStorageTank2.Total_Plant_Cost', 0.006231335385566845), ('WashingSolventTank1.Total_Plant_Cost', 0.000812438545699246), ('WashingSolventTank2.Total_Plant_Cost', 0.0008381328296376457), ('SolventStripperReclaimer1.Total_Plant_Cost', 0.0031967690602513806), ('SolventStripperReclaimer2.Total_Plant_Cost', 0.003297870481835085), ('SolventReclaimerCooler1.Total_Plant_Cost', 0.0031791073527361797), ('SolventReclaimerCooler2.Total_Plant_Cost', 0.0032796502029299184), ('SolventFiltration1.Total_Plant_Cost', 0.015295038708164064), ('SolventFiltration2.Total_Plant_Cost', 0.01577876153187394), ('TPC', 4.371709306442518), ('Utilities.Water', 0.019916626157616763), ('Utilities.Steam', 0.014845223319331444), ('Utilities.Solvent', 0.07169029104560132), ('Utilities.Electricity', 0.00040523320966723503), ('TotalCost.Capital', 0.12786082651752395), ('TotalCost.Fixed', 3.2882849999999997), ('TotalCost.Variable', 0.10685737373221676), ('TotalCost.PerElectricity', 71.5992238710613), ('TotalCost.PerCapture', 2590.384612508609)])}, 'graphError': 0, 'nodeError': {'CCSI_MEAModel': 0, 'CCS_costing': 0}, 'nodeSettings': {'CCSI_MEAModel': {'Visible': False, 'Initialize Model': False, 'Reset': False, 'Reset on Fail': True, 'Retry': False, 'Allow Simulation Warnings': True, 'Max consumer reuse': 90, 'Maximum Wait Time (s)': 1440.0, 'Maximum Run Time (s)': 840.0, 'Min Status Check Interval': 4.0, 'Max Status Check Interval': 5.0, 'Override Turbine Configuration': ''}, 'CCS_costing': {}}, 'turbineMessages': {'CCSI_MEAModel': '', 'CCS_costing': ''}, 'input_vectorvals': {'CCSI_MEAModel': OrderedDict(), 'CCS_costing': OrderedDict(), 'LowConc': OrderedDict()}, 'output_vectorvals': {'CCSI_MEAModel': OrderedDict(), 'CCS_costing': OrderedDict(), 'LowConc': OrderedDict()}}