<?xml version="1.0"?>
<OccupantBehavior xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" ID="OS001" xsi:noNamespaceSchemaLocation="obXML_v1.3.2.xsd" Version="1.3.2">
  <Buildings>
    <Building ID="Building_1">
      <Description>A office building which contains 5 spaces and 11 occupants.</Description>
      <Type>Office</Type>
      <Spaces ID="All_Spaces">
        <Space ID="S0_Outdoor">
          <Type>Outdoor</Type>
        </Space>
        <Space ID="S1_Core_ZN">
          <Type>OfficeShared</Type>
          <Systems>
            <Light><Type>OnOff</Type></Light>
          </Systems>

          <OccupantID>S1_Core_ZN_O1</OccupantID>
          <OccupantID>S1_Core_ZN_O2</OccupantID>
          <OccupantID>S1_Core_ZN_O3</OccupantID>
          <OccupantID>S1_Core_ZN_O4</OccupantID>
          <OccupantID>S1_Core_ZN_O5</OccupantID>
        </Space>
        <Space ID="S2_Perimeter_ZN_1">
          <Type>Other</Type>
          <Systems>
            <Light><Type>OnOff</Type></Light>
          </Systems>
        </Space>
        <Space ID="S3_Perimeter_ZN_2">
          <Type>MeetingRoom</Type>
          <Systems>
            <Light><Type>OnOff</Type></Light>
          </Systems>
          <MeetingEvent>
            <SeasonType>All</SeasonType>
            <DayofWeek>Weekdays</DayofWeek>
            <MinNumOccupantsPerMeeting>2</MinNumOccupantsPerMeeting>
            <MaxNumOccupantsPerMeeting>8</MaxNumOccupantsPerMeeting>
            <MinNumberOfMeetingsPerDay>2</MinNumberOfMeetingsPerDay>
            <MaxNumberOfMeetingsPerDay>6</MaxNumberOfMeetingsPerDay>
            <MeetingDurationProbability>
              <MeetingDuration>PT30M</MeetingDuration>
              <Probability>0.12</Probability>
            </MeetingDurationProbability>
            <MeetingDurationProbability>
              <MeetingDuration>PT60M</MeetingDuration>
              <Probability>0.72</Probability>
            </MeetingDurationProbability>
            <MeetingDurationProbability>
              <MeetingDuration>PT90M</MeetingDuration>
              <Probability>0.12</Probability>
            </MeetingDurationProbability>
            <MeetingDurationProbability>
              <MeetingDuration>PT120M</MeetingDuration>
              <Probability>0.04</Probability>
            </MeetingDurationProbability>
          </MeetingEvent>
        </Space>
        <Space ID="S4_Perimeter_ZN_3">
          <Type>OfficeShared</Type>
          <Systems>
            <Light><Type>OnOff</Type></Light>
          </Systems>
          <OccupantID>S4_Perimeter_ZN_3_O1</OccupantID>
          <OccupantID>S4_Perimeter_ZN_3_O2</OccupantID>
        </Space>
        <Space ID="S5_Perimeter_ZN_4">
          <Type>OfficeShared</Type>
          <Systems>
            <Light><Type>OnOff</Type></Light>
          </Systems>
          <OccupantID>S5_Perimeter_ZN_4_O1</OccupantID>
          <OccupantID>S5_Perimeter_ZN_4_O2</OccupantID>
          <OccupantID>S5_Perimeter_ZN_4_O3</OccupantID>
          <OccupantID>S5_Perimeter_ZN_4_O4</OccupantID>
        </Space>
      </Spaces>
    </Building>
  </Buildings>
  <Occupants>
    <Occupant ID="S1_Core_ZN_O1">
      <LifeStyle>Norm</LifeStyle>
      <JobType>Regular staff</JobType>
      <MovementBehaviorID>Regular_staff_0</MovementBehaviorID>
      <BehaviorID>B_Light_Reinhart_Voss_2003_on</BehaviorID>
      <BehaviorID>B_Light_Newsham_1994_off_illuminance</BehaviorID>
      <BehaviorID>B_Light_Newsham_1994_off_leave</BehaviorID>

    </Occupant>
    <Occupant ID="S1_Core_ZN_O2">
      <LifeStyle>Norm</LifeStyle>
      <JobType>Regular staff</JobType>
      <MovementBehaviorID>Regular_staff_0</MovementBehaviorID>
      <BehaviorID>B_Light_Reinhart_Voss_2003_on</BehaviorID>
      <BehaviorID>B_Light_Newsham_1994_off_illuminance</BehaviorID>
      <BehaviorID>B_Light_Newsham_1994_off_leave</BehaviorID>
    </Occupant>
    <Occupant ID="S1_Core_ZN_O3">
      <LifeStyle>Norm</LifeStyle>
      <JobType>Regular staff</JobType>
      <MovementBehaviorID>Regular_staff_0</MovementBehaviorID>
      <BehaviorID>B_Light_Reinhart_Voss_2003_on</BehaviorID>
      <BehaviorID>B_Light_Newsham_1994_off_illuminance</BehaviorID>
      <BehaviorID>B_Light_Newsham_1994_off_leave</BehaviorID>
    </Occupant>
    <Occupant ID="S1_Core_ZN_O4">
      <LifeStyle>Norm</LifeStyle>
      <JobType>Regular staff</JobType>
      <MovementBehaviorID>Regular_staff_0</MovementBehaviorID>
      <BehaviorID>B_Light_Reinhart_Voss_2003_on</BehaviorID>
      <BehaviorID>B_Light_Newsham_1994_off_illuminance</BehaviorID>
      <BehaviorID>B_Light_Newsham_1994_off_leave</BehaviorID>
    </Occupant>
    <Occupant ID="S1_Core_ZN_O5">
      <LifeStyle>Norm</LifeStyle>
      <JobType>Regular staff</JobType>
      <MovementBehaviorID>Regular_staff_0</MovementBehaviorID>
      <BehaviorID>B_Light_Reinhart_Voss_2003_on</BehaviorID>
      <BehaviorID>B_Light_Newsham_1994_off_illuminance</BehaviorID>
      <BehaviorID>B_Light_Newsham_1994_off_leave</BehaviorID>
    </Occupant>
    <Occupant ID="S4_Perimeter_ZN_3_O1">
      <LifeStyle>Norm</LifeStyle>
      <JobType>Regular staff</JobType>
      <MovementBehaviorID>Regular_staff_0</MovementBehaviorID>
      <BehaviorID>B_Light_Reinhart_Voss_2003_on</BehaviorID>
      <BehaviorID>B_Light_Newsham_1994_off_illuminance</BehaviorID>
      <BehaviorID>B_Light_Newsham_1994_off_leave</BehaviorID>
    </Occupant>
    <Occupant ID="S4_Perimeter_ZN_3_O2">
      <LifeStyle>Norm</LifeStyle>
      <JobType>Regular staff</JobType>
      <MovementBehaviorID>Regular_staff_0</MovementBehaviorID>
      <BehaviorID>B_Light_Reinhart_Voss_2003_on</BehaviorID>
      <BehaviorID>B_Light_Newsham_1994_off_illuminance</BehaviorID>
      <BehaviorID>B_Light_Newsham_1994_off_leave</BehaviorID>
    </Occupant>
    <Occupant ID="S5_Perimeter_ZN_4_O1">
      <LifeStyle>Norm</LifeStyle>
      <JobType>Administrator</JobType>
      <MovementBehaviorID>Administrator_0</MovementBehaviorID>
      <BehaviorID>B_Light_Reinhart_Voss_2003_on</BehaviorID>
      <BehaviorID>B_Light_Newsham_1994_off_illuminance</BehaviorID>
      <BehaviorID>B_Light_Newsham_1994_off_leave</BehaviorID>
    </Occupant>
    <Occupant ID="S5_Perimeter_ZN_4_O2">
      <LifeStyle>Norm</LifeStyle>
      <JobType>Administrator</JobType>
      <MovementBehaviorID>Administrator_0</MovementBehaviorID>
      <BehaviorID>B_Light_Reinhart_Voss_2003_on</BehaviorID>
      <BehaviorID>B_Light_Newsham_1994_off_illuminance</BehaviorID>
      <BehaviorID>B_Light_Newsham_1994_off_leave</BehaviorID>
    </Occupant>
    <Occupant ID="S5_Perimeter_ZN_4_O3">
      <LifeStyle>Norm</LifeStyle>
      <JobType>Administrator</JobType>
      <MovementBehaviorID>Administrator_0</MovementBehaviorID>
      <BehaviorID>B_Light_Reinhart_Voss_2003_on</BehaviorID>
      <BehaviorID>B_Light_Newsham_1994_off_illuminance</BehaviorID>
      <BehaviorID>B_Light_Newsham_1994_off_leave</BehaviorID>
    </Occupant>
    <Occupant ID="S5_Perimeter_ZN_4_O4">
      <LifeStyle>Norm</LifeStyle>
      <JobType>Administrator</JobType>
      <MovementBehaviorID>Administrator_0</MovementBehaviorID>
      <BehaviorID>B_Light_Reinhart_Voss_2003_on</BehaviorID>
      <BehaviorID>B_Light_Newsham_1994_off_illuminance</BehaviorID>
      <BehaviorID>B_Light_Newsham_1994_off_leave</BehaviorID>
    </Occupant>
  </Occupants>
  <Behaviors>
    <MovementBehavior ID="Regular_staff_0">
      <SeasonType>All</SeasonType>
      <DayofWeek>Weekdays</DayofWeek>
      <RandomMovementEvent>
        <SpaceOccupancy>
          <SpaceCategory>OwnOffice</SpaceCategory>
          <PercentTimePresence>70.0</PercentTimePresence>
          <Duration>PT60M</Duration>
        </SpaceOccupancy>
        <SpaceOccupancy>
          <SpaceCategory>OtherOffice</SpaceCategory>
          <PercentTimePresence>10.0</PercentTimePresence>
          <Duration>PT20M</Duration>
        </SpaceOccupancy>
        <SpaceOccupancy>
          <SpaceCategory>MeetingRoom</SpaceCategory>
          <PercentTimePresence>10.0</PercentTimePresence>
          <Duration>PT60M</Duration>
        </SpaceOccupancy>
        <SpaceOccupancy>
          <SpaceCategory>AuxRoom</SpaceCategory>
          <PercentTimePresence>5.0</PercentTimePresence>
          <Duration>PT10M</Duration>
        </SpaceOccupancy>
        <SpaceOccupancy>
          <SpaceCategory>Outdoor</SpaceCategory>
          <PercentTimePresence>5.0</PercentTimePresence>
          <Duration>PT20M</Duration>
        </SpaceOccupancy>
      </RandomMovementEvent>
      <StatusTransitionEvent>
        <EventType>Arrival</EventType>
        <EventOccurModel>
          <NormalProbabilityModel>
            <EarlyOccurTime>08:00:00</EarlyOccurTime>
            <TypicalOccurTime>08:30:00</TypicalOccurTime>
          </NormalProbabilityModel>
        </EventOccurModel>
      </StatusTransitionEvent>
      <StatusTransitionEvent>
        <EventType>Departure</EventType>
        <EventOccurModel>
          <NormalProbabilityModel>
            <EarlyOccurTime>17:00:00</EarlyOccurTime>
            <TypicalOccurTime>17:30:00</TypicalOccurTime>
          </NormalProbabilityModel>
        </EventOccurModel>
      </StatusTransitionEvent>
      <StatusTransitionEvent>
        <EventType>ShortTermLeaving</EventType>
        <EventOccurModel>
          <NormalProbabilityModel>
            <EarlyOccurTime>11:30:00</EarlyOccurTime>
            <TypicalOccurTime>12:00:00</TypicalOccurTime>
          </NormalProbabilityModel>
        </EventOccurModel>
        <EventDuration>
          <NormalDurationModel>
            <TypicalDuration>PT60M</TypicalDuration>
            <MinimumDuration>PT45M</MinimumDuration>
          </NormalDurationModel>
        </EventDuration>
      </StatusTransitionEvent>
    </MovementBehavior>
    <MovementBehavior ID="Administrator_0">
      <SeasonType>All</SeasonType>
      <DayofWeek>Weekdays</DayofWeek>
      <RandomMovementEvent>
        <SpaceOccupancy>
          <SpaceCategory>OwnOffice</SpaceCategory>
          <PercentTimePresence>50.0</PercentTimePresence>
          <Duration>PT60M</Duration>
        </SpaceOccupancy>
        <SpaceOccupancy>
          <SpaceCategory>OtherOffice</SpaceCategory>
          <PercentTimePresence>5.0</PercentTimePresence>
          <Duration>PT20M</Duration>
        </SpaceOccupancy>
        <SpaceOccupancy>
          <SpaceCategory>MeetingRoom</SpaceCategory>
          <PercentTimePresence>30.0</PercentTimePresence>
          <Duration>PT60M</Duration>
        </SpaceOccupancy>
        <SpaceOccupancy>
          <SpaceCategory>AuxRoom</SpaceCategory>
          <PercentTimePresence>5.0</PercentTimePresence>
          <Duration>PT10M</Duration>
        </SpaceOccupancy>
        <SpaceOccupancy>
          <SpaceCategory>Outdoor</SpaceCategory>
          <PercentTimePresence>5.0</PercentTimePresence>
          <Duration>PT20M</Duration>
        </SpaceOccupancy>
      </RandomMovementEvent>
      <StatusTransitionEvent>
        <EventType>Arrival</EventType>
        <EventOccurModel>
          <NormalProbabilityModel>
            <EarlyOccurTime>08:15:00</EarlyOccurTime>
            <TypicalOccurTime>08:30:00</TypicalOccurTime>
          </NormalProbabilityModel>
        </EventOccurModel>
      </StatusTransitionEvent>
      <StatusTransitionEvent>
        <EventType>Departure</EventType>
        <EventOccurModel>
          <NormalProbabilityModel>
            <EarlyOccurTime>17:15:00</EarlyOccurTime>
            <TypicalOccurTime>17:30:00</TypicalOccurTime>
          </NormalProbabilityModel>
        </EventOccurModel>
      </StatusTransitionEvent>
      <StatusTransitionEvent>
        <EventType>ShortTermLeaving</EventType>
        <EventOccurModel>
          <NormalProbabilityModel>
            <EarlyOccurTime>11:30:00</EarlyOccurTime>
            <TypicalOccurTime>12:00:00</TypicalOccurTime>
          </NormalProbabilityModel>
        </EventOccurModel>
        <EventDuration>
          <NormalDurationModel>
            <TypicalDuration>PT60M</TypicalDuration>
            <MinimumDuration>PT45M</MinimumDuration>
          </NormalDurationModel>
        </EventDuration>
      </StatusTransitionEvent>
    </MovementBehavior>
    <MovementBehavior ID="Manager_0">
      <SeasonType>All</SeasonType>
      <DayofWeek>Weekdays</DayofWeek>
      <RandomMovementEvent>
        <SpaceOccupancy>
          <SpaceCategory>OwnOffice</SpaceCategory>
          <PercentTimePresence>50.0</PercentTimePresence>
          <Duration>PT60M</Duration>
        </SpaceOccupancy>
        <SpaceOccupancy>
          <SpaceCategory>OtherOffice</SpaceCategory>
          <PercentTimePresence>5.0</PercentTimePresence>
          <Duration>PT20M</Duration>
        </SpaceOccupancy>
        <SpaceOccupancy>
          <SpaceCategory>MeetingRoom</SpaceCategory>
          <PercentTimePresence>35.0</PercentTimePresence>
          <Duration>PT60M</Duration>
        </SpaceOccupancy>
        <SpaceOccupancy>
          <SpaceCategory>AuxRoom</SpaceCategory>
          <PercentTimePresence>5.0</PercentTimePresence>
          <Duration>PT10M</Duration>
        </SpaceOccupancy>
        <SpaceOccupancy>
          <SpaceCategory>Outdoor</SpaceCategory>
          <PercentTimePresence>5.0</PercentTimePresence>
          <Duration>PT20M</Duration>
        </SpaceOccupancy>
      </RandomMovementEvent>
      <StatusTransitionEvent>
        <EventType>Arrival</EventType>
        <EventOccurModel>
          <NormalProbabilityModel>
            <EarlyOccurTime>08:30:00</EarlyOccurTime>
            <TypicalOccurTime>09:00:00</TypicalOccurTime>
          </NormalProbabilityModel>
        </EventOccurModel>
      </StatusTransitionEvent>
      <StatusTransitionEvent>
        <EventType>Departure</EventType>
        <EventOccurModel>
          <NormalProbabilityModel>
            <EarlyOccurTime>16:30:00</EarlyOccurTime>
            <TypicalOccurTime>17:00:00</TypicalOccurTime>
          </NormalProbabilityModel>
        </EventOccurModel>
      </StatusTransitionEvent>
      <StatusTransitionEvent>
        <EventType>ShortTermLeaving</EventType>
        <EventOccurModel>
          <NormalProbabilityModel>
            <EarlyOccurTime>11:30:00</EarlyOccurTime>
            <TypicalOccurTime>12:00:00</TypicalOccurTime>
          </NormalProbabilityModel>
        </EventOccurModel>
        <EventDuration>
          <NormalDurationModel>
            <TypicalDuration>PT60M</TypicalDuration>
            <MinimumDuration>PT45M</MinimumDuration>
          </NormalDurationModel>
        </EventDuration>
      </StatusTransitionEvent>
    </MovementBehavior>
    <Behavior ID="B_Light_Reinhart_Voss_2003_on" >
		<Description>Probability of switching on the lights based on desk illuminance.</Description>
		<Drivers>
		  <Time>
			<DayofWeek>Weekdays</DayofWeek>
		  </Time>
		  <Environment>
			<Parameter ID="ReinhartVoss_illuminance" Name="Workplane_illuminance">
			  <Type>RoomWorkPlaneDaylightIlluminance</Type>
			</Parameter>
		  </Environment>
		</Drivers>
		<Needs>
		</Needs>
		<Actions>
		  <Interaction>
			<Type>TurnOn</Type>
			<Formula>
			  <Logit1DQuadratic>
				<Description>p = A + C / {1 + exp(-B*[log10(P1)-D]}</Description>
				<CoefficientA>-0.00238</CoefficientA>
				<CoefficientB>-3.0965</CoefficientB>
				<CoefficientC>1.0157</CoefficientC>
				<CoefficientD>1.8536</CoefficientD>
				<Parameter1ID>ReinhartVoss_illuminance</Parameter1ID>
			  </Logit1DQuadratic>
			</Formula>
		  </Interaction>
		</Actions>
		<Systems>
		  <Lights>
			<LightType>OnOff</LightType>
		  </Lights>
		</Systems>
	  </Behavior>
	  <Behavior ID="B_Light_Newsham_1994_off_illuminance">
		<Description>Switch off lights if during the morning desk illuminance is more than 150 lux. </Description>
		<Drivers>
		  <Time>
			<DayofWeek>Weekdays</DayofWeek>
		  </Time>
		  <Environment>
			<Parameter ID="Newsham_illuminance_1" Name="Workplane_illuminance">
			  <Type>RoomWorkPlaneDaylightIlluminance</Type>
			</Parameter>
		  </Environment>
		</Drivers>
		<Needs>
		  <Physical>
			<Visual>
			  <ParameterRange>
				<ParameterID>Newsham_illuminance_1</ParameterID>
				<Max>150</Max>
			  </ParameterRange>
			</Visual>         
		  </Physical>
		</Needs>
		<Actions>
		  <Interaction>
			<Type>TurnOff</Type>
			<Formula>
			  <ConstantValue>
				<Description>Turn off lights.</Description>
				<CoefficientA>1</CoefficientA>
			  </ConstantValue>
			</Formula>
		  </Interaction>
		</Actions>
		<Systems>
		  <Lights>
			<LightType>OnOff</LightType>
		  </Lights>
		</Systems>
	  </Behavior>
	
	  <Behavior ID="B_Light_Newsham_1994_off_leave">
		<Description>Switch off lights when off work</Description>
		<Drivers>
		  <Time>
			<DayofWeek>Weekdays</DayofWeek>
		  </Time>
		  <Environment>
			<Parameter ID="Newsham_illuminance_2" Name="Workplane_illuminance">
			  <Type>RoomWorkPlaneDaylightIlluminance</Type>
			</Parameter>
		  </Environment>
		  <EventType>LeavingRoomMoreThan6Hours</EventType>
		</Drivers>
		<Needs>
		</Needs>
		<Actions>
		  <Interaction>
			<Type>TurnOff</Type>
			<Formula>
			  <ConstantValue>
				<Description>Turn off lights</Description>
				<CoefficientA>1</CoefficientA>
			  </ConstantValue>
			</Formula>
		  </Interaction>
		</Actions>
		<Systems>
		  <Lights>
			<LightType>OnOff</LightType>
		  </Lights>
		</Systems>
	  </Behavior>
  </Behaviors>
  


  <Holidays>
    <Holiday>
      <Date>2016-01-01</Date>
    </Holiday>
    <Holiday>
      <Date>2016-01-18</Date>
    </Holiday>
    <Holiday>
      <Date>2016-02-15</Date>
    </Holiday>
    <Holiday>
      <Date>2016-05-30</Date>
    </Holiday>
    <Holiday>
      <Date>2016-07-04</Date>
    </Holiday>
    <Holiday>
      <Date>2016-09-05</Date>
    </Holiday>
    <Holiday>
      <Date>2016-10-10</Date>
    </Holiday>
    <Holiday>
      <Date>2016-11-11</Date>
    </Holiday>
    <Holiday>
      <Date>2016-11-24</Date>
    </Holiday>
    <Holiday>
      <Date>2016-12-25</Date>
    </Holiday>
  </Holidays>
</OccupantBehavior>
