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 Test #412

Closed
abdoo0 opened this issue Mar 12, 2020 · 16 comments
Closed

Regression Test #412

abdoo0 opened this issue Mar 12, 2020 · 16 comments
Assignees

Comments

@abdoo0
Copy link

abdoo0 commented Mar 12, 2020

Hello,

I have followed the procedure given in https://openfast.readthedocs.io/en/master/source/testing/regression_test_windows.html . I have built OpenFast using visual studio 2019 and I have the 3 Discon files in place. Nevertheless, when I use python 3 to run the following command "python manualRegressionTest.py ..\build\bin\openfast_x64_Double.exe Windows Intel 1e-5" , all tests fail.
Capture1
image
I would be thankful for your help.

kind regards,
Abdoo

@rafmudaf
Copy link
Collaborator

Run a single test with verbose output to get more information on the error:

ctest -V -R AWT_YFix_WSt

Do you have numpy installed?

@rafmudaf rafmudaf self-assigned this Mar 12, 2020
@abdoo0
Copy link
Author

abdoo0 commented Mar 12, 2020

I do have numpy installed
How do I run a single test with verbose output?

@rafmudaf
Copy link
Collaborator

Oh with the Python script you can also add a verbose flag, -v, and select a case with -case AWT_YFix_WSt.

The full syntax is available with -h. Check out this section of the documentation: https://openfast.readthedocs.io/en/master/source/testing/regression_test.html#python-driver

@abdoo0
Copy link
Author

abdoo0 commented Mar 12, 2020

image
This is what i get ?

@andrew-platt
Copy link
Collaborator

andrew-platt commented Mar 12, 2020

have you successfully compiled OpenFAST. what does make openfast give?

@rafmudaf
Copy link
Collaborator

Or the executable doesn't exist at that location that you passed to the script.

@abdoo0
Copy link
Author

abdoo0 commented Mar 12, 2020

The input Files are copied to a folder called reg_tests inside the build folder where the executable are

@abdoo0
Copy link
Author

abdoo0 commented Mar 12, 2020

image

@rafmudaf
Copy link
Collaborator

Nice - you've located the folder containing the binaries. Now match what you've shown here to the command you used to run the tests.

@rafmudaf
Copy link
Collaborator

@abdoo0 can you update?

@abdoo0
Copy link
Author

abdoo0 commented Mar 14, 2020

I am really sorry I couldn't get back to you any earlier, Please accept my apologies for that.
I tried doing what you told without any luck (It's probably because I didn't understand probably what should I do).
I did change the working directory to "openfast\reg_tests"
and pasted the following to my python configured cmd " python manualRegressionTest.py ..\build\bin\openfast_x64_Double.exe Windows Intel 1e-5" still I do get that output

@rafmudaf
Copy link
Collaborator

You're giving the program, manualRegressionTest.py, an incorrect path to the OpenFAST binary on your system. The command you have above is copied directly from the documentation without modifying it for your use case. Specifically, your binary isn't called openfast_x64_Double.exe, its called openfast_x64.exe as shown in your screen shot of the bin directory. This is because you've compiled with single precision instead of double precision. So, reformulate the command you're using and think about the information you should pass to the Python script.

@abdoo0
Copy link
Author

abdoo0 commented Mar 15, 2020

Got it, Thanks a lot for your kindness and patience !!

@abdoo0
Copy link
Author

abdoo0 commented Mar 15, 2020

I rebuilt the solution as double and it worked but some tests still fails for some reason
image

@rafmudaf
Copy link
Collaborator

The Python script doesn't run the Linear test cases, so those are marked "fail" but they actually didn't run. Otherwise, it's not unusual to have a couple or three failing cases. Differences in compile settings, machine type, and compiler version will cause that. If you're interested, you could turn on plotting in the regression test script and visualize the results. See #335 (comment) for info on that.

@abdoo0
Copy link
Author

abdoo0 commented Mar 16, 2020

Alright, Thanks again !

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants