Discrete event simulation of distributed energy supply systems