Obtain all possible state space equations in the circuit of Systemmodeler?

SystemModel["Model1"];
SystemModelLinearize["Model1", 
  Method -> {"SymbolicDerivative", 
      "SymbolicParameters" -> {"R", "C", "L"}}]

How to obtain the state space equation of the Buck circuit switch closing and opening in Mathematica when drawing this circuit on Systemmodeler only? Or can only draw the switch closed or open separately to obtain the equation(Only one equation can be obtained by drawing a circuit state)?

Model1.mo (4.38 KB)

I added some values to the R,L and C parameters and provided a boolean input to the switch. This is what I get:

where k is True or False.

Model2.mo (4.31 KB)

I forgot to draw diodes in my original circuit. Could you help me to see it again?

Model1.mo (4.38 KB)