Utils.assert(bottleneck==PartitionUtil.getMaxWork(partitions));
Utils.assert(bottleneck==PartitionUtil.getMaxWork(partitions), "bottleneck=" + bottleneck + " but PartitionUtil.getMaxWork(partitions)=" + PartitionUtil.getMaxWork(partitions));
    private StreamTransform calcPartitions(LinkedList partitions) {	// build stream config	DPConfig topConfig = buildStreamConfig();	// build up tables	int bottleneck = topConfig.get(numTiles);	//System.err.println("Found bottleneck work is " + bottleneck + ".  Tracing back...");	// expand config stubs that were shared for symmetry optimizations	expandSharedConfigs();		// build up list of partitions 	partitions.clear();	PartitionRecord curPartition = new PartitionRecord();	partitions.add(curPartition);	StreamTransform result = topConfig.traceback(partitions, curPartition, numTiles);	Utils.assert(bottleneck==PartitionUtil.getMaxWork(partitions));	return result;    }