Skip to content

Update the directory of generated DLL files #1325

@liruiqi97

Description

@liruiqi97

Bug description
I installed OpenFAST on my MacBook with cmake commands. The installation was successful, but some issues happened with the Regression Test.
When running the regression tests, almost all those 5MW tests were failed on my computer. The reason of the failure was that the project could not find DISCON.dll, DISCON_ITIBarge.dll, DISCON_OC3Hywind.dll in correct folders. Those DLL files were generated somewhere in the openfast/build folder. After I moved those DLL files properly, those tests became passed.

The original location of those files were
openfast/build/reg_tests/glue-codes/openfast/5MW_Baseline/ServoData/DISCON/build/DISCON.dll
openfast/build/reg_tests/glue-codes/openfast/5MW_Baseline/ServoData/DISCON_ITI/build/DISCON_ITIBarge.dll
openfast/build/reg_tests/glue-codes/openfast/5MW_Baseline/ServoData/DISCON_OC3/build/DISCON_OC3Hywind.dll
openfast/build/reg_tests/glue-codes/python/5MW_Baseline/ServoData/DISCON/build/DISCON.dll
openfast/build/reg_tests/glue-codes/python/5MW_Baseline/ServoData/DISCON_ITI/build/DISCON_ITIBarge.dll
openfast/build/reg_tests/glue-codes/python/5MW_Baseline/ServoData/DISCON_OC3/build/DISCON_OC3Hywind.dll.
I moved those DLL files respectively into the following locations, and then the problem was solved.
openfast/build/reg_tests/glue-codes/openfast/5MW_Baseline/ServoData/DISCON.dll
openfast/build/reg_tests/glue-codes/openfast/5MW_Baseline/ServoData/DISCON_ITIBarge.dll
openfast/build/reg_tests/glue-codes/openfast/5MW_Baseline/ServoData/DISCON_OC3Hywind.dll
openfast/build/reg_tests/glue-codes/python/5MW_Baseline/ServoData/DISCON.dll
openfast/build/reg_tests/glue-codes/python/5MW_Baseline/ServoData/DISCON_ITIBarge.dll
openfast/build/reg_tests/glue-codes/python/5MW_Baseline/ServoData/DISCON_OC3Hywind.dll.

Since I solved the problem by simply moving the files, there are probably some mistakes of file linking, in the settings of the regression tests.

To Reproduce
Steps to reproduce the behavior:

  1. Download OpenFAST v3.3.0, which folder will be called openfast in the following.
    Download the unit test folder and use it to replace openfast/unit_tests/pfunit.
    Download the regression test folder and use it to replace openfast/reg_tests/r-test.
  2. Install OpenFAST through the following commands on Terminal in MacBook. (The settings may differ for other users.)
    cd openfast/build
    cmake .. -D CMAKE_Fortran_COMPILER=/usr/local/bin/gfortran-12
    cmake .. -D CMAKE_INSTALL_PREFIX=/usr/local/
    cmake .. -D BUILD_TESTING=ON
    make install
  3. Run the regression tests. Here we take a single test 5MW_Land_DLL_WTurb as an example.
    ctest -R 5MW_Land_DLL_WTurb
  4. Then, my observation was a failed result.

Screen Shot 2022-11-15 at 1 26 31 PM

The log `openfast/build/Testing/Temporary/LastTest.log` showed that

Screen Shot 2022-11-15 at 1 28 04 PM

  1. Open openfast/build/reg_tests/glue-codes/openfast/5MW_Land_DLL_WTurb/5MW_Land_DLL_WTurb.log, and this is what i saw at the end of the file.

Screen Shot 2022-11-15 at 1 24 23 PM

It says that `DISCON.dll` was not found.
  1. The issue was solved after i moved
    openfast/build/reg_tests/glue-codes/openfast/5MW_Baseline/ServoData/DISCON/build/DISCON.dll
    to
    openfast/build/reg_tests/glue-codes/openfast/5MW_Baseline/ServoData/DISCON.dll,
    as I said on top.

Expected behavior
The regression test should be passed without moving any files by users.

OpenFAST Version
OpenFAST v3.3.0

**************************************************************************************************
 OpenFAST

 Copyright (C)  National Renewable Energy Laboratory
 Copyright (C)  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-v3.3.0
 Compile Info:
  - Architecture: 64 bit
  - Precision: double
  - Date: Nov 15 2022
  - Time: 13:20:00
 Execution Info:
  - Date: 11/15/2018
  - Time: 13:22:00

System Information (please complete the following information):

  • OS: macOS 12.4
  • Compiler: GFortran 12
  • Compiler settings:

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions