TOR - Grid Code - EN - FR
TOR - Grid Code - EN - FR
Terms of Reference
Preparation of electricity grid code in Morocco
English version
These Terms of Reference are issued in English and French. In case of a discrepancy, the
English version of the Terms of Reference is the prevailing language.
I. Background
The European Bank for Reconstruction and Development (the “EBRD” or the “Bank”) is committed
to building deep and liquid energy markets in its Countries of Operations, including through the
strengthening of independent regulation, the implementation of market-supporting regulatory
frameworks, and the entrenchment of market-based behaviour.
The present assignment fits within the context of the changes taking place in the electrical energy
sector in the Kingdom of Morocco and more particularly, the development of renewable energies and
the progressive liberalisation of the sector.
In adopting Law No.13-09 on renewable energies (in what follows “Law No.13-09”), Morocco
actively launched the process of liberalisation of the sector. In fact, Law No. 13-09 establishes the
principle according to which any producer of electricity from renewable energy sources (public or
private) has the right to be connected to the national low, medium-, high- and very high-voltage power
grid.
In order to support these fundamental changes in the electricity sector, the Moroccan authorities
adopted Law No. 48-15 in May 2016, to create an Independent Regulator in charge of setting tariffs
and electricity grid access conditions.
EBRD initiated a policy dialogue with the Moroccan Ministry of Energy, Mines and Sustainable
Development (« MEMSD » or « Client ») for the implementation of this Independent Regulator,
which will send out a strong signal of transparency and independence, as well as support further
openings of the electricity market to the private sector and changes in the sector’s activities.
Within this context, the MEMSD is asking for the Bank’s support for standardising the technical rules
related to electricity networks management, as well as the conditions and modalities of access to all
voltage levels by setting up an electricity Grid Code (the “Assignment”).
II. Objective
The objective of the Assignment is to assist the Client with the preparation of technical regulations for
the management of electricity networks (the “Grid code”). These regulations must contain provisions
and rules relating to the management of and access and connection to low-voltage (“LV), medium-
voltage (“MV”), high-voltage (“HV”) and very high-voltage (“VHV”) networks.
This Assignment falls within the preparation of the implementation of law 48-15 related to the
regulation of the electricity sector and in particular its article 11 concerning the elaboration of:
• The code for transport network;
• A document explaining the technical provisions related to the conditions of connection and
access to MV electricity networks of the distribution and the rules concerning their utilisation.
In carrying out this Assignment, the Consultant will have to work in several phases:
14244e-0 1
OFFICIAL USE
OFFICIAL USE
Information-gathering missions will be organized for the purpose of meeting the various players in the
electricity sector (MEMSD, the Office National de l’Electricité et de l’Eau Potable (“ONEE”), the
electricity boards, the concessionaires, the connected manufacturers, etc.).
Task 2 – Analysis of the existing Moroccan legislative, regulatory and contractual framework
relating to the electricity market
The Consultant will identify the existing Moroccan legislative, regulatory and contractual framework.
On the basis of these texts, the Consultant will determine the rules currently applicable to the various
problems associated with access to the low-voltage, medium-voltage and high-voltage networks.
The Consultant will have to pay special attention to the analysis of the following issues:
- the technical conditions of connection to the networks for conventional and renewable
electricity-producing installations;
- the conditions of access to the networks for conventional and renewable electricity-producing
installations;
- the structure and the planning, development, operating and safety rules adopted for the
networks.
On completion of this analysis, the Consultant will present, in an interim report, the existing
provisions that can be re-used in the technical regulations. The Consultant will indicate whether these
provisions can be used as they stand or will need to be modified or improved.
In the process of drawing up his proposals for modifications and improvements, the Consultant will
carry out a benchmarking study to determine the best practices in the field. In the course of this
benchmarking study, the Consultant will have to examine the relevant practices in at least two
countries part of ENTSO-E (technical requirements, connection rules, etc.).
The Consultant will present the Client with the written interim report 2 months after the start-up
meeting.
The Consultant will make a critical analysis of the access and connection contracts already in place
with the electricity network managers (ONEE, electricity boards, delegated network managers and
concessions) and will draw up technical regulations that take into account the specific characteristics
of the producers and the end users, as well as those of the electricity boards, the private distributors
and ONEE. These regulations will include at least the following topics and codes:
1. General provisions
This chapter, devoted to the general provisions of the technical regulations, must contain general
information for the implementation of the regulations.
14244e-0 2
OFFICIAL USE
OFFICIAL USE
• details of the tasks and obligations of the network manager. These tasks and obligations may
have a legal as well as a technical application (such as management of secondary reserve,
management of energy coming from auxiliary services, management of load-shedding plans);
• rules on the exchange of information, confidentiality and the publication of information;
• rules on the accessibility of the network manager’s installations, including general provisions
with regard to the protection and safety of persons and property;
• the accessibility of the network user’s installations and the particular arrangements with regard
to those installations that form a functional part of the network or have a non-negligible
influence on it;
• a description of state of emergency and force majeure;
• The rules for management of the transport network (respect of technical limits of the material
and of the safety of persons and goods, respect of the safety of the functioning of electrical
systems, respect of the supply quality and of the rules of operation of the works)
2. Planning code
A multi-annual network investment plan covering all voltage levels must be drawn up so as to ensure
the continuity and reliability of the electricity supply (the “Planning code”).
• gather data and necessary studies to prepare the network manager’s investment plan;
• specify the network user’s obligations with regard to communicating his own planning data to
the network manager;
• describe the procedure for communicating the network user’s data to the network manager;
• establish the arrangements for coordination between the various network managers with a
view to optimising the investment;
• Establish he arrangements for coordination between the electricity network development and
the production means planning;
• Analyse the planning criteria to be considered for the elaboration of the network master
scheme (for VHV, HV and MV) taking into account the integration of renewable energies in
the network.
3. Connection code
This code must contain provisions concerning the modes of connection as a function of the installation
capacity and the technical requirements which the latter must satisfy. An analysis of current
connection contract should be prepared as well.
This code must also incorporate the framework for an emergency connection.
This code will include different technical requirements depending on whether the connection of the
installation involves VHV, HV, MV or LV. The technical requirements for the connection of
production and consumption units will be specified.
• All types of production and consumption connection must be covered by the code, which must
take account of the specific characteristics of the various kinds of renewable energy (wind,
solar, biomass, hydro-power, etc.). The procedures and technical criteria will be based on the
size of the units.
• All requirements in terms of operating range (frequency, voltage), resistance to voltage dips,
power factor, protection, islanding, quality of the electricity (harmonic distortion in current
14244e-0 3
OFFICIAL USE
OFFICIAL USE
and voltage and flickers), synchronisation, etc. will have to be specified for units connected to
the national grid. More precisely, a minimum protection plan is to be provided by the network
user and must be coordinated to respond to the manager’s protection plan. The rules and the
technical equipment for connecting and disconnecting production units will have to be clearly
defined.
• The technical requirements for connecting to the MV and LV networks will have to be
different, depending on the installed power levels, which will have to be clearly predefined.
• The best practices for design, operation and the integration of production in isolated grids
must also be provided. Technical studies, accompanied by reports, will have to be carried out
to determine the operating limits of the system components (voltage, frequency, power factor,
etc.).
• The needs in terms of controllability of the production and consumption units will be
specified:
o Philosophy of production controllability
o Introduction of control system (Automatic Generation Control)
• Specification of the tests which have to be carried out in order to show that the connection is
compliant (conformity testing).
• The processing of the excess of the power connection limit
• Reactive power
• Operating conditions.
The Consultant will also deal with the connection procedure (studies to be carried out, connection
contract, and execution of the connection) and the rules on the use of the connection, its maintenance
and compliance.
This code will also incorporate procedures for the removal or pull-out of a connection.
The Consultant will pay special attention to distinguish between the various procedures and rules
contained in this code according to voltage level.
• Treatment of cases where the capacity of the connection point is exceeded;
• Definition of the maximum thresholds to be respected of the injection capacity of the
renewable energies to the power grids by voltage level (VHV, HV, MV and LV);
• Define the arrangements for taking charge of the connections;
• The determination of the reception capacity must be accompanied by criteria of prioritization
for the connection of the sites of production of electricity based on renewable energies;
• The connection code must include a queue management procedure related to the injection
capacity constraints on the network;
• The processing of connection requests to public transmission and distribution networks will be
the subject of procedures integrated into the technical documents of reference for the network
operators;
• The connection code must define the technical design and operating requirements, as well as
the performance control procedures, prior to connection to the public transport network or
public distribution networks, depending on the connection voltage range;
• Specify the criteria for integrating renewable by voltage level in terms of the technical
performance of installations and their impact on the network (reagent, flickers, voltage dips,
harmonic pollution, etc.)
4. Access code
This code must contain provisions relating to the network access rules and procedures. The specific
characteristics of renewable energy production units will be taken into account by the Consultant.
An analysis of current connection contracts should be prepared and outcome should be presented to
the Network’s operator.
14244e-0 4
OFFICIAL USE
OFFICIAL USE
• the requirement for grid connection application (the procedures to be followed by a user or
third party in applying for connection, the guarantees to be given by the access holder, etc.;
• the provisions regarding interruptions and suspensions of access (scheduled interruptions,
unscheduled interruptions and suspension of access).
• the technical requirements for grid connection (VHV, HV, MV, LV), in particular, the use of
reactive energy;
• coordination between network operators when generators are put into use.
This code must also specify the rules on priority of access for green, as opposed to grey, electricity
generator installations.
5. Metering code
This code must contain general provisions on metering rules. It should describe the minimum
technical requirement for meters. It should define the rights and obligations of the network manager
and the other parties concerned as regards, on the one hand, the making available, installation,
utilisation, calibration and maintenance of the metering equipment and, on the other, the recording,
processing and making available of the metering data generated by the metering equipment.
Metering should be carried out for both consumption and production, including the fraction consumed
by the producer itself.
This code will make reference to the arrangements with regard to the metering equipment and the
metering data (in particular, measured and calculated load curves, data processing, metering data to be
made available, etc.).
This code must define the metering data storage, archiving and protection procedures, as well as the
estimating methods to be used in the event of metering problems.
A substantial increase in intermittent generation volumes will affect the operation of the networks and,
in particular, the management of the balance between production and consumption, which becomes
more difficult to maintain.
This code must contain technical and legal provisions relating to the balancing of the network. It
should also refer to the network balance manager and the tasks he will be assigned. The evaluation and
determination of the primary, secondary and tertiary reserve power, which helps to ensure the safety,
reliability and efficiency of the network within the control area, must also be clarified.
The consultant will have to present the variants of balance management in accordance with the market
model to be adopted: case of a single balance manager or that of several balance managers.
7. Auxiliary services
This code must regulate the aspects relating to network safety. In particular, it must deal with:
14244e-0 5
OFFICIAL USE
OFFICIAL USE
• the arrangements for collaboration between the network manager and the other players within
the context of frequency, voltage and reactive power regulation;
• Auxiliary services processing guaranteeing the management of flows and the supply-demand
balance, namely: definition, evaluation, remuneration and billing method in the context of
bilateral contracts between ONEE-BE and private producers.
By participating in the auxiliary services users can also help to maintain network balance.
8. Management procedures
Moreover, given the opportunity afforded to the participants to create direct transport lines, this code
must take into consideration the procedures for managing those lines and private networks.
This code must provide for rules that allow the network manager deliberately to cut off the power
supply to one or more consumers in order rapidly to re-establish the network balance between
production and consumption.
This code must spell out the arrangements necessary to ensure good collaboration between the
network manager and the managers of the networks with which his network is interconnected, for the
sake of good network management and the proper performance of their tasks under the legal
provisions.
The Consultant will also draw up a model network access contract and a model network connection
contract to be annexed to the technical regulations.
This standard type of connection contract must specify, among other things, the technical, legal and
financial terms of the connection and, in particular, the performance of the installation so that it can be
connected to the network and, where appropriate, the methods of periodic control and continuous
verification by ONEE-BE from the national dispatching.
12. Miscellaneous
The technical regulations will take into account other aspects such as:
The Consultant will organise a kick-off meeting with the MEMSD in order to precise the details of the
scope, the activities and the calendar of the Assignment.
Tasks 1 and 2 will end with the handing over of a deliverable for acceptance by the Client.
14244e-0 6
OFFICIAL USE
OFFICIAL USE
A first report (task 1 and task 2) will be delivered 2 months after the commencement of the study.
The codes must be drawn up (task 3) in close collaboration with the Client. In this connection, the
Consultant will propose several workshops for each of these codes. He will take note of the comments
and observations made at these workshops. These proposals must also take into consideration the
various choices of the Client.
Following these workshops and consultations, the Consultant will produce drafts of the technical
regulations and model network access and connection contracts.
The draft technical regulations will be submitted to the Client 6 months after the commencement of
the study.
A final report, based on the comments made, will be delivered to the Client one month after the
comments are received.
ONEE will provide furnished office accommodation for the Consultant, plus suitable office space for
meetings, for the days that the Consultant spends in the field. ONEE-BE, the electricity boards, the
delegated network managers and concessions will provide the Consultant access to all the necessary
information which is available. Consequently, the Consultant will commit on the confidentiality of the
data and information communicated by ONEE-BE, the electricity boards, the delegated network
managers and concessions.
The technical regulations object of Task 3 as well as all the deliverables of the mission must
imperatively comprise two parts relating to:
- the transport network code; and
- the technical requirements relating to the conditions of connection and access to medium-
voltage electricity distribution networks and the rules concerning their use.
The Consultant will be a firm or a group of firms with previous project experience in the
competitive electricity market sector and related to:
• production of electricity from renewable sources;
• integrating renewable energy into electrical networks (at least two project references in the
past five years);
• drafting of technical regulations, network codes, and network access procedures and design of
procedures and legislative texts relating to connections and access to the power grid;
• operation and planning of electricity transport and distribution networks
The Consultant will set up a team with the skills and the experience necessary to carry out the
assignment. The project team must have proven experience in the following fields:
• the drafting of technical regulations, network codes, and network access procedures;
• the competitive electricity market;
• the production of electricity from renewable sources;
• expertise in the operation and planning of electricity transport and distribution networks;
• a good knowledge of the electricity sector in Morocco and/or the region;
• integrating renewable energy into electrical networks;
• design of procedures and legislative texts relating to connections and access to the power grid.
14244e-0 7
OFFICIAL USE
OFFICIAL USE
• a team/project leader with preferably 15 years of professional experience, familiar with the
Moroccan and/or regional electrical sector and renewable energy production. He must have
university qualification or equivalent work experience as an economist or engineer. He should
have preferably 10 years’ experience in managing international consultancy projects in the
electrical sector.
• A technical expert on electrical systems, qualified as an electrical engineer (master’s degree or
equivalent) and preferably10 years of specialised professional experience in the operation of
electrical systems and, more particularly with knowledge of and experience in technical
requirements relating to the connection of renewable production units.
• a legal expert (master’s degree or equivalent) with preferably15 years’ work experience in
drafting network codes and rules on network access and in the restructuring and reorganisation
of electricity markets, together with a broad knowledge of the market for electricity produced
from renewable energy sources.
The experts shall have a good command of French and English, both spoken and written.
14244e-0 8
OFFICIAL USE
OFFICIAL USE
Termes de Reference
ELABORATION D’UN RÈGLEMENT TECHNIQUE POUR LA GESTION DES
RÉSEAUX D’ÉLECTRICITÉ AU MAROC
Version Française
I. CONTEXTE :
9
OFFICIAL USE
OFFICIAL USE
10
OFFICIAL USE
OFFICIAL USE
11
OFFICIAL USE
OFFICIAL USE
12
OFFICIAL USE
OFFICIAL USE
Le Code d’Accès doit également préciser les règles de priorité d’accès pour les installations
de production d’électricité verte par rapport à l’électricité grise.
17. Code de comptage :
Ce code doit contenir des dispositions générales relatives aux règles de comptage (« Code de
Comptage »). Il doit décrire les exigences techniques minimales des compteurs. Il doit définir
les droits et obligations du gestionnaire du réseau et des autres parties concernées pour ce qui
concerne, d’une part, la mise à disposition, l’installation, l’utilisation, l’étalonnage et
l’entretien des équipements de comptage et, d’autre part, le relevé, le traitement et la mise à
disposition des données de comptage issues de l’équipement de comptage.
Le comptage doit être effectué aussi bien pour la consommation que pour la production, y
compris la partie consommée par le producteur lui-même.
13
OFFICIAL USE
OFFICIAL USE
14
OFFICIAL USE
OFFICIAL USE
15
OFFICIAL USE
OFFICIAL USE
V. EQUIPE PROJET :
Le Consultant devra être une entreprise ou un groupement d’entreprises ayant une expérience
avérée dans le marché concurrentiel de l'électricité et notamment:
− la production d’électricité de sources renouvelables
− ayant participé à au moins deux projets de consultance pour l’intégration d’énergie
renouvelable dans les réseaux électriques durant les 5 dernières années
− la rédaction des règlements techniques, codes de réseau, modalités d’accès au
réseau et la conception des procédures et des textes législatifs relatifs aux
raccordements et accès au réseau électrique
− le fonctionnement et la planification des réseaux de transport et de distribution
d’électricité
Le Consultant mettra en place une équipe ayant les compétences et l’expérience nécessaires
pour mener à terme cette mission. L’équipe projet doit avoir une expérience avérée dans les
domaines suivants :
− la rédaction des règlements techniques, codes de réseau, modalités d’accès au
réseau ;
− le marché concurrentiel de l'électricité ;
− La production d’électricité de sources renouvelables
− expertise dans le fonctionnement et la planification des réseaux de transport et de
distribution d’électricité ;
− la bonne connaissance du secteur de l'électricité au Maroc et/ou dans la région ;
− l’intégration d’énergie renouvelable dans les réseaux électriques;
− conception des procédures et des textes législatifs relatifs aux raccordements et
accès au réseau électrique.
L’équipe sera composée au minimum des experts suivants :
− un chef de projet ayant de préférence au moins 15 ans d’expérience, qui connait
bien le secteur électrique marocain et/ou de la région et la production d’énergie
renouvelable. Il doit avoir une formation universitaire ou jugée équivalente
d’économiste ou d’ingénieur. Il doit de préférence disposer d’une expérience d’au
moins 10 ans de gestion de projet de consultance internationale pour le secteur
électrique.
− un expert système électrique, de formation ingénieur électrique (Master ou
équivalent) ayant de préférence au moins 10 ans d’expérience spécialisé dans le
16
OFFICIAL USE
OFFICIAL USE
17
OFFICIAL USE