Here's a patch. It prints out how many lines were requested with the CPL model, how many lines are compiled in and a suggestion for which file and #define to modify to increase the limit. I also added my name to AUTHORS file assuming you eventually accept the patch :-).
I could trap the out of bounds condition and print an error message telling the user the current compiled limit and telling them which #define to change to up the limit, rather than triggering a core dump. Would this be an acceptable patch? I am using this code quite a bit lately and am planning to publish my multiconductor model generator, so I'd like to make this easier to use.
Afer enabling debugging and looking at the stack trace, the issue is: #define MAX_CP_TX_LINES 8 in src/include/ngspice/swec.h. I changed it from 8 to 20 and rebuilt ngspice. I wonder if there is a way to make this more obvious? Maybe the manual could say "multiconductor lines are compiled for a maximum of 8 conductors by default. You may have to rebuild after changing MAX_CP_TX_LINES if you need a larger number of conductors".
Coupled Multiconductor Line dumps core if number elements > 8
A work around is to use a voltage source and then convert it to a current source with a G device: vinput 101 0 PWL(0 0 {PER/4} {STROKE} {2PER/4} 0 {3PER/4} {-STROKE} {PER} 0) R=0 ginput 1 0 101 0 1
PWL repeat flag (R=0) doesn't work for current sources only voltage