In wind turbines, mechanical, thermal and electro-magnetic effects need to be simulated in an integrated process to accurately predict the behavior of the different subsystems and to optimize the overall system performance. The LMS Imagine.Lab AMESim solution allows the coupling between mechanical components (mill blades and gearbox), the electrical generator and the power grid. With the resulting combined model, engineers can design the control rules, investigate and compare connection configurations with power grids, optimize energy management and detect potential failures online.