Hello Braydon,
thank you for the updated model. That has made it easier to see what is going on.
1st: the default tolerance settings for this type of model are unfortunately too loose. The faster time constant requires a tighter tolerance. If you go to your model configuration settings under solver, if you change it from 1e-3 to 1e-4, you will get consistent results per pulse. This use to be the default if you used an electrical template, but I think they backed off it again to 1e-3. For many electrical simulations you will find that you need 1e-4 still.
![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/318646/image.png)
2: the other issue is that simscape doesn't handle infinite derivatives well. In this case, because the gate junction is being modelled instead of using a piecewise linear mosfet, it is messing something up in the solution. If you apply filtering at that specific simulink to ps converter. This will stop the current from flowing before the pulse hits. (I am guessing using a fixed step solver might also fix this, but this is the better solution) I chose a pretty small time constant so that it barely slows down the pulse, but you can make this filter even smaller, just know that the smaller this number, the smaller time steps will be taken which can slow down a larger simulation. You could alternately try utilizing the prebuilt gate driver block that ships in part of simscape electrical. However, this appraoch with a filter will work just fine.
![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/318649/image.png)
I have attatched a model where I made the changes so that you can see the results. You can see I was also trying different solvers. You can probably leave yours as auto, but ode23t or the 15s are good options if you pick a specific one.
Regards,
Joel