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 UI Testing #1072

Closed boverhof closed 2 years ago

boverhof commented 2 years ago

Description

Reported problems with FOQUS UI, performing some basic tests to confirm things are working and then move to testing the scenarios that these users are reporting.

Sarah

boverhof commented 2 years ago

BFB OUU Screenshots

Screen Shot 2022-10-13 at 10 35 06 AM

Screen Shot 2022-10-13 at 10 34 41 AM

Screen Shot 2022-10-13 at 10 35 28 AM

Screen Shot 2022-10-13 at 10 35 46 AM

Screen Shot 2022-10-13 at 10 37 32 AM

boverhof commented 2 years ago

My System ( AWS VM Windows 2016 Server )

(foqus) C:\Users\Administrator\Desktop>pip show TurbineClient
Name: TurbineClient
Version: 4.0.2
Summary: Turbine Science Gateway Client
Home-page: https://github.com/CCSI-Toolset/turb_client
Author: Joshua Boverhof
Author-email: jrboverhof@lbl.gov
License: See LICENSE.md
Location: c:\tools\anaconda3\envs\foqus\lib\site-packages
Requires: python-dateutil
Required-by: ccsi-foqus

(foqus) C:\Users\Administrator\Desktop>pip show ccsi_foqus
Name: ccsi-foqus
Version: 3.16.dev0
Summary: FOQUS tool for Simulation based Optimization, Uncertainty Quantification, and Surrogate modeling
Home-page: http://www.acceleratecarboncapture.org/
Author: CCSI FOQUS Team
Author-email: ccsi-support@acceleratecarboncapture.org
License: BSD 3-Clause Variant (See LICENSE.md details)
Location: c:\users\administrator\desktop\foqus
Requires: boto3, cma, matplotlib, mlrose_hiive, mplcursors, numpy, pandas, psutil, PyQt5, pywin32, requests, scipy, tqdm, TurbineClient, websocket_client, winshell
Required-by:
boverhof commented 2 years ago

Flash AspenPlus Model

Screen Shot 2022-10-13 at 11 00 42 AM

2022-10-13 18:00:11,039 - DEBUG - foqus.foqus_lib.framework.graph.node - Started Job: 3 Turbin SID: 50a71cf9-3095-4e8a-a9e2-1cfaa6f4f3d0
2022-10-13 18:00:25,620 - INFO - foqus.foqus_lib.framework.sim.turbineConfiguration - Job 3 Started Running
2022-10-13 18:00:30,469 - DEBUG - foqus.foqus_lib.framework.graph.node - Job finished successfully: 3
2022-10-13 18:00:30,469 - INFO - foqus.foqus_lib.framework.graph.node - Job 3 Finished Successfully
2022-10-13 18:00:30,485 - DEBUG - foqus.foqus_lib.framework.graph.node - Job 3 Results:
{"Id": 3, "Guid": "0a6b12ca-ade9-4bee-be2c-6a031c986019", "Simulation": "Aspen_Flash_Model", "State": "success", "Messages": null, "Input": {"INLETFLOW": 100.0, "INLETTEMP": 25.0, "PRES": 4.960276335424773}, "Output": {"ETHANVAP": {"value": 0.575314921, "units": "kg/hr"}, "CARBOVAP": {"value": 38.7161971, "units": "kg/hr"}, "ETHANLIQ": {"value": 49.4246851, "units": "kg/hr"}, "CARBOLIQ": {"value": 11.2838029, "units": "kg/hr"}, "status": {"units": "", "value": 0}}, "Errors": [], "Status": 0, "Session": "50a71cf9-3095-4e8a-a9e2-1cfaa6f4f3d0", "Initialize": true, "Reset": false, "Visible": false, "Consumer": "16f91751-4c79-4634-9770-e009da9d6c92", "Create": "2022-10-13T18:00:10.9500000", "Submit": "2022-10-13T18:00:11.0230000", "Setup": "2022-10-13T18:00:14.5330000", "Running": "2022-10-13T18:00:23.3030000", "Finished": "2022-10-13T18:00:27.2230000"}
2022-10-13 18:00:30,485 - DEBUG - foqus.foqus_lib.framework.graph.node - Outputs: ETHANVAP = 0.575314921
CARBOVAP = 38.7161971
ETHANLIQ = 49.4246851
CARBOLIQ = 11.2838029
status = 0

2022-10-13 18:00:30,485 - DEBUG - foqus.foqus_lib.framework.sim.turbineConfiguration - turbine configuration application url="http://localhost:8000/TurbineLite/application/"
2022-10-13 18:00:30,485 - DEBUG - foqus.foqus_lib.framework.sim.turbineConfiguration - turbine configuration url="http://localhost:8000/TurbineLite"
2022-10-13 18:00:30,891 - DEBUG - foqus.foqus_lib.gui.main.mainWindow - stopSim SingleRun: {'solTime': 23.716273307800293, 'input': {'graph': OrderedDict(), 'FLASH': OrderedDict([('INLETFLOW', 100.0), ('INLETTEMP', 25.0), ('PRES', 4.960276335424773)])}, 'output': {'graph': OrderedDict([('error', 0.0)]), 'FLASH': OrderedDict([('ETHANVAP', 0.575314921), ('CARBOVAP', 38.7161971), ('ETHANLIQ', 49.4246851), ('CARBOLIQ', 11.2838029), ('status', 0.0)])}, 'graphError': 0, 'nodeError': {'FLASH': 0}, 'nodeSettings': {'FLASH': {'Visible': False, 'Initialize Model': True, 'Reset': False, 'Reset on Fail': True, 'Retry': True, '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': ''}}, 'turbineMessages': {'FLASH': ''}, 'input_vectorvals': {'FLASH': OrderedDict()}, 'output_vectorvals': {'FLASH': OrderedDict()}}
ksbeattie commented 2 years ago

The solution here is to make sure that FOQUS 3.15 and TurbineClient 4.0.2 are used together.