# Error in executing IEA-15-240-RWT-UMaineSemi on OpenFast 3.4.1

**URL:** <https://forums.nlr.gov/t/error-in-executing-iea-15-240-rwt-umainesemi-on-openfast-3-4-1/5958>\
**Category:** Systems Engineering Software Tools\
**Created:** [October 31, 2023, 1:03pm UTC](https://forums.nlr.gov/t/error-in-executing-iea-15-240-rwt-umainesemi-on-openfast-3-4-1/5958 "2023-10-31T13:03:29Z")\
**Posts on this page:** 20\
**Page:** 2

<div class="post-metadata">

**Author:** ![Jason.Jonkman](https://dub1.discourse-cdn.com/nrel/user_avatar/forums.nlr.gov/jason.jonkman/32/3086_2.png) [@Jason.Jonkman](https://forums.nlr.gov/u/Jason.Jonkman)\
**Post date:** [December 4, 2023, 1:26pm UTC](https://forums.nlr.gov/t/error-in-executing-iea-15-240-rwt-umainesemi-on-openfast-3-4-1/5958/21 "2023-12-04T13:26:50Z")

</div>

Dear @Muhammad.Sharjil,

Just a couple comments:

- I would first recommend increasing the precision of the linearization output because an eigenanalysis is very sensitive to the precision of the matrices. We typically recommend using `OutFmt` = ES20.11E3 when linearizing.
- The negative damping is showing in modes that have a damping of +/-1, which suggests that the modes are actually rigid body modes (with zero or close-to-zero frequency). This is likely for the generator azimuth state, unless you’ve removed that state from the state “A” matrix. It could also come from the platform degrees of freedom if the mooring stiffness is negligible, or due to numerical round off from my previous response.

Best regards,

---

<div class="post-metadata">

**Author:** ![Muhammad.Sharjil](https://avatars.discourse-cdn.com/v4/letter/m/13edae/32.png) [@Muhammad.Sharjil](https://forums.nlr.gov/u/Muhammad.Sharjil)\
**Post date:** [December 5, 2023, 5:44pm UTC](https://forums.nlr.gov/t/error-in-executing-iea-15-240-rwt-umainesemi-on-openfast-3-4-1/5958/22 "2023-12-05T17:44:49Z")

</div>

Hi Jason  
I increased the precision as suggested in below rated case, but the unstable poles are still there. There are unstable underdamped poles with damping for example -6.25e-02, -3.00e-04 etc.  
Even after removing

- Generator Azimuth State
- Platform roll DOF,  
there are a lot of unstable poles (both real and real + imaginary poles. I couldnt figure out how to resolve this issue!!  
I have another query. How to check for mooring stiffness as I couldnt found any tab for Mooring variables in OutlistParameters.xlsx file.

Can you kindly suggest any debugging scheme to sort out the unstable poles, s.

Thanks

---

<div class="post-metadata">

**Author:** ![Jason.Jonkman](https://dub1.discourse-cdn.com/nrel/user_avatar/forums.nlr.gov/jason.jonkman/32/3086_2.png) [@Jason.Jonkman](https://forums.nlr.gov/u/Jason.Jonkman)\
**Post date:** [December 5, 2023, 5:56pm UTC](https://forums.nlr.gov/t/error-in-executing-iea-15-240-rwt-umainesemi-on-openfast-3-4-1/5958/23 "2023-12-05T17:56:17Z")

</div>

Dear @Muhammad.Sharjil,

I’m not sure I fully understand what you are saying. Are you saying that you removed the generator azimuth state and disabled the platform-roll degree of freedom (DOF) and unstable poles still remain?

I would suggest simplifying the model to better understand what is going on. Do you get unstable poles if the generator and all platform DOFs are disabled? Do you get instabilities in certain platform DOFs if you enable one at a time?

I now see that you have MoorDyn enabled (`CompMooring` = 3), although I don’t see MooDyn states in your linear model. Can you confirm? It may be easier to switch to MAP++ when linearizing to avoid having modes associated with the mooring line flexibility appearing in your linearized system.

Outputs associated with MAP++ or MoorDyn are discussed in their respective documentation:  
[https://moordyn.readthedocs.io/en/latest/inputs.html](https://moordyn.readthedocs.io/en/latest/inputs.html)  
[https://map-plus-plus.readthedocs.io/en/latest/index.html](https://map-plus-plus.readthedocs.io/en/latest/index.html)

Best regards,

---

<div class="post-metadata">

**Author:** ![Muhammad.Sharjil](https://avatars.discourse-cdn.com/v4/letter/m/13edae/32.png) [@Muhammad.Sharjil](https://forums.nlr.gov/u/Muhammad.Sharjil)\
**Post date:** [December 5, 2023, 6:09pm UTC](https://forums.nlr.gov/t/error-in-executing-iea-15-240-rwt-umainesemi-on-openfast-3-4-1/5958/24 "2023-12-05T18:09:30Z")

</div>

Hi @Jason.Jonkman  
I tried multiple things but the unstable poles were quite good in number.  
The first thing tried:  
While running fst file, all DOF were ON

 ![DOF_15MW_umaine](https://europe1.discourse-cdn.com/nrel/original/2X/1/16169ce877fe18df8107543238bc78bed45a3169.png)

I excluded the GenDOF while making linear statespace model from postproLin\_OneOP.m , AvgA, AvgB, AvgC, AvgD.  
But I still got unstable poles (a lot of them with -1 damping, and also with damping less than -1)

Another thing I tried was to disable the platform DOF (sway, surge, heave, platform -roll, pitch, yaw). The resulting statespace linear model from AvgA, AvgB, AvgC , AvgD matrices was stable.

---

<div class="post-metadata">

**Author:** ![Muhammad.Sharjil](https://avatars.discourse-cdn.com/v4/letter/m/13edae/32.png) [@Muhammad.Sharjil](https://forums.nlr.gov/u/Muhammad.Sharjil)\
**Post date:** [December 5, 2023, 6:15pm UTC](https://forums.nlr.gov/t/error-in-executing-iea-15-240-rwt-umainesemi-on-openfast-3-4-1/5958/25 "2023-12-05T18:15:26Z")

</div>

Regarding your suggestion  
“… I now see that you have MoorDyn enabled (`CompMooring` = 3), although I don’t see MooDyn states in your linear model. Can you confirm? It may be easier to switch to MAP++ when linearizing to avoid having modes associated with the mooring line flexibility appearing in your linearized system.”  
I was using the default setting of the file. Thanks for highlighting, I will try Map++ instead of Moordyn.  
Thanks

---

<div class="post-metadata">

**Author:** ![Jason.Jonkman](https://dub1.discourse-cdn.com/nrel/user_avatar/forums.nlr.gov/jason.jonkman/32/3086_2.png) [@Jason.Jonkman](https://forums.nlr.gov/u/Jason.Jonkman)\
**Post date:** [December 5, 2023, 7:17pm UTC](https://forums.nlr.gov/t/error-in-executing-iea-15-240-rwt-umainesemi-on-openfast-3-4-1/5958/26 "2023-12-05T19:17:21Z")

</div>

Dear @Muhammad.Sharjil,

If the unstable poles dissappear after disabling the ElastoDyn platform DOFs, you should be able to isolate which DOFs are triggering the unstables poles (e.g., by running separate simulations for each platform DOF).

Best regards,

---

<div class="post-metadata">

**Author:** ![Muhammad.Sharjil](https://avatars.discourse-cdn.com/v4/letter/m/13edae/32.png) [@Muhammad.Sharjil](https://forums.nlr.gov/u/Muhammad.Sharjil)\
**Post date:** [December 5, 2023, 8:19pm UTC](https://forums.nlr.gov/t/error-in-executing-iea-15-240-rwt-umainesemi-on-openfast-3-4-1/5958/27 "2023-12-05T20:19:08Z")

</div>

Hi @Jason.Jonkman  
Using CompMooring = 1, solved the instability issue.  
The poles are stable. The states are only 42 now.  
Thanks for the response and highlighting the prime source of instability. 🙂

---

<div class="post-metadata">

**Author:** ![Muhammad.Sharjil](https://avatars.discourse-cdn.com/v4/letter/m/13edae/32.png) [@Muhammad.Sharjil](https://forums.nlr.gov/u/Muhammad.Sharjil)\
**Post date:** [December 12, 2023, 3:02pm UTC](https://forums.nlr.gov/t/error-in-executing-iea-15-240-rwt-umainesemi-on-openfast-3-4-1/5958/28 "2023-12-12T15:02:03Z")

</div>

Hi @Jason.Jonkman  
I am facing a strange issue  
I am trying to linearize 15MW FOWT at

- Wind = 10m/sec, RPM = 5  
I am using these settings  
TrimTol = 0.01,  
Trimcase = 2.

The simulation is completing without errors, but instead of linearizing at RPM = 5, the linearization is being performed at 5.58 rpm.  
Kindly advice me on how to resolve this.  
Thanks

 ![dos-window](https://europe1.discourse-cdn.com/nrel/original/2X/6/6a23add15933d5e362163a44b143e8406154bf28.png)

 ![RPM](https://europe1.discourse-cdn.com/nrel/original/2X/9/94be33e06e7c29205aefe9eb96b949c9098c47ac.png)

 ![fst](https://europe1.discourse-cdn.com/nrel/original/2X/6/6df7058a4021cbf0aa04e2fe9e9cdec91381f517.png)

 ![elastodyn](https://europe1.discourse-cdn.com/nrel/original/2X/f/f3981a83ec9253a74b617cd82714eedf0a186672.png)

---

<div class="post-metadata">

**Author:** ![Jason.Jonkman](https://dub1.discourse-cdn.com/nrel/user_avatar/forums.nlr.gov/jason.jonkman/32/3086_2.png) [@Jason.Jonkman](https://forums.nlr.gov/u/Jason.Jonkman)\
**Post date:** [December 12, 2023, 6:28pm UTC](https://forums.nlr.gov/t/error-in-executing-iea-15-240-rwt-umainesemi-on-openfast-3-4-1/5958/29 "2023-12-12T18:28:18Z")

</div>

Dear @Muhammad.Sharjil,

What is `TMax` set to? OpenFAST will linearize at the end of the simulation if a steady-state solution has not been reached.

Best regards,

---

<div class="post-metadata">

**Author:** ![Muhammad.Sharjil](https://avatars.discourse-cdn.com/v4/letter/m/13edae/32.png) [@Muhammad.Sharjil](https://forums.nlr.gov/u/Muhammad.Sharjil)\
**Post date:** [December 12, 2023, 7:08pm UTC](https://forums.nlr.gov/t/error-in-executing-iea-15-240-rwt-umainesemi-on-openfast-3-4-1/5958/30 "2023-12-12T19:08:24Z")

</div>

Hi Jason  
Tmax was set to 8000 sec.  
I have changed the TrimTol. Its linearizing at around this value.

---

<div class="post-metadata">

**Author:** ![Muhammad.Sharjil](https://avatars.discourse-cdn.com/v4/letter/m/13edae/32.png) [@Muhammad.Sharjil](https://forums.nlr.gov/u/Muhammad.Sharjil)\
**Post date:** [December 15, 2023, 8:44am UTC](https://forums.nlr.gov/t/error-in-executing-iea-15-240-rwt-umainesemi-on-openfast-3-4-1/5958/31 "2023-12-15T08:44:19Z")

</div>

Hi @Jason.Jonkman  
I changed

- the simulation ending time to 20000 sec,
- TrimTol = 0.005
- RPM = 5  
However,  
The linearization was at 16725 sec (RPM = 5.06)

 ![dos-window](https://europe1.discourse-cdn.com/nrel/original/2X/2/22d31ca91662d43b5d853a414b6ba818e45753d5.png)  
 ![fst](https://europe1.discourse-cdn.com/nrel/original/2X/8/80b51341b1958093a0d86eb711fd5915f92fae23.png)  
 ![RPM](https://europe1.discourse-cdn.com/nrel/original/2X/a/a750051ebb015a90673cfff54e76e9599f3069a5.png)  
 ![RPM_zoom](https://europe1.discourse-cdn.com/nrel/original/2X/e/e3ab05891391ec969cb747d454adf769a8803df4.png)

Kindly guide me on this as to why the model is not linearizing at around 5±0.005.

Thanks

Best Regards,  
Muhammad Sharjil

---

<div class="post-metadata">

**Author:** ![Jason.Jonkman](https://dub1.discourse-cdn.com/nrel/user_avatar/forums.nlr.gov/jason.jonkman/32/3086_2.png) [@Jason.Jonkman](https://forums.nlr.gov/u/Jason.Jonkman)\
**Post date:** [December 15, 2023, 1:51pm UTC](https://forums.nlr.gov/t/error-in-executing-iea-15-240-rwt-umainesemi-on-openfast-3-4-1/5958/32 "2023-12-15T13:51:13Z")

</div>

Dear @Muhammad.Sharjil.

The convergence tolerance `TrimTol` is not the rotor speed error in rpm. Rather, `TrimTol` is a tolerance on the mean squared relative error of the output vector between the current revolution and the previous one. See the following trim implementation plan for more information: file:///C:/Users/jjonkman/Downloads/DevelopmentPlan-SetPoint-Linearization-1.pdf.

FYI: Considering how long it is taking for your trim solution to reach a steady-state solution, I would suggest increasing `TrimGain` to speed up the process.

Best regards,

---

<div class="post-metadata">

**Author:** ![Muhammad.Sharjil](https://avatars.discourse-cdn.com/v4/letter/m/13edae/32.png) [@Muhammad.Sharjil](https://forums.nlr.gov/u/Muhammad.Sharjil)\
**Post date:** [December 15, 2023, 2:17pm UTC](https://forums.nlr.gov/t/error-in-executing-iea-15-240-rwt-umainesemi-on-openfast-3-4-1/5958/33 "2023-12-15T14:17:06Z")

</div>

Hi @Jason.Jonkman  
As far as I have understood, the results are fine. The operating rpm can be bit different than the desired rpm (in fst file)  
I have reduced the trim gain since having more gain value adds up small oscillation in the rpm.  
I will try changing the gains.

Best Regards  
Muhammad Sharjil

---

<div class="post-metadata">

**Author:** ![Muhammad.Sharjil](https://avatars.discourse-cdn.com/v4/letter/m/13edae/32.png) [@Muhammad.Sharjil](https://forums.nlr.gov/u/Muhammad.Sharjil)\
**Post date:** [December 29, 2023, 2:34pm UTC](https://forums.nlr.gov/t/error-in-executing-iea-15-240-rwt-umainesemi-on-openfast-3-4-1/5958/34 "2023-12-29T14:34:58Z")

</div>

Hi @Jason.Jonkman  
I am trying to run Run\_OpenLoop.m using IEA-15-240-RWT-UMaineSemi.fst on windows 10 x64.  
I am using the following files provided with OpenFast version 3.5.0

1. OpenFast version 3.5.0
2. FAST\_SFunc.mexw64 & OpenFAST-Simulink\_x64.dll

I ran an OpenFast simulation in standalone mode (using with command prompt), using the option PCMode = 5, VSContrl = 5 (user-defined from Bladed-style DLL), as provided in the IEA-15-240-RWT package.

After successful termination of simulation in standalone mode, I am trying to pass the following data to the OpenLoop.mdl (making appropriate changes in Servodyn.dat file i.e. PCMode = 4, VSContrl = 4 (user-defined from Simulink/Labview)

1. Generator Torque (N-m) & Power (W)
2. Blade Pitch Angles (deg)

However, I am facing following issues

1. Complete mismatch in Generator Torque i.e. between Generator Torque as input to the simulink model and the output from simulink model
2. Complete mismatch in Generator Power
3. Initial mismatch in Blade Pitch Angle i.e. between Blade Pitch Angle as input to the simulink model and the output from simulink model  
 ![simulink_input_output](https://europe1.discourse-cdn.com/nrel/original/2X/6/64dea19fa21b1a4cb2b1a7020d0341344517b113.png)  
 ![simulink_input_output_zoomed](https://europe1.discourse-cdn.com/nrel/original/2X/f/f7fa691ad47e00b9b71fe382fc2ded6ddab5de7a.png)  
 ![simulink_model](https://europe1.discourse-cdn.com/nrel/original/2X/5/5904c93da1ad6f506ceee9cb1ba8d4217ce1971c.png)  
 ![simulink_model1](https://europe1.discourse-cdn.com/nrel/original/2X/3/3cca86b809d0122d0570aa332eb11db8911bf87a.png)  
 ![simulink_model2](https://europe1.discourse-cdn.com/nrel/original/2X/1/1fdcf7cbd4504b1230114af1dd3c142845f6244b.png)

Kindly guide me on this.  
Thanks

Regards,  
Muhammad Sharjil

---

<div class="post-metadata">

**Author:** ![Jason.Jonkman](https://dub1.discourse-cdn.com/nrel/user_avatar/forums.nlr.gov/jason.jonkman/32/3086_2.png) [@Jason.Jonkman](https://forums.nlr.gov/u/Jason.Jonkman)\
**Post date:** [December 29, 2023, 3:32pm UTC](https://forums.nlr.gov/t/error-in-executing-iea-15-240-rwt-umainesemi-on-openfast-3-4-1/5958/35 "2023-12-29T15:32:30Z")

</div>

Dear @Muhammad.Sharjil,

If I understand correctly, you are taking the generator torque, generator power, and blade-pitch angles from one simulation with `PCMode` = `VSContrl` = 5 and inputting them to the OpenFAST S-Function of a separate simulation in Simulink with `PCMode` = `VSContrl` = 4. And while the blade-pitch angles generally look OK, the generator torque and power are off.

I’m not sure why the latter is so far off. Have you confirmed that the inputs are correct?

The extrapolation of the inputs to the OpenFAST S-Function in Simulink could be related to the small mismatch at the beginning of the simulation, as discussed in the following forum topic: [S-Function input output signal mismatch](https://forums.nlr.gov/t/s-function-input-output-signal-mismatch/1502).

Best regards,

---

<div class="post-metadata">

**Author:** ![Muhammad.Sharjil](https://avatars.discourse-cdn.com/v4/letter/m/13edae/32.png) [@Muhammad.Sharjil](https://forums.nlr.gov/u/Muhammad.Sharjil)\
**Post date:** [January 19, 2024, 11:18am UTC](https://forums.nlr.gov/t/error-in-executing-iea-15-240-rwt-umainesemi-on-openfast-3-4-1/5958/36 "2024-01-19T11:18:42Z")

</div>

Hi @Jason.Jonkman  
I have checked into inputs and found some anomalies. I adjusted the inputs and able to get improved results.

 ![improved1](https://europe1.discourse-cdn.com/nrel/original/2X/9/955a45a47aa674bc23c9c785e79375c670a47c02.png)

However, some initial mismatch in blade pitch angle, generator torque is observed.

 ![improved1-1](https://europe1.discourse-cdn.com/nrel/original/2X/2/270cc2f6ffc528c987a368a767691fb57289ccf5.png)

The RPM and thrust are having differences

 ![improved1-2](https://europe1.discourse-cdn.com/nrel/original/2X/c/cb5e141f2375dde26f54d857632986d5ebcf40d4.png)

 ![improved2](https://europe1.discourse-cdn.com/nrel/original/2X/5/5aba16c7b157409ae7d7208b9f8eb0ad839636a6.png)

I want to have a comment on the results as if they are fine?  
Thanks

---

<div class="post-metadata">

**Author:** ![Jason.Jonkman](https://dub1.discourse-cdn.com/nrel/user_avatar/forums.nlr.gov/jason.jonkman/32/3086_2.png) [@Jason.Jonkman](https://forums.nlr.gov/u/Jason.Jonkman)\
**Post date:** [January 19, 2024, 5:26pm UTC](https://forums.nlr.gov/t/error-in-executing-iea-15-240-rwt-umainesemi-on-openfast-3-4-1/5958/37 "2024-01-19T17:26:42Z")

</div>

Dear @Muhammad.Sharjil,

I’m glad that you are now getting improved results. The small differences over the first few time steps appear to be related to the extrapolation of the inputs to the OpenFAST S-Function from Simulink. Further along in the simulation, other small differences are leading to small differences in rotor speed (and thus likely azimuth angle, not shown), but overall, the comparison is quite decent I would say.

Best regards,

---

<div class="post-metadata">

**Author:** ![Muhammad.Sharjil](https://avatars.discourse-cdn.com/v4/letter/m/13edae/32.png) [@Muhammad.Sharjil](https://forums.nlr.gov/u/Muhammad.Sharjil)\
**Post date:** [February 1, 2024, 1:37pm UTC](https://forums.nlr.gov/t/error-in-executing-iea-15-240-rwt-umainesemi-on-openfast-3-4-1/5958/38 "2024-02-01T13:37:38Z")

</div>

Hi @Jason.Jonkman  
I am using the AeroDyn\_Driver for ad\_BAR\_CombinedCases in r-test.  
I want to generate Cp, Ct and Cq curves against TSR and Blade Pitch Angle.  
I have certain queries regarding the results.

 ![aerodyn_driver](https://europe1.discourse-cdn.com/nrel/original/2X/4/437e9ac8bd5c90fce10a6c2c5c508e1395ad1673.png)  
Why is there a pattern in Cp and why it is not a fixed line?  
What value to use for Cp for generating the Cp curve against TSR and Blade Pitch?  
Same is the query for TSR and Power.  
The images of file settings I have used are in the images.  
 ![aerodyn_driver_drvfile](https://europe1.discourse-cdn.com/nrel/original/2X/7/779dc426947ad8a8a3c8ec99980ad902317b7251.png)  
 ![aerodyn_driver_drvfile1](https://europe1.discourse-cdn.com/nrel/original/2X/b/b9ec0b45ba4dbbf7d8238cd12e521da276332e93.png)

Thanks

---

<div class="post-metadata">

**Author:** ![Jason.Jonkman](https://dub1.discourse-cdn.com/nrel/user_avatar/forums.nlr.gov/jason.jonkman/32/3086_2.png) [@Jason.Jonkman](https://forums.nlr.gov/u/Jason.Jonkman)\
**Post date:** [February 2, 2024, 12:35am UTC](https://forums.nlr.gov/t/error-in-executing-iea-15-240-rwt-umainesemi-on-openfast-3-4-1/5958/39 "2024-02-02T00:35:56Z")

</div>

Dear @Muhammad.Sharjil,

From your AeroDyn input files, it looks like you have a few settings that will result in periodicity, including shear, shaft tilt, surge oscillation, and tower potential flow. For computing equivalent “steady state” values, I would suggest taking average values over a full revolution of the rotor.

Best regards,

---

<div class="post-metadata">

**Author:** ![Muhammad.Sharjil](https://avatars.discourse-cdn.com/v4/letter/m/13edae/32.png) [@Muhammad.Sharjil](https://forums.nlr.gov/u/Muhammad.Sharjil)\
**Post date:** [February 2, 2024, 8:56am UTC](https://forums.nlr.gov/t/error-in-executing-iea-15-240-rwt-umainesemi-on-openfast-3-4-1/5958/40 "2024-02-02T08:56:15Z")

</div>

Hi @Jason.Jonkman  
Thanks for the response.  
I this time used  
WakeMod = 1 (instead of 2)  
TwrPotent = 0 (instead of 1)  
This time, there is no oscillation in the response.

 ![aerodyn_driver](https://europe1.discourse-cdn.com/nrel/original/2X/0/030ed5ee5a550224057ff4f965d48f291bad3dbf.png)

The steadystate value for Cp with the option TwrPotent = 0 is not the average or mean of the case with TwrPotent = 1.  
Can you comment on which value to used to buildup a Cp surface w.r.t TSR and Blade Pitch Angle.

I have another query, how can I average the periodicity in Cp curve with azimuth to get a mean value.  
Thanks

[Previous page](https://forums.nlr.gov/t/error-in-executing-iea-15-240-rwt-umainesemi-on-openfast-3-4-1/5958.md?page=1)

[Next page](https://forums.nlr.gov/t/error-in-executing-iea-15-240-rwt-umainesemi-on-openfast-3-4-1/5958.md?page=3)
