in case the post is hard to find, here's the solution proposed:
This solved my question Solvedby Shrooblord on Jan 19, 2016 12:18 PM
Yes, I tried that already.
However, there was definitely something wrong with the SMC. I looked at System Information (in Applications > Utilities) and found that the SMC firmware version was denoted 0.000. That seemed very strange.
I looked around on the Apple support website and ended up on this webpage
About EFI and SMC firmware updates for Intel-based Mac computers - Apple Support
where you can download firmware for various Mac models and their SMCs. Look under iMac Late 2013 and under the SMC Version column to get your firmware download.
After installing the firmware (this took literally 2 minutes), the fans stopped immediately. I put my ear close to the fans and you can hear them whirring very silently again. So they're back to normal operational parameters! Success!
So it seemed somehow during the installation of OS X El Capitan my SMC firmware got wiped, or corrupted, or flushed, or in any case made unusable. Downloading the firmware again from Apple Support was the solution!
Thanks for taking time to look into the problem guys,
Shrooblord
THANKS TO YOU SHROOBLORD !