The title compound was synthesized via green, efficient and ecofriendly protocol using DMAP catalyzed one-pot four-component reaction, and characterized by 1H NMR and the crystal structure was confirmed by using single crystal X-ray diffraction method. The X-ray diffraction study reveals that the compound (C20H20O4N4) has crystallized in the orthorhombic crystal system with the space group P212121. And the lattice parameters are a = 7.4374(5) Å, b = 13.4666(9) Å, c = 18.6416(12) Å, α = β = γ = 90o, Z = 4 and V = 1867.1(2) Å3. The molecular structure exhibits intermolecular hydrogen bonds of the type N–H---O, N–H---N and contributes to the crystal packing. The structure is also stabilized by C–H---π and π---π stacking interactions. And it exhibits intermolecular hydrogen bond of the O–H---N with the solvent methanol molecule. Further, the molecular Hirshfeld surface analysis was carried out to understand the nature of intermolecular contacts, the fingerprint plot provide the information about the percentage contribution from the intermolecular contacts to the molecular surface.