Active Inference in Simulated Cortical Circuits