Kicad Simulation transient analysis error: "Timestep too small" and "trouble with instance"

I am trying to simulate this circuitry shown below with ngspice. I’m currently getting the following error with the following circuit schematic:

Running the simulator outputs the following:

Note: Compatibility modes selected: ps a
warning, can't find model '15micro' from line
c1 net-_c1-pad1_ probe_int_0_c1 15micro
Circuit: KiCad schematic
Reducing trtol to 1 for xspice 'A' devices
Doing analysis at TEMP = 27.000000 and TNOM = 27.000000
Note: Starting dynamic gmin stepping
Trying gmin =   1.0000E-03 Note: One successful gmin step
Trying gmin =   3.1623E-04 Note: One successful gmin step
Trying gmin =   1.0000E-04 Note: One successful gmin step
Trying gmin =   1.7783E-05 Note: One successful gmin step
Trying gmin =   3.1623E-06 Note: One successful gmin step
Trying gmin =   1.3335E-06 Note: One successful gmin step
Trying gmin =   3.6517E-07 Note: One successful gmin step
Trying gmin =   1.0000E-07 Note: One successful gmin step
Trying gmin =   2.7384E-08 Note: One successful gmin step
Trying gmin =   3.9242E-09 Warning: Further gmin increment
Trying gmin =   1.6849E-08 Warning: Further gmin increment
Trying gmin =   2.4253E-08 Note: One successful gmin step
Trying gmin =   2.1480E-08 Warning: Further gmin increment
Trying gmin =   2.3528E-08 Warning: Further gmin increment
Trying gmin =   2.4070E-08 Note: One successful gmin step
Trying gmin =   2.3797E-08 Warning: Further gmin increment
Trying gmin =   2.4001E-08 Warning: Further gmin increment
Trying gmin =   2.4053E-08 Note: One successful gmin step
Trying gmin =   2.4027E-08 Warning: Further gmin increment
Trying gmin =   2.4046E-08 Note: One successful gmin step
Trying gmin =   2.4036E-08 Note: One successful gmin step
Trying gmin =   2.4032E-08 Note: One successful gmin step
Trying gmin =   2.4024E-08 Note: One successful gmin step
Trying gmin =   2.4014E-08 Note: One successful gmin step
Trying gmin =   2.3997E-08 Note: One successful gmin step
Trying gmin =   2.3973E-08 Note: One successful gmin step
Trying gmin =   2.3937E-08 Note: One successful gmin step
Trying gmin =   2.3882E-08 Note: One successful gmin step
Trying gmin =   2.3801E-08 Note: One successful gmin step
Trying gmin =   2.3720E-08 Note: One successful gmin step
Trying gmin =   2.3598E-08 Note: One successful gmin step
Trying gmin =   2.3417E-08 Note: One successful gmin step
Trying gmin =   2.3149E-08 Note: One successful gmin step
Trying gmin =   2.2751E-08 Note: One successful gmin step
Trying gmin =   2.2168E-08 Note: One successful gmin step
Trying gmin =   2.1322E-08 Note: One successful gmin step
Trying gmin =   2.0112E-08 Note: One successful gmin step
Trying gmin =   1.8425E-08 Note: One successful gmin step
Trying gmin =   1.6155E-08 Note: One successful gmin step
Trying gmin =   1.3265E-08 Note: One successful gmin step
Trying gmin =   9.8687E-09 Note: One successful gmin step
Trying gmin =   6.3330E-09 Note: One successful gmin step
Trying gmin =   3.2556E-09 Note: One successful gmin step
Trying gmin =   1.2000E-09 Note: One successful gmin step
Trying gmin =   7.2850E-10 Note: One successful gmin step
Trying gmin =   4.4228E-10 Note: One successful gmin step
Trying gmin =   2.6851E-10 Note: One successful gmin step
Trying gmin =   1.6302E-10 Warning: Further gmin increment
Trying gmin =   2.3702E-10 Note: One successful gmin step
Trying gmin =   2.0922E-10 Note: One successful gmin step
Trying gmin =   1.7351E-10 Note: One successful gmin step
Trying gmin =   1.5801E-10 Note: One successful gmin step
Trying gmin =   1.3732E-10 Note: One successful gmin step
Trying gmin =   1.2801E-10 Note: One successful gmin step
Trying gmin =   1.1522E-10 Warning: Further gmin increment
Trying gmin =   1.2469E-10 Warning: Further gmin increment
Trying gmin =   1.2717E-10 Note: One successful gmin step
Trying gmin =   1.2676E-10 Note: One successful gmin step
Trying gmin =   1.2634E-10 Note: One successful gmin step
Trying gmin =   1.2572E-10 Note: One successful gmin step
Trying gmin =   1.2479E-10 Note: One successful gmin step
Trying gmin =   1.2387E-10 Warning: Further gmin increment
Trying gmin =   1.2456E-10 Warning: Further gmin increment
Trying gmin =   1.2473E-10 Note: One successful gmin step
Trying gmin =   1.2465E-10 Warning: Further gmin increment
Trying gmin =   1.2471E-10 Warning: Further gmin increment
Trying gmin =   1.2473E-10 Note: One successful gmin step
Trying gmin =   1.2472E-10 Note: One successful gmin step
Trying gmin =   1.2472E-10 Note: One successful gmin step
Trying gmin =   1.2471E-10 Warning: Further gmin increment
Trying gmin =   1.2471E-10 Warning: Last gmin step failed
Warning: Dynamic gmin stepping failed
Note: Starting true gmin stepping
Trying gmin =   1.0000E-03 Note: One successful gmin step
Trying gmin =   3.1623E-04 Note: One successful gmin step
Trying gmin =   5.6234E-05 Note: One successful gmin step
Trying gmin =   1.0000E-05 Note: One successful gmin step
Trying gmin =   1.7783E-06 Note: One successful gmin step
Trying gmin =   3.1623E-07 Note: One successful gmin step
Trying gmin =   5.6234E-08 Note: One successful gmin step
Trying gmin =   1.0000E-08 Note: One successful gmin step
Trying gmin =   1.0000E-09 Note: One successful gmin step
Trying gmin =   1.0000E-10 Note: One successful gmin step
Trying gmin =   1.0000E-11 Note: One successful gmin step
Trying gmin =   3.1623E-12 Note: One successful gmin step
Trying gmin =   1.0000E-12 Note: One successful gmin step
Note: True gmin stepping completed
Initial Transient Solution
--------------------------
Node                                   Voltage
----                                   -------
net-_r20-pad2_                          130688
probe_int_/high_temp_r23                130687
/high_temp                              130687
net-_u5--_                              130687
probe_int_/high_temp_r21                130687
xu5.9                                 0.661146
probe_int_/high_temp_xu5_3              130687
xu5.7                                  12.4201
xu5.21                                 11.7591
probe_int_net-_u5-+__xu5_1             11.0091
xu5.22                                  130688
probe_int_net-_u5--__xu5_2              130687
xu5.8                                   1.1787
probe_int_net-_u5-v+__xu5_4             130688
xu5.10                                0.661146
xu5.11                                0.661146
probe_int_net-_u5-v-__xu5_5        5.13057e-09
net-_u5-+_                             11.0091
net-_u5-v+_                             130688
net-_u5-v-_                        5.13057e-09
probe_int_0_r22                              0
probe_int_0_r26                              0
xth1.x1.4                          4.00994e-07
xth1.x1.gthem_int1                     400.994
xth1.x1.3                          1.76584e+06
probe_int_0_xth1                             0
xth1.x1.gtmp1_int1                      4414.6
xth1.x1.gpar_int1                       4414.6
/5v                                    94707.5
probe_int_net-_u5--__r25                130687
/power+                            1.88468e+06
probe_int_net-_r20-pad2__r20            130688
probe_int_0_r27                              0
probe_int_net-_u5-+__r10               11.0091
probe_int_net-_u5-v+__r24               130688
xq2.1                                   929925
xq2.2                                   130687
xq2.3                                   513119
probe_int_net-_q2-d__xq2_1              929925
probe_int_net-_q2-s__xq2_3             24806.3
probe_int_/high_temp_xq2_2              130687
xq2.12                                 -799238
xq2.14                                       0
xq2.13                            -0.000100799
xq2.15                                 -799238
net-_q2-d_                              929925
net-_q2-s_                             24806.3
xq4.1                                   929925
xq4.2                                   130687
xq4.3                                   513119
probe_int_net-_q2-d__xq4_1              929925
probe_int_net-_q2-s__xq4_3             24806.3
probe_int_/high_temp_xq4_2              130687
xq4.12                                 -799238
xq4.14                                       0
xq4.13                            -0.000100799
xq4.15                                 -799238
xq3.1                              1.85985e+06
xq3.2                              1.13056e+06
xq3.3                              1.44304e+06
probe_int_net-_q1-d__xq3_1         1.85985e+06
probe_int_net-_q1-s__xq3_3              954732
probe_int_/low_bat_xq3_2           1.13056e+06
xq3.12                                 -729288
xq3.14                                       0
xq3.13                            -0.000100729
xq3.15                                 -729288
net-_q1-d_                         1.85985e+06
/low_bat                           1.13056e+06
net-_q1-s_                              954732
probe_int_net-_q2-d__r8                 929925
probe_int_net-_g1-n+__r13             -24806.3
net-_g1-n+_                           -24806.3
net-_g1-c+_                                 25
net-_g1-c-_                                  0
probe_int_/v_sense-_g1             9.95474e+07
/v_sense-                          9.95474e+07
net-_c1-pad1_                      1.88468e+06
probe_int_0_c1                               0
probe_int_0_r31                              0
xq1.1                              1.85985e+06
xq1.2                              1.13056e+06
xq1.3                              1.44304e+06
probe_int_net-_q1-d__xq1_1         1.85985e+06
probe_int_net-_q1-s__xq1_3              954732
probe_int_/low_bat_xq1_2           1.13056e+06
xq1.12                                 -729288
xq1.14                                       0
xq1.13                            -0.000100729
xq1.15                                 -729288
net-_r12-pad1_                     1.88466e+06
probe_int_net-_q1-d__r12           1.85985e+06
probe_int_/power+_r15              1.88468e+06
net-_r11-pad1_                     1.13056e+06
probe_int_net-_u3-v+__r17          1.13056e+06
net-_u3-v+_                        1.13056e+06
probe_int_net-_u3-v-__r9           1.05857e-08
net-_u3-v-_                        1.05857e-08
xu3.9                                 0.679879
probe_int_/low_bat_xu3_3           1.13056e+06
xu3.7                                   942321
xu3.21                                  942341
probe_int_/v+_xu3_1                     942340
xu3.22                                  942320
probe_int_/v_ref_xu3_2                  942319
xu3.8                                  1.34157
probe_int_net-_u3-v+__xu3_4        1.13056e+06
xu3.10                                0.679879
xu3.11                                0.679879
probe_int_net-_u3-v-__xu3_5        1.05857e-08
/v+                                     942340
/v_ref                                  942319
probe_int_/low_bat_r11             1.13056e+06
probe_int_0_r19                              0
probe_int_net-_r11-pad1__r18       1.13056e+06
probe_int_/v+_r6                        942340
probe_int_0_r7                               0
probe_int_0_r5                               0
net-_r1-pad2_                      1.88464e+06
probe_int_/v_ref_r4                     942319
net-_u1-a_                         1.88463e+06
probe_int_net-_u2-k__r3            1.88463e+06
net-_u2-k_                         1.88463e+06
probe_int_0_xu2                              0
xu2.start                             0.961908
xu2.n03098                           0.0641208
xu2.n01931                            0.739934
xu2.n02184                         1.88463e+06
xu2.vc_q2                          1.88463e+06
xu2.n01786                         1.88463e+06
xu2.n02229                         1.88463e+06
xu2.n04190                           0.0740789
xu2.n04160                            0.772389
xu2.vc_q3                          1.88463e+06
xu2.vb_q3                          1.72475e+06
xu2.ve                             1.88449e+06
xu2.n01129                         1.88463e+06
xu2.n01136                         1.88463e+06
xu2.n08107                         1.88463e+06
xu2.n07686                         1.80377e+06
xu2.q20b                              0.961908
xu2.n01533                            0.130164
xu2.vb_q2                          1.75109e+06
xu2.n02514                         1.88463e+06
xu2.n30465                            0.961908
xu2.e_estart_int1                     0.961908
xu2.fb_temp                        1.60622e+06
xu2.q1e                            1.60622e+06
xu2.n08426                         1.88449e+06
xu2.n01755                            0.252587
xu2.n08116                         1.80377e+06
xu2.n01505                            0.221998
probe_int_net-_u1-a__xu1           1.88463e+06
xu1.start                           3.7483e+06
xu1.n03098                         1.88464e+06
xu1.n01931                         1.88463e+06
xu1.n02184                         1.88464e+06
xu1.vc_q2                          1.88464e+06
xu1.n01786                         1.88464e+06
xu1.n02229                         1.88464e+06
xu1.n04190                         1.88464e+06
xu1.n04160                         1.88463e+06
xu1.vc_q3                          1.88464e+06
xu1.vb_q3                          1.88464e+06
xu1.ve                             1.88464e+06
xu1.n01129                         1.88464e+06
xu1.n01136                         1.88464e+06
xu1.n08107                         1.88464e+06
xu1.n07686                         1.88464e+06
xu1.q20b                           1.88463e+06
xu1.n01533                         1.88463e+06
xu1.vb_q2                          1.88464e+06
xu1.n02514                         1.88464e+06
xu1.n30465                         3.76927e+06
xu1.e_estart_int1                  1.88463e+06
xu1.fb_temp                        1.88464e+06
xu1.q1e                            1.88464e+06
net-_u1-k_                         1.88464e+06
xu1.n08426                         1.88464e+06
xu1.n01755                         1.88463e+06
xu1.n08116                         1.88464e+06
xu1.n01505                         1.88463e+06
probe_int_net-_r1-pad2__r1         1.88464e+06
probe_int_net-_u1-k__r2            1.88464e+06
probe_int_0_r16                              0
probe_int_net-_u4-vi__r28          1.88468e+06
net-_u4-vi_                        1.88468e+06
net-_u4-vo_                            94707.5
probe_int_/5v_r30                      94707.5
xu4.23                              -0.0412233
xu4.10                                  1.2119
probe_int_net-_u4-gnd__xu4_2        0.00705496
xu4.5                                  3490.75
xu4.4                                  2.39631
xu4.7                                   3490.7
xu4.6                                  3491.95
probe_int_net-_u4-vi__xu4_1        1.88468e+06
xu4.9                                  6.06807
xu4.8                                  5.26631
xu4.11                             1.88468e+06
xu4.13                                 2.39619
xu4.12                                 3490.75
xu4.15                                   94744
xu4.14                                   94743
xu4.16                              0.00705498
xu4.17                                 3490.96
xu4.18                                 1.05683
xu4.19                                0.305665
xu4.20                                   94745
xu4.21                                 2.16741
xu4.22                                   94745
probe_int_net-_u4-vo__xu4_3            94707.5
xu4.24                                0.990077
xu4.25                                 94746.1
xu4.26                                 94751.6
xu4.27                                 2.04842
xu4.28                                0.349015
xu4.29                              0.00705496
net-_u4-gnd_                        0.00705496
probe_int_0_r29                              0
probe_int_/v_sense-_r14            9.95474e+07
b.xu1.be_estart#branch                       0
b.xu2.be_estart#branch                       0
b.xth1.x1.bgpar#branch                       0
b.xth1.x1.bgtmp1#branch                      0
b.xth1.x1.bgthem#branch                      0
v.xu3.v1#branch                    0.000207249
v.xq1.vfb#branch                  -7.29288e-07
v.xq3.vfb#branch                  -7.29288e-07
v.xq4.vfb#branch                  -7.99238e-07
v.xq2.vfb#branch                  -7.99238e-07
v.xu5.v1#branch                    0.000100865
l.xu1.l_lx1#branch                    -7.48237
l.xu2.l_lx1#branch                     -5.5014
e.xu1.e_estart#branch                 -93.1833
e.xu2.e_estart#branch                        0
e.xu3.e1#branch                   -0.000207249
e.xq1.egd#branch                   0.000202188
e.xq3.egd#branch                   0.000202188
e.xq4.egd#branch                   0.000202398
e.xq2.egd#branch                   0.000202398
e.xu5.e1#branch                   -0.000100865
v1#branch                          9.76626e+08
r14#branch                        -9.76627e+08
r29#branch                             277.754
xu4:3#branch                          0.359795
xu4:2#branch                          -277.754
xu4:1#branch                           277.394
r30#branch                           -0.359796
r28#branch                             277.394
r16#branch                                   0
v2#branch                                    0
r2#branch                              7.48238
r1#branch                               8.4247
xu1#branch                             7.48235
xu2#branch                              7.4823
r3#branch                              7.48234
r4#branch                             0.942321
r5#branch                             0.942319
r7#branch                              0.94234
r6#branch                             0.942342
r18#branch                             0.75412
r19#branch                            0.753708
r11#branch                        -9.86896e-05
xu3:5#branch                       -0.00041676
xu3:4#branch                       0.000511169
xu3:3#branch                      -9.72305e-05
xu3:2#branch                       1.83466e-06
xu3:1#branch                        1.8847e-06
v.xu3.vi2#branch                  -1.83466e-06
v.xu3.vi1#branch                   -1.8847e-06
r9#branch                          -0.00041676
r17#branch                         0.000511169
r15#branch                                   0
r12#branch                         9.76626e+08
xq1:30#branch                     -4.88313e+08
xq1:20#branch                     -7.29458e-07
xq1:10#branch                      4.88313e+08
r31#branch                         9.76626e+08
c1#branch                                    0
g1#branch                          9.76627e+08
r13#branch                         9.76627e+08
r8#branch                          9.76626e+08
xq3:30#branch                     -4.88313e+08
xq3:20#branch                     -7.29458e-07
xq3:10#branch                      4.88313e+08
xq4:30#branch                     -4.88313e+08
xq4:20#branch                     -7.90955e-07
xq4:10#branch                      4.88313e+08
xq2:30#branch                     -4.88313e+08
xq2:20#branch                     -7.99249e-07
xq2:10#branch                      4.88313e+08
r24#branch                             1.66667
r10#branch                             400.994
r27#branch                           0.0871253
r20#branch                             1.75399
r25#branch                           -0.359796
xth1#branch                            400.994
r26#branch                             1.30687
r22#branch                         0.000201991
xu5:5#branch                      -0.000201991
xu5:4#branch                           1.66667
xu5:3#branch                          -1.66647
xu5:2#branch                       9.53674e-07
xu5:1#branch                      -5.00181e-08
v.xu5.vi2#branch                  -9.53674e-07
v.xu5.vi1#branch                   5.00181e-08
r21#branch                            -1.66667
r23#branch                          0.00019412
 Reference value :  0.00000e+00
doAnalyses: TRAN:  Timestep too small; time = 2e-15, timestep = 2.5e-16: trouble with xu1:pnpl1x-instance q.xu1.q_q17
run simulation(s) aborted

What am I missing in the schematic that is causing this? Is there something in the LM4040-8.2 SPICE model that I need to look into further? Any pointers would be much appreicated. Thanks!

Can you post your project? Can you describe what you expect the circuit to do?

It is obvious that the operating point solution is wrong since power+ is 3 million volts. I suspect that many of your resistor values are wrong 1M is 1 milliOhm, and you have many resistors with values of 1 nanoOhm.

I expect that if I sweep V1 from 25V down to 17V, that the undervoltage MOSFETs will turn off and disconnect the voltage source. This is supposed to be the battery protection circuitry for a large drone as part of a battery management system. V1 is modeling the battery and G1 is modeling the current drawn from the drone motors (which is expected to peak at 180A). Since I am a new user, I cannot post my project.

-did you read the previous answer? Your component values are off. Please read the documentation to know how to specify them.

Yes, I read the previous answer. I will close this as the issue has now been resolved. The culprit was GSOURCE voltage controlled current source which I have removed and replaced with a large resistor instead.

1 Like