I’m not sure how to read the library file. It looks like this is the pertinent line in the netlist:

XU1 Net-*R2-Pad2* Net-*R2-Pad1* Net-*R1-Pad2* +BATT Net-*R5-Pad2* Net-*R7-Pad1* Net-*R7-Pad2* Net-*R8-Pad2* Net-*R8-Pad1* Net-*R6-Pad2* 0 Net-*R3-Pad2* Net-*R4-Pad1* Net-*R4-Pad2* TLV8544

And this is the first line in the library file:

.subckt TLV8544 VEE VCC VINM VINP VOUT

XI0 VEE VCC VINM VINP VOUT PD VFA_HT5

VPD VCC PD 0

.ends

The netlist shows connections to all 14 pins in pin number order. The library model shows 5 ports for one opAmp two inputs, the output, power, & gnd. There are 4 opamps in the package.

I simplified the schematic down to one opamp using the symbol from the pspice library and it simulated fine. Then I went into it’s settings and pointed it to the model and it started giving another error:

Circuit: KiCad schematic

Original line no.: 0, new internal line no.: 245:

Undefined number [if]

Original line no.: 0, new internal line no.: 245:

Expression err: if(choice==1,1,0)

Original line no.: 0, new internal line no.: 245:

Formula() error.

choice=2;ibias=100f;ioffset=100f;ta=27;ibiasdrift=0;ioffsetdrift=0;ibiasp=150f;ibiasm=50f;choice1= if(choice==1,1,0);choice2= if(choice==2,1,0);ib= choice1*ibias+choice2*(ibiasp+ibiasm)/2 ;io= choice1*ioffset+choice2*abs(ibiasp-ibiasm);

Original line no.: 0, new internal line no.: 422:

Undefined number [temp]

Original line no.: 0, new internal line no.: 422:

Cannot compute substitute

Original line no.: 0, new internal line no.: 426:

Undefined number [temp]

Original line no.: 0, new internal line no.: 426:

Cannot compute substitute

Original line no.: 0, new internal line no.: 293:

Undefined number [if]

Original line no.: 0, new internal line no.: 293:

Expression err: if(choice==1,1,0)

Original line no.: 0, new internal line no.: 293:

Formula() error.

choice=1;gm=1.60e-01;sbf=1;itailmax_x1=1.8;itailmax_y1=11.1e-3;itailmax_x2=3.3;itailmax_y2=11.1e-3;itailmin_x1=1.8;itailmin_y1=14.2e-3;itailmin_x2=3.3;itailmin_y2=14.2e-3;choice1= if(choice==1,1,0);choice2= if(choice==2,1,0);choice3= if(choice==3,1,0);choice11= if(choice==11,1,0);itailmax_slope=(itailmax_y2-itailmax_y1)/(itailmax_x2-itailmax_x1);itailmin_slope=(itailmin_y2-itailmin_y1)/(itailmin_x2-itailmin_x1);itailmax_intcp= itailmax_y1-itailmax_slope*itailmax_x1 ;itailmin_intcp= itailmin_y1-itailmin_slope*itailmin_x1 ;

Original line no.: 0, new internal line no.: 395:

Undefined number [itailmax_slope]

Original line no.: 0, new internal line no.: 395:

Cannot compute substitute

Original line no.: 0, new internal line no.: 399:

Undefined number [itailmin_slope]

Original line no.: 0, new internal line no.: 399:

Cannot compute substitute

Original line no.: 0, new internal line no.: 403:

Undefined number [choice1]

Original line no.: 0, new internal line no.: 403:

Cannot compute substitute

Original line no.: 0, new internal line no.: 593:

Undefined number [temp]

Original line no.: 0, new internal line no.: 593:

Cannot compute substitute

Copies=345 Evals=955 Placeholders=106 Symbols=203 Errors=18

Numparam expansion errors: Problem with input file.

Error: ngspice.dll cannot recover and awaits to be detached

Note: can’t find init file.

** ngspice-29 shared library

** Creation Date: Sat Oct 27 14:16:51 UTC 2018

Error: there aren’t any circuits loaded.

I’m not sure what to make of this one either.

There are the right number of parameters now but they aren’t in the same order I don’t know if they are supposed to be.

XU1 Net-*R1-Pad2* Net-*R2-Pad1* Net-*R2-Pad2* +BATT 0 TLV8544

.subckt TLV8544 VEE VCC VINM VINP VOUT