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

OpenFAST Errors occur after installation #566

Closed
Wichuda-m opened this issue Oct 13, 2020 · 36 comments
Closed

OpenFAST Errors occur after installation #566

Wichuda-m opened this issue Oct 13, 2020 · 36 comments
Assignees

Comments

@Wichuda-m
Copy link

Hi everyone, I'm very new user of OpenFAST and a first year doctoral student.
I've just finished installation as https://openfast.readthedocs.io/en/master/source/install/install_vs_windows.html

every thing work well until 2.2.3.1.2. Compiling OpenFAST, N.6 build> build solution I got 33 errors and 14 warnings.
My programming skills is very low so that I need your help. Thank you very much

image

Severity Code Description Project File Line Suppression State
Error error #6683: A kind type parameter must be a compile-time constant. [INTKI] C:\Users\wichu\code\openfast\glue-codes\openfast\src\FAST_Prog.f90 47
Error Compilation Aborted (code 1) C:\Users\wichu\code\openfast\glue-codes\openfast\src\FAST_Prog.f90 1
Error error #7002: Error in opening the compiled module file. Check INCLUDE paths. [FAST_SUBS] C:\Users\wichu\code\openfast\glue-codes\openfast\src\FAST_Prog.f90 34
Error error #6592: This symbol must be a defined parameter, an enumerator, or an argument of an inquiry function that evaluates to a compile-time constant. [DBKI] C:\Users\wichu\code\openfast\glue-codes\openfast\src\FAST_Prog.f90 39
Error error #6975: A kind-param must be a digit-string or a scalar-int-constant-name. [DBKI] C:\Users\wichu\code\openfast\glue-codes\openfast\src\FAST_Prog.f90 39
Error error #6683: A kind type parameter must be a compile-time constant. [DBKI] C:\Users\wichu\code\openfast\glue-codes\openfast\src\FAST_Prog.f90 39
Error error #6683: A kind type parameter must be a compile-time constant. [INTKI] C:\Users\wichu\code\openfast\glue-codes\openfast\src\FAST_Prog.f90 40
Error error #6457: This derived type name has not been declared. [FAST_TURBINETYPE] C:\Users\wichu\code\openfast\glue-codes\openfast\src\FAST_Prog.f90 43
Error error #6683: A kind type parameter must be a compile-time constant. [INTKI] C:\Users\wichu\code\openfast\glue-codes\openfast\src\FAST_Prog.f90 45
Error error #6683: A kind type parameter must be a compile-time constant. [INTKI] C:\Users\wichu\code\openfast\glue-codes\openfast\src\FAST_Prog.f90 46
Error error #6683: A kind type parameter must be a compile-time constant. [INTKI] C:\Users\wichu\code\openfast\glue-codes\openfast\src\FAST_Prog.f90 54
Error error #6404: This name does not have a type, and must have an explicit type. [PROGNAME] C:\Users\wichu\code\openfast\glue-codes\openfast\src\FAST_Prog.f90 61
Error error #6632: Keyword arguments are invalid without an explicit interface. [ARG2] C:\Users\wichu\code\openfast\glue-codes\openfast\src\FAST_Prog.f90 65
Error error #6632: Keyword arguments are invalid without an explicit interface. [FLAG] C:\Users\wichu\code\openfast\glue-codes\openfast\src\FAST_Prog.f90 65
Error error #6404: This name does not have a type, and must have an explicit type. [TURBINE] C:\Users\wichu\code\openfast\glue-codes\openfast\src\FAST_Prog.f90 68
Error error #6632: Keyword arguments are invalid without an explicit interface. [SKIPRUNTIMEMSG] C:\Users\wichu\code\openfast\glue-codes\openfast\src\FAST_Prog.f90 77
Error error #6404: This name does not have a type, and must have an explicit type. [ERRID_NONE] C:\Users\wichu\code\openfast\glue-codes\openfast\src\FAST_Prog.f90 77
Error error #6363: The intrinsic data types of the arguments must be the same. [MOD] C:\Users\wichu\code\openfast\glue-codes\openfast\src\FAST_Prog.f90 128
Error error #6460: This is not a field name that is defined in the encompassing structure. [FOUNDSTEADY] C:\Users\wichu\code\openfast\glue-codes\openfast\src\FAST_Prog.f90 128
Error error #6362: The data types of the argument(s) are invalid. [TRIM] C:\Users\wichu\code\openfast\glue-codes\openfast\src\FAST_Prog.f90 129
Error error #6362: The data types of the argument(s) are invalid. [TRIM] C:\Users\wichu\code\openfast\glue-codes\openfast\src\FAST_Prog.f90 129
Error error #6404: This name does not have a type, and must have an explicit type. [NUM2LSTR] C:\Users\wichu\code\openfast\glue-codes\openfast\src\FAST_Prog.f90 129
Error error #6404: This name does not have a type, and must have an explicit type. [ABORTERRLEV] C:\Users\wichu\code\openfast\glue-codes\openfast\src\FAST_Prog.f90 132
Error error #6404: This name does not have a type, and must have an explicit type. [ERRID_SEVERE] C:\Users\wichu\code\openfast\glue-codes\openfast\src\FAST_Prog.f90 132
Error error #6363: The intrinsic data types of the arguments must be the same. [MIN] C:\Users\wichu\code\openfast\glue-codes\openfast\src\FAST_Prog.f90 133
Error error #6054: A CHARACTER data type is required in this context. [NEWLINE] C:\Users\wichu\code\openfast\glue-codes\openfast\src\FAST_Prog.f90 134
Error error #6404: This name does not have a type, and must have an explicit type. [NEWLINE] C:\Users\wichu\code\openfast\glue-codes\openfast\src\FAST_Prog.f90 134
Error error #6341: A logical data type is required in this context. [FOUNDSTEADY] C:\Users\wichu\code\openfast\glue-codes\openfast\src\FAST_Prog.f90 152
Error error #6404: This name does not have a type, and must have an explicit type. [ERRID_FATAL] C:\Users\wichu\code\openfast\glue-codes\openfast\src\FAST_Prog.f90 159
Error error #6683: A kind type parameter must be a compile-time constant. [INTKI] C:\Users\wichu\code\openfast\glue-codes\openfast\src\FAST_Prog.f90 179
Error error #6683: A kind type parameter must be a compile-time constant. [INTKI] C:\Users\wichu\code\openfast\glue-codes\openfast\src\FAST_Prog.f90 184
Error Error running FAST Registry for IceFloe. C:\Users\wichu\code\openfast\modules\icefloe\src\interfaces\FAST\IceFloe_FASTRegistry.inp 1
Error error PRJ0019: A tool returned an error code from "Running Registry for IceFloe" Project
Warning warning #8586: Implicit type is given to allow out-of-order declaration. Non-standard extension. [DBKI] C:\Users\wichu\code\openfast\glue-codes\openfast\src\FAST_Prog.f90 39
Warning warning #8586: Implicit type is given to allow out-of-order declaration. Non-standard extension. [ERRMSGLEN] C:\Users\wichu\code\openfast\glue-codes\openfast\src\FAST_Prog.f90 48
Warning warning #6187: Fortran 2003 requires an INTEGER data type in this context. C:\Users\wichu\code\openfast\glue-codes\openfast\src\FAST_Prog.f90 48
Warning warning #6931: Fortran 2003 does not allow this assignment statement. ['OpenFAST'] C:\Users\wichu\code\openfast\glue-codes\openfast\src\FAST_Prog.f90 61
Warning warning #6187: Fortran 2003 requires an INTEGER data type in this context. [N_TMAX_M1] C:\Users\wichu\code\openfast\glue-codes\openfast\src\FAST_Prog.f90 122
Warning warning #6188: Fortran 2003 requires a LOGICAL data type in this context. C:\Users\wichu\code\openfast\glue-codes\openfast\src\FAST_Prog.f90 128
Warning warning #6188: Fortran 2003 requires a LOGICAL data type in this context. C:\Users\wichu\code\openfast\glue-codes\openfast\src\FAST_Prog.f90 128
Warning warning #6192: Fortran 2003 does not allow this data type conversion. C:\Users\wichu\code\openfast\glue-codes\openfast\src\FAST_Prog.f90 128
Warning warning #6188: Fortran 2003 requires a LOGICAL data type in this context. [FOUNDSTEADY] C:\Users\wichu\code\openfast\glue-codes\openfast\src\FAST_Prog.f90 128
Warning warning #6188: Fortran 2003 requires a LOGICAL data type in this context. [FOUNDSTEADY] C:\Users\wichu\code\openfast\glue-codes\openfast\src\FAST_Prog.f90 152
Warning warning #6188: Fortran 2003 requires a LOGICAL data type in this context. C:\Users\wichu\code\openfast\glue-codes\openfast\src\FAST_Prog.f90 158
Warning warning #6188: Fortran 2003 requires a LOGICAL data type in this context. [FOUNDSTEADY] C:\Users\wichu\code\openfast\glue-codes\openfast\src\FAST_Prog.f90 158
Warning warning #6188: Fortran 2003 requires a LOGICAL data type in this context. C:\Users\wichu\code\openfast\glue-codes\openfast\src\FAST_Prog.f90 158
Warning warning #6188: Fortran 2003 requires a LOGICAL data type in this context. [CALCSTEADY] C:\Users\wichu\code\openfast\glue-codes\openfast\src\FAST_Prog.f90 158

@Wichuda-m
Copy link
Author

then after reading other issues, I try to solve and still got 8 errors and 39 warnings

image

Severity Code Description Project File Line Suppression State
Warning warning #7410: Fortran 2003 does not allow this keyword. [CONVERT] C:\Users\wichu\code\openfast\modules\aerodyn\src\FVW_VTK.f90 99
Error error #11018: Cannot open mkl_sequential ipo
Error error #11023: Not all components required for linking are present on command line ipo
Error error #11018: Cannot open C:\Users\wichu\code\openfast\build\bin\FASTlib_x64.lib ipo
Error error #11018: Cannot open mkl_core ipo
Error error #11018: Cannot open mkl_intel_lp64 ipo
Error fatal error LNK1181: cannot open input file 'C:\Users\wichu\code\openfast\build\bin\FASTlib_x64.lib' LINK
Error fatal error LNK1181: cannot open input file '....\build\bin\MAP_x64.lib' LINK
Warning warning #7416: Fortran 2003 does not allow this intrinsic procedure. [NORM2] C:\Users\wichu\code\openfast\modules\aerodyn\src\FVW_Wings.f90 93
Warning warning #7416: Fortran 2003 does not allow this intrinsic procedure. [NORM2] C:\Users\wichu\code\openfast\modules\aerodyn\src\FVW_Wings.f90 179
Warning warning #7416: Fortran 2003 does not allow this intrinsic procedure. [NORM2] C:\Users\wichu\code\openfast\modules\aerodyn\src\FVW_Wings.f90 180
Warning warning #7416: Fortran 2003 does not allow this intrinsic procedure. [NORM2] C:\Users\wichu\code\openfast\modules\aerodyn\src\FVW_Wings.f90 184
Warning warning #7416: Fortran 2003 does not allow this intrinsic procedure. [NORM2] C:\Users\wichu\code\openfast\modules\aerodyn\src\FVW_Wings.f90 186
Warning warning #7416: Fortran 2003 does not allow this intrinsic procedure. [NORM2] C:\Users\wichu\code\openfast\modules\aerodyn\src\FVW_Wings.f90 468
Warning warning #7416: Fortran 2003 does not allow this intrinsic procedure. [NORM2] C:\Users\wichu\code\openfast\modules\aerodyn\src\FVW_Wings.f90 471
Warning warning #7416: Fortran 2003 does not allow this intrinsic procedure. [NORM2] C:\Users\wichu\code\openfast\modules\aerodyn\src\FVW_Wings.f90 472
Warning warning #5112: Extension to FORTRAN-90: tab formatting C:\Users\wichu\code\openfast\modules\hydrodyn\src\Waves.f90 142
Warning warning #7416: Fortran 2003 does not allow this intrinsic procedure. [ERF] C:\Users\wichu\code\openfast\modules\nwtc-library\src\SysIVF.f90 126
Warning warning #7416: Fortran 2003 does not allow this intrinsic procedure. [ERF] C:\Users\wichu\code\openfast\modules\nwtc-library\src\SysIVF.f90 136
Warning warning #7416: Fortran 2003 does not allow this intrinsic procedure. [ERF] C:\Users\wichu\code\openfast\modules\nwtc-library\src\SysIVF.f90 149
Warning warning #7416: Fortran 2003 does not allow this intrinsic procedure. [GAMMA] C:\Users\wichu\code\openfast\modules\nwtc-library\src\SysIVF.f90 166
Warning warning #7416: Fortran 2003 does not allow this intrinsic procedure. [GAMMA] C:\Users\wichu\code\openfast\modules\nwtc-library\src\SysIVF.f90 176
Warning warning #7416: Fortran 2003 does not allow this intrinsic procedure. [GAMMA] C:\Users\wichu\code\openfast\modules\nwtc-library\src\SysIVF.f90 186
Warning warning #7410: Fortran 2003 does not allow this keyword. [DIRECTORY] C:\Users\wichu\code\openfast\modules\nwtc-library\src\SysIVF.f90 228
Warning warning #7410: Fortran 2003 does not allow this keyword. [CARRIAGECONTROL] C:\Users\wichu\code\openfast\modules\nwtc-library\src\SysIVF.f90 242
Warning warning #7410: Fortran 2003 does not allow this keyword. [CONVERT] C:\Users\wichu\code\openfast\modules\nwtc-library\src\SysIVF.f90 267
Warning warning #7416: Fortran 2003 does not allow this intrinsic procedure. [EXIT] C:\Users\wichu\code\openfast\modules\nwtc-library\src\SysIVF.f90 284
Warning warning #7025: This directive is not standard F2003. C:\Users\wichu\code\openfast\modules\orcaflex-interface\src\OrcaFlexInterface.F90 114
Warning warning #7025: This directive is not standard F2003. C:\Users\wichu\code\openfast\modules\orcaflex-interface\src\OrcaFlexInterface.F90 127
Warning warning #7025: This directive is not standard F2003. C:\Users\wichu\code\openfast\modules\orcaflex-interface\src\OrcaFlexInterface.F90 145
Warning warning #11021: unresolved NWTC_LIBRARY_mp_NWTC_INIT ipo
Warning warning #11021: unresolved FAST_SUBS_mp_FAST_RESTOREFROMCHECKPOINT_TARY ipo
Warning warning #11021: unresolved FAST_SUBS_mp_FAST_SOLUTION0_T ipo
Warning warning #11021: unresolved NWTC_IO_mp_CHECKARGS ipo
Warning warning #11021: unresolved FAST_SUBS_mp_FAST_LINEARIZE_T ipo
Warning warning #11021: unresolved FAST_SUBS_mp_EXITTHISPROGRAM_T ipo
Warning warning #11021: unresolved NWTC_IO_mp_INT2LSTR ipo
Warning warning #11021: unresolved NWTC_BASE_mp_ABORTERRLEV ipo
Warning warning #11021: unresolved FAST_SUBS_mp_FAST_RESTOREFORVTKMODESHAPE_TARY ipo
Warning warning #11021: unresolved FAST_SUBS_mp_FAST_CREATECHECKPOINT_TARY ipo
Warning warning #11021: unresolved NWTC_IO_mp_PROGNAME ipo
Warning warning #11021: unresolved FAST_SUBS_mp_FAST_SOLUTION_T ipo
Warning warning #11021: unresolved FAST_SUBS_mp_FAST_INITIALIZEALL_T ipo
Warning warning #11021: unresolved NWTC_IO_mp_NORMSTOP ipo
Warning warning #11021: unresolved NWTC_IO_mp_WRSCR ipo
Warning warning #11021: unresolved NWTC_IO_mp_R2LSTR8 ipo
Error MSB8036 The Windows SDK version 8.1 was not found. Install the required version of Windows SDK or change the SDK version in the project property pages or by right-clicking the solution and selecting "Retarget solution". MAP_dll C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\MSBuild\Microsoft\VC\v160\Microsoft.Cpp.WindowsSDK.targets 46

