Search found 148 matches

by RWTH_FCN
Thu Apr 27, 2017 7:44 am
Forum: Vensim
Topic: removing ~ and | from changes files
Replies: 10
Views: 5075

removing ~ and | from changes files

Hello everyone, im trying to get an old model of ours back running. Whenever I use the old changes file (.cin), VenSim gives me an error at every point where "~~|" is in the file. If I remove it everything works fine, but I am worried that it might effect the outcome? What function did the...
by RWTH_FCN
Wed Mar 15, 2017 10:39 am
Forum: Vensim
Topic: "Failed to compile the model (does not exist)"
Replies: 41
Views: 16645

Re: "Failed to compile the model (does not exist)"

perfect thank you, that solved the problem! Another general question, cuz I had a discussion earlier with someone: Is it possible that compiled and non-compiled simulation lead to (slightly) different results?
by RWTH_FCN
Tue Mar 14, 2017 3:12 pm
Forum: Vensim
Topic: "Failed to compile the model (does not exist)"
Replies: 41
Views: 16645

Re: "Failed to compile the model (does not exist)"

Equation of market tightness - regional: min(1,max(0, xidz( Reg Demand[Prdcr Region,Time setting]-imports for tightness calculation[Prdcr Region,Time setting], 1*Regional Available Capacity[Prdcr Region,Time setting], 2) )) so it is "( 1 , MAX (0 , XIDZ ( a , b , c )) )", just as you state...
by RWTH_FCN
Tue Mar 14, 2017 2:57 pm
Forum: Vensim
Topic: "Failed to compile the model (does not exist)"
Replies: 41
Views: 16645

Re: "Failed to compile the model (does not exist)"

