Using the FCIDUMP generated by the method proposed from previous issue I'm trying to calculate Li atom with 3 electrons.
Input file is
num_thrds 12
nelec 3
orbitals li_6orb.fcidump
spin 1
schedule default
maxiter 20
startM 100
maxM 1000
hf_occ 2 1 0 0 0 0
onepdm
output reports that Spin=1
Finished Sweep with 1000 states and sweep energy for State [ 0 ] with Spin [ 1 ] :: -7.395656723881
but density matrix onepdm.0.0.txt has following occupations
12
0 0 9.99984987454079e-01
1 1 9.99984987454079e-01
2 2 4.99992968823474e-01
2 3 0.00000000000000e+00
3 2 0.00000000000000e+00
3 3 4.99992968823474e-01
So, the non-paired electron is divided between spin-up and spin-down orbital and non-diagonal components are zero. The number of electrons for spin-up is 1.5, and n_alpha - n_beta = 0.
Why does it happen? I'm not sure it works correctly.
Best regards