Hello Meikel,
Thank you for the question.
I checked your model. I didn't understand whole of this model, but I found a part that I guess is not working well.
I changed part of this model to comfirm the performance of SVM logic. I cut feedback loop, connected Vq/Vd reference directly to SVM logic and monitored inverter output voltages.(see the figure below) Then I found that the inverter output voldtages and the voltage refference values(Vq,Vd) were not the same values.
The part displayed in red in the figure below is the part I added. (In addition, the semiconductor was simulated by switching to the ideal SW.)
From the above, I guessed this SVM logic is not working well in your model.
For example, to create a model that works correctly, I recommend checking each function individually as shown in the step below.
1. Checking voltage control logic with open loop (mean checking only SVM logic)
2. Checking cuurent contorl logic (using SVM logic, but without field weakening logic)
3. Checking only field weakening logic
4. Checking by integrating the field weakening logic into the model
I hope this will be useful to you.