Holger Vogt - 2023-01-31

I am sure that your netlist does not run perfectly in ngspice-36, as it contains some bugs.

Place the save command in the .control section before the simulation statement is given.

dc.v(D) dc.v(VDD)is not a valid syntax.

Attached you will find a modified netlist file.