The capacitor model in the Electrical and the Spice library looks the same to me. Unfortunately, we do not support it yet. For this course, you can create all the models using the Modelica.Electrical library.
class Modelica.Electrical.Analog.Basic.Capacitor
Real v(quantity = "ElectricPotential", unit = "V", start = 0.0) "Voltage drop of the two pins (= p.v - n.v)";
Real p.v(quantity = "ElectricPotential", unit = "V") "Potential at the pin";
Real p.i(quantity = "ElectricCurrent", unit = "A") "Current flowing into the pin";
Real n.v(quantity = "ElectricPotential", unit = "V") "Potential at the pin";
Real n.i(quantity = "ElectricCurrent", unit = "A") "Current flowing into the pin";
Real i(quantity = "ElectricCurrent", unit = "A") "Current flowing from pin p to pin n";
parameter Real C(quantity = "Capacitance", unit = "F", min = 0.0, start = 1.0) = 1.0 "Capacitance";
equation
n.i = 0.0;
p.i = 0.0;
v = p.v - n.v;
0.0 = n.i + p.i;
i = p.i;
i = C * der(v);
end Modelica.Electrical.Analog.Basic.Capacitor;
class Spice3.Basic.C_Capacitor
Real v(quantity = "ElectricPotential", unit = "V") "Voltage drop of the two pins (= p.v - n.v)";
Real p.v(quantity = "ElectricPotential", unit = "V") "Potential at the pin";
Real p.i(quantity = "ElectricCurrent", unit = "A") "Current flowing into the pin";
Real n.v(quantity = "ElectricPotential", unit = "V") "Potential at the pin";
Real n.i(quantity = "ElectricCurrent", unit = "A") "Current flowing into the pin";
Real i(quantity = "ElectricCurrent", unit = "A") "Current flowing from pin p to pin n";
parameter Real C(quantity = "Capacitance", unit = "F", min = -1.7976931348623157e+308, start = 0.0) = 0.0 "Capacitance";
final constant Real WSMServices.Machine.Real_MAX = 1.7976931348623157e+308 "Maximum finite Real number.";
parameter Real IC(quantity = "ElectricPotential", unit = "V") = 0.0 "Initial value of voltage";
final constant Real ModelicaServices.Machine.inf = 1.7976931348623157e+308 "Biggest Real number such that inf and -inf are representable on the machine";
evaluated parameter Boolean UIC = false "Use initial conditions: true, if initial condition is used";
protected Real vinternal(quantity = "ElectricPotential", unit = "V") "Capacitor voltage";
final constant Real Modelica.Constants.inf = 1.7976931348623157e+308 "Biggest Real number such that inf and -inf are representable on the machine";
equation
n.i = 0.0;
p.i = 0.0;
v = p.v - n.v;
0.0 = n.i + p.i;
i = p.i;
vinternal = p.v - n.v;
i = C * der(vinternal);
end Spice3.Basic.C_Capacitor;