First time here? Check out the Help page!
1 | initial version |
I would start by pruning ALL output variables from your model. Here is how you would use ruby the CLI/ruby bindings to load a model in the same directory called in.osm
and save it as in2.osm
after deleting all output variables.
path = 'in.osm'
vt = OpenStudio::OSVersion::VersionTranslator.new
m = vt.loadModel(path)
if m.empty?
raise "Cannot load model at #{path}"
end
m = m.get
i = 0
m.getOutputVariables.each do |o|
i += 1
o.remove
end
puts "Deleted #{i} output variables"
m.save('in2.osm', true)
Here is a one-liner via the CLI, in case you don't have ruby installed and setup for openstudio:
openstudio -e "vt = OpenStudio::OSVersion::VersionTranslator.new; m = vt.loadModel('in.osm').get; i = 0; m.getOutputVariables.each{|o| i += 1; o.remove}; puts \"Deleted #{i} output variables\"; m.save('in2.osm', true)"