Hi there,
when I apply a step command to a simulation with a pre-charged capacitor (voltage set by .ic) the simulator fails to calculate the true capacitor current. By removing the .step command everything works fine.
Example netlist:
C1 Vc 0 680µ
R5 0 Vc R_s
.tran 0 35m
.ic V(Vc)=400
.step param R_s list 1K 2K 3K 4K 5K
.end
For the measurement of the capacitor current (with .step) see below.