**EXHIBIT 10.1****Long Term Revolving Note**     Note Date: April 16, 2007 $10,000,000.00Maturity Date: April 16, 2012  **FOR VALUE RECEIVED**, RED TRAIL ENERGY, LLC, a North Dakota limited liability company (“BORROWER”)promises to pay to the order of First National Bank of Omaha (“BANK”), at its principal office orsuch other address as BANK or holder may designate from time to time, the principal sum of TenMillion and 00/100 Dollars ($10,000,000.00), or the amount shown on the BANK’s records to beoutstanding, plus interest (calculated on the basis of actual days elapsed in a 360-day year)accruing each day on the unpaid principal balance at the annual interest rates defined below.Absent manifest error, the BANK’S records shall be conclusive evidence of the principal and accruedinterest owing hereunder.This promissory note is executed pursuant to a Construction Loan Agreement between BORROWER andBANK dated as of December 16, 2005, (the Construction Loan Agreement, together with all amendmentsthereto is called the “AGREEMENT”). All capitalized terms not otherwise defined in this note shallhave the meanings provided in the AGREEMENT.**INTEREST ACCRUAL.**Interest on the principal amount outstanding shall accrue based on a one monthLIBOR RATE plus three hundred forty (340) basis points from time to time until maturity, and at theLIBOR RATE plus six hundred (600) basis points in excess of said aggregate interest rate from timeto time after maturity, whether by acceleration or otherwise. Interest shall be calculated on thebasis of a 360-day year, counting the actual number of days elapsed.**REVOLVING FEATURE.**The BORROWER may reborrow, on a revolving basis, that principal amount repaidon this promissory note which remains at a variable interest rate. BORROWER will pay BANK anunused commitment fee of three-tenths of one percent (3/10%) assessed quarterly in arrears againstthe unused portion of the note amount. Pursuant to this revolving loan feature the BANK will lendthe BORROWER, from time to time until maturity of this note such sums as the BORROWER may requestby reasonable same day notice to the BANK, received by the BANK not later than 11:00 A.M. Omahatime, but which shall not exceed in the aggregate principal amount at any one time outstanding,$10,000,000.00. The BORROWER may borrow, repay and reborrow hereunder, from the date of thisAGREEMENT until the maturity of this note, said amount or any lesser sum which is $10,000.00 or anintegral multiple thereof.**INCENTIVE PRICING.**The interest rate applicable to this promissory note is subject to reductionafter a date six months subsequent to CONSTRUCTION COMPLETION DATE, based on the business resultsof BORROWER. In the event that BORROWER maintains the following ratios, measured monthly, theinterest rates will be reduced accordingly:
1

 
     If INDEBTEDNESS to NET WORTH   is less than: Interest will be: 1.15: 1.00 LIBOR RATE plus 325 basis points1.00: 1.00 LIBOR RATE plus 300 basis points.75 : 1.00 LIBOR RATE plus 275 basis points**REPAYMENT TERMS.**Interest and principal shall be paid as set forth in the AGREEMENT, Any remainingprincipal balance, plus any accrued but unpaid interest, shall be fully due and payable on April16, 2012; if not sooner paid.**PREPAYMENT.**The BORROWER may prepay this promissory note in full or in part at any time.Provided, however, a condition of any prepayment of all of the FIXED RATE NOTE, VARIABLE RATE NOTE,and LONG TERM REVOLVING NOTE is that certain fees shall be paid to BANK. If such completeprepayment occurs within the first three years following COMPLETION DATE, a fee of one (1%) percentof the amount prepaid shall be paid to BANK. Any prepayment may be applied in inverse order ofmaturity or as the BANK in its sole. discretion may deem appropriate. Such prepayment shall notexcuse the BORROWER from making subsequent payments each quarter until the indebtedness is paid infull. No payment of EXCESS CASH FLOW shall be the cause of a payment to BANK for interest ratebreakage fees or otherwise result in any prepayment fee.**ADDITIONAL TERMS AND CONDITIONS.**The AGREEMENT, and any amendments or substitutions, containsadditional terms and conditions, including default and acceleration provisions, which areincorporated into this promissory note by reference. The BORROWER agrees to pay all costs ofcollection, including reasonable attorneys fees and legal expenses incurred by the BANK if thispromissory note is not paid as provided above. This promissory note shall be governed by thesubstantive laws of the State of Nebraska.**WAIVER OF PRESENTMENT AND NOTICE OF DISHONOR.**BORROWER and any other person who signs, guaranteesor endorses this promissory note, to the extent allowed by law, hereby waives presentment, demandfor payment, notice of dishonor, protest, and any notice relating to the acceleration of thematurity of this promissory note.      **RED TRAIL ENERGY, LLC**