Fatal Error when stepping parameters in AC simulation and option SaveParam is activated

I think I run into a bug in QSPICE, took a bit to figure out that it is related to option SaveParam.

When using “.step param” in AC simulation and “.option SaveParam” is activated. QSPICE stops after the first step with the error below but works as expected by removing the .option SaveParam. Running a stepped transient simulation with SaveParam is no problem.

So here is a netlist to demonstrate the issue:

V1 N01 0 sin 0 1 10K AC 1
R1 N01 out Rs
C1 out 0 10n
.param Rs=1K
.step param Rs list 1K 10K 100K
.ac lin 10 100 100K
.option SaveParam
.end

The simulation stops with the following error:

1 of 3 steps: .step rs=1000
2 of 3 steps: .step rs=10000
Fatal error: .step doesn’t work when the number of saved data traces changes(from 9 to 8).
Sorry about the inconvenience.

Thanks for the great Tool

Run your netlist, but no errors are returned. Are you running the latest version of Qspice?

Yes, I run into this issue on another computer with an older Version. Then I updated but same thing. To report the issue I used my laptop, updated QSPICE and generated the netlist from schematic. Same thing on the second computer.
From your response I now gave it a try with just the netlist pasted into the schematic window, again with the same result.
See the attached picture.

Clipboard01|690x498

AC_Bug_1.qsch (2.3 KB)

Ok… here is where the simulation failed.
I usually disable the operating point display, so I did not replicate this in the morning.

Hi KSKelvin that was a fast fix !!!
Thank you so much.
I tried multiple things but never touched that option.

By the way I use save SaveParam to record all params (also the not stepped ones) in the output file so I have access within PyQspice

1 Like