cim based data warehouse solutioncimug.ucaiug.org/meetings/na2014/supporting documents...what is iec...

29
1 CIM Based Data Warehouse Solution Shawn Hu, Joe Zhou Xtensible Solutions

Upload: others

Post on 01-Apr-2021

7 views

Category:

Documents


0 download

TRANSCRIPT

Page 1: CIM Based Data Warehouse Solutioncimug.ucaiug.org/Meetings/NA2014/Supporting Documents...What is IEC CIM •CIM stands for Common Information Model maintained by IEC working groups

1

CIM Based Data Warehouse Solution

Shawn Hu, Joe Zhou

Xtensible Solutions

Page 2: CIM Based Data Warehouse Solutioncimug.ucaiug.org/Meetings/NA2014/Supporting Documents...What is IEC CIM •CIM stands for Common Information Model maintained by IEC working groups

2

Topics Covered

• Utilities and Big Data 2013 Survey

• Importance of a Utility Data Model

• Role of IEC CIM on Utility Data Model

• Design Considerations

• Scope of Business Areas Included

• Sample BI Reports

Page 3: CIM Based Data Warehouse Solutioncimug.ucaiug.org/Meetings/NA2014/Supporting Documents...What is IEC CIM •CIM stands for Common Information Model maintained by IEC working groups

3

North America Utilities Survey

• 151 North America utilities surveyed (April & May 2013)

• Less than half of utilities are using smart grid data to improve customer service today

• Big opportunities also remain in operational analytics to improve asset performance, reduce operations costs, and improve network reliability

- Source: Oracle Utilities and Big Data: Accelerating the Drive to Value, July 23, 2013

Page 4: CIM Based Data Warehouse Solutioncimug.ucaiug.org/Meetings/NA2014/Supporting Documents...What is IEC CIM •CIM stands for Common Information Model maintained by IEC working groups

4

Survey on Predictive Analytics

• 70% - Expect predictive analytics to improve revenue protection

• 61% - Expect predictive analytics to reduce asset maintenance costs

- Source: Oracle Utilities and Big Data: Accelerating the Drive to Value, July 23, 2013

Page 5: CIM Based Data Warehouse Solutioncimug.ucaiug.org/Meetings/NA2014/Supporting Documents...What is IEC CIM •CIM stands for Common Information Model maintained by IEC working groups

5

Utilities are Improving, but Underprepared

- Source: Oracle Utilities and Big Data: Accelerating the Drive to Value, July 23, 2013

Page 6: CIM Based Data Warehouse Solutioncimug.ucaiug.org/Meetings/NA2014/Supporting Documents...What is IEC CIM •CIM stands for Common Information Model maintained by IEC working groups

6

Opportunities to Drive Greater Customer Value

• Fewer than half of utilities today use smart grid data to provide alerts or make other direct customer service improvements

- Source: Oracle Utilities and Big Data: Accelerating the Drive to Value, July 23, 2013

Page 7: CIM Based Data Warehouse Solutioncimug.ucaiug.org/Meetings/NA2014/Supporting Documents...What is IEC CIM •CIM stands for Common Information Model maintained by IEC working groups

7

Opportunities to Drive Greater Operational Value

• Currently, just half of utilities are fully leveraging smart grid data to improve customer service through forecasting, demand management and improved reliability

- Source: Oracle Utilities and Big Data: Accelerating the Drive to Value, July 23, 2013

Page 8: CIM Based Data Warehouse Solutioncimug.ucaiug.org/Meetings/NA2014/Supporting Documents...What is IEC CIM •CIM stands for Common Information Model maintained by IEC working groups

8

What is a Utility Data Model (UDM) Exactly?

• UDM is a pre-built, standards-based data warehouse solution

• UDM provides the following features:– Query and reporting for information

• Provides extraction of detailed and summary data

– On-Line Analytical Processing (OLAP) for answering multi-dimensional analytical (MDA) queries swiftly

• Provides summaries, trends, and forecasts

– Data mining for insight and prediction

• Provides knowledge discovery of hidden patterns and insights

– It is aligned with the IEC CIM model

Page 9: CIM Based Data Warehouse Solutioncimug.ucaiug.org/Meetings/NA2014/Supporting Documents...What is IEC CIM •CIM stands for Common Information Model maintained by IEC working groups

9

What is IEC CIM

• CIM stands for Common Information Model maintained by IEC working groups

