Hey ahmet nas, my teacher asked me to run this model without SMO. This means the rotor angle and the motor's speed must be feedback directly from the output of motor. I ran the simulation but it was not right. Can you run simulation the model without SMO and have a right result? And you can spend it to my mail:email@example.com. Thank you very much!!!
Firstly, It is better if you expand the definition of error you encountered. What kind of error? Compile error or Runtime error? If matlab returns error message before starting the simulation it is probably because of the powersim version. You can find it using simulink library browser to replace with older. It is a member block of Simpowersystems toolbox. If it is a runtime error, read the error message and follow the matlab instructions. Generally it is a discontinuities in the system's state variables at each time step and use zero-cross detection under the simulation parametersd menu.
I can run model without having such a problem by using 2012b version.