

<!--XBRL Document Created with Wdesk from Workiva-->
<!-- -->
<linkbase xsi:schemaLocation="http://www.xbrl.org/2003/linkbase http://www.xbrl.org/2003/xbrl-linkbase-2003-12-31.xsd" xmlns="http://www.xbrl.org/2003/linkbase" xmlns:xbrldt="http://xbrl.org/2005/xbrldt" xmlns:xlink="http://www.w3.org/1999/xlink" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
  <roleRef roleURI="http://www.oesx.com/role/Acquisition" xlink:href="oesx-20160331.xsd#Acquisition" xlink:type="simple" />
  <roleRef roleURI="http://www.oesx.com/role/AcquisitionAcquisitionAgreementDetails" xlink:href="oesx-20160331.xsd#AcquisitionAcquisitionAgreementDetails" xlink:type="simple" />
  <roleRef roleURI="http://www.oesx.com/role/AcquisitionContingentConsiderationDetails" xlink:href="oesx-20160331.xsd#AcquisitionContingentConsiderationDetails" xlink:type="simple" />
  <roleRef roleURI="http://www.oesx.com/role/CommitmentsAndContingencies" xlink:href="oesx-20160331.xsd#CommitmentsAndContingencies" xlink:type="simple" />
  <roleRef roleURI="http://www.oesx.com/role/CommitmentsAndContingenciesDetailsTextual" xlink:href="oesx-20160331.xsd#CommitmentsAndContingenciesDetailsTextual" xlink:type="simple" />
  <roleRef roleURI="http://www.oesx.com/role/CommitmentsAndContingenciesScheduleOfAnnualCommitmentsUnderNonCancelableOperatingAgreementsDetails" xlink:href="oesx-20160331.xsd#CommitmentsAndContingenciesScheduleOfAnnualCommitmentsUnderNonCancelableOperatingAgreementsDetails" xlink:type="simple" />
  <roleRef roleURI="http://www.oesx.com/role/CommitmentsAndContingenciesTables" xlink:href="oesx-20160331.xsd#CommitmentsAndContingenciesTables" xlink:type="simple" />
  <roleRef roleURI="http://www.oesx.com/role/ConsolidatedBalanceSheets" xlink:href="oesx-20160331.xsd#ConsolidatedBalanceSheets" xlink:type="simple" />
  <roleRef roleURI="http://www.oesx.com/role/ConsolidatedBalanceSheetsParenthetical" xlink:href="oesx-20160331.xsd#ConsolidatedBalanceSheetsParenthetical" xlink:type="simple" />
  <roleRef roleURI="http://www.oesx.com/role/ConsolidatedStatementsOfCashFlows" xlink:href="oesx-20160331.xsd#ConsolidatedStatementsOfCashFlows" xlink:type="simple" />
  <roleRef roleURI="http://www.oesx.com/role/ConsolidatedStatementsOfOperationsAndComprehensiveIncome" xlink:href="oesx-20160331.xsd#ConsolidatedStatementsOfOperationsAndComprehensiveIncome" xlink:type="simple" />
  <roleRef roleURI="http://www.oesx.com/role/DescriptionOfBusiness" xlink:href="oesx-20160331.xsd#DescriptionOfBusiness" xlink:type="simple" />
  <roleRef roleURI="http://www.oesx.com/role/DocumentAndEntityInformation" xlink:href="oesx-20160331.xsd#DocumentAndEntityInformation" xlink:type="simple" />
  <roleRef roleURI="http://www.oesx.com/role/IncomeTaxes" xlink:href="oesx-20160331.xsd#IncomeTaxes" xlink:type="simple" />
  <roleRef roleURI="http://www.oesx.com/role/IncomeTaxesDetailsTextual" xlink:href="oesx-20160331.xsd#IncomeTaxesDetailsTextual" xlink:type="simple" />
  <roleRef roleURI="http://www.oesx.com/role/IncomeTaxesReconciliationOfTaxRatesDetails" xlink:href="oesx-20160331.xsd#IncomeTaxesReconciliationOfTaxRatesDetails" xlink:type="simple" />
  <roleRef roleURI="http://www.oesx.com/role/IncomeTaxesScheduleOfComponentsOfIncomeTaxExpenseOrBenefitDetails" xlink:href="oesx-20160331.xsd#IncomeTaxesScheduleOfComponentsOfIncomeTaxExpenseOrBenefitDetails" xlink:type="simple" />
  <roleRef roleURI="http://www.oesx.com/role/IncomeTaxesScheduleOfDeferredTaxAssetsAndLiabilitiesDetails" xlink:href="oesx-20160331.xsd#IncomeTaxesScheduleOfDeferredTaxAssetsAndLiabilitiesDetails" xlink:type="simple" />
  <roleRef roleURI="http://www.oesx.com/role/IncomeTaxesTables" xlink:href="oesx-20160331.xsd#IncomeTaxesTables" xlink:type="simple" />
  <roleRef roleURI="http://www.oesx.com/role/IncomeTaxesUnrecognizedTaxBenefitActivityDetails" xlink:href="oesx-20160331.xsd#IncomeTaxesUnrecognizedTaxBenefitActivityDetails" xlink:type="simple" />
  <roleRef roleURI="http://www.oesx.com/role/LongTermDebt" xlink:href="oesx-20160331.xsd#LongTermDebt" xlink:type="simple" />
  <roleRef roleURI="http://www.oesx.com/role/LongTermDebtAggregateMaturitiesDetails" xlink:href="oesx-20160331.xsd#LongTermDebtAggregateMaturitiesDetails" xlink:type="simple" />
  <roleRef roleURI="http://www.oesx.com/role/LongTermDebtAllOtherDebtDetails" xlink:href="oesx-20160331.xsd#LongTermDebtAllOtherDebtDetails" xlink:type="simple" />
  <roleRef roleURI="http://www.oesx.com/role/LongTermDebtDetails" xlink:href="oesx-20160331.xsd#LongTermDebtDetails" xlink:type="simple" />
  <roleRef roleURI="http://www.oesx.com/role/LongTermDebtRevolvingCreditFacilityDetails" xlink:href="oesx-20160331.xsd#LongTermDebtRevolvingCreditFacilityDetails" xlink:type="simple" />
  <roleRef roleURI="http://www.oesx.com/role/LongTermDebtTables" xlink:href="oesx-20160331.xsd#LongTermDebtTables" xlink:type="simple" />
  <roleRef roleURI="http://www.oesx.com/role/QuarterlyFinancialDataDetails" xlink:href="oesx-20160331.xsd#QuarterlyFinancialDataDetails" xlink:type="simple" />
  <roleRef roleURI="http://www.oesx.com/role/QuarterlyFinancialDataUnaudited" xlink:href="oesx-20160331.xsd#QuarterlyFinancialDataUnaudited" xlink:type="simple" />
  <roleRef roleURI="http://www.oesx.com/role/QuarterlyFinancialDataUnauditedTables" xlink:href="oesx-20160331.xsd#QuarterlyFinancialDataUnauditedTables" xlink:type="simple" />
  <roleRef roleURI="http://www.oesx.com/role/RelatedPartyTransactions" xlink:href="oesx-20160331.xsd#RelatedPartyTransactions" xlink:type="simple" />
  <roleRef roleURI="http://www.oesx.com/role/RelatedPartyTransactionsDetails" xlink:href="oesx-20160331.xsd#RelatedPartyTransactionsDetails" xlink:type="simple" />
  <roleRef roleURI="http://www.oesx.com/role/SegmentData" xlink:href="oesx-20160331.xsd#SegmentData" xlink:type="simple" />
  <roleRef roleURI="http://www.oesx.com/role/SegmentDataReconciliationOfSegmentAssetsAndLiabilitiesDetails" xlink:href="oesx-20160331.xsd#SegmentDataReconciliationOfSegmentAssetsAndLiabilitiesDetails" xlink:type="simple" />
  <roleRef roleURI="http://www.oesx.com/role/SegmentDataReconciliationOfSegmentOperationsDetails" xlink:href="oesx-20160331.xsd#SegmentDataReconciliationOfSegmentOperationsDetails" xlink:type="simple" />
  <roleRef roleURI="http://www.oesx.com/role/SegmentDataTables" xlink:href="oesx-20160331.xsd#SegmentDataTables" xlink:type="simple" />
  <roleRef roleURI="http://www.oesx.com/role/ShareholdersEquity" xlink:href="oesx-20160331.xsd#ShareholdersEquity" xlink:type="simple" />
  <roleRef roleURI="http://www.oesx.com/role/ShareholdersEquityDetailsTextual" xlink:href="oesx-20160331.xsd#ShareholdersEquityDetailsTextual" xlink:type="simple" />
  <roleRef roleURI="http://www.oesx.com/role/ShareholdersEquityScheduleOfEsppActivityDetails" xlink:href="oesx-20160331.xsd#ShareholdersEquityScheduleOfEsppActivityDetails" xlink:type="simple" />
  <roleRef roleURI="http://www.oesx.com/role/ShareholdersEquityTables" xlink:href="oesx-20160331.xsd#ShareholdersEquityTables" xlink:type="simple" />
  <roleRef roleURI="http://www.oesx.com/role/StatementsOfShareholdersEquity" xlink:href="oesx-20160331.xsd#StatementsOfShareholdersEquity" xlink:type="simple" />
  <roleRef roleURI="http://www.oesx.com/role/StockOptionsRestrictedSharesAndWarrants" xlink:href="oesx-20160331.xsd#StockOptionsRestrictedSharesAndWarrants" xlink:type="simple" />
  <roleRef roleURI="http://www.oesx.com/role/StockOptionsRestrictedSharesAndWarrantsDetailsTextual" xlink:href="oesx-20160331.xsd#StockOptionsRestrictedSharesAndWarrantsDetailsTextual" xlink:type="simple" />
  <roleRef roleURI="http://www.oesx.com/role/StockOptionsRestrictedSharesAndWarrantsOutstandingWarrantsDetails" xlink:href="oesx-20160331.xsd#StockOptionsRestrictedSharesAndWarrantsOutstandingWarrantsDetails" xlink:type="simple" />
  <roleRef roleURI="http://www.oesx.com/role/StockOptionsRestrictedSharesAndWarrantsScheduleOfRestrictedSharesDetails" xlink:href="oesx-20160331.xsd#StockOptionsRestrictedSharesAndWarrantsScheduleOfRestrictedSharesDetails" xlink:type="simple" />
  <roleRef roleURI="http://www.oesx.com/role/StockOptionsRestrictedSharesAndWarrantsScheduleOfSharesAvailableForGrantDetails" xlink:href="oesx-20160331.xsd#StockOptionsRestrictedSharesAndWarrantsScheduleOfSharesAvailableForGrantDetails" xlink:type="simple" />
  <roleRef roleURI="http://www.oesx.com/role/StockOptionsRestrictedSharesAndWarrantsStockBasedCompensationDetails" xlink:href="oesx-20160331.xsd#StockOptionsRestrictedSharesAndWarrantsStockBasedCompensationDetails" xlink:type="simple" />
  <roleRef roleURI="http://www.oesx.com/role/StockOptionsRestrictedSharesAndWarrantsSummaryOfExercisePriceRangeDetails" xlink:href="oesx-20160331.xsd#StockOptionsRestrictedSharesAndWarrantsSummaryOfExercisePriceRangeDetails" xlink:type="simple" />
  <roleRef roleURI="http://www.oesx.com/role/StockOptionsRestrictedSharesAndWarrantsSummaryOfOutstandingStockOptionsDetails" xlink:href="oesx-20160331.xsd#StockOptionsRestrictedSharesAndWarrantsSummaryOfOutstandingStockOptionsDetails" xlink:type="simple" />
  <roleRef roleURI="http://www.oesx.com/role/StockOptionsRestrictedSharesAndWarrantsSummaryOfUnrecognizedCompensationCostDetails" xlink:href="oesx-20160331.xsd#StockOptionsRestrictedSharesAndWarrantsSummaryOfUnrecognizedCompensationCostDetails" xlink:type="simple" />
  <roleRef roleURI="http://www.oesx.com/role/StockOptionsRestrictedSharesAndWarrantsTables" xlink:href="oesx-20160331.xsd#StockOptionsRestrictedSharesAndWarrantsTables" xlink:type="simple" />
  <roleRef roleURI="http://www.oesx.com/role/SubsequentEvents" xlink:href="oesx-20160331.xsd#SubsequentEvents" xlink:type="simple" />
  <roleRef roleURI="http://www.oesx.com/role/SummaryOfSignificantAccountingPolicies" xlink:href="oesx-20160331.xsd#SummaryOfSignificantAccountingPolicies" xlink:type="simple" />
  <roleRef roleURI="http://www.oesx.com/role/SummaryOfSignificantAccountingPoliciesAccountsReceivableDetails" xlink:href="oesx-20160331.xsd#SummaryOfSignificantAccountingPoliciesAccountsReceivableDetails" xlink:type="simple" />
  <roleRef roleURI="http://www.oesx.com/role/SummaryOfSignificantAccountingPoliciesAccruedExpensesAndOtherDetails" xlink:href="oesx-20160331.xsd#SummaryOfSignificantAccountingPoliciesAccruedExpensesAndOtherDetails" xlink:type="simple" />
  <roleRef roleURI="http://www.oesx.com/role/SummaryOfSignificantAccountingPoliciesConcentrationRiskDetails" xlink:href="oesx-20160331.xsd#SummaryOfSignificantAccountingPoliciesConcentrationRiskDetails" xlink:type="simple" />
  <roleRef roleURI="http://www.oesx.com/role/SummaryOfSignificantAccountingPoliciesDilutiveSecuritiesDetails" xlink:href="oesx-20160331.xsd#SummaryOfSignificantAccountingPoliciesDilutiveSecuritiesDetails" xlink:type="simple" />
  <roleRef roleURI="http://www.oesx.com/role/SummaryOfSignificantAccountingPoliciesEpsDetails" xlink:href="oesx-20160331.xsd#SummaryOfSignificantAccountingPoliciesEpsDetails" xlink:type="simple" />
  <roleRef roleURI="http://www.oesx.com/role/SummaryOfSignificantAccountingPoliciesEquipmentUnderCapitalLeasesDetails" xlink:href="oesx-20160331.xsd#SummaryOfSignificantAccountingPoliciesEquipmentUnderCapitalLeasesDetails" xlink:type="simple" />
  <roleRef roleURI="http://www.oesx.com/role/SummaryOfSignificantAccountingPoliciesFinancingReceivablesDetails" xlink:href="oesx-20160331.xsd#SummaryOfSignificantAccountingPoliciesFinancingReceivablesDetails" xlink:type="simple" />
  <roleRef roleURI="http://www.oesx.com/role/SummaryOfSignificantAccountingPoliciesGoodwillAndOtherIntangibleAssetsDetails" xlink:href="oesx-20160331.xsd#SummaryOfSignificantAccountingPoliciesGoodwillAndOtherIntangibleAssetsDetails" xlink:type="simple" />
  <roleRef roleURI="http://www.oesx.com/role/SummaryOfSignificantAccountingPoliciesIncentiveCompDetails" xlink:href="oesx-20160331.xsd#SummaryOfSignificantAccountingPoliciesIncentiveCompDetails" xlink:type="simple" />
  <roleRef roleURI="http://www.oesx.com/role/SummaryOfSignificantAccountingPoliciesInventoriesDetails" xlink:href="oesx-20160331.xsd#SummaryOfSignificantAccountingPoliciesInventoriesDetails" xlink:type="simple" />
  <roleRef roleURI="http://www.oesx.com/role/SummaryOfSignificantAccountingPoliciesNarrativeDetails" xlink:href="oesx-20160331.xsd#SummaryOfSignificantAccountingPoliciesNarrativeDetails" xlink:type="simple" />
  <roleRef roleURI="http://www.oesx.com/role/SummaryOfSignificantAccountingPoliciesOtherLongTermAssetsDetails" xlink:href="oesx-20160331.xsd#SummaryOfSignificantAccountingPoliciesOtherLongTermAssetsDetails" xlink:type="simple" />
  <roleRef roleURI="http://www.oesx.com/role/SummaryOfSignificantAccountingPoliciesPolicies" xlink:href="oesx-20160331.xsd#SummaryOfSignificantAccountingPoliciesPolicies" xlink:type="simple" />
  <roleRef roleURI="http://www.oesx.com/role/SummaryOfSignificantAccountingPoliciesPpeUsefulLivesDetails" xlink:href="oesx-20160331.xsd#SummaryOfSignificantAccountingPoliciesPpeUsefulLivesDetails" xlink:type="simple" />
  <roleRef roleURI="http://www.oesx.com/role/SummaryOfSignificantAccountingPoliciesPrepaidExpensesAndOtherCurrentAssetsDetails" xlink:href="oesx-20160331.xsd#SummaryOfSignificantAccountingPoliciesPrepaidExpensesAndOtherCurrentAssetsDetails" xlink:type="simple" />
  <roleRef roleURI="http://www.oesx.com/role/SummaryOfSignificantAccountingPoliciesPropPlantAndEquipDetails" xlink:href="oesx-20160331.xsd#SummaryOfSignificantAccountingPoliciesPropPlantAndEquipDetails" xlink:type="simple" />
  <roleRef roleURI="http://www.oesx.com/role/SummaryOfSignificantAccountingPoliciesStockOptionAssumptionsDetails" xlink:href="oesx-20160331.xsd#SummaryOfSignificantAccountingPoliciesStockOptionAssumptionsDetails" xlink:type="simple" />
  <roleRef roleURI="http://www.oesx.com/role/SummaryOfSignificantAccountingPoliciesTables" xlink:href="oesx-20160331.xsd#SummaryOfSignificantAccountingPoliciesTables" xlink:type="simple" />
  <roleRef roleURI="http://www.oesx.com/role/SummaryOfSignificantAccountingPoliciesWarrantyAccrualDetails" xlink:href="oesx-20160331.xsd#SummaryOfSignificantAccountingPoliciesWarrantyAccrualDetails" xlink:type="simple" />
  <arcroleRef arcroleURI="http://xbrl.org/int/dim/arcrole/all" xlink:href="http://www.xbrl.org/2005/xbrldt-2005.xsd#all" xlink:type="simple" />
  <arcroleRef arcroleURI="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:href="http://www.xbrl.org/2005/xbrldt-2005.xsd#dimension-default" xlink:type="simple" />
  <arcroleRef arcroleURI="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:href="http://www.xbrl.org/2005/xbrldt-2005.xsd#dimension-domain" xlink:type="simple" />
  <arcroleRef arcroleURI="http://xbrl.org/int/dim/arcrole/domain-member" xlink:href="http://www.xbrl.org/2005/xbrldt-2005.xsd#domain-member" xlink:type="simple" />
  <arcroleRef arcroleURI="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:href="http://www.xbrl.org/2005/xbrldt-2005.xsd#hypercube-dimension" xlink:type="simple" />
  <definitionLink xlink:role="http://www.oesx.com/role/Acquisition" xlink:type="extended" />
  <definitionLink xlink:role="http://www.oesx.com/role/AcquisitionAcquisitionAgreementDetails" xlink:type="extended">
    <loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_BusinessAcquisitionLineItems" xlink:label="loc_us-gaap_BusinessAcquisitionLineItems_0BD0C24164FA22B78007738409614DDB" xlink:type="locator" />
    <loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_ScheduleOfBusinessAcquisitionsByAcquisitionTable" xlink:label="loc_us-gaap_ScheduleOfBusinessAcquisitionsByAcquisitionTable_F415B329E207BD80A52F738409605324" xlink:type="locator" />
    <definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/all" xlink:from="loc_us-gaap_BusinessAcquisitionLineItems_0BD0C24164FA22B78007738409614DDB" xlink:to="loc_us-gaap_ScheduleOfBusinessAcquisitionsByAcquisitionTable_F415B329E207BD80A52F738409605324" xlink:type="arc" xbrldt:closed="true" xbrldt:contextElement="segment" />
    <loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_BusinessAcquisitionAxis" xlink:label="loc_us-gaap_BusinessAcquisitionAxis_C6459954C0E14E954DB573840961687C" xlink:type="locator" />
    <definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_ScheduleOfBusinessAcquisitionsByAcquisitionTable_F415B329E207BD80A52F738409605324" xlink:to="loc_us-gaap_BusinessAcquisitionAxis_C6459954C0E14E954DB573840961687C" xlink:type="arc" />
    <loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_BusinessAcquisitionAcquireeDomain" xlink:label="loc_us-gaap_BusinessAcquisitionAcquireeDomain_562A86130DBEE397650873840961A573_default" xlink:type="locator" />
    <definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_BusinessAcquisitionAxis_C6459954C0E14E954DB573840961687C" xlink:to="loc_us-gaap_BusinessAcquisitionAcquireeDomain_562A86130DBEE397650873840961A573_default" xlink:type="arc" />
    <loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_BusinessAcquisitionAcquireeDomain" xlink:label="loc_us-gaap_BusinessAcquisitionAcquireeDomain_562A86130DBEE397650873840961A573" xlink:type="locator" />
    <definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_BusinessAcquisitionAxis_C6459954C0E14E954DB573840961687C" xlink:to="loc_us-gaap_BusinessAcquisitionAcquireeDomain_562A86130DBEE397650873840961A573" xlink:type="arc" />
    <loc xlink:href="oesx-20160331.xsd#oesx_HarrisMember" xlink:label="loc_oesx_HarrisMember_347A431377602632B91873840961A973" xlink:type="locator" />
    <definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_BusinessAcquisitionAcquireeDomain_562A86130DBEE397650873840961A573" xlink:to="loc_oesx_HarrisMember_347A431377602632B91873840961A973" xlink:type="arc" />
    <loc xlink:href="oesx-20160331.xsd#oesx_BusinessCombinationConsiderationTransferredInitialPurchaseAgreementAmount" xlink:label="loc_oesx_BusinessCombinationConsiderationTransferredInitialPurchaseAgreementAmount_2532D3966D2C378BAF6273840961B14B" xlink:type="locator" />
    <definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_BusinessAcquisitionLineItems_0BD0C24164FA22B78007738409614DDB" xlink:to="loc_oesx_BusinessCombinationConsiderationTransferredInitialPurchaseAgreementAmount_2532D3966D2C378BAF6273840961B14B" xlink:type="arc" />
    <loc xlink:href="oesx-20160331.xsd#oesx_BusinessCombinationConsiderationTransferredInitialPurchaseAgreementContingentAdjustmentAmount" xlink:label="loc_oesx_BusinessCombinationConsiderationTransferredInitialPurchaseAgreementContingentAdjustmentAmount_03A0A516E7F779B16505738409617789" xlink:type="locator" />
    <definitionArc order="2" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_BusinessAcquisitionLineItems_0BD0C24164FA22B78007738409614DDB" xlink:to="loc_oesx_BusinessCombinationConsiderationTransferredInitialPurchaseAgreementContingentAdjustmentAmount_03A0A516E7F779B16505738409617789" xlink:type="arc" />
    <loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_BusinessCombinationContingentConsiderationLiability" xlink:label="loc_us-gaap_BusinessCombinationContingentConsiderationLiability_22FD41C6955FA8140FB0738409612BAD" xlink:type="locator" />
    <definitionArc order="3" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_BusinessAcquisitionLineItems_0BD0C24164FA22B78007738409614DDB" xlink:to="loc_us-gaap_BusinessCombinationContingentConsiderationLiability_22FD41C6955FA8140FB0738409612BAD" xlink:type="arc" />
    <loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_PaymentsToAcquireBusinessesGross" xlink:label="loc_us-gaap_PaymentsToAcquireBusinessesGross_97958A809F5B3FB3B26E738409616E97" xlink:type="locator" />
    <definitionArc order="4" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_BusinessAcquisitionLineItems_0BD0C24164FA22B78007738409614DDB" xlink:to="loc_us-gaap_PaymentsToAcquireBusinessesGross_97958A809F5B3FB3B26E738409616E97" xlink:type="arc" />
    <loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_BusinessCombinationConsiderationTransferredLiabilitiesIncurred" xlink:label="loc_us-gaap_BusinessCombinationConsiderationTransferredLiabilitiesIncurred_886DCFB733F354DFDBE9738409610E5F" xlink:type="locator" />
    <definitionArc order="5" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_BusinessAcquisitionLineItems_0BD0C24164FA22B78007738409614DDB" xlink:to="loc_us-gaap_BusinessCombinationConsiderationTransferredLiabilitiesIncurred_886DCFB733F354DFDBE9738409610E5F" xlink:type="arc" />
    <loc xlink:href="oesx-20160331.xsd#oesx_BusinessCombinationPotentialConsiderationTransferredLiabilitiesIncurredDebtInstrumentTerm" xlink:label="loc_oesx_BusinessCombinationPotentialConsiderationTransferredLiabilitiesIncurredDebtInstrumentTerm_E3304AC87B70797B606273840961AF1E" xlink:type="locator" />
    <definitionArc order="6" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_BusinessAcquisitionLineItems_0BD0C24164FA22B78007738409614DDB" xlink:to="loc_oesx_BusinessCombinationPotentialConsiderationTransferredLiabilitiesIncurredDebtInstrumentTerm_E3304AC87B70797B606273840961AF1E" xlink:type="arc" />
    <loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_BusinessAcquisitionEquityInterestsIssuedOrIssuableNumberOfSharesIssued" xlink:label="loc_us-gaap_BusinessAcquisitionEquityInterestsIssuedOrIssuableNumberOfSharesIssued_A13BED340B752D14E0B473840961F00D" xlink:type="locator" />
    <definitionArc order="7" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_BusinessAcquisitionLineItems_0BD0C24164FA22B78007738409614DDB" xlink:to="loc_us-gaap_BusinessAcquisitionEquityInterestsIssuedOrIssuableNumberOfSharesIssued_A13BED340B752D14E0B473840961F00D" xlink:type="arc" />
    <loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_BusinessAcquisitionEquityInterestIssuedOrIssuableValueAssigned" xlink:label="loc_us-gaap_BusinessAcquisitionEquityInterestIssuedOrIssuableValueAssigned_7EAB82B2DE6E7F74F978738409619939" xlink:type="locator" />
    <definitionArc order="8" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_BusinessAcquisitionLineItems_0BD0C24164FA22B78007738409614DDB" xlink:to="loc_us-gaap_BusinessAcquisitionEquityInterestIssuedOrIssuableValueAssigned_7EAB82B2DE6E7F74F978738409619939" xlink:type="arc" />
    <loc xlink:href="oesx-20160331.xsd#oesx_BusinessAcquisitionAcquisitionConsiderationSharePrice" xlink:label="loc_oesx_BusinessAcquisitionAcquisitionConsiderationSharePrice_1F654A81A6DAD8DD27C9738409613938" xlink:type="locator" />
    <definitionArc order="9" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_BusinessAcquisitionLineItems_0BD0C24164FA22B78007738409614DDB" xlink:to="loc_oesx_BusinessAcquisitionAcquisitionConsiderationSharePrice_1F654A81A6DAD8DD27C9738409613938" xlink:type="arc" />
    <loc xlink:href="oesx-20160331.xsd#oesx_BusinessAcquisitionSharePriceDeterminationThresholdTradingDaysBeforePurchaseAgreement" xlink:label="loc_oesx_BusinessAcquisitionSharePriceDeterminationThresholdTradingDaysBeforePurchaseAgreement_717D4701840F2D1089E873840962315F" xlink:type="locator" />
    <definitionArc order="10" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_BusinessAcquisitionLineItems_0BD0C24164FA22B78007738409614DDB" xlink:to="loc_oesx_BusinessAcquisitionSharePriceDeterminationThresholdTradingDaysBeforePurchaseAgreement_717D4701840F2D1089E873840962315F" xlink:type="arc" />
    <loc xlink:href="oesx-20160331.xsd#oesx_BusinessAcquisitionSharePriceDeterminationThresholdTradingDaysAfterPurchaseAgreement" xlink:label="loc_oesx_BusinessAcquisitionSharePriceDeterminationThresholdTradingDaysAfterPurchaseAgreement_8267D4B9111164B6ABC973840962A786" xlink:type="locator" />
    <definitionArc order="11" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_BusinessAcquisitionLineItems_0BD0C24164FA22B78007738409614DDB" xlink:to="loc_oesx_BusinessAcquisitionSharePriceDeterminationThresholdTradingDaysAfterPurchaseAgreement_8267D4B9111164B6ABC973840962A786" xlink:type="arc" />
    <loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_BusinessAcquisitionSharePrice" xlink:label="loc_us-gaap_BusinessAcquisitionSharePrice_E2374B0C48983E1A674873840962C4C4" xlink:type="locator" />
    <definitionArc order="12" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_BusinessAcquisitionLineItems_0BD0C24164FA22B78007738409614DDB" xlink:to="loc_us-gaap_BusinessAcquisitionSharePrice_E2374B0C48983E1A674873840962C4C4" xlink:type="arc" />
    <loc xlink:href="oesx-20160331.xsd#oesx_BusinessCombinationFixedFutureConsiderationAmount" xlink:label="loc_oesx_BusinessCombinationFixedFutureConsiderationAmount_22A7EA2B7CF5993392E0738409620FD0" xlink:type="locator" />
    <definitionArc order="13" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_BusinessAcquisitionLineItems_0BD0C24164FA22B78007738409614DDB" xlink:to="loc_oesx_BusinessCombinationFixedFutureConsiderationAmount_22A7EA2B7CF5993392E0738409620FD0" xlink:type="arc" />
    <loc xlink:href="oesx-20160331.xsd#oesx_BusinessCombinationFixedFutureConsiderationSharesPricePerShare" xlink:label="loc_oesx_BusinessCombinationFixedFutureConsiderationSharesPricePerShare_55A15BB5797A58DCE12B73840962A384" xlink:type="locator" />
    <definitionArc order="14" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_BusinessAcquisitionLineItems_0BD0C24164FA22B78007738409614DDB" xlink:to="loc_oesx_BusinessCombinationFixedFutureConsiderationSharesPricePerShare_55A15BB5797A58DCE12B73840962A384" xlink:type="arc" />
    <loc xlink:href="oesx-20160331.xsd#oesx_BusinessCombinationFixedFutureConsiderationCash" xlink:label="loc_oesx_BusinessCombinationFixedFutureConsiderationCash_D32DF12102D735F4DA1073840962CD6B" xlink:type="locator" />
    <definitionArc order="15" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_BusinessAcquisitionLineItems_0BD0C24164FA22B78007738409614DDB" xlink:to="loc_oesx_BusinessCombinationFixedFutureConsiderationCash_D32DF12102D735F4DA1073840962CD6B" xlink:type="arc" />
    <loc xlink:href="oesx-20160331.xsd#oesx_BusinessCombinationAcquisitionandIntegrationRelatedCosts" xlink:label="loc_oesx_BusinessCombinationAcquisitionandIntegrationRelatedCosts_ACBED4CC01B9D8F0BF9C738409624F0A" xlink:type="locator" />
    <definitionArc order="16" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_BusinessAcquisitionLineItems_0BD0C24164FA22B78007738409614DDB" xlink:to="loc_oesx_BusinessCombinationAcquisitionandIntegrationRelatedCosts_ACBED4CC01B9D8F0BF9C738409624F0A" xlink:type="arc" />
  </definitionLink>
  <definitionLink xlink:role="http://www.oesx.com/role/AcquisitionContingentConsiderationDetails" xlink:type="extended">
    <loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_BusinessAcquisitionLineItems" xlink:label="loc_us-gaap_BusinessAcquisitionLineItems_70091488E551ADBDCC307320BC8DB063" xlink:type="locator" />
    <loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_ScheduleOfBusinessAcquisitionsByAcquisitionTable" xlink:label="loc_us-gaap_ScheduleOfBusinessAcquisitionsByAcquisitionTable_F69B78C0D85F797AC25A7320BC8D175F" xlink:type="locator" />
    <definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/all" xlink:from="loc_us-gaap_BusinessAcquisitionLineItems_70091488E551ADBDCC307320BC8DB063" xlink:to="loc_us-gaap_ScheduleOfBusinessAcquisitionsByAcquisitionTable_F69B78C0D85F797AC25A7320BC8D175F" xlink:type="arc" xbrldt:closed="true" xbrldt:contextElement="segment" />
    <loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_BusinessAcquisitionAxis" xlink:label="loc_us-gaap_BusinessAcquisitionAxis_EC2BC0225929B0A7251B7320BC8D62B7" xlink:type="locator" />
    <definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_ScheduleOfBusinessAcquisitionsByAcquisitionTable_F69B78C0D85F797AC25A7320BC8D175F" xlink:to="loc_us-gaap_BusinessAcquisitionAxis_EC2BC0225929B0A7251B7320BC8D62B7" xlink:type="arc" />
    <loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_BusinessAcquisitionAcquireeDomain" xlink:label="loc_us-gaap_BusinessAcquisitionAcquireeDomain_BE2A47FCA75795D7B4077320BC8D9680_default" xlink:type="locator" />
    <definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_BusinessAcquisitionAxis_EC2BC0225929B0A7251B7320BC8D62B7" xlink:to="loc_us-gaap_BusinessAcquisitionAcquireeDomain_BE2A47FCA75795D7B4077320BC8D9680_default" xlink:type="arc" />
    <loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_BusinessAcquisitionAcquireeDomain" xlink:label="loc_us-gaap_BusinessAcquisitionAcquireeDomain_BE2A47FCA75795D7B4077320BC8D9680" xlink:type="locator" />
    <definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_BusinessAcquisitionAxis_EC2BC0225929B0A7251B7320BC8D62B7" xlink:to="loc_us-gaap_BusinessAcquisitionAcquireeDomain_BE2A47FCA75795D7B4077320BC8D9680" xlink:type="arc" />
    <loc xlink:href="oesx-20160331.xsd#oesx_HarrisMember" xlink:label="loc_oesx_HarrisMember_937C165534395260D2BE7320BC8DD3F6" xlink:type="locator" />
    <definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_BusinessAcquisitionAcquireeDomain_BE2A47FCA75795D7B4077320BC8D9680" xlink:to="loc_oesx_HarrisMember_937C165534395260D2BE7320BC8DD3F6" xlink:type="arc" />
    <loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_BusinessCombinationContingentConsiderationArrangementsRangeOfOutcomesValueHigh" xlink:label="loc_us-gaap_BusinessCombinationContingentConsiderationArrangementsRangeOfOutcomesValueHigh_555F8EF3B89B1ADC8E7E7320BC8DE473" xlink:type="locator" />
    <definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_BusinessAcquisitionLineItems_70091488E551ADBDCC307320BC8DB063" xlink:to="loc_us-gaap_BusinessCombinationContingentConsiderationArrangementsRangeOfOutcomesValueHigh_555F8EF3B89B1ADC8E7E7320BC8DE473" xlink:type="arc" />
    <loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_BusinessCombinationContingentConsiderationArrangementsRangeOfOutcomesValueLow" xlink:label="loc_us-gaap_BusinessCombinationContingentConsiderationArrangementsRangeOfOutcomesValueLow_C4D1F787118DEC465EBE7320BC8DF987" xlink:type="locator" />
    <definitionArc order="2" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_BusinessAcquisitionLineItems_70091488E551ADBDCC307320BC8DB063" xlink:to="loc_us-gaap_BusinessCombinationContingentConsiderationArrangementsRangeOfOutcomesValueLow_C4D1F787118DEC465EBE7320BC8DF987" xlink:type="arc" />
    <loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_BusinessCombinationContingentConsiderationLiability" xlink:label="loc_us-gaap_BusinessCombinationContingentConsiderationLiability_6D0E940CED5EE61507217320BC8D0062" xlink:type="locator" />
    <definitionArc order="3" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_BusinessAcquisitionLineItems_70091488E551ADBDCC307320BC8DB063" xlink:to="loc_us-gaap_BusinessCombinationContingentConsiderationLiability_6D0E940CED5EE61507217320BC8D0062" xlink:type="arc" />
    <loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_BusinessCombinationContingentConsiderationArrangementsChangeInAmountOfContingentConsiderationLiability1" xlink:label="loc_us-gaap_BusinessCombinationContingentConsiderationArrangementsChangeInAmountOfContingentConsiderationLiability1_1B5100175E166D04E35B7320BC8DC612" xlink:type="locator" />
    <definitionArc order="4" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_BusinessAcquisitionLineItems_70091488E551ADBDCC307320BC8DB063" xlink:to="loc_us-gaap_BusinessCombinationContingentConsiderationArrangementsChangeInAmountOfContingentConsiderationLiability1_1B5100175E166D04E35B7320BC8DC612" xlink:type="arc" />
    <loc xlink:href="oesx-20160331.xsd#oesx_BusinessCombinationContingentConsiderationArrangementsChangeinAmountofContingentConsiderationAdditionalAdjustmentLiability" xlink:label="loc_oesx_BusinessCombinationContingentConsiderationArrangementsChangeinAmountofContingentConsiderationAdditionalAdjustmentLiability_7672610E3F2CFECA4514734668F44DC9" xlink:type="locator" />
    <definitionArc order="5" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_BusinessAcquisitionLineItems_70091488E551ADBDCC307320BC8DB063" xlink:to="loc_oesx_BusinessCombinationContingentConsiderationArrangementsChangeinAmountofContingentConsiderationAdditionalAdjustmentLiability_7672610E3F2CFECA4514734668F44DC9" xlink:type="arc" />
  </definitionLink>
  <definitionLink xlink:role="http://www.oesx.com/role/CommitmentsAndContingencies" xlink:type="extended" />
  <definitionLink xlink:role="http://www.oesx.com/role/CommitmentsAndContingenciesDetailsTextual" xlink:type="extended">
    <loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_LongTermPurchaseCommitmentLineItems" xlink:label="loc_us-gaap_LongTermPurchaseCommitmentLineItems_147D8DAEB625638477867D66EFCDC771" xlink:type="locator" />
    <loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_LongTermPurchaseCommitmentTable" xlink:label="loc_us-gaap_LongTermPurchaseCommitmentTable_2D18C599282E804D89C57D66EFCCE935" xlink:type="locator" />
    <definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/all" xlink:from="loc_us-gaap_LongTermPurchaseCommitmentLineItems_147D8DAEB625638477867D66EFCDC771" xlink:to="loc_us-gaap_LongTermPurchaseCommitmentTable_2D18C599282E804D89C57D66EFCCE935" xlink:type="arc" xbrldt:closed="true" xbrldt:contextElement="segment" />
    <loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_IncomeStatementLocationAxis" xlink:label="loc_us-gaap_IncomeStatementLocationAxis_9772B2C77F32B4A91F827D66EFCD3C31" xlink:type="locator" />
    <definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_LongTermPurchaseCommitmentTable_2D18C599282E804D89C57D66EFCCE935" xlink:to="loc_us-gaap_IncomeStatementLocationAxis_9772B2C77F32B4A91F827D66EFCD3C31" xlink:type="arc" />
    <loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_IncomeStatementLocationDomain" xlink:label="loc_us-gaap_IncomeStatementLocationDomain_FE1D902DB277CB766E407D66EFCD360F_default" xlink:type="locator" />
    <definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_IncomeStatementLocationAxis_9772B2C77F32B4A91F827D66EFCD3C31" xlink:to="loc_us-gaap_IncomeStatementLocationDomain_FE1D902DB277CB766E407D66EFCD360F_default" xlink:type="arc" />
    <loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_IncomeStatementLocationDomain" xlink:label="loc_us-gaap_IncomeStatementLocationDomain_FE1D902DB277CB766E407D66EFCD360F" xlink:type="locator" />
    <definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_IncomeStatementLocationAxis_9772B2C77F32B4A91F827D66EFCD3C31" xlink:to="loc_us-gaap_IncomeStatementLocationDomain_FE1D902DB277CB766E407D66EFCD360F" xlink:type="arc" />
    <loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_GeneralAndAdministrativeExpenseMember" xlink:label="loc_us-gaap_GeneralAndAdministrativeExpenseMember_1B70BCF1153F60F592187D66EFCD6FBA" xlink:type="locator" />
    <definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_IncomeStatementLocationDomain_FE1D902DB277CB766E407D66EFCD360F" xlink:to="loc_us-gaap_GeneralAndAdministrativeExpenseMember_1B70BCF1153F60F592187D66EFCD6FBA" xlink:type="arc" />
    <loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_LongTermPurchaseCommitmentByCategoryOfItemPurchasedAxis" xlink:label="loc_us-gaap_LongTermPurchaseCommitmentByCategoryOfItemPurchasedAxis_F64D11861142876430887D66EFCD00BE" xlink:type="locator" />
    <definitionArc order="2" xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_LongTermPurchaseCommitmentTable_2D18C599282E804D89C57D66EFCCE935" xlink:to="loc_us-gaap_LongTermPurchaseCommitmentByCategoryOfItemPurchasedAxis_F64D11861142876430887D66EFCD00BE" xlink:type="arc" />
    <loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_LongTermPurchaseCommitmentCategoryOfItemPurchasedDomain" xlink:label="loc_us-gaap_LongTermPurchaseCommitmentCategoryOfItemPurchasedDomain_9E92ACBC2AAB32E466F57D66EFCD1D1F_default" xlink:type="locator" />
    <definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_LongTermPurchaseCommitmentByCategoryOfItemPurchasedAxis_F64D11861142876430887D66EFCD00BE" xlink:to="loc_us-gaap_LongTermPurchaseCommitmentCategoryOfItemPurchasedDomain_9E92ACBC2AAB32E466F57D66EFCD1D1F_default" xlink:type="arc" />
    <loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_LongTermPurchaseCommitmentCategoryOfItemPurchasedDomain" xlink:label="loc_us-gaap_LongTermPurchaseCommitmentCategoryOfItemPurchasedDomain_9E92ACBC2AAB32E466F57D66EFCD1D1F" xlink:type="locator" />
    <definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_LongTermPurchaseCommitmentByCategoryOfItemPurchasedAxis_F64D11861142876430887D66EFCD00BE" xlink:to="loc_us-gaap_LongTermPurchaseCommitmentCategoryOfItemPurchasedDomain_9E92ACBC2AAB32E466F57D66EFCD1D1F" xlink:type="arc" />
    <loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_InventoriesMember" xlink:label="loc_us-gaap_InventoriesMember_48ED1B5299F6F04477507D66EFCD7C1F" xlink:type="locator" />
    <definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_LongTermPurchaseCommitmentCategoryOfItemPurchasedDomain_9E92ACBC2AAB32E466F57D66EFCD1D1F" xlink:to="loc_us-gaap_InventoriesMember_48ED1B5299F6F04477507D66EFCD7C1F" xlink:type="arc" />
    <loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_OperatingLeasesRentExpenseNet" xlink:label="loc_us-gaap_OperatingLeasesRentExpenseNet_F55B574D7029159235F37D66EFCD769C" xlink:type="locator" />
    <definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_LongTermPurchaseCommitmentLineItems_147D8DAEB625638477867D66EFCDC771" xlink:to="loc_us-gaap_OperatingLeasesRentExpenseNet_F55B574D7029159235F37D66EFCD769C" xlink:type="arc" />
    <loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_LessorLeasingArrangementsOperatingLeasesTermOfContract" xlink:label="loc_us-gaap_LessorLeasingArrangementsOperatingLeasesTermOfContract_8AC10986174C5A1551927D66EFCDF838" xlink:type="locator" />
    <definitionArc order="2" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_LongTermPurchaseCommitmentLineItems_147D8DAEB625638477867D66EFCDC771" xlink:to="loc_us-gaap_LessorLeasingArrangementsOperatingLeasesTermOfContract_8AC10986174C5A1551927D66EFCDF838" xlink:type="arc" />
    <loc xlink:href="oesx-20160331.xsd#oesx_LessorLeasingArrangementsOperatingLeasesNumberofExtensionOptions" xlink:label="loc_oesx_LessorLeasingArrangementsOperatingLeasesNumberofExtensionOptions_D1E3C847EE8F5DBA9CF47D66EFCDADC4" xlink:type="locator" />
    <definitionArc order="3" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_LongTermPurchaseCommitmentLineItems_147D8DAEB625638477867D66EFCDC771" xlink:to="loc_oesx_LessorLeasingArrangementsOperatingLeasesNumberofExtensionOptions_D1E3C847EE8F5DBA9CF47D66EFCDADC4" xlink:type="arc" />
    <loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_LessorLeasingArrangementsOperatingLeasesRenewalTerm" xlink:label="loc_us-gaap_LessorLeasingArrangementsOperatingLeasesRenewalTerm_E2FAA24860887987852D7D66EFCD4D0B" xlink:type="locator" />
    <definitionArc order="4" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_LongTermPurchaseCommitmentLineItems_147D8DAEB625638477867D66EFCDC771" xlink:to="loc_us-gaap_LessorLeasingArrangementsOperatingLeasesRenewalTerm_E2FAA24860887987852D7D66EFCD4D0B" xlink:type="arc" />
    <loc xlink:href="oesx-20160331.xsd#oesx_OperatingLeasesMonthlyRentalPaymentsReceivable" xlink:label="loc_oesx_OperatingLeasesMonthlyRentalPaymentsReceivable_AE9C662B18DDB99032CA7D66EFCEC85C" xlink:type="locator" />
    <definitionArc order="5" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_LongTermPurchaseCommitmentLineItems_147D8DAEB625638477867D66EFCDC771" xlink:to="loc_oesx_OperatingLeasesMonthlyRentalPaymentsReceivable_AE9C662B18DDB99032CA7D66EFCEC85C" xlink:type="arc" />
    <loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_PurchaseObligationDueInNextTwelveMonths" xlink:label="loc_us-gaap_PurchaseObligationDueInNextTwelveMonths_DD591850B7D421CD88F57D66EFCE1262" xlink:type="locator" />
    <definitionArc order="6" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_LongTermPurchaseCommitmentLineItems_147D8DAEB625638477867D66EFCDC771" xlink:to="loc_us-gaap_PurchaseObligationDueInNextTwelveMonths_DD591850B7D421CD88F57D66EFCE1262" xlink:type="arc" />
    <loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_DefinedContributionPlanEmployerDiscretionaryContributionAmount" xlink:label="loc_us-gaap_DefinedContributionPlanEmployerDiscretionaryContributionAmount_54B8A7674E7E945403F27D66EFCE9DFE" xlink:type="locator" />
    <definitionArc order="7" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_LongTermPurchaseCommitmentLineItems_147D8DAEB625638477867D66EFCDC771" xlink:to="loc_us-gaap_DefinedContributionPlanEmployerDiscretionaryContributionAmount_54B8A7674E7E945403F27D66EFCE9DFE" xlink:type="arc" />
    <loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_LossContingencyClaimsDismissedNumber" xlink:label="loc_us-gaap_LossContingencyClaimsDismissedNumber_98177D97B33C83919F727D66EFCE8522" xlink:type="locator" />
    <definitionArc order="8" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_LongTermPurchaseCommitmentLineItems_147D8DAEB625638477867D66EFCDC771" xlink:to="loc_us-gaap_LossContingencyClaimsDismissedNumber_98177D97B33C83919F727D66EFCE8522" xlink:type="arc" />
  </definitionLink>
  <definitionLink xlink:role="http://www.oesx.com/role/CommitmentsAndContingenciesScheduleOfAnnualCommitmentsUnderNonCancelableOperatingAgreementsDetails" xlink:type="extended" />
  <definitionLink xlink:role="http://www.oesx.com/role/CommitmentsAndContingenciesTables" xlink:type="extended" />
  <definitionLink xlink:role="http://www.oesx.com/role/ConsolidatedBalanceSheets" xlink:type="extended" />
  <definitionLink xlink:role="http://www.oesx.com/role/ConsolidatedBalanceSheetsParenthetical" xlink:type="extended" />
  <definitionLink xlink:role="http://www.oesx.com/role/ConsolidatedStatementsOfCashFlows" xlink:type="extended" />
  <definitionLink xlink:role="http://www.oesx.com/role/ConsolidatedStatementsOfOperationsAndComprehensiveIncome" xlink:type="extended" />
  <definitionLink xlink:role="http://www.oesx.com/role/DescriptionOfBusiness" xlink:type="extended" />
  <definitionLink xlink:role="http://www.oesx.com/role/DocumentAndEntityInformation" xlink:type="extended" />
  <definitionLink xlink:role="http://www.oesx.com/role/IncomeTaxes" xlink:type="extended" />
  <definitionLink xlink:role="http://www.oesx.com/role/IncomeTaxesDetailsTextual" xlink:type="extended">
    <loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_OperatingLossCarryforwardsLineItems" xlink:label="loc_us-gaap_OperatingLossCarryforwardsLineItems_BBE7E125C886C8BAEAB526F19D3956F4" xlink:type="locator" />
    <loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_OperatingLossCarryforwardsTable" xlink:label="loc_us-gaap_OperatingLossCarryforwardsTable_4242061B63E87CB2250926F19D386F68" xlink:type="locator" />
    <definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/all" xlink:from="loc_us-gaap_OperatingLossCarryforwardsLineItems_BBE7E125C886C8BAEAB526F19D3956F4" xlink:to="loc_us-gaap_OperatingLossCarryforwardsTable_4242061B63E87CB2250926F19D386F68" xlink:type="arc" xbrldt:closed="true" xbrldt:contextElement="segment" />
    <loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_RangeAxis" xlink:label="loc_us-gaap_RangeAxis_03B5856EB48D01375C2726F19D385934" xlink:type="locator" />
    <definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_OperatingLossCarryforwardsTable_4242061B63E87CB2250926F19D386F68" xlink:to="loc_us-gaap_RangeAxis_03B5856EB48D01375C2726F19D385934" xlink:type="arc" />
    <loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_RangeMember" xlink:label="loc_us-gaap_RangeMember_C3941D7C16D06F2FB1F326F19D3888A6_default" xlink:type="locator" />
    <definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_RangeAxis_03B5856EB48D01375C2726F19D385934" xlink:to="loc_us-gaap_RangeMember_C3941D7C16D06F2FB1F326F19D3888A6_default" xlink:type="arc" />
    <loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_RangeMember" xlink:label="loc_us-gaap_RangeMember_C3941D7C16D06F2FB1F326F19D3888A6" xlink:type="locator" />
    <definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_RangeAxis_03B5856EB48D01375C2726F19D385934" xlink:to="loc_us-gaap_RangeMember_C3941D7C16D06F2FB1F326F19D3888A6" xlink:type="arc" />
    <loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_MinimumMember" xlink:label="loc_us-gaap_MinimumMember_748C7B4F5E2F3F9F48B126F19D3860E1" xlink:type="locator" />
    <definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_RangeMember_C3941D7C16D06F2FB1F326F19D3888A6" xlink:to="loc_us-gaap_MinimumMember_748C7B4F5E2F3F9F48B126F19D3860E1" xlink:type="arc" />
    <loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_MaximumMember" xlink:label="loc_us-gaap_MaximumMember_5EA8D8BA5742707FDD9426F19D3898D7" xlink:type="locator" />
    <definitionArc order="2" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_RangeMember_C3941D7C16D06F2FB1F326F19D3888A6" xlink:to="loc_us-gaap_MaximumMember_5EA8D8BA5742707FDD9426F19D3898D7" xlink:type="arc" />
    <loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_IncomeTaxAuthorityAxis" xlink:label="loc_us-gaap_IncomeTaxAuthorityAxis_8FB41C76FD927CBAAF7426F19D38E25B" xlink:type="locator" />
    <definitionArc order="2" xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_OperatingLossCarryforwardsTable_4242061B63E87CB2250926F19D386F68" xlink:to="loc_us-gaap_IncomeTaxAuthorityAxis_8FB41C76FD927CBAAF7426F19D38E25B" xlink:type="arc" />
    <loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_IncomeTaxAuthorityDomain" xlink:label="loc_us-gaap_IncomeTaxAuthorityDomain_34012325FC4BF343591B26F19D384932_default" xlink:type="locator" />
    <definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_IncomeTaxAuthorityAxis_8FB41C76FD927CBAAF7426F19D38E25B" xlink:to="loc_us-gaap_IncomeTaxAuthorityDomain_34012325FC4BF343591B26F19D384932_default" xlink:type="arc" />
    <loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_IncomeTaxAuthorityDomain" xlink:label="loc_us-gaap_IncomeTaxAuthorityDomain_34012325FC4BF343591B26F19D384932" xlink:type="locator" />
    <definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_IncomeTaxAuthorityAxis_8FB41C76FD927CBAAF7426F19D38E25B" xlink:to="loc_us-gaap_IncomeTaxAuthorityDomain_34012325FC4BF343591B26F19D384932" xlink:type="arc" />
    <loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_DomesticCountryMember" xlink:label="loc_us-gaap_DomesticCountryMember_6F6E54D6790493D04C9926F19D394321" xlink:type="locator" />
    <definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_IncomeTaxAuthorityDomain_34012325FC4BF343591B26F19D384932" xlink:to="loc_us-gaap_DomesticCountryMember_6F6E54D6790493D04C9926F19D394321" xlink:type="arc" />
    <loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_StateAndLocalJurisdictionMember" xlink:label="loc_us-gaap_StateAndLocalJurisdictionMember_4A7C5112BAB59256BC1226F19D391EE3" xlink:type="locator" />
    <definitionArc order="2" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_IncomeTaxAuthorityDomain_34012325FC4BF343591B26F19D384932" xlink:to="loc_us-gaap_StateAndLocalJurisdictionMember_4A7C5112BAB59256BC1226F19D391EE3" xlink:type="arc" />
    <loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_ExcessTaxBenefitFromShareBasedCompensationFinancingActivities" xlink:label="loc_us-gaap_ExcessTaxBenefitFromShareBasedCompensationFinancingActivities_EF6DE5207757B1A78B4526F19D39EC12" xlink:type="locator" />
    <definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_OperatingLossCarryforwardsLineItems_BBE7E125C886C8BAEAB526F19D3956F4" xlink:to="loc_us-gaap_ExcessTaxBenefitFromShareBasedCompensationFinancingActivities_EF6DE5207757B1A78B4526F19D39EC12" xlink:type="arc" />
    <loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_OperatingLossCarryforwards" xlink:label="loc_us-gaap_OperatingLossCarryforwards_0CB9EC821BB27F4CC49726F19D39527A" xlink:type="locator" />
    <definitionArc order="2" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_OperatingLossCarryforwardsLineItems_BBE7E125C886C8BAEAB526F19D3956F4" xlink:to="loc_us-gaap_OperatingLossCarryforwards_0CB9EC821BB27F4CC49726F19D39527A" xlink:type="arc" />
    <loc xlink:href="oesx-20160331.xsd#oesx_OperatingLossCarryforwardsAssociatedWithExerciseOfNonQualifiedStockOptions" xlink:label="loc_oesx_OperatingLossCarryforwardsAssociatedWithExerciseOfNonQualifiedStockOptions_3D40E18D308DC11C1F7B26F19D399C1D" xlink:type="locator" />
    <definitionArc order="3" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_OperatingLossCarryforwardsLineItems_BBE7E125C886C8BAEAB526F19D3956F4" xlink:to="loc_oesx_OperatingLossCarryforwardsAssociatedWithExerciseOfNonQualifiedStockOptions_3D40E18D308DC11C1F7B26F19D399C1D" xlink:type="arc" />
    <loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_TaxCreditCarryforwardAmount" xlink:label="loc_us-gaap_TaxCreditCarryforwardAmount_D09470002ED4BC7F9DE626F19D391896" xlink:type="locator" />
    <definitionArc order="4" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_OperatingLossCarryforwardsLineItems_BBE7E125C886C8BAEAB526F19D3956F4" xlink:to="loc_us-gaap_TaxCreditCarryforwardAmount_D09470002ED4BC7F9DE626F19D391896" xlink:type="arc" />
    <loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_DeferredTaxAssetsValuationAllowance" xlink:label="loc_us-gaap_DeferredTaxAssetsValuationAllowance_5336FC7FED8897D8F02A26F19D39DDFD" xlink:type="locator" />
    <definitionArc order="5" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_OperatingLossCarryforwardsLineItems_BBE7E125C886C8BAEAB526F19D3956F4" xlink:to="loc_us-gaap_DeferredTaxAssetsValuationAllowance_5336FC7FED8897D8F02A26F19D39DDFD" xlink:type="arc" />
    <loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_ValuationAllowanceDeferredTaxAssetChangeInAmount" xlink:label="loc_us-gaap_ValuationAllowanceDeferredTaxAssetChangeInAmount_15BDF2308F05B07AD03326F19D3978CA" xlink:type="locator" />
    <definitionArc order="6" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_OperatingLossCarryforwardsLineItems_BBE7E125C886C8BAEAB526F19D3956F4" xlink:to="loc_us-gaap_ValuationAllowanceDeferredTaxAssetChangeInAmount_15BDF2308F05B07AD03326F19D3978CA" xlink:type="arc" />
    <loc xlink:href="oesx-20160331.xsd#oesx_PeriodOfTimeStateIncomeTaxReturnsSubjectToExamination" xlink:label="loc_oesx_PeriodOfTimeStateIncomeTaxReturnsSubjectToExamination_81B5D54DC48C5BF5A32D26F19D39CAA5" xlink:type="locator" />
    <definitionArc order="7" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_OperatingLossCarryforwardsLineItems_BBE7E125C886C8BAEAB526F19D3956F4" xlink:to="loc_oesx_PeriodOfTimeStateIncomeTaxReturnsSubjectToExamination_81B5D54DC48C5BF5A32D26F19D39CAA5" xlink:type="arc" />
    <loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_UnrecognizedTaxBenefits" xlink:label="loc_us-gaap_UnrecognizedTaxBenefits_84F43609AFF7AC43263526F19D398502" xlink:type="locator" />
    <definitionArc order="8" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_OperatingLossCarryforwardsLineItems_BBE7E125C886C8BAEAB526F19D3956F4" xlink:to="loc_us-gaap_UnrecognizedTaxBenefits_84F43609AFF7AC43263526F19D398502" xlink:type="arc" />
  </definitionLink>
  <definitionLink xlink:role="http://www.oesx.com/role/IncomeTaxesReconciliationOfTaxRatesDetails" xlink:type="extended" />
  <definitionLink xlink:role="http://www.oesx.com/role/IncomeTaxesScheduleOfComponentsOfIncomeTaxExpenseOrBenefitDetails" xlink:type="extended" />
  <definitionLink xlink:role="http://www.oesx.com/role/IncomeTaxesScheduleOfDeferredTaxAssetsAndLiabilitiesDetails" xlink:type="extended" />
  <definitionLink xlink:role="http://www.oesx.com/role/IncomeTaxesTables" xlink:type="extended" />
  <definitionLink xlink:role="http://www.oesx.com/role/IncomeTaxesUnrecognizedTaxBenefitActivityDetails" xlink:type="extended" />
  <definitionLink xlink:role="http://www.oesx.com/role/LongTermDebt" xlink:type="extended" />
  <definitionLink xlink:role="http://www.oesx.com/role/LongTermDebtAggregateMaturitiesDetails" xlink:type="extended" />
  <definitionLink xlink:role="http://www.oesx.com/role/LongTermDebtAllOtherDebtDetails" xlink:type="extended">
    <loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_DebtInstrumentLineItems" xlink:label="loc_us-gaap_DebtInstrumentLineItems_D075827AA08F1B18F98B7320BC79CB30" xlink:type="locator" />
    <loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_DebtInstrumentTable" xlink:label="loc_us-gaap_DebtInstrumentTable_F2841E76AE4A9D050E997320BC782D12" xlink:type="locator" />
    <definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/all" xlink:from="loc_us-gaap_DebtInstrumentLineItems_D075827AA08F1B18F98B7320BC79CB30" xlink:to="loc_us-gaap_DebtInstrumentTable_F2841E76AE4A9D050E997320BC782D12" xlink:type="arc" xbrldt:closed="true" xbrldt:contextElement="segment" />
    <loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_LongtermDebtTypeAxis" xlink:label="loc_us-gaap_LongtermDebtTypeAxis_6B12DD66E2B5C5A1EAA27320BC785915" xlink:type="locator" />
    <definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_DebtInstrumentTable_F2841E76AE4A9D050E997320BC782D12" xlink:to="loc_us-gaap_LongtermDebtTypeAxis_6B12DD66E2B5C5A1EAA27320BC785915" xlink:type="arc" />
    <loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_LongtermDebtTypeDomain" xlink:label="loc_us-gaap_LongtermDebtTypeDomain_5F7C42C6DD9EF2EDA5F07320BC785628_default" xlink:type="locator" />
    <definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_LongtermDebtTypeAxis_6B12DD66E2B5C5A1EAA27320BC785915" xlink:to="loc_us-gaap_LongtermDebtTypeDomain_5F7C42C6DD9EF2EDA5F07320BC785628_default" xlink:type="arc" />
    <loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_LongtermDebtTypeDomain" xlink:label="loc_us-gaap_LongtermDebtTypeDomain_5F7C42C6DD9EF2EDA5F07320BC785628" xlink:type="locator" />
    <definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_LongtermDebtTypeAxis_6B12DD66E2B5C5A1EAA27320BC785915" xlink:to="loc_us-gaap_LongtermDebtTypeDomain_5F7C42C6DD9EF2EDA5F07320BC785628" xlink:type="arc" />
    <loc xlink:href="oesx-20160331.xsd#oesx_HarrisSellersNoteMember" xlink:label="loc_oesx_HarrisSellersNoteMember_4C7ED3AF9701CEE58A647320BC7863FD" xlink:type="locator" />
    <definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_LongtermDebtTypeDomain_5F7C42C6DD9EF2EDA5F07320BC785628" xlink:to="loc_oesx_HarrisSellersNoteMember_4C7ED3AF9701CEE58A647320BC7863FD" xlink:type="arc" />
    <loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_SecuredDebtMember" xlink:label="loc_us-gaap_SecuredDebtMember_A3B102DB1B3EBF8A4AB97320BC78FF01" xlink:type="locator" />
    <definitionArc order="2" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_LongtermDebtTypeDomain_5F7C42C6DD9EF2EDA5F07320BC785628" xlink:to="loc_us-gaap_SecuredDebtMember_A3B102DB1B3EBF8A4AB97320BC78FF01" xlink:type="arc" />
    <loc xlink:href="oesx-20160331.xsd#oesx_June2011OtaFinanceProgramMember" xlink:label="loc_oesx_June2011OtaFinanceProgramMember_0E23C0BD08C1CEB2F3A37320BC78571B" xlink:type="locator" />
    <definitionArc order="3" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_LongtermDebtTypeDomain_5F7C42C6DD9EF2EDA5F07320BC785628" xlink:to="loc_oesx_June2011OtaFinanceProgramMember_0E23C0BD08C1CEB2F3A37320BC78571B" xlink:type="arc" />
    <loc xlink:href="oesx-20160331.xsd#oesx_AgreementWithWisconsinDepartmentOfCommerceMember" xlink:label="loc_oesx_AgreementWithWisconsinDepartmentOfCommerceMember_699101FB1C2C4650076D7320BC783B02" xlink:type="locator" />
    <definitionArc order="4" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_LongtermDebtTypeDomain_5F7C42C6DD9EF2EDA5F07320BC785628" xlink:to="loc_oesx_AgreementWithWisconsinDepartmentOfCommerceMember_699101FB1C2C4650076D7320BC783B02" xlink:type="arc" />
    <loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_ExtinguishmentOfDebtAxis" xlink:label="loc_us-gaap_ExtinguishmentOfDebtAxis_6B42F0563BF3796BAC797320BC78B224" xlink:type="locator" />
    <definitionArc order="2" xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_DebtInstrumentTable_F2841E76AE4A9D050E997320BC782D12" xlink:to="loc_us-gaap_ExtinguishmentOfDebtAxis_6B42F0563BF3796BAC797320BC78B224" xlink:type="arc" />
    <loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_ExtinguishmentOfDebtTypeDomain" xlink:label="loc_us-gaap_ExtinguishmentOfDebtTypeDomain_313CE13CD5F3D6EB7ACE7320BC788E8A_default" xlink:type="locator" />
    <definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_ExtinguishmentOfDebtAxis_6B42F0563BF3796BAC797320BC78B224" xlink:to="loc_us-gaap_ExtinguishmentOfDebtTypeDomain_313CE13CD5F3D6EB7ACE7320BC788E8A_default" xlink:type="arc" />
    <loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_ExtinguishmentOfDebtTypeDomain" xlink:label="loc_us-gaap_ExtinguishmentOfDebtTypeDomain_313CE13CD5F3D6EB7ACE7320BC788E8A" xlink:type="locator" />
    <definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_ExtinguishmentOfDebtAxis_6B42F0563BF3796BAC797320BC78B224" xlink:to="loc_us-gaap_ExtinguishmentOfDebtTypeDomain_313CE13CD5F3D6EB7ACE7320BC788E8A" xlink:type="arc" />
    <loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_CapitalLeaseObligationsMember" xlink:label="loc_us-gaap_CapitalLeaseObligationsMember_4278969FA56CC9A97F917320BC78936C" xlink:type="locator" />
    <definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ExtinguishmentOfDebtTypeDomain_313CE13CD5F3D6EB7ACE7320BC788E8A" xlink:to="loc_us-gaap_CapitalLeaseObligationsMember_4278969FA56CC9A97F917320BC78936C" xlink:type="arc" />
    <loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_DebtInstrumentAxis" xlink:label="loc_us-gaap_DebtInstrumentAxis_99751A8B8E8F32413A737320BC78D717" xlink:type="locator" />
    <definitionArc order="3" xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_DebtInstrumentTable_F2841E76AE4A9D050E997320BC782D12" xlink:to="loc_us-gaap_DebtInstrumentAxis_99751A8B8E8F32413A737320BC78D717" xlink:type="arc" />
    <loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_DebtInstrumentNameDomain" xlink:label="loc_us-gaap_DebtInstrumentNameDomain_254F91C007E972BD91207320BC789A72_default" xlink:type="locator" />
    <definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_DebtInstrumentAxis_99751A8B8E8F32413A737320BC78D717" xlink:to="loc_us-gaap_DebtInstrumentNameDomain_254F91C007E972BD91207320BC789A72_default" xlink:type="arc" />
    <loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_DebtInstrumentNameDomain" xlink:label="loc_us-gaap_DebtInstrumentNameDomain_254F91C007E972BD91207320BC789A72" xlink:type="locator" />
    <definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_DebtInstrumentAxis_99751A8B8E8F32413A737320BC78D717" xlink:to="loc_us-gaap_DebtInstrumentNameDomain_254F91C007E972BD91207320BC789A72" xlink:type="arc" />
    <loc xlink:href="oesx-20160331.xsd#oesx_December2014OTAFinanceProgramMember" xlink:label="loc_oesx_December2014OTAFinanceProgramMember_1713A863F1C80863F9357320BC79D733" xlink:type="locator" />
    <definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DebtInstrumentNameDomain_254F91C007E972BD91207320BC789A72" xlink:to="loc_oesx_December2014OTAFinanceProgramMember_1713A863F1C80863F9357320BC79D733" xlink:type="arc" />
    <loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_LineOfCreditFacilityAxis" xlink:label="loc_us-gaap_LineOfCreditFacilityAxis_F8B0338C92A519F62D437320BC79146D" xlink:type="locator" />
    <definitionArc order="4" xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_DebtInstrumentTable_F2841E76AE4A9D050E997320BC782D12" xlink:to="loc_us-gaap_LineOfCreditFacilityAxis_F8B0338C92A519F62D437320BC79146D" xlink:type="arc" />
    <loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_LineOfCreditFacilityLenderDomain" xlink:label="loc_us-gaap_LineOfCreditFacilityLenderDomain_E0637204B2DDE730C7F07320BC798EBB_default" xlink:type="locator" />
    <definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_LineOfCreditFacilityAxis_F8B0338C92A519F62D437320BC79146D" xlink:to="loc_us-gaap_LineOfCreditFacilityLenderDomain_E0637204B2DDE730C7F07320BC798EBB_default" xlink:type="arc" />
    <loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_LineOfCreditFacilityLenderDomain" xlink:label="loc_us-gaap_LineOfCreditFacilityLenderDomain_E0637204B2DDE730C7F07320BC798EBB" xlink:type="locator" />
    <definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_LineOfCreditFacilityAxis_F8B0338C92A519F62D437320BC79146D" xlink:to="loc_us-gaap_LineOfCreditFacilityLenderDomain_E0637204B2DDE730C7F07320BC798EBB" xlink:type="arc" />
    <loc xlink:href="oesx-20160331.xsd#oesx_DeLageLandenFinancialServicesInc.Member" xlink:label="loc_oesx_DeLageLandenFinancialServicesInc.Member_F3B1DCC5236120DC4BFD7320BC792CE4" xlink:type="locator" />
    <definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_LineOfCreditFacilityLenderDomain_E0637204B2DDE730C7F07320BC798EBB" xlink:to="loc_oesx_DeLageLandenFinancialServicesInc.Member_F3B1DCC5236120DC4BFD7320BC792CE4" xlink:type="arc" />
    <loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_DebtInstrumentFaceAmount" xlink:label="loc_us-gaap_DebtInstrumentFaceAmount_0B930B3200BCD5379A517320BC79A0B1" xlink:type="locator" />
    <definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DebtInstrumentLineItems_D075827AA08F1B18F98B7320BC79CB30" xlink:to="loc_us-gaap_DebtInstrumentFaceAmount_0B930B3200BCD5379A517320BC79A0B1" xlink:type="arc" />
    <loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_DebtInstrumentInterestRateStatedPercentage" xlink:label="loc_us-gaap_DebtInstrumentInterestRateStatedPercentage_EE602F3F772D77FA97887320BC79CFCD" xlink:type="locator" />
    <definitionArc order="2" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DebtInstrumentLineItems_D075827AA08F1B18F98B7320BC79CB30" xlink:to="loc_us-gaap_DebtInstrumentInterestRateStatedPercentage_EE602F3F772D77FA97887320BC79CFCD" xlink:type="arc" />
    <loc xlink:href="oesx-20160331.xsd#oesx_NumberofLeaseAgreements" xlink:label="loc_oesx_NumberofLeaseAgreements_1E4726CC694D5472F5117320BC792A34" xlink:type="locator" />
    <definitionArc order="3" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DebtInstrumentLineItems_D075827AA08F1B18F98B7320BC79CB30" xlink:to="loc_oesx_NumberofLeaseAgreements_1E4726CC694D5472F5117320BC792A34" xlink:type="arc" />
    <loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_DebtInstrumentCarryingAmount" xlink:label="loc_us-gaap_DebtInstrumentCarryingAmount_1F2E6B62F442FCE2F96A7320BC798E70" xlink:type="locator" />
    <definitionArc order="4" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DebtInstrumentLineItems_D075827AA08F1B18F98B7320BC79CB30" xlink:to="loc_us-gaap_DebtInstrumentCarryingAmount_1F2E6B62F442FCE2F96A7320BC798E70" xlink:type="arc" />
    <loc xlink:href="oesx-20160331.xsd#oesx_DebtInstrumentBuyoutOption" xlink:label="loc_oesx_DebtInstrumentBuyoutOption_8642810C64A3DA2EB0857320BC799AA4" xlink:type="locator" />
    <definitionArc order="5" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DebtInstrumentLineItems_D075827AA08F1B18F98B7320BC79CB30" xlink:to="loc_oesx_DebtInstrumentBuyoutOption_8642810C64A3DA2EB0857320BC799AA4" xlink:type="arc" />
    <loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_SecuredDebt" xlink:label="loc_us-gaap_SecuredDebt_0D3936CD781A2F791B7D7320BC795D95" xlink:type="locator" />
    <definitionArc order="6" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DebtInstrumentLineItems_D075827AA08F1B18F98B7320BC79CB30" xlink:to="loc_us-gaap_SecuredDebt_0D3936CD781A2F791B7D7320BC795D95" xlink:type="arc" />
    <loc xlink:href="oesx-20160331.xsd#oesx_DebtInstrumentNumberOfContractsForCollateral" xlink:label="loc_oesx_DebtInstrumentNumberOfContractsForCollateral_C955332DF505643E8AF37320BC79D852" xlink:type="locator" />
    <definitionArc order="7" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DebtInstrumentLineItems_D075827AA08F1B18F98B7320BC79CB30" xlink:to="loc_oesx_DebtInstrumentNumberOfContractsForCollateral_C955332DF505643E8AF37320BC79D852" xlink:type="arc" />
    <loc xlink:href="oesx-20160331.xsd#oesx_NumberOfSupportingIndividualOtaCustomerContracts" xlink:label="loc_oesx_NumberOfSupportingIndividualOtaCustomerContracts_C9362F234F6939ED74697320BC7910AA" xlink:type="locator" />
    <definitionArc order="8" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DebtInstrumentLineItems_D075827AA08F1B18F98B7320BC79CB30" xlink:to="loc_oesx_NumberOfSupportingIndividualOtaCustomerContracts_C9362F234F6939ED74697320BC7910AA" xlink:type="arc" />
    <loc xlink:href="oesx-20160331.xsd#oesx_DebtInstrumentCovenantComplianceAggregateAmountOfAllRemainingScheduledPaymentsDueOfIndividualOtaContractsToRemainingPrincipalAndInterestPaymentsDueUnderLoan" xlink:label="loc_oesx_DebtInstrumentCovenantComplianceAggregateAmountOfAllRemainingScheduledPaymentsDueOfIndividualOtaContractsToRemainingPrincipalAndInterestPaymentsDueUnderLoan_A2B88A8C6C065F5DE0CE7320BC794B4C" xlink:type="locator" />
    <definitionArc order="9" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DebtInstrumentLineItems_D075827AA08F1B18F98B7320BC79CB30" xlink:to="loc_oesx_DebtInstrumentCovenantComplianceAggregateAmountOfAllRemainingScheduledPaymentsDueOfIndividualOtaContractsToRemainingPrincipalAndInterestPaymentsDueUnderLoan_A2B88A8C6C065F5DE0CE7320BC794B4C" xlink:type="arc" />
    <loc xlink:href="oesx-20160331.xsd#oesx_PeriodOfTimeWithoutInterestAccruingOrPrincipalPaymentsDue" xlink:label="loc_oesx_PeriodOfTimeWithoutInterestAccruingOrPrincipalPaymentsDue_BBB5B4BE1615FCEF64327320BC795D0E" xlink:type="locator" />
    <definitionArc order="10" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DebtInstrumentLineItems_D075827AA08F1B18F98B7320BC79CB30" xlink:to="loc_oesx_PeriodOfTimeWithoutInterestAccruingOrPrincipalPaymentsDue_BBB5B4BE1615FCEF64327320BC795D0E" xlink:type="arc" />
    <loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_DebtInstrumentPeriodicPayment" xlink:label="loc_us-gaap_DebtInstrumentPeriodicPayment_6F46BE44D6B616D50E407320BC7959EE" xlink:type="locator" />
    <definitionArc order="11" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DebtInstrumentLineItems_D075827AA08F1B18F98B7320BC79CB30" xlink:to="loc_us-gaap_DebtInstrumentPeriodicPayment_6F46BE44D6B616D50E407320BC7959EE" xlink:type="arc" />
  </definitionLink>
  <definitionLink xlink:role="http://www.oesx.com/role/LongTermDebtDetails" xlink:type="extended">
    <loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_ExtinguishmentOfDebtLineItems" xlink:label="loc_us-gaap_ExtinguishmentOfDebtLineItems_37A06FDC447F367C105E7384094F87B1" xlink:type="locator" />
    <loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_ScheduleOfExtinguishmentOfDebtTable" xlink:label="loc_us-gaap_ScheduleOfExtinguishmentOfDebtTable_1FEFED7C241E9A2E91697384094FDACE" xlink:type="locator" />
    <definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/all" xlink:from="loc_us-gaap_ExtinguishmentOfDebtLineItems_37A06FDC447F367C105E7384094F87B1" xlink:to="loc_us-gaap_ScheduleOfExtinguishmentOfDebtTable_1FEFED7C241E9A2E91697384094FDACE" xlink:type="arc" xbrldt:closed="true" xbrldt:contextElement="segment" />
    <loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_ExtinguishmentOfDebtAxis" xlink:label="loc_us-gaap_ExtinguishmentOfDebtAxis_15422626033EDB2DB36E7384094F2104" xlink:type="locator" />
    <definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_ScheduleOfExtinguishmentOfDebtTable_1FEFED7C241E9A2E91697384094FDACE" xlink:to="loc_us-gaap_ExtinguishmentOfDebtAxis_15422626033EDB2DB36E7384094F2104" xlink:type="arc" />
    <loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_ExtinguishmentOfDebtTypeDomain" xlink:label="loc_us-gaap_ExtinguishmentOfDebtTypeDomain_193392E726033EDA58C77384094F5AFF_default" xlink:type="locator" />
    <definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_ExtinguishmentOfDebtAxis_15422626033EDB2DB36E7384094F2104" xlink:to="loc_us-gaap_ExtinguishmentOfDebtTypeDomain_193392E726033EDA58C77384094F5AFF_default" xlink:type="arc" />
    <loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_ExtinguishmentOfDebtTypeDomain" xlink:label="loc_us-gaap_ExtinguishmentOfDebtTypeDomain_193392E726033EDA58C77384094F5AFF" xlink:type="locator" />
    <definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_ExtinguishmentOfDebtAxis_15422626033EDB2DB36E7384094F2104" xlink:to="loc_us-gaap_ExtinguishmentOfDebtTypeDomain_193392E726033EDA58C77384094F5AFF" xlink:type="arc" />
    <loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_RevolvingCreditFacilityMember" xlink:label="loc_us-gaap_RevolvingCreditFacilityMember_586C0079C232C43AA1877384094F3368" xlink:type="locator" />
    <definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ExtinguishmentOfDebtTypeDomain_193392E726033EDA58C77384094F5AFF" xlink:to="loc_us-gaap_RevolvingCreditFacilityMember_586C0079C232C43AA1877384094F3368" xlink:type="arc" />
    <loc xlink:href="oesx-20160331.xsd#oesx_HarrisSellersNoteMember" xlink:label="loc_oesx_HarrisSellersNoteMember_D881CAB48953BB67803E7384094F32AB" xlink:type="locator" />
    <definitionArc order="2" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ExtinguishmentOfDebtTypeDomain_193392E726033EDA58C77384094F5AFF" xlink:to="loc_oesx_HarrisSellersNoteMember_D881CAB48953BB67803E7384094F32AB" xlink:type="arc" />
    <loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_CapitalLeaseObligationsMember" xlink:label="loc_us-gaap_CapitalLeaseObligationsMember_E189525991FA847937667384094F037A" xlink:type="locator" />
    <definitionArc order="3" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ExtinguishmentOfDebtTypeDomain_193392E726033EDA58C77384094F5AFF" xlink:to="loc_us-gaap_CapitalLeaseObligationsMember_E189525991FA847937667384094F037A" xlink:type="arc" />
    <loc xlink:href="oesx-20160331.xsd#oesx_CustomerEquipmentFinanceNotesPayableMember" xlink:label="loc_oesx_CustomerEquipmentFinanceNotesPayableMember_DA82EDD48CE99E2ADAFE7384094F0416" xlink:type="locator" />
    <definitionArc order="4" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ExtinguishmentOfDebtTypeDomain_193392E726033EDA58C77384094F5AFF" xlink:to="loc_oesx_CustomerEquipmentFinanceNotesPayableMember_DA82EDD48CE99E2ADAFE7384094F0416" xlink:type="arc" />
    <loc xlink:href="oesx-20160331.xsd#oesx_OtherLongTermDebtMember" xlink:label="loc_oesx_OtherLongTermDebtMember_194DC3BC5B24848453E07384094F2C15" xlink:type="locator" />
    <definitionArc order="5" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ExtinguishmentOfDebtTypeDomain_193392E726033EDA58C77384094F5AFF" xlink:to="loc_oesx_OtherLongTermDebtMember_194DC3BC5B24848453E07384094F2C15" xlink:type="arc" />
    <loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_LongTermDebtByCurrentAndNoncurrentAbstract" xlink:label="loc_us-gaap_LongTermDebtByCurrentAndNoncurrentAbstract_E4549D10A5AAC919A3277384094FF3FF" xlink:type="locator" />
    <definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ExtinguishmentOfDebtLineItems_37A06FDC447F367C105E7384094F87B1" xlink:to="loc_us-gaap_LongTermDebtByCurrentAndNoncurrentAbstract_E4549D10A5AAC919A3277384094FF3FF" xlink:type="arc" />
    <loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_LongTermDebt" xlink:label="loc_us-gaap_LongTermDebt_14B15F98130C4E6644B67384094F76B6" xlink:type="locator" />
    <definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_LongTermDebtByCurrentAndNoncurrentAbstract_E4549D10A5AAC919A3277384094FF3FF" xlink:to="loc_us-gaap_LongTermDebt_14B15F98130C4E6644B67384094F76B6" xlink:type="arc" />
    <loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_LongTermDebtCurrent" xlink:label="loc_us-gaap_LongTermDebtCurrent_59F995DBB96A0A44154B7384094FD981" xlink:type="locator" />
    <definitionArc order="2" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_LongTermDebtByCurrentAndNoncurrentAbstract_E4549D10A5AAC919A3277384094FF3FF" xlink:to="loc_us-gaap_LongTermDebtCurrent_59F995DBB96A0A44154B7384094FD981" xlink:type="arc" />
    <loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_LongTermDebtNoncurrent" xlink:label="loc_us-gaap_LongTermDebtNoncurrent_525C52F9AD7837CA84557384094F11E2" xlink:type="locator" />
    <definitionArc order="3" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_LongTermDebtByCurrentAndNoncurrentAbstract_E4549D10A5AAC919A3277384094FF3FF" xlink:to="loc_us-gaap_LongTermDebtNoncurrent_525C52F9AD7837CA84557384094F11E2" xlink:type="arc" />
  </definitionLink>
  <definitionLink xlink:role="http://www.oesx.com/role/LongTermDebtRevolvingCreditFacilityDetails" xlink:type="extended">
    <loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_LineOfCreditFacilityLineItems" xlink:label="loc_us-gaap_LineOfCreditFacilityLineItems_03FDCB6514736B68943DF72E1B7D6D93" xlink:type="locator" />
    <loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_LineOfCreditFacilityTable" xlink:label="loc_us-gaap_LineOfCreditFacilityTable_ED640D280F0DF8C7031AF72E1B756C04" xlink:type="locator" />
    <definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/all" xlink:from="loc_us-gaap_LineOfCreditFacilityLineItems_03FDCB6514736B68943DF72E1B7D6D93" xlink:to="loc_us-gaap_LineOfCreditFacilityTable_ED640D280F0DF8C7031AF72E1B756C04" xlink:type="arc" xbrldt:closed="true" xbrldt:contextElement="segment" />
    <loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_LineOfCreditFacilityAxis" xlink:label="loc_us-gaap_LineOfCreditFacilityAxis_2EFA693C96360CB5DFB1F72E1B752DF0" xlink:type="locator" />
    <definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_LineOfCreditFacilityTable_ED640D280F0DF8C7031AF72E1B756C04" xlink:to="loc_us-gaap_LineOfCreditFacilityAxis_2EFA693C96360CB5DFB1F72E1B752DF0" xlink:type="arc" />
    <loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_LineOfCreditFacilityLenderDomain" xlink:label="loc_us-gaap_LineOfCreditFacilityLenderDomain_79C259772D093250764EF72E1B759F0D_default" xlink:type="locator" />
    <definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_LineOfCreditFacilityAxis_2EFA693C96360CB5DFB1F72E1B752DF0" xlink:to="loc_us-gaap_LineOfCreditFacilityLenderDomain_79C259772D093250764EF72E1B759F0D_default" xlink:type="arc" />
    <loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_LineOfCreditFacilityLenderDomain" xlink:label="loc_us-gaap_LineOfCreditFacilityLenderDomain_79C259772D093250764EF72E1B759F0D" xlink:type="locator" />
    <definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_LineOfCreditFacilityAxis_2EFA693C96360CB5DFB1F72E1B752DF0" xlink:to="loc_us-gaap_LineOfCreditFacilityLenderDomain_79C259772D093250764EF72E1B759F0D" xlink:type="arc" />
    <loc xlink:href="oesx-20160331.xsd#oesx_WellsFargoBankNationalAssociationMember" xlink:label="loc_oesx_WellsFargoBankNationalAssociationMember_BB1FEEBD12517F589ED9F72E1B751D6E" xlink:type="locator" />
    <definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_LineOfCreditFacilityLenderDomain_79C259772D093250764EF72E1B759F0D" xlink:to="loc_oesx_WellsFargoBankNationalAssociationMember_BB1FEEBD12517F589ED9F72E1B751D6E" xlink:type="arc" />
    <loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_DebtInstrumentAxis" xlink:label="loc_us-gaap_DebtInstrumentAxis_6D85A803E3312A2415D6F72E1B756548" xlink:type="locator" />
    <definitionArc order="2" xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_LineOfCreditFacilityTable_ED640D280F0DF8C7031AF72E1B756C04" xlink:to="loc_us-gaap_DebtInstrumentAxis_6D85A803E3312A2415D6F72E1B756548" xlink:type="arc" />
    <loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_DebtInstrumentNameDomain" xlink:label="loc_us-gaap_DebtInstrumentNameDomain_C99A8984423F28CC875AF72E1B7517C4_default" xlink:type="locator" />
    <definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_DebtInstrumentAxis_6D85A803E3312A2415D6F72E1B756548" xlink:to="loc_us-gaap_DebtInstrumentNameDomain_C99A8984423F28CC875AF72E1B7517C4_default" xlink:type="arc" />
    <loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_DebtInstrumentNameDomain" xlink:label="loc_us-gaap_DebtInstrumentNameDomain_C99A8984423F28CC875AF72E1B7517C4" xlink:type="locator" />
    <definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_DebtInstrumentAxis_6D85A803E3312A2415D6F72E1B756548" xlink:to="loc_us-gaap_DebtInstrumentNameDomain_C99A8984423F28CC875AF72E1B7517C4" xlink:type="arc" />
    <loc xlink:href="oesx-20160331.xsd#oesx_CreditAgreementMember" xlink:label="loc_oesx_CreditAgreementMember_092439FD87EC8BC4F295F72E1B7C5983" xlink:type="locator" />
    <definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DebtInstrumentNameDomain_C99A8984423F28CC875AF72E1B7517C4" xlink:to="loc_oesx_CreditAgreementMember_092439FD87EC8BC4F295F72E1B7C5983" xlink:type="arc" />
    <loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_VariableRateAxis" xlink:label="loc_us-gaap_VariableRateAxis_B3B26527AE56D3F30BF9F72E1B7C85E0" xlink:type="locator" />
    <definitionArc order="3" xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_LineOfCreditFacilityTable_ED640D280F0DF8C7031AF72E1B756C04" xlink:to="loc_us-gaap_VariableRateAxis_B3B26527AE56D3F30BF9F72E1B7C85E0" xlink:type="arc" />
    <loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_VariableRateDomain" xlink:label="loc_us-gaap_VariableRateDomain_898E168F2759B2B023D3F72E1B7C7A5A_default" xlink:type="locator" />
    <definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_VariableRateAxis_B3B26527AE56D3F30BF9F72E1B7C85E0" xlink:to="loc_us-gaap_VariableRateDomain_898E168F2759B2B023D3F72E1B7C7A5A_default" xlink:type="arc" />
    <loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_VariableRateDomain" xlink:label="loc_us-gaap_VariableRateDomain_898E168F2759B2B023D3F72E1B7C7A5A" xlink:type="locator" />
    <definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_VariableRateAxis_B3B26527AE56D3F30BF9F72E1B7C85E0" xlink:to="loc_us-gaap_VariableRateDomain_898E168F2759B2B023D3F72E1B7C7A5A" xlink:type="arc" />
    <loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_LondonInterbankOfferedRateLIBORMember" xlink:label="loc_us-gaap_LondonInterbankOfferedRateLIBORMember_94C236B70C8FE5918682F72E1B7CE472" xlink:type="locator" />
    <definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_VariableRateDomain_898E168F2759B2B023D3F72E1B7C7A5A" xlink:to="loc_us-gaap_LondonInterbankOfferedRateLIBORMember_94C236B70C8FE5918682F72E1B7CE472" xlink:type="arc" />
    <loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_CreditFacilityAxis" xlink:label="loc_us-gaap_CreditFacilityAxis_F13A8BF49E9A725F7A65F72E1B7CA95D" xlink:type="locator" />
    <definitionArc order="4" xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_LineOfCreditFacilityTable_ED640D280F0DF8C7031AF72E1B756C04" xlink:to="loc_us-gaap_CreditFacilityAxis_F13A8BF49E9A725F7A65F72E1B7CA95D" xlink:type="arc" />
    <loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_CreditFacilityDomain" xlink:label="loc_us-gaap_CreditFacilityDomain_8317BB49ED0FEF485A5FF72E1B7C1D5F_default" xlink:type="locator" />
    <definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_CreditFacilityAxis_F13A8BF49E9A725F7A65F72E1B7CA95D" xlink:to="loc_us-gaap_CreditFacilityDomain_8317BB49ED0FEF485A5FF72E1B7C1D5F_default" xlink:type="arc" />
    <loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_CreditFacilityDomain" xlink:label="loc_us-gaap_CreditFacilityDomain_8317BB49ED0FEF485A5FF72E1B7C1D5F" xlink:type="locator" />
    <definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_CreditFacilityAxis_F13A8BF49E9A725F7A65F72E1B7CA95D" xlink:to="loc_us-gaap_CreditFacilityDomain_8317BB49ED0FEF485A5FF72E1B7C1D5F" xlink:type="arc" />
    <loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_RevolvingCreditFacilityMember" xlink:label="loc_us-gaap_RevolvingCreditFacilityMember_7EB220B36A4BF5AE4A00F72E1B7C1E39" xlink:type="locator" />
    <definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_CreditFacilityDomain_8317BB49ED0FEF485A5FF72E1B7C1D5F" xlink:to="loc_us-gaap_RevolvingCreditFacilityMember_7EB220B36A4BF5AE4A00F72E1B7C1E39" xlink:type="arc" />
    <loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_LetterOfCreditMember" xlink:label="loc_us-gaap_LetterOfCreditMember_5A5341B728AB96C5D18BF72E1B7D8B9F" xlink:type="locator" />
    <definitionArc order="2" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_CreditFacilityDomain_8317BB49ED0FEF485A5FF72E1B7C1D5F" xlink:to="loc_us-gaap_LetterOfCreditMember_5A5341B728AB96C5D18BF72E1B7D8B9F" xlink:type="arc" />
    <loc xlink:href="oesx-20160331.xsd#oesx_DebtTextualAbstract" xlink:label="loc_oesx_DebtTextualAbstract_F8BD265ADEFA98F1C37FF72E1B7DF07F" xlink:type="locator" />
    <definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_LineOfCreditFacilityLineItems_03FDCB6514736B68943DF72E1B7D6D93" xlink:to="loc_oesx_DebtTextualAbstract_F8BD265ADEFA98F1C37FF72E1B7DF07F" xlink:type="arc" />
    <loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_LineOfCreditFacilityCurrentBorrowingCapacity" xlink:label="loc_us-gaap_LineOfCreditFacilityCurrentBorrowingCapacity_24826454172DE9F230B7F72E1B7D66D6" xlink:type="locator" />
    <definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_oesx_DebtTextualAbstract_F8BD265ADEFA98F1C37FF72E1B7DF07F" xlink:to="loc_us-gaap_LineOfCreditFacilityCurrentBorrowingCapacity_24826454172DE9F230B7F72E1B7D66D6" xlink:type="arc" />
    <loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_LineOfCreditFacilityMaximumBorrowingCapacity" xlink:label="loc_us-gaap_LineOfCreditFacilityMaximumBorrowingCapacity_586036F64EC999E5A9B4F72E1B7D1F67" xlink:type="locator" />
    <definitionArc order="2" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_oesx_DebtTextualAbstract_F8BD265ADEFA98F1C37FF72E1B7DF07F" xlink:to="loc_us-gaap_LineOfCreditFacilityMaximumBorrowingCapacity_586036F64EC999E5A9B4F72E1B7D1F67" xlink:type="arc" />
    <loc xlink:href="oesx-20160331.xsd#oesx_LineofCreditFacilityCovenantTermsMinimumIndebtednessRatio" xlink:label="loc_oesx_LineofCreditFacilityCovenantTermsMinimumIndebtednessRatio_3FF35C2719992AA9455FF72E1B7D1E15" xlink:type="locator" />
    <definitionArc order="3" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_oesx_DebtTextualAbstract_F8BD265ADEFA98F1C37FF72E1B7DF07F" xlink:to="loc_oesx_LineofCreditFacilityCovenantTermsMinimumIndebtednessRatio_3FF35C2719992AA9455FF72E1B7D1E15" xlink:type="arc" />
    <loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_DebtInstrumentBasisSpreadOnVariableRate1" xlink:label="loc_us-gaap_DebtInstrumentBasisSpreadOnVariableRate1_DA4E445DA8E04C96927DF72E1B7DDB02" xlink:type="locator" />
    <definitionArc order="4" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_oesx_DebtTextualAbstract_F8BD265ADEFA98F1C37FF72E1B7DF07F" xlink:to="loc_us-gaap_DebtInstrumentBasisSpreadOnVariableRate1_DA4E445DA8E04C96927DF72E1B7DDB02" xlink:type="arc" />
    <loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_DebtInstrumentPeriodicPaymentInterest" xlink:label="loc_us-gaap_DebtInstrumentPeriodicPaymentInterest_41E6C4058F9567DAAEE9F72E1B7E6D6A" xlink:type="locator" />
    <definitionArc order="5" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_oesx_DebtTextualAbstract_F8BD265ADEFA98F1C37FF72E1B7DF07F" xlink:to="loc_us-gaap_DebtInstrumentPeriodicPaymentInterest_41E6C4058F9567DAAEE9F72E1B7E6D6A" xlink:type="arc" />
    <loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_DebtInstrumentInterestRateEffectivePercentage" xlink:label="loc_us-gaap_DebtInstrumentInterestRateEffectivePercentage_BC576B829148D2D8DD0EF72E1B7E04F8" xlink:type="locator" />
    <definitionArc order="6" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_oesx_DebtTextualAbstract_F8BD265ADEFA98F1C37FF72E1B7DF07F" xlink:to="loc_us-gaap_DebtInstrumentInterestRateEffectivePercentage_BC576B829148D2D8DD0EF72E1B7E04F8" xlink:type="arc" />
    <loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_LineOfCreditFacilityUnusedCapacityCommitmentFeePercentage" xlink:label="loc_us-gaap_LineOfCreditFacilityUnusedCapacityCommitmentFeePercentage_BC974D3B8C7921C500FFF72E1B7ED256" xlink:type="locator" />
    <definitionArc order="7" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_oesx_DebtTextualAbstract_F8BD265ADEFA98F1C37FF72E1B7DF07F" xlink:to="loc_us-gaap_LineOfCreditFacilityUnusedCapacityCommitmentFeePercentage_BC974D3B8C7921C500FFF72E1B7ED256" xlink:type="arc" />
    <loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_LettersOfCreditOutstandingAmount" xlink:label="loc_us-gaap_LettersOfCreditOutstandingAmount_29F6EC9BFB39651FEE45F72E1B7E655F" xlink:type="locator" />
    <definitionArc order="8" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_oesx_DebtTextualAbstract_F8BD265ADEFA98F1C37FF72E1B7DF07F" xlink:to="loc_us-gaap_LettersOfCreditOutstandingAmount_29F6EC9BFB39651FEE45F72E1B7E655F" xlink:type="arc" />
    <loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_LongTermLineOfCredit" xlink:label="loc_us-gaap_LongTermLineOfCredit_5CFC06EA616F39D11A70F72E1B7E9499" xlink:type="locator" />
    <definitionArc order="9" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_oesx_DebtTextualAbstract_F8BD265ADEFA98F1C37FF72E1B7DF07F" xlink:to="loc_us-gaap_LongTermLineOfCredit_5CFC06EA616F39D11A70F72E1B7E9499" xlink:type="arc" />
    <loc xlink:href="oesx-20160331.xsd#oesx_LineofCreditFacilityAdditionalBorrowingCapacity" xlink:label="loc_oesx_LineofCreditFacilityAdditionalBorrowingCapacity_4E5E4DC21E6650D2F7BEF72E1B7E5182" xlink:type="locator" />
    <definitionArc order="10" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_oesx_DebtTextualAbstract_F8BD265ADEFA98F1C37FF72E1B7DF07F" xlink:to="loc_oesx_LineofCreditFacilityAdditionalBorrowingCapacity_4E5E4DC21E6650D2F7BEF72E1B7E5182" xlink:type="arc" />
  </definitionLink>
  <definitionLink xlink:role="http://www.oesx.com/role/LongTermDebtTables" xlink:type="extended" />
  <definitionLink xlink:role="http://www.oesx.com/role/QuarterlyFinancialDataDetails" xlink:type="extended" />
  <definitionLink xlink:role="http://www.oesx.com/role/QuarterlyFinancialDataUnaudited" xlink:type="extended" />
  <definitionLink xlink:role="http://www.oesx.com/role/QuarterlyFinancialDataUnauditedTables" xlink:type="extended" />
  <definitionLink xlink:role="http://www.oesx.com/role/RelatedPartyTransactions" xlink:type="extended" />
  <definitionLink xlink:role="http://www.oesx.com/role/RelatedPartyTransactionsDetails" xlink:type="extended">
    <loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_RelatedPartyTransactionLineItems" xlink:label="loc_us-gaap_RelatedPartyTransactionLineItems_672F9A16F90327EB9529262654BAC951" xlink:type="locator" />
    <loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_ScheduleOfRelatedPartyTransactionsByRelatedPartyTable" xlink:label="loc_us-gaap_ScheduleOfRelatedPartyTransactionsByRelatedPartyTable_CAA48BC6C86A89088A6F262654B9B5F3" xlink:type="locator" />
    <definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/all" xlink:from="loc_us-gaap_RelatedPartyTransactionLineItems_672F9A16F90327EB9529262654BAC951" xlink:to="loc_us-gaap_ScheduleOfRelatedPartyTransactionsByRelatedPartyTable_CAA48BC6C86A89088A6F262654B9B5F3" xlink:type="arc" xbrldt:closed="true" xbrldt:contextElement="segment" />
    <loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_RelatedPartyTransactionsByRelatedPartyAxis" xlink:label="loc_us-gaap_RelatedPartyTransactionsByRelatedPartyAxis_22F69BDFF5AA09D72313262654B9CD16" xlink:type="locator" />
    <definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_ScheduleOfRelatedPartyTransactionsByRelatedPartyTable_CAA48BC6C86A89088A6F262654B9B5F3" xlink:to="loc_us-gaap_RelatedPartyTransactionsByRelatedPartyAxis_22F69BDFF5AA09D72313262654B9CD16" xlink:type="arc" />
    <loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_RelatedPartyDomain" xlink:label="loc_us-gaap_RelatedPartyDomain_F8B00C844B7DB4A0DA4F262654BAA4B0_default" xlink:type="locator" />
    <definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_RelatedPartyTransactionsByRelatedPartyAxis_22F69BDFF5AA09D72313262654B9CD16" xlink:to="loc_us-gaap_RelatedPartyDomain_F8B00C844B7DB4A0DA4F262654BAA4B0_default" xlink:type="arc" />
    <loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_RelatedPartyDomain" xlink:label="loc_us-gaap_RelatedPartyDomain_F8B00C844B7DB4A0DA4F262654BAA4B0" xlink:type="locator" />
    <definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_RelatedPartyTransactionsByRelatedPartyAxis_22F69BDFF5AA09D72313262654B9CD16" xlink:to="loc_us-gaap_RelatedPartyDomain_F8B00C844B7DB4A0DA4F262654BAA4B0" xlink:type="arc" />
    <loc xlink:href="oesx-20160331.xsd#oesx_EntitythatCurrentDirectorOwnsMinorityInterestandServesasBoardofDirectorsChairmanMember" xlink:label="loc_oesx_EntitythatCurrentDirectorOwnsMinorityInterestandServesasBoardofDirectorsChairmanMember_8B983CF24028D3975063262654BAAF56" xlink:type="locator" />
    <definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_RelatedPartyDomain_F8B00C844B7DB4A0DA4F262654BAA4B0" xlink:to="loc_oesx_EntitythatCurrentDirectorOwnsMinorityInterestandServesasBoardofDirectorsChairmanMember_8B983CF24028D3975063262654BAAF56" xlink:type="arc" />
    <loc xlink:href="oesx-20160331.xsd#oesx_RelatedPartyTransactionsTextualAbstract" xlink:label="loc_oesx_RelatedPartyTransactionsTextualAbstract_1EB4DB0ABBCBEF9C885F262654BA37F3" xlink:type="locator" />
    <definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_RelatedPartyTransactionLineItems_672F9A16F90327EB9529262654BAC951" xlink:to="loc_oesx_RelatedPartyTransactionsTextualAbstract_1EB4DB0ABBCBEF9C885F262654BA37F3" xlink:type="arc" />
    <loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_RelatedPartyTransactionPurchasesFromRelatedParty" xlink:label="loc_us-gaap_RelatedPartyTransactionPurchasesFromRelatedParty_FD56B62D18D936F49DFC262654BA41FE" xlink:type="locator" />
    <definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_oesx_RelatedPartyTransactionsTextualAbstract_1EB4DB0ABBCBEF9C885F262654BA37F3" xlink:to="loc_us-gaap_RelatedPartyTransactionPurchasesFromRelatedParty_FD56B62D18D936F49DFC262654BA41FE" xlink:type="arc" />
  </definitionLink>
  <definitionLink xlink:role="http://www.oesx.com/role/SegmentData" xlink:type="extended" />
  <definitionLink xlink:role="http://www.oesx.com/role/SegmentDataReconciliationOfSegmentAssetsAndLiabilitiesDetails" xlink:type="extended">
    <loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_SegmentReportingInformationLineItems" xlink:label="loc_us-gaap_SegmentReportingInformationLineItems_008421ABD77DD18E09A3738408BE4164" xlink:type="locator" />
    <loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_ScheduleOfSegmentReportingInformationBySegmentTable" xlink:label="loc_us-gaap_ScheduleOfSegmentReportingInformationBySegmentTable_F7EC94CF5A2AB81B1260738408BE1E9D" xlink:type="locator" />
    <definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/all" xlink:from="loc_us-gaap_SegmentReportingInformationLineItems_008421ABD77DD18E09A3738408BE4164" xlink:to="loc_us-gaap_ScheduleOfSegmentReportingInformationBySegmentTable_F7EC94CF5A2AB81B1260738408BE1E9D" xlink:type="arc" xbrldt:closed="true" xbrldt:contextElement="segment" />
    <loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_StatementBusinessSegmentsAxis" xlink:label="loc_us-gaap_StatementBusinessSegmentsAxis_299BCF6A0382213FBA1E738408BEA13D" xlink:type="locator" />
    <definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_ScheduleOfSegmentReportingInformationBySegmentTable_F7EC94CF5A2AB81B1260738408BE1E9D" xlink:to="loc_us-gaap_StatementBusinessSegmentsAxis_299BCF6A0382213FBA1E738408BEA13D" xlink:type="arc" />
    <loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_SegmentDomain" xlink:label="loc_us-gaap_SegmentDomain_51DBE2B49B1A7F2ACE64738408BEC93A_default" xlink:type="locator" />
    <definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_StatementBusinessSegmentsAxis_299BCF6A0382213FBA1E738408BEA13D" xlink:to="loc_us-gaap_SegmentDomain_51DBE2B49B1A7F2ACE64738408BEC93A_default" xlink:type="arc" />
    <loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_SegmentDomain" xlink:label="loc_us-gaap_SegmentDomain_51DBE2B49B1A7F2ACE64738408BEC93A" xlink:type="locator" />
    <definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_StatementBusinessSegmentsAxis_299BCF6A0382213FBA1E738408BEA13D" xlink:to="loc_us-gaap_SegmentDomain_51DBE2B49B1A7F2ACE64738408BEC93A" xlink:type="arc" />
    <loc xlink:href="oesx-20160331.xsd#oesx_U.S.MarketsMember" xlink:label="loc_oesx_U.S.MarketsMember_B5FF072CEA0B63E89255738408BEF31C" xlink:type="locator" />
    <definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_SegmentDomain_51DBE2B49B1A7F2ACE64738408BEC93A" xlink:to="loc_oesx_U.S.MarketsMember_B5FF072CEA0B63E89255738408BEF31C" xlink:type="arc" />
    <loc xlink:href="oesx-20160331.xsd#oesx_EngineeredSystemsMember" xlink:label="loc_oesx_EngineeredSystemsMember_45013F8CC9605AA3E213738408BE53B7" xlink:type="locator" />
    <definitionArc order="2" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_SegmentDomain_51DBE2B49B1A7F2ACE64738408BEC93A" xlink:to="loc_oesx_EngineeredSystemsMember_45013F8CC9605AA3E213738408BE53B7" xlink:type="arc" />
    <loc xlink:href="oesx-20160331.xsd#oesx_DistributionServicesMember" xlink:label="loc_oesx_DistributionServicesMember_19DBBEFB996CB5BC496D738408BE994A" xlink:type="locator" />
    <definitionArc order="3" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_SegmentDomain_51DBE2B49B1A7F2ACE64738408BEC93A" xlink:to="loc_oesx_DistributionServicesMember_19DBBEFB996CB5BC496D738408BE994A" xlink:type="arc" />
    <loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_CorporateAndOtherMember" xlink:label="loc_us-gaap_CorporateAndOtherMember_0461D90A8D2BD1AB717A738408BEBB50" xlink:type="locator" />
    <definitionArc order="4" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_SegmentDomain_51DBE2B49B1A7F2ACE64738408BEC93A" xlink:to="loc_us-gaap_CorporateAndOtherMember_0461D90A8D2BD1AB717A738408BEBB50" xlink:type="arc" />
    <loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_SegmentReportingInformationRevenueAbstract" xlink:label="loc_us-gaap_SegmentReportingInformationRevenueAbstract_8B3595CA4DF5FD8DFA11738408BE5D2B" xlink:type="locator" />
    <definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_SegmentReportingInformationLineItems_008421ABD77DD18E09A3738408BE4164" xlink:to="loc_us-gaap_SegmentReportingInformationRevenueAbstract_8B3595CA4DF5FD8DFA11738408BE5D2B" xlink:type="arc" />
    <loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_Assets" xlink:label="loc_us-gaap_Assets_75FB7079A71FB72179E7738408BE4E6B" xlink:type="locator" />
    <definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_SegmentReportingInformationRevenueAbstract_8B3595CA4DF5FD8DFA11738408BE5D2B" xlink:to="loc_us-gaap_Assets_75FB7079A71FB72179E7738408BE4E6B" xlink:type="arc" />
    <loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_DeferredRevenue" xlink:label="loc_us-gaap_DeferredRevenue_808757D94871430DA191738408BF1D29" xlink:type="locator" />
    <definitionArc order="2" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_SegmentReportingInformationRevenueAbstract_8B3595CA4DF5FD8DFA11738408BE5D2B" xlink:to="loc_us-gaap_DeferredRevenue_808757D94871430DA191738408BF1D29" xlink:type="arc" />
  </definitionLink>
  <definitionLink xlink:role="http://www.oesx.com/role/SegmentDataReconciliationOfSegmentOperationsDetails" xlink:type="extended">
    <loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_SegmentReportingInformationLineItems" xlink:label="loc_us-gaap_SegmentReportingInformationLineItems_802DE20A7897352C651D738408C58861" xlink:type="locator" />
    <loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_ScheduleOfSegmentReportingInformationBySegmentTable" xlink:label="loc_us-gaap_ScheduleOfSegmentReportingInformationBySegmentTable_EB5F85A50C81D5ED2EE1738408C4E2F3" xlink:type="locator" />
    <definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/all" xlink:from="loc_us-gaap_SegmentReportingInformationLineItems_802DE20A7897352C651D738408C58861" xlink:to="loc_us-gaap_ScheduleOfSegmentReportingInformationBySegmentTable_EB5F85A50C81D5ED2EE1738408C4E2F3" xlink:type="arc" xbrldt:closed="true" xbrldt:contextElement="segment" />
    <loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_StatementBusinessSegmentsAxis" xlink:label="loc_us-gaap_StatementBusinessSegmentsAxis_6E33F9FA50D50EE088A2738408C5ED4C" xlink:type="locator" />
    <definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_ScheduleOfSegmentReportingInformationBySegmentTable_EB5F85A50C81D5ED2EE1738408C4E2F3" xlink:to="loc_us-gaap_StatementBusinessSegmentsAxis_6E33F9FA50D50EE088A2738408C5ED4C" xlink:type="arc" />
    <loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_SegmentDomain" xlink:label="loc_us-gaap_SegmentDomain_9165BA2DF1D95BC9407E738408C5205F_default" xlink:type="locator" />
    <definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_StatementBusinessSegmentsAxis_6E33F9FA50D50EE088A2738408C5ED4C" xlink:to="loc_us-gaap_SegmentDomain_9165BA2DF1D95BC9407E738408C5205F_default" xlink:type="arc" />
    <loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_SegmentDomain" xlink:label="loc_us-gaap_SegmentDomain_9165BA2DF1D95BC9407E738408C5205F" xlink:type="locator" />
    <definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_StatementBusinessSegmentsAxis_6E33F9FA50D50EE088A2738408C5ED4C" xlink:to="loc_us-gaap_SegmentDomain_9165BA2DF1D95BC9407E738408C5205F" xlink:type="arc" />
    <loc xlink:href="oesx-20160331.xsd#oesx_U.S.MarketsMember" xlink:label="loc_oesx_U.S.MarketsMember_6FA49A15CC4107B93B78738408C5A242" xlink:type="locator" />
    <definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_SegmentDomain_9165BA2DF1D95BC9407E738408C5205F" xlink:to="loc_oesx_U.S.MarketsMember_6FA49A15CC4107B93B78738408C5A242" xlink:type="arc" />
    <loc xlink:href="oesx-20160331.xsd#oesx_EngineeredSystemsMember" xlink:label="loc_oesx_EngineeredSystemsMember_74B73640D862CE7D6A2A738408C5072C" xlink:type="locator" />
    <definitionArc order="2" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_SegmentDomain_9165BA2DF1D95BC9407E738408C5205F" xlink:to="loc_oesx_EngineeredSystemsMember_74B73640D862CE7D6A2A738408C5072C" xlink:type="arc" />
    <loc xlink:href="oesx-20160331.xsd#oesx_DistributionServicesMember" xlink:label="loc_oesx_DistributionServicesMember_7887B6BB977B751CC107738408C57DC8" xlink:type="locator" />
    <definitionArc order="3" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_SegmentDomain_9165BA2DF1D95BC9407E738408C5205F" xlink:to="loc_oesx_DistributionServicesMember_7887B6BB977B751CC107738408C57DC8" xlink:type="arc" />
    <loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_CorporateAndOtherMember" xlink:label="loc_us-gaap_CorporateAndOtherMember_828528C1DF05994564FA738408C5E125" xlink:type="locator" />
    <definitionArc order="4" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_SegmentDomain_9165BA2DF1D95BC9407E738408C5205F" xlink:to="loc_us-gaap_CorporateAndOtherMember_828528C1DF05994564FA738408C5E125" xlink:type="arc" />
    <loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_SegmentReportingInformationRevenueAbstract" xlink:label="loc_us-gaap_SegmentReportingInformationRevenueAbstract_72437000D7A35133F1CE738408C58FE1" xlink:type="locator" />
    <definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_SegmentReportingInformationLineItems_802DE20A7897352C651D738408C58861" xlink:to="loc_us-gaap_SegmentReportingInformationRevenueAbstract_72437000D7A35133F1CE738408C58FE1" xlink:type="arc" />
    <loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_Revenues" xlink:label="loc_us-gaap_Revenues_BC4F08EEA694D5A9FD49738408C51B3F" xlink:type="locator" />
    <definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_SegmentReportingInformationRevenueAbstract_72437000D7A35133F1CE738408C58FE1" xlink:to="loc_us-gaap_Revenues_BC4F08EEA694D5A9FD49738408C51B3F" xlink:type="arc" />
    <loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_OperatingIncomeLoss" xlink:label="loc_us-gaap_OperatingIncomeLoss_4BC92829CCA0E5AA4A66738408C57CB7" xlink:type="locator" />
    <definitionArc order="2" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_SegmentReportingInformationRevenueAbstract_72437000D7A35133F1CE738408C58FE1" xlink:to="loc_us-gaap_OperatingIncomeLoss_4BC92829CCA0E5AA4A66738408C57CB7" xlink:type="arc" />
    <loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_DepreciationDepletionAndAmortization" xlink:label="loc_us-gaap_DepreciationDepletionAndAmortization_C060BB2B56E49A047130738408C58967" xlink:type="locator" />
    <definitionArc order="3" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_SegmentReportingInformationRevenueAbstract_72437000D7A35133F1CE738408C58FE1" xlink:to="loc_us-gaap_DepreciationDepletionAndAmortization_C060BB2B56E49A047130738408C58967" xlink:type="arc" />
    <loc xlink:href="oesx-20160331.xsd#oesx_PaymentsToAcquirePropertyPlantAndEquipmentAndProductiveAssets" xlink:label="loc_oesx_PaymentsToAcquirePropertyPlantAndEquipmentAndProductiveAssets_5347046116F6C19491E5738408C6F7BB" xlink:type="locator" />
    <definitionArc order="4" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_SegmentReportingInformationRevenueAbstract_72437000D7A35133F1CE738408C58FE1" xlink:to="loc_oesx_PaymentsToAcquirePropertyPlantAndEquipmentAndProductiveAssets_5347046116F6C19491E5738408C6F7BB" xlink:type="arc" />
  </definitionLink>
  <definitionLink xlink:role="http://www.oesx.com/role/SegmentDataTables" xlink:type="extended" />
  <definitionLink xlink:role="http://www.oesx.com/role/ShareholdersEquity" xlink:type="extended" />
  <definitionLink xlink:role="http://www.oesx.com/role/ShareholdersEquityDetailsTextual" xlink:type="extended">
    <loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_EquityClassOfTreasuryStockLineItems" xlink:label="loc_us-gaap_EquityClassOfTreasuryStockLineItems_40768EBF5827549B576373840905A2A8" xlink:type="locator" />
    <loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_ClassOfTreasuryStockTable" xlink:label="loc_us-gaap_ClassOfTreasuryStockTable_1C4E790420A161467233738409053116" xlink:type="locator" />
    <definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/all" xlink:from="loc_us-gaap_EquityClassOfTreasuryStockLineItems_40768EBF5827549B576373840905A2A8" xlink:to="loc_us-gaap_ClassOfTreasuryStockTable_1C4E790420A161467233738409053116" xlink:type="arc" xbrldt:closed="true" xbrldt:contextElement="segment" />
    <loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_ShareRepurchaseProgramAxis" xlink:label="loc_us-gaap_ShareRepurchaseProgramAxis_BF0643109BA65FFDC83473840905A840" xlink:type="locator" />
    <definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_ClassOfTreasuryStockTable_1C4E790420A161467233738409053116" xlink:to="loc_us-gaap_ShareRepurchaseProgramAxis_BF0643109BA65FFDC83473840905A840" xlink:type="arc" />
    <loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_ShareRepurchaseProgramDomain" xlink:label="loc_us-gaap_ShareRepurchaseProgramDomain_68802A3A3539F2CCC599738409052886_default" xlink:type="locator" />
    <definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_ShareRepurchaseProgramAxis_BF0643109BA65FFDC83473840905A840" xlink:to="loc_us-gaap_ShareRepurchaseProgramDomain_68802A3A3539F2CCC599738409052886_default" xlink:type="arc" />
    <loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_ShareRepurchaseProgramDomain" xlink:label="loc_us-gaap_ShareRepurchaseProgramDomain_68802A3A3539F2CCC599738409052886" xlink:type="locator" />
    <definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_ShareRepurchaseProgramAxis_BF0643109BA65FFDC83473840905A840" xlink:to="loc_us-gaap_ShareRepurchaseProgramDomain_68802A3A3539F2CCC599738409052886" xlink:type="arc" />
    <loc xlink:href="oesx-20160331.xsd#oesx_October2011Member" xlink:label="loc_oesx_October2011Member_842FBC667E288F1D0AC373840905CF83" xlink:type="locator" />
    <definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ShareRepurchaseProgramDomain_68802A3A3539F2CCC599738409052886" xlink:to="loc_oesx_October2011Member_842FBC667E288F1D0AC373840905CF83" xlink:type="arc" />
    <loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_StockIssuedDuringPeriodSharesNewIssues" xlink:label="loc_us-gaap_StockIssuedDuringPeriodSharesNewIssues_2D158A0E1D35BBD4D9B6738409050361" xlink:type="locator" />
    <definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_EquityClassOfTreasuryStockLineItems_40768EBF5827549B576373840905A2A8" xlink:to="loc_us-gaap_StockIssuedDuringPeriodSharesNewIssues_2D158A0E1D35BBD4D9B6738409050361" xlink:type="arc" />
    <loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_SharesIssuedPricePerShare" xlink:label="loc_us-gaap_SharesIssuedPricePerShare_EF0BEE5F84C2FCE01C66738409069AB4" xlink:type="locator" />
    <definitionArc order="2" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_EquityClassOfTreasuryStockLineItems_40768EBF5827549B576373840905A2A8" xlink:to="loc_us-gaap_SharesIssuedPricePerShare_EF0BEE5F84C2FCE01C66738409069AB4" xlink:type="arc" />
    <loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_ProceedsFromIssuanceOfCommonStock" xlink:label="loc_us-gaap_ProceedsFromIssuanceOfCommonStock_1D98CD533A75CAFCBAEB7384090646DF" xlink:type="locator" />
    <definitionArc order="3" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_EquityClassOfTreasuryStockLineItems_40768EBF5827549B576373840905A2A8" xlink:to="loc_us-gaap_ProceedsFromIssuanceOfCommonStock_1D98CD533A75CAFCBAEB7384090646DF" xlink:type="arc" />
    <loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_StockRepurchaseProgramAuthorizedAmount1" xlink:label="loc_us-gaap_StockRepurchaseProgramAuthorizedAmount1_1BB4BEAA9FDD13588EB073840906946D" xlink:type="locator" />
    <definitionArc order="4" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_EquityClassOfTreasuryStockLineItems_40768EBF5827549B576373840905A2A8" xlink:to="loc_us-gaap_StockRepurchaseProgramAuthorizedAmount1_1BB4BEAA9FDD13588EB073840906946D" xlink:type="arc" />
    <loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_TreasuryStockSharesAcquired" xlink:label="loc_us-gaap_TreasuryStockSharesAcquired_121668ACA7F9827253F6738409067682" xlink:type="locator" />
    <definitionArc order="5" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_EquityClassOfTreasuryStockLineItems_40768EBF5827549B576373840905A2A8" xlink:to="loc_us-gaap_TreasuryStockSharesAcquired_121668ACA7F9827253F6738409067682" xlink:type="arc" />
    <loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_PaymentsForRepurchaseOfCommonStock" xlink:label="loc_us-gaap_PaymentsForRepurchaseOfCommonStock_96DDE9416449B171D0E373840906057C" xlink:type="locator" />
    <definitionArc order="6" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_EquityClassOfTreasuryStockLineItems_40768EBF5827549B576373840905A2A8" xlink:to="loc_us-gaap_PaymentsForRepurchaseOfCommonStock_96DDE9416449B171D0E373840906057C" xlink:type="arc" />
    <loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_ClassOfWarrantOrRightNumberOfSecuritiesCalledByEachWarrantOrRight" xlink:label="loc_us-gaap_ClassOfWarrantOrRightNumberOfSecuritiesCalledByEachWarrantOrRight_4EE198CB05B2F7DBC3E473840906AC43" xlink:type="locator" />
    <definitionArc order="7" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_EquityClassOfTreasuryStockLineItems_40768EBF5827549B576373840905A2A8" xlink:to="loc_us-gaap_ClassOfWarrantOrRightNumberOfSecuritiesCalledByEachWarrantOrRight_4EE198CB05B2F7DBC3E473840906AC43" xlink:type="arc" />
    <loc xlink:href="oesx-20160331.xsd#oesx_RightIssueSharePrice" xlink:label="loc_oesx_RightIssueSharePrice_2A79EAC675AC21B632747384090668DB" xlink:type="locator" />
    <definitionArc order="8" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_EquityClassOfTreasuryStockLineItems_40768EBF5827549B576373840905A2A8" xlink:to="loc_oesx_RightIssueSharePrice_2A79EAC675AC21B632747384090668DB" xlink:type="arc" />
    <loc xlink:href="oesx-20160331.xsd#oesx_MinimumSubscriptionPercentage" xlink:label="loc_oesx_MinimumSubscriptionPercentage_A40040D241AD1F496B0F738409065988" xlink:type="locator" />
    <definitionArc order="9" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_EquityClassOfTreasuryStockLineItems_40768EBF5827549B576373840905A2A8" xlink:to="loc_oesx_MinimumSubscriptionPercentage_A40040D241AD1F496B0F738409065988" xlink:type="arc" />
    <loc xlink:href="oesx-20160331.xsd#oesx_RightsDistributionDateTriggerNumberOfBusinessDaysAfterCommencementOrOfferOfAcquisition" xlink:label="loc_oesx_RightsDistributionDateTriggerNumberOfBusinessDaysAfterCommencementOrOfferOfAcquisition_B74BB4F427AA7331C52F73840906C7AE" xlink:type="locator" />
    <definitionArc order="10" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_EquityClassOfTreasuryStockLineItems_40768EBF5827549B576373840905A2A8" xlink:to="loc_oesx_RightsDistributionDateTriggerNumberOfBusinessDaysAfterCommencementOrOfferOfAcquisition_B74BB4F427AA7331C52F73840906C7AE" xlink:type="arc" />
    <loc xlink:href="oesx-20160331.xsd#oesx_AcquisitionShareVoidPercentage" xlink:label="loc_oesx_AcquisitionShareVoidPercentage_85B69E7737F08DC3D2E17384090773F1" xlink:type="locator" />
    <definitionArc order="11" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_EquityClassOfTreasuryStockLineItems_40768EBF5827549B576373840905A2A8" xlink:to="loc_oesx_AcquisitionShareVoidPercentage_85B69E7737F08DC3D2E17384090773F1" xlink:type="arc" />
    <loc xlink:href="oesx-20160331.xsd#oesx_SharePurchaseRightsRedemptionPrice" xlink:label="loc_oesx_SharePurchaseRightsRedemptionPrice_0BC91E8F316894974E0A7384090736A2" xlink:type="locator" />
    <definitionArc order="12" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_EquityClassOfTreasuryStockLineItems_40768EBF5827549B576373840905A2A8" xlink:to="loc_oesx_SharePurchaseRightsRedemptionPrice_0BC91E8F316894974E0A7384090736A2" xlink:type="arc" />
    <loc xlink:href="oesx-20160331.xsd#oesx_EmployeeStockPurchasePlansSharesAuthorized" xlink:label="loc_oesx_EmployeeStockPurchasePlansSharesAuthorized_49A493D42E77B60783417384090746C2" xlink:type="locator" />
    <definitionArc order="13" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_EquityClassOfTreasuryStockLineItems_40768EBF5827549B576373840905A2A8" xlink:to="loc_oesx_EmployeeStockPurchasePlansSharesAuthorized_49A493D42E77B60783417384090746C2" xlink:type="arc" />
    <loc xlink:href="oesx-20160331.xsd#oesx_MaximumAmountLimitForEmployeeStockPurchasePlanPerEmployee" xlink:label="loc_oesx_MaximumAmountLimitForEmployeeStockPurchasePlanPerEmployee_D0193EB36224C388EC7973840907AF18" xlink:type="locator" />
    <definitionArc order="14" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_EquityClassOfTreasuryStockLineItems_40768EBF5827549B576373840905A2A8" xlink:to="loc_oesx_MaximumAmountLimitForEmployeeStockPurchasePlanPerEmployee_D0193EB36224C388EC7973840907AF18" xlink:type="arc" />
    <loc xlink:href="oesx-20160331.xsd#oesx_EmployeeStockPurchasePlanPurchasePriceToMarketPriceMatchingPercentage" xlink:label="loc_oesx_EmployeeStockPurchasePlanPurchasePriceToMarketPriceMatchingPercentage_4E76221B1FA0EB66538B73840907FB08" xlink:type="locator" />
    <definitionArc order="15" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_EquityClassOfTreasuryStockLineItems_40768EBF5827549B576373840905A2A8" xlink:to="loc_oesx_EmployeeStockPurchasePlanPurchasePriceToMarketPriceMatchingPercentage_4E76221B1FA0EB66538B73840907FB08" xlink:type="arc" />
    <loc xlink:href="oesx-20160331.xsd#oesx_EmployeeStockPurchasePlanAllowedLoanAmountPercentageOfAnnualIncome" xlink:label="loc_oesx_EmployeeStockPurchasePlanAllowedLoanAmountPercentageOfAnnualIncome_CDF5A35A598CD79BB734738409074062" xlink:type="locator" />
    <definitionArc order="16" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_EquityClassOfTreasuryStockLineItems_40768EBF5827549B576373840905A2A8" xlink:to="loc_oesx_EmployeeStockPurchasePlanAllowedLoanAmountPercentageOfAnnualIncome_CDF5A35A598CD79BB734738409074062" xlink:type="arc" />
    <loc xlink:href="oesx-20160331.xsd#oesx_EmployeeStockPurchasePlansLoanMaximumOutstandingAmount" xlink:label="loc_oesx_EmployeeStockPurchasePlansLoanMaximumOutstandingAmount_E39E70B3C79EAB3D2A1C73840907F2A2" xlink:type="locator" />
    <definitionArc order="17" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_EquityClassOfTreasuryStockLineItems_40768EBF5827549B576373840905A2A8" xlink:to="loc_oesx_EmployeeStockPurchasePlansLoanMaximumOutstandingAmount_E39E70B3C79EAB3D2A1C73840907F2A2" xlink:type="arc" />
    <loc xlink:href="oesx-20160331.xsd#oesx_EmployeeStockPurchasePlanLoanIRSInterestRate" xlink:label="loc_oesx_EmployeeStockPurchasePlanLoanIRSInterestRate_72A7C5AC5339E7E0B29D73840907E1A2" xlink:type="locator" />
    <definitionArc order="18" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_EquityClassOfTreasuryStockLineItems_40768EBF5827549B576373840905A2A8" xlink:to="loc_oesx_EmployeeStockPurchasePlanLoanIRSInterestRate_72A7C5AC5339E7E0B29D73840907E1A2" xlink:type="arc" />
  </definitionLink>
  <definitionLink xlink:role="http://www.oesx.com/role/ShareholdersEquityScheduleOfEsppActivityDetails" xlink:type="extended">
    <loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_EmployeeStockOwnershipPlanESOPDisclosuresLineItems" xlink:label="loc_us-gaap_EmployeeStockOwnershipPlanESOPDisclosuresLineItems_31DB862EA5ECF023A55D26F19D215628" xlink:type="locator" />
    <loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_ScheduleOfEmployeeStockOwnershipPlanESOPDisclosuresTable" xlink:label="loc_us-gaap_ScheduleOfEmployeeStockOwnershipPlanESOPDisclosuresTable_62C0D7E72718BBBE06CC26F19D20562E" xlink:type="locator" />
    <definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/all" xlink:from="loc_us-gaap_EmployeeStockOwnershipPlanESOPDisclosuresLineItems_31DB862EA5ECF023A55D26F19D215628" xlink:to="loc_us-gaap_ScheduleOfEmployeeStockOwnershipPlanESOPDisclosuresTable_62C0D7E72718BBBE06CC26F19D20562E" xlink:type="arc" xbrldt:closed="true" xbrldt:contextElement="segment" />
    <loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_RangeAxis" xlink:label="loc_us-gaap_RangeAxis_48BADB641ED3A1E4568926F19D200216" xlink:type="locator" />
    <definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_ScheduleOfEmployeeStockOwnershipPlanESOPDisclosuresTable_62C0D7E72718BBBE06CC26F19D20562E" xlink:to="loc_us-gaap_RangeAxis_48BADB641ED3A1E4568926F19D200216" xlink:type="arc" />
    <loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_RangeMember" xlink:label="loc_us-gaap_RangeMember_DE4B6A2CBF8A3E70E11B26F19D20E4DD_default" xlink:type="locator" />
    <definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_RangeAxis_48BADB641ED3A1E4568926F19D200216" xlink:to="loc_us-gaap_RangeMember_DE4B6A2CBF8A3E70E11B26F19D20E4DD_default" xlink:type="arc" />
    <loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_RangeMember" xlink:label="loc_us-gaap_RangeMember_DE4B6A2CBF8A3E70E11B26F19D20E4DD" xlink:type="locator" />
    <definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_RangeAxis_48BADB641ED3A1E4568926F19D200216" xlink:to="loc_us-gaap_RangeMember_DE4B6A2CBF8A3E70E11B26F19D20E4DD" xlink:type="arc" />
    <loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_MinimumMember" xlink:label="loc_us-gaap_MinimumMember_96090508F54E393505D626F19D21CF9C" xlink:type="locator" />
    <definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_RangeMember_DE4B6A2CBF8A3E70E11B26F19D20E4DD" xlink:to="loc_us-gaap_MinimumMember_96090508F54E393505D626F19D21CF9C" xlink:type="arc" />
    <loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_MaximumMember" xlink:label="loc_us-gaap_MaximumMember_06B69BA8136EFBCDE06826F19D212780" xlink:type="locator" />
    <definitionArc order="2" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_RangeMember_DE4B6A2CBF8A3E70E11B26F19D20E4DD" xlink:to="loc_us-gaap_MaximumMember_06B69BA8136EFBCDE06826F19D212780" xlink:type="arc" />
    <loc xlink:href="oesx-20160331.xsd#oesx_SummaryOfIssuanceOfStockUnderEmployeeStockOwnershipPlanAbstract" xlink:label="loc_oesx_SummaryOfIssuanceOfStockUnderEmployeeStockOwnershipPlanAbstract_1CAA8170D35F8DF4860726F19D219D53" xlink:type="locator" />
    <definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_EmployeeStockOwnershipPlanESOPDisclosuresLineItems_31DB862EA5ECF023A55D26F19D215628" xlink:to="loc_oesx_SummaryOfIssuanceOfStockUnderEmployeeStockOwnershipPlanAbstract_1CAA8170D35F8DF4860726F19D219D53" xlink:type="arc" />
    <loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_StockIssuedDuringPeriodSharesEmployeeStockPurchasePlans" xlink:label="loc_us-gaap_StockIssuedDuringPeriodSharesEmployeeStockPurchasePlans_BA6336ED1D109743AB6226F19D21418D" xlink:type="locator" />
    <definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_oesx_SummaryOfIssuanceOfStockUnderEmployeeStockOwnershipPlanAbstract_1CAA8170D35F8DF4860726F19D219D53" xlink:to="loc_us-gaap_StockIssuedDuringPeriodSharesEmployeeStockPurchasePlans_BA6336ED1D109743AB6226F19D21418D" xlink:type="arc" />
    <loc xlink:href="oesx-20160331.xsd#oesx_EmployeeStockPurchasePlanClosingMarketPriceOfSharesPurchased" xlink:label="loc_oesx_EmployeeStockPurchasePlanClosingMarketPriceOfSharesPurchased_46AF30D827494829737026F19D21E7F2" xlink:type="locator" />
    <definitionArc order="2" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_oesx_SummaryOfIssuanceOfStockUnderEmployeeStockOwnershipPlanAbstract_1CAA8170D35F8DF4860726F19D219D53" xlink:to="loc_oesx_EmployeeStockPurchasePlanClosingMarketPriceOfSharesPurchased_46AF30D827494829737026F19D21E7F2" xlink:type="arc" />
    <loc xlink:href="oesx-20160331.xsd#oesx_EmployeeStockPurchasePlansDebtStructureSharesIssued" xlink:label="loc_oesx_EmployeeStockPurchasePlansDebtStructureSharesIssued_46FF25B313036391AD4D26F19D210B54" xlink:type="locator" />
    <definitionArc order="3" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_oesx_SummaryOfIssuanceOfStockUnderEmployeeStockOwnershipPlanAbstract_1CAA8170D35F8DF4860726F19D219D53" xlink:to="loc_oesx_EmployeeStockPurchasePlansDebtStructureSharesIssued_46FF25B313036391AD4D26F19D210B54" xlink:type="arc" />
    <loc xlink:href="oesx-20160331.xsd#oesx_EmployeeStockPurchasePlansDebtStructureDirectLoanAmount" xlink:label="loc_oesx_EmployeeStockPurchasePlansDebtStructureDirectLoanAmount_0DAB915D2736F0E9946226F19D2186BB" xlink:type="locator" />
    <definitionArc order="4" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_oesx_SummaryOfIssuanceOfStockUnderEmployeeStockOwnershipPlanAbstract_1CAA8170D35F8DF4860726F19D219D53" xlink:to="loc_oesx_EmployeeStockPurchasePlansDebtStructureDirectLoanAmount_0DAB915D2736F0E9946226F19D2186BB" xlink:type="arc" />
    <loc xlink:href="oesx-20160331.xsd#oesx_EmployeeStockPurchasePlansDebtStructureDirectLoanRepaymentAmount" xlink:label="loc_oesx_EmployeeStockPurchasePlansDebtStructureDirectLoanRepaymentAmount_5FDDFA168D60730B321726F19D21F2E2" xlink:type="locator" />
    <definitionArc order="5" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_oesx_SummaryOfIssuanceOfStockUnderEmployeeStockOwnershipPlanAbstract_1CAA8170D35F8DF4860726F19D219D53" xlink:to="loc_oesx_EmployeeStockPurchasePlansDebtStructureDirectLoanRepaymentAmount_5FDDFA168D60730B321726F19D21F2E2" xlink:type="arc" />
  </definitionLink>
  <definitionLink xlink:role="http://www.oesx.com/role/ShareholdersEquityTables" xlink:type="extended" />
  <definitionLink xlink:role="http://www.oesx.com/role/StatementsOfShareholdersEquity" xlink:type="extended">
    <loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_StatementLineItems" xlink:label="loc_us-gaap_StatementLineItems_49EEA0B818773E34973B738409F47063" xlink:type="locator" />
    <loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_StatementTable" xlink:label="loc_us-gaap_StatementTable_672A0A95A97BB0DC170F738409F30FAA" xlink:type="locator" />
    <definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/all" xlink:from="loc_us-gaap_StatementLineItems_49EEA0B818773E34973B738409F47063" xlink:to="loc_us-gaap_StatementTable_672A0A95A97BB0DC170F738409F30FAA" xlink:type="arc" xbrldt:closed="true" xbrldt:contextElement="segment" />
    <loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_StatementEquityComponentsAxis" xlink:label="loc_us-gaap_StatementEquityComponentsAxis_59B14E0DC95F50B50F18738409F30CCE" xlink:type="locator" />
    <definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_StatementTable_672A0A95A97BB0DC170F738409F30FAA" xlink:to="loc_us-gaap_StatementEquityComponentsAxis_59B14E0DC95F50B50F18738409F30CCE" xlink:type="arc" />
    <loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_EquityComponentDomain" xlink:label="loc_us-gaap_EquityComponentDomain_AFC355B71115942DB028738409F3B31E_default" xlink:type="locator" />
    <definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_StatementEquityComponentsAxis_59B14E0DC95F50B50F18738409F30CCE" xlink:to="loc_us-gaap_EquityComponentDomain_AFC355B71115942DB028738409F3B31E_default" xlink:type="arc" />
    <loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_EquityComponentDomain" xlink:label="loc_us-gaap_EquityComponentDomain_AFC355B71115942DB028738409F3B31E" xlink:type="locator" />
    <definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_StatementEquityComponentsAxis_59B14E0DC95F50B50F18738409F30CCE" xlink:to="loc_us-gaap_EquityComponentDomain_AFC355B71115942DB028738409F3B31E" xlink:type="arc" />
    <loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_CommonStockMember" xlink:label="loc_us-gaap_CommonStockMember_670EA1EB26CFCC976347738409F3514B" xlink:type="locator" />
    <definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_EquityComponentDomain_AFC355B71115942DB028738409F3B31E" xlink:to="loc_us-gaap_CommonStockMember_670EA1EB26CFCC976347738409F3514B" xlink:type="arc" />
    <loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_CommonStockIncludingAdditionalPaidInCapitalMember" xlink:label="loc_us-gaap_CommonStockIncludingAdditionalPaidInCapitalMember_6AEADB7DDC065C4C43D4738409F445CF" xlink:type="locator" />
    <definitionArc order="2" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_EquityComponentDomain_AFC355B71115942DB028738409F3B31E" xlink:to="loc_us-gaap_CommonStockIncludingAdditionalPaidInCapitalMember_6AEADB7DDC065C4C43D4738409F445CF" xlink:type="arc" />
    <loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_TreasuryStockMember" xlink:label="loc_us-gaap_TreasuryStockMember_D61D4612E31D61183E9F738409F478E2" xlink:type="locator" />
    <definitionArc order="3" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_EquityComponentDomain_AFC355B71115942DB028738409F3B31E" xlink:to="loc_us-gaap_TreasuryStockMember_D61D4612E31D61183E9F738409F478E2" xlink:type="arc" />
    <loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_NotesReceivableMember" xlink:label="loc_us-gaap_NotesReceivableMember_B070F48CD6E04965E0B3738409F47982" xlink:type="locator" />
    <definitionArc order="4" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_EquityComponentDomain_AFC355B71115942DB028738409F3B31E" xlink:to="loc_us-gaap_NotesReceivableMember_B070F48CD6E04965E0B3738409F47982" xlink:type="arc" />
    <loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_RetainedEarningsMember" xlink:label="loc_us-gaap_RetainedEarningsMember_D5371D54A3CBB4BEC12F738409F4F7C8" xlink:type="locator" />
    <definitionArc order="5" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_EquityComponentDomain_AFC355B71115942DB028738409F3B31E" xlink:to="loc_us-gaap_RetainedEarningsMember_D5371D54A3CBB4BEC12F738409F4F7C8" xlink:type="arc" />
    <loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_IncreaseDecreaseInStockholdersEquityRollForward" xlink:label="loc_us-gaap_IncreaseDecreaseInStockholdersEquityRollForward_563B64B89F6F25EDD50C738409F4B6CB" xlink:type="locator" />
    <definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_StatementLineItems_49EEA0B818773E34973B738409F47063" xlink:to="loc_us-gaap_IncreaseDecreaseInStockholdersEquityRollForward_563B64B89F6F25EDD50C738409F4B6CB" xlink:type="arc" />
    <loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_SharesOutstanding" xlink:label="loc_us-gaap_SharesOutstanding_BD01D2D253CE991DA3DE738409F442C5" xlink:type="locator" />
    <definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_IncreaseDecreaseInStockholdersEquityRollForward_563B64B89F6F25EDD50C738409F4B6CB" xlink:to="loc_us-gaap_SharesOutstanding_BD01D2D253CE991DA3DE738409F442C5" xlink:type="arc" />
    <loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_StockholdersEquity" xlink:label="loc_us-gaap_StockholdersEquity_D934BE00AAC8925F5FFE738409F41EDE" xlink:type="locator" />
    <definitionArc order="2" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_IncreaseDecreaseInStockholdersEquityRollForward_563B64B89F6F25EDD50C738409F4B6CB" xlink:to="loc_us-gaap_StockholdersEquity_D934BE00AAC8925F5FFE738409F41EDE" xlink:type="arc" />
    <loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_StockIssuedDuringPeriodSharesIssuedForServices" xlink:label="loc_us-gaap_StockIssuedDuringPeriodSharesIssuedForServices_88D77B4FE017D53BCCCC738409F481DC" xlink:type="locator" />
    <definitionArc order="3" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_IncreaseDecreaseInStockholdersEquityRollForward_563B64B89F6F25EDD50C738409F4B6CB" xlink:to="loc_us-gaap_StockIssuedDuringPeriodSharesIssuedForServices_88D77B4FE017D53BCCCC738409F481DC" xlink:type="arc" />
    <loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_StockIssuedDuringPeriodValueIssuedForServices" xlink:label="loc_us-gaap_StockIssuedDuringPeriodValueIssuedForServices_FCDA3674992DE1E4D551738409F4C613" xlink:type="locator" />
    <definitionArc order="4" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_IncreaseDecreaseInStockholdersEquityRollForward_563B64B89F6F25EDD50C738409F4B6CB" xlink:to="loc_us-gaap_StockIssuedDuringPeriodValueIssuedForServices_FCDA3674992DE1E4D551738409F4C613" xlink:type="arc" />
    <loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_StockIssuedDuringPeriodSharesAcquisitions" xlink:label="loc_us-gaap_StockIssuedDuringPeriodSharesAcquisitions_07C03333F7B29ECBEAA2738409F46DB7" xlink:type="locator" />
    <definitionArc order="5" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_IncreaseDecreaseInStockholdersEquityRollForward_563B64B89F6F25EDD50C738409F4B6CB" xlink:to="loc_us-gaap_StockIssuedDuringPeriodSharesAcquisitions_07C03333F7B29ECBEAA2738409F46DB7" xlink:type="arc" />
    <loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_StockIssuedDuringPeriodValueAcquisitions" xlink:label="loc_us-gaap_StockIssuedDuringPeriodValueAcquisitions_F64A103DFBA3F0F803C1738409F497E7" xlink:type="locator" />
    <definitionArc order="6" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_IncreaseDecreaseInStockholdersEquityRollForward_563B64B89F6F25EDD50C738409F4B6CB" xlink:to="loc_us-gaap_StockIssuedDuringPeriodValueAcquisitions_F64A103DFBA3F0F803C1738409F497E7" xlink:type="arc" />
    <loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_StockIssuedDuringPeriodSharesNewIssues" xlink:label="loc_us-gaap_StockIssuedDuringPeriodSharesNewIssues_987BEA920D309542934A738409F423FB" xlink:type="locator" />
    <definitionArc order="7" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_IncreaseDecreaseInStockholdersEquityRollForward_563B64B89F6F25EDD50C738409F4B6CB" xlink:to="loc_us-gaap_StockIssuedDuringPeriodSharesNewIssues_987BEA920D309542934A738409F423FB" xlink:type="arc" />
    <loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_StockIssuedDuringPeriodValueNewIssues" xlink:label="loc_us-gaap_StockIssuedDuringPeriodValueNewIssues_CB007720941A6F98BA30738409F4F543" xlink:type="locator" />
    <definitionArc order="8" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_IncreaseDecreaseInStockholdersEquityRollForward_563B64B89F6F25EDD50C738409F4B6CB" xlink:to="loc_us-gaap_StockIssuedDuringPeriodValueNewIssues_CB007720941A6F98BA30738409F4F543" xlink:type="arc" />
    <loc xlink:href="oesx-20160331.xsd#oesx_Stockissuedduringperiodsharesstockoptionsandwarrantsexercised" xlink:label="loc_oesx_Stockissuedduringperiodsharesstockoptionsandwarrantsexercised_937C90C6C84E3F321D28738409F40B5E" xlink:type="locator" />
    <definitionArc order="9" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_IncreaseDecreaseInStockholdersEquityRollForward_563B64B89F6F25EDD50C738409F4B6CB" xlink:to="loc_oesx_Stockissuedduringperiodsharesstockoptionsandwarrantsexercised_937C90C6C84E3F321D28738409F40B5E" xlink:type="arc" />
    <loc xlink:href="oesx-20160331.xsd#oesx_StockIssuedDuringPeriodValueStockOptionsandWarrantsExercised" xlink:label="loc_oesx_StockIssuedDuringPeriodValueStockOptionsandWarrantsExercised_A48B13C455F790142DD8738409F4B365" xlink:type="locator" />
    <definitionArc order="10" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_IncreaseDecreaseInStockholdersEquityRollForward_563B64B89F6F25EDD50C738409F4B6CB" xlink:to="loc_oesx_StockIssuedDuringPeriodValueStockOptionsandWarrantsExercised_A48B13C455F790142DD8738409F4B365" xlink:type="arc" />
    <loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_StockIssuedDuringPeriodSharesEmployeeStockPurchasePlans" xlink:label="loc_us-gaap_StockIssuedDuringPeriodSharesEmployeeStockPurchasePlans_9EC3FD095F3D112A1259738409F513FF" xlink:type="locator" />
    <definitionArc order="11" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_IncreaseDecreaseInStockholdersEquityRollForward_563B64B89F6F25EDD50C738409F4B6CB" xlink:to="loc_us-gaap_StockIssuedDuringPeriodSharesEmployeeStockPurchasePlans_9EC3FD095F3D112A1259738409F513FF" xlink:type="arc" />
    <loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_StockIssuedDuringPeriodValueEmployeeStockPurchasePlan" xlink:label="loc_us-gaap_StockIssuedDuringPeriodValueEmployeeStockPurchasePlan_C0C7747DB43AFE6F820B738409F5A1C8" xlink:type="locator" />
    <definitionArc order="12" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_IncreaseDecreaseInStockholdersEquityRollForward_563B64B89F6F25EDD50C738409F4B6CB" xlink:to="loc_us-gaap_StockIssuedDuringPeriodValueEmployeeStockPurchasePlan_C0C7747DB43AFE6F820B738409F5A1C8" xlink:type="arc" />
    <loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_AdjustmentsToAdditionalPaidInCapitalTaxEffectFromShareBasedCompensation" xlink:label="loc_us-gaap_AdjustmentsToAdditionalPaidInCapitalTaxEffectFromShareBasedCompensation_C991132107B4D980D4EA738409F5535B" xlink:type="locator" />
    <definitionArc order="13" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_IncreaseDecreaseInStockholdersEquityRollForward_563B64B89F6F25EDD50C738409F4B6CB" xlink:to="loc_us-gaap_AdjustmentsToAdditionalPaidInCapitalTaxEffectFromShareBasedCompensation_C991132107B4D980D4EA738409F5535B" xlink:type="arc" />
    <loc xlink:href="oesx-20160331.xsd#oesx_StockholdersEquityReceivablefromShareholdersorAffiliatesforIssuanceofCapitalStock" xlink:label="loc_oesx_StockholdersEquityReceivablefromShareholdersorAffiliatesforIssuanceofCapitalStock_D0875711BB5A372427DE738409F5E89E" xlink:type="locator" />
    <definitionArc order="14" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_IncreaseDecreaseInStockholdersEquityRollForward_563B64B89F6F25EDD50C738409F4B6CB" xlink:to="loc_oesx_StockholdersEquityReceivablefromShareholdersorAffiliatesforIssuanceofCapitalStock_D0875711BB5A372427DE738409F5E89E" xlink:type="arc" />
    <loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_StockIssuedDuringPeriodSharesRestrictedStockAwardGross" xlink:label="loc_us-gaap_StockIssuedDuringPeriodSharesRestrictedStockAwardGross_E2E7493E2291E4029B95738409F5DE1C" xlink:type="locator" />
    <definitionArc order="15" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_IncreaseDecreaseInStockholdersEquityRollForward_563B64B89F6F25EDD50C738409F4B6CB" xlink:to="loc_us-gaap_StockIssuedDuringPeriodSharesRestrictedStockAwardGross_E2E7493E2291E4029B95738409F5DE1C" xlink:type="arc" />
    <loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_AdjustmentsToAdditionalPaidInCapitalSharebasedCompensationRequisiteServicePeriodRecognitionValue" xlink:label="loc_us-gaap_AdjustmentsToAdditionalPaidInCapitalSharebasedCompensationRequisiteServicePeriodRecognitionValue_59C4EAD24D30CBD180CE738409F581B9" xlink:type="locator" />
    <definitionArc order="16" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_IncreaseDecreaseInStockholdersEquityRollForward_563B64B89F6F25EDD50C738409F4B6CB" xlink:to="loc_us-gaap_AdjustmentsToAdditionalPaidInCapitalSharebasedCompensationRequisiteServicePeriodRecognitionValue_59C4EAD24D30CBD180CE738409F581B9" xlink:type="arc" />
    <loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_TreasuryStockSharesAcquired" xlink:label="loc_us-gaap_TreasuryStockSharesAcquired_1E89A3E6BF7E517B018F738409F507F3" xlink:type="locator" />
    <definitionArc order="17" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_IncreaseDecreaseInStockholdersEquityRollForward_563B64B89F6F25EDD50C738409F4B6CB" xlink:to="loc_us-gaap_TreasuryStockSharesAcquired_1E89A3E6BF7E517B018F738409F507F3" xlink:type="arc" />
    <loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_TreasuryStockValueAcquiredCostMethod" xlink:label="loc_us-gaap_TreasuryStockValueAcquiredCostMethod_D3FCC864B861E9BB99EF738409F5504A" xlink:type="locator" />
    <definitionArc order="18" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_IncreaseDecreaseInStockholdersEquityRollForward_563B64B89F6F25EDD50C738409F4B6CB" xlink:to="loc_us-gaap_TreasuryStockValueAcquiredCostMethod_D3FCC864B861E9BB99EF738409F5504A" xlink:type="arc" />
    <loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_SharesPaidForTaxWithholdingForShareBasedCompensation" xlink:label="loc_us-gaap_SharesPaidForTaxWithholdingForShareBasedCompensation_D4B99437B17F538A261A73918F61675F" xlink:type="locator" />
    <definitionArc order="19" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_IncreaseDecreaseInStockholdersEquityRollForward_563B64B89F6F25EDD50C738409F4B6CB" xlink:to="loc_us-gaap_SharesPaidForTaxWithholdingForShareBasedCompensation_D4B99437B17F538A261A73918F61675F" xlink:type="arc" />
    <loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_AdjustmentsRelatedToTaxWithholdingForShareBasedCompensation" xlink:label="loc_us-gaap_AdjustmentsRelatedToTaxWithholdingForShareBasedCompensation_FAC94B6FDB1A89D241B1738C3F984FD7" xlink:type="locator" />
    <definitionArc order="20" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_IncreaseDecreaseInStockholdersEquityRollForward_563B64B89F6F25EDD50C738409F4B6CB" xlink:to="loc_us-gaap_AdjustmentsRelatedToTaxWithholdingForShareBasedCompensation_FAC94B6FDB1A89D241B1738C3F984FD7" xlink:type="arc" />
    <loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_NetIncomeLoss" xlink:label="loc_us-gaap_NetIncomeLoss_0F0E446D0C009E1803E5738409F55D5A" xlink:type="locator" />
    <definitionArc order="21" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_IncreaseDecreaseInStockholdersEquityRollForward_563B64B89F6F25EDD50C738409F4B6CB" xlink:to="loc_us-gaap_NetIncomeLoss_0F0E446D0C009E1803E5738409F55D5A" xlink:type="arc" />
  </definitionLink>
  <definitionLink xlink:role="http://www.oesx.com/role/StockOptionsRestrictedSharesAndWarrants" xlink:type="extended" />
  <definitionLink xlink:role="http://www.oesx.com/role/StockOptionsRestrictedSharesAndWarrantsDetailsTextual" xlink:type="extended">
    <loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardLineItems" xlink:label="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardLineItems_E72107C08E1C0FE07423738408F551D7" xlink:type="locator" />
    <loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_ScheduleOfShareBasedCompensationArrangementsByShareBasedPaymentAwardTable" xlink:label="loc_us-gaap_ScheduleOfShareBasedCompensationArrangementsByShareBasedPaymentAwardTable_9F5AED6F995561B549D9738408F49899" xlink:type="locator" />
    <definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/all" xlink:from="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardLineItems_E72107C08E1C0FE07423738408F551D7" xlink:to="loc_us-gaap_ScheduleOfShareBasedCompensationArrangementsByShareBasedPaymentAwardTable_9F5AED6F995561B549D9738408F49899" xlink:type="arc" xbrldt:closed="true" xbrldt:contextElement="segment" />
    <loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_BusinessAcquisitionAxis" xlink:label="loc_us-gaap_BusinessAcquisitionAxis_577F7370D804272209ED748581E96949" xlink:type="locator" />
    <definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_ScheduleOfShareBasedCompensationArrangementsByShareBasedPaymentAwardTable_9F5AED6F995561B549D9738408F49899" xlink:to="loc_us-gaap_BusinessAcquisitionAxis_577F7370D804272209ED748581E96949" xlink:type="arc" />
    <loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_BusinessAcquisitionAcquireeDomain" xlink:label="loc_us-gaap_BusinessAcquisitionAcquireeDomain_09E6A7BFF89DDCB939E47485820D62B0_default" xlink:type="locator" />
    <definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_BusinessAcquisitionAxis_577F7370D804272209ED748581E96949" xlink:to="loc_us-gaap_BusinessAcquisitionAcquireeDomain_09E6A7BFF89DDCB939E47485820D62B0_default" xlink:type="arc" />
    <loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_BusinessAcquisitionAcquireeDomain" xlink:label="loc_us-gaap_BusinessAcquisitionAcquireeDomain_09E6A7BFF89DDCB939E47485820D62B0" xlink:type="locator" />
    <definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_BusinessAcquisitionAxis_577F7370D804272209ED748581E96949" xlink:to="loc_us-gaap_BusinessAcquisitionAcquireeDomain_09E6A7BFF89DDCB939E47485820D62B0" xlink:type="arc" />
    <loc xlink:href="oesx-20160331.xsd#oesx_HarrisMember" xlink:label="loc_oesx_HarrisMember_45AE4D958667D10016947485831F053C" xlink:type="locator" />
    <definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_BusinessAcquisitionAcquireeDomain_09E6A7BFF89DDCB939E47485820D62B0" xlink:to="loc_oesx_HarrisMember_45AE4D958667D10016947485831F053C" xlink:type="arc" />
    <loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_PlanNameAxis" xlink:label="loc_us-gaap_PlanNameAxis_995185AA00AC6220FEB7738408F41579" xlink:type="locator" />
    <definitionArc order="2" xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_ScheduleOfShareBasedCompensationArrangementsByShareBasedPaymentAwardTable_9F5AED6F995561B549D9738408F49899" xlink:to="loc_us-gaap_PlanNameAxis_995185AA00AC6220FEB7738408F41579" xlink:type="arc" />
    <loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_PlanNameDomain" xlink:label="loc_us-gaap_PlanNameDomain_DC504CAC0B1DE6DCBBB2738408F49E61_default" xlink:type="locator" />
    <definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_PlanNameAxis_995185AA00AC6220FEB7738408F41579" xlink:to="loc_us-gaap_PlanNameDomain_DC504CAC0B1DE6DCBBB2738408F49E61_default" xlink:type="arc" />
    <loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_PlanNameDomain" xlink:label="loc_us-gaap_PlanNameDomain_DC504CAC0B1DE6DCBBB2738408F49E61" xlink:type="locator" />
    <definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_PlanNameAxis_995185AA00AC6220FEB7738408F41579" xlink:to="loc_us-gaap_PlanNameDomain_DC504CAC0B1DE6DCBBB2738408F49E61" xlink:type="arc" />
    <loc xlink:href="oesx-20160331.xsd#oesx_A2003StockOptionand2004StockandIncentiveAwardsPlansMember" xlink:label="loc_oesx_A2003StockOptionand2004StockandIncentiveAwardsPlansMember_049E7838883387D9B4F4738408F49D08" xlink:type="locator" />
    <definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_PlanNameDomain_DC504CAC0B1DE6DCBBB2738408F49E61" xlink:to="loc_oesx_A2003StockOptionand2004StockandIncentiveAwardsPlansMember_049E7838883387D9B4F4738408F49D08" xlink:type="arc" />
    <loc xlink:href="oesx-20160331.xsd#oesx_TwoThousandFourStockAndIncentiveAndAwardPlanMember" xlink:label="loc_oesx_TwoThousandFourStockAndIncentiveAndAwardPlanMember_36FEEC0FC301089DFCBB738408F45BAD" xlink:type="locator" />
    <definitionArc order="2" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_PlanNameDomain_DC504CAC0B1DE6DCBBB2738408F49E61" xlink:to="loc_oesx_TwoThousandFourStockAndIncentiveAndAwardPlanMember_36FEEC0FC301089DFCBB738408F45BAD" xlink:type="arc" />
    <loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_AwardTypeAxis" xlink:label="loc_us-gaap_AwardTypeAxis_F25B1E0C75C9DC7BC279738408F483C2" xlink:type="locator" />
    <definitionArc order="3" xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_ScheduleOfShareBasedCompensationArrangementsByShareBasedPaymentAwardTable_9F5AED6F995561B549D9738408F49899" xlink:to="loc_us-gaap_AwardTypeAxis_F25B1E0C75C9DC7BC279738408F483C2" xlink:type="arc" />
    <loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_ShareBasedCompensationArrangementsByShareBasedPaymentAwardAwardTypeAndPlanNameDomain" xlink:label="loc_us-gaap_ShareBasedCompensationArrangementsByShareBasedPaymentAwardAwardTypeAndPlanNameDomain_14A8268C68C46BBAB59D738408F4944F_default" xlink:type="locator" />
    <definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_AwardTypeAxis_F25B1E0C75C9DC7BC279738408F483C2" xlink:to="loc_us-gaap_ShareBasedCompensationArrangementsByShareBasedPaymentAwardAwardTypeAndPlanNameDomain_14A8268C68C46BBAB59D738408F4944F_default" xlink:type="arc" />
    <loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_ShareBasedCompensationArrangementsByShareBasedPaymentAwardAwardTypeAndPlanNameDomain" xlink:label="loc_us-gaap_ShareBasedCompensationArrangementsByShareBasedPaymentAwardAwardTypeAndPlanNameDomain_14A8268C68C46BBAB59D738408F4944F" xlink:type="locator" />
    <definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_AwardTypeAxis_F25B1E0C75C9DC7BC279738408F483C2" xlink:to="loc_us-gaap_ShareBasedCompensationArrangementsByShareBasedPaymentAwardAwardTypeAndPlanNameDomain_14A8268C68C46BBAB59D738408F4944F" xlink:type="arc" />
    <loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_RestrictedStockMember" xlink:label="loc_us-gaap_RestrictedStockMember_E58E9687734AA39F1145738408F45DCA" xlink:type="locator" />
    <definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ShareBasedCompensationArrangementsByShareBasedPaymentAwardAwardTypeAndPlanNameDomain_14A8268C68C46BBAB59D738408F4944F" xlink:to="loc_us-gaap_RestrictedStockMember_E58E9687734AA39F1145738408F45DCA" xlink:type="arc" />
    <loc xlink:href="oesx-20160331.xsd#oesx_NonEmployeeDirectorMember" xlink:label="loc_oesx_NonEmployeeDirectorMember_F239F123833063845948738408F4579E" xlink:type="locator" />
    <definitionArc order="2" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ShareBasedCompensationArrangementsByShareBasedPaymentAwardAwardTypeAndPlanNameDomain_14A8268C68C46BBAB59D738408F4944F" xlink:to="loc_oesx_NonEmployeeDirectorMember_F239F123833063845948738408F4579E" xlink:type="arc" />
    <loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_RangeAxis" xlink:label="loc_us-gaap_RangeAxis_8C6FC41768FE86D05D14738408F4BC10" xlink:type="locator" />
    <definitionArc order="4" xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_ScheduleOfShareBasedCompensationArrangementsByShareBasedPaymentAwardTable_9F5AED6F995561B549D9738408F49899" xlink:to="loc_us-gaap_RangeAxis_8C6FC41768FE86D05D14738408F4BC10" xlink:type="arc" />
    <loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_RangeMember" xlink:label="loc_us-gaap_RangeMember_023F4793987AA9FF1708738408F42031_default" xlink:type="locator" />
    <definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_RangeAxis_8C6FC41768FE86D05D14738408F4BC10" xlink:to="loc_us-gaap_RangeMember_023F4793987AA9FF1708738408F42031_default" xlink:type="arc" />
    <loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_RangeMember" xlink:label="loc_us-gaap_RangeMember_023F4793987AA9FF1708738408F42031" xlink:type="locator" />
    <definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_RangeAxis_8C6FC41768FE86D05D14738408F4BC10" xlink:to="loc_us-gaap_RangeMember_023F4793987AA9FF1708738408F42031" xlink:type="arc" />
    <loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_MinimumMember" xlink:label="loc_us-gaap_MinimumMember_A1BF3879D3CC31CEA847738408F5921A" xlink:type="locator" />
    <definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_RangeMember_023F4793987AA9FF1708738408F42031" xlink:to="loc_us-gaap_MinimumMember_A1BF3879D3CC31CEA847738408F5921A" xlink:type="arc" />
    <loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_MaximumMember" xlink:label="loc_us-gaap_MaximumMember_C0A2248568C01C914657738408F5A1E8" xlink:type="locator" />
    <definitionArc order="2" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_RangeMember_023F4793987AA9FF1708738408F42031" xlink:to="loc_us-gaap_MaximumMember_C0A2248568C01C914657738408F5A1E8" xlink:type="arc" />
    <loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_CommonStockCapitalSharesReservedForFutureIssuance" xlink:label="loc_us-gaap_CommonStockCapitalSharesReservedForFutureIssuance_5FDF714D835DE82F36E5738408F56BC9" xlink:type="locator" />
    <definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardLineItems_E72107C08E1C0FE07423738408F551D7" xlink:to="loc_us-gaap_CommonStockCapitalSharesReservedForFutureIssuance_5FDF714D835DE82F36E5738408F56BC9" xlink:type="arc" />
    <loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardAwardVestingPeriod1" xlink:label="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardAwardVestingPeriod1_62E79113D81550DFDC01738408F5B3A0" xlink:type="locator" />
    <definitionArc order="2" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardLineItems_E72107C08E1C0FE07423738408F551D7" xlink:to="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardAwardVestingPeriod1_62E79113D81550DFDC01738408F5B3A0" xlink:type="arc" />
    <loc xlink:href="oesx-20160331.xsd#oesx_ShareBasedCompensationArrangementsByShareBasedPaymentsAwardOptionMaximumLife" xlink:label="loc_oesx_ShareBasedCompensationArrangementsByShareBasedPaymentsAwardOptionMaximumLife_B2E8516FD920DFEB63BE738408F50712" xlink:type="locator" />
    <definitionArc order="3" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardLineItems_E72107C08E1C0FE07423738408F551D7" xlink:to="loc_oesx_ShareBasedCompensationArrangementsByShareBasedPaymentsAwardOptionMaximumLife_B2E8516FD920DFEB63BE738408F50712" xlink:type="arc" />
    <loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_EmployeeServiceShareBasedCompensationNonvestedAwardsTotalCompensationCostNotYetRecognizedPeriodForRecognition1" xlink:label="loc_us-gaap_EmployeeServiceShareBasedCompensationNonvestedAwardsTotalCompensationCostNotYetRecognizedPeriodForRecognition1_B196EFBA9F5189C46B2B738408F5148F" xlink:type="locator" />
    <definitionArc order="4" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardLineItems_E72107C08E1C0FE07423738408F551D7" xlink:to="loc_us-gaap_EmployeeServiceShareBasedCompensationNonvestedAwardsTotalCompensationCostNotYetRecognizedPeriodForRecognition1_B196EFBA9F5189C46B2B738408F5148F" xlink:type="arc" />
    <loc xlink:href="oesx-20160331.xsd#oesx_EmployeeServiceSharebasedCompensationNonvestedAwardsCompensationCostNotyetRecognizedAlternatePeriodforRecognition" xlink:label="loc_oesx_EmployeeServiceSharebasedCompensationNonvestedAwardsCompensationCostNotyetRecognizedAlternatePeriodforRecognition_F314E264EF05F89DD063738408F57E5C" xlink:type="locator" />
    <definitionArc order="5" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardLineItems_E72107C08E1C0FE07423738408F551D7" xlink:to="loc_oesx_EmployeeServiceSharebasedCompensationNonvestedAwardsCompensationCostNotyetRecognizedAlternatePeriodforRecognition_F314E264EF05F89DD063738408F57E5C" xlink:type="arc" />
    <loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardSharesIssuedInPeriod" xlink:label="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardSharesIssuedInPeriod_EF96B7888A7BB3D01942738408F5975A" xlink:type="locator" />
    <definitionArc order="6" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardLineItems_E72107C08E1C0FE07423738408F551D7" xlink:to="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardSharesIssuedInPeriod_EF96B7888A7BB3D01942738408F5975A" xlink:type="arc" />
    <loc xlink:href="oesx-20160331.xsd#oesx_ShareBasedCompensationArrangementByShareBasedPaymentAwardPerSharePrice" xlink:label="loc_oesx_ShareBasedCompensationArrangementByShareBasedPaymentAwardPerSharePrice_FA3AB2C0681F334A68BA738408F5B48B" xlink:type="locator" />
    <definitionArc order="7" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardLineItems_E72107C08E1C0FE07423738408F551D7" xlink:to="loc_oesx_ShareBasedCompensationArrangementByShareBasedPaymentAwardPerSharePrice_FA3AB2C0681F334A68BA738408F5B48B" xlink:type="arc" />
    <loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_ShareBasedGoodsAndNonemployeeServicesTransactionQuantityOfSecuritiesIssued" xlink:label="loc_us-gaap_ShareBasedGoodsAndNonemployeeServicesTransactionQuantityOfSecuritiesIssued_6EF8C67B1AF67A7218B3738408F527C8" xlink:type="locator" />
    <definitionArc order="8" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardLineItems_E72107C08E1C0FE07423738408F551D7" xlink:to="loc_us-gaap_ShareBasedGoodsAndNonemployeeServicesTransactionQuantityOfSecuritiesIssued_6EF8C67B1AF67A7218B3738408F527C8" xlink:type="arc" />
    <loc xlink:href="oesx-20160331.xsd#oesx_FairValueOfClosingCommonStockPrice" xlink:label="loc_oesx_FairValueOfClosingCommonStockPrice_D8ED93C8A592A544AED9738408F55C38" xlink:type="locator" />
    <definitionArc order="9" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardLineItems_E72107C08E1C0FE07423738408F551D7" xlink:to="loc_oesx_FairValueOfClosingCommonStockPrice_D8ED93C8A592A544AED9738408F55C38" xlink:type="arc" />
    <loc xlink:href="oesx-20160331.xsd#oesx_SharebasedGoodsandNonemployeeServicesTransactionSecuritiesIssuedValuationPricePerShare" xlink:label="loc_oesx_SharebasedGoodsandNonemployeeServicesTransactionSecuritiesIssuedValuationPricePerShare_12441FE20FAB97BF9598738408F54E9F" xlink:type="locator" />
    <definitionArc order="10" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardLineItems_E72107C08E1C0FE07423738408F551D7" xlink:to="loc_oesx_SharebasedGoodsandNonemployeeServicesTransactionSecuritiesIssuedValuationPricePerShare_12441FE20FAB97BF9598738408F54E9F" xlink:type="arc" />
    <loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_AllocatedShareBasedCompensationExpense" xlink:label="loc_us-gaap_AllocatedShareBasedCompensationExpense_ECE1F8E1ED054D3AE23F74858152B901" xlink:type="locator" />
    <definitionArc order="11" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardLineItems_E72107C08E1C0FE07423738408F551D7" xlink:to="loc_us-gaap_AllocatedShareBasedCompensationExpense_ECE1F8E1ED054D3AE23F74858152B901" xlink:type="arc" />
    <loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionsGrantsInPeriodWeightedAverageGrantDateFairValue" xlink:label="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionsGrantsInPeriodWeightedAverageGrantDateFairValue_9D77E30BD73FF988AD4F738408F58441" xlink:type="locator" />
    <definitionArc order="12" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardLineItems_E72107C08E1C0FE07423738408F551D7" xlink:to="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionsGrantsInPeriodWeightedAverageGrantDateFairValue_9D77E30BD73FF988AD4F738408F58441" xlink:type="arc" />
    <loc xlink:href="oesx-20160331.xsd#oesx_ClassOfWarrantOrRightExercised" xlink:label="loc_oesx_ClassOfWarrantOrRightExercised_F56E1BF763C9A3498D28738408F52780" xlink:type="locator" />
    <definitionArc order="13" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardLineItems_E72107C08E1C0FE07423738408F551D7" xlink:to="loc_oesx_ClassOfWarrantOrRightExercised_F56E1BF763C9A3498D28738408F52780" xlink:type="arc" />
    <loc xlink:href="oesx-20160331.xsd#oesx_ClassofWarrantorRightExercisePriceofWarrantsorRightsExercised" xlink:label="loc_oesx_ClassofWarrantorRightExercisePriceofWarrantsorRightsExercised_95EE2E31AF6585D9A568738408F534A9" xlink:type="locator" />
    <definitionArc order="14" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardLineItems_E72107C08E1C0FE07423738408F551D7" xlink:to="loc_oesx_ClassofWarrantorRightExercisePriceofWarrantsorRightsExercised_95EE2E31AF6585D9A568738408F534A9" xlink:type="arc" />
  </definitionLink>
  <definitionLink xlink:role="http://www.oesx.com/role/StockOptionsRestrictedSharesAndWarrantsOutstandingWarrantsDetails" xlink:type="extended" />
  <definitionLink xlink:role="http://www.oesx.com/role/StockOptionsRestrictedSharesAndWarrantsScheduleOfRestrictedSharesDetails" xlink:type="extended">
    <loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardLineItems" xlink:label="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardLineItems_6031DFDDEBD5162723E67EA422C03BC4" xlink:type="locator" />
    <loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_ScheduleOfShareBasedCompensationArrangementsByShareBasedPaymentAwardTable" xlink:label="loc_us-gaap_ScheduleOfShareBasedCompensationArrangementsByShareBasedPaymentAwardTable_BFA400E740F3C6513A877EA422BF8717" xlink:type="locator" />
    <definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/all" xlink:from="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardLineItems_6031DFDDEBD5162723E67EA422C03BC4" xlink:to="loc_us-gaap_ScheduleOfShareBasedCompensationArrangementsByShareBasedPaymentAwardTable_BFA400E740F3C6513A877EA422BF8717" xlink:type="arc" xbrldt:closed="true" xbrldt:contextElement="segment" />
    <loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_AwardTypeAxis" xlink:label="loc_us-gaap_AwardTypeAxis_31E566F4C473770D44727EA422BF499F" xlink:type="locator" />
    <definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_ScheduleOfShareBasedCompensationArrangementsByShareBasedPaymentAwardTable_BFA400E740F3C6513A877EA422BF8717" xlink:to="loc_us-gaap_AwardTypeAxis_31E566F4C473770D44727EA422BF499F" xlink:type="arc" />
    <loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_ShareBasedCompensationArrangementsByShareBasedPaymentAwardAwardTypeAndPlanNameDomain" xlink:label="loc_us-gaap_ShareBasedCompensationArrangementsByShareBasedPaymentAwardAwardTypeAndPlanNameDomain_04AD578BC6D0887238477EA422C05F73_default" xlink:type="locator" />
    <definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_AwardTypeAxis_31E566F4C473770D44727EA422BF499F" xlink:to="loc_us-gaap_ShareBasedCompensationArrangementsByShareBasedPaymentAwardAwardTypeAndPlanNameDomain_04AD578BC6D0887238477EA422C05F73_default" xlink:type="arc" />
    <loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_ShareBasedCompensationArrangementsByShareBasedPaymentAwardAwardTypeAndPlanNameDomain" xlink:label="loc_us-gaap_ShareBasedCompensationArrangementsByShareBasedPaymentAwardAwardTypeAndPlanNameDomain_04AD578BC6D0887238477EA422C05F73" xlink:type="locator" />
    <definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_AwardTypeAxis_31E566F4C473770D44727EA422BF499F" xlink:to="loc_us-gaap_ShareBasedCompensationArrangementsByShareBasedPaymentAwardAwardTypeAndPlanNameDomain_04AD578BC6D0887238477EA422C05F73" xlink:type="arc" />
    <loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_RestrictedStockMember" xlink:label="loc_us-gaap_RestrictedStockMember_7CC3C1F66886B97CAAD97EA422C0A5EC" xlink:type="locator" />
    <definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ShareBasedCompensationArrangementsByShareBasedPaymentAwardAwardTypeAndPlanNameDomain_04AD578BC6D0887238477EA422C05F73" xlink:to="loc_us-gaap_RestrictedStockMember_7CC3C1F66886B97CAAD97EA422C0A5EC" xlink:type="arc" />
    <loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_RangeAxis" xlink:label="loc_us-gaap_RangeAxis_56F1999C26E60CC1597F7EA422C02B4D" xlink:type="locator" />
    <definitionArc order="2" xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_ScheduleOfShareBasedCompensationArrangementsByShareBasedPaymentAwardTable_BFA400E740F3C6513A877EA422BF8717" xlink:to="loc_us-gaap_RangeAxis_56F1999C26E60CC1597F7EA422C02B4D" xlink:type="arc" />
    <loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_RangeMember" xlink:label="loc_us-gaap_RangeMember_36B970652A89805F060A7EA422C07C65_default" xlink:type="locator" />
    <definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_RangeAxis_56F1999C26E60CC1597F7EA422C02B4D" xlink:to="loc_us-gaap_RangeMember_36B970652A89805F060A7EA422C07C65_default" xlink:type="arc" />
    <loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_RangeMember" xlink:label="loc_us-gaap_RangeMember_36B970652A89805F060A7EA422C07C65" xlink:type="locator" />
    <definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_RangeAxis_56F1999C26E60CC1597F7EA422C02B4D" xlink:to="loc_us-gaap_RangeMember_36B970652A89805F060A7EA422C07C65" xlink:type="arc" />
    <loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_MinimumMember" xlink:label="loc_us-gaap_MinimumMember_FBEE6F815B70224283E97EA422C084E8" xlink:type="locator" />
    <definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_RangeMember_36B970652A89805F060A7EA422C07C65" xlink:to="loc_us-gaap_MinimumMember_FBEE6F815B70224283E97EA422C084E8" xlink:type="arc" />
    <loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_MaximumMember" xlink:label="loc_us-gaap_MaximumMember_A5E5FBFDA97AD0868B3A7EA422C08E1B" xlink:type="locator" />
    <definitionArc order="2" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_RangeMember_36B970652A89805F060A7EA422C07C65" xlink:to="loc_us-gaap_MaximumMember_A5E5FBFDA97AD0868B3A7EA422C08E1B" xlink:type="arc" />
    <loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionsNonvestedRollForward" xlink:label="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionsNonvestedRollForward_13F21B3698F9430356C27EA422C0590F" xlink:type="locator" />
    <definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardLineItems_6031DFDDEBD5162723E67EA422C03BC4" xlink:to="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionsNonvestedRollForward_13F21B3698F9430356C27EA422C0590F" xlink:type="arc" />
    <loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionsNonvestedNumber" xlink:label="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionsNonvestedNumber_F7B85267252F5DFD93137EA422C0F1FB" xlink:type="locator" />
    <definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionsNonvestedRollForward_13F21B3698F9430356C27EA422C0590F" xlink:to="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionsNonvestedNumber_F7B85267252F5DFD93137EA422C0F1FB" xlink:type="arc" />
    <loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionsGrantsInPeriod" xlink:label="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionsGrantsInPeriod_21A06942D56B5564716B7EA422C0A394" xlink:type="locator" />
    <definitionArc order="2" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionsNonvestedRollForward_13F21B3698F9430356C27EA422C0590F" xlink:to="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionsGrantsInPeriod_21A06942D56B5564716B7EA422C0A394" xlink:type="arc" />
    <loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionsVestedInPeriod" xlink:label="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionsVestedInPeriod_56A816E69949820FD12E7EA422C0CAE5" xlink:type="locator" />
    <definitionArc order="3" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionsNonvestedRollForward_13F21B3698F9430356C27EA422C0590F" xlink:to="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionsVestedInPeriod_56A816E69949820FD12E7EA422C0CAE5" xlink:type="arc" />
    <loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionsForfeitedInPeriod" xlink:label="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionsForfeitedInPeriod_EFBA33F60584A9D8833F7EA422C00296" xlink:type="locator" />
    <definitionArc order="4" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionsNonvestedRollForward_13F21B3698F9430356C27EA422C0590F" xlink:to="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionsForfeitedInPeriod_EFBA33F60584A9D8833F7EA422C00296" xlink:type="arc" />
    <loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionsGrantsInPeriodWeightedAverageGrantDateFairValue" xlink:label="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionsGrantsInPeriodWeightedAverageGrantDateFairValue_BDCD06720843EEA26D8E7EA422C014FF" xlink:type="locator" />
    <definitionArc order="2" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardLineItems_6031DFDDEBD5162723E67EA422C03BC4" xlink:to="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionsGrantsInPeriodWeightedAverageGrantDateFairValue_BDCD06720843EEA26D8E7EA422C014FF" xlink:type="arc" />
    <loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_AllocatedShareBasedCompensationExpense" xlink:label="loc_us-gaap_AllocatedShareBasedCompensationExpense_9E9FB428210E458DA9A57EA422C00E6B" xlink:type="locator" />
    <definitionArc order="3" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardLineItems_6031DFDDEBD5162723E67EA422C03BC4" xlink:to="loc_us-gaap_AllocatedShareBasedCompensationExpense_9E9FB428210E458DA9A57EA422C00E6B" xlink:type="arc" />
  </definitionLink>
  <definitionLink xlink:role="http://www.oesx.com/role/StockOptionsRestrictedSharesAndWarrantsScheduleOfSharesAvailableForGrantDetails" xlink:type="extended">
    <loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardLineItems" xlink:label="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardLineItems_921456F8A68FF4500EF226F19CCB9619" xlink:type="locator" />
    <loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_ScheduleOfShareBasedCompensationArrangementsByShareBasedPaymentAwardTable" xlink:label="loc_us-gaap_ScheduleOfShareBasedCompensationArrangementsByShareBasedPaymentAwardTable_319708E3F4E00EC6B61A26F19CCBD3AA" xlink:type="locator" />
    <definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/all" xlink:from="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardLineItems_921456F8A68FF4500EF226F19CCB9619" xlink:to="loc_us-gaap_ScheduleOfShareBasedCompensationArrangementsByShareBasedPaymentAwardTable_319708E3F4E00EC6B61A26F19CCBD3AA" xlink:type="arc" xbrldt:closed="true" xbrldt:contextElement="segment" />
    <loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_AwardTypeAxis" xlink:label="loc_us-gaap_AwardTypeAxis_59CAFC4B8EE3C3BE54C726F19CCB0E00" xlink:type="locator" />
    <definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_ScheduleOfShareBasedCompensationArrangementsByShareBasedPaymentAwardTable_319708E3F4E00EC6B61A26F19CCBD3AA" xlink:to="loc_us-gaap_AwardTypeAxis_59CAFC4B8EE3C3BE54C726F19CCB0E00" xlink:type="arc" />
    <loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_ShareBasedCompensationArrangementsByShareBasedPaymentAwardAwardTypeAndPlanNameDomain" xlink:label="loc_us-gaap_ShareBasedCompensationArrangementsByShareBasedPaymentAwardAwardTypeAndPlanNameDomain_1C00FD27F501A62047FC26F19CCB4C44_default" xlink:type="locator" />
    <definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_AwardTypeAxis_59CAFC4B8EE3C3BE54C726F19CCB0E00" xlink:to="loc_us-gaap_ShareBasedCompensationArrangementsByShareBasedPaymentAwardAwardTypeAndPlanNameDomain_1C00FD27F501A62047FC26F19CCB4C44_default" xlink:type="arc" />
    <loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_ShareBasedCompensationArrangementsByShareBasedPaymentAwardAwardTypeAndPlanNameDomain" xlink:label="loc_us-gaap_ShareBasedCompensationArrangementsByShareBasedPaymentAwardAwardTypeAndPlanNameDomain_1C00FD27F501A62047FC26F19CCB4C44" xlink:type="locator" />
    <definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_AwardTypeAxis_59CAFC4B8EE3C3BE54C726F19CCB0E00" xlink:to="loc_us-gaap_ShareBasedCompensationArrangementsByShareBasedPaymentAwardAwardTypeAndPlanNameDomain_1C00FD27F501A62047FC26F19CCB4C44" xlink:type="arc" />
    <loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_EmployeeStockOptionMember" xlink:label="loc_us-gaap_EmployeeStockOptionMember_768C859B67EF6377585526F19CCBE882" xlink:type="locator" />
    <definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ShareBasedCompensationArrangementsByShareBasedPaymentAwardAwardTypeAndPlanNameDomain_1C00FD27F501A62047FC26F19CCB4C44" xlink:to="loc_us-gaap_EmployeeStockOptionMember_768C859B67EF6377585526F19CCBE882" xlink:type="arc" />
    <loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_RestrictedStockMember" xlink:label="loc_us-gaap_RestrictedStockMember_A92D8044F10D05221E4026F19CCBB5B1" xlink:type="locator" />
    <definitionArc order="2" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ShareBasedCompensationArrangementsByShareBasedPaymentAwardAwardTypeAndPlanNameDomain_1C00FD27F501A62047FC26F19CCB4C44" xlink:to="loc_us-gaap_RestrictedStockMember_A92D8044F10D05221E4026F19CCBB5B1" xlink:type="arc" />
    <loc xlink:href="oesx-20160331.xsd#oesx_ShareBasedCompensationArrangementByShareBasedPaymentAwardNumberOfSharesAvailableForGrantRollForward" xlink:label="loc_oesx_ShareBasedCompensationArrangementByShareBasedPaymentAwardNumberOfSharesAvailableForGrantRollForward_58BFFDC1C7605A3250DD26F19CCB896C" xlink:type="locator" />
    <definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardLineItems_921456F8A68FF4500EF226F19CCB9619" xlink:to="loc_oesx_ShareBasedCompensationArrangementByShareBasedPaymentAwardNumberOfSharesAvailableForGrantRollForward_58BFFDC1C7605A3250DD26F19CCB896C" xlink:type="arc" />
    <loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardNumberOfSharesAvailableForGrant" xlink:label="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardNumberOfSharesAvailableForGrant_79EFDCBBD4DD155C5FC626F19CCB8808" xlink:type="locator" />
    <definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_oesx_ShareBasedCompensationArrangementByShareBasedPaymentAwardNumberOfSharesAvailableForGrantRollForward_58BFFDC1C7605A3250DD26F19CCB896C" xlink:to="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardNumberOfSharesAvailableForGrant_79EFDCBBD4DD155C5FC626F19CCB8808" xlink:type="arc" />
    <loc xlink:href="oesx-20160331.xsd#oesx_ShareBasedCompensationArrangementByShareBasedPaymentAwardNumberOfSharesAvailableForGrantSharesIssuedToEmployee" xlink:label="loc_oesx_ShareBasedCompensationArrangementByShareBasedPaymentAwardNumberOfSharesAvailableForGrantSharesIssuedToEmployee_81C3F3A3F4B1B4213B1226F19CCB7F17" xlink:type="locator" />
    <definitionArc order="2" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_oesx_ShareBasedCompensationArrangementByShareBasedPaymentAwardNumberOfSharesAvailableForGrantRollForward_58BFFDC1C7605A3250DD26F19CCB896C" xlink:to="loc_oesx_ShareBasedCompensationArrangementByShareBasedPaymentAwardNumberOfSharesAvailableForGrantSharesIssuedToEmployee_81C3F3A3F4B1B4213B1226F19CCB7F17" xlink:type="arc" />
    <loc xlink:href="oesx-20160331.xsd#oesx_ShareBasedCompensationArrangementByShareBasedPaymentAwardNumberOfSharesAvailableForGrantSharesIssuedToNonEmployee" xlink:label="loc_oesx_ShareBasedCompensationArrangementByShareBasedPaymentAwardNumberOfSharesAvailableForGrantSharesIssuedToNonEmployee_E0DB170273F0A864F13426F19CCB94EE" xlink:type="locator" />
    <definitionArc order="3" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_oesx_ShareBasedCompensationArrangementByShareBasedPaymentAwardNumberOfSharesAvailableForGrantRollForward_58BFFDC1C7605A3250DD26F19CCB896C" xlink:to="loc_oesx_ShareBasedCompensationArrangementByShareBasedPaymentAwardNumberOfSharesAvailableForGrantSharesIssuedToNonEmployee_E0DB170273F0A864F13426F19CCB94EE" xlink:type="arc" />
    <loc xlink:href="oesx-20160331.xsd#oesx_ShareBasedCompensationArrangementByShareBasedPaymentAwardNumberOfSharesAvailableForGrantRestrictedShares" xlink:label="loc_oesx_ShareBasedCompensationArrangementByShareBasedPaymentAwardNumberOfSharesAvailableForGrantRestrictedShares_49286212F909C8DD012A26F19CCB82F4" xlink:type="locator" />
    <definitionArc order="4" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_oesx_ShareBasedCompensationArrangementByShareBasedPaymentAwardNumberOfSharesAvailableForGrantRollForward_58BFFDC1C7605A3250DD26F19CCB896C" xlink:to="loc_oesx_ShareBasedCompensationArrangementByShareBasedPaymentAwardNumberOfSharesAvailableForGrantRestrictedShares_49286212F909C8DD012A26F19CCB82F4" xlink:type="arc" />
    <loc xlink:href="oesx-20160331.xsd#oesx_ShareBasedCompensationArrangementByShareBasedPaymentAwardNumberOfSharesAvailableForGrantForfeited" xlink:label="loc_oesx_ShareBasedCompensationArrangementByShareBasedPaymentAwardNumberOfSharesAvailableForGrantForfeited_614B2D93E1E1F6E5450E26F19CCB9280" xlink:type="locator" />
    <definitionArc order="5" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_oesx_ShareBasedCompensationArrangementByShareBasedPaymentAwardNumberOfSharesAvailableForGrantRollForward_58BFFDC1C7605A3250DD26F19CCB896C" xlink:to="loc_oesx_ShareBasedCompensationArrangementByShareBasedPaymentAwardNumberOfSharesAvailableForGrantForfeited_614B2D93E1E1F6E5450E26F19CCB9280" xlink:type="arc" />
  </definitionLink>
  <definitionLink xlink:role="http://www.oesx.com/role/StockOptionsRestrictedSharesAndWarrantsStockBasedCompensationDetails" xlink:type="extended">
    <loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_EmployeeServiceShareBasedCompensationAllocationOfRecognizedPeriodCostsLineItems" xlink:label="loc_us-gaap_EmployeeServiceShareBasedCompensationAllocationOfRecognizedPeriodCostsLineItems_E34D36EC2D6BE8CDEEDC738408EEEC59" xlink:type="locator" />
    <loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_ScheduleOfEmployeeServiceShareBasedCompensationAllocationOfRecognizedPeriodCostsTable" xlink:label="loc_us-gaap_ScheduleOfEmployeeServiceShareBasedCompensationAllocationOfRecognizedPeriodCostsTable_9E5FD59EB50984C5069D738408EED7B4" xlink:type="locator" />
    <definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/all" xlink:from="loc_us-gaap_EmployeeServiceShareBasedCompensationAllocationOfRecognizedPeriodCostsLineItems_E34D36EC2D6BE8CDEEDC738408EEEC59" xlink:to="loc_us-gaap_ScheduleOfEmployeeServiceShareBasedCompensationAllocationOfRecognizedPeriodCostsTable_9E5FD59EB50984C5069D738408EED7B4" xlink:type="arc" xbrldt:closed="true" xbrldt:contextElement="segment" />
    <loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_IncomeStatementLocationAxis" xlink:label="loc_us-gaap_IncomeStatementLocationAxis_B840737A49CBBF898C1C738408EE4ED1" xlink:type="locator" />
    <definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_ScheduleOfEmployeeServiceShareBasedCompensationAllocationOfRecognizedPeriodCostsTable_9E5FD59EB50984C5069D738408EED7B4" xlink:to="loc_us-gaap_IncomeStatementLocationAxis_B840737A49CBBF898C1C738408EE4ED1" xlink:type="arc" />
    <loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_IncomeStatementLocationDomain" xlink:label="loc_us-gaap_IncomeStatementLocationDomain_FEEDACD1061A29BE3812738408EEF7C0_default" xlink:type="locator" />
    <definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_IncomeStatementLocationAxis_B840737A49CBBF898C1C738408EE4ED1" xlink:to="loc_us-gaap_IncomeStatementLocationDomain_FEEDACD1061A29BE3812738408EEF7C0_default" xlink:type="arc" />
    <loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_IncomeStatementLocationDomain" xlink:label="loc_us-gaap_IncomeStatementLocationDomain_FEEDACD1061A29BE3812738408EEF7C0" xlink:type="locator" />
    <definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_IncomeStatementLocationAxis_B840737A49CBBF898C1C738408EE4ED1" xlink:to="loc_us-gaap_IncomeStatementLocationDomain_FEEDACD1061A29BE3812738408EEF7C0" xlink:type="arc" />
    <loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_CostOfSalesMember" xlink:label="loc_us-gaap_CostOfSalesMember_7777D0BDD07BBFB1CB74738408EE5641" xlink:type="locator" />
    <definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_IncomeStatementLocationDomain_FEEDACD1061A29BE3812738408EEF7C0" xlink:to="loc_us-gaap_CostOfSalesMember_7777D0BDD07BBFB1CB74738408EE5641" xlink:type="arc" />
    <loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_GeneralAndAdministrativeExpenseMember" xlink:label="loc_us-gaap_GeneralAndAdministrativeExpenseMember_81CB67D09AEF0C43E840738408EE3359" xlink:type="locator" />
    <definitionArc order="2" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_IncomeStatementLocationDomain_FEEDACD1061A29BE3812738408EEF7C0" xlink:to="loc_us-gaap_GeneralAndAdministrativeExpenseMember_81CB67D09AEF0C43E840738408EE3359" xlink:type="arc" />
    <loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_SellingAndMarketingExpenseMember" xlink:label="loc_us-gaap_SellingAndMarketingExpenseMember_AD525B190AAB35C839B7738408EEFA92" xlink:type="locator" />
    <definitionArc order="3" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_IncomeStatementLocationDomain_FEEDACD1061A29BE3812738408EEF7C0" xlink:to="loc_us-gaap_SellingAndMarketingExpenseMember_AD525B190AAB35C839B7738408EEFA92" xlink:type="arc" />
    <loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_ResearchAndDevelopmentExpenseMember" xlink:label="loc_us-gaap_ResearchAndDevelopmentExpenseMember_8967B47EB012E8167293738408EE5B8B" xlink:type="locator" />
    <definitionArc order="4" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_IncomeStatementLocationDomain_FEEDACD1061A29BE3812738408EEF7C0" xlink:to="loc_us-gaap_ResearchAndDevelopmentExpenseMember_8967B47EB012E8167293738408EE5B8B" xlink:type="arc" />
    <loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_ShareBasedCompensationAllocationAndClassificationInFinancialStatementsAbstract" xlink:label="loc_us-gaap_ShareBasedCompensationAllocationAndClassificationInFinancialStatementsAbstract_32061E91AB04FAFA465B738408EEA572" xlink:type="locator" />
    <definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_EmployeeServiceShareBasedCompensationAllocationOfRecognizedPeriodCostsLineItems_E34D36EC2D6BE8CDEEDC738408EEEC59" xlink:to="loc_us-gaap_ShareBasedCompensationAllocationAndClassificationInFinancialStatementsAbstract_32061E91AB04FAFA465B738408EEA572" xlink:type="arc" />
    <loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_AllocatedShareBasedCompensationExpense" xlink:label="loc_us-gaap_AllocatedShareBasedCompensationExpense_3EB4B345A630879D48ED738408EE8B1B" xlink:type="locator" />
    <definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ShareBasedCompensationAllocationAndClassificationInFinancialStatementsAbstract_32061E91AB04FAFA465B738408EEA572" xlink:to="loc_us-gaap_AllocatedShareBasedCompensationExpense_3EB4B345A630879D48ED738408EE8B1B" xlink:type="arc" />
  </definitionLink>
  <definitionLink xlink:role="http://www.oesx.com/role/StockOptionsRestrictedSharesAndWarrantsSummaryOfExercisePriceRangeDetails" xlink:type="extended">
    <loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_ShareBasedCompensationSharesAuthorizedUnderStockOptionPlansExercisePriceRangeLineItems" xlink:label="loc_us-gaap_ShareBasedCompensationSharesAuthorizedUnderStockOptionPlansExercisePriceRangeLineItems_4F1B48D58F4FA5FDF5F97320BC2F3855" xlink:type="locator" />
    <loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_ScheduleOfShareBasedCompensationSharesAuthorizedUnderStockOptionPlansByExercisePriceRangeTable" xlink:label="loc_us-gaap_ScheduleOfShareBasedCompensationSharesAuthorizedUnderStockOptionPlansByExercisePriceRangeTable_E0F93754D688DE5AE2427320BC2E14A2" xlink:type="locator" />
    <definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/all" xlink:from="loc_us-gaap_ShareBasedCompensationSharesAuthorizedUnderStockOptionPlansExercisePriceRangeLineItems_4F1B48D58F4FA5FDF5F97320BC2F3855" xlink:to="loc_us-gaap_ScheduleOfShareBasedCompensationSharesAuthorizedUnderStockOptionPlansByExercisePriceRangeTable_E0F93754D688DE5AE2427320BC2E14A2" xlink:type="arc" xbrldt:closed="true" xbrldt:contextElement="segment" />
    <loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_AwardTypeAxis" xlink:label="loc_us-gaap_AwardTypeAxis_13BF4B68F06F7A73F3BF7320BC2E3F3F" xlink:type="locator" />
    <definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_ScheduleOfShareBasedCompensationSharesAuthorizedUnderStockOptionPlansByExercisePriceRangeTable_E0F93754D688DE5AE2427320BC2E14A2" xlink:to="loc_us-gaap_AwardTypeAxis_13BF4B68F06F7A73F3BF7320BC2E3F3F" xlink:type="arc" />
    <loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_ShareBasedCompensationArrangementsByShareBasedPaymentAwardAwardTypeAndPlanNameDomain" xlink:label="loc_us-gaap_ShareBasedCompensationArrangementsByShareBasedPaymentAwardAwardTypeAndPlanNameDomain_1994509BD570D91D7E197320BC2E047D_default" xlink:type="locator" />
    <definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_AwardTypeAxis_13BF4B68F06F7A73F3BF7320BC2E3F3F" xlink:to="loc_us-gaap_ShareBasedCompensationArrangementsByShareBasedPaymentAwardAwardTypeAndPlanNameDomain_1994509BD570D91D7E197320BC2E047D_default" xlink:type="arc" />
    <loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_ShareBasedCompensationArrangementsByShareBasedPaymentAwardAwardTypeAndPlanNameDomain" xlink:label="loc_us-gaap_ShareBasedCompensationArrangementsByShareBasedPaymentAwardAwardTypeAndPlanNameDomain_1994509BD570D91D7E197320BC2E047D" xlink:type="locator" />
    <definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_AwardTypeAxis_13BF4B68F06F7A73F3BF7320BC2E3F3F" xlink:to="loc_us-gaap_ShareBasedCompensationArrangementsByShareBasedPaymentAwardAwardTypeAndPlanNameDomain_1994509BD570D91D7E197320BC2E047D" xlink:type="arc" />
    <loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_RestrictedStockMember" xlink:label="loc_us-gaap_RestrictedStockMember_EE7CFA75C2CF596D591D7320BC2F00C0" xlink:type="locator" />
    <definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ShareBasedCompensationArrangementsByShareBasedPaymentAwardAwardTypeAndPlanNameDomain_1994509BD570D91D7E197320BC2E047D" xlink:to="loc_us-gaap_RestrictedStockMember_EE7CFA75C2CF596D591D7320BC2F00C0" xlink:type="arc" />
    <loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_RangeAxis" xlink:label="loc_us-gaap_RangeAxis_184497C58015BF26A3977320BC2FE9B4" xlink:type="locator" />
    <definitionArc order="2" xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_ScheduleOfShareBasedCompensationSharesAuthorizedUnderStockOptionPlansByExercisePriceRangeTable_E0F93754D688DE5AE2427320BC2E14A2" xlink:to="loc_us-gaap_RangeAxis_184497C58015BF26A3977320BC2FE9B4" xlink:type="arc" />
    <loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_RangeMember" xlink:label="loc_us-gaap_RangeMember_12D111185FE146A373897320BC2FC2B6_default" xlink:type="locator" />
    <definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_RangeAxis_184497C58015BF26A3977320BC2FE9B4" xlink:to="loc_us-gaap_RangeMember_12D111185FE146A373897320BC2FC2B6_default" xlink:type="arc" />
    <loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_RangeMember" xlink:label="loc_us-gaap_RangeMember_12D111185FE146A373897320BC2FC2B6" xlink:type="locator" />
    <definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_RangeAxis_184497C58015BF26A3977320BC2FE9B4" xlink:to="loc_us-gaap_RangeMember_12D111185FE146A373897320BC2FC2B6" xlink:type="arc" />
    <loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_MinimumMember" xlink:label="loc_us-gaap_MinimumMember_E93DD2BB9B3CC18CC4367320BC2F99F0" xlink:type="locator" />
    <definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_RangeMember_12D111185FE146A373897320BC2FC2B6" xlink:to="loc_us-gaap_MinimumMember_E93DD2BB9B3CC18CC4367320BC2F99F0" xlink:type="arc" />
    <loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_MaximumMember" xlink:label="loc_us-gaap_MaximumMember_B7DB78AE9D52CFE4F6A77320BC2F39EA" xlink:type="locator" />
    <definitionArc order="2" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_RangeMember_12D111185FE146A373897320BC2FC2B6" xlink:to="loc_us-gaap_MaximumMember_B7DB78AE9D52CFE4F6A77320BC2F39EA" xlink:type="arc" />
    <loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_ShareBasedCompensationSharesAuthorizedUnderStockOptionPlansByExercisePriceRangeAxis" xlink:label="loc_us-gaap_ShareBasedCompensationSharesAuthorizedUnderStockOptionPlansByExercisePriceRangeAxis_E6894D101FB41A0D42FA7320BC2FC02C" xlink:type="locator" />
    <definitionArc order="3" xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_ScheduleOfShareBasedCompensationSharesAuthorizedUnderStockOptionPlansByExercisePriceRangeTable_E0F93754D688DE5AE2427320BC2E14A2" xlink:to="loc_us-gaap_ShareBasedCompensationSharesAuthorizedUnderStockOptionPlansByExercisePriceRangeAxis_E6894D101FB41A0D42FA7320BC2FC02C" xlink:type="arc" />
    <loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_ShareBasedCompensationSharesAuthorizedUnderStockOptionPlansExercisePriceRangeDomain" xlink:label="loc_us-gaap_ShareBasedCompensationSharesAuthorizedUnderStockOptionPlansExercisePriceRangeDomain_413D23FE6819FA1C4ECF7320BC2F2BDF_default" xlink:type="locator" />
    <definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_ShareBasedCompensationSharesAuthorizedUnderStockOptionPlansByExercisePriceRangeAxis_E6894D101FB41A0D42FA7320BC2FC02C" xlink:to="loc_us-gaap_ShareBasedCompensationSharesAuthorizedUnderStockOptionPlansExercisePriceRangeDomain_413D23FE6819FA1C4ECF7320BC2F2BDF_default" xlink:type="arc" />
    <loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_ShareBasedCompensationSharesAuthorizedUnderStockOptionPlansExercisePriceRangeDomain" xlink:label="loc_us-gaap_ShareBasedCompensationSharesAuthorizedUnderStockOptionPlansExercisePriceRangeDomain_413D23FE6819FA1C4ECF7320BC2F2BDF" xlink:type="locator" />
    <definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_ShareBasedCompensationSharesAuthorizedUnderStockOptionPlansByExercisePriceRangeAxis_E6894D101FB41A0D42FA7320BC2FC02C" xlink:to="loc_us-gaap_ShareBasedCompensationSharesAuthorizedUnderStockOptionPlansExercisePriceRangeDomain_413D23FE6819FA1C4ECF7320BC2F2BDF" xlink:type="arc" />
    <loc xlink:href="oesx-20160331.xsd#oesx_RangeTwoMember" xlink:label="loc_oesx_RangeTwoMember_94A4F6AEC31AADFF86407320BC2F15B7" xlink:type="locator" />
    <definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ShareBasedCompensationSharesAuthorizedUnderStockOptionPlansExercisePriceRangeDomain_413D23FE6819FA1C4ECF7320BC2F2BDF" xlink:to="loc_oesx_RangeTwoMember_94A4F6AEC31AADFF86407320BC2F15B7" xlink:type="arc" />
    <loc xlink:href="oesx-20160331.xsd#oesx_RangeThreeMember" xlink:label="loc_oesx_RangeThreeMember_2A29EC23D10560B7D80E7320BC2FB718" xlink:type="locator" />
    <definitionArc order="2" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ShareBasedCompensationSharesAuthorizedUnderStockOptionPlansExercisePriceRangeDomain_413D23FE6819FA1C4ECF7320BC2F2BDF" xlink:to="loc_oesx_RangeThreeMember_2A29EC23D10560B7D80E7320BC2FB718" xlink:type="arc" />
    <loc xlink:href="oesx-20160331.xsd#oesx_RangeFourMember" xlink:label="loc_oesx_RangeFourMember_C7D010E242C1AA9241237320BC2F776D" xlink:type="locator" />
    <definitionArc order="3" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ShareBasedCompensationSharesAuthorizedUnderStockOptionPlansExercisePriceRangeDomain_413D23FE6819FA1C4ECF7320BC2F2BDF" xlink:to="loc_oesx_RangeFourMember_C7D010E242C1AA9241237320BC2F776D" xlink:type="arc" />
    <loc xlink:href="oesx-20160331.xsd#oesx_RangeFiveMember" xlink:label="loc_oesx_RangeFiveMember_48531886EAB4E422A3C47320BC2FE5BE" xlink:type="locator" />
    <definitionArc order="4" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ShareBasedCompensationSharesAuthorizedUnderStockOptionPlansExercisePriceRangeDomain_413D23FE6819FA1C4ECF7320BC2F2BDF" xlink:to="loc_oesx_RangeFiveMember_48531886EAB4E422A3C47320BC2FE5BE" xlink:type="arc" />
    <loc xlink:href="oesx-20160331.xsd#oesx_RangeSixMember" xlink:label="loc_oesx_RangeSixMember_440B608AA924DF5075C27320BC2F6BB6" xlink:type="locator" />
    <definitionArc order="5" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ShareBasedCompensationSharesAuthorizedUnderStockOptionPlansExercisePriceRangeDomain_413D23FE6819FA1C4ECF7320BC2F2BDF" xlink:to="loc_oesx_RangeSixMember_440B608AA924DF5075C27320BC2F6BB6" xlink:type="arc" />
    <loc xlink:href="oesx-20160331.xsd#oesx_RangeSevenMember" xlink:label="loc_oesx_RangeSevenMember_0463F1AF72D54C7249867320BC2FE879" xlink:type="locator" />
    <definitionArc order="6" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ShareBasedCompensationSharesAuthorizedUnderStockOptionPlansExercisePriceRangeDomain_413D23FE6819FA1C4ECF7320BC2F2BDF" xlink:to="loc_oesx_RangeSevenMember_0463F1AF72D54C7249867320BC2FE879" xlink:type="arc" />
    <loc xlink:href="oesx-20160331.xsd#oesx_RangeEightMember" xlink:label="loc_oesx_RangeEightMember_FA6FBE9FA949D6E6C1327320BC2FC007" xlink:type="locator" />
    <definitionArc order="7" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ShareBasedCompensationSharesAuthorizedUnderStockOptionPlansExercisePriceRangeDomain_413D23FE6819FA1C4ECF7320BC2F2BDF" xlink:to="loc_oesx_RangeEightMember_FA6FBE9FA949D6E6C1327320BC2FC007" xlink:type="arc" />
    <loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_ShareBasedCompensationSharesAuthorizedUnderStockOptionPlansExercisePriceRangeLowerRangeLimit" xlink:label="loc_us-gaap_ShareBasedCompensationSharesAuthorizedUnderStockOptionPlansExercisePriceRangeLowerRangeLimit_951B1D059E4295849BBD7320BC2FCC14" xlink:type="locator" />
    <definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ShareBasedCompensationSharesAuthorizedUnderStockOptionPlansExercisePriceRangeLineItems_4F1B48D58F4FA5FDF5F97320BC2F3855" xlink:to="loc_us-gaap_ShareBasedCompensationSharesAuthorizedUnderStockOptionPlansExercisePriceRangeLowerRangeLimit_951B1D059E4295849BBD7320BC2FCC14" xlink:type="arc" />
    <loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_ShareBasedCompensationSharesAuthorizedUnderStockOptionPlansExercisePriceRangeUpperRangeLimit" xlink:label="loc_us-gaap_ShareBasedCompensationSharesAuthorizedUnderStockOptionPlansExercisePriceRangeUpperRangeLimit_FBA903510109A7FF14367320BC2FE842" xlink:type="locator" />
    <definitionArc order="2" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ShareBasedCompensationSharesAuthorizedUnderStockOptionPlansExercisePriceRangeLineItems_4F1B48D58F4FA5FDF5F97320BC2F3855" xlink:to="loc_us-gaap_ShareBasedCompensationSharesAuthorizedUnderStockOptionPlansExercisePriceRangeUpperRangeLimit_FBA903510109A7FF14367320BC2FE842" xlink:type="arc" />
    <loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardOptionsOutstandingNumber" xlink:label="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardOptionsOutstandingNumber_D06A97116CFC835B65AE7320BC2FD18F" xlink:type="locator" />
    <definitionArc order="3" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ShareBasedCompensationSharesAuthorizedUnderStockOptionPlansExercisePriceRangeLineItems_4F1B48D58F4FA5FDF5F97320BC2F3855" xlink:to="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardOptionsOutstandingNumber_D06A97116CFC835B65AE7320BC2FD18F" xlink:type="arc" />
    <loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_SharebasedCompensationArrangementBySharebasedPaymentAwardOptionsOutstandingWeightedAverageRemainingContractualTerm2" xlink:label="loc_us-gaap_SharebasedCompensationArrangementBySharebasedPaymentAwardOptionsOutstandingWeightedAverageRemainingContractualTerm2_85F7BCB449A6E2D2C9787320BC2FEDA0" xlink:type="locator" />
    <definitionArc order="4" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ShareBasedCompensationSharesAuthorizedUnderStockOptionPlansExercisePriceRangeLineItems_4F1B48D58F4FA5FDF5F97320BC2F3855" xlink:to="loc_us-gaap_SharebasedCompensationArrangementBySharebasedPaymentAwardOptionsOutstandingWeightedAverageRemainingContractualTerm2_85F7BCB449A6E2D2C9787320BC2FEDA0" xlink:type="arc" />
    <loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardOptionsOutstandingWeightedAverageExercisePrice" xlink:label="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardOptionsOutstandingWeightedAverageExercisePrice_C7CB352D716E007ADD8F7320BC2F9038" xlink:type="locator" />
    <definitionArc order="5" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ShareBasedCompensationSharesAuthorizedUnderStockOptionPlansExercisePriceRangeLineItems_4F1B48D58F4FA5FDF5F97320BC2F3855" xlink:to="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardOptionsOutstandingWeightedAverageExercisePrice_C7CB352D716E007ADD8F7320BC2F9038" xlink:type="arc" />
    <loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardOptionsExercisableNumber" xlink:label="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardOptionsExercisableNumber_D23EB8B6D4A1A6CEBB407320BC2F1A67" xlink:type="locator" />
    <definitionArc order="6" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ShareBasedCompensationSharesAuthorizedUnderStockOptionPlansExercisePriceRangeLineItems_4F1B48D58F4FA5FDF5F97320BC2F3855" xlink:to="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardOptionsExercisableNumber_D23EB8B6D4A1A6CEBB407320BC2F1A67" xlink:type="arc" />
    <loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardOptionsVestedAndExpectedToVestOutstandingWeightedAverageExercisePrice" xlink:label="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardOptionsVestedAndExpectedToVestOutstandingWeightedAverageExercisePrice_DFCE56C0197CFFD14FD97320BC30215A" xlink:type="locator" />
    <definitionArc order="7" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ShareBasedCompensationSharesAuthorizedUnderStockOptionPlansExercisePriceRangeLineItems_4F1B48D58F4FA5FDF5F97320BC2F3855" xlink:to="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardOptionsVestedAndExpectedToVestOutstandingWeightedAverageExercisePrice_DFCE56C0197CFFD14FD97320BC30215A" xlink:type="arc" />
  </definitionLink>
  <definitionLink xlink:role="http://www.oesx.com/role/StockOptionsRestrictedSharesAndWarrantsSummaryOfOutstandingStockOptionsDetails" xlink:type="extended" />
  <definitionLink xlink:role="http://www.oesx.com/role/StockOptionsRestrictedSharesAndWarrantsSummaryOfUnrecognizedCompensationCostDetails" xlink:type="extended" />
  <definitionLink xlink:role="http://www.oesx.com/role/StockOptionsRestrictedSharesAndWarrantsTables" xlink:type="extended" />
  <definitionLink xlink:role="http://www.oesx.com/role/SubsequentEvents" xlink:type="extended" />
  <definitionLink xlink:role="http://www.oesx.com/role/SummaryOfSignificantAccountingPolicies" xlink:type="extended" />
  <definitionLink xlink:role="http://www.oesx.com/role/SummaryOfSignificantAccountingPoliciesAccountsReceivableDetails" xlink:type="extended" />
  <definitionLink xlink:role="http://www.oesx.com/role/SummaryOfSignificantAccountingPoliciesAccruedExpensesAndOtherDetails" xlink:type="extended" />
  <definitionLink xlink:role="http://www.oesx.com/role/SummaryOfSignificantAccountingPoliciesConcentrationRiskDetails" xlink:type="extended">
    <loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_ConcentrationRiskLineItems" xlink:label="loc_us-gaap_ConcentrationRiskLineItems_0113BD8199BAE1470D406F0551427B5F" xlink:type="locator" />
    <loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_ConcentrationRiskTable" xlink:label="loc_us-gaap_ConcentrationRiskTable_89FD3B079581C0BB3CF66F05514151A6" xlink:type="locator" />
    <definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/all" xlink:from="loc_us-gaap_ConcentrationRiskLineItems_0113BD8199BAE1470D406F0551427B5F" xlink:to="loc_us-gaap_ConcentrationRiskTable_89FD3B079581C0BB3CF66F05514151A6" xlink:type="arc" xbrldt:closed="true" xbrldt:contextElement="segment" />
    <loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_StatementBusinessSegmentsAxis" xlink:label="loc_us-gaap_StatementBusinessSegmentsAxis_7AD2E41522F7B214A1C56F0551415475" xlink:type="locator" />
    <definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_ConcentrationRiskTable_89FD3B079581C0BB3CF66F05514151A6" xlink:to="loc_us-gaap_StatementBusinessSegmentsAxis_7AD2E41522F7B214A1C56F0551415475" xlink:type="arc" />
    <loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_SegmentDomain" xlink:label="loc_us-gaap_SegmentDomain_7BA0322DC1C76B4CC5E56F0551428104_default" xlink:type="locator" />
    <definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_StatementBusinessSegmentsAxis_7AD2E41522F7B214A1C56F0551415475" xlink:to="loc_us-gaap_SegmentDomain_7BA0322DC1C76B4CC5E56F0551428104_default" xlink:type="arc" />
    <loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_SegmentDomain" xlink:label="loc_us-gaap_SegmentDomain_7BA0322DC1C76B4CC5E56F0551428104" xlink:type="locator" />
    <definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_StatementBusinessSegmentsAxis_7AD2E41522F7B214A1C56F0551415475" xlink:to="loc_us-gaap_SegmentDomain_7BA0322DC1C76B4CC5E56F0551428104" xlink:type="arc" />
    <loc xlink:href="oesx-20160331.xsd#oesx_EnergyManagementMember" xlink:label="loc_oesx_EnergyManagementMember_7D44F7F1E0A78918CDEB6F055142CCFF" xlink:type="locator" />
    <definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_SegmentDomain_7BA0322DC1C76B4CC5E56F0551428104" xlink:to="loc_oesx_EnergyManagementMember_7D44F7F1E0A78918CDEB6F055142CCFF" xlink:type="arc" />
    <loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_ConcentrationRiskByBenchmarkAxis" xlink:label="loc_us-gaap_ConcentrationRiskByBenchmarkAxis_3B3C8A7B26F4C78CAC526F055142F43A" xlink:type="locator" />
    <definitionArc order="2" xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_ConcentrationRiskTable_89FD3B079581C0BB3CF66F05514151A6" xlink:to="loc_us-gaap_ConcentrationRiskByBenchmarkAxis_3B3C8A7B26F4C78CAC526F055142F43A" xlink:type="arc" />
    <loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_ConcentrationRiskBenchmarkDomain" xlink:label="loc_us-gaap_ConcentrationRiskBenchmarkDomain_6756E240FA8DA3779D536F055142893E_default" xlink:type="locator" />
    <definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_ConcentrationRiskByBenchmarkAxis_3B3C8A7B26F4C78CAC526F055142F43A" xlink:to="loc_us-gaap_ConcentrationRiskBenchmarkDomain_6756E240FA8DA3779D536F055142893E_default" xlink:type="arc" />
    <loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_ConcentrationRiskBenchmarkDomain" xlink:label="loc_us-gaap_ConcentrationRiskBenchmarkDomain_6756E240FA8DA3779D536F055142893E" xlink:type="locator" />
    <definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_ConcentrationRiskByBenchmarkAxis_3B3C8A7B26F4C78CAC526F055142F43A" xlink:to="loc_us-gaap_ConcentrationRiskBenchmarkDomain_6756E240FA8DA3779D536F055142893E" xlink:type="arc" />
    <loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_CostOfGoodsTotalMember" xlink:label="loc_us-gaap_CostOfGoodsTotalMember_00E6233922DE45A77B7E6F055142DAE1" xlink:type="locator" />
    <definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ConcentrationRiskBenchmarkDomain_6756E240FA8DA3779D536F055142893E" xlink:to="loc_us-gaap_CostOfGoodsTotalMember_00E6233922DE45A77B7E6F055142DAE1" xlink:type="arc" />
    <loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_SalesMember" xlink:label="loc_us-gaap_SalesMember_7BE0A9DACC53070F6A986F05514255C0" xlink:type="locator" />
    <definitionArc order="2" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ConcentrationRiskBenchmarkDomain_6756E240FA8DA3779D536F055142893E" xlink:to="loc_us-gaap_SalesMember_7BE0A9DACC53070F6A986F05514255C0" xlink:type="arc" />
    <loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_AccountsReceivableMember" xlink:label="loc_us-gaap_AccountsReceivableMember_99319A80F879C388785E6F055142E549" xlink:type="locator" />
    <definitionArc order="3" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ConcentrationRiskBenchmarkDomain_6756E240FA8DA3779D536F055142893E" xlink:to="loc_us-gaap_AccountsReceivableMember_99319A80F879C388785E6F055142E549" xlink:type="arc" />
    <loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_ConcentrationRiskByTypeAxis" xlink:label="loc_us-gaap_ConcentrationRiskByTypeAxis_1025700F85BDE5296F736F055142C570" xlink:type="locator" />
    <definitionArc order="3" xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_ConcentrationRiskTable_89FD3B079581C0BB3CF66F05514151A6" xlink:to="loc_us-gaap_ConcentrationRiskByTypeAxis_1025700F85BDE5296F736F055142C570" xlink:type="arc" />
    <loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_ConcentrationRiskTypeDomain" xlink:label="loc_us-gaap_ConcentrationRiskTypeDomain_EC54ACB057A2ABB4C9746F05514235A0_default" xlink:type="locator" />
    <definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_ConcentrationRiskByTypeAxis_1025700F85BDE5296F736F055142C570" xlink:to="loc_us-gaap_ConcentrationRiskTypeDomain_EC54ACB057A2ABB4C9746F05514235A0_default" xlink:type="arc" />
    <loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_ConcentrationRiskTypeDomain" xlink:label="loc_us-gaap_ConcentrationRiskTypeDomain_EC54ACB057A2ABB4C9746F05514235A0" xlink:type="locator" />
    <definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_ConcentrationRiskByTypeAxis_1025700F85BDE5296F736F055142C570" xlink:to="loc_us-gaap_ConcentrationRiskTypeDomain_EC54ACB057A2ABB4C9746F05514235A0" xlink:type="arc" />
    <loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_SupplierConcentrationRiskMember" xlink:label="loc_us-gaap_SupplierConcentrationRiskMember_963BC943CA017FA8FB1E6F055142D529" xlink:type="locator" />
    <definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ConcentrationRiskTypeDomain_EC54ACB057A2ABB4C9746F05514235A0" xlink:to="loc_us-gaap_SupplierConcentrationRiskMember_963BC943CA017FA8FB1E6F055142D529" xlink:type="arc" />
    <loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_CustomerConcentrationRiskMember" xlink:label="loc_us-gaap_CustomerConcentrationRiskMember_5C741032D00AADBE957B6F055142774A" xlink:type="locator" />
    <definitionArc order="2" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ConcentrationRiskTypeDomain_EC54ACB057A2ABB4C9746F05514235A0" xlink:to="loc_us-gaap_CustomerConcentrationRiskMember_5C741032D00AADBE957B6F055142774A" xlink:type="arc" />
    <loc xlink:href="oesx-20160331.xsd#oesx_NumberofFinancialInstitutions" xlink:label="loc_oesx_NumberofFinancialInstitutions_D9F6F40BBD84CD85AC9D6F512ADE831B" xlink:type="locator" />
    <definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ConcentrationRiskLineItems_0113BD8199BAE1470D406F0551427B5F" xlink:to="loc_oesx_NumberofFinancialInstitutions_D9F6F40BBD84CD85AC9D6F512ADE831B" xlink:type="arc" />
    <loc xlink:href="oesx-20160331.xsd#oesx_ConcentrationRiskNumberOfEntitiesInvolvedInRiskCalculation" xlink:label="loc_oesx_ConcentrationRiskNumberOfEntitiesInvolvedInRiskCalculation_26EAFF49A3C6C059E4EE6F055142FDEB" xlink:type="locator" />
    <definitionArc order="2" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ConcentrationRiskLineItems_0113BD8199BAE1470D406F0551427B5F" xlink:to="loc_oesx_ConcentrationRiskNumberOfEntitiesInvolvedInRiskCalculation_26EAFF49A3C6C059E4EE6F055142FDEB" xlink:type="arc" />
    <loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_ConcentrationRiskPercentage1" xlink:label="loc_us-gaap_ConcentrationRiskPercentage1_A88680949C36C197B78B6F05514279D9" xlink:type="locator" />
    <definitionArc order="3" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ConcentrationRiskLineItems_0113BD8199BAE1470D406F0551427B5F" xlink:to="loc_us-gaap_ConcentrationRiskPercentage1_A88680949C36C197B78B6F05514279D9" xlink:type="arc" />
  </definitionLink>
  <definitionLink xlink:role="http://www.oesx.com/role/SummaryOfSignificantAccountingPoliciesDilutiveSecuritiesDetails" xlink:type="extended">
    <loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_AntidilutiveSecuritiesExcludedFromComputationOfEarningsPerShareLineItems" xlink:label="loc_us-gaap_AntidilutiveSecuritiesExcludedFromComputationOfEarningsPerShareLineItems_CF676F3852B084C142D37320BCCBAE92" xlink:type="locator" />
    <loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_ScheduleOfAntidilutiveSecuritiesExcludedFromComputationOfEarningsPerShareTable" xlink:label="loc_us-gaap_ScheduleOfAntidilutiveSecuritiesExcludedFromComputationOfEarningsPerShareTable_40E1A01EF775BB55806D7320BCCB2ACF" xlink:type="locator" />
    <definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/all" xlink:from="loc_us-gaap_AntidilutiveSecuritiesExcludedFromComputationOfEarningsPerShareLineItems_CF676F3852B084C142D37320BCCBAE92" xlink:to="loc_us-gaap_ScheduleOfAntidilutiveSecuritiesExcludedFromComputationOfEarningsPerShareTable_40E1A01EF775BB55806D7320BCCB2ACF" xlink:type="arc" xbrldt:closed="true" xbrldt:contextElement="segment" />
    <loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_AntidilutiveSecuritiesExcludedFromComputationOfEarningsPerShareByAntidilutiveSecuritiesAxis" xlink:label="loc_us-gaap_AntidilutiveSecuritiesExcludedFromComputationOfEarningsPerShareByAntidilutiveSecuritiesAxis_AB0D1D8252583CEB0FB37320BCCBAC3E" xlink:type="locator" />
    <definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_ScheduleOfAntidilutiveSecuritiesExcludedFromComputationOfEarningsPerShareTable_40E1A01EF775BB55806D7320BCCB2ACF" xlink:to="loc_us-gaap_AntidilutiveSecuritiesExcludedFromComputationOfEarningsPerShareByAntidilutiveSecuritiesAxis_AB0D1D8252583CEB0FB37320BCCBAC3E" xlink:type="arc" />
    <loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_AntidilutiveSecuritiesNameDomain" xlink:label="loc_us-gaap_AntidilutiveSecuritiesNameDomain_36EAE827B9567027122C7320BCCB118D_default" xlink:type="locator" />
    <definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_AntidilutiveSecuritiesExcludedFromComputationOfEarningsPerShareByAntidilutiveSecuritiesAxis_AB0D1D8252583CEB0FB37320BCCBAC3E" xlink:to="loc_us-gaap_AntidilutiveSecuritiesNameDomain_36EAE827B9567027122C7320BCCB118D_default" xlink:type="arc" />
    <loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_AntidilutiveSecuritiesNameDomain" xlink:label="loc_us-gaap_AntidilutiveSecuritiesNameDomain_36EAE827B9567027122C7320BCCB118D" xlink:type="locator" />
    <definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_AntidilutiveSecuritiesExcludedFromComputationOfEarningsPerShareByAntidilutiveSecuritiesAxis_AB0D1D8252583CEB0FB37320BCCBAC3E" xlink:to="loc_us-gaap_AntidilutiveSecuritiesNameDomain_36EAE827B9567027122C7320BCCB118D" xlink:type="arc" />
    <loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_EmployeeStockOptionMember" xlink:label="loc_us-gaap_EmployeeStockOptionMember_A62C9502D7AC80469F4F7320BCCB11E2" xlink:type="locator" />
    <definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_AntidilutiveSecuritiesNameDomain_36EAE827B9567027122C7320BCCB118D" xlink:to="loc_us-gaap_EmployeeStockOptionMember_A62C9502D7AC80469F4F7320BCCB11E2" xlink:type="arc" />
    <loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_RestrictedStockMember" xlink:label="loc_us-gaap_RestrictedStockMember_FC4247F92E3422CF393A7320BCCB8163" xlink:type="locator" />
    <definitionArc order="2" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_AntidilutiveSecuritiesNameDomain_36EAE827B9567027122C7320BCCB118D" xlink:to="loc_us-gaap_RestrictedStockMember_FC4247F92E3422CF393A7320BCCB8163" xlink:type="arc" />
    <loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_WarrantMember" xlink:label="loc_us-gaap_WarrantMember_092E90A851B1821ACA727320BCCBFBFB" xlink:type="locator" />
    <definitionArc order="3" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_AntidilutiveSecuritiesNameDomain_36EAE827B9567027122C7320BCCB118D" xlink:to="loc_us-gaap_WarrantMember_092E90A851B1821ACA727320BCCBFBFB" xlink:type="arc" />
    <loc xlink:href="oesx-20160331.xsd#oesx_AntidilutiveSharesExcludedFromComputationOfEarningsPerShareAbstract" xlink:label="loc_oesx_AntidilutiveSharesExcludedFromComputationOfEarningsPerShareAbstract_1BAA03ADF1CB632BB2C17320BCCB8636" xlink:type="locator" />
    <definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_AntidilutiveSecuritiesExcludedFromComputationOfEarningsPerShareLineItems_CF676F3852B084C142D37320BCCBAE92" xlink:to="loc_oesx_AntidilutiveSharesExcludedFromComputationOfEarningsPerShareAbstract_1BAA03ADF1CB632BB2C17320BCCB8636" xlink:type="arc" />
    <loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_AntidilutiveSecuritiesExcludedFromComputationOfEarningsPerShareAmount" xlink:label="loc_us-gaap_AntidilutiveSecuritiesExcludedFromComputationOfEarningsPerShareAmount_F5D802909A91540E9B907320BCCB4813" xlink:type="locator" />
    <definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_oesx_AntidilutiveSharesExcludedFromComputationOfEarningsPerShareAbstract_1BAA03ADF1CB632BB2C17320BCCB8636" xlink:to="loc_us-gaap_AntidilutiveSecuritiesExcludedFromComputationOfEarningsPerShareAmount_F5D802909A91540E9B907320BCCB4813" xlink:type="arc" />
  </definitionLink>
  <definitionLink xlink:role="http://www.oesx.com/role/SummaryOfSignificantAccountingPoliciesEpsDetails" xlink:type="extended" />
  <definitionLink xlink:role="http://www.oesx.com/role/SummaryOfSignificantAccountingPoliciesEquipmentUnderCapitalLeasesDetails" xlink:type="extended">
    <loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_CapitalLeasedAssetsLineItems" xlink:label="loc_us-gaap_CapitalLeasedAssetsLineItems_FA34599BBE1009DB451173840998EE1C" xlink:type="locator" />
    <loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_ScheduleOfCapitalLeasedAsssetsTable" xlink:label="loc_us-gaap_ScheduleOfCapitalLeasedAsssetsTable_D1F582B4D2F6AFDC08F073840998845A" xlink:type="locator" />
    <definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/all" xlink:from="loc_us-gaap_CapitalLeasedAssetsLineItems_FA34599BBE1009DB451173840998EE1C" xlink:to="loc_us-gaap_ScheduleOfCapitalLeasedAsssetsTable_D1F582B4D2F6AFDC08F073840998845A" xlink:type="arc" xbrldt:closed="true" xbrldt:contextElement="segment" />
    <loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_PropertyPlantAndEquipmentByTypeAxis" xlink:label="loc_us-gaap_PropertyPlantAndEquipmentByTypeAxis_54D5718B6B49F5A7EB1973840998AF29" xlink:type="locator" />
    <definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_ScheduleOfCapitalLeasedAsssetsTable_D1F582B4D2F6AFDC08F073840998845A" xlink:to="loc_us-gaap_PropertyPlantAndEquipmentByTypeAxis_54D5718B6B49F5A7EB1973840998AF29" xlink:type="arc" />
    <loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_PropertyPlantAndEquipmentTypeDomain" xlink:label="loc_us-gaap_PropertyPlantAndEquipmentTypeDomain_3EAEF41585C19FCE227E73840998F85B_default" xlink:type="locator" />
    <definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_PropertyPlantAndEquipmentByTypeAxis_54D5718B6B49F5A7EB1973840998AF29" xlink:to="loc_us-gaap_PropertyPlantAndEquipmentTypeDomain_3EAEF41585C19FCE227E73840998F85B_default" xlink:type="arc" />
    <loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_PropertyPlantAndEquipmentTypeDomain" xlink:label="loc_us-gaap_PropertyPlantAndEquipmentTypeDomain_3EAEF41585C19FCE227E73840998F85B" xlink:type="locator" />
    <definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_PropertyPlantAndEquipmentByTypeAxis_54D5718B6B49F5A7EB1973840998AF29" xlink:to="loc_us-gaap_PropertyPlantAndEquipmentTypeDomain_3EAEF41585C19FCE227E73840998F85B" xlink:type="arc" />
    <loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_AssetsHeldUnderCapitalLeasesMember" xlink:label="loc_us-gaap_AssetsHeldUnderCapitalLeasesMember_9BD9F30A13A6D4CD258973840998384E" xlink:type="locator" />
    <definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_PropertyPlantAndEquipmentTypeDomain_3EAEF41585C19FCE227E73840998F85B" xlink:to="loc_us-gaap_AssetsHeldUnderCapitalLeasesMember_9BD9F30A13A6D4CD258973840998384E" xlink:type="arc" />
    <loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_PropertyPlantAndEquipmentGross" xlink:label="loc_us-gaap_PropertyPlantAndEquipmentGross_5018065FABFB2B23BF7573840998CA9B" xlink:type="locator" />
    <definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_CapitalLeasedAssetsLineItems_FA34599BBE1009DB451173840998EE1C" xlink:to="loc_us-gaap_PropertyPlantAndEquipmentGross_5018065FABFB2B23BF7573840998CA9B" xlink:type="arc" />
    <loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_AccumulatedDepreciationDepletionAndAmortizationPropertyPlantAndEquipment" xlink:label="loc_us-gaap_AccumulatedDepreciationDepletionAndAmortizationPropertyPlantAndEquipment_63A4186C5B8F705D222A738409980FF2" xlink:type="locator" />
    <definitionArc order="2" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_CapitalLeasedAssetsLineItems_FA34599BBE1009DB451173840998EE1C" xlink:to="loc_us-gaap_AccumulatedDepreciationDepletionAndAmortizationPropertyPlantAndEquipment_63A4186C5B8F705D222A738409980FF2" xlink:type="arc" />
    <loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_PropertyPlantAndEquipmentNet" xlink:label="loc_us-gaap_PropertyPlantAndEquipmentNet_06C695517A219CF91950738409985733" xlink:type="locator" />
    <definitionArc order="3" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_CapitalLeasedAssetsLineItems_FA34599BBE1009DB451173840998EE1C" xlink:to="loc_us-gaap_PropertyPlantAndEquipmentNet_06C695517A219CF91950738409985733" xlink:type="arc" />
  </definitionLink>
  <definitionLink xlink:role="http://www.oesx.com/role/SummaryOfSignificantAccountingPoliciesFinancingReceivablesDetails" xlink:type="extended">
    <loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_AccountsNotesAndLoansReceivableLineItems" xlink:label="loc_us-gaap_AccountsNotesAndLoansReceivableLineItems_88C3AB1530FF4D484491738409B11516" xlink:type="locator" />
    <loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_ScheduleOfFinancingReceivableRecordedInvestmentCreditQualityIndicatorTable" xlink:label="loc_us-gaap_ScheduleOfFinancingReceivableRecordedInvestmentCreditQualityIndicatorTable_DEE187FEFCDC5C07C408738409B0482F" xlink:type="locator" />
    <definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/all" xlink:from="loc_us-gaap_AccountsNotesAndLoansReceivableLineItems_88C3AB1530FF4D484491738409B11516" xlink:to="loc_us-gaap_ScheduleOfFinancingReceivableRecordedInvestmentCreditQualityIndicatorTable_DEE187FEFCDC5C07C408738409B0482F" xlink:type="arc" xbrldt:closed="true" xbrldt:contextElement="segment" />
    <loc xlink:href="oesx-20160331.xsd#oesx_FinancingReceivableTypeAxis" xlink:label="loc_oesx_FinancingReceivableTypeAxis_40C06B1EA33A7311FD23738409B0ABD2" xlink:type="locator" />
    <definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_ScheduleOfFinancingReceivableRecordedInvestmentCreditQualityIndicatorTable_DEE187FEFCDC5C07C408738409B0482F" xlink:to="loc_oesx_FinancingReceivableTypeAxis_40C06B1EA33A7311FD23738409B0ABD2" xlink:type="arc" />
    <loc xlink:href="oesx-20160331.xsd#oesx_FinancingReceivableTypeDomain" xlink:label="loc_oesx_FinancingReceivableTypeDomain_DAFBA1BD744A361E019F738409B00CBA_default" xlink:type="locator" />
    <definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_oesx_FinancingReceivableTypeAxis_40C06B1EA33A7311FD23738409B0ABD2" xlink:to="loc_oesx_FinancingReceivableTypeDomain_DAFBA1BD744A361E019F738409B00CBA_default" xlink:type="arc" />
    <loc xlink:href="oesx-20160331.xsd#oesx_FinancingReceivableTypeDomain" xlink:label="loc_oesx_FinancingReceivableTypeDomain_DAFBA1BD744A361E019F738409B00CBA" xlink:type="locator" />
    <definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_oesx_FinancingReceivableTypeAxis_40C06B1EA33A7311FD23738409B0ABD2" xlink:to="loc_oesx_FinancingReceivableTypeDomain_DAFBA1BD744A361E019F738409B00CBA" xlink:type="arc" />
    <loc xlink:href="oesx-20160331.xsd#oesx_NotPastDueMember" xlink:label="loc_oesx_NotPastDueMember_3EF003A490638BF43E6C738409B0EC17" xlink:type="locator" />
    <definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_oesx_FinancingReceivableTypeDomain_DAFBA1BD744A361E019F738409B00CBA" xlink:to="loc_oesx_NotPastDueMember_3EF003A490638BF43E6C738409B0EC17" xlink:type="arc" />
    <loc xlink:href="oesx-20160331.xsd#oesx_OneToNinetyDaysMember" xlink:label="loc_oesx_OneToNinetyDaysMember_EA7E5966C44FA706A0A0738409B091A5" xlink:type="locator" />
    <definitionArc order="2" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_oesx_FinancingReceivableTypeDomain_DAFBA1BD744A361E019F738409B00CBA" xlink:to="loc_oesx_OneToNinetyDaysMember_EA7E5966C44FA706A0A0738409B091A5" xlink:type="arc" />
    <loc xlink:href="oesx-20160331.xsd#oesx_GreaterThanNinetyDaysMember" xlink:label="loc_oesx_GreaterThanNinetyDaysMember_F8E407505C53A7924D1D738409B1C73A" xlink:type="locator" />
    <definitionArc order="3" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_oesx_FinancingReceivableTypeDomain_DAFBA1BD744A361E019F738409B00CBA" xlink:to="loc_oesx_GreaterThanNinetyDaysMember_F8E407505C53A7924D1D738409B1C73A" xlink:type="arc" />
    <loc xlink:href="oesx-20160331.xsd#oesx_PastDueLeaseNetMember" xlink:label="loc_oesx_PastDueLeaseNetMember_BBA466C2573D5FA67050738409B146D3" xlink:type="locator" />
    <definitionArc order="4" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_oesx_FinancingReceivableTypeDomain_DAFBA1BD744A361E019F738409B00CBA" xlink:to="loc_oesx_PastDueLeaseNetMember_BBA466C2573D5FA67050738409B146D3" xlink:type="arc" />
    <loc xlink:href="oesx-20160331.xsd#oesx_SalesTypeNetMember" xlink:label="loc_oesx_SalesTypeNetMember_0E60BAD328542B3329E5738409B15E64" xlink:type="locator" />
    <definitionArc order="5" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_oesx_FinancingReceivableTypeDomain_DAFBA1BD744A361E019F738409B00CBA" xlink:to="loc_oesx_SalesTypeNetMember_0E60BAD328542B3329E5738409B15E64" xlink:type="arc" />
    <loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_AccountsNotesAndLoansReceivableClassifiedAbstract" xlink:label="loc_us-gaap_AccountsNotesAndLoansReceivableClassifiedAbstract_69B592B725FB0BDC56C4738409B1EEA5" xlink:type="locator" />
    <definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_AccountsNotesAndLoansReceivableLineItems_88C3AB1530FF4D484491738409B11516" xlink:to="loc_us-gaap_AccountsNotesAndLoansReceivableClassifiedAbstract_69B592B725FB0BDC56C4738409B1EEA5" xlink:type="arc" />
    <loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_AccountsNotesAndLoansReceivableNetCurrent" xlink:label="loc_us-gaap_AccountsNotesAndLoansReceivableNetCurrent_74EC999FD4B47263A707738409B13B17" xlink:type="locator" />
    <definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_AccountsNotesAndLoansReceivableClassifiedAbstract_69B592B725FB0BDC56C4738409B1EEA5" xlink:to="loc_us-gaap_AccountsNotesAndLoansReceivableNetCurrent_74EC999FD4B47263A707738409B13B17" xlink:type="arc" />
    <loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_LongTermAccountsNotesAndLoansReceivableNetNoncurrent" xlink:label="loc_us-gaap_LongTermAccountsNotesAndLoansReceivableNetNoncurrent_E1727FCA80821B39F44A738409B24B1C" xlink:type="locator" />
    <definitionArc order="2" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_AccountsNotesAndLoansReceivableClassifiedAbstract_69B592B725FB0BDC56C4738409B1EEA5" xlink:to="loc_us-gaap_LongTermAccountsNotesAndLoansReceivableNetNoncurrent_E1727FCA80821B39F44A738409B24B1C" xlink:type="arc" />
    <loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_AccountsReceivableGrossCurrent" xlink:label="loc_us-gaap_AccountsReceivableGrossCurrent_3412704A3D35ECAF1941738409B238ED" xlink:type="locator" />
    <definitionArc order="3" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_AccountsNotesAndLoansReceivableClassifiedAbstract_69B592B725FB0BDC56C4738409B1EEA5" xlink:to="loc_us-gaap_AccountsReceivableGrossCurrent_3412704A3D35ECAF1941738409B238ED" xlink:type="arc" />
    <loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_AllowanceForDoubtfulAccountsReceivableCurrent" xlink:label="loc_us-gaap_AllowanceForDoubtfulAccountsReceivableCurrent_A8AFABA6025E653D5AFA738409B278C3" xlink:type="locator" />
    <definitionArc order="4" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_AccountsNotesAndLoansReceivableClassifiedAbstract_69B592B725FB0BDC56C4738409B1EEA5" xlink:to="loc_us-gaap_AllowanceForDoubtfulAccountsReceivableCurrent_A8AFABA6025E653D5AFA738409B278C3" xlink:type="arc" />
    <loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_AccountsReceivableNetCurrent" xlink:label="loc_us-gaap_AccountsReceivableNetCurrent_FF0466F7B252BA6912F4738409B26B62" xlink:type="locator" />
    <definitionArc order="5" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_AccountsNotesAndLoansReceivableClassifiedAbstract_69B592B725FB0BDC56C4738409B1EEA5" xlink:to="loc_us-gaap_AccountsReceivableNetCurrent_FF0466F7B252BA6912F4738409B26B62" xlink:type="arc" />
    <loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_AllowanceForDoubtfulAccountsReceivableRollforward" xlink:label="loc_us-gaap_AllowanceForDoubtfulAccountsReceivableRollforward_5B3FA6134C15F5A74B73738409B254DA" xlink:type="locator" />
    <definitionArc order="2" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_AccountsNotesAndLoansReceivableLineItems_88C3AB1530FF4D484491738409B11516" xlink:to="loc_us-gaap_AllowanceForDoubtfulAccountsReceivableRollforward_5B3FA6134C15F5A74B73738409B254DA" xlink:type="arc" />
    <loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_AllowanceForDoubtfulAccountsReceivable" xlink:label="loc_us-gaap_AllowanceForDoubtfulAccountsReceivable_CB333443BDF249C1F38E738409B24BE5" xlink:type="locator" />
    <definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_AllowanceForDoubtfulAccountsReceivableRollforward_5B3FA6134C15F5A74B73738409B254DA" xlink:to="loc_us-gaap_AllowanceForDoubtfulAccountsReceivable_CB333443BDF249C1F38E738409B24BE5" xlink:type="arc" />
    <loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_ProvisionForDoubtfulAccounts" xlink:label="loc_us-gaap_ProvisionForDoubtfulAccounts_E8DAC19B1285353973F9738409B270F0" xlink:type="locator" />
    <definitionArc order="2" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_AllowanceForDoubtfulAccountsReceivableRollforward_5B3FA6134C15F5A74B73738409B254DA" xlink:to="loc_us-gaap_ProvisionForDoubtfulAccounts_E8DAC19B1285353973F9738409B270F0" xlink:type="arc" />
    <loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_AllowanceForDoubtfulAccountsReceivableWriteOffs" xlink:label="loc_us-gaap_AllowanceForDoubtfulAccountsReceivableWriteOffs_A76F01FCEB273DDC4FE5738409B24250" xlink:type="locator" />
    <definitionArc order="3" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_AllowanceForDoubtfulAccountsReceivableRollforward_5B3FA6134C15F5A74B73738409B254DA" xlink:to="loc_us-gaap_AllowanceForDoubtfulAccountsReceivableWriteOffs_A76F01FCEB273DDC4FE5738409B24250" xlink:type="arc" />
  </definitionLink>
  <definitionLink xlink:role="http://www.oesx.com/role/SummaryOfSignificantAccountingPoliciesGoodwillAndOtherIntangibleAssetsDetails" xlink:type="extended">
    <loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_FiniteLivedIntangibleAssetsLineItems" xlink:label="loc_us-gaap_FiniteLivedIntangibleAssetsLineItems_5A49858D85EE4A823839781050AE215D" xlink:type="locator" />
    <loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_ScheduleOfFiniteLivedIntangibleAssetsTable" xlink:label="loc_us-gaap_ScheduleOfFiniteLivedIntangibleAssetsTable_4C31D68C1836B8904BE9781050A7200B" xlink:type="locator" />
    <definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/all" xlink:from="loc_us-gaap_FiniteLivedIntangibleAssetsLineItems_5A49858D85EE4A823839781050AE215D" xlink:to="loc_us-gaap_ScheduleOfFiniteLivedIntangibleAssetsTable_4C31D68C1836B8904BE9781050A7200B" xlink:type="arc" xbrldt:closed="true" xbrldt:contextElement="segment" />
    <loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_FiniteLivedIntangibleAssetsByMajorClassAxis" xlink:label="loc_us-gaap_FiniteLivedIntangibleAssetsByMajorClassAxis_13531B6C1805E8DF6A6E781050A79F68" xlink:type="locator" />
    <definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_ScheduleOfFiniteLivedIntangibleAssetsTable_4C31D68C1836B8904BE9781050A7200B" xlink:to="loc_us-gaap_FiniteLivedIntangibleAssetsByMajorClassAxis_13531B6C1805E8DF6A6E781050A79F68" xlink:type="arc" />
    <loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_FiniteLivedIntangibleAssetsMajorClassNameDomain" xlink:label="loc_us-gaap_FiniteLivedIntangibleAssetsMajorClassNameDomain_FF02124CC4BFF39A212F781050A8B710_default" xlink:type="locator" />
    <definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_FiniteLivedIntangibleAssetsByMajorClassAxis_13531B6C1805E8DF6A6E781050A79F68" xlink:to="loc_us-gaap_FiniteLivedIntangibleAssetsMajorClassNameDomain_FF02124CC4BFF39A212F781050A8B710_default" xlink:type="arc" />
    <loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_FiniteLivedIntangibleAssetsMajorClassNameDomain" xlink:label="loc_us-gaap_FiniteLivedIntangibleAssetsMajorClassNameDomain_FF02124CC4BFF39A212F781050A8B710" xlink:type="locator" />
    <definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_FiniteLivedIntangibleAssetsByMajorClassAxis_13531B6C1805E8DF6A6E781050A79F68" xlink:to="loc_us-gaap_FiniteLivedIntangibleAssetsMajorClassNameDomain_FF02124CC4BFF39A212F781050A8B710" xlink:type="arc" />
    <loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_PatentsMember" xlink:label="loc_us-gaap_PatentsMember_F33ACEAC6B6981E0257A781050A83723" xlink:type="locator" />
    <definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_FiniteLivedIntangibleAssetsMajorClassNameDomain_FF02124CC4BFF39A212F781050A8B710" xlink:to="loc_us-gaap_PatentsMember_F33ACEAC6B6981E0257A781050A83723" xlink:type="arc" />
    <loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_LicensingAgreementsMember" xlink:label="loc_us-gaap_LicensingAgreementsMember_7DB214D9AFFB329FE156781050ADC773" xlink:type="locator" />
    <definitionArc order="2" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_FiniteLivedIntangibleAssetsMajorClassNameDomain_FF02124CC4BFF39A212F781050A8B710" xlink:to="loc_us-gaap_LicensingAgreementsMember_7DB214D9AFFB329FE156781050ADC773" xlink:type="arc" />
    <loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_TrademarksAndTradeNamesMember" xlink:label="loc_us-gaap_TrademarksAndTradeNamesMember_3502B0DA4D9826CA0ED2781050ADDD28" xlink:type="locator" />
    <definitionArc order="3" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_FiniteLivedIntangibleAssetsMajorClassNameDomain_FF02124CC4BFF39A212F781050A8B710" xlink:to="loc_us-gaap_TrademarksAndTradeNamesMember_3502B0DA4D9826CA0ED2781050ADDD28" xlink:type="arc" />
    <loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_CustomerRelationshipsMember" xlink:label="loc_us-gaap_CustomerRelationshipsMember_6CE43718C5D897FF12EC781050AE6A9E" xlink:type="locator" />
    <definitionArc order="4" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_FiniteLivedIntangibleAssetsMajorClassNameDomain_FF02124CC4BFF39A212F781050A8B710" xlink:to="loc_us-gaap_CustomerRelationshipsMember_6CE43718C5D897FF12EC781050AE6A9E" xlink:type="arc" />
    <loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_DevelopedTechnologyRightsMember" xlink:label="loc_us-gaap_DevelopedTechnologyRightsMember_171AF8F98A0033B172C4781050AEAA9A" xlink:type="locator" />
    <definitionArc order="5" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_FiniteLivedIntangibleAssetsMajorClassNameDomain_FF02124CC4BFF39A212F781050A8B710" xlink:to="loc_us-gaap_DevelopedTechnologyRightsMember_171AF8F98A0033B172C4781050AEAA9A" xlink:type="arc" />
    <loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_NoncompeteAgreementsMember" xlink:label="loc_us-gaap_NoncompeteAgreementsMember_A7F255D2321CA774BA16781050AEF79E" xlink:type="locator" />
    <definitionArc order="6" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_FiniteLivedIntangibleAssetsMajorClassNameDomain_FF02124CC4BFF39A212F781050A8B710" xlink:to="loc_us-gaap_NoncompeteAgreementsMember_A7F255D2321CA774BA16781050AEF79E" xlink:type="arc" />
    <loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_RangeAxis" xlink:label="loc_us-gaap_RangeAxis_D6DE80F229C580B6D4E3781050AEBACA" xlink:type="locator" />
    <definitionArc order="2" xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_ScheduleOfFiniteLivedIntangibleAssetsTable_4C31D68C1836B8904BE9781050A7200B" xlink:to="loc_us-gaap_RangeAxis_D6DE80F229C580B6D4E3781050AEBACA" xlink:type="arc" />
    <loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_RangeMember" xlink:label="loc_us-gaap_RangeMember_B3D3BAE7BC97F28D92C0781050AE3066_default" xlink:type="locator" />
    <definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_RangeAxis_D6DE80F229C580B6D4E3781050AEBACA" xlink:to="loc_us-gaap_RangeMember_B3D3BAE7BC97F28D92C0781050AE3066_default" xlink:type="arc" />
    <loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_RangeMember" xlink:label="loc_us-gaap_RangeMember_B3D3BAE7BC97F28D92C0781050AE3066" xlink:type="locator" />
    <definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_RangeAxis_D6DE80F229C580B6D4E3781050AEBACA" xlink:to="loc_us-gaap_RangeMember_B3D3BAE7BC97F28D92C0781050AE3066" xlink:type="arc" />
    <loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_MinimumMember" xlink:label="loc_us-gaap_MinimumMember_8A934509C896F22BA69B781050AE388E" xlink:type="locator" />
    <definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_RangeMember_B3D3BAE7BC97F28D92C0781050AE3066" xlink:to="loc_us-gaap_MinimumMember_8A934509C896F22BA69B781050AE388E" xlink:type="arc" />
    <loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_MaximumMember" xlink:label="loc_us-gaap_MaximumMember_6BBEE5A67DDA8B3C1728781050AEFDED" xlink:type="locator" />
    <definitionArc order="2" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_RangeMember_B3D3BAE7BC97F28D92C0781050AE3066" xlink:to="loc_us-gaap_MaximumMember_6BBEE5A67DDA8B3C1728781050AEFDED" xlink:type="arc" />
    <loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_IncomeStatementLocationAxis" xlink:label="loc_us-gaap_IncomeStatementLocationAxis_3D26006138553A534523781050AEED0D" xlink:type="locator" />
    <definitionArc order="3" xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_ScheduleOfFiniteLivedIntangibleAssetsTable_4C31D68C1836B8904BE9781050A7200B" xlink:to="loc_us-gaap_IncomeStatementLocationAxis_3D26006138553A534523781050AEED0D" xlink:type="arc" />
    <loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_IncomeStatementLocationDomain" xlink:label="loc_us-gaap_IncomeStatementLocationDomain_13D0AAF0D49AE50A3A9D781050AEE29D_default" xlink:type="locator" />
    <definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_IncomeStatementLocationAxis_3D26006138553A534523781050AEED0D" xlink:to="loc_us-gaap_IncomeStatementLocationDomain_13D0AAF0D49AE50A3A9D781050AEE29D_default" xlink:type="arc" />
    <loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_IncomeStatementLocationDomain" xlink:label="loc_us-gaap_IncomeStatementLocationDomain_13D0AAF0D49AE50A3A9D781050AEE29D" xlink:type="locator" />
    <definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_IncomeStatementLocationAxis_3D26006138553A534523781050AEED0D" xlink:to="loc_us-gaap_IncomeStatementLocationDomain_13D0AAF0D49AE50A3A9D781050AEE29D" xlink:type="arc" />
    <loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_CostOfSalesMember" xlink:label="loc_us-gaap_CostOfSalesMember_16CA49A34285495B8501781050AE5B05" xlink:type="locator" />
    <definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_IncomeStatementLocationDomain_13D0AAF0D49AE50A3A9D781050AEE29D" xlink:to="loc_us-gaap_CostOfSalesMember_16CA49A34285495B8501781050AE5B05" xlink:type="arc" />
    <loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_OperatingExpenseMember" xlink:label="loc_us-gaap_OperatingExpenseMember_5C6FBB5702D01B7156BB781050AE5B9E" xlink:type="locator" />
    <definitionArc order="2" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_IncomeStatementLocationDomain_13D0AAF0D49AE50A3A9D781050AEE29D" xlink:to="loc_us-gaap_OperatingExpenseMember_5C6FBB5702D01B7156BB781050AE5B9E" xlink:type="arc" />
    <loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_GoodwillRollForward" xlink:label="loc_us-gaap_GoodwillRollForward_9E89DA3C436E163562AD781050AF7EC4" xlink:type="locator" />
    <definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_FiniteLivedIntangibleAssetsLineItems_5A49858D85EE4A823839781050AE215D" xlink:to="loc_us-gaap_GoodwillRollForward_9E89DA3C436E163562AD781050AF7EC4" xlink:type="arc" />
    <loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_Goodwill" xlink:label="loc_us-gaap_Goodwill_DF32EAB0664EB588D044781050AF0025" xlink:type="locator" />
    <definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_GoodwillRollForward_9E89DA3C436E163562AD781050AF7EC4" xlink:to="loc_us-gaap_Goodwill_DF32EAB0664EB588D044781050AF0025" xlink:type="arc" />
    <loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_GoodwillImpairmentLoss" xlink:label="loc_us-gaap_GoodwillImpairmentLoss_AB38C209A84993E51C27781050AF08AE" xlink:type="locator" />
    <definitionArc order="2" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_GoodwillRollForward_9E89DA3C436E163562AD781050AF7EC4" xlink:to="loc_us-gaap_GoodwillImpairmentLoss_AB38C209A84993E51C27781050AF08AE" xlink:type="arc" />
    <loc xlink:href="oesx-20160331.xsd#oesx_FiniteLivedandIndefiniteLivedIntangibleAssetsGross" xlink:label="loc_oesx_FiniteLivedandIndefiniteLivedIntangibleAssetsGross_1877CA06A45722DA1C67781050AFA9A4" xlink:type="locator" />
    <definitionArc order="2" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_FiniteLivedIntangibleAssetsLineItems_5A49858D85EE4A823839781050AE215D" xlink:to="loc_oesx_FiniteLivedandIndefiniteLivedIntangibleAssetsGross_1877CA06A45722DA1C67781050AFA9A4" xlink:type="arc" />
    <loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_FiniteLivedIntangibleAssetsAccumulatedAmortization" xlink:label="loc_us-gaap_FiniteLivedIntangibleAssetsAccumulatedAmortization_1304C656E6F3F6F38638781050AFA0C8" xlink:type="locator" />
    <definitionArc order="3" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_FiniteLivedIntangibleAssetsLineItems_5A49858D85EE4A823839781050AE215D" xlink:to="loc_us-gaap_FiniteLivedIntangibleAssetsAccumulatedAmortization_1304C656E6F3F6F38638781050AFA0C8" xlink:type="arc" />
    <loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_IntangibleAssetsNetExcludingGoodwill" xlink:label="loc_us-gaap_IntangibleAssetsNetExcludingGoodwill_98BC247F191A2C5FBE6F781050AF3B55" xlink:type="locator" />
    <definitionArc order="4" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_FiniteLivedIntangibleAssetsLineItems_5A49858D85EE4A823839781050AE215D" xlink:to="loc_us-gaap_IntangibleAssetsNetExcludingGoodwill_98BC247F191A2C5FBE6F781050AF3B55" xlink:type="arc" />
    <loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_FiniteLivedIntangibleAssetUsefulLife" xlink:label="loc_us-gaap_FiniteLivedIntangibleAssetUsefulLife_CF4364C47BF6256F47B4781050AF1C99" xlink:type="locator" />
    <definitionArc order="5" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_FiniteLivedIntangibleAssetsLineItems_5A49858D85EE4A823839781050AE215D" xlink:to="loc_us-gaap_FiniteLivedIntangibleAssetUsefulLife_CF4364C47BF6256F47B4781050AF1C99" xlink:type="arc" />
    <loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_FiniteLivedIntangibleAssetsFutureAmortizationExpenseAbstract" xlink:label="loc_us-gaap_FiniteLivedIntangibleAssetsFutureAmortizationExpenseAbstract_A368952E3B381C2044F0781050B0C8BB" xlink:type="locator" />
    <definitionArc order="6" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_FiniteLivedIntangibleAssetsLineItems_5A49858D85EE4A823839781050AE215D" xlink:to="loc_us-gaap_FiniteLivedIntangibleAssetsFutureAmortizationExpenseAbstract_A368952E3B381C2044F0781050B0C8BB" xlink:type="arc" />
    <loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_FiniteLivedIntangibleAssetsAmortizationExpenseNextTwelveMonths" xlink:label="loc_us-gaap_FiniteLivedIntangibleAssetsAmortizationExpenseNextTwelveMonths_74DA2F0C53331030A16D781050B0B74F" xlink:type="locator" />
    <definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_FiniteLivedIntangibleAssetsFutureAmortizationExpenseAbstract_A368952E3B381C2044F0781050B0C8BB" xlink:to="loc_us-gaap_FiniteLivedIntangibleAssetsAmortizationExpenseNextTwelveMonths_74DA2F0C53331030A16D781050B0B74F" xlink:type="arc" />
    <loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_FiniteLivedIntangibleAssetsAmortizationExpenseYearTwo" xlink:label="loc_us-gaap_FiniteLivedIntangibleAssetsAmortizationExpenseYearTwo_879F08EB3AC76CB7E5CC781050B579FC" xlink:type="locator" />
    <definitionArc order="2" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_FiniteLivedIntangibleAssetsFutureAmortizationExpenseAbstract_A368952E3B381C2044F0781050B0C8BB" xlink:to="loc_us-gaap_FiniteLivedIntangibleAssetsAmortizationExpenseYearTwo_879F08EB3AC76CB7E5CC781050B579FC" xlink:type="arc" />
    <loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_FiniteLivedIntangibleAssetsAmortizationExpenseYearThree" xlink:label="loc_us-gaap_FiniteLivedIntangibleAssetsAmortizationExpenseYearThree_FACB265907E0DA5D9B82781050B578EF" xlink:type="locator" />
    <definitionArc order="3" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_FiniteLivedIntangibleAssetsFutureAmortizationExpenseAbstract_A368952E3B381C2044F0781050B0C8BB" xlink:to="loc_us-gaap_FiniteLivedIntangibleAssetsAmortizationExpenseYearThree_FACB265907E0DA5D9B82781050B578EF" xlink:type="arc" />
    <loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_FiniteLivedIntangibleAssetsAmortizationExpenseYearFour" xlink:label="loc_us-gaap_FiniteLivedIntangibleAssetsAmortizationExpenseYearFour_6206438E9D05E8A4991D781050B59305" xlink:type="locator" />
    <definitionArc order="4" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_FiniteLivedIntangibleAssetsFutureAmortizationExpenseAbstract_A368952E3B381C2044F0781050B0C8BB" xlink:to="loc_us-gaap_FiniteLivedIntangibleAssetsAmortizationExpenseYearFour_6206438E9D05E8A4991D781050B59305" xlink:type="arc" />
    <loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_FiniteLivedIntangibleAssetsAmortizationExpenseYearFive" xlink:label="loc_us-gaap_FiniteLivedIntangibleAssetsAmortizationExpenseYearFive_045975D35225DD911DA5781050B50F9B" xlink:type="locator" />
    <definitionArc order="5" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_FiniteLivedIntangibleAssetsFutureAmortizationExpenseAbstract_A368952E3B381C2044F0781050B0C8BB" xlink:to="loc_us-gaap_FiniteLivedIntangibleAssetsAmortizationExpenseYearFive_045975D35225DD911DA5781050B50F9B" xlink:type="arc" />
    <loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_FiniteLivedIntangibleAssetsAmortizationExpenseAfterYearFive" xlink:label="loc_us-gaap_FiniteLivedIntangibleAssetsAmortizationExpenseAfterYearFive_A3708F9108EE9D3DFF76781050B5DF6D" xlink:type="locator" />
    <definitionArc order="6" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_FiniteLivedIntangibleAssetsFutureAmortizationExpenseAbstract_A368952E3B381C2044F0781050B0C8BB" xlink:to="loc_us-gaap_FiniteLivedIntangibleAssetsAmortizationExpenseAfterYearFive_A3708F9108EE9D3DFF76781050B5DF6D" xlink:type="arc" />
    <loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_FiniteLivedIntangibleAssetsNet" xlink:label="loc_us-gaap_FiniteLivedIntangibleAssetsNet_B4AB2EA48A0CCE97DD85781050B5FA9D" xlink:type="locator" />
    <definitionArc order="7" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_FiniteLivedIntangibleAssetsFutureAmortizationExpenseAbstract_A368952E3B381C2044F0781050B0C8BB" xlink:to="loc_us-gaap_FiniteLivedIntangibleAssetsNet_B4AB2EA48A0CCE97DD85781050B5FA9D" xlink:type="arc" />
    <loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_AmortizationOfIntangibleAssets" xlink:label="loc_us-gaap_AmortizationOfIntangibleAssets_68BA3D480C7EB698BB14781050B622E2" xlink:type="locator" />
    <definitionArc order="7" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_FiniteLivedIntangibleAssetsLineItems_5A49858D85EE4A823839781050AE215D" xlink:to="loc_us-gaap_AmortizationOfIntangibleAssets_68BA3D480C7EB698BB14781050B622E2" xlink:type="arc" />
  </definitionLink>
  <definitionLink xlink:role="http://www.oesx.com/role/SummaryOfSignificantAccountingPoliciesIncentiveCompDetails" xlink:type="extended">
    <loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_DeferredCompensationArrangementWithIndividualExcludingShareBasedPaymentsAndPostretirementBenefitsLineItems" xlink:label="loc_us-gaap_DeferredCompensationArrangementWithIndividualExcludingShareBasedPaymentsAndPostretirementBenefitsLineItems_7CDFB5F7315ACD41AF896F05517DF2E7" xlink:type="locator" />
    <loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_ScheduleOfDeferredCompensationArrangementWithIndividualExcludingShareBasedPaymentsAndPostretirementBenefitsByTitleOfIndividualAndByTypeOfDeferredCompensationTable" xlink:label="loc_us-gaap_ScheduleOfDeferredCompensationArrangementWithIndividualExcludingShareBasedPaymentsAndPostretirementBenefitsByTitleOfIndividualAndByTypeOfDeferredCompensationTable_E7C2193886FB7283449B6F05517CC089" xlink:type="locator" />
    <definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/all" xlink:from="loc_us-gaap_DeferredCompensationArrangementWithIndividualExcludingShareBasedPaymentsAndPostretirementBenefitsLineItems_7CDFB5F7315ACD41AF896F05517DF2E7" xlink:to="loc_us-gaap_ScheduleOfDeferredCompensationArrangementWithIndividualExcludingShareBasedPaymentsAndPostretirementBenefitsByTitleOfIndividualAndByTypeOfDeferredCompensationTable_E7C2193886FB7283449B6F05517CC089" xlink:type="arc" xbrldt:closed="true" xbrldt:contextElement="segment" />
    <loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_DeferredCompensationArrangementWithIndividualExcludingShareBasedPaymentsAndPostretirementBenefitsByTypeOfDeferredCompensationAxis" xlink:label="loc_us-gaap_DeferredCompensationArrangementWithIndividualExcludingShareBasedPaymentsAndPostretirementBenefitsByTypeOfDeferredCompensationAxis_F98852987E9F04451FEF6F05517C4ABD" xlink:type="locator" />
    <definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_ScheduleOfDeferredCompensationArrangementWithIndividualExcludingShareBasedPaymentsAndPostretirementBenefitsByTitleOfIndividualAndByTypeOfDeferredCompensationTable_E7C2193886FB7283449B6F05517CC089" xlink:to="loc_us-gaap_DeferredCompensationArrangementWithIndividualExcludingShareBasedPaymentsAndPostretirementBenefitsByTypeOfDeferredCompensationAxis_F98852987E9F04451FEF6F05517C4ABD" xlink:type="arc" />
    <loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_DeferredBonusAndProfitSharingArrangementIndividualContractTypeOfDeferredCompensationDomain" xlink:label="loc_us-gaap_DeferredBonusAndProfitSharingArrangementIndividualContractTypeOfDeferredCompensationDomain_F41BF0B507D0C3337A546F05517C5628_default" xlink:type="locator" />
    <definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_DeferredCompensationArrangementWithIndividualExcludingShareBasedPaymentsAndPostretirementBenefitsByTypeOfDeferredCompensationAxis_F98852987E9F04451FEF6F05517C4ABD" xlink:to="loc_us-gaap_DeferredBonusAndProfitSharingArrangementIndividualContractTypeOfDeferredCompensationDomain_F41BF0B507D0C3337A546F05517C5628_default" xlink:type="arc" />
    <loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_DeferredBonusAndProfitSharingArrangementIndividualContractTypeOfDeferredCompensationDomain" xlink:label="loc_us-gaap_DeferredBonusAndProfitSharingArrangementIndividualContractTypeOfDeferredCompensationDomain_F41BF0B507D0C3337A546F05517C5628" xlink:type="locator" />
    <definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_DeferredCompensationArrangementWithIndividualExcludingShareBasedPaymentsAndPostretirementBenefitsByTypeOfDeferredCompensationAxis_F98852987E9F04451FEF6F05517C4ABD" xlink:to="loc_us-gaap_DeferredBonusAndProfitSharingArrangementIndividualContractTypeOfDeferredCompensationDomain_F41BF0B507D0C3337A546F05517C5628" xlink:type="arc" />
    <loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_DeferredBonusMember" xlink:label="loc_us-gaap_DeferredBonusMember_16BE2E785E0DA660E70E6F05517CE021" xlink:type="locator" />
    <definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DeferredBonusAndProfitSharingArrangementIndividualContractTypeOfDeferredCompensationDomain_F41BF0B507D0C3337A546F05517C5628" xlink:to="loc_us-gaap_DeferredBonusMember_16BE2E785E0DA660E70E6F05517CE021" xlink:type="arc" />
    <loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_RangeAxis" xlink:label="loc_us-gaap_RangeAxis_8F35DEDD50242CFDCDC96F05517C565B" xlink:type="locator" />
    <definitionArc order="2" xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_ScheduleOfDeferredCompensationArrangementWithIndividualExcludingShareBasedPaymentsAndPostretirementBenefitsByTitleOfIndividualAndByTypeOfDeferredCompensationTable_E7C2193886FB7283449B6F05517CC089" xlink:to="loc_us-gaap_RangeAxis_8F35DEDD50242CFDCDC96F05517C565B" xlink:type="arc" />
    <loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_RangeMember" xlink:label="loc_us-gaap_RangeMember_732326B7A40B9B3DBE9B6F05517CC1ED_default" xlink:type="locator" />
    <definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_RangeAxis_8F35DEDD50242CFDCDC96F05517C565B" xlink:to="loc_us-gaap_RangeMember_732326B7A40B9B3DBE9B6F05517CC1ED_default" xlink:type="arc" />
    <loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_RangeMember" xlink:label="loc_us-gaap_RangeMember_732326B7A40B9B3DBE9B6F05517CC1ED" xlink:type="locator" />
    <definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_RangeAxis_8F35DEDD50242CFDCDC96F05517C565B" xlink:to="loc_us-gaap_RangeMember_732326B7A40B9B3DBE9B6F05517CC1ED" xlink:type="arc" />
    <loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_MinimumMember" xlink:label="loc_us-gaap_MinimumMember_04F0223B338BAF0469326F05517D9733" xlink:type="locator" />
    <definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_RangeMember_732326B7A40B9B3DBE9B6F05517CC1ED" xlink:to="loc_us-gaap_MinimumMember_04F0223B338BAF0469326F05517D9733" xlink:type="arc" />
    <loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_MaximumMember" xlink:label="loc_us-gaap_MaximumMember_D23F392576FFD241ABB16F05517D6185" xlink:type="locator" />
    <definitionArc order="2" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_RangeMember_732326B7A40B9B3DBE9B6F05517CC1ED" xlink:to="loc_us-gaap_MaximumMember_D23F392576FFD241ABB16F05517D6185" xlink:type="arc" />
    <loc xlink:href="oesx-20160331.xsd#oesx_DeferredCompensationArrangementWithIndividualDiscretionaryBonusPaymentPercentage" xlink:label="loc_oesx_DeferredCompensationArrangementWithIndividualDiscretionaryBonusPaymentPercentage_79D9301FABBC9B9F4DC96F05517D1B74" xlink:type="locator" />
    <definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DeferredCompensationArrangementWithIndividualExcludingShareBasedPaymentsAndPostretirementBenefitsLineItems_7CDFB5F7315ACD41AF896F05517DF2E7" xlink:to="loc_oesx_DeferredCompensationArrangementWithIndividualDiscretionaryBonusPaymentPercentage_79D9301FABBC9B9F4DC96F05517D1B74" xlink:type="arc" />
    <loc xlink:href="oesx-20160331.xsd#oesx_DeferredCompensationArrangementwithIndividualCashAwardThresholdProfitBeforeTaxes" xlink:label="loc_oesx_DeferredCompensationArrangementwithIndividualCashAwardThresholdProfitBeforeTaxes_89BCA975DDA9F4EC69456F05517DD8B7" xlink:type="locator" />
    <definitionArc order="2" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DeferredCompensationArrangementWithIndividualExcludingShareBasedPaymentsAndPostretirementBenefitsLineItems_7CDFB5F7315ACD41AF896F05517DF2E7" xlink:to="loc_oesx_DeferredCompensationArrangementwithIndividualCashAwardThresholdProfitBeforeTaxes_89BCA975DDA9F4EC69456F05517DD8B7" xlink:type="arc" />
    <loc xlink:href="oesx-20160331.xsd#oesx_DeferredCompensationArrangementwithIndividualCashAwardThresholdRevenueGrowthPercent" xlink:label="loc_oesx_DeferredCompensationArrangementwithIndividualCashAwardThresholdRevenueGrowthPercent_74DC1B38B096366F63EC6F2DA98C93DE" xlink:type="locator" />
    <definitionArc order="3" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DeferredCompensationArrangementWithIndividualExcludingShareBasedPaymentsAndPostretirementBenefitsLineItems_7CDFB5F7315ACD41AF896F05517DF2E7" xlink:to="loc_oesx_DeferredCompensationArrangementwithIndividualCashAwardThresholdRevenueGrowthPercent_74DC1B38B096366F63EC6F2DA98C93DE" xlink:type="arc" />
    <loc xlink:href="oesx-20160331.xsd#oesx_DeferredCompensationArrangementWithIndividualCashAwardThresholdRevenue" xlink:label="loc_oesx_DeferredCompensationArrangementWithIndividualCashAwardThresholdRevenue_6A8357C2B0BE5E8545E76F05517DA568" xlink:type="locator" />
    <definitionArc order="4" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DeferredCompensationArrangementWithIndividualExcludingShareBasedPaymentsAndPostretirementBenefitsLineItems_7CDFB5F7315ACD41AF896F05517DF2E7" xlink:to="loc_oesx_DeferredCompensationArrangementWithIndividualCashAwardThresholdRevenue_6A8357C2B0BE5E8545E76F05517DA568" xlink:type="arc" />
  </definitionLink>
  <definitionLink xlink:role="http://www.oesx.com/role/SummaryOfSignificantAccountingPoliciesInventoriesDetails" xlink:type="extended" />
  <definitionLink xlink:role="http://www.oesx.com/role/SummaryOfSignificantAccountingPoliciesNarrativeDetails" xlink:type="extended">
    <loc xlink:href="oesx-20160331.xsd#oesx_SummaryofSignificantAccountingPoliciesLineItems" xlink:label="loc_oesx_SummaryofSignificantAccountingPoliciesLineItems_EB668C638C751E5498397ECAB0F70D16" xlink:type="locator" />
    <loc xlink:href="oesx-20160331.xsd#oesx_SummaryofSignificantAccountingPoliciesTable" xlink:label="loc_oesx_SummaryofSignificantAccountingPoliciesTable_1B652919056746FB24317ECAB0F6E3A9" xlink:type="locator" />
    <definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/all" xlink:from="loc_oesx_SummaryofSignificantAccountingPoliciesLineItems_EB668C638C751E5498397ECAB0F70D16" xlink:to="loc_oesx_SummaryofSignificantAccountingPoliciesTable_1B652919056746FB24317ECAB0F6E3A9" xlink:type="arc" xbrldt:closed="true" xbrldt:contextElement="segment" />
    <loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_SaleLeasebackTransactionDescriptionAxis" xlink:label="loc_us-gaap_SaleLeasebackTransactionDescriptionAxis_E4018B1B7272B36EEA697ECAB0F6CB2F" xlink:type="locator" />
    <definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_oesx_SummaryofSignificantAccountingPoliciesTable_1B652919056746FB24317ECAB0F6E3A9" xlink:to="loc_us-gaap_SaleLeasebackTransactionDescriptionAxis_E4018B1B7272B36EEA697ECAB0F6CB2F" xlink:type="arc" />
    <loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_SaleLeasebackTransactionNameDomain" xlink:label="loc_us-gaap_SaleLeasebackTransactionNameDomain_4114C49653ACA41778BA7ECAB0F64071_default" xlink:type="locator" />
    <definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_SaleLeasebackTransactionDescriptionAxis_E4018B1B7272B36EEA697ECAB0F6CB2F" xlink:to="loc_us-gaap_SaleLeasebackTransactionNameDomain_4114C49653ACA41778BA7ECAB0F64071_default" xlink:type="arc" />
    <loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_SaleLeasebackTransactionNameDomain" xlink:label="loc_us-gaap_SaleLeasebackTransactionNameDomain_4114C49653ACA41778BA7ECAB0F64071" xlink:type="locator" />
    <definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_SaleLeasebackTransactionDescriptionAxis_E4018B1B7272B36EEA697ECAB0F6CB2F" xlink:to="loc_us-gaap_SaleLeasebackTransactionNameDomain_4114C49653ACA41778BA7ECAB0F64071" xlink:type="arc" />
    <loc xlink:href="oesx-20160331.xsd#oesx_ManitowocManufacturingandDistributionFacilityMember" xlink:label="loc_oesx_ManitowocManufacturingandDistributionFacilityMember_D297D793A63474F700747ECAB0F6EABF" xlink:type="locator" />
    <definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_SaleLeasebackTransactionNameDomain_4114C49653ACA41778BA7ECAB0F64071" xlink:to="loc_oesx_ManitowocManufacturingandDistributionFacilityMember_D297D793A63474F700747ECAB0F6EABF" xlink:type="arc" />
    <loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_ConsolidationItemsAxis" xlink:label="loc_us-gaap_ConsolidationItemsAxis_D83239303A937CB5EDE37ECAB0F6EB25" xlink:type="locator" />
    <definitionArc order="2" xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_oesx_SummaryofSignificantAccountingPoliciesTable_1B652919056746FB24317ECAB0F6E3A9" xlink:to="loc_us-gaap_ConsolidationItemsAxis_D83239303A937CB5EDE37ECAB0F6EB25" xlink:type="arc" />
    <loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_ConsolidationItemsDomain" xlink:label="loc_us-gaap_ConsolidationItemsDomain_3724844617F10256210B7ECAB0F68285_default" xlink:type="locator" />
    <definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_ConsolidationItemsAxis_D83239303A937CB5EDE37ECAB0F6EB25" xlink:to="loc_us-gaap_ConsolidationItemsDomain_3724844617F10256210B7ECAB0F68285_default" xlink:type="arc" />
    <loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_ConsolidationItemsDomain" xlink:label="loc_us-gaap_ConsolidationItemsDomain_3724844617F10256210B7ECAB0F68285" xlink:type="locator" />
    <definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_ConsolidationItemsAxis_D83239303A937CB5EDE37ECAB0F6EB25" xlink:to="loc_us-gaap_ConsolidationItemsDomain_3724844617F10256210B7ECAB0F68285" xlink:type="arc" />
    <loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_OperatingSegmentsMember" xlink:label="loc_us-gaap_OperatingSegmentsMember_D97A0F00414B00A74AA17ECAB0F69B4A" xlink:type="locator" />
    <definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ConsolidationItemsDomain_3724844617F10256210B7ECAB0F68285" xlink:to="loc_us-gaap_OperatingSegmentsMember_D97A0F00414B00A74AA17ECAB0F69B4A" xlink:type="arc" />
    <loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_PropertyPlantAndEquipmentByTypeAxis" xlink:label="loc_us-gaap_PropertyPlantAndEquipmentByTypeAxis_D5F7E3EED09BBBF71A217ECAB0F61AA9" xlink:type="locator" />
    <definitionArc order="3" xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_oesx_SummaryofSignificantAccountingPoliciesTable_1B652919056746FB24317ECAB0F6E3A9" xlink:to="loc_us-gaap_PropertyPlantAndEquipmentByTypeAxis_D5F7E3EED09BBBF71A217ECAB0F61AA9" xlink:type="arc" />
    <loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_PropertyPlantAndEquipmentTypeDomain" xlink:label="loc_us-gaap_PropertyPlantAndEquipmentTypeDomain_DBD394E499A52FFE982A7ECAB0F66FDE_default" xlink:type="locator" />
    <definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_PropertyPlantAndEquipmentByTypeAxis_D5F7E3EED09BBBF71A217ECAB0F61AA9" xlink:to="loc_us-gaap_PropertyPlantAndEquipmentTypeDomain_DBD394E499A52FFE982A7ECAB0F66FDE_default" xlink:type="arc" />
    <loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_PropertyPlantAndEquipmentTypeDomain" xlink:label="loc_us-gaap_PropertyPlantAndEquipmentTypeDomain_DBD394E499A52FFE982A7ECAB0F66FDE" xlink:type="locator" />
    <definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_PropertyPlantAndEquipmentByTypeAxis_D5F7E3EED09BBBF71A217ECAB0F61AA9" xlink:to="loc_us-gaap_PropertyPlantAndEquipmentTypeDomain_DBD394E499A52FFE982A7ECAB0F66FDE" xlink:type="arc" />
    <loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_ConstructionInProgressMember" xlink:label="loc_us-gaap_ConstructionInProgressMember_70B75D33E9DB9CED171B7ECAB0F6F7B0" xlink:type="locator" />
    <definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_PropertyPlantAndEquipmentTypeDomain_DBD394E499A52FFE982A7ECAB0F66FDE" xlink:to="loc_us-gaap_ConstructionInProgressMember_70B75D33E9DB9CED171B7ECAB0F6F7B0" xlink:type="arc" />
    <loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_StatementBusinessSegmentsAxis" xlink:label="loc_us-gaap_StatementBusinessSegmentsAxis_BD9B573F1A78D760C8277ECAB0F7BBEB" xlink:type="locator" />
    <definitionArc order="4" xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_oesx_SummaryofSignificantAccountingPoliciesTable_1B652919056746FB24317ECAB0F6E3A9" xlink:to="loc_us-gaap_StatementBusinessSegmentsAxis_BD9B573F1A78D760C8277ECAB0F7BBEB" xlink:type="arc" />
    <loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_SegmentDomain" xlink:label="loc_us-gaap_SegmentDomain_8BCF3B2C65E0F2D15B9B7ECAB0F74941_default" xlink:type="locator" />
    <definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_StatementBusinessSegmentsAxis_BD9B573F1A78D760C8277ECAB0F7BBEB" xlink:to="loc_us-gaap_SegmentDomain_8BCF3B2C65E0F2D15B9B7ECAB0F74941_default" xlink:type="arc" />
    <loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_SegmentDomain" xlink:label="loc_us-gaap_SegmentDomain_8BCF3B2C65E0F2D15B9B7ECAB0F74941" xlink:type="locator" />
    <definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_StatementBusinessSegmentsAxis_BD9B573F1A78D760C8277ECAB0F7BBEB" xlink:to="loc_us-gaap_SegmentDomain_8BCF3B2C65E0F2D15B9B7ECAB0F74941" xlink:type="arc" />
    <loc xlink:href="oesx-20160331.xsd#oesx_U.S.MarketsMember" xlink:label="loc_oesx_U.S.MarketsMember_281FDC7EE7E76D17A1257ECAB0F70C32" xlink:type="locator" />
    <definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_SegmentDomain_8BCF3B2C65E0F2D15B9B7ECAB0F74941" xlink:to="loc_oesx_U.S.MarketsMember_281FDC7EE7E76D17A1257ECAB0F70C32" xlink:type="arc" />
    <loc xlink:href="oesx-20160331.xsd#oesx_EngineeredSystemsMember" xlink:label="loc_oesx_EngineeredSystemsMember_4D5C4FE01DB20ADDCF977ECAB0F7EDB0" xlink:type="locator" />
    <definitionArc order="2" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_SegmentDomain_8BCF3B2C65E0F2D15B9B7ECAB0F74941" xlink:to="loc_oesx_EngineeredSystemsMember_4D5C4FE01DB20ADDCF977ECAB0F7EDB0" xlink:type="arc" />
    <loc xlink:href="oesx-20160331.xsd#oesx_DistributionServicesMember" xlink:label="loc_oesx_DistributionServicesMember_B553CB44ECA3C39CEBD97ECAB0F7C7C2" xlink:type="locator" />
    <definitionArc order="3" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_SegmentDomain_8BCF3B2C65E0F2D15B9B7ECAB0F74941" xlink:to="loc_oesx_DistributionServicesMember_B553CB44ECA3C39CEBD97ECAB0F7C7C2" xlink:type="arc" />
    <loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_RangeAxis" xlink:label="loc_us-gaap_RangeAxis_5B3E3A6272C1FA25B6357ECAB0F7D1F9" xlink:type="locator" />
    <definitionArc order="5" xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_oesx_SummaryofSignificantAccountingPoliciesTable_1B652919056746FB24317ECAB0F6E3A9" xlink:to="loc_us-gaap_RangeAxis_5B3E3A6272C1FA25B6357ECAB0F7D1F9" xlink:type="arc" />
    <loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_RangeMember" xlink:label="loc_us-gaap_RangeMember_AEE61E5C6664AAC55C527ECAB0F7D559_default" xlink:type="locator" />
    <definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_RangeAxis_5B3E3A6272C1FA25B6357ECAB0F7D1F9" xlink:to="loc_us-gaap_RangeMember_AEE61E5C6664AAC55C527ECAB0F7D559_default" xlink:type="arc" />
    <loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_RangeMember" xlink:label="loc_us-gaap_RangeMember_AEE61E5C6664AAC55C527ECAB0F7D559" xlink:type="locator" />
    <definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_RangeAxis_5B3E3A6272C1FA25B6357ECAB0F7D1F9" xlink:to="loc_us-gaap_RangeMember_AEE61E5C6664AAC55C527ECAB0F7D559" xlink:type="arc" />
    <loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_MaximumMember" xlink:label="loc_us-gaap_MaximumMember_352DF074E5EE5C913CED7ECAB0F7809D" xlink:type="locator" />
    <definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_RangeMember_AEE61E5C6664AAC55C527ECAB0F7D559" xlink:to="loc_us-gaap_MaximumMember_352DF074E5EE5C913CED7ECAB0F7809D" xlink:type="arc" />
    <loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_MinimumMember" xlink:label="loc_us-gaap_MinimumMember_3D01BDFFE6FA123D2FCC7ECAB0F7EFA7" xlink:type="locator" />
    <definitionArc order="2" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_RangeMember_AEE61E5C6664AAC55C527ECAB0F7D559" xlink:to="loc_us-gaap_MinimumMember_3D01BDFFE6FA123D2FCC7ECAB0F7EFA7" xlink:type="arc" />
    <loc xlink:href="oesx-20160331.xsd#oesx_SummaryOfSignificantAccountingPoliciesTextualAbstract" xlink:label="loc_oesx_SummaryOfSignificantAccountingPoliciesTextualAbstract_9F5A8717920EE58DCB887ECAB0F718EC" xlink:type="locator" />
    <definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_oesx_SummaryofSignificantAccountingPoliciesLineItems_EB668C638C751E5498397ECAB0F70D16" xlink:to="loc_oesx_SummaryOfSignificantAccountingPoliciesTextualAbstract_9F5A8717920EE58DCB887ECAB0F718EC" xlink:type="arc" />
    <loc xlink:href="oesx-20160331.xsd#oesx_AccountsReceivablesDueMinimumPeriod" xlink:label="loc_oesx_AccountsReceivablesDueMinimumPeriod_E859BE4F8A7300F0A6CE7ECAB0F70643" xlink:type="locator" />
    <definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_oesx_SummaryOfSignificantAccountingPoliciesTextualAbstract_9F5A8717920EE58DCB887ECAB0F718EC" xlink:to="loc_oesx_AccountsReceivablesDueMinimumPeriod_E859BE4F8A7300F0A6CE7ECAB0F70643" xlink:type="arc" />
    <loc xlink:href="oesx-20160331.xsd#oesx_AccountsReceivablesDueMaximumPeriod" xlink:label="loc_oesx_AccountsReceivablesDueMaximumPeriod_C9D66E67F2985CC801027ECAB0F737BA" xlink:type="locator" />
    <definitionArc order="2" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_oesx_SummaryOfSignificantAccountingPoliciesTextualAbstract_9F5A8717920EE58DCB887ECAB0F718EC" xlink:to="loc_oesx_AccountsReceivablesDueMaximumPeriod_C9D66E67F2985CC801027ECAB0F737BA" xlink:type="arc" />
    <loc xlink:href="oesx-20160331.xsd#oesx_InventoryReserveLengthofTimeofInventoryUsageConsidered" xlink:label="loc_oesx_InventoryReserveLengthofTimeofInventoryUsageConsidered_674802D4788B679FC4B67ECAB0F7365B" xlink:type="locator" />
    <definitionArc order="3" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_oesx_SummaryOfSignificantAccountingPoliciesTextualAbstract_9F5A8717920EE58DCB887ECAB0F718EC" xlink:to="loc_oesx_InventoryReserveLengthofTimeofInventoryUsageConsidered_674802D4788B679FC4B67ECAB0F7365B" xlink:type="arc" />
    <loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_DeferredCostsCurrent" xlink:label="loc_us-gaap_DeferredCostsCurrent_A00A76192C0B2FB90CAF7ECAB0F7B273" xlink:type="locator" />
    <definitionArc order="4" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_oesx_SummaryOfSignificantAccountingPoliciesTextualAbstract_9F5A8717920EE58DCB887ECAB0F718EC" xlink:to="loc_us-gaap_DeferredCostsCurrent_A00A76192C0B2FB90CAF7ECAB0F7B273" xlink:type="arc" />
    <loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_ProceedsFromSaleOfPropertyPlantAndEquipment" xlink:label="loc_us-gaap_ProceedsFromSaleOfPropertyPlantAndEquipment_0013EFD119E8D57C67C97ECAB0F7D0BD" xlink:type="locator" />
    <definitionArc order="5" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_oesx_SummaryOfSignificantAccountingPoliciesTextualAbstract_9F5A8717920EE58DCB887ECAB0F718EC" xlink:to="loc_us-gaap_ProceedsFromSaleOfPropertyPlantAndEquipment_0013EFD119E8D57C67C97ECAB0F7D0BD" xlink:type="arc" />
    <loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_SaleLeasebackTransactionGrossProceedsInvestingActivities" xlink:label="loc_us-gaap_SaleLeasebackTransactionGrossProceedsInvestingActivities_7DBE29AB13B1DFB08A197ECAB0F768C8" xlink:type="locator" />
    <definitionArc order="6" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_oesx_SummaryOfSignificantAccountingPoliciesTextualAbstract_9F5A8717920EE58DCB887ECAB0F718EC" xlink:to="loc_us-gaap_SaleLeasebackTransactionGrossProceedsInvestingActivities_7DBE29AB13B1DFB08A197ECAB0F768C8" xlink:type="arc" />
    <loc xlink:href="oesx-20160331.xsd#oesx_SaleLeasebackTransactionAreaofLeasedProperty" xlink:label="loc_oesx_SaleLeasebackTransactionAreaofLeasedProperty_777D9B5FA2A17027AF0F7ECAB0F844E1" xlink:type="locator" />
    <definitionArc order="7" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_oesx_SummaryOfSignificantAccountingPoliciesTextualAbstract_9F5A8717920EE58DCB887ECAB0F718EC" xlink:to="loc_oesx_SaleLeasebackTransactionAreaofLeasedProperty_777D9B5FA2A17027AF0F7ECAB0F844E1" xlink:type="arc" />
    <loc xlink:href="oesx-20160331.xsd#oesx_SaleLeasebackTransactionLeaseTerm" xlink:label="loc_oesx_SaleLeasebackTransactionLeaseTerm_05C642FFF6F3C86854997ECAB0F83DD2" xlink:type="locator" />
    <definitionArc order="8" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_oesx_SummaryOfSignificantAccountingPoliciesTextualAbstract_9F5A8717920EE58DCB887ECAB0F718EC" xlink:to="loc_oesx_SaleLeasebackTransactionLeaseTerm_05C642FFF6F3C86854997ECAB0F83DD2" xlink:type="arc" />
    <loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_ImpairmentOfRealEstate" xlink:label="loc_us-gaap_ImpairmentOfRealEstate_82AC0F74E17104C162AE7ECAB0F8E49F" xlink:type="locator" />
    <definitionArc order="9" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_oesx_SummaryOfSignificantAccountingPoliciesTextualAbstract_9F5A8717920EE58DCB887ECAB0F718EC" xlink:to="loc_us-gaap_ImpairmentOfRealEstate_82AC0F74E17104C162AE7ECAB0F8E49F" xlink:type="arc" />
    <loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_NumberOfReportableSegments" xlink:label="loc_us-gaap_NumberOfReportableSegments_4593FE6AA854B7ED074E7ECAB0F87CE2" xlink:type="locator" />
    <definitionArc order="10" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_oesx_SummaryOfSignificantAccountingPoliciesTextualAbstract_9F5A8717920EE58DCB887ECAB0F718EC" xlink:to="loc_us-gaap_NumberOfReportableSegments_4593FE6AA854B7ED074E7ECAB0F87CE2" xlink:type="arc" />
    <loc xlink:href="oesx-20160331.xsd#oesx_PropertyPlantandEquipmentImpairmentExpense" xlink:label="loc_oesx_PropertyPlantandEquipmentImpairmentExpense_3899E9EA72CFA8E29EEC7ECAB0F8A0DB" xlink:type="locator" />
    <definitionArc order="11" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_oesx_SummaryOfSignificantAccountingPoliciesTextualAbstract_9F5A8717920EE58DCB887ECAB0F718EC" xlink:to="loc_oesx_PropertyPlantandEquipmentImpairmentExpense_3899E9EA72CFA8E29EEC7ECAB0F8A0DB" xlink:type="arc" />
    <loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_Depreciation" xlink:label="loc_us-gaap_Depreciation_78CF872C580C8B3EE3457ECAB0F842D1" xlink:type="locator" />
    <definitionArc order="12" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_oesx_SummaryOfSignificantAccountingPoliciesTextualAbstract_9F5A8717920EE58DCB887ECAB0F718EC" xlink:to="loc_us-gaap_Depreciation_78CF872C580C8B3EE3457ECAB0F842D1" xlink:type="arc" />
    <loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_InterestCostsCapitalized" xlink:label="loc_us-gaap_InterestCostsCapitalized_5407EDE9F7C52FA293A77ECAB0F8ECAC" xlink:type="locator" />
    <definitionArc order="13" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_oesx_SummaryOfSignificantAccountingPoliciesTextualAbstract_9F5A8717920EE58DCB887ECAB0F718EC" xlink:to="loc_us-gaap_InterestCostsCapitalized_5407EDE9F7C52FA293A77ECAB0F8ECAC" xlink:type="arc" />
    <loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_Goodwill" xlink:label="loc_us-gaap_Goodwill_99A71AF97481802A61A17ECAB0F80405" xlink:type="locator" />
    <definitionArc order="14" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_oesx_SummaryOfSignificantAccountingPoliciesTextualAbstract_9F5A8717920EE58DCB887ECAB0F718EC" xlink:to="loc_us-gaap_Goodwill_99A71AF97481802A61A17ECAB0F80405" xlink:type="arc" />
    <loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_GoodwillImpairmentLoss" xlink:label="loc_us-gaap_GoodwillImpairmentLoss_AAEF27F2ADE956E993F87ECAB0F86AF0" xlink:type="locator" />
    <definitionArc order="15" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_oesx_SummaryOfSignificantAccountingPoliciesTextualAbstract_9F5A8717920EE58DCB887ECAB0F718EC" xlink:to="loc_us-gaap_GoodwillImpairmentLoss_AAEF27F2ADE956E993F87ECAB0F86AF0" xlink:type="arc" />
    <loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_ImpairmentOfIntangibleAssetsExcludingGoodwill" xlink:label="loc_us-gaap_ImpairmentOfIntangibleAssetsExcludingGoodwill_D36BB1ED3D1CFAFB3E177ECAB0F8CB05" xlink:type="locator" />
    <definitionArc order="16" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_oesx_SummaryOfSignificantAccountingPoliciesTextualAbstract_9F5A8717920EE58DCB887ECAB0F718EC" xlink:to="loc_us-gaap_ImpairmentOfIntangibleAssetsExcludingGoodwill_D36BB1ED3D1CFAFB3E177ECAB0F8CB05" xlink:type="arc" />
    <loc xlink:href="oesx-20160331.xsd#oesx_DeferredFinancingCostsAmortizedOverUsefulLifeOfDebtIssueMinimum" xlink:label="loc_oesx_DeferredFinancingCostsAmortizedOverUsefulLifeOfDebtIssueMinimum_B41103D1D9FE8A3701157ECAB0F816B7" xlink:type="locator" />
    <definitionArc order="17" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_oesx_SummaryOfSignificantAccountingPoliciesTextualAbstract_9F5A8717920EE58DCB887ECAB0F718EC" xlink:to="loc_oesx_DeferredFinancingCostsAmortizedOverUsefulLifeOfDebtIssueMinimum_B41103D1D9FE8A3701157ECAB0F816B7" xlink:type="arc" />
    <loc xlink:href="oesx-20160331.xsd#oesx_DeferredFinancingCostsAmortizedOverUsefulLifeOfDebtIssueMaximum" xlink:label="loc_oesx_DeferredFinancingCostsAmortizedOverUsefulLifeOfDebtIssueMaximum_33AF761D9F9FAD892EF17ECAB0F848EC" xlink:type="locator" />
    <definitionArc order="18" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_oesx_SummaryOfSignificantAccountingPoliciesTextualAbstract_9F5A8717920EE58DCB887ECAB0F718EC" xlink:to="loc_oesx_DeferredFinancingCostsAmortizedOverUsefulLifeOfDebtIssueMaximum_33AF761D9F9FAD892EF17ECAB0F848EC" xlink:type="arc" />
    <loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_AmortizationOfFinancingCosts" xlink:label="loc_us-gaap_AmortizationOfFinancingCosts_34781D00145CB239E0B77ECAB0F88B93" xlink:type="locator" />
    <definitionArc order="19" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_oesx_SummaryOfSignificantAccountingPoliciesTextualAbstract_9F5A8717920EE58DCB887ECAB0F718EC" xlink:to="loc_us-gaap_AmortizationOfFinancingCosts_34781D00145CB239E0B77ECAB0F88B93" xlink:type="arc" />
    <loc xlink:href="oesx-20160331.xsd#oesx_LimitedProductWarrantyTerm" xlink:label="loc_oesx_LimitedProductWarrantyTerm_DF8535D875BE4797A6827ECAB0F8B93F" xlink:type="locator" />
    <definitionArc order="20" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_oesx_SummaryOfSignificantAccountingPoliciesTextualAbstract_9F5A8717920EE58DCB887ECAB0F718EC" xlink:to="loc_oesx_LimitedProductWarrantyTerm_DF8535D875BE4797A6827ECAB0F8B93F" xlink:type="arc" />
    <loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_ProductWarrantyAccrual" xlink:label="loc_us-gaap_ProductWarrantyAccrual_3986070840E5109E978B7ECAB0F8D307" xlink:type="locator" />
    <definitionArc order="21" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_oesx_SummaryOfSignificantAccountingPoliciesTextualAbstract_9F5A8717920EE58DCB887ECAB0F718EC" xlink:to="loc_us-gaap_ProductWarrantyAccrual_3986070840E5109E978B7ECAB0F8D307" xlink:type="arc" />
    <loc xlink:href="oesx-20160331.xsd#oesx_SolarPowerSystemsCompletionPeriodMinimum" xlink:label="loc_oesx_SolarPowerSystemsCompletionPeriodMinimum_B3D9956C57C88B4D2B4C7ECAB0F85050" xlink:type="locator" />
    <definitionArc order="22" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_oesx_SummaryOfSignificantAccountingPoliciesTextualAbstract_9F5A8717920EE58DCB887ECAB0F718EC" xlink:to="loc_oesx_SolarPowerSystemsCompletionPeriodMinimum_B3D9956C57C88B4D2B4C7ECAB0F85050" xlink:type="arc" />
    <loc xlink:href="oesx-20160331.xsd#oesx_SolarPowerSystemsCompletionPeriodMaximum" xlink:label="loc_oesx_SolarPowerSystemsCompletionPeriodMaximum_5F119AE63D05486D333E7ECAB0F8A4B2" xlink:type="locator" />
    <definitionArc order="23" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_oesx_SummaryOfSignificantAccountingPoliciesTextualAbstract_9F5A8717920EE58DCB887ECAB0F718EC" xlink:to="loc_oesx_SolarPowerSystemsCompletionPeriodMaximum_5F119AE63D05486D333E7ECAB0F8A4B2" xlink:type="arc" />
    <loc xlink:href="oesx-20160331.xsd#oesx_PowerPurchaseAgreementProductRevenueRecognizableTerm" xlink:label="loc_oesx_PowerPurchaseAgreementProductRevenueRecognizableTerm_49F726D90CA0C2CBF2777ECAB0F9D6E8" xlink:type="locator" />
    <definitionArc order="24" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_oesx_SummaryOfSignificantAccountingPoliciesTextualAbstract_9F5A8717920EE58DCB887ECAB0F718EC" xlink:to="loc_oesx_PowerPurchaseAgreementProductRevenueRecognizableTerm_49F726D90CA0C2CBF2777ECAB0F9D6E8" xlink:type="arc" />
    <loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_AdvertisingExpense" xlink:label="loc_us-gaap_AdvertisingExpense_AD9D8E4BB1030F09AD607ECAB0F997D1" xlink:type="locator" />
    <definitionArc order="25" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_oesx_SummaryOfSignificantAccountingPoliciesTextualAbstract_9F5A8717920EE58DCB887ECAB0F718EC" xlink:to="loc_us-gaap_AdvertisingExpense_AD9D8E4BB1030F09AD607ECAB0F997D1" xlink:type="arc" />
    <loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_IncomeTaxReconciliationChangeInDeferredTaxAssetsValuationAllowance" xlink:label="loc_us-gaap_IncomeTaxReconciliationChangeInDeferredTaxAssetsValuationAllowance_7061481A77CE6992B7737ECAB0F9A38F" xlink:type="locator" />
    <definitionArc order="26" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_oesx_SummaryOfSignificantAccountingPoliciesTextualAbstract_9F5A8717920EE58DCB887ECAB0F718EC" xlink:to="loc_us-gaap_IncomeTaxReconciliationChangeInDeferredTaxAssetsValuationAllowance_7061481A77CE6992B7737ECAB0F9A38F" xlink:type="arc" />
    <loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_ExcessTaxBenefitFromShareBasedCompensationFinancingActivities" xlink:label="loc_us-gaap_ExcessTaxBenefitFromShareBasedCompensationFinancingActivities_608ACFAE2B97042BA8E47ECAB0F9A203" xlink:type="locator" />
    <definitionArc order="27" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_oesx_SummaryOfSignificantAccountingPoliciesTextualAbstract_9F5A8717920EE58DCB887ECAB0F718EC" xlink:to="loc_us-gaap_ExcessTaxBenefitFromShareBasedCompensationFinancingActivities_608ACFAE2B97042BA8E47ECAB0F9A203" xlink:type="arc" />
  </definitionLink>
  <definitionLink xlink:role="http://www.oesx.com/role/SummaryOfSignificantAccountingPoliciesOtherLongTermAssetsDetails" xlink:type="extended" />
  <definitionLink xlink:role="http://www.oesx.com/role/SummaryOfSignificantAccountingPoliciesPolicies" xlink:type="extended" />
  <definitionLink xlink:role="http://www.oesx.com/role/SummaryOfSignificantAccountingPoliciesPpeUsefulLivesDetails" xlink:type="extended">
    <loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_PropertyPlantAndEquipmentLineItems" xlink:label="loc_us-gaap_PropertyPlantAndEquipmentLineItems_044850512551F695FE9773840992BF84" xlink:type="locator" />
    <loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_ScheduleOfPropertyPlantAndEquipmentTable" xlink:label="loc_us-gaap_ScheduleOfPropertyPlantAndEquipmentTable_B61C5EEAD9248796E7657384099129AB" xlink:type="locator" />
    <definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/all" xlink:from="loc_us-gaap_PropertyPlantAndEquipmentLineItems_044850512551F695FE9773840992BF84" xlink:to="loc_us-gaap_ScheduleOfPropertyPlantAndEquipmentTable_B61C5EEAD9248796E7657384099129AB" xlink:type="arc" xbrldt:closed="true" xbrldt:contextElement="segment" />
    <loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_PropertyPlantAndEquipmentByTypeAxis" xlink:label="loc_us-gaap_PropertyPlantAndEquipmentByTypeAxis_78E1FDF6BD28405C416A738409913435" xlink:type="locator" />
    <definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_ScheduleOfPropertyPlantAndEquipmentTable_B61C5EEAD9248796E7657384099129AB" xlink:to="loc_us-gaap_PropertyPlantAndEquipmentByTypeAxis_78E1FDF6BD28405C416A738409913435" xlink:type="arc" />
    <loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_PropertyPlantAndEquipmentTypeDomain" xlink:label="loc_us-gaap_PropertyPlantAndEquipmentTypeDomain_7E5F08E37F2E1419490873840991EC2A_default" xlink:type="locator" />
    <definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_PropertyPlantAndEquipmentByTypeAxis_78E1FDF6BD28405C416A738409913435" xlink:to="loc_us-gaap_PropertyPlantAndEquipmentTypeDomain_7E5F08E37F2E1419490873840991EC2A_default" xlink:type="arc" />
    <loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_PropertyPlantAndEquipmentTypeDomain" xlink:label="loc_us-gaap_PropertyPlantAndEquipmentTypeDomain_7E5F08E37F2E1419490873840991EC2A" xlink:type="locator" />
    <definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_PropertyPlantAndEquipmentByTypeAxis_78E1FDF6BD28405C416A738409913435" xlink:to="loc_us-gaap_PropertyPlantAndEquipmentTypeDomain_7E5F08E37F2E1419490873840991EC2A" xlink:type="arc" />
    <loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_LandImprovementsMember" xlink:label="loc_us-gaap_LandImprovementsMember_D99A043982463335510F73840991ECC6" xlink:type="locator" />
    <definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_PropertyPlantAndEquipmentTypeDomain_7E5F08E37F2E1419490873840991EC2A" xlink:to="loc_us-gaap_LandImprovementsMember_D99A043982463335510F73840991ECC6" xlink:type="arc" />
    <loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_BuildingAndBuildingImprovementsMember" xlink:label="loc_us-gaap_BuildingAndBuildingImprovementsMember_D2E12C00255906B542FB738409910352" xlink:type="locator" />
    <definitionArc order="2" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_PropertyPlantAndEquipmentTypeDomain_7E5F08E37F2E1419490873840991EC2A" xlink:to="loc_us-gaap_BuildingAndBuildingImprovementsMember_D2E12C00255906B542FB738409910352" xlink:type="arc" />
    <loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_FurnitureAndFixturesMember" xlink:label="loc_us-gaap_FurnitureAndFixturesMember_FD9F3F7FB2396697532B73840991AD87" xlink:type="locator" />
    <definitionArc order="3" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_PropertyPlantAndEquipmentTypeDomain_7E5F08E37F2E1419490873840991EC2A" xlink:to="loc_us-gaap_FurnitureAndFixturesMember_FD9F3F7FB2396697532B73840991AD87" xlink:type="arc" />
    <loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_EquipmentLeasedToOtherPartyMember" xlink:label="loc_us-gaap_EquipmentLeasedToOtherPartyMember_A52FD919F1F34099FC167384099195D2" xlink:type="locator" />
    <definitionArc order="4" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_PropertyPlantAndEquipmentTypeDomain_7E5F08E37F2E1419490873840991EC2A" xlink:to="loc_us-gaap_EquipmentLeasedToOtherPartyMember_A52FD919F1F34099FC167384099195D2" xlink:type="arc" />
    <loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_EquipmentMember" xlink:label="loc_us-gaap_EquipmentMember_2746ECC1D843700EFC3E73840992510A" xlink:type="locator" />
    <definitionArc order="5" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_PropertyPlantAndEquipmentTypeDomain_7E5F08E37F2E1419490873840991EC2A" xlink:to="loc_us-gaap_EquipmentMember_2746ECC1D843700EFC3E73840992510A" xlink:type="arc" />
    <loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_RangeAxis" xlink:label="loc_us-gaap_RangeAxis_E5D27376F49DAB462F667384099290A5" xlink:type="locator" />
    <definitionArc order="2" xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_ScheduleOfPropertyPlantAndEquipmentTable_B61C5EEAD9248796E7657384099129AB" xlink:to="loc_us-gaap_RangeAxis_E5D27376F49DAB462F667384099290A5" xlink:type="arc" />
    <loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_RangeMember" xlink:label="loc_us-gaap_RangeMember_B387E99E319873120B5B73840992BF4A_default" xlink:type="locator" />
    <definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_RangeAxis_E5D27376F49DAB462F667384099290A5" xlink:to="loc_us-gaap_RangeMember_B387E99E319873120B5B73840992BF4A_default" xlink:type="arc" />
    <loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_RangeMember" xlink:label="loc_us-gaap_RangeMember_B387E99E319873120B5B73840992BF4A" xlink:type="locator" />
    <definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_RangeAxis_E5D27376F49DAB462F667384099290A5" xlink:to="loc_us-gaap_RangeMember_B387E99E319873120B5B73840992BF4A" xlink:type="arc" />
    <loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_MinimumMember" xlink:label="loc_us-gaap_MinimumMember_75A96F14210EED6C2C4D7384099239B2" xlink:type="locator" />
    <definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_RangeMember_B387E99E319873120B5B73840992BF4A" xlink:to="loc_us-gaap_MinimumMember_75A96F14210EED6C2C4D7384099239B2" xlink:type="arc" />
    <loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_MaximumMember" xlink:label="loc_us-gaap_MaximumMember_0CF8701A161EF647DB0573840992BD04" xlink:type="locator" />
    <definitionArc order="2" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_RangeMember_B387E99E319873120B5B73840992BF4A" xlink:to="loc_us-gaap_MaximumMember_0CF8701A161EF647DB0573840992BD04" xlink:type="arc" />
    <loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_PropertyPlantAndEquipmentNetAbstract" xlink:label="loc_us-gaap_PropertyPlantAndEquipmentNetAbstract_07432EB855B76FDACE82738409936928" xlink:type="locator" />
    <definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_PropertyPlantAndEquipmentLineItems_044850512551F695FE9773840992BF84" xlink:to="loc_us-gaap_PropertyPlantAndEquipmentNetAbstract_07432EB855B76FDACE82738409936928" xlink:type="arc" />
    <loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_PropertyPlantAndEquipmentUsefulLife" xlink:label="loc_us-gaap_PropertyPlantAndEquipmentUsefulLife_F4525D0601194871286C73840993B020" xlink:type="locator" />
    <definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_PropertyPlantAndEquipmentNetAbstract_07432EB855B76FDACE82738409936928" xlink:to="loc_us-gaap_PropertyPlantAndEquipmentUsefulLife_F4525D0601194871286C73840993B020" xlink:type="arc" />
  </definitionLink>
  <definitionLink xlink:role="http://www.oesx.com/role/SummaryOfSignificantAccountingPoliciesPrepaidExpensesAndOtherCurrentAssetsDetails" xlink:type="extended" />
  <definitionLink xlink:role="http://www.oesx.com/role/SummaryOfSignificantAccountingPoliciesPropPlantAndEquipDetails" xlink:type="extended">
    <loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_PropertyPlantAndEquipmentLineItems" xlink:label="loc_us-gaap_PropertyPlantAndEquipmentLineItems_0411799CA1C18C3598B87320BCF5CA64" xlink:type="locator" />
    <loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_ScheduleOfPropertyPlantAndEquipmentTable" xlink:label="loc_us-gaap_ScheduleOfPropertyPlantAndEquipmentTable_AEE99B9A8870D72883237320BCF461C7" xlink:type="locator" />
    <definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/all" xlink:from="loc_us-gaap_PropertyPlantAndEquipmentLineItems_0411799CA1C18C3598B87320BCF5CA64" xlink:to="loc_us-gaap_ScheduleOfPropertyPlantAndEquipmentTable_AEE99B9A8870D72883237320BCF461C7" xlink:type="arc" xbrldt:closed="true" xbrldt:contextElement="segment" />
    <loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_PropertyPlantAndEquipmentByTypeAxis" xlink:label="loc_us-gaap_PropertyPlantAndEquipmentByTypeAxis_BE8D0CA5BCAE0426B37F7320BCF484EE" xlink:type="locator" />
    <definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_ScheduleOfPropertyPlantAndEquipmentTable_AEE99B9A8870D72883237320BCF461C7" xlink:to="loc_us-gaap_PropertyPlantAndEquipmentByTypeAxis_BE8D0CA5BCAE0426B37F7320BCF484EE" xlink:type="arc" />
    <loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_PropertyPlantAndEquipmentTypeDomain" xlink:label="loc_us-gaap_PropertyPlantAndEquipmentTypeDomain_B546DC2B2AB07C7B7F227320BCF40E18_default" xlink:type="locator" />
    <definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_PropertyPlantAndEquipmentByTypeAxis_BE8D0CA5BCAE0426B37F7320BCF484EE" xlink:to="loc_us-gaap_PropertyPlantAndEquipmentTypeDomain_B546DC2B2AB07C7B7F227320BCF40E18_default" xlink:type="arc" />
    <loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_PropertyPlantAndEquipmentTypeDomain" xlink:label="loc_us-gaap_PropertyPlantAndEquipmentTypeDomain_B546DC2B2AB07C7B7F227320BCF40E18" xlink:type="locator" />
    <definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_PropertyPlantAndEquipmentByTypeAxis_BE8D0CA5BCAE0426B37F7320BCF484EE" xlink:to="loc_us-gaap_PropertyPlantAndEquipmentTypeDomain_B546DC2B2AB07C7B7F227320BCF40E18" xlink:type="arc" />
    <loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_LandImprovementsMember" xlink:label="loc_us-gaap_LandImprovementsMember_D25C9A815E82009274F77320BCF4D908" xlink:type="locator" />
    <definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_PropertyPlantAndEquipmentTypeDomain_B546DC2B2AB07C7B7F227320BCF40E18" xlink:to="loc_us-gaap_LandImprovementsMember_D25C9A815E82009274F77320BCF4D908" xlink:type="arc" />
    <loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_BuildingAndBuildingImprovementsMember" xlink:label="loc_us-gaap_BuildingAndBuildingImprovementsMember_FECDCDDB3C5A15DD42667320BCF40C3C" xlink:type="locator" />
    <definitionArc order="2" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_PropertyPlantAndEquipmentTypeDomain_B546DC2B2AB07C7B7F227320BCF40E18" xlink:to="loc_us-gaap_BuildingAndBuildingImprovementsMember_FECDCDDB3C5A15DD42667320BCF40C3C" xlink:type="arc" />
    <loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_FurnitureAndFixturesMember" xlink:label="loc_us-gaap_FurnitureAndFixturesMember_246184358291D16ED8AE7320BCF40254" xlink:type="locator" />
    <definitionArc order="3" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_PropertyPlantAndEquipmentTypeDomain_B546DC2B2AB07C7B7F227320BCF40E18" xlink:to="loc_us-gaap_FurnitureAndFixturesMember_246184358291D16ED8AE7320BCF40254" xlink:type="arc" />
    <loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_LeaseholdImprovementsMember" xlink:label="loc_us-gaap_LeaseholdImprovementsMember_8C2597FB41D170BF19087320BCF42245" xlink:type="locator" />
    <definitionArc order="4" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_PropertyPlantAndEquipmentTypeDomain_B546DC2B2AB07C7B7F227320BCF40E18" xlink:to="loc_us-gaap_LeaseholdImprovementsMember_8C2597FB41D170BF19087320BCF42245" xlink:type="arc" />
    <loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_EquipmentLeasedToOtherPartyMember" xlink:label="loc_us-gaap_EquipmentLeasedToOtherPartyMember_BDE44F8AC06936A4C95A7320BCF47C28" xlink:type="locator" />
    <definitionArc order="5" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_PropertyPlantAndEquipmentTypeDomain_B546DC2B2AB07C7B7F227320BCF40E18" xlink:to="loc_us-gaap_EquipmentLeasedToOtherPartyMember_BDE44F8AC06936A4C95A7320BCF47C28" xlink:type="arc" />
    <loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_PropertyPlantAndEquipmentOtherTypesMember" xlink:label="loc_us-gaap_PropertyPlantAndEquipmentOtherTypesMember_77C3B1B0BD2393FEFD8E7320BCF44C98" xlink:type="locator" />
    <definitionArc order="6" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_PropertyPlantAndEquipmentTypeDomain_B546DC2B2AB07C7B7F227320BCF40E18" xlink:to="loc_us-gaap_PropertyPlantAndEquipmentOtherTypesMember_77C3B1B0BD2393FEFD8E7320BCF44C98" xlink:type="arc" />
    <loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_ConstructionInProgressMember" xlink:label="loc_us-gaap_ConstructionInProgressMember_02159A573C053D2787BF7320BCF4DB94" xlink:type="locator" />
    <definitionArc order="7" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_PropertyPlantAndEquipmentTypeDomain_B546DC2B2AB07C7B7F227320BCF40E18" xlink:to="loc_us-gaap_ConstructionInProgressMember_02159A573C053D2787BF7320BCF4DB94" xlink:type="arc" />
    <loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_PropertyPlantAndEquipmentNetAbstract" xlink:label="loc_us-gaap_PropertyPlantAndEquipmentNetAbstract_9C485D6186991E5421757320BCF5CA27" xlink:type="locator" />
    <definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_PropertyPlantAndEquipmentLineItems_0411799CA1C18C3598B87320BCF5CA64" xlink:to="loc_us-gaap_PropertyPlantAndEquipmentNetAbstract_9C485D6186991E5421757320BCF5CA27" xlink:type="arc" />
    <loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_PropertyPlantAndEquipmentGross" xlink:label="loc_us-gaap_PropertyPlantAndEquipmentGross_087B9564E0D11A9095F27320BCF5651B" xlink:type="locator" />
    <definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_PropertyPlantAndEquipmentNetAbstract_9C485D6186991E5421757320BCF5CA27" xlink:to="loc_us-gaap_PropertyPlantAndEquipmentGross_087B9564E0D11A9095F27320BCF5651B" xlink:type="arc" />
    <loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_AccumulatedDepreciationDepletionAndAmortizationPropertyPlantAndEquipment" xlink:label="loc_us-gaap_AccumulatedDepreciationDepletionAndAmortizationPropertyPlantAndEquipment_AC64B02D34EF284403827320BCF54270" xlink:type="locator" />
    <definitionArc order="2" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_PropertyPlantAndEquipmentNetAbstract_9C485D6186991E5421757320BCF5CA27" xlink:to="loc_us-gaap_AccumulatedDepreciationDepletionAndAmortizationPropertyPlantAndEquipment_AC64B02D34EF284403827320BCF54270" xlink:type="arc" />
    <loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_PropertyPlantAndEquipmentNet" xlink:label="loc_us-gaap_PropertyPlantAndEquipmentNet_D950BF4FDCDD2FF723A27320BCF5355E" xlink:type="locator" />
    <definitionArc order="3" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_PropertyPlantAndEquipmentNetAbstract_9C485D6186991E5421757320BCF5CA27" xlink:to="loc_us-gaap_PropertyPlantAndEquipmentNet_D950BF4FDCDD2FF723A27320BCF5355E" xlink:type="arc" />
  </definitionLink>
  <definitionLink xlink:role="http://www.oesx.com/role/SummaryOfSignificantAccountingPoliciesStockOptionAssumptionsDetails" xlink:type="extended" />
  <definitionLink xlink:role="http://www.oesx.com/role/SummaryOfSignificantAccountingPoliciesTables" xlink:type="extended" />
  <definitionLink xlink:role="http://www.oesx.com/role/SummaryOfSignificantAccountingPoliciesWarrantyAccrualDetails" xlink:type="extended" />
</linkbase>





