public int accessMemVictimCache(int smpIndexFrom, int numCPUFrom, int smpIndexTo, int numCPUTo, int cacheIndex, int startTime){
		int n = getNumberSyncObjectsUntil(smpIndexTo);
		SMPNodeConfig smpNodeCfg=Configuration.getInstance().smpNodeConfigs.get(smpIndexTo);
		n+=1+smpNodeCfg.cacheConfigsPT.size();
		if(smpNodeCfg.hasRemoteCache()){
			n++;
		}
		for(int j = 0;j<smpNodeCfg.cacheConfigsPT.size();j++){
			if(smpNodeCfg.cacheConfigsPT.get(j).hasVictimCache()){
				n++;
			}
		}
		for(int i = 0;i<smpNodeCfg.cpuCachesToPT.size();i++){
			if(smpNodeCfg.cpuCachesToPT.get(i).hasExclusiveCache()){
				n++;
			}
		}
		for(int j = 0;j<smpNodeCfg.getIndexInMemCacheCfgs(numCPUTo, cacheIndex);j++){
			n++;
			if(smpNodeCfg.cacheConfigsMem.get(j).hasVictimCache()){
				n++;
			}
		}
		n++;
		return access(n,smpIndexFrom,numCPUFrom, startTime);
		
	}