AFAIK, simulation of Simulink models is not supported in compiled applications. See this previously answered question for more information.
Are you saying that you already have a compiled DLL that calls the SIM command?
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!