A finite-element simulation of a two-cantilever piezoelectric generator (PEG) is considered. The generator had a bimorph arrangement of piezoelements. Finite element modeling was performed in ANSYS software. The PEG considered is part of an energy generation system, designed to convert mechanical energy from the environment into an electrical energy, with subsequent accumulation. The results of the modal analysis of the first 10 modes of oscillations are present. Harmonic analysis is performed, when damping is taken into account. With the given scheme of electrical connection of PEG elements and various active loads, the results of the output voltage and power for the first four modes are obtained.