I tried to simulate some OP-AMPs using the models provided by LT or AD. However, most times I failed with KICAD. To be on the save side I rebuild ngspice according to the tutorial (Version 34+) and used it with KICAD 5.1.10.
For curiosity I did this example: the device AD797 is running properly in internal as well as in external simulation (dc v2 0 7 100m). The ADA4896 fails in internal simulation but runs well in external simulation.
External simulation means: generation of a spice netlist with internal netlist generator, sourcing the file in ngspice and run the dc-analysis. Except for the command for the dc analysis and the save commands in internal spice-netlist the generated spice netlist for external simulation is identical.
For ngspice the compatibility setting in .spiceinit is
āset ngbehavior=ltpsakiā
I checked the proper starting of ngspice for internal simulation, the .spiceinit file is read, but is not effective.
When loading the netlist generated by KICAD the first message in ngspice is:
āCompatibility modes selected: ps lt ki aā
This message is missing in internal KICAD log.
It seems, that the compatibility is reset by KICAD!!!
Why is there this silly behaviour? How can I run all simulations from within KICAD?
All tutorials are failing for this by now.