hongyuanjia/eplusr

Failed to run IMF files

hongyuanjia opened this issue · 0 comments

copy_eplus_example <- function(file) {
    path <- eplusr::path_eplus_example(9.6, file, strict = TRUE)
    dest <- normalizePath(file.path(tempdir(), basename(path)), mustWork = FALSE)
    file.copy(path, dest, overwrite = TRUE, copy.mode = TRUE, copy.date = TRUE)
    dest
}

path_imf <- copy_eplus_example("AbsorptionChiller_Macro.imf")
path_resources <- c(
    copy_eplus_example("HVAC3ZoneChillerSpec.imf"),
    copy_eplus_example("HVAC3ZoneGeometry.imf"),
    copy_eplus_example("HVAC3Zone-IntGains-Def.imf"),
    copy_eplus_example("HVAC3ZoneMat-Const.imf")
)
weather <- eplusr::path_eplus_weather(9.6, "USA_CO_Golden-NREL.724666_TMY3.epw")
res_imf <- eplusr::energyplus(path_imf, weather, tempdir(), echo = FALSE, resources = path_resources)
res_imf$run
#>            program exit_status          start_time            end_time
#> 1:         EPMacro           0 2022-12-04 22:36:27 2022-12-04 22:36:27
#> 2:   ExpandObjects           0 2022-12-04 22:36:27 2022-12-04 22:36:27
#> 3:        Basement                                                    
#> 4:            Slab                                                    
#> 5:      EnergyPlus -1073741515 2022-12-04 22:36:27 2022-12-04 22:36:27
#> 6:   convertESOMTR                                                    
#> 7: ReadVarsESO_MTR                                                    
#> 8: ReadVarsESO_ESO                                                    
#> 9:    HVAC_Diagram                                                    
#>                                                                                        stdout
#> 1:                                                                                           
#> 2: ExpandObjects Started.,No expanded file generated.,ExpandObjects Finished. Time:     0.016
#> 3:                                                                                           
#> 4:                                                                                           
#> 5:                                                                                           
#> 6:                                                                                           
#> 7:                                                                                           
#> 8:                                                                                           
#> 9:                                                                                           
#>    stderr
#> 1:       
#> 2:       
#> 3:       
#> 4:       
#> 5:       
#> 6:       
#> 7:       
#> 8:       
#> 9:

Created on 2022-12-04 with reprex v2.0.2