Hi Fernando,
PySAM is a Python wrapper for SSC (SAM Simulation Core), which is a large collection of code written in C++ in the github.com/nrel/ssc code repository.
The desktop application SAM integrates SSC into a user interface, and uses the code repositories listed here:
github.com/nrel/sam.
When comparing results from SAM and PySAM, as long as the inputs to SSC are identical, you should get identical results. You can use SAM's code generator to generate a set of SSC inputs from the SAM user interface to help be sure all of the inputs are identical. This is described here:
sam.nrel.gov/software-development-kit-sdk
SAM includes some code in the user interface that is not part of SSC. For example, the Detailed PV model in SAM has an option for SAM to automatically calculate the number of modules per string and number of strings in parallel for a given desired DC array capacity: That code is part of the user interface but not SSC.
You may find small differences in results between PySAM and SAM caused by rounding differences.
Best regards,
Paul.