Kicad Simulation: Kicad does not support two components of a kind

Hello,
i have a problem, that KiCad simulation does not support two same models of a kind. I have a circuit with two comparators. When I remove one comparator it works.
It seems like the models are not internally seperated in spice.
Any advice? Maybe @holger
Michael

Source files for testing:

Did you check KiCad Eeschema as GUI for ngspice, tutorial for setting up the simulation , chapter 6?

Dear Holger,
I found my problem: I had implemented two 5V supply rails! That gave me the singularity warnings!
grafik

A missing zero node and a singularity warning in GUI would be nice, especially when it’s late =)

Dear Holger,
can you advice how to get the relaxation oscillator to converge?

grafik

Background thread stopped with timeout = 0
Note: Compatibility modes selected: ps a
Circuit: KiCad schematic
Warning: Model issue on line:
d.xu101.x_desd3.d_desd 0 probe_int_probe_int_net-_u101-+__xu101_1_xu101_ ...
could not find a valid modelname
Warning: Model issue on line:
d.xu101.x_desd5.d_desd 0 probe_int_probe_int_/vsense_xu101_2_xu101_2 xu1 ...
could not find a valid modelname
Warning: Model issue on line:
d.xu102.x_desd3.d_desd 0 probe_int_probe_int_net-_u102-+__xu102_1_xu102_ ...
could not find a valid modelname
Warning: Model issue on line:
d.xu102.x_desd5.d_desd 0 probe_int_probe_int_/osci_xu102_2_xu102_2 xu102 ...
could not find a valid modelname
Reducing trtol to 1 for xspice 'A' devices
Doing analysis at TEMP = 27.000000 and TNOM = 27.000000
Using SPARSE 1.3 as Direct Linear Solver
Using transient initial conditions
 Reference value :  1.00000e-08
doAnalyses: TRAN:  Timestep too small; time = 1.03047e-06, timestep = 1.25e-18: trouble with node "v102:probe_int_n1#branch"
run simulation(s) aborted
.ic: no such command available in ngspice

This question is worth a new topic as the original question has been solved.

Try using this opamp in a simple (inverting) amplifier, to check its compatibility with ngspice. Not all models run in all simulators.

Then try running your oscillator with the generic opamp from library Simulation_SPICE, which is very stable, to check if your circuit is o.k.

There is a similar oscillator ( Comparator Oscillator) available at Simulation examples for KiCad/Eeschema/ngspice - #4 by holger .

This topic was automatically closed after 90 days. New replies are no longer allowed.