Modeling And Optimization Algorithm For Sic-Based Three-Phase Motor Drive System