Skip to content

2026-11-19 Engineering Team #160

Open

Description

@joecastiglione

Agenda

Phase 12 planning

  • What should go into the first task orders? On Tuesday, Joe proposed three workstreams: 1.x performance improvements, 2.x design and prototyping, and the existing 1.x backlog.
  • 1.x performance. Which of Jan’s changes should we test for inclusion in 1.x first? Pick a reference model and agree on runtime, peak memory, and output checks. Do we need better profiling to choose the next bottleneck? Nov 12 engineering notes and benchmarks
  • 2.x prototype. Stefan proposed running trip destination choice in JAX against a full-population SANDAG pipeline. Is that the right first test? What baseline, staff time, and result would justify a second round? Moonshot workshop discussion
  • 1.x backlog and release testing. Which issues need a Phase 12 scope, and which can close under Phase 11? What Phase 11 budget remains available?

ActivitySim

  • Park-and-ride lot choice. The new chunking PR reduced peak memory from 186 to 145 GiB in the reported 2023 run, with unchanged model results. Runtime went from 37.1 to 38.0 minutes. Who can review it? Issue #1138 · PR #1139
  • Calibration and destination-choice memory. The calibration fixes and tests are in, including more reuse of core multiprocessing code. Ready for re-review? Any remaining merge blockers? Calibration #1107
  • Destination-choice memory. Jan’s rerun confirmed the runtime improvement without increasing memory. Any remaining merge blockers? Peak memory #1110
  • Phase 11 closeout. Any outstanding agency sign-off on explicit telecommute, or consolidated feedback Joe F. needs to finish the Application and Analysis Guide? Explicit telecommute #1126 · Guide #1086

Sharrow

  • SANDAG skim loading. Setting BLOSC_NTHREADS=1 brought setup down from 29.8 to 9.3 minutes, close to the 7.4-minute baseline. SANDAG’s Python 3.10 environment can’t test the OpenMatrix 0.4 PR. Who can benchmark it on a supported Python version? Issue #90 · PR #92
  • Merged 🥳 #89 Python 3.14 support

PopulationSim

