@User
The reram symbol uses a verilog-AMS description, using Verilog-AMS in ngspice is very complex, you must build a new ngspice executable or library with the reram model linked in.
For now i have added into xschem a symbol for the reram device with the correct (as far as i know) netlist format, but i definitely need some help for using this in ngspice simulations.