Fault tree synthesis for real time and design applications on process plant