ORCHESTRATOR: "MOSAIK/HELICS" # Choose the framework
SCENARIO SCHEMA YAML:
 SCENARIO CONFIGURATION:
  - SCENARIO_NAME: "Case-one"
  - START_DATE: '1420070400' #'2015-01-01 00:00:00'
  - DAYS: 7
  - BROKER_HOST: localhost
  - BROKER_NAME: broker
  - BROKER_KEY: "MosaikHelicsTesisJGRV"
 SIMULATORS CONFIGURATION:
  Simulator:
   - SIMULATOR_NAME: "AgentScheduler"
     API_MOSAIK: "mk_scheduler"
     API_HELICS: "hl_scheduler_api"
     RUN PROCESS:
      - MODE_RUN: "python"
      - MODE_RUN_HELICS: "python"
      - HOSTPORT: "localhost"
     PARAMETERS:
      - metadata : Empty # Must be Empty in case the simulator need to write the metadata
      - days: 7
      - start_date: '2015-01-01 00:00:00' 
     MODELS:
      - MODEL_NAME: "Scheduler"
        Model_instance:
         - INSTANCE_NAME: "Schedule"
         - PARAMS_NAME: "schedule"
   - SIMULATOR_NAME: "FMU_Adapter"
     API_MOSAIK: "mk_fmu_pyfmi"
     API_HELICS: "hl_fmu_pyfmi_api"
     RUN PROCESS:
      - MODE_RUN: "python"
      - MODE_RUN_HELICS: "python"
      - HOSTPORT: "localhost"
     PARAMETERS:
      - metadata : Empty # Must be Empty in case the simulator need to write the metadata
      - step_size: 600
      - solver: matlab
     MODELS:
      - MODEL_NAME: "Battery"
        Model_instance:
         - INSTANCE_NAME: "Battery"
         - PARAMS_NAME: "battery"
   - SIMULATOR_NAME: "FMU_Adapter"
     API_MOSAIK: "mk_fmu_pyfmi"
     API_HELICS: "hl_fmu_pyfmi_api"
     RUN PROCESS:
      - MODE_RUN: "python"
      - MODE_RUN_HELICS: "python"
      - HOSTPORT: "localhost"
     PARAMETERS:
      - metadata : Empty # Must be Empty in case the simulator need to write the metadata
      - step_size: 600
     MODELS:
      - MODEL_NAME: "HeatPump_1"
        Model_instance:
         - INSTANCE_NAME: "HeatPump"
         - PARAMS_NAME: "heatpump"
   - SIMULATOR_NAME: "FMU_Adapter"
     API_MOSAIK: "mk_fmu_pyfmi"
     API_HELICS: "hl_fmu_pyfmi_api"
     RUN PROCESS:
      - MODE_RUN: "python"
      - MODE_RUN_HELICS: "python"
      - HOSTPORT: "localhost"
     PARAMETERS:
      - metadata : Empty # Must be Empty in case the simulator need to write the metadata
      - step_size: 600 # Fixed for EP settings 10 minutes
      - stop_time: 31536000 # (a complete year in seconds) for ep FMU it is necessary that the stop time is a multiple of 86400
     MODELS:
      - MODEL_NAME: "Building_1"
        Model_instance:
         - INSTANCE_NAME: "Building"
         - PARAMS_NAME: "building"
   - SIMULATOR_NAME: "PV_Sim"
     API_MOSAIK: "mk_pvsim"
     API_HELICS: "hl_pv_api"
     RUN PROCESS:
      - MODE_RUN: "python"
      - MODE_RUN_HELICS: "python"
      - HOSTPORT: "localhost"
     PARAMETERS:
      - metadata : Empty # Must be Empty in case the simulator need to write the metadata
      - step_size: 600 # 
      - start_date: '2015-01-01 00:00:00' 
     MODELS:
      - MODEL_NAME: PV
        Model_instance:
         - INSTANCE_NAME: "PV"
         - PARAMS_NAME: "pv"
   - SIMULATOR_NAME: "Meter"
     API_MOSAIK: "mk_metersim"
     API_HELICS: "hl_meter_api"
     RUN PROCESS:
      - MODE_RUN: "python"
      - MODE_RUN_HELICS: "python"
      - HOSTPORT: "localhost"
     PARAMETERS:
      - metadata : Empty # Must be Empty in case the simulator need to write the metadata
      - step_size: 600
      - collect_data: false
     MODELS:
      - MODEL_NAME: Nodo
        Model_instance:
         - INSTANCE_NAME: "Nodo"
         - PARAMS_NAME: "nodo"
   - SIMULATOR_NAME: "Meter"
     API_MOSAIK: "mk_metersim"
     API_HELICS: "hl_meter_api"
     RUN PROCESS:
      - MODE_RUN: "python"
      - MODE_RUN_HELICS: "python"
      - HOSTPORT: "localhost"
     PARAMETERS:
      - metadata : Empty # Must be Empty in case the simulator need to write the metadata
      - step_size: 600
      - collect_data: false
     MODELS:
      - MODEL_NAME: SM
        Model_instance:
         - INSTANCE_NAME: "SM"
         - PARAMS_NAME: "sm"
   - SIMULATOR_NAME: "CSV"
     API_MOSAIK: "mk_csvsim"
     API_HELICS: "hl_csv_api"
     RUN PROCESS:
      - MODE_RUN: "python"
      - MODE_RUN_HELICS: "python"
      - HOSTPORT: "localhost"
     PARAMETERS:
      - metadata : Empty # Must be Empty in case the simulator need to write the metadata
      - start_date: '2015-01-01 00:00:00'
      - datafile: 'timeseries/famiglia.csv'
     MODELS:
      - MODEL_NAME: Create
        Model_instance:
         - INSTANCE_NAME: "Create"
         - PARAMS_NAME: "Home_create"
   - SIMULATOR_NAME: "CSV"
     API_MOSAIK: "mk_csvsim"
     API_HELICS: "hl_csv_api"
     RUN PROCESS:
      - MODE_RUN: "python"
      - MODE_RUN_HELICS: "python"
      - HOSTPORT: "localhost"
     PARAMETERS:
      - metadata : Empty # Must be Empty in case the simulator need to write the metadata
      - start_date: '2015-01-01 00:00:00' 
      - datafile: 'timeseries/meteo_mosaik.csv' 
     MODELS:
      - MODEL_NAME: Create_Mt
        Model_instance:
         - INSTANCE_NAME: "Create_Mt"
         - PARAMS_NAME: "Meteo_create"
 CONNECTIONS:
  - CONECTOR_NUMBER: 1
    TYPE: "Direct"
    TOTAL_AMOUNT: 1
    TOTAL_PUB: 1
    TOTAL_SUB: 1
    FROM: Building
    TO: HeatPump
    ATTRIBUTES:
     - ATTR: ['TRooMea', 'TroomSens']
     - ATTR: 'Tamb'
  # # # - CONECTOR_NUMBER: 2
  # # #   TYPE: "Direct"
  # # #   TOTAL_AMOUNT: 1
  # # #   TOTAL_PUB: 1
  # # #   TOTAL_SUB: 1
  # # #   FROM: HeatPump_1
  # # #   TO: Building_1
  # # #   ATTRIBUTES:
  # # #    - ATTR: ['Qsensible', 'Q']
  - CONECTOR_NUMBER: 3
    TYPE: "Many to One"
    TOTAL_AMOUNT: 1
    TOTAL_PUB: 1
    TOTAL_SUB: 1
    FROM: Create_Mt
    TO: Building
    ATTRIBUTES:
     - ATTR: ['T_dewPoint', 'Tdew']
     - ATTR: ['humidity', 'RH']
     - ATTR: ['T_ext', 'Tbulb']
  - CONECTOR_NUMBER: 4
    TYPE: "Many to One"
    TOTAL_AMOUNT: 1
    TOTAL_PUB: 1
    TOTAL_SUB: 1
    FROM: Create
    TO: Building
    ATTRIBUTES:
     - ATTR: ['Pres', 'Peo']
  - CONECTOR_NUMBER: 5
    TYPE: "Direct"
    TOTAL_AMOUNT: 1
    TOTAL_PUB: 1
    TOTAL_SUB: 1
    FROM: HeatPump
    TO: Nodo
    ATTRIBUTES:
     - ATTR: ['Power', 'Load']
  # - CONECTOR_NUMBER: 6
  #   TYPE: "Many to One"
  #   TOTAL_AMOUNT: 1
  #   TOTAL_PUB: 1
  #   TOTAL_SUB: 1
  #   FROM: Create_Mt
  #   TO: PV
  #   ATTRIBUTES:
  #    - ATTR: ['ghi', 'T_ext']
  # - CONECTOR_NUMBER: 7
  #   TYPE: "Direct"
  #   TOTAL_AMOUNT: 1
  #   TOTAL_PUB: 1
  #   TOTAL_SUB: 1
  #   FROM: PV
  #   TO: Nodo
  #   ATTRIBUTES:
  #    - ATTR: ['power_dc', 'Prod']
  - CONECTOR_NUMBER: 8
    TYPE: "Many to One"
    TOTAL_AMOUNT: 1
    TOTAL_PUB: 1
    TOTAL_SUB: 1
    FROM: Create
    TO: Nodo
    ATTRIBUTES:
     - ATTR: ['P', 'Load']
  - CONECTOR_NUMBER: 9
    TYPE: "Direct"
    TOTAL_AMOUNT: 1
    TOTAL_PUB: 1
    TOTAL_SUB: 1
    FROM: Nodo
    TO: Battery
    ATTRIBUTES:
     - ATTR: ['Pload', 'LoadINW']
     - ATTR: ['Pprod', 'GenINW']
  - CONECTOR_NUMBER: 10
    TYPE: "Direct"
    TOTAL_AMOUNT: 1
    TOTAL_PUB: 1
    TOTAL_SUB: 1
    FROM: Battery
    TO: SM
    ATTRIBUTES:
     - ATTR: ['PnetBatt', 'NetBatt']
  - CONECTOR_NUMBER: 11
    TYPE: "Direct"
    TOTAL_AMOUNT: 1
    TOTAL_PUB: 1
    TOTAL_SUB: 1
    FROM: Nodo
    TO: SM
    ATTRIBUTES:
     - ATTR: ['Pload', 'Load']
     - ATTR: ['Pprod', 'Prod']
  - CONECTOR_NUMBER: 12
    TYPE: "Direct"
    TOTAL_AMOUNT: 1
    TOTAL_PUB: 1
    TOTAL_SUB: 1
    FROM: Schedule
    TO: HeatPump
    ATTRIBUTES:
     - ATTR: 'Tset'