"Failed to compile the model (does not exist)"
-
- Super Administrator
- Posts: 4590
- Joined: Wed Mar 05, 2003 3:10 am
Re: "Failed to compile the model (does not exist)"
What do you have in Tools->Options->Startup->Compiled Simulation Path?
And can you upload your vensim.ini file?
And can you upload your vensim.ini file?
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
http://www.ventanasystems.co.uk/forum/v ... f=2&t=4391
Units are important!
http://www.bbc.co.uk/news/magazine-27509559
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,0,
size_options=0,0,0,0,
XlsOptions=82,67,0,0,
print_dimensions=10,10,,,
print_text_hndl=,,,
printer_name=,,,
ErrDim=0,0,1092,448,
SelDim=0,0,1092,448,
EqedDim1=0,0,1058,567,
EqedDim2=0,,,,
VarDim=0,0,0,0,
DefaultFonts=Courier|10||0-0-0,Times New Roman|12||0-0-0,Small Fonts|7||0-0-0,MS Sans Serif|9||0-0-0,
GraphFonts=Times New Roman|48||0-0-0,Times New Roman|16||0-0-0,Times New Roman|12||0-0-0,,
GraphLegendFonts=Times New Roman|12||0-0-0,Times New Roman|10||0-0-0,Times New Roman|8||0-0-0,,
PrintFonts=Times New Roman|8||0-0-0,Times New Roman|18||0-0-0,Times New Roman|12||0-0-0,Times New Roman|10||0-0-0,
DefaultFont2=MS Sans Serif|9||0-0-0,Courier|10||0-0-0,MS Sans Serif|9||0-0-0,,
DefaultVariableFace=Times New Roman,,,
GraphicsOptions=0,0,0,2,
ScreenOpt2=0,0,0,1,
OtherOpt=0,,,,
name_format=0,0,1,0,
size_centimeter=0,1,,,
MacroWarningNewOver=0,1,1,1,
history_comment=1,0,0,0,
raw_scaling_flag=0,1,0,0,
FSSettings=1,0,1,,
FSSettings2=2,,,,
compile_options=1,1,1,,
TimeSlop=0,0,0,,
MAX_X_GAP=0,,,,
GraphClr=16777215,0,8421504,,
GraphClr2=12632256,16777215,12632256,,
PltClr1=16711680,255,32768,8421504,
PltClr2=0,128,16776960,8388736,
PltClr3=8388608,65280,16711935,32896,
SketchClr=16711680,-1,0,-1,
DefaultFixedFace=Courier,,,
AnalysisToolSet=,,,
SketchToolSet=,,,
Mode_Options=1,0,10,,
AdvancedOpt=0,0,0,,
NewModel=,,,
Screen_Options=0,,0,0,
PolarityOffset=14,0,0,,
SketchDefAppear=1,1,0,0,
SketchOpt3=1,1,,,
ArrowheadSize=14,8,5,,
Init_rate_size=12,16,2,100,
GraphDiv=4,4,,,
Init_shape_size=40,80,40,,
TypeShape=,8,8,,
TypeShape2=3,8,,,
GraphMark1=49,50,51,52,
GraphMark2=53,54,55,56,
GraphMark3=57,58,66,67,
ShowAllWarnings=0
IconSize=1
IconLabels=1
UseOldIcons=0
Model=
StartEmpty=1
ExternalFunctionLibrary=C:\Program Files (x86)\Vensim\cfiles\venext.dll
SimPath=C:\Program Files (x86)\Vensim\COMP\
Control Dlg=0-x=74,y=56,w=478,h=252
Here's the content of vensim.ini:
[vensim]
ModelsOld0=
ModelsOld1=
ModelsOld2=
ModelsOld3=
ModelsOld4=
ModelsOld5=
ModelsOld6=
ModelsOld7=
ModelsOld8=
ModelsOld9=
ModelsOld=
print_options=1,1,0,0,
size_options=0,0,0,0,
XlsOptions=82,67,0,0,
print_dimensions=10,10,,,
print_text_hndl=,,,
printer_name=,,,
ErrDim=0,0,1092,448,
SelDim=0,0,1092,448,
EqedDim1=0,0,1058,567,
EqedDim2=0,,,,
VarDim=0,0,0,0,
DefaultFonts=Courier|10||0-0-0,Times New Roman|12||0-0-0,Small Fonts|7||0-0-0,MS Sans Serif|9||0-0-0,
GraphFonts=Times New Roman|48||0-0-0,Times New Roman|16||0-0-0,Times New Roman|12||0-0-0,,
GraphLegendFonts=Times New Roman|12||0-0-0,Times New Roman|10||0-0-0,Times New Roman|8||0-0-0,,
PrintFonts=Times New Roman|8||0-0-0,Times New Roman|18||0-0-0,Times New Roman|12||0-0-0,Times New Roman|10||0-0-0,
DefaultFont2=MS Sans Serif|9||0-0-0,Courier|10||0-0-0,MS Sans Serif|9||0-0-0,,
DefaultVariableFace=Times New Roman,,,
GraphicsOptions=0,0,0,2,
ScreenOpt2=0,0,0,1,
OtherOpt=0,,,,
name_format=0,0,1,0,
size_centimeter=0,1,,,
MacroWarningNewOver=0,1,1,1,
history_comment=1,0,0,0,
raw_scaling_flag=0,1,0,0,
FSSettings=1,0,1,,
FSSettings2=2,,,,
compile_options=1,1,1,,
TimeSlop=0,0,0,,
MAX_X_GAP=0,,,,
GraphClr=16777215,0,8421504,,
GraphClr2=12632256,16777215,12632256,,
PltClr1=16711680,255,32768,8421504,
PltClr2=0,128,16776960,8388736,
PltClr3=8388608,65280,16711935,32896,
SketchClr=16711680,-1,0,-1,
DefaultFixedFace=Courier,,,
AnalysisToolSet=,,,
SketchToolSet=,,,
Mode_Options=1,0,10,,
AdvancedOpt=0,0,0,,
NewModel=,,,
Screen_Options=0,,0,0,
PolarityOffset=14,0,0,,
SketchDefAppear=1,1,0,0,
SketchOpt3=1,1,,,
ArrowheadSize=14,8,5,,
Init_rate_size=12,16,2,100,
GraphDiv=4,4,,,
Init_shape_size=40,80,40,,
TypeShape=,8,8,,
TypeShape2=3,8,,,
GraphMark1=49,50,51,52,
GraphMark2=53,54,55,56,
GraphMark3=57,58,66,67,
ShowAllWarnings=0
IconSize=1
IconLabels=1
UseOldIcons=0
Model=
StartEmpty=1
ExternalFunctionLibrary=C:\Program Files (x86)\Vensim\cfiles\venext.dll
SimPath=C:\Program Files (x86)\Vensim\COMP\
Control Dlg=0-x=74,y=56,w=478,h=252
-
- Super Administrator
- Posts: 4590
- Joined: Wed Mar 05, 2003 3:10 am
Re: "Failed to compile the model (does not exist)"
All I can really suggest is a re-install using admin permissions, and follow the instructions in the document exactly as they are written.
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
http://www.ventanasystems.co.uk/forum/v ... f=2&t=4391
Units are important!
http://www.bbc.co.uk/news/magazine-27509559
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.
Re: "Failed to compile the model (does not exist)"
Having the /comp folder in c:/program files could be part of the problem - that's a protected location, so there's some reason to expect that things won't work there. I'm not sure how the /comp folder came to be there, because it's not the default installer location. I'd try a reinstall, and be sure that /comp goes to c:\users\public\vensim, then set the paths to match.
Also, the fact that the DOS window doesn't PAUSE suggests that Vensim is not really pointed at your edited mdl.bat, and is using some other copy, or nothing.
Also, the fact that the DOS window doesn't PAUSE suggests that Vensim is not really pointed at your edited mdl.bat, and is using some other copy, or nothing.
/*
Advice to posters (it really helps us to help you)
http://www.ventanasystems.co.uk/forum/v ... f=2&t=4391
Blog: http://blog.metasd.com
Model library: http://models.metasd.com
Bookmarks: http://delicious.com/tomfid/SystemDynamics
*/
Advice to posters (it really helps us to help you)
http://www.ventanasystems.co.uk/forum/v ... f=2&t=4391
Blog: http://blog.metasd.com
Model library: http://models.metasd.com
Bookmarks: http://delicious.com/tomfid/SystemDynamics
*/
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" pdf you guys uploaded). Thanks a lot for your help!
-
- Super Administrator
- Posts: 4590
- Joined: Wed Mar 05, 2003 3:10 am
Re: "Failed to compile the model (does not exist)"
This happens when you don't install with administrative permissions.RWTH_FCN wrote:I have no idea why they were under c:/program files/ vensim before
Good to hear it's working now.
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
http://www.ventanasystems.co.uk/forum/v ... f=2&t=4391
Units are important!
http://www.bbc.co.uk/news/magazine-27509559
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 my mdl.c:
"VGV->LEVEL[1181527+sub37[forind0]*2+sub54[forind1]*1] = MIN(1.000000
,MAX(0,XIDZ(0,VGV->LEVEL[1735727+sub37[forind0]*2+sub54[forind1]*1
]-VGV->LEVEL[1106931+sub37[forind0]*2+sub54[forind1]*1],1.000000*VGV->LEVEL[1765822
+sub37[forind0]*2+sub54[forind1]*1],2.000000))) ;"
The model is working when I dont compile but it takes forever which is not acceptable. I guess this is a c++ compiling error and not vensim specific, but maybe someone has seen it before and has any advise on how to proceed?
Cheers.
Now I get the "fatal error C1001: Internal compiler error" it specifically refers to this expressions in my mdl.c:
"VGV->LEVEL[1181527+sub37[forind0]*2+sub54[forind1]*1] = MIN(1.000000
,MAX(0,XIDZ(0,VGV->LEVEL[1735727+sub37[forind0]*2+sub54[forind1]*1
]-VGV->LEVEL[1106931+sub37[forind0]*2+sub54[forind1]*1],1.000000*VGV->LEVEL[1765822
+sub37[forind0]*2+sub54[forind1]*1],2.000000))) ;"
The model is working when I dont compile but it takes forever which is not acceptable. I guess this is a c++ compiling error and not vensim specific, but maybe someone has seen it before and has any advise on how to proceed?
Cheers.
-
- Super Administrator
- Posts: 4590
- Joined: Wed Mar 05, 2003 3:10 am
Re: "Failed to compile the model (does not exist)"
Above that code, there is a comment telling you the parameter it is calculating. Can you post the equation for that particular parameter?
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
http://www.ventanasystems.co.uk/forum/v ... f=2&t=4391
Units are important!
http://www.bbc.co.uk/news/magazine-27509559
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 "100219 v58_sim".dll
D:\Input Files>if ."C:/Users/Public/Vensim/COMP" == . goto noinclude
D:\Input Files>CL /O2 /c /I ""C:/Users/Public/Vensim/COMP"" /DWIN32 mdl.c
Microsoft (R) C/C++-Optimierungscompiler Version 19.00.24215.1 für x86
Copyright (C) Microsoft Corporation. Alle Rechte vorbehalten.
mdl.c
d:\input files\mdl.c(5357) : fatal error C1001: Interner Compilerfehler.
(Compilerdatei "f:\dd\vctools\compiler\utc\src\p2\main.c", Zeile 255)
Vereinfachen oder ändern Sie das Programm im Umfeld der oben aufgeführten Posit
ionen. Wählen
Sie im Menü "Hilfe" von Visual C++ den Befehl "Technischer Support",
oder öffnen Sie die Hilfedatei des technischen Supports, um weitere Informatione
n zu erhalten.
d:\input files\mdl.c(5357) : fatal error C1001: Interner Compilerfehler.
(Compilerdatei "f:\dd\vctools\compiler\utc\src\common\error.c", Zeile 789)
Vereinfachen oder ändern Sie das Programm im Umfeld der oben aufgeführten Posit
ionen. Wählen
Sie im Menü "Hilfe" von Visual C++ den Befehl "Technischer Support",
oder öffnen Sie die Hilfedatei des technischen Supports, um weitere Informatione
n zu erhalten.
D:\Input Files>goto aftercomp
D:\Input Files>if errorlevel 1 goto :error1
D:\Input Files>echo There were errors while compiling - check the paths in mdl.b
at in vensim\comp
There were errors while compiling - check the paths in mdl.bat in vensim\comp
D:\Input Files>goto exit2
D:\Input Files>pause
Drücken Sie eine beliebige Taste . . .
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 "100219 v58_sim".dll
D:\Input Files>if ."C:/Users/Public/Vensim/COMP" == . goto noinclude
D:\Input Files>CL /O2 /c /I ""C:/Users/Public/Vensim/COMP"" /DWIN32 mdl.c
Microsoft (R) C/C++-Optimierungscompiler Version 19.00.24215.1 für x86
Copyright (C) Microsoft Corporation. Alle Rechte vorbehalten.
mdl.c
d:\input files\mdl.c(5357) : fatal error C1001: Interner Compilerfehler.
(Compilerdatei "f:\dd\vctools\compiler\utc\src\p2\main.c", Zeile 255)
Vereinfachen oder ändern Sie das Programm im Umfeld der oben aufgeführten Posit
ionen. Wählen
Sie im Menü "Hilfe" von Visual C++ den Befehl "Technischer Support",
oder öffnen Sie die Hilfedatei des technischen Supports, um weitere Informatione
n zu erhalten.
d:\input files\mdl.c(5357) : fatal error C1001: Interner Compilerfehler.
(Compilerdatei "f:\dd\vctools\compiler\utc\src\common\error.c", Zeile 789)
Vereinfachen oder ändern Sie das Programm im Umfeld der oben aufgeführten Posit
ionen. Wählen
Sie im Menü "Hilfe" von Visual C++ den Befehl "Technischer Support",
oder öffnen Sie die Hilfedatei des technischen Supports, um weitere Informatione
n zu erhalten.
D:\Input Files>goto aftercomp
D:\Input Files>if errorlevel 1 goto :error1
D:\Input Files>echo There were errors while compiling - check the paths in mdl.b
at in vensim\comp
There were errors while compiling - check the paths in mdl.bat in vensim\comp
D:\Input Files>goto exit2
D:\Input Files>pause
Drücken Sie eine beliebige Taste . . .
-
- Super Administrator
- Posts: 4590
- Joined: Wed Mar 05, 2003 3:10 am
Re: "Failed to compile the model (does not exist)"
No, in mdl.c, above
"VGV->LEVEL[1181527+sub37[forind0]*2+sub54[forind1]*1] = MIN(1.000000
,MAX(0,XIDZ(0,VGV->LEVEL[1735727+sub37[forind0]*2+sub54[forind1]*1
]-VGV->LEVEL[1106931+sub37[forind0]*2+sub54[forind1]*1],1.000000*VGV->LEVEL[1765822
+sub37[forind0]*2+sub54[forind1]*1],2.000000))) ;"
There is a comment telling you what parameter in the model this is for. Can you post the equation for that? It looks like it's min ( 1 , MAX (0 , XIDZ ( a , b , c )) ). I'd suggest simplifying this before doing anything else as this is what might cause the problem.
"VGV->LEVEL[1181527+sub37[forind0]*2+sub54[forind1]*1] = MIN(1.000000
,MAX(0,XIDZ(0,VGV->LEVEL[1735727+sub37[forind0]*2+sub54[forind1]*1
]-VGV->LEVEL[1106931+sub37[forind0]*2+sub54[forind1]*1],1.000000*VGV->LEVEL[1765822
+sub37[forind0]*2+sub54[forind1]*1],2.000000))) ;"
There is a comment telling you what parameter in the model this is for. Can you post the equation for that? It looks like it's min ( 1 , MAX (0 , XIDZ ( a , b , c )) ). I'd suggest simplifying this before doing anything else as this is what might cause the problem.
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
http://www.ventanasystems.co.uk/forum/v ... f=2&t=4391
Units are important!
http://www.bbc.co.uk/news/magazine-27509559
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+sub37[forind0]*2+sub54[forind1]*1 ;
VGV->LEVEL[1181527+sub37[forind0]*2+sub54[forind1]*1] = MIN(1.000000
,MAX(0,XIDZ(0,VGV->LEVEL[1735727+sub37[forind0]*2+sub54[forind1]*1
]-VGV->LEVEL[1106931+sub37[forind0]*2+sub54[forind1]*1],1.000000*VGV->LEVEL[1765822
+sub37[forind0]*2+sub54[forind1]*1],2.000000))) ;
}
/* market tightness - regional */
for(forind0=0;forind0<14;forind0++)
for(forind1=0;forind1<2;forind1++)
{
VGV->lastpos = 1181527+sub37[forind0]*2+sub54[forind1]*1 ;
VGV->LEVEL[1181527+sub37[forind0]*2+sub54[forind1]*1] = MIN(1.000000
,MAX(0,XIDZ(0,VGV->LEVEL[1735727+sub37[forind0]*2+sub54[forind1]*1
]-VGV->LEVEL[1106931+sub37[forind0]*2+sub54[forind1]*1],1.000000*VGV->LEVEL[1765822
+sub37[forind0]*2+sub54[forind1]*1],2.000000))) ;
}
-
- Super Administrator
- Posts: 4590
- Joined: Wed Mar 05, 2003 3:10 am
Re: "Failed to compile the model (does not exist)"
In your model, go to the parameter "market tightness - regional", and paste the equation in here.
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
http://www.ventanasystems.co.uk/forum/v ... f=2&t=4391
Units are important!
http://www.bbc.co.uk/news/magazine-27509559
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 stated earlier.
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 stated earlier.
-
- Super Administrator
- Posts: 4590
- Joined: Wed Mar 05, 2003 3:10 am
Re: "Failed to compile the model (does not exist)"
If you simplify this, does the model compile?
eg,
aux1 = Reg Demand[Prdcr Region,Time setting]-imports for tightness calculation[Prdcr Region,Time setting]
aux 2 = xidz( aux1, Regional Available Capacity[Prdcr Region,Time setting],2 )
"market tightness - regional" = min ( 1 , max ( 0 , aux 2 ) )
It's really bad practice to embed things like this in an equation. What are the 0, 1 and 2 for example?
eg,
aux1 = Reg Demand[Prdcr Region,Time setting]-imports for tightness calculation[Prdcr Region,Time setting]
aux 2 = xidz( aux1, Regional Available Capacity[Prdcr Region,Time setting],2 )
"market tightness - regional" = min ( 1 , max ( 0 , aux 2 ) )
It's really bad practice to embed things like this in an equation. What are the 0, 1 and 2 for example?
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
http://www.ventanasystems.co.uk/forum/v ... f=2&t=4391
Units are important!
http://www.bbc.co.uk/news/magazine-27509559
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?
-
- Super Administrator
- Posts: 4590
- Joined: Wed Mar 05, 2003 3:10 am
Re: "Failed to compile the model (does not exist)"
You shouldn't notice any difference to 7 significant figures. You would need to share the model so we could test (you can email it to vensim@vensim.com).
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
http://www.ventanasystems.co.uk/forum/v ... f=2&t=4391
Units are important!
http://www.bbc.co.uk/news/magazine-27509559