• It covers 3 areas:– Transmission (IEC 61970)– Distribution (IEC 61968)– Market Communications (IEC 62325)

• CIM Model: – Abstract UML model to provide a common set of semantics – Represents the major objects and their relationships in utility industry

• CIM Standards:– Released by IEC TC57 Working Groups– Profiles to enable system integration and information exchange– Not tied to a particular application

• Widely used in utilities industry and recommended by a number of organizations such as NIST for their Priority Action Plans (PAPs)

Page 10: CIM Based Data Warehouse Solutioncimug.ucaiug.org/Meetings/NA2014/Supporting Documents...What is IEC CIM •CIM stands for Common Information Model maintained by IEC working groups

10

CIM Model – Metering and Control Example

• IEC 61968-9 (sub set)

cla ss Meter ingMeter Readings

EndDev iceFunct ion

+ enabled :Boolean [0..1]

AssetContainer

EndDev ice

+ isVirtual :Boolean [0..1]

+ isPan :Boolean [0..1]

+ installCode :String [0..1]

+ amrSystem :String [0..1]

+ timeZoneOffset :Minutes [0..1]

Meter

+ formNumber :String [0..1]

IdentifiedObject

Meter Reading

+ valuesInterval :DateTimeInterval [0..1]

+ isCoincidentTrigger :Boolean [0..1]

IdentifiedObject

Register

+ isVirtual :Boolean [0..1]

+ rightDigitCount :Integer [0..1]

+ leftDigitCount :Integer [0..1]

+ touTier :TimeInterval [0..1]

+ touTierName :String [0..1]

IdentifiedObject

UsagePoint

IdentifiedObject

Channel

+ isVirtual :Boolean [0..1]

ActivityRecord

EndDev iceEv ent

IdentifiedObject

Assets::AssetFunct ion

+ programID :String [0..1]

+ firmwareID :String [0..1]

+ hardwareID :String [0..1]

+ password :String [0..1]

+ configID :String [0..1]

+Register 0..1

+Channels 0..*

+EndDeviceEvents

0..*

+UsagePoint

0..1

+MeterReadings

0..*

+UsagePoint

0..1

+MeterReading

0..1

+EndDeviceEvents 0..*

+EndDevice

0..1 +EndDeviceFunctions0..*

+Meter 0..1

+MeterReadings

0..*

+UsagePoint

0..1 +EndDevices

0..*

+EndDeviceEvents

0..*

+EndDevice

0..1

+Registers0..*

+EndDeviceFunction0..1

Page 11: CIM Based Data Warehouse Solutioncimug.ucaiug.org/Meetings/NA2014/Supporting Documents...What is IEC CIM •CIM stands for Common Information Model maintained by IEC working groups

11

Design Considerations

• How to deal with CIM inheritance?

• How to deal with CIM many-to-many relationships?

• How to deal with unique identifiers and multiple names?

• Primary key: natural or/and surrogate?

• Normalization or de-normalization?

• Granularity?

• How to deal with CIM <<compound>> data types?

Page 12: CIM Based Data Warehouse Solutioncimug.ucaiug.org/Meetings/NA2014/Supporting Documents...What is IEC CIM •CIM stands for Common Information Model maintained by IEC working groups

12

Many-to-many Relationships in CIM

• Bridge table

Logical Model Physical Model

In this case:

• Bridge table “LinkAsset_ActivityRecord” added

• No * to * relationship in physical dimensional model

cla ss Meter

Act iv ity Recor d

+ createdDateTime :DateTime [0..1]

+ type :String [0..1]

+ severity :String [0..1]

+ reason :String [0..1]

+ status :Status [0..1]

::IdentifiedObject

+ aliasName :String [0..1]

+ mRID :String [0..1]

+ name :String [0..1]

Asset

+ type :String [0..1]

+ utcNumber :String [0..1]

+ serialNumber :String [0..1]

+ lotNumber :String [0..1]

+ purchasePrice :Money [0..1]

+ critical :Boolean [0..1]

+ electronicAddress :ElectronicAddress [0..1]

+ lifecycle :LifecycleDate [0..1]

+ acceptanceTest :AcceptanceTest [0..1]

+ initialCondition :String [0..1]

+ initialLossOfLife :PerCent [0..1]

+ status :Status [0..1]

::IdentifiedObject

+ aliasName :String [0..1]

+ mRID :String [0..1]

+ name :String [0..1]

