

<!--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/CommitmentsAndContingencies" xlink:href="oesx-20160630.xsd#CommitmentsAndContingencies" xlink:type="simple" />
  <roleRef roleURI="http://www.oesx.com/role/CommitmentsAndContingenciesDetails" xlink:href="oesx-20160630.xsd#CommitmentsAndContingenciesDetails" xlink:type="simple" />
  <roleRef roleURI="http://www.oesx.com/role/DescriptionOfBusiness" xlink:href="oesx-20160630.xsd#DescriptionOfBusiness" xlink:type="simple" />
  <roleRef roleURI="http://www.oesx.com/role/DocumentAndEntityInformation" xlink:href="oesx-20160630.xsd#DocumentAndEntityInformation" xlink:type="simple" />
  <roleRef roleURI="http://www.oesx.com/role/IncomeTaxes" xlink:href="oesx-20160630.xsd#IncomeTaxes" xlink:type="simple" />
  <roleRef roleURI="http://www.oesx.com/role/IncomeTaxesNarrativeDetails" xlink:href="oesx-20160630.xsd#IncomeTaxesNarrativeDetails" xlink:type="simple" />
  <roleRef roleURI="http://www.oesx.com/role/LongTermDebt" xlink:href="oesx-20160630.xsd#LongTermDebt" xlink:type="simple" />
  <roleRef roleURI="http://www.oesx.com/role/LongTermDebtDetails" xlink:href="oesx-20160630.xsd#LongTermDebtDetails" xlink:type="simple" />
  <roleRef roleURI="http://www.oesx.com/role/LongTermDebtNarrativeDetails" xlink:href="oesx-20160630.xsd#LongTermDebtNarrativeDetails" xlink:type="simple" />
  <roleRef roleURI="http://www.oesx.com/role/LongTermDebtTables" xlink:href="oesx-20160630.xsd#LongTermDebtTables" xlink:type="simple" />
  <roleRef roleURI="http://www.oesx.com/role/RelatedPartyTransactions" xlink:href="oesx-20160630.xsd#RelatedPartyTransactions" xlink:type="simple" />
  <roleRef roleURI="http://www.oesx.com/role/RelatedPartyTransactionsDetails" xlink:href="oesx-20160630.xsd#RelatedPartyTransactionsDetails" xlink:type="simple" />
  <roleRef roleURI="http://www.oesx.com/role/Segments" xlink:href="oesx-20160630.xsd#Segments" xlink:type="simple" />
  <roleRef roleURI="http://www.oesx.com/role/SegmentsRevenuesAndOperatingIncomeLossDetails" xlink:href="oesx-20160630.xsd#SegmentsRevenuesAndOperatingIncomeLossDetails" xlink:type="simple" />
  <roleRef roleURI="http://www.oesx.com/role/SegmentsTables" xlink:href="oesx-20160630.xsd#SegmentsTables" xlink:type="simple" />
  <roleRef roleURI="http://www.oesx.com/role/ShareholdersEquity" xlink:href="oesx-20160630.xsd#ShareholdersEquity" xlink:type="simple" />
  <roleRef roleURI="http://www.oesx.com/role/ShareholdersEquitySharesIssuedFromTreasuryDetails" xlink:href="oesx-20160630.xsd#ShareholdersEquitySharesIssuedFromTreasuryDetails" xlink:type="simple" />
  <roleRef roleURI="http://www.oesx.com/role/ShareholdersEquityTables" xlink:href="oesx-20160630.xsd#ShareholdersEquityTables" xlink:type="simple" />
  <roleRef roleURI="http://www.oesx.com/role/StockOptionsAndRestrictedShares" xlink:href="oesx-20160630.xsd#StockOptionsAndRestrictedShares" xlink:type="simple" />
  <roleRef roleURI="http://www.oesx.com/role/StockOptionsAndRestrictedSharesNarrativeDetails" xlink:href="oesx-20160630.xsd#StockOptionsAndRestrictedSharesNarrativeDetails" xlink:type="simple" />
  <roleRef roleURI="http://www.oesx.com/role/StockOptionsAndRestrictedSharesOutstandingNonVestedStockOptionsDetails" xlink:href="oesx-20160630.xsd#StockOptionsAndRestrictedSharesOutstandingNonVestedStockOptionsDetails" xlink:type="simple" />
  <roleRef roleURI="http://www.oesx.com/role/StockOptionsAndRestrictedSharesRestrictedSharesDetails" xlink:href="oesx-20160630.xsd#StockOptionsAndRestrictedSharesRestrictedSharesDetails" xlink:type="simple" />
  <roleRef roleURI="http://www.oesx.com/role/StockOptionsAndRestrictedSharesStockBasedCompensationDetails" xlink:href="oesx-20160630.xsd#StockOptionsAndRestrictedSharesStockBasedCompensationDetails" xlink:type="simple" />
  <roleRef roleURI="http://www.oesx.com/role/StockOptionsAndRestrictedSharesSummaryOfStockOptionAndStockIncentiveAwardPlansDetails" xlink:href="oesx-20160630.xsd#StockOptionsAndRestrictedSharesSummaryOfStockOptionAndStockIncentiveAwardPlansDetails" xlink:type="simple" />
  <roleRef roleURI="http://www.oesx.com/role/StockOptionsAndRestrictedSharesTables" xlink:href="oesx-20160630.xsd#StockOptionsAndRestrictedSharesTables" xlink:type="simple" />
  <roleRef roleURI="http://www.oesx.com/role/SubsequentEvents" xlink:href="oesx-20160630.xsd#SubsequentEvents" xlink:type="simple" />
  <roleRef roleURI="http://www.oesx.com/role/SummaryOfSignificantAccountingPolicies" xlink:href="oesx-20160630.xsd#SummaryOfSignificantAccountingPolicies" xlink:type="simple" />
  <roleRef roleURI="http://www.oesx.com/role/SummaryOfSignificantAccountingPoliciesAccountsReceivableDetails" xlink:href="oesx-20160630.xsd#SummaryOfSignificantAccountingPoliciesAccountsReceivableDetails" xlink:type="simple" />
  <roleRef roleURI="http://www.oesx.com/role/SummaryOfSignificantAccountingPoliciesAccruedExpensesAndOtherDetails" xlink:href="oesx-20160630.xsd#SummaryOfSignificantAccountingPoliciesAccruedExpensesAndOtherDetails" xlink:type="simple" />
  <roleRef roleURI="http://www.oesx.com/role/SummaryOfSignificantAccountingPoliciesConcentrationRiskDetails" xlink:href="oesx-20160630.xsd#SummaryOfSignificantAccountingPoliciesConcentrationRiskDetails" xlink:type="simple" />
  <roleRef roleURI="http://www.oesx.com/role/SummaryOfSignificantAccountingPoliciesDilutiveSecuritiesDetails" xlink:href="oesx-20160630.xsd#SummaryOfSignificantAccountingPoliciesDilutiveSecuritiesDetails" xlink:type="simple" />
  <roleRef roleURI="http://www.oesx.com/role/SummaryOfSignificantAccountingPoliciesEpsDetails" xlink:href="oesx-20160630.xsd#SummaryOfSignificantAccountingPoliciesEpsDetails" xlink:type="simple" />
  <roleRef roleURI="http://www.oesx.com/role/SummaryOfSignificantAccountingPoliciesEquipmentUnderCapitalLeasesDetails" xlink:href="oesx-20160630.xsd#SummaryOfSignificantAccountingPoliciesEquipmentUnderCapitalLeasesDetails" xlink:type="simple" />
  <roleRef roleURI="http://www.oesx.com/role/SummaryOfSignificantAccountingPoliciesFinancingReceivablesDetails" xlink:href="oesx-20160630.xsd#SummaryOfSignificantAccountingPoliciesFinancingReceivablesDetails" xlink:type="simple" />
  <roleRef roleURI="http://www.oesx.com/role/SummaryOfSignificantAccountingPoliciesInventoriesDetails" xlink:href="oesx-20160630.xsd#SummaryOfSignificantAccountingPoliciesInventoriesDetails" xlink:type="simple" />
  <roleRef roleURI="http://www.oesx.com/role/SummaryOfSignificantAccountingPoliciesNarrativeDetails" xlink:href="oesx-20160630.xsd#SummaryOfSignificantAccountingPoliciesNarrativeDetails" xlink:type="simple" />
  <roleRef roleURI="http://www.oesx.com/role/SummaryOfSignificantAccountingPoliciesOtherIntangibleAssetsDetails" xlink:href="oesx-20160630.xsd#SummaryOfSignificantAccountingPoliciesOtherIntangibleAssetsDetails" xlink:type="simple" />
  <roleRef roleURI="http://www.oesx.com/role/SummaryOfSignificantAccountingPoliciesOtherLongTermAssetsDetails" xlink:href="oesx-20160630.xsd#SummaryOfSignificantAccountingPoliciesOtherLongTermAssetsDetails" xlink:type="simple" />
  <roleRef roleURI="http://www.oesx.com/role/SummaryOfSignificantAccountingPoliciesPolicies" xlink:href="oesx-20160630.xsd#SummaryOfSignificantAccountingPoliciesPolicies" xlink:type="simple" />
  <roleRef roleURI="http://www.oesx.com/role/SummaryOfSignificantAccountingPoliciesPpeUsefulLivesDetails" xlink:href="oesx-20160630.xsd#SummaryOfSignificantAccountingPoliciesPpeUsefulLivesDetails" xlink:type="simple" />
  <roleRef roleURI="http://www.oesx.com/role/SummaryOfSignificantAccountingPoliciesPrepaidExpensesAndOtherCurrentAssetsDetails" xlink:href="oesx-20160630.xsd#SummaryOfSignificantAccountingPoliciesPrepaidExpensesAndOtherCurrentAssetsDetails" xlink:type="simple" />
  <roleRef roleURI="http://www.oesx.com/role/SummaryOfSignificantAccountingPoliciesPropPlantAndEquipDetails" xlink:href="oesx-20160630.xsd#SummaryOfSignificantAccountingPoliciesPropPlantAndEquipDetails" xlink:type="simple" />
  <roleRef roleURI="http://www.oesx.com/role/SummaryOfSignificantAccountingPoliciesTables" xlink:href="oesx-20160630.xsd#SummaryOfSignificantAccountingPoliciesTables" xlink:type="simple" />
  <roleRef roleURI="http://www.oesx.com/role/SummaryOfSignificantAccountingPoliciesWarrantyAccrualDetails" xlink:href="oesx-20160630.xsd#SummaryOfSignificantAccountingPoliciesWarrantyAccrualDetails" xlink:type="simple" />
  <roleRef roleURI="http://www.oesx.com/role/UnauditedCondensedConsolidatedBalanceSheets" xlink:href="oesx-20160630.xsd#UnauditedCondensedConsolidatedBalanceSheets" xlink:type="simple" />
  <roleRef roleURI="http://www.oesx.com/role/UnauditedCondensedConsolidatedBalanceSheetsParenthetical" xlink:href="oesx-20160630.xsd#UnauditedCondensedConsolidatedBalanceSheetsParenthetical" xlink:type="simple" />
  <roleRef roleURI="http://www.oesx.com/role/UnauditedCondensedConsolidatedStatementsOfCashFlows" xlink:href="oesx-20160630.xsd#UnauditedCondensedConsolidatedStatementsOfCashFlows" xlink:type="simple" />
  <roleRef roleURI="http://www.oesx.com/role/UnauditedCondensedConsolidatedStatementsOfOperations" xlink:href="oesx-20160630.xsd#UnauditedCondensedConsolidatedStatementsOfOperations" 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/CommitmentsAndContingencies" xlink:type="extended" />
  <definitionLink xlink:role="http://www.oesx.com/role/CommitmentsAndContingenciesDetails" 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_D7DC8F4559927BD0338D3D8438AA1C59" 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_DD07D66EA326AD33308B3D8438AA7DFD" xlink:type="locator" />
    <definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/all" xlink:from="loc_us-gaap_LongTermPurchaseCommitmentLineItems_D7DC8F4559927BD0338D3D8438AA1C59" xlink:to="loc_us-gaap_LongTermPurchaseCommitmentTable_DD07D66EA326AD33308B3D8438AA7DFD" 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_E858750C08B36AE7B1D73D8438AA8C9B" xlink:type="locator" />
    <definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_LongTermPurchaseCommitmentTable_DD07D66EA326AD33308B3D8438AA7DFD" xlink:to="loc_us-gaap_IncomeStatementLocationAxis_E858750C08B36AE7B1D73D8438AA8C9B" 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_3F7EA9CC36A6FFD1D4A83D8438AAE13F_default" xlink:type="locator" />
    <definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_IncomeStatementLocationAxis_E858750C08B36AE7B1D73D8438AA8C9B" xlink:to="loc_us-gaap_IncomeStatementLocationDomain_3F7EA9CC36A6FFD1D4A83D8438AAE13F_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_3F7EA9CC36A6FFD1D4A83D8438AAE13F" xlink:type="locator" />
    <definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_IncomeStatementLocationAxis_E858750C08B36AE7B1D73D8438AA8C9B" xlink:to="loc_us-gaap_IncomeStatementLocationDomain_3F7EA9CC36A6FFD1D4A83D8438AAE13F" 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_108AF929F2AC58EDC15B3D8438AA831B" xlink:type="locator" />
    <definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_IncomeStatementLocationDomain_3F7EA9CC36A6FFD1D4A83D8438AAE13F" xlink:to="loc_us-gaap_GeneralAndAdministrativeExpenseMember_108AF929F2AC58EDC15B3D8438AA831B" xlink:type="arc" />
    <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_09FA9D8D25AE96A756673D8438AA0865" xlink:type="locator" />
    <definitionArc order="2" xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_LongTermPurchaseCommitmentTable_DD07D66EA326AD33308B3D8438AA7DFD" xlink:to="loc_us-gaap_SaleLeasebackTransactionDescriptionAxis_09FA9D8D25AE96A756673D8438AA0865" 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_D591FB7C2A201C9202D13D8438AABF69_default" xlink:type="locator" />
    <definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_SaleLeasebackTransactionDescriptionAxis_09FA9D8D25AE96A756673D8438AA0865" xlink:to="loc_us-gaap_SaleLeasebackTransactionNameDomain_D591FB7C2A201C9202D13D8438AABF69_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_D591FB7C2A201C9202D13D8438AABF69" xlink:type="locator" />
    <definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_SaleLeasebackTransactionDescriptionAxis_09FA9D8D25AE96A756673D8438AA0865" xlink:to="loc_us-gaap_SaleLeasebackTransactionNameDomain_D591FB7C2A201C9202D13D8438AABF69" xlink:type="arc" />
    <loc xlink:href="oesx-20160630.xsd#oesx_AgreementwithTramontinaU.S.CookwareInc.Member" xlink:label="loc_oesx_AgreementwithTramontinaU.S.CookwareInc.Member_F0E3DE19E993B12D64A83D8438AA3C86" xlink:type="locator" />
    <definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_SaleLeasebackTransactionNameDomain_D591FB7C2A201C9202D13D8438AABF69" xlink:to="loc_oesx_AgreementwithTramontinaU.S.CookwareInc.Member_F0E3DE19E993B12D64A83D8438AA3C86" 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_47656C35905E1BD0512E3D8438AADBFA" xlink:type="locator" />
    <definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_LongTermPurchaseCommitmentLineItems_D7DC8F4559927BD0338D3D8438AA1C59" xlink:to="loc_us-gaap_OperatingLeasesRentExpenseNet_47656C35905E1BD0512E3D8438AADBFA" 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_8A572595F3FA51E7C9DB3D8438AA8354" xlink:type="locator" />
    <definitionArc order="2" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_LongTermPurchaseCommitmentLineItems_D7DC8F4559927BD0338D3D8438AA1C59" xlink:to="loc_us-gaap_LessorLeasingArrangementsOperatingLeasesTermOfContract_8A572595F3FA51E7C9DB3D8438AA8354" xlink:type="arc" />
    <loc xlink:href="oesx-20160630.xsd#oesx_LessorLeasingArrangementsOperatingLeasesNumberofExtensionOptions" xlink:label="loc_oesx_LessorLeasingArrangementsOperatingLeasesNumberofExtensionOptions_8329F6A81CEADBA56F903D8438AAC86E" xlink:type="locator" />
    <definitionArc order="3" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_LongTermPurchaseCommitmentLineItems_D7DC8F4559927BD0338D3D8438AA1C59" xlink:to="loc_oesx_LessorLeasingArrangementsOperatingLeasesNumberofExtensionOptions_8329F6A81CEADBA56F903D8438AAC86E" 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_750DCEDC7823167AA86B3D8438AA5524" xlink:type="locator" />
    <definitionArc order="4" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_LongTermPurchaseCommitmentLineItems_D7DC8F4559927BD0338D3D8438AA1C59" xlink:to="loc_us-gaap_LessorLeasingArrangementsOperatingLeasesRenewalTerm_750DCEDC7823167AA86B3D8438AA5524" xlink:type="arc" />
    <loc xlink:href="oesx-20160630.xsd#oesx_OperatingLeasesMonthlyRentalPaymentsReceivable" xlink:label="loc_oesx_OperatingLeasesMonthlyRentalPaymentsReceivable_FD54CBB7835BB180B2E13D8438AAECCD" xlink:type="locator" />
    <definitionArc order="5" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_LongTermPurchaseCommitmentLineItems_D7DC8F4559927BD0338D3D8438AA1C59" xlink:to="loc_oesx_OperatingLeasesMonthlyRentalPaymentsReceivable_FD54CBB7835BB180B2E13D8438AAECCD" xlink:type="arc" />
    <loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_SaleLeasebackTransactionNetProceedsInvestingActivities" xlink:label="loc_us-gaap_SaleLeasebackTransactionNetProceedsInvestingActivities_F402DF1E39C56DFD3F4D3D900CF3EED6" xlink:type="locator" />
    <definitionArc order="6" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_LongTermPurchaseCommitmentLineItems_D7DC8F4559927BD0338D3D8438AA1C59" xlink:to="loc_us-gaap_SaleLeasebackTransactionNetProceedsInvestingActivities_F402DF1E39C56DFD3F4D3D900CF3EED6" xlink:type="arc" />
    <loc xlink:href="oesx-20160630.xsd#oesx_SaleLeasebackTransactionAreaofLeasedProperty" xlink:label="loc_oesx_SaleLeasebackTransactionAreaofLeasedProperty_49C596BC219983C7BC813D8438AAF4A4" xlink:type="locator" />
    <definitionArc order="7" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_LongTermPurchaseCommitmentLineItems_D7DC8F4559927BD0338D3D8438AA1C59" xlink:to="loc_oesx_SaleLeasebackTransactionAreaofLeasedProperty_49C596BC219983C7BC813D8438AAF4A4" xlink:type="arc" />
    <loc xlink:href="oesx-20160630.xsd#oesx_SaleLeasebackTransactionLeaseTerm" xlink:label="loc_oesx_SaleLeasebackTransactionLeaseTerm_4810372EE7D747CC80AD3D8438AA1E67" xlink:type="locator" />
    <definitionArc order="8" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_LongTermPurchaseCommitmentLineItems_D7DC8F4559927BD0338D3D8438AA1C59" xlink:to="loc_oesx_SaleLeasebackTransactionLeaseTerm_4810372EE7D747CC80AD3D8438AA1E67" xlink:type="arc" />
    <loc xlink:href="oesx-20160630.xsd#oesx_SaleLeasebackTransactionRentExpensePerSquareFoot" xlink:label="loc_oesx_SaleLeasebackTransactionRentExpensePerSquareFoot_8741A3B71DEA011173763D8438AA5EAA" xlink:type="locator" />
    <definitionArc order="9" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_LongTermPurchaseCommitmentLineItems_D7DC8F4559927BD0338D3D8438AA1C59" xlink:to="loc_oesx_SaleLeasebackTransactionRentExpensePerSquareFoot_8741A3B71DEA011173763D8438AA5EAA" xlink:type="arc" />
    <loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_SaleLeasebackTransactionMonthlyRentalPayments" xlink:label="loc_us-gaap_SaleLeasebackTransactionMonthlyRentalPayments_42730DFA688744393F843D8438AB0CF5" xlink:type="locator" />
    <definitionArc order="10" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_LongTermPurchaseCommitmentLineItems_D7DC8F4559927BD0338D3D8438AA1C59" xlink:to="loc_us-gaap_SaleLeasebackTransactionMonthlyRentalPayments_42730DFA688744393F843D8438AB0CF5" 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_A7A3E045B5899439E5DA3D8438AB4D0F" xlink:type="locator" />
    <definitionArc order="11" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_LongTermPurchaseCommitmentLineItems_D7DC8F4559927BD0338D3D8438AA1C59" xlink:to="loc_us-gaap_LossContingencyClaimsDismissedNumber_A7A3E045B5899439E5DA3D8438AB4D0F" xlink:type="arc" />
    <loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_LitigationSettlementAmount" xlink:label="loc_us-gaap_LitigationSettlementAmount_48CEF5706D48A2D6F2743D8438AB3C81" xlink:type="locator" />
    <definitionArc order="12" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_LongTermPurchaseCommitmentLineItems_D7DC8F4559927BD0338D3D8438AA1C59" xlink:to="loc_us-gaap_LitigationSettlementAmount_48CEF5706D48A2D6F2743D8438AB3C81" xlink:type="arc" />
  </definitionLink>
  <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/IncomeTaxesNarrativeDetails" 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_D1B9838680B52115421947FAF5625EF7" 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_8869A3BBF70DBBD0ECA247FAF5629197" xlink:type="locator" />
    <definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/all" xlink:from="loc_us-gaap_OperatingLossCarryforwardsLineItems_D1B9838680B52115421947FAF5625EF7" xlink:to="loc_us-gaap_OperatingLossCarryforwardsTable_8869A3BBF70DBBD0ECA247FAF5629197" 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_IncomeTaxAuthorityAxis" xlink:label="loc_us-gaap_IncomeTaxAuthorityAxis_2641696664C44DAF303347FAF5626C72" xlink:type="locator" />
    <definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_OperatingLossCarryforwardsTable_8869A3BBF70DBBD0ECA247FAF5629197" xlink:to="loc_us-gaap_IncomeTaxAuthorityAxis_2641696664C44DAF303347FAF5626C72" 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_D4FB66A7EBE04F54686D47FAF5625115_default" xlink:type="locator" />
    <definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_IncomeTaxAuthorityAxis_2641696664C44DAF303347FAF5626C72" xlink:to="loc_us-gaap_IncomeTaxAuthorityDomain_D4FB66A7EBE04F54686D47FAF5625115_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_D4FB66A7EBE04F54686D47FAF5625115" xlink:type="locator" />
    <definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_IncomeTaxAuthorityAxis_2641696664C44DAF303347FAF5626C72" xlink:to="loc_us-gaap_IncomeTaxAuthorityDomain_D4FB66A7EBE04F54686D47FAF5625115" 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_D93EF8218B9AB87BDD6447FAF5627B17" xlink:type="locator" />
    <definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_IncomeTaxAuthorityDomain_D4FB66A7EBE04F54686D47FAF5625115" xlink:to="loc_us-gaap_DomesticCountryMember_D93EF8218B9AB87BDD6447FAF5627B17" 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_2FB78A9DEBCB5279AB9647FAF56289A7" xlink:type="locator" />
    <definitionArc order="2" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_IncomeTaxAuthorityDomain_D4FB66A7EBE04F54686D47FAF5625115" xlink:to="loc_us-gaap_StateAndLocalJurisdictionMember_2FB78A9DEBCB5279AB9647FAF56289A7" xlink:type="arc" />
    <loc xlink:href="oesx-20160630.xsd#oesx_IncomeTaxTextualAbstract" xlink:label="loc_oesx_IncomeTaxTextualAbstract_2C3E4D6033AE444A5A2447FAF562D5E8" xlink:type="locator" />
    <definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_OperatingLossCarryforwardsLineItems_D1B9838680B52115421947FAF5625EF7" xlink:to="loc_oesx_IncomeTaxTextualAbstract_2C3E4D6033AE444A5A2447FAF562D5E8" xlink:type="arc" />
    <loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_EffectiveIncomeTaxRateContinuingOperations" xlink:label="loc_us-gaap_EffectiveIncomeTaxRateContinuingOperations_9EC8606E1CF2EB4E07C947FAF5629FF7" xlink:type="locator" />
    <definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_oesx_IncomeTaxTextualAbstract_2C3E4D6033AE444A5A2447FAF562D5E8" xlink:to="loc_us-gaap_EffectiveIncomeTaxRateContinuingOperations_9EC8606E1CF2EB4E07C947FAF5629FF7" xlink:type="arc" />
    <loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_EffectiveIncomeTaxRateReconciliationOtherReconcilingItemsPercent" xlink:label="loc_us-gaap_EffectiveIncomeTaxRateReconciliationOtherReconcilingItemsPercent_2A279C7CA1159B92251548060CBC7702" xlink:type="locator" />
    <definitionArc order="2" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_oesx_IncomeTaxTextualAbstract_2C3E4D6033AE444A5A2447FAF562D5E8" xlink:to="loc_us-gaap_EffectiveIncomeTaxRateReconciliationOtherReconcilingItemsPercent_2A279C7CA1159B92251548060CBC7702" xlink:type="arc" />
    <loc xlink:href="oesx-20160630.xsd#oesx_EffectiveIncomeTaxRateReconciliationNetofDiscreteTaxItemsPercent" xlink:label="loc_oesx_EffectiveIncomeTaxRateReconciliationNetofDiscreteTaxItemsPercent_5173D635C81F9DF9EA5447FAF562FD22" xlink:type="locator" />
    <definitionArc order="3" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_oesx_IncomeTaxTextualAbstract_2C3E4D6033AE444A5A2447FAF562D5E8" xlink:to="loc_oesx_EffectiveIncomeTaxRateReconciliationNetofDiscreteTaxItemsPercent_5173D635C81F9DF9EA5447FAF562FD22" 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_6F439410BC646B88C90747FAF562A7AF" xlink:type="locator" />
    <definitionArc order="4" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_oesx_IncomeTaxTextualAbstract_2C3E4D6033AE444A5A2447FAF562D5E8" xlink:to="loc_us-gaap_OperatingLossCarryforwards_6F439410BC646B88C90747FAF562A7AF" xlink:type="arc" />
    <loc xlink:href="oesx-20160630.xsd#oesx_OperatingLossCarryforwardsAssociatedWithExerciseOfNonQualifiedStockOptions" xlink:label="loc_oesx_OperatingLossCarryforwardsAssociatedWithExerciseOfNonQualifiedStockOptions_F7B44F6EFAD802C358D047FAF5627A35" xlink:type="locator" />
    <definitionArc order="5" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_oesx_IncomeTaxTextualAbstract_2C3E4D6033AE444A5A2447FAF562D5E8" xlink:to="loc_oesx_OperatingLossCarryforwardsAssociatedWithExerciseOfNonQualifiedStockOptions_F7B44F6EFAD802C358D047FAF5627A35" 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_B6321A66CCAEB819129947FAF563FEB7" xlink:type="locator" />
    <definitionArc order="6" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_oesx_IncomeTaxTextualAbstract_2C3E4D6033AE444A5A2447FAF562D5E8" xlink:to="loc_us-gaap_TaxCreditCarryforwardAmount_B6321A66CCAEB819129947FAF563FEB7" 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_A08864B5AB0A5BB91B6B47FAF563735A" xlink:type="locator" />
    <definitionArc order="7" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_oesx_IncomeTaxTextualAbstract_2C3E4D6033AE444A5A2447FAF562D5E8" xlink:to="loc_us-gaap_ValuationAllowanceDeferredTaxAssetChangeInAmount_A08864B5AB0A5BB91B6B47FAF563735A" 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_15978CF613EBEBB6F1F947FAF563360B" xlink:type="locator" />
    <definitionArc order="8" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_oesx_IncomeTaxTextualAbstract_2C3E4D6033AE444A5A2447FAF562D5E8" xlink:to="loc_us-gaap_UnrecognizedTaxBenefits_15978CF613EBEBB6F1F947FAF563360B" xlink:type="arc" />
  </definitionLink>
  <definitionLink xlink:role="http://www.oesx.com/role/LongTermDebt" xlink:type="extended" />
  <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_558337E95DBC472313F03CC841339334" 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_2A72E747A037AE49B0533CC8412D1C53" xlink:type="locator" />
    <definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/all" xlink:from="loc_us-gaap_ExtinguishmentOfDebtLineItems_558337E95DBC472313F03CC841339334" xlink:to="loc_us-gaap_ScheduleOfExtinguishmentOfDebtTable_2A72E747A037AE49B0533CC8412D1C53" 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_CCDA58FABEC11EE103013CC8412DE146" xlink:type="locator" />
    <definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_ScheduleOfExtinguishmentOfDebtTable_2A72E747A037AE49B0533CC8412D1C53" xlink:to="loc_us-gaap_ExtinguishmentOfDebtAxis_CCDA58FABEC11EE103013CC8412DE146" 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_06B45A1F75506D23C1D93CC8412E8C72_default" xlink:type="locator" />
    <definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_ExtinguishmentOfDebtAxis_CCDA58FABEC11EE103013CC8412DE146" xlink:to="loc_us-gaap_ExtinguishmentOfDebtTypeDomain_06B45A1F75506D23C1D93CC8412E8C72_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_06B45A1F75506D23C1D93CC8412E8C72" xlink:type="locator" />
    <definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_ExtinguishmentOfDebtAxis_CCDA58FABEC11EE103013CC8412DE146" xlink:to="loc_us-gaap_ExtinguishmentOfDebtTypeDomain_06B45A1F75506D23C1D93CC8412E8C72" 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_7E14D2A9FBD33CCCAF6B3CC8412E8730" xlink:type="locator" />
    <definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ExtinguishmentOfDebtTypeDomain_06B45A1F75506D23C1D93CC8412E8C72" xlink:to="loc_us-gaap_RevolvingCreditFacilityMember_7E14D2A9FBD33CCCAF6B3CC8412E8730" xlink:type="arc" />
    <loc xlink:href="oesx-20160630.xsd#oesx_HarrisSellersNoteMember" xlink:label="loc_oesx_HarrisSellersNoteMember_A3AE324AD427C47E90313CC841339C7C" xlink:type="locator" />
    <definitionArc order="2" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ExtinguishmentOfDebtTypeDomain_06B45A1F75506D23C1D93CC8412E8C72" xlink:to="loc_oesx_HarrisSellersNoteMember_A3AE324AD427C47E90313CC841339C7C" 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_22D0CAE50592188DB6213CC84133F1D4" xlink:type="locator" />
    <definitionArc order="3" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ExtinguishmentOfDebtTypeDomain_06B45A1F75506D23C1D93CC8412E8C72" xlink:to="loc_us-gaap_CapitalLeaseObligationsMember_22D0CAE50592188DB6213CC84133F1D4" xlink:type="arc" />
    <loc xlink:href="oesx-20160630.xsd#oesx_CustomerEquipmentFinanceNotesPayableMember" xlink:label="loc_oesx_CustomerEquipmentFinanceNotesPayableMember_CE05BB0242950BF00FCC3CC84133852D" xlink:type="locator" />
    <definitionArc order="4" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ExtinguishmentOfDebtTypeDomain_06B45A1F75506D23C1D93CC8412E8C72" xlink:to="loc_oesx_CustomerEquipmentFinanceNotesPayableMember_CE05BB0242950BF00FCC3CC84133852D" xlink:type="arc" />
    <loc xlink:href="oesx-20160630.xsd#oesx_OtherLongTermDebtMember" xlink:label="loc_oesx_OtherLongTermDebtMember_2670720B162179F4700B3CC8413381D8" xlink:type="locator" />
    <definitionArc order="5" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ExtinguishmentOfDebtTypeDomain_06B45A1F75506D23C1D93CC8412E8C72" xlink:to="loc_oesx_OtherLongTermDebtMember_2670720B162179F4700B3CC8413381D8" 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_F25960BB5791FE356C8C3CC84133A651" xlink:type="locator" />
    <definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ExtinguishmentOfDebtLineItems_558337E95DBC472313F03CC841339334" xlink:to="loc_us-gaap_LongTermDebtByCurrentAndNoncurrentAbstract_F25960BB5791FE356C8C3CC84133A651" 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_DE67589BAD34875B5ACC3CC841334F8B" xlink:type="locator" />
    <definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_LongTermDebtByCurrentAndNoncurrentAbstract_F25960BB5791FE356C8C3CC84133A651" xlink:to="loc_us-gaap_LongTermDebt_DE67589BAD34875B5ACC3CC841334F8B" 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_0B6CA888FAF94D99C3A03CC841334AAF" xlink:type="locator" />
    <definitionArc order="2" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_LongTermDebtByCurrentAndNoncurrentAbstract_F25960BB5791FE356C8C3CC84133A651" xlink:to="loc_us-gaap_LongTermDebtCurrent_0B6CA888FAF94D99C3A03CC841334AAF" 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_E5610450F5709DD652903CC841346F86" xlink:type="locator" />
    <definitionArc order="3" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_LongTermDebtByCurrentAndNoncurrentAbstract_F25960BB5791FE356C8C3CC84133A651" xlink:to="loc_us-gaap_LongTermDebtNoncurrent_E5610450F5709DD652903CC841346F86" xlink:type="arc" />
  </definitionLink>
  <definitionLink xlink:role="http://www.oesx.com/role/LongTermDebtNarrativeDetails" 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_4651B031467AB28BA7B84B81535F69C3" 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_CE1C5A5E0B8A426F364B4B81535DDF6E" xlink:type="locator" />
    <definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/all" xlink:from="loc_us-gaap_LineOfCreditFacilityLineItems_4651B031467AB28BA7B84B81535F69C3" xlink:to="loc_us-gaap_LineOfCreditFacilityTable_CE1C5A5E0B8A426F364B4B81535DDF6E" 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_DebtInstrumentAxis" xlink:label="loc_us-gaap_DebtInstrumentAxis_FDA8A9C1DA88ABEDF4F74B81535EBF08" xlink:type="locator" />
    <definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_LineOfCreditFacilityTable_CE1C5A5E0B8A426F364B4B81535DDF6E" xlink:to="loc_us-gaap_DebtInstrumentAxis_FDA8A9C1DA88ABEDF4F74B81535EBF08" 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_4F8F6302CF59853727084B81535E3D99_default" xlink:type="locator" />
    <definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_DebtInstrumentAxis_FDA8A9C1DA88ABEDF4F74B81535EBF08" xlink:to="loc_us-gaap_DebtInstrumentNameDomain_4F8F6302CF59853727084B81535E3D99_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_4F8F6302CF59853727084B81535E3D99" xlink:type="locator" />
    <definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_DebtInstrumentAxis_FDA8A9C1DA88ABEDF4F74B81535EBF08" xlink:to="loc_us-gaap_DebtInstrumentNameDomain_4F8F6302CF59853727084B81535E3D99" xlink:type="arc" />
    <loc xlink:href="oesx-20160630.xsd#oesx_CreditAgreementMember" xlink:label="loc_oesx_CreditAgreementMember_89D1FE515599909C90424B81535E4096" xlink:type="locator" />
    <definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DebtInstrumentNameDomain_4F8F6302CF59853727084B81535E3D99" xlink:to="loc_oesx_CreditAgreementMember_89D1FE515599909C90424B81535E4096" xlink:type="arc" />
    <loc xlink:href="oesx-20160630.xsd#oesx_December2014OTAFinanceProgramMember" xlink:label="loc_oesx_December2014OTAFinanceProgramMember_12D6399B7446049634DC4B81535E1F38" xlink:type="locator" />
    <definitionArc order="2" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DebtInstrumentNameDomain_4F8F6302CF59853727084B81535E3D99" xlink:to="loc_oesx_December2014OTAFinanceProgramMember_12D6399B7446049634DC4B81535E1F38" 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_83DEBC094FD5DAF7561F4B81535EE91D" xlink:type="locator" />
    <definitionArc order="2" xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_LineOfCreditFacilityTable_CE1C5A5E0B8A426F364B4B81535DDF6E" xlink:to="loc_us-gaap_CreditFacilityAxis_83DEBC094FD5DAF7561F4B81535EE91D" 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_4409A316FBF18D23679F4B81535E2066_default" xlink:type="locator" />
    <definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_CreditFacilityAxis_83DEBC094FD5DAF7561F4B81535EE91D" xlink:to="loc_us-gaap_CreditFacilityDomain_4409A316FBF18D23679F4B81535E2066_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_4409A316FBF18D23679F4B81535E2066" xlink:type="locator" />
    <definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_CreditFacilityAxis_83DEBC094FD5DAF7561F4B81535EE91D" xlink:to="loc_us-gaap_CreditFacilityDomain_4409A316FBF18D23679F4B81535E2066" 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_DC6D55179387E38A6B9D4B81535E3F2C" xlink:type="locator" />
    <definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_CreditFacilityDomain_4409A316FBF18D23679F4B81535E2066" xlink:to="loc_us-gaap_RevolvingCreditFacilityMember_DC6D55179387E38A6B9D4B81535E3F2C" 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_D9D840C6AFD2FFAFCD8C4B81535E3927" xlink:type="locator" />
    <definitionArc order="2" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_CreditFacilityDomain_4409A316FBF18D23679F4B81535E2066" xlink:to="loc_us-gaap_LetterOfCreditMember_D9D840C6AFD2FFAFCD8C4B81535E3927" 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_388388F50A2D54397A674B81535E2C3F" xlink:type="locator" />
    <definitionArc order="3" xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_LineOfCreditFacilityTable_CE1C5A5E0B8A426F364B4B81535DDF6E" xlink:to="loc_us-gaap_LineOfCreditFacilityAxis_388388F50A2D54397A674B81535E2C3F" 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_1369A5F896DE5468682C4B81535E13D1_default" xlink:type="locator" />
    <definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_LineOfCreditFacilityAxis_388388F50A2D54397A674B81535E2C3F" xlink:to="loc_us-gaap_LineOfCreditFacilityLenderDomain_1369A5F896DE5468682C4B81535E13D1_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_1369A5F896DE5468682C4B81535E13D1" xlink:type="locator" />
    <definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_LineOfCreditFacilityAxis_388388F50A2D54397A674B81535E2C3F" xlink:to="loc_us-gaap_LineOfCreditFacilityLenderDomain_1369A5F896DE5468682C4B81535E13D1" xlink:type="arc" />
    <loc xlink:href="oesx-20160630.xsd#oesx_WellsFargoBankNationalAssociationMember" xlink:label="loc_oesx_WellsFargoBankNationalAssociationMember_925CC9A32BE00065AB834B81535E01F2" xlink:type="locator" />
    <definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_LineOfCreditFacilityLenderDomain_1369A5F896DE5468682C4B81535E13D1" xlink:to="loc_oesx_WellsFargoBankNationalAssociationMember_925CC9A32BE00065AB834B81535E01F2" xlink:type="arc" />
    <loc xlink:href="oesx-20160630.xsd#oesx_DeLageLandenFinancialServicesInc.Member" xlink:label="loc_oesx_DeLageLandenFinancialServicesInc.Member_94028724B78E80186C564B81535E83C8" xlink:type="locator" />
    <definitionArc order="2" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_LineOfCreditFacilityLenderDomain_1369A5F896DE5468682C4B81535E13D1" xlink:to="loc_oesx_DeLageLandenFinancialServicesInc.Member_94028724B78E80186C564B81535E83C8" xlink:type="arc" />
    <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_69BF2EF6CF975774415C4B81535E291A" xlink:type="locator" />
    <definitionArc order="4" xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_LineOfCreditFacilityTable_CE1C5A5E0B8A426F364B4B81535DDF6E" xlink:to="loc_us-gaap_LongtermDebtTypeAxis_69BF2EF6CF975774415C4B81535E291A" 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_A03176175C0A9D4E3E1E4B81535E1DA0_default" xlink:type="locator" />
    <definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_LongtermDebtTypeAxis_69BF2EF6CF975774415C4B81535E291A" xlink:to="loc_us-gaap_LongtermDebtTypeDomain_A03176175C0A9D4E3E1E4B81535E1DA0_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_A03176175C0A9D4E3E1E4B81535E1DA0" xlink:type="locator" />
    <definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_LongtermDebtTypeAxis_69BF2EF6CF975774415C4B81535E291A" xlink:to="loc_us-gaap_LongtermDebtTypeDomain_A03176175C0A9D4E3E1E4B81535E1DA0" xlink:type="arc" />
    <loc xlink:href="oesx-20160630.xsd#oesx_HarrisSellersNoteMember" xlink:label="loc_oesx_HarrisSellersNoteMember_8C6BE08190CB63326EE74B81535EDB74" xlink:type="locator" />
    <definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_LongtermDebtTypeDomain_A03176175C0A9D4E3E1E4B81535E1DA0" xlink:to="loc_oesx_HarrisSellersNoteMember_8C6BE08190CB63326EE74B81535EDB74" 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_DE2863BF5ABC6F4AE2C44B81535E1A1E" xlink:type="locator" />
    <definitionArc order="2" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_LongtermDebtTypeDomain_A03176175C0A9D4E3E1E4B81535E1DA0" xlink:to="loc_us-gaap_SecuredDebtMember_DE2863BF5ABC6F4AE2C44B81535E1A1E" xlink:type="arc" />
    <loc xlink:href="oesx-20160630.xsd#oesx_June2011OtaFinanceProgramMember" xlink:label="loc_oesx_June2011OtaFinanceProgramMember_E539F03FEF6DB4DA53084B81535E410F" xlink:type="locator" />
    <definitionArc order="3" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_LongtermDebtTypeDomain_A03176175C0A9D4E3E1E4B81535E1DA0" xlink:to="loc_oesx_June2011OtaFinanceProgramMember_E539F03FEF6DB4DA53084B81535E410F" xlink:type="arc" />
    <loc xlink:href="oesx-20160630.xsd#oesx_AgreementWithWisconsinDepartmentOfCommerceMember" xlink:label="loc_oesx_AgreementWithWisconsinDepartmentOfCommerceMember_45A96D2E36D504A65BF14B81535F5DC7" xlink:type="locator" />
    <definitionArc order="4" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_LongtermDebtTypeDomain_A03176175C0A9D4E3E1E4B81535E1DA0" xlink:to="loc_oesx_AgreementWithWisconsinDepartmentOfCommerceMember_45A96D2E36D504A65BF14B81535F5DC7" 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_DAC1D1F03235036119004B81535FC4FA" xlink:type="locator" />
    <definitionArc order="5" xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_LineOfCreditFacilityTable_CE1C5A5E0B8A426F364B4B81535DDF6E" xlink:to="loc_us-gaap_VariableRateAxis_DAC1D1F03235036119004B81535FC4FA" 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_32ECFB2C185ACD0F02C24B81535FD3B5_default" xlink:type="locator" />
    <definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_VariableRateAxis_DAC1D1F03235036119004B81535FC4FA" xlink:to="loc_us-gaap_VariableRateDomain_32ECFB2C185ACD0F02C24B81535FD3B5_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_32ECFB2C185ACD0F02C24B81535FD3B5" xlink:type="locator" />
    <definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_VariableRateAxis_DAC1D1F03235036119004B81535FC4FA" xlink:to="loc_us-gaap_VariableRateDomain_32ECFB2C185ACD0F02C24B81535FD3B5" 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_5FAA98401216CDE4B1D64B81535F9C90" xlink:type="locator" />
    <definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_VariableRateDomain_32ECFB2C185ACD0F02C24B81535FD3B5" xlink:to="loc_us-gaap_LondonInterbankOfferedRateLIBORMember_5FAA98401216CDE4B1D64B81535F9C90" 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_0F0FAD9BAF438D9B972B4B81535F2AFC" xlink:type="locator" />
    <definitionArc order="6" xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_LineOfCreditFacilityTable_CE1C5A5E0B8A426F364B4B81535DDF6E" xlink:to="loc_us-gaap_ExtinguishmentOfDebtAxis_0F0FAD9BAF438D9B972B4B81535F2AFC" 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_8F662BF8F23714F1701B4B81535F86DE_default" xlink:type="locator" />
    <definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_ExtinguishmentOfDebtAxis_0F0FAD9BAF438D9B972B4B81535F2AFC" xlink:to="loc_us-gaap_ExtinguishmentOfDebtTypeDomain_8F662BF8F23714F1701B4B81535F86DE_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_8F662BF8F23714F1701B4B81535F86DE" xlink:type="locator" />
    <definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_ExtinguishmentOfDebtAxis_0F0FAD9BAF438D9B972B4B81535F2AFC" xlink:to="loc_us-gaap_ExtinguishmentOfDebtTypeDomain_8F662BF8F23714F1701B4B81535F86DE" 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_48EAE01C024BA4B5888A4B81535F9C9C" xlink:type="locator" />
    <definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ExtinguishmentOfDebtTypeDomain_8F662BF8F23714F1701B4B81535F86DE" xlink:to="loc_us-gaap_CapitalLeaseObligationsMember_48EAE01C024BA4B5888A4B81535F9C9C" 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_0F6F5203DA597120A7724B81535FF462" xlink:type="locator" />
    <definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_LineOfCreditFacilityLineItems_4651B031467AB28BA7B84B81535F69C3" xlink:to="loc_us-gaap_LineOfCreditFacilityCurrentBorrowingCapacity_0F6F5203DA597120A7724B81535FF462" 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_56AF6DF5EFCB20E05EF14B81535F22D8" xlink:type="locator" />
    <definitionArc order="2" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_LineOfCreditFacilityLineItems_4651B031467AB28BA7B84B81535F69C3" xlink:to="loc_us-gaap_LineOfCreditFacilityMaximumBorrowingCapacity_56AF6DF5EFCB20E05EF14B81535F22D8" xlink:type="arc" />
    <loc xlink:href="oesx-20160630.xsd#oesx_LineofCreditFacilityCovenantTermsMinimumIndebtednessRatio" xlink:label="loc_oesx_LineofCreditFacilityCovenantTermsMinimumIndebtednessRatio_026FFEB4896372C1E9964B81535F3B20" xlink:type="locator" />
    <definitionArc order="3" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_LineOfCreditFacilityLineItems_4651B031467AB28BA7B84B81535F69C3" xlink:to="loc_oesx_LineofCreditFacilityCovenantTermsMinimumIndebtednessRatio_026FFEB4896372C1E9964B81535F3B20" 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_0A109F4C3904D50D84E44B81535FA807" xlink:type="locator" />
    <definitionArc order="4" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_LineOfCreditFacilityLineItems_4651B031467AB28BA7B84B81535F69C3" xlink:to="loc_us-gaap_DebtInstrumentBasisSpreadOnVariableRate1_0A109F4C3904D50D84E44B81535FA807" 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_586E45DC1DD31C9003ED4B81535FAEBA" xlink:type="locator" />
    <definitionArc order="5" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_LineOfCreditFacilityLineItems_4651B031467AB28BA7B84B81535F69C3" xlink:to="loc_us-gaap_DebtInstrumentPeriodicPaymentInterest_586E45DC1DD31C9003ED4B81535FAEBA" 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_B3B3B34B0FE71FB2F38C4B81535F8593" xlink:type="locator" />
    <definitionArc order="6" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_LineOfCreditFacilityLineItems_4651B031467AB28BA7B84B81535F69C3" xlink:to="loc_us-gaap_DebtInstrumentInterestRateEffectivePercentage_B3B3B34B0FE71FB2F38C4B81535F8593" 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_85AC1215FCB43C57849D4B81535FC2DF" xlink:type="locator" />
    <definitionArc order="7" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_LineOfCreditFacilityLineItems_4651B031467AB28BA7B84B81535F69C3" xlink:to="loc_us-gaap_LineOfCreditFacilityUnusedCapacityCommitmentFeePercentage_85AC1215FCB43C57849D4B81535FC2DF" 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_5A01237D7C7F0AA2D0704B81535FF04C" xlink:type="locator" />
    <definitionArc order="8" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_LineOfCreditFacilityLineItems_4651B031467AB28BA7B84B81535F69C3" xlink:to="loc_us-gaap_LettersOfCreditOutstandingAmount_5A01237D7C7F0AA2D0704B81535FF04C" 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_9DE330F0CA0B4EAAD24B4B81535FCB29" xlink:type="locator" />
    <definitionArc order="9" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_LineOfCreditFacilityLineItems_4651B031467AB28BA7B84B81535F69C3" xlink:to="loc_us-gaap_LongTermLineOfCredit_9DE330F0CA0B4EAAD24B4B81535FCB29" xlink:type="arc" />
    <loc xlink:href="oesx-20160630.xsd#oesx_LineofCreditFacilityAdditionalBorrowingCapacity" xlink:label="loc_oesx_LineofCreditFacilityAdditionalBorrowingCapacity_5D8CD04558C37CFEE0464B81535F54F6" xlink:type="locator" />
    <definitionArc order="10" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_LineOfCreditFacilityLineItems_4651B031467AB28BA7B84B81535F69C3" xlink:to="loc_oesx_LineofCreditFacilityAdditionalBorrowingCapacity_5D8CD04558C37CFEE0464B81535F54F6" 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_6BD1BF3D6E04C7ACBE3E4B81535FBF2F" xlink:type="locator" />
    <definitionArc order="11" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_LineOfCreditFacilityLineItems_4651B031467AB28BA7B84B81535F69C3" xlink:to="loc_us-gaap_DebtInstrumentFaceAmount_6BD1BF3D6E04C7ACBE3E4B81535FBF2F" 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_AFA6CE4294EB07766EEA4B815360388E" xlink:type="locator" />
    <definitionArc order="12" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_LineOfCreditFacilityLineItems_4651B031467AB28BA7B84B81535F69C3" xlink:to="loc_us-gaap_DebtInstrumentInterestRateStatedPercentage_AFA6CE4294EB07766EEA4B815360388E" xlink:type="arc" />
    <loc xlink:href="oesx-20160630.xsd#oesx_NumberofLeaseAgreements" xlink:label="loc_oesx_NumberofLeaseAgreements_CF3A9349ADEFA23FC50E4B815360597B" xlink:type="locator" />
    <definitionArc order="13" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_LineOfCreditFacilityLineItems_4651B031467AB28BA7B84B81535F69C3" xlink:to="loc_oesx_NumberofLeaseAgreements_CF3A9349ADEFA23FC50E4B815360597B" 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_DC7972A02253390C52E54B81536001A6" xlink:type="locator" />
    <definitionArc order="14" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_LineOfCreditFacilityLineItems_4651B031467AB28BA7B84B81535F69C3" xlink:to="loc_us-gaap_DebtInstrumentCarryingAmount_DC7972A02253390C52E54B81536001A6" xlink:type="arc" />
    <loc xlink:href="oesx-20160630.xsd#oesx_DebtInstrumentBuyoutOption" xlink:label="loc_oesx_DebtInstrumentBuyoutOption_B55A300026C61FFD18D54B815360EE31" xlink:type="locator" />
    <definitionArc order="15" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_LineOfCreditFacilityLineItems_4651B031467AB28BA7B84B81535F69C3" xlink:to="loc_oesx_DebtInstrumentBuyoutOption_B55A300026C61FFD18D54B815360EE31" 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_CFD4311C89F83482D2884B815360DA36" xlink:type="locator" />
    <definitionArc order="16" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_LineOfCreditFacilityLineItems_4651B031467AB28BA7B84B81535F69C3" xlink:to="loc_us-gaap_SecuredDebt_CFD4311C89F83482D2884B815360DA36" xlink:type="arc" />
    <loc xlink:href="oesx-20160630.xsd#oesx_DebtInstrumentNumberOfContractsForCollateral" xlink:label="loc_oesx_DebtInstrumentNumberOfContractsForCollateral_A8CB29E0C40AFDB7F7434B8153605211" xlink:type="locator" />
    <definitionArc order="17" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_LineOfCreditFacilityLineItems_4651B031467AB28BA7B84B81535F69C3" xlink:to="loc_oesx_DebtInstrumentNumberOfContractsForCollateral_A8CB29E0C40AFDB7F7434B8153605211" xlink:type="arc" />
    <loc xlink:href="oesx-20160630.xsd#oesx_PeriodOfTimeWithoutInterestAccruingOrPrincipalPaymentsDue" xlink:label="loc_oesx_PeriodOfTimeWithoutInterestAccruingOrPrincipalPaymentsDue_D5A824763F6365AACEEF4B815360020E" xlink:type="locator" />
    <definitionArc order="18" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_LineOfCreditFacilityLineItems_4651B031467AB28BA7B84B81535F69C3" xlink:to="loc_oesx_PeriodOfTimeWithoutInterestAccruingOrPrincipalPaymentsDue_D5A824763F6365AACEEF4B815360020E" 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_EAD1B2F22BE0D97D84E34B81536008C8" xlink:type="locator" />
    <definitionArc order="19" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_LineOfCreditFacilityLineItems_4651B031467AB28BA7B84B81535F69C3" xlink:to="loc_us-gaap_DebtInstrumentPeriodicPayment_EAD1B2F22BE0D97D84E34B81536008C8" xlink:type="arc" />
  </definitionLink>
  <definitionLink xlink:role="http://www.oesx.com/role/LongTermDebtTables" 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_B8345160EAE8ADB635B6A6C14437BFB9" 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_6760F78299107FE474BFA6C1443711B2" xlink:type="locator" />
    <definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/all" xlink:from="loc_us-gaap_RelatedPartyTransactionLineItems_B8345160EAE8ADB635B6A6C14437BFB9" xlink:to="loc_us-gaap_ScheduleOfRelatedPartyTransactionsByRelatedPartyTable_6760F78299107FE474BFA6C1443711B2" 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_5EBC04E3F7C94DA1368DA6C144376691" xlink:type="locator" />
    <definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_ScheduleOfRelatedPartyTransactionsByRelatedPartyTable_6760F78299107FE474BFA6C1443711B2" xlink:to="loc_us-gaap_RelatedPartyTransactionsByRelatedPartyAxis_5EBC04E3F7C94DA1368DA6C144376691" 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_2412B51EE66C4275D827A6C1443726ED_default" xlink:type="locator" />
    <definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_RelatedPartyTransactionsByRelatedPartyAxis_5EBC04E3F7C94DA1368DA6C144376691" xlink:to="loc_us-gaap_RelatedPartyDomain_2412B51EE66C4275D827A6C1443726ED_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_2412B51EE66C4275D827A6C1443726ED" xlink:type="locator" />
    <definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_RelatedPartyTransactionsByRelatedPartyAxis_5EBC04E3F7C94DA1368DA6C144376691" xlink:to="loc_us-gaap_RelatedPartyDomain_2412B51EE66C4275D827A6C1443726ED" xlink:type="arc" />
    <loc xlink:href="oesx-20160630.xsd#oesx_EntitythatCurrentDirectorOwnsMinorityInterestandServesasBoardofDirectorsChairmanMember" xlink:label="loc_oesx_EntitythatCurrentDirectorOwnsMinorityInterestandServesasBoardofDirectorsChairmanMember_4C99836078092631B214A6C14437281C" xlink:type="locator" />
    <definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_RelatedPartyDomain_2412B51EE66C4275D827A6C1443726ED" xlink:to="loc_oesx_EntitythatCurrentDirectorOwnsMinorityInterestandServesasBoardofDirectorsChairmanMember_4C99836078092631B214A6C14437281C" 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_6A547E05A5D782B4480DA6C14438E449" xlink:type="locator" />
    <definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_RelatedPartyTransactionLineItems_B8345160EAE8ADB635B6A6C14437BFB9" xlink:to="loc_us-gaap_RelatedPartyTransactionPurchasesFromRelatedParty_6A547E05A5D782B4480DA6C14438E449" xlink:type="arc" />
  </definitionLink>
  <definitionLink xlink:role="http://www.oesx.com/role/Segments" xlink:type="extended" />
  <definitionLink xlink:role="http://www.oesx.com/role/SegmentsRevenuesAndOperatingIncomeLossDetails" 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_7E457D0E79C161EF7354A6C1452E9021" 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_D7B7CB1B61FF576D4462A6C1452D47D8" xlink:type="locator" />
    <definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/all" xlink:from="loc_us-gaap_SegmentReportingInformationLineItems_7E457D0E79C161EF7354A6C1452E9021" xlink:to="loc_us-gaap_ScheduleOfSegmentReportingInformationBySegmentTable_D7B7CB1B61FF576D4462A6C1452D47D8" 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_9A2FE761B68533894A98A6C1452D0F74" xlink:type="locator" />
    <definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_ScheduleOfSegmentReportingInformationBySegmentTable_D7B7CB1B61FF576D4462A6C1452D47D8" xlink:to="loc_us-gaap_StatementBusinessSegmentsAxis_9A2FE761B68533894A98A6C1452D0F74" 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_FBBC0F1D3B04392B1474A6C1452D2A73_default" xlink:type="locator" />
    <definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_StatementBusinessSegmentsAxis_9A2FE761B68533894A98A6C1452D0F74" xlink:to="loc_us-gaap_SegmentDomain_FBBC0F1D3B04392B1474A6C1452D2A73_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_FBBC0F1D3B04392B1474A6C1452D2A73" xlink:type="locator" />
    <definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_StatementBusinessSegmentsAxis_9A2FE761B68533894A98A6C1452D0F74" xlink:to="loc_us-gaap_SegmentDomain_FBBC0F1D3B04392B1474A6C1452D2A73" xlink:type="arc" />
    <loc xlink:href="oesx-20160630.xsd#oesx_EnergyManagementMember" xlink:label="loc_oesx_EnergyManagementMember_4E89CC328199E9D1A0A7A6C1452DE361" xlink:type="locator" />
    <definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_SegmentDomain_FBBC0F1D3B04392B1474A6C1452D2A73" xlink:to="loc_oesx_EnergyManagementMember_4E89CC328199E9D1A0A7A6C1452DE361" xlink:type="arc" />
    <loc xlink:href="oesx-20160630.xsd#oesx_EngineeredSystemsMember" xlink:label="loc_oesx_EngineeredSystemsMember_7BBB0A1E79285B813555A6C1452E021A" xlink:type="locator" />
    <definitionArc order="2" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_SegmentDomain_FBBC0F1D3B04392B1474A6C1452D2A73" xlink:to="loc_oesx_EngineeredSystemsMember_7BBB0A1E79285B813555A6C1452E021A" xlink:type="arc" />
    <loc xlink:href="oesx-20160630.xsd#oesx_DistributionServicesMember" xlink:label="loc_oesx_DistributionServicesMember_F902905B2A5BE5A9BBB6A6C1452E4267" xlink:type="locator" />
    <definitionArc order="3" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_SegmentDomain_FBBC0F1D3B04392B1474A6C1452D2A73" xlink:to="loc_oesx_DistributionServicesMember_F902905B2A5BE5A9BBB6A6C1452E4267" 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_198D6E4BEC3EEC4B5428A6C1452EA7AE" xlink:type="locator" />
    <definitionArc order="4" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_SegmentDomain_FBBC0F1D3B04392B1474A6C1452D2A73" xlink:to="loc_us-gaap_CorporateAndOtherMember_198D6E4BEC3EEC4B5428A6C1452EA7AE" 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_9B5DA35576672C4D3372A6C1452E4F2B" xlink:type="locator" />
    <definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_SegmentReportingInformationLineItems_7E457D0E79C161EF7354A6C1452E9021" xlink:to="loc_us-gaap_SegmentReportingInformationRevenueAbstract_9B5DA35576672C4D3372A6C1452E4F2B" 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_2F31C18305D345EA1E83A6C1452E24E3" xlink:type="locator" />
    <definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_SegmentReportingInformationRevenueAbstract_9B5DA35576672C4D3372A6C1452E4F2B" xlink:to="loc_us-gaap_Revenues_2F31C18305D345EA1E83A6C1452E24E3" 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_272D0C78E4F0AF9C01ACA6C1452E699D" xlink:type="locator" />
    <definitionArc order="2" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_SegmentReportingInformationRevenueAbstract_9B5DA35576672C4D3372A6C1452E4F2B" xlink:to="loc_us-gaap_OperatingIncomeLoss_272D0C78E4F0AF9C01ACA6C1452E699D" xlink:type="arc" />
  </definitionLink>
  <definitionLink xlink:role="http://www.oesx.com/role/SegmentsTables" xlink:type="extended" />
  <definitionLink xlink:role="http://www.oesx.com/role/ShareholdersEquity" xlink:type="extended" />
  <definitionLink xlink:role="http://www.oesx.com/role/ShareholdersEquitySharesIssuedFromTreasuryDetails" xlink:type="extended" />
  <definitionLink xlink:role="http://www.oesx.com/role/ShareholdersEquityTables" xlink:type="extended" />
  <definitionLink xlink:role="http://www.oesx.com/role/StockOptionsAndRestrictedShares" xlink:type="extended" />
  <definitionLink xlink:role="http://www.oesx.com/role/StockOptionsAndRestrictedSharesNarrativeDetails" 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_880B880F5DDB25464C573D8438993242" 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_542D2DAF3BAEE6629DB93D843898DE31" xlink:type="locator" />
    <definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/all" xlink:from="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardLineItems_880B880F5DDB25464C573D8438993242" xlink:to="loc_us-gaap_ScheduleOfShareBasedCompensationArrangementsByShareBasedPaymentAwardTable_542D2DAF3BAEE6629DB93D843898DE31" 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_PlanNameAxis" xlink:label="loc_us-gaap_PlanNameAxis_22EB0D7142BE07EDB87A3D8438986710" xlink:type="locator" />
    <definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_ScheduleOfShareBasedCompensationArrangementsByShareBasedPaymentAwardTable_542D2DAF3BAEE6629DB93D843898DE31" xlink:to="loc_us-gaap_PlanNameAxis_22EB0D7142BE07EDB87A3D8438986710" 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_99C404FDF7C470B73F913D84389864AB_default" xlink:type="locator" />
    <definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_PlanNameAxis_22EB0D7142BE07EDB87A3D8438986710" xlink:to="loc_us-gaap_PlanNameDomain_99C404FDF7C470B73F913D84389864AB_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_99C404FDF7C470B73F913D84389864AB" xlink:type="locator" />
    <definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_PlanNameAxis_22EB0D7142BE07EDB87A3D8438986710" xlink:to="loc_us-gaap_PlanNameDomain_99C404FDF7C470B73F913D84389864AB" xlink:type="arc" />
    <loc xlink:href="oesx-20160630.xsd#oesx_TwoThousandThreeStockOptionMember" xlink:label="loc_oesx_TwoThousandThreeStockOptionMember_4A89472B5627B817BAC83D843898D6E2" xlink:type="locator" />
    <definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_PlanNameDomain_99C404FDF7C470B73F913D84389864AB" xlink:to="loc_oesx_TwoThousandThreeStockOptionMember_4A89472B5627B817BAC83D843898D6E2" 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_7F5A57BE21084FB696603D843898E518" xlink:type="locator" />
    <definitionArc order="2" xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_ScheduleOfShareBasedCompensationArrangementsByShareBasedPaymentAwardTable_542D2DAF3BAEE6629DB93D843898DE31" xlink:to="loc_us-gaap_RangeAxis_7F5A57BE21084FB696603D843898E518" 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_A80190C32A0F033DA4FA3D843898092D_default" xlink:type="locator" />
    <definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_RangeAxis_7F5A57BE21084FB696603D843898E518" xlink:to="loc_us-gaap_RangeMember_A80190C32A0F033DA4FA3D843898092D_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_A80190C32A0F033DA4FA3D843898092D" xlink:type="locator" />
    <definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_RangeAxis_7F5A57BE21084FB696603D843898E518" xlink:to="loc_us-gaap_RangeMember_A80190C32A0F033DA4FA3D843898092D" 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_5CE01AEC91DCB3643B773D84389860D1" xlink:type="locator" />
    <definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_RangeMember_A80190C32A0F033DA4FA3D843898092D" xlink:to="loc_us-gaap_MinimumMember_5CE01AEC91DCB3643B773D84389860D1" 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_B5AF8F1781FF50CB04BC3D843898D0DD" xlink:type="locator" />
    <definitionArc order="2" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_RangeMember_A80190C32A0F033DA4FA3D843898092D" xlink:to="loc_us-gaap_MaximumMember_B5AF8F1781FF50CB04BC3D843898D0DD" 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_B926AE8634B41ED629013D8438990DB7" xlink:type="locator" />
    <definitionArc order="3" xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_ScheduleOfShareBasedCompensationArrangementsByShareBasedPaymentAwardTable_542D2DAF3BAEE6629DB93D843898DE31" xlink:to="loc_us-gaap_AwardTypeAxis_B926AE8634B41ED629013D8438990DB7" 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_4F694B361C65E31B8F173D8438997C5A_default" xlink:type="locator" />
    <definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_AwardTypeAxis_B926AE8634B41ED629013D8438990DB7" xlink:to="loc_us-gaap_ShareBasedCompensationArrangementsByShareBasedPaymentAwardAwardTypeAndPlanNameDomain_4F694B361C65E31B8F173D8438997C5A_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_4F694B361C65E31B8F173D8438997C5A" xlink:type="locator" />
    <definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_AwardTypeAxis_B926AE8634B41ED629013D8438990DB7" xlink:to="loc_us-gaap_ShareBasedCompensationArrangementsByShareBasedPaymentAwardAwardTypeAndPlanNameDomain_4F694B361C65E31B8F173D8438997C5A" 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_4C911004734DB868AE8E3D84389914F9" xlink:type="locator" />
    <definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ShareBasedCompensationArrangementsByShareBasedPaymentAwardAwardTypeAndPlanNameDomain_4F694B361C65E31B8F173D8438997C5A" xlink:to="loc_us-gaap_RestrictedStockMember_4C911004734DB868AE8E3D84389914F9" 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_605D8B43EC7FB7DDD2033D843899652F" xlink:type="locator" />
    <definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardLineItems_880B880F5DDB25464C573D8438993242" xlink:to="loc_us-gaap_CommonStockCapitalSharesReservedForFutureIssuance_605D8B43EC7FB7DDD2033D843899652F" 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_FF3B082618340C95481B3D843899EE43" xlink:type="locator" />
    <definitionArc order="2" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardLineItems_880B880F5DDB25464C573D8438993242" xlink:to="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardSharesIssuedInPeriod_FF3B082618340C95481B3D843899EE43" 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_8328C2E195607B16DE2E3D843899234F" xlink:type="locator" />
    <definitionArc order="3" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardLineItems_880B880F5DDB25464C573D8438993242" xlink:to="loc_us-gaap_StockIssuedDuringPeriodSharesIssuedForServices_8328C2E195607B16DE2E3D843899234F" xlink:type="arc" />
    <loc xlink:href="oesx-20160630.xsd#oesx_ShareBasedCompensationArrangementByShareBasedPaymentAwardPerSharePrice" xlink:label="loc_oesx_ShareBasedCompensationArrangementByShareBasedPaymentAwardPerSharePrice_E28080FA6C893AA299193D84389973F4" xlink:type="locator" />
    <definitionArc order="4" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardLineItems_880B880F5DDB25464C573D8438993242" xlink:to="loc_oesx_ShareBasedCompensationArrangementByShareBasedPaymentAwardPerSharePrice_E28080FA6C893AA299193D84389973F4" xlink:type="arc" />
    <loc xlink:href="oesx-20160630.xsd#oesx_FairValueOfClosingCommonStockPrice" xlink:label="loc_oesx_FairValueOfClosingCommonStockPrice_5DE676487DC60833A4423D8759AF3419" xlink:type="locator" />
    <definitionArc order="5" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardLineItems_880B880F5DDB25464C573D8438993242" xlink:to="loc_oesx_FairValueOfClosingCommonStockPrice_5DE676487DC60833A4423D8759AF3419" xlink:type="arc" />
    <loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_EmployeeServiceShareBasedCompensationNonvestedAwardsTotalCompensationCostNotYetRecognized" xlink:label="loc_us-gaap_EmployeeServiceShareBasedCompensationNonvestedAwardsTotalCompensationCostNotYetRecognized_0E0D6FDC42D638AD1B313D8438997477" xlink:type="locator" />
    <definitionArc order="6" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardLineItems_880B880F5DDB25464C573D8438993242" xlink:to="loc_us-gaap_EmployeeServiceShareBasedCompensationNonvestedAwardsTotalCompensationCostNotYetRecognized_0E0D6FDC42D638AD1B313D8438997477" 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_C601BF7E38BD364129483D8691535661" xlink:type="locator" />
    <definitionArc order="7" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardLineItems_880B880F5DDB25464C573D8438993242" xlink:to="loc_us-gaap_EmployeeServiceShareBasedCompensationNonvestedAwardsTotalCompensationCostNotYetRecognizedPeriodForRecognition1_C601BF7E38BD364129483D8691535661" 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_9CFE82E77F4D4E0F71F23D8438993D21" xlink:type="locator" />
    <definitionArc order="8" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardLineItems_880B880F5DDB25464C573D8438993242" xlink:to="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionsGrantsInPeriodWeightedAverageGrantDateFairValue_9CFE82E77F4D4E0F71F23D8438993D21" xlink:type="arc" />
    <loc xlink:href="oesx-20160630.xsd#oesx_DeferredCompensationArrangementWithIndividualCompensationExpensePeriodOfRecognition" xlink:label="loc_oesx_DeferredCompensationArrangementWithIndividualCompensationExpensePeriodOfRecognition_794E511AA950F585693C3D84389964BE" xlink:type="locator" />
    <definitionArc order="9" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardLineItems_880B880F5DDB25464C573D8438993242" xlink:to="loc_oesx_DeferredCompensationArrangementWithIndividualCompensationExpensePeriodOfRecognition_794E511AA950F585693C3D84389964BE" xlink:type="arc" />
    <loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_DeferredCompensationArrangementWithIndividualCompensationExpense" xlink:label="loc_us-gaap_DeferredCompensationArrangementWithIndividualCompensationExpense_9B9C092B2F445945D74A3D8438994259" xlink:type="locator" />
    <definitionArc order="10" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardLineItems_880B880F5DDB25464C573D8438993242" xlink:to="loc_us-gaap_DeferredCompensationArrangementWithIndividualCompensationExpense_9B9C092B2F445945D74A3D8438994259" xlink:type="arc" />
  </definitionLink>
  <definitionLink xlink:role="http://www.oesx.com/role/StockOptionsAndRestrictedSharesOutstandingNonVestedStockOptionsDetails" xlink:type="extended" />
  <definitionLink xlink:role="http://www.oesx.com/role/StockOptionsAndRestrictedSharesRestrictedSharesDetails" 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_1F7499E4249DDF4915B93CC3A86DCD89" 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_003EE0BD4794B91E921F3CC3A86CF1E1" xlink:type="locator" />
    <definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/all" xlink:from="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardLineItems_1F7499E4249DDF4915B93CC3A86DCD89" xlink:to="loc_us-gaap_ScheduleOfShareBasedCompensationArrangementsByShareBasedPaymentAwardTable_003EE0BD4794B91E921F3CC3A86CF1E1" 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_BF9766C8EE4C32FE13B93CC3A86C7DBC" xlink:type="locator" />
    <definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_ScheduleOfShareBasedCompensationArrangementsByShareBasedPaymentAwardTable_003EE0BD4794B91E921F3CC3A86CF1E1" xlink:to="loc_us-gaap_AwardTypeAxis_BF9766C8EE4C32FE13B93CC3A86C7DBC" 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_277C109C101CFBA146373CC3A86C1D1F_default" xlink:type="locator" />
    <definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_AwardTypeAxis_BF9766C8EE4C32FE13B93CC3A86C7DBC" xlink:to="loc_us-gaap_ShareBasedCompensationArrangementsByShareBasedPaymentAwardAwardTypeAndPlanNameDomain_277C109C101CFBA146373CC3A86C1D1F_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_277C109C101CFBA146373CC3A86C1D1F" xlink:type="locator" />
    <definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_AwardTypeAxis_BF9766C8EE4C32FE13B93CC3A86C7DBC" xlink:to="loc_us-gaap_ShareBasedCompensationArrangementsByShareBasedPaymentAwardAwardTypeAndPlanNameDomain_277C109C101CFBA146373CC3A86C1D1F" 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_DD87EAC2F2C3D368E3A83CC3A86DBA1A" xlink:type="locator" />
    <definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ShareBasedCompensationArrangementsByShareBasedPaymentAwardAwardTypeAndPlanNameDomain_277C109C101CFBA146373CC3A86C1D1F" xlink:to="loc_us-gaap_RestrictedStockMember_DD87EAC2F2C3D368E3A83CC3A86DBA1A" 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_80C365BEE8BD3964D1F13CC3A86D188D" xlink:type="locator" />
    <definitionArc order="2" xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_ScheduleOfShareBasedCompensationArrangementsByShareBasedPaymentAwardTable_003EE0BD4794B91E921F3CC3A86CF1E1" xlink:to="loc_us-gaap_RangeAxis_80C365BEE8BD3964D1F13CC3A86D188D" 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_F6B7A6C0C83E9F32BDE63CC3A86DF4AD_default" xlink:type="locator" />
    <definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_RangeAxis_80C365BEE8BD3964D1F13CC3A86D188D" xlink:to="loc_us-gaap_RangeMember_F6B7A6C0C83E9F32BDE63CC3A86DF4AD_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_F6B7A6C0C83E9F32BDE63CC3A86DF4AD" xlink:type="locator" />
    <definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_RangeAxis_80C365BEE8BD3964D1F13CC3A86D188D" xlink:to="loc_us-gaap_RangeMember_F6B7A6C0C83E9F32BDE63CC3A86DF4AD" 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_6204EDFCF7F60AC007683CC3A86D914E" xlink:type="locator" />
    <definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_RangeMember_F6B7A6C0C83E9F32BDE63CC3A86DF4AD" xlink:to="loc_us-gaap_MinimumMember_6204EDFCF7F60AC007683CC3A86D914E" 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_8D1A5B8FC820B0986CB93CC3A86DADD9" xlink:type="locator" />
    <definitionArc order="2" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_RangeMember_F6B7A6C0C83E9F32BDE63CC3A86DF4AD" xlink:to="loc_us-gaap_MaximumMember_8D1A5B8FC820B0986CB93CC3A86DADD9" xlink:type="arc" />
    <loc xlink:href="oesx-20160630.xsd#oesx_RestrictedSharesIssuedToKeyEmployeesAbstract" xlink:label="loc_oesx_RestrictedSharesIssuedToKeyEmployeesAbstract_03162E62B811B92289233CC3A86D2570" xlink:type="locator" />
    <definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardLineItems_1F7499E4249DDF4915B93CC3A86DCD89" xlink:to="loc_oesx_RestrictedSharesIssuedToKeyEmployeesAbstract_03162E62B811B92289233CC3A86D2570" 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_99BB5D6ECFDF302499403CC3A86D20EC" xlink:type="locator" />
    <definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_oesx_RestrictedSharesIssuedToKeyEmployeesAbstract_03162E62B811B92289233CC3A86D2570" xlink:to="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionsNonvestedNumber_99BB5D6ECFDF302499403CC3A86D20EC" 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_FE632F6C6913E250A2EF3CC3A86DDDCB" xlink:type="locator" />
    <definitionArc order="2" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_oesx_RestrictedSharesIssuedToKeyEmployeesAbstract_03162E62B811B92289233CC3A86D2570" xlink:to="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionsGrantsInPeriod_FE632F6C6913E250A2EF3CC3A86DDDCB" 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_06AF2AB632DBBCE527403CC3A86D5D86" xlink:type="locator" />
    <definitionArc order="3" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_oesx_RestrictedSharesIssuedToKeyEmployeesAbstract_03162E62B811B92289233CC3A86D2570" xlink:to="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionsVestedInPeriod_06AF2AB632DBBCE527403CC3A86D5D86" 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_56FC8C6BF33606693D423CC3A86DDA9F" xlink:type="locator" />
    <definitionArc order="4" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_oesx_RestrictedSharesIssuedToKeyEmployeesAbstract_03162E62B811B92289233CC3A86D2570" xlink:to="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionsForfeitedInPeriod_56FC8C6BF33606693D423CC3A86DDA9F" 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_202D35EB7BB94041092D3CC3A86D251D" xlink:type="locator" />
    <definitionArc order="6" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_oesx_RestrictedSharesIssuedToKeyEmployeesAbstract_03162E62B811B92289233CC3A86D2570" xlink:to="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionsGrantsInPeriodWeightedAverageGrantDateFairValue_202D35EB7BB94041092D3CC3A86D251D" xlink:type="arc" />
  </definitionLink>
  <definitionLink xlink:role="http://www.oesx.com/role/StockOptionsAndRestrictedSharesStockBasedCompensationDetails" 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_6BEE5C3AFC6F5E7F3D503CC3A5BA6D4A" 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_26DC5AF5559304EDC61D3CC3A5B789E6" xlink:type="locator" />
    <definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/all" xlink:from="loc_us-gaap_EmployeeServiceShareBasedCompensationAllocationOfRecognizedPeriodCostsLineItems_6BEE5C3AFC6F5E7F3D503CC3A5BA6D4A" xlink:to="loc_us-gaap_ScheduleOfEmployeeServiceShareBasedCompensationAllocationOfRecognizedPeriodCostsTable_26DC5AF5559304EDC61D3CC3A5B789E6" 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_472EAB76BC4C5B6F2CEB3CC3A5B8074B" xlink:type="locator" />
    <definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_ScheduleOfEmployeeServiceShareBasedCompensationAllocationOfRecognizedPeriodCostsTable_26DC5AF5559304EDC61D3CC3A5B789E6" xlink:to="loc_us-gaap_IncomeStatementLocationAxis_472EAB76BC4C5B6F2CEB3CC3A5B8074B" 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_640F9722276A0C9799E83CC3A5B82ABA_default" xlink:type="locator" />
    <definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_IncomeStatementLocationAxis_472EAB76BC4C5B6F2CEB3CC3A5B8074B" xlink:to="loc_us-gaap_IncomeStatementLocationDomain_640F9722276A0C9799E83CC3A5B82ABA_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_640F9722276A0C9799E83CC3A5B82ABA" xlink:type="locator" />
    <definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_IncomeStatementLocationAxis_472EAB76BC4C5B6F2CEB3CC3A5B8074B" xlink:to="loc_us-gaap_IncomeStatementLocationDomain_640F9722276A0C9799E83CC3A5B82ABA" 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_FBEFD008496D93D4BF6C3CC3A5B806A4" xlink:type="locator" />
    <definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_IncomeStatementLocationDomain_640F9722276A0C9799E83CC3A5B82ABA" xlink:to="loc_us-gaap_CostOfSalesMember_FBEFD008496D93D4BF6C3CC3A5B806A4" 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_DD304540A0AF3EE46CA33CC3A5B93040" xlink:type="locator" />
    <definitionArc order="2" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_IncomeStatementLocationDomain_640F9722276A0C9799E83CC3A5B82ABA" xlink:to="loc_us-gaap_GeneralAndAdministrativeExpenseMember_DD304540A0AF3EE46CA33CC3A5B93040" 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_5DC084FB5E86F6EFD92F3CC3A5B99358" xlink:type="locator" />
    <definitionArc order="3" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_IncomeStatementLocationDomain_640F9722276A0C9799E83CC3A5B82ABA" xlink:to="loc_us-gaap_SellingAndMarketingExpenseMember_5DC084FB5E86F6EFD92F3CC3A5B99358" 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_EC5AE2A997347E7D327A3CC3A5BAF4AF" xlink:type="locator" />
    <definitionArc order="4" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_IncomeStatementLocationDomain_640F9722276A0C9799E83CC3A5B82ABA" xlink:to="loc_us-gaap_ResearchAndDevelopmentExpenseMember_EC5AE2A997347E7D327A3CC3A5BAF4AF" 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_98516FF7053FC3A48C3D3CC3A5BA47E1" xlink:type="locator" />
    <definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_EmployeeServiceShareBasedCompensationAllocationOfRecognizedPeriodCostsLineItems_6BEE5C3AFC6F5E7F3D503CC3A5BA6D4A" xlink:to="loc_us-gaap_ShareBasedCompensationAllocationAndClassificationInFinancialStatementsAbstract_98516FF7053FC3A48C3D3CC3A5BA47E1" 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_7F601249E1F0292D73083CC3A5BA5E43" xlink:type="locator" />
    <definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ShareBasedCompensationAllocationAndClassificationInFinancialStatementsAbstract_98516FF7053FC3A48C3D3CC3A5BA47E1" xlink:to="loc_us-gaap_AllocatedShareBasedCompensationExpense_7F601249E1F0292D73083CC3A5BA5E43" xlink:type="arc" />
  </definitionLink>
  <definitionLink xlink:role="http://www.oesx.com/role/StockOptionsAndRestrictedSharesSummaryOfStockOptionAndStockIncentiveAwardPlansDetails" 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_E2852B2F8EB7AA092A7746B93F156F8E" 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_9F0299FE4FD11976D79C46B93F146FF2" xlink:type="locator" />
    <definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/all" xlink:from="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardLineItems_E2852B2F8EB7AA092A7746B93F156F8E" xlink:to="loc_us-gaap_ScheduleOfShareBasedCompensationArrangementsByShareBasedPaymentAwardTable_9F0299FE4FD11976D79C46B93F146FF2" 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_E9DF2063D35B2B4C813846B93F14906D" xlink:type="locator" />
    <definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_ScheduleOfShareBasedCompensationArrangementsByShareBasedPaymentAwardTable_9F0299FE4FD11976D79C46B93F146FF2" xlink:to="loc_us-gaap_AwardTypeAxis_E9DF2063D35B2B4C813846B93F14906D" 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_CC76210246CD793A638546B93F141EF8_default" xlink:type="locator" />
    <definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_AwardTypeAxis_E9DF2063D35B2B4C813846B93F14906D" xlink:to="loc_us-gaap_ShareBasedCompensationArrangementsByShareBasedPaymentAwardAwardTypeAndPlanNameDomain_CC76210246CD793A638546B93F141EF8_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_CC76210246CD793A638546B93F141EF8" xlink:type="locator" />
    <definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_AwardTypeAxis_E9DF2063D35B2B4C813846B93F14906D" xlink:to="loc_us-gaap_ShareBasedCompensationArrangementsByShareBasedPaymentAwardAwardTypeAndPlanNameDomain_CC76210246CD793A638546B93F141EF8" 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_F85A352D08C5B7C152BF46B93F1541E0" xlink:type="locator" />
    <definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ShareBasedCompensationArrangementsByShareBasedPaymentAwardAwardTypeAndPlanNameDomain_CC76210246CD793A638546B93F141EF8" xlink:to="loc_us-gaap_EmployeeStockOptionMember_F85A352D08C5B7C152BF46B93F1541E0" 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_05A725E30D972EF4B5E446B93F15A8FF" xlink:type="locator" />
    <definitionArc order="2" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ShareBasedCompensationArrangementsByShareBasedPaymentAwardAwardTypeAndPlanNameDomain_CC76210246CD793A638546B93F141EF8" xlink:to="loc_us-gaap_RestrictedStockMember_05A725E30D972EF4B5E446B93F15A8FF" xlink:type="arc" />
    <loc xlink:href="oesx-20160630.xsd#oesx_ShareBasedCompensationArrangementByShareBasedPaymentAwardNumberOfSharesAvailableForGrantRollForward" xlink:label="loc_oesx_ShareBasedCompensationArrangementByShareBasedPaymentAwardNumberOfSharesAvailableForGrantRollForward_81C7E5E6BE1EFFEB915846B93F15F7BC" xlink:type="locator" />
    <definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardLineItems_E2852B2F8EB7AA092A7746B93F156F8E" xlink:to="loc_oesx_ShareBasedCompensationArrangementByShareBasedPaymentAwardNumberOfSharesAvailableForGrantRollForward_81C7E5E6BE1EFFEB915846B93F15F7BC" 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_D270D4326E09DC65060946B93F15A88A" xlink:type="locator" />
    <definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_oesx_ShareBasedCompensationArrangementByShareBasedPaymentAwardNumberOfSharesAvailableForGrantRollForward_81C7E5E6BE1EFFEB915846B93F15F7BC" xlink:to="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardNumberOfSharesAvailableForGrant_D270D4326E09DC65060946B93F15A88A" xlink:type="arc" />
    <loc xlink:href="oesx-20160630.xsd#oesx_ShareBasedCompensationArrangementByShareBasedPaymentAwardNumberOfSharesAvailableForGrantSharesIssuedToEmployee" xlink:label="loc_oesx_ShareBasedCompensationArrangementByShareBasedPaymentAwardNumberOfSharesAvailableForGrantSharesIssuedToEmployee_517D1AF0AE4A9543CB5446B93F159DBE" xlink:type="locator" />
    <definitionArc order="2" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_oesx_ShareBasedCompensationArrangementByShareBasedPaymentAwardNumberOfSharesAvailableForGrantRollForward_81C7E5E6BE1EFFEB915846B93F15F7BC" xlink:to="loc_oesx_ShareBasedCompensationArrangementByShareBasedPaymentAwardNumberOfSharesAvailableForGrantSharesIssuedToEmployee_517D1AF0AE4A9543CB5446B93F159DBE" xlink:type="arc" />
    <loc xlink:href="oesx-20160630.xsd#oesx_ShareBasedCompensationArrangementByShareBasedPaymentAwardNumberOfSharesAvailableForGrantSharesIssuedToNonEmployee" xlink:label="loc_oesx_ShareBasedCompensationArrangementByShareBasedPaymentAwardNumberOfSharesAvailableForGrantSharesIssuedToNonEmployee_506967C1DC4E8589475546B93F153159" xlink:type="locator" />
    <definitionArc order="3" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_oesx_ShareBasedCompensationArrangementByShareBasedPaymentAwardNumberOfSharesAvailableForGrantRollForward_81C7E5E6BE1EFFEB915846B93F15F7BC" xlink:to="loc_oesx_ShareBasedCompensationArrangementByShareBasedPaymentAwardNumberOfSharesAvailableForGrantSharesIssuedToNonEmployee_506967C1DC4E8589475546B93F153159" xlink:type="arc" />
    <loc xlink:href="oesx-20160630.xsd#oesx_ShareBasedCompensationArrangementByShareBasedPaymentAwardNumberOfSharesAvailableForGrantForfeited" xlink:label="loc_oesx_ShareBasedCompensationArrangementByShareBasedPaymentAwardNumberOfSharesAvailableForGrantForfeited_0FE58E1615A27710081A46B93F155EA2" xlink:type="locator" />
    <definitionArc order="4" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_oesx_ShareBasedCompensationArrangementByShareBasedPaymentAwardNumberOfSharesAvailableForGrantRollForward_81C7E5E6BE1EFFEB915846B93F15F7BC" xlink:to="loc_oesx_ShareBasedCompensationArrangementByShareBasedPaymentAwardNumberOfSharesAvailableForGrantForfeited_0FE58E1615A27710081A46B93F155EA2" xlink:type="arc" />
    <loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardOptionsOutstandingRollForward" xlink:label="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardOptionsOutstandingRollForward_C1D98981EF801254F54046B93F15D174" xlink:type="locator" />
    <definitionArc order="2" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardLineItems_E2852B2F8EB7AA092A7746B93F156F8E" xlink:to="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardOptionsOutstandingRollForward_C1D98981EF801254F54046B93F15D174" 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_B75BA2DBBEC0919E65FA46B93F1534DA" xlink:type="locator" />
    <definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardOptionsOutstandingRollForward_C1D98981EF801254F54046B93F15D174" xlink:to="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardOptionsOutstandingNumber_B75BA2DBBEC0919E65FA46B93F1534DA" xlink:type="arc" />
    <loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardOptionsGrantsInPeriodGross" xlink:label="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardOptionsGrantsInPeriodGross_E064A8F4386A96E3C17846B93F156894" xlink:type="locator" />
    <definitionArc order="2" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardOptionsOutstandingRollForward_C1D98981EF801254F54046B93F15D174" xlink:to="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardOptionsGrantsInPeriodGross_E064A8F4386A96E3C17846B93F156894" xlink:type="arc" />
    <loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardOptionsForfeituresInPeriod" xlink:label="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardOptionsForfeituresInPeriod_5DE8C8B2795206CD391746B93F1548FE" xlink:type="locator" />
    <definitionArc order="3" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardOptionsOutstandingRollForward_C1D98981EF801254F54046B93F15D174" xlink:to="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardOptionsForfeituresInPeriod_5DE8C8B2795206CD391746B93F1548FE" xlink:type="arc" />
    <loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_StockIssuedDuringPeriodSharesStockOptionsExercised" xlink:label="loc_us-gaap_StockIssuedDuringPeriodSharesStockOptionsExercised_E4A71DA80A87E0D3EE5746B93F15B5D7" xlink:type="locator" />
    <definitionArc order="4" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardOptionsOutstandingRollForward_C1D98981EF801254F54046B93F15D174" xlink:to="loc_us-gaap_StockIssuedDuringPeriodSharesStockOptionsExercised_E4A71DA80A87E0D3EE5746B93F15B5D7" 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_F81435BC09068E427B3046B93F15405F" xlink:type="locator" />
    <definitionArc order="3" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardLineItems_E2852B2F8EB7AA092A7746B93F156F8E" xlink:to="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardOptionsExercisableNumber_F81435BC09068E427B3046B93F15405F" xlink:type="arc" />
    <loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardOptionsOutstandingWeightedAverageExercisePriceRollforward" xlink:label="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardOptionsOutstandingWeightedAverageExercisePriceRollforward_A87D9EACB1C98835196E46B93F153E08" xlink:type="locator" />
    <definitionArc order="4" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardLineItems_E2852B2F8EB7AA092A7746B93F156F8E" xlink:to="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardOptionsOutstandingWeightedAverageExercisePriceRollforward_A87D9EACB1C98835196E46B93F153E08" 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_770409B371F7061461D246B93F152B98" xlink:type="locator" />
    <definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardOptionsOutstandingWeightedAverageExercisePriceRollforward_A87D9EACB1C98835196E46B93F153E08" xlink:to="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardOptionsOutstandingWeightedAverageExercisePrice_770409B371F7061461D246B93F152B98" xlink:type="arc" />
    <loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_ShareBasedCompensationArrangementsByShareBasedPaymentAwardOptionsGrantsInPeriodWeightedAverageExercisePrice" xlink:label="loc_us-gaap_ShareBasedCompensationArrangementsByShareBasedPaymentAwardOptionsGrantsInPeriodWeightedAverageExercisePrice_C61FC3982DBEAC16308946B93F162652" xlink:type="locator" />
    <definitionArc order="2" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardOptionsOutstandingWeightedAverageExercisePriceRollforward_A87D9EACB1C98835196E46B93F153E08" xlink:to="loc_us-gaap_ShareBasedCompensationArrangementsByShareBasedPaymentAwardOptionsGrantsInPeriodWeightedAverageExercisePrice_C61FC3982DBEAC16308946B93F162652" xlink:type="arc" />
    <loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_ShareBasedCompensationArrangementsByShareBasedPaymentAwardOptionsForfeituresInPeriodWeightedAverageExercisePrice" xlink:label="loc_us-gaap_ShareBasedCompensationArrangementsByShareBasedPaymentAwardOptionsForfeituresInPeriodWeightedAverageExercisePrice_DD5ED4B965B01A4FE4B246B93F16FCCE" xlink:type="locator" />
    <definitionArc order="3" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardOptionsOutstandingWeightedAverageExercisePriceRollforward_A87D9EACB1C98835196E46B93F153E08" xlink:to="loc_us-gaap_ShareBasedCompensationArrangementsByShareBasedPaymentAwardOptionsForfeituresInPeriodWeightedAverageExercisePrice_DD5ED4B965B01A4FE4B246B93F16FCCE" xlink:type="arc" />
    <loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_ShareBasedCompensationArrangementsByShareBasedPaymentAwardOptionsExercisesInPeriodWeightedAverageExercisePrice" xlink:label="loc_us-gaap_ShareBasedCompensationArrangementsByShareBasedPaymentAwardOptionsExercisesInPeriodWeightedAverageExercisePrice_A1BB2402BB725B6363AA46B93F16C737" xlink:type="locator" />
    <definitionArc order="4" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardOptionsOutstandingWeightedAverageExercisePriceRollforward_A87D9EACB1C98835196E46B93F153E08" xlink:to="loc_us-gaap_ShareBasedCompensationArrangementsByShareBasedPaymentAwardOptionsExercisesInPeriodWeightedAverageExercisePrice_A1BB2402BB725B6363AA46B93F16C737" xlink:type="arc" />
    <loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardOptionsExercisableWeightedAverageExercisePrice" xlink:label="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardOptionsExercisableWeightedAverageExercisePrice_EDF744873471680D7D7946B93F167A83" xlink:type="locator" />
    <definitionArc order="5" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardLineItems_E2852B2F8EB7AA092A7746B93F156F8E" xlink:to="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardOptionsExercisableWeightedAverageExercisePrice_EDF744873471680D7D7946B93F167A83" 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_AA8B9DC41650B206742146B93F169A14" xlink:type="locator" />
    <definitionArc order="6" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardLineItems_E2852B2F8EB7AA092A7746B93F156F8E" xlink:to="loc_us-gaap_SharebasedCompensationArrangementBySharebasedPaymentAwardOptionsOutstandingWeightedAverageRemainingContractualTerm2_AA8B9DC41650B206742146B93F169A14" xlink:type="arc" />
    <loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_SharebasedCompensationArrangementBySharebasedPaymentAwardOptionsExercisableWeightedAverageRemainingContractualTerm1" xlink:label="loc_us-gaap_SharebasedCompensationArrangementBySharebasedPaymentAwardOptionsExercisableWeightedAverageRemainingContractualTerm1_E8F3383D58F7F3F9EDB046B93F16B06B" xlink:type="locator" />
    <definitionArc order="7" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardLineItems_E2852B2F8EB7AA092A7746B93F156F8E" xlink:to="loc_us-gaap_SharebasedCompensationArrangementBySharebasedPaymentAwardOptionsExercisableWeightedAverageRemainingContractualTerm1_E8F3383D58F7F3F9EDB046B93F16B06B" xlink:type="arc" />
    <loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardOptionsOutstandingIntrinsicValue" xlink:label="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardOptionsOutstandingIntrinsicValue_C797C1376E211069E8A746B93F169C31" xlink:type="locator" />
    <definitionArc order="8" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardLineItems_E2852B2F8EB7AA092A7746B93F156F8E" xlink:to="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardOptionsOutstandingIntrinsicValue_C797C1376E211069E8A746B93F169C31" xlink:type="arc" />
    <loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_SharebasedCompensationArrangementBySharebasedPaymentAwardOptionsExercisableIntrinsicValue1" xlink:label="loc_us-gaap_SharebasedCompensationArrangementBySharebasedPaymentAwardOptionsExercisableIntrinsicValue1_1FCA31F89BE242619FE746B93F166996" xlink:type="locator" />
    <definitionArc order="9" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardLineItems_E2852B2F8EB7AA092A7746B93F156F8E" xlink:to="loc_us-gaap_SharebasedCompensationArrangementBySharebasedPaymentAwardOptionsExercisableIntrinsicValue1_1FCA31F89BE242619FE746B93F166996" xlink:type="arc" />
  </definitionLink>
  <definitionLink xlink:role="http://www.oesx.com/role/StockOptionsAndRestrictedSharesTables" 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_B4121EDAE69A9E40583A46CDA45E1E81" 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_1474D4DBA64ED17ECB1446CDA45804E4" xlink:type="locator" />
    <definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/all" xlink:from="loc_us-gaap_ConcentrationRiskLineItems_B4121EDAE69A9E40583A46CDA45E1E81" xlink:to="loc_us-gaap_ConcentrationRiskTable_1474D4DBA64ED17ECB1446CDA45804E4" 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_AE2E02C85777B82107DD46CDA4586CFF" xlink:type="locator" />
    <definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_ConcentrationRiskTable_1474D4DBA64ED17ECB1446CDA45804E4" xlink:to="loc_us-gaap_StatementBusinessSegmentsAxis_AE2E02C85777B82107DD46CDA4586CFF" 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_F802DD6641D28586E00246CDA458745D_default" xlink:type="locator" />
    <definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_StatementBusinessSegmentsAxis_AE2E02C85777B82107DD46CDA4586CFF" xlink:to="loc_us-gaap_SegmentDomain_F802DD6641D28586E00246CDA458745D_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_F802DD6641D28586E00246CDA458745D" xlink:type="locator" />
    <definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_StatementBusinessSegmentsAxis_AE2E02C85777B82107DD46CDA4586CFF" xlink:to="loc_us-gaap_SegmentDomain_F802DD6641D28586E00246CDA458745D" xlink:type="arc" />
    <loc xlink:href="oesx-20160630.xsd#oesx_EngineeredSystemsMember" xlink:label="loc_oesx_EngineeredSystemsMember_DD018951A1F26E6C041846CDA458652E" xlink:type="locator" />
    <definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_SegmentDomain_F802DD6641D28586E00246CDA458745D" xlink:to="loc_oesx_EngineeredSystemsMember_DD018951A1F26E6C041846CDA458652E" 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_39E9CD48B705E76A5DBB46CDA4591772" xlink:type="locator" />
    <definitionArc order="2" xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_ConcentrationRiskTable_1474D4DBA64ED17ECB1446CDA45804E4" xlink:to="loc_us-gaap_ConcentrationRiskByBenchmarkAxis_39E9CD48B705E76A5DBB46CDA4591772" 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_89D5C593F485A8B624F446CDA45933EA_default" xlink:type="locator" />
    <definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_ConcentrationRiskByBenchmarkAxis_39E9CD48B705E76A5DBB46CDA4591772" xlink:to="loc_us-gaap_ConcentrationRiskBenchmarkDomain_89D5C593F485A8B624F446CDA45933EA_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_89D5C593F485A8B624F446CDA45933EA" xlink:type="locator" />
    <definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_ConcentrationRiskByBenchmarkAxis_39E9CD48B705E76A5DBB46CDA4591772" xlink:to="loc_us-gaap_ConcentrationRiskBenchmarkDomain_89D5C593F485A8B624F446CDA45933EA" 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_4AADFA023CAB3B9EA5E946CDA45956D5" xlink:type="locator" />
    <definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ConcentrationRiskBenchmarkDomain_89D5C593F485A8B624F446CDA45933EA" xlink:to="loc_us-gaap_CostOfSalesMember_4AADFA023CAB3B9EA5E946CDA45956D5" xlink:type="arc" />
    <loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_SalesRevenueServicesNetMember" xlink:label="loc_us-gaap_SalesRevenueServicesNetMember_B9706CDCEA7D02DE526146CDA459DC24" xlink:type="locator" />
    <definitionArc order="2" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ConcentrationRiskBenchmarkDomain_89D5C593F485A8B624F446CDA45933EA" xlink:to="loc_us-gaap_SalesRevenueServicesNetMember_B9706CDCEA7D02DE526146CDA459DC24" 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_58ADC04CC7498A3A7E2E46CDA45934F6" xlink:type="locator" />
    <definitionArc order="3" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ConcentrationRiskBenchmarkDomain_89D5C593F485A8B624F446CDA45933EA" xlink:to="loc_us-gaap_AccountsReceivableMember_58ADC04CC7498A3A7E2E46CDA45934F6" 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_D76D5AD9738F34AFA61A46CDA4599CC6" xlink:type="locator" />
    <definitionArc order="3" xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_ConcentrationRiskTable_1474D4DBA64ED17ECB1446CDA45804E4" xlink:to="loc_us-gaap_ConcentrationRiskByTypeAxis_D76D5AD9738F34AFA61A46CDA4599CC6" 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_0DF35444E49285CBE07846CDA4590F24_default" xlink:type="locator" />
    <definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_ConcentrationRiskByTypeAxis_D76D5AD9738F34AFA61A46CDA4599CC6" xlink:to="loc_us-gaap_ConcentrationRiskTypeDomain_0DF35444E49285CBE07846CDA4590F24_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_0DF35444E49285CBE07846CDA4590F24" xlink:type="locator" />
    <definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_ConcentrationRiskByTypeAxis_D76D5AD9738F34AFA61A46CDA4599CC6" xlink:to="loc_us-gaap_ConcentrationRiskTypeDomain_0DF35444E49285CBE07846CDA4590F24" 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_1BC9B217A2185026846346CDA4593DCF" xlink:type="locator" />
    <definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ConcentrationRiskTypeDomain_0DF35444E49285CBE07846CDA4590F24" xlink:to="loc_us-gaap_SupplierConcentrationRiskMember_1BC9B217A2185026846346CDA4593DCF" 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_4779E9910543F7EF70F746CDA459DF1A" xlink:type="locator" />
    <definitionArc order="2" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ConcentrationRiskTypeDomain_0DF35444E49285CBE07846CDA4590F24" xlink:to="loc_us-gaap_CustomerConcentrationRiskMember_4779E9910543F7EF70F746CDA459DF1A" xlink:type="arc" />
    <loc xlink:href="oesx-20160630.xsd#oesx_NumberofFinancialInstitutions" xlink:label="loc_oesx_NumberofFinancialInstitutions_55EB4B4A20FFD3BB45B946CDA45FCCCF" xlink:type="locator" />
    <definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ConcentrationRiskLineItems_B4121EDAE69A9E40583A46CDA45E1E81" xlink:to="loc_oesx_NumberofFinancialInstitutions_55EB4B4A20FFD3BB45B946CDA45FCCCF" 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_E9AE573EBDA9E21E5C7246CDA45FDFA4" xlink:type="locator" />
    <definitionArc order="2" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ConcentrationRiskLineItems_B4121EDAE69A9E40583A46CDA45E1E81" xlink:to="loc_us-gaap_ConcentrationRiskPercentage1_E9AE573EBDA9E21E5C7246CDA45FDFA4" xlink:type="arc" />
    <loc xlink:href="oesx-20160630.xsd#oesx_ConcentrationRiskNumberOfEntitiesInvolvedInRiskCalculation" xlink:label="loc_oesx_ConcentrationRiskNumberOfEntitiesInvolvedInRiskCalculation_511CAEF9B5D5EED8E0FF46CDA45F961F" xlink:type="locator" />
    <definitionArc order="3" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ConcentrationRiskLineItems_B4121EDAE69A9E40583A46CDA45E1E81" xlink:to="loc_oesx_ConcentrationRiskNumberOfEntitiesInvolvedInRiskCalculation_511CAEF9B5D5EED8E0FF46CDA45F961F" 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_614C624593147EBD2E4046CDA45F6F5C" xlink:type="locator" />
    <definitionArc order="4" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ConcentrationRiskLineItems_B4121EDAE69A9E40583A46CDA45E1E81" xlink:to="loc_us-gaap_ProductWarrantyAccrual_614C624593147EBD2E4046CDA45F6F5C" 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_EA57C7A83FA244296C213D8438E0C97D" 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_8E85193076DE43FE6F9D3D8438DF3101" xlink:type="locator" />
    <definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/all" xlink:from="loc_us-gaap_AntidilutiveSecuritiesExcludedFromComputationOfEarningsPerShareLineItems_EA57C7A83FA244296C213D8438E0C97D" xlink:to="loc_us-gaap_ScheduleOfAntidilutiveSecuritiesExcludedFromComputationOfEarningsPerShareTable_8E85193076DE43FE6F9D3D8438DF3101" 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_B6920ED2DFA67EAFE32B3D8438DF2448" xlink:type="locator" />
    <definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_ScheduleOfAntidilutiveSecuritiesExcludedFromComputationOfEarningsPerShareTable_8E85193076DE43FE6F9D3D8438DF3101" xlink:to="loc_us-gaap_AntidilutiveSecuritiesExcludedFromComputationOfEarningsPerShareByAntidilutiveSecuritiesAxis_B6920ED2DFA67EAFE32B3D8438DF2448" 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_03F7FDF8C579C47438673D8438DF82BE_default" xlink:type="locator" />
    <definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_AntidilutiveSecuritiesExcludedFromComputationOfEarningsPerShareByAntidilutiveSecuritiesAxis_B6920ED2DFA67EAFE32B3D8438DF2448" xlink:to="loc_us-gaap_AntidilutiveSecuritiesNameDomain_03F7FDF8C579C47438673D8438DF82BE_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_03F7FDF8C579C47438673D8438DF82BE" xlink:type="locator" />
    <definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_AntidilutiveSecuritiesExcludedFromComputationOfEarningsPerShareByAntidilutiveSecuritiesAxis_B6920ED2DFA67EAFE32B3D8438DF2448" xlink:to="loc_us-gaap_AntidilutiveSecuritiesNameDomain_03F7FDF8C579C47438673D8438DF82BE" 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_34D04AEC682E4A8494D63D8438E0C640" xlink:type="locator" />
    <definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_AntidilutiveSecuritiesNameDomain_03F7FDF8C579C47438673D8438DF82BE" xlink:to="loc_us-gaap_EmployeeStockOptionMember_34D04AEC682E4A8494D63D8438E0C640" 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_549983AE8568D879E8043D8438E072D3" xlink:type="locator" />
    <definitionArc order="2" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_AntidilutiveSecuritiesNameDomain_03F7FDF8C579C47438673D8438DF82BE" xlink:to="loc_us-gaap_RestrictedStockMember_549983AE8568D879E8043D8438E072D3" xlink:type="arc" />
    <loc xlink:href="oesx-20160630.xsd#oesx_AntidilutiveSharesExcludedFromComputationOfEarningsPerShareAbstract" xlink:label="loc_oesx_AntidilutiveSharesExcludedFromComputationOfEarningsPerShareAbstract_89EFE3BA307E78187DEF3D8438E0C15E" xlink:type="locator" />
    <definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_AntidilutiveSecuritiesExcludedFromComputationOfEarningsPerShareLineItems_EA57C7A83FA244296C213D8438E0C97D" xlink:to="loc_oesx_AntidilutiveSharesExcludedFromComputationOfEarningsPerShareAbstract_89EFE3BA307E78187DEF3D8438E0C15E" 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_B2F05BCF5FB8C724D8CD3D8438E093E4" xlink:type="locator" />
    <definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_oesx_AntidilutiveSharesExcludedFromComputationOfEarningsPerShareAbstract_89EFE3BA307E78187DEF3D8438E0C15E" xlink:to="loc_us-gaap_AntidilutiveSecuritiesExcludedFromComputationOfEarningsPerShareAmount_B2F05BCF5FB8C724D8CD3D8438E093E4" 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_PropertyPlantAndEquipmentLineItems" xlink:label="loc_us-gaap_PropertyPlantAndEquipmentLineItems_7658676BDF771580CEB53CC842002E59" 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_70F4E03975D2C3439F7D3CC842004872" xlink:type="locator" />
    <definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/all" xlink:from="loc_us-gaap_PropertyPlantAndEquipmentLineItems_7658676BDF771580CEB53CC842002E59" xlink:to="loc_us-gaap_ScheduleOfPropertyPlantAndEquipmentTable_70F4E03975D2C3439F7D3CC842004872" 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_AFCBC5494CF385E9E0733CC84200CE65" xlink:type="locator" />
    <definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_ScheduleOfPropertyPlantAndEquipmentTable_70F4E03975D2C3439F7D3CC842004872" xlink:to="loc_us-gaap_PropertyPlantAndEquipmentByTypeAxis_AFCBC5494CF385E9E0733CC84200CE65" 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_CC57E61ABFCB256EEC083CC84200E0A2_default" xlink:type="locator" />
    <definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_PropertyPlantAndEquipmentByTypeAxis_AFCBC5494CF385E9E0733CC84200CE65" xlink:to="loc_us-gaap_PropertyPlantAndEquipmentTypeDomain_CC57E61ABFCB256EEC083CC84200E0A2_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_CC57E61ABFCB256EEC083CC84200E0A2" xlink:type="locator" />
    <definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_PropertyPlantAndEquipmentByTypeAxis_AFCBC5494CF385E9E0733CC84200CE65" xlink:to="loc_us-gaap_PropertyPlantAndEquipmentTypeDomain_CC57E61ABFCB256EEC083CC84200E0A2" 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_AC1C2F83C1B5A283A76C3CC842003525" xlink:type="locator" />
    <definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_PropertyPlantAndEquipmentTypeDomain_CC57E61ABFCB256EEC083CC84200E0A2" xlink:to="loc_us-gaap_AssetsHeldUnderCapitalLeasesMember_AC1C2F83C1B5A283A76C3CC842003525" 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_A9522243C4EF68788A303CC842000065" xlink:type="locator" />
    <definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_PropertyPlantAndEquipmentLineItems_7658676BDF771580CEB53CC842002E59" xlink:to="loc_us-gaap_PropertyPlantAndEquipmentGross_A9522243C4EF68788A303CC842000065" 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_8DB68C6B516F5A49A1A93CC84200735E" xlink:type="locator" />
    <definitionArc order="2" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_PropertyPlantAndEquipmentLineItems_7658676BDF771580CEB53CC842002E59" xlink:to="loc_us-gaap_AccumulatedDepreciationDepletionAndAmortizationPropertyPlantAndEquipment_8DB68C6B516F5A49A1A93CC84200735E" 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_8D58C679EA1A864A011C3CC84200E7B9" xlink:type="locator" />
    <definitionArc order="3" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_PropertyPlantAndEquipmentLineItems_7658676BDF771580CEB53CC842002E59" xlink:to="loc_us-gaap_PropertyPlantAndEquipmentNet_8D58C679EA1A864A011C3CC84200E7B9" 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_0B946A6A0D7068779F393CC842378651" 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_39B5FE5C3C9E7032B01A3CC842368CFD" xlink:type="locator" />
    <definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/all" xlink:from="loc_us-gaap_AccountsNotesAndLoansReceivableLineItems_0B946A6A0D7068779F393CC842378651" xlink:to="loc_us-gaap_ScheduleOfFinancingReceivableRecordedInvestmentCreditQualityIndicatorTable_39B5FE5C3C9E7032B01A3CC842368CFD" xlink:type="arc" xbrldt:closed="true" xbrldt:contextElement="segment" />
    <loc xlink:href="oesx-20160630.xsd#oesx_FinancingReceivableTypeAxis" xlink:label="loc_oesx_FinancingReceivableTypeAxis_CEC6154213670AA96D623CC842368AB6" xlink:type="locator" />
    <definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_ScheduleOfFinancingReceivableRecordedInvestmentCreditQualityIndicatorTable_39B5FE5C3C9E7032B01A3CC842368CFD" xlink:to="loc_oesx_FinancingReceivableTypeAxis_CEC6154213670AA96D623CC842368AB6" xlink:type="arc" />
    <loc xlink:href="oesx-20160630.xsd#oesx_FinancingReceivableTypeDomain" xlink:label="loc_oesx_FinancingReceivableTypeDomain_127EB8C0D2B8649E921D3CC8423686B9_default" xlink:type="locator" />
    <definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_oesx_FinancingReceivableTypeAxis_CEC6154213670AA96D623CC842368AB6" xlink:to="loc_oesx_FinancingReceivableTypeDomain_127EB8C0D2B8649E921D3CC8423686B9_default" xlink:type="arc" />
    <loc xlink:href="oesx-20160630.xsd#oesx_FinancingReceivableTypeDomain" xlink:label="loc_oesx_FinancingReceivableTypeDomain_127EB8C0D2B8649E921D3CC8423686B9" xlink:type="locator" />
    <definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_oesx_FinancingReceivableTypeAxis_CEC6154213670AA96D623CC842368AB6" xlink:to="loc_oesx_FinancingReceivableTypeDomain_127EB8C0D2B8649E921D3CC8423686B9" xlink:type="arc" />
    <loc xlink:href="oesx-20160630.xsd#oesx_NotPastDueMember" xlink:label="loc_oesx_NotPastDueMember_306264077EFDAE03194F3CC8423668F6" xlink:type="locator" />
    <definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_oesx_FinancingReceivableTypeDomain_127EB8C0D2B8649E921D3CC8423686B9" xlink:to="loc_oesx_NotPastDueMember_306264077EFDAE03194F3CC8423668F6" xlink:type="arc" />
    <loc xlink:href="oesx-20160630.xsd#oesx_OneToNinetyDaysMember" xlink:label="loc_oesx_OneToNinetyDaysMember_09E15B7E38FA0DCAE71D3CC84236DF5E" xlink:type="locator" />
    <definitionArc order="2" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_oesx_FinancingReceivableTypeDomain_127EB8C0D2B8649E921D3CC8423686B9" xlink:to="loc_oesx_OneToNinetyDaysMember_09E15B7E38FA0DCAE71D3CC84236DF5E" xlink:type="arc" />
    <loc xlink:href="oesx-20160630.xsd#oesx_GreaterThanNinetyDaysMember" xlink:label="loc_oesx_GreaterThanNinetyDaysMember_353DB45EA7D4D5A2CE923CC8423665B3" xlink:type="locator" />
    <definitionArc order="3" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_oesx_FinancingReceivableTypeDomain_127EB8C0D2B8649E921D3CC8423686B9" xlink:to="loc_oesx_GreaterThanNinetyDaysMember_353DB45EA7D4D5A2CE923CC8423665B3" xlink:type="arc" />
    <loc xlink:href="oesx-20160630.xsd#oesx_PastDueLeaseNetMember" xlink:label="loc_oesx_PastDueLeaseNetMember_160C53F48696317DB29A3CC84236C6C8" xlink:type="locator" />
    <definitionArc order="4" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_oesx_FinancingReceivableTypeDomain_127EB8C0D2B8649E921D3CC8423686B9" xlink:to="loc_oesx_PastDueLeaseNetMember_160C53F48696317DB29A3CC84236C6C8" xlink:type="arc" />
    <loc xlink:href="oesx-20160630.xsd#oesx_SalesTypeNetMember" xlink:label="loc_oesx_SalesTypeNetMember_009CAF98AEE2696496093CC8423642A7" xlink:type="locator" />
    <definitionArc order="5" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_oesx_FinancingReceivableTypeDomain_127EB8C0D2B8649E921D3CC8423686B9" xlink:to="loc_oesx_SalesTypeNetMember_009CAF98AEE2696496093CC8423642A7" 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_D520CAD0AAA64D3D77803CC8423708F5" xlink:type="locator" />
    <definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_AccountsNotesAndLoansReceivableLineItems_0B946A6A0D7068779F393CC842378651" xlink:to="loc_us-gaap_AccountsNotesAndLoansReceivableClassifiedAbstract_D520CAD0AAA64D3D77803CC8423708F5" 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_705DB75205D07BB08EBC3CC842376DDD" xlink:type="locator" />
    <definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_AccountsNotesAndLoansReceivableClassifiedAbstract_D520CAD0AAA64D3D77803CC8423708F5" xlink:to="loc_us-gaap_AccountsNotesAndLoansReceivableNetCurrent_705DB75205D07BB08EBC3CC842376DDD" 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_9B8CBC716124737148ED3CC842373964" xlink:type="locator" />
    <definitionArc order="2" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_AccountsNotesAndLoansReceivableClassifiedAbstract_D520CAD0AAA64D3D77803CC8423708F5" xlink:to="loc_us-gaap_LongTermAccountsNotesAndLoansReceivableNetNoncurrent_9B8CBC716124737148ED3CC842373964" 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_7536EB4C3029F7FF20683CC8423751A5" xlink:type="locator" />
    <definitionArc order="3" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_AccountsNotesAndLoansReceivableClassifiedAbstract_D520CAD0AAA64D3D77803CC8423708F5" xlink:to="loc_us-gaap_AccountsReceivableGrossCurrent_7536EB4C3029F7FF20683CC8423751A5" 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_EBE8F0942A18F1B8B15B3CC8423786DA" xlink:type="locator" />
    <definitionArc order="4" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_AccountsNotesAndLoansReceivableClassifiedAbstract_D520CAD0AAA64D3D77803CC8423708F5" xlink:to="loc_us-gaap_AllowanceForDoubtfulAccountsReceivableCurrent_EBE8F0942A18F1B8B15B3CC8423786DA" 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_BADD6B51FBB83192D75D3CC84237B5F4" xlink:type="locator" />
    <definitionArc order="5" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_AccountsNotesAndLoansReceivableClassifiedAbstract_D520CAD0AAA64D3D77803CC8423708F5" xlink:to="loc_us-gaap_AccountsReceivableNetCurrent_BADD6B51FBB83192D75D3CC84237B5F4" 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="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_SegmentReportingInformationLineItems" xlink:label="loc_us-gaap_SegmentReportingInformationLineItems_AFCF7F468E9077CE03D347FAF5C3CCF4" 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_9E362FB43EFF60FED98547FAF5C2F729" xlink:type="locator" />
    <definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/all" xlink:from="loc_us-gaap_SegmentReportingInformationLineItems_AFCF7F468E9077CE03D347FAF5C3CCF4" xlink:to="loc_us-gaap_ScheduleOfSegmentReportingInformationBySegmentTable_9E362FB43EFF60FED98547FAF5C2F729" 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_6FD10DC7C22B0FB7BBC147FAF5C2F3E7" xlink:type="locator" />
    <definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_ScheduleOfSegmentReportingInformationBySegmentTable_9E362FB43EFF60FED98547FAF5C2F729" xlink:to="loc_us-gaap_SaleLeasebackTransactionDescriptionAxis_6FD10DC7C22B0FB7BBC147FAF5C2F3E7" 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_46026BE7C6C35A52BB4747FAF5C262BA_default" xlink:type="locator" />
    <definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_SaleLeasebackTransactionDescriptionAxis_6FD10DC7C22B0FB7BBC147FAF5C2F3E7" xlink:to="loc_us-gaap_SaleLeasebackTransactionNameDomain_46026BE7C6C35A52BB4747FAF5C262BA_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_46026BE7C6C35A52BB4747FAF5C262BA" xlink:type="locator" />
    <definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_SaleLeasebackTransactionDescriptionAxis_6FD10DC7C22B0FB7BBC147FAF5C2F3E7" xlink:to="loc_us-gaap_SaleLeasebackTransactionNameDomain_46026BE7C6C35A52BB4747FAF5C262BA" xlink:type="arc" />
    <loc xlink:href="oesx-20160630.xsd#oesx_AgreementwithTramontinaU.S.CookwareInc.Member" xlink:label="loc_oesx_AgreementwithTramontinaU.S.CookwareInc.Member_3E55175F5F6277D7ABD747FAF5C2B1F3" xlink:type="locator" />
    <definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_SaleLeasebackTransactionNameDomain_46026BE7C6C35A52BB4747FAF5C262BA" xlink:to="loc_oesx_AgreementwithTramontinaU.S.CookwareInc.Member_3E55175F5F6277D7ABD747FAF5C2B1F3" 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_843D785C2BBF7E4AE51C47FAF5C2324E" xlink:type="locator" />
    <definitionArc order="2" xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_ScheduleOfSegmentReportingInformationBySegmentTable_9E362FB43EFF60FED98547FAF5C2F729" xlink:to="loc_us-gaap_RangeAxis_843D785C2BBF7E4AE51C47FAF5C2324E" 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_ED2E546AAB3CBD65D85947FAF5C3126D_default" xlink:type="locator" />
    <definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_RangeAxis_843D785C2BBF7E4AE51C47FAF5C2324E" xlink:to="loc_us-gaap_RangeMember_ED2E546AAB3CBD65D85947FAF5C3126D_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_ED2E546AAB3CBD65D85947FAF5C3126D" xlink:type="locator" />
    <definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_RangeAxis_843D785C2BBF7E4AE51C47FAF5C2324E" xlink:to="loc_us-gaap_RangeMember_ED2E546AAB3CBD65D85947FAF5C3126D" 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_6DFA90A9E13B354F953F47FAF5C39E7A" xlink:type="locator" />
    <definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_RangeMember_ED2E546AAB3CBD65D85947FAF5C3126D" xlink:to="loc_us-gaap_MinimumMember_6DFA90A9E13B354F953F47FAF5C39E7A" 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_A050758E75B6AF8FB3D347FAF5C3B05C" xlink:type="locator" />
    <definitionArc order="2" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_RangeMember_ED2E546AAB3CBD65D85947FAF5C3126D" xlink:to="loc_us-gaap_MaximumMember_A050758E75B6AF8FB3D347FAF5C3B05C" xlink:type="arc" />
    <loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_ProductOrServiceAxis" xlink:label="loc_us-gaap_ProductOrServiceAxis_A869303292E6A46A4E8A47FAF5C34AD6" xlink:type="locator" />
    <definitionArc order="3" xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_ScheduleOfSegmentReportingInformationBySegmentTable_9E362FB43EFF60FED98547FAF5C2F729" xlink:to="loc_us-gaap_ProductOrServiceAxis_A869303292E6A46A4E8A47FAF5C34AD6" xlink:type="arc" />
    <loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_ProductsAndServicesDomain" xlink:label="loc_us-gaap_ProductsAndServicesDomain_3CADCC58A14240383AFF47FAF5C3C1EB_default" xlink:type="locator" />
    <definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_ProductOrServiceAxis_A869303292E6A46A4E8A47FAF5C34AD6" xlink:to="loc_us-gaap_ProductsAndServicesDomain_3CADCC58A14240383AFF47FAF5C3C1EB_default" xlink:type="arc" />
    <loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_ProductsAndServicesDomain" xlink:label="loc_us-gaap_ProductsAndServicesDomain_3CADCC58A14240383AFF47FAF5C3C1EB" xlink:type="locator" />
    <definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_ProductOrServiceAxis_A869303292E6A46A4E8A47FAF5C34AD6" xlink:to="loc_us-gaap_ProductsAndServicesDomain_3CADCC58A14240383AFF47FAF5C3C1EB" xlink:type="arc" />
    <loc xlink:href="oesx-20160630.xsd#oesx_HighIntensityFluorescentLightingProductsMember" xlink:label="loc_oesx_HighIntensityFluorescentLightingProductsMember_409DA15435EE3171BEAF47FAF5C304E6" xlink:type="locator" />
    <definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ProductsAndServicesDomain_3CADCC58A14240383AFF47FAF5C3C1EB" xlink:to="loc_oesx_HighIntensityFluorescentLightingProductsMember_409DA15435EE3171BEAF47FAF5C304E6" xlink:type="arc" />
    <loc xlink:href="oesx-20160630.xsd#oesx_AccountsReceivablesDueMinimumPeriod" xlink:label="loc_oesx_AccountsReceivablesDueMinimumPeriod_037D88FB0E0816946BB547FAF5C330CF" xlink:type="locator" />
    <definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_SegmentReportingInformationLineItems_AFCF7F468E9077CE03D347FAF5C3CCF4" xlink:to="loc_oesx_AccountsReceivablesDueMinimumPeriod_037D88FB0E0816946BB547FAF5C330CF" xlink:type="arc" />
    <loc xlink:href="oesx-20160630.xsd#oesx_AccountsReceivablesDueMaximumPeriod" xlink:label="loc_oesx_AccountsReceivablesDueMaximumPeriod_08E4F56A3F1E6E644B6447FAF5C3784D" xlink:type="locator" />
    <definitionArc order="2" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_SegmentReportingInformationLineItems_AFCF7F468E9077CE03D347FAF5C3CCF4" xlink:to="loc_oesx_AccountsReceivablesDueMaximumPeriod_08E4F56A3F1E6E644B6447FAF5C3784D" xlink:type="arc" />
    <loc xlink:href="oesx-20160630.xsd#oesx_InventoryReserveLengthofTimeofInventoryUsageConsidered" xlink:label="loc_oesx_InventoryReserveLengthofTimeofInventoryUsageConsidered_B37DC888B0F50E8482FA47FAF5C39FA6" xlink:type="locator" />
    <definitionArc order="3" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_SegmentReportingInformationLineItems_AFCF7F468E9077CE03D347FAF5C3CCF4" xlink:to="loc_oesx_InventoryReserveLengthofTimeofInventoryUsageConsidered_B37DC888B0F50E8482FA47FAF5C39FA6" xlink:type="arc" />
    <loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_SaleLeasebackTransactionNetProceedsInvestingActivities" xlink:label="loc_us-gaap_SaleLeasebackTransactionNetProceedsInvestingActivities_55EA0DAA20C1509AAA1647FAF5C34817" xlink:type="locator" />
    <definitionArc order="4" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_SegmentReportingInformationLineItems_AFCF7F468E9077CE03D347FAF5C3CCF4" xlink:to="loc_us-gaap_SaleLeasebackTransactionNetProceedsInvestingActivities_55EA0DAA20C1509AAA1647FAF5C34817" xlink:type="arc" />
    <loc xlink:href="oesx-20160630.xsd#oesx_SaleLeasebackTransactionAreaofLeasedProperty" xlink:label="loc_oesx_SaleLeasebackTransactionAreaofLeasedProperty_534453D8D580D5EA5A8A47FAF5C34D8F" xlink:type="locator" />
    <definitionArc order="5" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_SegmentReportingInformationLineItems_AFCF7F468E9077CE03D347FAF5C3CCF4" xlink:to="loc_oesx_SaleLeasebackTransactionAreaofLeasedProperty_534453D8D580D5EA5A8A47FAF5C34D8F" xlink:type="arc" />
    <loc xlink:href="oesx-20160630.xsd#oesx_SaleLeasebackTransactionLeaseTerm" xlink:label="loc_oesx_SaleLeasebackTransactionLeaseTerm_2126C91AEAF1BCD4E72F47FAF5C3BAED" xlink:type="locator" />
    <definitionArc order="6" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_SegmentReportingInformationLineItems_AFCF7F468E9077CE03D347FAF5C3CCF4" xlink:to="loc_oesx_SaleLeasebackTransactionLeaseTerm_2126C91AEAF1BCD4E72F47FAF5C3BAED" 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_892824A641CF751A3D7147FAF5C37E9C" xlink:type="locator" />
    <definitionArc order="7" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_SegmentReportingInformationLineItems_AFCF7F468E9077CE03D347FAF5C3CCF4" xlink:to="loc_us-gaap_Depreciation_892824A641CF751A3D7147FAF5C37E9C" 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_DC2852C6DA4BED13051A47FAF5C36753" xlink:type="locator" />
    <definitionArc order="8" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_SegmentReportingInformationLineItems_AFCF7F468E9077CE03D347FAF5C3CCF4" xlink:to="loc_us-gaap_AmortizationOfIntangibleAssets_DC2852C6DA4BED13051A47FAF5C36753" 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_15EAA875812320D02B1848007A113362" xlink:type="locator" />
    <definitionArc order="9" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_SegmentReportingInformationLineItems_AFCF7F468E9077CE03D347FAF5C3CCF4" xlink:to="loc_us-gaap_FiniteLivedIntangibleAssetUsefulLife_15EAA875812320D02B1848007A113362" xlink:type="arc" />
    <loc xlink:href="oesx-20160630.xsd#oesx_LimitedWarrantyTerm" xlink:label="loc_oesx_LimitedWarrantyTerm_665AD384AEEDC3BFFE9E47FAF5C39654" xlink:type="locator" />
    <definitionArc order="10" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_SegmentReportingInformationLineItems_AFCF7F468E9077CE03D347FAF5C3CCF4" xlink:to="loc_oesx_LimitedWarrantyTerm_665AD384AEEDC3BFFE9E47FAF5C39654" xlink:type="arc" />
    <loc xlink:href="oesx-20160630.xsd#oesx_PowerPurchaseAgreementProductRevenueRecognizableTerm" xlink:label="loc_oesx_PowerPurchaseAgreementProductRevenueRecognizableTerm_284AE2456583AB2252B647FAF5C4A15C" xlink:type="locator" />
    <definitionArc order="11" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_SegmentReportingInformationLineItems_AFCF7F468E9077CE03D347FAF5C3CCF4" xlink:to="loc_oesx_PowerPurchaseAgreementProductRevenueRecognizableTerm_284AE2456583AB2252B647FAF5C4A15C" xlink:type="arc" />
  </definitionLink>
  <definitionLink xlink:role="http://www.oesx.com/role/SummaryOfSignificantAccountingPoliciesOtherIntangibleAssetsDetails" 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_FAF79C6022A34EFB52513D8438FB41EA" 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_49878E1B1AE3EB5DB0F23D8438FA21DA" xlink:type="locator" />
    <definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/all" xlink:from="loc_us-gaap_FiniteLivedIntangibleAssetsLineItems_FAF79C6022A34EFB52513D8438FB41EA" xlink:to="loc_us-gaap_ScheduleOfFiniteLivedIntangibleAssetsTable_49878E1B1AE3EB5DB0F23D8438FA21DA" 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_41A38166AAA76799D0B93D8438FA45CD" xlink:type="locator" />
    <definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_ScheduleOfFiniteLivedIntangibleAssetsTable_49878E1B1AE3EB5DB0F23D8438FA21DA" xlink:to="loc_us-gaap_RangeAxis_41A38166AAA76799D0B93D8438FA45CD" 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_2D4412F7CBB6B2558C713D8438FA35BD_default" xlink:type="locator" />
    <definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_RangeAxis_41A38166AAA76799D0B93D8438FA45CD" xlink:to="loc_us-gaap_RangeMember_2D4412F7CBB6B2558C713D8438FA35BD_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_2D4412F7CBB6B2558C713D8438FA35BD" xlink:type="locator" />
    <definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_RangeAxis_41A38166AAA76799D0B93D8438FA45CD" xlink:to="loc_us-gaap_RangeMember_2D4412F7CBB6B2558C713D8438FA35BD" 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_0FC00CBC40C1EAF1C63A3D8438FA8D6A" xlink:type="locator" />
    <definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_RangeMember_2D4412F7CBB6B2558C713D8438FA35BD" xlink:to="loc_us-gaap_MinimumMember_0FC00CBC40C1EAF1C63A3D8438FA8D6A" 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_CA0D99EEC868299ECC3F3D8438FA50E1" xlink:type="locator" />
    <definitionArc order="2" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_RangeMember_2D4412F7CBB6B2558C713D8438FA35BD" xlink:to="loc_us-gaap_MaximumMember_CA0D99EEC868299ECC3F3D8438FA50E1" xlink:type="arc" />
    <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_9BDDF54B3E0769DC49573D8438FA7464" xlink:type="locator" />
    <definitionArc order="2" xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_ScheduleOfFiniteLivedIntangibleAssetsTable_49878E1B1AE3EB5DB0F23D8438FA21DA" xlink:to="loc_us-gaap_FiniteLivedIntangibleAssetsByMajorClassAxis_9BDDF54B3E0769DC49573D8438FA7464" 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_B768B1522E200F670B5D3D8438FA5155_default" xlink:type="locator" />
    <definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_FiniteLivedIntangibleAssetsByMajorClassAxis_9BDDF54B3E0769DC49573D8438FA7464" xlink:to="loc_us-gaap_FiniteLivedIntangibleAssetsMajorClassNameDomain_B768B1522E200F670B5D3D8438FA5155_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_B768B1522E200F670B5D3D8438FA5155" xlink:type="locator" />
    <definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_FiniteLivedIntangibleAssetsByMajorClassAxis_9BDDF54B3E0769DC49573D8438FA7464" xlink:to="loc_us-gaap_FiniteLivedIntangibleAssetsMajorClassNameDomain_B768B1522E200F670B5D3D8438FA5155" 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_866ED1A1DA4E166EEFE83D8438FA01BC" xlink:type="locator" />
    <definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_FiniteLivedIntangibleAssetsMajorClassNameDomain_B768B1522E200F670B5D3D8438FA5155" xlink:to="loc_us-gaap_PatentsMember_866ED1A1DA4E166EEFE83D8438FA01BC" 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_CA7DD332092FA1C578EC3D8438FA5324" xlink:type="locator" />
    <definitionArc order="2" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_FiniteLivedIntangibleAssetsMajorClassNameDomain_B768B1522E200F670B5D3D8438FA5155" xlink:to="loc_us-gaap_LicensingAgreementsMember_CA7DD332092FA1C578EC3D8438FA5324" 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_ECEE3FFEAB11C02DD4F53D8438FA833B" xlink:type="locator" />
    <definitionArc order="3" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_FiniteLivedIntangibleAssetsMajorClassNameDomain_B768B1522E200F670B5D3D8438FA5155" xlink:to="loc_us-gaap_TrademarksAndTradeNamesMember_ECEE3FFEAB11C02DD4F53D8438FA833B" 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_BA071A1001D8249AB05C3D8438FB73D1" xlink:type="locator" />
    <definitionArc order="4" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_FiniteLivedIntangibleAssetsMajorClassNameDomain_B768B1522E200F670B5D3D8438FA5155" xlink:to="loc_us-gaap_CustomerRelationshipsMember_BA071A1001D8249AB05C3D8438FB73D1" 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_D73100C0A85C05DE5C783D8438FB2DC9" xlink:type="locator" />
    <definitionArc order="5" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_FiniteLivedIntangibleAssetsMajorClassNameDomain_B768B1522E200F670B5D3D8438FA5155" xlink:to="loc_us-gaap_DevelopedTechnologyRightsMember_D73100C0A85C05DE5C783D8438FB2DC9" 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_4981BA07C1E7B2FE397A3D8438FB23ED" xlink:type="locator" />
    <definitionArc order="6" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_FiniteLivedIntangibleAssetsMajorClassNameDomain_B768B1522E200F670B5D3D8438FA5155" xlink:to="loc_us-gaap_NoncompeteAgreementsMember_4981BA07C1E7B2FE397A3D8438FB23ED" 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_078D782A20D3D8214BC33D8438FBD152" xlink:type="locator" />
    <definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_FiniteLivedIntangibleAssetsLineItems_FAF79C6022A34EFB52513D8438FB41EA" xlink:to="loc_us-gaap_FiniteLivedIntangibleAssetUsefulLife_078D782A20D3D8214BC33D8438FBD152" xlink:type="arc" />
    <loc xlink:href="oesx-20160630.xsd#oesx_FiniteLivedandIndefiniteLivedIntangibleAssetsGross" xlink:label="loc_oesx_FiniteLivedandIndefiniteLivedIntangibleAssetsGross_D73268FE8513C209C34B3D8438FBA0B0" xlink:type="locator" />
    <definitionArc order="2" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_FiniteLivedIntangibleAssetsLineItems_FAF79C6022A34EFB52513D8438FB41EA" xlink:to="loc_oesx_FiniteLivedandIndefiniteLivedIntangibleAssetsGross_D73268FE8513C209C34B3D8438FBA0B0" 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_D8F846D421D54B1BACBE3D8438FB4B2C" xlink:type="locator" />
    <definitionArc order="3" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_FiniteLivedIntangibleAssetsLineItems_FAF79C6022A34EFB52513D8438FB41EA" xlink:to="loc_us-gaap_FiniteLivedIntangibleAssetsAccumulatedAmortization_D8F846D421D54B1BACBE3D8438FB4B2C" 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_997697E2DCE467D74DCE3D8438FBD032" xlink:type="locator" />
    <definitionArc order="4" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_FiniteLivedIntangibleAssetsLineItems_FAF79C6022A34EFB52513D8438FB41EA" xlink:to="loc_us-gaap_IntangibleAssetsNetExcludingGoodwill_997697E2DCE467D74DCE3D8438FBD032" 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_8F798322303DC0AB2B5F3D8438FBED2E" xlink:type="locator" />
    <definitionArc order="5" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_FiniteLivedIntangibleAssetsLineItems_FAF79C6022A34EFB52513D8438FB41EA" xlink:to="loc_us-gaap_FiniteLivedIntangibleAssetsFutureAmortizationExpenseAbstract_8F798322303DC0AB2B5F3D8438FBED2E" xlink:type="arc" />
    <loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_FiniteLivedIntangibleAssetsAmortizationExpenseRemainderOfFiscalYear" xlink:label="loc_us-gaap_FiniteLivedIntangibleAssetsAmortizationExpenseRemainderOfFiscalYear_A107C174555E1CAA590C3D8438FB81E3" xlink:type="locator" />
    <definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_FiniteLivedIntangibleAssetsFutureAmortizationExpenseAbstract_8F798322303DC0AB2B5F3D8438FBED2E" xlink:to="loc_us-gaap_FiniteLivedIntangibleAssetsAmortizationExpenseRemainderOfFiscalYear_A107C174555E1CAA590C3D8438FB81E3" 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_CBECAB7C5BB99C1683463D8438FBE5C6" xlink:type="locator" />
    <definitionArc order="2" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_FiniteLivedIntangibleAssetsFutureAmortizationExpenseAbstract_8F798322303DC0AB2B5F3D8438FBED2E" xlink:to="loc_us-gaap_FiniteLivedIntangibleAssetsAmortizationExpenseNextTwelveMonths_CBECAB7C5BB99C1683463D8438FBE5C6" 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_CC3F040235F03F11D84A3D8438FB2668" xlink:type="locator" />
    <definitionArc order="3" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_FiniteLivedIntangibleAssetsFutureAmortizationExpenseAbstract_8F798322303DC0AB2B5F3D8438FBED2E" xlink:to="loc_us-gaap_FiniteLivedIntangibleAssetsAmortizationExpenseYearTwo_CC3F040235F03F11D84A3D8438FB2668" 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_799CD4AA228B521154873D8438FBAB52" xlink:type="locator" />
    <definitionArc order="4" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_FiniteLivedIntangibleAssetsFutureAmortizationExpenseAbstract_8F798322303DC0AB2B5F3D8438FBED2E" xlink:to="loc_us-gaap_FiniteLivedIntangibleAssetsAmortizationExpenseYearThree_799CD4AA228B521154873D8438FBAB52" 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_DCCC640784830E8DA0BE3D8438FBF9AA" xlink:type="locator" />
    <definitionArc order="5" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_FiniteLivedIntangibleAssetsFutureAmortizationExpenseAbstract_8F798322303DC0AB2B5F3D8438FBED2E" xlink:to="loc_us-gaap_FiniteLivedIntangibleAssetsAmortizationExpenseYearFour_DCCC640784830E8DA0BE3D8438FBF9AA" 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_BEDDF581C0B8D48811CB3D8438FBBE11" xlink:type="locator" />
    <definitionArc order="6" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_FiniteLivedIntangibleAssetsFutureAmortizationExpenseAbstract_8F798322303DC0AB2B5F3D8438FBED2E" xlink:to="loc_us-gaap_FiniteLivedIntangibleAssetsAmortizationExpenseYearFive_BEDDF581C0B8D48811CB3D8438FBBE11" 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_87EDB89964952F0975B23D8438FB209C" xlink:type="locator" />
    <definitionArc order="7" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_FiniteLivedIntangibleAssetsFutureAmortizationExpenseAbstract_8F798322303DC0AB2B5F3D8438FBED2E" xlink:to="loc_us-gaap_FiniteLivedIntangibleAssetsAmortizationExpenseAfterYearFive_87EDB89964952F0975B23D8438FB209C" 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_ED73A899E5A1BD415C9A3D8438FB75F5" xlink:type="locator" />
    <definitionArc order="8" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_FiniteLivedIntangibleAssetsFutureAmortizationExpenseAbstract_8F798322303DC0AB2B5F3D8438FBED2E" xlink:to="loc_us-gaap_FiniteLivedIntangibleAssetsNet_ED73A899E5A1BD415C9A3D8438FB75F5" 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_250BEE4FE7179A249CFD4B8153C5906E" 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_3F791DD5DC1845C352094B8153BFBF1E" xlink:type="locator" />
    <definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/all" xlink:from="loc_us-gaap_PropertyPlantAndEquipmentLineItems_250BEE4FE7179A249CFD4B8153C5906E" xlink:to="loc_us-gaap_ScheduleOfPropertyPlantAndEquipmentTable_3F791DD5DC1845C352094B8153BFBF1E" 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_4FD3C81957825365A8DD4B8153BF7F24" xlink:type="locator" />
    <definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_ScheduleOfPropertyPlantAndEquipmentTable_3F791DD5DC1845C352094B8153BFBF1E" xlink:to="loc_us-gaap_PropertyPlantAndEquipmentByTypeAxis_4FD3C81957825365A8DD4B8153BF7F24" 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_8FFE811411C7BE9E6D444B8153C0E39D_default" xlink:type="locator" />
    <definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_PropertyPlantAndEquipmentByTypeAxis_4FD3C81957825365A8DD4B8153BF7F24" xlink:to="loc_us-gaap_PropertyPlantAndEquipmentTypeDomain_8FFE811411C7BE9E6D444B8153C0E39D_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_8FFE811411C7BE9E6D444B8153C0E39D" xlink:type="locator" />
    <definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_PropertyPlantAndEquipmentByTypeAxis_4FD3C81957825365A8DD4B8153BF7F24" xlink:to="loc_us-gaap_PropertyPlantAndEquipmentTypeDomain_8FFE811411C7BE9E6D444B8153C0E39D" 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_AA4602F720350FC270BE4B8153C09784" xlink:type="locator" />
    <definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_PropertyPlantAndEquipmentTypeDomain_8FFE811411C7BE9E6D444B8153C0E39D" xlink:to="loc_us-gaap_LandImprovementsMember_AA4602F720350FC270BE4B8153C09784" 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_2BA102A063C5FC4C421A4B8153C07CAC" xlink:type="locator" />
    <definitionArc order="2" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_PropertyPlantAndEquipmentTypeDomain_8FFE811411C7BE9E6D444B8153C0E39D" xlink:to="loc_us-gaap_BuildingAndBuildingImprovementsMember_2BA102A063C5FC4C421A4B8153C07CAC" 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_E040D4D552FDC40FB9DC4B8153C0261E" xlink:type="locator" />
    <definitionArc order="3" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_PropertyPlantAndEquipmentTypeDomain_8FFE811411C7BE9E6D444B8153C0E39D" xlink:to="loc_us-gaap_FurnitureAndFixturesMember_E040D4D552FDC40FB9DC4B8153C0261E" xlink:type="arc" />
    <loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_LeaseholdsAndLeaseholdImprovementsMember" xlink:label="loc_us-gaap_LeaseholdsAndLeaseholdImprovementsMember_F007FA15B2E30815B6704B8153C08FA5" xlink:type="locator" />
    <definitionArc order="4" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_PropertyPlantAndEquipmentTypeDomain_8FFE811411C7BE9E6D444B8153C0E39D" xlink:to="loc_us-gaap_LeaseholdsAndLeaseholdImprovementsMember_F007FA15B2E30815B6704B8153C08FA5" 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_A06075759A40AB4DCA924B8153C09059" xlink:type="locator" />
    <definitionArc order="5" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_PropertyPlantAndEquipmentTypeDomain_8FFE811411C7BE9E6D444B8153C0E39D" xlink:to="loc_us-gaap_EquipmentLeasedToOtherPartyMember_A06075759A40AB4DCA924B8153C09059" 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_39A79D6035FB22422C044B8153C027B6" xlink:type="locator" />
    <definitionArc order="6" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_PropertyPlantAndEquipmentTypeDomain_8FFE811411C7BE9E6D444B8153C0E39D" xlink:to="loc_us-gaap_EquipmentMember_39A79D6035FB22422C044B8153C027B6" 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_A9250BDDBE15A98EC3F14B8153C0CD57" xlink:type="locator" />
    <definitionArc order="2" xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_ScheduleOfPropertyPlantAndEquipmentTable_3F791DD5DC1845C352094B8153BFBF1E" xlink:to="loc_us-gaap_RangeAxis_A9250BDDBE15A98EC3F14B8153C0CD57" 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_727C78071377ECAD67F84B8153C0380F_default" xlink:type="locator" />
    <definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_RangeAxis_A9250BDDBE15A98EC3F14B8153C0CD57" xlink:to="loc_us-gaap_RangeMember_727C78071377ECAD67F84B8153C0380F_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_727C78071377ECAD67F84B8153C0380F" xlink:type="locator" />
    <definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_RangeAxis_A9250BDDBE15A98EC3F14B8153C0CD57" xlink:to="loc_us-gaap_RangeMember_727C78071377ECAD67F84B8153C0380F" 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_02C0D5BB96AEED5BE3C64B8153C0D6DF" xlink:type="locator" />
    <definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_RangeMember_727C78071377ECAD67F84B8153C0380F" xlink:to="loc_us-gaap_MinimumMember_02C0D5BB96AEED5BE3C64B8153C0D6DF" 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_33379B2020F944530E464B8153C582D0" xlink:type="locator" />
    <definitionArc order="2" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_RangeMember_727C78071377ECAD67F84B8153C0380F" xlink:to="loc_us-gaap_MaximumMember_33379B2020F944530E464B8153C582D0" 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_7B0E2385F5B21A6DE86F4B8153C5A9EA" xlink:type="locator" />
    <definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_PropertyPlantAndEquipmentLineItems_250BEE4FE7179A249CFD4B8153C5906E" xlink:to="loc_us-gaap_PropertyPlantAndEquipmentNetAbstract_7B0E2385F5B21A6DE86F4B8153C5A9EA" 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_829E9171186D803702564B8153C6FCC5" xlink:type="locator" />
    <definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_PropertyPlantAndEquipmentNetAbstract_7B0E2385F5B21A6DE86F4B8153C5A9EA" xlink:to="loc_us-gaap_PropertyPlantAndEquipmentUsefulLife_829E9171186D803702564B8153C6FCC5" xlink:type="arc" />
    <loc xlink:href="oesx-20160630.xsd#oesx_PropertyPlantAndEquipmentEstimatedUsefulLife" xlink:label="loc_oesx_PropertyPlantAndEquipmentEstimatedUsefulLife_41FA760B87AEEF1B88C44B8153C61C0D" xlink:type="locator" />
    <definitionArc order="2" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_PropertyPlantAndEquipmentNetAbstract_7B0E2385F5B21A6DE86F4B8153C5A9EA" xlink:to="loc_oesx_PropertyPlantAndEquipmentEstimatedUsefulLife_41FA760B87AEEF1B88C44B8153C61C0D" 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_10E0D0F9789321EA68D04B8153D7995F" 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_C1C6F56081A0BB5EB80F4B8153D6DAA6" xlink:type="locator" />
    <definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/all" xlink:from="loc_us-gaap_PropertyPlantAndEquipmentLineItems_10E0D0F9789321EA68D04B8153D7995F" xlink:to="loc_us-gaap_ScheduleOfPropertyPlantAndEquipmentTable_C1C6F56081A0BB5EB80F4B8153D6DAA6" 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_7B257970ADE33D167DDB4B8153D67987" xlink:type="locator" />
    <definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_ScheduleOfPropertyPlantAndEquipmentTable_C1C6F56081A0BB5EB80F4B8153D6DAA6" xlink:to="loc_us-gaap_PropertyPlantAndEquipmentByTypeAxis_7B257970ADE33D167DDB4B8153D67987" 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_1FC703C51D205B2BCC7E4B8153D7C181_default" xlink:type="locator" />
    <definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_PropertyPlantAndEquipmentByTypeAxis_7B257970ADE33D167DDB4B8153D67987" xlink:to="loc_us-gaap_PropertyPlantAndEquipmentTypeDomain_1FC703C51D205B2BCC7E4B8153D7C181_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_1FC703C51D205B2BCC7E4B8153D7C181" xlink:type="locator" />
    <definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_PropertyPlantAndEquipmentByTypeAxis_7B257970ADE33D167DDB4B8153D67987" xlink:to="loc_us-gaap_PropertyPlantAndEquipmentTypeDomain_1FC703C51D205B2BCC7E4B8153D7C181" 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_98756EB985425FBA3B994B8153D70FA6" xlink:type="locator" />
    <definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_PropertyPlantAndEquipmentTypeDomain_1FC703C51D205B2BCC7E4B8153D7C181" xlink:to="loc_us-gaap_LandImprovementsMember_98756EB985425FBA3B994B8153D70FA6" 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_982918DB74102A80376D4B8153D767C5" xlink:type="locator" />
    <definitionArc order="2" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_PropertyPlantAndEquipmentTypeDomain_1FC703C51D205B2BCC7E4B8153D7C181" xlink:to="loc_us-gaap_BuildingAndBuildingImprovementsMember_982918DB74102A80376D4B8153D767C5" 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_2CE3E959786560488F954B8153D70C87" xlink:type="locator" />
    <definitionArc order="3" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_PropertyPlantAndEquipmentTypeDomain_1FC703C51D205B2BCC7E4B8153D7C181" xlink:to="loc_us-gaap_FurnitureAndFixturesMember_2CE3E959786560488F954B8153D70C87" 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_E4BCACBDCA7EDF60FF2C4B8153D76127" xlink:type="locator" />
    <definitionArc order="4" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_PropertyPlantAndEquipmentTypeDomain_1FC703C51D205B2BCC7E4B8153D7C181" xlink:to="loc_us-gaap_LeaseholdImprovementsMember_E4BCACBDCA7EDF60FF2C4B8153D76127" 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_CB2A7B0A0E58D01136194B8153D7D2C5" xlink:type="locator" />
    <definitionArc order="5" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_PropertyPlantAndEquipmentTypeDomain_1FC703C51D205B2BCC7E4B8153D7C181" xlink:to="loc_us-gaap_EquipmentLeasedToOtherPartyMember_CB2A7B0A0E58D01136194B8153D7D2C5" 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_A974C65069806D790D9A4B8153D713A0" xlink:type="locator" />
    <definitionArc order="6" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_PropertyPlantAndEquipmentTypeDomain_1FC703C51D205B2BCC7E4B8153D7C181" xlink:to="loc_us-gaap_PropertyPlantAndEquipmentOtherTypesMember_A974C65069806D790D9A4B8153D713A0" 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_FD7C3CC66B2AA57CE3774B8153D7DC4F" xlink:type="locator" />
    <definitionArc order="7" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_PropertyPlantAndEquipmentTypeDomain_1FC703C51D205B2BCC7E4B8153D7C181" xlink:to="loc_us-gaap_ConstructionInProgressMember_FD7C3CC66B2AA57CE3774B8153D7DC4F" 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_4CCE1AD8E14386B962754B8153D78465" xlink:type="locator" />
    <definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_PropertyPlantAndEquipmentLineItems_10E0D0F9789321EA68D04B8153D7995F" xlink:to="loc_us-gaap_PropertyPlantAndEquipmentNetAbstract_4CCE1AD8E14386B962754B8153D78465" 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_54D2B1A0ECA0E1E773764B8153D7084D" xlink:type="locator" />
    <definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_PropertyPlantAndEquipmentNetAbstract_4CCE1AD8E14386B962754B8153D78465" xlink:to="loc_us-gaap_PropertyPlantAndEquipmentGross_54D2B1A0ECA0E1E773764B8153D7084D" 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_E46EA2360F958048268E4B8153D7EBB5" xlink:type="locator" />
    <definitionArc order="2" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_PropertyPlantAndEquipmentNetAbstract_4CCE1AD8E14386B962754B8153D78465" xlink:to="loc_us-gaap_AccumulatedDepreciationDepletionAndAmortizationPropertyPlantAndEquipment_E46EA2360F958048268E4B8153D7EBB5" 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_27AE3B477E8C5306120A4B8153D70C84" xlink:type="locator" />
    <definitionArc order="3" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_PropertyPlantAndEquipmentNetAbstract_4CCE1AD8E14386B962754B8153D78465" xlink:to="loc_us-gaap_PropertyPlantAndEquipmentNet_27AE3B477E8C5306120A4B8153D70C84" xlink:type="arc" />
  </definitionLink>
  <definitionLink xlink:role="http://www.oesx.com/role/SummaryOfSignificantAccountingPoliciesTables" xlink:type="extended" />
  <definitionLink xlink:role="http://www.oesx.com/role/SummaryOfSignificantAccountingPoliciesWarrantyAccrualDetails" xlink:type="extended">
    <loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_ProductWarrantyLiabilityLineItems" xlink:label="loc_us-gaap_ProductWarrantyLiabilityLineItems_069B614D592764B5B1E447FAF59475C8" xlink:type="locator" />
    <loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_ProductWarrantyLiabilityTable" xlink:label="loc_us-gaap_ProductWarrantyLiabilityTable_96A7491CFC49FD82532547FAF594ADD7" xlink:type="locator" />
    <definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/all" xlink:from="loc_us-gaap_ProductWarrantyLiabilityLineItems_069B614D592764B5B1E447FAF59475C8" xlink:to="loc_us-gaap_ProductWarrantyLiabilityTable_96A7491CFC49FD82532547FAF594ADD7" 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_2E7601DF617177B075FA47FAF594C9C7" xlink:type="locator" />
    <definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_ProductWarrantyLiabilityTable_96A7491CFC49FD82532547FAF594ADD7" xlink:to="loc_us-gaap_StatementBusinessSegmentsAxis_2E7601DF617177B075FA47FAF594C9C7" 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_660DA3823EFC2C53422847FAF5946108_default" xlink:type="locator" />
    <definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_StatementBusinessSegmentsAxis_2E7601DF617177B075FA47FAF594C9C7" xlink:to="loc_us-gaap_SegmentDomain_660DA3823EFC2C53422847FAF5946108_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_660DA3823EFC2C53422847FAF5946108" xlink:type="locator" />
    <definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_StatementBusinessSegmentsAxis_2E7601DF617177B075FA47FAF594C9C7" xlink:to="loc_us-gaap_SegmentDomain_660DA3823EFC2C53422847FAF5946108" xlink:type="arc" />
    <loc xlink:href="oesx-20160630.xsd#oesx_EngineeredSystemsMember" xlink:label="loc_oesx_EngineeredSystemsMember_00526E5753DD30107D1047FAF594F3BB" xlink:type="locator" />
    <definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_SegmentDomain_660DA3823EFC2C53422847FAF5946108" xlink:to="loc_oesx_EngineeredSystemsMember_00526E5753DD30107D1047FAF594F3BB" 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_40FBD7991DFEB87E233647FAF59473C3" xlink:type="locator" />
    <definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ProductWarrantyLiabilityLineItems_069B614D592764B5B1E447FAF59475C8" xlink:to="loc_us-gaap_ProductWarrantyAccrual_40FBD7991DFEB87E233647FAF59473C3" xlink:type="arc" />
  </definitionLink>
  <definitionLink xlink:role="http://www.oesx.com/role/UnauditedCondensedConsolidatedBalanceSheets" 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_04D9784757E4EA46A5B14D8C88489ECD" 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_149518A3A7688DED8EC54D8C884897AE" xlink:type="locator" />
    <definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/all" xlink:from="loc_us-gaap_StatementLineItems_04D9784757E4EA46A5B14D8C88489ECD" xlink:to="loc_us-gaap_StatementTable_149518A3A7688DED8EC54D8C884897AE" 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_StatementScenarioAxis" xlink:label="loc_us-gaap_StatementScenarioAxis_8D8002C7A09B9861B6CE4D8C88483A39" xlink:type="locator" />
    <definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_StatementTable_149518A3A7688DED8EC54D8C884897AE" xlink:to="loc_us-gaap_StatementScenarioAxis_8D8002C7A09B9861B6CE4D8C88483A39" xlink:type="arc" />
    <loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_ScenarioUnspecifiedDomain" xlink:label="loc_us-gaap_ScenarioUnspecifiedDomain_2ABDD9F614EDEE84444B4D8C88487BAD_default" xlink:type="locator" />
    <definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_StatementScenarioAxis_8D8002C7A09B9861B6CE4D8C88483A39" xlink:to="loc_us-gaap_ScenarioUnspecifiedDomain_2ABDD9F614EDEE84444B4D8C88487BAD_default" xlink:type="arc" />
    <loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_ScenarioUnspecifiedDomain" xlink:label="loc_us-gaap_ScenarioUnspecifiedDomain_2ABDD9F614EDEE84444B4D8C88487BAD" xlink:type="locator" />
    <definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_StatementScenarioAxis_8D8002C7A09B9861B6CE4D8C88483A39" xlink:to="loc_us-gaap_ScenarioUnspecifiedDomain_2ABDD9F614EDEE84444B4D8C88487BAD" xlink:type="arc" />
    <loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_AssetsAbstract" xlink:label="loc_us-gaap_AssetsAbstract_76B12DEA6A40A523BD704D8C8848090C" xlink:type="locator" />
    <definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_StatementLineItems_04D9784757E4EA46A5B14D8C88489ECD" xlink:to="loc_us-gaap_AssetsAbstract_76B12DEA6A40A523BD704D8C8848090C" xlink:type="arc" />
    <loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_CashAndCashEquivalentsAtCarryingValue" xlink:label="loc_us-gaap_CashAndCashEquivalentsAtCarryingValue_77D5803B23495894346B4D8C884820D5" xlink:type="locator" />
    <definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_AssetsAbstract_76B12DEA6A40A523BD704D8C8848090C" xlink:to="loc_us-gaap_CashAndCashEquivalentsAtCarryingValue_77D5803B23495894346B4D8C884820D5" 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_16A392603D525FFF73844D8C8848A25C" xlink:type="locator" />
    <definitionArc order="2" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_AssetsAbstract_76B12DEA6A40A523BD704D8C8848090C" xlink:to="loc_us-gaap_AccountsReceivableNetCurrent_16A392603D525FFF73844D8C8848A25C" xlink:type="arc" />
    <loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_InventoryNet" xlink:label="loc_us-gaap_InventoryNet_C373B1A3C3901389F0394D8C88480EBF" xlink:type="locator" />
    <definitionArc order="3" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_AssetsAbstract_76B12DEA6A40A523BD704D8C8848090C" xlink:to="loc_us-gaap_InventoryNet_C373B1A3C3901389F0394D8C88480EBF" 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_661F4DD1B668E035786C4D8C88484113" xlink:type="locator" />
    <definitionArc order="4" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_AssetsAbstract_76B12DEA6A40A523BD704D8C8848090C" xlink:to="loc_us-gaap_DeferredCostsCurrent_661F4DD1B668E035786C4D8C88484113" xlink:type="arc" />
    <loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_PrepaidExpenseAndOtherAssetsCurrent" xlink:label="loc_us-gaap_PrepaidExpenseAndOtherAssetsCurrent_F75F805D94B9630EDD754D8C884886EB" xlink:type="locator" />
    <definitionArc order="5" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_AssetsAbstract_76B12DEA6A40A523BD704D8C8848090C" xlink:to="loc_us-gaap_PrepaidExpenseAndOtherAssetsCurrent_F75F805D94B9630EDD754D8C884886EB" xlink:type="arc" />
    <loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_AssetsCurrent" xlink:label="loc_us-gaap_AssetsCurrent_EB46F72674752FDBD8944D8C8848B745" xlink:type="locator" />
    <definitionArc order="6" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_AssetsAbstract_76B12DEA6A40A523BD704D8C8848090C" xlink:to="loc_us-gaap_AssetsCurrent_EB46F72674752FDBD8944D8C8848B745" 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_5489B0B8629F7406860C4D8C88483E19" xlink:type="locator" />
    <definitionArc order="7" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_AssetsAbstract_76B12DEA6A40A523BD704D8C8848090C" xlink:to="loc_us-gaap_PropertyPlantAndEquipmentNet_5489B0B8629F7406860C4D8C88483E19" 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_33EC8409022EAC0DA5304D8C8848A678" xlink:type="locator" />
    <definitionArc order="8" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_AssetsAbstract_76B12DEA6A40A523BD704D8C8848090C" xlink:to="loc_us-gaap_IntangibleAssetsNetExcludingGoodwill_33EC8409022EAC0DA5304D8C8848A678" xlink:type="arc" />
    <loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_AccountsReceivableNetNoncurrent" xlink:label="loc_us-gaap_AccountsReceivableNetNoncurrent_50FC39FA60F7EC19E3194D8C884884A7" xlink:type="locator" />
    <definitionArc order="9" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_AssetsAbstract_76B12DEA6A40A523BD704D8C8848090C" xlink:to="loc_us-gaap_AccountsReceivableNetNoncurrent_50FC39FA60F7EC19E3194D8C884884A7" xlink:type="arc" />
    <loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_OtherAssetsNoncurrent" xlink:label="loc_us-gaap_OtherAssetsNoncurrent_C67A0388B5E4B2A265F84D8C8849F722" xlink:type="locator" />
    <definitionArc order="10" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_AssetsAbstract_76B12DEA6A40A523BD704D8C8848090C" xlink:to="loc_us-gaap_OtherAssetsNoncurrent_C67A0388B5E4B2A265F84D8C8849F722" 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_81D80EE92880D5EE469A4D8C8849E5A3" xlink:type="locator" />
    <definitionArc order="11" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_AssetsAbstract_76B12DEA6A40A523BD704D8C8848090C" xlink:to="loc_us-gaap_Assets_81D80EE92880D5EE469A4D8C8849E5A3" xlink:type="arc" />
    <loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_LiabilitiesAndStockholdersEquityAbstract" xlink:label="loc_us-gaap_LiabilitiesAndStockholdersEquityAbstract_6D977EA5D97906752CDB4D8C88499D31" xlink:type="locator" />
    <definitionArc order="2" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_StatementLineItems_04D9784757E4EA46A5B14D8C88489ECD" xlink:to="loc_us-gaap_LiabilitiesAndStockholdersEquityAbstract_6D977EA5D97906752CDB4D8C88499D31" xlink:type="arc" />
    <loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_AccountsPayableCurrent" xlink:label="loc_us-gaap_AccountsPayableCurrent_66A2B0E916FDFA83D74D4D8C8849DAC9" xlink:type="locator" />
    <definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_LiabilitiesAndStockholdersEquityAbstract_6D977EA5D97906752CDB4D8C88499D31" xlink:to="loc_us-gaap_AccountsPayableCurrent_66A2B0E916FDFA83D74D4D8C8849DAC9" xlink:type="arc" />
    <loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_AccruedLiabilitiesCurrent" xlink:label="loc_us-gaap_AccruedLiabilitiesCurrent_94B8CC64299515A855004D8C884970C3" xlink:type="locator" />
    <definitionArc order="2" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_LiabilitiesAndStockholdersEquityAbstract_6D977EA5D97906752CDB4D8C88499D31" xlink:to="loc_us-gaap_AccruedLiabilitiesCurrent_94B8CC64299515A855004D8C884970C3" xlink:type="arc" />
    <loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_DeferredRevenueCurrent" xlink:label="loc_us-gaap_DeferredRevenueCurrent_B4565B2E4697C62E6C634D8C8849A0B4" xlink:type="locator" />
    <definitionArc order="3" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_LiabilitiesAndStockholdersEquityAbstract_6D977EA5D97906752CDB4D8C88499D31" xlink:to="loc_us-gaap_DeferredRevenueCurrent_B4565B2E4697C62E6C634D8C8849A0B4" 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_5FAAFC4F3FF46EDAF4244D8C8849E896" xlink:type="locator" />
    <definitionArc order="4" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_LiabilitiesAndStockholdersEquityAbstract_6D977EA5D97906752CDB4D8C88499D31" xlink:to="loc_us-gaap_LongTermDebtCurrent_5FAAFC4F3FF46EDAF4244D8C8849E896" xlink:type="arc" />
    <loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_LiabilitiesCurrent" xlink:label="loc_us-gaap_LiabilitiesCurrent_6C6D331008EAFFB601914D8C884964A5" xlink:type="locator" />
    <definitionArc order="5" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_LiabilitiesAndStockholdersEquityAbstract_6D977EA5D97906752CDB4D8C88499D31" xlink:to="loc_us-gaap_LiabilitiesCurrent_6C6D331008EAFFB601914D8C884964A5" 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_9476526FA7299EBBD42F4D8C88498279" xlink:type="locator" />
    <definitionArc order="6" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_LiabilitiesAndStockholdersEquityAbstract_6D977EA5D97906752CDB4D8C88499D31" xlink:to="loc_us-gaap_LongTermLineOfCredit_9476526FA7299EBBD42F4D8C88498279" xlink:type="arc" />
    <loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_OtherLongTermDebtNoncurrent" xlink:label="loc_us-gaap_OtherLongTermDebtNoncurrent_237B41288177ABD4A13A4D8C88499AB8" xlink:type="locator" />
    <definitionArc order="7" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_LiabilitiesAndStockholdersEquityAbstract_6D977EA5D97906752CDB4D8C88499D31" xlink:to="loc_us-gaap_OtherLongTermDebtNoncurrent_237B41288177ABD4A13A4D8C88499AB8" xlink:type="arc" />
    <loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_DeferredRevenueNoncurrent" xlink:label="loc_us-gaap_DeferredRevenueNoncurrent_47BE57C40D07ED336CD54D8C884951B4" xlink:type="locator" />
    <definitionArc order="8" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_LiabilitiesAndStockholdersEquityAbstract_6D977EA5D97906752CDB4D8C88499D31" xlink:to="loc_us-gaap_DeferredRevenueNoncurrent_47BE57C40D07ED336CD54D8C884951B4" xlink:type="arc" />
    <loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_OtherLiabilitiesNoncurrent" xlink:label="loc_us-gaap_OtherLiabilitiesNoncurrent_5C3BFB28E452D5D6ADC04D8C88494D3E" xlink:type="locator" />
    <definitionArc order="9" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_LiabilitiesAndStockholdersEquityAbstract_6D977EA5D97906752CDB4D8C88499D31" xlink:to="loc_us-gaap_OtherLiabilitiesNoncurrent_5C3BFB28E452D5D6ADC04D8C88494D3E" xlink:type="arc" />
    <loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_Liabilities" xlink:label="loc_us-gaap_Liabilities_8CEC6E48084139119D354D8C8849DC71" xlink:type="locator" />
    <definitionArc order="10" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_LiabilitiesAndStockholdersEquityAbstract_6D977EA5D97906752CDB4D8C88499D31" xlink:to="loc_us-gaap_Liabilities_8CEC6E48084139119D354D8C8849DC71" xlink:type="arc" />
    <loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_CommitmentsAndContingencies" xlink:label="loc_us-gaap_CommitmentsAndContingencies_7DFDAE8259F9FFC1EFBD4D8C88493EDE" xlink:type="locator" />
    <definitionArc order="11" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_LiabilitiesAndStockholdersEquityAbstract_6D977EA5D97906752CDB4D8C88499D31" xlink:to="loc_us-gaap_CommitmentsAndContingencies_7DFDAE8259F9FFC1EFBD4D8C88493EDE" xlink:type="arc" />
    <loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_StockholdersEquityAbstract" xlink:label="loc_us-gaap_StockholdersEquityAbstract_176D0597959F29DFFBD44D8C8849F429" xlink:type="locator" />
    <definitionArc order="12" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_LiabilitiesAndStockholdersEquityAbstract_6D977EA5D97906752CDB4D8C88499D31" xlink:to="loc_us-gaap_StockholdersEquityAbstract_176D0597959F29DFFBD44D8C8849F429" xlink:type="arc" />
    <loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_PreferredStockValue" xlink:label="loc_us-gaap_PreferredStockValue_4E7F850EEF7546A7F0E04D8C884A3465" xlink:type="locator" />
    <definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_StockholdersEquityAbstract_176D0597959F29DFFBD44D8C8849F429" xlink:to="loc_us-gaap_PreferredStockValue_4E7F850EEF7546A7F0E04D8C884A3465" xlink:type="arc" />
    <loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_CommonStockValue" xlink:label="loc_us-gaap_CommonStockValue_0B2D9164139F294E3DDB4D8C884A5FB2" xlink:type="locator" />
    <definitionArc order="2" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_StockholdersEquityAbstract_176D0597959F29DFFBD44D8C8849F429" xlink:to="loc_us-gaap_CommonStockValue_0B2D9164139F294E3DDB4D8C884A5FB2" xlink:type="arc" />
    <loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_AdditionalPaidInCapital" xlink:label="loc_us-gaap_AdditionalPaidInCapital_952D08B957CF296C491A4D8C884A513E" xlink:type="locator" />
    <definitionArc order="3" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_StockholdersEquityAbstract_176D0597959F29DFFBD44D8C8849F429" xlink:to="loc_us-gaap_AdditionalPaidInCapital_952D08B957CF296C491A4D8C884A513E" xlink:type="arc" />
    <loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_TreasuryStockValue" xlink:label="loc_us-gaap_TreasuryStockValue_896FBCADB6063A48840E4D8C884A1301" xlink:type="locator" />
    <definitionArc order="4" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_StockholdersEquityAbstract_176D0597959F29DFFBD44D8C8849F429" xlink:to="loc_us-gaap_TreasuryStockValue_896FBCADB6063A48840E4D8C884A1301" xlink:type="arc" />
    <loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_ReceivableFromShareholdersOrAffiliatesForIssuanceOfCapitalStock" xlink:label="loc_us-gaap_ReceivableFromShareholdersOrAffiliatesForIssuanceOfCapitalStock_5E7581DCD5FBE4B9FBF34D8C884A87A0" xlink:type="locator" />
    <definitionArc order="5" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_StockholdersEquityAbstract_176D0597959F29DFFBD44D8C8849F429" xlink:to="loc_us-gaap_ReceivableFromShareholdersOrAffiliatesForIssuanceOfCapitalStock_5E7581DCD5FBE4B9FBF34D8C884A87A0" xlink:type="arc" />
    <loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_RetainedEarningsAccumulatedDeficit" xlink:label="loc_us-gaap_RetainedEarningsAccumulatedDeficit_F1AE65605BC8861995C34D8C884A0A62" xlink:type="locator" />
    <definitionArc order="6" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_StockholdersEquityAbstract_176D0597959F29DFFBD44D8C8849F429" xlink:to="loc_us-gaap_RetainedEarningsAccumulatedDeficit_F1AE65605BC8861995C34D8C884A0A62" 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_EAECE967646D2314B8854D8C884AA749" xlink:type="locator" />
    <definitionArc order="7" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_StockholdersEquityAbstract_176D0597959F29DFFBD44D8C8849F429" xlink:to="loc_us-gaap_StockholdersEquity_EAECE967646D2314B8854D8C884AA749" xlink:type="arc" />
    <loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_LiabilitiesAndStockholdersEquity" xlink:label="loc_us-gaap_LiabilitiesAndStockholdersEquity_0E6C08C3F0C80F85322B4D8C884A61C0" xlink:type="locator" />
    <definitionArc order="13" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_LiabilitiesAndStockholdersEquityAbstract_6D977EA5D97906752CDB4D8C88499D31" xlink:to="loc_us-gaap_LiabilitiesAndStockholdersEquity_0E6C08C3F0C80F85322B4D8C884A61C0" xlink:type="arc" />
  </definitionLink>
  <definitionLink xlink:role="http://www.oesx.com/role/UnauditedCondensedConsolidatedBalanceSheetsParenthetical" 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_6AE883B93564F6C25A3F37BAEE8B4CC5" 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_3ED7EE5CDBEEB4671BB437BAEE8A2DDD" xlink:type="locator" />
    <definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/all" xlink:from="loc_us-gaap_StatementLineItems_6AE883B93564F6C25A3F37BAEE8B4CC5" xlink:to="loc_us-gaap_StatementTable_3ED7EE5CDBEEB4671BB437BAEE8A2DDD" 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_StatementScenarioAxis" xlink:label="loc_us-gaap_StatementScenarioAxis_A9FC83684861EE29D00537BAEE8AB07A" xlink:type="locator" />
    <definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_StatementTable_3ED7EE5CDBEEB4671BB437BAEE8A2DDD" xlink:to="loc_us-gaap_StatementScenarioAxis_A9FC83684861EE29D00537BAEE8AB07A" xlink:type="arc" />
    <loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_ScenarioUnspecifiedDomain" xlink:label="loc_us-gaap_ScenarioUnspecifiedDomain_A6AAF9180A2D25A5C5A937BAEE8BB26E_default" xlink:type="locator" />
    <definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_StatementScenarioAxis_A9FC83684861EE29D00537BAEE8AB07A" xlink:to="loc_us-gaap_ScenarioUnspecifiedDomain_A6AAF9180A2D25A5C5A937BAEE8BB26E_default" xlink:type="arc" />
    <loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_ScenarioUnspecifiedDomain" xlink:label="loc_us-gaap_ScenarioUnspecifiedDomain_A6AAF9180A2D25A5C5A937BAEE8BB26E" xlink:type="locator" />
    <definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_StatementScenarioAxis_A9FC83684861EE29D00537BAEE8AB07A" xlink:to="loc_us-gaap_ScenarioUnspecifiedDomain_A6AAF9180A2D25A5C5A937BAEE8BB26E" xlink:type="arc" />
    <loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_PreferredStockParOrStatedValuePerShare" xlink:label="loc_us-gaap_PreferredStockParOrStatedValuePerShare_BFBC4DFAAB36218EFCD937C577D59CEA" xlink:type="locator" />
    <definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_StatementLineItems_6AE883B93564F6C25A3F37BAEE8B4CC5" xlink:to="loc_us-gaap_PreferredStockParOrStatedValuePerShare_BFBC4DFAAB36218EFCD937C577D59CEA" xlink:type="arc" />
    <loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_PreferredStockSharesAuthorized" xlink:label="loc_us-gaap_PreferredStockSharesAuthorized_0301D20A79D40D12CD7137C578A5311C" xlink:type="locator" />
    <definitionArc order="2" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_StatementLineItems_6AE883B93564F6C25A3F37BAEE8B4CC5" xlink:to="loc_us-gaap_PreferredStockSharesAuthorized_0301D20A79D40D12CD7137C578A5311C" xlink:type="arc" />
    <loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_PreferredStockSharesIssued" xlink:label="loc_us-gaap_PreferredStockSharesIssued_3A0E2E1F3539D8463EEC37C5796BB19E" xlink:type="locator" />
    <definitionArc order="3" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_StatementLineItems_6AE883B93564F6C25A3F37BAEE8B4CC5" xlink:to="loc_us-gaap_PreferredStockSharesIssued_3A0E2E1F3539D8463EEC37C5796BB19E" xlink:type="arc" />
    <loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_PreferredStockSharesOutstanding" xlink:label="loc_us-gaap_PreferredStockSharesOutstanding_96BCBC3B110E3CBA407D37C57A930933" xlink:type="locator" />
    <definitionArc order="4" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_StatementLineItems_6AE883B93564F6C25A3F37BAEE8B4CC5" xlink:to="loc_us-gaap_PreferredStockSharesOutstanding_96BCBC3B110E3CBA407D37C57A930933" xlink:type="arc" />
    <loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_CommonStockNoParValue" xlink:label="loc_us-gaap_CommonStockNoParValue_CB1509E21C312CA1B4D737C5B760C4DB" xlink:type="locator" />
    <definitionArc order="5" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_StatementLineItems_6AE883B93564F6C25A3F37BAEE8B4CC5" xlink:to="loc_us-gaap_CommonStockNoParValue_CB1509E21C312CA1B4D737C5B760C4DB" xlink:type="arc" />
    <loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_CommonStockSharesAuthorized" xlink:label="loc_us-gaap_CommonStockSharesAuthorized_0405BAC6AEF03D9F771337BAEE8B4F8D" xlink:type="locator" />
    <definitionArc order="6" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_StatementLineItems_6AE883B93564F6C25A3F37BAEE8B4CC5" xlink:to="loc_us-gaap_CommonStockSharesAuthorized_0405BAC6AEF03D9F771337BAEE8B4F8D" xlink:type="arc" />
    <loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_CommonStockSharesIssued" xlink:label="loc_us-gaap_CommonStockSharesIssued_618C30C062C2E04C78DE37BAEE8B57FD" xlink:type="locator" />
    <definitionArc order="7" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_StatementLineItems_6AE883B93564F6C25A3F37BAEE8B4CC5" xlink:to="loc_us-gaap_CommonStockSharesIssued_618C30C062C2E04C78DE37BAEE8B57FD" 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_2D63BE8C2AB16F4D12CC37BAEE8B3E20" xlink:type="locator" />
    <definitionArc order="8" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_StatementLineItems_6AE883B93564F6C25A3F37BAEE8B4CC5" xlink:to="loc_us-gaap_SharesOutstanding_2D63BE8C2AB16F4D12CC37BAEE8B3E20" xlink:type="arc" />
    <loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_TreasuryStockShares" xlink:label="loc_us-gaap_TreasuryStockShares_D874158C5DB8889691AE37BAEE8B14A9" xlink:type="locator" />
    <definitionArc order="9" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_StatementLineItems_6AE883B93564F6C25A3F37BAEE8B4CC5" xlink:to="loc_us-gaap_TreasuryStockShares_D874158C5DB8889691AE37BAEE8B14A9" xlink:type="arc" />
  </definitionLink>
  <definitionLink xlink:role="http://www.oesx.com/role/UnauditedCondensedConsolidatedStatementsOfCashFlows" xlink:type="extended" />
  <definitionLink xlink:role="http://www.oesx.com/role/UnauditedCondensedConsolidatedStatementsOfOperations" xlink:type="extended" />
</linkbase>





