Modeling And Analysis Of Protective Relays For Components Switching And Frequency Deviation