The error message seems clear. You must define a discrete solver for your simulation.
Go to modelling -> model settings -> solver
There you select "Discrete (no continuous states)"
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!