Energy system modelling: background, motivations, modelling physical systems, time scales of power system dynamics, energy system architecture, energy system scripting, python language. Analysis of energy systems: power flow analysis, modelling and solution by Newton Raphson method, continuation power flow analysis, modelling and solution by homotopy methods, optimal power flow analysis, modelling and solution by gradient method. Modelling of Renewable Energy: operation of PV & Wind energy systems, frequency impact & voltage analysis, modelling of solid oxide fuel cell and battery energy storage. Modelling of HVDC transmission system and voltage source converter, modelling of STATCOM and analysis. Dealing with uncertainty and probabilistic techniques: uncertainty power flow analysis and probabilistic optimal power flow analysis. Case studies of various analyses on standard IEEE test system.