A framework for hybrid simulation with online model updating suitable for hard real-time computing