X-Authentication-Warning: delorie.com: mail set sender to geda-user-bounces using -f X-Recipient: geda-user AT delorie DOT com Message-ID: <53246DFD.7030002@systella.fr> Date: Sat, 15 Mar 2014 16:13:01 +0100 From: =?ISO-8859-1?Q?BERTRAND_Jo=EBl?= User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:26.0) Gecko/20100101 Firefox/26.0 SeaMonkey/2.23 MIME-Version: 1.0 To: geda-user AT delorie DOT com Subject: [geda-user] gschem and ngspice simulation Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Virus-Scanned: clamav-milter 0.98.1 at rayleigh X-Virus-Status: Clean Reply-To: geda-user AT delorie DOT com Hello, I'm trying to use ngspice with gEDA without any success. I have designed a very simple amplifier in gschem and created netlist with gnetlist. I obtain : C1 1 2 10uF C2 0 3 10uF Q1 3 2 Vout Q2N3904 R1 2 4 27k R2 Vout 4 3k3 R3 0 2 2k R4 0 3 100 R5 1 Vin 10 R6 0 1 2k V1 4 0 DC 15V V2 Vin 0 DC 1.5V AC 10MV SIN(0 1MV 1KHZ) .MODEL Q2N3904 NPN(IS=1.4E-14 BF=300 VAF=100 IKF=0.025 ISE=3E-13 + BR=7.5 RC=2.4 CJE=4.5E-12 TF=4E-10 CJC=3.5E-12 TR=2.1E-8 XTB=1.5 + KF=9E-16 ) .OPTIONS NOPAGE NUMDGT=6 UNITS=Degrees WIDTH=104 ABSTOL=0.00 +CHGTOL=0.00 DEFL=0.00Meg DEFW=0.00Meg GMIN=0.00 PIVREL=-1.798E+306 +PIVTOL=0.00 RELTOL=-1.798E+306 TEMP=20.00 .PRINT TRAN V(Vout) V(Vin) .TRAN 1.00m 1.00 0.00m .END ngspice only returns : Transient solution failed - Last Node Voltages ------------------ Node Last Voltage Previous Iter ---- ------------ ------------- 1 0 0 2 0 3.49138e-07 * 3 0 9.46935e-17 * vout 0 5.0625e-06 * 4 0 5.0625e-06 * vin 0 0 v2#branch 0 0 v1#branch 0 -1.74569e-10 * CPU time since last call: 0.048 seconds. Total CPU time: 0.048 seconds. Total DRAM available = 3561.660156 MB. DRAM currently available = 520.246094 MB. Total ngspice program size = 11.472656 MB. Resident set size = 892.000 kB. Shared ngspice pages = 591.000 kB. Text (code) pages = 1.221680 MB. Stack = 0 bytes. Library pages = 334.000 kB. Note: Starting dynamic gmin stepping Trying gmin = 1.0000E-03 Warning: Further gmin increment Trying gmin = 5.6234E-03 Warning: Further gmin increment Trying gmin = 8.6596E-03 Warning: Further gmin increment Trying gmin = 9.6466E-03 Warning: Further gmin increment Trying gmin = 9.9105E-03 Warning: Further gmin increment Trying gmin = 9.9775E-03 Warning: Further gmin increment Trying gmin = 9.9944E-03 Warning: Further gmin increment Trying gmin = 9.9986E-03 Warning: Further gmin increment Trying gmin = 9.9996E-03 Warning: Last gmin step failed Warning: Dynamic gmin stepping failed Note: Starting source stepping Supplies reduced to 0.0000% Note: One successful source step Supplies reduced to 0.1000% Supplies reduced to 0.0000% Note: One successful source step Supplies reduced to 0.0100% Supplies reduced to 0.0000% Note: One successful source step Supplies reduced to 0.0015% Supplies reduced to 0.0000% Note: One successful source step Supplies reduced to 0.0002% Supplies reduced to 0.0000% Note: One successful source step Supplies reduced to 0.0000% Warning: source stepping failed doAnalyses: Too many iterations without convergence run simulation(s) aborted Error(parse.c--checkvalid): vout: no such vector. I have used spice a long time ago and I don't see where is my mistake. Any idea ? Best regards, JB