Comment 6 for bug 1853490

Revision history for this message
Holger Vogt (h+vogt) wrote :

Using the project file from https://forum.kicad.info/t/spice-simulation-errors/19884/6 and simply removing the sheet pins, ngspice fails.

The error message is:
Warning: singular matrix: check nodes /edc and /edc

What to do now?
Create the ngspice netlist and have a look at node /Edc.
/Edc is part of a B source
Bv2 /AVG_CM_BUCK_1/D1 /G V={V(/Edc,/G)>Dmax?Dmax:(V(/Edc,/G)<Dmin?Dmin:V(/Edc,/G))}
This one applies the voltage difference between /Edc and /G to calculate its output voltage. But there is no node /Edc in the netlist (in the circuit). So the B source cannot work, ngspice bails out. Same with /Ed2.

There is however a node /AVG_CM_BUCK_1/Edc. Maybe this one has to be used in the B source?