Electronic and magnetic structure of infinite-layer NdNiO2: trace of antiferromagnetic metal