Activity

  1. jpn-- commented on Dec 2, 2026

    @jpn--
    Member

    Meeting Overview

    Agenda

    The November 19, 2026 Engineering Team meeting covered Phase 11 closeout, testing for ActivitySim and Sharrow performance changes, and the first Phase 12 task orders. The team also discussed what a 2.x prototype should demonstrate and how agencies and consultants could compare alternatives.

    Participants

    Duration

    ~81 minutes

    Executive Summary

    The team identified three tests for the destination-choice memory PR before merge. TransLink will exercise park-and-ride, and full-scale SANDAG and MTC runs on Windows will measure the broader runtime and memory effects. The team agreed to finish review of the core calibration changes, submit the visualizer separately, and defer review of the PopulationSim performance PRs to Phase 12. For Phase 12, Jan gave a preliminary estimate of about 100 hours to prepare the main 1.x performance changes for review, while the agencies still need to allocate funding and define the first 2.x prototype.

    Meeting Notes

    Phase 11 closeout and engineering support

    • Jeff’s engineering-lead budget was exhausted, and his contract runs through November 30. With the November 26 meeting canceled for Thanksgiving, this was the last scheduled engineering meeting under his current contract.
    • RSG and WSP reported some Phase 11 capacity for closeout. Jan could review and close existing work but had no budget for new implementation. CS’s remaining balance was uncertain pending its latest invoice. Joe Castiglione will check with Joe Flood about the comments on the Application and Analysis Guide and what CS can finish. Guide PR #1086
    • The agencies still need to decide who will provide engineering leadership and general support in Phase 12. With six consultancies on the bench, Joe said the prior approach of paying everyone to attend meetings would be difficult to sustain. He also wanted to avoid relying on unpaid participation.

    Destination-choice memory and park-and-ride

    • TransLink’s 2053 return-to-office scenario exceeded the machine’s 256 GB memory limit. Bo traced the peak to a table join during destination-choice logsum calculations that include park-and-ride. His PR splits that join into chunks. In the 2023 comparison, peak memory fell from 186 to 145 GiB, runtime rose from 37.1 to 38.0 minutes, and model results matched. Issue #1138 · PR #1139
    • Jeff’s broader PR moves table joins inside the existing chunk loop across several components. His MTC profile showed that this removed sustained memory peaks in work location choice. Jan’s Windows rerun also showed that removing explicit working-set trimming improved runtime with essentially the same memory profile. The runtime cost of smaller chunks still varied by model step. Destination-choice memory PR #1110
    • The three proposed runs answer two questions. Bo will test whether the general fix resolves TransLink’s park-and-ride case and can replace his narrower PR. RSG’s SANDAG run and WSP’s MTC run will compare full-scale runtime and peak memory on Windows using the existing chunk settings. Neither example requires adding park-and-ride for that comparison.
    • Measuring peak memory across workers remains a gap on Windows. Jeff’s Linux benchmarking tool already generates memory profiles and posts comparisons to GitHub. Jan measures system memory externally on a quiet Windows machine and records a baseline. Sijia noted that Bo’s script needed adjustments for Boston’s multiprocessing configuration and model steps. David suggested integrating a version that reads those settings automatically.

    Calibration and explicit telecommute

    • David addressed Jan’s calibration review comments. Jan had one or two points left to check, including a possible inconsistency in the multiprocessing code. They agreed to finish review of the core PR and submit Sijia’s output visualizer separately. Calibration PR #1107
    • Calibration sometimes needs to return to an upstream model and run it several times. The core pipeline was designed for forward execution, so David kept the rerun logic in the calibration code while reusing existing multiprocessing functionality. A common pipeline that handles both cases remains a larger design question.
    • Joe Castiglione expected to finish his explicit telecommute comments by November 20. Agency sign-off was still pending. Explicit telecommute PR #1126

    Sharrow skim loading and Python support

    • SANDAG’s Python 3.10 production environment prevented it from testing the OpenMatrix 0.4 changes. It has a near-term workaround on its existing release. Setting BLOSC_NTHREADS=1 reduced reported skim setup time from 29.8 to 9.3 minutes, compared with a 7.4-minute baseline. Sharrow issue #90
    • The team discussed the security and dependency costs of restoring Python 3.10 support. Joe favored following up with SANDAG about upgrading. The support policy remained unchanged, and Jan offered to review the PR and benchmark the published SANDAG scripts on Windows. Sharrow PR #92

    PopulationSim and explicit error terms

    • The team agreed to defer review of Clint’s five PopulationSim performance PRs to Phase 12 so the remaining Phase 11 hours could go toward closeout. The contributions cover Numba balancers, household expansion, the OR-Tools integerizer, incidence tables, and checkpoint history.
    • David clarified the full-scale RNG benchmark. SANDAG’s disaggregate accessibility model took 55 minutes without explicit error terms (EET), 186 minutes with full EET and the original RNG, and 98 minutes with full EET and the improved RNG. That was a substantial gain in an RNG-intensive component, though drawing an error term for every alternative still carried a significant cost.
    • The RNG PR remains open with further work deferred. One reason to revisit it is location choice. Drawing explicit error terms for every zone could support a different approach to matching workers to jobs during shadow pricing and help address implausibly long commutes.

    Phase 12 priorities and 2.x prototyping

    • The team discussed three workstreams: 1.x performance improvements, the existing 1.x backlog, and 2.x design and prototyping. Joe saw a strong case for bringing Jan’s performance work into 1.x early. Jan estimated about 100 hours to organize the most important changes into testable PRs, excluding review. Joe suggested roughly doubling that allowance for review and contingencies. These were planning estimates. The agencies have yet to approve budgets or task orders.
    • Jeff used Traveler to illustrate a workable prototype scope. It loads and validates data, handles skims, and runs auto ownership, work location choice, and the tour mode choice logsums needed by work location. He built an equivalent ActivitySim subset to compare runtime and memory. A full-system speedup remains untested, and improvements to 1.x would change the comparison baseline.
    • Sumit proposed using saved ActivitySim inputs and outputs to test replacement components independently. Teams could start at the same model step, compare outputs bit for bit where appropriate, and explain differences before assembling an end-to-end system. David cited the RNG work as a precedent and suggested pairing consultants across firms. For a JAX experiment, he proposed measuring both utility calculations and the work required to prepare their inputs.
    • Sijia asked that prototypes also address how modelers define and interact with models, including alternatives to CSV utility specifications. Joe connected that to usability concerns in the partner survey. Stefan suggested evaluating existing tools such as Pandera for validation and Python-accessible Rust libraries such as Polars.
    • The group agreed to develop these ideas in the partners’ existing planning document and revisit them at the Tuesday meeting. The first 2.x experiment, evaluation criteria, and team assignments remain open.

    Action Items

    • Bo Wen — Run the TransLink park-and-ride scenario against ActivitySim PR #1110 and report the result on the PR. If it resolves the issue, close PR #1139.
    • RSG and WSP — Benchmark PR #1110 at scale on Windows with the current chunk settings. RSG will cover SANDAG, and Sijia was asked to cover MTC for WSP. Report elapsed time and peak memory before merge.
    • Jan Zill — Share the Windows memory-monitoring script, finish the calibration review by November 20, and review and benchmark Sharrow PR 2026-04-23 Engineering Team #92 on Windows.
    • Sijia Wang — Incorporate the remaining visualizer feedback and open a separate calibration visualizer PR.
    • Joe Castiglione — Finish explicit telecommute comments by November 20, follow up with Joe Flood on the guide and remaining CS budget, contact SANDAG about Python 3.10, and let Clint know when the team expects to review the PopulationSim PRs.
    • Sumit Bindra — Add the component-testing proposal to the shared Phase 12 document for follow-up at the Tuesday meeting.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    meeting

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions