From 3c428768059731780bdbde282a2c7dd04c6c9d75 Mon Sep 17 00:00:00 2001 From: Jose Daniel Lara Date: Fri, 3 May 2024 18:30:59 -0600 Subject: [PATCH] avoid errors unrelated to model build --- src/operation/operation_model_interface.jl | 2 +- src/simulation/simulation.jl | 3 ++- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/src/operation/operation_model_interface.jl b/src/operation/operation_model_interface.jl index 19b3732e6c..1eb0e8ecc3 100644 --- a/src/operation/operation_model_interface.jl +++ b/src/operation/operation_model_interface.jl @@ -111,7 +111,7 @@ function solve_impl!(model::OperationModel) model_name = get_name(model) ts = get_current_timestamp(model) output_dir = get_output_dir(model) - infeasible_opt_path = joinpath(output_dir, "infeasible_$(model_name)_$(ts).json") + infeasible_opt_path = joinpath(output_dir, "infeasible_$(model_name).json") @error("Serializing Infeasible Problem at $(infeasible_opt_path)") serialize_optimization_model(container, infeasible_opt_path) if !get_allow_fails(settings) diff --git a/src/simulation/simulation.jl b/src/simulation/simulation.jl index 55d5df88c0..f668e47be0 100644 --- a/src/simulation/simulation.jl +++ b/src/simulation/simulation.jl @@ -351,7 +351,8 @@ end function _build_decision_models!(sim::Simulation) TimerOutputs.@timeit BUILD_PROBLEMS_TIMER "Build Decision Problems" begin decision_models = get_decision_models(get_models(sim)) - Threads.@threads for model_n in 1:length(decision_models) + #TODO: Re-enable Threads.@threads with proper implementation of the timer. + for model_n in 1:length(decision_models) TimerOutputs.@timeit BUILD_PROBLEMS_TIMER "Problem $(get_name(decision_models[model_n]))" begin _build_single_model_for_simulation(decision_models[model_n], sim, model_n) end