Co-Simulation under hard-real-time conditions