function mdlrefInfo = get_model_reference_info(modelName) 
   mdlrefInfo.isMultiInst = 0;
   mdlrefInfo.err = '';

   mdlTarget = get_param(modelName,'ModelReferenceTargetType');
   if(strcmpi(mdlTarget, 'NONE') ~= 1 )
     %% Model reference target	
     numInstAllowed = get_param(modelName, ...
   				    'ModelReferenceNumInstancesAllowed');
     mdlrefInfo.isMultiInst = strcmp(numInstAllowed, 'Multi') == 1;
     mdlrefInfo.err = getString(message('Stateflow:sfprivate:ModelReferenceNumberError', modelName));
   end

