A generic and flexible simulation-based analysis tool for EMS management