

<!--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-20170331.xsd#AccountsReceivable" xlink:type="simple" />
  <link:roleRef roleURI="http://www.oesx.com/role/AccountsReceivableAndAllowanceForDoubtfulAccountsDetails" xlink:href="oesx-20170331.xsd#AccountsReceivableAndAllowanceForDoubtfulAccountsDetails" xlink:type="simple" />
  <link:roleRef roleURI="http://www.oesx.com/role/AccountsReceivableNarrativeDetails" xlink:href="oesx-20170331.xsd#AccountsReceivableNarrativeDetails" xlink:type="simple" />
  <link:roleRef roleURI="http://www.oesx.com/role/AccountsReceivableTables" xlink:href="oesx-20170331.xsd#AccountsReceivableTables" xlink:type="simple" />
  <link:roleRef roleURI="http://www.oesx.com/role/AccruedExpensesAndOther" xlink:href="oesx-20170331.xsd#AccruedExpensesAndOther" xlink:type="simple" />
  <link:roleRef roleURI="http://www.oesx.com/role/AccruedExpensesAndOtherAccruedExpensesAndOtherDetails" xlink:href="oesx-20170331.xsd#AccruedExpensesAndOtherAccruedExpensesAndOtherDetails" xlink:type="simple" />
  <link:roleRef roleURI="http://www.oesx.com/role/AccruedExpensesAndOtherNarrativeDetails" xlink:href="oesx-20170331.xsd#AccruedExpensesAndOtherNarrativeDetails" xlink:type="simple" />
  <link:roleRef roleURI="http://www.oesx.com/role/AccruedExpensesAndOtherTables" xlink:href="oesx-20170331.xsd#AccruedExpensesAndOtherTables" xlink:type="simple" />
  <link:roleRef roleURI="http://www.oesx.com/role/AccruedExpensesAndOtherWarrantyAccrualDetails" xlink:href="oesx-20170331.xsd#AccruedExpensesAndOtherWarrantyAccrualDetails" xlink:type="simple" />
  <link:roleRef roleURI="http://www.oesx.com/role/Acquisition" xlink:href="oesx-20170331.xsd#Acquisition" xlink:type="simple" />
  <link:roleRef roleURI="http://www.oesx.com/role/AcquisitionDetails" xlink:href="oesx-20170331.xsd#AcquisitionDetails" xlink:type="simple" />
  <link:roleRef roleURI="http://www.oesx.com/role/CommitmentsAndContingencies" xlink:href="oesx-20170331.xsd#CommitmentsAndContingencies" xlink:type="simple" />
  <link:roleRef roleURI="http://www.oesx.com/role/CommitmentsAndContingenciesNarrativeDetails" xlink:href="oesx-20170331.xsd#CommitmentsAndContingenciesNarrativeDetails" xlink:type="simple" />
  <link:roleRef roleURI="http://www.oesx.com/role/CommitmentsAndContingenciesScheduleOfAnnualCommitmentsUnderNonCancelableOperatingAgreementsDetails" xlink:href="oesx-20170331.xsd#CommitmentsAndContingenciesScheduleOfAnnualCommitmentsUnderNonCancelableOperatingAgreementsDetails" xlink:type="simple" />
  <link:roleRef roleURI="http://www.oesx.com/role/CommitmentsAndContingenciesTables" xlink:href="oesx-20170331.xsd#CommitmentsAndContingenciesTables" xlink:type="simple" />
  <link:roleRef roleURI="http://www.oesx.com/role/ConsolidatedBalanceSheets" xlink:href="oesx-20170331.xsd#ConsolidatedBalanceSheets" xlink:type="simple" />
  <link:roleRef roleURI="http://www.oesx.com/role/ConsolidatedBalanceSheetsParenthetical" xlink:href="oesx-20170331.xsd#ConsolidatedBalanceSheetsParenthetical" xlink:type="simple" />
  <link:roleRef roleURI="http://www.oesx.com/role/ConsolidatedStatementsOfCashFlows" xlink:href="oesx-20170331.xsd#ConsolidatedStatementsOfCashFlows" xlink:type="simple" />
  <link:roleRef roleURI="http://www.oesx.com/role/ConsolidatedStatementsOfOperationsAndComprehensiveIncome" xlink:href="oesx-20170331.xsd#ConsolidatedStatementsOfOperationsAndComprehensiveIncome" xlink:type="simple" />
  <link:roleRef roleURI="http://www.oesx.com/role/DescriptionOfBusiness" xlink:href="oesx-20170331.xsd#DescriptionOfBusiness" xlink:type="simple" />
  <link:roleRef roleURI="http://www.oesx.com/role/DocumentAndEntityInformation" xlink:href="oesx-20170331.xsd#DocumentAndEntityInformation" xlink:type="simple" />
  <link:roleRef roleURI="http://www.oesx.com/role/FinancingReceivables" xlink:href="oesx-20170331.xsd#FinancingReceivables" xlink:type="simple" />
  <link:roleRef roleURI="http://www.oesx.com/role/FinancingReceivablesAgingAnalysisDetails" xlink:href="oesx-20170331.xsd#FinancingReceivablesAgingAnalysisDetails" xlink:type="simple" />
  <link:roleRef roleURI="http://www.oesx.com/role/FinancingReceivablesAllowanceForDoubtfulAccountsDetails" xlink:href="oesx-20170331.xsd#FinancingReceivablesAllowanceForDoubtfulAccountsDetails" xlink:type="simple" />
  <link:roleRef roleURI="http://www.oesx.com/role/FinancingReceivablesTables" xlink:href="oesx-20170331.xsd#FinancingReceivablesTables" xlink:type="simple" />
  <link:roleRef roleURI="http://www.oesx.com/role/GoodwillAndOtherIntangibleAssets" xlink:href="oesx-20170331.xsd#GoodwillAndOtherIntangibleAssets" xlink:type="simple" />
  <link:roleRef roleURI="http://www.oesx.com/role/GoodwillAndOtherIntangibleAssetsAmortizationExpenseDetails" xlink:href="oesx-20170331.xsd#GoodwillAndOtherIntangibleAssetsAmortizationExpenseDetails" xlink:type="simple" />
  <link:roleRef roleURI="http://www.oesx.com/role/GoodwillAndOtherIntangibleAssetsChangeInCarryingValueOfGoodwillDetails" xlink:href="oesx-20170331.xsd#GoodwillAndOtherIntangibleAssetsChangeInCarryingValueOfGoodwillDetails" xlink:type="simple" />
  <link:roleRef roleURI="http://www.oesx.com/role/GoodwillAndOtherIntangibleAssetsFutureAmortizationByFiscalYearDetails" xlink:href="oesx-20170331.xsd#GoodwillAndOtherIntangibleAssetsFutureAmortizationByFiscalYearDetails" xlink:type="simple" />
  <link:roleRef roleURI="http://www.oesx.com/role/GoodwillAndOtherIntangibleAssetsNarrativeDetails" xlink:href="oesx-20170331.xsd#GoodwillAndOtherIntangibleAssetsNarrativeDetails" xlink:type="simple" />
  <link:roleRef roleURI="http://www.oesx.com/role/GoodwillAndOtherIntangibleAssetsOtherIntangibleAssetsDetails" xlink:href="oesx-20170331.xsd#GoodwillAndOtherIntangibleAssetsOtherIntangibleAssetsDetails" xlink:type="simple" />
  <link:roleRef roleURI="http://www.oesx.com/role/GoodwillAndOtherIntangibleAssetsTables" xlink:href="oesx-20170331.xsd#GoodwillAndOtherIntangibleAssetsTables" xlink:type="simple" />
  <link:roleRef roleURI="http://www.oesx.com/role/GoodwillAndOtherIntangibleAssetsUsefulLivesDetails" xlink:href="oesx-20170331.xsd#GoodwillAndOtherIntangibleAssetsUsefulLivesDetails" xlink:type="simple" />
  <link:roleRef roleURI="http://www.oesx.com/role/IncomeTaxes" xlink:href="oesx-20170331.xsd#IncomeTaxes" xlink:type="simple" />
  <link:roleRef roleURI="http://www.oesx.com/role/IncomeTaxesNarrativeDetails" xlink:href="oesx-20170331.xsd#IncomeTaxesNarrativeDetails" xlink:type="simple" />
  <link:roleRef roleURI="http://www.oesx.com/role/IncomeTaxesReconciliationOfTaxRatesDetails" xlink:href="oesx-20170331.xsd#IncomeTaxesReconciliationOfTaxRatesDetails" xlink:type="simple" />
  <link:roleRef roleURI="http://www.oesx.com/role/IncomeTaxesScheduleOfComponentsOfIncomeTaxExpenseOrBenefitDetails" xlink:href="oesx-20170331.xsd#IncomeTaxesScheduleOfComponentsOfIncomeTaxExpenseOrBenefitDetails" xlink:type="simple" />
  <link:roleRef roleURI="http://www.oesx.com/role/IncomeTaxesScheduleOfDeferredTaxAssetsAndLiabilitiesDetails" xlink:href="oesx-20170331.xsd#IncomeTaxesScheduleOfDeferredTaxAssetsAndLiabilitiesDetails" xlink:type="simple" />
  <link:roleRef roleURI="http://www.oesx.com/role/IncomeTaxesTables" xlink:href="oesx-20170331.xsd#IncomeTaxesTables" xlink:type="simple" />
  <link:roleRef roleURI="http://www.oesx.com/role/IncomeTaxesUnrecognizedTaxBenefitActivityDetails" xlink:href="oesx-20170331.xsd#IncomeTaxesUnrecognizedTaxBenefitActivityDetails" xlink:type="simple" />
  <link:roleRef roleURI="http://www.oesx.com/role/Inventories" xlink:href="oesx-20170331.xsd#Inventories" xlink:type="simple" />
  <link:roleRef roleURI="http://www.oesx.com/role/InventoriesDetails" xlink:href="oesx-20170331.xsd#InventoriesDetails" xlink:type="simple" />
  <link:roleRef roleURI="http://www.oesx.com/role/InventoriesTables" xlink:href="oesx-20170331.xsd#InventoriesTables" xlink:type="simple" />
  <link:roleRef roleURI="http://www.oesx.com/role/LongTermDebt" xlink:href="oesx-20170331.xsd#LongTermDebt" xlink:type="simple" />
  <link:roleRef roleURI="http://www.oesx.com/role/LongTermDebtAggregateMaturitiesDetails" xlink:href="oesx-20170331.xsd#LongTermDebtAggregateMaturitiesDetails" xlink:type="simple" />
  <link:roleRef roleURI="http://www.oesx.com/role/LongTermDebtAllOtherDebtDetails" xlink:href="oesx-20170331.xsd#LongTermDebtAllOtherDebtDetails" xlink:type="simple" />
  <link:roleRef roleURI="http://www.oesx.com/role/LongTermDebtRevolvingCreditFacilityDetails" xlink:href="oesx-20170331.xsd#LongTermDebtRevolvingCreditFacilityDetails" xlink:type="simple" />
  <link:roleRef roleURI="http://www.oesx.com/role/LongTermDebtSummaryOfDebtDetails" xlink:href="oesx-20170331.xsd#LongTermDebtSummaryOfDebtDetails" xlink:type="simple" />
  <link:roleRef roleURI="http://www.oesx.com/role/LongTermDebtTables" xlink:href="oesx-20170331.xsd#LongTermDebtTables" xlink:type="simple" />
  <link:roleRef roleURI="http://www.oesx.com/role/NetIncomeLossPerCommonShare" xlink:href="oesx-20170331.xsd#NetIncomeLossPerCommonShare" xlink:type="simple" />
  <link:roleRef roleURI="http://www.oesx.com/role/NetIncomeLossPerCommonShareDilutiveSecuritiesDetails" xlink:href="oesx-20170331.xsd#NetIncomeLossPerCommonShareDilutiveSecuritiesDetails" xlink:type="simple" />
  <link:roleRef roleURI="http://www.oesx.com/role/NetIncomeLossPerCommonShareEarningsPerShareDetails" xlink:href="oesx-20170331.xsd#NetIncomeLossPerCommonShareEarningsPerShareDetails" xlink:type="simple" />
  <link:roleRef roleURI="http://www.oesx.com/role/NetIncomeLossPerCommonShareTables" xlink:href="oesx-20170331.xsd#NetIncomeLossPerCommonShareTables" xlink:type="simple" />
  <link:roleRef roleURI="http://www.oesx.com/role/OtherLongTermAssets" xlink:href="oesx-20170331.xsd#OtherLongTermAssets" xlink:type="simple" />
  <link:roleRef roleURI="http://www.oesx.com/role/OtherLongTermAssetsNarrativeDetails" xlink:href="oesx-20170331.xsd#OtherLongTermAssetsNarrativeDetails" xlink:type="simple" />
  <link:roleRef roleURI="http://www.oesx.com/role/OtherLongTermAssetsSummaryOfOtherLongTermAssetsDetails" xlink:href="oesx-20170331.xsd#OtherLongTermAssetsSummaryOfOtherLongTermAssetsDetails" xlink:type="simple" />
  <link:roleRef roleURI="http://www.oesx.com/role/OtherLongTermAssetsTables" xlink:href="oesx-20170331.xsd#OtherLongTermAssetsTables" xlink:type="simple" />
  <link:roleRef roleURI="http://www.oesx.com/role/PrepaidExpensesAndOtherCurrentAssets" xlink:href="oesx-20170331.xsd#PrepaidExpensesAndOtherCurrentAssets" xlink:type="simple" />
  <link:roleRef roleURI="http://www.oesx.com/role/PrepaidExpensesAndOtherCurrentAssetsDetails" xlink:href="oesx-20170331.xsd#PrepaidExpensesAndOtherCurrentAssetsDetails" xlink:type="simple" />
  <link:roleRef roleURI="http://www.oesx.com/role/PrepaidExpensesAndOtherCurrentAssetsTables" xlink:href="oesx-20170331.xsd#PrepaidExpensesAndOtherCurrentAssetsTables" xlink:type="simple" />
  <link:roleRef roleURI="http://www.oesx.com/role/PropertyAndEquipment" xlink:href="oesx-20170331.xsd#PropertyAndEquipment" xlink:type="simple" />
  <link:roleRef roleURI="http://www.oesx.com/role/PropertyAndEquipmentEquipmentUnderCapitalLeasesDetails" xlink:href="oesx-20170331.xsd#PropertyAndEquipmentEquipmentUnderCapitalLeasesDetails" xlink:type="simple" />
  <link:roleRef roleURI="http://www.oesx.com/role/PropertyAndEquipmentNarrativeDetails" xlink:href="oesx-20170331.xsd#PropertyAndEquipmentNarrativeDetails" xlink:type="simple" />
  <link:roleRef roleURI="http://www.oesx.com/role/PropertyAndEquipmentSummaryOfPropertyAndEquipmentDetails" xlink:href="oesx-20170331.xsd#PropertyAndEquipmentSummaryOfPropertyAndEquipmentDetails" xlink:type="simple" />
  <link:roleRef roleURI="http://www.oesx.com/role/PropertyAndEquipmentTables" xlink:href="oesx-20170331.xsd#PropertyAndEquipmentTables" xlink:type="simple" />
  <link:roleRef roleURI="http://www.oesx.com/role/PropertyAndEquipmentUsefulLivesDetails" xlink:href="oesx-20170331.xsd#PropertyAndEquipmentUsefulLivesDetails" xlink:type="simple" />
  <link:roleRef roleURI="http://www.oesx.com/role/QuarterlyFinancialDataDetails" xlink:href="oesx-20170331.xsd#QuarterlyFinancialDataDetails" xlink:type="simple" />
  <link:roleRef roleURI="http://www.oesx.com/role/QuarterlyFinancialDataUnaudited" xlink:href="oesx-20170331.xsd#QuarterlyFinancialDataUnaudited" xlink:type="simple" />
  <link:roleRef roleURI="http://www.oesx.com/role/QuarterlyFinancialDataUnauditedTables" xlink:href="oesx-20170331.xsd#QuarterlyFinancialDataUnauditedTables" xlink:type="simple" />
  <link:roleRef roleURI="http://www.oesx.com/role/RelatedPartyTransactions" xlink:href="oesx-20170331.xsd#RelatedPartyTransactions" xlink:type="simple" />
  <link:roleRef roleURI="http://www.oesx.com/role/RelatedPartyTransactionsDetails" xlink:href="oesx-20170331.xsd#RelatedPartyTransactionsDetails" xlink:type="simple" />
  <link:roleRef roleURI="http://www.oesx.com/role/ScheduleIiValuationAndQualifyingAccounts" xlink:href="oesx-20170331.xsd#ScheduleIiValuationAndQualifyingAccounts" xlink:type="simple" />
  <link:roleRef roleURI="http://www.oesx.com/role/ScheduleIiValuationAndQualifyingAccountsDetails" xlink:href="oesx-20170331.xsd#ScheduleIiValuationAndQualifyingAccountsDetails" xlink:type="simple" />
  <link:roleRef roleURI="http://www.oesx.com/role/SegmentData" xlink:href="oesx-20170331.xsd#SegmentData" xlink:type="simple" />
  <link:roleRef roleURI="http://www.oesx.com/role/SegmentDataReconciliationOfSegmentAssetsAndLiabilitiesDetails" xlink:href="oesx-20170331.xsd#SegmentDataReconciliationOfSegmentAssetsAndLiabilitiesDetails" xlink:type="simple" />
  <link:roleRef roleURI="http://www.oesx.com/role/SegmentDataReconciliationOfSegmentOperationsDetails" xlink:href="oesx-20170331.xsd#SegmentDataReconciliationOfSegmentOperationsDetails" xlink:type="simple" />
  <link:roleRef roleURI="http://www.oesx.com/role/SegmentDataTables" xlink:href="oesx-20170331.xsd#SegmentDataTables" xlink:type="simple" />
  <link:roleRef roleURI="http://www.oesx.com/role/ShareholdersEquity" xlink:href="oesx-20170331.xsd#ShareholdersEquity" xlink:type="simple" />
  <link:roleRef roleURI="http://www.oesx.com/role/ShareholdersEquityNarrativeDetails" xlink:href="oesx-20170331.xsd#ShareholdersEquityNarrativeDetails" xlink:type="simple" />
  <link:roleRef roleURI="http://www.oesx.com/role/ShareholdersEquityScheduleOfEsppActivityDetails" xlink:href="oesx-20170331.xsd#ShareholdersEquityScheduleOfEsppActivityDetails" xlink:type="simple" />
  <link:roleRef roleURI="http://www.oesx.com/role/ShareholdersEquityTables" xlink:href="oesx-20170331.xsd#ShareholdersEquityTables" xlink:type="simple" />
  <link:roleRef roleURI="http://www.oesx.com/role/StatementsOfShareholdersEquity" xlink:href="oesx-20170331.xsd#StatementsOfShareholdersEquity" xlink:type="simple" />
  <link:roleRef roleURI="http://www.oesx.com/role/StockOptionsRestrictedSharesAndWarrants" xlink:href="oesx-20170331.xsd#StockOptionsRestrictedSharesAndWarrants" xlink:type="simple" />
  <link:roleRef roleURI="http://www.oesx.com/role/StockOptionsRestrictedSharesAndWarrantsNarrativeDetails" xlink:href="oesx-20170331.xsd#StockOptionsRestrictedSharesAndWarrantsNarrativeDetails" xlink:type="simple" />
  <link:roleRef roleURI="http://www.oesx.com/role/StockOptionsRestrictedSharesAndWarrantsScheduleOfRestrictedSharesDetails" xlink:href="oesx-20170331.xsd#StockOptionsRestrictedSharesAndWarrantsScheduleOfRestrictedSharesDetails" xlink:type="simple" />
  <link:roleRef roleURI="http://www.oesx.com/role/StockOptionsRestrictedSharesAndWarrantsScheduleOfSharesAvailableForGrantDetails" xlink:href="oesx-20170331.xsd#StockOptionsRestrictedSharesAndWarrantsScheduleOfSharesAvailableForGrantDetails" xlink:type="simple" />
  <link:roleRef roleURI="http://www.oesx.com/role/StockOptionsRestrictedSharesAndWarrantsStockBasedCompensationDetails" xlink:href="oesx-20170331.xsd#StockOptionsRestrictedSharesAndWarrantsStockBasedCompensationDetails" xlink:type="simple" />
  <link:roleRef roleURI="http://www.oesx.com/role/StockOptionsRestrictedSharesAndWarrantsSummaryOfExercisePriceRangeDetails" xlink:href="oesx-20170331.xsd#StockOptionsRestrictedSharesAndWarrantsSummaryOfExercisePriceRangeDetails" xlink:type="simple" />
  <link:roleRef roleURI="http://www.oesx.com/role/StockOptionsRestrictedSharesAndWarrantsSummaryOfOutstandingStockOptionsDetails" xlink:href="oesx-20170331.xsd#StockOptionsRestrictedSharesAndWarrantsSummaryOfOutstandingStockOptionsDetails" xlink:type="simple" />
  <link:roleRef roleURI="http://www.oesx.com/role/StockOptionsRestrictedSharesAndWarrantsSummaryOfUnrecognizedCompensationCostDetails" xlink:href="oesx-20170331.xsd#StockOptionsRestrictedSharesAndWarrantsSummaryOfUnrecognizedCompensationCostDetails" xlink:type="simple" />
  <link:roleRef roleURI="http://www.oesx.com/role/StockOptionsRestrictedSharesAndWarrantsTables" xlink:href="oesx-20170331.xsd#StockOptionsRestrictedSharesAndWarrantsTables" xlink:type="simple" />
  <link:roleRef roleURI="http://www.oesx.com/role/SubsequentEvents" xlink:href="oesx-20170331.xsd#SubsequentEvents" xlink:type="simple" />
  <link:roleRef roleURI="http://www.oesx.com/role/SubsequentEventsDetails" xlink:href="oesx-20170331.xsd#SubsequentEventsDetails" xlink:type="simple" />
  <link:roleRef roleURI="http://www.oesx.com/role/SummaryOfSignificantAccountingPolicies" xlink:href="oesx-20170331.xsd#SummaryOfSignificantAccountingPolicies" xlink:type="simple" />
  <link:roleRef roleURI="http://www.oesx.com/role/SummaryOfSignificantAccountingPoliciesConcentrationRiskDetails" xlink:href="oesx-20170331.xsd#SummaryOfSignificantAccountingPoliciesConcentrationRiskDetails" xlink:type="simple" />
  <link:roleRef roleURI="http://www.oesx.com/role/SummaryOfSignificantAccountingPoliciesIncentiveCompensationDetails" xlink:href="oesx-20170331.xsd#SummaryOfSignificantAccountingPoliciesIncentiveCompensationDetails" xlink:type="simple" />
  <link:roleRef roleURI="http://www.oesx.com/role/SummaryOfSignificantAccountingPoliciesNarrativeDetails" xlink:href="oesx-20170331.xsd#SummaryOfSignificantAccountingPoliciesNarrativeDetails" xlink:type="simple" />
  <link:roleRef roleURI="http://www.oesx.com/role/SummaryOfSignificantAccountingPoliciesPolicies" xlink:href="oesx-20170331.xsd#SummaryOfSignificantAccountingPoliciesPolicies" 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/AccountsReceivableAndAllowanceForDoubtfulAccountsDetails" xlink:type="extended" />
  <link:definitionLink xlink:role="http://www.oesx.com/role/AccountsReceivableNarrativeDetails" 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/AccruedExpensesAndOther" xlink:type="extended" />
  <link:definitionLink xlink:role="http://www.oesx.com/role/AccruedExpensesAndOtherAccruedExpensesAndOtherDetails" xlink:type="extended" />
  <link:definitionLink xlink:role="http://www.oesx.com/role/AccruedExpensesAndOtherNarrativeDetails" xlink:type="extended">
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_SegmentReportingInformationLineItems" xlink:label="loc_us-gaap_SegmentReportingInformationLineItems_7CD1DD4768D9F2C399DE643CABAF52F6" xlink:type="locator" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_ScheduleOfSegmentReportingInformationBySegmentTable" xlink:label="loc_us-gaap_ScheduleOfSegmentReportingInformationBySegmentTable_A7816BCDC73CF21B578C643CABAC6D88" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/all" xlink:from="loc_us-gaap_SegmentReportingInformationLineItems_7CD1DD4768D9F2C399DE643CABAF52F6" xlink:to="loc_us-gaap_ScheduleOfSegmentReportingInformationBySegmentTable_A7816BCDC73CF21B578C643CABAC6D88" xlink:type="arc" xbrldt:closed="true" xbrldt:contextElement="segment" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_RangeAxis" xlink:label="loc_us-gaap_RangeAxis_7CBE93D4504DA406BB53643CABAC6301" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_ScheduleOfSegmentReportingInformationBySegmentTable_A7816BCDC73CF21B578C643CABAC6D88" xlink:to="loc_us-gaap_RangeAxis_7CBE93D4504DA406BB53643CABAC6301" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_RangeMember" xlink:label="loc_us-gaap_RangeMember_39CF051071AF4D83F5F3643CABAC55C3_default" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_RangeAxis_7CBE93D4504DA406BB53643CABAC6301" xlink:to="loc_us-gaap_RangeMember_39CF051071AF4D83F5F3643CABAC55C3_default" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_RangeMember" xlink:label="loc_us-gaap_RangeMember_39CF051071AF4D83F5F3643CABAC55C3" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_RangeAxis_7CBE93D4504DA406BB53643CABAC6301" xlink:to="loc_us-gaap_RangeMember_39CF051071AF4D83F5F3643CABAC55C3" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_MinimumMember" xlink:label="loc_us-gaap_MinimumMember_9BF64D9EF8C8FB219A9A643CABAF3490" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_RangeMember_39CF051071AF4D83F5F3643CABAC55C3" xlink:to="loc_us-gaap_MinimumMember_9BF64D9EF8C8FB219A9A643CABAF3490" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_MaximumMember" xlink:label="loc_us-gaap_MaximumMember_1D9B69D192519488BB6F643CABAFA02F" xlink:type="locator" />
    <link:definitionArc order="2" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_RangeMember_39CF051071AF4D83F5F3643CABAC55C3" xlink:to="loc_us-gaap_MaximumMember_1D9B69D192519488BB6F643CABAFA02F" xlink:type="arc" />
    <link:loc xlink:href="oesx-20170331.xsd#oesx_LimitedProductWarrantyTerm" xlink:label="loc_oesx_LimitedProductWarrantyTerm_90CCC67EAA3EB280D543643CABAF45E8" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_SegmentReportingInformationLineItems_7CD1DD4768D9F2C399DE643CABAF52F6" xlink:to="loc_oesx_LimitedProductWarrantyTerm_90CCC67EAA3EB280D543643CABAF45E8" xlink:type="arc" />
  </link:definitionLink>
  <link:definitionLink xlink:role="http://www.oesx.com/role/AccruedExpensesAndOtherTables" xlink:type="extended" />
  <link:definitionLink xlink:role="http://www.oesx.com/role/AccruedExpensesAndOtherWarrantyAccrualDetails" xlink:type="extended" />
  <link:definitionLink xlink:role="http://www.oesx.com/role/Acquisition" xlink:type="extended" />
  <link:definitionLink xlink:role="http://www.oesx.com/role/AcquisitionDetails" xlink:type="extended">
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_BusinessAcquisitionLineItems" xlink:label="loc_us-gaap_BusinessAcquisitionLineItems_BA2921016293E64CB3875FA93FB3D060" xlink:type="locator" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_ScheduleOfBusinessAcquisitionsByAcquisitionTable" xlink:label="loc_us-gaap_ScheduleOfBusinessAcquisitionsByAcquisitionTable_709312EBEDC1589EEFCE5FA93FB2D8F6" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/all" xlink:from="loc_us-gaap_BusinessAcquisitionLineItems_BA2921016293E64CB3875FA93FB3D060" xlink:to="loc_us-gaap_ScheduleOfBusinessAcquisitionsByAcquisitionTable_709312EBEDC1589EEFCE5FA93FB2D8F6" xlink:type="arc" xbrldt:closed="true" xbrldt:contextElement="segment" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_BusinessAcquisitionAxis" xlink:label="loc_us-gaap_BusinessAcquisitionAxis_6A7D313273D1384DBE425FA93FB3157C" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_ScheduleOfBusinessAcquisitionsByAcquisitionTable_709312EBEDC1589EEFCE5FA93FB2D8F6" xlink:to="loc_us-gaap_BusinessAcquisitionAxis_6A7D313273D1384DBE425FA93FB3157C" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_BusinessAcquisitionAcquireeDomain" xlink:label="loc_us-gaap_BusinessAcquisitionAcquireeDomain_B43BAF37AC43A8C94A9D5FA93FB332CA_default" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_BusinessAcquisitionAxis_6A7D313273D1384DBE425FA93FB3157C" xlink:to="loc_us-gaap_BusinessAcquisitionAcquireeDomain_B43BAF37AC43A8C94A9D5FA93FB332CA_default" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_BusinessAcquisitionAcquireeDomain" xlink:label="loc_us-gaap_BusinessAcquisitionAcquireeDomain_B43BAF37AC43A8C94A9D5FA93FB332CA" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_BusinessAcquisitionAxis_6A7D313273D1384DBE425FA93FB3157C" xlink:to="loc_us-gaap_BusinessAcquisitionAcquireeDomain_B43BAF37AC43A8C94A9D5FA93FB332CA" xlink:type="arc" />
    <link:loc xlink:href="oesx-20170331.xsd#oesx_HarrisMember" xlink:label="loc_oesx_HarrisMember_F580D966BCD97367BAD35FA93FB3E039" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_BusinessAcquisitionAcquireeDomain_B43BAF37AC43A8C94A9D5FA93FB332CA" xlink:to="loc_oesx_HarrisMember_F580D966BCD97367BAD35FA93FB3E039" xlink:type="arc" />
    <link:loc xlink:href="oesx-20170331.xsd#oesx_BusinessCombinationConsiderationTransferredInitialPurchaseAgreementAmount" xlink:label="loc_oesx_BusinessCombinationConsiderationTransferredInitialPurchaseAgreementAmount_A94194686B584D3FFDCF5FA93FB3C32F" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_BusinessAcquisitionLineItems_BA2921016293E64CB3875FA93FB3D060" xlink:to="loc_oesx_BusinessCombinationConsiderationTransferredInitialPurchaseAgreementAmount_A94194686B584D3FFDCF5FA93FB3C32F" xlink:type="arc" />
    <link:loc xlink:href="oesx-20170331.xsd#oesx_BusinessCombinationConsiderationTransferredInitialPurchaseAgreementContingentAdjustmentAmount" xlink:label="loc_oesx_BusinessCombinationConsiderationTransferredInitialPurchaseAgreementContingentAdjustmentAmount_DB06F84C077C2F3EB8405FA93FB35D2E" xlink:type="locator" />
    <link:definitionArc order="2" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_BusinessAcquisitionLineItems_BA2921016293E64CB3875FA93FB3D060" xlink:to="loc_oesx_BusinessCombinationConsiderationTransferredInitialPurchaseAgreementContingentAdjustmentAmount_DB06F84C077C2F3EB8405FA93FB35D2E" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_BusinessCombinationContingentConsiderationLiability" xlink:label="loc_us-gaap_BusinessCombinationContingentConsiderationLiability_A544E7DBE3ACEAC629645FA93FB37660" xlink:type="locator" />
    <link:definitionArc order="3" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_BusinessAcquisitionLineItems_BA2921016293E64CB3875FA93FB3D060" xlink:to="loc_us-gaap_BusinessCombinationContingentConsiderationLiability_A544E7DBE3ACEAC629645FA93FB37660" xlink:type="arc" />
    <link:loc xlink:href="oesx-20170331.xsd#oesx_BusinessCombinationFixedFutureConsiderationAmount" xlink:label="loc_oesx_BusinessCombinationFixedFutureConsiderationAmount_4B5584B841344DA2A1B15FA93FB47DBD" xlink:type="locator" />
    <link:definitionArc order="4" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_BusinessAcquisitionLineItems_BA2921016293E64CB3875FA93FB3D060" xlink:to="loc_oesx_BusinessCombinationFixedFutureConsiderationAmount_4B5584B841344DA2A1B15FA93FB47DBD" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_BusinessAcquisitionEquityInterestIssuedOrIssuableValueAssigned" xlink:label="loc_us-gaap_BusinessAcquisitionEquityInterestIssuedOrIssuableValueAssigned_AAEC9E0D08545F0231CA5FA93FB49046" xlink:type="locator" />
    <link:definitionArc order="5" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_BusinessAcquisitionLineItems_BA2921016293E64CB3875FA93FB3D060" xlink:to="loc_us-gaap_BusinessAcquisitionEquityInterestIssuedOrIssuableValueAssigned_AAEC9E0D08545F0231CA5FA93FB49046" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_BusinessAcquisitionEquityInterestsIssuedOrIssuableNumberOfSharesIssued" xlink:label="loc_us-gaap_BusinessAcquisitionEquityInterestsIssuedOrIssuableNumberOfSharesIssued_CC15D2CA0612451E9D295FA93FB473F1" xlink:type="locator" />
    <link:definitionArc order="6" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_BusinessAcquisitionLineItems_BA2921016293E64CB3875FA93FB3D060" xlink:to="loc_us-gaap_BusinessAcquisitionEquityInterestsIssuedOrIssuableNumberOfSharesIssued_CC15D2CA0612451E9D295FA93FB473F1" xlink:type="arc" />
    <link:loc xlink:href="oesx-20170331.xsd#oesx_BusinessCombinationFixedFutureConsiderationSharesPricePerShare" xlink:label="loc_oesx_BusinessCombinationFixedFutureConsiderationSharesPricePerShare_144762175146F3549CAB5FA93FB423DC" xlink:type="locator" />
    <link:definitionArc order="7" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_BusinessAcquisitionLineItems_BA2921016293E64CB3875FA93FB3D060" xlink:to="loc_oesx_BusinessCombinationFixedFutureConsiderationSharesPricePerShare_144762175146F3549CAB5FA93FB423DC" xlink:type="arc" />
    <link:loc xlink:href="oesx-20170331.xsd#oesx_BusinessCombinationFixedFutureConsiderationCash" xlink:label="loc_oesx_BusinessCombinationFixedFutureConsiderationCash_7C428782A2DB2731F6255FA93FB4552A" xlink:type="locator" />
    <link:definitionArc order="8" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_BusinessAcquisitionLineItems_BA2921016293E64CB3875FA93FB3D060" xlink:to="loc_oesx_BusinessCombinationFixedFutureConsiderationCash_7C428782A2DB2731F6255FA93FB4552A" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_PaymentsToAcquireBusinessesGross" xlink:label="loc_us-gaap_PaymentsToAcquireBusinessesGross_9C54CA8990518D2EE0305FA93FB465C3" xlink:type="locator" />
    <link:definitionArc order="9" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_BusinessAcquisitionLineItems_BA2921016293E64CB3875FA93FB3D060" xlink:to="loc_us-gaap_PaymentsToAcquireBusinessesGross_9C54CA8990518D2EE0305FA93FB465C3" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_BusinessCombinationContingentConsiderationArrangementsChangeInAmountOfContingentConsiderationLiability1" xlink:label="loc_us-gaap_BusinessCombinationContingentConsiderationArrangementsChangeInAmountOfContingentConsiderationLiability1_796A51F64345AD3614375FA93FB43A5C" xlink:type="locator" />
    <link:definitionArc order="10" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_BusinessAcquisitionLineItems_BA2921016293E64CB3875FA93FB3D060" xlink:to="loc_us-gaap_BusinessCombinationContingentConsiderationArrangementsChangeInAmountOfContingentConsiderationLiability1_796A51F64345AD3614375FA93FB43A5C" xlink:type="arc" />
  </link:definitionLink>
  <link:definitionLink xlink:role="http://www.oesx.com/role/CommitmentsAndContingencies" xlink:type="extended" />
  <link:definitionLink xlink:role="http://www.oesx.com/role/CommitmentsAndContingenciesNarrativeDetails" xlink:type="extended">
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_LongTermPurchaseCommitmentLineItems" xlink:label="loc_us-gaap_LongTermPurchaseCommitmentLineItems_A05A9FDD41C51C2D779964872C7EBFD4" xlink:type="locator" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_LongTermPurchaseCommitmentTable" xlink:label="loc_us-gaap_LongTermPurchaseCommitmentTable_B3DEB4A51E0B25D7211264872C7D1C40" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/all" xlink:from="loc_us-gaap_LongTermPurchaseCommitmentLineItems_A05A9FDD41C51C2D779964872C7EBFD4" xlink:to="loc_us-gaap_LongTermPurchaseCommitmentTable_B3DEB4A51E0B25D7211264872C7D1C40" xlink:type="arc" xbrldt:closed="true" xbrldt:contextElement="segment" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_SaleLeasebackTransactionDescriptionAxis" xlink:label="loc_us-gaap_SaleLeasebackTransactionDescriptionAxis_53BD8A96D141C3F3AB9064872C7D4F88" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_LongTermPurchaseCommitmentTable_B3DEB4A51E0B25D7211264872C7D1C40" xlink:to="loc_us-gaap_SaleLeasebackTransactionDescriptionAxis_53BD8A96D141C3F3AB9064872C7D4F88" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_SaleLeasebackTransactionNameDomain" xlink:label="loc_us-gaap_SaleLeasebackTransactionNameDomain_EC85674B54CC5E38DEB864872C7DA992_default" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_SaleLeasebackTransactionDescriptionAxis_53BD8A96D141C3F3AB9064872C7D4F88" xlink:to="loc_us-gaap_SaleLeasebackTransactionNameDomain_EC85674B54CC5E38DEB864872C7DA992_default" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_SaleLeasebackTransactionNameDomain" xlink:label="loc_us-gaap_SaleLeasebackTransactionNameDomain_EC85674B54CC5E38DEB864872C7DA992" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_SaleLeasebackTransactionDescriptionAxis_53BD8A96D141C3F3AB9064872C7D4F88" xlink:to="loc_us-gaap_SaleLeasebackTransactionNameDomain_EC85674B54CC5E38DEB864872C7DA992" xlink:type="arc" />
    <link:loc xlink:href="oesx-20170331.xsd#oesx_AgreementwithTramontinaU.S.CookwareInc.Member" xlink:label="loc_oesx_AgreementwithTramontinaU.S.CookwareInc.Member_490B6A0DD3B16252274E64872C7DEDCA" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_SaleLeasebackTransactionNameDomain_EC85674B54CC5E38DEB864872C7DA992" xlink:to="loc_oesx_AgreementwithTramontinaU.S.CookwareInc.Member_490B6A0DD3B16252274E64872C7DEDCA" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_IncomeStatementLocationAxis" xlink:label="loc_us-gaap_IncomeStatementLocationAxis_7E231045DAE4ED93F73464872C7D0FA6" xlink:type="locator" />
    <link:definitionArc order="2" xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_LongTermPurchaseCommitmentTable_B3DEB4A51E0B25D7211264872C7D1C40" xlink:to="loc_us-gaap_IncomeStatementLocationAxis_7E231045DAE4ED93F73464872C7D0FA6" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_IncomeStatementLocationDomain" xlink:label="loc_us-gaap_IncomeStatementLocationDomain_240F079B3FF13AA4CA5F64872C7D17D5_default" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_IncomeStatementLocationAxis_7E231045DAE4ED93F73464872C7D0FA6" xlink:to="loc_us-gaap_IncomeStatementLocationDomain_240F079B3FF13AA4CA5F64872C7D17D5_default" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_IncomeStatementLocationDomain" xlink:label="loc_us-gaap_IncomeStatementLocationDomain_240F079B3FF13AA4CA5F64872C7D17D5" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_IncomeStatementLocationAxis_7E231045DAE4ED93F73464872C7D0FA6" xlink:to="loc_us-gaap_IncomeStatementLocationDomain_240F079B3FF13AA4CA5F64872C7D17D5" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_GeneralAndAdministrativeExpenseMember" xlink:label="loc_us-gaap_GeneralAndAdministrativeExpenseMember_7F4F5F441DF94B6AA19264872C7D512D" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_IncomeStatementLocationDomain_240F079B3FF13AA4CA5F64872C7D17D5" xlink:to="loc_us-gaap_GeneralAndAdministrativeExpenseMember_7F4F5F441DF94B6AA19264872C7D512D" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_LongTermPurchaseCommitmentByCategoryOfItemPurchasedAxis" xlink:label="loc_us-gaap_LongTermPurchaseCommitmentByCategoryOfItemPurchasedAxis_A44A88A218679F92D95564872C7DA5E3" xlink:type="locator" />
    <link:definitionArc order="3" xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_LongTermPurchaseCommitmentTable_B3DEB4A51E0B25D7211264872C7D1C40" xlink:to="loc_us-gaap_LongTermPurchaseCommitmentByCategoryOfItemPurchasedAxis_A44A88A218679F92D95564872C7DA5E3" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_LongTermPurchaseCommitmentCategoryOfItemPurchasedDomain" xlink:label="loc_us-gaap_LongTermPurchaseCommitmentCategoryOfItemPurchasedDomain_0104BC921D8091F25B4564872C7D7BE3_default" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_LongTermPurchaseCommitmentByCategoryOfItemPurchasedAxis_A44A88A218679F92D95564872C7DA5E3" xlink:to="loc_us-gaap_LongTermPurchaseCommitmentCategoryOfItemPurchasedDomain_0104BC921D8091F25B4564872C7D7BE3_default" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_LongTermPurchaseCommitmentCategoryOfItemPurchasedDomain" xlink:label="loc_us-gaap_LongTermPurchaseCommitmentCategoryOfItemPurchasedDomain_0104BC921D8091F25B4564872C7D7BE3" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_LongTermPurchaseCommitmentByCategoryOfItemPurchasedAxis_A44A88A218679F92D95564872C7DA5E3" xlink:to="loc_us-gaap_LongTermPurchaseCommitmentCategoryOfItemPurchasedDomain_0104BC921D8091F25B4564872C7D7BE3" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_InventoriesMember" xlink:label="loc_us-gaap_InventoriesMember_5FDE09F009DDBE24734664872C7D0526" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_LongTermPurchaseCommitmentCategoryOfItemPurchasedDomain_0104BC921D8091F25B4564872C7D7BE3" xlink:to="loc_us-gaap_InventoriesMember_5FDE09F009DDBE24734664872C7D0526" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_IncomeTaxAuthorityAxis" xlink:label="loc_us-gaap_IncomeTaxAuthorityAxis_7CB618792F372CE0DEB264872C7D875B" xlink:type="locator" />
    <link:definitionArc order="4" xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_LongTermPurchaseCommitmentTable_B3DEB4A51E0B25D7211264872C7D1C40" xlink:to="loc_us-gaap_IncomeTaxAuthorityAxis_7CB618792F372CE0DEB264872C7D875B" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_IncomeTaxAuthorityDomain" xlink:label="loc_us-gaap_IncomeTaxAuthorityDomain_589B9D36BC81CCA66ACE64872C7DABF0_default" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_IncomeTaxAuthorityAxis_7CB618792F372CE0DEB264872C7D875B" xlink:to="loc_us-gaap_IncomeTaxAuthorityDomain_589B9D36BC81CCA66ACE64872C7DABF0_default" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_IncomeTaxAuthorityDomain" xlink:label="loc_us-gaap_IncomeTaxAuthorityDomain_589B9D36BC81CCA66ACE64872C7DABF0" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_IncomeTaxAuthorityAxis_7CB618792F372CE0DEB264872C7D875B" xlink:to="loc_us-gaap_IncomeTaxAuthorityDomain_589B9D36BC81CCA66ACE64872C7DABF0" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_StateAndLocalJurisdictionMember" xlink:label="loc_us-gaap_StateAndLocalJurisdictionMember_39AD097BAB444C97BDEE64872C7E09BE" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_IncomeTaxAuthorityDomain_589B9D36BC81CCA66ACE64872C7DABF0" xlink:to="loc_us-gaap_StateAndLocalJurisdictionMember_39AD097BAB444C97BDEE64872C7E09BE" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_IncomeTaxAuthorityNameAxis" xlink:label="loc_us-gaap_IncomeTaxAuthorityNameAxis_9404977649DD0EE04FE264872C7EF1AF" xlink:type="locator" />
    <link:definitionArc order="5" xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_LongTermPurchaseCommitmentTable_B3DEB4A51E0B25D7211264872C7D1C40" xlink:to="loc_us-gaap_IncomeTaxAuthorityNameAxis_9404977649DD0EE04FE264872C7EF1AF" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_IncomeTaxAuthorityNameDomain" xlink:label="loc_us-gaap_IncomeTaxAuthorityNameDomain_5AD4F4ADF09B51ACD7B064872C7EA81C_default" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_IncomeTaxAuthorityNameAxis_9404977649DD0EE04FE264872C7EF1AF" xlink:to="loc_us-gaap_IncomeTaxAuthorityNameDomain_5AD4F4ADF09B51ACD7B064872C7EA81C_default" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_IncomeTaxAuthorityNameDomain" xlink:label="loc_us-gaap_IncomeTaxAuthorityNameDomain_5AD4F4ADF09B51ACD7B064872C7EA81C" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_IncomeTaxAuthorityNameAxis_9404977649DD0EE04FE264872C7EF1AF" xlink:to="loc_us-gaap_IncomeTaxAuthorityNameDomain_5AD4F4ADF09B51ACD7B064872C7EA81C" xlink:type="arc" />
    <link:loc xlink:href="oesx-20170331.xsd#oesx_WisconsinDepartmentOfRevenueMember" xlink:label="loc_oesx_WisconsinDepartmentOfRevenueMember_002D82DB7FD0656C6F3D64872C7E3559" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_IncomeTaxAuthorityNameDomain_5AD4F4ADF09B51ACD7B064872C7EA81C" xlink:to="loc_oesx_WisconsinDepartmentOfRevenueMember_002D82DB7FD0656C6F3D64872C7E3559" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_OperatingLeasesRentExpenseNet" xlink:label="loc_us-gaap_OperatingLeasesRentExpenseNet_644BC9A4B50EC6B371E864872C7E5E5E" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_LongTermPurchaseCommitmentLineItems_A05A9FDD41C51C2D779964872C7EBFD4" xlink:to="loc_us-gaap_OperatingLeasesRentExpenseNet_644BC9A4B50EC6B371E864872C7E5E5E" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_LessorLeasingArrangementsOperatingLeasesTermOfContract" xlink:label="loc_us-gaap_LessorLeasingArrangementsOperatingLeasesTermOfContract_4A0AF3E79960B71FADD164872C7E34DE" xlink:type="locator" />
    <link:definitionArc order="2" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_LongTermPurchaseCommitmentLineItems_A05A9FDD41C51C2D779964872C7EBFD4" xlink:to="loc_us-gaap_LessorLeasingArrangementsOperatingLeasesTermOfContract_4A0AF3E79960B71FADD164872C7E34DE" xlink:type="arc" />
    <link:loc xlink:href="oesx-20170331.xsd#oesx_LessorLeasingArrangementsOperatingLeasesNumberofExtensionOptions" xlink:label="loc_oesx_LessorLeasingArrangementsOperatingLeasesNumberofExtensionOptions_09C06FB1E51DFE2D622164872C7EBFF6" xlink:type="locator" />
    <link:definitionArc order="3" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_LongTermPurchaseCommitmentLineItems_A05A9FDD41C51C2D779964872C7EBFD4" xlink:to="loc_oesx_LessorLeasingArrangementsOperatingLeasesNumberofExtensionOptions_09C06FB1E51DFE2D622164872C7EBFF6" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_LessorLeasingArrangementsOperatingLeasesRenewalTerm" xlink:label="loc_us-gaap_LessorLeasingArrangementsOperatingLeasesRenewalTerm_D1FF73D0801DCC9BCA9264872C7E6858" xlink:type="locator" />
    <link:definitionArc order="4" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_LongTermPurchaseCommitmentLineItems_A05A9FDD41C51C2D779964872C7EBFD4" xlink:to="loc_us-gaap_LessorLeasingArrangementsOperatingLeasesRenewalTerm_D1FF73D0801DCC9BCA9264872C7E6858" xlink:type="arc" />
    <link:loc xlink:href="oesx-20170331.xsd#oesx_OperatingLeasesMonthlyRentalPaymentsReceivable" xlink:label="loc_oesx_OperatingLeasesMonthlyRentalPaymentsReceivable_FB20C86107428432B6DC64872C7E9B71" xlink:type="locator" />
    <link:definitionArc order="5" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_LongTermPurchaseCommitmentLineItems_A05A9FDD41C51C2D779964872C7EBFD4" xlink:to="loc_oesx_OperatingLeasesMonthlyRentalPaymentsReceivable_FB20C86107428432B6DC64872C7E9B71" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_SaleLeasebackTransactionNetProceedsInvestingActivities" xlink:label="loc_us-gaap_SaleLeasebackTransactionNetProceedsInvestingActivities_482FE5F6AE7CB7785A4A64872C7E0730" xlink:type="locator" />
    <link:definitionArc order="6" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_LongTermPurchaseCommitmentLineItems_A05A9FDD41C51C2D779964872C7EBFD4" xlink:to="loc_us-gaap_SaleLeasebackTransactionNetProceedsInvestingActivities_482FE5F6AE7CB7785A4A64872C7E0730" xlink:type="arc" />
    <link:loc xlink:href="oesx-20170331.xsd#oesx_SaleLeasebackTransactionAreaofLeasedProperty" xlink:label="loc_oesx_SaleLeasebackTransactionAreaofLeasedProperty_DAA9B0BDC8DA36E0D5DF64872C7EF153" xlink:type="locator" />
    <link:definitionArc order="7" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_LongTermPurchaseCommitmentLineItems_A05A9FDD41C51C2D779964872C7EBFD4" xlink:to="loc_oesx_SaleLeasebackTransactionAreaofLeasedProperty_DAA9B0BDC8DA36E0D5DF64872C7EF153" xlink:type="arc" />
    <link:loc xlink:href="oesx-20170331.xsd#oesx_SaleLeasebackTransactionLeaseTerm" xlink:label="loc_oesx_SaleLeasebackTransactionLeaseTerm_B331694901AF1E5C33A064872C7EE6C6" xlink:type="locator" />
    <link:definitionArc order="8" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_LongTermPurchaseCommitmentLineItems_A05A9FDD41C51C2D779964872C7EBFD4" xlink:to="loc_oesx_SaleLeasebackTransactionLeaseTerm_B331694901AF1E5C33A064872C7EE6C6" xlink:type="arc" />
    <link:loc xlink:href="oesx-20170331.xsd#oesx_SaleLeasebackTransactionRentExpensePerSquareFoot" xlink:label="loc_oesx_SaleLeasebackTransactionRentExpensePerSquareFoot_3AF750D5D7BD07B002E864872C7E72DB" xlink:type="locator" />
    <link:definitionArc order="9" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_LongTermPurchaseCommitmentLineItems_A05A9FDD41C51C2D779964872C7EBFD4" xlink:to="loc_oesx_SaleLeasebackTransactionRentExpensePerSquareFoot_3AF750D5D7BD07B002E864872C7E72DB" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_SaleLeasebackTransactionMonthlyRentalPayments" xlink:label="loc_us-gaap_SaleLeasebackTransactionMonthlyRentalPayments_767D0DE7C9DC38A78FA064872C7E7016" xlink:type="locator" />
    <link:definitionArc order="10" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_LongTermPurchaseCommitmentLineItems_A05A9FDD41C51C2D779964872C7EBFD4" xlink:to="loc_us-gaap_SaleLeasebackTransactionMonthlyRentalPayments_767D0DE7C9DC38A78FA064872C7E7016" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_PurchaseObligationDueInNextTwelveMonths" xlink:label="loc_us-gaap_PurchaseObligationDueInNextTwelveMonths_35CBD049998945E1799664872C7E24BD" xlink:type="locator" />
    <link:definitionArc order="11" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_LongTermPurchaseCommitmentLineItems_A05A9FDD41C51C2D779964872C7EBFD4" xlink:to="loc_us-gaap_PurchaseObligationDueInNextTwelveMonths_35CBD049998945E1799664872C7E24BD" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_DefinedContributionPlanEmployerDiscretionaryContributionAmount" xlink:label="loc_us-gaap_DefinedContributionPlanEmployerDiscretionaryContributionAmount_1611976B52AB45D0F28764872C7E4900" xlink:type="locator" />
    <link:definitionArc order="12" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_LongTermPurchaseCommitmentLineItems_A05A9FDD41C51C2D779964872C7EBFD4" xlink:to="loc_us-gaap_DefinedContributionPlanEmployerDiscretionaryContributionAmount_1611976B52AB45D0F28764872C7E4900" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_LossContingencyClaimsDismissedNumber" xlink:label="loc_us-gaap_LossContingencyClaimsDismissedNumber_7AC76E4B426E6EA78F2A64872C7F3163" xlink:type="locator" />
    <link:definitionArc order="13" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_LongTermPurchaseCommitmentLineItems_A05A9FDD41C51C2D779964872C7EBFD4" xlink:to="loc_us-gaap_LossContingencyClaimsDismissedNumber_7AC76E4B426E6EA78F2A64872C7F3163" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_IncomeTaxExaminationLiabilityRefundAdjustmentFromSettlementWithTaxingAuthority" xlink:label="loc_us-gaap_IncomeTaxExaminationLiabilityRefundAdjustmentFromSettlementWithTaxingAuthority_0DBA56C260AD5133E44264872C7FD2FE" xlink:type="locator" />
    <link:definitionArc order="14" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_LongTermPurchaseCommitmentLineItems_A05A9FDD41C51C2D779964872C7EBFD4" xlink:to="loc_us-gaap_IncomeTaxExaminationLiabilityRefundAdjustmentFromSettlementWithTaxingAuthority_0DBA56C260AD5133E44264872C7FD2FE" xlink:type="arc" />
  </link:definitionLink>
  <link:definitionLink xlink:role="http://www.oesx.com/role/CommitmentsAndContingenciesScheduleOfAnnualCommitmentsUnderNonCancelableOperatingAgreementsDetails" xlink:type="extended" />
  <link:definitionLink xlink:role="http://www.oesx.com/role/CommitmentsAndContingenciesTables" xlink:type="extended" />
  <link:definitionLink xlink:role="http://www.oesx.com/role/ConsolidatedBalanceSheets" xlink:type="extended" />
  <link:definitionLink xlink:role="http://www.oesx.com/role/ConsolidatedBalanceSheetsParenthetical" xlink:type="extended" />
  <link:definitionLink xlink:role="http://www.oesx.com/role/ConsolidatedStatementsOfCashFlows" xlink:type="extended" />
  <link:definitionLink xlink:role="http://www.oesx.com/role/ConsolidatedStatementsOfOperationsAndComprehensiveIncome" xlink:type="extended" />
  <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/FinancingReceivables" xlink:type="extended" />
  <link:definitionLink xlink:role="http://www.oesx.com/role/FinancingReceivablesAgingAnalysisDetails" xlink:type="extended">
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_AccountsNotesAndLoansReceivableLineItems" xlink:label="loc_us-gaap_AccountsNotesAndLoansReceivableLineItems_DFFC697DCD85E5A2020960C3D179891B" xlink:type="locator" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_ScheduleOfFinancingReceivableRecordedInvestmentCreditQualityIndicatorTable" xlink:label="loc_us-gaap_ScheduleOfFinancingReceivableRecordedInvestmentCreditQualityIndicatorTable_0D59A8587C18A3EDBDAC60C3D1782E8F" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/all" xlink:from="loc_us-gaap_AccountsNotesAndLoansReceivableLineItems_DFFC697DCD85E5A2020960C3D179891B" xlink:to="loc_us-gaap_ScheduleOfFinancingReceivableRecordedInvestmentCreditQualityIndicatorTable_0D59A8587C18A3EDBDAC60C3D1782E8F" xlink:type="arc" xbrldt:closed="true" xbrldt:contextElement="segment" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_FinancingReceivablePortfolioSegmentAxis" xlink:label="loc_us-gaap_FinancingReceivablePortfolioSegmentAxis_91D01054450ECB4145C560D608176BEB" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_ScheduleOfFinancingReceivableRecordedInvestmentCreditQualityIndicatorTable_0D59A8587C18A3EDBDAC60C3D1782E8F" xlink:to="loc_us-gaap_FinancingReceivablePortfolioSegmentAxis_91D01054450ECB4145C560D608176BEB" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_FinancingReceivablePortfolioSegmentDomain" xlink:label="loc_us-gaap_FinancingReceivablePortfolioSegmentDomain_076FE6C8B3C18EA0E8DA60D608207A22_default" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_FinancingReceivablePortfolioSegmentAxis_91D01054450ECB4145C560D608176BEB" xlink:to="loc_us-gaap_FinancingReceivablePortfolioSegmentDomain_076FE6C8B3C18EA0E8DA60D608207A22_default" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_FinancingReceivablePortfolioSegmentDomain" xlink:label="loc_us-gaap_FinancingReceivablePortfolioSegmentDomain_076FE6C8B3C18EA0E8DA60D608207A22" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_FinancingReceivablePortfolioSegmentAxis_91D01054450ECB4145C560D608176BEB" xlink:to="loc_us-gaap_FinancingReceivablePortfolioSegmentDomain_076FE6C8B3C18EA0E8DA60D608207A22" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_FinanceLeasesPortfolioSegmentMember" xlink:label="loc_us-gaap_FinanceLeasesPortfolioSegmentMember_E8F118A5C5A1365538BA60D63C1715BB" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_FinancingReceivablePortfolioSegmentDomain_076FE6C8B3C18EA0E8DA60D608207A22" xlink:to="loc_us-gaap_FinanceLeasesPortfolioSegmentMember_E8F118A5C5A1365538BA60D63C1715BB" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_FinancingReceivablesPeriodPastDueAxis" xlink:label="loc_us-gaap_FinancingReceivablesPeriodPastDueAxis_931A46296FBE3F3840AD60D3059B3960" xlink:type="locator" />
    <link:definitionArc order="2" xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_ScheduleOfFinancingReceivableRecordedInvestmentCreditQualityIndicatorTable_0D59A8587C18A3EDBDAC60C3D1782E8F" xlink:to="loc_us-gaap_FinancingReceivablesPeriodPastDueAxis_931A46296FBE3F3840AD60D3059B3960" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_FinancingReceivablesPeriodPastDueDomain" xlink:label="loc_us-gaap_FinancingReceivablesPeriodPastDueDomain_0C97DEDF5DF2FB7099BB60D33D1F04E4_default" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_FinancingReceivablesPeriodPastDueAxis_931A46296FBE3F3840AD60D3059B3960" xlink:to="loc_us-gaap_FinancingReceivablesPeriodPastDueDomain_0C97DEDF5DF2FB7099BB60D33D1F04E4_default" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_FinancingReceivablesPeriodPastDueDomain" xlink:label="loc_us-gaap_FinancingReceivablesPeriodPastDueDomain_0C97DEDF5DF2FB7099BB60D33D1F04E4" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_FinancingReceivablesPeriodPastDueAxis_931A46296FBE3F3840AD60D3059B3960" xlink:to="loc_us-gaap_FinancingReceivablesPeriodPastDueDomain_0C97DEDF5DF2FB7099BB60D33D1F04E4" xlink:type="arc" />
    <link:loc xlink:href="oesx-20170331.xsd#oesx_NotPastDueMember" xlink:label="loc_oesx_NotPastDueMember_D35E403D66911B0AD32360D33D23B0A8" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_FinancingReceivablesPeriodPastDueDomain_0C97DEDF5DF2FB7099BB60D33D1F04E4" xlink:to="loc_oesx_NotPastDueMember_D35E403D66911B0AD32360D33D23B0A8" xlink:type="arc" />
    <link:loc xlink:href="oesx-20170331.xsd#oesx_OneToNinetyDaysMember" xlink:label="loc_oesx_OneToNinetyDaysMember_21574DC59EFEBBA1310560D33D23DED1" xlink:type="locator" />
    <link:definitionArc order="2" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_FinancingReceivablesPeriodPastDueDomain_0C97DEDF5DF2FB7099BB60D33D1F04E4" xlink:to="loc_oesx_OneToNinetyDaysMember_21574DC59EFEBBA1310560D33D23DED1" xlink:type="arc" />
    <link:loc xlink:href="oesx-20170331.xsd#oesx_GreaterThanNinetyDaysMember" xlink:label="loc_oesx_GreaterThanNinetyDaysMember_52C18C7E4CAC49638E8960D33D23097B" xlink:type="locator" />
    <link:definitionArc order="3" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_FinancingReceivablesPeriodPastDueDomain_0C97DEDF5DF2FB7099BB60D33D1F04E4" xlink:to="loc_oesx_GreaterThanNinetyDaysMember_52C18C7E4CAC49638E8960D33D23097B" xlink:type="arc" />
    <link:loc xlink:href="oesx-20170331.xsd#oesx_PastDueLeaseNetMember" xlink:label="loc_oesx_PastDueLeaseNetMember_E5862CA63756FC20144A60D33D231537" xlink:type="locator" />
    <link:definitionArc order="4" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_FinancingReceivablesPeriodPastDueDomain_0C97DEDF5DF2FB7099BB60D33D1F04E4" xlink:to="loc_oesx_PastDueLeaseNetMember_E5862CA63756FC20144A60D33D231537" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_AccountsNotesAndLoansReceivableClassifiedAbstract" xlink:label="loc_us-gaap_AccountsNotesAndLoansReceivableClassifiedAbstract_AD93B4F9EC710F0FA2FE60C3D1792D62" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_AccountsNotesAndLoansReceivableLineItems_DFFC697DCD85E5A2020960C3D179891B" xlink:to="loc_us-gaap_AccountsNotesAndLoansReceivableClassifiedAbstract_AD93B4F9EC710F0FA2FE60C3D1792D62" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_AccountsNotesAndLoansReceivableNetCurrent" xlink:label="loc_us-gaap_AccountsNotesAndLoansReceivableNetCurrent_CAAF270E8C520F6EEE0F60C3D179C666" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_AccountsNotesAndLoansReceivableClassifiedAbstract_AD93B4F9EC710F0FA2FE60C3D1792D62" xlink:to="loc_us-gaap_AccountsNotesAndLoansReceivableNetCurrent_CAAF270E8C520F6EEE0F60C3D179C666" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_LongTermAccountsNotesAndLoansReceivableNetNoncurrent" xlink:label="loc_us-gaap_LongTermAccountsNotesAndLoansReceivableNetNoncurrent_38B190C672B5DE4046BA60C3D17A4387" xlink:type="locator" />
    <link:definitionArc order="2" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_AccountsNotesAndLoansReceivableClassifiedAbstract_AD93B4F9EC710F0FA2FE60C3D1792D62" xlink:to="loc_us-gaap_LongTermAccountsNotesAndLoansReceivableNetNoncurrent_38B190C672B5DE4046BA60C3D17A4387" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_AccountsReceivableGrossCurrent" xlink:label="loc_us-gaap_AccountsReceivableGrossCurrent_A835A90523E302992C0260C3D17A8CA1" xlink:type="locator" />
    <link:definitionArc order="3" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_AccountsNotesAndLoansReceivableClassifiedAbstract_AD93B4F9EC710F0FA2FE60C3D1792D62" xlink:to="loc_us-gaap_AccountsReceivableGrossCurrent_A835A90523E302992C0260C3D17A8CA1" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_AllowanceForDoubtfulAccountsReceivableCurrent" xlink:label="loc_us-gaap_AllowanceForDoubtfulAccountsReceivableCurrent_BA8756C1666D1470005260C3D17A74B2" xlink:type="locator" />
    <link:definitionArc order="4" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_AccountsNotesAndLoansReceivableClassifiedAbstract_AD93B4F9EC710F0FA2FE60C3D1792D62" xlink:to="loc_us-gaap_AllowanceForDoubtfulAccountsReceivableCurrent_BA8756C1666D1470005260C3D17A74B2" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_AccountsReceivableNetCurrent" xlink:label="loc_us-gaap_AccountsReceivableNetCurrent_04B7BA5963400818434060C3D17A3570" xlink:type="locator" />
    <link:definitionArc order="5" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_AccountsNotesAndLoansReceivableClassifiedAbstract_AD93B4F9EC710F0FA2FE60C3D1792D62" xlink:to="loc_us-gaap_AccountsReceivableNetCurrent_04B7BA5963400818434060C3D17A3570" xlink:type="arc" />
  </link:definitionLink>
  <link:definitionLink xlink:role="http://www.oesx.com/role/FinancingReceivablesAllowanceForDoubtfulAccountsDetails" xlink:type="extended">
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_FinancingReceivableAllowanceForCreditLossesLineItems" xlink:label="loc_us-gaap_FinancingReceivableAllowanceForCreditLossesLineItems_E509064FDC0B9EC5E32660ED122A9E4B" xlink:type="locator" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_ScheduleOfFinancingReceivableAllowanceForCreditLossesTable" xlink:label="loc_us-gaap_ScheduleOfFinancingReceivableAllowanceForCreditLossesTable_55DC28BCD432771FA6E760ED122A1F70" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/all" xlink:from="loc_us-gaap_FinancingReceivableAllowanceForCreditLossesLineItems_E509064FDC0B9EC5E32660ED122A9E4B" xlink:to="loc_us-gaap_ScheduleOfFinancingReceivableAllowanceForCreditLossesTable_55DC28BCD432771FA6E760ED122A1F70" xlink:type="arc" xbrldt:closed="true" xbrldt:contextElement="segment" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_FinancingReceivablePortfolioSegmentAxis" xlink:label="loc_us-gaap_FinancingReceivablePortfolioSegmentAxis_89F8562432B8F6F3008E60ED122A3051" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_ScheduleOfFinancingReceivableAllowanceForCreditLossesTable_55DC28BCD432771FA6E760ED122A1F70" xlink:to="loc_us-gaap_FinancingReceivablePortfolioSegmentAxis_89F8562432B8F6F3008E60ED122A3051" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_FinancingReceivablePortfolioSegmentDomain" xlink:label="loc_us-gaap_FinancingReceivablePortfolioSegmentDomain_B9AC88402BF49745801860ED122A4275_default" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_FinancingReceivablePortfolioSegmentAxis_89F8562432B8F6F3008E60ED122A3051" xlink:to="loc_us-gaap_FinancingReceivablePortfolioSegmentDomain_B9AC88402BF49745801860ED122A4275_default" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_FinancingReceivablePortfolioSegmentDomain" xlink:label="loc_us-gaap_FinancingReceivablePortfolioSegmentDomain_B9AC88402BF49745801860ED122A4275" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_FinancingReceivablePortfolioSegmentAxis_89F8562432B8F6F3008E60ED122A3051" xlink:to="loc_us-gaap_FinancingReceivablePortfolioSegmentDomain_B9AC88402BF49745801860ED122A4275" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_FinanceLeasesPortfolioSegmentMember" xlink:label="loc_us-gaap_FinanceLeasesPortfolioSegmentMember_858C1502EAA56265004960ED122A46E0" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_FinancingReceivablePortfolioSegmentDomain_B9AC88402BF49745801860ED122A4275" xlink:to="loc_us-gaap_FinanceLeasesPortfolioSegmentMember_858C1502EAA56265004960ED122A46E0" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_AllowanceForDoubtfulAccountsReceivableRollforward" xlink:label="loc_us-gaap_AllowanceForDoubtfulAccountsReceivableRollforward_AFF415D4CA66037A99AB60ED122AE299" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_FinancingReceivableAllowanceForCreditLossesLineItems_E509064FDC0B9EC5E32660ED122A9E4B" xlink:to="loc_us-gaap_AllowanceForDoubtfulAccountsReceivableRollforward_AFF415D4CA66037A99AB60ED122AE299" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_AllowanceForDoubtfulAccountsReceivable" xlink:label="loc_us-gaap_AllowanceForDoubtfulAccountsReceivable_E608F4D2F99B317CA07460ED122A88C6" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_AllowanceForDoubtfulAccountsReceivableRollforward_AFF415D4CA66037A99AB60ED122AE299" xlink:to="loc_us-gaap_AllowanceForDoubtfulAccountsReceivable_E608F4D2F99B317CA07460ED122A88C6" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_ProvisionForDoubtfulAccounts" xlink:label="loc_us-gaap_ProvisionForDoubtfulAccounts_CA0D278C6D5D6B1FE89F60ED122A9D27" xlink:type="locator" />
    <link:definitionArc order="2" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_AllowanceForDoubtfulAccountsReceivableRollforward_AFF415D4CA66037A99AB60ED122AE299" xlink:to="loc_us-gaap_ProvisionForDoubtfulAccounts_CA0D278C6D5D6B1FE89F60ED122A9D27" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_AllowanceForDoubtfulAccountsReceivableWriteOffs" xlink:label="loc_us-gaap_AllowanceForDoubtfulAccountsReceivableWriteOffs_3554AFD3C9A4757B6DD760ED122AF35A" xlink:type="locator" />
    <link:definitionArc order="3" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_AllowanceForDoubtfulAccountsReceivableRollforward_AFF415D4CA66037A99AB60ED122AE299" xlink:to="loc_us-gaap_AllowanceForDoubtfulAccountsReceivableWriteOffs_3554AFD3C9A4757B6DD760ED122AF35A" xlink:type="arc" />
  </link:definitionLink>
  <link:definitionLink xlink:role="http://www.oesx.com/role/FinancingReceivablesTables" xlink:type="extended" />
  <link:definitionLink xlink:role="http://www.oesx.com/role/GoodwillAndOtherIntangibleAssets" xlink:type="extended" />
  <link:definitionLink xlink:role="http://www.oesx.com/role/GoodwillAndOtherIntangibleAssetsAmortizationExpenseDetails" xlink:type="extended">
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_FiniteLivedIntangibleAssetsLineItems" xlink:label="loc_us-gaap_FiniteLivedIntangibleAssetsLineItems_14D3538E3588602127C55ACDE2AFC9E8" xlink:type="locator" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_ScheduleOfFiniteLivedIntangibleAssetsTable" xlink:label="loc_us-gaap_ScheduleOfFiniteLivedIntangibleAssetsTable_0C76E1BF035C1127A5B25ACDE2ADE97D" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/all" xlink:from="loc_us-gaap_FiniteLivedIntangibleAssetsLineItems_14D3538E3588602127C55ACDE2AFC9E8" xlink:to="loc_us-gaap_ScheduleOfFiniteLivedIntangibleAssetsTable_0C76E1BF035C1127A5B25ACDE2ADE97D" xlink:type="arc" xbrldt:closed="true" xbrldt:contextElement="segment" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_IncomeStatementLocationAxis" xlink:label="loc_us-gaap_IncomeStatementLocationAxis_E11365BB594FA31086F05ACDE2AE34F7" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_ScheduleOfFiniteLivedIntangibleAssetsTable_0C76E1BF035C1127A5B25ACDE2ADE97D" xlink:to="loc_us-gaap_IncomeStatementLocationAxis_E11365BB594FA31086F05ACDE2AE34F7" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_IncomeStatementLocationDomain" xlink:label="loc_us-gaap_IncomeStatementLocationDomain_7D7079AB2F6FD81936405ACDE2AE8D37_default" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_IncomeStatementLocationAxis_E11365BB594FA31086F05ACDE2AE34F7" xlink:to="loc_us-gaap_IncomeStatementLocationDomain_7D7079AB2F6FD81936405ACDE2AE8D37_default" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_IncomeStatementLocationDomain" xlink:label="loc_us-gaap_IncomeStatementLocationDomain_7D7079AB2F6FD81936405ACDE2AE8D37" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_IncomeStatementLocationAxis_E11365BB594FA31086F05ACDE2AE34F7" xlink:to="loc_us-gaap_IncomeStatementLocationDomain_7D7079AB2F6FD81936405ACDE2AE8D37" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_CostOfSalesMember" xlink:label="loc_us-gaap_CostOfSalesMember_23E6C8BF3303832584365ACDE2AE4DA3" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_IncomeStatementLocationDomain_7D7079AB2F6FD81936405ACDE2AE8D37" xlink:to="loc_us-gaap_CostOfSalesMember_23E6C8BF3303832584365ACDE2AE4DA3" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_OperatingExpenseMember" xlink:label="loc_us-gaap_OperatingExpenseMember_493CA8EC3A59CD9682C35ACDE2AE3312" xlink:type="locator" />
    <link:definitionArc order="2" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_IncomeStatementLocationDomain_7D7079AB2F6FD81936405ACDE2AE8D37" xlink:to="loc_us-gaap_OperatingExpenseMember_493CA8EC3A59CD9682C35ACDE2AE3312" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_FiniteLivedIntangibleAssetsByMajorClassAxis" xlink:label="loc_us-gaap_FiniteLivedIntangibleAssetsByMajorClassAxis_A30486DD976E8B8E06BA5ACDE2AE4C72" xlink:type="locator" />
    <link:definitionArc order="2" xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_ScheduleOfFiniteLivedIntangibleAssetsTable_0C76E1BF035C1127A5B25ACDE2ADE97D" xlink:to="loc_us-gaap_FiniteLivedIntangibleAssetsByMajorClassAxis_A30486DD976E8B8E06BA5ACDE2AE4C72" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_FiniteLivedIntangibleAssetsMajorClassNameDomain" xlink:label="loc_us-gaap_FiniteLivedIntangibleAssetsMajorClassNameDomain_F1BDDCA458C950218FFB5ACDE2AED6A0_default" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_FiniteLivedIntangibleAssetsByMajorClassAxis_A30486DD976E8B8E06BA5ACDE2AE4C72" xlink:to="loc_us-gaap_FiniteLivedIntangibleAssetsMajorClassNameDomain_F1BDDCA458C950218FFB5ACDE2AED6A0_default" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_FiniteLivedIntangibleAssetsMajorClassNameDomain" xlink:label="loc_us-gaap_FiniteLivedIntangibleAssetsMajorClassNameDomain_F1BDDCA458C950218FFB5ACDE2AED6A0" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_FiniteLivedIntangibleAssetsByMajorClassAxis_A30486DD976E8B8E06BA5ACDE2AE4C72" xlink:to="loc_us-gaap_FiniteLivedIntangibleAssetsMajorClassNameDomain_F1BDDCA458C950218FFB5ACDE2AED6A0" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_CustomerRelationshipsMember" xlink:label="loc_us-gaap_CustomerRelationshipsMember_237B13B496A1EAFF0C235ACDE2AE7C29" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_FiniteLivedIntangibleAssetsMajorClassNameDomain_F1BDDCA458C950218FFB5ACDE2AED6A0" xlink:to="loc_us-gaap_CustomerRelationshipsMember_237B13B496A1EAFF0C235ACDE2AE7C29" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_DevelopedTechnologyRightsMember" xlink:label="loc_us-gaap_DevelopedTechnologyRightsMember_F46CBDD3FFE32100CB905ACDE2AF1244" xlink:type="locator" />
    <link:definitionArc order="2" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_FiniteLivedIntangibleAssetsMajorClassNameDomain_F1BDDCA458C950218FFB5ACDE2AED6A0" xlink:to="loc_us-gaap_DevelopedTechnologyRightsMember_F46CBDD3FFE32100CB905ACDE2AF1244" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_NoncompeteAgreementsMember" xlink:label="loc_us-gaap_NoncompeteAgreementsMember_B22FB30FF1A8DBEEF7EC5ACDE2AFC104" xlink:type="locator" />
    <link:definitionArc order="3" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_FiniteLivedIntangibleAssetsMajorClassNameDomain_F1BDDCA458C950218FFB5ACDE2AED6A0" xlink:to="loc_us-gaap_NoncompeteAgreementsMember_B22FB30FF1A8DBEEF7EC5ACDE2AFC104" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_PatentsMember" xlink:label="loc_us-gaap_PatentsMember_04E61A721EF89105379C5ACDE2AE654B" xlink:type="locator" />
    <link:definitionArc order="4" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_FiniteLivedIntangibleAssetsMajorClassNameDomain_F1BDDCA458C950218FFB5ACDE2AED6A0" xlink:to="loc_us-gaap_PatentsMember_04E61A721EF89105379C5ACDE2AE654B" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_AmortizationOfIntangibleAssets" xlink:label="loc_us-gaap_AmortizationOfIntangibleAssets_A5756AE916013E99E5F95ACDE2AF381C" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_FiniteLivedIntangibleAssetsLineItems_14D3538E3588602127C55ACDE2AFC9E8" xlink:to="loc_us-gaap_AmortizationOfIntangibleAssets_A5756AE916013E99E5F95ACDE2AF381C" xlink:type="arc" />
  </link:definitionLink>
  <link:definitionLink xlink:role="http://www.oesx.com/role/GoodwillAndOtherIntangibleAssetsChangeInCarryingValueOfGoodwillDetails" xlink:type="extended" />
  <link:definitionLink xlink:role="http://www.oesx.com/role/GoodwillAndOtherIntangibleAssetsFutureAmortizationByFiscalYearDetails" xlink:type="extended" />
  <link:definitionLink xlink:role="http://www.oesx.com/role/GoodwillAndOtherIntangibleAssetsNarrativeDetails" xlink:type="extended">
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_SegmentReportingInformationLineItems" xlink:label="loc_us-gaap_SegmentReportingInformationLineItems_2461DC8A33BED628340264B047BB45A6" xlink:type="locator" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_ScheduleOfSegmentReportingInformationBySegmentTable" xlink:label="loc_us-gaap_ScheduleOfSegmentReportingInformationBySegmentTable_579C9C115E5697C82BCC64B047BA0DBE" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/all" xlink:from="loc_us-gaap_SegmentReportingInformationLineItems_2461DC8A33BED628340264B047BB45A6" xlink:to="loc_us-gaap_ScheduleOfSegmentReportingInformationBySegmentTable_579C9C115E5697C82BCC64B047BA0DBE" xlink:type="arc" xbrldt:closed="true" xbrldt:contextElement="segment" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_StatementBusinessSegmentsAxis" xlink:label="loc_us-gaap_StatementBusinessSegmentsAxis_0D2831F25E55A3D0912C64B047BAF872" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_ScheduleOfSegmentReportingInformationBySegmentTable_579C9C115E5697C82BCC64B047BA0DBE" xlink:to="loc_us-gaap_StatementBusinessSegmentsAxis_0D2831F25E55A3D0912C64B047BAF872" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_SegmentDomain" xlink:label="loc_us-gaap_SegmentDomain_E8A3B0AB78F77073085764B047BAB1DC_default" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_StatementBusinessSegmentsAxis_0D2831F25E55A3D0912C64B047BAF872" xlink:to="loc_us-gaap_SegmentDomain_E8A3B0AB78F77073085764B047BAB1DC_default" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_SegmentDomain" xlink:label="loc_us-gaap_SegmentDomain_E8A3B0AB78F77073085764B047BAB1DC" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_StatementBusinessSegmentsAxis_0D2831F25E55A3D0912C64B047BAF872" xlink:to="loc_us-gaap_SegmentDomain_E8A3B0AB78F77073085764B047BAB1DC" xlink:type="arc" />
    <link:loc xlink:href="oesx-20170331.xsd#oesx_U.S.MarketsMember" xlink:label="loc_oesx_U.S.MarketsMember_5ECD7A04FFEEA885EE4264B047BA74AC" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_SegmentDomain_E8A3B0AB78F77073085764B047BAB1DC" xlink:to="loc_oesx_U.S.MarketsMember_5ECD7A04FFEEA885EE4264B047BA74AC" xlink:type="arc" />
    <link:loc xlink:href="oesx-20170331.xsd#oesx_EngineeredSystemsMember" xlink:label="loc_oesx_EngineeredSystemsMember_F8F9E241D2C351AD997A64B047BACE14" xlink:type="locator" />
    <link:definitionArc order="2" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_SegmentDomain_E8A3B0AB78F77073085764B047BAB1DC" xlink:to="loc_oesx_EngineeredSystemsMember_F8F9E241D2C351AD997A64B047BACE14" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_ConsolidationItemsAxis" xlink:label="loc_us-gaap_ConsolidationItemsAxis_404DD6F4E086B39710B464B047BA72A3" xlink:type="locator" />
    <link:definitionArc order="2" xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_ScheduleOfSegmentReportingInformationBySegmentTable_579C9C115E5697C82BCC64B047BA0DBE" xlink:to="loc_us-gaap_ConsolidationItemsAxis_404DD6F4E086B39710B464B047BA72A3" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_ConsolidationItemsDomain" xlink:label="loc_us-gaap_ConsolidationItemsDomain_79BC451A2796FA59C9A464B047BA499F_default" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_ConsolidationItemsAxis_404DD6F4E086B39710B464B047BA72A3" xlink:to="loc_us-gaap_ConsolidationItemsDomain_79BC451A2796FA59C9A464B047BA499F_default" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_ConsolidationItemsDomain" xlink:label="loc_us-gaap_ConsolidationItemsDomain_79BC451A2796FA59C9A464B047BA499F" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_ConsolidationItemsAxis_404DD6F4E086B39710B464B047BA72A3" xlink:to="loc_us-gaap_ConsolidationItemsDomain_79BC451A2796FA59C9A464B047BA499F" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_OperatingSegmentsMember" xlink:label="loc_us-gaap_OperatingSegmentsMember_CEFD78ABD2B082E269BE64B047BA4812" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ConsolidationItemsDomain_79BC451A2796FA59C9A464B047BA499F" xlink:to="loc_us-gaap_OperatingSegmentsMember_CEFD78ABD2B082E269BE64B047BA4812" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_IndefiniteLivedIntangibleAssetsByMajorClassAxis" xlink:label="loc_us-gaap_IndefiniteLivedIntangibleAssetsByMajorClassAxis_19B62A628A35F8C2FAAD64B047BA3A85" xlink:type="locator" />
    <link:definitionArc order="3" xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_ScheduleOfSegmentReportingInformationBySegmentTable_579C9C115E5697C82BCC64B047BA0DBE" xlink:to="loc_us-gaap_IndefiniteLivedIntangibleAssetsByMajorClassAxis_19B62A628A35F8C2FAAD64B047BA3A85" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_IndefiniteLivedIntangibleAssetsMajorClassNameDomain" xlink:label="loc_us-gaap_IndefiniteLivedIntangibleAssetsMajorClassNameDomain_A5C992F530C22F20528A64B047BA615B_default" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_IndefiniteLivedIntangibleAssetsByMajorClassAxis_19B62A628A35F8C2FAAD64B047BA3A85" xlink:to="loc_us-gaap_IndefiniteLivedIntangibleAssetsMajorClassNameDomain_A5C992F530C22F20528A64B047BA615B_default" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_IndefiniteLivedIntangibleAssetsMajorClassNameDomain" xlink:label="loc_us-gaap_IndefiniteLivedIntangibleAssetsMajorClassNameDomain_A5C992F530C22F20528A64B047BA615B" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_IndefiniteLivedIntangibleAssetsByMajorClassAxis_19B62A628A35F8C2FAAD64B047BA3A85" xlink:to="loc_us-gaap_IndefiniteLivedIntangibleAssetsMajorClassNameDomain_A5C992F530C22F20528A64B047BA615B" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_TrademarksAndTradeNamesMember" xlink:label="loc_us-gaap_TrademarksAndTradeNamesMember_B93C4C78FEA44A43CF3F64B047BB93AF" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_IndefiniteLivedIntangibleAssetsMajorClassNameDomain_A5C992F530C22F20528A64B047BA615B" xlink:to="loc_us-gaap_TrademarksAndTradeNamesMember_B93C4C78FEA44A43CF3F64B047BB93AF" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_FiniteLivedIntangibleAssetsByMajorClassAxis" xlink:label="loc_us-gaap_FiniteLivedIntangibleAssetsByMajorClassAxis_52F0AB35549CE9E5C94B64B047BB5E88" xlink:type="locator" />
    <link:definitionArc order="4" xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_ScheduleOfSegmentReportingInformationBySegmentTable_579C9C115E5697C82BCC64B047BA0DBE" xlink:to="loc_us-gaap_FiniteLivedIntangibleAssetsByMajorClassAxis_52F0AB35549CE9E5C94B64B047BB5E88" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_FiniteLivedIntangibleAssetsMajorClassNameDomain" xlink:label="loc_us-gaap_FiniteLivedIntangibleAssetsMajorClassNameDomain_4CB1152114A3083BA0B064B047BB76BA_default" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_FiniteLivedIntangibleAssetsByMajorClassAxis_52F0AB35549CE9E5C94B64B047BB5E88" xlink:to="loc_us-gaap_FiniteLivedIntangibleAssetsMajorClassNameDomain_4CB1152114A3083BA0B064B047BB76BA_default" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_FiniteLivedIntangibleAssetsMajorClassNameDomain" xlink:label="loc_us-gaap_FiniteLivedIntangibleAssetsMajorClassNameDomain_4CB1152114A3083BA0B064B047BB76BA" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_FiniteLivedIntangibleAssetsByMajorClassAxis_52F0AB35549CE9E5C94B64B047BB5E88" xlink:to="loc_us-gaap_FiniteLivedIntangibleAssetsMajorClassNameDomain_4CB1152114A3083BA0B064B047BB76BA" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_PatentsMember" xlink:label="loc_us-gaap_PatentsMember_9CFDC0273BCB838A629464B047BB2F50" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_FiniteLivedIntangibleAssetsMajorClassNameDomain_4CB1152114A3083BA0B064B047BB76BA" xlink:to="loc_us-gaap_PatentsMember_9CFDC0273BCB838A629464B047BB2F50" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_Goodwill" xlink:label="loc_us-gaap_Goodwill_E518AE62A9B4166208C664B047BBC268" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_SegmentReportingInformationLineItems_2461DC8A33BED628340264B047BB45A6" xlink:to="loc_us-gaap_Goodwill_E518AE62A9B4166208C664B047BBC268" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_GoodwillImpairmentLoss" xlink:label="loc_us-gaap_GoodwillImpairmentLoss_F28421F6FB054BF3AE6764B047BB3DAF" xlink:type="locator" />
    <link:definitionArc order="2" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_SegmentReportingInformationLineItems_2461DC8A33BED628340264B047BB45A6" xlink:to="loc_us-gaap_GoodwillImpairmentLoss_F28421F6FB054BF3AE6764B047BB3DAF" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_ImpairmentOfIntangibleAssetsExcludingGoodwill" xlink:label="loc_us-gaap_ImpairmentOfIntangibleAssetsExcludingGoodwill_0013B4CE8F70450D5E6D64B047BBD4E5" xlink:type="locator" />
    <link:definitionArc order="3" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_SegmentReportingInformationLineItems_2461DC8A33BED628340264B047BB45A6" xlink:to="loc_us-gaap_ImpairmentOfIntangibleAssetsExcludingGoodwill_0013B4CE8F70450D5E6D64B047BBD4E5" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_FiniteLivedIntangibleAssetUsefulLife" xlink:label="loc_us-gaap_FiniteLivedIntangibleAssetUsefulLife_4644BBE6D4DB9597C3BE64B047BB31C8" xlink:type="locator" />
    <link:definitionArc order="4" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_SegmentReportingInformationLineItems_2461DC8A33BED628340264B047BB45A6" xlink:to="loc_us-gaap_FiniteLivedIntangibleAssetUsefulLife_4644BBE6D4DB9597C3BE64B047BB31C8" xlink:type="arc" />
  </link:definitionLink>
  <link:definitionLink xlink:role="http://www.oesx.com/role/GoodwillAndOtherIntangibleAssetsOtherIntangibleAssetsDetails" xlink:type="extended">
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_FiniteLivedIntangibleAssetsLineItems" xlink:label="loc_us-gaap_FiniteLivedIntangibleAssetsLineItems_4431CBC9FF14438F035A460DF200F265" xlink:type="locator" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_ScheduleOfFiniteLivedIntangibleAssetsTable" xlink:label="loc_us-gaap_ScheduleOfFiniteLivedIntangibleAssetsTable_EC4AB49109A20BF3E612460DF1FF7C5E" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/all" xlink:from="loc_us-gaap_FiniteLivedIntangibleAssetsLineItems_4431CBC9FF14438F035A460DF200F265" xlink:to="loc_us-gaap_ScheduleOfFiniteLivedIntangibleAssetsTable_EC4AB49109A20BF3E612460DF1FF7C5E" xlink:type="arc" xbrldt:closed="true" xbrldt:contextElement="segment" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_FiniteLivedIntangibleAssetsByMajorClassAxis" xlink:label="loc_us-gaap_FiniteLivedIntangibleAssetsByMajorClassAxis_1790E479A1815EC361B3460DF1FF5CA9" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_ScheduleOfFiniteLivedIntangibleAssetsTable_EC4AB49109A20BF3E612460DF1FF7C5E" xlink:to="loc_us-gaap_FiniteLivedIntangibleAssetsByMajorClassAxis_1790E479A1815EC361B3460DF1FF5CA9" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_FiniteLivedIntangibleAssetsMajorClassNameDomain" xlink:label="loc_us-gaap_FiniteLivedIntangibleAssetsMajorClassNameDomain_DF0A8B1FC7B0C89B9CA1460DF1FFD43D_default" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_FiniteLivedIntangibleAssetsByMajorClassAxis_1790E479A1815EC361B3460DF1FF5CA9" xlink:to="loc_us-gaap_FiniteLivedIntangibleAssetsMajorClassNameDomain_DF0A8B1FC7B0C89B9CA1460DF1FFD43D_default" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_FiniteLivedIntangibleAssetsMajorClassNameDomain" xlink:label="loc_us-gaap_FiniteLivedIntangibleAssetsMajorClassNameDomain_DF0A8B1FC7B0C89B9CA1460DF1FFD43D" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_FiniteLivedIntangibleAssetsByMajorClassAxis_1790E479A1815EC361B3460DF1FF5CA9" xlink:to="loc_us-gaap_FiniteLivedIntangibleAssetsMajorClassNameDomain_DF0A8B1FC7B0C89B9CA1460DF1FFD43D" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_PatentsMember" xlink:label="loc_us-gaap_PatentsMember_F6BED4672864562EE6E7460DF1FF173E" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_FiniteLivedIntangibleAssetsMajorClassNameDomain_DF0A8B1FC7B0C89B9CA1460DF1FFD43D" xlink:to="loc_us-gaap_PatentsMember_F6BED4672864562EE6E7460DF1FF173E" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_LicensingAgreementsMember" xlink:label="loc_us-gaap_LicensingAgreementsMember_88EA73812F990836EA9D460DF1FFDC2A" xlink:type="locator" />
    <link:definitionArc order="2" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_FiniteLivedIntangibleAssetsMajorClassNameDomain_DF0A8B1FC7B0C89B9CA1460DF1FFD43D" xlink:to="loc_us-gaap_LicensingAgreementsMember_88EA73812F990836EA9D460DF1FFDC2A" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_TrademarksAndTradeNamesMember" xlink:label="loc_us-gaap_TrademarksAndTradeNamesMember_6EED9245145538382B31460DF1FFCD63" xlink:type="locator" />
    <link:definitionArc order="3" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_FiniteLivedIntangibleAssetsMajorClassNameDomain_DF0A8B1FC7B0C89B9CA1460DF1FFD43D" xlink:to="loc_us-gaap_TrademarksAndTradeNamesMember_6EED9245145538382B31460DF1FFCD63" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_CustomerRelationshipsMember" xlink:label="loc_us-gaap_CustomerRelationshipsMember_417DB84DCC15061F37AB460DF1FF91B7" xlink:type="locator" />
    <link:definitionArc order="4" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_FiniteLivedIntangibleAssetsMajorClassNameDomain_DF0A8B1FC7B0C89B9CA1460DF1FFD43D" xlink:to="loc_us-gaap_CustomerRelationshipsMember_417DB84DCC15061F37AB460DF1FF91B7" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_DevelopedTechnologyRightsMember" xlink:label="loc_us-gaap_DevelopedTechnologyRightsMember_BA6F71058CDFD8253BD5460DF1FFE344" xlink:type="locator" />
    <link:definitionArc order="5" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_FiniteLivedIntangibleAssetsMajorClassNameDomain_DF0A8B1FC7B0C89B9CA1460DF1FFD43D" xlink:to="loc_us-gaap_DevelopedTechnologyRightsMember_BA6F71058CDFD8253BD5460DF1FFE344" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_NoncompeteAgreementsMember" xlink:label="loc_us-gaap_NoncompeteAgreementsMember_1C4D1C12E3B58A991783460DF1FF3918" xlink:type="locator" />
    <link:definitionArc order="6" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_FiniteLivedIntangibleAssetsMajorClassNameDomain_DF0A8B1FC7B0C89B9CA1460DF1FFD43D" xlink:to="loc_us-gaap_NoncompeteAgreementsMember_1C4D1C12E3B58A991783460DF1FF3918" xlink:type="arc" />
    <link:loc xlink:href="oesx-20170331.xsd#oesx_FiniteLivedandIndefiniteLivedIntangibleAssetsGross" xlink:label="loc_oesx_FiniteLivedandIndefiniteLivedIntangibleAssetsGross_F2BB57EADD4D73D2CFF1460DF2000A5B" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_FiniteLivedIntangibleAssetsLineItems_4431CBC9FF14438F035A460DF200F265" xlink:to="loc_oesx_FiniteLivedandIndefiniteLivedIntangibleAssetsGross_F2BB57EADD4D73D2CFF1460DF2000A5B" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_FiniteLivedIntangibleAssetsAccumulatedAmortization" xlink:label="loc_us-gaap_FiniteLivedIntangibleAssetsAccumulatedAmortization_70817224A7245B9B83D2460DF2000442" xlink:type="locator" />
    <link:definitionArc order="2" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_FiniteLivedIntangibleAssetsLineItems_4431CBC9FF14438F035A460DF200F265" xlink:to="loc_us-gaap_FiniteLivedIntangibleAssetsAccumulatedAmortization_70817224A7245B9B83D2460DF2000442" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_IntangibleAssetsNetExcludingGoodwill" xlink:label="loc_us-gaap_IntangibleAssetsNetExcludingGoodwill_631926CC716DB65F8178460DF20038E9" xlink:type="locator" />
    <link:definitionArc order="3" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_FiniteLivedIntangibleAssetsLineItems_4431CBC9FF14438F035A460DF200F265" xlink:to="loc_us-gaap_IntangibleAssetsNetExcludingGoodwill_631926CC716DB65F8178460DF20038E9" xlink:type="arc" />
  </link:definitionLink>
  <link:definitionLink xlink:role="http://www.oesx.com/role/GoodwillAndOtherIntangibleAssetsTables" xlink:type="extended" />
  <link:definitionLink xlink:role="http://www.oesx.com/role/GoodwillAndOtherIntangibleAssetsUsefulLivesDetails" xlink:type="extended">
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_FiniteLivedIntangibleAssetsLineItems" xlink:label="loc_us-gaap_FiniteLivedIntangibleAssetsLineItems_57BB336BE1F3975D9C460DBF99B47BA8" xlink:type="locator" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_ScheduleOfFiniteLivedIntangibleAssetsTable" xlink:label="loc_us-gaap_ScheduleOfFiniteLivedIntangibleAssetsTable_DF541B36775BAE30AEA00DBF99B269F1" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/all" xlink:from="loc_us-gaap_FiniteLivedIntangibleAssetsLineItems_57BB336BE1F3975D9C460DBF99B47BA8" xlink:to="loc_us-gaap_ScheduleOfFiniteLivedIntangibleAssetsTable_DF541B36775BAE30AEA00DBF99B269F1" xlink:type="arc" xbrldt:closed="true" xbrldt:contextElement="segment" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_FiniteLivedIntangibleAssetsByMajorClassAxis" xlink:label="loc_us-gaap_FiniteLivedIntangibleAssetsByMajorClassAxis_655633BDAE2ED2996D610DBF99B33595" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_ScheduleOfFiniteLivedIntangibleAssetsTable_DF541B36775BAE30AEA00DBF99B269F1" xlink:to="loc_us-gaap_FiniteLivedIntangibleAssetsByMajorClassAxis_655633BDAE2ED2996D610DBF99B33595" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_FiniteLivedIntangibleAssetsMajorClassNameDomain" xlink:label="loc_us-gaap_FiniteLivedIntangibleAssetsMajorClassNameDomain_9F7E044073D93F4EDFA70DBF99B35B3D_default" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_FiniteLivedIntangibleAssetsByMajorClassAxis_655633BDAE2ED2996D610DBF99B33595" xlink:to="loc_us-gaap_FiniteLivedIntangibleAssetsMajorClassNameDomain_9F7E044073D93F4EDFA70DBF99B35B3D_default" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_FiniteLivedIntangibleAssetsMajorClassNameDomain" xlink:label="loc_us-gaap_FiniteLivedIntangibleAssetsMajorClassNameDomain_9F7E044073D93F4EDFA70DBF99B35B3D" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_FiniteLivedIntangibleAssetsByMajorClassAxis_655633BDAE2ED2996D610DBF99B33595" xlink:to="loc_us-gaap_FiniteLivedIntangibleAssetsMajorClassNameDomain_9F7E044073D93F4EDFA70DBF99B35B3D" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_PatentsMember" xlink:label="loc_us-gaap_PatentsMember_470F8D627BD2189812D30DBF99B36784" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_FiniteLivedIntangibleAssetsMajorClassNameDomain_9F7E044073D93F4EDFA70DBF99B35B3D" xlink:to="loc_us-gaap_PatentsMember_470F8D627BD2189812D30DBF99B36784" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_LicensingAgreementsMember" xlink:label="loc_us-gaap_LicensingAgreementsMember_0E774D895572C1B0E6860DBF99B35FD9" xlink:type="locator" />
    <link:definitionArc order="2" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_FiniteLivedIntangibleAssetsMajorClassNameDomain_9F7E044073D93F4EDFA70DBF99B35B3D" xlink:to="loc_us-gaap_LicensingAgreementsMember_0E774D895572C1B0E6860DBF99B35FD9" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_CustomerRelationshipsMember" xlink:label="loc_us-gaap_CustomerRelationshipsMember_EAD568B3D669224A66D10DBF99B32306" xlink:type="locator" />
    <link:definitionArc order="3" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_FiniteLivedIntangibleAssetsMajorClassNameDomain_9F7E044073D93F4EDFA70DBF99B35B3D" xlink:to="loc_us-gaap_CustomerRelationshipsMember_EAD568B3D669224A66D10DBF99B32306" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_DevelopedTechnologyRightsMember" xlink:label="loc_us-gaap_DevelopedTechnologyRightsMember_559914080494846D67580DBF99B34024" xlink:type="locator" />
    <link:definitionArc order="4" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_FiniteLivedIntangibleAssetsMajorClassNameDomain_9F7E044073D93F4EDFA70DBF99B35B3D" xlink:to="loc_us-gaap_DevelopedTechnologyRightsMember_559914080494846D67580DBF99B34024" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_NoncompeteAgreementsMember" xlink:label="loc_us-gaap_NoncompeteAgreementsMember_B78EDEF6F7FBF29BECA80DBF99B3ACC3" xlink:type="locator" />
    <link:definitionArc order="5" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_FiniteLivedIntangibleAssetsMajorClassNameDomain_9F7E044073D93F4EDFA70DBF99B35B3D" xlink:to="loc_us-gaap_NoncompeteAgreementsMember_B78EDEF6F7FBF29BECA80DBF99B3ACC3" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_RangeAxis" xlink:label="loc_us-gaap_RangeAxis_B167868563ED6CD43DF90DBF99B3383D" xlink:type="locator" />
    <link:definitionArc order="2" xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_ScheduleOfFiniteLivedIntangibleAssetsTable_DF541B36775BAE30AEA00DBF99B269F1" xlink:to="loc_us-gaap_RangeAxis_B167868563ED6CD43DF90DBF99B3383D" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_RangeMember" xlink:label="loc_us-gaap_RangeMember_4E9AB24D66145F2F94770DBF99B472B9_default" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_RangeAxis_B167868563ED6CD43DF90DBF99B3383D" xlink:to="loc_us-gaap_RangeMember_4E9AB24D66145F2F94770DBF99B472B9_default" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_RangeMember" xlink:label="loc_us-gaap_RangeMember_4E9AB24D66145F2F94770DBF99B472B9" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_RangeAxis_B167868563ED6CD43DF90DBF99B3383D" xlink:to="loc_us-gaap_RangeMember_4E9AB24D66145F2F94770DBF99B472B9" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_MinimumMember" xlink:label="loc_us-gaap_MinimumMember_024EEB1878E7439518AA0DBF99B49CB2" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_RangeMember_4E9AB24D66145F2F94770DBF99B472B9" xlink:to="loc_us-gaap_MinimumMember_024EEB1878E7439518AA0DBF99B49CB2" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_MaximumMember" xlink:label="loc_us-gaap_MaximumMember_211FBCE643D26A49EF860DBF99B41849" xlink:type="locator" />
    <link:definitionArc order="2" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_RangeMember_4E9AB24D66145F2F94770DBF99B472B9" xlink:to="loc_us-gaap_MaximumMember_211FBCE643D26A49EF860DBF99B41849" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_FiniteLivedIntangibleAssetUsefulLife" xlink:label="loc_us-gaap_FiniteLivedIntangibleAssetUsefulLife_0525880C1E4058FC52620DBF99B9889F" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_FiniteLivedIntangibleAssetsLineItems_57BB336BE1F3975D9C460DBF99B47BA8" xlink:to="loc_us-gaap_FiniteLivedIntangibleAssetUsefulLife_0525880C1E4058FC52620DBF99B9889F" xlink:type="arc" />
  </link:definitionLink>
  <link:definitionLink xlink:role="http://www.oesx.com/role/IncomeTaxes" xlink:type="extended" />
  <link:definitionLink xlink:role="http://www.oesx.com/role/IncomeTaxesNarrativeDetails" xlink:type="extended">
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_OperatingLossCarryforwardsLineItems" xlink:label="loc_us-gaap_OperatingLossCarryforwardsLineItems_5DC1C0C35594272965E064872C89AD83" xlink:type="locator" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_OperatingLossCarryforwardsTable" xlink:label="loc_us-gaap_OperatingLossCarryforwardsTable_FBBED9960B5DBA24C41664872C882C67" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/all" xlink:from="loc_us-gaap_OperatingLossCarryforwardsLineItems_5DC1C0C35594272965E064872C89AD83" xlink:to="loc_us-gaap_OperatingLossCarryforwardsTable_FBBED9960B5DBA24C41664872C882C67" xlink:type="arc" xbrldt:closed="true" xbrldt:contextElement="segment" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_IncomeTaxAuthorityAxis" xlink:label="loc_us-gaap_IncomeTaxAuthorityAxis_80F20E666412EBC1ED4C64872C88948C" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_OperatingLossCarryforwardsTable_FBBED9960B5DBA24C41664872C882C67" xlink:to="loc_us-gaap_IncomeTaxAuthorityAxis_80F20E666412EBC1ED4C64872C88948C" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_IncomeTaxAuthorityDomain" xlink:label="loc_us-gaap_IncomeTaxAuthorityDomain_D4940D33962B06A4B97264872C880A4D_default" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_IncomeTaxAuthorityAxis_80F20E666412EBC1ED4C64872C88948C" xlink:to="loc_us-gaap_IncomeTaxAuthorityDomain_D4940D33962B06A4B97264872C880A4D_default" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_IncomeTaxAuthorityDomain" xlink:label="loc_us-gaap_IncomeTaxAuthorityDomain_D4940D33962B06A4B97264872C880A4D" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_IncomeTaxAuthorityAxis_80F20E666412EBC1ED4C64872C88948C" xlink:to="loc_us-gaap_IncomeTaxAuthorityDomain_D4940D33962B06A4B97264872C880A4D" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_DomesticCountryMember" xlink:label="loc_us-gaap_DomesticCountryMember_8DEBC65EB0C5FBDB2D6D64872C88A1D3" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_IncomeTaxAuthorityDomain_D4940D33962B06A4B97264872C880A4D" xlink:to="loc_us-gaap_DomesticCountryMember_8DEBC65EB0C5FBDB2D6D64872C88A1D3" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_StateAndLocalJurisdictionMember" xlink:label="loc_us-gaap_StateAndLocalJurisdictionMember_FD0036E2CDA5D6A0385364872C88F201" xlink:type="locator" />
    <link:definitionArc order="2" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_IncomeTaxAuthorityDomain_D4940D33962B06A4B97264872C880A4D" xlink:to="loc_us-gaap_StateAndLocalJurisdictionMember_FD0036E2CDA5D6A0385364872C88F201" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_RangeAxis" xlink:label="loc_us-gaap_RangeAxis_66991750857D6FBA86BD64872C8867F3" xlink:type="locator" />
    <link:definitionArc order="2" xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_OperatingLossCarryforwardsTable_FBBED9960B5DBA24C41664872C882C67" xlink:to="loc_us-gaap_RangeAxis_66991750857D6FBA86BD64872C8867F3" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_RangeMember" xlink:label="loc_us-gaap_RangeMember_1BE8E10FDD8EE0A7445B64872C88D121_default" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_RangeAxis_66991750857D6FBA86BD64872C8867F3" xlink:to="loc_us-gaap_RangeMember_1BE8E10FDD8EE0A7445B64872C88D121_default" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_RangeMember" xlink:label="loc_us-gaap_RangeMember_1BE8E10FDD8EE0A7445B64872C88D121" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_RangeAxis_66991750857D6FBA86BD64872C8867F3" xlink:to="loc_us-gaap_RangeMember_1BE8E10FDD8EE0A7445B64872C88D121" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_MinimumMember" xlink:label="loc_us-gaap_MinimumMember_C57F85DAB4058BF42B4964872C88F872" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_RangeMember_1BE8E10FDD8EE0A7445B64872C88D121" xlink:to="loc_us-gaap_MinimumMember_C57F85DAB4058BF42B4964872C88F872" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_MaximumMember" xlink:label="loc_us-gaap_MaximumMember_7CAE1628481AE052F4C764872C88898A" xlink:type="locator" />
    <link:definitionArc order="2" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_RangeMember_1BE8E10FDD8EE0A7445B64872C88D121" xlink:to="loc_us-gaap_MaximumMember_7CAE1628481AE052F4C764872C88898A" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_IncomeTaxAuthorityNameAxis" xlink:label="loc_us-gaap_IncomeTaxAuthorityNameAxis_80E21198555397F5189864872C8832A1" xlink:type="locator" />
    <link:definitionArc order="3" xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_OperatingLossCarryforwardsTable_FBBED9960B5DBA24C41664872C882C67" xlink:to="loc_us-gaap_IncomeTaxAuthorityNameAxis_80E21198555397F5189864872C8832A1" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_IncomeTaxAuthorityNameDomain" xlink:label="loc_us-gaap_IncomeTaxAuthorityNameDomain_475CEAEC2D469268B34664872C8862FA_default" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_IncomeTaxAuthorityNameAxis_80E21198555397F5189864872C8832A1" xlink:to="loc_us-gaap_IncomeTaxAuthorityNameDomain_475CEAEC2D469268B34664872C8862FA_default" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_IncomeTaxAuthorityNameDomain" xlink:label="loc_us-gaap_IncomeTaxAuthorityNameDomain_475CEAEC2D469268B34664872C8862FA" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_IncomeTaxAuthorityNameAxis_80E21198555397F5189864872C8832A1" xlink:to="loc_us-gaap_IncomeTaxAuthorityNameDomain_475CEAEC2D469268B34664872C8862FA" xlink:type="arc" />
    <link:loc xlink:href="oesx-20170331.xsd#oesx_WisconsinDepartmentOfRevenueMember" xlink:label="loc_oesx_WisconsinDepartmentOfRevenueMember_6E6D3CF74DF8C4E2336764872C891388" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_IncomeTaxAuthorityNameDomain_475CEAEC2D469268B34664872C8862FA" xlink:to="loc_oesx_WisconsinDepartmentOfRevenueMember_6E6D3CF74DF8C4E2336764872C891388" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_ExcessTaxBenefitFromShareBasedCompensationFinancingActivities" xlink:label="loc_us-gaap_ExcessTaxBenefitFromShareBasedCompensationFinancingActivities_8DCB4EC70B0CB047F3E464872C89A875" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_OperatingLossCarryforwardsLineItems_5DC1C0C35594272965E064872C89AD83" xlink:to="loc_us-gaap_ExcessTaxBenefitFromShareBasedCompensationFinancingActivities_8DCB4EC70B0CB047F3E464872C89A875" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_OperatingLossCarryforwards" xlink:label="loc_us-gaap_OperatingLossCarryforwards_93A8FDDF64434FC59BD364872C89D39A" xlink:type="locator" />
    <link:definitionArc order="2" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_OperatingLossCarryforwardsLineItems_5DC1C0C35594272965E064872C89AD83" xlink:to="loc_us-gaap_OperatingLossCarryforwards_93A8FDDF64434FC59BD364872C89D39A" xlink:type="arc" />
    <link:loc xlink:href="oesx-20170331.xsd#oesx_OperatingLossCarryforwardsAssociatedWithExerciseOfNonQualifiedStockOptions" xlink:label="loc_oesx_OperatingLossCarryforwardsAssociatedWithExerciseOfNonQualifiedStockOptions_CB5B857D74C9049A34EE64872C894287" xlink:type="locator" />
    <link:definitionArc order="3" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_OperatingLossCarryforwardsLineItems_5DC1C0C35594272965E064872C89AD83" xlink:to="loc_oesx_OperatingLossCarryforwardsAssociatedWithExerciseOfNonQualifiedStockOptions_CB5B857D74C9049A34EE64872C894287" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_TaxCreditCarryforwardAmount" xlink:label="loc_us-gaap_TaxCreditCarryforwardAmount_608E3AE0EADADA3D5B7764872C894A37" xlink:type="locator" />
    <link:definitionArc order="4" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_OperatingLossCarryforwardsLineItems_5DC1C0C35594272965E064872C89AD83" xlink:to="loc_us-gaap_TaxCreditCarryforwardAmount_608E3AE0EADADA3D5B7764872C894A37" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_DeferredTaxAssetsValuationAllowance" xlink:label="loc_us-gaap_DeferredTaxAssetsValuationAllowance_86128D74458EEBF93A8664872C894D80" xlink:type="locator" />
    <link:definitionArc order="5" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_OperatingLossCarryforwardsLineItems_5DC1C0C35594272965E064872C89AD83" xlink:to="loc_us-gaap_DeferredTaxAssetsValuationAllowance_86128D74458EEBF93A8664872C894D80" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_ValuationAllowanceDeferredTaxAssetChangeInAmount" xlink:label="loc_us-gaap_ValuationAllowanceDeferredTaxAssetChangeInAmount_A1506FAE6FC54BC2908264872C8984F4" xlink:type="locator" />
    <link:definitionArc order="6" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_OperatingLossCarryforwardsLineItems_5DC1C0C35594272965E064872C89AD83" xlink:to="loc_us-gaap_ValuationAllowanceDeferredTaxAssetChangeInAmount_A1506FAE6FC54BC2908264872C8984F4" xlink:type="arc" />
    <link:loc xlink:href="oesx-20170331.xsd#oesx_PeriodOfTimeStateIncomeTaxReturnsSubjectToExamination" xlink:label="loc_oesx_PeriodOfTimeStateIncomeTaxReturnsSubjectToExamination_EA5C4967036CA026C72E64872C8990C1" xlink:type="locator" />
    <link:definitionArc order="7" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_OperatingLossCarryforwardsLineItems_5DC1C0C35594272965E064872C89AD83" xlink:to="loc_oesx_PeriodOfTimeStateIncomeTaxReturnsSubjectToExamination_EA5C4967036CA026C72E64872C8990C1" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_IncomeTaxExaminationLiabilityRefundAdjustmentFromSettlementWithTaxingAuthority" xlink:label="loc_us-gaap_IncomeTaxExaminationLiabilityRefundAdjustmentFromSettlementWithTaxingAuthority_D6E65E1AF0689F3F2E8064872C895131" xlink:type="locator" />
    <link:definitionArc order="8" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_OperatingLossCarryforwardsLineItems_5DC1C0C35594272965E064872C89AD83" xlink:to="loc_us-gaap_IncomeTaxExaminationLiabilityRefundAdjustmentFromSettlementWithTaxingAuthority_D6E65E1AF0689F3F2E8064872C895131" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_UnrecognizedTaxBenefits" xlink:label="loc_us-gaap_UnrecognizedTaxBenefits_8094054F1A082B926DD164872C89D044" xlink:type="locator" />
    <link:definitionArc order="9" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_OperatingLossCarryforwardsLineItems_5DC1C0C35594272965E064872C89AD83" xlink:to="loc_us-gaap_UnrecognizedTaxBenefits_8094054F1A082B926DD164872C89D044" xlink:type="arc" />
  </link:definitionLink>
  <link:definitionLink xlink:role="http://www.oesx.com/role/IncomeTaxesReconciliationOfTaxRatesDetails" xlink:type="extended" />
  <link:definitionLink xlink:role="http://www.oesx.com/role/IncomeTaxesScheduleOfComponentsOfIncomeTaxExpenseOrBenefitDetails" xlink:type="extended" />
  <link:definitionLink xlink:role="http://www.oesx.com/role/IncomeTaxesScheduleOfDeferredTaxAssetsAndLiabilitiesDetails" xlink:type="extended" />
  <link:definitionLink xlink:role="http://www.oesx.com/role/IncomeTaxesTables" xlink:type="extended" />
  <link:definitionLink xlink:role="http://www.oesx.com/role/IncomeTaxesUnrecognizedTaxBenefitActivityDetails" 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:loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_InventoryLineItems" xlink:label="loc_us-gaap_InventoryLineItems_BC4041E5376EAA8A9F3564B047E43DA0" xlink:type="locator" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_InventoryCurrentTable" xlink:label="loc_us-gaap_InventoryCurrentTable_2D886BBBD0D4049052E864B047E4E6AB" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/all" xlink:from="loc_us-gaap_InventoryLineItems_BC4041E5376EAA8A9F3564B047E43DA0" xlink:to="loc_us-gaap_InventoryCurrentTable_2D886BBBD0D4049052E864B047E4E6AB" xlink:type="arc" xbrldt:closed="true" xbrldt:contextElement="segment" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_RangeAxis" xlink:label="loc_us-gaap_RangeAxis_7CB420B3F3B68BD5D14664B047E4376F" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_InventoryCurrentTable_2D886BBBD0D4049052E864B047E4E6AB" xlink:to="loc_us-gaap_RangeAxis_7CB420B3F3B68BD5D14664B047E4376F" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_RangeMember" xlink:label="loc_us-gaap_RangeMember_33EA59614A0D8DE7E53864B047E445B2_default" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_RangeAxis_7CB420B3F3B68BD5D14664B047E4376F" xlink:to="loc_us-gaap_RangeMember_33EA59614A0D8DE7E53864B047E445B2_default" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_RangeMember" xlink:label="loc_us-gaap_RangeMember_33EA59614A0D8DE7E53864B047E445B2" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_RangeAxis_7CB420B3F3B68BD5D14664B047E4376F" xlink:to="loc_us-gaap_RangeMember_33EA59614A0D8DE7E53864B047E445B2" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_MinimumMember" xlink:label="loc_us-gaap_MinimumMember_13FFFD046709FA404D2E64B047E42B98" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_RangeMember_33EA59614A0D8DE7E53864B047E445B2" xlink:to="loc_us-gaap_MinimumMember_13FFFD046709FA404D2E64B047E42B98" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_MaximumMember" xlink:label="loc_us-gaap_MaximumMember_0313859A35E3A4BF126764B047E4D6A2" xlink:type="locator" />
    <link:definitionArc order="2" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_RangeMember_33EA59614A0D8DE7E53864B047E445B2" xlink:to="loc_us-gaap_MaximumMember_0313859A35E3A4BF126764B047E4D6A2" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_ValuationAllowancesAndReservesTypeAxis" xlink:label="loc_us-gaap_ValuationAllowancesAndReservesTypeAxis_9797E5429E07B93AE12E64B047E42371" xlink:type="locator" />
    <link:definitionArc order="2" xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_InventoryCurrentTable_2D886BBBD0D4049052E864B047E4E6AB" xlink:to="loc_us-gaap_ValuationAllowancesAndReservesTypeAxis_9797E5429E07B93AE12E64B047E42371" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_ValuationAllowancesAndReservesDomain" xlink:label="loc_us-gaap_ValuationAllowancesAndReservesDomain_EE354161373E1A6BA2C764B047E44E5C_default" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_ValuationAllowancesAndReservesTypeAxis_9797E5429E07B93AE12E64B047E42371" xlink:to="loc_us-gaap_ValuationAllowancesAndReservesDomain_EE354161373E1A6BA2C764B047E44E5C_default" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_ValuationAllowancesAndReservesDomain" xlink:label="loc_us-gaap_ValuationAllowancesAndReservesDomain_EE354161373E1A6BA2C764B047E44E5C" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_ValuationAllowancesAndReservesTypeAxis_9797E5429E07B93AE12E64B047E42371" xlink:to="loc_us-gaap_ValuationAllowancesAndReservesDomain_EE354161373E1A6BA2C764B047E44E5C" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_InventoryValuationReserveMember" xlink:label="loc_us-gaap_InventoryValuationReserveMember_79C68D0CF1DB72380D4564B047E4EFB4" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ValuationAllowancesAndReservesDomain_EE354161373E1A6BA2C764B047E44E5C" xlink:to="loc_us-gaap_InventoryValuationReserveMember_79C68D0CF1DB72380D4564B047E4EFB4" xlink:type="arc" />
    <link:loc xlink:href="oesx-20170331.xsd#oesx_InventoryReserveLengthofTimeofInventoryUsageConsidered" xlink:label="loc_oesx_InventoryReserveLengthofTimeofInventoryUsageConsidered_1877DE27F8D7B6C7FA4264B047E4EE47" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_InventoryLineItems_BC4041E5376EAA8A9F3564B047E43DA0" xlink:to="loc_oesx_InventoryReserveLengthofTimeofInventoryUsageConsidered_1877DE27F8D7B6C7FA4264B047E4EE47" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_InventoryRawMaterialsAndSupplies" xlink:label="loc_us-gaap_InventoryRawMaterialsAndSupplies_D0EBF3D6FC92A362F2B864B047E4B3C9" xlink:type="locator" />
    <link:definitionArc order="2" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_InventoryLineItems_BC4041E5376EAA8A9F3564B047E43DA0" xlink:to="loc_us-gaap_InventoryRawMaterialsAndSupplies_D0EBF3D6FC92A362F2B864B047E4B3C9" xlink:type="arc" />
    <link:loc xlink:href="oesx-20170331.xsd#oesx_InventoryRawMaterialsandSuppliesValuationReserves" xlink:label="loc_oesx_InventoryRawMaterialsandSuppliesValuationReserves_17F55A479D04F7A2F6B264B047E4C5D2" xlink:type="locator" />
    <link:definitionArc order="3" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_InventoryLineItems_BC4041E5376EAA8A9F3564B047E43DA0" xlink:to="loc_oesx_InventoryRawMaterialsandSuppliesValuationReserves_17F55A479D04F7A2F6B264B047E4C5D2" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_InventoryRawMaterialsAndSuppliesNetOfReserves" xlink:label="loc_us-gaap_InventoryRawMaterialsAndSuppliesNetOfReserves_5F0DD3009340DC4901EB64B047E49B16" xlink:type="locator" />
    <link:definitionArc order="4" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_InventoryLineItems_BC4041E5376EAA8A9F3564B047E43DA0" xlink:to="loc_us-gaap_InventoryRawMaterialsAndSuppliesNetOfReserves_5F0DD3009340DC4901EB64B047E49B16" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_InventoryWorkInProcess" xlink:label="loc_us-gaap_InventoryWorkInProcess_052DA13DB0EF090CA8AB64B047E49763" xlink:type="locator" />
    <link:definitionArc order="5" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_InventoryLineItems_BC4041E5376EAA8A9F3564B047E43DA0" xlink:to="loc_us-gaap_InventoryWorkInProcess_052DA13DB0EF090CA8AB64B047E49763" xlink:type="arc" />
    <link:loc xlink:href="oesx-20170331.xsd#oesx_InventoryWorkinProcessValuationReserves" xlink:label="loc_oesx_InventoryWorkinProcessValuationReserves_FA8189F66C50B7B6893F64B047E44A2D" xlink:type="locator" />
    <link:definitionArc order="6" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_InventoryLineItems_BC4041E5376EAA8A9F3564B047E43DA0" xlink:to="loc_oesx_InventoryWorkinProcessValuationReserves_FA8189F66C50B7B6893F64B047E44A2D" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_InventoryWorkInProcessNetOfReserves" xlink:label="loc_us-gaap_InventoryWorkInProcessNetOfReserves_67E653E5BB5D7A30B2E564B047E5A4F5" xlink:type="locator" />
    <link:definitionArc order="7" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_InventoryLineItems_BC4041E5376EAA8A9F3564B047E43DA0" xlink:to="loc_us-gaap_InventoryWorkInProcessNetOfReserves_67E653E5BB5D7A30B2E564B047E5A4F5" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_InventoryFinishedGoods" xlink:label="loc_us-gaap_InventoryFinishedGoods_671BCD1FF35D9450A62564B047E55E24" xlink:type="locator" />
    <link:definitionArc order="8" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_InventoryLineItems_BC4041E5376EAA8A9F3564B047E43DA0" xlink:to="loc_us-gaap_InventoryFinishedGoods_671BCD1FF35D9450A62564B047E55E24" xlink:type="arc" />
    <link:loc xlink:href="oesx-20170331.xsd#oesx_InventoryFinishedGoodsValuationReserves" xlink:label="loc_oesx_InventoryFinishedGoodsValuationReserves_31E51FED1412DCA31EC664B047E5600A" xlink:type="locator" />
    <link:definitionArc order="9" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_InventoryLineItems_BC4041E5376EAA8A9F3564B047E43DA0" xlink:to="loc_oesx_InventoryFinishedGoodsValuationReserves_31E51FED1412DCA31EC664B047E5600A" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_InventoryFinishedGoodsNetOfReserves" xlink:label="loc_us-gaap_InventoryFinishedGoodsNetOfReserves_2D226F7F0D17E073AC4164B047E517E1" xlink:type="locator" />
    <link:definitionArc order="10" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_InventoryLineItems_BC4041E5376EAA8A9F3564B047E43DA0" xlink:to="loc_us-gaap_InventoryFinishedGoodsNetOfReserves_2D226F7F0D17E073AC4164B047E517E1" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_InventoryGross" xlink:label="loc_us-gaap_InventoryGross_C3A012552FD7327B28A064B047E5DB28" xlink:type="locator" />
    <link:definitionArc order="11" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_InventoryLineItems_BC4041E5376EAA8A9F3564B047E43DA0" xlink:to="loc_us-gaap_InventoryGross_C3A012552FD7327B28A064B047E5DB28" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_InventoryValuationReserves" xlink:label="loc_us-gaap_InventoryValuationReserves_2EB9AE0F44CE0934703964B047E55EA6" xlink:type="locator" />
    <link:definitionArc order="12" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_InventoryLineItems_BC4041E5376EAA8A9F3564B047E43DA0" xlink:to="loc_us-gaap_InventoryValuationReserves_2EB9AE0F44CE0934703964B047E55EA6" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_InventoryNet" xlink:label="loc_us-gaap_InventoryNet_416D27CB5A54BE3F545164B047E5B210" xlink:type="locator" />
    <link:definitionArc order="13" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_InventoryLineItems_BC4041E5376EAA8A9F3564B047E43DA0" xlink:to="loc_us-gaap_InventoryNet_416D27CB5A54BE3F545164B047E5B210" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_ValuationAllowancesAndReservesPeriodIncreaseDecrease" xlink:label="loc_us-gaap_ValuationAllowancesAndReservesPeriodIncreaseDecrease_5E10212C40AF19F7D98864B047E58AC3" xlink:type="locator" />
    <link:definitionArc order="14" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_InventoryLineItems_BC4041E5376EAA8A9F3564B047E43DA0" xlink:to="loc_us-gaap_ValuationAllowancesAndReservesPeriodIncreaseDecrease_5E10212C40AF19F7D98864B047E58AC3" xlink:type="arc" />
  </link:definitionLink>
  <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/LongTermDebtAggregateMaturitiesDetails" xlink:type="extended" />
  <link:definitionLink xlink:role="http://www.oesx.com/role/LongTermDebtAllOtherDebtDetails" xlink:type="extended">
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_DebtInstrumentLineItems" xlink:label="loc_us-gaap_DebtInstrumentLineItems_1BFE0685728684C274C7648C5D3BEF82" xlink:type="locator" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_DebtInstrumentTable" xlink:label="loc_us-gaap_DebtInstrumentTable_614A761AD67F79EF415A648C5D3A0F7D" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/all" xlink:from="loc_us-gaap_DebtInstrumentLineItems_1BFE0685728684C274C7648C5D3BEF82" xlink:to="loc_us-gaap_DebtInstrumentTable_614A761AD67F79EF415A648C5D3A0F7D" xlink:type="arc" xbrldt:closed="true" xbrldt:contextElement="segment" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_LongtermDebtTypeAxis" xlink:label="loc_us-gaap_LongtermDebtTypeAxis_0ED67C686F0C3286D3F1648C5D3ABE4E" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_DebtInstrumentTable_614A761AD67F79EF415A648C5D3A0F7D" xlink:to="loc_us-gaap_LongtermDebtTypeAxis_0ED67C686F0C3286D3F1648C5D3ABE4E" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_LongtermDebtTypeDomain" xlink:label="loc_us-gaap_LongtermDebtTypeDomain_BD8EE25056175C10E5E4648C5D3AC611_default" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_LongtermDebtTypeAxis_0ED67C686F0C3286D3F1648C5D3ABE4E" xlink:to="loc_us-gaap_LongtermDebtTypeDomain_BD8EE25056175C10E5E4648C5D3AC611_default" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_LongtermDebtTypeDomain" xlink:label="loc_us-gaap_LongtermDebtTypeDomain_BD8EE25056175C10E5E4648C5D3AC611" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_LongtermDebtTypeAxis_0ED67C686F0C3286D3F1648C5D3ABE4E" xlink:to="loc_us-gaap_LongtermDebtTypeDomain_BD8EE25056175C10E5E4648C5D3AC611" xlink:type="arc" />
    <link:loc xlink:href="oesx-20170331.xsd#oesx_HarrisSellersNoteMember" xlink:label="loc_oesx_HarrisSellersNoteMember_BB4629E3F62DF7169B70648C5D3A6D7F" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_LongtermDebtTypeDomain_BD8EE25056175C10E5E4648C5D3AC611" xlink:to="loc_oesx_HarrisSellersNoteMember_BB4629E3F62DF7169B70648C5D3A6D7F" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_SecuredDebtMember" xlink:label="loc_us-gaap_SecuredDebtMember_DEA267393B5B6E5A6926648C5D3A4A3D" xlink:type="locator" />
    <link:definitionArc order="2" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_LongtermDebtTypeDomain_BD8EE25056175C10E5E4648C5D3AC611" xlink:to="loc_us-gaap_SecuredDebtMember_DEA267393B5B6E5A6926648C5D3A4A3D" xlink:type="arc" />
    <link:loc xlink:href="oesx-20170331.xsd#oesx_June2011OtaFinanceProgramMember" xlink:label="loc_oesx_June2011OtaFinanceProgramMember_8965113D18DEC31329A4648C5D3A2E46" xlink:type="locator" />
    <link:definitionArc order="3" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_LongtermDebtTypeDomain_BD8EE25056175C10E5E4648C5D3AC611" xlink:to="loc_oesx_June2011OtaFinanceProgramMember_8965113D18DEC31329A4648C5D3A2E46" xlink:type="arc" />
    <link:loc xlink:href="oesx-20170331.xsd#oesx_AgreementWithWisconsinDepartmentOfCommerceMember" xlink:label="loc_oesx_AgreementWithWisconsinDepartmentOfCommerceMember_E664768F5C6501E04ED6648C5D3AFF0D" xlink:type="locator" />
    <link:definitionArc order="4" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_LongtermDebtTypeDomain_BD8EE25056175C10E5E4648C5D3AC611" xlink:to="loc_oesx_AgreementWithWisconsinDepartmentOfCommerceMember_E664768F5C6501E04ED6648C5D3AFF0D" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_ExtinguishmentOfDebtAxis" xlink:label="loc_us-gaap_ExtinguishmentOfDebtAxis_3D0EE8CCB04239D25269648C5D3A703D" xlink:type="locator" />
    <link:definitionArc order="2" xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_DebtInstrumentTable_614A761AD67F79EF415A648C5D3A0F7D" xlink:to="loc_us-gaap_ExtinguishmentOfDebtAxis_3D0EE8CCB04239D25269648C5D3A703D" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_ExtinguishmentOfDebtTypeDomain" xlink:label="loc_us-gaap_ExtinguishmentOfDebtTypeDomain_415CAB9AA9D9ADB93B8E648C5D3A9118_default" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_ExtinguishmentOfDebtAxis_3D0EE8CCB04239D25269648C5D3A703D" xlink:to="loc_us-gaap_ExtinguishmentOfDebtTypeDomain_415CAB9AA9D9ADB93B8E648C5D3A9118_default" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_ExtinguishmentOfDebtTypeDomain" xlink:label="loc_us-gaap_ExtinguishmentOfDebtTypeDomain_415CAB9AA9D9ADB93B8E648C5D3A9118" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_ExtinguishmentOfDebtAxis_3D0EE8CCB04239D25269648C5D3A703D" xlink:to="loc_us-gaap_ExtinguishmentOfDebtTypeDomain_415CAB9AA9D9ADB93B8E648C5D3A9118" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_CapitalLeaseObligationsMember" xlink:label="loc_us-gaap_CapitalLeaseObligationsMember_E4E67E4B005BE7F52E77648C5D3A3203" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ExtinguishmentOfDebtTypeDomain_415CAB9AA9D9ADB93B8E648C5D3A9118" xlink:to="loc_us-gaap_CapitalLeaseObligationsMember_E4E67E4B005BE7F52E77648C5D3A3203" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_DebtInstrumentAxis" xlink:label="loc_us-gaap_DebtInstrumentAxis_9A8025A7F7111020C24E648C5D3ADEF3" xlink:type="locator" />
    <link:definitionArc order="3" xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_DebtInstrumentTable_614A761AD67F79EF415A648C5D3A0F7D" xlink:to="loc_us-gaap_DebtInstrumentAxis_9A8025A7F7111020C24E648C5D3ADEF3" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_DebtInstrumentNameDomain" xlink:label="loc_us-gaap_DebtInstrumentNameDomain_6CFFFCF9842A83A66DF0648C5D3A169A_default" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_DebtInstrumentAxis_9A8025A7F7111020C24E648C5D3ADEF3" xlink:to="loc_us-gaap_DebtInstrumentNameDomain_6CFFFCF9842A83A66DF0648C5D3A169A_default" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_DebtInstrumentNameDomain" xlink:label="loc_us-gaap_DebtInstrumentNameDomain_6CFFFCF9842A83A66DF0648C5D3A169A" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_DebtInstrumentAxis_9A8025A7F7111020C24E648C5D3ADEF3" xlink:to="loc_us-gaap_DebtInstrumentNameDomain_6CFFFCF9842A83A66DF0648C5D3A169A" xlink:type="arc" />
    <link:loc xlink:href="oesx-20170331.xsd#oesx_December2014OTAFinanceProgramMember" xlink:label="loc_oesx_December2014OTAFinanceProgramMember_F79867EE1A09B7314B65648C5D3AF754" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DebtInstrumentNameDomain_6CFFFCF9842A83A66DF0648C5D3A169A" xlink:to="loc_oesx_December2014OTAFinanceProgramMember_F79867EE1A09B7314B65648C5D3AF754" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_LineOfCreditFacilityAxis" xlink:label="loc_us-gaap_LineOfCreditFacilityAxis_76F7ACB7C6FE26D9C9F4648C5D3A718A" xlink:type="locator" />
    <link:definitionArc order="4" xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_DebtInstrumentTable_614A761AD67F79EF415A648C5D3A0F7D" xlink:to="loc_us-gaap_LineOfCreditFacilityAxis_76F7ACB7C6FE26D9C9F4648C5D3A718A" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_LineOfCreditFacilityLenderDomain" xlink:label="loc_us-gaap_LineOfCreditFacilityLenderDomain_3508CC2793F0637A209F648C5D3B8810_default" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_LineOfCreditFacilityAxis_76F7ACB7C6FE26D9C9F4648C5D3A718A" xlink:to="loc_us-gaap_LineOfCreditFacilityLenderDomain_3508CC2793F0637A209F648C5D3B8810_default" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_LineOfCreditFacilityLenderDomain" xlink:label="loc_us-gaap_LineOfCreditFacilityLenderDomain_3508CC2793F0637A209F648C5D3B8810" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_LineOfCreditFacilityAxis_76F7ACB7C6FE26D9C9F4648C5D3A718A" xlink:to="loc_us-gaap_LineOfCreditFacilityLenderDomain_3508CC2793F0637A209F648C5D3B8810" xlink:type="arc" />
    <link:loc xlink:href="oesx-20170331.xsd#oesx_DeLageLandenFinancialServicesInc.Member" xlink:label="loc_oesx_DeLageLandenFinancialServicesInc.Member_4FF1A22046F0C04CF727648C5D3BAC56" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_LineOfCreditFacilityLenderDomain_3508CC2793F0637A209F648C5D3B8810" xlink:to="loc_oesx_DeLageLandenFinancialServicesInc.Member_4FF1A22046F0C04CF727648C5D3BAC56" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_DebtInstrumentFaceAmount" xlink:label="loc_us-gaap_DebtInstrumentFaceAmount_A3CD9BB56C78DA27DA70648C5D3B0163" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DebtInstrumentLineItems_1BFE0685728684C274C7648C5D3BEF82" xlink:to="loc_us-gaap_DebtInstrumentFaceAmount_A3CD9BB56C78DA27DA70648C5D3B0163" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_DebtInstrumentInterestRateStatedPercentage" xlink:label="loc_us-gaap_DebtInstrumentInterestRateStatedPercentage_27DCDB5671989AC6BC5C648C5D3BAB60" xlink:type="locator" />
    <link:definitionArc order="2" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DebtInstrumentLineItems_1BFE0685728684C274C7648C5D3BEF82" xlink:to="loc_us-gaap_DebtInstrumentInterestRateStatedPercentage_27DCDB5671989AC6BC5C648C5D3BAB60" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_DebtInstrumentCarryingAmount" xlink:label="loc_us-gaap_DebtInstrumentCarryingAmount_DFFC9DCB0E78297453AF648C5D3BB4FD" xlink:type="locator" />
    <link:definitionArc order="3" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DebtInstrumentLineItems_1BFE0685728684C274C7648C5D3BEF82" xlink:to="loc_us-gaap_DebtInstrumentCarryingAmount_DFFC9DCB0E78297453AF648C5D3BB4FD" xlink:type="arc" />
    <link:loc xlink:href="oesx-20170331.xsd#oesx_DebtInstrumentBuyoutOption" xlink:label="loc_oesx_DebtInstrumentBuyoutOption_81DB0D48C7D1D4282AFA648C5D3B42BE" xlink:type="locator" />
    <link:definitionArc order="4" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DebtInstrumentLineItems_1BFE0685728684C274C7648C5D3BEF82" xlink:to="loc_oesx_DebtInstrumentBuyoutOption_81DB0D48C7D1D4282AFA648C5D3B42BE" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_SecuredDebt" xlink:label="loc_us-gaap_SecuredDebt_E4F761C91961FC59609E648C5D3B0615" xlink:type="locator" />
    <link:definitionArc order="5" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DebtInstrumentLineItems_1BFE0685728684C274C7648C5D3BEF82" xlink:to="loc_us-gaap_SecuredDebt_E4F761C91961FC59609E648C5D3B0615" xlink:type="arc" />
    <link:loc xlink:href="oesx-20170331.xsd#oesx_DebtInstrumentNumberOfContractsForCollateral" xlink:label="loc_oesx_DebtInstrumentNumberOfContractsForCollateral_F8B7E04A149C61B185B6648C5D3B4E83" xlink:type="locator" />
    <link:definitionArc order="6" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DebtInstrumentLineItems_1BFE0685728684C274C7648C5D3BEF82" xlink:to="loc_oesx_DebtInstrumentNumberOfContractsForCollateral_F8B7E04A149C61B185B6648C5D3B4E83" xlink:type="arc" />
    <link:loc xlink:href="oesx-20170331.xsd#oesx_NumberOfSupportingIndividualOtaCustomerContracts" xlink:label="loc_oesx_NumberOfSupportingIndividualOtaCustomerContracts_7230152DA919D07A4E31648C5D3B3203" xlink:type="locator" />
    <link:definitionArc order="7" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DebtInstrumentLineItems_1BFE0685728684C274C7648C5D3BEF82" xlink:to="loc_oesx_NumberOfSupportingIndividualOtaCustomerContracts_7230152DA919D07A4E31648C5D3B3203" xlink:type="arc" />
    <link:loc xlink:href="oesx-20170331.xsd#oesx_PeriodOfTimeWithoutInterestAccruingOrPrincipalPaymentsDue" xlink:label="loc_oesx_PeriodOfTimeWithoutInterestAccruingOrPrincipalPaymentsDue_DEE9D1512997DA35D85D648C5D3BC736" xlink:type="locator" />
    <link:definitionArc order="8" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DebtInstrumentLineItems_1BFE0685728684C274C7648C5D3BEF82" xlink:to="loc_oesx_PeriodOfTimeWithoutInterestAccruingOrPrincipalPaymentsDue_DEE9D1512997DA35D85D648C5D3BC736" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_DebtInstrumentPeriodicPayment" xlink:label="loc_us-gaap_DebtInstrumentPeriodicPayment_5E8A13A37DE6B0FE3A54648C5D3B9BC1" xlink:type="locator" />
    <link:definitionArc order="9" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DebtInstrumentLineItems_1BFE0685728684C274C7648C5D3BEF82" xlink:to="loc_us-gaap_DebtInstrumentPeriodicPayment_5E8A13A37DE6B0FE3A54648C5D3B9BC1" xlink:type="arc" />
  </link:definitionLink>
  <link:definitionLink xlink:role="http://www.oesx.com/role/LongTermDebtRevolvingCreditFacilityDetails" xlink:type="extended">
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_LineOfCreditFacilityLineItems" xlink:label="loc_us-gaap_LineOfCreditFacilityLineItems_77AE016450D1A661A49464B04774B0AC" xlink:type="locator" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_LineOfCreditFacilityTable" xlink:label="loc_us-gaap_LineOfCreditFacilityTable_9E171FDC373D104A203664B04773442B" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/all" xlink:from="loc_us-gaap_LineOfCreditFacilityLineItems_77AE016450D1A661A49464B04774B0AC" xlink:to="loc_us-gaap_LineOfCreditFacilityTable_9E171FDC373D104A203664B04773442B" xlink:type="arc" xbrldt:closed="true" xbrldt:contextElement="segment" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_LineOfCreditFacilityAxis" xlink:label="loc_us-gaap_LineOfCreditFacilityAxis_BF5B1D61BC9DAC3494A664B04773132F" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_LineOfCreditFacilityTable_9E171FDC373D104A203664B04773442B" xlink:to="loc_us-gaap_LineOfCreditFacilityAxis_BF5B1D61BC9DAC3494A664B04773132F" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_LineOfCreditFacilityLenderDomain" xlink:label="loc_us-gaap_LineOfCreditFacilityLenderDomain_0E908916B6CD038CDD4F64B04773B315_default" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_LineOfCreditFacilityAxis_BF5B1D61BC9DAC3494A664B04773132F" xlink:to="loc_us-gaap_LineOfCreditFacilityLenderDomain_0E908916B6CD038CDD4F64B04773B315_default" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_LineOfCreditFacilityLenderDomain" xlink:label="loc_us-gaap_LineOfCreditFacilityLenderDomain_0E908916B6CD038CDD4F64B04773B315" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_LineOfCreditFacilityAxis_BF5B1D61BC9DAC3494A664B04773132F" xlink:to="loc_us-gaap_LineOfCreditFacilityLenderDomain_0E908916B6CD038CDD4F64B04773B315" xlink:type="arc" />
    <link:loc xlink:href="oesx-20170331.xsd#oesx_WellsFargoBankNationalAssociationMember" xlink:label="loc_oesx_WellsFargoBankNationalAssociationMember_FDE26620097636EAA9B664B04773DA1A" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_LineOfCreditFacilityLenderDomain_0E908916B6CD038CDD4F64B04773B315" xlink:to="loc_oesx_WellsFargoBankNationalAssociationMember_FDE26620097636EAA9B664B04773DA1A" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_DebtInstrumentAxis" xlink:label="loc_us-gaap_DebtInstrumentAxis_99CD11F499A2A472D3C564B0477361CA" xlink:type="locator" />
    <link:definitionArc order="2" xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_LineOfCreditFacilityTable_9E171FDC373D104A203664B04773442B" xlink:to="loc_us-gaap_DebtInstrumentAxis_99CD11F499A2A472D3C564B0477361CA" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_DebtInstrumentNameDomain" xlink:label="loc_us-gaap_DebtInstrumentNameDomain_5725FCCA357A6E18F1E264B04773BB45_default" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_DebtInstrumentAxis_99CD11F499A2A472D3C564B0477361CA" xlink:to="loc_us-gaap_DebtInstrumentNameDomain_5725FCCA357A6E18F1E264B04773BB45_default" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_DebtInstrumentNameDomain" xlink:label="loc_us-gaap_DebtInstrumentNameDomain_5725FCCA357A6E18F1E264B04773BB45" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_DebtInstrumentAxis_99CD11F499A2A472D3C564B0477361CA" xlink:to="loc_us-gaap_DebtInstrumentNameDomain_5725FCCA357A6E18F1E264B04773BB45" xlink:type="arc" />
    <link:loc xlink:href="oesx-20170331.xsd#oesx_CreditAgreementMember" xlink:label="loc_oesx_CreditAgreementMember_A7BA7FB1DDBBBCFE88AB64B047747EA3" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DebtInstrumentNameDomain_5725FCCA357A6E18F1E264B04773BB45" xlink:to="loc_oesx_CreditAgreementMember_A7BA7FB1DDBBBCFE88AB64B047747EA3" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_CreditFacilityAxis" xlink:label="loc_us-gaap_CreditFacilityAxis_684CB8101A4F54B2622664B04774458A" xlink:type="locator" />
    <link:definitionArc order="3" xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_LineOfCreditFacilityTable_9E171FDC373D104A203664B04773442B" xlink:to="loc_us-gaap_CreditFacilityAxis_684CB8101A4F54B2622664B04774458A" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_CreditFacilityDomain" xlink:label="loc_us-gaap_CreditFacilityDomain_0740CF15BAE4876F12C964B04774F4D0_default" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_CreditFacilityAxis_684CB8101A4F54B2622664B04774458A" xlink:to="loc_us-gaap_CreditFacilityDomain_0740CF15BAE4876F12C964B04774F4D0_default" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_CreditFacilityDomain" xlink:label="loc_us-gaap_CreditFacilityDomain_0740CF15BAE4876F12C964B04774F4D0" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_CreditFacilityAxis_684CB8101A4F54B2622664B04774458A" xlink:to="loc_us-gaap_CreditFacilityDomain_0740CF15BAE4876F12C964B04774F4D0" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_RevolvingCreditFacilityMember" xlink:label="loc_us-gaap_RevolvingCreditFacilityMember_5F607D5C90231B0EB26964B04774954B" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_CreditFacilityDomain_0740CF15BAE4876F12C964B04774F4D0" xlink:to="loc_us-gaap_RevolvingCreditFacilityMember_5F607D5C90231B0EB26964B04774954B" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_LetterOfCreditMember" xlink:label="loc_us-gaap_LetterOfCreditMember_04631415CB9FA03DE55064B04774BA1E" xlink:type="locator" />
    <link:definitionArc order="2" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_CreditFacilityDomain_0740CF15BAE4876F12C964B04774F4D0" xlink:to="loc_us-gaap_LetterOfCreditMember_04631415CB9FA03DE55064B04774BA1E" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_VariableRateAxis" xlink:label="loc_us-gaap_VariableRateAxis_B22CF5C35A8A408D6A6364B047745E52" xlink:type="locator" />
    <link:definitionArc order="4" xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_LineOfCreditFacilityTable_9E171FDC373D104A203664B04773442B" xlink:to="loc_us-gaap_VariableRateAxis_B22CF5C35A8A408D6A6364B047745E52" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_VariableRateDomain" xlink:label="loc_us-gaap_VariableRateDomain_EB8401EB98A8F562AC3864B047746C4F_default" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_VariableRateAxis_B22CF5C35A8A408D6A6364B047745E52" xlink:to="loc_us-gaap_VariableRateDomain_EB8401EB98A8F562AC3864B047746C4F_default" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_VariableRateDomain" xlink:label="loc_us-gaap_VariableRateDomain_EB8401EB98A8F562AC3864B047746C4F" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_VariableRateAxis_B22CF5C35A8A408D6A6364B047745E52" xlink:to="loc_us-gaap_VariableRateDomain_EB8401EB98A8F562AC3864B047746C4F" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_LondonInterbankOfferedRateLIBORMember" xlink:label="loc_us-gaap_LondonInterbankOfferedRateLIBORMember_B6E60C2D6E02E1CD437664B04774088D" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_VariableRateDomain_EB8401EB98A8F562AC3864B047746C4F" xlink:to="loc_us-gaap_LondonInterbankOfferedRateLIBORMember_B6E60C2D6E02E1CD437664B04774088D" xlink:type="arc" />
    <link:loc xlink:href="oesx-20170331.xsd#oesx_DebtTextualAbstract" xlink:label="loc_oesx_DebtTextualAbstract_359E2AA1343453889FCF64B0477451EB" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_LineOfCreditFacilityLineItems_77AE016450D1A661A49464B04774B0AC" xlink:to="loc_oesx_DebtTextualAbstract_359E2AA1343453889FCF64B0477451EB" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_LineOfCreditFacilityCurrentBorrowingCapacity" xlink:label="loc_us-gaap_LineOfCreditFacilityCurrentBorrowingCapacity_2A3B928BDF69C4678BAB64B04774A274" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_oesx_DebtTextualAbstract_359E2AA1343453889FCF64B0477451EB" xlink:to="loc_us-gaap_LineOfCreditFacilityCurrentBorrowingCapacity_2A3B928BDF69C4678BAB64B04774A274" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_LineOfCreditFacilityMaximumBorrowingCapacity" xlink:label="loc_us-gaap_LineOfCreditFacilityMaximumBorrowingCapacity_65BC926566E49ED5E72564B04774141A" xlink:type="locator" />
    <link:definitionArc order="2" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_oesx_DebtTextualAbstract_359E2AA1343453889FCF64B0477451EB" xlink:to="loc_us-gaap_LineOfCreditFacilityMaximumBorrowingCapacity_65BC926566E49ED5E72564B04774141A" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_LettersOfCreditOutstandingAmount" xlink:label="loc_us-gaap_LettersOfCreditOutstandingAmount_4ECD8D7CD48E05C8702764B04774EAEE" xlink:type="locator" />
    <link:definitionArc order="3" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_oesx_DebtTextualAbstract_359E2AA1343453889FCF64B0477451EB" xlink:to="loc_us-gaap_LettersOfCreditOutstandingAmount_4ECD8D7CD48E05C8702764B04774EAEE" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_LongTermLineOfCredit" xlink:label="loc_us-gaap_LongTermLineOfCredit_153E9DF442FD7CA510BD64B04774AEB9" xlink:type="locator" />
    <link:definitionArc order="4" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_oesx_DebtTextualAbstract_359E2AA1343453889FCF64B0477451EB" xlink:to="loc_us-gaap_LongTermLineOfCredit_153E9DF442FD7CA510BD64B04774AEB9" xlink:type="arc" />
    <link:loc xlink:href="oesx-20170331.xsd#oesx_LineofCreditFacilityAdditionalBorrowingCapacity" xlink:label="loc_oesx_LineofCreditFacilityAdditionalBorrowingCapacity_291C13B2C135CEDCCDAC64B047747F43" xlink:type="locator" />
    <link:definitionArc order="5" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_oesx_DebtTextualAbstract_359E2AA1343453889FCF64B0477451EB" xlink:to="loc_oesx_LineofCreditFacilityAdditionalBorrowingCapacity_291C13B2C135CEDCCDAC64B047747F43" xlink:type="arc" />
    <link:loc xlink:href="oesx-20170331.xsd#oesx_LineOfCreditFacilityPotentialMaximumBorrowingCapacity" xlink:label="loc_oesx_LineOfCreditFacilityPotentialMaximumBorrowingCapacity_A04D44CF47D0AA20892D64B04774455A" xlink:type="locator" />
    <link:definitionArc order="6" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_oesx_DebtTextualAbstract_359E2AA1343453889FCF64B0477451EB" xlink:to="loc_oesx_LineOfCreditFacilityPotentialMaximumBorrowingCapacity_A04D44CF47D0AA20892D64B04774455A" xlink:type="arc" />
    <link:loc xlink:href="oesx-20170331.xsd#oesx_LineofCreditFacilityCovenantTermsMinimumIndebtednessRatio" xlink:label="loc_oesx_LineofCreditFacilityCovenantTermsMinimumIndebtednessRatio_17EAB023C09BACD7813664B04774BD60" xlink:type="locator" />
    <link:definitionArc order="7" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_oesx_DebtTextualAbstract_359E2AA1343453889FCF64B0477451EB" xlink:to="loc_oesx_LineofCreditFacilityCovenantTermsMinimumIndebtednessRatio_17EAB023C09BACD7813664B04774BD60" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_DebtInstrumentBasisSpreadOnVariableRate1" xlink:label="loc_us-gaap_DebtInstrumentBasisSpreadOnVariableRate1_FA5B7C2E01B8F8E00DAB64B0477402A9" xlink:type="locator" />
    <link:definitionArc order="8" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_oesx_DebtTextualAbstract_359E2AA1343453889FCF64B0477451EB" xlink:to="loc_us-gaap_DebtInstrumentBasisSpreadOnVariableRate1_FA5B7C2E01B8F8E00DAB64B0477402A9" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_DebtInstrumentPeriodicPaymentInterest" xlink:label="loc_us-gaap_DebtInstrumentPeriodicPaymentInterest_BBA66CB277E769CA838464B04775C7F1" xlink:type="locator" />
    <link:definitionArc order="9" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_oesx_DebtTextualAbstract_359E2AA1343453889FCF64B0477451EB" xlink:to="loc_us-gaap_DebtInstrumentPeriodicPaymentInterest_BBA66CB277E769CA838464B04775C7F1" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_DebtInstrumentInterestRateEffectivePercentage" xlink:label="loc_us-gaap_DebtInstrumentInterestRateEffectivePercentage_A802EDFDE30CB2BEF1DE64B04775A811" xlink:type="locator" />
    <link:definitionArc order="10" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_oesx_DebtTextualAbstract_359E2AA1343453889FCF64B0477451EB" xlink:to="loc_us-gaap_DebtInstrumentInterestRateEffectivePercentage_A802EDFDE30CB2BEF1DE64B04775A811" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_LineOfCreditFacilityUnusedCapacityCommitmentFeePercentage" xlink:label="loc_us-gaap_LineOfCreditFacilityUnusedCapacityCommitmentFeePercentage_E38C6659277B06114F9164B04775F35A" xlink:type="locator" />
    <link:definitionArc order="11" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_oesx_DebtTextualAbstract_359E2AA1343453889FCF64B0477451EB" xlink:to="loc_us-gaap_LineOfCreditFacilityUnusedCapacityCommitmentFeePercentage_E38C6659277B06114F9164B04775F35A" xlink:type="arc" />
  </link:definitionLink>
  <link:definitionLink xlink:role="http://www.oesx.com/role/LongTermDebtSummaryOfDebtDetails" xlink:type="extended">
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_ExtinguishmentOfDebtLineItems" xlink:label="loc_us-gaap_ExtinguishmentOfDebtLineItems_74348BFCB3DB74E0CDC017352D07C83C" xlink:type="locator" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_ScheduleOfExtinguishmentOfDebtTable" xlink:label="loc_us-gaap_ScheduleOfExtinguishmentOfDebtTable_02982102570D9489EB8717352D061270" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/all" xlink:from="loc_us-gaap_ExtinguishmentOfDebtLineItems_74348BFCB3DB74E0CDC017352D07C83C" xlink:to="loc_us-gaap_ScheduleOfExtinguishmentOfDebtTable_02982102570D9489EB8717352D061270" xlink:type="arc" xbrldt:closed="true" xbrldt:contextElement="segment" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_ExtinguishmentOfDebtAxis" xlink:label="loc_us-gaap_ExtinguishmentOfDebtAxis_F6F9E8C808526C86B52A17352D06FB57" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_ScheduleOfExtinguishmentOfDebtTable_02982102570D9489EB8717352D061270" xlink:to="loc_us-gaap_ExtinguishmentOfDebtAxis_F6F9E8C808526C86B52A17352D06FB57" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_ExtinguishmentOfDebtTypeDomain" xlink:label="loc_us-gaap_ExtinguishmentOfDebtTypeDomain_43C1CD0D1A363E0A0F2717352D069BAA_default" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_ExtinguishmentOfDebtAxis_F6F9E8C808526C86B52A17352D06FB57" xlink:to="loc_us-gaap_ExtinguishmentOfDebtTypeDomain_43C1CD0D1A363E0A0F2717352D069BAA_default" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_ExtinguishmentOfDebtTypeDomain" xlink:label="loc_us-gaap_ExtinguishmentOfDebtTypeDomain_43C1CD0D1A363E0A0F2717352D069BAA" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_ExtinguishmentOfDebtAxis_F6F9E8C808526C86B52A17352D06FB57" xlink:to="loc_us-gaap_ExtinguishmentOfDebtTypeDomain_43C1CD0D1A363E0A0F2717352D069BAA" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_RevolvingCreditFacilityMember" xlink:label="loc_us-gaap_RevolvingCreditFacilityMember_30319B12B4F515FE680F17352D071F53" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ExtinguishmentOfDebtTypeDomain_43C1CD0D1A363E0A0F2717352D069BAA" xlink:to="loc_us-gaap_RevolvingCreditFacilityMember_30319B12B4F515FE680F17352D071F53" xlink:type="arc" />
    <link:loc xlink:href="oesx-20170331.xsd#oesx_HarrisSellersNoteMember" xlink:label="loc_oesx_HarrisSellersNoteMember_E52A65966EBB0FEE030B17352D072E92" xlink:type="locator" />
    <link:definitionArc order="2" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ExtinguishmentOfDebtTypeDomain_43C1CD0D1A363E0A0F2717352D069BAA" xlink:to="loc_oesx_HarrisSellersNoteMember_E52A65966EBB0FEE030B17352D072E92" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_CapitalLeaseObligationsMember" xlink:label="loc_us-gaap_CapitalLeaseObligationsMember_D13ABD0BD9C946FE58DC17352D07FFE9" xlink:type="locator" />
    <link:definitionArc order="3" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ExtinguishmentOfDebtTypeDomain_43C1CD0D1A363E0A0F2717352D069BAA" xlink:to="loc_us-gaap_CapitalLeaseObligationsMember_D13ABD0BD9C946FE58DC17352D07FFE9" xlink:type="arc" />
    <link:loc xlink:href="oesx-20170331.xsd#oesx_CustomerEquipmentFinanceNotesPayableMember" xlink:label="loc_oesx_CustomerEquipmentFinanceNotesPayableMember_BCB783130652EA2CCF7E17352D073A64" xlink:type="locator" />
    <link:definitionArc order="4" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ExtinguishmentOfDebtTypeDomain_43C1CD0D1A363E0A0F2717352D069BAA" xlink:to="loc_oesx_CustomerEquipmentFinanceNotesPayableMember_BCB783130652EA2CCF7E17352D073A64" xlink:type="arc" />
    <link:loc xlink:href="oesx-20170331.xsd#oesx_OtherLongTermDebtMember" xlink:label="loc_oesx_OtherLongTermDebtMember_8C19652CC70D3F3AC28817352D074F8C" xlink:type="locator" />
    <link:definitionArc order="5" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ExtinguishmentOfDebtTypeDomain_43C1CD0D1A363E0A0F2717352D069BAA" xlink:to="loc_oesx_OtherLongTermDebtMember_8C19652CC70D3F3AC28817352D074F8C" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_LongTermDebtByCurrentAndNoncurrentAbstract" xlink:label="loc_us-gaap_LongTermDebtByCurrentAndNoncurrentAbstract_7E7BAA19DE614425226917352D07A493" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ExtinguishmentOfDebtLineItems_74348BFCB3DB74E0CDC017352D07C83C" xlink:to="loc_us-gaap_LongTermDebtByCurrentAndNoncurrentAbstract_7E7BAA19DE614425226917352D07A493" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_LongTermDebt" xlink:label="loc_us-gaap_LongTermDebt_F176672258874D23716817352D082657" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_LongTermDebtByCurrentAndNoncurrentAbstract_7E7BAA19DE614425226917352D07A493" xlink:to="loc_us-gaap_LongTermDebt_F176672258874D23716817352D082657" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_LongTermDebtCurrent" xlink:label="loc_us-gaap_LongTermDebtCurrent_F346EAD950589EE338D017352D086A41" xlink:type="locator" />
    <link:definitionArc order="2" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_LongTermDebtByCurrentAndNoncurrentAbstract_7E7BAA19DE614425226917352D07A493" xlink:to="loc_us-gaap_LongTermDebtCurrent_F346EAD950589EE338D017352D086A41" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_LongTermDebtNoncurrent" xlink:label="loc_us-gaap_LongTermDebtNoncurrent_F6CE171AF42DD128B57A17352D0892E3" xlink:type="locator" />
    <link:definitionArc order="3" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_LongTermDebtByCurrentAndNoncurrentAbstract_7E7BAA19DE614425226917352D07A493" xlink:to="loc_us-gaap_LongTermDebtNoncurrent_F6CE171AF42DD128B57A17352D0892E3" 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/NetIncomeLossPerCommonShare" xlink:type="extended" />
  <link:definitionLink xlink:role="http://www.oesx.com/role/NetIncomeLossPerCommonShareDilutiveSecuritiesDetails" xlink:type="extended">
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_AntidilutiveSecuritiesExcludedFromComputationOfEarningsPerShareLineItems" xlink:label="loc_us-gaap_AntidilutiveSecuritiesExcludedFromComputationOfEarningsPerShareLineItems_75B75240E0DC5BD03C1D844B46D31B14" xlink:type="locator" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_ScheduleOfAntidilutiveSecuritiesExcludedFromComputationOfEarningsPerShareTable" xlink:label="loc_us-gaap_ScheduleOfAntidilutiveSecuritiesExcludedFromComputationOfEarningsPerShareTable_8BF85C2A3BD2950624AC844B46D30173" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/all" xlink:from="loc_us-gaap_AntidilutiveSecuritiesExcludedFromComputationOfEarningsPerShareLineItems_75B75240E0DC5BD03C1D844B46D31B14" xlink:to="loc_us-gaap_ScheduleOfAntidilutiveSecuritiesExcludedFromComputationOfEarningsPerShareTable_8BF85C2A3BD2950624AC844B46D30173" xlink:type="arc" xbrldt:closed="true" xbrldt:contextElement="segment" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_AntidilutiveSecuritiesExcludedFromComputationOfEarningsPerShareByAntidilutiveSecuritiesAxis" xlink:label="loc_us-gaap_AntidilutiveSecuritiesExcludedFromComputationOfEarningsPerShareByAntidilutiveSecuritiesAxis_4BAE478B9A40A28D6777844B46D3908B" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_ScheduleOfAntidilutiveSecuritiesExcludedFromComputationOfEarningsPerShareTable_8BF85C2A3BD2950624AC844B46D30173" xlink:to="loc_us-gaap_AntidilutiveSecuritiesExcludedFromComputationOfEarningsPerShareByAntidilutiveSecuritiesAxis_4BAE478B9A40A28D6777844B46D3908B" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_AntidilutiveSecuritiesNameDomain" xlink:label="loc_us-gaap_AntidilutiveSecuritiesNameDomain_F00DA0CA3C8C7C4D9C79844B46D37EBF_default" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_AntidilutiveSecuritiesExcludedFromComputationOfEarningsPerShareByAntidilutiveSecuritiesAxis_4BAE478B9A40A28D6777844B46D3908B" xlink:to="loc_us-gaap_AntidilutiveSecuritiesNameDomain_F00DA0CA3C8C7C4D9C79844B46D37EBF_default" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_AntidilutiveSecuritiesNameDomain" xlink:label="loc_us-gaap_AntidilutiveSecuritiesNameDomain_F00DA0CA3C8C7C4D9C79844B46D37EBF" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_AntidilutiveSecuritiesExcludedFromComputationOfEarningsPerShareByAntidilutiveSecuritiesAxis_4BAE478B9A40A28D6777844B46D3908B" xlink:to="loc_us-gaap_AntidilutiveSecuritiesNameDomain_F00DA0CA3C8C7C4D9C79844B46D37EBF" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_EmployeeStockOptionMember" xlink:label="loc_us-gaap_EmployeeStockOptionMember_0E379AD11473F59B5E0A844B46D36E72" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_AntidilutiveSecuritiesNameDomain_F00DA0CA3C8C7C4D9C79844B46D37EBF" xlink:to="loc_us-gaap_EmployeeStockOptionMember_0E379AD11473F59B5E0A844B46D36E72" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_RestrictedStockMember" xlink:label="loc_us-gaap_RestrictedStockMember_B14C27D76EE904DF4933844B46D3BFDF" xlink:type="locator" />
    <link:definitionArc order="2" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_AntidilutiveSecuritiesNameDomain_F00DA0CA3C8C7C4D9C79844B46D37EBF" xlink:to="loc_us-gaap_RestrictedStockMember_B14C27D76EE904DF4933844B46D3BFDF" xlink:type="arc" />
    <link:loc xlink:href="oesx-20170331.xsd#oesx_AntidilutiveSharesExcludedFromComputationOfEarningsPerShareAbstract" xlink:label="loc_oesx_AntidilutiveSharesExcludedFromComputationOfEarningsPerShareAbstract_625709BBC99BE03F3395844B46D3A18A" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_AntidilutiveSecuritiesExcludedFromComputationOfEarningsPerShareLineItems_75B75240E0DC5BD03C1D844B46D31B14" xlink:to="loc_oesx_AntidilutiveSharesExcludedFromComputationOfEarningsPerShareAbstract_625709BBC99BE03F3395844B46D3A18A" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_AntidilutiveSecuritiesExcludedFromComputationOfEarningsPerShareAmount" xlink:label="loc_us-gaap_AntidilutiveSecuritiesExcludedFromComputationOfEarningsPerShareAmount_B705CFF40069863CA138844B46D3DB8B" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_oesx_AntidilutiveSharesExcludedFromComputationOfEarningsPerShareAbstract_625709BBC99BE03F3395844B46D3A18A" xlink:to="loc_us-gaap_AntidilutiveSecuritiesExcludedFromComputationOfEarningsPerShareAmount_B705CFF40069863CA138844B46D3DB8B" xlink:type="arc" />
  </link:definitionLink>
  <link:definitionLink xlink:role="http://www.oesx.com/role/NetIncomeLossPerCommonShareEarningsPerShareDetails" xlink:type="extended" />
  <link:definitionLink xlink:role="http://www.oesx.com/role/NetIncomeLossPerCommonShareTables" xlink:type="extended" />
  <link:definitionLink xlink:role="http://www.oesx.com/role/OtherLongTermAssets" xlink:type="extended" />
  <link:definitionLink xlink:role="http://www.oesx.com/role/OtherLongTermAssetsNarrativeDetails" xlink:type="extended" />
  <link:definitionLink xlink:role="http://www.oesx.com/role/OtherLongTermAssetsSummaryOfOtherLongTermAssetsDetails" xlink:type="extended" />
  <link:definitionLink xlink:role="http://www.oesx.com/role/OtherLongTermAssetsTables" 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/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_CapitalLeasedAssetsLineItems" xlink:label="loc_us-gaap_CapitalLeasedAssetsLineItems_BFECE892ABC93C203E6641066B3A2D90" xlink:type="locator" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_ScheduleOfCapitalLeasedAsssetsTable" xlink:label="loc_us-gaap_ScheduleOfCapitalLeasedAsssetsTable_26CCBAB582110E1AF76441066B3A698D" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/all" xlink:from="loc_us-gaap_CapitalLeasedAssetsLineItems_BFECE892ABC93C203E6641066B3A2D90" xlink:to="loc_us-gaap_ScheduleOfCapitalLeasedAsssetsTable_26CCBAB582110E1AF76441066B3A698D" xlink:type="arc" xbrldt:closed="true" xbrldt:contextElement="segment" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_PropertyPlantAndEquipmentByTypeAxis" xlink:label="loc_us-gaap_PropertyPlantAndEquipmentByTypeAxis_233AFCEE17DEE212D5BA41066B3A5E13" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_ScheduleOfCapitalLeasedAsssetsTable_26CCBAB582110E1AF76441066B3A698D" xlink:to="loc_us-gaap_PropertyPlantAndEquipmentByTypeAxis_233AFCEE17DEE212D5BA41066B3A5E13" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_PropertyPlantAndEquipmentTypeDomain" xlink:label="loc_us-gaap_PropertyPlantAndEquipmentTypeDomain_168A449487D324E0B2AA41066B3AF510_default" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_PropertyPlantAndEquipmentByTypeAxis_233AFCEE17DEE212D5BA41066B3A5E13" xlink:to="loc_us-gaap_PropertyPlantAndEquipmentTypeDomain_168A449487D324E0B2AA41066B3AF510_default" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_PropertyPlantAndEquipmentTypeDomain" xlink:label="loc_us-gaap_PropertyPlantAndEquipmentTypeDomain_168A449487D324E0B2AA41066B3AF510" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_PropertyPlantAndEquipmentByTypeAxis_233AFCEE17DEE212D5BA41066B3A5E13" xlink:to="loc_us-gaap_PropertyPlantAndEquipmentTypeDomain_168A449487D324E0B2AA41066B3AF510" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_AssetsHeldUnderCapitalLeasesMember" xlink:label="loc_us-gaap_AssetsHeldUnderCapitalLeasesMember_70538BF54C563EF43E4D41066B3AB37F" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_PropertyPlantAndEquipmentTypeDomain_168A449487D324E0B2AA41066B3AF510" xlink:to="loc_us-gaap_AssetsHeldUnderCapitalLeasesMember_70538BF54C563EF43E4D41066B3AB37F" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_PropertyPlantAndEquipmentGross" xlink:label="loc_us-gaap_PropertyPlantAndEquipmentGross_B47033706617D13DE17D41066B3A70E3" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_CapitalLeasedAssetsLineItems_BFECE892ABC93C203E6641066B3A2D90" xlink:to="loc_us-gaap_PropertyPlantAndEquipmentGross_B47033706617D13DE17D41066B3A70E3" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_AccumulatedDepreciationDepletionAndAmortizationPropertyPlantAndEquipment" xlink:label="loc_us-gaap_AccumulatedDepreciationDepletionAndAmortizationPropertyPlantAndEquipment_57BE6585878BE65C5B0641066B3A9DBB" xlink:type="locator" />
    <link:definitionArc order="2" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_CapitalLeasedAssetsLineItems_BFECE892ABC93C203E6641066B3A2D90" xlink:to="loc_us-gaap_AccumulatedDepreciationDepletionAndAmortizationPropertyPlantAndEquipment_57BE6585878BE65C5B0641066B3A9DBB" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_PropertyPlantAndEquipmentNet" xlink:label="loc_us-gaap_PropertyPlantAndEquipmentNet_D0CE116E0DE9CE3539D241066B3A3EFC" xlink:type="locator" />
    <link:definitionArc order="3" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_CapitalLeasedAssetsLineItems_BFECE892ABC93C203E6641066B3A2D90" xlink:to="loc_us-gaap_PropertyPlantAndEquipmentNet_D0CE116E0DE9CE3539D241066B3A3EFC" xlink:type="arc" />
  </link:definitionLink>
  <link:definitionLink xlink:role="http://www.oesx.com/role/PropertyAndEquipmentNarrativeDetails" xlink:type="extended">
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_PropertyPlantAndEquipmentLineItems" xlink:label="loc_us-gaap_PropertyPlantAndEquipmentLineItems_9C690E3E20195EBF21808447AD3DF91E" xlink:type="locator" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_ScheduleOfPropertyPlantAndEquipmentTable" xlink:label="loc_us-gaap_ScheduleOfPropertyPlantAndEquipmentTable_CAEAA57E1D45DB9E8DCA8447AD3BD2DC" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/all" xlink:from="loc_us-gaap_PropertyPlantAndEquipmentLineItems_9C690E3E20195EBF21808447AD3DF91E" xlink:to="loc_us-gaap_ScheduleOfPropertyPlantAndEquipmentTable_CAEAA57E1D45DB9E8DCA8447AD3BD2DC" xlink:type="arc" xbrldt:closed="true" xbrldt:contextElement="segment" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_SaleLeasebackTransactionDescriptionAxis" xlink:label="loc_us-gaap_SaleLeasebackTransactionDescriptionAxis_25F3B72DC2B3F4B6E0068447AD3CDA55" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_ScheduleOfPropertyPlantAndEquipmentTable_CAEAA57E1D45DB9E8DCA8447AD3BD2DC" xlink:to="loc_us-gaap_SaleLeasebackTransactionDescriptionAxis_25F3B72DC2B3F4B6E0068447AD3CDA55" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_SaleLeasebackTransactionNameDomain" xlink:label="loc_us-gaap_SaleLeasebackTransactionNameDomain_448DC41DC2A3DAEEEB478447AD3C5D8E_default" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_SaleLeasebackTransactionDescriptionAxis_25F3B72DC2B3F4B6E0068447AD3CDA55" xlink:to="loc_us-gaap_SaleLeasebackTransactionNameDomain_448DC41DC2A3DAEEEB478447AD3C5D8E_default" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_SaleLeasebackTransactionNameDomain" xlink:label="loc_us-gaap_SaleLeasebackTransactionNameDomain_448DC41DC2A3DAEEEB478447AD3C5D8E" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_SaleLeasebackTransactionDescriptionAxis_25F3B72DC2B3F4B6E0068447AD3CDA55" xlink:to="loc_us-gaap_SaleLeasebackTransactionNameDomain_448DC41DC2A3DAEEEB478447AD3C5D8E" xlink:type="arc" />
    <link:loc xlink:href="oesx-20170331.xsd#oesx_ManitowocManufacturingandDistributionFacilityMember" xlink:label="loc_oesx_ManitowocManufacturingandDistributionFacilityMember_2D706B2A26359DA1FC7B8447AD3C8F06" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_SaleLeasebackTransactionNameDomain_448DC41DC2A3DAEEEB478447AD3C5D8E" xlink:to="loc_oesx_ManitowocManufacturingandDistributionFacilityMember_2D706B2A26359DA1FC7B8447AD3C8F06" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_ConsolidationItemsAxis" xlink:label="loc_us-gaap_ConsolidationItemsAxis_3E2CEDFE144DE3CF34EB8447AD3C4EB4" xlink:type="locator" />
    <link:definitionArc order="2" xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_ScheduleOfPropertyPlantAndEquipmentTable_CAEAA57E1D45DB9E8DCA8447AD3BD2DC" xlink:to="loc_us-gaap_ConsolidationItemsAxis_3E2CEDFE144DE3CF34EB8447AD3C4EB4" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_ConsolidationItemsDomain" xlink:label="loc_us-gaap_ConsolidationItemsDomain_6ACC185B4802C09CD7D38447AD3C4886_default" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_ConsolidationItemsAxis_3E2CEDFE144DE3CF34EB8447AD3C4EB4" xlink:to="loc_us-gaap_ConsolidationItemsDomain_6ACC185B4802C09CD7D38447AD3C4886_default" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_ConsolidationItemsDomain" xlink:label="loc_us-gaap_ConsolidationItemsDomain_6ACC185B4802C09CD7D38447AD3C4886" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_ConsolidationItemsAxis_3E2CEDFE144DE3CF34EB8447AD3C4EB4" xlink:to="loc_us-gaap_ConsolidationItemsDomain_6ACC185B4802C09CD7D38447AD3C4886" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_OperatingSegmentsMember" xlink:label="loc_us-gaap_OperatingSegmentsMember_0A954B303D8D5CA196368447AD3C6D11" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ConsolidationItemsDomain_6ACC185B4802C09CD7D38447AD3C4886" xlink:to="loc_us-gaap_OperatingSegmentsMember_0A954B303D8D5CA196368447AD3C6D11" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_StatementBusinessSegmentsAxis" xlink:label="loc_us-gaap_StatementBusinessSegmentsAxis_C6FEBB408D57F50AFC6E8447AD3C28CD" xlink:type="locator" />
    <link:definitionArc order="3" xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_ScheduleOfPropertyPlantAndEquipmentTable_CAEAA57E1D45DB9E8DCA8447AD3BD2DC" xlink:to="loc_us-gaap_StatementBusinessSegmentsAxis_C6FEBB408D57F50AFC6E8447AD3C28CD" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_SegmentDomain" xlink:label="loc_us-gaap_SegmentDomain_98989CF9734F5AF2FAF38447AD3CBB96_default" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_StatementBusinessSegmentsAxis_C6FEBB408D57F50AFC6E8447AD3C28CD" xlink:to="loc_us-gaap_SegmentDomain_98989CF9734F5AF2FAF38447AD3CBB96_default" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_SegmentDomain" xlink:label="loc_us-gaap_SegmentDomain_98989CF9734F5AF2FAF38447AD3CBB96" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_StatementBusinessSegmentsAxis_C6FEBB408D57F50AFC6E8447AD3C28CD" xlink:to="loc_us-gaap_SegmentDomain_98989CF9734F5AF2FAF38447AD3CBB96" xlink:type="arc" />
    <link:loc xlink:href="oesx-20170331.xsd#oesx_U.S.MarketsMember" xlink:label="loc_oesx_U.S.MarketsMember_9472D8F47EDD00D35FD78447AD3C29DA" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_SegmentDomain_98989CF9734F5AF2FAF38447AD3CBB96" xlink:to="loc_oesx_U.S.MarketsMember_9472D8F47EDD00D35FD78447AD3C29DA" xlink:type="arc" />
    <link:loc xlink:href="oesx-20170331.xsd#oesx_EngineeredSystemsMember" xlink:label="loc_oesx_EngineeredSystemsMember_186E629DD4A5726BB5568447AD3D7763" xlink:type="locator" />
    <link:definitionArc order="2" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_SegmentDomain_98989CF9734F5AF2FAF38447AD3CBB96" xlink:to="loc_oesx_EngineeredSystemsMember_186E629DD4A5726BB5568447AD3D7763" xlink:type="arc" />
    <link:loc xlink:href="oesx-20170331.xsd#oesx_DistributionServicesMember" xlink:label="loc_oesx_DistributionServicesMember_14E97EA84652D1D6B8798447AD3D7ACE" xlink:type="locator" />
    <link:definitionArc order="3" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_SegmentDomain_98989CF9734F5AF2FAF38447AD3CBB96" xlink:to="loc_oesx_DistributionServicesMember_14E97EA84652D1D6B8798447AD3D7ACE" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_PropertyPlantAndEquipmentByTypeAxis" xlink:label="loc_us-gaap_PropertyPlantAndEquipmentByTypeAxis_3C79DF7938EA7498BC828447AD3DEAE9" xlink:type="locator" />
    <link:definitionArc order="4" xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_ScheduleOfPropertyPlantAndEquipmentTable_CAEAA57E1D45DB9E8DCA8447AD3BD2DC" xlink:to="loc_us-gaap_PropertyPlantAndEquipmentByTypeAxis_3C79DF7938EA7498BC828447AD3DEAE9" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_PropertyPlantAndEquipmentTypeDomain" xlink:label="loc_us-gaap_PropertyPlantAndEquipmentTypeDomain_A821BAB48884C9D630528447AD3D5329_default" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_PropertyPlantAndEquipmentByTypeAxis_3C79DF7938EA7498BC828447AD3DEAE9" xlink:to="loc_us-gaap_PropertyPlantAndEquipmentTypeDomain_A821BAB48884C9D630528447AD3D5329_default" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_PropertyPlantAndEquipmentTypeDomain" xlink:label="loc_us-gaap_PropertyPlantAndEquipmentTypeDomain_A821BAB48884C9D630528447AD3D5329" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_PropertyPlantAndEquipmentByTypeAxis_3C79DF7938EA7498BC828447AD3DEAE9" xlink:to="loc_us-gaap_PropertyPlantAndEquipmentTypeDomain_A821BAB48884C9D630528447AD3D5329" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_ConstructionInProgressMember" xlink:label="loc_us-gaap_ConstructionInProgressMember_B804D64D42F331AA66028447AD3DBEB9" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_PropertyPlantAndEquipmentTypeDomain_A821BAB48884C9D630528447AD3D5329" xlink:to="loc_us-gaap_ConstructionInProgressMember_B804D64D42F331AA66028447AD3DBEB9" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_ImpairmentOfLongLivedAssetsHeldForUse" xlink:label="loc_us-gaap_ImpairmentOfLongLivedAssetsHeldForUse_1BF934C86411B6E61F1E844A045CBBF1" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_PropertyPlantAndEquipmentLineItems_9C690E3E20195EBF21808447AD3DF91E" xlink:to="loc_us-gaap_ImpairmentOfLongLivedAssetsHeldForUse_1BF934C86411B6E61F1E844A045CBBF1" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_SaleLeasebackTransactionGrossProceedsInvestingActivities" xlink:label="loc_us-gaap_SaleLeasebackTransactionGrossProceedsInvestingActivities_205F4ED920851854C97B8447AD3D8017" xlink:type="locator" />
    <link:definitionArc order="2" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_PropertyPlantAndEquipmentLineItems_9C690E3E20195EBF21808447AD3DF91E" xlink:to="loc_us-gaap_SaleLeasebackTransactionGrossProceedsInvestingActivities_205F4ED920851854C97B8447AD3D8017" xlink:type="arc" />
    <link:loc xlink:href="oesx-20170331.xsd#oesx_SaleLeasebackTransactionAreaofLeasedProperty" xlink:label="loc_oesx_SaleLeasebackTransactionAreaofLeasedProperty_2D648DBE7E84AAEAD3B98447AD3D8F40" xlink:type="locator" />
    <link:definitionArc order="3" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_PropertyPlantAndEquipmentLineItems_9C690E3E20195EBF21808447AD3DF91E" xlink:to="loc_oesx_SaleLeasebackTransactionAreaofLeasedProperty_2D648DBE7E84AAEAD3B98447AD3D8F40" xlink:type="arc" />
    <link:loc xlink:href="oesx-20170331.xsd#oesx_SaleLeasebackTransactionLeaseTerm" xlink:label="loc_oesx_SaleLeasebackTransactionLeaseTerm_BEA2FCE8042C0CCA0B748447AD3D17DF" xlink:type="locator" />
    <link:definitionArc order="4" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_PropertyPlantAndEquipmentLineItems_9C690E3E20195EBF21808447AD3DF91E" xlink:to="loc_oesx_SaleLeasebackTransactionLeaseTerm_BEA2FCE8042C0CCA0B748447AD3D17DF" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_ImpairmentOfRealEstate" xlink:label="loc_us-gaap_ImpairmentOfRealEstate_8E84A622EE70F4F0A0168447AD3D9F3A" xlink:type="locator" />
    <link:definitionArc order="5" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_PropertyPlantAndEquipmentLineItems_9C690E3E20195EBF21808447AD3DF91E" xlink:to="loc_us-gaap_ImpairmentOfRealEstate_8E84A622EE70F4F0A0168447AD3D9F3A" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_NumberOfReportableSegments" xlink:label="loc_us-gaap_NumberOfReportableSegments_2A282E1FC1DE737724BC8447AD3DA9B9" xlink:type="locator" />
    <link:definitionArc order="6" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_PropertyPlantAndEquipmentLineItems_9C690E3E20195EBF21808447AD3DF91E" xlink:to="loc_us-gaap_NumberOfReportableSegments_2A282E1FC1DE737724BC8447AD3DA9B9" xlink:type="arc" />
    <link:loc xlink:href="oesx-20170331.xsd#oesx_PropertyPlantandEquipmentImpairmentExpense" xlink:label="loc_oesx_PropertyPlantandEquipmentImpairmentExpense_43B3F1383AAF0AD27E628447AD3DE3BD" xlink:type="locator" />
    <link:definitionArc order="7" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_PropertyPlantAndEquipmentLineItems_9C690E3E20195EBF21808447AD3DF91E" xlink:to="loc_oesx_PropertyPlantandEquipmentImpairmentExpense_43B3F1383AAF0AD27E628447AD3DE3BD" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_Depreciation" xlink:label="loc_us-gaap_Depreciation_25B530506F9170FCF44F8447AD3D5EE9" xlink:type="locator" />
    <link:definitionArc order="8" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_PropertyPlantAndEquipmentLineItems_9C690E3E20195EBF21808447AD3DF91E" xlink:to="loc_us-gaap_Depreciation_25B530506F9170FCF44F8447AD3D5EE9" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_InterestCostsCapitalized" xlink:label="loc_us-gaap_InterestCostsCapitalized_4E3BD97BB32D36B85AD88447AD3DAA1B" xlink:type="locator" />
    <link:definitionArc order="9" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_PropertyPlantAndEquipmentLineItems_9C690E3E20195EBF21808447AD3DF91E" xlink:to="loc_us-gaap_InterestCostsCapitalized_4E3BD97BB32D36B85AD88447AD3DAA1B" xlink:type="arc" />
  </link:definitionLink>
  <link:definitionLink xlink:role="http://www.oesx.com/role/PropertyAndEquipmentSummaryOfPropertyAndEquipmentDetails" xlink:type="extended">
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_PropertyPlantAndEquipmentLineItems" xlink:label="loc_us-gaap_PropertyPlantAndEquipmentLineItems_3C3A1800D8F2B95D60C64106710AAE95" xlink:type="locator" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_ScheduleOfPropertyPlantAndEquipmentTable" xlink:label="loc_us-gaap_ScheduleOfPropertyPlantAndEquipmentTable_8CAA5814D0996BF7DDD84106710AD72E" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/all" xlink:from="loc_us-gaap_PropertyPlantAndEquipmentLineItems_3C3A1800D8F2B95D60C64106710AAE95" xlink:to="loc_us-gaap_ScheduleOfPropertyPlantAndEquipmentTable_8CAA5814D0996BF7DDD84106710AD72E" xlink:type="arc" xbrldt:closed="true" xbrldt:contextElement="segment" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_PropertyPlantAndEquipmentByTypeAxis" xlink:label="loc_us-gaap_PropertyPlantAndEquipmentByTypeAxis_3E34600DBC3CD6DC8D854106710A21A0" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_ScheduleOfPropertyPlantAndEquipmentTable_8CAA5814D0996BF7DDD84106710AD72E" xlink:to="loc_us-gaap_PropertyPlantAndEquipmentByTypeAxis_3E34600DBC3CD6DC8D854106710A21A0" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_PropertyPlantAndEquipmentTypeDomain" xlink:label="loc_us-gaap_PropertyPlantAndEquipmentTypeDomain_6FB57EBEF2BB3C79FD2F4106710A1A38_default" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_PropertyPlantAndEquipmentByTypeAxis_3E34600DBC3CD6DC8D854106710A21A0" xlink:to="loc_us-gaap_PropertyPlantAndEquipmentTypeDomain_6FB57EBEF2BB3C79FD2F4106710A1A38_default" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_PropertyPlantAndEquipmentTypeDomain" xlink:label="loc_us-gaap_PropertyPlantAndEquipmentTypeDomain_6FB57EBEF2BB3C79FD2F4106710A1A38" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_PropertyPlantAndEquipmentByTypeAxis_3E34600DBC3CD6DC8D854106710A21A0" xlink:to="loc_us-gaap_PropertyPlantAndEquipmentTypeDomain_6FB57EBEF2BB3C79FD2F4106710A1A38" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_LandImprovementsMember" xlink:label="loc_us-gaap_LandImprovementsMember_5D5E1A9B08D22683034A4106710A0591" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_PropertyPlantAndEquipmentTypeDomain_6FB57EBEF2BB3C79FD2F4106710A1A38" xlink:to="loc_us-gaap_LandImprovementsMember_5D5E1A9B08D22683034A4106710A0591" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_BuildingAndBuildingImprovementsMember" xlink:label="loc_us-gaap_BuildingAndBuildingImprovementsMember_3B2A53C907CE680505044106710A1595" xlink:type="locator" />
    <link:definitionArc order="2" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_PropertyPlantAndEquipmentTypeDomain_6FB57EBEF2BB3C79FD2F4106710A1A38" xlink:to="loc_us-gaap_BuildingAndBuildingImprovementsMember_3B2A53C907CE680505044106710A1595" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_FurnitureAndFixturesMember" xlink:label="loc_us-gaap_FurnitureAndFixturesMember_83835114BD4A592EB70A4106710AFEB4" xlink:type="locator" />
    <link:definitionArc order="3" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_PropertyPlantAndEquipmentTypeDomain_6FB57EBEF2BB3C79FD2F4106710A1A38" xlink:to="loc_us-gaap_FurnitureAndFixturesMember_83835114BD4A592EB70A4106710AFEB4" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_LeaseholdImprovementsMember" xlink:label="loc_us-gaap_LeaseholdImprovementsMember_E51AC456CB3B507A8F084106710A4EB0" xlink:type="locator" />
    <link:definitionArc order="4" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_PropertyPlantAndEquipmentTypeDomain_6FB57EBEF2BB3C79FD2F4106710A1A38" xlink:to="loc_us-gaap_LeaseholdImprovementsMember_E51AC456CB3B507A8F084106710A4EB0" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_EquipmentLeasedToOtherPartyMember" xlink:label="loc_us-gaap_EquipmentLeasedToOtherPartyMember_ABF6D4DE4A1E1C735B6B4106710A875F" xlink:type="locator" />
    <link:definitionArc order="5" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_PropertyPlantAndEquipmentTypeDomain_6FB57EBEF2BB3C79FD2F4106710A1A38" xlink:to="loc_us-gaap_EquipmentLeasedToOtherPartyMember_ABF6D4DE4A1E1C735B6B4106710A875F" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_PropertyPlantAndEquipmentOtherTypesMember" xlink:label="loc_us-gaap_PropertyPlantAndEquipmentOtherTypesMember_CFE15279EC37AD8B9BCC4106710A6318" xlink:type="locator" />
    <link:definitionArc order="6" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_PropertyPlantAndEquipmentTypeDomain_6FB57EBEF2BB3C79FD2F4106710A1A38" xlink:to="loc_us-gaap_PropertyPlantAndEquipmentOtherTypesMember_CFE15279EC37AD8B9BCC4106710A6318" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_ConstructionInProgressMember" xlink:label="loc_us-gaap_ConstructionInProgressMember_55905C3860AD6ECF59E04106710ACE74" xlink:type="locator" />
    <link:definitionArc order="7" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_PropertyPlantAndEquipmentTypeDomain_6FB57EBEF2BB3C79FD2F4106710A1A38" xlink:to="loc_us-gaap_ConstructionInProgressMember_55905C3860AD6ECF59E04106710ACE74" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_PropertyPlantAndEquipmentNetAbstract" xlink:label="loc_us-gaap_PropertyPlantAndEquipmentNetAbstract_6CF3DB270EF80E703CF54106710A520E" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_PropertyPlantAndEquipmentLineItems_3C3A1800D8F2B95D60C64106710AAE95" xlink:to="loc_us-gaap_PropertyPlantAndEquipmentNetAbstract_6CF3DB270EF80E703CF54106710A520E" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_PropertyPlantAndEquipmentGross" xlink:label="loc_us-gaap_PropertyPlantAndEquipmentGross_F6E8FB31B138637D5EA24106710A5DD0" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_PropertyPlantAndEquipmentNetAbstract_6CF3DB270EF80E703CF54106710A520E" xlink:to="loc_us-gaap_PropertyPlantAndEquipmentGross_F6E8FB31B138637D5EA24106710A5DD0" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_AccumulatedDepreciationDepletionAndAmortizationPropertyPlantAndEquipment" xlink:label="loc_us-gaap_AccumulatedDepreciationDepletionAndAmortizationPropertyPlantAndEquipment_9CF2747C0F6FDE84288C4106710A1BC2" xlink:type="locator" />
    <link:definitionArc order="2" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_PropertyPlantAndEquipmentNetAbstract_6CF3DB270EF80E703CF54106710A520E" xlink:to="loc_us-gaap_AccumulatedDepreciationDepletionAndAmortizationPropertyPlantAndEquipment_9CF2747C0F6FDE84288C4106710A1BC2" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_PropertyPlantAndEquipmentNet" xlink:label="loc_us-gaap_PropertyPlantAndEquipmentNet_37A94CDA9B43EAE1960C4106710B52B1" xlink:type="locator" />
    <link:definitionArc order="3" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_PropertyPlantAndEquipmentNetAbstract_6CF3DB270EF80E703CF54106710A520E" xlink:to="loc_us-gaap_PropertyPlantAndEquipmentNet_37A94CDA9B43EAE1960C4106710B52B1" 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/PropertyAndEquipmentUsefulLivesDetails" xlink:type="extended">
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_PropertyPlantAndEquipmentLineItems" xlink:label="loc_us-gaap_PropertyPlantAndEquipmentLineItems_D22E0550C50E7392C9FE64B047C20D5A" xlink:type="locator" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_ScheduleOfPropertyPlantAndEquipmentTable" xlink:label="loc_us-gaap_ScheduleOfPropertyPlantAndEquipmentTable_102F2E03D884709BE0C864B047C1BF43" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/all" xlink:from="loc_us-gaap_PropertyPlantAndEquipmentLineItems_D22E0550C50E7392C9FE64B047C20D5A" xlink:to="loc_us-gaap_ScheduleOfPropertyPlantAndEquipmentTable_102F2E03D884709BE0C864B047C1BF43" xlink:type="arc" xbrldt:closed="true" xbrldt:contextElement="segment" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_PropertyPlantAndEquipmentByTypeAxis" xlink:label="loc_us-gaap_PropertyPlantAndEquipmentByTypeAxis_B844D9664C919DC0AFC664B047C1926F" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_ScheduleOfPropertyPlantAndEquipmentTable_102F2E03D884709BE0C864B047C1BF43" xlink:to="loc_us-gaap_PropertyPlantAndEquipmentByTypeAxis_B844D9664C919DC0AFC664B047C1926F" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_PropertyPlantAndEquipmentTypeDomain" xlink:label="loc_us-gaap_PropertyPlantAndEquipmentTypeDomain_74C05AD05AEF028CF19A64B047C155E5_default" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_PropertyPlantAndEquipmentByTypeAxis_B844D9664C919DC0AFC664B047C1926F" xlink:to="loc_us-gaap_PropertyPlantAndEquipmentTypeDomain_74C05AD05AEF028CF19A64B047C155E5_default" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_PropertyPlantAndEquipmentTypeDomain" xlink:label="loc_us-gaap_PropertyPlantAndEquipmentTypeDomain_74C05AD05AEF028CF19A64B047C155E5" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_PropertyPlantAndEquipmentByTypeAxis_B844D9664C919DC0AFC664B047C1926F" xlink:to="loc_us-gaap_PropertyPlantAndEquipmentTypeDomain_74C05AD05AEF028CF19A64B047C155E5" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_LandImprovementsMember" xlink:label="loc_us-gaap_LandImprovementsMember_A35C4A1C3AB84D52FE4864B047C269CB" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_PropertyPlantAndEquipmentTypeDomain_74C05AD05AEF028CF19A64B047C155E5" xlink:to="loc_us-gaap_LandImprovementsMember_A35C4A1C3AB84D52FE4864B047C269CB" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_BuildingAndBuildingImprovementsMember" xlink:label="loc_us-gaap_BuildingAndBuildingImprovementsMember_8DE88AC334857DF8AF9964B047C24A3C" xlink:type="locator" />
    <link:definitionArc order="2" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_PropertyPlantAndEquipmentTypeDomain_74C05AD05AEF028CF19A64B047C155E5" xlink:to="loc_us-gaap_BuildingAndBuildingImprovementsMember_8DE88AC334857DF8AF9964B047C24A3C" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_FurnitureAndFixturesMember" xlink:label="loc_us-gaap_FurnitureAndFixturesMember_BAD9D1869B2EAE9462F864B047C2205B" xlink:type="locator" />
    <link:definitionArc order="3" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_PropertyPlantAndEquipmentTypeDomain_74C05AD05AEF028CF19A64B047C155E5" xlink:to="loc_us-gaap_FurnitureAndFixturesMember_BAD9D1869B2EAE9462F864B047C2205B" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_EquipmentLeasedToOtherPartyMember" xlink:label="loc_us-gaap_EquipmentLeasedToOtherPartyMember_F1A33701749CB11C36A964B047C2F069" xlink:type="locator" />
    <link:definitionArc order="4" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_PropertyPlantAndEquipmentTypeDomain_74C05AD05AEF028CF19A64B047C155E5" xlink:to="loc_us-gaap_EquipmentLeasedToOtherPartyMember_F1A33701749CB11C36A964B047C2F069" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_EquipmentMember" xlink:label="loc_us-gaap_EquipmentMember_90A2944D48E86B4E5A7064B047C295E5" xlink:type="locator" />
    <link:definitionArc order="5" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_PropertyPlantAndEquipmentTypeDomain_74C05AD05AEF028CF19A64B047C155E5" xlink:to="loc_us-gaap_EquipmentMember_90A2944D48E86B4E5A7064B047C295E5" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_RangeAxis" xlink:label="loc_us-gaap_RangeAxis_14827DCEC5000EECD1E964B047C2B80E" xlink:type="locator" />
    <link:definitionArc order="2" xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_ScheduleOfPropertyPlantAndEquipmentTable_102F2E03D884709BE0C864B047C1BF43" xlink:to="loc_us-gaap_RangeAxis_14827DCEC5000EECD1E964B047C2B80E" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_RangeMember" xlink:label="loc_us-gaap_RangeMember_6C89B95971689478503964B047C2FD8B_default" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_RangeAxis_14827DCEC5000EECD1E964B047C2B80E" xlink:to="loc_us-gaap_RangeMember_6C89B95971689478503964B047C2FD8B_default" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_RangeMember" xlink:label="loc_us-gaap_RangeMember_6C89B95971689478503964B047C2FD8B" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_RangeAxis_14827DCEC5000EECD1E964B047C2B80E" xlink:to="loc_us-gaap_RangeMember_6C89B95971689478503964B047C2FD8B" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_MinimumMember" xlink:label="loc_us-gaap_MinimumMember_7318C128F36143DE9F3964B047C25C80" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_RangeMember_6C89B95971689478503964B047C2FD8B" xlink:to="loc_us-gaap_MinimumMember_7318C128F36143DE9F3964B047C25C80" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_MaximumMember" xlink:label="loc_us-gaap_MaximumMember_4D249B1FA1F8383A190564B047C2080A" xlink:type="locator" />
    <link:definitionArc order="2" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_RangeMember_6C89B95971689478503964B047C2FD8B" xlink:to="loc_us-gaap_MaximumMember_4D249B1FA1F8383A190564B047C2080A" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_PropertyPlantAndEquipmentNetAbstract" xlink:label="loc_us-gaap_PropertyPlantAndEquipmentNetAbstract_9581B810C14E3391648064B047C2195C" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_PropertyPlantAndEquipmentLineItems_D22E0550C50E7392C9FE64B047C20D5A" xlink:to="loc_us-gaap_PropertyPlantAndEquipmentNetAbstract_9581B810C14E3391648064B047C2195C" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_PropertyPlantAndEquipmentUsefulLife" xlink:label="loc_us-gaap_PropertyPlantAndEquipmentUsefulLife_2A33C7678CBFA33D3B3E64B047C213A9" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_PropertyPlantAndEquipmentNetAbstract_9581B810C14E3391648064B047C2195C" xlink:to="loc_us-gaap_PropertyPlantAndEquipmentUsefulLife_2A33C7678CBFA33D3B3E64B047C213A9" xlink:type="arc" />
  </link:definitionLink>
  <link:definitionLink xlink:role="http://www.oesx.com/role/QuarterlyFinancialDataDetails" xlink:type="extended" />
  <link:definitionLink xlink:role="http://www.oesx.com/role/QuarterlyFinancialDataUnaudited" xlink:type="extended" />
  <link:definitionLink xlink:role="http://www.oesx.com/role/QuarterlyFinancialDataUnauditedTables" 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/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_RelatedPartyTransactionLineItems" xlink:label="loc_us-gaap_RelatedPartyTransactionLineItems_C48E4A63B9BAA322F1776031DCD45497" xlink:type="locator" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_ScheduleOfRelatedPartyTransactionsByRelatedPartyTable" xlink:label="loc_us-gaap_ScheduleOfRelatedPartyTransactionsByRelatedPartyTable_6C4FD0DF475520DD2DB66031DCD20929" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/all" xlink:from="loc_us-gaap_RelatedPartyTransactionLineItems_C48E4A63B9BAA322F1776031DCD45497" xlink:to="loc_us-gaap_ScheduleOfRelatedPartyTransactionsByRelatedPartyTable_6C4FD0DF475520DD2DB66031DCD20929" xlink:type="arc" xbrldt:closed="true" xbrldt:contextElement="segment" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_RelatedPartyTransactionsByRelatedPartyAxis" xlink:label="loc_us-gaap_RelatedPartyTransactionsByRelatedPartyAxis_725252FBF72A703F02076031DCD2F74C" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_ScheduleOfRelatedPartyTransactionsByRelatedPartyTable_6C4FD0DF475520DD2DB66031DCD20929" xlink:to="loc_us-gaap_RelatedPartyTransactionsByRelatedPartyAxis_725252FBF72A703F02076031DCD2F74C" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_RelatedPartyDomain" xlink:label="loc_us-gaap_RelatedPartyDomain_3DA2E25A124F0196C16E6031DCD2B725_default" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_RelatedPartyTransactionsByRelatedPartyAxis_725252FBF72A703F02076031DCD2F74C" xlink:to="loc_us-gaap_RelatedPartyDomain_3DA2E25A124F0196C16E6031DCD2B725_default" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_RelatedPartyDomain" xlink:label="loc_us-gaap_RelatedPartyDomain_3DA2E25A124F0196C16E6031DCD2B725" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_RelatedPartyTransactionsByRelatedPartyAxis_725252FBF72A703F02076031DCD2F74C" xlink:to="loc_us-gaap_RelatedPartyDomain_3DA2E25A124F0196C16E6031DCD2B725" xlink:type="arc" />
    <link:loc xlink:href="oesx-20170331.xsd#oesx_EntitythatCurrentDirectorOwnsMinorityInterestandServesasBoardofDirectorsChairmanMember" xlink:label="loc_oesx_EntitythatCurrentDirectorOwnsMinorityInterestandServesasBoardofDirectorsChairmanMember_D8451F8BE3542B5B7A1B6031DCD37964" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_RelatedPartyDomain_3DA2E25A124F0196C16E6031DCD2B725" xlink:to="loc_oesx_EntitythatCurrentDirectorOwnsMinorityInterestandServesasBoardofDirectorsChairmanMember_D8451F8BE3542B5B7A1B6031DCD37964" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_ImmediateFamilyMemberOfManagementOrPrincipalOwnerMember" xlink:label="loc_us-gaap_ImmediateFamilyMemberOfManagementOrPrincipalOwnerMember_9080A8D4057CA6BBABA76031DCD43E34" xlink:type="locator" />
    <link:definitionArc order="2" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_RelatedPartyDomain_3DA2E25A124F0196C16E6031DCD2B725" xlink:to="loc_us-gaap_ImmediateFamilyMemberOfManagementOrPrincipalOwnerMember_9080A8D4057CA6BBABA76031DCD43E34" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_RelatedPartyTransactionAxis" xlink:label="loc_us-gaap_RelatedPartyTransactionAxis_501A3C5C5784ACB08FD46031DCD4C69D" xlink:type="locator" />
    <link:definitionArc order="2" xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_ScheduleOfRelatedPartyTransactionsByRelatedPartyTable_6C4FD0DF475520DD2DB66031DCD20929" xlink:to="loc_us-gaap_RelatedPartyTransactionAxis_501A3C5C5784ACB08FD46031DCD4C69D" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_RelatedPartyTransactionDomain" xlink:label="loc_us-gaap_RelatedPartyTransactionDomain_266B3044568BCAB561296031DCD4F857_default" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_RelatedPartyTransactionAxis_501A3C5C5784ACB08FD46031DCD4C69D" xlink:to="loc_us-gaap_RelatedPartyTransactionDomain_266B3044568BCAB561296031DCD4F857_default" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_RelatedPartyTransactionDomain" xlink:label="loc_us-gaap_RelatedPartyTransactionDomain_266B3044568BCAB561296031DCD4F857" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_RelatedPartyTransactionAxis_501A3C5C5784ACB08FD46031DCD4C69D" xlink:to="loc_us-gaap_RelatedPartyTransactionDomain_266B3044568BCAB561296031DCD4F857" xlink:type="arc" />
    <link:loc xlink:href="oesx-20170331.xsd#oesx_ServicesPurchasedFromAnImmediateFamilyMemberOfAnExecutiveOfficerMember" xlink:label="loc_oesx_ServicesPurchasedFromAnImmediateFamilyMemberOfAnExecutiveOfficerMember_F94CB084CADEDF3FD9D66031DCD45F8B" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_RelatedPartyTransactionDomain_266B3044568BCAB561296031DCD4F857" xlink:to="loc_oesx_ServicesPurchasedFromAnImmediateFamilyMemberOfAnExecutiveOfficerMember_F94CB084CADEDF3FD9D66031DCD45F8B" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_RelatedPartyTransactionPurchasesFromRelatedParty" xlink:label="loc_us-gaap_RelatedPartyTransactionPurchasesFromRelatedParty_844A82368B5999BB3B636031DCD4D53D" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_RelatedPartyTransactionLineItems_C48E4A63B9BAA322F1776031DCD45497" xlink:to="loc_us-gaap_RelatedPartyTransactionPurchasesFromRelatedParty_844A82368B5999BB3B636031DCD4D53D" xlink:type="arc" />
  </link:definitionLink>
  <link:definitionLink xlink:role="http://www.oesx.com/role/ScheduleIiValuationAndQualifyingAccounts" xlink:type="extended" />
  <link:definitionLink xlink:role="http://www.oesx.com/role/ScheduleIiValuationAndQualifyingAccountsDetails" xlink:type="extended">
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_ValuationAndQualifyingAccountsDisclosureLineItems" xlink:label="loc_us-gaap_ValuationAndQualifyingAccountsDisclosureLineItems_ED717AA48172180A62786497D968F114" xlink:type="locator" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_ValuationAndQualifyingAccountsDisclosureTable" xlink:label="loc_us-gaap_ValuationAndQualifyingAccountsDisclosureTable_CAFB78756BAF6A6238D36497D9666670" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/all" xlink:from="loc_us-gaap_ValuationAndQualifyingAccountsDisclosureLineItems_ED717AA48172180A62786497D968F114" xlink:to="loc_us-gaap_ValuationAndQualifyingAccountsDisclosureTable_CAFB78756BAF6A6238D36497D9666670" xlink:type="arc" xbrldt:closed="true" xbrldt:contextElement="segment" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_ValuationAllowancesAndReservesTypeAxis" xlink:label="loc_us-gaap_ValuationAllowancesAndReservesTypeAxis_9ED14A7E5A2F35EB8E916497D96780A1" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_ValuationAndQualifyingAccountsDisclosureTable_CAFB78756BAF6A6238D36497D9666670" xlink:to="loc_us-gaap_ValuationAllowancesAndReservesTypeAxis_9ED14A7E5A2F35EB8E916497D96780A1" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_ValuationAllowancesAndReservesDomain" xlink:label="loc_us-gaap_ValuationAllowancesAndReservesDomain_127AA4931C906657EABA6497D967DDD7_default" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_ValuationAllowancesAndReservesTypeAxis_9ED14A7E5A2F35EB8E916497D96780A1" xlink:to="loc_us-gaap_ValuationAllowancesAndReservesDomain_127AA4931C906657EABA6497D967DDD7_default" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_ValuationAllowancesAndReservesDomain" xlink:label="loc_us-gaap_ValuationAllowancesAndReservesDomain_127AA4931C906657EABA6497D967DDD7" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_ValuationAllowancesAndReservesTypeAxis_9ED14A7E5A2F35EB8E916497D96780A1" xlink:to="loc_us-gaap_ValuationAllowancesAndReservesDomain_127AA4931C906657EABA6497D967DDD7" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_AllowanceForDoubtfulAccountsMember" xlink:label="loc_us-gaap_AllowanceForDoubtfulAccountsMember_B0686E01DB755AB6919B649831C6A5D4" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ValuationAllowancesAndReservesDomain_127AA4931C906657EABA6497D967DDD7" xlink:to="loc_us-gaap_AllowanceForDoubtfulAccountsMember_B0686E01DB755AB6919B649831C6A5D4" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_InventoryValuationReserveMember" xlink:label="loc_us-gaap_InventoryValuationReserveMember_3014D01E9DCBCA3F28B564988A89B49D" xlink:type="locator" />
    <link:definitionArc order="2" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ValuationAllowancesAndReservesDomain_127AA4931C906657EABA6497D967DDD7" xlink:to="loc_us-gaap_InventoryValuationReserveMember_3014D01E9DCBCA3F28B564988A89B49D" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_MovementInValuationAllowancesAndReservesRollForward" xlink:label="loc_us-gaap_MovementInValuationAllowancesAndReservesRollForward_10B0BB768873C2E955B56499030FB4B3" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ValuationAndQualifyingAccountsDisclosureLineItems_ED717AA48172180A62786497D968F114" xlink:to="loc_us-gaap_MovementInValuationAllowancesAndReservesRollForward_10B0BB768873C2E955B56499030FB4B3" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_ValuationAllowancesAndReservesBalance" xlink:label="loc_us-gaap_ValuationAllowancesAndReservesBalance_53BAEE6B71626834531A64979C617CA2" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_MovementInValuationAllowancesAndReservesRollForward_10B0BB768873C2E955B56499030FB4B3" xlink:to="loc_us-gaap_ValuationAllowancesAndReservesBalance_53BAEE6B71626834531A64979C617CA2" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_ValuationAllowancesAndReservesChargedToCostAndExpense" xlink:label="loc_us-gaap_ValuationAllowancesAndReservesChargedToCostAndExpense_9F4520CCCFF50E1EF1896499C9322D1A" xlink:type="locator" />
    <link:definitionArc order="2" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_MovementInValuationAllowancesAndReservesRollForward_10B0BB768873C2E955B56499030FB4B3" xlink:to="loc_us-gaap_ValuationAllowancesAndReservesChargedToCostAndExpense_9F4520CCCFF50E1EF1896499C9322D1A" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_ValuationAllowancesAndReservesDeductions" xlink:label="loc_us-gaap_ValuationAllowancesAndReservesDeductions_B7146E8BC3B49BEF61D1649A4B0EA1A6" xlink:type="locator" />
    <link:definitionArc order="3" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_MovementInValuationAllowancesAndReservesRollForward_10B0BB768873C2E955B56499030FB4B3" xlink:to="loc_us-gaap_ValuationAllowancesAndReservesDeductions_B7146E8BC3B49BEF61D1649A4B0EA1A6" xlink:type="arc" />
  </link:definitionLink>
  <link:definitionLink xlink:role="http://www.oesx.com/role/SegmentData" xlink:type="extended" />
  <link:definitionLink xlink:role="http://www.oesx.com/role/SegmentDataReconciliationOfSegmentAssetsAndLiabilitiesDetails" xlink:type="extended">
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_SegmentReportingInformationLineItems" xlink:label="loc_us-gaap_SegmentReportingInformationLineItems_F04E6F5365A3D99CF9D7FCCAD17EF64A" xlink:type="locator" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_ScheduleOfSegmentReportingInformationBySegmentTable" xlink:label="loc_us-gaap_ScheduleOfSegmentReportingInformationBySegmentTable_DC6AFAF9B9A6E41775EBFCCAD17D9098" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/all" xlink:from="loc_us-gaap_SegmentReportingInformationLineItems_F04E6F5365A3D99CF9D7FCCAD17EF64A" xlink:to="loc_us-gaap_ScheduleOfSegmentReportingInformationBySegmentTable_DC6AFAF9B9A6E41775EBFCCAD17D9098" xlink:type="arc" xbrldt:closed="true" xbrldt:contextElement="segment" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_StatementBusinessSegmentsAxis" xlink:label="loc_us-gaap_StatementBusinessSegmentsAxis_7B414EB14C18C04E7630FCCAD17DDFA3" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_ScheduleOfSegmentReportingInformationBySegmentTable_DC6AFAF9B9A6E41775EBFCCAD17D9098" xlink:to="loc_us-gaap_StatementBusinessSegmentsAxis_7B414EB14C18C04E7630FCCAD17DDFA3" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_SegmentDomain" xlink:label="loc_us-gaap_SegmentDomain_C80554B16105681EF418FCCAD17ED483_default" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_StatementBusinessSegmentsAxis_7B414EB14C18C04E7630FCCAD17DDFA3" xlink:to="loc_us-gaap_SegmentDomain_C80554B16105681EF418FCCAD17ED483_default" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_SegmentDomain" xlink:label="loc_us-gaap_SegmentDomain_C80554B16105681EF418FCCAD17ED483" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_StatementBusinessSegmentsAxis_7B414EB14C18C04E7630FCCAD17DDFA3" xlink:to="loc_us-gaap_SegmentDomain_C80554B16105681EF418FCCAD17ED483" xlink:type="arc" />
    <link:loc xlink:href="oesx-20170331.xsd#oesx_U.S.MarketsMember" xlink:label="loc_oesx_U.S.MarketsMember_7F0D9AE32EA52BFBA181FCCAD17E912E" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_SegmentDomain_C80554B16105681EF418FCCAD17ED483" xlink:to="loc_oesx_U.S.MarketsMember_7F0D9AE32EA52BFBA181FCCAD17E912E" xlink:type="arc" />
    <link:loc xlink:href="oesx-20170331.xsd#oesx_EngineeredSystemsMember" xlink:label="loc_oesx_EngineeredSystemsMember_F9CBCF1912AE84D9BD37FCCAD17E8BA3" xlink:type="locator" />
    <link:definitionArc order="2" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_SegmentDomain_C80554B16105681EF418FCCAD17ED483" xlink:to="loc_oesx_EngineeredSystemsMember_F9CBCF1912AE84D9BD37FCCAD17E8BA3" xlink:type="arc" />
    <link:loc xlink:href="oesx-20170331.xsd#oesx_DistributionServicesMember" xlink:label="loc_oesx_DistributionServicesMember_4B8E1693F525713F401BFCCAD17EC6A0" xlink:type="locator" />
    <link:definitionArc order="3" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_SegmentDomain_C80554B16105681EF418FCCAD17ED483" xlink:to="loc_oesx_DistributionServicesMember_4B8E1693F525713F401BFCCAD17EC6A0" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_CorporateAndOtherMember" xlink:label="loc_us-gaap_CorporateAndOtherMember_A2DC3642E9332A5C3BE8FCCAD17E134F" xlink:type="locator" />
    <link:definitionArc order="4" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_SegmentDomain_C80554B16105681EF418FCCAD17ED483" xlink:to="loc_us-gaap_CorporateAndOtherMember_A2DC3642E9332A5C3BE8FCCAD17E134F" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_SegmentReportingInformationRevenueAbstract" xlink:label="loc_us-gaap_SegmentReportingInformationRevenueAbstract_1C8F346E02195669C8ABFCCAD17E9AD4" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_SegmentReportingInformationLineItems_F04E6F5365A3D99CF9D7FCCAD17EF64A" xlink:to="loc_us-gaap_SegmentReportingInformationRevenueAbstract_1C8F346E02195669C8ABFCCAD17E9AD4" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_Assets" xlink:label="loc_us-gaap_Assets_9786F17DD324C5D17EC0FCCAD17F1AE4" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_SegmentReportingInformationRevenueAbstract_1C8F346E02195669C8ABFCCAD17E9AD4" xlink:to="loc_us-gaap_Assets_9786F17DD324C5D17EC0FCCAD17F1AE4" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_DeferredRevenue" xlink:label="loc_us-gaap_DeferredRevenue_C91F77C56BFF234A126AFCCAD17FA22D" xlink:type="locator" />
    <link:definitionArc order="2" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_SegmentReportingInformationRevenueAbstract_1C8F346E02195669C8ABFCCAD17E9AD4" xlink:to="loc_us-gaap_DeferredRevenue_C91F77C56BFF234A126AFCCAD17FA22D" xlink:type="arc" />
  </link:definitionLink>
  <link:definitionLink xlink:role="http://www.oesx.com/role/SegmentDataReconciliationOfSegmentOperationsDetails" xlink:type="extended">
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_SegmentReportingInformationLineItems" xlink:label="loc_us-gaap_SegmentReportingInformationLineItems_7B6BF646A5317343B2DEFCCAD1852908" xlink:type="locator" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_ScheduleOfSegmentReportingInformationBySegmentTable" xlink:label="loc_us-gaap_ScheduleOfSegmentReportingInformationBySegmentTable_6DA290A42E65151BA9C8FCCAD18442F1" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/all" xlink:from="loc_us-gaap_SegmentReportingInformationLineItems_7B6BF646A5317343B2DEFCCAD1852908" xlink:to="loc_us-gaap_ScheduleOfSegmentReportingInformationBySegmentTable_6DA290A42E65151BA9C8FCCAD18442F1" xlink:type="arc" xbrldt:closed="true" xbrldt:contextElement="segment" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_StatementBusinessSegmentsAxis" xlink:label="loc_us-gaap_StatementBusinessSegmentsAxis_9CF8BA3825FD9AF79166FCCAD1847935" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_ScheduleOfSegmentReportingInformationBySegmentTable_6DA290A42E65151BA9C8FCCAD18442F1" xlink:to="loc_us-gaap_StatementBusinessSegmentsAxis_9CF8BA3825FD9AF79166FCCAD1847935" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_SegmentDomain" xlink:label="loc_us-gaap_SegmentDomain_541FF8A0E12DD9940CC8FCCAD184BC51_default" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_StatementBusinessSegmentsAxis_9CF8BA3825FD9AF79166FCCAD1847935" xlink:to="loc_us-gaap_SegmentDomain_541FF8A0E12DD9940CC8FCCAD184BC51_default" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_SegmentDomain" xlink:label="loc_us-gaap_SegmentDomain_541FF8A0E12DD9940CC8FCCAD184BC51" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_StatementBusinessSegmentsAxis_9CF8BA3825FD9AF79166FCCAD1847935" xlink:to="loc_us-gaap_SegmentDomain_541FF8A0E12DD9940CC8FCCAD184BC51" xlink:type="arc" />
    <link:loc xlink:href="oesx-20170331.xsd#oesx_U.S.MarketsMember" xlink:label="loc_oesx_U.S.MarketsMember_42ED7FEF290A1413CC9AFCCAD185B5C8" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_SegmentDomain_541FF8A0E12DD9940CC8FCCAD184BC51" xlink:to="loc_oesx_U.S.MarketsMember_42ED7FEF290A1413CC9AFCCAD185B5C8" xlink:type="arc" />
    <link:loc xlink:href="oesx-20170331.xsd#oesx_EngineeredSystemsMember" xlink:label="loc_oesx_EngineeredSystemsMember_D39C0338402F8A197CB4FCCAD185AEAD" xlink:type="locator" />
    <link:definitionArc order="2" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_SegmentDomain_541FF8A0E12DD9940CC8FCCAD184BC51" xlink:to="loc_oesx_EngineeredSystemsMember_D39C0338402F8A197CB4FCCAD185AEAD" xlink:type="arc" />
    <link:loc xlink:href="oesx-20170331.xsd#oesx_DistributionServicesMember" xlink:label="loc_oesx_DistributionServicesMember_4EBAEC85695DC7626077FCCAD18522DF" xlink:type="locator" />
    <link:definitionArc order="3" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_SegmentDomain_541FF8A0E12DD9940CC8FCCAD184BC51" xlink:to="loc_oesx_DistributionServicesMember_4EBAEC85695DC7626077FCCAD18522DF" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_CorporateAndOtherMember" xlink:label="loc_us-gaap_CorporateAndOtherMember_743A2CFAB3CBC66AB794FCCAD18596B1" xlink:type="locator" />
    <link:definitionArc order="4" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_SegmentDomain_541FF8A0E12DD9940CC8FCCAD184BC51" xlink:to="loc_us-gaap_CorporateAndOtherMember_743A2CFAB3CBC66AB794FCCAD18596B1" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_SegmentReportingInformationRevenueAbstract" xlink:label="loc_us-gaap_SegmentReportingInformationRevenueAbstract_A7292A446423D59C74C3FCCAD185D099" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_SegmentReportingInformationLineItems_7B6BF646A5317343B2DEFCCAD1852908" xlink:to="loc_us-gaap_SegmentReportingInformationRevenueAbstract_A7292A446423D59C74C3FCCAD185D099" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_Revenues" xlink:label="loc_us-gaap_Revenues_32209B0E6B54AFF61938FCCAD185FB3E" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_SegmentReportingInformationRevenueAbstract_A7292A446423D59C74C3FCCAD185D099" xlink:to="loc_us-gaap_Revenues_32209B0E6B54AFF61938FCCAD185FB3E" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_OperatingIncomeLoss" xlink:label="loc_us-gaap_OperatingIncomeLoss_722AFC0DF12F388FE523FCCAD1855662" xlink:type="locator" />
    <link:definitionArc order="2" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_SegmentReportingInformationRevenueAbstract_A7292A446423D59C74C3FCCAD185D099" xlink:to="loc_us-gaap_OperatingIncomeLoss_722AFC0DF12F388FE523FCCAD1855662" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_DepreciationDepletionAndAmortization" xlink:label="loc_us-gaap_DepreciationDepletionAndAmortization_05F50DE0A2F2690183F5FCCAD185FAC5" xlink:type="locator" />
    <link:definitionArc order="3" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_SegmentReportingInformationRevenueAbstract_A7292A446423D59C74C3FCCAD185D099" xlink:to="loc_us-gaap_DepreciationDepletionAndAmortization_05F50DE0A2F2690183F5FCCAD185FAC5" xlink:type="arc" />
    <link:loc xlink:href="oesx-20170331.xsd#oesx_PaymentsToAcquirePropertyPlantAndEquipmentAndProductiveAssets" xlink:label="loc_oesx_PaymentsToAcquirePropertyPlantAndEquipmentAndProductiveAssets_40017BD124B94F46A45AFCCAD1867BF6" xlink:type="locator" />
    <link:definitionArc order="4" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_SegmentReportingInformationRevenueAbstract_A7292A446423D59C74C3FCCAD185D099" xlink:to="loc_oesx_PaymentsToAcquirePropertyPlantAndEquipmentAndProductiveAssets_40017BD124B94F46A45AFCCAD1867BF6" xlink:type="arc" />
  </link:definitionLink>
  <link:definitionLink xlink:role="http://www.oesx.com/role/SegmentDataTables" 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/ShareholdersEquityNarrativeDetails" xlink:type="extended">
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_EquityClassOfTreasuryStockLineItems" xlink:label="loc_us-gaap_EquityClassOfTreasuryStockLineItems_E236F39D3D038A59D0D741088233862B" xlink:type="locator" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_ClassOfTreasuryStockTable" xlink:label="loc_us-gaap_ClassOfTreasuryStockTable_D3F53E20232D984AC75C41088232CF0B" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/all" xlink:from="loc_us-gaap_EquityClassOfTreasuryStockLineItems_E236F39D3D038A59D0D741088233862B" xlink:to="loc_us-gaap_ClassOfTreasuryStockTable_D3F53E20232D984AC75C41088232CF0B" xlink:type="arc" xbrldt:closed="true" xbrldt:contextElement="segment" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_ShareRepurchaseProgramAxis" xlink:label="loc_us-gaap_ShareRepurchaseProgramAxis_C01C7BA26672930F6B664108823341EF" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_ClassOfTreasuryStockTable_D3F53E20232D984AC75C41088232CF0B" xlink:to="loc_us-gaap_ShareRepurchaseProgramAxis_C01C7BA26672930F6B664108823341EF" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_ShareRepurchaseProgramDomain" xlink:label="loc_us-gaap_ShareRepurchaseProgramDomain_90BCB449375C4922E8F741088233B989_default" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_ShareRepurchaseProgramAxis_C01C7BA26672930F6B664108823341EF" xlink:to="loc_us-gaap_ShareRepurchaseProgramDomain_90BCB449375C4922E8F741088233B989_default" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_ShareRepurchaseProgramDomain" xlink:label="loc_us-gaap_ShareRepurchaseProgramDomain_90BCB449375C4922E8F741088233B989" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_ShareRepurchaseProgramAxis_C01C7BA26672930F6B664108823341EF" xlink:to="loc_us-gaap_ShareRepurchaseProgramDomain_90BCB449375C4922E8F741088233B989" xlink:type="arc" />
    <link:loc xlink:href="oesx-20170331.xsd#oesx_October2011Member" xlink:label="loc_oesx_October2011Member_6CA26ED57B9D6A40138841088233AFA5" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ShareRepurchaseProgramDomain_90BCB449375C4922E8F741088233B989" xlink:to="loc_oesx_October2011Member_6CA26ED57B9D6A40138841088233AFA5" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_StockIssuedDuringPeriodSharesNewIssues" xlink:label="loc_us-gaap_StockIssuedDuringPeriodSharesNewIssues_80ED3AC19D3D23DE41D3410882331E2D" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_EquityClassOfTreasuryStockLineItems_E236F39D3D038A59D0D741088233862B" xlink:to="loc_us-gaap_StockIssuedDuringPeriodSharesNewIssues_80ED3AC19D3D23DE41D3410882331E2D" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_SharesIssuedPricePerShare" xlink:label="loc_us-gaap_SharesIssuedPricePerShare_9D3513C0B77585CEF323410882339C19" xlink:type="locator" />
    <link:definitionArc order="2" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_EquityClassOfTreasuryStockLineItems_E236F39D3D038A59D0D741088233862B" xlink:to="loc_us-gaap_SharesIssuedPricePerShare_9D3513C0B77585CEF323410882339C19" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_ProceedsFromIssuanceOfCommonStock" xlink:label="loc_us-gaap_ProceedsFromIssuanceOfCommonStock_FE2B999AB652A2C3613641088233180E" xlink:type="locator" />
    <link:definitionArc order="3" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_EquityClassOfTreasuryStockLineItems_E236F39D3D038A59D0D741088233862B" xlink:to="loc_us-gaap_ProceedsFromIssuanceOfCommonStock_FE2B999AB652A2C3613641088233180E" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_StockRepurchaseProgramAuthorizedAmount1" xlink:label="loc_us-gaap_StockRepurchaseProgramAuthorizedAmount1_1233309D0E2201929DD041088233C17C" xlink:type="locator" />
    <link:definitionArc order="4" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_EquityClassOfTreasuryStockLineItems_E236F39D3D038A59D0D741088233862B" xlink:to="loc_us-gaap_StockRepurchaseProgramAuthorizedAmount1_1233309D0E2201929DD041088233C17C" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_TreasuryStockSharesAcquired" xlink:label="loc_us-gaap_TreasuryStockSharesAcquired_F021953F868083E3CEEF41088233928A" xlink:type="locator" />
    <link:definitionArc order="5" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_EquityClassOfTreasuryStockLineItems_E236F39D3D038A59D0D741088233862B" xlink:to="loc_us-gaap_TreasuryStockSharesAcquired_F021953F868083E3CEEF41088233928A" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_PaymentsForRepurchaseOfCommonStock" xlink:label="loc_us-gaap_PaymentsForRepurchaseOfCommonStock_DDE85FACE35A49C0C93C4108823327C7" xlink:type="locator" />
    <link:definitionArc order="6" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_EquityClassOfTreasuryStockLineItems_E236F39D3D038A59D0D741088233862B" xlink:to="loc_us-gaap_PaymentsForRepurchaseOfCommonStock_DDE85FACE35A49C0C93C4108823327C7" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_ClassOfWarrantOrRightNumberOfSecuritiesCalledByEachWarrantOrRight" xlink:label="loc_us-gaap_ClassOfWarrantOrRightNumberOfSecuritiesCalledByEachWarrantOrRight_EE5468E2A895341948A5410882333193" xlink:type="locator" />
    <link:definitionArc order="7" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_EquityClassOfTreasuryStockLineItems_E236F39D3D038A59D0D741088233862B" xlink:to="loc_us-gaap_ClassOfWarrantOrRightNumberOfSecuritiesCalledByEachWarrantOrRight_EE5468E2A895341948A5410882333193" xlink:type="arc" />
    <link:loc xlink:href="oesx-20170331.xsd#oesx_RightIssueSharePrice" xlink:label="loc_oesx_RightIssueSharePrice_7F09F78B780A016706B34108823349BC" xlink:type="locator" />
    <link:definitionArc order="8" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_EquityClassOfTreasuryStockLineItems_E236F39D3D038A59D0D741088233862B" xlink:to="loc_oesx_RightIssueSharePrice_7F09F78B780A016706B34108823349BC" xlink:type="arc" />
    <link:loc xlink:href="oesx-20170331.xsd#oesx_MinimumSubscriptionPercentage" xlink:label="loc_oesx_MinimumSubscriptionPercentage_4AE91488D2617681851D410882330FCA" xlink:type="locator" />
    <link:definitionArc order="9" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_EquityClassOfTreasuryStockLineItems_E236F39D3D038A59D0D741088233862B" xlink:to="loc_oesx_MinimumSubscriptionPercentage_4AE91488D2617681851D410882330FCA" xlink:type="arc" />
    <link:loc xlink:href="oesx-20170331.xsd#oesx_RightsDistributionDateTriggerNumberOfBusinessDaysAfterCommencementOrOfferOfAcquisition" xlink:label="loc_oesx_RightsDistributionDateTriggerNumberOfBusinessDaysAfterCommencementOrOfferOfAcquisition_284716300EC30177CE8F41088233719C" xlink:type="locator" />
    <link:definitionArc order="10" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_EquityClassOfTreasuryStockLineItems_E236F39D3D038A59D0D741088233862B" xlink:to="loc_oesx_RightsDistributionDateTriggerNumberOfBusinessDaysAfterCommencementOrOfferOfAcquisition_284716300EC30177CE8F41088233719C" xlink:type="arc" />
    <link:loc xlink:href="oesx-20170331.xsd#oesx_AcquisitionShareVoidPercentage" xlink:label="loc_oesx_AcquisitionShareVoidPercentage_ABA4BE1956FE0088960A41088233764A" xlink:type="locator" />
    <link:definitionArc order="11" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_EquityClassOfTreasuryStockLineItems_E236F39D3D038A59D0D741088233862B" xlink:to="loc_oesx_AcquisitionShareVoidPercentage_ABA4BE1956FE0088960A41088233764A" xlink:type="arc" />
    <link:loc xlink:href="oesx-20170331.xsd#oesx_SharePurchaseRightsRedemptionPrice" xlink:label="loc_oesx_SharePurchaseRightsRedemptionPrice_9DA10E08AEE67B4E1396410882333BB9" xlink:type="locator" />
    <link:definitionArc order="12" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_EquityClassOfTreasuryStockLineItems_E236F39D3D038A59D0D741088233862B" xlink:to="loc_oesx_SharePurchaseRightsRedemptionPrice_9DA10E08AEE67B4E1396410882333BB9" xlink:type="arc" />
    <link:loc xlink:href="oesx-20170331.xsd#oesx_EmployeeStockPurchasePlansSharesAuthorized" xlink:label="loc_oesx_EmployeeStockPurchasePlansSharesAuthorized_16EFA462F93721F9658341088233666D" xlink:type="locator" />
    <link:definitionArc order="13" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_EquityClassOfTreasuryStockLineItems_E236F39D3D038A59D0D741088233862B" xlink:to="loc_oesx_EmployeeStockPurchasePlansSharesAuthorized_16EFA462F93721F9658341088233666D" xlink:type="arc" />
    <link:loc xlink:href="oesx-20170331.xsd#oesx_MaximumAmountLimitForEmployeeStockPurchasePlanPerEmployee" xlink:label="loc_oesx_MaximumAmountLimitForEmployeeStockPurchasePlanPerEmployee_8DCF304B123504E18AA341088234C404" xlink:type="locator" />
    <link:definitionArc order="14" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_EquityClassOfTreasuryStockLineItems_E236F39D3D038A59D0D741088233862B" xlink:to="loc_oesx_MaximumAmountLimitForEmployeeStockPurchasePlanPerEmployee_8DCF304B123504E18AA341088234C404" xlink:type="arc" />
    <link:loc xlink:href="oesx-20170331.xsd#oesx_EmployeeStockPurchasePlanPurchasePriceToMarketPriceMatchingPercentage" xlink:label="loc_oesx_EmployeeStockPurchasePlanPurchasePriceToMarketPriceMatchingPercentage_B0DD1C6F77A058BE8C7A4108823466AE" xlink:type="locator" />
    <link:definitionArc order="15" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_EquityClassOfTreasuryStockLineItems_E236F39D3D038A59D0D741088233862B" xlink:to="loc_oesx_EmployeeStockPurchasePlanPurchasePriceToMarketPriceMatchingPercentage_B0DD1C6F77A058BE8C7A4108823466AE" xlink:type="arc" />
    <link:loc xlink:href="oesx-20170331.xsd#oesx_EmployeeStockPurchasePlanAllowedLoanAmountPercentageOfAnnualIncome" xlink:label="loc_oesx_EmployeeStockPurchasePlanAllowedLoanAmountPercentageOfAnnualIncome_9351DFB5EF6418741FD6410882340ED9" xlink:type="locator" />
    <link:definitionArc order="16" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_EquityClassOfTreasuryStockLineItems_E236F39D3D038A59D0D741088233862B" xlink:to="loc_oesx_EmployeeStockPurchasePlanAllowedLoanAmountPercentageOfAnnualIncome_9351DFB5EF6418741FD6410882340ED9" xlink:type="arc" />
    <link:loc xlink:href="oesx-20170331.xsd#oesx_EmployeeStockPurchasePlansLoanMaximumOutstandingAmount" xlink:label="loc_oesx_EmployeeStockPurchasePlansLoanMaximumOutstandingAmount_F9A69BF22E3BBD1AC5C04108823400F2" xlink:type="locator" />
    <link:definitionArc order="17" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_EquityClassOfTreasuryStockLineItems_E236F39D3D038A59D0D741088233862B" xlink:to="loc_oesx_EmployeeStockPurchasePlansLoanMaximumOutstandingAmount_F9A69BF22E3BBD1AC5C04108823400F2" xlink:type="arc" />
    <link:loc xlink:href="oesx-20170331.xsd#oesx_EmployeeStockPurchasePlanLoanIRSInterestRate" xlink:label="loc_oesx_EmployeeStockPurchasePlanLoanIRSInterestRate_3537BC148F225C9594D8410882341E6E" xlink:type="locator" />
    <link:definitionArc order="18" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_EquityClassOfTreasuryStockLineItems_E236F39D3D038A59D0D741088233862B" xlink:to="loc_oesx_EmployeeStockPurchasePlanLoanIRSInterestRate_3537BC148F225C9594D8410882341E6E" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_ReceivableFromShareholdersOrAffiliatesForIssuanceOfCapitalStock" xlink:label="loc_us-gaap_ReceivableFromShareholdersOrAffiliatesForIssuanceOfCapitalStock_3041AA2445C3498C5F68417FD0341DC4" xlink:type="locator" />
    <link:definitionArc order="19" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_EquityClassOfTreasuryStockLineItems_E236F39D3D038A59D0D741088233862B" xlink:to="loc_us-gaap_ReceivableFromShareholdersOrAffiliatesForIssuanceOfCapitalStock_3041AA2445C3498C5F68417FD0341DC4" xlink:type="arc" />
  </link:definitionLink>
  <link:definitionLink xlink:role="http://www.oesx.com/role/ShareholdersEquityScheduleOfEsppActivityDetails" xlink:type="extended">
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_EmployeeStockOwnershipPlanESOPDisclosuresLineItems" xlink:label="loc_us-gaap_EmployeeStockOwnershipPlanESOPDisclosuresLineItems_F6C577FD34BEBC1954EB5FEF2AA08FEC" xlink:type="locator" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_ScheduleOfEmployeeStockOwnershipPlanESOPDisclosuresTable" xlink:label="loc_us-gaap_ScheduleOfEmployeeStockOwnershipPlanESOPDisclosuresTable_08631A3840755B0688205FEF2AA0442F" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/all" xlink:from="loc_us-gaap_EmployeeStockOwnershipPlanESOPDisclosuresLineItems_F6C577FD34BEBC1954EB5FEF2AA08FEC" xlink:to="loc_us-gaap_ScheduleOfEmployeeStockOwnershipPlanESOPDisclosuresTable_08631A3840755B0688205FEF2AA0442F" xlink:type="arc" xbrldt:closed="true" xbrldt:contextElement="segment" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_RangeAxis" xlink:label="loc_us-gaap_RangeAxis_D4A94E7108B88D90FF8B5FEF2AA081D5" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_ScheduleOfEmployeeStockOwnershipPlanESOPDisclosuresTable_08631A3840755B0688205FEF2AA0442F" xlink:to="loc_us-gaap_RangeAxis_D4A94E7108B88D90FF8B5FEF2AA081D5" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_RangeMember" xlink:label="loc_us-gaap_RangeMember_73808E76CED425CF084A5FEF2AA0B748_default" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_RangeAxis_D4A94E7108B88D90FF8B5FEF2AA081D5" xlink:to="loc_us-gaap_RangeMember_73808E76CED425CF084A5FEF2AA0B748_default" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_RangeMember" xlink:label="loc_us-gaap_RangeMember_73808E76CED425CF084A5FEF2AA0B748" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_RangeAxis_D4A94E7108B88D90FF8B5FEF2AA081D5" xlink:to="loc_us-gaap_RangeMember_73808E76CED425CF084A5FEF2AA0B748" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_MinimumMember" xlink:label="loc_us-gaap_MinimumMember_D286930F0532038FC3E55FEF2AA05FB6" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_RangeMember_73808E76CED425CF084A5FEF2AA0B748" xlink:to="loc_us-gaap_MinimumMember_D286930F0532038FC3E55FEF2AA05FB6" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_MaximumMember" xlink:label="loc_us-gaap_MaximumMember_CB2DA41DCB5FC937DEB45FEF2AA02CF6" xlink:type="locator" />
    <link:definitionArc order="2" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_RangeMember_73808E76CED425CF084A5FEF2AA0B748" xlink:to="loc_us-gaap_MaximumMember_CB2DA41DCB5FC937DEB45FEF2AA02CF6" xlink:type="arc" />
    <link:loc xlink:href="oesx-20170331.xsd#oesx_SummaryOfIssuanceOfStockUnderEmployeeStockOwnershipPlanAbstract" xlink:label="loc_oesx_SummaryOfIssuanceOfStockUnderEmployeeStockOwnershipPlanAbstract_87856DA0A908554E6B1E5FEF2AA0C565" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_EmployeeStockOwnershipPlanESOPDisclosuresLineItems_F6C577FD34BEBC1954EB5FEF2AA08FEC" xlink:to="loc_oesx_SummaryOfIssuanceOfStockUnderEmployeeStockOwnershipPlanAbstract_87856DA0A908554E6B1E5FEF2AA0C565" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_StockIssuedDuringPeriodSharesEmployeeStockPurchasePlans" xlink:label="loc_us-gaap_StockIssuedDuringPeriodSharesEmployeeStockPurchasePlans_2485FAE7E0459C4B0C705FEF2AA175E2" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_oesx_SummaryOfIssuanceOfStockUnderEmployeeStockOwnershipPlanAbstract_87856DA0A908554E6B1E5FEF2AA0C565" xlink:to="loc_us-gaap_StockIssuedDuringPeriodSharesEmployeeStockPurchasePlans_2485FAE7E0459C4B0C705FEF2AA175E2" xlink:type="arc" />
    <link:loc xlink:href="oesx-20170331.xsd#oesx_EmployeeStockPurchasePlanClosingMarketPriceOfSharesPurchased" xlink:label="loc_oesx_EmployeeStockPurchasePlanClosingMarketPriceOfSharesPurchased_F1D51F4C5DBB8E9F2CB15FEF2AA1408E" xlink:type="locator" />
    <link:definitionArc order="2" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_oesx_SummaryOfIssuanceOfStockUnderEmployeeStockOwnershipPlanAbstract_87856DA0A908554E6B1E5FEF2AA0C565" xlink:to="loc_oesx_EmployeeStockPurchasePlanClosingMarketPriceOfSharesPurchased_F1D51F4C5DBB8E9F2CB15FEF2AA1408E" xlink:type="arc" />
    <link:loc xlink:href="oesx-20170331.xsd#oesx_EmployeeStockPurchasePlansDebtStructureSharesIssued" xlink:label="loc_oesx_EmployeeStockPurchasePlansDebtStructureSharesIssued_CAAD635AAD8EFFAE3F3C5FEF2AA1C9A7" xlink:type="locator" />
    <link:definitionArc order="3" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_oesx_SummaryOfIssuanceOfStockUnderEmployeeStockOwnershipPlanAbstract_87856DA0A908554E6B1E5FEF2AA0C565" xlink:to="loc_oesx_EmployeeStockPurchasePlansDebtStructureSharesIssued_CAAD635AAD8EFFAE3F3C5FEF2AA1C9A7" xlink:type="arc" />
    <link:loc xlink:href="oesx-20170331.xsd#oesx_EmployeeStockPurchasePlansDebtStructureDirectLoanAmount" xlink:label="loc_oesx_EmployeeStockPurchasePlansDebtStructureDirectLoanAmount_AD7096705EA9AD50C8505FEF2AA1CF1B" xlink:type="locator" />
    <link:definitionArc order="4" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_oesx_SummaryOfIssuanceOfStockUnderEmployeeStockOwnershipPlanAbstract_87856DA0A908554E6B1E5FEF2AA0C565" xlink:to="loc_oesx_EmployeeStockPurchasePlansDebtStructureDirectLoanAmount_AD7096705EA9AD50C8505FEF2AA1CF1B" xlink:type="arc" />
    <link:loc xlink:href="oesx-20170331.xsd#oesx_EmployeeStockPurchasePlansDebtStructureDirectLoanRepaymentAmount" xlink:label="loc_oesx_EmployeeStockPurchasePlansDebtStructureDirectLoanRepaymentAmount_42790A450A11E1A7C1685FEF2AA121F1" xlink:type="locator" />
    <link:definitionArc order="5" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_oesx_SummaryOfIssuanceOfStockUnderEmployeeStockOwnershipPlanAbstract_87856DA0A908554E6B1E5FEF2AA0C565" xlink:to="loc_oesx_EmployeeStockPurchasePlansDebtStructureDirectLoanRepaymentAmount_42790A450A11E1A7C1685FEF2AA121F1" 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/StatementsOfShareholdersEquity" xlink:type="extended">
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_StatementLineItems" xlink:label="loc_us-gaap_StatementLineItems_9B4651035D3018C9559A7E7FE1B22B84" xlink:type="locator" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_StatementTable" xlink:label="loc_us-gaap_StatementTable_37E218B944EB1FD8923D7E7FE1AE4066" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/all" xlink:from="loc_us-gaap_StatementLineItems_9B4651035D3018C9559A7E7FE1B22B84" xlink:to="loc_us-gaap_StatementTable_37E218B944EB1FD8923D7E7FE1AE4066" xlink:type="arc" xbrldt:closed="true" xbrldt:contextElement="segment" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_StatementEquityComponentsAxis" xlink:label="loc_us-gaap_StatementEquityComponentsAxis_6576E0B46590D9DA92E07E7FE1AF2062" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_StatementTable_37E218B944EB1FD8923D7E7FE1AE4066" xlink:to="loc_us-gaap_StatementEquityComponentsAxis_6576E0B46590D9DA92E07E7FE1AF2062" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_EquityComponentDomain" xlink:label="loc_us-gaap_EquityComponentDomain_25B9625B631371FB1F3B7E7FE1B0BA01_default" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_StatementEquityComponentsAxis_6576E0B46590D9DA92E07E7FE1AF2062" xlink:to="loc_us-gaap_EquityComponentDomain_25B9625B631371FB1F3B7E7FE1B0BA01_default" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_EquityComponentDomain" xlink:label="loc_us-gaap_EquityComponentDomain_25B9625B631371FB1F3B7E7FE1B0BA01" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_StatementEquityComponentsAxis_6576E0B46590D9DA92E07E7FE1AF2062" xlink:to="loc_us-gaap_EquityComponentDomain_25B9625B631371FB1F3B7E7FE1B0BA01" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_CommonStockMember" xlink:label="loc_us-gaap_CommonStockMember_29860B30C18529D86C277E7FE1B0FDC5" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_EquityComponentDomain_25B9625B631371FB1F3B7E7FE1B0BA01" xlink:to="loc_us-gaap_CommonStockMember_29860B30C18529D86C277E7FE1B0FDC5" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_CommonStockIncludingAdditionalPaidInCapitalMember" xlink:label="loc_us-gaap_CommonStockIncludingAdditionalPaidInCapitalMember_FE1806EBA1E5B01015507E7FE1B022DC" xlink:type="locator" />
    <link:definitionArc order="2" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_EquityComponentDomain_25B9625B631371FB1F3B7E7FE1B0BA01" xlink:to="loc_us-gaap_CommonStockIncludingAdditionalPaidInCapitalMember_FE1806EBA1E5B01015507E7FE1B022DC" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_TreasuryStockMember" xlink:label="loc_us-gaap_TreasuryStockMember_521B4243434B690111727E7FE1B063CC" xlink:type="locator" />
    <link:definitionArc order="3" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_EquityComponentDomain_25B9625B631371FB1F3B7E7FE1B0BA01" xlink:to="loc_us-gaap_TreasuryStockMember_521B4243434B690111727E7FE1B063CC" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_ReceivablesFromStockholderMember" xlink:label="loc_us-gaap_ReceivablesFromStockholderMember_5F4B91E193A92E53126A7E7FE1B2630B" xlink:type="locator" />
    <link:definitionArc order="4" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_EquityComponentDomain_25B9625B631371FB1F3B7E7FE1B0BA01" xlink:to="loc_us-gaap_ReceivablesFromStockholderMember_5F4B91E193A92E53126A7E7FE1B2630B" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_RetainedEarningsMember" xlink:label="loc_us-gaap_RetainedEarningsMember_4896798F3FBDF8599D0C7E7FE1B2D076" xlink:type="locator" />
    <link:definitionArc order="5" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_EquityComponentDomain_25B9625B631371FB1F3B7E7FE1B0BA01" xlink:to="loc_us-gaap_RetainedEarningsMember_4896798F3FBDF8599D0C7E7FE1B2D076" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_IncreaseDecreaseInStockholdersEquityRollForward" xlink:label="loc_us-gaap_IncreaseDecreaseInStockholdersEquityRollForward_04E0FC75604630B109B67E7FE1B3DC1C" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_StatementLineItems_9B4651035D3018C9559A7E7FE1B22B84" xlink:to="loc_us-gaap_IncreaseDecreaseInStockholdersEquityRollForward_04E0FC75604630B109B67E7FE1B3DC1C" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_SharesOutstanding" xlink:label="loc_us-gaap_SharesOutstanding_5DF456A7EEE9C6E7302D7E7FE1B31803" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_IncreaseDecreaseInStockholdersEquityRollForward_04E0FC75604630B109B67E7FE1B3DC1C" xlink:to="loc_us-gaap_SharesOutstanding_5DF456A7EEE9C6E7302D7E7FE1B31803" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_StockholdersEquity" xlink:label="loc_us-gaap_StockholdersEquity_75F7E7E194CF2919AC8F7E7FE1B3B928" xlink:type="locator" />
    <link:definitionArc order="2" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_IncreaseDecreaseInStockholdersEquityRollForward_04E0FC75604630B109B67E7FE1B3DC1C" xlink:to="loc_us-gaap_StockholdersEquity_75F7E7E194CF2919AC8F7E7FE1B3B928" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_StockIssuedDuringPeriodSharesNewIssues" xlink:label="loc_us-gaap_StockIssuedDuringPeriodSharesNewIssues_F2BB5186C17C83C9D53C7E7FE1B3D3BA" xlink:type="locator" />
    <link:definitionArc order="3" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_IncreaseDecreaseInStockholdersEquityRollForward_04E0FC75604630B109B67E7FE1B3DC1C" xlink:to="loc_us-gaap_StockIssuedDuringPeriodSharesNewIssues_F2BB5186C17C83C9D53C7E7FE1B3D3BA" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_StockIssuedDuringPeriodValueNewIssues" xlink:label="loc_us-gaap_StockIssuedDuringPeriodValueNewIssues_D5514F623015B921984E7E7FE1B320BF" xlink:type="locator" />
    <link:definitionArc order="4" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_IncreaseDecreaseInStockholdersEquityRollForward_04E0FC75604630B109B67E7FE1B3DC1C" xlink:to="loc_us-gaap_StockIssuedDuringPeriodValueNewIssues_D5514F623015B921984E7E7FE1B320BF" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_StockIssuedDuringPeriodSharesIssuedForServices" xlink:label="loc_us-gaap_StockIssuedDuringPeriodSharesIssuedForServices_695C375F101F0893799E7E7FE1B3887D" xlink:type="locator" />
    <link:definitionArc order="5" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_IncreaseDecreaseInStockholdersEquityRollForward_04E0FC75604630B109B67E7FE1B3DC1C" xlink:to="loc_us-gaap_StockIssuedDuringPeriodSharesIssuedForServices_695C375F101F0893799E7E7FE1B3887D" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_StockIssuedDuringPeriodValueIssuedForServices" xlink:label="loc_us-gaap_StockIssuedDuringPeriodValueIssuedForServices_DEEF1E0668B3F61BE0A37E7FE1B397FA" xlink:type="locator" />
    <link:definitionArc order="6" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_IncreaseDecreaseInStockholdersEquityRollForward_04E0FC75604630B109B67E7FE1B3DC1C" xlink:to="loc_us-gaap_StockIssuedDuringPeriodValueIssuedForServices_DEEF1E0668B3F61BE0A37E7FE1B397FA" xlink:type="arc" />
    <link:loc xlink:href="oesx-20170331.xsd#oesx_Stockissuedduringperiodsharesstockoptionsandwarrantsexercised" xlink:label="loc_oesx_Stockissuedduringperiodsharesstockoptionsandwarrantsexercised_034BCA6D23107E6A38127E7FE1B49384" xlink:type="locator" />
    <link:definitionArc order="7" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_IncreaseDecreaseInStockholdersEquityRollForward_04E0FC75604630B109B67E7FE1B3DC1C" xlink:to="loc_oesx_Stockissuedduringperiodsharesstockoptionsandwarrantsexercised_034BCA6D23107E6A38127E7FE1B49384" xlink:type="arc" />
    <link:loc xlink:href="oesx-20170331.xsd#oesx_StockIssuedDuringPeriodValueStockOptionsandWarrantsExercised" xlink:label="loc_oesx_StockIssuedDuringPeriodValueStockOptionsandWarrantsExercised_002B78DDBAA71FC47B527E7FE1B425F3" xlink:type="locator" />
    <link:definitionArc order="8" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_IncreaseDecreaseInStockholdersEquityRollForward_04E0FC75604630B109B67E7FE1B3DC1C" xlink:to="loc_oesx_StockIssuedDuringPeriodValueStockOptionsandWarrantsExercised_002B78DDBAA71FC47B527E7FE1B425F3" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_StockIssuedDuringPeriodSharesEmployeeStockPurchasePlans" xlink:label="loc_us-gaap_StockIssuedDuringPeriodSharesEmployeeStockPurchasePlans_0A34CDDC56FD276C911F7E7FE1B46D39" xlink:type="locator" />
    <link:definitionArc order="9" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_IncreaseDecreaseInStockholdersEquityRollForward_04E0FC75604630B109B67E7FE1B3DC1C" xlink:to="loc_us-gaap_StockIssuedDuringPeriodSharesEmployeeStockPurchasePlans_0A34CDDC56FD276C911F7E7FE1B46D39" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_StockIssuedDuringPeriodValueEmployeeStockPurchasePlan" xlink:label="loc_us-gaap_StockIssuedDuringPeriodValueEmployeeStockPurchasePlan_4614E1C908B5C28322F47E7FE1B402F6" xlink:type="locator" />
    <link:definitionArc order="10" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_IncreaseDecreaseInStockholdersEquityRollForward_04E0FC75604630B109B67E7FE1B3DC1C" xlink:to="loc_us-gaap_StockIssuedDuringPeriodValueEmployeeStockPurchasePlan_4614E1C908B5C28322F47E7FE1B402F6" xlink:type="arc" />
    <link:loc xlink:href="oesx-20170331.xsd#oesx_StockholdersEquityReceivablefromShareholdersorAffiliatesforIssuanceofCapitalStock" xlink:label="loc_oesx_StockholdersEquityReceivablefromShareholdersorAffiliatesforIssuanceofCapitalStock_F64E066EEA68A5011F717E7FE1B4D301" xlink:type="locator" />
    <link:definitionArc order="11" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_IncreaseDecreaseInStockholdersEquityRollForward_04E0FC75604630B109B67E7FE1B3DC1C" xlink:to="loc_oesx_StockholdersEquityReceivablefromShareholdersorAffiliatesforIssuanceofCapitalStock_F64E066EEA68A5011F717E7FE1B4D301" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_StockIssuedDuringPeriodSharesRestrictedStockAwardGross" xlink:label="loc_us-gaap_StockIssuedDuringPeriodSharesRestrictedStockAwardGross_C69B4B1A45F7C24233077E7FE1B434C6" xlink:type="locator" />
    <link:definitionArc order="12" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_IncreaseDecreaseInStockholdersEquityRollForward_04E0FC75604630B109B67E7FE1B3DC1C" xlink:to="loc_us-gaap_StockIssuedDuringPeriodSharesRestrictedStockAwardGross_C69B4B1A45F7C24233077E7FE1B434C6" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_AdjustmentsToAdditionalPaidInCapitalSharebasedCompensationRequisiteServicePeriodRecognitionValue" xlink:label="loc_us-gaap_AdjustmentsToAdditionalPaidInCapitalSharebasedCompensationRequisiteServicePeriodRecognitionValue_DD82D7C0ED0F7E03D0DE7E7FE1B48512" xlink:type="locator" />
    <link:definitionArc order="13" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_IncreaseDecreaseInStockholdersEquityRollForward_04E0FC75604630B109B67E7FE1B3DC1C" xlink:to="loc_us-gaap_AdjustmentsToAdditionalPaidInCapitalSharebasedCompensationRequisiteServicePeriodRecognitionValue_DD82D7C0ED0F7E03D0DE7E7FE1B48512" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_SharesPaidForTaxWithholdingForShareBasedCompensation" xlink:label="loc_us-gaap_SharesPaidForTaxWithholdingForShareBasedCompensation_84A9F9A1A4DD2CE400B77E7FE1B465D7" xlink:type="locator" />
    <link:definitionArc order="14" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_IncreaseDecreaseInStockholdersEquityRollForward_04E0FC75604630B109B67E7FE1B3DC1C" xlink:to="loc_us-gaap_SharesPaidForTaxWithholdingForShareBasedCompensation_84A9F9A1A4DD2CE400B77E7FE1B465D7" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_AdjustmentsRelatedToTaxWithholdingForShareBasedCompensation" xlink:label="loc_us-gaap_AdjustmentsRelatedToTaxWithholdingForShareBasedCompensation_B61EBA28C0B9EB46B36F7E7FE1B4E7E9" xlink:type="locator" />
    <link:definitionArc order="15" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_IncreaseDecreaseInStockholdersEquityRollForward_04E0FC75604630B109B67E7FE1B3DC1C" xlink:to="loc_us-gaap_AdjustmentsRelatedToTaxWithholdingForShareBasedCompensation_B61EBA28C0B9EB46B36F7E7FE1B4E7E9" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_NetIncomeLoss" xlink:label="loc_us-gaap_NetIncomeLoss_319207D9D015308004CD7E7FE1B457A3" xlink:type="locator" />
    <link:definitionArc order="16" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_IncreaseDecreaseInStockholdersEquityRollForward_04E0FC75604630B109B67E7FE1B3DC1C" xlink:to="loc_us-gaap_NetIncomeLoss_319207D9D015308004CD7E7FE1B457A3" xlink:type="arc" />
  </link:definitionLink>
  <link:definitionLink xlink:role="http://www.oesx.com/role/StockOptionsRestrictedSharesAndWarrants" xlink:type="extended" />
  <link:definitionLink xlink:role="http://www.oesx.com/role/StockOptionsRestrictedSharesAndWarrantsNarrativeDetails" xlink:type="extended">
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardLineItems" xlink:label="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardLineItems_4138A5C38C3887FA261F60123CAF295A" xlink:type="locator" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_ScheduleOfShareBasedCompensationArrangementsByShareBasedPaymentAwardTable" xlink:label="loc_us-gaap_ScheduleOfShareBasedCompensationArrangementsByShareBasedPaymentAwardTable_BEDA40EC82B63C19BF6A60123CAC55C7" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/all" xlink:from="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardLineItems_4138A5C38C3887FA261F60123CAF295A" xlink:to="loc_us-gaap_ScheduleOfShareBasedCompensationArrangementsByShareBasedPaymentAwardTable_BEDA40EC82B63C19BF6A60123CAC55C7" xlink:type="arc" xbrldt:closed="true" xbrldt:contextElement="segment" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_AwardTypeAxis" xlink:label="loc_us-gaap_AwardTypeAxis_D4A0DF19144B03C6421360123CAC3949" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_ScheduleOfShareBasedCompensationArrangementsByShareBasedPaymentAwardTable_BEDA40EC82B63C19BF6A60123CAC55C7" xlink:to="loc_us-gaap_AwardTypeAxis_D4A0DF19144B03C6421360123CAC3949" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_ShareBasedCompensationArrangementsByShareBasedPaymentAwardAwardTypeAndPlanNameDomain" xlink:label="loc_us-gaap_ShareBasedCompensationArrangementsByShareBasedPaymentAwardAwardTypeAndPlanNameDomain_0571ADABF88AF4E443D960123CAD6AC1_default" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_AwardTypeAxis_D4A0DF19144B03C6421360123CAC3949" xlink:to="loc_us-gaap_ShareBasedCompensationArrangementsByShareBasedPaymentAwardAwardTypeAndPlanNameDomain_0571ADABF88AF4E443D960123CAD6AC1_default" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_ShareBasedCompensationArrangementsByShareBasedPaymentAwardAwardTypeAndPlanNameDomain" xlink:label="loc_us-gaap_ShareBasedCompensationArrangementsByShareBasedPaymentAwardAwardTypeAndPlanNameDomain_0571ADABF88AF4E443D960123CAD6AC1" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_AwardTypeAxis_D4A0DF19144B03C6421360123CAC3949" xlink:to="loc_us-gaap_ShareBasedCompensationArrangementsByShareBasedPaymentAwardAwardTypeAndPlanNameDomain_0571ADABF88AF4E443D960123CAD6AC1" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_RestrictedStockMember" xlink:label="loc_us-gaap_RestrictedStockMember_9F82EA5CFA23C902552560123CAD9620" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ShareBasedCompensationArrangementsByShareBasedPaymentAwardAwardTypeAndPlanNameDomain_0571ADABF88AF4E443D960123CAD6AC1" xlink:to="loc_us-gaap_RestrictedStockMember_9F82EA5CFA23C902552560123CAD9620" xlink:type="arc" />
    <link:loc xlink:href="oesx-20170331.xsd#oesx_NonEmployeeDirectorMember" xlink:label="loc_oesx_NonEmployeeDirectorMember_6A913D0451BF89CEEE6A60123CAD9A67" xlink:type="locator" />
    <link:definitionArc order="2" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ShareBasedCompensationArrangementsByShareBasedPaymentAwardAwardTypeAndPlanNameDomain_0571ADABF88AF4E443D960123CAD6AC1" xlink:to="loc_oesx_NonEmployeeDirectorMember_6A913D0451BF89CEEE6A60123CAD9A67" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_RangeAxis" xlink:label="loc_us-gaap_RangeAxis_D3945D295D862C39320C60123CAD5AE1" xlink:type="locator" />
    <link:definitionArc order="2" xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_ScheduleOfShareBasedCompensationArrangementsByShareBasedPaymentAwardTable_BEDA40EC82B63C19BF6A60123CAC55C7" xlink:to="loc_us-gaap_RangeAxis_D3945D295D862C39320C60123CAD5AE1" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_RangeMember" xlink:label="loc_us-gaap_RangeMember_7D0D3C9F43DBF38B0B8760123CAD7518_default" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_RangeAxis_D3945D295D862C39320C60123CAD5AE1" xlink:to="loc_us-gaap_RangeMember_7D0D3C9F43DBF38B0B8760123CAD7518_default" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_RangeMember" xlink:label="loc_us-gaap_RangeMember_7D0D3C9F43DBF38B0B8760123CAD7518" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_RangeAxis_D3945D295D862C39320C60123CAD5AE1" xlink:to="loc_us-gaap_RangeMember_7D0D3C9F43DBF38B0B8760123CAD7518" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_MinimumMember" xlink:label="loc_us-gaap_MinimumMember_2F6D29729D4138B227B560123CADEEEC" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_RangeMember_7D0D3C9F43DBF38B0B8760123CAD7518" xlink:to="loc_us-gaap_MinimumMember_2F6D29729D4138B227B560123CADEEEC" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_MaximumMember" xlink:label="loc_us-gaap_MaximumMember_EAFF47F005C4A9ED99D560123CAD530A" xlink:type="locator" />
    <link:definitionArc order="2" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_RangeMember_7D0D3C9F43DBF38B0B8760123CAD7518" xlink:to="loc_us-gaap_MaximumMember_EAFF47F005C4A9ED99D560123CAD530A" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_PlanNameAxis" xlink:label="loc_us-gaap_PlanNameAxis_4C0234B6BF83581B3EB560123CAC8CA8" xlink:type="locator" />
    <link:definitionArc order="3" xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_ScheduleOfShareBasedCompensationArrangementsByShareBasedPaymentAwardTable_BEDA40EC82B63C19BF6A60123CAC55C7" xlink:to="loc_us-gaap_PlanNameAxis_4C0234B6BF83581B3EB560123CAC8CA8" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_PlanNameDomain" xlink:label="loc_us-gaap_PlanNameDomain_A35B7C805A7064FA0ABD60123CAC1207_default" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_PlanNameAxis_4C0234B6BF83581B3EB560123CAC8CA8" xlink:to="loc_us-gaap_PlanNameDomain_A35B7C805A7064FA0ABD60123CAC1207_default" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_PlanNameDomain" xlink:label="loc_us-gaap_PlanNameDomain_A35B7C805A7064FA0ABD60123CAC1207" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_PlanNameAxis_4C0234B6BF83581B3EB560123CAC8CA8" xlink:to="loc_us-gaap_PlanNameDomain_A35B7C805A7064FA0ABD60123CAC1207" xlink:type="arc" />
    <link:loc xlink:href="oesx-20170331.xsd#oesx_TwoThousandFourStockAndIncentiveAndAwardPlanMember" xlink:label="loc_oesx_TwoThousandFourStockAndIncentiveAndAwardPlanMember_9D2374C9F71B26E6906560123CAC7246" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_PlanNameDomain_A35B7C805A7064FA0ABD60123CAC1207" xlink:to="loc_oesx_TwoThousandFourStockAndIncentiveAndAwardPlanMember_9D2374C9F71B26E6906560123CAC7246" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_StatementClassOfStockAxis" xlink:label="loc_us-gaap_StatementClassOfStockAxis_3CFB6C3A181E51AFA6EE60123CAED49A" xlink:type="locator" />
    <link:definitionArc order="4" xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_ScheduleOfShareBasedCompensationArrangementsByShareBasedPaymentAwardTable_BEDA40EC82B63C19BF6A60123CAC55C7" xlink:to="loc_us-gaap_StatementClassOfStockAxis_3CFB6C3A181E51AFA6EE60123CAED49A" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_ClassOfStockDomain" xlink:label="loc_us-gaap_ClassOfStockDomain_385C6131CBF8A3CAC13160123CAE8094_default" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_StatementClassOfStockAxis_3CFB6C3A181E51AFA6EE60123CAED49A" xlink:to="loc_us-gaap_ClassOfStockDomain_385C6131CBF8A3CAC13160123CAE8094_default" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_ClassOfStockDomain" xlink:label="loc_us-gaap_ClassOfStockDomain_385C6131CBF8A3CAC13160123CAE8094" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_StatementClassOfStockAxis_3CFB6C3A181E51AFA6EE60123CAED49A" xlink:to="loc_us-gaap_ClassOfStockDomain_385C6131CBF8A3CAC13160123CAE8094" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_CommonStockMember" xlink:label="loc_us-gaap_CommonStockMember_9DDCAEDA677B57704C7160123CAEEFE1" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ClassOfStockDomain_385C6131CBF8A3CAC13160123CAE8094" xlink:to="loc_us-gaap_CommonStockMember_9DDCAEDA677B57704C7160123CAEEFE1" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_TitleOfIndividualAxis" xlink:label="loc_us-gaap_TitleOfIndividualAxis_D2D44A6E96D8B9ACEB2160123CAE1EF9" xlink:type="locator" />
    <link:definitionArc order="5" xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_ScheduleOfShareBasedCompensationArrangementsByShareBasedPaymentAwardTable_BEDA40EC82B63C19BF6A60123CAC55C7" xlink:to="loc_us-gaap_TitleOfIndividualAxis_D2D44A6E96D8B9ACEB2160123CAE1EF9" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_TitleOfIndividualWithRelationshipToEntityDomain" xlink:label="loc_us-gaap_TitleOfIndividualWithRelationshipToEntityDomain_6A60F115C409383686F960123CAECA11_default" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_TitleOfIndividualAxis_D2D44A6E96D8B9ACEB2160123CAE1EF9" xlink:to="loc_us-gaap_TitleOfIndividualWithRelationshipToEntityDomain_6A60F115C409383686F960123CAECA11_default" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_TitleOfIndividualWithRelationshipToEntityDomain" xlink:label="loc_us-gaap_TitleOfIndividualWithRelationshipToEntityDomain_6A60F115C409383686F960123CAECA11" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_TitleOfIndividualAxis_D2D44A6E96D8B9ACEB2160123CAE1EF9" xlink:to="loc_us-gaap_TitleOfIndividualWithRelationshipToEntityDomain_6A60F115C409383686F960123CAECA11" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_ExecutiveOfficerMember" xlink:label="loc_us-gaap_ExecutiveOfficerMember_47F07BF944BAD233EAC760123CAE2602" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_TitleOfIndividualWithRelationshipToEntityDomain_6A60F115C409383686F960123CAECA11" xlink:to="loc_us-gaap_ExecutiveOfficerMember_47F07BF944BAD233EAC760123CAE2602" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_DirectorMember" xlink:label="loc_us-gaap_DirectorMember_BE5D7201513D3272AC5560123CAE636D" xlink:type="locator" />
    <link:definitionArc order="2" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_TitleOfIndividualWithRelationshipToEntityDomain_6A60F115C409383686F960123CAECA11" xlink:to="loc_us-gaap_DirectorMember_BE5D7201513D3272AC5560123CAE636D" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_CommonStockCapitalSharesReservedForFutureIssuance" xlink:label="loc_us-gaap_CommonStockCapitalSharesReservedForFutureIssuance_B2A2FBB3538A00C3688660123CAFC855" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardLineItems_4138A5C38C3887FA261F60123CAF295A" xlink:to="loc_us-gaap_CommonStockCapitalSharesReservedForFutureIssuance_B2A2FBB3538A00C3688660123CAFC855" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardSharesIssuedInPeriod" xlink:label="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardSharesIssuedInPeriod_B7C3E5524F347472FE4C60123CAF488A" xlink:type="locator" />
    <link:definitionArc order="2" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardLineItems_4138A5C38C3887FA261F60123CAF295A" xlink:to="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardSharesIssuedInPeriod_B7C3E5524F347472FE4C60123CAF488A" xlink:type="arc" />
    <link:loc xlink:href="oesx-20170331.xsd#oesx_ShareBasedCompensationArrangementByShareBasedPaymentAwardPerSharePrice" xlink:label="loc_oesx_ShareBasedCompensationArrangementByShareBasedPaymentAwardPerSharePrice_766126E3850B36D282CA60123CAF1247" xlink:type="locator" />
    <link:definitionArc order="3" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardLineItems_4138A5C38C3887FA261F60123CAF295A" xlink:to="loc_oesx_ShareBasedCompensationArrangementByShareBasedPaymentAwardPerSharePrice_766126E3850B36D282CA60123CAF1247" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_ShareBasedGoodsAndNonemployeeServicesTransactionQuantityOfSecuritiesIssued" xlink:label="loc_us-gaap_ShareBasedGoodsAndNonemployeeServicesTransactionQuantityOfSecuritiesIssued_41555AAA473116AA922D60123CAF49BB" xlink:type="locator" />
    <link:definitionArc order="4" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardLineItems_4138A5C38C3887FA261F60123CAF295A" xlink:to="loc_us-gaap_ShareBasedGoodsAndNonemployeeServicesTransactionQuantityOfSecuritiesIssued_41555AAA473116AA922D60123CAF49BB" xlink:type="arc" />
    <link:loc xlink:href="oesx-20170331.xsd#oesx_FairValueOfClosingCommonStockPrice" xlink:label="loc_oesx_FairValueOfClosingCommonStockPrice_373A1F4ADA9AB62DDA7260123CAF0B4A" xlink:type="locator" />
    <link:definitionArc order="5" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardLineItems_4138A5C38C3887FA261F60123CAF295A" xlink:to="loc_oesx_FairValueOfClosingCommonStockPrice_373A1F4ADA9AB62DDA7260123CAF0B4A" xlink:type="arc" />
    <link:loc xlink:href="oesx-20170331.xsd#oesx_SharebasedGoodsandNonemployeeServicesTransactionSecuritiesIssuedValuationPricePerShare" xlink:label="loc_oesx_SharebasedGoodsandNonemployeeServicesTransactionSecuritiesIssuedValuationPricePerShare_7439FEA27550A46991F860123CAF41AF" xlink:type="locator" />
    <link:definitionArc order="6" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardLineItems_4138A5C38C3887FA261F60123CAF295A" xlink:to="loc_oesx_SharebasedGoodsandNonemployeeServicesTransactionSecuritiesIssuedValuationPricePerShare_7439FEA27550A46991F860123CAF41AF" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_StockIssuedDuringPeriodSharesShareBasedCompensationGross" xlink:label="loc_us-gaap_StockIssuedDuringPeriodSharesShareBasedCompensationGross_986154C8DA187E21283760123CB07178" xlink:type="locator" />
    <link:definitionArc order="7" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardLineItems_4138A5C38C3887FA261F60123CAF295A" xlink:to="loc_us-gaap_StockIssuedDuringPeriodSharesShareBasedCompensationGross_986154C8DA187E21283760123CB07178" xlink:type="arc" />
    <link:loc xlink:href="oesx-20170331.xsd#oesx_NumberofRecentlyRetiredMembersoftheBoard" xlink:label="loc_oesx_NumberofRecentlyRetiredMembersoftheBoard_159246F89CB1BF2E9B0660123CB0DABB" xlink:type="locator" />
    <link:definitionArc order="8" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardLineItems_4138A5C38C3887FA261F60123CAF295A" xlink:to="loc_oesx_NumberofRecentlyRetiredMembersoftheBoard_159246F89CB1BF2E9B0660123CB0DABB" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionsGrantsInPeriodWeightedAverageGrantDateFairValue" xlink:label="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionsGrantsInPeriodWeightedAverageGrantDateFairValue_8AB9584F2A4457E95AE660123CB0326D" xlink:type="locator" />
    <link:definitionArc order="9" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardLineItems_4138A5C38C3887FA261F60123CAF295A" xlink:to="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionsGrantsInPeriodWeightedAverageGrantDateFairValue_8AB9584F2A4457E95AE660123CB0326D" xlink:type="arc" />
    <link:loc xlink:href="oesx-20170331.xsd#oesx_ClassOfWarrantOrRightExercised" xlink:label="loc_oesx_ClassOfWarrantOrRightExercised_DFCE1542D61DF5EEC88860123CB04234" xlink:type="locator" />
    <link:definitionArc order="10" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardLineItems_4138A5C38C3887FA261F60123CAF295A" xlink:to="loc_oesx_ClassOfWarrantOrRightExercised_DFCE1542D61DF5EEC88860123CB04234" xlink:type="arc" />
    <link:loc xlink:href="oesx-20170331.xsd#oesx_ClassofWarrantorRightExercisePriceofWarrantsorRightsExercised" xlink:label="loc_oesx_ClassofWarrantorRightExercisePriceofWarrantsorRightsExercised_8293AF433EF69C845C4060123CB0C2B6" xlink:type="locator" />
    <link:definitionArc order="11" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardLineItems_4138A5C38C3887FA261F60123CAF295A" xlink:to="loc_oesx_ClassofWarrantorRightExercisePriceofWarrantsorRightsExercised_8293AF433EF69C845C4060123CB0C2B6" xlink:type="arc" />
  </link:definitionLink>
  <link:definitionLink xlink:role="http://www.oesx.com/role/StockOptionsRestrictedSharesAndWarrantsScheduleOfRestrictedSharesDetails" xlink:type="extended">
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardLineItems" xlink:label="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardLineItems_AE3C977FC2C9A0A79A2B418CEF443278" xlink:type="locator" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_ScheduleOfShareBasedCompensationArrangementsByShareBasedPaymentAwardTable" xlink:label="loc_us-gaap_ScheduleOfShareBasedCompensationArrangementsByShareBasedPaymentAwardTable_AF57695F7F3181FA5B78418CEF42E738" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/all" xlink:from="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardLineItems_AE3C977FC2C9A0A79A2B418CEF443278" xlink:to="loc_us-gaap_ScheduleOfShareBasedCompensationArrangementsByShareBasedPaymentAwardTable_AF57695F7F3181FA5B78418CEF42E738" xlink:type="arc" xbrldt:closed="true" xbrldt:contextElement="segment" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_AwardTypeAxis" xlink:label="loc_us-gaap_AwardTypeAxis_45A54062BC40A74DB15F418CEF43D077" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_ScheduleOfShareBasedCompensationArrangementsByShareBasedPaymentAwardTable_AF57695F7F3181FA5B78418CEF42E738" xlink:to="loc_us-gaap_AwardTypeAxis_45A54062BC40A74DB15F418CEF43D077" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_ShareBasedCompensationArrangementsByShareBasedPaymentAwardAwardTypeAndPlanNameDomain" xlink:label="loc_us-gaap_ShareBasedCompensationArrangementsByShareBasedPaymentAwardAwardTypeAndPlanNameDomain_0D1F34F6287F8B926C57418CEF43E78D_default" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_AwardTypeAxis_45A54062BC40A74DB15F418CEF43D077" xlink:to="loc_us-gaap_ShareBasedCompensationArrangementsByShareBasedPaymentAwardAwardTypeAndPlanNameDomain_0D1F34F6287F8B926C57418CEF43E78D_default" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_ShareBasedCompensationArrangementsByShareBasedPaymentAwardAwardTypeAndPlanNameDomain" xlink:label="loc_us-gaap_ShareBasedCompensationArrangementsByShareBasedPaymentAwardAwardTypeAndPlanNameDomain_0D1F34F6287F8B926C57418CEF43E78D" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_AwardTypeAxis_45A54062BC40A74DB15F418CEF43D077" xlink:to="loc_us-gaap_ShareBasedCompensationArrangementsByShareBasedPaymentAwardAwardTypeAndPlanNameDomain_0D1F34F6287F8B926C57418CEF43E78D" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_RestrictedStockMember" xlink:label="loc_us-gaap_RestrictedStockMember_31E40D216AFC41CA87D9418CEF434DC4" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ShareBasedCompensationArrangementsByShareBasedPaymentAwardAwardTypeAndPlanNameDomain_0D1F34F6287F8B926C57418CEF43E78D" xlink:to="loc_us-gaap_RestrictedStockMember_31E40D216AFC41CA87D9418CEF434DC4" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_RangeAxis" xlink:label="loc_us-gaap_RangeAxis_F57A2BE1C051F895A669418CEF436A62" xlink:type="locator" />
    <link:definitionArc order="2" xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_ScheduleOfShareBasedCompensationArrangementsByShareBasedPaymentAwardTable_AF57695F7F3181FA5B78418CEF42E738" xlink:to="loc_us-gaap_RangeAxis_F57A2BE1C051F895A669418CEF436A62" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_RangeMember" xlink:label="loc_us-gaap_RangeMember_53234589B622241BE87A418CEF434089_default" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_RangeAxis_F57A2BE1C051F895A669418CEF436A62" xlink:to="loc_us-gaap_RangeMember_53234589B622241BE87A418CEF434089_default" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_RangeMember" xlink:label="loc_us-gaap_RangeMember_53234589B622241BE87A418CEF434089" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_RangeAxis_F57A2BE1C051F895A669418CEF436A62" xlink:to="loc_us-gaap_RangeMember_53234589B622241BE87A418CEF434089" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_MinimumMember" xlink:label="loc_us-gaap_MinimumMember_F00E43EF429486DEA0A4418CEF44F162" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_RangeMember_53234589B622241BE87A418CEF434089" xlink:to="loc_us-gaap_MinimumMember_F00E43EF429486DEA0A4418CEF44F162" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_MaximumMember" xlink:label="loc_us-gaap_MaximumMember_94EAA2AD029434A2EBE4418CEF448982" xlink:type="locator" />
    <link:definitionArc order="2" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_RangeMember_53234589B622241BE87A418CEF434089" xlink:to="loc_us-gaap_MaximumMember_94EAA2AD029434A2EBE4418CEF448982" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionsNonvestedRollForward" xlink:label="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionsNonvestedRollForward_F08249A3C4674DE801CC418CEF4412B7" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardLineItems_AE3C977FC2C9A0A79A2B418CEF443278" xlink:to="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionsNonvestedRollForward_F08249A3C4674DE801CC418CEF4412B7" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionsNonvestedNumber" xlink:label="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionsNonvestedNumber_BE89782660F486A23569418CEF442182" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionsNonvestedRollForward_F08249A3C4674DE801CC418CEF4412B7" xlink:to="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionsNonvestedNumber_BE89782660F486A23569418CEF442182" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionsGrantsInPeriod" xlink:label="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionsGrantsInPeriod_BA0440AE89B01DBE994A418CEF442910" xlink:type="locator" />
    <link:definitionArc order="2" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionsNonvestedRollForward_F08249A3C4674DE801CC418CEF4412B7" xlink:to="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionsGrantsInPeriod_BA0440AE89B01DBE994A418CEF442910" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionsVestedInPeriod" xlink:label="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionsVestedInPeriod_682E5586CB364267FDF4418CEF447E17" xlink:type="locator" />
    <link:definitionArc order="3" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionsNonvestedRollForward_F08249A3C4674DE801CC418CEF4412B7" xlink:to="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionsVestedInPeriod_682E5586CB364267FDF4418CEF447E17" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionsForfeitedInPeriod" xlink:label="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionsForfeitedInPeriod_D4DF96DB18A1ABAD6C75418CEF450A47" xlink:type="locator" />
    <link:definitionArc order="4" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionsNonvestedRollForward_F08249A3C4674DE801CC418CEF4412B7" xlink:to="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionsForfeitedInPeriod_D4DF96DB18A1ABAD6C75418CEF450A47" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionsGrantsInPeriodWeightedAverageGrantDateFairValue" xlink:label="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionsGrantsInPeriodWeightedAverageGrantDateFairValue_28BE4FEEF4FF07BF1E7A418CEF456496" xlink:type="locator" />
    <link:definitionArc order="2" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardLineItems_AE3C977FC2C9A0A79A2B418CEF443278" xlink:to="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionsGrantsInPeriodWeightedAverageGrantDateFairValue_28BE4FEEF4FF07BF1E7A418CEF456496" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_AllocatedShareBasedCompensationExpense" xlink:label="loc_us-gaap_AllocatedShareBasedCompensationExpense_B38CEF97205FB0C9A271418CEF453C36" xlink:type="locator" />
    <link:definitionArc order="3" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardLineItems_AE3C977FC2C9A0A79A2B418CEF443278" xlink:to="loc_us-gaap_AllocatedShareBasedCompensationExpense_B38CEF97205FB0C9A271418CEF453C36" xlink:type="arc" />
  </link:definitionLink>
  <link:definitionLink xlink:role="http://www.oesx.com/role/StockOptionsRestrictedSharesAndWarrantsScheduleOfSharesAvailableForGrantDetails" xlink:type="extended">
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardLineItems" xlink:label="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardLineItems_6644DDBC74CFD181459A844B46669342" xlink:type="locator" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_ScheduleOfShareBasedCompensationArrangementsByShareBasedPaymentAwardTable" xlink:label="loc_us-gaap_ScheduleOfShareBasedCompensationArrangementsByShareBasedPaymentAwardTable_0B954E40D6732B63CA83844B4666D44A" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/all" xlink:from="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardLineItems_6644DDBC74CFD181459A844B46669342" xlink:to="loc_us-gaap_ScheduleOfShareBasedCompensationArrangementsByShareBasedPaymentAwardTable_0B954E40D6732B63CA83844B4666D44A" xlink:type="arc" xbrldt:closed="true" xbrldt:contextElement="segment" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_AwardTypeAxis" xlink:label="loc_us-gaap_AwardTypeAxis_8C6DA505BA3B1ABFDC5B844B466640BB" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_ScheduleOfShareBasedCompensationArrangementsByShareBasedPaymentAwardTable_0B954E40D6732B63CA83844B4666D44A" xlink:to="loc_us-gaap_AwardTypeAxis_8C6DA505BA3B1ABFDC5B844B466640BB" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_ShareBasedCompensationArrangementsByShareBasedPaymentAwardAwardTypeAndPlanNameDomain" xlink:label="loc_us-gaap_ShareBasedCompensationArrangementsByShareBasedPaymentAwardAwardTypeAndPlanNameDomain_B9735E9A4518ADB8969D844B4666BA2D_default" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_AwardTypeAxis_8C6DA505BA3B1ABFDC5B844B466640BB" xlink:to="loc_us-gaap_ShareBasedCompensationArrangementsByShareBasedPaymentAwardAwardTypeAndPlanNameDomain_B9735E9A4518ADB8969D844B4666BA2D_default" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_ShareBasedCompensationArrangementsByShareBasedPaymentAwardAwardTypeAndPlanNameDomain" xlink:label="loc_us-gaap_ShareBasedCompensationArrangementsByShareBasedPaymentAwardAwardTypeAndPlanNameDomain_B9735E9A4518ADB8969D844B4666BA2D" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_AwardTypeAxis_8C6DA505BA3B1ABFDC5B844B466640BB" xlink:to="loc_us-gaap_ShareBasedCompensationArrangementsByShareBasedPaymentAwardAwardTypeAndPlanNameDomain_B9735E9A4518ADB8969D844B4666BA2D" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_EmployeeStockOptionMember" xlink:label="loc_us-gaap_EmployeeStockOptionMember_2086624B122CB0E32A59844B4666294D" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ShareBasedCompensationArrangementsByShareBasedPaymentAwardAwardTypeAndPlanNameDomain_B9735E9A4518ADB8969D844B4666BA2D" xlink:to="loc_us-gaap_EmployeeStockOptionMember_2086624B122CB0E32A59844B4666294D" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_RestrictedStockMember" xlink:label="loc_us-gaap_RestrictedStockMember_3839FF9761487E16733B844B466691C0" xlink:type="locator" />
    <link:definitionArc order="2" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ShareBasedCompensationArrangementsByShareBasedPaymentAwardAwardTypeAndPlanNameDomain_B9735E9A4518ADB8969D844B4666BA2D" xlink:to="loc_us-gaap_RestrictedStockMember_3839FF9761487E16733B844B466691C0" xlink:type="arc" />
    <link:loc xlink:href="oesx-20170331.xsd#oesx_ShareBasedCompensationArrangementByShareBasedPaymentAwardNumberOfSharesAvailableForGrantRollForward" xlink:label="loc_oesx_ShareBasedCompensationArrangementByShareBasedPaymentAwardNumberOfSharesAvailableForGrantRollForward_A41FAAF586346B1A3EEB844B4666C4B7" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardLineItems_6644DDBC74CFD181459A844B46669342" xlink:to="loc_oesx_ShareBasedCompensationArrangementByShareBasedPaymentAwardNumberOfSharesAvailableForGrantRollForward_A41FAAF586346B1A3EEB844B4666C4B7" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardNumberOfSharesAvailableForGrant" xlink:label="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardNumberOfSharesAvailableForGrant_547D0B1342B9014CFF28844B4666F14D" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_oesx_ShareBasedCompensationArrangementByShareBasedPaymentAwardNumberOfSharesAvailableForGrantRollForward_A41FAAF586346B1A3EEB844B4666C4B7" xlink:to="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardNumberOfSharesAvailableForGrant_547D0B1342B9014CFF28844B4666F14D" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_CommonStockCapitalSharesReservedForFutureIssuance" xlink:label="loc_us-gaap_CommonStockCapitalSharesReservedForFutureIssuance_737379D3B4F686E6CAD9846557D9C3DB" xlink:type="locator" />
    <link:definitionArc order="2" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_oesx_ShareBasedCompensationArrangementByShareBasedPaymentAwardNumberOfSharesAvailableForGrantRollForward_A41FAAF586346B1A3EEB844B4666C4B7" xlink:to="loc_us-gaap_CommonStockCapitalSharesReservedForFutureIssuance_737379D3B4F686E6CAD9846557D9C3DB" xlink:type="arc" />
    <link:loc xlink:href="oesx-20170331.xsd#oesx_ShareBasedCompensationArrangementByShareBasedPaymentAwardNumberOfSharesAvailableForGrantSharesCanceled" xlink:label="loc_oesx_ShareBasedCompensationArrangementByShareBasedPaymentAwardNumberOfSharesAvailableForGrantSharesCanceled_8A5327C011258A91F70B848E2F60D349" xlink:type="locator" />
    <link:definitionArc order="3" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_oesx_ShareBasedCompensationArrangementByShareBasedPaymentAwardNumberOfSharesAvailableForGrantRollForward_A41FAAF586346B1A3EEB844B4666C4B7" xlink:to="loc_oesx_ShareBasedCompensationArrangementByShareBasedPaymentAwardNumberOfSharesAvailableForGrantSharesCanceled_8A5327C011258A91F70B848E2F60D349" xlink:type="arc" />
    <link:loc xlink:href="oesx-20170331.xsd#oesx_ShareBasedCompensationArrangementByShareBasedPaymentAwardNumberOfSharesAvailableForGrantSharesIssuedToEmployee" xlink:label="loc_oesx_ShareBasedCompensationArrangementByShareBasedPaymentAwardNumberOfSharesAvailableForGrantSharesIssuedToEmployee_7A1743BF1F80069F618A844B4666E1E0" xlink:type="locator" />
    <link:definitionArc order="4" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_oesx_ShareBasedCompensationArrangementByShareBasedPaymentAwardNumberOfSharesAvailableForGrantRollForward_A41FAAF586346B1A3EEB844B4666C4B7" xlink:to="loc_oesx_ShareBasedCompensationArrangementByShareBasedPaymentAwardNumberOfSharesAvailableForGrantSharesIssuedToEmployee_7A1743BF1F80069F618A844B4666E1E0" xlink:type="arc" />
    <link:loc xlink:href="oesx-20170331.xsd#oesx_ShareBasedCompensationArrangementByShareBasedPaymentAwardNumberOfSharesAvailableForGrantSharesIssuedToNonEmployee" xlink:label="loc_oesx_ShareBasedCompensationArrangementByShareBasedPaymentAwardNumberOfSharesAvailableForGrantSharesIssuedToNonEmployee_FCC71E9EAE657FC187C1844B4666B949" xlink:type="locator" />
    <link:definitionArc order="5" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_oesx_ShareBasedCompensationArrangementByShareBasedPaymentAwardNumberOfSharesAvailableForGrantRollForward_A41FAAF586346B1A3EEB844B4666C4B7" xlink:to="loc_oesx_ShareBasedCompensationArrangementByShareBasedPaymentAwardNumberOfSharesAvailableForGrantSharesIssuedToNonEmployee_FCC71E9EAE657FC187C1844B4666B949" xlink:type="arc" />
    <link:loc xlink:href="oesx-20170331.xsd#oesx_ShareBasedCompensationArrangementByShareBasedPaymentAwardNumberOfSharesAvailableForGrantRestrictedShares" xlink:label="loc_oesx_ShareBasedCompensationArrangementByShareBasedPaymentAwardNumberOfSharesAvailableForGrantRestrictedShares_524F437B925AC2A2E5E8844B46661118" xlink:type="locator" />
    <link:definitionArc order="6" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_oesx_ShareBasedCompensationArrangementByShareBasedPaymentAwardNumberOfSharesAvailableForGrantRollForward_A41FAAF586346B1A3EEB844B4666C4B7" xlink:to="loc_oesx_ShareBasedCompensationArrangementByShareBasedPaymentAwardNumberOfSharesAvailableForGrantRestrictedShares_524F437B925AC2A2E5E8844B46661118" xlink:type="arc" />
    <link:loc xlink:href="oesx-20170331.xsd#oesx_ShareBasedCompensationArrangementByShareBasedPaymentAwardNumberOfSharesAvailableForGrantForfeited" xlink:label="loc_oesx_ShareBasedCompensationArrangementByShareBasedPaymentAwardNumberOfSharesAvailableForGrantForfeited_ADAD7E16D5A692CC273B844B4666F9E2" xlink:type="locator" />
    <link:definitionArc order="7" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_oesx_ShareBasedCompensationArrangementByShareBasedPaymentAwardNumberOfSharesAvailableForGrantRollForward_A41FAAF586346B1A3EEB844B4666C4B7" xlink:to="loc_oesx_ShareBasedCompensationArrangementByShareBasedPaymentAwardNumberOfSharesAvailableForGrantForfeited_ADAD7E16D5A692CC273B844B4666F9E2" xlink:type="arc" />
  </link:definitionLink>
  <link:definitionLink xlink:role="http://www.oesx.com/role/StockOptionsRestrictedSharesAndWarrantsStockBasedCompensationDetails" xlink:type="extended">
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_EmployeeServiceShareBasedCompensationAllocationOfRecognizedPeriodCostsLineItems" xlink:label="loc_us-gaap_EmployeeServiceShareBasedCompensationAllocationOfRecognizedPeriodCostsLineItems_11B628AD640B2393EF1566E0490C8C3E" xlink:type="locator" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_ScheduleOfEmployeeServiceShareBasedCompensationAllocationOfRecognizedPeriodCostsTable" xlink:label="loc_us-gaap_ScheduleOfEmployeeServiceShareBasedCompensationAllocationOfRecognizedPeriodCostsTable_7A037E068E843E610BC166E0490A99B6" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/all" xlink:from="loc_us-gaap_EmployeeServiceShareBasedCompensationAllocationOfRecognizedPeriodCostsLineItems_11B628AD640B2393EF1566E0490C8C3E" xlink:to="loc_us-gaap_ScheduleOfEmployeeServiceShareBasedCompensationAllocationOfRecognizedPeriodCostsTable_7A037E068E843E610BC166E0490A99B6" xlink:type="arc" xbrldt:closed="true" xbrldt:contextElement="segment" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_IncomeStatementLocationAxis" xlink:label="loc_us-gaap_IncomeStatementLocationAxis_621301AB8375442E394866E0490A3C92" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_ScheduleOfEmployeeServiceShareBasedCompensationAllocationOfRecognizedPeriodCostsTable_7A037E068E843E610BC166E0490A99B6" xlink:to="loc_us-gaap_IncomeStatementLocationAxis_621301AB8375442E394866E0490A3C92" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_IncomeStatementLocationDomain" xlink:label="loc_us-gaap_IncomeStatementLocationDomain_FAB5B9958C884612ED9066E0490AA2EE_default" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_IncomeStatementLocationAxis_621301AB8375442E394866E0490A3C92" xlink:to="loc_us-gaap_IncomeStatementLocationDomain_FAB5B9958C884612ED9066E0490AA2EE_default" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_IncomeStatementLocationDomain" xlink:label="loc_us-gaap_IncomeStatementLocationDomain_FAB5B9958C884612ED9066E0490AA2EE" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_IncomeStatementLocationAxis_621301AB8375442E394866E0490A3C92" xlink:to="loc_us-gaap_IncomeStatementLocationDomain_FAB5B9958C884612ED9066E0490AA2EE" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_CostOfSalesMember" xlink:label="loc_us-gaap_CostOfSalesMember_7DE108C4480D5716C5E766E0490B605C" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_IncomeStatementLocationDomain_FAB5B9958C884612ED9066E0490AA2EE" xlink:to="loc_us-gaap_CostOfSalesMember_7DE108C4480D5716C5E766E0490B605C" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_GeneralAndAdministrativeExpenseMember" xlink:label="loc_us-gaap_GeneralAndAdministrativeExpenseMember_9FABEBAECAB02FDF2F5366E0490B2D33" xlink:type="locator" />
    <link:definitionArc order="2" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_IncomeStatementLocationDomain_FAB5B9958C884612ED9066E0490AA2EE" xlink:to="loc_us-gaap_GeneralAndAdministrativeExpenseMember_9FABEBAECAB02FDF2F5366E0490B2D33" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_SellingAndMarketingExpenseMember" xlink:label="loc_us-gaap_SellingAndMarketingExpenseMember_D9A17DC3BD4924B581F666E0490C4440" xlink:type="locator" />
    <link:definitionArc order="3" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_IncomeStatementLocationDomain_FAB5B9958C884612ED9066E0490AA2EE" xlink:to="loc_us-gaap_SellingAndMarketingExpenseMember_D9A17DC3BD4924B581F666E0490C4440" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_ResearchAndDevelopmentExpenseMember" xlink:label="loc_us-gaap_ResearchAndDevelopmentExpenseMember_8EDD43CA6481AD6555A866E0490C2F0E" xlink:type="locator" />
    <link:definitionArc order="4" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_IncomeStatementLocationDomain_FAB5B9958C884612ED9066E0490AA2EE" xlink:to="loc_us-gaap_ResearchAndDevelopmentExpenseMember_8EDD43CA6481AD6555A866E0490C2F0E" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_ShareBasedCompensationAllocationAndClassificationInFinancialStatementsAbstract" xlink:label="loc_us-gaap_ShareBasedCompensationAllocationAndClassificationInFinancialStatementsAbstract_56DDBB39E48F93126B4266E0490DC3D8" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_EmployeeServiceShareBasedCompensationAllocationOfRecognizedPeriodCostsLineItems_11B628AD640B2393EF1566E0490C8C3E" xlink:to="loc_us-gaap_ShareBasedCompensationAllocationAndClassificationInFinancialStatementsAbstract_56DDBB39E48F93126B4266E0490DC3D8" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_AllocatedShareBasedCompensationExpense" xlink:label="loc_us-gaap_AllocatedShareBasedCompensationExpense_1F02D5A06F18BDF492BE66E0490DC439" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ShareBasedCompensationAllocationAndClassificationInFinancialStatementsAbstract_56DDBB39E48F93126B4266E0490DC3D8" xlink:to="loc_us-gaap_AllocatedShareBasedCompensationExpense_1F02D5A06F18BDF492BE66E0490DC439" xlink:type="arc" />
  </link:definitionLink>
  <link:definitionLink xlink:role="http://www.oesx.com/role/StockOptionsRestrictedSharesAndWarrantsSummaryOfExercisePriceRangeDetails" xlink:type="extended">
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_ShareBasedCompensationSharesAuthorizedUnderStockOptionPlansExercisePriceRangeLineItems" xlink:label="loc_us-gaap_ShareBasedCompensationSharesAuthorizedUnderStockOptionPlansExercisePriceRangeLineItems_E498ADE13E9B77979F955FA93DFB1594" xlink:type="locator" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_ScheduleOfShareBasedCompensationSharesAuthorizedUnderStockOptionPlansByExercisePriceRangeTable" xlink:label="loc_us-gaap_ScheduleOfShareBasedCompensationSharesAuthorizedUnderStockOptionPlansByExercisePriceRangeTable_87FC8C86C9A561F2FB045FA93DF313B5" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/all" xlink:from="loc_us-gaap_ShareBasedCompensationSharesAuthorizedUnderStockOptionPlansExercisePriceRangeLineItems_E498ADE13E9B77979F955FA93DFB1594" xlink:to="loc_us-gaap_ScheduleOfShareBasedCompensationSharesAuthorizedUnderStockOptionPlansByExercisePriceRangeTable_87FC8C86C9A561F2FB045FA93DF313B5" xlink:type="arc" xbrldt:closed="true" xbrldt:contextElement="segment" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_ShareBasedCompensationSharesAuthorizedUnderStockOptionPlansByExercisePriceRangeAxis" xlink:label="loc_us-gaap_ShareBasedCompensationSharesAuthorizedUnderStockOptionPlansByExercisePriceRangeAxis_38F125B12682D9F819A35FA93DF925F2" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_ScheduleOfShareBasedCompensationSharesAuthorizedUnderStockOptionPlansByExercisePriceRangeTable_87FC8C86C9A561F2FB045FA93DF313B5" xlink:to="loc_us-gaap_ShareBasedCompensationSharesAuthorizedUnderStockOptionPlansByExercisePriceRangeAxis_38F125B12682D9F819A35FA93DF925F2" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_ShareBasedCompensationSharesAuthorizedUnderStockOptionPlansExercisePriceRangeDomain" xlink:label="loc_us-gaap_ShareBasedCompensationSharesAuthorizedUnderStockOptionPlansExercisePriceRangeDomain_F5F725ED29EBDBF3B1785FA93DF9966F_default" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_ShareBasedCompensationSharesAuthorizedUnderStockOptionPlansByExercisePriceRangeAxis_38F125B12682D9F819A35FA93DF925F2" xlink:to="loc_us-gaap_ShareBasedCompensationSharesAuthorizedUnderStockOptionPlansExercisePriceRangeDomain_F5F725ED29EBDBF3B1785FA93DF9966F_default" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_ShareBasedCompensationSharesAuthorizedUnderStockOptionPlansExercisePriceRangeDomain" xlink:label="loc_us-gaap_ShareBasedCompensationSharesAuthorizedUnderStockOptionPlansExercisePriceRangeDomain_F5F725ED29EBDBF3B1785FA93DF9966F" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_ShareBasedCompensationSharesAuthorizedUnderStockOptionPlansByExercisePriceRangeAxis_38F125B12682D9F819A35FA93DF925F2" xlink:to="loc_us-gaap_ShareBasedCompensationSharesAuthorizedUnderStockOptionPlansExercisePriceRangeDomain_F5F725ED29EBDBF3B1785FA93DF9966F" xlink:type="arc" />
    <link:loc xlink:href="oesx-20170331.xsd#oesx_RangeTwoMember" xlink:label="loc_oesx_RangeTwoMember_E348E78E7D1F16ED36005FA93DF99470" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ShareBasedCompensationSharesAuthorizedUnderStockOptionPlansExercisePriceRangeDomain_F5F725ED29EBDBF3B1785FA93DF9966F" xlink:to="loc_oesx_RangeTwoMember_E348E78E7D1F16ED36005FA93DF99470" xlink:type="arc" />
    <link:loc xlink:href="oesx-20170331.xsd#oesx_RangeThreeMember" xlink:label="loc_oesx_RangeThreeMember_1DB417A050BAC84D9F655FA93DFA989D" xlink:type="locator" />
    <link:definitionArc order="2" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ShareBasedCompensationSharesAuthorizedUnderStockOptionPlansExercisePriceRangeDomain_F5F725ED29EBDBF3B1785FA93DF9966F" xlink:to="loc_oesx_RangeThreeMember_1DB417A050BAC84D9F655FA93DFA989D" xlink:type="arc" />
    <link:loc xlink:href="oesx-20170331.xsd#oesx_RangeFourMember" xlink:label="loc_oesx_RangeFourMember_B3F89FAEAE06CC3DBF195FA93DFA5374" xlink:type="locator" />
    <link:definitionArc order="3" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ShareBasedCompensationSharesAuthorizedUnderStockOptionPlansExercisePriceRangeDomain_F5F725ED29EBDBF3B1785FA93DF9966F" xlink:to="loc_oesx_RangeFourMember_B3F89FAEAE06CC3DBF195FA93DFA5374" xlink:type="arc" />
    <link:loc xlink:href="oesx-20170331.xsd#oesx_RangeFiveMember" xlink:label="loc_oesx_RangeFiveMember_647B0AEC7863C54CCD635FA93DFAC160" xlink:type="locator" />
    <link:definitionArc order="4" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ShareBasedCompensationSharesAuthorizedUnderStockOptionPlansExercisePriceRangeDomain_F5F725ED29EBDBF3B1785FA93DF9966F" xlink:to="loc_oesx_RangeFiveMember_647B0AEC7863C54CCD635FA93DFAC160" xlink:type="arc" />
    <link:loc xlink:href="oesx-20170331.xsd#oesx_RangeSixMember" xlink:label="loc_oesx_RangeSixMember_FE78DC8572ECEAFA57F25FA93DFADBF1" xlink:type="locator" />
    <link:definitionArc order="5" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ShareBasedCompensationSharesAuthorizedUnderStockOptionPlansExercisePriceRangeDomain_F5F725ED29EBDBF3B1785FA93DF9966F" xlink:to="loc_oesx_RangeSixMember_FE78DC8572ECEAFA57F25FA93DFADBF1" xlink:type="arc" />
    <link:loc xlink:href="oesx-20170331.xsd#oesx_RangeSevenMember" xlink:label="loc_oesx_RangeSevenMember_342B91856704F874216F5FA93DFB84E4" xlink:type="locator" />
    <link:definitionArc order="6" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ShareBasedCompensationSharesAuthorizedUnderStockOptionPlansExercisePriceRangeDomain_F5F725ED29EBDBF3B1785FA93DF9966F" xlink:to="loc_oesx_RangeSevenMember_342B91856704F874216F5FA93DFB84E4" xlink:type="arc" />
    <link:loc xlink:href="oesx-20170331.xsd#oesx_RangeEightMember" xlink:label="loc_oesx_RangeEightMember_218256719B1282A3313C5FA93DFBBBDF" xlink:type="locator" />
    <link:definitionArc order="7" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ShareBasedCompensationSharesAuthorizedUnderStockOptionPlansExercisePriceRangeDomain_F5F725ED29EBDBF3B1785FA93DF9966F" xlink:to="loc_oesx_RangeEightMember_218256719B1282A3313C5FA93DFBBBDF" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_ShareBasedCompensationSharesAuthorizedUnderStockOptionPlansExercisePriceRangeLowerRangeLimit" xlink:label="loc_us-gaap_ShareBasedCompensationSharesAuthorizedUnderStockOptionPlansExercisePriceRangeLowerRangeLimit_9D22178A0FC2FAC907815FA93DFBC73C" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ShareBasedCompensationSharesAuthorizedUnderStockOptionPlansExercisePriceRangeLineItems_E498ADE13E9B77979F955FA93DFB1594" xlink:to="loc_us-gaap_ShareBasedCompensationSharesAuthorizedUnderStockOptionPlansExercisePriceRangeLowerRangeLimit_9D22178A0FC2FAC907815FA93DFBC73C" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_ShareBasedCompensationSharesAuthorizedUnderStockOptionPlansExercisePriceRangeUpperRangeLimit" xlink:label="loc_us-gaap_ShareBasedCompensationSharesAuthorizedUnderStockOptionPlansExercisePriceRangeUpperRangeLimit_CB5AE1BB00BD55B5EE425FA93DFBD2DF" xlink:type="locator" />
    <link:definitionArc order="2" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ShareBasedCompensationSharesAuthorizedUnderStockOptionPlansExercisePriceRangeLineItems_E498ADE13E9B77979F955FA93DFB1594" xlink:to="loc_us-gaap_ShareBasedCompensationSharesAuthorizedUnderStockOptionPlansExercisePriceRangeUpperRangeLimit_CB5AE1BB00BD55B5EE425FA93DFBD2DF" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardOptionsOutstandingNumber" xlink:label="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardOptionsOutstandingNumber_53603FBA0B08890BFE925FA93DFBF24C" xlink:type="locator" />
    <link:definitionArc order="3" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ShareBasedCompensationSharesAuthorizedUnderStockOptionPlansExercisePriceRangeLineItems_E498ADE13E9B77979F955FA93DFB1594" xlink:to="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardOptionsOutstandingNumber_53603FBA0B08890BFE925FA93DFBF24C" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_SharebasedCompensationArrangementBySharebasedPaymentAwardOptionsOutstandingWeightedAverageRemainingContractualTerm2" xlink:label="loc_us-gaap_SharebasedCompensationArrangementBySharebasedPaymentAwardOptionsOutstandingWeightedAverageRemainingContractualTerm2_9F688A3CA031B34CBFBA5FA93DFC79A2" xlink:type="locator" />
    <link:definitionArc order="4" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ShareBasedCompensationSharesAuthorizedUnderStockOptionPlansExercisePriceRangeLineItems_E498ADE13E9B77979F955FA93DFB1594" xlink:to="loc_us-gaap_SharebasedCompensationArrangementBySharebasedPaymentAwardOptionsOutstandingWeightedAverageRemainingContractualTerm2_9F688A3CA031B34CBFBA5FA93DFC79A2" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardOptionsOutstandingWeightedAverageExercisePrice" xlink:label="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardOptionsOutstandingWeightedAverageExercisePrice_4916B14A8DB9EE86B6335FA93DFCC811" xlink:type="locator" />
    <link:definitionArc order="5" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ShareBasedCompensationSharesAuthorizedUnderStockOptionPlansExercisePriceRangeLineItems_E498ADE13E9B77979F955FA93DFB1594" xlink:to="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardOptionsOutstandingWeightedAverageExercisePrice_4916B14A8DB9EE86B6335FA93DFCC811" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardOptionsExercisableNumber" xlink:label="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardOptionsExercisableNumber_7CF6F87BBEFC5E71044A5FA93DFC2B59" xlink:type="locator" />
    <link:definitionArc order="6" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ShareBasedCompensationSharesAuthorizedUnderStockOptionPlansExercisePriceRangeLineItems_E498ADE13E9B77979F955FA93DFB1594" xlink:to="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardOptionsExercisableNumber_7CF6F87BBEFC5E71044A5FA93DFC2B59" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardOptionsVestedAndExpectedToVestOutstandingWeightedAverageExercisePrice" xlink:label="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardOptionsVestedAndExpectedToVestOutstandingWeightedAverageExercisePrice_2A98B8C445B88A1506D35FA93DFC291A" xlink:type="locator" />
    <link:definitionArc order="7" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ShareBasedCompensationSharesAuthorizedUnderStockOptionPlansExercisePriceRangeLineItems_E498ADE13E9B77979F955FA93DFB1594" xlink:to="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardOptionsVestedAndExpectedToVestOutstandingWeightedAverageExercisePrice_2A98B8C445B88A1506D35FA93DFC291A" xlink:type="arc" />
  </link:definitionLink>
  <link:definitionLink xlink:role="http://www.oesx.com/role/StockOptionsRestrictedSharesAndWarrantsSummaryOfOutstandingStockOptionsDetails" xlink:type="extended" />
  <link:definitionLink xlink:role="http://www.oesx.com/role/StockOptionsRestrictedSharesAndWarrantsSummaryOfUnrecognizedCompensationCostDetails" xlink:type="extended" />
  <link:definitionLink xlink:role="http://www.oesx.com/role/StockOptionsRestrictedSharesAndWarrantsTables" 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/SubsequentEventsDetails" xlink:type="extended">
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_SubsequentEventLineItems" xlink:label="loc_us-gaap_SubsequentEventLineItems_D3DF78D21F606B8FF602846E20724C3F" xlink:type="locator" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_SubsequentEventTable" xlink:label="loc_us-gaap_SubsequentEventTable_94FF029F0280A6B6E0D1846E206F6F8D" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/all" xlink:from="loc_us-gaap_SubsequentEventLineItems_D3DF78D21F606B8FF602846E20724C3F" xlink:to="loc_us-gaap_SubsequentEventTable_94FF029F0280A6B6E0D1846E206F6F8D" xlink:type="arc" xbrldt:closed="true" xbrldt:contextElement="segment" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_SubsequentEventTypeAxis" xlink:label="loc_us-gaap_SubsequentEventTypeAxis_E8DE315F94CD888B1D66846E207009CB" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_SubsequentEventTable_94FF029F0280A6B6E0D1846E206F6F8D" xlink:to="loc_us-gaap_SubsequentEventTypeAxis_E8DE315F94CD888B1D66846E207009CB" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_SubsequentEventTypeDomain" xlink:label="loc_us-gaap_SubsequentEventTypeDomain_EA4F5E34C2DC80B75DED846E20712F80_default" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_SubsequentEventTypeAxis_E8DE315F94CD888B1D66846E207009CB" xlink:to="loc_us-gaap_SubsequentEventTypeDomain_EA4F5E34C2DC80B75DED846E20712F80_default" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_SubsequentEventTypeDomain" xlink:label="loc_us-gaap_SubsequentEventTypeDomain_EA4F5E34C2DC80B75DED846E20712F80" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_SubsequentEventTypeAxis_E8DE315F94CD888B1D66846E207009CB" xlink:to="loc_us-gaap_SubsequentEventTypeDomain_EA4F5E34C2DC80B75DED846E20712F80" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_SubsequentEventMember" xlink:label="loc_us-gaap_SubsequentEventMember_C6BA102EFF039FB5CE48846FCC9A9DE5" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_SubsequentEventTypeDomain_EA4F5E34C2DC80B75DED846E20712F80" xlink:to="loc_us-gaap_SubsequentEventMember_C6BA102EFF039FB5CE48846FCC9A9DE5" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_RestructuringCostAndReserveAxis" xlink:label="loc_us-gaap_RestructuringCostAndReserveAxis_9DC6D3D6D45AF7571FA4846F426220E8" xlink:type="locator" />
    <link:definitionArc order="2" xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_SubsequentEventTable_94FF029F0280A6B6E0D1846E206F6F8D" xlink:to="loc_us-gaap_RestructuringCostAndReserveAxis_9DC6D3D6D45AF7571FA4846F426220E8" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_TypeOfRestructuringDomain" xlink:label="loc_us-gaap_TypeOfRestructuringDomain_E60C13D2C57441357017846F9C6368D7_default" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_RestructuringCostAndReserveAxis_9DC6D3D6D45AF7571FA4846F426220E8" xlink:to="loc_us-gaap_TypeOfRestructuringDomain_E60C13D2C57441357017846F9C6368D7_default" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_TypeOfRestructuringDomain" xlink:label="loc_us-gaap_TypeOfRestructuringDomain_E60C13D2C57441357017846F9C6368D7" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_RestructuringCostAndReserveAxis_9DC6D3D6D45AF7571FA4846F426220E8" xlink:to="loc_us-gaap_TypeOfRestructuringDomain_E60C13D2C57441357017846F9C6368D7" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_SpecialTerminationBenefitsMember" xlink:label="loc_us-gaap_SpecialTerminationBenefitsMember_B2D4CFB712F757AD7FBB847051F4E251" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_TypeOfRestructuringDomain_E60C13D2C57441357017846F9C6368D7" xlink:to="loc_us-gaap_SpecialTerminationBenefitsMember_B2D4CFB712F757AD7FBB847051F4E251" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_RangeAxis" xlink:label="loc_us-gaap_RangeAxis_BB2336DD66D5ACDE6C29847118E0246B" xlink:type="locator" />
    <link:definitionArc order="3" xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_SubsequentEventTable_94FF029F0280A6B6E0D1846E206F6F8D" xlink:to="loc_us-gaap_RangeAxis_BB2336DD66D5ACDE6C29847118E0246B" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_RangeMember" xlink:label="loc_us-gaap_RangeMember_8F99AA4938499206FBB1847118E1F850_default" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_RangeAxis_BB2336DD66D5ACDE6C29847118E0246B" xlink:to="loc_us-gaap_RangeMember_8F99AA4938499206FBB1847118E1F850_default" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_RangeMember" xlink:label="loc_us-gaap_RangeMember_8F99AA4938499206FBB1847118E1F850" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_RangeAxis_BB2336DD66D5ACDE6C29847118E0246B" xlink:to="loc_us-gaap_RangeMember_8F99AA4938499206FBB1847118E1F850" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_MinimumMember" xlink:label="loc_us-gaap_MinimumMember_A3A15B9185E536446E73847145D5B9B4" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_RangeMember_8F99AA4938499206FBB1847118E1F850" xlink:to="loc_us-gaap_MinimumMember_A3A15B9185E536446E73847145D5B9B4" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_MaximumMember" xlink:label="loc_us-gaap_MaximumMember_B77B20FEC9083375CEA084716A4259FF" xlink:type="locator" />
    <link:definitionArc order="2" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_RangeMember_8F99AA4938499206FBB1847118E1F850" xlink:to="loc_us-gaap_MaximumMember_B77B20FEC9083375CEA084716A4259FF" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_RestructuringAndRelatedCostExpectedCost1" xlink:label="loc_us-gaap_RestructuringAndRelatedCostExpectedCost1_A014707FD8CC3527F821846F056529AD" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_SubsequentEventLineItems_D3DF78D21F606B8FF602846E20724C3F" xlink:to="loc_us-gaap_RestructuringAndRelatedCostExpectedCost1_A014707FD8CC3527F821846F056529AD" xlink:type="arc" />
  </link:definitionLink>
  <link:definitionLink xlink:role="http://www.oesx.com/role/SummaryOfSignificantAccountingPolicies" xlink:type="extended" />
  <link:definitionLink xlink:role="http://www.oesx.com/role/SummaryOfSignificantAccountingPoliciesConcentrationRiskDetails" xlink:type="extended">
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_ConcentrationRiskLineItems" xlink:label="loc_us-gaap_ConcentrationRiskLineItems_FD6A5213781B49DF713D64B047FF3D7F" xlink:type="locator" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_ConcentrationRiskTable" xlink:label="loc_us-gaap_ConcentrationRiskTable_058952DD9DD81E49DEA264B047FF5877" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/all" xlink:from="loc_us-gaap_ConcentrationRiskLineItems_FD6A5213781B49DF713D64B047FF3D7F" xlink:to="loc_us-gaap_ConcentrationRiskTable_058952DD9DD81E49DEA264B047FF5877" xlink:type="arc" xbrldt:closed="true" xbrldt:contextElement="segment" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_ConcentrationRiskByTypeAxis" xlink:label="loc_us-gaap_ConcentrationRiskByTypeAxis_3D061B50CC64FE5F93F164B047FF2532" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_ConcentrationRiskTable_058952DD9DD81E49DEA264B047FF5877" xlink:to="loc_us-gaap_ConcentrationRiskByTypeAxis_3D061B50CC64FE5F93F164B047FF2532" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_ConcentrationRiskTypeDomain" xlink:label="loc_us-gaap_ConcentrationRiskTypeDomain_747352DB91A74D33C01864B047FF1BCE_default" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_ConcentrationRiskByTypeAxis_3D061B50CC64FE5F93F164B047FF2532" xlink:to="loc_us-gaap_ConcentrationRiskTypeDomain_747352DB91A74D33C01864B047FF1BCE_default" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_ConcentrationRiskTypeDomain" xlink:label="loc_us-gaap_ConcentrationRiskTypeDomain_747352DB91A74D33C01864B047FF1BCE" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_ConcentrationRiskByTypeAxis_3D061B50CC64FE5F93F164B047FF2532" xlink:to="loc_us-gaap_ConcentrationRiskTypeDomain_747352DB91A74D33C01864B047FF1BCE" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_CustomerConcentrationRiskMember" xlink:label="loc_us-gaap_CustomerConcentrationRiskMember_FF23DD4D0C4F903528A964B047FF45E3" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ConcentrationRiskTypeDomain_747352DB91A74D33C01864B047FF1BCE" xlink:to="loc_us-gaap_CustomerConcentrationRiskMember_FF23DD4D0C4F903528A964B047FF45E3" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_ConcentrationRiskByBenchmarkAxis" xlink:label="loc_us-gaap_ConcentrationRiskByBenchmarkAxis_CC0A7D7A5D04755A496264B047FFA90B" xlink:type="locator" />
    <link:definitionArc order="2" xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_ConcentrationRiskTable_058952DD9DD81E49DEA264B047FF5877" xlink:to="loc_us-gaap_ConcentrationRiskByBenchmarkAxis_CC0A7D7A5D04755A496264B047FFA90B" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_ConcentrationRiskBenchmarkDomain" xlink:label="loc_us-gaap_ConcentrationRiskBenchmarkDomain_B9479CAAF99F78823C1764B047FF017F_default" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_ConcentrationRiskByBenchmarkAxis_CC0A7D7A5D04755A496264B047FFA90B" xlink:to="loc_us-gaap_ConcentrationRiskBenchmarkDomain_B9479CAAF99F78823C1764B047FF017F_default" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_ConcentrationRiskBenchmarkDomain" xlink:label="loc_us-gaap_ConcentrationRiskBenchmarkDomain_B9479CAAF99F78823C1764B047FF017F" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_ConcentrationRiskByBenchmarkAxis_CC0A7D7A5D04755A496264B047FFA90B" xlink:to="loc_us-gaap_ConcentrationRiskBenchmarkDomain_B9479CAAF99F78823C1764B047FF017F" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_SalesMember" xlink:label="loc_us-gaap_SalesMember_540D40C9D82761C30F6664B047FF6613" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ConcentrationRiskBenchmarkDomain_B9479CAAF99F78823C1764B047FF017F" xlink:to="loc_us-gaap_SalesMember_540D40C9D82761C30F6664B047FF6613" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_AccountsReceivableMember" xlink:label="loc_us-gaap_AccountsReceivableMember_BBAD0AD3909F5C3D0BA964B047FF9287" xlink:type="locator" />
    <link:definitionArc order="2" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ConcentrationRiskBenchmarkDomain_B9479CAAF99F78823C1764B047FF017F" xlink:to="loc_us-gaap_AccountsReceivableMember_BBAD0AD3909F5C3D0BA964B047FF9287" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_MajorCustomersAxis" xlink:label="loc_us-gaap_MajorCustomersAxis_EB2371C0BEA42238551264B047FF74B3" xlink:type="locator" />
    <link:definitionArc order="3" xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_ConcentrationRiskTable_058952DD9DD81E49DEA264B047FF5877" xlink:to="loc_us-gaap_MajorCustomersAxis_EB2371C0BEA42238551264B047FF74B3" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_NameOfMajorCustomerDomain" xlink:label="loc_us-gaap_NameOfMajorCustomerDomain_A34D1A8C5A06268A8E9064B047FFE576_default" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_MajorCustomersAxis_EB2371C0BEA42238551264B047FF74B3" xlink:to="loc_us-gaap_NameOfMajorCustomerDomain_A34D1A8C5A06268A8E9064B047FFE576_default" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_NameOfMajorCustomerDomain" xlink:label="loc_us-gaap_NameOfMajorCustomerDomain_A34D1A8C5A06268A8E9064B047FFE576" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_MajorCustomersAxis_EB2371C0BEA42238551264B047FF74B3" xlink:to="loc_us-gaap_NameOfMajorCustomerDomain_A34D1A8C5A06268A8E9064B047FFE576" xlink:type="arc" />
    <link:loc xlink:href="oesx-20170331.xsd#oesx_CustomerOneMember" xlink:label="loc_oesx_CustomerOneMember_074E9DB19DED52189C6164B047FFEBDB" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_NameOfMajorCustomerDomain_A34D1A8C5A06268A8E9064B047FFE576" xlink:to="loc_oesx_CustomerOneMember_074E9DB19DED52189C6164B047FFEBDB" xlink:type="arc" />
    <link:loc xlink:href="oesx-20170331.xsd#oesx_NumberofFinancialInstitutions" xlink:label="loc_oesx_NumberofFinancialInstitutions_A9FA343485CE08D2CBA364B047FFF8B4" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ConcentrationRiskLineItems_FD6A5213781B49DF713D64B047FF3D7F" xlink:to="loc_oesx_NumberofFinancialInstitutions_A9FA343485CE08D2CBA364B047FFF8B4" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_ConcentrationRiskPercentage1" xlink:label="loc_us-gaap_ConcentrationRiskPercentage1_4A7E938FAFC8944E05D264B047FF37C4" xlink:type="locator" />
    <link:definitionArc order="2" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ConcentrationRiskLineItems_FD6A5213781B49DF713D64B047FF3D7F" xlink:to="loc_us-gaap_ConcentrationRiskPercentage1_4A7E938FAFC8944E05D264B047FF37C4" xlink:type="arc" />
  </link:definitionLink>
  <link:definitionLink xlink:role="http://www.oesx.com/role/SummaryOfSignificantAccountingPoliciesIncentiveCompensationDetails" xlink:type="extended">
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_DeferredCompensationArrangementWithIndividualExcludingShareBasedPaymentsAndPostretirementBenefitsLineItems" xlink:label="loc_us-gaap_DeferredCompensationArrangementWithIndividualExcludingShareBasedPaymentsAndPostretirementBenefitsLineItems_91B9BE6496910BC72A6740C2858D6656" xlink:type="locator" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_ScheduleOfDeferredCompensationArrangementWithIndividualExcludingShareBasedPaymentsAndPostretirementBenefitsByTitleOfIndividualAndByTypeOfDeferredCompensationTable" xlink:label="loc_us-gaap_ScheduleOfDeferredCompensationArrangementWithIndividualExcludingShareBasedPaymentsAndPostretirementBenefitsByTitleOfIndividualAndByTypeOfDeferredCompensationTable_09447BFAEDE1ED553C1A40C2858CF7E5" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/all" xlink:from="loc_us-gaap_DeferredCompensationArrangementWithIndividualExcludingShareBasedPaymentsAndPostretirementBenefitsLineItems_91B9BE6496910BC72A6740C2858D6656" xlink:to="loc_us-gaap_ScheduleOfDeferredCompensationArrangementWithIndividualExcludingShareBasedPaymentsAndPostretirementBenefitsByTitleOfIndividualAndByTypeOfDeferredCompensationTable_09447BFAEDE1ED553C1A40C2858CF7E5" xlink:type="arc" xbrldt:closed="true" xbrldt:contextElement="segment" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_DeferredCompensationArrangementWithIndividualExcludingShareBasedPaymentsAndPostretirementBenefitsByTypeOfDeferredCompensationAxis" xlink:label="loc_us-gaap_DeferredCompensationArrangementWithIndividualExcludingShareBasedPaymentsAndPostretirementBenefitsByTypeOfDeferredCompensationAxis_3C1C9A7A843E1EEB267940C2858C03DC" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_ScheduleOfDeferredCompensationArrangementWithIndividualExcludingShareBasedPaymentsAndPostretirementBenefitsByTitleOfIndividualAndByTypeOfDeferredCompensationTable_09447BFAEDE1ED553C1A40C2858CF7E5" xlink:to="loc_us-gaap_DeferredCompensationArrangementWithIndividualExcludingShareBasedPaymentsAndPostretirementBenefitsByTypeOfDeferredCompensationAxis_3C1C9A7A843E1EEB267940C2858C03DC" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_DeferredBonusAndProfitSharingArrangementIndividualContractTypeOfDeferredCompensationDomain" xlink:label="loc_us-gaap_DeferredBonusAndProfitSharingArrangementIndividualContractTypeOfDeferredCompensationDomain_7EAB3BEF1C41751BCAFC40C2858C5978_default" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_DeferredCompensationArrangementWithIndividualExcludingShareBasedPaymentsAndPostretirementBenefitsByTypeOfDeferredCompensationAxis_3C1C9A7A843E1EEB267940C2858C03DC" xlink:to="loc_us-gaap_DeferredBonusAndProfitSharingArrangementIndividualContractTypeOfDeferredCompensationDomain_7EAB3BEF1C41751BCAFC40C2858C5978_default" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_DeferredBonusAndProfitSharingArrangementIndividualContractTypeOfDeferredCompensationDomain" xlink:label="loc_us-gaap_DeferredBonusAndProfitSharingArrangementIndividualContractTypeOfDeferredCompensationDomain_7EAB3BEF1C41751BCAFC40C2858C5978" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_DeferredCompensationArrangementWithIndividualExcludingShareBasedPaymentsAndPostretirementBenefitsByTypeOfDeferredCompensationAxis_3C1C9A7A843E1EEB267940C2858C03DC" xlink:to="loc_us-gaap_DeferredBonusAndProfitSharingArrangementIndividualContractTypeOfDeferredCompensationDomain_7EAB3BEF1C41751BCAFC40C2858C5978" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_DeferredBonusMember" xlink:label="loc_us-gaap_DeferredBonusMember_F4A7B235740CA19DC3FA40C2858CD2FC" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DeferredBonusAndProfitSharingArrangementIndividualContractTypeOfDeferredCompensationDomain_7EAB3BEF1C41751BCAFC40C2858C5978" xlink:to="loc_us-gaap_DeferredBonusMember_F4A7B235740CA19DC3FA40C2858CD2FC" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_RangeAxis" xlink:label="loc_us-gaap_RangeAxis_EE7405D279484A3A1EB040C2858C7E45" xlink:type="locator" />
    <link:definitionArc order="2" xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_ScheduleOfDeferredCompensationArrangementWithIndividualExcludingShareBasedPaymentsAndPostretirementBenefitsByTitleOfIndividualAndByTypeOfDeferredCompensationTable_09447BFAEDE1ED553C1A40C2858CF7E5" xlink:to="loc_us-gaap_RangeAxis_EE7405D279484A3A1EB040C2858C7E45" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_RangeMember" xlink:label="loc_us-gaap_RangeMember_FB080FE28E1ABAA40EFD40C2858CFF00_default" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_RangeAxis_EE7405D279484A3A1EB040C2858C7E45" xlink:to="loc_us-gaap_RangeMember_FB080FE28E1ABAA40EFD40C2858CFF00_default" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_RangeMember" xlink:label="loc_us-gaap_RangeMember_FB080FE28E1ABAA40EFD40C2858CFF00" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_RangeAxis_EE7405D279484A3A1EB040C2858C7E45" xlink:to="loc_us-gaap_RangeMember_FB080FE28E1ABAA40EFD40C2858CFF00" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_MinimumMember" xlink:label="loc_us-gaap_MinimumMember_D3A9071B04906C8A58F140C2858D5037" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_RangeMember_FB080FE28E1ABAA40EFD40C2858CFF00" xlink:to="loc_us-gaap_MinimumMember_D3A9071B04906C8A58F140C2858D5037" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_MaximumMember" xlink:label="loc_us-gaap_MaximumMember_A785C818A8E006F1EB9E40C2858DD9E9" xlink:type="locator" />
    <link:definitionArc order="2" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_RangeMember_FB080FE28E1ABAA40EFD40C2858CFF00" xlink:to="loc_us-gaap_MaximumMember_A785C818A8E006F1EB9E40C2858DD9E9" xlink:type="arc" />
    <link:loc xlink:href="oesx-20170331.xsd#oesx_DeferredCompensationArrangementWithIndividualDiscretionaryBonusPaymentPercentage" xlink:label="loc_oesx_DeferredCompensationArrangementWithIndividualDiscretionaryBonusPaymentPercentage_01F8AB12DF3AC2C8405940C2858D0432" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DeferredCompensationArrangementWithIndividualExcludingShareBasedPaymentsAndPostretirementBenefitsLineItems_91B9BE6496910BC72A6740C2858D6656" xlink:to="loc_oesx_DeferredCompensationArrangementWithIndividualDiscretionaryBonusPaymentPercentage_01F8AB12DF3AC2C8405940C2858D0432" xlink:type="arc" />
    <link:loc xlink:href="oesx-20170331.xsd#oesx_DeferredCompensationArrangementwithIndividualCashAwardThresholdProfitBeforeTaxes" xlink:label="loc_oesx_DeferredCompensationArrangementwithIndividualCashAwardThresholdProfitBeforeTaxes_A4EDF024EEE02430A01540C2858DBFD9" xlink:type="locator" />
    <link:definitionArc order="2" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DeferredCompensationArrangementWithIndividualExcludingShareBasedPaymentsAndPostretirementBenefitsLineItems_91B9BE6496910BC72A6740C2858D6656" xlink:to="loc_oesx_DeferredCompensationArrangementwithIndividualCashAwardThresholdProfitBeforeTaxes_A4EDF024EEE02430A01540C2858DBFD9" xlink:type="arc" />
    <link:loc xlink:href="oesx-20170331.xsd#oesx_DeferredCompensationArrangementwithIndividualCashAwardThresholdRevenueGrowthPercent" xlink:label="loc_oesx_DeferredCompensationArrangementwithIndividualCashAwardThresholdRevenueGrowthPercent_3C592322AC92E39D92F640C2858D90DE" xlink:type="locator" />
    <link:definitionArc order="3" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DeferredCompensationArrangementWithIndividualExcludingShareBasedPaymentsAndPostretirementBenefitsLineItems_91B9BE6496910BC72A6740C2858D6656" xlink:to="loc_oesx_DeferredCompensationArrangementwithIndividualCashAwardThresholdRevenueGrowthPercent_3C592322AC92E39D92F640C2858D90DE" xlink:type="arc" />
    <link:loc xlink:href="oesx-20170331.xsd#oesx_DeferredCompensationArrangementWithIndividualCashAwardThresholdRevenue" xlink:label="loc_oesx_DeferredCompensationArrangementWithIndividualCashAwardThresholdRevenue_FAFAE9DDF6A65CD075CC40C2858D6636" xlink:type="locator" />
    <link:definitionArc order="4" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DeferredCompensationArrangementWithIndividualExcludingShareBasedPaymentsAndPostretirementBenefitsLineItems_91B9BE6496910BC72A6740C2858D6656" xlink:to="loc_oesx_DeferredCompensationArrangementWithIndividualCashAwardThresholdRevenue_FAFAE9DDF6A65CD075CC40C2858D6636" xlink:type="arc" />
  </link:definitionLink>
  <link:definitionLink xlink:role="http://www.oesx.com/role/SummaryOfSignificantAccountingPoliciesNarrativeDetails" xlink:type="extended" />
  <link:definitionLink xlink:role="http://www.oesx.com/role/SummaryOfSignificantAccountingPoliciesPolicies" xlink:type="extended" />
</link:linkbase>





