Simulation works with ngspice (v28) standalone but not KiCad?

I am simulating an NE555. If I export the circuit to SPICE netlst and run in ngspice v28, it appears to work as expected. But if I run in the KiCad simulator (which uses v28), it appears to be incomplete, or it stops prematurely. Could this be an issue with v27 vs v28? Or maybe some other issue?

NE555 spice library tlc555.lib (1.2 KB)
KiCad project test_ne555.zip (3.6 KB)

Don’t expect the internal simulator to be near close
the real standalone ngspice.

The internal implementation is fairly simple compared
to all the power of “programmable” spice output

In summary lines like .ic .control MAY BE ignored by the shared lib

SPICE is totally programmable with loops and variables and
several other things like .meas (measures) FFT of various types
and more

Paul

Just to correct misinformation the KiCad internal simulation DOES USE .IC CONTROL.

i tried different ways.

the only way with reasonable results i had by
including the .ic line in the “CUSTOM” settings
like:

.ic  blahblah
.tr blahblah.

placing this line in the sheet does not work for me at all
it will be exported but not included by default
(like using the custom set)

Analog results follow the .option set used
Paul

IT WORKS FOR ME.

I even posted the project so you can try it, it took me 5 seconds to show .IC WORKS. Perhaps you did something WRONG?

Don’t think so

I tried very hard some complex settings
and only by including by hand the .ic line
in the “use custom set” it works

And some sims do require the proper .ic line
and .option line.

BTW i corrected “DON’T USE” to “MAY NOT” statement
things are dynamic at fast pace and do change a lot

Paul

LOL

Maybe the more recent version can handle this tag better…

Maybe…
I will find some time to repass some sims

BTW i corrected DONT USE to MAY NOT statement
things are dynamic at fast pace and do change a lot

Paul

It appears that the model and/or simulation are sensitive to the time step size. By adjusting that parameter, I can make the KiCad sim work as expected, and the ngspice standalone to show a similar error.