

<!--XBRL Document Created with Wdesk from Workiva-->
<!-- -->
<link:linkbase xsi:schemaLocation="http://www.xbrl.org/2003/linkbase http://www.xbrl.org/2003/xbrl-linkbase-2003-12-31.xsd" xmlns:link="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">
  <link:roleRef roleURI="http://www.oesx.com/role/AccountsReceivable" xlink:href="oesx-20171231.xsd#AccountsReceivable" xlink:type="simple" />
  <link:roleRef roleURI="http://www.oesx.com/role/AccountsReceivableDetails" xlink:href="oesx-20171231.xsd#AccountsReceivableDetails" xlink:type="simple" />
  <link:roleRef roleURI="http://www.oesx.com/role/AccountsReceivableTables" xlink:href="oesx-20171231.xsd#AccountsReceivableTables" xlink:type="simple" />
  <link:roleRef roleURI="http://www.oesx.com/role/AccruedExpensesAndOtherLongTermLiabilities" xlink:href="oesx-20171231.xsd#AccruedExpensesAndOtherLongTermLiabilities" xlink:type="simple" />
  <link:roleRef roleURI="http://www.oesx.com/role/AccruedExpensesAndOtherLongTermLiabilitiesAccruedExpensesAndOtherDetails" xlink:href="oesx-20171231.xsd#AccruedExpensesAndOtherLongTermLiabilitiesAccruedExpensesAndOtherDetails" xlink:type="simple" />
  <link:roleRef roleURI="http://www.oesx.com/role/AccruedExpensesAndOtherLongTermLiabilitiesNarrativeDetails" xlink:href="oesx-20171231.xsd#AccruedExpensesAndOtherLongTermLiabilitiesNarrativeDetails" xlink:type="simple" />
  <link:roleRef roleURI="http://www.oesx.com/role/AccruedExpensesAndOtherLongTermLiabilitiesOtherLongTermLiabilitiesDetails" xlink:href="oesx-20171231.xsd#AccruedExpensesAndOtherLongTermLiabilitiesOtherLongTermLiabilitiesDetails" xlink:type="simple" />
  <link:roleRef roleURI="http://www.oesx.com/role/AccruedExpensesAndOtherLongTermLiabilitiesTables" xlink:href="oesx-20171231.xsd#AccruedExpensesAndOtherLongTermLiabilitiesTables" xlink:type="simple" />
  <link:roleRef roleURI="http://www.oesx.com/role/AccruedExpensesAndOtherLongTermLiabilitiesWarrantyAccrualDetails" xlink:href="oesx-20171231.xsd#AccruedExpensesAndOtherLongTermLiabilitiesWarrantyAccrualDetails" xlink:type="simple" />
  <link:roleRef roleURI="http://www.oesx.com/role/CommitmentsAndContingencies" xlink:href="oesx-20171231.xsd#CommitmentsAndContingencies" xlink:type="simple" />
  <link:roleRef roleURI="http://www.oesx.com/role/CommitmentsAndContingenciesDetails" xlink:href="oesx-20171231.xsd#CommitmentsAndContingenciesDetails" xlink:type="simple" />
  <link:roleRef roleURI="http://www.oesx.com/role/DescriptionOfBusiness" xlink:href="oesx-20171231.xsd#DescriptionOfBusiness" xlink:type="simple" />
  <link:roleRef roleURI="http://www.oesx.com/role/DocumentAndEntityInformation" xlink:href="oesx-20171231.xsd#DocumentAndEntityInformation" xlink:type="simple" />
  <link:roleRef roleURI="http://www.oesx.com/role/IncomeTaxes" xlink:href="oesx-20171231.xsd#IncomeTaxes" xlink:type="simple" />
  <link:roleRef roleURI="http://www.oesx.com/role/IncomeTaxesDetails" xlink:href="oesx-20171231.xsd#IncomeTaxesDetails" xlink:type="simple" />
  <link:roleRef roleURI="http://www.oesx.com/role/IntangibleAssets" xlink:href="oesx-20171231.xsd#IntangibleAssets" xlink:type="simple" />
  <link:roleRef roleURI="http://www.oesx.com/role/IntangibleAssetsComponentsAndChangesInOtherIntangibleAssetsDetails" xlink:href="oesx-20171231.xsd#IntangibleAssetsComponentsAndChangesInOtherIntangibleAssetsDetails" xlink:type="simple" />
  <link:roleRef roleURI="http://www.oesx.com/role/IntangibleAssetsFutureAmortizationByFiscalYearDetails" xlink:href="oesx-20171231.xsd#IntangibleAssetsFutureAmortizationByFiscalYearDetails" xlink:type="simple" />
  <link:roleRef roleURI="http://www.oesx.com/role/IntangibleAssetsNarrativeDetails" xlink:href="oesx-20171231.xsd#IntangibleAssetsNarrativeDetails" xlink:type="simple" />
  <link:roleRef roleURI="http://www.oesx.com/role/IntangibleAssetsTables" xlink:href="oesx-20171231.xsd#IntangibleAssetsTables" xlink:type="simple" />
  <link:roleRef roleURI="http://www.oesx.com/role/Inventories" xlink:href="oesx-20171231.xsd#Inventories" xlink:type="simple" />
  <link:roleRef roleURI="http://www.oesx.com/role/InventoriesDetails" xlink:href="oesx-20171231.xsd#InventoriesDetails" xlink:type="simple" />
  <link:roleRef roleURI="http://www.oesx.com/role/InventoriesTables" xlink:href="oesx-20171231.xsd#InventoriesTables" xlink:type="simple" />
  <link:roleRef roleURI="http://www.oesx.com/role/LongTermDebt" xlink:href="oesx-20171231.xsd#LongTermDebt" xlink:type="simple" />
  <link:roleRef roleURI="http://www.oesx.com/role/LongTermDebtNarrativeDetails" xlink:href="oesx-20171231.xsd#LongTermDebtNarrativeDetails" xlink:type="simple" />
  <link:roleRef roleURI="http://www.oesx.com/role/LongTermDebtSummaryOfLongTermDebtDetails" xlink:href="oesx-20171231.xsd#LongTermDebtSummaryOfLongTermDebtDetails" xlink:type="simple" />
  <link:roleRef roleURI="http://www.oesx.com/role/LongTermDebtTables" xlink:href="oesx-20171231.xsd#LongTermDebtTables" xlink:type="simple" />
  <link:roleRef roleURI="http://www.oesx.com/role/NetLossPerCommonShare" xlink:href="oesx-20171231.xsd#NetLossPerCommonShare" xlink:type="simple" />
  <link:roleRef roleURI="http://www.oesx.com/role/NetLossPerCommonShareEarningsPerShareDetails" xlink:href="oesx-20171231.xsd#NetLossPerCommonShareEarningsPerShareDetails" xlink:type="simple" />
  <link:roleRef roleURI="http://www.oesx.com/role/NetLossPerCommonSharePotentiallyDilutiveSecuritiesDetails" xlink:href="oesx-20171231.xsd#NetLossPerCommonSharePotentiallyDilutiveSecuritiesDetails" xlink:type="simple" />
  <link:roleRef roleURI="http://www.oesx.com/role/NetLossPerCommonShareTables" xlink:href="oesx-20171231.xsd#NetLossPerCommonShareTables" xlink:type="simple" />
  <link:roleRef roleURI="http://www.oesx.com/role/PrepaidExpensesAndOtherCurrentAssets" xlink:href="oesx-20171231.xsd#PrepaidExpensesAndOtherCurrentAssets" xlink:type="simple" />
  <link:roleRef roleURI="http://www.oesx.com/role/PrepaidExpensesAndOtherCurrentAssetsDetails" xlink:href="oesx-20171231.xsd#PrepaidExpensesAndOtherCurrentAssetsDetails" xlink:type="simple" />
  <link:roleRef roleURI="http://www.oesx.com/role/PrepaidExpensesAndOtherCurrentAssetsTables" xlink:href="oesx-20171231.xsd#PrepaidExpensesAndOtherCurrentAssetsTables" xlink:type="simple" />
  <link:roleRef roleURI="http://www.oesx.com/role/PropertyAndEquipment" xlink:href="oesx-20171231.xsd#PropertyAndEquipment" xlink:type="simple" />
  <link:roleRef roleURI="http://www.oesx.com/role/PropertyAndEquipmentEquipmentUnderCapitalLeasesDetails" xlink:href="oesx-20171231.xsd#PropertyAndEquipmentEquipmentUnderCapitalLeasesDetails" xlink:type="simple" />
  <link:roleRef roleURI="http://www.oesx.com/role/PropertyAndEquipmentNarrativeDetails" xlink:href="oesx-20171231.xsd#PropertyAndEquipmentNarrativeDetails" xlink:type="simple" />
  <link:roleRef roleURI="http://www.oesx.com/role/PropertyAndEquipmentSummaryOfPropertyAndEquipmentDetails" xlink:href="oesx-20171231.xsd#PropertyAndEquipmentSummaryOfPropertyAndEquipmentDetails" xlink:type="simple" />
  <link:roleRef roleURI="http://www.oesx.com/role/PropertyAndEquipmentTables" xlink:href="oesx-20171231.xsd#PropertyAndEquipmentTables" xlink:type="simple" />
  <link:roleRef roleURI="http://www.oesx.com/role/RelatedPartyTransactions" xlink:href="oesx-20171231.xsd#RelatedPartyTransactions" xlink:type="simple" />
  <link:roleRef roleURI="http://www.oesx.com/role/RelatedPartyTransactionsDetails" xlink:href="oesx-20171231.xsd#RelatedPartyTransactionsDetails" xlink:type="simple" />
  <link:roleRef roleURI="http://www.oesx.com/role/ReorganizationOfBusiness" xlink:href="oesx-20171231.xsd#ReorganizationOfBusiness" xlink:type="simple" />
  <link:roleRef roleURI="http://www.oesx.com/role/ReorganizationOfBusinessChangeInReserveDetails" xlink:href="oesx-20171231.xsd#ReorganizationOfBusinessChangeInReserveDetails" xlink:type="simple" />
  <link:roleRef roleURI="http://www.oesx.com/role/ReorganizationOfBusinessNarrativeDetails" xlink:href="oesx-20171231.xsd#ReorganizationOfBusinessNarrativeDetails" xlink:type="simple" />
  <link:roleRef roleURI="http://www.oesx.com/role/ReorganizationOfBusinessRestructuringBySegmentDetails" xlink:href="oesx-20171231.xsd#ReorganizationOfBusinessRestructuringBySegmentDetails" xlink:type="simple" />
  <link:roleRef roleURI="http://www.oesx.com/role/ReorganizationOfBusinessRestructuringByStatementOfOperationsLocationDetails" xlink:href="oesx-20171231.xsd#ReorganizationOfBusinessRestructuringByStatementOfOperationsLocationDetails" xlink:type="simple" />
  <link:roleRef roleURI="http://www.oesx.com/role/ReorganizationOfBusinessTables" xlink:href="oesx-20171231.xsd#ReorganizationOfBusinessTables" xlink:type="simple" />
  <link:roleRef roleURI="http://www.oesx.com/role/Segments" xlink:href="oesx-20171231.xsd#Segments" xlink:type="simple" />
  <link:roleRef roleURI="http://www.oesx.com/role/SegmentsDetails" xlink:href="oesx-20171231.xsd#SegmentsDetails" xlink:type="simple" />
  <link:roleRef roleURI="http://www.oesx.com/role/SegmentsTables" xlink:href="oesx-20171231.xsd#SegmentsTables" xlink:type="simple" />
  <link:roleRef roleURI="http://www.oesx.com/role/ShareholdersEquity" xlink:href="oesx-20171231.xsd#ShareholdersEquity" xlink:type="simple" />
  <link:roleRef roleURI="http://www.oesx.com/role/ShareholdersEquityDetails" xlink:href="oesx-20171231.xsd#ShareholdersEquityDetails" xlink:type="simple" />
  <link:roleRef roleURI="http://www.oesx.com/role/ShareholdersEquityTables" xlink:href="oesx-20171231.xsd#ShareholdersEquityTables" xlink:type="simple" />
  <link:roleRef roleURI="http://www.oesx.com/role/StockOptionsAndRestrictedShares" xlink:href="oesx-20171231.xsd#StockOptionsAndRestrictedShares" xlink:type="simple" />
  <link:roleRef roleURI="http://www.oesx.com/role/StockOptionsAndRestrictedSharesNarrativeDetails" xlink:href="oesx-20171231.xsd#StockOptionsAndRestrictedSharesNarrativeDetails" xlink:type="simple" />
  <link:roleRef roleURI="http://www.oesx.com/role/StockOptionsAndRestrictedSharesRestrictedSharesAndStockOptionsDetails" xlink:href="oesx-20171231.xsd#StockOptionsAndRestrictedSharesRestrictedSharesAndStockOptionsDetails" xlink:type="simple" />
  <link:roleRef roleURI="http://www.oesx.com/role/StockOptionsAndRestrictedSharesStockBasedCompensationDetails" xlink:href="oesx-20171231.xsd#StockOptionsAndRestrictedSharesStockBasedCompensationDetails" xlink:type="simple" />
  <link:roleRef roleURI="http://www.oesx.com/role/StockOptionsAndRestrictedSharesTables" xlink:href="oesx-20171231.xsd#StockOptionsAndRestrictedSharesTables" xlink:type="simple" />
  <link:roleRef roleURI="http://www.oesx.com/role/SubsequentEvents" xlink:href="oesx-20171231.xsd#SubsequentEvents" xlink:type="simple" />
  <link:roleRef roleURI="http://www.oesx.com/role/SummaryOfSignificantAccountingPolicies" xlink:href="oesx-20171231.xsd#SummaryOfSignificantAccountingPolicies" xlink:type="simple" />
  <link:roleRef roleURI="http://www.oesx.com/role/SummaryOfSignificantAccountingPoliciesDetails" xlink:href="oesx-20171231.xsd#SummaryOfSignificantAccountingPoliciesDetails" xlink:type="simple" />
  <link:roleRef roleURI="http://www.oesx.com/role/SummaryOfSignificantAccountingPoliciesPolicies" xlink:href="oesx-20171231.xsd#SummaryOfSignificantAccountingPoliciesPolicies" xlink:type="simple" />
  <link:roleRef roleURI="http://www.oesx.com/role/UnauditedCondensedConsolidatedBalanceSheets" xlink:href="oesx-20171231.xsd#UnauditedCondensedConsolidatedBalanceSheets" xlink:type="simple" />
  <link:roleRef roleURI="http://www.oesx.com/role/UnauditedCondensedConsolidatedBalanceSheetsParenthetical" xlink:href="oesx-20171231.xsd#UnauditedCondensedConsolidatedBalanceSheetsParenthetical" xlink:type="simple" />
  <link:roleRef roleURI="http://www.oesx.com/role/UnauditedCondensedConsolidatedStatementsOfCashFlows" xlink:href="oesx-20171231.xsd#UnauditedCondensedConsolidatedStatementsOfCashFlows" xlink:type="simple" />
  <link:roleRef roleURI="http://www.oesx.com/role/UnauditedCondensedConsolidatedStatementsOfOperations" xlink:href="oesx-20171231.xsd#UnauditedCondensedConsolidatedStatementsOfOperations" xlink:type="simple" />
  <link:arcroleRef arcroleURI="http://xbrl.org/int/dim/arcrole/all" xlink:href="http://www.xbrl.org/2005/xbrldt-2005.xsd#all" xlink:type="simple" />
  <link: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" />
  <link: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" />
  <link: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" />
  <link: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" />
  <link:definitionLink xlink:role="http://www.oesx.com/role/AccountsReceivable" xlink:type="extended" />
  <link:definitionLink xlink:role="http://www.oesx.com/role/AccountsReceivableDetails" xlink:type="extended" />
  <link:definitionLink xlink:role="http://www.oesx.com/role/AccountsReceivableTables" xlink:type="extended" />
  <link:definitionLink xlink:role="http://www.oesx.com/role/AccruedExpensesAndOtherLongTermLiabilities" xlink:type="extended" />
  <link:definitionLink xlink:role="http://www.oesx.com/role/AccruedExpensesAndOtherLongTermLiabilitiesAccruedExpensesAndOtherDetails" xlink:type="extended" />
  <link:definitionLink xlink:role="http://www.oesx.com/role/AccruedExpensesAndOtherLongTermLiabilitiesNarrativeDetails" xlink:type="extended">
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2017/elts/us-gaap-2017-01-31.xsd#us-gaap_SegmentReportingInformationLineItems" xlink:label="loc_us-gaap_SegmentReportingInformationLineItems_1951A73C5D2354ACB28DEE8F4C0BAF76" xlink:type="locator" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2017/elts/us-gaap-2017-01-31.xsd#us-gaap_ScheduleOfSegmentReportingInformationBySegmentTable" xlink:label="loc_us-gaap_ScheduleOfSegmentReportingInformationBySegmentTable_C4B81D6F4BA557B3A4329D49EF2006AD" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/all" xlink:from="loc_us-gaap_SegmentReportingInformationLineItems_1951A73C5D2354ACB28DEE8F4C0BAF76" xlink:to="loc_us-gaap_ScheduleOfSegmentReportingInformationBySegmentTable_C4B81D6F4BA557B3A4329D49EF2006AD" xlink:type="arc" xbrldt:closed="true" xbrldt:contextElement="segment" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2017/elts/us-gaap-2017-01-31.xsd#us-gaap_RangeAxis" xlink:label="loc_us-gaap_RangeAxis_6E1FDD1296915E65816E09F6B8855049" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_ScheduleOfSegmentReportingInformationBySegmentTable_C4B81D6F4BA557B3A4329D49EF2006AD" xlink:to="loc_us-gaap_RangeAxis_6E1FDD1296915E65816E09F6B8855049" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2017/elts/us-gaap-2017-01-31.xsd#us-gaap_RangeMember" xlink:label="loc_us-gaap_RangeMember_1C7AADB64CA9AC0E953861C0FEA930D9_5529D50F106254F5B5FEB7991377D95F" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_RangeAxis_6E1FDD1296915E65816E09F6B8855049" xlink:to="loc_us-gaap_RangeMember_1C7AADB64CA9AC0E953861C0FEA930D9_5529D50F106254F5B5FEB7991377D95F" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2017/elts/us-gaap-2017-01-31.xsd#us-gaap_RangeMember" xlink:label="loc_us-gaap_RangeMember_CBEE2A27C0595DE2A4B647C72C14A817" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_RangeAxis_6E1FDD1296915E65816E09F6B8855049" xlink:to="loc_us-gaap_RangeMember_CBEE2A27C0595DE2A4B647C72C14A817" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2017/elts/us-gaap-2017-01-31.xsd#us-gaap_MinimumMember" xlink:label="loc_us-gaap_MinimumMember_4E95DB0CB04152C0A704A7BA9C246EA6" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_RangeMember_CBEE2A27C0595DE2A4B647C72C14A817" xlink:to="loc_us-gaap_MinimumMember_4E95DB0CB04152C0A704A7BA9C246EA6" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2017/elts/us-gaap-2017-01-31.xsd#us-gaap_MaximumMember" xlink:label="loc_us-gaap_MaximumMember_504B7CAF7A2A51CAAEA77B8C00360624" xlink:type="locator" />
    <link:definitionArc order="2" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_RangeMember_CBEE2A27C0595DE2A4B647C72C14A817" xlink:to="loc_us-gaap_MaximumMember_504B7CAF7A2A51CAAEA77B8C00360624" xlink:type="arc" />
    <link:loc xlink:href="oesx-20171231.xsd#oesx_LimitedProductWarrantyTerm" xlink:label="loc_oesx_LimitedProductWarrantyTerm_EBABDC3ED58955A597B5BA5DD9D545FE" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_SegmentReportingInformationLineItems_1951A73C5D2354ACB28DEE8F4C0BAF76" xlink:to="loc_oesx_LimitedProductWarrantyTerm_EBABDC3ED58955A597B5BA5DD9D545FE" xlink:type="arc" />
  </link:definitionLink>
  <link:definitionLink xlink:role="http://www.oesx.com/role/AccruedExpensesAndOtherLongTermLiabilitiesOtherLongTermLiabilitiesDetails" xlink:type="extended" />
  <link:definitionLink xlink:role="http://www.oesx.com/role/AccruedExpensesAndOtherLongTermLiabilitiesTables" xlink:type="extended" />
  <link:definitionLink xlink:role="http://www.oesx.com/role/AccruedExpensesAndOtherLongTermLiabilitiesWarrantyAccrualDetails" xlink:type="extended" />
  <link:definitionLink xlink:role="http://www.oesx.com/role/CommitmentsAndContingencies" xlink:type="extended" />
  <link:definitionLink xlink:role="http://www.oesx.com/role/CommitmentsAndContingenciesDetails" xlink:type="extended">
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2017/elts/us-gaap-2017-01-31.xsd#us-gaap_LongTermPurchaseCommitmentLineItems" xlink:label="loc_us-gaap_LongTermPurchaseCommitmentLineItems_314161563A92520084ADD518FCA7C7B8" xlink:type="locator" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2017/elts/us-gaap-2017-01-31.xsd#us-gaap_LongTermPurchaseCommitmentTable" xlink:label="loc_us-gaap_LongTermPurchaseCommitmentTable_987CA92518A15C8882D0BD1736225ACD" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/all" xlink:from="loc_us-gaap_LongTermPurchaseCommitmentLineItems_314161563A92520084ADD518FCA7C7B8" xlink:to="loc_us-gaap_LongTermPurchaseCommitmentTable_987CA92518A15C8882D0BD1736225ACD" xlink:type="arc" xbrldt:closed="true" xbrldt:contextElement="segment" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2017/elts/us-gaap-2017-01-31.xsd#us-gaap_SaleLeasebackTransactionDescriptionAxis" xlink:label="loc_us-gaap_SaleLeasebackTransactionDescriptionAxis_90CBBDF469ED56CE8FBBB418B05DDC9B" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_LongTermPurchaseCommitmentTable_987CA92518A15C8882D0BD1736225ACD" xlink:to="loc_us-gaap_SaleLeasebackTransactionDescriptionAxis_90CBBDF469ED56CE8FBBB418B05DDC9B" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2017/elts/us-gaap-2017-01-31.xsd#us-gaap_SaleLeasebackTransactionNameDomain" xlink:label="loc_us-gaap_SaleLeasebackTransactionNameDomain_B78413F9A17D60D14E7573B923EDBD31_2B7C36DB07385330952E6485927A3178" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_SaleLeasebackTransactionDescriptionAxis_90CBBDF469ED56CE8FBBB418B05DDC9B" xlink:to="loc_us-gaap_SaleLeasebackTransactionNameDomain_B78413F9A17D60D14E7573B923EDBD31_2B7C36DB07385330952E6485927A3178" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2017/elts/us-gaap-2017-01-31.xsd#us-gaap_SaleLeasebackTransactionNameDomain" xlink:label="loc_us-gaap_SaleLeasebackTransactionNameDomain_418573C56CF8539EB3E6AEF33D128CD1" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_SaleLeasebackTransactionDescriptionAxis_90CBBDF469ED56CE8FBBB418B05DDC9B" xlink:to="loc_us-gaap_SaleLeasebackTransactionNameDomain_418573C56CF8539EB3E6AEF33D128CD1" xlink:type="arc" />
    <link:loc xlink:href="oesx-20171231.xsd#oesx_ManitowocManufacturingAndDistributionFacilityMember" xlink:label="loc_oesx_ManitowocManufacturingAndDistributionFacilityMember_8549CA60D42A55BBACCC878BA9FB4C01" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_SaleLeasebackTransactionNameDomain_418573C56CF8539EB3E6AEF33D128CD1" xlink:to="loc_oesx_ManitowocManufacturingAndDistributionFacilityMember_8549CA60D42A55BBACCC878BA9FB4C01" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2017/elts/us-gaap-2017-01-31.xsd#us-gaap_IncomeTaxAuthorityAxis" xlink:label="loc_us-gaap_IncomeTaxAuthorityAxis_957EADEAAC4750F19B3C6385C8BAB791" xlink:type="locator" />
    <link:definitionArc order="2" xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_LongTermPurchaseCommitmentTable_987CA92518A15C8882D0BD1736225ACD" xlink:to="loc_us-gaap_IncomeTaxAuthorityAxis_957EADEAAC4750F19B3C6385C8BAB791" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2017/elts/us-gaap-2017-01-31.xsd#us-gaap_IncomeTaxAuthorityDomain" xlink:label="loc_us-gaap_IncomeTaxAuthorityDomain_966D1FF7FD0C9907D51273B923EDA98C_2B7C36DB07385330952E6485927A3178" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_IncomeTaxAuthorityAxis_957EADEAAC4750F19B3C6385C8BAB791" xlink:to="loc_us-gaap_IncomeTaxAuthorityDomain_966D1FF7FD0C9907D51273B923EDA98C_2B7C36DB07385330952E6485927A3178" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2017/elts/us-gaap-2017-01-31.xsd#us-gaap_IncomeTaxAuthorityDomain" xlink:label="loc_us-gaap_IncomeTaxAuthorityDomain_25E252B9B1EA5659A35CA3299B993DB0" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_IncomeTaxAuthorityAxis_957EADEAAC4750F19B3C6385C8BAB791" xlink:to="loc_us-gaap_IncomeTaxAuthorityDomain_25E252B9B1EA5659A35CA3299B993DB0" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2017/elts/us-gaap-2017-01-31.xsd#us-gaap_StateAndLocalJurisdictionMember" xlink:label="loc_us-gaap_StateAndLocalJurisdictionMember_E76DEF01E17159AC9793DD51616DB3B5" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_IncomeTaxAuthorityDomain_25E252B9B1EA5659A35CA3299B993DB0" xlink:to="loc_us-gaap_StateAndLocalJurisdictionMember_E76DEF01E17159AC9793DD51616DB3B5" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2017/elts/us-gaap-2017-01-31.xsd#us-gaap_IncomeTaxAuthorityNameAxis" xlink:label="loc_us-gaap_IncomeTaxAuthorityNameAxis_97A340C344675AA6BBCAA68944C08638" xlink:type="locator" />
    <link:definitionArc order="3" xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_LongTermPurchaseCommitmentTable_987CA92518A15C8882D0BD1736225ACD" xlink:to="loc_us-gaap_IncomeTaxAuthorityNameAxis_97A340C344675AA6BBCAA68944C08638" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2017/elts/us-gaap-2017-01-31.xsd#us-gaap_IncomeTaxAuthorityNameDomain" xlink:label="loc_us-gaap_IncomeTaxAuthorityNameDomain_A63E15FC660E1AC7257773B923EEDD87_2B7C36DB07385330952E6485927A3178" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_IncomeTaxAuthorityNameAxis_97A340C344675AA6BBCAA68944C08638" xlink:to="loc_us-gaap_IncomeTaxAuthorityNameDomain_A63E15FC660E1AC7257773B923EEDD87_2B7C36DB07385330952E6485927A3178" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2017/elts/us-gaap-2017-01-31.xsd#us-gaap_IncomeTaxAuthorityNameDomain" xlink:label="loc_us-gaap_IncomeTaxAuthorityNameDomain_81F96EC03A9C5D578A5EAD0CE058ACBE" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_IncomeTaxAuthorityNameAxis_97A340C344675AA6BBCAA68944C08638" xlink:to="loc_us-gaap_IncomeTaxAuthorityNameDomain_81F96EC03A9C5D578A5EAD0CE058ACBE" xlink:type="arc" />
    <link:loc xlink:href="oesx-20171231.xsd#oesx_WisconsinDepartmentOfRevenueMember" xlink:label="loc_oesx_WisconsinDepartmentOfRevenueMember_010CA1C1292059DDA6B523D10D14C560" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_IncomeTaxAuthorityNameDomain_81F96EC03A9C5D578A5EAD0CE058ACBE" xlink:to="loc_oesx_WisconsinDepartmentOfRevenueMember_010CA1C1292059DDA6B523D10D14C560" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2017/elts/us-gaap-2017-01-31.xsd#us-gaap_SaleLeasebackTransactionGrossProceedsInvestingActivities" xlink:label="loc_us-gaap_SaleLeasebackTransactionGrossProceedsInvestingActivities_389B450329435611A846EC8302B78F3B" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_LongTermPurchaseCommitmentLineItems_314161563A92520084ADD518FCA7C7B8" xlink:to="loc_us-gaap_SaleLeasebackTransactionGrossProceedsInvestingActivities_389B450329435611A846EC8302B78F3B" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2017/elts/us-gaap-2017-01-31.xsd#us-gaap_LossContingencyClaimsDismissedNumber" xlink:label="loc_us-gaap_LossContingencyClaimsDismissedNumber_3FE43C8312FB5C2EA8431EE59B22BF84" xlink:type="locator" />
    <link:definitionArc order="2" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_LongTermPurchaseCommitmentLineItems_314161563A92520084ADD518FCA7C7B8" xlink:to="loc_us-gaap_LossContingencyClaimsDismissedNumber_3FE43C8312FB5C2EA8431EE59B22BF84" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2017/elts/us-gaap-2017-01-31.xsd#us-gaap_IncomeTaxExaminationLiabilityRefundAdjustmentFromSettlementWithTaxingAuthority" xlink:label="loc_us-gaap_IncomeTaxExaminationLiabilityRefundAdjustmentFromSettlementWithTaxingAuthority_FC751CBB015E5D69B822635D77F67527" xlink:type="locator" />
    <link:definitionArc order="3" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_LongTermPurchaseCommitmentLineItems_314161563A92520084ADD518FCA7C7B8" xlink:to="loc_us-gaap_IncomeTaxExaminationLiabilityRefundAdjustmentFromSettlementWithTaxingAuthority_FC751CBB015E5D69B822635D77F67527" xlink:type="arc" />
  </link:definitionLink>
  <link:definitionLink xlink:role="http://www.oesx.com/role/DescriptionOfBusiness" xlink:type="extended" />
  <link:definitionLink xlink:role="http://www.oesx.com/role/DocumentAndEntityInformation" xlink:type="extended" />
  <link:definitionLink xlink:role="http://www.oesx.com/role/IncomeTaxes" xlink:type="extended" />
  <link:definitionLink xlink:role="http://www.oesx.com/role/IncomeTaxesDetails" xlink:type="extended">
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2017/elts/us-gaap-2017-01-31.xsd#us-gaap_OperatingLossCarryforwardsLineItems" xlink:label="loc_us-gaap_OperatingLossCarryforwardsLineItems_583A75DF4C2446DC9370674F71847903" xlink:type="locator" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2017/elts/us-gaap-2017-01-31.xsd#us-gaap_OperatingLossCarryforwardsTable" xlink:label="loc_us-gaap_OperatingLossCarryforwardsTable_228119C9256426C5EAFE674F7183FA36" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/all" xlink:from="loc_us-gaap_OperatingLossCarryforwardsLineItems_583A75DF4C2446DC9370674F71847903" xlink:to="loc_us-gaap_OperatingLossCarryforwardsTable_228119C9256426C5EAFE674F7183FA36" xlink:type="arc" xbrldt:closed="true" xbrldt:contextElement="segment" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2017/elts/us-gaap-2017-01-31.xsd#us-gaap_IncomeTaxAuthorityAxis" xlink:label="loc_us-gaap_IncomeTaxAuthorityAxis_F5533BD3903C9F1A8500674F71835DE6" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_OperatingLossCarryforwardsTable_228119C9256426C5EAFE674F7183FA36" xlink:to="loc_us-gaap_IncomeTaxAuthorityAxis_F5533BD3903C9F1A8500674F71835DE6" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2017/elts/us-gaap-2017-01-31.xsd#us-gaap_IncomeTaxAuthorityDomain" xlink:label="loc_us-gaap_IncomeTaxAuthorityDomain_2F6AF1CAE126984436E3674F7183F1AF_default" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_IncomeTaxAuthorityAxis_F5533BD3903C9F1A8500674F71835DE6" xlink:to="loc_us-gaap_IncomeTaxAuthorityDomain_2F6AF1CAE126984436E3674F7183F1AF_default" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2017/elts/us-gaap-2017-01-31.xsd#us-gaap_IncomeTaxAuthorityDomain" xlink:label="loc_us-gaap_IncomeTaxAuthorityDomain_2F6AF1CAE126984436E3674F7183F1AF" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_IncomeTaxAuthorityAxis_F5533BD3903C9F1A8500674F71835DE6" xlink:to="loc_us-gaap_IncomeTaxAuthorityDomain_2F6AF1CAE126984436E3674F7183F1AF" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2017/elts/us-gaap-2017-01-31.xsd#us-gaap_DomesticCountryMember" xlink:label="loc_us-gaap_DomesticCountryMember_5C1E17D3DBA50D5FAB58674F7184316A" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_IncomeTaxAuthorityDomain_2F6AF1CAE126984436E3674F7183F1AF" xlink:to="loc_us-gaap_DomesticCountryMember_5C1E17D3DBA50D5FAB58674F7184316A" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2017/elts/us-gaap-2017-01-31.xsd#us-gaap_StateAndLocalJurisdictionMember" xlink:label="loc_us-gaap_StateAndLocalJurisdictionMember_385F95A702B3AB27ECE4674F7184DC03" xlink:type="locator" />
    <link:definitionArc order="2" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_IncomeTaxAuthorityDomain_2F6AF1CAE126984436E3674F7183F1AF" xlink:to="loc_us-gaap_StateAndLocalJurisdictionMember_385F95A702B3AB27ECE4674F7184DC03" xlink:type="arc" />
    <link:loc xlink:href="oesx-20171231.xsd#oesx_IncomeTaxTextualAbstract" xlink:label="loc_oesx_IncomeTaxTextualAbstract_0A96CC09524D606429DE674F718476B0" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_OperatingLossCarryforwardsLineItems_583A75DF4C2446DC9370674F71847903" xlink:to="loc_oesx_IncomeTaxTextualAbstract_0A96CC09524D606429DE674F718476B0" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2017/elts/us-gaap-2017-01-31.xsd#us-gaap_EffectiveIncomeTaxRateContinuingOperations" xlink:label="loc_us-gaap_EffectiveIncomeTaxRateContinuingOperations_44BFB226D9AC0D257F63674F71840037" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_oesx_IncomeTaxTextualAbstract_0A96CC09524D606429DE674F718476B0" xlink:to="loc_us-gaap_EffectiveIncomeTaxRateContinuingOperations_44BFB226D9AC0D257F63674F71840037" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2017/elts/us-gaap-2017-01-31.xsd#us-gaap_OperatingLossCarryforwards" xlink:label="loc_us-gaap_OperatingLossCarryforwards_30799A3CDF2CF42A523D674F71843659" xlink:type="locator" />
    <link:definitionArc order="2" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_oesx_IncomeTaxTextualAbstract_0A96CC09524D606429DE674F718476B0" xlink:to="loc_us-gaap_OperatingLossCarryforwards_30799A3CDF2CF42A523D674F71843659" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2017/elts/us-gaap-2017-01-31.xsd#us-gaap_TaxCreditCarryforwardAmount" xlink:label="loc_us-gaap_TaxCreditCarryforwardAmount_38FDEDCA78254C133456674F71844F80" xlink:type="locator" />
    <link:definitionArc order="3" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_oesx_IncomeTaxTextualAbstract_0A96CC09524D606429DE674F718476B0" xlink:to="loc_us-gaap_TaxCreditCarryforwardAmount_38FDEDCA78254C133456674F71844F80" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2017/elts/us-gaap-2017-01-31.xsd#us-gaap_ValuationAllowanceDeferredTaxAssetChangeInAmount" xlink:label="loc_us-gaap_ValuationAllowanceDeferredTaxAssetChangeInAmount_44674748F0B083B3D66E674F7184E53C" xlink:type="locator" />
    <link:definitionArc order="4" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_oesx_IncomeTaxTextualAbstract_0A96CC09524D606429DE674F718476B0" xlink:to="loc_us-gaap_ValuationAllowanceDeferredTaxAssetChangeInAmount_44674748F0B083B3D66E674F7184E53C" xlink:type="arc" />
    <link:loc xlink:href="oesx-20171231.xsd#oesx_TaxCutsandJobsActof2017IncompleteAccountingChangeinTaxRateDeferredTaxAssetProvisionalIncomeTaxExpenseBenefit" xlink:label="loc_oesx_TaxCutsandJobsActof2017IncompleteAccountingChangeinTaxRateDeferredTaxAssetProvisionalIncomeTaxExpenseBenefit_1A5380F2654D91854BBC674F7184596D" xlink:type="locator" />
    <link:definitionArc order="5" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_oesx_IncomeTaxTextualAbstract_0A96CC09524D606429DE674F718476B0" xlink:to="loc_oesx_TaxCutsandJobsActof2017IncompleteAccountingChangeinTaxRateDeferredTaxAssetProvisionalIncomeTaxExpenseBenefit_1A5380F2654D91854BBC674F7184596D" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2017/elts/us-gaap-2017-01-31.xsd#us-gaap_UnrecognizedTaxBenefits" xlink:label="loc_us-gaap_UnrecognizedTaxBenefits_987952296114F65006DA674F71841EC3" xlink:type="locator" />
    <link:definitionArc order="6" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_oesx_IncomeTaxTextualAbstract_0A96CC09524D606429DE674F718476B0" xlink:to="loc_us-gaap_UnrecognizedTaxBenefits_987952296114F65006DA674F71841EC3" xlink:type="arc" />
  </link:definitionLink>
  <link:definitionLink xlink:role="http://www.oesx.com/role/IntangibleAssets" xlink:type="extended" />
  <link:definitionLink xlink:role="http://www.oesx.com/role/IntangibleAssetsComponentsAndChangesInOtherIntangibleAssetsDetails" xlink:type="extended">
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2017/elts/us-gaap-2017-01-31.xsd#us-gaap_FiniteLivedIntangibleAssetsLineItems" xlink:label="loc_us-gaap_FiniteLivedIntangibleAssetsLineItems_D0BE9CB1F21F5C468845B21F89F78682" xlink:type="locator" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2017/elts/us-gaap-2017-01-31.xsd#us-gaap_ScheduleOfFiniteLivedIntangibleAssetsTable" xlink:label="loc_us-gaap_ScheduleOfFiniteLivedIntangibleAssetsTable_D98F03FE14615D8EBCF8F1EBF2775C90" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/all" xlink:from="loc_us-gaap_FiniteLivedIntangibleAssetsLineItems_D0BE9CB1F21F5C468845B21F89F78682" xlink:to="loc_us-gaap_ScheduleOfFiniteLivedIntangibleAssetsTable_D98F03FE14615D8EBCF8F1EBF2775C90" xlink:type="arc" xbrldt:closed="true" xbrldt:contextElement="segment" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2017/elts/us-gaap-2017-01-31.xsd#us-gaap_FiniteLivedIntangibleAssetsByMajorClassAxis" xlink:label="loc_us-gaap_FiniteLivedIntangibleAssetsByMajorClassAxis_214EE3E02ED75FBBB895910096A20922" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_ScheduleOfFiniteLivedIntangibleAssetsTable_D98F03FE14615D8EBCF8F1EBF2775C90" xlink:to="loc_us-gaap_FiniteLivedIntangibleAssetsByMajorClassAxis_214EE3E02ED75FBBB895910096A20922" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2017/elts/us-gaap-2017-01-31.xsd#us-gaap_FiniteLivedIntangibleAssetsMajorClassNameDomain" xlink:label="loc_us-gaap_FiniteLivedIntangibleAssetsMajorClassNameDomain_1B109A559CD481E5BD8861C0FEC4FC4C_5529D50F106254F5B5FEB7991377D95F" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_FiniteLivedIntangibleAssetsByMajorClassAxis_214EE3E02ED75FBBB895910096A20922" xlink:to="loc_us-gaap_FiniteLivedIntangibleAssetsMajorClassNameDomain_1B109A559CD481E5BD8861C0FEC4FC4C_5529D50F106254F5B5FEB7991377D95F" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2017/elts/us-gaap-2017-01-31.xsd#us-gaap_FiniteLivedIntangibleAssetsMajorClassNameDomain" xlink:label="loc_us-gaap_FiniteLivedIntangibleAssetsMajorClassNameDomain_9B1444822D2C5F4186C1B7FF2EA2D656" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_FiniteLivedIntangibleAssetsByMajorClassAxis_214EE3E02ED75FBBB895910096A20922" xlink:to="loc_us-gaap_FiniteLivedIntangibleAssetsMajorClassNameDomain_9B1444822D2C5F4186C1B7FF2EA2D656" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2017/elts/us-gaap-2017-01-31.xsd#us-gaap_PatentsMember" xlink:label="loc_us-gaap_PatentsMember_C1507BF9DEBA51D8A528000E0E193E1F" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_FiniteLivedIntangibleAssetsMajorClassNameDomain_9B1444822D2C5F4186C1B7FF2EA2D656" xlink:to="loc_us-gaap_PatentsMember_C1507BF9DEBA51D8A528000E0E193E1F" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2017/elts/us-gaap-2017-01-31.xsd#us-gaap_LicensingAgreementsMember" xlink:label="loc_us-gaap_LicensingAgreementsMember_DF2DEE5437305C4AAF08AFD17BF67158" xlink:type="locator" />
    <link:definitionArc order="2" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_FiniteLivedIntangibleAssetsMajorClassNameDomain_9B1444822D2C5F4186C1B7FF2EA2D656" xlink:to="loc_us-gaap_LicensingAgreementsMember_DF2DEE5437305C4AAF08AFD17BF67158" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2017/elts/us-gaap-2017-01-31.xsd#us-gaap_TrademarksAndTradeNamesMember" xlink:label="loc_us-gaap_TrademarksAndTradeNamesMember_1F57F4BECB2E5ACA8C60F2203BD4DB54" xlink:type="locator" />
    <link:definitionArc order="3" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_FiniteLivedIntangibleAssetsMajorClassNameDomain_9B1444822D2C5F4186C1B7FF2EA2D656" xlink:to="loc_us-gaap_TrademarksAndTradeNamesMember_1F57F4BECB2E5ACA8C60F2203BD4DB54" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2017/elts/us-gaap-2017-01-31.xsd#us-gaap_CustomerRelationshipsMember" xlink:label="loc_us-gaap_CustomerRelationshipsMember_A22AFEFFE0FF5DC79B12807521418614" xlink:type="locator" />
    <link:definitionArc order="4" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_FiniteLivedIntangibleAssetsMajorClassNameDomain_9B1444822D2C5F4186C1B7FF2EA2D656" xlink:to="loc_us-gaap_CustomerRelationshipsMember_A22AFEFFE0FF5DC79B12807521418614" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2017/elts/us-gaap-2017-01-31.xsd#us-gaap_DevelopedTechnologyRightsMember" xlink:label="loc_us-gaap_DevelopedTechnologyRightsMember_A7F195D290CA51369EF0F56E48ED4148" xlink:type="locator" />
    <link:definitionArc order="5" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_FiniteLivedIntangibleAssetsMajorClassNameDomain_9B1444822D2C5F4186C1B7FF2EA2D656" xlink:to="loc_us-gaap_DevelopedTechnologyRightsMember_A7F195D290CA51369EF0F56E48ED4148" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2017/elts/us-gaap-2017-01-31.xsd#us-gaap_NoncompeteAgreementsMember" xlink:label="loc_us-gaap_NoncompeteAgreementsMember_166943553A675802BA1293E9FE65664E" xlink:type="locator" />
    <link:definitionArc order="6" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_FiniteLivedIntangibleAssetsMajorClassNameDomain_9B1444822D2C5F4186C1B7FF2EA2D656" xlink:to="loc_us-gaap_NoncompeteAgreementsMember_166943553A675802BA1293E9FE65664E" xlink:type="arc" />
    <link:loc xlink:href="oesx-20171231.xsd#oesx_FiniteLivedAndIndefiniteLivedIntangibleAssetsGross" xlink:label="loc_oesx_FiniteLivedAndIndefiniteLivedIntangibleAssetsGross_B4BBA938B1F3592FBB29283140CB2180" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_FiniteLivedIntangibleAssetsLineItems_D0BE9CB1F21F5C468845B21F89F78682" xlink:to="loc_oesx_FiniteLivedAndIndefiniteLivedIntangibleAssetsGross_B4BBA938B1F3592FBB29283140CB2180" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2017/elts/us-gaap-2017-01-31.xsd#us-gaap_FiniteLivedIntangibleAssetsAccumulatedAmortization" xlink:label="loc_us-gaap_FiniteLivedIntangibleAssetsAccumulatedAmortization_EDDED891A341597892A7D120AA1B4B11" xlink:type="locator" />
    <link:definitionArc order="2" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_FiniteLivedIntangibleAssetsLineItems_D0BE9CB1F21F5C468845B21F89F78682" xlink:to="loc_us-gaap_FiniteLivedIntangibleAssetsAccumulatedAmortization_EDDED891A341597892A7D120AA1B4B11" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2017/elts/us-gaap-2017-01-31.xsd#us-gaap_IntangibleAssetsNetExcludingGoodwill" xlink:label="loc_us-gaap_IntangibleAssetsNetExcludingGoodwill_284DF9ACC7375BF2A47294DF51774DB0" xlink:type="locator" />
    <link:definitionArc order="3" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_FiniteLivedIntangibleAssetsLineItems_D0BE9CB1F21F5C468845B21F89F78682" xlink:to="loc_us-gaap_IntangibleAssetsNetExcludingGoodwill_284DF9ACC7375BF2A47294DF51774DB0" xlink:type="arc" />
  </link:definitionLink>
  <link:definitionLink xlink:role="http://www.oesx.com/role/IntangibleAssetsFutureAmortizationByFiscalYearDetails" xlink:type="extended" />
  <link:definitionLink xlink:role="http://www.oesx.com/role/IntangibleAssetsNarrativeDetails" xlink:type="extended">
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2017/elts/us-gaap-2017-01-31.xsd#us-gaap_SegmentReportingInformationLineItems" xlink:label="loc_us-gaap_SegmentReportingInformationLineItems_067ACC003F143B2749854E41B9DA0B39" xlink:type="locator" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2017/elts/us-gaap-2017-01-31.xsd#us-gaap_ScheduleOfSegmentReportingInformationBySegmentTable" xlink:label="loc_us-gaap_ScheduleOfSegmentReportingInformationBySegmentTable_0F8E0C44F9D45A1053174E41B9DAB88C" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/all" xlink:from="loc_us-gaap_SegmentReportingInformationLineItems_067ACC003F143B2749854E41B9DA0B39" xlink:to="loc_us-gaap_ScheduleOfSegmentReportingInformationBySegmentTable_0F8E0C44F9D45A1053174E41B9DAB88C" xlink:type="arc" xbrldt:closed="true" xbrldt:contextElement="segment" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2017/elts/us-gaap-2017-01-31.xsd#us-gaap_FiniteLivedIntangibleAssetsByMajorClassAxis" xlink:label="loc_us-gaap_FiniteLivedIntangibleAssetsByMajorClassAxis_B67D61F2B4FC17DBD22F4E41B9DA6513" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_ScheduleOfSegmentReportingInformationBySegmentTable_0F8E0C44F9D45A1053174E41B9DAB88C" xlink:to="loc_us-gaap_FiniteLivedIntangibleAssetsByMajorClassAxis_B67D61F2B4FC17DBD22F4E41B9DA6513" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2017/elts/us-gaap-2017-01-31.xsd#us-gaap_FiniteLivedIntangibleAssetsMajorClassNameDomain" xlink:label="loc_us-gaap_FiniteLivedIntangibleAssetsMajorClassNameDomain_F61278A0AA2275594FDE4E41B9DAAED9_default" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_FiniteLivedIntangibleAssetsByMajorClassAxis_B67D61F2B4FC17DBD22F4E41B9DA6513" xlink:to="loc_us-gaap_FiniteLivedIntangibleAssetsMajorClassNameDomain_F61278A0AA2275594FDE4E41B9DAAED9_default" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2017/elts/us-gaap-2017-01-31.xsd#us-gaap_FiniteLivedIntangibleAssetsMajorClassNameDomain" xlink:label="loc_us-gaap_FiniteLivedIntangibleAssetsMajorClassNameDomain_F61278A0AA2275594FDE4E41B9DAAED9" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_FiniteLivedIntangibleAssetsByMajorClassAxis_B67D61F2B4FC17DBD22F4E41B9DA6513" xlink:to="loc_us-gaap_FiniteLivedIntangibleAssetsMajorClassNameDomain_F61278A0AA2275594FDE4E41B9DAAED9" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2017/elts/us-gaap-2017-01-31.xsd#us-gaap_TrademarksAndTradeNamesMember" xlink:label="loc_us-gaap_TrademarksAndTradeNamesMember_C2A713ABCC15A6E128644E41B9DA7D8F" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_FiniteLivedIntangibleAssetsMajorClassNameDomain_F61278A0AA2275594FDE4E41B9DAAED9" xlink:to="loc_us-gaap_TrademarksAndTradeNamesMember_C2A713ABCC15A6E128644E41B9DA7D8F" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2017/elts/us-gaap-2017-01-31.xsd#us-gaap_RangeAxis" xlink:label="loc_us-gaap_RangeAxis_AADB3A4841C26D1C1DD34E41B9DA0A93" xlink:type="locator" />
    <link:definitionArc order="2" xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_ScheduleOfSegmentReportingInformationBySegmentTable_0F8E0C44F9D45A1053174E41B9DAB88C" xlink:to="loc_us-gaap_RangeAxis_AADB3A4841C26D1C1DD34E41B9DA0A93" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2017/elts/us-gaap-2017-01-31.xsd#us-gaap_RangeMember" xlink:label="loc_us-gaap_RangeMember_0D58A9ECD8919668F3D44E41B9DAB5F6_default" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_RangeAxis_AADB3A4841C26D1C1DD34E41B9DA0A93" xlink:to="loc_us-gaap_RangeMember_0D58A9ECD8919668F3D44E41B9DAB5F6_default" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2017/elts/us-gaap-2017-01-31.xsd#us-gaap_RangeMember" xlink:label="loc_us-gaap_RangeMember_0D58A9ECD8919668F3D44E41B9DAB5F6" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_RangeAxis_AADB3A4841C26D1C1DD34E41B9DA0A93" xlink:to="loc_us-gaap_RangeMember_0D58A9ECD8919668F3D44E41B9DAB5F6" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2017/elts/us-gaap-2017-01-31.xsd#us-gaap_WeightedAverageMember" xlink:label="loc_us-gaap_WeightedAverageMember_6EEBF9223D6926A71EBB4E41B9DAD6A0" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_RangeMember_0D58A9ECD8919668F3D44E41B9DAB5F6" xlink:to="loc_us-gaap_WeightedAverageMember_6EEBF9223D6926A71EBB4E41B9DAD6A0" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2017/elts/us-gaap-2017-01-31.xsd#us-gaap_ImpairmentOfIntangibleAssetsFinitelived" xlink:label="loc_us-gaap_ImpairmentOfIntangibleAssetsFinitelived_4BA375C6500FD8070A4C4E41B9DA314B" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_SegmentReportingInformationLineItems_067ACC003F143B2749854E41B9DA0B39" xlink:to="loc_us-gaap_ImpairmentOfIntangibleAssetsFinitelived_4BA375C6500FD8070A4C4E41B9DA314B" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2017/elts/us-gaap-2017-01-31.xsd#us-gaap_FiniteLivedIntangibleAssetUsefulLife" xlink:label="loc_us-gaap_FiniteLivedIntangibleAssetUsefulLife_9A5D551373EE12B73D534E41B9DBBF0E" xlink:type="locator" />
    <link:definitionArc order="2" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_SegmentReportingInformationLineItems_067ACC003F143B2749854E41B9DA0B39" xlink:to="loc_us-gaap_FiniteLivedIntangibleAssetUsefulLife_9A5D551373EE12B73D534E41B9DBBF0E" xlink:type="arc" />
  </link:definitionLink>
  <link:definitionLink xlink:role="http://www.oesx.com/role/IntangibleAssetsTables" xlink:type="extended" />
  <link:definitionLink xlink:role="http://www.oesx.com/role/Inventories" xlink:type="extended" />
  <link:definitionLink xlink:role="http://www.oesx.com/role/InventoriesDetails" xlink:type="extended" />
  <link:definitionLink xlink:role="http://www.oesx.com/role/InventoriesTables" xlink:type="extended" />
  <link:definitionLink xlink:role="http://www.oesx.com/role/LongTermDebt" xlink:type="extended" />
  <link:definitionLink xlink:role="http://www.oesx.com/role/LongTermDebtNarrativeDetails" xlink:type="extended">
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2017/elts/us-gaap-2017-01-31.xsd#us-gaap_LineOfCreditFacilityLineItems" xlink:label="loc_us-gaap_LineOfCreditFacilityLineItems_A9DE465989B7852C81027A833C888345" xlink:type="locator" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2017/elts/us-gaap-2017-01-31.xsd#us-gaap_LineOfCreditFacilityTable" xlink:label="loc_us-gaap_LineOfCreditFacilityTable_8108132C408F5C6D2F757A833C877581" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/all" xlink:from="loc_us-gaap_LineOfCreditFacilityLineItems_A9DE465989B7852C81027A833C888345" xlink:to="loc_us-gaap_LineOfCreditFacilityTable_8108132C408F5C6D2F757A833C877581" xlink:type="arc" xbrldt:closed="true" xbrldt:contextElement="segment" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2017/elts/us-gaap-2017-01-31.xsd#us-gaap_DebtInstrumentAxis" xlink:label="loc_us-gaap_DebtInstrumentAxis_EF42080E6FAA46D68ED37A833C877EF5" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_LineOfCreditFacilityTable_8108132C408F5C6D2F757A833C877581" xlink:to="loc_us-gaap_DebtInstrumentAxis_EF42080E6FAA46D68ED37A833C877EF5" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2017/elts/us-gaap-2017-01-31.xsd#us-gaap_DebtInstrumentNameDomain" xlink:label="loc_us-gaap_DebtInstrumentNameDomain_515EB0655B46CEA17C6F7A833C8716D3_default" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_DebtInstrumentAxis_EF42080E6FAA46D68ED37A833C877EF5" xlink:to="loc_us-gaap_DebtInstrumentNameDomain_515EB0655B46CEA17C6F7A833C8716D3_default" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2017/elts/us-gaap-2017-01-31.xsd#us-gaap_DebtInstrumentNameDomain" xlink:label="loc_us-gaap_DebtInstrumentNameDomain_515EB0655B46CEA17C6F7A833C8716D3" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_DebtInstrumentAxis_EF42080E6FAA46D68ED37A833C877EF5" xlink:to="loc_us-gaap_DebtInstrumentNameDomain_515EB0655B46CEA17C6F7A833C8716D3" xlink:type="arc" />
    <link:loc xlink:href="oesx-20171231.xsd#oesx_CreditAgreementMember" xlink:label="loc_oesx_CreditAgreementMember_43CB42690D9163834C957A833C873892" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DebtInstrumentNameDomain_515EB0655B46CEA17C6F7A833C8716D3" xlink:to="loc_oesx_CreditAgreementMember_43CB42690D9163834C957A833C873892" xlink:type="arc" />
    <link:loc xlink:href="oesx-20171231.xsd#oesx_December2014OTAFinanceProgramMember" xlink:label="loc_oesx_December2014OTAFinanceProgramMember_8D4E98D80E347B520AE27A833C874F2B" xlink:type="locator" />
    <link:definitionArc order="2" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DebtInstrumentNameDomain_515EB0655B46CEA17C6F7A833C8716D3" xlink:to="loc_oesx_December2014OTAFinanceProgramMember_8D4E98D80E347B520AE27A833C874F2B" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2017/elts/us-gaap-2017-01-31.xsd#us-gaap_CreditFacilityAxis" xlink:label="loc_us-gaap_CreditFacilityAxis_BBD29253BFAEBE4060D87A833C87E0BB" xlink:type="locator" />
    <link:definitionArc order="2" xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_LineOfCreditFacilityTable_8108132C408F5C6D2F757A833C877581" xlink:to="loc_us-gaap_CreditFacilityAxis_BBD29253BFAEBE4060D87A833C87E0BB" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2017/elts/us-gaap-2017-01-31.xsd#us-gaap_CreditFacilityDomain" xlink:label="loc_us-gaap_CreditFacilityDomain_41927CAE773C99BA06CD7A833C875A7A_default" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_CreditFacilityAxis_BBD29253BFAEBE4060D87A833C87E0BB" xlink:to="loc_us-gaap_CreditFacilityDomain_41927CAE773C99BA06CD7A833C875A7A_default" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2017/elts/us-gaap-2017-01-31.xsd#us-gaap_CreditFacilityDomain" xlink:label="loc_us-gaap_CreditFacilityDomain_41927CAE773C99BA06CD7A833C875A7A" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_CreditFacilityAxis_BBD29253BFAEBE4060D87A833C87E0BB" xlink:to="loc_us-gaap_CreditFacilityDomain_41927CAE773C99BA06CD7A833C875A7A" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2017/elts/us-gaap-2017-01-31.xsd#us-gaap_RevolvingCreditFacilityMember" xlink:label="loc_us-gaap_RevolvingCreditFacilityMember_EB043F2414EAC5C0796E7A833C874DAE" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_CreditFacilityDomain_41927CAE773C99BA06CD7A833C875A7A" xlink:to="loc_us-gaap_RevolvingCreditFacilityMember_EB043F2414EAC5C0796E7A833C874DAE" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2017/elts/us-gaap-2017-01-31.xsd#us-gaap_LetterOfCreditMember" xlink:label="loc_us-gaap_LetterOfCreditMember_61C4BF467EEE91BA47EC7A833C8800C6" xlink:type="locator" />
    <link:definitionArc order="2" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_CreditFacilityDomain_41927CAE773C99BA06CD7A833C875A7A" xlink:to="loc_us-gaap_LetterOfCreditMember_61C4BF467EEE91BA47EC7A833C8800C6" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2017/elts/us-gaap-2017-01-31.xsd#us-gaap_LineOfCreditFacilityAxis" xlink:label="loc_us-gaap_LineOfCreditFacilityAxis_490C9FD242F60E79FF2F7A833C8840E5" xlink:type="locator" />
    <link:definitionArc order="3" xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_LineOfCreditFacilityTable_8108132C408F5C6D2F757A833C877581" xlink:to="loc_us-gaap_LineOfCreditFacilityAxis_490C9FD242F60E79FF2F7A833C8840E5" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2017/elts/us-gaap-2017-01-31.xsd#us-gaap_LineOfCreditFacilityLenderDomain" xlink:label="loc_us-gaap_LineOfCreditFacilityLenderDomain_988A0F796B0EF06433257A833C887387_default" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_LineOfCreditFacilityAxis_490C9FD242F60E79FF2F7A833C8840E5" xlink:to="loc_us-gaap_LineOfCreditFacilityLenderDomain_988A0F796B0EF06433257A833C887387_default" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2017/elts/us-gaap-2017-01-31.xsd#us-gaap_LineOfCreditFacilityLenderDomain" xlink:label="loc_us-gaap_LineOfCreditFacilityLenderDomain_988A0F796B0EF06433257A833C887387" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_LineOfCreditFacilityAxis_490C9FD242F60E79FF2F7A833C8840E5" xlink:to="loc_us-gaap_LineOfCreditFacilityLenderDomain_988A0F796B0EF06433257A833C887387" xlink:type="arc" />
    <link:loc xlink:href="oesx-20171231.xsd#oesx_WellsFargoBankNationalAssociationMember" xlink:label="loc_oesx_WellsFargoBankNationalAssociationMember_A0FA31EA1A5AF52434AB7A833C8870BA" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_LineOfCreditFacilityLenderDomain_988A0F796B0EF06433257A833C887387" xlink:to="loc_oesx_WellsFargoBankNationalAssociationMember_A0FA31EA1A5AF52434AB7A833C8870BA" xlink:type="arc" />
    <link:loc xlink:href="oesx-20171231.xsd#oesx_DeLageLandenFinancialServicesInc.Member" xlink:label="loc_oesx_DeLageLandenFinancialServicesInc.Member_D43390BCE2375681E7C27A833C887CF3" xlink:type="locator" />
    <link:definitionArc order="2" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_LineOfCreditFacilityLenderDomain_988A0F796B0EF06433257A833C887387" xlink:to="loc_oesx_DeLageLandenFinancialServicesInc.Member_D43390BCE2375681E7C27A833C887CF3" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2017/elts/us-gaap-2017-01-31.xsd#us-gaap_VariableRateAxis" xlink:label="loc_us-gaap_VariableRateAxis_F3828EDA077A8B06C0F27A833C886CC8" xlink:type="locator" />
    <link:definitionArc order="4" xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_LineOfCreditFacilityTable_8108132C408F5C6D2F757A833C877581" xlink:to="loc_us-gaap_VariableRateAxis_F3828EDA077A8B06C0F27A833C886CC8" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2017/elts/us-gaap-2017-01-31.xsd#us-gaap_VariableRateDomain" xlink:label="loc_us-gaap_VariableRateDomain_6C636C1311DC5D1ADA1F7A833C880798_default" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_VariableRateAxis_F3828EDA077A8B06C0F27A833C886CC8" xlink:to="loc_us-gaap_VariableRateDomain_6C636C1311DC5D1ADA1F7A833C880798_default" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2017/elts/us-gaap-2017-01-31.xsd#us-gaap_VariableRateDomain" xlink:label="loc_us-gaap_VariableRateDomain_6C636C1311DC5D1ADA1F7A833C880798" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_VariableRateAxis_F3828EDA077A8B06C0F27A833C886CC8" xlink:to="loc_us-gaap_VariableRateDomain_6C636C1311DC5D1ADA1F7A833C880798" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2017/elts/us-gaap-2017-01-31.xsd#us-gaap_LondonInterbankOfferedRateLIBORMember" xlink:label="loc_us-gaap_LondonInterbankOfferedRateLIBORMember_36D858124DA7E2FD6B0A7A833C88764E" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_VariableRateDomain_6C636C1311DC5D1ADA1F7A833C880798" xlink:to="loc_us-gaap_LondonInterbankOfferedRateLIBORMember_36D858124DA7E2FD6B0A7A833C88764E" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2017/elts/us-gaap-2017-01-31.xsd#us-gaap_LongtermDebtTypeAxis" xlink:label="loc_us-gaap_LongtermDebtTypeAxis_AFEE837E8B4DB478EA1B7A833C8821D9" xlink:type="locator" />
    <link:definitionArc order="5" xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_LineOfCreditFacilityTable_8108132C408F5C6D2F757A833C877581" xlink:to="loc_us-gaap_LongtermDebtTypeAxis_AFEE837E8B4DB478EA1B7A833C8821D9" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2017/elts/us-gaap-2017-01-31.xsd#us-gaap_LongtermDebtTypeDomain" xlink:label="loc_us-gaap_LongtermDebtTypeDomain_6A5593678BA6FDEDEAC27A833C88CCDC_default" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_LongtermDebtTypeAxis_AFEE837E8B4DB478EA1B7A833C8821D9" xlink:to="loc_us-gaap_LongtermDebtTypeDomain_6A5593678BA6FDEDEAC27A833C88CCDC_default" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2017/elts/us-gaap-2017-01-31.xsd#us-gaap_LongtermDebtTypeDomain" xlink:label="loc_us-gaap_LongtermDebtTypeDomain_6A5593678BA6FDEDEAC27A833C88CCDC" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_LongtermDebtTypeAxis_AFEE837E8B4DB478EA1B7A833C8821D9" xlink:to="loc_us-gaap_LongtermDebtTypeDomain_6A5593678BA6FDEDEAC27A833C88CCDC" xlink:type="arc" />
    <link:loc xlink:href="oesx-20171231.xsd#oesx_HarrisSellersNoteMember" xlink:label="loc_oesx_HarrisSellersNoteMember_57BF64B130F82684744F7A833C889392" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_LongtermDebtTypeDomain_6A5593678BA6FDEDEAC27A833C88CCDC" xlink:to="loc_oesx_HarrisSellersNoteMember_57BF64B130F82684744F7A833C889392" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2017/elts/us-gaap-2017-01-31.xsd#us-gaap_SecuredDebtMember" xlink:label="loc_us-gaap_SecuredDebtMember_2D0BF357FEE4A67C0C7A7A833C8832A5" xlink:type="locator" />
    <link:definitionArc order="2" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_LongtermDebtTypeDomain_6A5593678BA6FDEDEAC27A833C88CCDC" xlink:to="loc_us-gaap_SecuredDebtMember_2D0BF357FEE4A67C0C7A7A833C8832A5" xlink:type="arc" />
    <link:loc xlink:href="oesx-20171231.xsd#oesx_June2011OtaFinanceProgramMember" xlink:label="loc_oesx_June2011OtaFinanceProgramMember_42F49C7B16F4142BE8907A833C88581F" xlink:type="locator" />
    <link:definitionArc order="3" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_LongtermDebtTypeDomain_6A5593678BA6FDEDEAC27A833C88CCDC" xlink:to="loc_oesx_June2011OtaFinanceProgramMember_42F49C7B16F4142BE8907A833C88581F" xlink:type="arc" />
    <link:loc xlink:href="oesx-20171231.xsd#oesx_AgreementWithWisconsinDepartmentOfCommerceMember" xlink:label="loc_oesx_AgreementWithWisconsinDepartmentOfCommerceMember_4BAA24CBDDFD9AEC46557A833C88C90D" xlink:type="locator" />
    <link:definitionArc order="4" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_LongtermDebtTypeDomain_6A5593678BA6FDEDEAC27A833C88CCDC" xlink:to="loc_oesx_AgreementWithWisconsinDepartmentOfCommerceMember_4BAA24CBDDFD9AEC46557A833C88C90D" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2017/elts/us-gaap-2017-01-31.xsd#us-gaap_ExtinguishmentOfDebtAxis" xlink:label="loc_us-gaap_ExtinguishmentOfDebtAxis_D3B3D86C0AFC6CBED0987A833C8816B5" xlink:type="locator" />
    <link:definitionArc order="6" xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_LineOfCreditFacilityTable_8108132C408F5C6D2F757A833C877581" xlink:to="loc_us-gaap_ExtinguishmentOfDebtAxis_D3B3D86C0AFC6CBED0987A833C8816B5" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2017/elts/us-gaap-2017-01-31.xsd#us-gaap_ExtinguishmentOfDebtTypeDomain" xlink:label="loc_us-gaap_ExtinguishmentOfDebtTypeDomain_3562227E84CD05AA219B7A833C886844_default" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_ExtinguishmentOfDebtAxis_D3B3D86C0AFC6CBED0987A833C8816B5" xlink:to="loc_us-gaap_ExtinguishmentOfDebtTypeDomain_3562227E84CD05AA219B7A833C886844_default" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2017/elts/us-gaap-2017-01-31.xsd#us-gaap_ExtinguishmentOfDebtTypeDomain" xlink:label="loc_us-gaap_ExtinguishmentOfDebtTypeDomain_3562227E84CD05AA219B7A833C886844" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_ExtinguishmentOfDebtAxis_D3B3D86C0AFC6CBED0987A833C8816B5" xlink:to="loc_us-gaap_ExtinguishmentOfDebtTypeDomain_3562227E84CD05AA219B7A833C886844" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2017/elts/us-gaap-2017-01-31.xsd#us-gaap_CapitalLeaseObligationsMember" xlink:label="loc_us-gaap_CapitalLeaseObligationsMember_92693EBFF2F0A6272F487A833C88F300" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ExtinguishmentOfDebtTypeDomain_3562227E84CD05AA219B7A833C886844" xlink:to="loc_us-gaap_CapitalLeaseObligationsMember_92693EBFF2F0A6272F487A833C88F300" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2017/elts/us-gaap-2017-01-31.xsd#us-gaap_LineOfCreditFacilityCurrentBorrowingCapacity" xlink:label="loc_us-gaap_LineOfCreditFacilityCurrentBorrowingCapacity_205A5D7900DBCA44110C7A833C88EB43" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_LineOfCreditFacilityLineItems_A9DE465989B7852C81027A833C888345" xlink:to="loc_us-gaap_LineOfCreditFacilityCurrentBorrowingCapacity_205A5D7900DBCA44110C7A833C88EB43" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2017/elts/us-gaap-2017-01-31.xsd#us-gaap_LettersOfCreditOutstandingAmount" xlink:label="loc_us-gaap_LettersOfCreditOutstandingAmount_C0CDD92B80ECA593EED27A833C882814" xlink:type="locator" />
    <link:definitionArc order="2" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_LineOfCreditFacilityLineItems_A9DE465989B7852C81027A833C888345" xlink:to="loc_us-gaap_LettersOfCreditOutstandingAmount_C0CDD92B80ECA593EED27A833C882814" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2017/elts/us-gaap-2017-01-31.xsd#us-gaap_LongTermLineOfCredit" xlink:label="loc_us-gaap_LongTermLineOfCredit_926C68E67ECAEDEA4FED7A833C895188" xlink:type="locator" />
    <link:definitionArc order="3" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_LineOfCreditFacilityLineItems_A9DE465989B7852C81027A833C888345" xlink:to="loc_us-gaap_LongTermLineOfCredit_926C68E67ECAEDEA4FED7A833C895188" xlink:type="arc" />
    <link:loc xlink:href="oesx-20171231.xsd#oesx_LineOfCreditFacilityAdditionalBorrowingCapacity" xlink:label="loc_oesx_LineOfCreditFacilityAdditionalBorrowingCapacity_6E91759FC34B7B7E244D7A833C890709" xlink:type="locator" />
    <link:definitionArc order="4" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_LineOfCreditFacilityLineItems_A9DE465989B7852C81027A833C888345" xlink:to="loc_oesx_LineOfCreditFacilityAdditionalBorrowingCapacity_6E91759FC34B7B7E244D7A833C890709" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2017/elts/us-gaap-2017-01-31.xsd#us-gaap_LineOfCreditFacilityMaximumBorrowingCapacity" xlink:label="loc_us-gaap_LineOfCreditFacilityMaximumBorrowingCapacity_41C82F9D9D15318FE83E7A833C88B0AB" xlink:type="locator" />
    <link:definitionArc order="5" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_LineOfCreditFacilityLineItems_A9DE465989B7852C81027A833C888345" xlink:to="loc_us-gaap_LineOfCreditFacilityMaximumBorrowingCapacity_41C82F9D9D15318FE83E7A833C88B0AB" xlink:type="arc" />
    <link:loc xlink:href="oesx-20171231.xsd#oesx_LineOfCreditFacilityPotentialMaximumBorrowingCapacity" xlink:label="loc_oesx_LineOfCreditFacilityPotentialMaximumBorrowingCapacity_15C59BE5069B1AD272D17A833C89F5FC" xlink:type="locator" />
    <link:definitionArc order="6" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_LineOfCreditFacilityLineItems_A9DE465989B7852C81027A833C888345" xlink:to="loc_oesx_LineOfCreditFacilityPotentialMaximumBorrowingCapacity_15C59BE5069B1AD272D17A833C89F5FC" xlink:type="arc" />
    <link:loc xlink:href="oesx-20171231.xsd#oesx_LineOfCreditFacilityCovenantTermsMinimumIndebtednessRatio" xlink:label="loc_oesx_LineOfCreditFacilityCovenantTermsMinimumIndebtednessRatio_D5094FBED8F6224049227A833C89CC5D" xlink:type="locator" />
    <link:definitionArc order="7" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_LineOfCreditFacilityLineItems_A9DE465989B7852C81027A833C888345" xlink:to="loc_oesx_LineOfCreditFacilityCovenantTermsMinimumIndebtednessRatio_D5094FBED8F6224049227A833C89CC5D" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2017/elts/us-gaap-2017-01-31.xsd#us-gaap_DebtInstrumentBasisSpreadOnVariableRate1" xlink:label="loc_us-gaap_DebtInstrumentBasisSpreadOnVariableRate1_615AD88C2C8B667EF26E7A833C89256A" xlink:type="locator" />
    <link:definitionArc order="8" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_LineOfCreditFacilityLineItems_A9DE465989B7852C81027A833C888345" xlink:to="loc_us-gaap_DebtInstrumentBasisSpreadOnVariableRate1_615AD88C2C8B667EF26E7A833C89256A" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2017/elts/us-gaap-2017-01-31.xsd#us-gaap_DebtInstrumentPeriodicPaymentInterest" xlink:label="loc_us-gaap_DebtInstrumentPeriodicPaymentInterest_A8FDCEE24B2ACCF801217A833C893CE2" xlink:type="locator" />
    <link:definitionArc order="9" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_LineOfCreditFacilityLineItems_A9DE465989B7852C81027A833C888345" xlink:to="loc_us-gaap_DebtInstrumentPeriodicPaymentInterest_A8FDCEE24B2ACCF801217A833C893CE2" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2017/elts/us-gaap-2017-01-31.xsd#us-gaap_DebtInstrumentInterestRateEffectivePercentage" xlink:label="loc_us-gaap_DebtInstrumentInterestRateEffectivePercentage_A647CF890B3FEF6F8E787A833C89CC56" xlink:type="locator" />
    <link:definitionArc order="10" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_LineOfCreditFacilityLineItems_A9DE465989B7852C81027A833C888345" xlink:to="loc_us-gaap_DebtInstrumentInterestRateEffectivePercentage_A647CF890B3FEF6F8E787A833C89CC56" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2017/elts/us-gaap-2017-01-31.xsd#us-gaap_LineOfCreditFacilityUnusedCapacityCommitmentFeePercentage" xlink:label="loc_us-gaap_LineOfCreditFacilityUnusedCapacityCommitmentFeePercentage_36755503DCFB6F9B15C07A833C892470" xlink:type="locator" />
    <link:definitionArc order="11" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_LineOfCreditFacilityLineItems_A9DE465989B7852C81027A833C888345" xlink:to="loc_us-gaap_LineOfCreditFacilityUnusedCapacityCommitmentFeePercentage_36755503DCFB6F9B15C07A833C892470" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2017/elts/us-gaap-2017-01-31.xsd#us-gaap_DebtInstrumentFaceAmount" xlink:label="loc_us-gaap_DebtInstrumentFaceAmount_7D74A469A77D1919A60E7A833C89ABCA" xlink:type="locator" />
    <link:definitionArc order="12" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_LineOfCreditFacilityLineItems_A9DE465989B7852C81027A833C888345" xlink:to="loc_us-gaap_DebtInstrumentFaceAmount_7D74A469A77D1919A60E7A833C89ABCA" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2017/elts/us-gaap-2017-01-31.xsd#us-gaap_DebtInstrumentInterestRateStatedPercentage" xlink:label="loc_us-gaap_DebtInstrumentInterestRateStatedPercentage_901B4EDA270BE81B07FC7A833C89975B" xlink:type="locator" />
    <link:definitionArc order="13" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_LineOfCreditFacilityLineItems_A9DE465989B7852C81027A833C888345" xlink:to="loc_us-gaap_DebtInstrumentInterestRateStatedPercentage_901B4EDA270BE81B07FC7A833C89975B" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2017/elts/us-gaap-2017-01-31.xsd#us-gaap_DebtInstrumentCarryingAmount" xlink:label="loc_us-gaap_DebtInstrumentCarryingAmount_32CA04428F33AC903BB97A833C890815" xlink:type="locator" />
    <link:definitionArc order="14" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_LineOfCreditFacilityLineItems_A9DE465989B7852C81027A833C888345" xlink:to="loc_us-gaap_DebtInstrumentCarryingAmount_32CA04428F33AC903BB97A833C890815" xlink:type="arc" />
    <link:loc xlink:href="oesx-20171231.xsd#oesx_DebtInstrumentBuyoutOption" xlink:label="loc_oesx_DebtInstrumentBuyoutOption_3427660E46F14C503A2E7A833C895949" xlink:type="locator" />
    <link:definitionArc order="15" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_LineOfCreditFacilityLineItems_A9DE465989B7852C81027A833C888345" xlink:to="loc_oesx_DebtInstrumentBuyoutOption_3427660E46F14C503A2E7A833C895949" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2017/elts/us-gaap-2017-01-31.xsd#us-gaap_SecuredDebt" xlink:label="loc_us-gaap_SecuredDebt_74EB52526641FA52FC9A7A833C8967F7" xlink:type="locator" />
    <link:definitionArc order="16" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_LineOfCreditFacilityLineItems_A9DE465989B7852C81027A833C888345" xlink:to="loc_us-gaap_SecuredDebt_74EB52526641FA52FC9A7A833C8967F7" xlink:type="arc" />
    <link:loc xlink:href="oesx-20171231.xsd#oesx_DebtInstrumentNumberOfContractsForCollateral" xlink:label="loc_oesx_DebtInstrumentNumberOfContractsForCollateral_0A0353B2F2E86D1D8D5A7A833C892FC6" xlink:type="locator" />
    <link:definitionArc order="17" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_LineOfCreditFacilityLineItems_A9DE465989B7852C81027A833C888345" xlink:to="loc_oesx_DebtInstrumentNumberOfContractsForCollateral_0A0353B2F2E86D1D8D5A7A833C892FC6" xlink:type="arc" />
    <link:loc xlink:href="oesx-20171231.xsd#oesx_PeriodOfTimeWithoutInterestAccruingOrPrincipalPaymentsDue" xlink:label="loc_oesx_PeriodOfTimeWithoutInterestAccruingOrPrincipalPaymentsDue_6F6FD51978106395B5347A833C89FC35" xlink:type="locator" />
    <link:definitionArc order="18" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_LineOfCreditFacilityLineItems_A9DE465989B7852C81027A833C888345" xlink:to="loc_oesx_PeriodOfTimeWithoutInterestAccruingOrPrincipalPaymentsDue_6F6FD51978106395B5347A833C89FC35" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2017/elts/us-gaap-2017-01-31.xsd#us-gaap_DebtInstrumentPeriodicPayment" xlink:label="loc_us-gaap_DebtInstrumentPeriodicPayment_40E91FDE2CD031371ADF7A833C8930E9" xlink:type="locator" />
    <link:definitionArc order="19" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_LineOfCreditFacilityLineItems_A9DE465989B7852C81027A833C888345" xlink:to="loc_us-gaap_DebtInstrumentPeriodicPayment_40E91FDE2CD031371ADF7A833C8930E9" xlink:type="arc" />
  </link:definitionLink>
  <link:definitionLink xlink:role="http://www.oesx.com/role/LongTermDebtSummaryOfLongTermDebtDetails" xlink:type="extended">
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2017/elts/us-gaap-2017-01-31.xsd#us-gaap_ExtinguishmentOfDebtLineItems" xlink:label="loc_us-gaap_ExtinguishmentOfDebtLineItems_39C45E2A010D5578A69309E1DBC47181" xlink:type="locator" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2017/elts/us-gaap-2017-01-31.xsd#us-gaap_ScheduleOfExtinguishmentOfDebtTable" xlink:label="loc_us-gaap_ScheduleOfExtinguishmentOfDebtTable_E09414E2F73E592389472B2F8CE6FDD5" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/all" xlink:from="loc_us-gaap_ExtinguishmentOfDebtLineItems_39C45E2A010D5578A69309E1DBC47181" xlink:to="loc_us-gaap_ScheduleOfExtinguishmentOfDebtTable_E09414E2F73E592389472B2F8CE6FDD5" xlink:type="arc" xbrldt:closed="true" xbrldt:contextElement="segment" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2017/elts/us-gaap-2017-01-31.xsd#us-gaap_LongtermDebtTypeAxis" xlink:label="loc_us-gaap_LongtermDebtTypeAxis_4C85876C7A6C59D4B41A146A0C753CDC" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_ScheduleOfExtinguishmentOfDebtTable_E09414E2F73E592389472B2F8CE6FDD5" xlink:to="loc_us-gaap_LongtermDebtTypeAxis_4C85876C7A6C59D4B41A146A0C753CDC" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2017/elts/us-gaap-2017-01-31.xsd#us-gaap_LongtermDebtTypeDomain" xlink:label="loc_us-gaap_LongtermDebtTypeDomain_04B19B6CF07B6B00496B7581243BE8AA_5529D50F106254F5B5FEB7991377D95F" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_LongtermDebtTypeAxis_4C85876C7A6C59D4B41A146A0C753CDC" xlink:to="loc_us-gaap_LongtermDebtTypeDomain_04B19B6CF07B6B00496B7581243BE8AA_5529D50F106254F5B5FEB7991377D95F" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2017/elts/us-gaap-2017-01-31.xsd#us-gaap_LongtermDebtTypeDomain" xlink:label="loc_us-gaap_LongtermDebtTypeDomain_1D2D6A4696105FC8AEE5C63E96ABF270" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_LongtermDebtTypeAxis_4C85876C7A6C59D4B41A146A0C753CDC" xlink:to="loc_us-gaap_LongtermDebtTypeDomain_1D2D6A4696105FC8AEE5C63E96ABF270" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2017/elts/us-gaap-2017-01-31.xsd#us-gaap_RevolvingCreditFacilityMember" xlink:label="loc_us-gaap_RevolvingCreditFacilityMember_F3879FA491965EEB81A870C5146240DD" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_LongtermDebtTypeDomain_1D2D6A4696105FC8AEE5C63E96ABF270" xlink:to="loc_us-gaap_RevolvingCreditFacilityMember_F3879FA491965EEB81A870C5146240DD" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2017/elts/us-gaap-2017-01-31.xsd#us-gaap_CapitalLeaseObligationsMember" xlink:label="loc_us-gaap_CapitalLeaseObligationsMember_B1BA45A740B05A08A189C85C44B3E3F6" xlink:type="locator" />
    <link:definitionArc order="2" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_LongtermDebtTypeDomain_1D2D6A4696105FC8AEE5C63E96ABF270" xlink:to="loc_us-gaap_CapitalLeaseObligationsMember_B1BA45A740B05A08A189C85C44B3E3F6" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2017/elts/us-gaap-2017-01-31.xsd#us-gaap_DebtInstrumentAxis" xlink:label="loc_us-gaap_DebtInstrumentAxis_35F4BD01E56957008E9443E2B5A8FF80" xlink:type="locator" />
    <link:definitionArc order="2" xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_ScheduleOfExtinguishmentOfDebtTable_E09414E2F73E592389472B2F8CE6FDD5" xlink:to="loc_us-gaap_DebtInstrumentAxis_35F4BD01E56957008E9443E2B5A8FF80" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2017/elts/us-gaap-2017-01-31.xsd#us-gaap_DebtInstrumentNameDomain" xlink:label="loc_us-gaap_DebtInstrumentNameDomain_9F69AF4CA909BA05C6267581243B3E37_5529D50F106254F5B5FEB7991377D95F" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_DebtInstrumentAxis_35F4BD01E56957008E9443E2B5A8FF80" xlink:to="loc_us-gaap_DebtInstrumentNameDomain_9F69AF4CA909BA05C6267581243B3E37_5529D50F106254F5B5FEB7991377D95F" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2017/elts/us-gaap-2017-01-31.xsd#us-gaap_DebtInstrumentNameDomain" xlink:label="loc_us-gaap_DebtInstrumentNameDomain_E5B848396679528891AF701398BB93AA" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_DebtInstrumentAxis_35F4BD01E56957008E9443E2B5A8FF80" xlink:to="loc_us-gaap_DebtInstrumentNameDomain_E5B848396679528891AF701398BB93AA" xlink:type="arc" />
    <link:loc xlink:href="oesx-20171231.xsd#oesx_CustomerEquipmentFinanceNotesPayableMember" xlink:label="loc_oesx_CustomerEquipmentFinanceNotesPayableMember_B78363F27977595FADC21AA84D222F10" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DebtInstrumentNameDomain_E5B848396679528891AF701398BB93AA" xlink:to="loc_oesx_CustomerEquipmentFinanceNotesPayableMember_B78363F27977595FADC21AA84D222F10" xlink:type="arc" />
    <link:loc xlink:href="oesx-20171231.xsd#oesx_OtherLongTermDebtMember" xlink:label="loc_oesx_OtherLongTermDebtMember_F1F26183C64E5FD99C0F61835269F488" xlink:type="locator" />
    <link:definitionArc order="2" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DebtInstrumentNameDomain_E5B848396679528891AF701398BB93AA" xlink:to="loc_oesx_OtherLongTermDebtMember_F1F26183C64E5FD99C0F61835269F488" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2017/elts/us-gaap-2017-01-31.xsd#us-gaap_LongTermDebtByCurrentAndNoncurrentAbstract" xlink:label="loc_us-gaap_LongTermDebtByCurrentAndNoncurrentAbstract_691E7AD4718A520E8DE4611E69B1E4DF" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ExtinguishmentOfDebtLineItems_39C45E2A010D5578A69309E1DBC47181" xlink:to="loc_us-gaap_LongTermDebtByCurrentAndNoncurrentAbstract_691E7AD4718A520E8DE4611E69B1E4DF" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2017/elts/us-gaap-2017-01-31.xsd#us-gaap_LongTermDebt" xlink:label="loc_us-gaap_LongTermDebt_DEDC90EFE36A559D918335626D987BF0" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_LongTermDebtByCurrentAndNoncurrentAbstract_691E7AD4718A520E8DE4611E69B1E4DF" xlink:to="loc_us-gaap_LongTermDebt_DEDC90EFE36A559D918335626D987BF0" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2017/elts/us-gaap-2017-01-31.xsd#us-gaap_LongTermDebtCurrent" xlink:label="loc_us-gaap_LongTermDebtCurrent_E33358755209565DA83413F26FB4B86D" xlink:type="locator" />
    <link:definitionArc order="2" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_LongTermDebtByCurrentAndNoncurrentAbstract_691E7AD4718A520E8DE4611E69B1E4DF" xlink:to="loc_us-gaap_LongTermDebtCurrent_E33358755209565DA83413F26FB4B86D" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2017/elts/us-gaap-2017-01-31.xsd#us-gaap_LongTermDebtNoncurrent" xlink:label="loc_us-gaap_LongTermDebtNoncurrent_7E42EE07112B5DDC96655EDEA81B7CF7" xlink:type="locator" />
    <link:definitionArc order="3" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_LongTermDebtByCurrentAndNoncurrentAbstract_691E7AD4718A520E8DE4611E69B1E4DF" xlink:to="loc_us-gaap_LongTermDebtNoncurrent_7E42EE07112B5DDC96655EDEA81B7CF7" xlink:type="arc" />
  </link:definitionLink>
  <link:definitionLink xlink:role="http://www.oesx.com/role/LongTermDebtTables" xlink:type="extended" />
  <link:definitionLink xlink:role="http://www.oesx.com/role/NetLossPerCommonShare" xlink:type="extended" />
  <link:definitionLink xlink:role="http://www.oesx.com/role/NetLossPerCommonShareEarningsPerShareDetails" xlink:type="extended" />
  <link:definitionLink xlink:role="http://www.oesx.com/role/NetLossPerCommonSharePotentiallyDilutiveSecuritiesDetails" xlink:type="extended">
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2017/elts/us-gaap-2017-01-31.xsd#us-gaap_AntidilutiveSecuritiesExcludedFromComputationOfEarningsPerShareLineItems" xlink:label="loc_us-gaap_AntidilutiveSecuritiesExcludedFromComputationOfEarningsPerShareLineItems_1F5071B9835D5AF4B4B5434E7E325F8E" xlink:type="locator" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2017/elts/us-gaap-2017-01-31.xsd#us-gaap_ScheduleOfAntidilutiveSecuritiesExcludedFromComputationOfEarningsPerShareTable" xlink:label="loc_us-gaap_ScheduleOfAntidilutiveSecuritiesExcludedFromComputationOfEarningsPerShareTable_4CFE7AB6D241555F9A93B9C07FA1A08D" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/all" xlink:from="loc_us-gaap_AntidilutiveSecuritiesExcludedFromComputationOfEarningsPerShareLineItems_1F5071B9835D5AF4B4B5434E7E325F8E" xlink:to="loc_us-gaap_ScheduleOfAntidilutiveSecuritiesExcludedFromComputationOfEarningsPerShareTable_4CFE7AB6D241555F9A93B9C07FA1A08D" xlink:type="arc" xbrldt:closed="true" xbrldt:contextElement="segment" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2017/elts/us-gaap-2017-01-31.xsd#us-gaap_AntidilutiveSecuritiesExcludedFromComputationOfEarningsPerShareByAntidilutiveSecuritiesAxis" xlink:label="loc_us-gaap_AntidilutiveSecuritiesExcludedFromComputationOfEarningsPerShareByAntidilutiveSecuritiesAxis_CF9B4A76522D5234A3131E84EAFFA0C1" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_ScheduleOfAntidilutiveSecuritiesExcludedFromComputationOfEarningsPerShareTable_4CFE7AB6D241555F9A93B9C07FA1A08D" xlink:to="loc_us-gaap_AntidilutiveSecuritiesExcludedFromComputationOfEarningsPerShareByAntidilutiveSecuritiesAxis_CF9B4A76522D5234A3131E84EAFFA0C1" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2017/elts/us-gaap-2017-01-31.xsd#us-gaap_AntidilutiveSecuritiesNameDomain" xlink:label="loc_us-gaap_AntidilutiveSecuritiesNameDomain_298A26E56F93E1521FA561C0FE9CF999_5529D50F106254F5B5FEB7991377D95F" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_AntidilutiveSecuritiesExcludedFromComputationOfEarningsPerShareByAntidilutiveSecuritiesAxis_CF9B4A76522D5234A3131E84EAFFA0C1" xlink:to="loc_us-gaap_AntidilutiveSecuritiesNameDomain_298A26E56F93E1521FA561C0FE9CF999_5529D50F106254F5B5FEB7991377D95F" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2017/elts/us-gaap-2017-01-31.xsd#us-gaap_AntidilutiveSecuritiesNameDomain" xlink:label="loc_us-gaap_AntidilutiveSecuritiesNameDomain_10B600A496DF5099ADB7625776D28D22" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_AntidilutiveSecuritiesExcludedFromComputationOfEarningsPerShareByAntidilutiveSecuritiesAxis_CF9B4A76522D5234A3131E84EAFFA0C1" xlink:to="loc_us-gaap_AntidilutiveSecuritiesNameDomain_10B600A496DF5099ADB7625776D28D22" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2017/elts/us-gaap-2017-01-31.xsd#us-gaap_EmployeeStockOptionMember" xlink:label="loc_us-gaap_EmployeeStockOptionMember_1952AD8C76BA5E1E9DAA6F9EBB1174D9" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_AntidilutiveSecuritiesNameDomain_10B600A496DF5099ADB7625776D28D22" xlink:to="loc_us-gaap_EmployeeStockOptionMember_1952AD8C76BA5E1E9DAA6F9EBB1174D9" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2017/elts/us-gaap-2017-01-31.xsd#us-gaap_RestrictedStockMember" xlink:label="loc_us-gaap_RestrictedStockMember_024C9CECEB8154AFA7F2F200678A4E42" xlink:type="locator" />
    <link:definitionArc order="2" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_AntidilutiveSecuritiesNameDomain_10B600A496DF5099ADB7625776D28D22" xlink:to="loc_us-gaap_RestrictedStockMember_024C9CECEB8154AFA7F2F200678A4E42" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2017/elts/us-gaap-2017-01-31.xsd#us-gaap_AntidilutiveSecuritiesExcludedFromComputationOfEarningsPerShareAmount" xlink:label="loc_us-gaap_AntidilutiveSecuritiesExcludedFromComputationOfEarningsPerShareAmount_8FB8244212AC5D269161190C5545DBBD" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_AntidilutiveSecuritiesExcludedFromComputationOfEarningsPerShareLineItems_1F5071B9835D5AF4B4B5434E7E325F8E" xlink:to="loc_us-gaap_AntidilutiveSecuritiesExcludedFromComputationOfEarningsPerShareAmount_8FB8244212AC5D269161190C5545DBBD" xlink:type="arc" />
  </link:definitionLink>
  <link:definitionLink xlink:role="http://www.oesx.com/role/NetLossPerCommonShareTables" xlink:type="extended" />
  <link:definitionLink xlink:role="http://www.oesx.com/role/PrepaidExpensesAndOtherCurrentAssets" xlink:type="extended" />
  <link:definitionLink xlink:role="http://www.oesx.com/role/PrepaidExpensesAndOtherCurrentAssetsDetails" xlink:type="extended" />
  <link:definitionLink xlink:role="http://www.oesx.com/role/PrepaidExpensesAndOtherCurrentAssetsTables" xlink:type="extended" />
  <link:definitionLink xlink:role="http://www.oesx.com/role/PropertyAndEquipment" xlink:type="extended" />
  <link:definitionLink xlink:role="http://www.oesx.com/role/PropertyAndEquipmentEquipmentUnderCapitalLeasesDetails" xlink:type="extended">
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2017/elts/us-gaap-2017-01-31.xsd#us-gaap_CapitalLeasedAssetsLineItems" xlink:label="loc_us-gaap_CapitalLeasedAssetsLineItems_9EF9C4C3AADD5CC8AD751A291EA111C8" xlink:type="locator" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2017/elts/us-gaap-2017-01-31.xsd#us-gaap_ScheduleOfCapitalLeasedAsssetsTable" xlink:label="loc_us-gaap_ScheduleOfCapitalLeasedAsssetsTable_EF747CD372F957BBAA5CF5332E2D5B34" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/all" xlink:from="loc_us-gaap_CapitalLeasedAssetsLineItems_9EF9C4C3AADD5CC8AD751A291EA111C8" xlink:to="loc_us-gaap_ScheduleOfCapitalLeasedAsssetsTable_EF747CD372F957BBAA5CF5332E2D5B34" xlink:type="arc" xbrldt:closed="true" xbrldt:contextElement="segment" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2017/elts/us-gaap-2017-01-31.xsd#us-gaap_PropertyPlantAndEquipmentByTypeAxis" xlink:label="loc_us-gaap_PropertyPlantAndEquipmentByTypeAxis_C8E91227733159318CB249AA112881B5" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_ScheduleOfCapitalLeasedAsssetsTable_EF747CD372F957BBAA5CF5332E2D5B34" xlink:to="loc_us-gaap_PropertyPlantAndEquipmentByTypeAxis_C8E91227733159318CB249AA112881B5" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2017/elts/us-gaap-2017-01-31.xsd#us-gaap_PropertyPlantAndEquipmentTypeDomain" xlink:label="loc_us-gaap_PropertyPlantAndEquipmentTypeDomain_4146937C4040B3BC676161C0FECCDF8E_5529D50F106254F5B5FEB7991377D95F" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_PropertyPlantAndEquipmentByTypeAxis_C8E91227733159318CB249AA112881B5" xlink:to="loc_us-gaap_PropertyPlantAndEquipmentTypeDomain_4146937C4040B3BC676161C0FECCDF8E_5529D50F106254F5B5FEB7991377D95F" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2017/elts/us-gaap-2017-01-31.xsd#us-gaap_PropertyPlantAndEquipmentTypeDomain" xlink:label="loc_us-gaap_PropertyPlantAndEquipmentTypeDomain_6F51A14B5C675E39BE9C67D14BAE9CAD" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_PropertyPlantAndEquipmentByTypeAxis_C8E91227733159318CB249AA112881B5" xlink:to="loc_us-gaap_PropertyPlantAndEquipmentTypeDomain_6F51A14B5C675E39BE9C67D14BAE9CAD" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2017/elts/us-gaap-2017-01-31.xsd#us-gaap_AssetsHeldUnderCapitalLeasesMember" xlink:label="loc_us-gaap_AssetsHeldUnderCapitalLeasesMember_4586A8586A9D5C669FFA61EF133CEB81" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_PropertyPlantAndEquipmentTypeDomain_6F51A14B5C675E39BE9C67D14BAE9CAD" xlink:to="loc_us-gaap_AssetsHeldUnderCapitalLeasesMember_4586A8586A9D5C669FFA61EF133CEB81" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2017/elts/us-gaap-2017-01-31.xsd#us-gaap_PropertyPlantAndEquipmentGross" xlink:label="loc_us-gaap_PropertyPlantAndEquipmentGross_52B53FA1F9EC52B8A9DEA937F6E65E2E" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_CapitalLeasedAssetsLineItems_9EF9C4C3AADD5CC8AD751A291EA111C8" xlink:to="loc_us-gaap_PropertyPlantAndEquipmentGross_52B53FA1F9EC52B8A9DEA937F6E65E2E" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2017/elts/us-gaap-2017-01-31.xsd#us-gaap_AccumulatedDepreciationDepletionAndAmortizationPropertyPlantAndEquipment" xlink:label="loc_us-gaap_AccumulatedDepreciationDepletionAndAmortizationPropertyPlantAndEquipment_B45EBAFFBFD8529283F0CED28D6E5C2E" xlink:type="locator" />
    <link:definitionArc order="2" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_CapitalLeasedAssetsLineItems_9EF9C4C3AADD5CC8AD751A291EA111C8" xlink:to="loc_us-gaap_AccumulatedDepreciationDepletionAndAmortizationPropertyPlantAndEquipment_B45EBAFFBFD8529283F0CED28D6E5C2E" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2017/elts/us-gaap-2017-01-31.xsd#us-gaap_PropertyPlantAndEquipmentNet" xlink:label="loc_us-gaap_PropertyPlantAndEquipmentNet_66C5D3EFB139578789A5AF187A26DE40" xlink:type="locator" />
    <link:definitionArc order="3" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_CapitalLeasedAssetsLineItems_9EF9C4C3AADD5CC8AD751A291EA111C8" xlink:to="loc_us-gaap_PropertyPlantAndEquipmentNet_66C5D3EFB139578789A5AF187A26DE40" xlink:type="arc" />
  </link:definitionLink>
  <link:definitionLink xlink:role="http://www.oesx.com/role/PropertyAndEquipmentNarrativeDetails" xlink:type="extended" />
  <link:definitionLink xlink:role="http://www.oesx.com/role/PropertyAndEquipmentSummaryOfPropertyAndEquipmentDetails" xlink:type="extended">
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2017/elts/us-gaap-2017-01-31.xsd#us-gaap_PropertyPlantAndEquipmentLineItems" xlink:label="loc_us-gaap_PropertyPlantAndEquipmentLineItems_2F88CB4BDA39F664FB8F09BDA799DB9E" xlink:type="locator" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2017/elts/us-gaap-2017-01-31.xsd#us-gaap_ScheduleOfPropertyPlantAndEquipmentTable" xlink:label="loc_us-gaap_ScheduleOfPropertyPlantAndEquipmentTable_C2A46D3451014E9A5C1609BDA79901D6" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/all" xlink:from="loc_us-gaap_PropertyPlantAndEquipmentLineItems_2F88CB4BDA39F664FB8F09BDA799DB9E" xlink:to="loc_us-gaap_ScheduleOfPropertyPlantAndEquipmentTable_C2A46D3451014E9A5C1609BDA79901D6" xlink:type="arc" xbrldt:closed="true" xbrldt:contextElement="segment" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2017/elts/us-gaap-2017-01-31.xsd#us-gaap_PropertyPlantAndEquipmentByTypeAxis" xlink:label="loc_us-gaap_PropertyPlantAndEquipmentByTypeAxis_72FE7057F160D377A3DA09BDA79908A1" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_ScheduleOfPropertyPlantAndEquipmentTable_C2A46D3451014E9A5C1609BDA79901D6" xlink:to="loc_us-gaap_PropertyPlantAndEquipmentByTypeAxis_72FE7057F160D377A3DA09BDA79908A1" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2017/elts/us-gaap-2017-01-31.xsd#us-gaap_PropertyPlantAndEquipmentTypeDomain" xlink:label="loc_us-gaap_PropertyPlantAndEquipmentTypeDomain_EE4F35C7DB4EE678FDC209BDA799660D_default" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_PropertyPlantAndEquipmentByTypeAxis_72FE7057F160D377A3DA09BDA79908A1" xlink:to="loc_us-gaap_PropertyPlantAndEquipmentTypeDomain_EE4F35C7DB4EE678FDC209BDA799660D_default" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2017/elts/us-gaap-2017-01-31.xsd#us-gaap_PropertyPlantAndEquipmentTypeDomain" xlink:label="loc_us-gaap_PropertyPlantAndEquipmentTypeDomain_EE4F35C7DB4EE678FDC209BDA799660D" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_PropertyPlantAndEquipmentByTypeAxis_72FE7057F160D377A3DA09BDA79908A1" xlink:to="loc_us-gaap_PropertyPlantAndEquipmentTypeDomain_EE4F35C7DB4EE678FDC209BDA799660D" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2017/elts/us-gaap-2017-01-31.xsd#us-gaap_LandImprovementsMember" xlink:label="loc_us-gaap_LandImprovementsMember_6047658F610BB61042FB09BDA799D430" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_PropertyPlantAndEquipmentTypeDomain_EE4F35C7DB4EE678FDC209BDA799660D" xlink:to="loc_us-gaap_LandImprovementsMember_6047658F610BB61042FB09BDA799D430" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2017/elts/us-gaap-2017-01-31.xsd#us-gaap_BuildingAndBuildingImprovementsMember" xlink:label="loc_us-gaap_BuildingAndBuildingImprovementsMember_84E7B8826A716FBD3F7909BDA79954A9" xlink:type="locator" />
    <link:definitionArc order="2" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_PropertyPlantAndEquipmentTypeDomain_EE4F35C7DB4EE678FDC209BDA799660D" xlink:to="loc_us-gaap_BuildingAndBuildingImprovementsMember_84E7B8826A716FBD3F7909BDA79954A9" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2017/elts/us-gaap-2017-01-31.xsd#us-gaap_FurnitureAndFixturesMember" xlink:label="loc_us-gaap_FurnitureAndFixturesMember_FDD779C6AF446B59E92509BDA79973BF" xlink:type="locator" />
    <link:definitionArc order="3" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_PropertyPlantAndEquipmentTypeDomain_EE4F35C7DB4EE678FDC209BDA799660D" xlink:to="loc_us-gaap_FurnitureAndFixturesMember_FDD779C6AF446B59E92509BDA79973BF" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2017/elts/us-gaap-2017-01-31.xsd#us-gaap_LeaseholdImprovementsMember" xlink:label="loc_us-gaap_LeaseholdImprovementsMember_411E28D6D660FAC7189F09BDA7995C6D" xlink:type="locator" />
    <link:definitionArc order="4" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_PropertyPlantAndEquipmentTypeDomain_EE4F35C7DB4EE678FDC209BDA799660D" xlink:to="loc_us-gaap_LeaseholdImprovementsMember_411E28D6D660FAC7189F09BDA7995C6D" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2017/elts/us-gaap-2017-01-31.xsd#us-gaap_EquipmentLeasedToOtherPartyMember" xlink:label="loc_us-gaap_EquipmentLeasedToOtherPartyMember_99651A8FEE08BF7C33B809BDA799C98E" xlink:type="locator" />
    <link:definitionArc order="5" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_PropertyPlantAndEquipmentTypeDomain_EE4F35C7DB4EE678FDC209BDA799660D" xlink:to="loc_us-gaap_EquipmentLeasedToOtherPartyMember_99651A8FEE08BF7C33B809BDA799C98E" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2017/elts/us-gaap-2017-01-31.xsd#us-gaap_EquipmentMember" xlink:label="loc_us-gaap_EquipmentMember_70F6411AFE332C98DD1A09BDA7998244" xlink:type="locator" />
    <link:definitionArc order="6" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_PropertyPlantAndEquipmentTypeDomain_EE4F35C7DB4EE678FDC209BDA799660D" xlink:to="loc_us-gaap_EquipmentMember_70F6411AFE332C98DD1A09BDA7998244" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2017/elts/us-gaap-2017-01-31.xsd#us-gaap_ConstructionInProgressMember" xlink:label="loc_us-gaap_ConstructionInProgressMember_8A407E3DD30EFE17F93509BDA7990A50" xlink:type="locator" />
    <link:definitionArc order="7" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_PropertyPlantAndEquipmentTypeDomain_EE4F35C7DB4EE678FDC209BDA799660D" xlink:to="loc_us-gaap_ConstructionInProgressMember_8A407E3DD30EFE17F93509BDA7990A50" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2017/elts/us-gaap-2017-01-31.xsd#us-gaap_PropertyPlantAndEquipmentNetAbstract" xlink:label="loc_us-gaap_PropertyPlantAndEquipmentNetAbstract_F35E2B391173E158C8C009BDA7992F08" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_PropertyPlantAndEquipmentLineItems_2F88CB4BDA39F664FB8F09BDA799DB9E" xlink:to="loc_us-gaap_PropertyPlantAndEquipmentNetAbstract_F35E2B391173E158C8C009BDA7992F08" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2017/elts/us-gaap-2017-01-31.xsd#us-gaap_PropertyPlantAndEquipmentGross" xlink:label="loc_us-gaap_PropertyPlantAndEquipmentGross_E641C35BFFA85801CE7C09BDA7995361" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_PropertyPlantAndEquipmentNetAbstract_F35E2B391173E158C8C009BDA7992F08" xlink:to="loc_us-gaap_PropertyPlantAndEquipmentGross_E641C35BFFA85801CE7C09BDA7995361" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2017/elts/us-gaap-2017-01-31.xsd#us-gaap_AccumulatedDepreciationDepletionAndAmortizationPropertyPlantAndEquipment" xlink:label="loc_us-gaap_AccumulatedDepreciationDepletionAndAmortizationPropertyPlantAndEquipment_E8066A0F13B81E4EA90B09BDA7998228" xlink:type="locator" />
    <link:definitionArc order="2" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_PropertyPlantAndEquipmentNetAbstract_F35E2B391173E158C8C009BDA7992F08" xlink:to="loc_us-gaap_AccumulatedDepreciationDepletionAndAmortizationPropertyPlantAndEquipment_E8066A0F13B81E4EA90B09BDA7998228" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2017/elts/us-gaap-2017-01-31.xsd#us-gaap_PropertyPlantAndEquipmentNet" xlink:label="loc_us-gaap_PropertyPlantAndEquipmentNet_332DF0214715BF18476709BDA7994A29" xlink:type="locator" />
    <link:definitionArc order="3" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_PropertyPlantAndEquipmentNetAbstract_F35E2B391173E158C8C009BDA7992F08" xlink:to="loc_us-gaap_PropertyPlantAndEquipmentNet_332DF0214715BF18476709BDA7994A29" xlink:type="arc" />
  </link:definitionLink>
  <link:definitionLink xlink:role="http://www.oesx.com/role/PropertyAndEquipmentTables" xlink:type="extended" />
  <link:definitionLink xlink:role="http://www.oesx.com/role/RelatedPartyTransactions" xlink:type="extended" />
  <link:definitionLink xlink:role="http://www.oesx.com/role/RelatedPartyTransactionsDetails" xlink:type="extended">
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2017/elts/us-gaap-2017-01-31.xsd#us-gaap_RelatedPartyTransactionLineItems" xlink:label="loc_us-gaap_RelatedPartyTransactionLineItems_7D76631222F85B7DB795CD4C8419CA18" xlink:type="locator" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2017/elts/us-gaap-2017-01-31.xsd#us-gaap_ScheduleOfRelatedPartyTransactionsByRelatedPartyTable" xlink:label="loc_us-gaap_ScheduleOfRelatedPartyTransactionsByRelatedPartyTable_33E2672FA0C450ABAB405A1DB47641EC" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/all" xlink:from="loc_us-gaap_RelatedPartyTransactionLineItems_7D76631222F85B7DB795CD4C8419CA18" xlink:to="loc_us-gaap_ScheduleOfRelatedPartyTransactionsByRelatedPartyTable_33E2672FA0C450ABAB405A1DB47641EC" xlink:type="arc" xbrldt:closed="true" xbrldt:contextElement="segment" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2017/elts/us-gaap-2017-01-31.xsd#us-gaap_RelatedPartyTransactionsByRelatedPartyAxis" xlink:label="loc_us-gaap_RelatedPartyTransactionsByRelatedPartyAxis_A4987BD26A9153ABA39FE71F1EE2B9B8" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_ScheduleOfRelatedPartyTransactionsByRelatedPartyTable_33E2672FA0C450ABAB405A1DB47641EC" xlink:to="loc_us-gaap_RelatedPartyTransactionsByRelatedPartyAxis_A4987BD26A9153ABA39FE71F1EE2B9B8" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2017/elts/us-gaap-2017-01-31.xsd#us-gaap_RelatedPartyDomain" xlink:label="loc_us-gaap_RelatedPartyDomain_9C117FEFE6163F9EA28E54B1FFF26706_2B7C36DB07385330952E6485927A3178" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_RelatedPartyTransactionsByRelatedPartyAxis_A4987BD26A9153ABA39FE71F1EE2B9B8" xlink:to="loc_us-gaap_RelatedPartyDomain_9C117FEFE6163F9EA28E54B1FFF26706_2B7C36DB07385330952E6485927A3178" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2017/elts/us-gaap-2017-01-31.xsd#us-gaap_RelatedPartyDomain" xlink:label="loc_us-gaap_RelatedPartyDomain_EA60A6E4730E5308A8F2D4088D75E7F8" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_RelatedPartyTransactionsByRelatedPartyAxis_A4987BD26A9153ABA39FE71F1EE2B9B8" xlink:to="loc_us-gaap_RelatedPartyDomain_EA60A6E4730E5308A8F2D4088D75E7F8" xlink:type="arc" />
    <link:loc xlink:href="oesx-20171231.xsd#oesx_EntityThatCurrentDirectorOwnsMinorityInterestAndServesAsBoardOfDirectorsChairmanMember" xlink:label="loc_oesx_EntityThatCurrentDirectorOwnsMinorityInterestAndServesAsBoardOfDirectorsChairmanMember_65FB7AF0F52A5E2481AA68B5B076CDD8" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_RelatedPartyDomain_EA60A6E4730E5308A8F2D4088D75E7F8" xlink:to="loc_oesx_EntityThatCurrentDirectorOwnsMinorityInterestAndServesAsBoardOfDirectorsChairmanMember_65FB7AF0F52A5E2481AA68B5B076CDD8" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2017/elts/us-gaap-2017-01-31.xsd#us-gaap_RelatedPartyTransactionPurchasesFromRelatedParty" xlink:label="loc_us-gaap_RelatedPartyTransactionPurchasesFromRelatedParty_7BE834B174B154BCB9145FC9347F013D" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_RelatedPartyTransactionLineItems_7D76631222F85B7DB795CD4C8419CA18" xlink:to="loc_us-gaap_RelatedPartyTransactionPurchasesFromRelatedParty_7BE834B174B154BCB9145FC9347F013D" xlink:type="arc" />
  </link:definitionLink>
  <link:definitionLink xlink:role="http://www.oesx.com/role/ReorganizationOfBusiness" xlink:type="extended" />
  <link:definitionLink xlink:role="http://www.oesx.com/role/ReorganizationOfBusinessChangeInReserveDetails" xlink:type="extended">
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2017/elts/us-gaap-2017-01-31.xsd#us-gaap_RestructuringCostAndReserveLineItems" xlink:label="loc_us-gaap_RestructuringCostAndReserveLineItems_D8818CC3068C59E6AB74A4ABAC0CC8AB" xlink:type="locator" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2017/elts/us-gaap-2017-01-31.xsd#us-gaap_ScheduleOfRestructuringAndRelatedCostsTable" xlink:label="loc_us-gaap_ScheduleOfRestructuringAndRelatedCostsTable_AF02070B226F5C73A704623634488FB4" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/all" xlink:from="loc_us-gaap_RestructuringCostAndReserveLineItems_D8818CC3068C59E6AB74A4ABAC0CC8AB" xlink:to="loc_us-gaap_ScheduleOfRestructuringAndRelatedCostsTable_AF02070B226F5C73A704623634488FB4" xlink:type="arc" xbrldt:closed="true" xbrldt:contextElement="segment" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2017/elts/us-gaap-2017-01-31.xsd#us-gaap_RestructuringCostAndReserveAxis" xlink:label="loc_us-gaap_RestructuringCostAndReserveAxis_3F5A58C6AF6C57CC8EB8015965749089" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_ScheduleOfRestructuringAndRelatedCostsTable_AF02070B226F5C73A704623634488FB4" xlink:to="loc_us-gaap_RestructuringCostAndReserveAxis_3F5A58C6AF6C57CC8EB8015965749089" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2017/elts/us-gaap-2017-01-31.xsd#us-gaap_TypeOfRestructuringDomain" xlink:label="loc_us-gaap_TypeOfRestructuringDomain_E23DDDABAFA261B920D17C6694A36DA6_5529D50F106254F5B5FEB7991377D95F" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_RestructuringCostAndReserveAxis_3F5A58C6AF6C57CC8EB8015965749089" xlink:to="loc_us-gaap_TypeOfRestructuringDomain_E23DDDABAFA261B920D17C6694A36DA6_5529D50F106254F5B5FEB7991377D95F" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2017/elts/us-gaap-2017-01-31.xsd#us-gaap_TypeOfRestructuringDomain" xlink:label="loc_us-gaap_TypeOfRestructuringDomain_4E2C31AAA9A65A47925ECF7D6E8C13E6" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_RestructuringCostAndReserveAxis_3F5A58C6AF6C57CC8EB8015965749089" xlink:to="loc_us-gaap_TypeOfRestructuringDomain_4E2C31AAA9A65A47925ECF7D6E8C13E6" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2017/elts/us-gaap-2017-01-31.xsd#us-gaap_EmployeeSeveranceMember" xlink:label="loc_us-gaap_EmployeeSeveranceMember_477DC65E16D8585883169E55740F94A6" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_TypeOfRestructuringDomain_4E2C31AAA9A65A47925ECF7D6E8C13E6" xlink:to="loc_us-gaap_EmployeeSeveranceMember_477DC65E16D8585883169E55740F94A6" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2017/elts/us-gaap-2017-01-31.xsd#us-gaap_SpecialTerminationBenefitsMember" xlink:label="loc_us-gaap_SpecialTerminationBenefitsMember_B50415AA14425C03A1839B4892CFDB23" xlink:type="locator" />
    <link:definitionArc order="2" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_TypeOfRestructuringDomain_4E2C31AAA9A65A47925ECF7D6E8C13E6" xlink:to="loc_us-gaap_SpecialTerminationBenefitsMember_B50415AA14425C03A1839B4892CFDB23" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2017/elts/us-gaap-2017-01-31.xsd#us-gaap_RestructuringReserveRollForward" xlink:label="loc_us-gaap_RestructuringReserveRollForward_CEE98B2F9B3C5890BECBCC8DA91CDC1A" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_RestructuringCostAndReserveLineItems_D8818CC3068C59E6AB74A4ABAC0CC8AB" xlink:to="loc_us-gaap_RestructuringReserveRollForward_CEE98B2F9B3C5890BECBCC8DA91CDC1A" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2017/elts/us-gaap-2017-01-31.xsd#us-gaap_RestructuringReserve" xlink:label="loc_us-gaap_RestructuringReserve_165B2102187858AE972F7554DE9BBFC6" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_RestructuringReserveRollForward_CEE98B2F9B3C5890BECBCC8DA91CDC1A" xlink:to="loc_us-gaap_RestructuringReserve_165B2102187858AE972F7554DE9BBFC6" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2017/elts/us-gaap-2017-01-31.xsd#us-gaap_RestructuringCharges" xlink:label="loc_us-gaap_RestructuringCharges_E2BF768176AA59B78206BBD952811A80" xlink:type="locator" />
    <link:definitionArc order="2" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_RestructuringReserveRollForward_CEE98B2F9B3C5890BECBCC8DA91CDC1A" xlink:to="loc_us-gaap_RestructuringCharges_E2BF768176AA59B78206BBD952811A80" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2017/elts/us-gaap-2017-01-31.xsd#us-gaap_PaymentsForRestructuring" xlink:label="loc_us-gaap_PaymentsForRestructuring_C928074DD0205BE1BD8EA97EFE5B12C2" xlink:type="locator" />
    <link:definitionArc order="3" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_RestructuringReserveRollForward_CEE98B2F9B3C5890BECBCC8DA91CDC1A" xlink:to="loc_us-gaap_PaymentsForRestructuring_C928074DD0205BE1BD8EA97EFE5B12C2" xlink:type="arc" />
    <link:loc xlink:href="oesx-20171231.xsd#oesx_DefinedBenefitPlanBenefitPeriod" xlink:label="loc_oesx_DefinedBenefitPlanBenefitPeriod_558F3CAA8DE35D138AFE7C7D3CBBE4B1" xlink:type="locator" />
    <link:definitionArc order="2" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_RestructuringCostAndReserveLineItems_D8818CC3068C59E6AB74A4ABAC0CC8AB" xlink:to="loc_oesx_DefinedBenefitPlanBenefitPeriod_558F3CAA8DE35D138AFE7C7D3CBBE4B1" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2017/elts/us-gaap-2017-01-31.xsd#us-gaap_DefinedBenefitPlanHealthCareCostTrendRateAssumedNextFiscalYear" xlink:label="loc_us-gaap_DefinedBenefitPlanHealthCareCostTrendRateAssumedNextFiscalYear_D43A0D8EDA09566D93CDC49556577088" xlink:type="locator" />
    <link:definitionArc order="3" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_RestructuringCostAndReserveLineItems_D8818CC3068C59E6AB74A4ABAC0CC8AB" xlink:to="loc_us-gaap_DefinedBenefitPlanHealthCareCostTrendRateAssumedNextFiscalYear_D43A0D8EDA09566D93CDC49556577088" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2017/elts/us-gaap-2017-01-31.xsd#us-gaap_DefinedBenefitPlanUltimateHealthCareCostTrendRate1" xlink:label="loc_us-gaap_DefinedBenefitPlanUltimateHealthCareCostTrendRate1_50CEC75FD5CA513A89412FA05503E7A6" xlink:type="locator" />
    <link:definitionArc order="4" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_RestructuringCostAndReserveLineItems_D8818CC3068C59E6AB74A4ABAC0CC8AB" xlink:to="loc_us-gaap_DefinedBenefitPlanUltimateHealthCareCostTrendRate1_50CEC75FD5CA513A89412FA05503E7A6" xlink:type="arc" />
    <link:loc xlink:href="oesx-20171231.xsd#oesx_DefinedBenefitPlanPeriodHealthCareCostTrendRateReachesUltimateTrendRate" xlink:label="loc_oesx_DefinedBenefitPlanPeriodHealthCareCostTrendRateReachesUltimateTrendRate_8BABDBF6B2FA5BC5894E75B278F67BA5" xlink:type="locator" />
    <link:definitionArc order="5" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_RestructuringCostAndReserveLineItems_D8818CC3068C59E6AB74A4ABAC0CC8AB" xlink:to="loc_oesx_DefinedBenefitPlanPeriodHealthCareCostTrendRateReachesUltimateTrendRate_8BABDBF6B2FA5BC5894E75B278F67BA5" xlink:type="arc" />
  </link:definitionLink>
  <link:definitionLink xlink:role="http://www.oesx.com/role/ReorganizationOfBusinessNarrativeDetails" xlink:type="extended">
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2017/elts/us-gaap-2017-01-31.xsd#us-gaap_RestructuringCostAndReserveLineItems" xlink:label="loc_us-gaap_RestructuringCostAndReserveLineItems_11EE5A09E2D2CDC1B84E6EDBA1CA1084" xlink:type="locator" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2017/elts/us-gaap-2017-01-31.xsd#us-gaap_ScheduleOfRestructuringAndRelatedCostsTable" xlink:label="loc_us-gaap_ScheduleOfRestructuringAndRelatedCostsTable_BD5BA7AEFEDC1F2A87616EDBA1CA00A4" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/all" xlink:from="loc_us-gaap_RestructuringCostAndReserveLineItems_11EE5A09E2D2CDC1B84E6EDBA1CA1084" xlink:to="loc_us-gaap_ScheduleOfRestructuringAndRelatedCostsTable_BD5BA7AEFEDC1F2A87616EDBA1CA00A4" xlink:type="arc" xbrldt:closed="true" xbrldt:contextElement="segment" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2017/elts/us-gaap-2017-01-31.xsd#us-gaap_StatementBusinessSegmentsAxis" xlink:label="loc_us-gaap_StatementBusinessSegmentsAxis_71D69E23D15B0E4639F96EDBA1CA1408" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_ScheduleOfRestructuringAndRelatedCostsTable_BD5BA7AEFEDC1F2A87616EDBA1CA00A4" xlink:to="loc_us-gaap_StatementBusinessSegmentsAxis_71D69E23D15B0E4639F96EDBA1CA1408" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2017/elts/us-gaap-2017-01-31.xsd#us-gaap_SegmentDomain" xlink:label="loc_us-gaap_SegmentDomain_1422C9736215AF947BD26EDBA1CAB7A7_default" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_StatementBusinessSegmentsAxis_71D69E23D15B0E4639F96EDBA1CA1408" xlink:to="loc_us-gaap_SegmentDomain_1422C9736215AF947BD26EDBA1CAB7A7_default" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2017/elts/us-gaap-2017-01-31.xsd#us-gaap_SegmentDomain" xlink:label="loc_us-gaap_SegmentDomain_1422C9736215AF947BD26EDBA1CAB7A7" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_StatementBusinessSegmentsAxis_71D69E23D15B0E4639F96EDBA1CA1408" xlink:to="loc_us-gaap_SegmentDomain_1422C9736215AF947BD26EDBA1CAB7A7" xlink:type="arc" />
    <link:loc xlink:href="oesx-20171231.xsd#oesx_EngineeredSystemsMember" xlink:label="loc_oesx_EngineeredSystemsMember_44253409A88EE743816D6EDBA1CABA43" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_SegmentDomain_1422C9736215AF947BD26EDBA1CAB7A7" xlink:to="loc_oesx_EngineeredSystemsMember_44253409A88EE743816D6EDBA1CABA43" xlink:type="arc" />
    <link:loc xlink:href="oesx-20171231.xsd#oesx_EnergyManagementMember" xlink:label="loc_oesx_EnergyManagementMember_9DE34725967C1E80CF816EDBA1CA23EB" xlink:type="locator" />
    <link:definitionArc order="2" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_SegmentDomain_1422C9736215AF947BD26EDBA1CAB7A7" xlink:to="loc_oesx_EnergyManagementMember_9DE34725967C1E80CF816EDBA1CA23EB" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2017/elts/us-gaap-2017-01-31.xsd#us-gaap_RestructuringAndRelatedCostNumberOfPositionsEliminated" xlink:label="loc_us-gaap_RestructuringAndRelatedCostNumberOfPositionsEliminated_4F3D6028B3339E41F86C6EDBA1CA0394" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_RestructuringCostAndReserveLineItems_11EE5A09E2D2CDC1B84E6EDBA1CA1084" xlink:to="loc_us-gaap_RestructuringAndRelatedCostNumberOfPositionsEliminated_4F3D6028B3339E41F86C6EDBA1CA0394" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2017/elts/us-gaap-2017-01-31.xsd#us-gaap_RestructuringCharges" xlink:label="loc_us-gaap_RestructuringCharges_49C457805ABDA65ED6806EDBA1CA0294" xlink:type="locator" />
    <link:definitionArc order="2" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_RestructuringCostAndReserveLineItems_11EE5A09E2D2CDC1B84E6EDBA1CA1084" xlink:to="loc_us-gaap_RestructuringCharges_49C457805ABDA65ED6806EDBA1CA0294" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2017/elts/us-gaap-2017-01-31.xsd#us-gaap_RestructuringAndRelatedCostExpectedCostRemaining1" xlink:label="loc_us-gaap_RestructuringAndRelatedCostExpectedCostRemaining1_70BD92A272AC94F2B27F6EDBA1CA3990" xlink:type="locator" />
    <link:definitionArc order="3" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_RestructuringCostAndReserveLineItems_11EE5A09E2D2CDC1B84E6EDBA1CA1084" xlink:to="loc_us-gaap_RestructuringAndRelatedCostExpectedCostRemaining1_70BD92A272AC94F2B27F6EDBA1CA3990" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2017/elts/us-gaap-2017-01-31.xsd#us-gaap_RestructuringAndRelatedCostExpectedCost1" xlink:label="loc_us-gaap_RestructuringAndRelatedCostExpectedCost1_966BF16F3DD7D5DA2FB26EDBA1CA3591" xlink:type="locator" />
    <link:definitionArc order="4" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_RestructuringCostAndReserveLineItems_11EE5A09E2D2CDC1B84E6EDBA1CA1084" xlink:to="loc_us-gaap_RestructuringAndRelatedCostExpectedCost1_966BF16F3DD7D5DA2FB26EDBA1CA3591" xlink:type="arc" />
  </link:definitionLink>
  <link:definitionLink xlink:role="http://www.oesx.com/role/ReorganizationOfBusinessRestructuringBySegmentDetails" xlink:type="extended">
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2017/elts/us-gaap-2017-01-31.xsd#us-gaap_RestructuringCostAndReserveLineItems" xlink:label="loc_us-gaap_RestructuringCostAndReserveLineItems_BEA20D2031AC1A5F788E7A833BCABAE2" xlink:type="locator" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2017/elts/us-gaap-2017-01-31.xsd#us-gaap_ScheduleOfRestructuringAndRelatedCostsTable" xlink:label="loc_us-gaap_ScheduleOfRestructuringAndRelatedCostsTable_40744E2042DF1BF3EF377A833BC96281" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/all" xlink:from="loc_us-gaap_RestructuringCostAndReserveLineItems_BEA20D2031AC1A5F788E7A833BCABAE2" xlink:to="loc_us-gaap_ScheduleOfRestructuringAndRelatedCostsTable_40744E2042DF1BF3EF377A833BC96281" xlink:type="arc" xbrldt:closed="true" xbrldt:contextElement="segment" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2017/elts/us-gaap-2017-01-31.xsd#us-gaap_ConsolidationItemsAxis" xlink:label="loc_us-gaap_ConsolidationItemsAxis_5BB82769A544A709524E7A833BC955B5" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_ScheduleOfRestructuringAndRelatedCostsTable_40744E2042DF1BF3EF377A833BC96281" xlink:to="loc_us-gaap_ConsolidationItemsAxis_5BB82769A544A709524E7A833BC955B5" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2017/elts/us-gaap-2017-01-31.xsd#us-gaap_ConsolidationItemsDomain" xlink:label="loc_us-gaap_ConsolidationItemsDomain_ECF61BC3CB05694E74CB7A833BCA8DD5_default" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_ConsolidationItemsAxis_5BB82769A544A709524E7A833BC955B5" xlink:to="loc_us-gaap_ConsolidationItemsDomain_ECF61BC3CB05694E74CB7A833BCA8DD5_default" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2017/elts/us-gaap-2017-01-31.xsd#us-gaap_ConsolidationItemsDomain" xlink:label="loc_us-gaap_ConsolidationItemsDomain_ECF61BC3CB05694E74CB7A833BCA8DD5" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_ConsolidationItemsAxis_5BB82769A544A709524E7A833BC955B5" xlink:to="loc_us-gaap_ConsolidationItemsDomain_ECF61BC3CB05694E74CB7A833BCA8DD5" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2017/elts/us-gaap-2017-01-31.xsd#us-gaap_OperatingSegmentsMember" xlink:label="loc_us-gaap_OperatingSegmentsMember_2F96EA49103687953FD47A833BCAA3B4" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ConsolidationItemsDomain_ECF61BC3CB05694E74CB7A833BCA8DD5" xlink:to="loc_us-gaap_OperatingSegmentsMember_2F96EA49103687953FD47A833BCAA3B4" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2017/elts/us-gaap-2017-01-31.xsd#us-gaap_CorporateNonSegmentMember" xlink:label="loc_us-gaap_CorporateNonSegmentMember_D666F436949FC8CBEDA87A833BCA8402" xlink:type="locator" />
    <link:definitionArc order="2" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ConsolidationItemsDomain_ECF61BC3CB05694E74CB7A833BCA8DD5" xlink:to="loc_us-gaap_CorporateNonSegmentMember_D666F436949FC8CBEDA87A833BCA8402" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2017/elts/us-gaap-2017-01-31.xsd#us-gaap_StatementBusinessSegmentsAxis" xlink:label="loc_us-gaap_StatementBusinessSegmentsAxis_ADBB2A70F532EA7931F87A833BCA95E0" xlink:type="locator" />
    <link:definitionArc order="2" xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_ScheduleOfRestructuringAndRelatedCostsTable_40744E2042DF1BF3EF377A833BC96281" xlink:to="loc_us-gaap_StatementBusinessSegmentsAxis_ADBB2A70F532EA7931F87A833BCA95E0" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2017/elts/us-gaap-2017-01-31.xsd#us-gaap_SegmentDomain" xlink:label="loc_us-gaap_SegmentDomain_6A1B1FAAB740419776AE7A833BCA294A_default" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_StatementBusinessSegmentsAxis_ADBB2A70F532EA7931F87A833BCA95E0" xlink:to="loc_us-gaap_SegmentDomain_6A1B1FAAB740419776AE7A833BCA294A_default" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2017/elts/us-gaap-2017-01-31.xsd#us-gaap_SegmentDomain" xlink:label="loc_us-gaap_SegmentDomain_6A1B1FAAB740419776AE7A833BCA294A" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_StatementBusinessSegmentsAxis_ADBB2A70F532EA7931F87A833BCA95E0" xlink:to="loc_us-gaap_SegmentDomain_6A1B1FAAB740419776AE7A833BCA294A" xlink:type="arc" />
    <link:loc xlink:href="oesx-20171231.xsd#oesx_DistributionServicesMember" xlink:label="loc_oesx_DistributionServicesMember_A10CB4892A4B3D24BAD17A833BCAC526" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_SegmentDomain_6A1B1FAAB740419776AE7A833BCA294A" xlink:to="loc_oesx_DistributionServicesMember_A10CB4892A4B3D24BAD17A833BCAC526" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2017/elts/us-gaap-2017-01-31.xsd#us-gaap_RestructuringCharges" xlink:label="loc_us-gaap_RestructuringCharges_D3D0179E29F439CD71C27A833BCAFF69" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_RestructuringCostAndReserveLineItems_BEA20D2031AC1A5F788E7A833BCABAE2" xlink:to="loc_us-gaap_RestructuringCharges_D3D0179E29F439CD71C27A833BCAFF69" xlink:type="arc" />
  </link:definitionLink>
  <link:definitionLink xlink:role="http://www.oesx.com/role/ReorganizationOfBusinessRestructuringByStatementOfOperationsLocationDetails" xlink:type="extended">
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2017/elts/us-gaap-2017-01-31.xsd#us-gaap_RestructuringCostAndReserveLineItems" xlink:label="loc_us-gaap_RestructuringCostAndReserveLineItems_601AF278E3A4B3CFC0D47A833BD2C33E" xlink:type="locator" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2017/elts/us-gaap-2017-01-31.xsd#us-gaap_ScheduleOfRestructuringAndRelatedCostsTable" xlink:label="loc_us-gaap_ScheduleOfRestructuringAndRelatedCostsTable_22B54BD38CB0686C3C637A833BD20CE5" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/all" xlink:from="loc_us-gaap_RestructuringCostAndReserveLineItems_601AF278E3A4B3CFC0D47A833BD2C33E" xlink:to="loc_us-gaap_ScheduleOfRestructuringAndRelatedCostsTable_22B54BD38CB0686C3C637A833BD20CE5" xlink:type="arc" xbrldt:closed="true" xbrldt:contextElement="segment" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2017/elts/us-gaap-2017-01-31.xsd#us-gaap_IncomeStatementLocationAxis" xlink:label="loc_us-gaap_IncomeStatementLocationAxis_454AA7278C3733ACD9CE7A833BD278FB" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_ScheduleOfRestructuringAndRelatedCostsTable_22B54BD38CB0686C3C637A833BD20CE5" xlink:to="loc_us-gaap_IncomeStatementLocationAxis_454AA7278C3733ACD9CE7A833BD278FB" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2017/elts/us-gaap-2017-01-31.xsd#us-gaap_IncomeStatementLocationDomain" xlink:label="loc_us-gaap_IncomeStatementLocationDomain_76ABC5A00B854FB1FE987A833BD213F7_default" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_IncomeStatementLocationAxis_454AA7278C3733ACD9CE7A833BD278FB" xlink:to="loc_us-gaap_IncomeStatementLocationDomain_76ABC5A00B854FB1FE987A833BD213F7_default" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2017/elts/us-gaap-2017-01-31.xsd#us-gaap_IncomeStatementLocationDomain" xlink:label="loc_us-gaap_IncomeStatementLocationDomain_76ABC5A00B854FB1FE987A833BD213F7" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_IncomeStatementLocationAxis_454AA7278C3733ACD9CE7A833BD278FB" xlink:to="loc_us-gaap_IncomeStatementLocationDomain_76ABC5A00B854FB1FE987A833BD213F7" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2017/elts/us-gaap-2017-01-31.xsd#us-gaap_CostOfSalesMember" xlink:label="loc_us-gaap_CostOfSalesMember_C4794974A9C9D70906947A833BD25650" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_IncomeStatementLocationDomain_76ABC5A00B854FB1FE987A833BD213F7" xlink:to="loc_us-gaap_CostOfSalesMember_C4794974A9C9D70906947A833BD25650" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2017/elts/us-gaap-2017-01-31.xsd#us-gaap_GeneralAndAdministrativeExpenseMember" xlink:label="loc_us-gaap_GeneralAndAdministrativeExpenseMember_D3B8585F9C2F293983B77A833BD20929" xlink:type="locator" />
    <link:definitionArc order="2" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_IncomeStatementLocationDomain_76ABC5A00B854FB1FE987A833BD213F7" xlink:to="loc_us-gaap_GeneralAndAdministrativeExpenseMember_D3B8585F9C2F293983B77A833BD20929" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2017/elts/us-gaap-2017-01-31.xsd#us-gaap_SellingAndMarketingExpenseMember" xlink:label="loc_us-gaap_SellingAndMarketingExpenseMember_B166E89E02ABD614DE7B7A833BD27062" xlink:type="locator" />
    <link:definitionArc order="3" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_IncomeStatementLocationDomain_76ABC5A00B854FB1FE987A833BD213F7" xlink:to="loc_us-gaap_SellingAndMarketingExpenseMember_B166E89E02ABD614DE7B7A833BD27062" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2017/elts/us-gaap-2017-01-31.xsd#us-gaap_RestructuringCharges" xlink:label="loc_us-gaap_RestructuringCharges_C61D5B18584091E9EE197A833BD276DC" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_RestructuringCostAndReserveLineItems_601AF278E3A4B3CFC0D47A833BD2C33E" xlink:to="loc_us-gaap_RestructuringCharges_C61D5B18584091E9EE197A833BD276DC" xlink:type="arc" />
  </link:definitionLink>
  <link:definitionLink xlink:role="http://www.oesx.com/role/ReorganizationOfBusinessTables" xlink:type="extended" />
  <link:definitionLink xlink:role="http://www.oesx.com/role/Segments" xlink:type="extended" />
  <link:definitionLink xlink:role="http://www.oesx.com/role/SegmentsDetails" xlink:type="extended">
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2017/elts/us-gaap-2017-01-31.xsd#us-gaap_SegmentReportingInformationLineItems" xlink:label="loc_us-gaap_SegmentReportingInformationLineItems_683C1CCDB6575CDA92BA53930D6A04B5" xlink:type="locator" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2017/elts/us-gaap-2017-01-31.xsd#us-gaap_ScheduleOfSegmentReportingInformationBySegmentTable" xlink:label="loc_us-gaap_ScheduleOfSegmentReportingInformationBySegmentTable_8E49A4386B9754289083F7923AE1B997" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/all" xlink:from="loc_us-gaap_SegmentReportingInformationLineItems_683C1CCDB6575CDA92BA53930D6A04B5" xlink:to="loc_us-gaap_ScheduleOfSegmentReportingInformationBySegmentTable_8E49A4386B9754289083F7923AE1B997" xlink:type="arc" xbrldt:closed="true" xbrldt:contextElement="segment" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2017/elts/us-gaap-2017-01-31.xsd#us-gaap_ConsolidationItemsAxis" xlink:label="loc_us-gaap_ConsolidationItemsAxis_D1CC51CF601556DFA038E075EDC3BDD9" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_ScheduleOfSegmentReportingInformationBySegmentTable_8E49A4386B9754289083F7923AE1B997" xlink:to="loc_us-gaap_ConsolidationItemsAxis_D1CC51CF601556DFA038E075EDC3BDD9" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2017/elts/us-gaap-2017-01-31.xsd#us-gaap_ConsolidationItemsDomain" xlink:label="loc_us-gaap_ConsolidationItemsDomain_CD7D44BB14F9893E19717479C73859C7_2B7C36DB07385330952E6485927A3178" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_ConsolidationItemsAxis_D1CC51CF601556DFA038E075EDC3BDD9" xlink:to="loc_us-gaap_ConsolidationItemsDomain_CD7D44BB14F9893E19717479C73859C7_2B7C36DB07385330952E6485927A3178" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2017/elts/us-gaap-2017-01-31.xsd#us-gaap_ConsolidationItemsDomain" xlink:label="loc_us-gaap_ConsolidationItemsDomain_C3700221A2CB51E5AA84826A284E0F26" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_ConsolidationItemsAxis_D1CC51CF601556DFA038E075EDC3BDD9" xlink:to="loc_us-gaap_ConsolidationItemsDomain_C3700221A2CB51E5AA84826A284E0F26" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2017/elts/us-gaap-2017-01-31.xsd#us-gaap_OperatingSegmentsMember" xlink:label="loc_us-gaap_OperatingSegmentsMember_0A2F3608766E580CAFF56646CE0E8EB9" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ConsolidationItemsDomain_C3700221A2CB51E5AA84826A284E0F26" xlink:to="loc_us-gaap_OperatingSegmentsMember_0A2F3608766E580CAFF56646CE0E8EB9" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2017/elts/us-gaap-2017-01-31.xsd#us-gaap_CorporateNonSegmentMember" xlink:label="loc_us-gaap_CorporateNonSegmentMember_02C32D52E4BF5733AC66C0B95427167B" xlink:type="locator" />
    <link:definitionArc order="2" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ConsolidationItemsDomain_C3700221A2CB51E5AA84826A284E0F26" xlink:to="loc_us-gaap_CorporateNonSegmentMember_02C32D52E4BF5733AC66C0B95427167B" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2017/elts/us-gaap-2017-01-31.xsd#us-gaap_StatementBusinessSegmentsAxis" xlink:label="loc_us-gaap_StatementBusinessSegmentsAxis_88D104AB94E559B797C515E7B3C47238" xlink:type="locator" />
    <link:definitionArc order="2" xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_ScheduleOfSegmentReportingInformationBySegmentTable_8E49A4386B9754289083F7923AE1B997" xlink:to="loc_us-gaap_StatementBusinessSegmentsAxis_88D104AB94E559B797C515E7B3C47238" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2017/elts/us-gaap-2017-01-31.xsd#us-gaap_SegmentDomain" xlink:label="loc_us-gaap_SegmentDomain_7E5127EDA8B3375FFA9B7479C739C1D2_2B7C36DB07385330952E6485927A3178" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_StatementBusinessSegmentsAxis_88D104AB94E559B797C515E7B3C47238" xlink:to="loc_us-gaap_SegmentDomain_7E5127EDA8B3375FFA9B7479C739C1D2_2B7C36DB07385330952E6485927A3178" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2017/elts/us-gaap-2017-01-31.xsd#us-gaap_SegmentDomain" xlink:label="loc_us-gaap_SegmentDomain_CB1B095B5BBE5C35A83292CF6385A434" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_StatementBusinessSegmentsAxis_88D104AB94E559B797C515E7B3C47238" xlink:to="loc_us-gaap_SegmentDomain_CB1B095B5BBE5C35A83292CF6385A434" xlink:type="arc" />
    <link:loc xlink:href="oesx-20171231.xsd#oesx_EnergyManagementMember" xlink:label="loc_oesx_EnergyManagementMember_6E74E4474E7A564FADBEFE9D5A2AA03E" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_SegmentDomain_CB1B095B5BBE5C35A83292CF6385A434" xlink:to="loc_oesx_EnergyManagementMember_6E74E4474E7A564FADBEFE9D5A2AA03E" xlink:type="arc" />
    <link:loc xlink:href="oesx-20171231.xsd#oesx_EngineeredSystemsMember" xlink:label="loc_oesx_EngineeredSystemsMember_364F908B9A9A565590DEBAF9517DD94B" xlink:type="locator" />
    <link:definitionArc order="2" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_SegmentDomain_CB1B095B5BBE5C35A83292CF6385A434" xlink:to="loc_oesx_EngineeredSystemsMember_364F908B9A9A565590DEBAF9517DD94B" xlink:type="arc" />
    <link:loc xlink:href="oesx-20171231.xsd#oesx_DistributionServicesMember" xlink:label="loc_oesx_DistributionServicesMember_C9528FD0D71F5EADA97DFAA32B31717F" xlink:type="locator" />
    <link:definitionArc order="3" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_SegmentDomain_CB1B095B5BBE5C35A83292CF6385A434" xlink:to="loc_oesx_DistributionServicesMember_C9528FD0D71F5EADA97DFAA32B31717F" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2017/elts/us-gaap-2017-01-31.xsd#us-gaap_SegmentReportingInformationRevenueAbstract" xlink:label="loc_us-gaap_SegmentReportingInformationRevenueAbstract_9EEB6FAEFEBF55C79027AD2FBCDD275F" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_SegmentReportingInformationLineItems_683C1CCDB6575CDA92BA53930D6A04B5" xlink:to="loc_us-gaap_SegmentReportingInformationRevenueAbstract_9EEB6FAEFEBF55C79027AD2FBCDD275F" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2017/elts/us-gaap-2017-01-31.xsd#us-gaap_Revenues" xlink:label="loc_us-gaap_Revenues_16C16A51A8E7597A9CE31E80CED27F2D" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_SegmentReportingInformationRevenueAbstract_9EEB6FAEFEBF55C79027AD2FBCDD275F" xlink:to="loc_us-gaap_Revenues_16C16A51A8E7597A9CE31E80CED27F2D" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2017/elts/us-gaap-2017-01-31.xsd#us-gaap_OperatingIncomeLoss" xlink:label="loc_us-gaap_OperatingIncomeLoss_65B5B8E431225025B1A32593D469199B" xlink:type="locator" />
    <link:definitionArc order="2" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_SegmentReportingInformationRevenueAbstract_9EEB6FAEFEBF55C79027AD2FBCDD275F" xlink:to="loc_us-gaap_OperatingIncomeLoss_65B5B8E431225025B1A32593D469199B" xlink:type="arc" />
  </link:definitionLink>
  <link:definitionLink xlink:role="http://www.oesx.com/role/SegmentsTables" xlink:type="extended" />
  <link:definitionLink xlink:role="http://www.oesx.com/role/ShareholdersEquity" xlink:type="extended" />
  <link:definitionLink xlink:role="http://www.oesx.com/role/ShareholdersEquityDetails" xlink:type="extended">
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2017/elts/us-gaap-2017-01-31.xsd#us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardLineItems" xlink:label="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardLineItems_1543AD211CE58ADE66E57A833C4172DD" xlink:type="locator" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2017/elts/us-gaap-2017-01-31.xsd#us-gaap_ScheduleOfShareBasedCompensationArrangementsByShareBasedPaymentAwardTable" xlink:label="loc_us-gaap_ScheduleOfShareBasedCompensationArrangementsByShareBasedPaymentAwardTable_0FDDBCEA877196F345B77A833C40BFEC" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/all" xlink:from="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardLineItems_1543AD211CE58ADE66E57A833C4172DD" xlink:to="loc_us-gaap_ScheduleOfShareBasedCompensationArrangementsByShareBasedPaymentAwardTable_0FDDBCEA877196F345B77A833C40BFEC" xlink:type="arc" xbrldt:closed="true" xbrldt:contextElement="segment" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2017/elts/us-gaap-2017-01-31.xsd#us-gaap_RangeAxis" xlink:label="loc_us-gaap_RangeAxis_6E6DF00CE60FB980FB147A833C40C19A" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_ScheduleOfShareBasedCompensationArrangementsByShareBasedPaymentAwardTable_0FDDBCEA877196F345B77A833C40BFEC" xlink:to="loc_us-gaap_RangeAxis_6E6DF00CE60FB980FB147A833C40C19A" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2017/elts/us-gaap-2017-01-31.xsd#us-gaap_RangeMember" xlink:label="loc_us-gaap_RangeMember_1E852D22A7908ABC15BC7A833C406346_default" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_RangeAxis_6E6DF00CE60FB980FB147A833C40C19A" xlink:to="loc_us-gaap_RangeMember_1E852D22A7908ABC15BC7A833C406346_default" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2017/elts/us-gaap-2017-01-31.xsd#us-gaap_RangeMember" xlink:label="loc_us-gaap_RangeMember_1E852D22A7908ABC15BC7A833C406346" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_RangeAxis_6E6DF00CE60FB980FB147A833C40C19A" xlink:to="loc_us-gaap_RangeMember_1E852D22A7908ABC15BC7A833C406346" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2017/elts/us-gaap-2017-01-31.xsd#us-gaap_MinimumMember" xlink:label="loc_us-gaap_MinimumMember_F5227D6E35B70F253EEB7A833C41FB8C" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_RangeMember_1E852D22A7908ABC15BC7A833C406346" xlink:to="loc_us-gaap_MinimumMember_F5227D6E35B70F253EEB7A833C41FB8C" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2017/elts/us-gaap-2017-01-31.xsd#us-gaap_MaximumMember" xlink:label="loc_us-gaap_MaximumMember_136274E47C7181B7CA547A833C41B141" xlink:type="locator" />
    <link:definitionArc order="2" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_RangeMember_1E852D22A7908ABC15BC7A833C406346" xlink:to="loc_us-gaap_MaximumMember_136274E47C7181B7CA547A833C41B141" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2017/elts/us-gaap-2017-01-31.xsd#us-gaap_AwardTypeAxis" xlink:label="loc_us-gaap_AwardTypeAxis_C81409037153EBBD7DC77A833C417C6D" xlink:type="locator" />
    <link:definitionArc order="2" xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_ScheduleOfShareBasedCompensationArrangementsByShareBasedPaymentAwardTable_0FDDBCEA877196F345B77A833C40BFEC" xlink:to="loc_us-gaap_AwardTypeAxis_C81409037153EBBD7DC77A833C417C6D" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2017/elts/us-gaap-2017-01-31.xsd#us-gaap_ShareBasedCompensationArrangementsByShareBasedPaymentAwardAwardTypeAndPlanNameDomain" xlink:label="loc_us-gaap_ShareBasedCompensationArrangementsByShareBasedPaymentAwardAwardTypeAndPlanNameDomain_84ADD82EB32BC6EEA27B7A833C41ED73_default" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_AwardTypeAxis_C81409037153EBBD7DC77A833C417C6D" xlink:to="loc_us-gaap_ShareBasedCompensationArrangementsByShareBasedPaymentAwardAwardTypeAndPlanNameDomain_84ADD82EB32BC6EEA27B7A833C41ED73_default" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2017/elts/us-gaap-2017-01-31.xsd#us-gaap_ShareBasedCompensationArrangementsByShareBasedPaymentAwardAwardTypeAndPlanNameDomain" xlink:label="loc_us-gaap_ShareBasedCompensationArrangementsByShareBasedPaymentAwardAwardTypeAndPlanNameDomain_84ADD82EB32BC6EEA27B7A833C41ED73" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_AwardTypeAxis_C81409037153EBBD7DC77A833C417C6D" xlink:to="loc_us-gaap_ShareBasedCompensationArrangementsByShareBasedPaymentAwardAwardTypeAndPlanNameDomain_84ADD82EB32BC6EEA27B7A833C41ED73" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2017/elts/us-gaap-2017-01-31.xsd#us-gaap_StockCompensationPlanMember" xlink:label="loc_us-gaap_StockCompensationPlanMember_E5ACB90A2777F62E92597A833C4128A2" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ShareBasedCompensationArrangementsByShareBasedPaymentAwardAwardTypeAndPlanNameDomain_84ADD82EB32BC6EEA27B7A833C41ED73" xlink:to="loc_us-gaap_StockCompensationPlanMember_E5ACB90A2777F62E92597A833C4128A2" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2017/elts/us-gaap-2017-01-31.xsd#us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardSharesIssuedInPeriod" xlink:label="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardSharesIssuedInPeriod_F1E50D8A3F5E2E395E257A833C410780" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardLineItems_1543AD211CE58ADE66E57A833C4172DD" xlink:to="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardSharesIssuedInPeriod_F1E50D8A3F5E2E395E257A833C410780" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2017/elts/us-gaap-2017-01-31.xsd#us-gaap_SharesIssuedPricePerShare" xlink:label="loc_us-gaap_SharesIssuedPricePerShare_D45317839C72E8C15A7A7A833C41C337" xlink:type="locator" />
    <link:definitionArc order="2" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardLineItems_1543AD211CE58ADE66E57A833C4172DD" xlink:to="loc_us-gaap_SharesIssuedPricePerShare_D45317839C72E8C15A7A7A833C41C337" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2017/elts/us-gaap-2017-01-31.xsd#us-gaap_ReceivableFromShareholdersOrAffiliatesForIssuanceOfCapitalStock" xlink:label="loc_us-gaap_ReceivableFromShareholdersOrAffiliatesForIssuanceOfCapitalStock_E8D280BB55F16F11EBD77A833C419A12" xlink:type="locator" />
    <link:definitionArc order="3" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardLineItems_1543AD211CE58ADE66E57A833C4172DD" xlink:to="loc_us-gaap_ReceivableFromShareholdersOrAffiliatesForIssuanceOfCapitalStock_E8D280BB55F16F11EBD77A833C419A12" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2017/elts/us-gaap-2017-01-31.xsd#us-gaap_TreasuryStockSharesAcquired" xlink:label="loc_us-gaap_TreasuryStockSharesAcquired_8EF7D2EC9812909BB6797A833C41BBA9" xlink:type="locator" />
    <link:definitionArc order="4" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardLineItems_1543AD211CE58ADE66E57A833C4172DD" xlink:to="loc_us-gaap_TreasuryStockSharesAcquired_8EF7D2EC9812909BB6797A833C41BBA9" xlink:type="arc" />
  </link:definitionLink>
  <link:definitionLink xlink:role="http://www.oesx.com/role/ShareholdersEquityTables" xlink:type="extended" />
  <link:definitionLink xlink:role="http://www.oesx.com/role/StockOptionsAndRestrictedShares" xlink:type="extended" />
  <link:definitionLink xlink:role="http://www.oesx.com/role/StockOptionsAndRestrictedSharesNarrativeDetails" xlink:type="extended" />
  <link:definitionLink xlink:role="http://www.oesx.com/role/StockOptionsAndRestrictedSharesRestrictedSharesAndStockOptionsDetails" xlink:type="extended">
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2017/elts/us-gaap-2017-01-31.xsd#us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardLineItems" xlink:label="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardLineItems_6C2A86BB89F6586995065B6E33EB0990" xlink:type="locator" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2017/elts/us-gaap-2017-01-31.xsd#us-gaap_ScheduleOfShareBasedCompensationArrangementsByShareBasedPaymentAwardTable" xlink:label="loc_us-gaap_ScheduleOfShareBasedCompensationArrangementsByShareBasedPaymentAwardTable_4AEF977056D65951B77DD82B98E37C07" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/all" xlink:from="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardLineItems_6C2A86BB89F6586995065B6E33EB0990" xlink:to="loc_us-gaap_ScheduleOfShareBasedCompensationArrangementsByShareBasedPaymentAwardTable_4AEF977056D65951B77DD82B98E37C07" xlink:type="arc" xbrldt:closed="true" xbrldt:contextElement="segment" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2017/elts/us-gaap-2017-01-31.xsd#us-gaap_AwardTypeAxis" xlink:label="loc_us-gaap_AwardTypeAxis_837A323F66105116BCDE58B16ED24ED0" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_ScheduleOfShareBasedCompensationArrangementsByShareBasedPaymentAwardTable_4AEF977056D65951B77DD82B98E37C07" xlink:to="loc_us-gaap_AwardTypeAxis_837A323F66105116BCDE58B16ED24ED0" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2017/elts/us-gaap-2017-01-31.xsd#us-gaap_ShareBasedCompensationArrangementsByShareBasedPaymentAwardAwardTypeAndPlanNameDomain" xlink:label="loc_us-gaap_ShareBasedCompensationArrangementsByShareBasedPaymentAwardAwardTypeAndPlanNameDomain_869208C969F3F5CE731CA8D4D2DFC0A9_5529D50F106254F5B5FEB7991377D95F" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_AwardTypeAxis_837A323F66105116BCDE58B16ED24ED0" xlink:to="loc_us-gaap_ShareBasedCompensationArrangementsByShareBasedPaymentAwardAwardTypeAndPlanNameDomain_869208C969F3F5CE731CA8D4D2DFC0A9_5529D50F106254F5B5FEB7991377D95F" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2017/elts/us-gaap-2017-01-31.xsd#us-gaap_ShareBasedCompensationArrangementsByShareBasedPaymentAwardAwardTypeAndPlanNameDomain" xlink:label="loc_us-gaap_ShareBasedCompensationArrangementsByShareBasedPaymentAwardAwardTypeAndPlanNameDomain_1E0D63A8FFCC5F20BAFEADF0599ED5DF" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_AwardTypeAxis_837A323F66105116BCDE58B16ED24ED0" xlink:to="loc_us-gaap_ShareBasedCompensationArrangementsByShareBasedPaymentAwardAwardTypeAndPlanNameDomain_1E0D63A8FFCC5F20BAFEADF0599ED5DF" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2017/elts/us-gaap-2017-01-31.xsd#us-gaap_RestrictedStockMember" xlink:label="loc_us-gaap_RestrictedStockMember_4B6B12DEBAE654F6BEC0ED3D52DF085B" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ShareBasedCompensationArrangementsByShareBasedPaymentAwardAwardTypeAndPlanNameDomain_1E0D63A8FFCC5F20BAFEADF0599ED5DF" xlink:to="loc_us-gaap_RestrictedStockMember_4B6B12DEBAE654F6BEC0ED3D52DF085B" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2017/elts/us-gaap-2017-01-31.xsd#us-gaap_RangeAxis" xlink:label="loc_us-gaap_RangeAxis_D7C6DBFBF6235CF7B57EF1BE8BCC2F4E" xlink:type="locator" />
    <link:definitionArc order="2" xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_ScheduleOfShareBasedCompensationArrangementsByShareBasedPaymentAwardTable_4AEF977056D65951B77DD82B98E37C07" xlink:to="loc_us-gaap_RangeAxis_D7C6DBFBF6235CF7B57EF1BE8BCC2F4E" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2017/elts/us-gaap-2017-01-31.xsd#us-gaap_RangeMember" xlink:label="loc_us-gaap_RangeMember_9C055ED8188B39110944A8D4D2DFDCE2_5529D50F106254F5B5FEB7991377D95F" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_RangeAxis_D7C6DBFBF6235CF7B57EF1BE8BCC2F4E" xlink:to="loc_us-gaap_RangeMember_9C055ED8188B39110944A8D4D2DFDCE2_5529D50F106254F5B5FEB7991377D95F" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2017/elts/us-gaap-2017-01-31.xsd#us-gaap_RangeMember" xlink:label="loc_us-gaap_RangeMember_BA30BBDF85285496900C29157C8AEFEC" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_RangeAxis_D7C6DBFBF6235CF7B57EF1BE8BCC2F4E" xlink:to="loc_us-gaap_RangeMember_BA30BBDF85285496900C29157C8AEFEC" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2017/elts/us-gaap-2017-01-31.xsd#us-gaap_MinimumMember" xlink:label="loc_us-gaap_MinimumMember_8D6BF4EB3ADE5074B5699FF1E51DE875" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_RangeMember_BA30BBDF85285496900C29157C8AEFEC" xlink:to="loc_us-gaap_MinimumMember_8D6BF4EB3ADE5074B5699FF1E51DE875" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2017/elts/us-gaap-2017-01-31.xsd#us-gaap_MaximumMember" xlink:label="loc_us-gaap_MaximumMember_C64C484BAF085DC1A1388F7E077D6DF3" xlink:type="locator" />
    <link:definitionArc order="2" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_RangeMember_BA30BBDF85285496900C29157C8AEFEC" xlink:to="loc_us-gaap_MaximumMember_C64C484BAF085DC1A1388F7E077D6DF3" xlink:type="arc" />
    <link:loc xlink:href="oesx-20171231.xsd#oesx_RestrictedSharesIssuedToKeyEmployeesAbstract" xlink:label="loc_oesx_RestrictedSharesIssuedToKeyEmployeesAbstract_504294646EE055CFAA63D124864820BF" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardLineItems_6C2A86BB89F6586995065B6E33EB0990" xlink:to="loc_oesx_RestrictedSharesIssuedToKeyEmployeesAbstract_504294646EE055CFAA63D124864820BF" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2017/elts/us-gaap-2017-01-31.xsd#us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionsNonvestedNumber" xlink:label="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionsNonvestedNumber_C10613985D5D5FEA9AEC17EBA39701E1" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_oesx_RestrictedSharesIssuedToKeyEmployeesAbstract_504294646EE055CFAA63D124864820BF" xlink:to="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionsNonvestedNumber_C10613985D5D5FEA9AEC17EBA39701E1" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2017/elts/us-gaap-2017-01-31.xsd#us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionsGrantsInPeriod" xlink:label="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionsGrantsInPeriod_93C0B902DE54576AB87AE24D93D1F0D3" xlink:type="locator" />
    <link:definitionArc order="2" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_oesx_RestrictedSharesIssuedToKeyEmployeesAbstract_504294646EE055CFAA63D124864820BF" xlink:to="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionsGrantsInPeriod_93C0B902DE54576AB87AE24D93D1F0D3" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2017/elts/us-gaap-2017-01-31.xsd#us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionsVestedInPeriod" xlink:label="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionsVestedInPeriod_CA2F0B0861E05061BDCB214FED96F972" xlink:type="locator" />
    <link:definitionArc order="3" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_oesx_RestrictedSharesIssuedToKeyEmployeesAbstract_504294646EE055CFAA63D124864820BF" xlink:to="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionsVestedInPeriod_CA2F0B0861E05061BDCB214FED96F972" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2017/elts/us-gaap-2017-01-31.xsd#us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionsForfeitedInPeriod" xlink:label="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionsForfeitedInPeriod_808EEC5EF9C7503DB56D2F90D146ADBF" xlink:type="locator" />
    <link:definitionArc order="4" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_oesx_RestrictedSharesIssuedToKeyEmployeesAbstract_504294646EE055CFAA63D124864820BF" xlink:to="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionsForfeitedInPeriod_808EEC5EF9C7503DB56D2F90D146ADBF" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2017/elts/us-gaap-2017-01-31.xsd#us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionsNonvestedWeightedAverageGrantDateFairValue" xlink:label="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionsNonvestedWeightedAverageGrantDateFairValue_5ADE939C5F8C573CAA47ED9213B15DE8" xlink:type="locator" />
    <link:definitionArc order="2" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardLineItems_6C2A86BB89F6586995065B6E33EB0990" xlink:to="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionsNonvestedWeightedAverageGrantDateFairValue_5ADE939C5F8C573CAA47ED9213B15DE8" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2017/elts/us-gaap-2017-01-31.xsd#us-gaap_SharebasedCompensationArrangementBySharebasedPaymentAwardOptionsNonvestedNumberOfSharesRollForward" xlink:label="loc_us-gaap_SharebasedCompensationArrangementBySharebasedPaymentAwardOptionsNonvestedNumberOfSharesRollForward_45A072838B57544780219DF2E603BE80" xlink:type="locator" />
    <link:definitionArc order="3" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardLineItems_6C2A86BB89F6586995065B6E33EB0990" xlink:to="loc_us-gaap_SharebasedCompensationArrangementBySharebasedPaymentAwardOptionsNonvestedNumberOfSharesRollForward_45A072838B57544780219DF2E603BE80" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2017/elts/us-gaap-2017-01-31.xsd#us-gaap_SharebasedCompensationArrangementBySharebasedPaymentAwardOptionsNonvestedNumberOfShares" xlink:label="loc_us-gaap_SharebasedCompensationArrangementBySharebasedPaymentAwardOptionsNonvestedNumberOfShares_49E52073E20C51AF9E523F1AC23ABA1C" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_SharebasedCompensationArrangementBySharebasedPaymentAwardOptionsNonvestedNumberOfSharesRollForward_45A072838B57544780219DF2E603BE80" xlink:to="loc_us-gaap_SharebasedCompensationArrangementBySharebasedPaymentAwardOptionsNonvestedNumberOfShares_49E52073E20C51AF9E523F1AC23ABA1C" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2017/elts/us-gaap-2017-01-31.xsd#us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardOptionsGrantsInPeriodGross" xlink:label="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardOptionsGrantsInPeriodGross_83E72B5A10855F22B8F4976A814F9730" xlink:type="locator" />
    <link:definitionArc order="2" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_SharebasedCompensationArrangementBySharebasedPaymentAwardOptionsNonvestedNumberOfSharesRollForward_45A072838B57544780219DF2E603BE80" xlink:to="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardOptionsGrantsInPeriodGross_83E72B5A10855F22B8F4976A814F9730" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2017/elts/us-gaap-2017-01-31.xsd#us-gaap_SharebasedCompensationArrangementBySharebasedPaymentAwardOptionsVestedNumberOfShares" xlink:label="loc_us-gaap_SharebasedCompensationArrangementBySharebasedPaymentAwardOptionsVestedNumberOfShares_DC7ABEED9F71537EA2877E129CC33864" xlink:type="locator" />
    <link:definitionArc order="3" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_SharebasedCompensationArrangementBySharebasedPaymentAwardOptionsNonvestedNumberOfSharesRollForward_45A072838B57544780219DF2E603BE80" xlink:to="loc_us-gaap_SharebasedCompensationArrangementBySharebasedPaymentAwardOptionsVestedNumberOfShares_DC7ABEED9F71537EA2877E129CC33864" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2017/elts/us-gaap-2017-01-31.xsd#us-gaap_SharebasedCompensationArrangementBySharebasedPaymentAwardOptionsNonvestedOptionsForfeitedNumberOfShares" xlink:label="loc_us-gaap_SharebasedCompensationArrangementBySharebasedPaymentAwardOptionsNonvestedOptionsForfeitedNumberOfShares_282E472766325A1697E5DFBC760B5CA9" xlink:type="locator" />
    <link:definitionArc order="4" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_SharebasedCompensationArrangementBySharebasedPaymentAwardOptionsNonvestedNumberOfSharesRollForward_45A072838B57544780219DF2E603BE80" xlink:to="loc_us-gaap_SharebasedCompensationArrangementBySharebasedPaymentAwardOptionsNonvestedOptionsForfeitedNumberOfShares_282E472766325A1697E5DFBC760B5CA9" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2017/elts/us-gaap-2017-01-31.xsd#us-gaap_ShareBasedCompensationArrangementsByShareBasedPaymentAwardOptionsGrantsInPeriodWeightedAverageExercisePrice" xlink:label="loc_us-gaap_ShareBasedCompensationArrangementsByShareBasedPaymentAwardOptionsGrantsInPeriodWeightedAverageExercisePrice_0B3BC9897AD051699493184457BCDA79" xlink:type="locator" />
    <link:definitionArc order="4" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardLineItems_6C2A86BB89F6586995065B6E33EB0990" xlink:to="loc_us-gaap_ShareBasedCompensationArrangementsByShareBasedPaymentAwardOptionsGrantsInPeriodWeightedAverageExercisePrice_0B3BC9897AD051699493184457BCDA79" xlink:type="arc" />
  </link:definitionLink>
  <link:definitionLink xlink:role="http://www.oesx.com/role/StockOptionsAndRestrictedSharesStockBasedCompensationDetails" xlink:type="extended">
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2017/elts/us-gaap-2017-01-31.xsd#us-gaap_EmployeeServiceShareBasedCompensationAllocationOfRecognizedPeriodCostsLineItems" xlink:label="loc_us-gaap_EmployeeServiceShareBasedCompensationAllocationOfRecognizedPeriodCostsLineItems_B29803BBEC2E5DFA91EB6F293DF0220D" xlink:type="locator" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2017/elts/us-gaap-2017-01-31.xsd#us-gaap_ScheduleOfEmployeeServiceShareBasedCompensationAllocationOfRecognizedPeriodCostsTable" xlink:label="loc_us-gaap_ScheduleOfEmployeeServiceShareBasedCompensationAllocationOfRecognizedPeriodCostsTable_1A0EAE0FC68E540897B6B531159BE4B2" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/all" xlink:from="loc_us-gaap_EmployeeServiceShareBasedCompensationAllocationOfRecognizedPeriodCostsLineItems_B29803BBEC2E5DFA91EB6F293DF0220D" xlink:to="loc_us-gaap_ScheduleOfEmployeeServiceShareBasedCompensationAllocationOfRecognizedPeriodCostsTable_1A0EAE0FC68E540897B6B531159BE4B2" xlink:type="arc" xbrldt:closed="true" xbrldt:contextElement="segment" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2017/elts/us-gaap-2017-01-31.xsd#us-gaap_IncomeStatementLocationAxis" xlink:label="loc_us-gaap_IncomeStatementLocationAxis_AEE716B82CFC5963B3FDE040B26F3BCD" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_ScheduleOfEmployeeServiceShareBasedCompensationAllocationOfRecognizedPeriodCostsTable_1A0EAE0FC68E540897B6B531159BE4B2" xlink:to="loc_us-gaap_IncomeStatementLocationAxis_AEE716B82CFC5963B3FDE040B26F3BCD" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2017/elts/us-gaap-2017-01-31.xsd#us-gaap_IncomeStatementLocationDomain" xlink:label="loc_us-gaap_IncomeStatementLocationDomain_B0FAC20B1900D5171CA261C00EE3C31C_5529D50F106254F5B5FEB7991377D95F" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_IncomeStatementLocationAxis_AEE716B82CFC5963B3FDE040B26F3BCD" xlink:to="loc_us-gaap_IncomeStatementLocationDomain_B0FAC20B1900D5171CA261C00EE3C31C_5529D50F106254F5B5FEB7991377D95F" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2017/elts/us-gaap-2017-01-31.xsd#us-gaap_IncomeStatementLocationDomain" xlink:label="loc_us-gaap_IncomeStatementLocationDomain_B554D89803385AD1B40A26B7D160C6CE" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_IncomeStatementLocationAxis_AEE716B82CFC5963B3FDE040B26F3BCD" xlink:to="loc_us-gaap_IncomeStatementLocationDomain_B554D89803385AD1B40A26B7D160C6CE" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2017/elts/us-gaap-2017-01-31.xsd#us-gaap_CostOfSalesMember" xlink:label="loc_us-gaap_CostOfSalesMember_A67B7C6272445CF6A7555A750916D35A" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_IncomeStatementLocationDomain_B554D89803385AD1B40A26B7D160C6CE" xlink:to="loc_us-gaap_CostOfSalesMember_A67B7C6272445CF6A7555A750916D35A" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2017/elts/us-gaap-2017-01-31.xsd#us-gaap_GeneralAndAdministrativeExpenseMember" xlink:label="loc_us-gaap_GeneralAndAdministrativeExpenseMember_EF42DD7D286455A38E45E5B8BBA24D80" xlink:type="locator" />
    <link:definitionArc order="2" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_IncomeStatementLocationDomain_B554D89803385AD1B40A26B7D160C6CE" xlink:to="loc_us-gaap_GeneralAndAdministrativeExpenseMember_EF42DD7D286455A38E45E5B8BBA24D80" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2017/elts/us-gaap-2017-01-31.xsd#us-gaap_SellingAndMarketingExpenseMember" xlink:label="loc_us-gaap_SellingAndMarketingExpenseMember_342DEF67CE8E575D815DB7F36E7C84B0" xlink:type="locator" />
    <link:definitionArc order="3" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_IncomeStatementLocationDomain_B554D89803385AD1B40A26B7D160C6CE" xlink:to="loc_us-gaap_SellingAndMarketingExpenseMember_342DEF67CE8E575D815DB7F36E7C84B0" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2017/elts/us-gaap-2017-01-31.xsd#us-gaap_ResearchAndDevelopmentExpenseMember" xlink:label="loc_us-gaap_ResearchAndDevelopmentExpenseMember_5F499CB571F85BA3A8684B8EFF8C4976" xlink:type="locator" />
    <link:definitionArc order="4" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_IncomeStatementLocationDomain_B554D89803385AD1B40A26B7D160C6CE" xlink:to="loc_us-gaap_ResearchAndDevelopmentExpenseMember_5F499CB571F85BA3A8684B8EFF8C4976" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2017/elts/us-gaap-2017-01-31.xsd#us-gaap_ShareBasedCompensationAllocationAndClassificationInFinancialStatementsAbstract" xlink:label="loc_us-gaap_ShareBasedCompensationAllocationAndClassificationInFinancialStatementsAbstract_1FEBCCE1433B599BA2D83916B3661111" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_EmployeeServiceShareBasedCompensationAllocationOfRecognizedPeriodCostsLineItems_B29803BBEC2E5DFA91EB6F293DF0220D" xlink:to="loc_us-gaap_ShareBasedCompensationAllocationAndClassificationInFinancialStatementsAbstract_1FEBCCE1433B599BA2D83916B3661111" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2017/elts/us-gaap-2017-01-31.xsd#us-gaap_AllocatedShareBasedCompensationExpense" xlink:label="loc_us-gaap_AllocatedShareBasedCompensationExpense_96093BA808A05CBBB4EB35F842006E15" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ShareBasedCompensationAllocationAndClassificationInFinancialStatementsAbstract_1FEBCCE1433B599BA2D83916B3661111" xlink:to="loc_us-gaap_AllocatedShareBasedCompensationExpense_96093BA808A05CBBB4EB35F842006E15" xlink:type="arc" />
  </link:definitionLink>
  <link:definitionLink xlink:role="http://www.oesx.com/role/StockOptionsAndRestrictedSharesTables" xlink:type="extended" />
  <link:definitionLink xlink:role="http://www.oesx.com/role/SubsequentEvents" xlink:type="extended" />
  <link:definitionLink xlink:role="http://www.oesx.com/role/SummaryOfSignificantAccountingPolicies" xlink:type="extended" />
  <link:definitionLink xlink:role="http://www.oesx.com/role/SummaryOfSignificantAccountingPoliciesDetails" xlink:type="extended">
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2017/elts/us-gaap-2017-01-31.xsd#us-gaap_ConcentrationRiskLineItems" xlink:label="loc_us-gaap_ConcentrationRiskLineItems_8E812F3BA0819BDCE5984E41BA1EA2A2" xlink:type="locator" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2017/elts/us-gaap-2017-01-31.xsd#us-gaap_ConcentrationRiskTable" xlink:label="loc_us-gaap_ConcentrationRiskTable_AAEB0603F3BA8941DE504E41BA1DDACE" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/all" xlink:from="loc_us-gaap_ConcentrationRiskLineItems_8E812F3BA0819BDCE5984E41BA1EA2A2" xlink:to="loc_us-gaap_ConcentrationRiskTable_AAEB0603F3BA8941DE504E41BA1DDACE" xlink:type="arc" xbrldt:closed="true" xbrldt:contextElement="segment" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2017/elts/us-gaap-2017-01-31.xsd#us-gaap_ConcentrationRiskByBenchmarkAxis" xlink:label="loc_us-gaap_ConcentrationRiskByBenchmarkAxis_D7CAB96677FFA0E416F94E41BA1DD627" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_ConcentrationRiskTable_AAEB0603F3BA8941DE504E41BA1DDACE" xlink:to="loc_us-gaap_ConcentrationRiskByBenchmarkAxis_D7CAB96677FFA0E416F94E41BA1DD627" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2017/elts/us-gaap-2017-01-31.xsd#us-gaap_ConcentrationRiskBenchmarkDomain" xlink:label="loc_us-gaap_ConcentrationRiskBenchmarkDomain_524D7AD92EC97FDE21F94E41BA1DF36D_default" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_ConcentrationRiskByBenchmarkAxis_D7CAB96677FFA0E416F94E41BA1DD627" xlink:to="loc_us-gaap_ConcentrationRiskBenchmarkDomain_524D7AD92EC97FDE21F94E41BA1DF36D_default" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2017/elts/us-gaap-2017-01-31.xsd#us-gaap_ConcentrationRiskBenchmarkDomain" xlink:label="loc_us-gaap_ConcentrationRiskBenchmarkDomain_524D7AD92EC97FDE21F94E41BA1DF36D" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_ConcentrationRiskByBenchmarkAxis_D7CAB96677FFA0E416F94E41BA1DD627" xlink:to="loc_us-gaap_ConcentrationRiskBenchmarkDomain_524D7AD92EC97FDE21F94E41BA1DF36D" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2017/elts/us-gaap-2017-01-31.xsd#us-gaap_CostOfGoodsTotalMember" xlink:label="loc_us-gaap_CostOfGoodsTotalMember_D6ACA1D84DC5F18384DC4E41BA1D18DF" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ConcentrationRiskBenchmarkDomain_524D7AD92EC97FDE21F94E41BA1DF36D" xlink:to="loc_us-gaap_CostOfGoodsTotalMember_D6ACA1D84DC5F18384DC4E41BA1D18DF" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2017/elts/us-gaap-2017-01-31.xsd#us-gaap_SalesRevenueNetMember" xlink:label="loc_us-gaap_SalesRevenueNetMember_4E7DA1A03C770272706D4E41BA1DB80A" xlink:type="locator" />
    <link:definitionArc order="2" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ConcentrationRiskBenchmarkDomain_524D7AD92EC97FDE21F94E41BA1DF36D" xlink:to="loc_us-gaap_SalesRevenueNetMember_4E7DA1A03C770272706D4E41BA1DB80A" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2017/elts/us-gaap-2017-01-31.xsd#us-gaap_AccountsReceivableMember" xlink:label="loc_us-gaap_AccountsReceivableMember_31E046F93C7D2DBBF9A14E41BA1DEEB5" xlink:type="locator" />
    <link:definitionArc order="3" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ConcentrationRiskBenchmarkDomain_524D7AD92EC97FDE21F94E41BA1DF36D" xlink:to="loc_us-gaap_AccountsReceivableMember_31E046F93C7D2DBBF9A14E41BA1DEEB5" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2017/elts/us-gaap-2017-01-31.xsd#us-gaap_ConcentrationRiskByTypeAxis" xlink:label="loc_us-gaap_ConcentrationRiskByTypeAxis_DA0E1743D12CC0A459C64E41BA1DED71" xlink:type="locator" />
    <link:definitionArc order="2" xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_ConcentrationRiskTable_AAEB0603F3BA8941DE504E41BA1DDACE" xlink:to="loc_us-gaap_ConcentrationRiskByTypeAxis_DA0E1743D12CC0A459C64E41BA1DED71" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2017/elts/us-gaap-2017-01-31.xsd#us-gaap_ConcentrationRiskTypeDomain" xlink:label="loc_us-gaap_ConcentrationRiskTypeDomain_2EEC0C375CE61A52F9344E41BA1DC32C_default" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_ConcentrationRiskByTypeAxis_DA0E1743D12CC0A459C64E41BA1DED71" xlink:to="loc_us-gaap_ConcentrationRiskTypeDomain_2EEC0C375CE61A52F9344E41BA1DC32C_default" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2017/elts/us-gaap-2017-01-31.xsd#us-gaap_ConcentrationRiskTypeDomain" xlink:label="loc_us-gaap_ConcentrationRiskTypeDomain_2EEC0C375CE61A52F9344E41BA1DC32C" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_ConcentrationRiskByTypeAxis_DA0E1743D12CC0A459C64E41BA1DED71" xlink:to="loc_us-gaap_ConcentrationRiskTypeDomain_2EEC0C375CE61A52F9344E41BA1DC32C" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2017/elts/us-gaap-2017-01-31.xsd#us-gaap_CustomerConcentrationRiskMember" xlink:label="loc_us-gaap_CustomerConcentrationRiskMember_EDFBE3B1A9A3B7C490FF4E41BA1D3D91" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ConcentrationRiskTypeDomain_2EEC0C375CE61A52F9344E41BA1DC32C" xlink:to="loc_us-gaap_CustomerConcentrationRiskMember_EDFBE3B1A9A3B7C490FF4E41BA1D3D91" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2017/elts/us-gaap-2017-01-31.xsd#us-gaap_MajorCustomersAxis" xlink:label="loc_us-gaap_MajorCustomersAxis_18F41B1EED6D4AA3AF064E41BA1DB012" xlink:type="locator" />
    <link:definitionArc order="3" xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_ConcentrationRiskTable_AAEB0603F3BA8941DE504E41BA1DDACE" xlink:to="loc_us-gaap_MajorCustomersAxis_18F41B1EED6D4AA3AF064E41BA1DB012" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2017/elts/us-gaap-2017-01-31.xsd#us-gaap_NameOfMajorCustomerDomain" xlink:label="loc_us-gaap_NameOfMajorCustomerDomain_A5B774B5C204BDCCBDDD4E41BA1D1623_default" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_MajorCustomersAxis_18F41B1EED6D4AA3AF064E41BA1DB012" xlink:to="loc_us-gaap_NameOfMajorCustomerDomain_A5B774B5C204BDCCBDDD4E41BA1D1623_default" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2017/elts/us-gaap-2017-01-31.xsd#us-gaap_NameOfMajorCustomerDomain" xlink:label="loc_us-gaap_NameOfMajorCustomerDomain_A5B774B5C204BDCCBDDD4E41BA1D1623" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_MajorCustomersAxis_18F41B1EED6D4AA3AF064E41BA1DB012" xlink:to="loc_us-gaap_NameOfMajorCustomerDomain_A5B774B5C204BDCCBDDD4E41BA1D1623" xlink:type="arc" />
    <link:loc xlink:href="oesx-20171231.xsd#oesx_CustomerOneMember" xlink:label="loc_oesx_CustomerOneMember_84D923612EB27F6691454E41BA1EB788" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_NameOfMajorCustomerDomain_A5B774B5C204BDCCBDDD4E41BA1D1623" xlink:to="loc_oesx_CustomerOneMember_84D923612EB27F6691454E41BA1EB788" xlink:type="arc" />
    <link:loc xlink:href="oesx-20171231.xsd#oesx_CustomerTwoMember" xlink:label="loc_oesx_CustomerTwoMember_300F3209A86F796C1D444E41BA1EEC7B" xlink:type="locator" />
    <link:definitionArc order="2" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_NameOfMajorCustomerDomain_A5B774B5C204BDCCBDDD4E41BA1D1623" xlink:to="loc_oesx_CustomerTwoMember_300F3209A86F796C1D444E41BA1EEC7B" xlink:type="arc" />
    <link:loc xlink:href="oesx-20171231.xsd#oesx_CustomerThreeMember" xlink:label="loc_oesx_CustomerThreeMember_5DBFEB2B5845E84DB0564E58B220B9DA" xlink:type="locator" />
    <link:definitionArc order="3" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_NameOfMajorCustomerDomain_A5B774B5C204BDCCBDDD4E41BA1D1623" xlink:to="loc_oesx_CustomerThreeMember_5DBFEB2B5845E84DB0564E58B220B9DA" xlink:type="arc" />
    <link:loc xlink:href="oesx-20171231.xsd#oesx_NumberOfFinancialInstitutions" xlink:label="loc_oesx_NumberOfFinancialInstitutions_4D2197AE4CA894F101C34E41BA1E69A8" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ConcentrationRiskLineItems_8E812F3BA0819BDCE5984E41BA1EA2A2" xlink:to="loc_oesx_NumberOfFinancialInstitutions_4D2197AE4CA894F101C34E41BA1E69A8" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2017/elts/us-gaap-2017-01-31.xsd#us-gaap_ConcentrationRiskPercentage1" xlink:label="loc_us-gaap_ConcentrationRiskPercentage1_D5A6F1E7338A3BC2EB384E41BA1ECEC9" xlink:type="locator" />
    <link:definitionArc order="2" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ConcentrationRiskLineItems_8E812F3BA0819BDCE5984E41BA1EA2A2" xlink:to="loc_us-gaap_ConcentrationRiskPercentage1_D5A6F1E7338A3BC2EB384E41BA1ECEC9" xlink:type="arc" />
  </link:definitionLink>
  <link:definitionLink xlink:role="http://www.oesx.com/role/SummaryOfSignificantAccountingPoliciesPolicies" xlink:type="extended" />
  <link:definitionLink xlink:role="http://www.oesx.com/role/UnauditedCondensedConsolidatedBalanceSheets" xlink:type="extended" />
  <link:definitionLink xlink:role="http://www.oesx.com/role/UnauditedCondensedConsolidatedBalanceSheetsParenthetical" xlink:type="extended" />
  <link:definitionLink xlink:role="http://www.oesx.com/role/UnauditedCondensedConsolidatedStatementsOfCashFlows" xlink:type="extended" />
  <link:definitionLink xlink:role="http://www.oesx.com/role/UnauditedCondensedConsolidatedStatementsOfOperations" xlink:type="extended" />
</link:linkbase>





