public static void analyse() {

		schedSystem = new SchedSystem();

		// CompositionalAnalyzer.PRM(p)
		// XmlReader.printXmlFile("partitions/partition1.xml");
		ArrayList<Partition> partitionList = XmlPartitionParser
				.parsePartitions();
		// CompositionalAnalyzer.PRM(al.get(0));
		for (Partition p : partitionList) {
			schedSystem.addPartition(p);
			// System.out.println(p.toString());
		}
		CartsParser.PartToCartsXml(schedSystem.getPartitions());
		CartsInterface.CartsAnalyse();

		if (!bestModel) {
			schedSystem.addModels(CartsParser.XmlExport(schedSystem));
		} else {
			schedSystem.addBestModel(CartsParser.XmlExport(schedSystem));
		}

		System.out.println(schedSystem.toString());
		for (File f : (new File(getOutput_dir())).listFiles()) {
			f.delete();
		}
		for (int i = 0; i < schedSystem.getModels().size(); i++) {
			String name = "input" + i;
			CheddarParser.createCheddarXml(schedSystem.getPartitions(),
					schedSystem.getModel(i), name);
		}
		// CheddarInterface.analyse();

	}