A Simple Bipolar Current Source

** Circuit Description **
Vcc 1 0 DC +10V
R1 1 2 942k
Q1 2 2 0 0 npn
Q2 3 2 0 0 npn
Vout 3 0 DC 5V
* transistor model statement for integrated NPN transistor by Gennum Corp.
.MODEL npn NPN (IS=5E-17 BF=147 VAF=80 IKF=4.3E-3 ISE=8E-18 NE=1.233
+               BR=1.9 VAR=11 IKR=6E-4 ISC=5E-16 NC=1.08 RE=12 RB=1200 RBM=200 RC=25
+               CJE=58E-15 VJE=0.83 MJE=0.35 CJC=133E-15 VJC=0.6 MJC=0.44 XCJC=1
+               CJS=830E-15 VJS=0.6 MJS=0.4 ISS=1E-16 FC=0.85 TF=60P XTF=48 ITF=3E-2
+               TR=10N EG=1.16 XTI=3 XTB=1.6)
** Analysis Requests **
.OP
* sweep the output voltage Vout between 0V and +5V
.DC Vout 0V 5V 10mV
** Output Requests **
.PLOT DC I(Vout)
.Probe
.end