Agent-based approach for system identification and optimal control of high performance buildings