Nonideality of polymer solutions in the pore and concentration-dependent partitioning