Research in Natural Hazards Engineering > Uncertainty Quantification (quoFEM)

Error running Forward Propogation example with OpenSeesPY

(1/3) > >>

sg:
When trying to run example 2, the code throws an error with respect to Dakota.  Is there something special that needs to be done in the set up?  Here is the log file:


--- Code: ---21:29:12 - Welcome to quoFEM
21:29:18 - Loading example Forward Propagation - OpenSeesPy
21:29:18 -  - reading input file /Users/sg/Desktop/quoFEM.app/Contents/MacOS/Examples/qfem-0002/src/input.json
21:29:18 - Loading Example file. Wait till Done Loading Example appears before progressing.
21:29:18 - Loading File .. /Users/sg/Desktop/quoFEM.app/Contents/MacOS/Examples/qfem-0002/src/input.json
21:29:18 - Done Loading File
21:29:18 - Done Loading Example.
21:29:51 - Setting up temporary directory.
21:29:51 - Gathering files to local workdir.
21:29:51 - 
21:29:51 - SetUp Done .. Now starting application
21:29:51 - Starting the analysis. This may take awhile!
21:29:52 -
qWHALE workflow

System Information:
  local time zone: PDT
  start time: 2022-10-03T21:29:52
  python: 3.9.13 (main, May 24 2022, 21:28:12)
[Clang 12.0.0 (clang-1200.0.32.29)]
  numpy: 1.21.2
  pandas: 1.3.4

--------------------------------------------------------------------------------
--------------------------------------------------------------------------------
21:29:52 Started running the workflow script
         -----------------------------------------------------------------------
21:29:52 Inputs provided:
         workflow input file: /Users/sg/Documents/quoFEM/LocalWorkDir/tmp.SimCenter/templatedir/scInput.json
         application registry file: /Users/sg/Desktop/quoFEM.app/Contents/MacOS/applications/Workflow/WorkflowApplications.json
         run type: runningLocal
         -----------------------------------------------------------------------
21:29:52 Parsing application registry file
         Loading the json file...
           OK
         Loading default values...
           OK
         Collecting application data...
           OK
         Available applications:
           FEM : OpenSees
           FEM : OpenSeesPy
           FEM : SurrogateGP
           FEM : FEAPpv
           FEM : Custom
           FEM : MultipleModels
           UQ : Dakota-UQ
           UQ : SimCenter-UQ
           UQ : UCSD-UQ
           UQ : Dakota-FEM
           UQ : Dakota-UQ1
           UQ : CustomUQ
         Successfully parsed application registry
         -----------------------------------------------------------------------
21:29:52 Parsing workflow input file
         Loading the json file...
           OK
         No units specified; using Standard units.
         Missing output type specification, using default settings.
{}
         The following workflow defaults were overwritten:
           workflowInput: scInput.json
         Run dir : /Users/sg/Documents/quoFEM/LocalWorkDir/tmp.SimCenter
         Local applications dir : /Users/sg/Desktop/quoFEM.app/Contents/MacOS
         Remote applications dir : /Users/sg/Desktop/quoFEM.app/Contents/MacOS
         Reference dir : None
         
         Parsing the requested list of applications...
         
         Requested workflow:
           FEM : OpenSeesPy
           UQ : Dakota-UQ
         
         Successfully parsed workflow inputs
         -----------------------------------------------------------------------
21:29:52 Initializing the simulation directory
         Simulation directory successfully initialized.
         -----------------------------------------------------------------------
21:29:52 Creating files with random variables
         
         Running FEM app

"/Users/sg/Desktop/quoFEM.app/Contents/MacOS/applications/performFEM/OpenSeesPy/createOpenSeesPyDriver" "/Users/sg/Documents/quoFEM/LocalWorkDir/tmp.SimCenter/templatedir/scInput.json" "runningLocal" "MacOS" "driver"

Output:



         Successfully Created Driver File for Workflow.
         -----------------------------------------------------------------------
