This internal function limits the junction voltage. If it increases 1e10, it is hold to be constant at that value.
function junctionVCrit extends Modelica.Icons.Function; input SI.Temp_K temp "temperature"; input Real ncoeff; input SI.Current satcur "Saturation current"; output Real ret "Output value"; end junctionVCrit;