My experience is nearly always (but not always) being sent to secondary screening for anywhere from 20 minutes to 3 hours. When due to the detention I have missed an onward domestic connection, my airlines have always re-booked me without charge. My luggage is manually searched probably 2/3 of the time. Treatment from CBP officers varies from respectful just-doing-my-job (maybe 1 in 10 officers) to outright hostile (maybe 5 in 10 officers).
So long as you provide evidence for your claim to US citizenship--especially a valid passport--a 30 hour detention is certainly unreasonable, and @sneak should seriously consider filing a lawsuit against the director of the DHS for the constitutional tort and for violating his civil rights under color of law. Ideally he/she would seek injunctive relief preventing DHS/CBP from detaining people presenting themselves at the US border and claiming US citizenship for any longer than is necessary to verify the validity of the claim to citizenship.
Airport CBP checkpoints are extensively surveilled, and documentary proof of these violations can be subpoenaed. If actually filing a lawsuit is too much, you can submit a FOIA and Privacy Act request for all data CBP holds on you, including your TECS records. I doubt you can get audiovisual surveillance data without litigating a FOIA case, but it's also worth a shot. Prepare to wait 1+ year in any case.