MATLAB/Simulink model simulation and modeling with s-functions and variable-step solver

A simple example for plotting the result of a ModelingToolkit model can be found here: Step response using ModelingToolkit