Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Regression Tests - Ubuntu in Windows 10 #449

Closed
bmazetto opened this issue May 16, 2020 · 3 comments
Closed

Regression Tests - Ubuntu in Windows 10 #449

bmazetto opened this issue May 16, 2020 · 3 comments

Comments

@bmazetto
Copy link

Hello Everyone,

I’m facing some failures during the Regression Tests and problems to get the plots.

Bug description
No plots of failed cases.

To Reproduce
Basically, I used a similar procedure as the one from #384 to build OpenFAST in Ubuntu and the same steps shown in https://raf-openfast.readthedocs.io/en/docs-general_updates/source/testing/regression_test.html to run the Regression Tests.

I have installed matplotlib using “sudo apt-get python3-matplotlib”. Numpy is installed, as well.

Expected behavior
I tried to generate the plots using the given python routine, so I could compare my results to the baseline. I expected to I go to the directory “openfast\build\reg_tests\glue-codes\openfast” and access the “regression_test_summary.html”, where I could see the plots for the failed cases.

Screenshots
These are the results from the Regression Tests executing with CTEST:
CTEST_1
CTEST_2
CTEST_3

These are the results executing the Python routine just to generate the plots, without running the cases again:

Python_1
Python_2

OpenFAST Version


OpenFAST

Copyright (C) 2020 National Renewable Energy Laboratory
Copyright (C) 2020 Envision Energy USA LTD

This program is licensed under Apache License Version 2.0 and comes with ABSOLUTELY NO WARRANTY.
See the "LICENSE" file distributed with this software for details.


OpenFAST-v2.3.0-29-gced487c8
Compile Info:

  • Compiler: GCC version 9.3.0
  • Architecture: 64 bit
  • Precision: double
  • Date: May 15 2020
  • Time: 21:25:06
    Execution Info:
  • Date: 05/16/2020
  • Time: 01:57:45-0300

System Information (please complete the following information):

  • OS: Ubuntu 20.04 (inside Windows 10)
  • Compiler: GNU Fortran (Ubuntu 9.3.0-10ubuntu2) 9.3.0

Additional context
A little time ago, I manage to build OpenFAST in Windows using Cygwin. Now, I'm running my simulations using it. However, since I have a great number of scenarios to run and they are taking a lot of time, I'd like to run them in parallel. To do so, I've installed Ubuntu for Windows 10 in the same computer and used a similar procedure mentioned in #384 to build OpenFAST in Ubuntu.

Is there a better way to run OpenFAST simulations in parallel using only one notebook? Could someone give me a suggestion?

Thanks a lot for your time!

@rafmudaf
Copy link
Collaborator

rafmudaf commented May 18, 2020

@bmazetto The documentation link you've included above is my fork's documentation which is just something I use for development. It is severely out of date. The official OpenFAST documentation is linked at the top of the GitHub page and here's the link. That being said, you simply need to install Bokeh at version 1.4 instead of matplotlib.

As for running in parallel, try running with ctest instead of with the Python driver. For what its worth, we are working on improving the custom Python infrastructure so that running in parallel will be supported.

@bmazetto
Copy link
Author

Hello @rafmudaf , thank you for your help. Now I'm getting the plots. I had to change from Bokeh 2.0.2 to 1.4.0.

I'm not sure how to use the CTEST to run my own simulations. Could you provide an example of how to do it? Maybe point out which files I should customize.

@rafmudaf
Copy link
Collaborator

Read the CTest section of the documentation here. Let me know if some part of that is lacking or not clear.

@rafmudaf rafmudaf self-assigned this Oct 7, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants