-
Notifications
You must be signed in to change notification settings - Fork 446
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
Segmentation fault for SIMULINK version in linux #730
Comments
Which model are you testing with? |
I modified the "Run_OpenLoop.m" to run the 5MW_Land_BD_Linear turbine. |
Did the original "Run_OpenLoop.m" also experience a segmentation fault? |
With the AOC_Wst turbine, I get a weird error shown below. %%%%%%%%%%%%%%%%%%% |
the format of the ServoDyn input file has changed between v2.5.0 and what is currently in the dev branch. The |
I checked out the 'dev' (e0a73e19) branch of the r-test submodule. I get the following error for AOC_Wst but I get an error instead of segmentation fault for 5MW_Land_BD_Linear |
I had also tried running the simulations for 'main' branches and got errors as well. |
Since your error message states |
The OpenFAST output says: %%%%%%%%%%%%%%%%%%%%%%%
|
commit b913c94 is on the main branch from 4 months ago. Can you recompile your currently checked out version and rerun the create_FAST_SFunc.m script? I would expect to see the git hash ending in |
Just to make sure, when you say recompile, you mean I should run the following commands (with the current checked out version)
|
Yes. First though, delete everything in the build directory ( You may also want to get the recent tags (git doesn't grab them by default for some reason): |
Alright, will do. |
The segmentation fault could be due to a conflict in LAPACK libraries between Matlab and OpenFAST. I'd recommend looking at #482 (particularly the last comments on that issue) to see if that helps. |
One other thought that @rafmudaf brought up is to check the install path. In the |
The which is same as what I am using in
|
@andrew-platt
I get the following output in matlab
and the same error |
I'm surprised the version info didn't change. What does |
Also, can you do |
Also, note that the compile date says |
Ah, Nice catch. The output is
I guess it is prioritizing older version of OpenFAST which have on my system with higher priority path. Is there an easy way to remove the OpenFAST in /usr/local? or should I just remove all the OpenFAST files from /usr folder? I will try to run the correct version of OpenFAST meanwhile to ensure that no segmentation fault occurs. |
There's no catch-all, but you can do these things:
|
Thank you all for the help. I got the simulation working although I had some more trouble with LAPACK libraries. My understanding after some reading on the issue is that OpenBLAS includes 'LAPACK' library but not 'LAPACKE' which is needed for OpenFAST. This can be fixed with
and then running the following (in a new terminal to avoid any mixup)
Hope this helps someone. |
For our reference, what was the LAPACK error you found and fixed by installing LAPACKE? |
If I use the following options
I get the following error (which was fixed by using LAPACKE) %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% |
Got it, thanks. |
Bug description
Cannot run the simulink version of OpenFAST due to segmentation fault. The s-function compiles without any issues.
This behavior exists in both main(718d46f) and dev(216bccb) branches.
I am showing the results from the dev brach as the main branch has an bug where simulink errors are not reported.
System Details
Linux Mint 20.1, MATLAB 2020b, openblas, gcc and gfortran
To Reproduce
Following options were used ()
Screenshots, if applicable
The crash report is attached
OpenFAST Version
dev(216bccb)
matlab_crash_dump.txt
The text was updated successfully, but these errors were encountered: