Author Topic: Error running Forward Propogation example with OpenSeesPY  (Read 13797 times)

sg

  • Newbie
  • *
  • Posts: 25
    • View Profile
Error running Forward Propogation example with OpenSeesPY
« on: October 04, 2022, 04:31:51 AM »
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: [Select]
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

sg

  • Newbie
  • *
  • Posts: 25
    • View Profile
Re: Error running Forward Propogation example with OpenSeesPY
« Reply #1 on: October 04, 2022, 04:36:05 AM »
Here btw is the debug.log file from Documents/quoFEM

Code: [Select]
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 ()

Sang-ri

  • Global Moderator
  • Jr. Member
  • *****
  • Posts: 62
    • View Profile
Re: Error running Forward Propogation example with OpenSeesPY
« Reply #2 on: October 04, 2022, 05:06:07 AM »
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

  • Newbie
  • *
  • Posts: 25
    • View Profile
Re: Error running Forward Propogation example with OpenSeesPY
« Reply #3 on: October 04, 2022, 05:19:54 AM »
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

  • Global Moderator
  • Jr. Member
  • *****
  • Posts: 62
    • View Profile
Re: Error running Forward Propogation example with OpenSeesPY
« Reply #4 on: October 04, 2022, 05:46:34 AM »
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.

sg

  • Newbie
  • *
  • Posts: 25
    • View Profile
Re: Error running Forward Propogation example with OpenSeesPY
« Reply #5 on: October 04, 2022, 05:51:12 AM »
Thanks.  On my MAC, fn-clink, option-click, and command-click all set the Y axis (ordinate).  ctrl-click sets the X axis (abscissa).

adindar

  • Newbie
  • *
  • Posts: 13
    • View Profile
Re: Error running Forward Propogation example with OpenSeesPY
« Reply #6 on: November 10, 2022, 05:08:08 PM »
Hi there,
It seems I'm facing the same problem in my Windows 10 computer.

debug.log file is here.

