Single phase to dq conversion issue

I am trying to model a single phase grid connected inverter. I need to convert single phase signal alpha beta and to dq or directly to dq. My issue is when i use built in SOGI block for single phase to alpha beta conversion, even though input signal is noisy and somewhat distorted, output signals come as completely sinusoidal due to which the control loop is not getting accurate feedback.
Three phase abc to dq conversion block does not have this issue. PLECS does not have anything to convert single phase to dq directly. MATLAB does not have this issue with same system. Does anyone have any idea how to solve this?

Anup, could you share a representative model? It’s not clear if the issue is due to model construction or the behavior of the PLL under adverse conditions.