Skip to content

Instantly share code, notes, and snippets.

View kbenne's full-sized avatar

Kyle Benne kbenne

  • National Renewable Energy Laboratory
View GitHub Profile
==51053==ERROR: AddressSanitizer: stack-overflow on address 0x70000ead6fc0 (pc 0x00010ca9f467 bp 0x70000ead78f0 sp 0x70000ead6fc0 T1)
#0 0x10ca9f466 in ObjexxFCL::strip_whitespace(std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >&) string.functions.cc:320
#1 0x10c9ae8ea in ObjexxFCL::add_token(std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >&, std::__1::vector<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >, std::__1::allocator<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > > >&) Format.cc:1020
#2 0x10c9b3292 in ObjexxFCL::tokenize1(std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > const&) Format.cc:1053
#3 0x10c990966 in ObjexxFCL::FormatFactory::create(std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > const&, ObjexxFCL::Format*) Format.cc:1265
#4 0x10c98d788 in ObjexxFC
let myheader = readFile('/path/to/header.txt')
:args ./**/*.js
argdo call append(0,myheader) | update
require 'openstudio'
model = OpenStudio::Model::Model::load('broken.osm').get
zones = model.getThermalZones;
zones.each do |zone|
puts "#{zone.nameString}"
pl = zone.exhaustPortList
pl_objects = pl.modelObjects
require 'openstudio'
m = OpenStudio::Model::Model.load('15091_Proposed_edit_fixed.osm').get
idf = m.toIdfFile
plants = m.getPlantLoops
plants.each do |plant|
demand_splitter = plant.demandSplitter

OSC content

OS:Coil:Cooling:DX:MultiSpeed,
  {82c74f0f-e385-4a52-91b0-e7f22821b8e7}, !- Handle
  Coil Cooling DX Multi Speed 1,          !- Name
  ,                                       !- Availability Schedule
  ,                                       !- Air Inlet Node
  ,                                       !- Air Outlet Node
  ,                                       !- Condenser Air Inlet Node
* thread #1: tid = 0xaf48d, 0x00000001003a0c11 EmbeddedScripting`ruby_xmalloc(size=48) + 17 at gc.c:7424, queue = 'com.apple.main-thread', stop reason = EXC_BAD_ACCESS (code=1, address=0x440)
* frame #0: 0x00000001003a0c11 EmbeddedScripting`ruby_xmalloc(size=48) + 17 at gc.c:7424
frame #1: 0x0000000100460780 EmbeddedScripting`st_init_strcasetable [inlined] st_init_table_with_size(type=<unavailable>, size=<unavailable>) + 5 at st.c:216
frame #2: 0x000000010046077b EmbeddedScripting`st_init_strcasetable [inlined] st_init_table at st.c:237
frame #3: 0x000000010046077b EmbeddedScripting`st_init_strcasetable + 11 at st.c:267
frame #4: 0x0000000100372b2e EmbeddedScripting`rb_enc_init + 110 at encoding.c:579
frame #5: 0x0000000100373d75 EmbeddedScripting`rb_usascii_encoding + 21 at encoding.c:1281
frame #6: 0x0000000100480c67 EmbeddedScripting`rb_intern [inlined] rb_intern2(name=0x000000010053379d, len=4) + 5 at symbol.c:643
frame #7: 0x0000000100480c62 EmbeddedScripting`rb_intern(name=
'use strict';
openstudioApp.controller('SystemsCtrl', ['$scope', '$log', 'os', function ($scope, $log, os) {
var d3 = require('../node_modules/d3');
var nodes = [];
var links = [];
var compIdMap = {};