@Wichuda-m
Copy link
Author

image

@Wichuda-m
Copy link
Author

Now I've stuck as above 5 errors and 39 warnings, no openfast_x64 on bin folder.

image

@bartoszstachowicz
Copy link

bartoszstachowicz commented Oct 13, 2020

Hi,
It's always like this when installing, errors just pop up all the time, don't get discouraged :)
I always start from the top because sometimes errors disappear in blocks once you solve the first thing.
In your case it seems like you're missing the maths kernel library from Intel (mkl), which is part of Parallel Studio XE package
If you're a student you'll be able to download it from Intel website after providing your Uni email. Otherwise, it'd be payable I think.
Check here:
https://software.intel.com/content/www/us/en/develop/tools/compilers/fortran-compilers/choose-download.html
I managed to compile with installing only a couple of the software from that package, they're quite bulky, so depending on your storage. I think I chose C++ and Fortran Compiler, the MKL, the performace thing, and MPI. but you might have to install more, i'm not sure, it's been a while. In your case maybe Visual Fortran is also interesting but I don't know(I'm using Linux.

Once you have them, give it a try again with compiling FAST

Good luck!

Oh, also on Linux, once you install these packages you have to feed their path to the compiler, it's described on Intel page

@rafmudaf
Copy link
Collaborator

@Wichuda-m Is it a requirement that you need to compile OpenFAST yourself? If not, you can simply download binaries for Windows or install with conda on Linux (i.e. using the Window's Subsystem for Linux - WSL). See the download section of the docs.

@Wichuda-m
Copy link
Author

Thank you every one, actually I use macOS but seems Windows is easier to build OpenFAST, so I try to install it on Bootcamp (I might have misunderstanding). I'll try to fix it as your suggestions ^^

@rafmudaf
Copy link
Collaborator

I use macOS but seems Windows is easier to build OpenFAST

This is exactly opposite: with CMake, it is much easier to compile OpenFAST for Linux and macOS using completely open-source and free libraries.

Since you're using macOS, I suggest installing Homebrew as a package manager and then install CMake and gcc (this includes gfortran). After that, follow this section of the installation instructions.

Finally, I'll point out again that if you are not making code changes to OpenFAST, there is no need to compile the software prior to using it. The version available through conda (macOS and Linux) or the release page (Windows) correspond to the latest "master" branch.

@rafmudaf rafmudaf self-assigned this Oct 14, 2020
@Wichuda-m
Copy link
Author

Screen Shot 2020-10-14 at 13 54 27

I finally finished installation, now trying to use it.
waiting for your suggestions ^^

@Wichuda-m
Copy link
Author

Screen Shot 2020-10-14 at 14 37 20

seems my folder (r-test) is empty, I might miss something. What should I do next? thank you

@Wichuda-m
Copy link
Author

Wichuda-m commented Oct 14, 2020

Screen Shot 2020-10-14 at 17 53 19

I'm here got errors while running CTest (my programming skills = 0) thank you for your help @rafmudaf

@bartoszstachowicz
Copy link

bartoszstachowicz commented Oct 14, 2020

Almost there!

It looks like your test files are missing
Are you sure you typed the --recursive flag?
also, these commands:

git checkout dev
git submodule update

they change your branch to developers, where there are some more functionalities but I'm not sure the testing suite is included, just skip them
also, make sure to build with testing -DBUILD_TESTING=ON

If you think you've compiled the OpenFAST part all right and the test is messed up, try going into one of the test simulations folder directly and run FAST on the ROOTNAME.fst file
like this:

path/to/openfast/executable/executable.file ROOTNAME.fst &>log

Also remember to compile the controllers!

good luck!

@Wichuda-m
Copy link
Author

@bartoszstachowicz thank you ^^

I did type --recursive but didn't work so I type "git submodule update --init --recursive"

https://openfast.readthedocs.io/en/master/source/testing/index.html

now I accidentally close terminal where I used installing OpenFAST, finding way to reopen again, any suggestion?

@bartoszstachowicz
Copy link

GOt zoom? I could give it a go if you want

write me an email if so,

otherwise if you won't need to modify the code, maybe @rafmudaf is right and it's worth a try installing with conda

I installed some other software with it and it works pretty well, up to you

good luck

@Wichuda-m
Copy link
Author

@bartoszstachowicz thank you , I don't want to modify code now ( my skill is zero) should I try to install wth conda next? I don't download it yet.

@bartoszstachowicz
Copy link

well, it could be easier,

install miniconda and try to fire this package from here, I think:

https://anaconda.org/conda-forge/openfast

@Wichuda-m
Copy link
Author

I've stuck here, (wanna cry)

Screen Shot 2020-10-14 at 20 00 12

@bartoszstachowicz
Copy link

bartoszstachowicz commented Oct 14, 2020

Try following your command with this:

conda install -c conda-forge openfast >> ~/Desktop/log. txt

it should output a log file to desktop

and then see if you can identify these conflicts there, there should be info on missing packages and such

@Wichuda-m
Copy link
Author

I let it runs until finished, here

Screen Shot 2020-10-14 at 21 21 18

@Xiangheng-Feng
Copy link

hello, all
According the guide documentation, I successfully recompile the FAST_SFunc and OpenFAST-Simulink and MAP and put them into the file which .fst exists. But I met a error when I tried to simulate the OpenLoop.m in the matlab/simulink. The error are showed below, is there anyone who knows how to fix this problem?

1602682782(1)

Error reported by S-function 'FAST_SFunc' in 'OpenLoop/FAST Nonlinear Wind Turbine/S-Function':
FAST_InitializeAll:FAST_Init:FAST_ReadPrimaryFile:Invalid logical input for file "E:\OPENFAST\r-test\SIMULINK\5MW_OC4Semi_WSt_WavesWN\5MW_OC4Semi_WSt_WavesWN.fst" occurred while trying to read CalcSteady.
FAST_ReadPrimaryFile:Invalid numerical input for file "E:\OPENFAST\r-test\SIMULINK\5MW_OC4Semi_WSt_WavesWN\5MW_OC4Semi_WSt_WavesWN.fst" occurred while trying to read Twr_Kdmp.
FAST_ReadPrimaryFile:Invalid numerical input for file "E:\OPENFAST\r-test\SIMULINK\5MW_OC4Semi_WSt_WavesWN\5MW_OC4Semi_WSt_WavesWN.fst" occurred while trying to read Bld_Kdmp.

@Wichuda-m
Copy link
Author

Wichuda-m commented Oct 14, 2020

@Xiangheng-Feng waiting for @rafmudaf and @bartoszstachowicz for answers

For me, here struggling and waiting for their help either ^^

Screen Shot 2020-10-14 at 22 42 09

Screen Shot 2020-10-14 at 22 42 28

@bartoszstachowicz
Copy link

:D
I'd like to help but the logs you're posting are incomplete I think, You'd have to scroll up and take another screenshot or just attach a log file as I asked...
otherwise install zoom and send me a link here: stachstach@hotmail.co.uk I'll try to have a look

@rafmudaf
Copy link
Collaborator

@bartoszstachowicz thank you for taking the time to respond with helpful comments.

@Wichuda-m I'm not sure why there would be conflicting dependencies in conda, but one thing to consider is that you should generally create a new conda environment for each distinct project. This is not specific to OpenFAST, but just general best practice with conda. So you should try something like this:

conda create -n openfast
conda install openfast -c conda-forge
which openfast

@Wichuda-m
Copy link
Author

Wichuda-m commented Oct 14, 2020

Hi! @rafmudaf thank you, not sure if this succeed?

(base) wichudamunbua@MacBook-Pro-khxng-Wichuda ~ % conda update -n base -c defaults conda
Collecting package metadata (current_repodata.json): done
Solving environment: done

Package Plan

environment location: /Users/wichudamunbua/opt/anaconda3

added / updated specs:
- conda

The following packages will be downloaded:

package                    |            build
---------------------------|-----------------
conda-4.8.5                |           py38_0         2.8 MB
------------------------------------------------------------
                                       Total:         2.8 MB

The following packages will be UPDATED:

conda 4.8.3-py38_0 --> 4.8.5-py38_0

Proceed ([y]/n)? y

Downloading and Extracting Packages
conda-4.8.5 | 2.8 MB | ############################################################## | 100%
Preparing transaction: done
Verifying transaction: done
Executing transaction: done
(base) wichudamunbua@MacBook-Pro-khxng-Wichuda ~ % conda create -n openfast
WARNING: A conda environment already exists at '/Users/wichudamunbua/opt/anaconda3/envs/openfast'
Remove existing environment (y/[n])? y

Collecting package metadata (current_repodata.json): done
Solving environment: done

Package Plan

environment location: /Users/wichudamunbua/opt/anaconda3/envs/openfast

Proceed ([y]/n)? y

Preparing transaction: done
Verifying transaction: done
Executing transaction: done

To activate this environment, use

$ conda activate openfast

To deactivate an active environment, use

$ conda deactivate

(base) wichudamunbua@MacBook-Pro-khxng-Wichuda ~ % conda activate openfast
(openfast) wichudamunbua@MacBook-Pro-khxng-Wichuda ~ % conda install openfast -c conda-forge
Collecting package metadata (current_repodata.json): done
Solving environment: done

Package Plan

environment location: /Users/wichudamunbua/opt/anaconda3/envs/openfast

added / updated specs:
- openfast

The following packages will be downloaded:

package                    |            build
---------------------------|-----------------
libblas-3.8.0              |      17_openblas          11 KB  conda-forge
libcxx-10.0.1              |       h5f48129_0         1.0 MB  conda-forge
libgfortran-5.0.0          |      h7cc5361_12          18 KB  conda-forge
libgfortran5-9.3.0         |      h7cc5361_12         1.7 MB  conda-forge
liblapack-3.8.0            |      17_openblas          11 KB  conda-forge
libopenblas-0.3.10         |openmp_h54245bb_5         8.3 MB  conda-forge
llvm-openmp-11.0.0         |       h73239a0_1         268 KB  conda-forge
openfast-2.4.0             |       h918f95b_1        34.4 MB  conda-forge
------------------------------------------------------------
                                       Total:        45.7 MB

The following NEW packages will be INSTALLED:

libblas conda-forge/osx-64::libblas-3.8.0-17_openblas
libcxx conda-forge/osx-64::libcxx-10.0.1-h5f48129_0
libgfortran conda-forge/osx-64::libgfortran-5.0.0-h7cc5361_12
libgfortran5 conda-forge/osx-64::libgfortran5-9.3.0-h7cc5361_12
liblapack conda-forge/osx-64::liblapack-3.8.0-17_openblas
libopenblas conda-forge/osx-64::libopenblas-0.3.10-openmp_h54245bb_5
llvm-openmp conda-forge/osx-64::llvm-openmp-11.0.0-h73239a0_1
openfast conda-forge/osx-64::openfast-2.4.0-h918f95b_1

Proceed ([y]/n)? y

Downloading and Extracting Packages
libgfortran5-9.3.0 | 1.7 MB | ############################################################## | 100%
libgfortran-5.0.0 | 18 KB | ############################################################## | 100%
liblapack-3.8.0 | 11 KB | ############################################################## | 100%
llvm-openmp-11.0.0 | 268 KB | ############################################################## | 100%
libblas-3.8.0 | 11 KB | ############################################################## | 100%
libcxx-10.0.1 | 1.0 MB | ############################################################## | 100%
libopenblas-0.3.10 | 8.3 MB | ############################################################## | 100%
openfast-2.4.0 | 34.4 MB | ############################################################## | 100%
Preparing transaction: done
Verifying transaction: done
Executing transaction: done
(openfast) wichudamunbua@MacBook-Pro-khxng-Wichuda ~ % which openfast
/Users/wichudamunbua/opt/anaconda3/envs/openfast/bin/openfast
(openfast) wichudamunbua@MacBook-Pro-khxng-Wichuda ~ %

@rafmudaf
Copy link
Collaborator

That's it, you have now installed OpenFAST.
Try running openfast -v and openfast -h.

@Wichuda-m
Copy link
Author

Thank you very much @rafmudaf

how about errors while running CTest? I got 42 errors

@rafmudaf
Copy link
Collaborator

Like @bartoszstachowicz mentioned, it looks like your output here is somewhat incomplete so its hard to determine the state of your repository. I suggest starting over cloning OpenFAST or r-test and follow the documentation here: https://openfast.readthedocs.io/en/master/source/testing/regression_test.html#python-driver.

@rafmudaf
Copy link
Collaborator

If you think you've compiled the OpenFAST part all right and the test is messed up, try going into one of the test simulations folder directly and run FAST on the ROOTNAME.fst file

This part of #566 (comment) is key here. You can simply download the test cases and run a single test. If you aren't making changes to OpenFAST, don't worry about the result of the tests. At this point, you only need to verify that the test cases run, not whether the output is exactly the same (though it really should be). Try running the AWT or AOC cases.

@Wichuda-m
Copy link
Author

Here, I've run openfast -v and openfast -h. Now try to solve running test

Screen Shot 2020-10-15 at 16 43 25

Screen Shot 2020-10-15 at 16 44 34

@bartoszstachowicz
Copy link

bartoszstachowicz commented Oct 15, 2020 via email

@Wichuda-m
Copy link
Author

@bartoszstachowicz thank you ^^

Now I'm trying to figure out errors from running test

@Wichuda-m
Copy link
Author

@bartoszstachowicz I'd like to say thank you very very much for your generously help today, thank you ^^

@bartoszstachowicz
Copy link

bartoszstachowicz commented Oct 15, 2020 via email

@bartoszstachowicz
Copy link

bartoszstachowicz commented Nov 30, 2020 via email

@klitz06
Copy link

klitz06 commented Mar 4, 2021

@bartoszstachowicz thank you for taking the time to respond with helpful comments.

@Wichuda-m I'm not sure why there would be conflicting dependencies in conda, but one thing to consider is that you should generally create a new conda environment for each distinct project. This is not specific to OpenFAST, but just general best practice with conda. So you should try something like this:

conda create -n openfast
conda install openfast -c conda-forge
which openfast

How do I use simulink with conda installation? I am able to simulate my own design but I would like to use pitch controller from simulink. I've been looking through github but other than compiling with VS I didn't find how can I use it with conda installation.

@rafmudaf
Copy link
Collaborator

rafmudaf commented Mar 4, 2021

Simulink integration is not yet supported with the Conda installation.

@klitz06
Copy link

klitz06 commented Mar 4, 2021

I understand thank you. I will try and compile with VS.

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

5 participants