+Assets

0..*

+ActivityRecords

0..*

Page 13: CIM Based Data Warehouse Solutioncimug.ucaiug.org/Meetings/NA2014/Supporting Documents...What is IEC CIM •CIM stands for Common Information Model maintained by IEC working groups

13

How to Handle Multiple IDs

• It is common an object can have multiple identifiers such as a meter can have one serial number from asset management but also other identifiers issued from other systems such as CIS and MDMS.

• Use of CIM Name/NameType/NameTypeAuthority triplet.

• Specialization such as MeterIdentifier to avoid single Name table for all IDs.

Page 14: CIM Based Data Warehouse Solutioncimug.ucaiug.org/Meetings/NA2014/Supporting Documents...What is IEC CIM •CIM stands for Common Information Model maintained by IEC working groups

14

Logical Model Physical Model

Primary Key: Natural or Surrogate?

cla ss Meter

Act iv ity Recor d

+ createdDateTime :DateTime [0..1]

+ type :String [0..1]

+ severity :String [0..1]

+ reason :String [0..1]

+ status :Status [0..1]

::IdentifiedObject

+ aliasName :String [0..1]

+ mRID :String [0..1]

+ name :String [0..1]

Surrogate Key

Natural KeyPros

• Use existing index

• No extra column

• Used as search key

Cons

• Business coupled,

may change in future

• String data type, slow

join and more storage

Pros

• Decoupled from

business, easier to

maintain

• Integer data type, fast

join, scalable

Cons

• Extra field

• Can’t use as search

key

Page 15: CIM Based Data Warehouse Solutioncimug.ucaiug.org/Meetings/NA2014/Supporting Documents...What is IEC CIM •CIM stands for Common Information Model maintained by IEC working groups

15

How to Support Type II Dimension

Logical Model Physical Model cla ss Meter

Asset

+ type :String [0..1]

+ utcNumber :String [0..1]

+ serialNumber :String [0..1]

+ lotNumber :String [0..1]

+ purchasePrice :Money [0..1]

+ critical :Boolean [0..1]

+ electronicAddress :ElectronicAddress [0..1]

+ lifecycle :LifecycleDate [0..1]

+ acceptanceTest :AcceptanceTest [0..1]

+ initialCondition :String [0..1]

+ initialLossOfLife :PerCent [0..1]

+ status :Status [0..1]

::IdentifiedObject

+ aliasName :String [0..1]

+ mRID :String [0..1]

+ name :String [0..1]

MD3i SB Context Diagr am

Asset

«column»

*PK assetId :NUMBER(10)

serialNumber :VARCHAR2(255)

version :VARCHAR2(50)

type :VARCHAR2(255)

utcNumber :VARCHAR2(255)

lotNumber :VARCHAR2(255)

purchasePrice :VARCHAR2(255)

critical :CHAR(1)

electronicAddress :VARCHAR2(255)

lifecycle :VARCHAR2(255)

acceptanceTest :VARCHAR2(255)

initialCondition :VARCHAR2(255)

initialLossOfLife :VARCHAR2(255)

assetStatus :VARCHAR2(255)

aliasName :VARCHAR2(255)

mRID :VARCHAR2(255)

name :VARCHAR2(255)

«unique»

+ UQ_Asset_assetId(NUMBER)

«PK»

+ PK_Asset_CIM(NUMBER) :PK

Surrogate Key

Natural Key

Version Field

In this case:

• Surrogate key (assetId) as

primary key

• SerialNumber as a natural key to

identify an asset (can be used

for search)

• New “version” field to keep

changes

• Note other fields can be used

such as effective dates and etc.

cla ss Meter

Asset

+ type :String [0..1]

+ utcNumber :String [0..1]

+ serialNumber :String [0..1]

+ lotNumber :String [0..1]

+ purchasePrice :Money [0..1]

+ critical :Boolean [0..1]

+ electronicAddress :ElectronicAddress [0..1]

+ lifecycle :LifecycleDate [0..1]

+ acceptanceTest :AcceptanceTest [0..1]

+ initialCondition :String [0..1]

+ initialLossOfLife :PerCent [0..1]

+ status :Status [0..1]

+ version :String [0..1]

::IdentifiedObject

+ aliasName :String [0..1]

+ mRID :String [0..1]

+ name :String [0..1]

New

field

Exte

nsio

n

Page 16: CIM Based Data Warehouse Solutioncimug.ucaiug.org/Meetings/NA2014/Supporting Documents...What is IEC CIM •CIM stands for Common Information Model maintained by IEC working groups

16

Modeling Example – CIM Base Model

• Example in CIM model (for UsagePoint and MeterReading)

MD3i SB Context Diagr am

UsagePoint

+ isSdp :Boolean [0..1]

+ isVirtual :Boolean [0..1]

+ phaseCode :PhaseCode [0..1]

+ grounded :Boolean [0..1]

+ servicePriority :String [0..1]

+ serviceDeliveryRemark :String [0..1]

+ estimatedLoad :CurrentFlow [0..1]

+ checkBilling :Boolean [0..1]

+ ratedCurrent :CurrentFlow [0..1]

+ nominalServiceVoltage :Voltage [0..1]

+ ratedPower :ActivePower [0..1]

+ outageRegion :String [0..1]

+ readCycle :String [0..1]

+ readRoute :String [0..1]

+ amiBillingReady :AmiBillingReadyKind [0..1]

+ connectionState :UsagePointConnectedKind [0..1]

+ minimalUsageExpected :Boolean [0..1]

UsagePointLoca t ion

+ accessMethod :String [0..1]

+ siteAccessProblem :String [0..1]

+ remark :String [0..1]

Customer Agr eement

+ loadMgmt :String [0..1]

Meter Reading

+ valuesInterval :DateTimeInterval [0..1]

+ isCoincidentTrigger :Boolean [0..1]

+UsagePointLocation

0..1

+UsagePoints

0..*

+CustomerAgreement

0..1

+UsagePoints 0..*

+MeterReadings 0..*

+CustomerAgreement 0..1

+MeterReadings

0..*

+UsagePoint

0..1

Page 17: CIM Based Data Warehouse Solutioncimug.ucaiug.org/Meetings/NA2014/Supporting Documents...What is IEC CIM •CIM stands for Common Information Model maintained by IEC working groups

17

Modeling Example – Data Warehouse Model

• Example in UDM model - Bridge table added

- Normalized

Source: Oracle Utilities Data Model (OUDM)

Page 18: CIM Based Data Warehouse Solutioncimug.ucaiug.org/Meetings/NA2014/Supporting Documents...What is IEC CIM •CIM stands for Common Information Model maintained by IEC working groups

18

Normalization Example

cla ss Meter ingTy pes

IdentifiedObject

ReadingTy pe

+ macroPeriod :String [0..1]

+ aggregate :String [0..1]

+ measuringPeriod :String [0..1]

+ accumulation :String [0..1]

+ flowDirection :String [0..1]

+ commodity :String [0..1]

+ measurementKind :String [0..1]

+ interharmonic :ReadingInterharmonic [0..1]

+ argument :RationalNumber [0..1]

+ tou :Integer [0..1]

+ cpp :Integer [0..1]

+ consumptionTier :Integer [0..1]

+ phases :String [0..1]

+ multiplier :String [0..1]

+ unit :String [0..1]

+ currency :String [0..1]

CIM

Page 19: CIM Based Data Warehouse Solutioncimug.ucaiug.org/Meetings/NA2014/Supporting Documents...What is IEC CIM •CIM stands for Common Information Model maintained by IEC working groups

19

Physical Model Example – Star Schema

• Meter Reading TOU Month Aggregate

Page 20: CIM Based Data Warehouse Solutioncimug.ucaiug.org/Meetings/NA2014/Supporting Documents...What is IEC CIM •CIM stands for Common Information Model maintained by IEC working groups

20

Business Areas Included in UDM

Business Areas:

Account Management

Asset Management

Customer Management

Meter Reading and Control

Network Operation

Outage Management

Weather Model

Work Management

Page 21: CIM Based Data Warehouse Solutioncimug.ucaiug.org/Meetings/NA2014/Supporting Documents...What is IEC CIM •CIM stands for Common Information Model maintained by IEC working groups

21

Subject AreasSubject Area: Account Subject Area: Meter Reading

Subject Area: Account Balance Subject Area: Meter Reading and Control Overview

Subject Area: Account Credit Limit Subject Area: Meter Reading Register and Channel

Subject Area: Agreement Subject Area: Meter Reading Type

Subject Area: Asset Subject Area: Meter Reading and Events

Subject Area: Asset Information Classes Subject Area: Network Operation

Subject Area: Billing Subject Area: Outage Management