21:29:52 Running response simulation
FMK COMMAND: "/usr/local/opt/python@3.9/bin/python3.9" "/Users/sg/Desktop/quoFEM.app/Contents/MacOS/applications/performUQ/dakota/DakotaUQ.py" "--workflowInput" "scInput.json" "--driverFile" "driver" "--workflowOutput" "EDP.json" "--runType" "runningLocal"
         Simulation command:

"/usr/local/opt/python@3.9/bin/python3.9" "/Users/sg/Desktop/quoFEM.app/Contents/MacOS/applications/performUQ/dakota/DakotaUQ.py" "--workflowInput" "scInput.json" "--driverFile" "driver" "--workflowOutput" "EDP.json" "--runType" "runningLocal"

Output:

P 30 20 2 2EVAL CONCURRENCY: 16
CWD: /Users/sg/Documents/quoFEM/LocalWorkDir/tmp.SimCenter/templatedir
running Dakota:  dakota -input dakota.in -output dakota.out -error dakota.err


         Response simulation finished successfully.
         -----------------------------------------------------------------------

21:29:52 - Analysis done
21:29:52 - Error Running Dakota: Error: cannot open results file "workdir.1/results.out" for evaluation 1
21:29:52 - Analysis complete
--- End code ---

sg:
Here btw is the debug.log file from Documents/quoFEM


