  PowerDynamics.jl is a Julia package for time-domain modeling of power grids
that is specifically designed for the stability analysis of systems with high
shares of renewable energies. It makes use of Julia's state-of-the-art
differential equation solvers and is highly performant even for systems with a
large number of components. Further, it is compatible with Julia's machine
learning libraries and allows for the utilization of these methods for
dynamical optimization and parameter fitting. The package comes with a number
of predefined models for synchronous machines, transmission lines and inverter
systems. However, the strict open-source approach and a macro-based
user-interface also allows for an easy implementation of custom-built models
which makes it especially interesting for the design and testing of new control
strategies for distributed generation units. This paper presents how the
modeling concept, implemented component models and fault scenarios have been
experimentally tested against measurements in the microgrid lab of TECNALIA.
