I've had the intermittent flicker/shutdown of a new (purchased in May 2014) Thunderbolt display plugged into a MacBook Air bought at the same time.
I found a bash script on another section of this forum, and ran it in Terminal. The following is the result. The OP said to post it in the forum, and that someone might be able to see what's going on.
Start time: 20:26:10 07/31/14
Model Identifier: MacBookAir6,2
System Version: OS X 10.9.4 (13E28)
Kernel Version: Darwin 13.3.0
Boot Mode: Normal
Time since boot: 4 days 9:25
USB
My Passport 0748 (Western Digital Technologies, Inc.)
Diagnostic reports
2014-07-05 Captive Network Assistant crash
2014-07-17 Mail crash
2014-07-17 Mail crash
2014-07-17 Mail crash
2014-07-17 Mail crash
2014-07-17 Mail crash
2014-07-26 Empire Total War crash
Log
Jul 31 11:37:46 jnl: disk1s2: replay_journal: from: 148611072 to: 154030080 (joffset 0x3a38000)
Jul 31 11:37:54 jnl: disk1s2: journal replay done.
Jul 31 11:39:54 PM notification timeout (pid 2167, Messages)
Jul 31 11:41:38 PM notification timeout (pid 2167, Messages)
Jul 31 15:01:32 PM notification timeout (pid 2167, Messages)
Jul 31 15:02:02 PM notification timeout (pid 2167, Messages)
Jul 31 17:08:30 jnl: disk1s2: do_jnl_io: strategy err 0x6
Jul 31 17:08:30 jnl: disk1s2: write_journal_header: error writing the journal header!
Jul 31 17:08:30 jnl: disk1s2: close: journal 0xffffff801c3b5c20, is invalid. aborting outstanding transactions
Jul 31 17:11:28 PM notification timeout (pid 2167, Messages)
Jul 31 20:03:58 jnl: disk1s2: replay_journal: from: 155074560 to: 2007040 (joffset 0x3a38000)
Jul 31 20:04:11 jnl: disk1s2: journal replay done.
Jul 31 20:04:56 IOPPF: Sent cpu-plimit-notification last value 4 (rounded time weighted average 4)
Jul 31 20:05:34 IOPPF: Sent cpu-plimit-notification last value 1 (rounded time weighted average 2)
Jul 31 20:05:45 IOPPF: Sent cpu-plimit-notification last value 8 (rounded time weighted average 4)
Jul 31 20:06:04 IOPPF: Sent cpu-plimit-notification last value 1 (rounded time weighted average 2)
Jul 31 20:06:15 IOPPF: Sent cpu-plimit-notification last value 5 (rounded time weighted average 3)
Jul 31 20:06:26 IOPPF: Sent cpu-plimit-notification last value 4 (rounded time weighted average 2)
Jul 31 20:06:37 IOPPF: Sent cpu-plimit-notification last value 8 (rounded time weighted average 6)
Jul 31 20:07:00 process Dropbox[4482] thread 406921 caught burning CPU! It used more than 50% CPU (Actual recent usage: 55%) over 180 seconds. thread lifetime cpu usage 95.679518 seconds, (81.646807 user, 14.032711 system) ledger info: balance: 90002073598 credit: 90002073598 debit: 0 limit: 90000000000 (50%) period: 180000000000 time since last refill (ns): 161221790159
Jul 31 20:22:52 jnl: disk1s2: do_jnl_io: strategy err 0x6
Jul 31 20:22:52 jnl: disk1s2: write_journal_header: error writing the journal header!
Jul 31 20:22:52 jnl: disk1s2: close: journal 0xffffff801c3b5c20, is invalid. aborting outstanding transactions
Jul 31 20:22:59 jnl: disk1s2: replay_journal: from: 2007040 to: 8982528 (joffset 0x3a38000)
Jul 31 20:23:12 jnl: disk1s2: journal replay done.
Swap (MiB): 5256
Activity
CPU: user 8%, system 12%
CPU per process: backupd (UID 0) is using 82 %
I/O per process: backupd (UID 0) is using 2 MB/s
Daemons
com.oracle.java.Helper-Tool
com.microsoft.office.licensing.helper
com.adobe.fpsaud
Agents
com.fiplab.MailTabHelper
com.fiplab.MenuTabHelper
com.fiplab.MailTabProHelper
com.oracle.java.Java-Updater
com.citrixonline.GoToMeeting.G2MUpdate
launchd
/Library/LaunchAgents/com.oracle.java.Java-Updater.plist
- com.oracle.java.Java-Updater
/Library/LaunchDaemons/com.adobe.fpsaud.plist
- com.adobe.fpsaud
/Library/LaunchDaemons/com.microsoft.office.licensing.helper.plist
- com.microsoft.office.licensing.helper
/Library/LaunchDaemons/com.oracle.java.Helper-Tool.plist
- com.oracle.java.Helper-Tool
Library/LaunchAgents/com.citrixonline.GoToMeeting.G2MUpdate.plist
- com.citrixonline.GoToMeeting.G2MUpdate
Bundles
/Library/Internet Plug-Ins/Flash Player.plugin
- N/A
/Library/Internet Plug-Ins/JavaAppletPlugin.plugin
- com.oracle.java.JavaAppletPlugin
/Library/Internet Plug-Ins/MeetingJoinPlugin.plugin
- com.microsoft.communicator.meetingjoinplugin
/Library/Internet Plug-Ins/SharePointBrowserPlugin.plugin
- com.microsoft.sharepoint.browserplugin
/Library/Internet Plug-Ins/SharePointWebKitPlugin.webplugin
- com.microsoft.sharepoint.webkitplugin
/Library/Internet Plug-Ins/Silverlight.plugin
- com.microsoft.SilverlightPlugin
/Library/PreferencePanes/Flash Player.prefPane
- com.adobe.flashplayerpreferences
/Library/PreferencePanes/JavaControlPanel.prefPane
- com.oracle.java.JavaControlPanel
Library/Caches/com.apple.Safari/Extensions/1Password.safariextension
- com.agilebits.onepassword4-safari
Library/Internet Plug-Ins/CitrixOnlineWebDeploymentPlugin.plugin
- com.citrixonline.mac.WebDeploymentPlugin
Apps
/Volumes/TimeMachine3/Applications/Dropbox.app
/Applications/Dropbox.app
Font issues: 21
DNS: 75.75.76.76 (static)
Safari extensions
1Password
Restricted files: 195
Elapsed time (s): 187