Implementation of system operation modes for health management and failure prognosis in cyber-physical systems