MATLAB: Creating an executable from a Matlab App that calls a Simulink file

app designercompilerlicensesimulinksimulink compiler

I am trying to create a standalone executable from a Matlab app using Application compiler. This app calls a Simulink/Simscape model by "sim" command. The packaging process was completed successfully without any error and the executable file runs fine too. Although, it seems that the portion of the code that calls the Simulink model doesn't work at all. There is no error but nothing happens either. I am wondering if this is related to the licensing or not? I do have the licenses for Matlab/Simulink/Simscape, Matlab Coder, Matlab Compiler, and Simulink Coder. Do I need Simulink Compiler too?