sorry bout that. yea there is but I dont think its gonna help, since that is reallly specific to my model (the bold line is the one referred to in the error message): /* market tightness - regional */ for(forind0=0;forind0<14;forind0++) for(forind1=0;forind1<2;forind1++) { VGV->lastpos = 1181527+sub...
by RWTH_FCN
Tue Mar 14, 2017 2:46 pm
Forum: Vensim
Topic: "Failed to compile the model (does not exist)"
Replies: 41
Views: 16645

Re: "Failed to compile the model (does not exist)"

Here's the entire cmd output (sorry for the german in between): D:\Input Files>REM @ECHO OFF D:\Input Files>call "C:\Program Files (x86)\Microsoft Visual Studio 14.0\VC\bin\ vcvars32.bat" D:\Input Files>if exist mdl.obj del mdl.obj D:\Input Files>if exist "100219 v58_sim".dll del...
by RWTH_FCN
Tue Mar 14, 2017 2:13 pm
Forum: Vensim
Topic: "Failed to compile the model (does not exist)"
Replies: 41
Views: 16645

Re: "Failed to compile the model (does not exist)"

So, from one error to the next (I still get the "failed to compile the model (does not exist)" in the end). But this time I can actually show you the error log in the console: Now I get the "fatal error C1001: Internal compiler error" it specifically refers to this expressions in...
by RWTH_FCN
Mon Mar 13, 2017 10:07 am
Forum: Vensim
Topic: "Failed to compile the model (does not exist)"
Replies: 41
Views: 16645

Re: "Failed to compile the model (does not exist)"

Alright, so it works! This time \comp and the other folders are actually in the right place (c:\users\public\vensim). I have no idea why they were under c:/program files/ vensim before (addtionially I assumed that was a valid place, since that directory is also mentioned in the "how to compile&...
by RWTH_FCN
Wed Mar 08, 2017 10:58 am
Forum: Vensim
Topic: "Failed to compile the model (does not exist)"
Replies: 41
Views: 16645

Re: "Failed to compile the model (does not exist)"

Thank you for sticking with me anyway. I will do exactly that (reinstall both VenSim and VisualStudio with admin permissions) and then get back to you.
by RWTH_FCN
Wed Mar 08, 2017 10:31 am
Forum: Vensim
Topic: "Failed to compile the model (does not exist)"
Replies: 41
Views: 16645

Re: "Failed to compile the model (does not exist)"

As I stated earlier, this is my compiled simulation path: "C:\Program Files (x86)\Vensim\COMP\" Here's the content of vensim.ini: [vensim] ModelsOld0= ModelsOld1= ModelsOld2= ModelsOld3= ModelsOld4= ModelsOld5= ModelsOld6= ModelsOld7= ModelsOld8= ModelsOld9= ModelsOld= print_options=1,1,0,...
by RWTH_FCN
Wed Mar 08, 2017 10:12 am
Forum: Vensim
Topic: "Failed to compile the model (does not exist)"
Replies: 41
Views: 16645

Re: "Failed to compile the model (does not exist)"

No I'm running vensim.exe even though there also is a vensimdp.exe. Should I give that a try? How can the path not be set correctly if I edit and use the mdl.bat and then just copy the exact path in VenSim?
by RWTH_FCN
Wed Mar 08, 2017 9:45 am
Forum: Vensim
Topic: "Failed to compile the model (does not exist)"
Replies: 41
Views: 16645

Re: "Failed to compile the model (does not exist)"

Yes I understand. I followed all you steps, but after I get asked if I want to compile and I click yes, I can see the DOS Window appear for a millisecond and then it disappears and the error from VenSim pops up ("failed tom compile the model (does not exist)"). So there is no chance for me...
by RWTH_FCN
Wed Mar 08, 2017 9:23 am
Forum: Vensim
Topic: "Failed to compile the model (does not exist)"
Replies: 41
Views: 16645

Re: "Failed to compile the model (does not exist)"

The output I posted earlier was from running it myself. Here's what happens when I try to run it from vensim (simulate the model): Option 1: With a wrong path to mdl.bat I specifically get the error "couldnt find mdl.bat" Option 2: With the right path (in my case C:\Program Files (x86)\Ven...
by RWTH_FCN
Wed Mar 08, 2017 8:41 am
Forum: Vensim
Topic: "Failed to compile the model (does not exist)"
Replies: 41
Views: 16645

Re: "Failed to compile the model (does not exist)"

Ok, I will try that. But why would that make a difference, if i can specifically tell VenSim where the mdl.bat is located anyway? So from my understanding it should not matter where the mdl.bat is as long as I put the right path in option->startup. Am I missing something?
by RWTH_FCN
Tue Mar 07, 2017 2:40 pm
Forum: Vensim
Topic: "Failed to compile the model (does not exist)"
Replies: 41
Views: 16645

Re: "Failed to compile the model (does not exist)"

Thank you for your answers. I think you've got the path to MDL.bat wrong. The instructions do say that the path to mdl.bat should be c:\Users\Public\Vensim\comp (or for older installations, “c:\program files\vensim\comp\”). Try that and see what happens. Vensim is trying to call “c:\program files (x...
by RWTH_FCN
Tue Feb 28, 2017 2:45 pm
Forum: Vensim
Topic: "Failed to compile the model (does not exist)"
Replies: 41
Views: 16645

Re: "Failed to compile the model (does not exist)"

What window are you refering to? Unfortunatly i cant share the model. Even if I try putting a "pause" at the beginning of the MDL.BAT I still get the same error.
The path to the comp folder is "C:\Program Files (x86)\Vensim\COMP\".
by RWTH_FCN
Thu Feb 23, 2017 8:52 am
Forum: Vensim
Topic: "Failed to compile the model (does not exist)"
Replies: 41
Views: 16645

Re: "Failed to compile the model (does not exist)"

Yes the path to the comp folder is set in Vensim.
by RWTH_FCN
Thu Feb 23, 2017 8:43 am
Forum: Vensim
Topic: "Failed to compile the model (does not exist)"
Replies: 41
Views: 16645

Re: "Failed to compile the model (does not exist)"

Yes exactly. I applied your suggested changes (comment out "ECHO OFF" and add a "pause" at the end) to the MDL.BAT. If I then try running the model in VenSim I get the same old error. So i thought I run MDL.BAT in a command prompt, so I can see what errors are occuring whithin th...
by RWTH_FCN
Wed Feb 22, 2017 1:10 pm
Forum: Vensim
Topic: "Failed to compile the model (does not exist)"
Replies: 41
Views: 16645

Re: "Failed to compile the model (does not exist)"

Thank you for your help. I adjusted the code according to your answers. If I try to run the MDL.BAT now, I get the following error (in the cmd console): "C:\Program Files (x86)\Vensim\COMP>call "C:\Program Files (x86)\Microsoft Visual Studio 12.0\VC\bin\vcvars32.bat" C:\Program Files ...
by RWTH_FCN
Tue Feb 14, 2017 1:06 pm
Forum: Vensim
Topic: "Failed to compile the model (does not exist)"
Replies: 41
Views: 16645

Re: "Failed to compile the model (does not exist)"

Yes, sure. Here you go: @ECHO OFF call "C:\Program Files (x86)\Microsoft Visual Studio 12.0\VC\bin\vcvars32.bat" if exist mdl.obj del mdl.obj if exist %3.dll del %3.dll if .%2 == . goto noinclude CL /O2 /c /I "%2" /DWIN32 mdl.c goto aftercomp :noinclude CL /O2 /c /DWIN32 mdl.c :a...
by RWTH_FCN
Tue Feb 14, 2017 12:56 pm
Forum: Vensim
Topic: "Failed to compile the model (does not exist)"
Replies: 41
Views: 16645

Re: "Failed to compile the model (does not exist)"

Thank you for your quick answer. I followed all steps but I still get the same error. Do you have any other ideas?

Best regards
by RWTH_FCN
Tue Feb 14, 2017 11:11 am
Forum: Vensim
Topic: "Failed to compile the model (does not exist)"
Replies: 41
Views: 16645

"Failed to compile the model (does not exist)"

Hello everyone, I am trying to get an 8 year old model running on a new computer and with a more recent VenSim Version. When I open my model and try to simulate it, I get the error "Failed to compile the model (does not exist)". I tried to fix that error by adjusting the paths in the mdl.b...
by RWTH_FCN
Thu Feb 09, 2017 11:33 am
Forum: Vensim
Topic: New Header file compiling problems
Replies: 2
Views: 1839

Re: New Header file compiling problems

Thanks for your reply. I figured it out i had to merge my old vensim.c and some functions from the new one. Its quiet stressing to compile a new dll with the new header file because a lot of functions have changed in some ways. Thank you anyway.
by RWTH_FCN
Wed Feb 08, 2017 9:27 am
Forum: Vensim
Topic: New Header file compiling problems
Replies: 2
Views: 1839

New Header file compiling problems

Dear all, I'm trying to use an old model of ours and upon loading the external file I get the "External function mismatch 51050 (got 400) error" (http://www.ventanasystems.co.uk/forum/viewtopic.php?t=5512; http://www.ventanasystems.co.uk/forum/viewtopic.php?f=2&t=4462&p=15002&h...