Identification of Abnormal Functioning of Devices of Cyber-Physical Systems