Code: [Select]
20:01:15.658 Debug: LogFILE:  "C:/Users/DELL/Documents\\quoFEM\\debug.log" ()
20:01:15.847 Warning: QObject::connect: No such signal PLoMSimuWidget::queryEVT(void) ()
20:01:15.851 Warning: QObject::connect: No such slot UCSD_TMMC::advancedOptionsSlotFunction(bool) ()
20:01:15.859 Warning: QObject::connect: No such slot InputWidgetEDP::setDefaultGroup(bool) ()
20:01:15.864 Warning: QObject::connect: No such signal DakotaResultsSampling::sendStatusMessage(QString) ()
20:01:15.864 Warning: QObject::connect: No such signal DakotaResultsSampling::sendErrorMessage(QString) ()
20:01:15.864 Warning: QObject::connect: No such signal RunWidget::sendErrorMessage(QString) ()
20:01:15.864 Warning: QObject::connect: No such signal RunWidget::sendStatusMessage(QString) ()
20:01:15.864 Warning: QObject::connect: No such signal AgaveCurl::closeDialog() ()
20:01:15.864 Warning: QObject::connect: No such signal RemoteJobManager::closeDialog() ()
20:01:15.870 Debug: "Welcome to quoFEM" ()
20:01:15.885 Warning: QObject::connect: No such slot WorkflowApp_quoFEM::infoMessage(QString) ()
20:01:15.885 Debug: getDefault::pythonPath:  "C:/Users/DELL/Desktop/SimCenter/quoFEM_Windows_Download/applications/python/python.exe" ()
20:01:28.719 Debug: WorkflowAppWidget::statusMessage "Loading file C:/Users/DELL/Desktop/AAD-quoFEM/2-AAD-PEER_Manuel_quoFEM/1-Deneme/AAD_input.json" ()
20:01:28.720 Debug: WorkflowAppWidget::statusMessage "Loading File .. C:/Users/DELL/Desktop/AAD-quoFEM/2-AAD-PEER_Manuel_quoFEM/1-Deneme/AAD_input.json" ()
20:01:28.722 Debug: UQ_EngineSelection::enginesSelectionChanged() ()
20:01:28.722 Debug: UQ_EngineSelection::enginesSelectionChanged() ()
20:01:28.798 Debug: WorkflowAppWidget::statusMessage "Done Loading File" ()
20:01:54.552 Debug: WorkflowAppWidget::statusMessage "Setting up temporary directory." ()
20:01:54.552 Debug: WorkflowAppWidget::statusMessage "Gathering files to local workdir." ()
20:01:54.556 Debug: WorkflowAppWidget::errorMessage "" ()
20:01:54.556 Debug: "" ()
20:01:54.635 Debug: WRITING CORRELATION MATRIX ()
20:01:54.635 Debug: WorkflowAppWidget::statusMessage "SetUp Done .. Now starting application" ()
20:01:54.635 Debug: RunWidget::setupForRunApplicationDone ()
20:01:54.635 Debug: RUNTYPE "runningLocal" ()
20:01:54.641 Debug: SCRIPT:  "C:/Users/DELL/Desktop/SimCenter/quoFEM_Windows_Download/applications/Workflow/qWHALE.py" ()
20:01:54.641 Debug: REGISTRY:  "C:/Users/DELL/Desktop/SimCenter/quoFEM_Windows_Download/applications/Workflow/WorkflowApplications.json" ()
20:01:54.642 Debug: SimCenterPreferences::getPython - scPython:  "None" ()
20:01:54.642 Debug: DAKOTA:  "C:/Users/DELL/Desktop/SimCenter/quoFEM_Windows_Download\\applications\\dakota\\bin\\dakota.exe" ()
20:01:54.642 Debug: "\"C:/Users/DELL/Desktop/SimCenter/quoFEM_Windows_Download/applications/python/python.exe\"" ()
20:01:54.642 Debug: ("C:/Users/DELL/Desktop/SimCenter/quoFEM_Windows_Download/applications/Workflow/qWHALE.py", "runningLocal", "C:/Users/DELL/Documents/quoFEM/LocalWorkDir/tmp.SimCenter/templatedir\\scInput.json", "C:/Users/DELL/Desktop/SimCenter/quoFEM_Windows_Download/applications/Workflow/WorkflowApplications.json") ()
20:01:54.646 Debug: WorkflowAppWidget::statusMessage "Starting the analysis. This may take awhile!" ()
20:01:58.205 Debug: WorkflowAppWidget::statusMessage "\r\nqWHALE workflow\r\n\r\nSystem Information:\r\n  local time zone: Turkey Standard Time\r\n  start time: 2022-11-10T20:01:55\r\n  python: 3.8.7 (tags/v3.8.7:6503f05, Dec 21 2020, 17:59:51) [MSC v.1928 64 bit (AMD64)]\r\n  numpy: 1.22.3\r\n  pandas: 1.4.2\r\n\r\n--------------------------------------------------------------------------------\r\n--------------------------------------------------------------------------------\r\n20:01:55 Started running the workflow script\r\n         -----------------------------------------------------------------------\r\n20:01:55 Inputs provided:\r\n         workflow input file: C:/Users/DELL/Documents/quoFEM/LocalWorkDir/tmp.SimCenter/templatedir\\scInput.json\r\n         application registry file: C:/Users/DELL/Desktop/SimCenter/quoFEM_Windows_Download/applications/Workflow/WorkflowApplications.json\r\n         run type: runningLocal\r\n         -----------------------------------------------------------------------\r\n20:01:55 Parsing application registry file\r\n         Loading the json file...\r\n           OK\r\n         Loading default values...\r\n           OK\r\n         Collecting application data...\r\n           OK\r\n         Available applications:\r\n           FEM : OpenSees\r\n           FEM : OpenSeesPy\r\n           FEM : SurrogateGP\r\n           FEM : FEAPpv\r\n           FEM : Custom\r\n           FEM : MultipleModels\r\n           UQ : Dakota-UQ\r\n           UQ : SimCenter-UQ\r\n           UQ : UCSD-UQ\r\n           UQ : Dakota-FEM\r\n           UQ : Dakota-UQ1\r\n           UQ : CustomUQ\r\n         Successfully parsed application registry\r\n         -----------------------------------------------------------------------\r\n20:01:55 Parsing workflow input file\r\n         Loading the json file...\r\n           OK\r\n         No units specified; using Standard units.\r\n         Missing output type specification, using default settings.\r\n         The following workflow defaults were overwritten:\r\n           workflowInput: scInput.json\r\n         Run dir : C:\\Users\\DELL\\Documents\\quoFEM\\LocalWorkDir\\tmp.SimCenter\r\n         Local applications dir : C:/Users/DELL/Desktop/SimCenter/quoFEM_Windows_Download\r\n         Remote applications dir : C:\\Users\\DELL\\Desktop\\SimCenter\\quoFEM_Windows_Download\r\n         Reference dir : None\r\n         \r\n         Parsing the requested list of applications...\r\n         For FEM\r\n           Registering application OpenSeesPy \r\n         For UQ\r\n           Registering application Dakota-UQ \r\n         \r\n         Requested workflow:\r\n                FEM : OpenSeesPy\r\n                UQ : Dakota-UQ\r\n         \r\n         Successfully parsed workflow inputs\r\n         -----------------------------------------------------------------------\r\n20:01:55 Initializing the simulation directory\r\n         \r\n         Simulation directory successfully initialized.\r\n         \r\n         -----------------------------------------------------------------------\r\n20:01:55 Running preprocessing step random variables\r\n         \r\n         Running FEM app\r\n\r\n\"C:\\Users\\DELL\\Desktop\\SimCenter\\quoFEM_Windows_Download\\applications\\performFEM\\OpenSeesPy\\createOpenSeesPyDriver\" \"C:/Users/DELL/Documents/quoFEM/LocalWorkDir/tmp.SimCenter/templatedir\\scInput.json\" \"runningLocal\" \"Windows\" \"driver\" \r\n\r\nOutput: 0\r\n\r\n\r\n\r\n         Successfully Created Driver File for Workflow.\r\n         -----------------------------------------------------------------------\r\n20:01:55 Running response simulation\r\nFMK COMMAND: \"C:\\Users\\DELL\\Desktop\\SimCenter\\quoFEM_Windows_Download\\applications\\python\\python.exe\" \"C:\\Users\\DELL\\Desktop\\SimCenter\\quoFEM_Windows_Download\\applications\\performUQ\\dakota\\DakotaUQ.py\" \"--workflowInput\" \"scInput.json\" \"--driverFile\" \"driver\" \"--workflowOutput\" \"EDP.json\" \"--runType\" \"runningLocal\" \r\n         Simulation command:\r\n\r\n\"C:\\Users\\DELL\\Desktop\\SimCenter\\quoFEM_Windows_Download\\applications\\python\\python.exe\" \"C:\\Users\\DELL\\Desktop\\SimCenter\\quoFEM_Windows_Download\\applications\\performUQ\\dakota\\DakotaUQ.py\" \"--workflowInput\" \"scInput.json\" \"--driverFile\" \"driver\" \"--workflowOutput\" \"EDP.json\" \"--runType\" \"runningLocal\" \r\n\r\nOutput: \r\n\r\nEVAL CONCURRENCY: 8\r\nCWD: C:\\Users\\DELL\\Documents\\quoFEM\\LocalWorkDir\\tmp.SimCenter\\templatedir\r\nrunning Dakota:  dakota -input dakota.in -output dakota.out -error dakota.err\r\n\r\n\r\n         Response simulation finished successfully.\r\n         -----------------------------------------------------------------------\r\n" ()
20:01:58.221 Warning: QObject::connect: No such signal DakotaResultsCalibration::sendStatusMessage(QString) ()
20:01:58.221 Warning: QObject::connect: No such signal DakotaResultsCalibration::sendErrorMessage(QString) ()
20:01:58.223 Warning: QObject::disconnect: No such signal DakotaResultsSampling::sendErrorMessage(QString) ()
20:01:58.223 Warning: QObject::disconnect:  (sender name:   'RES') ()
20:01:58.223 Debug: DakotaResultsCalibration::processResults dir "C:/Users/DELL/Documents/quoFEM/LocalWorkDir/tmp.SimCenter" ()
20:01:58.225 Debug: "Error Running Dakota: Error: cannot open results file \"workdir.1\\results.out\" for evaluation 1" ()
20:01:58.225 Debug: WorkflowAppWidget::statusMessage "Analysis complete" ()
20:01:58.226 Debug: Task Completed ()


