Various methods have been given in literature to estimate the system dynamics through SMO. In general, there are two things which are generally considered for estimation purpose: One is system states and Another is system uncertainty. Extended state observer would be the best approach for your problem, as this method would allow you to estimate PMSM system states and its uncertainty simultaneously.