Subject Area: Business Interaction Subject Area: Party Organization Business Unit

Subject Area: Channel Subject Area: Payment

Subject Area: Connectivity Model Subject Area: Premise and Node

Subject Area: Cost Subject Area: Pricing Structure

Subject Area: Curve Schedule Subject Area: Promotion and Campaign

Subject Area: Customer Subject Area: Phase Model

Subject Area: Customer Account and Agreement Subject Area: Regulating Equipment Model

Subject Area: Demand Response Program Subject Area: SCADA

Subject Area: Employee Subject Area: Schedule Model

Subject Area: End Device Control Subject Area: Substation, Feeder, and Transformer Hierarchy Model

Subject Area: End Device Event Subject Area: Switching Equipment Model

Subject Area: Financial Subject Area: Tap Changer Model

Subject Area: Generating Unit Subject Area: Transformer Model

Subject Area: Line Model Subject Area: Usage Point, Agreement, Account, Customer, and Premise

Subject Area: Load Model Subject Area: Usage Point and End Device

Subject Area: Location Subject Area: Voltage Control Model

Subject Area: Meter Asset Subject Area: Weather Model

Subject Area: Meter Event and Reading Subject Area: Work Management

Source: Oracle Utilities Data Model (OUDM)

Page 22: CIM Based Data Warehouse Solutioncimug.ucaiug.org/Meetings/NA2014/Supporting Documents...What is IEC CIM •CIM stands for Common Information Model maintained by IEC working groups

22

Sample Report – Meter Data Analysis

• Star Schema – Meter Reading by Hour

Source: Oracle Utilities Data Model (OUDM)

Page 23: CIM Based Data Warehouse Solutioncimug.ucaiug.org/Meetings/NA2014/Supporting Documents...What is IEC CIM •CIM stands for Common Information Model maintained by IEC working groups

23

Sample Report – Meter Data Analysis

• Monthly Usage – Operational Zone

– Geographical Zone

– Utility Region

Note the screen shot above is generated by a vendor using the OUDM

Page 24: CIM Based Data Warehouse Solutioncimug.ucaiug.org/Meetings/NA2014/Supporting Documents...What is IEC CIM •CIM stands for Common Information Model maintained by IEC working groups

24

Sample Report – Meter Data Analysis

• Top N Customers by Usage

• Monthly Usage Season Profile

• Daily Usage Season Profile

• Monthly Total Usage

• Low Usage by Usage Point

• TOU Usage Profile

• TOU Usage Tread

• Top N Customer with Usage Change

• Customer Count by Usage Grouping

Page 25: CIM Based Data Warehouse Solutioncimug.ucaiug.org/Meetings/NA2014/Supporting Documents...What is IEC CIM •CIM stands for Common Information Model maintained by IEC working groups

25

Sample Report – Meter Data Analysis

• TOU Usage Profile

Note the screen shot above is generated by a vendor using the OUDM

Page 26: CIM Based Data Warehouse Solutioncimug.ucaiug.org/Meetings/NA2014/Supporting Documents...What is IEC CIM •CIM stands for Common Information Model maintained by IEC working groups

26

Sample Report – Outage Analysis

• Star Schema – Outage by Usage Point

Source: Oracle Utilities Data Model (OUDM)

Page 27: CIM Based Data Warehouse Solutioncimug.ucaiug.org/Meetings/NA2014/Supporting Documents...What is IEC CIM •CIM stands for Common Information Model maintained by IEC working groups

27

Sample Report – Outage Analysis

• Reliability by City• Worst Performing Feeder• Top N Customers by CMI• Top N Customers by # Outages• Top N Feeders by Outage Count• Top N Feeders by Total Minutes Lost• Top N Feeders by Reliability Indices• Top N City by Outage Count• Top N City by Total Minutes Lost• Top N City by Reliability Indices• Top N Region by Outage Count• Top N Region by Total Minutes Lost• Top N Region by Reliability Indices

Page 28: CIM Based Data Warehouse Solutioncimug.ucaiug.org/Meetings/NA2014/Supporting Documents...What is IEC CIM •CIM stands for Common Information Model maintained by IEC working groups

28

Discussion – Q&A

Page 29: CIM Based Data Warehouse Solutioncimug.ucaiug.org/Meetings/NA2014/Supporting Documents...What is IEC CIM •CIM stands for Common Information Model maintained by IEC working groups

29