This function NoBypassCode calculates the currents (and the capacitances) that are necessary for the currents to be used in the top-level model.
function bjtNoBypassCode extends Modelica.Icons.Function; extends Modelica.Icons.ObsoleteModel; input Spice3.Internal.Model.Model in_m "Input record model"; input Bjt3 in_p3 "Input record Bjt3"; input BjtModelLineParams in_p "Input record with Bjt model line parameters"; input Bjt3Calc in_c "Input record Bjt3Calc"; input BjtVariables in_v "Input record with Bjt variables"; input BjtModelLineVariables in_vl; 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 bjtNoBypassCode;