Dynamic System Model Generation for Online Fault Detection and Diagnosis of Robotic Systems