Model of a wind turbine using discrete events. (January 2019)