An experiment is defined as a non-partial model or block having annotation experiment(StopTime=...)
function isExperiment input TypeName name; output Boolean res; end isExperiment;