Lumped element type "Spice Circuit"

Hello all,

I am using a lumped element in my time domain simulation. This lumped element is Spice Circuit type and I declare the circuit file location.

I get the following error message "SPICE file needs to have exactly one 2-terminal subcircuit. I checked the spice file and it is a two terminal device. I simplified it to a simple series resistance to see if the error got resolved. Below is the spice file content 

R1 1 2 10000  
.end
 

I also tried to make it into a sub-circuit with two terminal (below content of file)

.subckt JustR
+ 1 2

R1 1 2 10000
 
.ends

 

Has anyone here have experience with spice circuit ? 

Thank you in advance!

Kypros

 

Edu