1 Gig-VDF
1 Gig-VDF
Hey there,
I'm using Vensim for a round-based strategy game. The players have around 15 minutes to make their decisions, then the round ends and Vensim executes one timestep. The decisions by the players are made on a web-interface, these decisions are saved in a SQL-database, Vensim uses data from that database. I hope you were able to understand what I am trying to say.
The problem is that sometimes an unknown error occurs that makes the VDF-file that belongs to the actual run explode- more than 1 Gigabyte. As a result, of course, the simulation is aborted. I don't have any clue why that happens, that's why I want to ask wether an error like that ever occured before.
I'm not able to replicate the error as it doesn't occur frequently and the VDF-Files are too big to simply upload them. I opened the VDF with UltraEdit because it's to big for Editor or Notepad to be opened. As you may guess, the undless rows of 0s didn't really give me a clue.
Does anyone have an idea?
I'm using Vensim for a round-based strategy game. The players have around 15 minutes to make their decisions, then the round ends and Vensim executes one timestep. The decisions by the players are made on a web-interface, these decisions are saved in a SQL-database, Vensim uses data from that database. I hope you were able to understand what I am trying to say.
The problem is that sometimes an unknown error occurs that makes the VDF-file that belongs to the actual run explode- more than 1 Gigabyte. As a result, of course, the simulation is aborted. I don't have any clue why that happens, that's why I want to ask wether an error like that ever occured before.
I'm not able to replicate the error as it doesn't occur frequently and the VDF-Files are too big to simply upload them. I opened the VDF with UltraEdit because it's to big for Editor or Notepad to be opened. As you may guess, the undless rows of 0s didn't really give me a clue.
Does anyone have an idea?
Re: 1 Gig-VDF
Right, the vdf is binary, so you won't see much in there with an editor. They're numerically dense, so piles of 0s are a bad sign though.
It sounds like you're running this with ordinary Vensim, rather than the .dll? What version & platform? Are you importing the SQL data via text or ODBC?
It sounds like you're running this with ordinary Vensim, rather than the .dll? What version & platform? Are you importing the SQL data via text or ODBC?
/*
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
*/
-
- Super Administrator
- Posts: 4590
- Joined: Wed Mar 05, 2003 3:10 am
Re: 1 Gig-VDF
Check the value of FINAL TIME as well.
For a normal simulation, the results VDF file will be compressed. For games, they are not and so can get really large if FINAL TIME is set to a silly number (the file is created large enough to store all vals at all time steps).
Hope this makes sense.
Tony.
For a normal simulation, the results VDF file will be compressed. For games, they are not and so can get really large if FINAL TIME is set to a silly number (the file is created large enough to store all vals at all time steps).
Hope this makes sense.
Tony.
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: 1 Gig-VDF
If you can post the model, it's often helpful.
/*
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: 1 Gig-VDF
Jep, I don't use the dll, the version is DSS, 6.00 beta on a Win7SP1-system (further information required?).
I use ODBC to import data.
The FINALTIME is 12.
That's the model, do you need the vdi-and vdo-file, too?
Hope it's not a stupid, embarrasing mistake of myself.^^
I use ODBC to import data.
The FINALTIME is 12.
That's the model, do you need the vdi-and vdo-file, too?
Hope it's not a stupid, embarrasing mistake of myself.^^
- Attachments
-
- Ochse.mdl
- (18.18 KiB) Downloaded 191 times
-
- Super Administrator
- Posts: 4590
- Joined: Wed Mar 05, 2003 3:10 am
Re: 1 Gig-VDF
I cannot see anything in the model that causes concern.
What size is one of the error runs when you zip it? If small, can you upload it?
What size is one of the error runs when you zip it? If small, can you upload it?
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: 1 Gig-VDF
It would be interesting to see your vdi and vdo too - especially the first.
/*
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: 1 Gig-VDF
:DATA
:VARID ID
:TIME T
:VALUE Value
:SELECT GuestPay
:DATA
:VARID ID
:TIME T
:VALUE Value
:SELECT GuestCost
:DATA
:VARID ID
:TIME T
:VALUE Value
:SELECT RepairCosts
:DATA
:VARID ID
:TIME T
:VALUE Value
:SELECT GuestRoomSatisfaction
:DATA
:VARID ID
:TIME T
:VALUE Value
:SELECT GuestWorkLoad
:DATA
:VARID ID
:TIME T
:VALUE Value
:SELECT GuestsActive
:DATA
:VARID ID
:TIME T
:Value Sector
:SELECT StaffSectors
:DATA
:VARID ID
:TIME T
:VALUE Value
:SELECT InvestmentCosts
:DATA
:VARID ID
:TIME T
:VALUE Value
:SELECT BreweryConstantWaterPrice
:DATA
:VARID ID
:TIME T
:VALUE Value
:SELECT BreweryCosts
:DATA
:VARID ID
:TIME T
:VALUE Value
:SELECT BreweryAmmountProduced
:DATA
:VARID ID
:TIME T
:VALUE Value
:SELECT BreweryQuality
:DATA
:VARID ID
:TIME T
:VALUE Value
:SELECT MarketingCosts
:DATA
:VARID ID
:TIME T
:VALUE Value
:SELECT MarketingLocalEffects
:DATA
:VARID ID
:TIME T
:VALUE Value
:SELECT MarketingSupraRegionalEffects
:DATA
:VARID ID
:TIME T
:VALUE Value
:SELECT MarketingSustainabilityEffects
:DATA
:VARID ID
:VALUE Value
:TIME T
:SELECT BeergardenSeasonalEffect
:DATA
:VARID ID
:VALUE Value
:TIME T
:SELECT BeergardenConsumption
:DATA
:VARID ID
:VALUE Value
:TIME T
:SELECT Weather
:DATA
:VARID ID
:VALUE Value
:TIME T
:SELECT RestaurantConsumption
:DATA
:VARID ID
:VALUE Value
:TIME T
:SELECT RestaurantSeasonalEffect
:DATA
:VARID ID
:VALUE Value
:TIME T
:SELECT RepairCosts
:DATA
:VARID ID
:VALUE Value
:TIME T
:SELECT StaffWages
:DATA
:VARID ID
:VALUE Value
:TIME T
:SELECT GuesthouseRunningCosts
:DATA
:VARID ID
:VALUE Value
:TIME T
:SELECT InvestmentIncome
:DATA
:VARID ID
:VALUE Value
:TIME T
:SELECT BreweryIncome
:VARLOOKUP
:VARID ID
:VARNAME Variable
:SUB Subs
:SELECT VarLookupMarketing
:VARLOOKUP
:VARID ID
:VARNAME Variable
:SUB Subs
:SELECT VarLookupGuests
:VARLOOKUP
:VARID ID
:VARNAME Variable
:SUB Subs
:SELECT VarLookupStaff
:VARLOOKUP
:VARID ID
:VARNAME Variable
:SUB Subs
:SELECT VarLookupQualitys
:VARLOOKUP
:VARID ID
:VARNAME Variable
:SUB Subs
:SELECT VarLookupFinances
:VARLOOKUP
:VARID ID
:VARNAME Variable
:SUB Subs
:SELECT VarLookupBrewery
:VARLOOKUP
:VARID ID
:VARNAME Variable
:SUB Subs
:SELECT VarLookupMarketing
:VARLOOKUP
:VARID ID
:VARNAME Variable
:SUB Subs
:SELECT VarLookupBeergarden
:VARLOOKUP
:VARID ID
:VARNAME Variable
:SUB Subs
:SELECT VarLookupRestaurant
:VARID ID
:TIME T
:VALUE Value
:SELECT GuestPay
:DATA
:VARID ID
:TIME T
:VALUE Value
:SELECT GuestCost
:DATA
:VARID ID
:TIME T
:VALUE Value
:SELECT RepairCosts
:DATA
:VARID ID
:TIME T
:VALUE Value
:SELECT GuestRoomSatisfaction
:DATA
:VARID ID
:TIME T
:VALUE Value
:SELECT GuestWorkLoad
:DATA
:VARID ID
:TIME T
:VALUE Value
:SELECT GuestsActive
:DATA
:VARID ID
:TIME T
:Value Sector
:SELECT StaffSectors
:DATA
:VARID ID
:TIME T
:VALUE Value
:SELECT InvestmentCosts
:DATA
:VARID ID
:TIME T
:VALUE Value
:SELECT BreweryConstantWaterPrice
:DATA
:VARID ID
:TIME T
:VALUE Value
:SELECT BreweryCosts
:DATA
:VARID ID
:TIME T
:VALUE Value
:SELECT BreweryAmmountProduced
:DATA
:VARID ID
:TIME T
:VALUE Value
:SELECT BreweryQuality
:DATA
:VARID ID
:TIME T
:VALUE Value
:SELECT MarketingCosts
:DATA
:VARID ID
:TIME T
:VALUE Value
:SELECT MarketingLocalEffects
:DATA
:VARID ID
:TIME T
:VALUE Value
:SELECT MarketingSupraRegionalEffects
:DATA
:VARID ID
:TIME T
:VALUE Value
:SELECT MarketingSustainabilityEffects
:DATA
:VARID ID
:VALUE Value
:TIME T
:SELECT BeergardenSeasonalEffect
:DATA
:VARID ID
:VALUE Value
:TIME T
:SELECT BeergardenConsumption
:DATA
:VARID ID
:VALUE Value
:TIME T
:SELECT Weather
:DATA
:VARID ID
:VALUE Value
:TIME T
:SELECT RestaurantConsumption
:DATA
:VARID ID
:VALUE Value
:TIME T
:SELECT RestaurantSeasonalEffect
:DATA
:VARID ID
:VALUE Value
:TIME T
:SELECT RepairCosts
:DATA
:VARID ID
:VALUE Value
:TIME T
:SELECT StaffWages
:DATA
:VARID ID
:VALUE Value
:TIME T
:SELECT GuesthouseRunningCosts
:DATA
:VARID ID
:VALUE Value
:TIME T
:SELECT InvestmentIncome
:DATA
:VARID ID
:VALUE Value
:TIME T
:SELECT BreweryIncome
:VARLOOKUP
:VARID ID
:VARNAME Variable
:SUB Subs
:SELECT VarLookupMarketing
:VARLOOKUP
:VARID ID
:VARNAME Variable
:SUB Subs
:SELECT VarLookupGuests
:VARLOOKUP
:VARID ID
:VARNAME Variable
:SUB Subs
:SELECT VarLookupStaff
:VARLOOKUP
:VARID ID
:VARNAME Variable
:SUB Subs
:SELECT VarLookupQualitys
:VARLOOKUP
:VARID ID
:VARNAME Variable
:SUB Subs
:SELECT VarLookupFinances
:VARLOOKUP
:VARID ID
:VARNAME Variable
:SUB Subs
:SELECT VarLookupBrewery
:VARLOOKUP
:VARID ID
:VARNAME Variable
:SUB Subs
:SELECT VarLookupMarketing
:VARLOOKUP
:VARID ID
:VARNAME Variable
:SUB Subs
:SELECT VarLookupBeergarden
:VARLOOKUP
:VARID ID
:VARNAME Variable
:SUB Subs
:SELECT VarLookupRestaurant
Last edited by lingo on Thu Mar 21, 2013 4:49 pm, edited 1 time in total.
Re: 1 Gig-VDF
That's one of the error runs.
- Attachments
-
- 1203schmetterlingjahr2.zip
- (1.2 MiB) Downloaded 203 times
-
- Super Administrator
- Posts: 4590
- Joined: Wed Mar 05, 2003 3:10 am
Re: 1 Gig-VDF
It seems that final time has been corrupted somehow.
I'll try and set up an experiment here to see if I can reproduce the error. Are you able to email me (vensim@vensim.com) the SQL dump for the table that is read via ODBC?
I'll try and set up an experiment here to see if I can reproduce the error. Are you able to email me (vensim@vensim.com) the SQL dump for the table that is read via ODBC?
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
-
- Super Administrator
- Posts: 4590
- Joined: Wed Mar 05, 2003 3:10 am
Re: 1 Gig-VDF
Thanks for the SQL. I did try replying via email to say thanks, but got an "undelivered" message.
Tony.
Tony.
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
-
- Super Administrator
- Posts: 4590
- Joined: Wed Mar 05, 2003 3:10 am
Re: 1 Gig-VDF
I've got the model running now.
Is there any particular changes to the database that cause the large VDF?
And can you email me the output.vdo file, it may be that it has not finished writing to the database and that is causing the problem.
Tony.
Is there any particular changes to the database that cause the large VDF?
And can you email me the output.vdo file, it may be that it has not finished writing to the database and that is causing the problem.
Tony.
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: 1 Gig-VDF
Database is only changed by Vensim and the php-based website, but maybe that causes the problem. VDO in your Inbox.
-
- Super Administrator
- Posts: 4590
- Joined: Wed Mar 05, 2003 3:10 am
Re: 1 Gig-VDF
Thanks, I have it.
How many users do you have? I'll set up an experiment here.
My guess is that one copy of Vensim is read/writing at the same time to/from the database which is causing problems.
How many users do you have? I'll set up an experiment here.
My guess is that one copy of Vensim is read/writing at the same time to/from the database which is causing problems.
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: 1 Gig-VDF
At the moment, there's only one person who operates Vensim but the web-Interface reads and writes to the same database as Vensim does. Could that be it?
-
- Super Administrator
- Posts: 4590
- Joined: Wed Mar 05, 2003 3:10 am
Re: 1 Gig-VDF
I'm working on the assumption that it's reading/writing by Vensim at the same time that is causing problems. It's difficult to replicate though (but I am trying).
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
-
- Super Administrator
- Posts: 4590
- Joined: Wed Mar 05, 2003 3:10 am
Re: 1 Gig-VDF
ok, I've managed to replicate this by doing things too quickly (pressing the go button twice).
I'll see if I can produce a fix as it should be possible to wait until the database commands have finished before allowing a 2nd click.
Tony.
I'll see if I can produce a fix as it should be possible to wait until the database commands have finished before allowing a 2nd click.
Tony.
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: 1 Gig-VDF
Great, thanks a lot!