I'm attaching the files.

I've already done 'pip3 install nheri_simcenter --upgrade' in the Powershell which installed numerous packages. However, still seeing the same error messages.

I appreciate if you give me a lead.

Best regards.

++Ahmet

Sang-ri

  • Global Moderator
  • Jr. Member
  • *****
  • Posts: 62
    • View Profile
Re: Error running Forward Propogation example with OpenSeesPY
« Reply #7 on: November 10, 2022, 06:36:36 PM »
Hello Ahmet,

Thank you for posting the issue and sharing the input files.

The issue might be because the python executable that quoFEM uses does not have the package "opsvis" installed. To confirm this, please check the error message written in C:/Users/DELL/Documents/quoFEM/LocalWorkDir/tmp.SimCenter/workdir.1/ops.out.

If this is the case, you can either modify the code not to use the package (if possible :) ) or install the additional packages to the python executable that quoFEM uses. To see how to install additional python packages, please go to Section 3.2.2 Python in the documentation and find the yellow text box that says "Python on Windows".

Please let us know if it works!

adindar

  • Newbie
  • *
  • Posts: 13
    • View Profile
Re: Error running Forward Propogation example with OpenSeesPY
« Reply #8 on: November 10, 2022, 07:25:18 PM »
Dear Sang-ri,
Removing the "import ospvis" line worked. This is something I've not experienced before.

