{
    "$schema": "https://gitlab.sintef.no/energy/ltm/pyltmapi/-/raw/main/model.schema.json",
    "model": {
        "global_settings": {
            "name": "global_settings",
            "output_path": "testout_pumps/",
            "default_spill_cost": 0.01,
            "delete_output_dir": false,
            "default_load_penalty": 900.0,
            "generate_output_dir": true,
            "allow_validation_failures": false,
            "interest_rate": 4.42,
            "simulation_period": {
                "timestamps": [
                    "2023-W20",
                    "2026-W01"
                ]
            },
            "historical_type": "civillian",
            "historical_period": {
                "timestamps": [
                    "2000-01-01T00:00:00Z",
                    "2008-01-01T00:00:00Z"
                ]
            },
            "timesteps_per_week": 168
        },
        "dclines": [
            {
                "#comment": "",
                "name": "PUMPE_TEV_DC",
                "forward_capacity": {
                    "scenarios": [
                        [
                            200
                        ]
                    ]
                },
                "backward_capacity": {
                    "timestamps": [
                        "2023-01-02T00:00:00Z",
                        "2023-02-02T00:00:00Z",
                        "2023-03-02T00:00:00Z",
                        "2023-04-02T00:00:00Z",
                        "2023-05-02T00:00:00Z",
                        "2023-06-02T00:00:00Z",
                        "2023-07-02T00:00:00Z",
                        "2023-08-02T00:00:00Z",
                        "2023-09-02T00:00:00Z",
                        "2023-10-02T00:00:00Z",
                        "2023-11-02T00:00:00Z"
                    ],
                    "scenarios": [
                        [
                            100.0,
                            110.0,
                            120.0,
                            130.0,
                            140.0,
                            150.0,
                            160.0,
                            170.0,
                            180.0,
                            190.0,
                            200.0
                        ]
                    ]
                },
                "loss_percentage": 2.0,
                "forward_cost": 2.0,
                "backward_cost": 1.0
            }
        ],
        "market_steps": [
            {
                "name": "market_step",
                "price": {
                    "timestamps": [
                        "2023-01-01T00:00:00Z",
                        "2024-01-01T00:00:00Z"
                    ],
                    "scenarios": [
                        [
                            70,
                            100
                        ]
                    ]
                },
                "capacity": {
                    "timestamps": [
                        "2023-01-01T00:00:00Z"
                    ],
                    "scenarios": [
                        [
                            150
                        ]
                    ]
                }
            },
            {
                "name": "export",
                "price": {
                    "timestamps": [
                        "2023-01-01T00:00:00Z",
                        "2024-01-01T00:00:00Z"
                    ],
                    "scenarios": [
                        [
                            70,
                            60
                        ]
                    ]
                },
                "capacity": {
                    "timestamps": [
                        "2023-01-01T00:00:00Z"
                    ],
                    "scenarios": [
                        [
                            -40
                        ]
                    ]
                }
            },
            {
                "name": "import",
                "price": {
                    "timestamps": [
                        "2023-01-01T00:00:00Z",
                        "2024-01-01T00:00:00Z"
                    ],
                    "scenarios": [
                        [
                            20,
                            10
                        ]
                    ]
                },
                "capacity": {
                    "timestamps": [
                        "2023-01-01T00:00:00Z"
                    ],
                    "scenarios": [
                        [
                            20
                        ]
                    ]
                }
            }
        ],
        "loads": [
            {
                "#comment": "Gruppe 16",
                "name": "FLAT",
                "capacity": {
                    "timestamps": [
                        "2023-01-01T00:00:00Z"
                    ],
                    "scenarios": [
                        [
                            70
                        ]
                    ]
                }
            },
            {
                "#comment": "Gruppe 16",
                "name": "FLAT3",
                "capacity": {
                    "timestamps": [
                        "2023-01-01T00:00:00Z"
                    ],
                    "scenarios": [
                        [
                            100
                        ]
                    ]
                }
            },
            {
                "#comment": "Gruppe 16",
                "name": "sesong_var",
                "capacity": {
                    "timestamps": [
                        "2023-01-01T00:00:00Z",
                        "2023-03-01T00:00:00Z",
                        "2023-06-01T00:00:00Z",
                        "2023-09-01T00:00:00Z",
                        "2023-12-01T00:00:00Z",
                        "2024-03-01T00:00:00Z",
                        "2024-06-01T00:00:00Z",
                        "2024-09-01T00:00:00Z",
                        "2024-12-01T00:00:00Z",
                        "2025-03-01T00:00:00Z",
                        "2025-06-01T00:00:00Z",
                        "2025-09-01T00:00:00Z",
                        "2025-12-01T00:00:00Z"
                    ],
                    "scenarios": [
                        [
                            7,
                            5,
                            3,
                            5,
                            7,
                            5,
                            3,
                            5,
                            7,
                            5,
                            3,
                            5,
                            7
                        ]
                    ]
                }
            }
        ],
        "areas": [
            {
                "name": "pumpekraft"
            },
            {
                "name": "tev"
            }
        ],
        "market_calibration_areas": [
            {
                "name": "calibration_area"
            }
        ],
        "inflow_series": [
            {
                "name": "small",
                "series": {
                    "timestamps": [
                        "1900-01-01T00:00:00Z"
                    ],
                    "scenarios": [
                        [
                            0.001
                        ]
                    ]
                }
            },
            {
                "name": "ten",
                "series": {
                    "timestamps": [
                        "1900-01-01T00:00:00Z"
                    ],
                    "scenarios": [
                        [
                            10.0
                        ]
                    ]
                }
            },
            {
                "name": "after_one_year",
                "series": {
                    "external_reference": {
                        "type": "hdf5",
                        "path": "/inflow/tannsvatn",
                        "filename": "inflow.h5"
                    }
                },
                "forecast": {
                    "external_reference": {
                        "type": "hdf5",
                        "path": "/inflow/tannsvatn",
                        "filename": "inflow.h5"
                    }
                },
                "forecast_period": {
                    "timestamps": [
                        "2023-W25",
                        "2024-W45"
                    ],
                    "scenarios": [
                        [
                            1,
                            0
                        ]
                    ]
                }
            },
            {
                "name": "aamot",
                "series": {
                    "external_reference": {
                        "type": "hdf5",
                        "path": "/inflow/aamot",
                        "filename": "inflow.h5"
                    }
                },
                "forecast": {
                    "timestamps": [
                        "1931-W01"
                    ],
                    "scenarios": [
                        [
                            500
                        ]
                    ]
                }
            },
            {
                "name": "aamot2",
                "series": {
                    "external_reference": {
                        "type": "hdf5",
                        "path": "/inflow/aamot",
                        "filename": "inflow.h5"
                    }
                }
            },
            {
                "name": "dyrdalsvatn",
                "series": {
                    "external_reference": {
                        "type": "hdf5",
                        "path": "/inflow/dyrdalsvatn",
                        "filename": "inflow.h5"
                    }
                }
            },
            {
                "name": "krinsvatn",
                "series": {
                    "external_reference": {
                        "type": "hdf5",
                        "path": "/inflow/krinsvatn",
                        "filename": "inflow.h5"
                    }
                }
            },
            {
                "name": "tannsvatn",
                "series": {
                    "external_reference": {
                        "type": "hdf5",
                        "path": "/inflow/tannsvatn",
                        "filename": "inflow.h5"
                    }
                },
                "forecast": {
                    "timestamps": [
                        "1931-W01"
                    ],
                    "scenarios": [
                        [
                            10000
                        ]
                    ]
                },
                "forecast_period": {
                    "timestamps": [
                        "2023-W20",
                        "2023-W30"
                    ],
                    "scenarios": [
                        [
                            1,
                            0
                        ]
                    ]
                }
            }
        ],
        "reservoirs": [
            {
                "name": "upper_main",
                "degree_of_regulation": 3,
                "regulated_inflow_name": "after_one_year",
                "average_regulated_inflow": 30,
                "max_discharge": 100.0,
                "reference_curve": {
                    "timestamps": [
                        "2023-W17",
                        "2023-W40",
                        "2023-W50"
                    ],
                    "scenarios": [
                        [
                            150,
                            150,
                            150
                        ]
                    ]
                },
                "initial_volume": 150,
                "tailrace_elevation": 30.0,
                "gross_head": 900.0,
                "volume_curve": {
                    "x": [
                        1125.20,
                        1129.20
                    ],
                    "y": [
                        0,
                        250
                    ]
                }
            },
            {
                "name": "extra_rsv",
                "degree_of_regulation": 1,
                "regulated_inflow_name": "after_one_year",
                "average_regulated_inflow": 25.0,
                "max_discharge": 100.0,
                "reference_curve": {
                    "timestamps": [
                        "2023-W01"
                    ],
                    "scenarios": [
                        [
                            500
                        ]
                    ]
                },
                "initial_volume": 150,
                "tailrace_elevation": 20.0,
                "gross_head": 450.0,
                "volume_curve": {
                    "x": [
                        600,
                        630
                    ],
                    "y": [
                        0,
                        150
                    ]
                }
            },
            {
                "name": "lower_main",
                "degree_of_regulation": 1,
                "regulated_inflow_name": "ten",
                "average_regulated_inflow": 10.0,
                "max_discharge": 100.0,
                "reference_curve": {
                    "timestamps": [
                        "2023-W01"
                    ],
                    "scenarios": [
                        [
                            250.0
                        ]
                    ]
                },
                "initial_volume": 1,
                "volume_curve": {
                    "x": [
                        45,
                        50
                    ],
                    "y": [
                        0,
                        450
                    ]
                },
                "tailrace_elevation": 40.0,
                "gross_head": 1
            },
            {
                "name": "rsv_pump_1",
                "degree_of_regulation": 3,
                "regulated_inflow_name": "after_one_year",
                "average_regulated_inflow": 20,
                "max_discharge": 45,
                "reference_curve": {
                    "timestamps": [
                        "2023-W01"
                    ],
                    "scenarios": [
                        [
                            150.0
                        ]
                    ]
                },
                "initial_volume": 200,
                "volume_curve": {
                    "x": [
                        1000,
                        1050
                    ],
                    "y": [
                        0,
                        250
                    ]
                },
                "tailrace_elevation": 1000.0,
                "gross_head": 50
            },
            {
                "name": "tev_rsv",
                "degree_of_regulation": 1.0,
                "regulated_inflow_name": "after_one_year",
                "average_regulated_inflow": 4.0,
                "max_discharge": 10.0,
                "reference_curve": {
                    "timestamps": [
                        "2023-W17",
                        "2023-W40",
                        "2023-W50"
                    ],
                    "scenarios": [
                        [
                            30,
                            100,
                            70
                        ]
                    ]
                },
                "initial_volume": 75,
                "volume_curve": {
                    "x": [
                        100,
                        104
                    ],
                    "y": [
                        0,
                        150
                    ]
                },
                "tailrace_elevation": 1.0,
                "gross_head": 102.0
            }
        ],
        "plants": [
            {
                "name": "plant",
                "ownership": 100,
                "average_energy_equivalent": 2.5,
                "discharge_energy_equivalent": {
                    "timestamps": [
                        "2023-W01"
                    ],
                    "scenarios": [
                        [
                            2.500
                        ]
                    ]
                },
                "pq_curves": {
                    "2023-01-02T00:00:00Z": {
                        "x": [
                            0.0,
                            100.0
                        ],
                        "y": [
                            0.0,
                            200.0
                        ]
                    }
                },
                "unregulated_inflow_name": "small",
                "average_unregulated_inflow": 0.0,
                "unavailable_capacity": {
                    "timestamps": [
                        "2023-01-02T00:00:00Z",
                        "2024-06-01T00:00:00Z",
                        "2024-12-01T00:00:00Z"
                    ],
                    "scenarios": [
                        [
                            70,
                            50,
                            0
                        ]
                    ]
                }
            },
            {
                "name": "extra_plant",
                "ownership": 100,
                "average_energy_equivalent": 1.225,
                "discharge_energy_equivalent": {
                    "timestamps": [
                        "W01"
                    ],
                    "scenarios": [
                        [
                            1.225
                        ]
                    ]
                },
                "pq_curves": {
                    "W01": {
                        "x": [
                            0.0,
                            100.0
                        ],
                        "y": [
                            0.0,
                            100.0
                        ]
                    },
                    "W40": {
                        "x": [
                            0.0,
                            90.0
                        ],
                        "y": [
                            0.0,
                            90.0
                        ]
                    }
                },
                "unregulated_inflow_name": "small",
                "average_unregulated_inflow": 0.0,
                "unavailable_capacity": {
                    "timestamps": [
                        "2023-01-02T00:00:00Z",
                        "2023-02-02T00:00:00Z",
                        "2024-06-01T00:00:00Z",
                        "2024-12-01T00:00:00Z"
                    ],
                    "scenarios": [
                        [
                            30,
                            40,
                            50,
                            0
                        ]
                    ]
                }
            },
            {
                "name": "tev_plant",
                "ownership": 100,
                "average_energy_equivalent": 0.3,
                "discharge_energy_equivalent": {
                    "timestamps": [
                        "W01"
                    ],
                    "scenarios": [
                        [
                            0.3
                        ]
                    ]
                },
                "pq_curves": {
                    "W01": {
                        "x": [
                            0.0,
                            10.0
                        ],
                        "y": [
                            0.0,
                            10.8
                        ]
                    },
                    "W20": {
                        "x": [
                            0.0,
                            5.0
                        ],
                        "y": [
                            0.0,
                            5.4
                        ]
                    },
                    "W40": {
                        "x": [
                            0.0,
                            10.0
                        ],
                        "y": [
                            0.0,
                            10.8
                        ]
                    }
                },
                "unregulated_inflow_name": "small",
                "average_unregulated_inflow": 0.0
            }
        ],
        "pumps": [
            {
                "name": "pump1_upper",
                "ownership": 100,
                "average_power": 150,
                "pump_capacity": {
                    "x": [
                        110,
                        100
                    ],
                    "y": [
                        47,
                        150
                    ]
                },
                "unavailable_capacity": {
                    "timestamps": [
                        "2023-01-02T00:00:00Z",
                        "2023-04-02T00:00:00Z",
                        "2024-12-01T00:00:00Z"
                    ],
                    "scenarios": [
                        [
                            0,
                            130,
                            130
                        ]
                    ]
                }
            },
            {
                "name": "extra_pump_æøå",
                "ownership": 100,
                "average_power": 150,
                "pump_capacity": {
                    "x": [
                        110,
                        100
                    ],
                    "y": [
                        47,
                        150
                    ]
                },
                "upper_reservoir_reference_curve": {
                    "timestamps": [
                        "2023-W17",
                        "2023-W40",
                        "2023-W50"
                    ],
                    "scenarios": [
                        [
                            1450,
                            1400,
                            1000
                        ]
                    ]
                },
                "lower_reservoir_reference_curve": {
                    "timestamps": [
                        "2023-W17",
                        "2023-W40",
                        "2023-W50"
                    ],
                    "scenarios": [
                        [
                            5,
                            5,
                            5
                        ]
                    ]
                }
            }
        ],
        "wind": [
            {
                "name": "WIND_TEST_01",
                "capacity": {
                    "timestamps": [
                        "1981-01-01T00:00:00Z",
                        "1981-01-03T00:00:00Z"
                    ],
                    "scenarios": [
                        [
                            0.1,
                            0.1
                        ],
                        [
                            0.2,
                            0.2
                        ],
                        [
                            0.3,
                            0.3
                        ],
                        [
                            0.4,
                            0.4
                        ],
                        [
                            0.5,
                            0.5
                        ],
                        [
                            0.6,
                            0.6
                        ],
                        [
                            0.7,
                            0.7
                        ],
                        [
                            0.8,
                            0.8
                        ]
                    ]
                }
            }
        ],
        "solar": [
            {
                "name": "solar_01",
                "capacity": {
                    "timestamps": [
                        "2023-W01",
                        "2025-W01"
                    ],
                    "scenarios": [
                        [
                            0.2,
                            0.1
                        ],
                        [
                            0.2,
                            0.3
                        ],
                        [
                            0.3,
                            0.4
                        ],
                        [
                            0.4,
                            0.1
                        ],
                        [
                            0.6,
                            0.4
                        ],
                        [
                            0.7,
                            0.3
                        ],
                        [
                            0.8,
                            0.2
                        ],
                        [
                            0.9,
                            0.4
                        ]
                    ]
                }
            }
        ],
        "connections": [
            {
                "from": "WIND_TEST_01",
                "to": "tev"
            },
            {
                "from": "solar_01",
                "to": "tev"
            },
            {
                "from": "pumpekraft",
                "to": "PUMPE_TEV_DC"
            },
            {
                "from": "market_step",
                "to": "pumpekraft"
            },
            {
                "from": "import",
                "to": "tev"
            },
            {
                "from": "export",
                "to": "tev"
            },
            {
                "from": "PUMPE_TEV_DC",
                "to": "tev"
            },
            {
                "from": "FLAT",
                "to": "pumpekraft"
            },
            {
                "from": "FLAT3",
                "to": "pumpekraft"
            },
            {
                "from": "sesong_var",
                "to": "tev"
            },
            {
                "from": "upper_main",
                "to": "pumpekraft"
            },
            {
                "from": "upper_main",
                "to": "plant"
            },
            {
                "from": "plant",
                "to": "lower_main"
            },
            {
                "from": "rsv_pump_1",
                "to": "pumpekraft"
            },
            {
                "from": "rsv_pump_1",
                "to": "pump1_upper"
            },
            {
                "from": "pump1_upper",
                "to": "upper_main"
            },
            {
                "from": "extra_rsv",
                "to": "extra_plant"
            },
            {
                "from": "extra_plant",
                "to": "lower_main"
            },
            {
                "from": "extra_pump_æøå",
                "to": "extra_plant"
            },
            {
                "from": "tev_rsv",
                "to": "tev"
            },
            {
                "from": "tev_rsv",
                "to": "tev_plant"
            },
            {
                "from": "pumpekraft",
                "to": "calibration_area"
            },
            {
                "from": "tev",
                "to": "calibration_area"
            }
        ]
    }
}
