This system can be modeled in Simscape Electrical with existing blocks (PMSM or FEM-Parameterized PMSM and Converter (Three-Phase or custom converter based on high fidelity semiconductor devices).
If you prefer to use Simulink based simulation you can check the Three-Phase Voltage Source Inverter in Powertrain Blockset:
If you preffer an average inverter, check the Average-Value Inverter in Motor Control Blockset: