The power of photovoltaic modules is the product of single gain and loss factors. These factors influence the cell-to-module (CTM) ratio and final power of modules. We extend an existing CTM-methodology by presenting a complete model to calculate the losses attributed to junction boxes and cabling. We find the total junction box losses to be small ( 80%) for junction boxes. We simulate the thermal behavior of a junction box using the finite element method and analyze the temperatures of bypass diodes. The model is verified using infrared thermography. We find the diode temperature in the analyzed setup to be below critical temperatures for a thermal runaway. From our FEM-model we find that diode temperatures can be reduced by 13K using pott...