This function NoBypassCode calculates the currents (and the capacitances) that are necessary for the currents to be used in the top-level model.
function bjt3NoBypassCode extends Modelica.Icons.Function; extends Modelica.Icons.ObsoleteModel; input Spice3.Internal.Model.Model in_m "Input record model"; input Bjt in_p3 "Input record Bjt3"; input BjtModelLineParams in_p "Input record with Bjt model line parameters"; input Bjt3Calc in_c "Input record Bjt3Calc"; input BjtModelLineVariables in_vl "Input record with Bjt model line variables"; input SI.Voltage[6] in_m_pVoltageValues; input Boolean in_m_bInit; output CurrentsCapacitances out_cc "Output record with calculated currents and capacitances"; output SI.Capacitance capbe "Capacitance"; output SI.Capacitance capbc "Capacitance"; output SI.Capacitance capbx "Capacitance"; end bjt3NoBypassCode;