You have several options for resolving this kind of issue as mentioned in the error message:
- Choose an implicit solver such as ode23t. It is worth noting that this does not always resolve the issue.
- Enable filtering. This may have failed in your case because the Simulink-PS Converter dialog’s settings had not yet been applied. Some form of filtering should generally resolve the error with an associated impact on simulation performance and accuracy.
- Provide derivatives from Simulink by adding a Cosine and -Sine input as the first and second derivatives of the signal provided to the Simulink-PS Converter. For an analytical sine wave input, this is your best option.
Using a simple example model, I found the following working combinations:
Solver ode45 with second-order filtering took 4352 steps (first-order errors out)
Solver ode23t with first-order filtering took 251 steps (second-order is not necessary)
Solver ode45 with two provided derivatives (Cos and Negative Sine) took 79 steps.
To understand the behavior in greater detail, I encourage you to read the following Documentation pages on the Simulink-PS converter and filtering:
Simulink-PS Converter: Input Handling
Filtering Input Signals and Providing Time Derivatives