--- Code: ---21:29:12.283 Debug: LogFILE:  "/Users/sg/Documents/quoFEM/debug.log" ()
21:29:12.452 Warning: QObject::connect: No such signal PLoMSimuWidget::queryEVT(void) ()
21:29:12.457 Warning: QObject::connect: No such slot InputWidgetEDP::setDefaultGroup(bool) ()
21:29:12.459 Warning: QObject::connect: No such signal DakotaResultsSampling::sendStatusMessage(QString) ()
21:29:12.459 Warning: QObject::connect: No such signal DakotaResultsSampling::sendErrorMessage(QString) ()
21:29:12.459 Warning: QObject::connect: No such signal RunWidget::sendErrorMessage(QString) ()
21:29:12.459 Warning: QObject::connect: No such signal RunWidget::sendStatusMessage(QString) ()
21:29:12.459 Warning: QObject::connect: No such signal AgaveCurl::closeDialog() ()
21:29:12.459 Warning: QObject::connect: No such signal RemoteJobManager::closeDialog() ()
21:29:12.467 Debug: "Welcome to quoFEM" ()
21:29:12.475 Warning: QObject::connect: No such slot WorkflowApp_quoFEM::infoMessage(QString) ()
21:29:12.490 Debug: SimCenterPreferences::getPython - scPython:  "None" ()
21:29:18.582 Debug: WorkflowAppWidget::statusMessage "Loading example Forward Propagation - OpenSeesPy" ()
21:29:18.583 Debug: WorkflowAppWidget::statusMessage " - reading input file /Users/sg/Desktop/quoFEM.app/Contents/MacOS/Examples/qfem-0002/src/input.json" ()
21:29:18.606 Debug: WorkflowAppWidget::statusMessage "Loading Example file. Wait till Done Loading Example appears before progressing." ()
21:29:18.607 Debug: WorkflowAppWidget::statusMessage "Loading File .. /Users/sg/Desktop/quoFEM.app/Contents/MacOS/Examples/qfem-0002/src/input.json" ()
21:29:18.609 Debug: UQ_EngineSelection::enginesSelectionChanged() ()
21:29:18.668 Debug: WorkflowAppWidget::statusMessage "Done Loading File" ()
21:29:18.668 Debug: WorkflowAppWidget::statusMessage "Done Loading Example." ()
21:29:51.577 Debug: WorkflowAppWidget::statusMessage "Setting up temporary directory." ()
21:29:51.580 Debug: WorkflowAppWidget::statusMessage "Gathering files to local workdir." ()
21:29:51.580 Debug: WorkflowAppWidget::errorMessage "" ()
21:29:51.581 Debug: "" ()
21:29:51.618 Debug: WorkflowAppWidget::statusMessage "SetUp Done .. Now starting application" ()
21:29:51.619 Debug: RunWidget::setupForRunApplicationDone ()
21:29:51.619 Debug: RUNTYPE "runningLocal" ()
21:29:51.619 Debug: SCRIPT:  "/Users/sg/Desktop/quoFEM.app/Contents/MacOS/applications/Workflow/qWHALE.py" ()
21:29:51.619 Debug: REGISTRY:  "/Users/sg/Desktop/quoFEM.app/Contents/MacOS/applications/Workflow/WorkflowApplications.json" ()
21:29:51.620 Debug: SimCenterPreferences::getPython - scPython:  "None" ()
21:29:51.620 Debug: DAKOTA:  "/Users/sg/Desktop/quoFEM.app/Contents/MacOS/applications/dakota/bin/dakota" ()
21:29:51.620 Debug: PYTHON COMMAND "source $HOME/.bash_profile; export PATH=/usr/local/bin:/Users/sg/Desktop/quoFEM.app/Contents/MacOS/applications/opensees/bin:/Users/sg/Desktop/quoFEM.app/Contents/MacOS/applications/dakota/bin:$PATH; \"/usr/local/bin/python3\" \"/Users/sg/Desktop/quoFEM.app/Contents/MacOS/applications/Workflow/qWHALE.py\" runningLocal \"/Users/sg/Documents/quoFEM/LocalWorkDir/tmp.SimCenter/templatedir/scInput.json\" \"/Users/sg/Desktop/quoFEM.app/Contents/MacOS/applications/Workflow/WorkflowApplications.json\"" ()
21:29:51.625 Debug: WorkflowAppWidget::statusMessage "Starting the analysis. This may take awhile!" ()
21:29:52.804 Debug: WorkflowAppWidget::statusMessage "\nqWHALE workflow\n\nSystem Information:\n  local time zone: PDT\n  start time: 2022-10-03T21:29:52\n  python: 3.9.13 (main, May 24 2022, 21:28:12) \n[Clang 12.0.0 (clang-1200.0.32.29)]\n  numpy: 1.21.2\n  pandas: 1.3.4\n\n--------------------------------------------------------------------------------\n--------------------------------------------------------------------------------\n21:29:52 Started running the workflow script\n         -----------------------------------------------------------------------\n21:29:52 Inputs provided:\n         workflow input file: /Users/sg/Documents/quoFEM/LocalWorkDir/tmp.SimCenter/templatedir/scInput.json\n         application registry file: /Users/sg/Desktop/quoFEM.app/Contents/MacOS/applications/Workflow/WorkflowApplications.json\n         run type: runningLocal\n         -----------------------------------------------------------------------\n21:29:52 Parsing application registry file\n         Loading the json file...\n           OK\n         Loading default values...\n           OK\n         Collecting application data...\n           OK\n         Available applications:\n           FEM : OpenSees\n           FEM : OpenSeesPy\n           FEM : SurrogateGP\n           FEM : FEAPpv\n           FEM : Custom\n           FEM : MultipleModels\n           UQ : Dakota-UQ\n           UQ : SimCenter-UQ\n           UQ : UCSD-UQ\n           UQ : Dakota-FEM\n           UQ : Dakota-UQ1\n           UQ : CustomUQ\n         Successfully parsed application registry\n         -----------------------------------------------------------------------\n21:29:52 Parsing workflow input file\n         Loading the json file...\n           OK\n         No units specified; using Standard units.\n         Missing output type specification, using default settings.\n{}\n         The following workflow defaults were overwritten:\n           workflowInput: scInput.json\n         Run dir : /Users/sg/Documents/quoFEM/LocalWorkDir/tmp.SimCenter\n         Local applications dir : /Users/sg/Desktop/quoFEM.app/Contents/MacOS\n         Remote applications dir : /Users/sg/Desktop/quoFEM.app/Contents/MacOS\n         Reference dir : None\n         \n         Parsing the requested list of applications...\n         \n         Requested workflow:\n           FEM : OpenSeesPy\n           UQ : Dakota-UQ\n         \n         Successfully parsed workflow inputs\n         -----------------------------------------------------------------------\n21:29:52 Initializing the simulation directory\n         Simulation directory successfully initialized.\n         -----------------------------------------------------------------------\n21:29:52 Creating files with random variables\n         \n         Running FEM app\n\n\"/Users/sg/Desktop/quoFEM.app/Contents/MacOS/applications/performFEM/OpenSeesPy/createOpenSeesPyDriver\" \"/Users/sg/Documents/quoFEM/LocalWorkDir/tmp.SimCenter/templatedir/scInput.json\" \"runningLocal\" \"MacOS\" \"driver\" \n\nOutput: \n\n\n\n         Successfully Created Driver File for Workflow.\n         -----------------------------------------------------------------------\n21:29:52 Running response simulation\nFMK COMMAND: \"/usr/local/opt/python@3.9/bin/python3.9\" \"/Users/sg/Desktop/quoFEM.app/Contents/MacOS/applications/performUQ/dakota/DakotaUQ.py\" \"--workflowInput\" \"scInput.json\" \"--driverFile\" \"driver\" \"--workflowOutput\" \"EDP.json\" \"--runType\" \"runningLocal\" \n         Simulation command:\n\n\"/usr/local/opt/python@3.9/bin/python3.9\" \"/Users/sg/Desktop/quoFEM.app/Contents/MacOS/applications/performUQ/dakota/DakotaUQ.py\" \"--workflowInput\" \"scInput.json\" \"--driverFile\" \"driver\" \"--workflowOutput\" \"EDP.json\" \"--runType\" \"runningLocal\" \n\nOutput: \n\nP 30 20 2 2EVAL CONCURRENCY: 16\nCWD: /Users/sg/Documents/quoFEM/LocalWorkDir/tmp.SimCenter/templatedir\nrunning Dakota:  dakota -input dakota.in -output dakota.out -error dakota.err\n\n\n         Response simulation finished successfully.\n         -----------------------------------------------------------------------\n" ()
21:29:52.877 Warning: QObject::connect: No such signal DakotaResultsSampling::sendStatusMessage(QString) ()
21:29:52.877 Warning: QObject::connect: No such signal DakotaResultsSampling::sendErrorMessage(QString) ()
21:29:52.877 Warning: QObject::disconnect: No such signal DakotaResultsSampling::sendErrorMessage(QString) ()
21:29:52.877 Warning: QObject::disconnect:  (sender name:   'RES') ()
21:29:52.879 Debug: 72   "Error: cannot open results file \"workdir.1/results.out\" for evaluation 1" ()
21:29:52.880 Debug: "Error Running Dakota: Error: cannot open results file \"workdir.1/results.out\" for evaluation 1" ()
21:29:52.881 Debug: WorkflowAppWidget::statusMessage "Analysis complete" ()
21:29:52.882 Debug: Task Completed ()
--- End code ---

Sang-ri:
Is openseespy installed on the laptop? If not, please run 'pip3 install nheri_simcenter --upgrade' to make sure all the dependencies (including openseespy) are installed.

Otherwise, can you please check if ops.out is created in the workdir.1 and share the contents with us?

Thank you,

sg:
Thanks that was the problem.  When I ran pip3 install nheri_simcenter --upgrade, it install lots of things.  The example now runs fine.

Follow up question for this example, the interface allows to plot the samples versus run number.  Can one cross plot variable in the interface? or should I just export the data and use a separate plotting program?

Sang-ri:
Great! Currently, only Mac requires this additional pip install step.

Yes, if I understood the question correctly, clicking the right mouse button on the spreadsheet will change the variable of the x-axis in the plot.

Navigation

[0] Message Index

[#] Next page

Go to full version