Hi Gustavo,
SAM calculates the module efficiency after calculating the power output to report as a model output. The efficiency is not used to calculate the power output. For more detail about SAM's PV models, see the PV technical manual referenced here:
sam.nrel.gov/photovoltaic/pv-publications.html.
For the CEC Module model, the module efficiency is calculated using the equation
eff = P / ( A * G )
Where:
eff = module efficiency
P = array DC output in W
A = array area in m2
G = array POA irradiance in W/m2
See the attached Excel file for an example.
The source code for this calculation is here:
github.com/NREL/ssc/blob/4cbf27085c17d39140ea444c514431907d072a15/shared/lib_cec6par.cpp#L199
Best regards,
Paul.