[sorry for my English] I tried cooking together with 3 Sims, each from a different household, two were visiting and the main is the house owner: one did fine and started cooking with my main Sim, right next to her, but the other went somewhere unknown and when the cooking animation ended, he showed up; so my conclusions, considerations and beliefs are the following:
1. you need to have lots of counters for the animation to work (because the sim needs to find one easily and really fast). I had only two counters "available" in the kitchen, so I believe the third sim went to a bathroom counter to do the animation, but he disappeared, so who knows;
2. if there are many sims in the lot, all with autonomy turned on, their interactions may break other sims' interactions and keep them busy so they won't go cook in time, specially children because I believe they receive lots of interactions to be taken care of by other adults;
3. as soon as my sims started cooking together, the "group indicator floating crystal" (I don't know the name of that transparent "hexagonal" crystal) appeared; so try creating a group before starting the cooking interaction, it might help;
4. I noticed, for the time I've been playing, that Sims 4 (like sometimes happened in Sims 3 too) has a lot of autonomy interference in families with high numbers of sims, because they keep trying to "sync" between each other and all stay still for too long; try disabling all autonomy when you want to do specific actions in your house, when you want full control, then enable the autonomy again after.
My family of 8 sims goes nuts when the autonomy is on and I want to do something totally under my control, they move too fast, leave too soon, stay still waiting for a sim from the other side of the map to interact with it and never start what I commanded. Full Autonomy in the moment has too much "domination" over manual interactions, I think.