Error Message -[variable name] - is not used in the model

Use this forum to post Vensim related questions.
Post Reply
drees
Senior Member
Posts: 73
Joined: Fri Jun 25, 2010 4:02 am

Error Message -[variable name] - is not used in the model

Post by drees »

I have just upgraded from DSS version 5.7 (PC) to DSS version 5.11(MAC) Working on a model, originally developed in 5.7 I have got an error message - after having worked on it, seemingly without problems for a couple of hours, and I am now getting an error message saying variable is not used in the model. In the dialogue box I note that it has listed 14 variables that are now 'not used in the model'.

Any ideas?

Thanks

David Rees
tomfid
Administrator
Posts: 3804
Joined: Wed May 24, 2006 4:54 am

Re: Error Message -[variable name] - is not used in the mode

Post by tomfid »

This is a standard warning to help prevent errors. You can suppress it by checking the "Supplementary" box in the equation editor for the variable in question (unless it should be used of course).
drees
Senior Member
Posts: 73
Joined: Fri Jun 25, 2010 4:02 am

Re: Error Message -[variable name] - is not used in the mode

Post by drees »

Thanks for the prompt reply. Amazing what you learn if you ask.

David
schalkj
Junior Member
Posts: 13
Joined: Thu Jul 28, 2011 11:19 am
Vensim version: PRO

Re: Error Message -[variable name] - is not used in the mode

Post by schalkj »

Elementary start-up model.mdl
(23.06 KiB) Downloaded 261 times
I got the same error message. I replicated the model in "An elementary dynamic model of a small start up firm" by Prof. Dr. Rainer Schwarz and Dipl.-Ing. Frank Schoneborn.

Model check gives two error messages:

"Customer acquisition not used in the model". It is actually used in two places, confirmed by doing a Causes Tree and Uses Tree analysis. Following the solution given by Tom Fiddaman, it now returns two messages: "Customer acquisition not used in the model." and "The supplementary variable-customer acquisition-is used in the model.

The other error message also has me stumped:
" The variable component rate has equations inside and outside of macros"
Component rate is a constant, used twice in the model.

Can anyone help?

Thanks
Schalk
Administrator
Super Administrator
Posts: 4573
Joined: Wed Mar 05, 2003 3:10 am

Re: Error Message -[variable name] - is not used in the mode

Post by Administrator »

Those are just warnings. All they are saying is that a variable is not used or is marked as supplementary but is then used. Ticking/unticking the box for supplementary will clear these errors. I've uploaded a fixed model.

I'd be more concerned about the unit errors. These usually indicate conceptual errors in the model.
Attachments
Elementary start-up model.mdl
(22.87 KiB) Downloaded 299 times
Advice to posters seeking help (it really helps us to help you)
http://www.ventanasystems.co.uk/forum/v ... f=2&t=4391

Units are important!
http://www.bbc.co.uk/news/magazine-27509559
schalkj
Junior Member
Posts: 13
Joined: Thu Jul 28, 2011 11:19 am
Vensim version: PRO

Re: Error Message -[variable name] - is not used in the mode

Post by schalkj »

Thank you very much. As a matter of interest, I changed one of the delay functions, which then solved all those errors. Haven't yet foolowed the path to see why.

Regarding the unit errors, I used exactly the same units as per the original model. However, I take your point, and am working through of all of them.

Thanks a million for the help - I am still a novice.

Regards
Schalk
Post Reply