A parallelized flight simulator for the dynamic analysis of airborne wind energy (AWE) systems for ground- and fly-generation configurations is presented. The mechanical system comprises a kite or fixed-wing drone equipped with rotors and linked to the ground by a flexible tether. The time-dependent control vector of the simulator mimics real AWE systems and it includes the length of the main tether, the geometry of the bridle, the torque of the motor controllers of the rotors, and the deflections of ailerons, rudder and elevator. The use of a lagrangian formulation with a minimal coordinate approach and discretizing the main tether as a chain of inelastic straight rods linked by ideal (dissipative-less) rotational joints, yielded a non-stiff set of ordinary differential equations free of algebraic constraints. Several verification tests, including a reel-in maneuver that admits an analytical solution, are presented. The efficiency of the parallelization with the number of tether segments, and trade-off analysis of the lagrangian and hamiltonian formulations are also considered. The versatility of the simulator is highlighted by analyzing two maneuvers that are relevant for AWE scenarios. First, the simulator is used to compute periodic figure-of-eight trajectories with an open-loop control law that varies the geometry of the kite's bridle, as frequently done in ground-generation AWE systems. Second, an unstable equilibrium state of a tethered drone equipped with two rotors for energy harvesting is stabilized by implementing a closed-loop control strategy for the deflection of the control aerodynamic surfaces. (C) 2019 Elsevier Inc. All rights reserved.