private static Date initSDGcomputation(Config cfg) throws FileNotFoundException { if (cfg == null || !cfg.requiredFieldsSet()) { throw new IllegalArgumentException("Configuration is not valid: " + cfg); } File outputDir = new File(cfg.outputDir); if (!outputDir.exists()) { outputDir.mkdir(); } Log.setLogFile(cfg.logFile); if (cfg.logLevel != null) { Log.setMinLogLevel(cfg.logLevel); } Date date = new Date(); Log.info("Starting Analysis at " + date); boolean assertions = false; assert (assertions = true); Log.info("Assertions are turned " + (assertions ? "ON" : "OFF")); Log.info("Java Datamodel: " + System.getProperty("sun.arch.data.model") + "bit"); Runtime run = Runtime.getRuntime(); Log.info("Avaliable Processors: " + run.availableProcessors()); Log.info("Free Memory: " + run.freeMemory()); Log.info("Total Memory: " + run.totalMemory()); Log.info("Maximum Memory: " + run.maxMemory()); Log.info(Debug.getSettings()); Log.info("SDGFactory.getSDG started with: \n" + cfg); return date; }