Assertion Fail for Strategy Generation

Calling modes with parameters -M NoNLinearSHA --int DormandPrince54 "infinity=100" --write-scheduler

causes the assertion in StrategyFile.cs, line 34 to fail.

Fix: In SimulationAnalysisEngine.cs line 1213 ff add restriction check and add error message if writing schedulers is not used in combination with LSS, learning or a given strategy

Possible future work: write schedulers also for if a ASAP or ALAP are used as strategies

Error Message: Simulating (finishing)...
Unhandled exception. System.ArgumentNullException: Value cannot be null. (Parameter 'path') at System.ArgumentNullException.Throw(String paramName) at System.IO.DirectoryInfo..ctor(String path) at Modest.Simulation.StrategyFile1.SortAndMergeSchedulerTraces(String folder, EntryHandler handleEntry, String experimentString, String propertyName, Nullable1 observableProjection, Boolean collectDiagnostics, OperationState operationState, LocationErrorHandler leh) at Modest.Simulation.StrategyFile1.WriteStrategiesToFile(FileInfo schedulerFile, Network1 network, CompiledPropertyConfiguration[] propertyConfigs, String experimentString, Nullable1 observableProjection, Boolean collectDiagnostics, OperationState operationState, LocationErrorHandler leh) at Modest.Simulation.SimulationAnalysisEngine.RunMaster[T](Object master, Object modelConfigObj, Object propertyConfigsObj, Int32 timeout, FileInfo cdfFile, Int32 cdfFileFormatValue, Stream schedulerCodeStream, FileInfo schedulerFile, FileInfo dtControlMetadataFile, String experimentString, Boolean collectDiagnostics, ILocation modelLocation, OperationState operationState, ComponentErrorHandler ceh) at invoke System.Object : System.Object : System.Object : System.Int32 : System.IO.FileInfo : System.Int32 : System.IO.Stream : System.IO.FileInfo : System.IO.FileInfo : System.String : System.Boolean : Modest.Modularity.ILocation : Modest.Modularity.OperationState : Modest.Modularity.ComponentErrorHandler : Modest.Modularity.AnalysisDataSet.GeneratedClass.DoInvoke(Object, Object[], MethodInfo) at Modest.DirectInvoker.InvokeDirect(MethodInfo method, Object instance, Object[] parameters) at Modest.Simulation.SimulationAnalysisEngine.Analyze(AnalysisParams analysisParameters, NSHAModel model, OperationState operationState, IErrorHandler errors) at Modest.Simulation.SimulationAnalysisEngine.Analyze(AnalysisParams analysisParameters, NSHAModel model, Int32 index, Boolean isLast, IExperiment[] modelParameters, OperationState operationState, IErrorHandler errors) at Modest.Modularity.AnalysisEngine2.Analyze(IParameterObject analysisParameters, IModel[] models, IExperiment[][] experiments, OperationState operationState, IErrorHandler errors) at Modest.Executable.Simulator.Run(IParameterObject parameterObj, Stopwatch time, IOutputHandler outputHandler, CancellationToken cancellationToken) Writing scheduler file ("Pmax_flooding_Slussen") for ...
Aborted (core dumped)