I have triggered error that prints "doAnalyses: impossible error - can't occur", programmers are usually interested in these kinds of errors so if that's the case keep it, if not close it.
* first line is ignored
.subckt MY_SUB a b
L0 a c 10m
R0 c b 100
.ends
xL1 1 0 MY_SUB
xL2 2 0 MY_SUB
K1 xL1.L0 xL2.L0 0.95
.tran 100u 20m 0
.print tran all
.end
Will print
Fatal error: k1: coupling to non-existant inductor xl1.l0.
doAnalyses: impossible error - can't occur
run simulation(s) aborted
Error: .print: no tran analysis found.
ngspice36
This is a bug in your netlist.
If you load the netlist and then run command 'listing e', you will see that the names of the inductors expanded are
L.xL1.L0
andL.xL2.L0
.Last edit: Holger Vogt 2023-06-23
ngspice-40 would tell you:
doAnalyses: not found