{"action":"created","issue":{"url":"https://api.github.com/repos/mars-sim/mars-sim/issues/135","repository_url":"https://api.github.com/repos/mars-sim/mars-sim","labels_url":"https://api.github.com/repos/mars-sim/mars-sim/issues/135/labels{/name}","comments_url":"https://api.github.com/repos/mars-sim/mars-sim/issues/135/comments","events_url":"https://api.github.com/repos/mars-sim/mars-sim/issues/135/events","html_url":"https://github.com/mars-sim/mars-sim/issues/135","id":381170017,"node_id":"MDU6SXNzdWUzODExNzAwMTc=","number":135,"title":"On what basis is default.sim saved ? ","user":{"login":"shirishag75","id":727626,"node_id":"MDQ6VXNlcjcyNzYyNg==","avatar_url":"https://avatars0.githubusercontent.com/u/727626?v=4","gravatar_id":"","url":"https://api.github.com/users/shirishag75","html_url":"https://github.com/shirishag75","followers_url":"https://api.github.com/users/shirishag75/followers","following_url":"https://api.github.com/users/shirishag75/following{/other_user}","gists_url":"https://api.github.com/users/shirishag75/gists{/gist_id}","starred_url":"https://api.github.com/users/shirishag75/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/shirishag75/subscriptions","organizations_url":"https://api.github.com/users/shirishag75/orgs","repos_url":"https://api.github.com/users/shirishag75/repos","events_url":"https://api.github.com/users/shirishag75/events{/privacy}","received_events_url":"https://api.github.com/users/shirishag75/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":2,"created_at":"2018-11-15T13:52:05Z","updated_at":"2018-11-15T21:01:51Z","closed_at":null,"author_association":"NONE","body":"I slowed the simulation speed to 1x and saw this - \r\n\r\n```\r\n~/games/mars-sim/mars-sim-headless/target$ java -jar mars-sim-headless-3.1.0-b2.jar load \r\nCommand: java -Djava.util.logging.config.file=logging.properties -cp .:*:jars/* org.mars_sim.headless.MarsProjectHeadless -Xms256m -Xmx1024m -load\r\nSLF4J: Failed to load class \"org.slf4j.impl.StaticLoggerBinder\".\r\nSLF4J: Defaulting to no-operation (NOP) logger implementation\r\nSLF4J: See http://www.slf4j.org/codes.html#StaticLoggerBinder for further details.\r\n2018-11-15T14:05:34.1 (Config) MarsProjectHeadless$SimulationTask : Starting Mars Simulation Project v3.1.0-b2 - Build 4549 - 64-bit 11.0.1 - 4 CPU threads\r\n2018-11-15T14:05:34.7 (Config) Simulation : Creating new simulation\r\n2018-11-15T14:05:35.1 (Config) MasterClock :    -------------------------------------------\r\n2018-11-15T14:05:35.1 (Config) MasterClock :        Adjusted Time Ratio (TR) : 64x\r\n2018-11-15T14:05:35.1 (Config) MasterClock :      Time between Updates (TBU) : 150.0 ms\r\n2018-11-15T14:05:35.1 (Config) MasterClock :          Ticks Per Second (TPS) : 6.67 Hz\r\n2018-11-15T14:05:35.1 (Config) MasterClock :    -------------------------------------------\r\n2018-11-15T14:05:36.7 (Config) Simulation : Loading and processing the saved sim. Please wait...\r\n2018-11-15T14:05:37.7 (Config) Simulation :  --------------------------------------------------------------------\r\n2018-11-15T14:05:37.7 (Config) Simulation :                       Saved Simulation                               \r\n2018-11-15T14:05:37.7 (Config) Simulation :  --------------------------------------------------------------------\r\n2018-11-15T14:05:37.7 (Config) Simulation :                    Filename : default.sim\r\n2018-11-15T14:05:37.7 (Config) Simulation :                        Path : /home/shirish/.mars-sim/saved/\r\n2018-11-15T14:05:37.7 (Config) Simulation :                        Size : 910.0 KB\r\n2018-11-15T14:05:37.7 (Config) Simulation :               Made in Build : 4549\r\n2018-11-15T14:05:37.7 (Config) Simulation :   Current Core Engine Build : 4549\r\n2018-11-15T14:05:38.4 (Config) Simulation :     Martian Date/Time Stamp : 0000-Adir-01:328.051\r\n2018-11-15T14:05:38.4 (Config) Simulation :  --------------------------------------------------------------------\r\n2018-11-15T14:05:38.4 (Config) Simulation :  Note : Both Builds are matched.\r\n2018-11-15T14:05:38.4 (Config) Simulation :   - - - - - - - - - Sol 1 (Cont') - - - - - - - - - - - \r\n2018-11-15T14:05:43.0 (Info) BuildingManager : [Alpha Base] Drift Wood has just been stowed inside Garage 1\r\n2018-11-15T14:20:38.4 (Config) MasterClock : The simulation is paused.\r\n2018-11-15T14:20:38.5 (Config) Simulation : Autosaving the simulation as default.sim.\r\nEncoder memory usage: 189370 KiB\r\nDecoder memory usage: 16488 KiB\r\n2018-11-15T14:20:43.8 (Config) Simulation : Done saving. The simulation resumes.\r\n\r\n```\r\n\r\nCan I/we be enlightened as to what makes default.sim save. In higher speeds I have seen it saves the .sim on the end of the day. Are there any other motivations or observations taken into account while making automatic saves ?\r\n\r\nI see at the lowest speed, most of the time is spent in saving the game without anything else happening at all, for instance - \r\n\r\n```\r\n2018-11-15T14:20:43.8 (Config) MasterClock : The simulation is unpaused.\r\n2018-11-15T14:30:35.3 (Info) BuildingManager : [Alpha Base] Drift Wood has just been stowed inside Garage 1\r\n2018-11-15T14:30:39.8 (Info) BuildingManager : [Alpha Base] Drift Wood has just been stowed inside Garage 1\r\n2018-11-15T14:31:02.0 (Info) BuildingManager : [Alpha Base] Drift Wood has just been stowed inside Garage 1\r\n2018-11-15T14:35:43.8 (Config) MasterClock : The simulation is paused.\r\n2018-11-15T14:35:43.8 (Config) Simulation : Autosaving the simulation as default.sim.\r\nEncoder memory usage: 189370 KiB\r\nDecoder memory usage: 16488 KiB\r\n2018-11-15T14:35:49.7 (Config) Simulation : Done saving. The simulation resumes.\r\n2018-11-15T14:35:49.7 (Config) MasterClock : The simulation is unpaused.\r\n2018-11-15T14:50:49.7 (Config) MasterClock : The simulation is paused.\r\n2018-11-15T14:50:49.7 (Config) Simulation : Autosaving the simulation as default.sim.\r\nEncoder memory usage: 189370 KiB\r\nDecoder memory usage: 16488 KiB\r\n2018-11-15T14:50:56.4 (Config) Simulation : Done saving. The simulation resumes.\r\n2018-11-15T14:50:56.4 (Config) MasterClock : The simulation is unpaused.\r\n2018-11-15T15:05:56.5 (Config) MasterClock : The simulation is paused.\r\n2018-11-15T15:05:56.5 (Config) Simulation : Autosaving the simulation as default.sim.\r\nEncoder memory usage: 189370 KiB\r\nDecoder memory usage: 16488 KiB\r\n2018-11-15T15:06:04.7 (Config) Simulation : Done saving. The simulation resumes.\r\n2018-11-15T15:06:04.7 (Config) MasterClock : The simulation is unpaused.\r\n2018-11-15T15:21:04.7 (Config) MasterClock : The simulation is paused.\r\n2018-11-15T15:21:04.7 (Config) Simulation : Autosaving the simulation as default.sim.\r\nEncoder memory usage: 189370 KiB\r\nDecoder memory usage: 16488 KiB\r\n2018-11-15T15:21:15.0 (Config) Simulation : Done saving. The simulation resumes.\r\n2018-11-15T15:21:15.0 (Config) MasterClock : The simulation is unpaused.\r\n2018-11-15T15:36:15.0 (Config) MasterClock : The simulation is paused.\r\n2018-11-15T15:36:15.0 (Config) Simulation : Autosaving the simulation as default.sim.\r\nEncoder memory usage: 189370 KiB\r\nDecoder memory usage: 16488 KiB\r\n2018-11-15T15:36:27.1 (Config) Simulation : Done saving. The simulation resumes.\r\n2018-11-15T15:36:27.1 (Config) MasterClock : The simulation is unpaused.\r\n2018-11-15T15:51:27.1 (Config) MasterClock : The simulation is paused.\r\n2018-11-15T15:51:27.1 (Config) Simulation : Autosaving the simulation as default.sim.\r\nEncoder memory usage: 189370 KiB\r\nDecoder memory usage: 16488 KiB\r\n2018-11-15T15:51:39.5 (Config) Simulation : Done saving. The simulation resumes.\r\n2018-11-15T15:51:39.5 (Config) MasterClock : The simulation is unpaused.\r\n2018-11-15T16:06:39.5 (Config) MasterClock : The simulation is paused.\r\n2018-11-15T16:06:39.5 (Config) Simulation : Autosaving the simulation as default.sim.\r\nEncoder memory usage: 189370 KiB\r\nDecoder memory usage: 16488 KiB\r\n2018-11-15T16:06:54.3 (Config) Simulation : Done saving. The simulation resumes.\r\n2018-11-15T16:06:54.3 (Config) MasterClock : The simulation is unpaused.\r\n2018-11-15T16:21:54.3 (Config) MasterClock : The simulation is paused.\r\n2018-11-15T16:21:54.3 (Config) Simulation : Autosaving the simulation as default.sim.\r\nEncoder memory usage: 189370 KiB\r\nDecoder memory usage: 16488 KiB\r\n2018-11-15T16:22:09.6 (Config) Simulation : Done saving. The simulation resumes.\r\n2018-11-15T16:22:09.6 (Config) MasterClock : The simulation is unpaused.\r\n2018-11-15T16:37:09.8 (Config) MasterClock : The simulation is paused.\r\n2018-11-15T16:37:09.8 (Config) Simulation : Autosaving the simulation as default.sim.\r\nEncoder memory usage: 189370 KiB\r\nDecoder memory usage: 16488 KiB\r\n2018-11-15T16:37:25.6 (Config) Simulation : Done saving. The simulation resumes.\r\n2018-11-15T16:37:25.6 (Config) MasterClock : The simulation is unpaused.\r\n2018-11-15T16:52:25.8 (Config) MasterClock : The simulation is paused.\r\n2018-11-15T16:52:25.8 (Config) Simulation : Autosaving the simulation as default.sim.\r\nEncoder memory usage: 189370 KiB\r\nDecoder memory usage: 16488 KiB\r\n2018-11-15T16:52:43.7 (Config) Simulation : Done saving. The simulation resumes.\r\n2018-11-15T16:52:43.7 (Config) MasterClock : The simulation is unpaused.\r\n2018-11-15T17:07:43.9 (Config) MasterClock : The simulation is paused.\r\n2018-11-15T17:07:43.9 (Config) Simulation : Autosaving the simulation as default.sim.\r\nEncoder memory usage: 189370 KiB\r\nDecoder memory usage: 16488 KiB\r\n2018-11-15T17:08:03.1 (Config) Simulation : Done saving. The simulation resumes.\r\n2018-11-15T17:08:03.1 (Config) MasterClock : The simulation is unpaused.\r\n2018-11-15T17:23:03.2 (Config) MasterClock : The simulation is paused.\r\n2018-11-15T17:23:03.2 (Config) Simulation : Autosaving the simulation as default.sim.\r\nEncoder memory usage: 189370 KiB\r\nDecoder memory usage: 16488 KiB\r\n2018-11-15T17:23:24.0 (Config) Simulation : Done saving. The simulation resumes.\r\n2018-11-15T17:23:24.0 (Config) MasterClock : The simulation is unpaused.\r\n2018-11-15T17:38:24.1 (Config) MasterClock : The simulation is paused.\r\n2018-11-15T17:38:24.1 (Config) Simulation : Autosaving the simulation as default.sim.\r\nEncoder memory usage: 189370 KiB\r\nDecoder memory usage: 16488 KiB\r\n2018-11-15T17:38:46.3 (Config) Simulation : Done saving. The simulation resumes.\r\n2018-11-15T17:38:46.3 (Config) MasterClock : The simulation is unpaused.\r\n2018-11-15T17:53:46.4 (Config) MasterClock : The simulation is paused.\r\n2018-11-15T17:53:46.4 (Config) Simulation : Autosaving the simulation as default.sim.\r\nEncoder memory usage: 189370 KiB\r\nDecoder memory usage: 16488 KiB\r\n2018-11-15T17:54:10.0 (Config) Simulation : Done saving. The simulation resumes.\r\n2018-11-15T17:54:10.0 (Config) MasterClock : The simulation is unpaused.\r\n2018-11-15T18:09:10.1 (Config) MasterClock : The simulation is paused.\r\n2018-11-15T18:09:10.1 (Config) Simulation : Autosaving the simulation as default.sim.\r\nEncoder memory usage: 189370 KiB\r\nDecoder memory usage: 16488 KiB\r\n2018-11-15T18:09:35.1 (Config) Simulation : Done saving. The simulation resumes.\r\n2018-11-15T18:09:35.1 (Config) MasterClock : The simulation is unpaused.\r\n2018-11-15T18:24:35.2 (Config) MasterClock : The simulation is paused.\r\n2018-11-15T18:24:35.2 (Config) Simulation : Autosaving the simulation as default.sim.\r\nEncoder memory usage: 189370 KiB\r\nDecoder memory usage: 16488 KiB\r\n2018-11-15T18:25:01.5 (Config) Simulation : Done saving. The simulation resumes.\r\n2018-11-15T18:25:01.5 (Config) MasterClock : The simulation is unpaused.\r\n2018-11-15T18:40:01.6 (Config) MasterClock : The simulation is paused.\r\n2018-11-15T18:40:01.6 (Config) Simulation : Autosaving the simulation as default.sim.\r\nEncoder memory usage: 189370 KiB\r\nDecoder memory usage: 16488 KiB\r\n2018-11-15T18:40:29.4 (Config) Simulation : Done saving. The simulation resumes.\r\n2018-11-15T18:40:29.4 (Config) MasterClock : The simulation is unpaused.\r\n2018-11-15T18:55:29.5 (Config) MasterClock : The simulation is paused.\r\n2018-11-15T18:55:29.5 (Config) Simulation : Autosaving the simulation as default.sim.\r\nEncoder memory usage: 189370 KiB\r\nDecoder memory usage: 16488 KiB\r\n2018-11-15T18:56:01.3 (Config) Simulation : Done saving. The simulation resumes.\r\n2018-11-15T18:56:01.3 (Config) MasterClock : The simulation is unpaused.\r\n2018-11-15T19:11:01.5 (Config) MasterClock : The simulation is paused.\r\n2018-11-15T19:11:01.5 (Config) Simulation : Autosaving the simulation as default.sim.\r\nEncoder memory usage: 189370 KiB\r\nDecoder memory usage: 16488 KiB\r\n```\r\n\r\nThis seems buggy. "},"comment":{"url":"https://api.github.com/repos/mars-sim/mars-sim/issues/comments/439188681","html_url":"https://github.com/mars-sim/mars-sim/issues/135#issuecomment-439188681","issue_url":"https://api.github.com/repos/mars-sim/mars-sim/issues/135","id":439188681,"node_id":"MDEyOklzc3VlQ29tbWVudDQzOTE4ODY4MQ==","user":{"login":"mokun","id":1168584,"node_id":"MDQ6VXNlcjExNjg1ODQ=","avatar_url":"https://avatars0.githubusercontent.com/u/1168584?v=4","gravatar_id":"","url":"https://api.github.com/users/mokun","html_url":"https://github.com/mokun","followers_url":"https://api.github.com/users/mokun/followers","following_url":"https://api.github.com/users/mokun/following{/other_user}","gists_url":"https://api.github.com/users/mokun/gists{/gist_id}","starred_url":"https://api.github.com/users/mokun/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mokun/subscriptions","organizations_url":"https://api.github.com/users/mokun/orgs","repos_url":"https://api.github.com/users/mokun/repos","events_url":"https://api.github.com/users/mokun/events{/privacy}","received_events_url":"https://api.github.com/users/mokun/received_events","type":"User","site_admin":false},"created_at":"2018-11-15T21:01:51Z","updated_at":"2018-11-15T21:01:51Z","author_association":"MEMBER","body":"You can change the log level to see more logging statement. \r\n\r\ne.g. Type \"log fine\" in MarsNet.\r\n\r\nLet me know any anomaly you see in your simulation. Thanks!"}}
{"actor":{"display_login":"mokun"}}