Desciption
Hi, I am trying to complete the r-tests on windows. First I will describe some problems I have encountered on the way and what I did to solve them (in case it is of use to you, or if it's the cause of current issues for me). Then, what my current issue is.
Procedure
- Windows 10, MinGW compiler
git clone --single-branch --branch dev --recursive https://github.com/OpenFAST/openfast.git
- From build:
cmake .. -G "MinGW Makefiles" -DBUILD_TESTING -DBUILD_FASTFARM
make install. So far no errors.
ctest --output-on-failure. Nearly every test fails due to: "ModuleNotFoundError: No module named 'rtestlib'". I see that this library is in C:\openfast\reg_tests\lib, so I move all 5 files there to C:\openfast\reg_tests.
ctest --output-on-failure. Now, nearly all fail due to: Error: file does not exist at C:/openfast/build/glue-codes/openfast/openfast. I see from C:\openfast\build\Testing\Temporary\LastTest.log that the commands being run are of the form
"C:/Python/Python395/python3.exe" "C:/openfast/reg_tests/executeOpenfastRegressionCase.py" "AWT_YFix_WSt" "C:/openfast/build/glue-codes/openfast/openfast" "C:/openfast/reg_tests/.." "C:/openfast/build/reg_tests/glue-codes/openfast" "0.00001" "Windows" "GNU"
Apparently an .exe extension is missing from the executable file shown in bold, as adding this to the command completes with code 0. I believe the commands are decided by C:\openfast\build\reg_tests\CTestTestfile.cmake, so I enter this file and add .exe to all the executables (openfast, fast.farm, drivers).
- This seems to fix most issues, the cmd output is now:
C:\openfast\build>ctest -j4 --output-on-failure
Test project C:/openfast/build
Start 1: AWT_YFix_WSt
Start 2: AWT_WSt_StartUp_HighSpShutDown
Start 3: AWT_YFree_WSt
Start 4: AWT_YFree_WTurb
1/59 Test #1: AWT_YFix_WSt ................................. Passed 8.21 sec
Start 5: AWT_WSt_StartUpShutDown
2/59 Test #2: AWT_WSt_StartUp_HighSpShutDown ............... Passed 17.43 sec
Start 6: AOC_WSt
3/59 Test #3: AWT_YFree_WSt ................................ Passed 22.40 sec
Start 7: AOC_YFree_WTurb
4/59 Test #6: AOC_WSt ...................................... Passed 13.52 sec
Start 8: AOC_YFix_WSt
5/59 Test #5: AWT_WSt_StartUpShutDown ...................... Passed 27.80 sec
Start 9: UAE_Dnwind_YRamp_WSt
6/59 Test #8: AOC_YFix_WSt ................................. Passed 26.54 sec
Start 10: UAE_Upwind_Rigid_WRamp_PwrCurve
7/59 Test #4: AWT_YFree_WTurb .............................. Passed 65.59 sec
Start 11: WP_VSP_WTurb_PitchFail
8/59 Test #11: WP_VSP_WTurb_PitchFail ....................... Passed 16.22 sec
Start 12: WP_VSP_ECD
9/59 Test #9: UAE_Dnwind_YRamp_WSt .........................***Failed 59.72 sec
-- Using gold standard files with machine-compiler type macos-gnu
C:/openfast/build/glue-codes/openfast/openfast.exe C:/openfast/build/reg_tests/glue-codes/openfast\UAE_Dnwind_YRamp_WSt\UAE_Dnwind_YRamp_WSt.fst > C:/openfast/build/reg_tests/glue-codes/openfast\UAE_Dnwind_YRamp_WSt\UAE_Dnwind_YRamp_WSt.log
COMPLETE with code 0
Start 13: WP_VSP_WTurb
10/59 Test #10: UAE_Upwind_Rigid_WRamp_PwrCurve .............. Passed 43.87 sec
Start 14: SWRT_YFree_VS_EDG01
11/59 Test #12: WP_VSP_ECD ................................... Passed 20.34 sec
Start 15: SWRT_YFree_VS_EDC01
12/59 Test #7: AOC_YFree_WTurb .............................. Passed 91.29 sec
Start 16: SWRT_YFree_VS_WTurb
13/59 Test #13: WP_VSP_WTurb ................................. Passed 56.80 sec
Start 17: 5MW_Land_DLL_WTurb
14/59 Test #15: SWRT_YFree_VS_EDC01 .......................... Passed 88.48 sec
Start 18: 5MW_OC3Mnpl_DLL_WTurb_WavesIrr
15/59 Test #17: 5MW_Land_DLL_WTurb ........................... Passed 111.26 sec
Start 19: 5MW_OC3Trpd_DLL_WSt_WavesReg
16/59 Test #14: SWRT_YFree_VS_EDG01 .......................... Passed 175.89 sec
Start 20: 5MW_OC4Jckt_DLL_WTurb_WavesIrr_MGrowth
17/59 Test #16: SWRT_YFree_VS_WTurb ..........................***Failed 348.02 sec
-- Using gold standard files with machine-compiler type macos-gnu
C:/openfast/build/glue-codes/openfast/openfast.exe C:/openfast/build/reg_tests/glue-codes/openfast\SWRT_YFree_VS_WTurb\SWRT_YFree_VS_WTurb.fst > C:/openfast/build/reg_tests/glue-codes/openfast\SWRT_YFree_VS_WTurb\SWRT_YFree_VS_WTurb.log
COMPLETE with code 0
Start 21: 5MW_ITIBarge_DLL_WTurb_WavesIrr
18/59 Test #21: 5MW_ITIBarge_DLL_WTurb_WavesIrr .............. Passed 46.32 sec
Start 22: 5MW_TLP_DLL_WTurb_WavesIrr_WavesMulti
19/59 Test #22: 5MW_TLP_DLL_WTurb_WavesIrr_WavesMulti ........ Passed 115.95 sec
Start 23: 5MW_OC3Spar_DLL_WTurb_WavesIrr
20/59 Test #23: 5MW_OC3Spar_DLL_WTurb_WavesIrr ............... Passed 124.20 sec
Start 24: 5MW_OC4Semi_WSt_WavesWN
21/59 Test #18: 5MW_OC3Mnpl_DLL_WTurb_WavesIrr ............... Passed 752.28 sec
Start 25: 5MW_Land_BD_DLL_WTurb
22/59 Test #24: 5MW_OC4Semi_WSt_WavesWN ...................... Passed 453.28 sec
Start 26: 5MW_OC4Jckt_ExtPtfm
23/59 Test #26: 5MW_OC4Jckt_ExtPtfm .......................... Passed 42.11 sec
Start 27: HelicalWake_OLAF
24/59 Test #19: 5MW_OC3Trpd_DLL_WSt_WavesReg .................***Failed 1041.49 sec
-- Using gold standard files with machine-compiler type macos-gnu
C:/openfast/build/glue-codes/openfast/openfast.exe C:/openfast/build/reg_tests/glue-codes/openfast\5MW_OC3Trpd_DLL_WSt_WavesReg\5MW_OC3Trpd_DLL_WSt_WavesReg.fst > C:/openfast/build/reg_tests/glue-codes/openfast\5MW_OC3Trpd_DLL_WSt_WavesReg\5MW_OC3Trpd_DLL_WSt_WavesReg.log
COMPLETE with code 0
Start 28: EllipticalWing_OLAF
25/59 Test #28: EllipticalWing_OLAF .......................... Passed 1.13 sec
Start 29: StC_test_OC4Semi
26/59 Test #25: 5MW_Land_BD_DLL_WTurb ........................ Passed 380.49 sec
Start 30: IEA_LB_RWT-AeroAcoustics
27/59 Test #27: HelicalWake_OLAF ............................. Passed 85.58 sec
Start 31: WP_Stationary_Linear
28/59 Test #31: WP_Stationary_Linear ......................... Passed 2.18 sec
Start 32: Ideal_Beam_Fixed_Free_Linear
29/59 Test #32: Ideal_Beam_Fixed_Free_Linear ................. Passed 2.78 sec
Start 33: Ideal_Beam_Free_Free_Linear
30/59 Test #33: Ideal_Beam_Free_Free_Linear .................. Passed 2.47 sec
Start 34: 5MW_Land_BD_Linear
31/59 Test #30: IEA_LB_RWT-AeroAcoustics ..................... Passed 62.70 sec
Start 35: 5MW_OC4Semi_Linear
32/59 Test #34: 5MW_Land_BD_Linear ........................... Passed 64.60 sec
Start 36: TSinflow
33/59 Test #36: TSinflow .....................................***Failed 4.80 sec
-- Using gold standard files with machine-compiler type macos-gnu
C:/openfast/build/glue-codes/fast-farm/FAST.Farm.exe C:/openfast/build/reg_tests/glue-codes/fast-farm\TSinflow\TSinflow.fstf > C:/openfast/build/reg_tests/glue-codes/fast-farm\TSinflow\TSinflow.log
COMPLETE with code 3221225725
Start 37: LESinflow
34/59 Test #37: LESinflow ....................................***Failed 2.02 sec
-- Using gold standard files with machine-compiler type macos-gnu
C:/openfast/build/glue-codes/fast-farm/FAST.Farm.exe C:/openfast/build/reg_tests/glue-codes/fast-farm\LESinflow\LESinflow.fstf > C:/openfast/build/reg_tests/glue-codes/fast-farm\LESinflow\LESinflow.log
COMPLETE with code 3221225725
Start 38: ad_timeseries_shutdown
35/59 Test #38: ad_timeseries_shutdown ....................... Passed 17.38 sec
Start 39: bd_5MW_dynamic
36/59 Test #39: bd_5MW_dynamic ............................... Passed 47.20 sec
Start 40: bd_5MW_dynamic_gravity_Az00
37/59 Test #40: bd_5MW_dynamic_gravity_Az00 .................. Passed 9.72 sec
Start 41: bd_5MW_dynamic_gravity_Az90
38/59 Test #41: bd_5MW_dynamic_gravity_Az90 .................. Passed 9.79 sec
Start 42: bd_curved_beam
39/59 Test #42: bd_curved_beam ............................... Passed 0.78 sec
Start 43: bd_isotropic_rollup
40/59 Test #43: bd_isotropic_rollup .......................... Passed 1.14 sec
Start 44: bd_static_cantilever_beam
41/59 Test #44: bd_static_cantilever_beam .................... Passed 0.58 sec
Start 45: bd_static_twisted_with_k1
42/59 Test #45: bd_static_twisted_with_k1 .................... Passed 0.53 sec
Start 46: hd_OC3tripod_offshore_fixedbottom_wavesirr
43/59 Test #46: hd_OC3tripod_offshore_fixedbottom_wavesirr ... Passed 6.17 sec
Start 47: hd_5MW_ITIBarge_DLL_WTurb_WavesIrr
44/59 Test #47: hd_5MW_ITIBarge_DLL_WTurb_WavesIrr ........... Passed 1.94 sec
Start 48: hd_5MW_OC3Spar_DLL_WTurb_WavesIrr
45/59 Test #48: hd_5MW_OC3Spar_DLL_WTurb_WavesIrr ............ Passed 10.05 sec
Start 49: hd_5MW_OC4Semi_WSt_WavesWN
46/59 Test #49: hd_5MW_OC4Semi_WSt_WavesWN ................... Passed 54.81 sec
Start 50: hd_5MW_TLP_DLL_WTurb_WavesIrr_WavesMulti
47/59 Test #50: hd_5MW_TLP_DLL_WTurb_WavesIrr_WavesMulti ..... Passed 5.55 sec
Start 51: hd_TaperCylinderPitchMoment
48/59 Test #51: hd_TaperCylinderPitchMoment .................. Passed 0.44 sec
Start 52: SD_Cable_5Joints
49/59 Test #52: SD_Cable_5Joints ............................. Passed 1.61 sec
Start 53: SD_PendulumDamp
50/59 Test #53: SD_PendulumDamp .............................. Passed 1.86 sec
Start 54: SD_Rigid
51/59 Test #54: SD_Rigid ..................................... Passed 0.56 sec
Start 55: SD_SparHanging
52/59 Test #55: SD_SparHanging ............................... Passed 1.79 sec
Start 57: nwtc_library_utest
53/59 Test #57: nwtc_library_utest ...........................***Failed 0.28 sec
.At line 20 of file C:\openfast\build\unit_tests\tests\nwtc-library\NWTC_Library_test_tools.F90 (unit = 6)
Fortran runtime error: Cannot open file '/dev/null': No such file or directory
Error termination. Backtrace:
Could not print backtrace: libbacktrace could not find executable to open
#0 0xffffffff
#1 0xffffffff
#2 0xffffffff
#3 0xffffffff
#4 0xffffffff
#5 0xffffffff
#6 0xffffffff
#7 0xffffffff
#8 0xffffffff
#9 0xffffffff
#10 0xffffffff
#11 0xffffffff
#12 0xffffffff
#13 0xffffffff
#14 0xffffffff
#15 0xffffffff
#16 0xffffffff
#17 0xffffffff
#18 0xffffffff
#19 0xffffffff
#20 0xffffffff
#21 0xffffffff
#22 0xffffffff
Start 56: beamdyn_utest
54/59 Test #56: beamdyn_utest ................................ Passed 0.35 sec
Start 59: inflowwind_utest
55/59 Test #59: inflowwind_utest ............................. Passed 0.24 sec
Start 58: fvw_utest
56/59 Test #58: fvw_utest .................................... Passed 0.02 sec
57/59 Test #29: StC_test_OC4Semi ............................. Passed 460.03 sec
58/59 Test #20: 5MW_OC4Jckt_DLL_WTurb_WavesIrr_MGrowth .......***Failed 1543.17 sec
-- Using gold standard files with machine-compiler type macos-gnu
C:/openfast/build/glue-codes/openfast/openfast.exe C:/openfast/build/reg_tests/glue-codes/openfast\5MW_OC4Jckt_DLL_WTurb_WavesIrr_MGrowth\5MW_OC4Jckt_DLL_WTurb_WavesIrr_MGrowth.fst > C:/openfast/build/reg_tests/glue-codes/openfast\5MW_OC4Jckt_DLL_WTurb_WavesIrr_MGrowth\5MW_OC4Jckt_DLL_WTurb_WavesIrr_MGrowth.log
COMPLETE with code 0
59/59 Test #35: 5MW_OC4Semi_Linear ........................... Passed 1430.03 sec
88% tests passed, 7 tests failed out of 59
Label Time Summary:
aeroacoustics = 62.70 sec*proc (1 test)
aerodyn = 17.38 sec*proc (1 test)
aerodyn14 = 646.08 sec*proc (8 tests)
aerodyn15 = 5153.89 sec*proc (20 tests)
beamdyn = 520.07 sec*proc (11 tests)
bem = 17.38 sec*proc (1 test)
dynamic = 66.70 sec*proc (3 tests)
elastodyn = 5314.35 sec*proc (26 tests)
extptfm = 42.11 sec*proc (1 test)
fastfarm = 6.82 sec*proc (2 tests)
hydrodyn = 6045.68 sec*proc (15 tests)
linear = 1502.05 sec*proc (5 tests)
map = 286.47 sec*proc (3 tests)
moordyn = 913.31 sec*proc (2 tests)
offshore = 4621.48 sec*proc (18 tests)
olaf = 86.72 sec*proc (2 tests)
openfast = 7804.15 sec*proc (35 tests)
servodyn = 7605.20 sec*proc (28 tests)
static = 3.03 sec*proc (4 tests)
subdyn = 3342.75 sec*proc (7 tests)
Total Test time (real) = 2816.19 sec
The following tests FAILED:
9 - UAE_Dnwind_YRamp_WSt (Failed)
16 - SWRT_YFree_VS_WTurb (Failed)
19 - 5MW_OC3Trpd_DLL_WSt_WavesReg (Failed)
20 - 5MW_OC4Jckt_DLL_WTurb_WavesIrr_MGrowth (Failed)
36 - TSinflow (Failed)
37 - LESinflow (Failed)
57 - nwtc_library_utest (Failed)
Errors while running CTest
The issue
I'm most interested in the two FAST.Farm tests. Both
"C:/openfast/build/reg_tests/glue-codes/fast-farm\TSinflow\TSinflow.log" and
"C:/openfast/build/reg_tests/glue-codes/fast-farm\LESinflow\LESinflow.log" are empty files.
Also, if I try to run to run a FAST.Farm test manually, I get no output. See below.
I'm very grateful if someone has a good idea about what's wrong.
C:\openfast\install\bin>FAST.Farm.exe C:\openfast\reg_tests\r-test\glue-codes\fast-farm\LESinflow\LESinflow.fstf
**************************************************************************************************
FAST.Farm
Copyright (C) 2021 National Renewable Energy Laboratory
Copyright (C) 2021 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.
**************************************************************************************************
FAST.Farm-v3.0.0-49-g216d4987
Compile Info:
- Compiler: GCC version 8.1.0
- Architecture: 64 bit
- Precision: double
- OpenMP: No
- Date: Jun 30 2021
- Time: 11:53:43
Execution Info:
- Date: 06/30/2021
- Time: 13:54:22+0200
Heading of the FAST.Farm input file:
Sample FAST.Farm input file
Running AWAE.
Running WakeDynamics.
Desciption
Hi, I am trying to complete the r-tests on windows. First I will describe some problems I have encountered on the way and what I did to solve them (in case it is of use to you, or if it's the cause of current issues for me). Then, what my current issue is.
Procedure
git clone --single-branch --branch dev --recursive https://github.com/OpenFAST/openfast.gitcmake .. -G "MinGW Makefiles" -DBUILD_TESTING -DBUILD_FASTFARMmake install. So far no errors.ctest --output-on-failure. Nearly every test fails due to: "ModuleNotFoundError: No module named 'rtestlib'". I see that this library is in C:\openfast\reg_tests\lib, so I move all 5 files there to C:\openfast\reg_tests.ctest --output-on-failure. Now, nearly all fail due to:Error: file does not exist at C:/openfast/build/glue-codes/openfast/openfast. I see from C:\openfast\build\Testing\Temporary\LastTest.log that the commands being run are of the formApparently an .exe extension is missing from the executable file shown in bold, as adding this to the command completes with code 0. I believe the commands are decided by C:\openfast\build\reg_tests\CTestTestfile.cmake, so I enter this file and add .exe to all the executables (openfast, fast.farm, drivers).
The issue
I'm most interested in the two FAST.Farm tests. Both
"C:/openfast/build/reg_tests/glue-codes/fast-farm\TSinflow\TSinflow.log" and
"C:/openfast/build/reg_tests/glue-codes/fast-farm\LESinflow\LESinflow.log" are empty files.
Also, if I try to run to run a FAST.Farm test manually, I get no output. See below.
I'm very grateful if someone has a good idea about what's wrong.