All the best.

++Ahmet


I am enclosing the debug.log for documentation.

Code: [Select]
22:14:29.912 Debug: LogFILE:  "C:/Users/adindar/Documents\\quoFEM\\debug.log" ()
22:14:30.635 Warning: QObject::connect: No such signal PLoMSimuWidget::queryEVT(void) ()
22:14:30.635 Warning: QObject::connect: No such slot UCSD_TMMC::advancedOptionsSlotFunction(bool) ()
22:14:30.651 Warning: QObject::connect: No such slot InputWidgetEDP::setDefaultGroup(bool) ()
22:14:30.660 Warning: QObject::connect: No such signal DakotaResultsSampling::sendStatusMessage(QString) ()
22:14:30.660 Warning: QObject::connect: No such signal DakotaResultsSampling::sendErrorMessage(QString) ()
22:14:30.660 Warning: QObject::connect: No such signal RunWidget::sendErrorMessage(QString) ()
22:14:30.660 Warning: QObject::connect: No such signal RunWidget::sendStatusMessage(QString) ()
22:14:30.660 Warning: QObject::connect: No such signal AgaveCurl::closeDialog() ()
22:14:30.660 Warning: QObject::connect: No such signal RemoteJobManager::closeDialog() ()
22:14:30.684 Debug: "Welcome to quoFEM" ()
22:14:30.708 Warning: QObject::connect: No such slot WorkflowApp_quoFEM::infoMessage(QString) ()
22:14:30.716 Debug: getDefault::pythonPath:  "C:/Users/adindar/Desktop/quoFEM_Windows_Download/quoFEM_Windows_Download/applications/python/python.exe" ()
22:14:59.171 Debug: WorkflowAppWidget::statusMessage "Loading file C:/Users/adindar/Desktop/AAD-quoFEM/2-AAD-PEER_Manuel_quoFEM/1-Deneme/AAD_input.json" ()
22:14:59.171 Debug: WorkflowAppWidget::statusMessage "Loading File .. C:/Users/adindar/Desktop/AAD-quoFEM/2-AAD-PEER_Manuel_quoFEM/1-Deneme/AAD_input.json" ()
22:14:59.179 Debug: UQ_EngineSelection::enginesSelectionChanged() ()
22:14:59.179 Debug: UQ_EngineSelection::enginesSelectionChanged() ()
22:14:59.349 Debug: WorkflowAppWidget::statusMessage "Done Loading File" ()
22:15:02.042 Debug: WorkflowAppWidget::statusMessage "Setting up temporary directory." ()
22:15:02.050 Debug: WorkflowAppWidget::statusMessage "Gathering files to local workdir." ()
22:15:02.050 Debug: WorkflowAppWidget::errorMessage "" ()
22:15:02.050 Debug: "" ()
22:15:02.252 Debug: WRITING CORRELATION MATRIX ()
22:15:02.252 Debug: WorkflowAppWidget::statusMessage "SetUp Done .. Now starting application" ()
22:15:02.252 Debug: RunWidget::setupForRunApplicationDone ()
22:15:02.252 Debug: RUNTYPE "runningLocal" ()
22:15:02.252 Debug: SCRIPT:  "C:/Users/adindar/Desktop/quoFEM_Windows_Download/quoFEM_Windows_Download/applications/Workflow/qWHALE.py" ()
22:15:02.252 Debug: REGISTRY:  "C:/Users/adindar/Desktop/quoFEM_Windows_Download/quoFEM_Windows_Download/applications/Workflow/WorkflowApplications.json" ()
22:15:02.252 Debug: SimCenterPreferences::getPython - scPython:  "None" ()
22:15:02.252 Debug: DAKOTA:  "C:/Users/adindar/Desktop/quoFEM_Windows_Download/quoFEM_Windows_Download\\applications\\dakota\\bin\\dakota.exe" ()
22:15:02.252 Debug: "\"C:/Users/adindar/Desktop/quoFEM_Windows_Download/quoFEM_Windows_Download/applications/python/python.exe\"" ()
22:15:02.252 Debug: ("C:/Users/adindar/Desktop/quoFEM_Windows_Download/quoFEM_Windows_Download/applications/Workflow/qWHALE.py", "runningLocal", "C:/Users/adindar/Documents/quoFEM/LocalWorkDir/tmp.SimCenter/templatedir\\scInput.json", "C:/Users/adindar/Desktop/quoFEM_Windows_Download/quoFEM_Windows_Download/applications/Workflow/WorkflowApplications.json") ()
22:15:02.260 Debug: WorkflowAppWidget::statusMessage "Starting the analysis. This may take awhile!" ()
22:15:10.875 Debug: WorkflowAppWidget::statusMessage "\r\nqWHALE workflow\r\n\r\nSystem Information:\r\n  local time zone: Turkey Standard Time\r\n  start time: 2022-11-10T22:15:04\r\n  python: 3.8.7 (tags/v3.8.7:6503f05, Dec 21 2020, 17:59:51) [MSC v.1928 64 bit (AMD64)]\r\n  numpy: 1.22.3\r\n  pandas: 1.4.2\r\n\r\n--------------------------------------------------------------------------------\r\n--------------------------------------------------------------------------------\r\n22:15:04 Started running the workflow script\r\n         -----------------------------------------------------------------------\r\n22:15:04 Inputs provided:\r\n         workflow input file: C:/Users/adindar/Documents/quoFEM/LocalWorkDir/tmp.SimCenter/templatedir\\scInput.json\r\n         application registry file: C:/Users/adindar/Desktop/quoFEM_Windows_Download/quoFEM_Windows_Download/applications/Workflow/WorkflowApplications.json\r\n         run type: runningLocal\r\n         -----------------------------------------------------------------------\r\n22:15:04 Parsing application registry file\r\n         Loading the json file...\r\n           OK\r\n         Loading default values...\r\n           OK\r\n         Collecting application data...\r\n           OK\r\n         Available applications:\r\n           FEM : OpenSees\r\n           FEM : OpenSeesPy\r\n           FEM : SurrogateGP\r\n           FEM : FEAPpv\r\n           FEM : Custom\r\n           FEM : MultipleModels\r\n           UQ : Dakota-UQ\r\n           UQ : SimCenter-UQ\r\n           UQ : UCSD-UQ\r\n           UQ : Dakota-FEM\r\n           UQ : Dakota-UQ1\r\n           UQ : CustomUQ\r\n         Successfully parsed application registry\r\n         -----------------------------------------------------------------------\r\n22:15:04 Parsing workflow input file\r\n         Loading the json file...\r\n           OK\r\n         No units specified; using Standard units.\r\n         Missing output type specification, using default settings.\r\n         The following workflow defaults were overwritten:\r\n           workflowInput: scInput.json\r\n         Run dir : C:\\Users\\adindar\\Documents\\quoFEM\\LocalWorkDir\\tmp.SimCenter\r\n         Local applications dir : C:/Users/adindar/Desktop/quoFEM_Windows_Download/quoFEM_Windows_Download\r\n         Remote applications dir : C:\\Users\\adindar\\Desktop\\quoFEM_Windows_Download\\quoFEM_Windows_Download\r\n         Reference dir : None\r\n         \r\n         Parsing the requested list of applications...\r\n         For FEM\r\n           Registering application OpenSeesPy \r\n         For UQ\r\n           Registering application Dakota-UQ \r\n         \r\n         Requested workflow:\r\n                FEM : OpenSeesPy\r\n                UQ : Dakota-UQ\r\n         \r\n         Successfully parsed workflow inputs\r\n         -----------------------------------------------------------------------\r\n22:15:04 Initializing the simulation directory\r\n         \r\n         Simulation directory successfully initialized.\r\n         \r\n         -----------------------------------------------------------------------\r\n22:15:04 Running preprocessing step random variables\r\n         \r\n         Running FEM app\r\n\r\n\"C:\\Users\\adindar\\Desktop\\quoFEM_Windows_Download\\quoFEM_Windows_Download\\applications\\performFEM\\OpenSeesPy\\createOpenSeesPyDriver\" \"C:/Users/adindar/Documents/quoFEM/LocalWorkDir/tmp.SimCenter/templatedir\\scInput.json\" \"runningLocal\" \"Windows\" \"driver\" \r\n\r\nOutput: 0\r\n\r\n\r\n\r\n         Successfully Created Driver File for Workflow.\r\n         -----------------------------------------------------------------------\r\n22:15:04 Running response simulation\r\nFMK COMMAND: \"C:\\Users\\adindar\\Desktop\\quoFEM_Windows_Download\\quoFEM_Windows_Download\\applications\\python\\python.exe\" \"C:\\Users\\adindar\\Desktop\\quoFEM_Windows_Download\\quoFEM_Windows_Download\\applications\\performUQ\\dakota\\DakotaUQ.py\" \"--workflowInput\" \"scInput.json\" \"--driverFile\" \"driver\" \"--workflowOutput\" \"EDP.json\" \"--runType\" \"runningLocal\" \r\n         Simulation command:\r\n\r\n\"C:\\Users\\adindar\\Desktop\\quoFEM_Windows_Download\\quoFEM_Windows_Download\\applications\\python\\python.exe\" \"C:\\Users\\adindar\\Desktop\\quoFEM_Windows_Download\\quoFEM_Windows_Download\\applications\\performUQ\\dakota\\DakotaUQ.py\" \"--workflowInput\" \"scInput.json\" \"--driverFile\" \"driver\" \"--workflowOutput\" \"EDP.json\" \"--runType\" \"runningLocal\" \r\n\r\nOutput: \r\n\r\nEVAL CONCURRENCY: 40\r\nCWD: C:\\Users\\adindar\\Documents\\quoFEM\\LocalWorkDir\\tmp.SimCenter\\templatedir\r\nrunning Dakota:  dakota -input dakota.in -output dakota.out -error dakota.err\r\n\r\n\r\n         Response simulation finished successfully.\r\n         -----------------------------------------------------------------------\r\n" ()
22:15:10.891 Warning: QObject::connect: No such signal DakotaResultsCalibration::sendStatusMessage(QString) ()
22:15:10.899 Warning: QObject::connect: No such signal DakotaResultsCalibration::sendErrorMessage(QString) ()
22:15:10.899 Warning: QObject::disconnect: No such signal DakotaResultsSampling::sendErrorMessage(QString) ()
22:15:10.899 Warning: QObject::disconnect:  (sender name:   'RES') ()
22:15:10.899 Debug: DakotaResultsCalibration::processResults dir "C:/Users/adindar/Documents/quoFEM/LocalWorkDir/tmp.SimCenter" ()
22:15:10.899 Debug: "Error Running Dakota: Error: cannot open results file \"workdir.6\\results.out\" for evaluation 6" ()
22:15:10.899 Debug: WorkflowAppWidget::statusMessage "Analysis complete" ()
22:15:10.899 Debug: Task Completed ()
22:16:07.507 Debug: WorkflowAppWidget::statusMessage "Setting up temporary directory." ()
22:16:07.507 Debug: WorkflowAppWidget::statusMessage "Gathering files to local workdir." ()
22:16:07.515 Debug: WorkflowAppWidget::errorMessage "" ()
22:16:07.515 Debug: "" ()
22:16:07.683 Debug: WRITING CORRELATION MATRIX ()
22:16:07.684 Debug: WorkflowAppWidget::statusMessage "SetUp Done .. Now starting application" ()
22:16:07.686 Debug: RunWidget::setupForRunApplicationDone ()
22:16:07.686 Debug: RUNTYPE "runningLocal" ()
22:16:07.687 Debug: SCRIPT:  "C:/Users/adindar/Desktop/quoFEM_Windows_Download/quoFEM_Windows_Download/applications/Workflow/qWHALE.py" ()
22:16:07.687 Debug: REGISTRY:  "C:/Users/adindar/Desktop/quoFEM_Windows_Download/quoFEM_Windows_Download/applications/Workflow/WorkflowApplications.json" ()
22:16:07.688 Debug: SimCenterPreferences::getPython - scPython:  "None" ()
22:16:07.689 Debug: DAKOTA:  "C:/Users/adindar/Desktop/quoFEM_Windows_Download/quoFEM_Windows_Download\\applications\\dakota\\bin\\dakota.exe" ()
22:16:07.689 Debug: "\"C:/Users/adindar/Desktop/quoFEM_Windows_Download/quoFEM_Windows_Download/applications/python/python.exe\"" ()
22:16:07.690 Debug: ("C:/Users/adindar/Desktop/quoFEM_Windows_Download/quoFEM_Windows_Download/applications/Workflow/qWHALE.py", "runningLocal", "C:/Users/adindar/Documents/quoFEM/LocalWorkDir/tmp.SimCenter/templatedir\\scInput.json", "C:/Users/adindar/Desktop/quoFEM_Windows_Download/quoFEM_Windows_Download/applications/Workflow/WorkflowApplications.json") ()
22:16:07.691 Debug: WorkflowAppWidget::statusMessage "Starting the analysis. This may take awhile!" ()
22:18:25.089 Debug: WorkflowAppWidget::statusMessage "\r\nqWHALE workflow\r\n\r\nSystem Information:\r\n  local time zone: Turkey Standard Time\r\n  start time: 2022-11-10T22:16:08\r\n  python: 3.8.7 (tags/v3.8.7:6503f05, Dec 21 2020, 17:59:51) [MSC v.1928 64 bit (AMD64)]\r\n  numpy: 1.22.3\r\n  pandas: 1.4.2\r\n\r\n--------------------------------------------------------------------------------\r\n--------------------------------------------------------------------------------\r\n22:16:08 Started running the workflow script\r\n         -----------------------------------------------------------------------\r\n22:16:08 Inputs provided:\r\n         workflow input file: C:/Users/adindar/Documents/quoFEM/LocalWorkDir/tmp.SimCenter/templatedir\\scInput.json\r\n         application registry file: C:/Users/adindar/Desktop/quoFEM_Windows_Download/quoFEM_Windows_Download/applications/Workflow/WorkflowApplications.json\r\n         run type: runningLocal\r\n         -----------------------------------------------------------------------\r\n22:16:08 Parsing application registry file\r\n         Loading the json file...\r\n           OK\r\n         Loading default values...\r\n           OK\r\n         Collecting application data...\r\n           OK\r\n         Available applications:\r\n           FEM : OpenSees\r\n           FEM : OpenSeesPy\r\n           FEM : SurrogateGP\r\n           FEM : FEAPpv\r\n           FEM : Custom\r\n           FEM : MultipleModels\r\n           UQ : Dakota-UQ\r\n           UQ : SimCenter-UQ\r\n           UQ : UCSD-UQ\r\n           UQ : Dakota-FEM\r\n           UQ : Dakota-UQ1\r\n           UQ : CustomUQ\r\n         Successfully parsed application registry\r\n         -----------------------------------------------------------------------\r\n22:16:08 Parsing workflow input file\r\n         Loading the json file...\r\n           OK\r\n         No units specified; using Standard units.\r\n         Missing output type specification, using default settings.\r\n         The following workflow defaults were overwritten:\r\n           workflowInput: scInput.json\r\n         Run dir : C:\\Users\\adindar\\Documents\\quoFEM\\LocalWorkDir\\tmp.SimCenter\r\n         Local applications dir : C:/Users/adindar/Desktop/quoFEM_Windows_Download/quoFEM_Windows_Download\r\n         Remote applications dir : C:\\Users\\adindar\\Desktop\\quoFEM_Windows_Download\\quoFEM_Windows_Download\r\n         Reference dir : None\r\n         \r\n         Parsing the requested list of applications...\r\n         For FEM\r\n           Registering application OpenSeesPy \r\n         For UQ\r\n           Registering application Dakota-UQ \r\n         \r\n         Requested workflow:\r\n                FEM : OpenSeesPy\r\n                UQ : Dakota-UQ\r\n         \r\n         Successfully parsed workflow inputs\r\n         -----------------------------------------------------------------------\r\n22:16:08 Initializing the simulation directory\r\n         \r\n         Simulation directory successfully initialized.\r\n         \r\n         -----------------------------------------------------------------------\r\n22:16:08 Running preprocessing step random variables\r\n         \r\n         Running FEM app\r\n\r\n\"C:\\Users\\adindar\\Desktop\\quoFEM_Windows_Download\\quoFEM_Windows_Download\\applications\\performFEM\\OpenSeesPy\\createOpenSeesPyDriver\" \"C:/Users/adindar/Documents/quoFEM/LocalWorkDir/tmp.SimCenter/templatedir\\scInput.json\" \"runningLocal\" \"Windows\" \"driver\" \r\n\r\nOutput: 0\r\n\r\n\r\n\r\n         Successfully Created Driver File for Workflow.\r\n         -----------------------------------------------------------------------\r\n22:16:08 Running response simulation\r\nFMK COMMAND: \"C:\\Users\\adindar\\Desktop\\quoFEM_Windows_Download\\quoFEM_Windows_Download\\applications\\python\\python.exe\" \"C:\\Users\\adindar\\Desktop\\quoFEM_Windows_Download\\quoFEM_Windows_Download\\applications\\performUQ\\dakota\\DakotaUQ.py\" \"--workflowInput\" \"scInput.json\" \"--driverFile\" \"driver\" \"--workflowOutput\" \"EDP.json\" \"--runType\" \"runningLocal\" \r\n         Simulation command:\r\n\r\n\"C:\\Users\\adindar\\Desktop\\quoFEM_Windows_Download\\quoFEM_Windows_Download\\applications\\python\\python.exe\" \"C:\\Users\\adindar\\Desktop\\quoFEM_Windows_Download\\quoFEM_Windows_Download\\applications\\performUQ\\dakota\\DakotaUQ.py\" \"--workflowInput\" \"scInput.json\" \"--driverFile\" \"driver\" \"--workflowOutput\" \"EDP.json\" \"--runType\" \"runningLocal\" \r\n\r\nOutput: \r\n\r\nEVAL CONCURRENCY: 40\r\nCWD: C:\\Users\\adindar\\Documents\\quoFEM\\LocalWorkDir\\tmp.SimCenter\\templatedir\r\nrunning Dakota:  dakota -input dakota.in -output dakota.out -error dakota.err\r\n\r\n\r\n         Response simulation finished successfully.\r\n         -----------------------------------------------------------------------\r\n" ()
22:18:25.113 Warning: QObject::connect: No such signal DakotaResultsCalibration::sendStatusMessage(QString) ()
22:18:25.113 Warning: QObject::connect: No such signal DakotaResultsCalibration::sendErrorMessage(QString) ()
22:18:25.121 Warning: QObject::disconnect: No such signal DakotaResultsCalibration::sendErrorMessage(QString) ()
22:18:25.121 Debug: DakotaResultsCalibration::processResults dir "C:/Users/adindar/Documents/quoFEM/LocalWorkDir/tmp.SimCenter" ()
22:18:26.438 Debug: WorkflowAppWidget::statusMessage "Analysis complete" ()
22:18:26.446 Debug: Task Completed ()

Sang-ri

  • Global Moderator
  • Jr. Member
  • *****
  • Posts: 62
    • View Profile
Re: Error running Forward Propogation example with OpenSeesPY
« Reply #9 on: November 10, 2022, 07:33:11 PM »
Great to know it worked! Thanks for sharing the log.

bastu

  • Newbie
  • *
  • Posts: 1
    • View Profile
Re: Error running Forward Propogation example with OpenSeesPY
« Reply #10 on: February 13, 2023, 08:40:33 AM »
Hi,

Could you please help me to run Example_2 (Forward Propogation with OpenSeesPY) with "RUN at DesignSafe" option?

Example_2 (Forward Propogation with OpenSeesPY) runs okay on the desktop but it does not run on DesignSafe when using the quoFEM desktop app. For reference, Example_1 (Truss using OpenSees) and Example_3 (Basic modeling with Python) run fine on the desktop and Designsafe.

When running Example_2 in 1 node with 32 processes on DesignSafe, only the 32 first analyses run okay but after that python closes the processes and leaves Dakota without results from the further realizations. It seems the issue is importing OpenSeesPy "import openseespy.opensees as ops" but I don't know if I could fix it on my end.

Thank you!

Errors:

Code: [Select]
+ ibrun dakota -in dakota.in -out dakota.out -err dakota.err

Error: cannot open results file "workdir.33/results.out" for evaluation 33
Abort(-4) on node 4 (rank 4 in comm 0): application called MPI_Abort(MPI_COMM_WORLD, -4) - process 4
Abort(-4) on node 0 (rank 0 in comm 0): application called MPI_Abort(MPI_COMM_WORLD, -4) - process 0

 
« Last Edit: February 13, 2023, 08:43:25 AM by bastu »

Sang-ri

  • Global Moderator
  • Jr. Member
  • *****
  • Posts: 62
    • View Profile
Re: Error running Forward Propogation example with OpenSeesPY
« Reply #11 on: February 13, 2023, 07:47:34 PM »
Hello,

Thanks for posting! This is a known issue and the fix is currently underway.

The issue is because the current distribution of openseespy is incompatible with running inside mpi applications like those in our tools, so we are trying to solve it by building our own version of openseespy and linking it with the simcenter tools.

We will update here when it becomes available again.

Sang-ri

Sang-ri

  • Global Moderator
  • Jr. Member
  • *****
  • Posts: 62
    • View Profile
Re: Error running Forward Propogation example with OpenSeesPY
« Reply #12 on: February 17, 2023, 08:19:38 PM »
OpenSeesPy now works on DesignSafe. Please let us know if Example 2 still gives an error.

Thanks,
Sang-ri