>>> mobroute: Building testing/mobroute 0.8.4-r0 (using abuild 3.14.1-r3) started Tue, 19 Nov 2024 00:47:11 +0000 >>> mobroute: Validating /home/buildozer/aports/testing/mobroute/APKBUILD... >>> mobroute: Analyzing dependencies... >>> mobroute: Installing for build: build-base tzdata go sqlite-dev (1/6) Installing tzdata (2024b-r1) (2/6) Installing go (1.23.3-r0) (3/6) Installing sqlite (3.47.0-r0) (4/6) Installing sqlite-libs (3.47.0-r0) (5/6) Installing sqlite-dev (3.47.0-r0) (6/6) Installing .makedepends-mobroute (20241119.004712) Executing busybox-1.37.0-r7.trigger OK: 556 MiB in 111 packages >>> mobroute: Cleaning up srcdir >>> mobroute: Cleaning up pkgdir >>> mobroute: Cleaning up tmpdir >>> mobroute: Fetching https://distfiles.alpinelinux.org/distfiles/edge//mobroute-0.8.4.tar.gz % Total % Received % Xferd Average Speed Time Time Time Current Dload Upload Total Spent Left Speed 0 0 0 0 0 0 0 0 --:--:-- --:--:-- --:--:-- 0 0 0 0 0 0 0 0 0 --:--:-- --:--:-- --:--:-- 0 curl: (22) The requested URL returned error: 404 >>> mobroute: Fetching mobroute-0.8.4.tar.gz::https://git.sr.ht/~mil/mobroute/archive/v0.8.4.tar.gz % Total % Received % Xferd Average Speed Time Time Time Current Dload Upload Total Spent Left Speed 0 0 0 0 0 0 0 0 --:--:-- --:--:-- --:--:-- 0 0 0 0 0 0 0 0 0 --:--:-- --:--:-- --:--:-- 0 100 80790 0 80790 0 0 122k 0 --:--:-- --:--:-- --:--:-- 122k >>> mobroute: Fetching https://distfiles.alpinelinux.org/distfiles/edge//mobroute-0.8.4.tar.gz >>> mobroute: Checking sha512sums... mobroute-0.8.4.tar.gz: OK >>> mobroute: Unpacking /var/cache/distfiles/edge/mobroute-0.8.4.tar.gz... go: downloading git.sr.ht/~mil/mobsql v0.8.3 go: downloading github.com/go-playground/validator/v10 v10.21.0 go: downloading github.com/jmoiron/sqlx v1.4.0 go: downloading github.com/gabriel-vasile/mimetype v1.4.3 go: downloading golang.org/x/crypto v0.19.0 go: downloading golang.org/x/text v0.14.0 go: downloading github.com/go-playground/universal-translator v0.18.1 go: downloading github.com/leodido/go-urn v1.4.0 go: downloading github.com/mattn/go-sqlite3 v1.14.24 go: downloading github.com/go-playground/locales v0.14.1 go: downloading golang.org/x/sys v0.17.0 go: downloading golang.org/x/net v0.21.0 go: downloading gopkg.in/yaml.v3 v3.0.1 ? git.sr.ht/~mil/mobroute [no test files] ? git.sr.ht/~mil/mobroute/api/apioneshot [no test files] ? git.sr.ht/~mil/mobroute/api/apirtdatabase [no test files] ? git.sr.ht/~mil/mobroute/api/apirtdatabaseq [no test files] ? git.sr.ht/~mil/mobroute/api/apirtinit [no test files] ? git.sr.ht/~mil/mobroute/api/apirtroute [no test files] ? git.sr.ht/~mil/mobroute/api/apirtroute/calcwalk [no test files] ? git.sr.ht/~mil/mobroute/api/apirtroute/diagnosticst [no test files] ? git.sr.ht/~mil/mobroute/api/apirtroute/formatterdiagnostics [no test files] ? git.sr.ht/~mil/mobroute/api/apirtroute/formattergeojson [no test files] ? git.sr.ht/~mil/mobroute/api/apirtroute/formatterlegs [no test files] ? git.sr.ht/~mil/mobroute/api/apirtroute/formattermapurl [no test files] === RUN Test_ApiRouteYMLGTFS 2024/11/19 00:48:20 Generated mock for input (map[42:../../testhelper/mockgtfs/gtfs_sample_0.yml]): (gtfs zips: [/tmp/756080898.zip]) (mobdb csv: /tmp/mobroute_test_mobdb_2719854662.csv) 2024/11/19 00:48:20 SQLite system version (3.46.1); comparing to required version: 3.28.0 2024/11/19 00:48:20 Loading schema tables 2024/11/19 00:48:20 Execute statement: create table if not exists _mobsqltrack ('feed_id' int not null,'feed_id_pair' int,'tbl' text not null,'checksum' text not null,'n_rows' int not null,'timestamp' int not null,unique(feed_id,feed_id_pair,tbl)) 2024/11/19 00:48:20 Execute statement: create table if not exists _gtfssource_mdbcsv ('feed_id' int not null check(feed_id = -1),'data_type' text not null,'location.bounding_box.minimum_latitude' real,'location.bounding_box.minimum_longitude' real,'location.bounding_box.maximum_latitude' real,'location.bounding_box.maximum_longitude' real,'location.country_code' text,'location.subdivision_name' text,'location.municipality' text,'urls.latest' text,'urls.license' text,'mdb_source_id' int not null check(mdb_source_id >= 0),'name' text,'status' text,'provider' text not null,unique(mdb_source_id)) 2024/11/19 00:48:20 Execute statement: create table if not exists _gtfssource_custom ('customgtfs_feed_id' int not null check(customgtfs_feed_id < -1),'gtfs_uri' text not null,unique(customgtfs_feed_id)) 2024/11/19 00:48:20 Execute statement: create table if not exists agency ('feed_id' int not null,'agency_id' text,'agency_name' text not null,'agency_url' text not null,'agency_timezone' text not null,unique(feed_id,agency_id)) 2024/11/19 00:48:20 Execute statement: create table if not exists calendar ('feed_id' int not null,'service_id' text not null,'monday' int not null check(monday in (0,1)),'tuesday' int not null check(tuesday in (0,1)),'wednesday' int not null check(wednesday in (0,1)),'thursday' int not null check(thursday in (0,1)),'friday' int not null check(friday in (0,1)),'saturday' int not null check(saturday in (0,1)),'sunday' int not null check(sunday in (0,1)),'start_date' int not null,'end_date' int not null,unique(feed_id,service_id)) 2024/11/19 00:48:20 Execute statement: create table if not exists calendar_dates ('feed_id' int not null,'service_id' text not null,'date' int not null,'exception_type' int not null check(exception_type in (1,2))) 2024/11/19 00:48:20 Execute statement: create table if not exists stop_times ('feed_id' int not null,'trip_id' text not null,'arrival_time' int,'departure_time' int,'stop_id' text not null,'stop_sequence' int not null,'stop_headsign' text,'pickup_type' int,'drop_off_type' int,'continuous_drop_off' text,'timepoint' int check(timepoint in (0,1)),unique(feed_id,trip_id,stop_sequence)) 2024/11/19 00:48:20 Execute statement: create table if not exists stops ('feed_id' int not null,'stop_id' text not null,'stop_code' text,'stop_name' text check( ((location_type is null or location_type = 0 or location_type = 1 or location_type = 2) and stop_name is not null) or (location_type = 3 or location_type = 4) ),'stop_desc' text,'stop_lat' real check( ((location_type is null or location_type = 0 or location_type = 1 or location_type = 2) and stop_lat is not null) or (location_type = 3 or location_type = 4) ),'stop_lon' real check( ((location_type is null or location_type = 0 or location_type = 1 or location_type = 2) and stop_lon is not null) or (location_type = 3 or location_type = 4) ),'zone_id' text,'stop_url' text,'location_type' int check(location_type in (0,1,2,3,4)),'parent_station' text,'stop_timezone' text,'wheelchair_boarding' int check(wheelchair_boarding in (0,1,2)),'level_id' text,'platform_code' text,unique(feed_id,stop_id)) 2024/11/19 00:48:20 Execute statement: create table if not exists trips ('feed_id' int not null,'route_id' text not null,'service_id' text not null,'trip_id' text not null,'trip_headsign' text,'trip_short_name' text,'direction_id' int check(direction_id in (0,1)),'block_id' text,'shape_id' text,'wheelchair_accessible' text check(wheelchair_accessible in (0,1,2)),'bikes_allowed' int check(bikes_allowed in (0,1,2)),unique(feed_id,trip_id)) 2024/11/19 00:48:20 Execute statement: create table if not exists routes ('feed_id' int not null,'route_id' text not null,'agency_id' text,'route_short_name' text check(route_long_name is not null or route_short_name is not null),'route_long_name' text,'route_desc' text,'route_type' int,'route_url' text,'route_color' text,'route_text_color' text,'route_sort_order' text,'continuous_pickup' int check(continuous_pickup in (0,1,2,3)),'continuous_drop_off' int check(continuous_drop_off in (0,1,2,3)),unique(feed_id,route_id)) 2024/11/19 00:48:20 Execute statement: create table if not exists transfers ('feed_id' int not null,'from_stop_id' text not null,'to_stop_id' text not null,'transfer_type' int,'min_transfer_time' int) 2024/11/19 00:48:20 Execute statement: create table if not exists _ctconn ('feed_id' int not null,'conn_id' text not null,'trip_id' text not null,'service_id' text not null,'from_stop_id' text not null,'from_stop_idu' text not null,'from_stop_sidu' text not null,'from_stop_time' int not null,'from_stop_sequence' int not null,'to_stop_id' text not null,'to_stop_idu' text not null,'to_stop_sidu' text not null,'to_stop_time' int not null,'to_stop_sequence' int not null,unique(feed_id,conn_id)) 2024/11/19 00:48:20 Execute statement: create table if not exists _ctcaltoservice ('feed_id' int not null,'service_date' int not null,'service_id' text not null) 2024/11/19 00:48:20 Execute statement: create table if not exists _cttransfersgen ('feed_id' int not null,'feed_id_pair' int not null,'from_stop_id' text not null,'to_stop_id' text not null,'from_stop_idu' text not null,'to_stop_idu' text not null,'from_stop_sidu' text not null,'to_stop_sidu' text not null,'dist_km' real) 2024/11/19 00:48:20 Loading schema tables ok 2024/11/19 00:48:20 Loading schema indexes 2024/11/19 00:48:20 Create index idx_agency1_agency_timezone on agency as [agency_timezone] 2024/11/19 00:48:20 Created index idx_agency1_agency_timezone ok 2024/11/19 00:48:20 Create index idx_stop_times1_departure_time on stop_times as [departure_time] 2024/11/19 00:48:20 Created index idx_stop_times1_departure_time ok 2024/11/19 00:48:20 Create index idx_stop_times1_trip_id on stop_times as [trip_id] 2024/11/19 00:48:20 Created index idx_stop_times1_trip_id ok 2024/11/19 00:48:20 Create index idx_stops2_feed_id_stop_id on stops as [feed_id stop_id] 2024/11/19 00:48:20 Created index idx_stops2_feed_id_stop_id ok 2024/11/19 00:48:20 Create index idx_stops2_stop_lat_stop_lon on stops as [stop_lat stop_lon] 2024/11/19 00:48:20 Created index idx_stops2_stop_lat_stop_lon ok 2024/11/19 00:48:20 Create index idx_stops3_feed_id_parent_station_location_type on stops as [feed_id parent_station location_type] 2024/11/19 00:48:20 Created index idx_stops3_feed_id_parent_station_location_type ok 2024/11/19 00:48:20 Create index idx_transfers2_feed_id_from_stop_id on transfers as [feed_id from_stop_id] 2024/11/19 00:48:20 Created index idx_transfers2_feed_id_from_stop_id ok 2024/11/19 00:48:20 Create index idx_transfers2_feed_id_to_stop_id on transfers as [feed_id to_stop_id] 2024/11/19 00:48:20 Created index idx_transfers2_feed_id_to_stop_id ok 2024/11/19 00:48:20 Create index idx__ctconn3_feed_id_service_id_from_stop_time on _ctconn as [feed_id service_id from_stop_time] 2024/11/19 00:48:20 Created index idx__ctconn3_feed_id_service_id_from_stop_time ok 2024/11/19 00:48:20 Create index idx__ctconn3_feed_id_from_stop_sidu_from_stop_time on _ctconn as [feed_id from_stop_sidu from_stop_time] 2024/11/19 00:48:20 Created index idx__ctconn3_feed_id_from_stop_sidu_from_stop_time ok 2024/11/19 00:48:20 Create index idx__ctcaltoservice3_feed_id_service_id_service_date on _ctcaltoservice as [feed_id service_id service_date] 2024/11/19 00:48:20 Created index idx__ctcaltoservice3_feed_id_service_id_service_date ok 2024/11/19 00:48:20 Create index idx__ctcaltoservice2_feed_id_service_date on _ctcaltoservice as [feed_id service_date] 2024/11/19 00:48:20 Created index idx__ctcaltoservice2_feed_id_service_date ok 2024/11/19 00:48:20 Loading schema indexes ok 2024/11/19 00:48:20 Loading views ok 2024/11/19 00:48:20 Loaded view _vfeedsminmaxdates (bytes=251) 2024/11/19 00:48:20 Loaded view _vfeedsmetadata (bytes=3676) 2024/11/19 00:48:20 Loaded view _vstopparent (bytes=2600) 2024/11/19 00:48:20 Loaded view _vconn (bytes=1201) 2024/11/19 00:48:20 Loaded view _vconnverbose (bytes=1122) 2024/11/19 00:48:20 Loaded view _vcaltoservice (bytes=3110) 2024/11/19 00:48:20 Loaded view _vtransferstbl (bytes=933) 2024/11/19 00:48:20 Loaded view _vtransfersgen (bytes=1523) 2024/11/19 00:48:20 Loaded view _vtransfersimplicit (bytes=371) 2024/11/19 00:48:20 Loading views ok 2024/11/19 00:48:20 Importing table from //tmp/mobroute_test_mobdb_2719854662.csv (0.00MB) to table: _gtfssource_mdbcsv 2024/11/19 00:48:20 Last checksum vs current: / C_0M_4b41ffb8db3a30c6ccdd5f7b1a5a31d525b5c87e6c9d97d217a94571cacac7b3; import will occur 2024/11/19 00:48:20 Execute insert query: 2024/11/19 00:48:20 Insert query complete 2024/11/19 00:48:20 Imported 1 rows into _gtfssource_mdbcsv ok 2024/11/19 00:48:20 Imported table from //tmp/mobroute_test_mobdb_2719854662.csv to table: _gtfssource_mdbcsv ok --- PASS: Test_ApiRouteYMLGTFS (0.01s) PASS ok git.sr.ht/~mil/mobroute/api/apirtroute_test 0.009s ? git.sr.ht/~mil/mobroute/api/apirtschedule [no test files] ? git.sr.ht/~mil/mobroute/api/apirtstops [no test files] ? git.sr.ht/~mil/mobroute/cli [no test files] ? git.sr.ht/~mil/mobroute/csa [no test files] === RUN Test_CheapestArrivalDestination --- PASS: Test_CheapestArrivalDestination (0.00s) === RUN Test_ExecuteCSAMainLoop 2024/11/19 00:48:20 CSA Main Loop Begin 2024/11/19 00:48:20 CSA Main Loop Complete 2024/11/19 00:48:20 CSA Main Loop Begin 2024/11/19 00:48:20 CSA Main Loop Complete 2024/11/19 00:48:20 CSA Main Loop Begin 2024/11/19 00:48:20 CSA Main Loop Complete 2024/11/19 00:48:20 CSA Main Loop Begin 2024/11/19 00:48:20 CSA Main Loop Complete 2024/11/19 00:48:20 CSA Main Loop Begin 2024/11/19 00:48:20 CSA Main Loop Complete 2024/11/19 00:48:20 CSA Main Loop Begin 2024/11/19 00:48:20 CSA Main Loop Complete --- PASS: Test_ExecuteCSAMainLoop (0.00s) === RUN Test_TransferPossibleBetweenConnections --- PASS: Test_TransferPossibleBetweenConnections (0.00s) PASS ok git.sr.ht/~mil/mobroute/csa_test 0.001s ? git.sr.ht/~mil/mobroute/csa_test/csa_testhelper [no test files] ? git.sr.ht/~mil/mobroute/dbquery [no test files] === RUN Test_LoadConnections 2024/11/19 00:48:21 Generated mock for input (map[42:../testhelper/mockgtfs/gtfs_sample_0.yml]): (gtfs zips: [/tmp/1635990618.zip]) (mobdb csv: /tmp/mobroute_test_mobdb_3867102948.csv) 2024/11/19 00:48:21 SQLite system version (3.46.1); comparing to required version: 3.28.0 2024/11/19 00:48:21 Loading schema tables 2024/11/19 00:48:21 Execute statement: create table if not exists _mobsqltrack ('feed_id' int not null,'feed_id_pair' int,'tbl' text not null,'checksum' text not null,'n_rows' int not null,'timestamp' int not null,unique(feed_id,feed_id_pair,tbl)) 2024/11/19 00:48:21 Execute statement: create table if not exists _gtfssource_mdbcsv ('feed_id' int not null check(feed_id = -1),'data_type' text not null,'location.bounding_box.minimum_latitude' real,'location.bounding_box.minimum_longitude' real,'location.bounding_box.maximum_latitude' real,'location.bounding_box.maximum_longitude' real,'location.country_code' text,'location.subdivision_name' text,'location.municipality' text,'urls.latest' text,'urls.license' text,'mdb_source_id' int not null check(mdb_source_id >= 0),'name' text,'status' text,'provider' text not null,unique(mdb_source_id)) 2024/11/19 00:48:21 Execute statement: create table if not exists _gtfssource_custom ('customgtfs_feed_id' int not null check(customgtfs_feed_id < -1),'gtfs_uri' text not null,unique(customgtfs_feed_id)) 2024/11/19 00:48:21 Execute statement: create table if not exists agency ('feed_id' int not null,'agency_id' text,'agency_name' text not null,'agency_url' text not null,'agency_timezone' text not null,unique(feed_id,agency_id)) 2024/11/19 00:48:21 Execute statement: create table if not exists calendar ('feed_id' int not null,'service_id' text not null,'monday' int not null check(monday in (0,1)),'tuesday' int not null check(tuesday in (0,1)),'wednesday' int not null check(wednesday in (0,1)),'thursday' int not null check(thursday in (0,1)),'friday' int not null check(friday in (0,1)),'saturday' int not null check(saturday in (0,1)),'sunday' int not null check(sunday in (0,1)),'start_date' int not null,'end_date' int not null,unique(feed_id,service_id)) 2024/11/19 00:48:21 Execute statement: create table if not exists calendar_dates ('feed_id' int not null,'service_id' text not null,'date' int not null,'exception_type' int not null check(exception_type in (1,2))) 2024/11/19 00:48:21 Execute statement: create table if not exists stop_times ('feed_id' int not null,'trip_id' text not null,'arrival_time' int,'departure_time' int,'stop_id' text not null,'stop_sequence' int not null,'stop_headsign' text,'pickup_type' int,'drop_off_type' int,'continuous_drop_off' text,'timepoint' int check(timepoint in (0,1)),unique(feed_id,trip_id,stop_sequence)) 2024/11/19 00:48:21 Execute statement: create table if not exists stops ('feed_id' int not null,'stop_id' text not null,'stop_code' text,'stop_name' text check( ((location_type is null or location_type = 0 or location_type = 1 or location_type = 2) and stop_name is not null) or (location_type = 3 or location_type = 4) ),'stop_desc' text,'stop_lat' real check( ((location_type is null or location_type = 0 or location_type = 1 or location_type = 2) and stop_lat is not null) or (location_type = 3 or location_type = 4) ),'stop_lon' real check( ((location_type is null or location_type = 0 or location_type = 1 or location_type = 2) and stop_lon is not null) or (location_type = 3 or location_type = 4) ),'zone_id' text,'stop_url' text,'location_type' int check(location_type in (0,1,2,3,4)),'parent_station' text,'stop_timezone' text,'wheelchair_boarding' int check(wheelchair_boarding in (0,1,2)),'level_id' text,'platform_code' text,unique(feed_id,stop_id)) 2024/11/19 00:48:21 Execute statement: create table if not exists trips ('feed_id' int not null,'route_id' text not null,'service_id' text not null,'trip_id' text not null,'trip_headsign' text,'trip_short_name' text,'direction_id' int check(direction_id in (0,1)),'block_id' text,'shape_id' text,'wheelchair_accessible' text check(wheelchair_accessible in (0,1,2)),'bikes_allowed' int check(bikes_allowed in (0,1,2)),unique(feed_id,trip_id)) 2024/11/19 00:48:21 Execute statement: create table if not exists routes ('feed_id' int not null,'route_id' text not null,'agency_id' text,'route_short_name' text check(route_long_name is not null or route_short_name is not null),'route_long_name' text,'route_desc' text,'route_type' int,'route_url' text,'route_color' text,'route_text_color' text,'route_sort_order' text,'continuous_pickup' int check(continuous_pickup in (0,1,2,3)),'continuous_drop_off' int check(continuous_drop_off in (0,1,2,3)),unique(feed_id,route_id)) 2024/11/19 00:48:21 Execute statement: create table if not exists transfers ('feed_id' int not null,'from_stop_id' text not null,'to_stop_id' text not null,'transfer_type' int,'min_transfer_time' int) 2024/11/19 00:48:21 Execute statement: create table if not exists _ctconn ('feed_id' int not null,'conn_id' text not null,'trip_id' text not null,'service_id' text not null,'from_stop_id' text not null,'from_stop_idu' text not null,'from_stop_sidu' text not null,'from_stop_time' int not null,'from_stop_sequence' int not null,'to_stop_id' text not null,'to_stop_idu' text not null,'to_stop_sidu' text not null,'to_stop_time' int not null,'to_stop_sequence' int not null,unique(feed_id,conn_id)) 2024/11/19 00:48:21 Execute statement: create table if not exists _ctcaltoservice ('feed_id' int not null,'service_date' int not null,'service_id' text not null) 2024/11/19 00:48:21 Execute statement: create table if not exists _cttransfersgen ('feed_id' int not null,'feed_id_pair' int not null,'from_stop_id' text not null,'to_stop_id' text not null,'from_stop_idu' text not null,'to_stop_idu' text not null,'from_stop_sidu' text not null,'to_stop_sidu' text not null,'dist_km' real) 2024/11/19 00:48:21 Loading schema tables ok 2024/11/19 00:48:21 Loading schema indexes 2024/11/19 00:48:21 Create index idx_agency1_agency_timezone on agency as [agency_timezone] 2024/11/19 00:48:21 Created index idx_agency1_agency_timezone ok 2024/11/19 00:48:21 Create index idx_stop_times1_departure_time on stop_times as [departure_time] 2024/11/19 00:48:21 Created index idx_stop_times1_departure_time ok 2024/11/19 00:48:21 Create index idx_stop_times1_trip_id on stop_times as [trip_id] 2024/11/19 00:48:21 Created index idx_stop_times1_trip_id ok 2024/11/19 00:48:21 Create index idx_stops2_feed_id_stop_id on stops as [feed_id stop_id] 2024/11/19 00:48:21 Created index idx_stops2_feed_id_stop_id ok 2024/11/19 00:48:21 Create index idx_stops2_stop_lat_stop_lon on stops as [stop_lat stop_lon] 2024/11/19 00:48:21 Created index idx_stops2_stop_lat_stop_lon ok 2024/11/19 00:48:21 Create index idx_stops3_feed_id_parent_station_location_type on stops as [feed_id parent_station location_type] 2024/11/19 00:48:21 Created index idx_stops3_feed_id_parent_station_location_type ok 2024/11/19 00:48:21 Create index idx_transfers2_feed_id_from_stop_id on transfers as [feed_id from_stop_id] 2024/11/19 00:48:21 Created index idx_transfers2_feed_id_from_stop_id ok 2024/11/19 00:48:21 Create index idx_transfers2_feed_id_to_stop_id on transfers as [feed_id to_stop_id] 2024/11/19 00:48:21 Created index idx_transfers2_feed_id_to_stop_id ok 2024/11/19 00:48:21 Create index idx__ctconn3_feed_id_service_id_from_stop_time on _ctconn as [feed_id service_id from_stop_time] 2024/11/19 00:48:21 Created index idx__ctconn3_feed_id_service_id_from_stop_time ok 2024/11/19 00:48:21 Create index idx__ctconn3_feed_id_from_stop_sidu_from_stop_time on _ctconn as [feed_id from_stop_sidu from_stop_time] 2024/11/19 00:48:21 Created index idx__ctconn3_feed_id_from_stop_sidu_from_stop_time ok 2024/11/19 00:48:21 Create index idx__ctcaltoservice3_feed_id_service_id_service_date on _ctcaltoservice as [feed_id service_id service_date] 2024/11/19 00:48:21 Created index idx__ctcaltoservice3_feed_id_service_id_service_date ok 2024/11/19 00:48:21 Create index idx__ctcaltoservice2_feed_id_service_date on _ctcaltoservice as [feed_id service_date] 2024/11/19 00:48:21 Created index idx__ctcaltoservice2_feed_id_service_date ok 2024/11/19 00:48:21 Loading schema indexes ok 2024/11/19 00:48:21 Loading views ok 2024/11/19 00:48:21 Loaded view _vfeedsminmaxdates (bytes=251) 2024/11/19 00:48:21 Loaded view _vfeedsmetadata (bytes=3676) 2024/11/19 00:48:21 Loaded view _vstopparent (bytes=2600) 2024/11/19 00:48:21 Loaded view _vconn (bytes=1201) 2024/11/19 00:48:21 Loaded view _vconnverbose (bytes=1122) 2024/11/19 00:48:21 Loaded view _vcaltoservice (bytes=3110) 2024/11/19 00:48:21 Loaded view _vtransferstbl (bytes=933) 2024/11/19 00:48:21 Loaded view _vtransfersgen (bytes=1523) 2024/11/19 00:48:21 Loaded view _vtransfersimplicit (bytes=371) 2024/11/19 00:48:21 Loading views ok 2024/11/19 00:48:21 Importing table from //tmp/mobroute_test_mobdb_3867102948.csv (0.00MB) to table: _gtfssource_mdbcsv 2024/11/19 00:48:21 Last checksum vs current: / C_0M_d6710ed0fa18921193c7759cf7ecbc99727e914e1f41be37f73fe4995acb31e4; import will occur 2024/11/19 00:48:21 Execute insert query: 2024/11/19 00:48:21 Insert query complete 2024/11/19 00:48:21 Imported 1 rows into _gtfssource_mdbcsv ok 2024/11/19 00:48:21 Imported table from //tmp/mobroute_test_mobdb_3867102948.csv to table: _gtfssource_mdbcsv ok 2024/11/19 00:48:21 Running RTDatabase against input: {"feed_ids":[42],"op":"load"} 2024/11/19 00:48:21 Running Load against 1 feeds 2024/11/19 00:48:21 Loading GTFS feed 42 (1 of 1) 2024/11/19 00:48:21 Loading /tmp/1635990618.zip to DB with GTFS feed: 42 2024/11/19 00:48:21 Loaded GTFS Archive /tmp/1635990618.zip to temporary directory: /tmp/mobroute_tempdir2091150759 2024/11/19 00:48:21 Loading table: agency 2024/11/19 00:48:21 Importing table from /tmp/mobroute_tempdir2091150759/agency.txt (0.00MB) to table: agency 2024/11/19 00:48:21 Last checksum vs current: / C_0M_c15705f0e743a50086d3c871e24b6165b3b4d723a3f96445f676c4216a2fcd14; import will occur 2024/11/19 00:48:21 Execute insert query: 2024/11/19 00:48:21 Insert query complete 2024/11/19 00:48:21 Imported 1 rows into agency ok 2024/11/19 00:48:21 Imported table from /tmp/mobroute_tempdir2091150759/agency.txt to table: agency ok 2024/11/19 00:48:21 Loading table: agency complete 2024/11/19 00:48:21 Loading table: calendar 2024/11/19 00:48:21 Importing table from /tmp/mobroute_tempdir2091150759/calendar.txt (0.00MB) to table: calendar 2024/11/19 00:48:21 Last checksum vs current: / C_0M_124e46e20a21debc5240cba81ffd1f420ad3546f91373ae55886e911b19b2608; import will occur 2024/11/19 00:48:21 Execute insert query: 2024/11/19 00:48:21 Insert query complete 2024/11/19 00:48:21 Imported 2 rows into calendar ok 2024/11/19 00:48:21 Imported table from /tmp/mobroute_tempdir2091150759/calendar.txt to table: calendar ok 2024/11/19 00:48:21 Loading table: calendar complete 2024/11/19 00:48:21 Loading table: calendar_dates 2024/11/19 00:48:21 Importing table from /tmp/mobroute_tempdir2091150759/calendar_dates.txt (0.00MB) to table: calendar_dates 2024/11/19 00:48:21 Skipped import for non-existant non-required file: /tmp/mobroute_tempdir2091150759/calendar_dates.txt 2024/11/19 00:48:21 Loading table: calendar_dates complete 2024/11/19 00:48:21 Loading table: stop_times 2024/11/19 00:48:21 Importing table from /tmp/mobroute_tempdir2091150759/stop_times.txt (0.00MB) to table: stop_times 2024/11/19 00:48:21 Last checksum vs current: / C_0M_c720fd568d7d6154f442f16b61c73437ba7452ed091d91c002b4f384d60b36c6; import will occur 2024/11/19 00:48:21 Execute insert query: 2024/11/19 00:48:21 Insert query complete 2024/11/19 00:48:21 Imported 9 rows into stop_times ok 2024/11/19 00:48:21 Imported table from /tmp/mobroute_tempdir2091150759/stop_times.txt to table: stop_times ok 2024/11/19 00:48:21 Loading table: stop_times complete 2024/11/19 00:48:21 Loading table: stops 2024/11/19 00:48:21 Importing table from /tmp/mobroute_tempdir2091150759/stops.txt (0.00MB) to table: stops 2024/11/19 00:48:21 Last checksum vs current: / C_0M_1e4481e4464525fdf1ea0305fca00f2c9d379749fff7d64a0cd7ffa5175af899; import will occur 2024/11/19 00:48:21 Execute insert query: 2024/11/19 00:48:21 Insert query complete 2024/11/19 00:48:21 Imported 4 rows into stops ok 2024/11/19 00:48:21 Imported table from /tmp/mobroute_tempdir2091150759/stops.txt to table: stops ok 2024/11/19 00:48:21 Loading table: stops complete 2024/11/19 00:48:21 Loading table: trips 2024/11/19 00:48:21 Importing table from /tmp/mobroute_tempdir2091150759/trips.txt (0.00MB) to table: trips 2024/11/19 00:48:21 Last checksum vs current: / C_0M_0220e37a7822e751eaa95f847f72fd94eb66c922e5a43f58f2bc059b96efdce7; import will occur 2024/11/19 00:48:21 Execute insert query: 2024/11/19 00:48:21 Insert query complete 2024/11/19 00:48:21 Imported 4 rows into trips ok 2024/11/19 00:48:21 Imported table from /tmp/mobroute_tempdir2091150759/trips.txt to table: trips ok 2024/11/19 00:48:21 Loading table: trips complete 2024/11/19 00:48:21 Loading table: routes 2024/11/19 00:48:21 Importing table from /tmp/mobroute_tempdir2091150759/routes.txt (0.00MB) to table: routes 2024/11/19 00:48:21 Last checksum vs current: / C_0M_adc89b7b4e4f8b88e68bf10397af1fc696e623cfec1d5ebd84a57dfac7953136; import will occur 2024/11/19 00:48:21 Execute insert query: 2024/11/19 00:48:21 Insert query complete 2024/11/19 00:48:21 Imported 2 rows into routes ok 2024/11/19 00:48:21 Imported table from /tmp/mobroute_tempdir2091150759/routes.txt to table: routes ok 2024/11/19 00:48:21 Loading table: routes complete 2024/11/19 00:48:21 Loading table: transfers 2024/11/19 00:48:21 Importing table from /tmp/mobroute_tempdir2091150759/transfers.txt (0.00MB) to table: transfers 2024/11/19 00:48:21 Skipped import for non-existant non-required file: /tmp/mobroute_tempdir2091150759/transfers.txt 2024/11/19 00:48:21 Loading table: transfers complete 2024/11/19 00:48:21 Loaded /tmp/1635990618.zip to DB with GTFS feed: 42 ok 2024/11/19 00:48:21 Loading GTFS feed 42 ok; used cache for URL download (true) 2024/11/19 00:48:21 Running Load against 1 feeds ok 2024/11/19 00:48:21 Running RTDatabase against input: {"feed_ids":[42],"op":"compute"} 2024/11/19 00:48:21 Running Compute against 1 feeds 2024/11/19 00:48:21 Computed table _ctconn for feed (42 ) out of date - updating ('' vs '42:routes:C_0M_adc89b7b4e4f8b88e68bf10397af1fc696e623cfec1d5ebd84a57dfac7953136,42:stop_times:C_0M_c720fd568d7d6154f442f16b61c73437ba7452ed091d91c002b4f384d60b36c6,42:stops:C_0M_1e4481e4464525fdf1ea0305fca00f2c9d379749fff7d64a0cd7ffa5175af899,42:trips:C_0M_0220e37a7822e751eaa95f847f72fd94eb66c922e5a43f58f2bc059b96efdce7') 2024/11/19 00:48:21 Computed table _ctcaltoservice for feed (42 ) out of date - updating ('' vs '42:stops:C_0M_1e4481e4464525fdf1ea0305fca00f2c9d379749fff7d64a0cd7ffa5175af899') 2024/11/19 00:48:21 Computed table _cttransfersgen for feed (42 0xc00045d528) out of date - updating ('' vs '42:stops:C_0M_1e4481e4464525fdf1ea0305fca00f2c9d379749fff7d64a0cd7ffa5175af899') 2024/11/19 00:48:21 Running Compute against 1 feeds ok 2024/11/19 00:48:21 Loading with inputs as (select ? as yyyymmdddate, ? as seconds_from, ? as seconds_to), tztodelta as (select ? as timezone, ? as seconds), feedidtotzutcdelta as ( -- Note: re distinct, per GTFS spec; if there is >1 agency in agency.txt -- all timezones must be equal; thus 1 feed_id always = 1 timezone -- irregardless of # of agenc(ies) select distinct agency.feed_id, tztodelta.seconds as tzutcdeltasecs from agency join tztodelta on agency.agency_timezone = tztodelta.timezone ), timetable as ( select cts.service_date, -- E.g. normalize from/to stop times in two ways: -- 1) normalize to the input date YYYYMMDD, so if a time departs at 02:00 on monday the following day; -- converted look like 26:00 on the previous day (since all times relative to input YYYYMMDD) -- 2) add the agency's associated timezone UTC delta value so that routing across agencies -- using different timezones functions correctly. All outuput values thus in UTC time -- (cts.service_date - inputs.yyyymmdddate) * (60 * 60 * 24) + con.from_stop_time + tz.tzutcdeltasecs as from_stop_drutctime, (cts.service_date - inputs.yyyymmdddate) * (60 * 60 * 24) + con.to_stop_time + tz.tzutcdeltasecs as to_stop_drutctime, con.* from _ctcaltoservice cts join inputs on ( -- E.g. optimization so we don't have to calculate {from,to}_stop_drutctime for *all* -- timetable entries (should handle both tz shifts & next day for schedule logic) cts.service_date between inputs.yyyymmdddate - 1 and inputs.yyyymmdddate + 1 ) and cts.feed_id in (?) join _ctconn con on cts.service_id = con.service_id and cts.feed_id = con.feed_id and from_stop_drutctime between seconds_from and seconds_to join feedidtotzutcdelta tz on con.feed_id = tz.feed_id order by from_stop_drutctime asc, con.from_stop_sequence asc ) select conn_id,trip_id,from_stop_sequence,from_stop_sidu,from_stop_drutctime,to_stop_sequence,to_stop_sidu,to_stop_drutctime from timetable where 1 = 1 ([20240304 25200 28800 America/New_York -18000 42]) to memory 2024/11/19 00:48:21 Loaded with inputs as (select ? as yyyymmdddate, ? as seconds_from, ? as seconds_to), tztodelta as (select ? as timezone, ? as seconds), feedidtotzutcdelta as ( -- Note: re distinct, per GTFS spec; if there is >1 agency in agency.txt -- all timezones must be equal; thus 1 feed_id always = 1 timezone -- irregardless of # of agenc(ies) select distinct agency.feed_id, tztodelta.seconds as tzutcdeltasecs from agency join tztodelta on agency.agency_timezone = tztodelta.timezone ), timetable as ( select cts.service_date, -- E.g. normalize from/to stop times in two ways: -- 1) normalize to the input date YYYYMMDD, so if a time departs at 02:00 on monday the following day; -- converted look like 26:00 on the previous day (since all times relative to input YYYYMMDD) -- 2) add the agency's associated timezone UTC delta value so that routing across agencies -- using different timezones functions correctly. All outuput values thus in UTC time -- (cts.service_date - inputs.yyyymmdddate) * (60 * 60 * 24) + con.from_stop_time + tz.tzutcdeltasecs as from_stop_drutctime, (cts.service_date - inputs.yyyymmdddate) * (60 * 60 * 24) + con.to_stop_time + tz.tzutcdeltasecs as to_stop_drutctime, con.* from _ctcaltoservice cts join inputs on ( -- E.g. optimization so we don't have to calculate {from,to}_stop_drutctime for *all* -- timetable entries (should handle both tz shifts & next day for schedule logic) cts.service_date between inputs.yyyymmdddate - 1 and inputs.yyyymmdddate + 1 ) and cts.feed_id in (?) join _ctconn con on cts.service_id = con.service_id and cts.feed_id = con.feed_id and from_stop_drutctime between seconds_from and seconds_to join feedidtotzutcdelta tz on con.feed_id = tz.feed_id order by from_stop_drutctime asc, con.from_stop_sequence asc ) select conn_id,trip_id,from_stop_sequence,from_stop_sidu,from_stop_drutctime,to_stop_sequence,to_stop_sidu,to_stop_drutctime from timetable where 1 = 1 ([20240304 25200 28800 America/New_York -18000 42]) to memory ok (len=2) 2024/11/19 00:48:21 Generated mock for input (map[42:../testhelper/mockgtfs/gtfs_sample_0.yml]): (gtfs zips: [/tmp/3931493546.zip]) (mobdb csv: /tmp/mobroute_test_mobdb_1292049521.csv) 2024/11/19 00:48:21 SQLite system version (3.46.1); comparing to required version: 3.28.0 2024/11/19 00:48:21 Loading schema tables 2024/11/19 00:48:21 Execute statement: create table if not exists _mobsqltrack ('feed_id' int not null,'feed_id_pair' int,'tbl' text not null,'checksum' text not null,'n_rows' int not null,'timestamp' int not null,unique(feed_id,feed_id_pair,tbl)) 2024/11/19 00:48:21 Execute statement: create table if not exists _gtfssource_mdbcsv ('feed_id' int not null check(feed_id = -1),'data_type' text not null,'location.bounding_box.minimum_latitude' real,'location.bounding_box.minimum_longitude' real,'location.bounding_box.maximum_latitude' real,'location.bounding_box.maximum_longitude' real,'location.country_code' text,'location.subdivision_name' text,'location.municipality' text,'urls.latest' text,'urls.license' text,'mdb_source_id' int not null check(mdb_source_id >= 0),'name' text,'status' text,'provider' text not null,unique(mdb_source_id)) 2024/11/19 00:48:21 Execute statement: create table if not exists _gtfssource_custom ('customgtfs_feed_id' int not null check(customgtfs_feed_id < -1),'gtfs_uri' text not null,unique(customgtfs_feed_id)) 2024/11/19 00:48:21 Execute statement: create table if not exists agency ('feed_id' int not null,'agency_id' text,'agency_name' text not null,'agency_url' text not null,'agency_timezone' text not null,unique(feed_id,agency_id)) 2024/11/19 00:48:21 Execute statement: create table if not exists calendar ('feed_id' int not null,'service_id' text not null,'monday' int not null check(monday in (0,1)),'tuesday' int not null check(tuesday in (0,1)),'wednesday' int not null check(wednesday in (0,1)),'thursday' int not null check(thursday in (0,1)),'friday' int not null check(friday in (0,1)),'saturday' int not null check(saturday in (0,1)),'sunday' int not null check(sunday in (0,1)),'start_date' int not null,'end_date' int not null,unique(feed_id,service_id)) 2024/11/19 00:48:21 Execute statement: create table if not exists calendar_dates ('feed_id' int not null,'service_id' text not null,'date' int not null,'exception_type' int not null check(exception_type in (1,2))) 2024/11/19 00:48:21 Execute statement: create table if not exists stop_times ('feed_id' int not null,'trip_id' text not null,'arrival_time' int,'departure_time' int,'stop_id' text not null,'stop_sequence' int not null,'stop_headsign' text,'pickup_type' int,'drop_off_type' int,'continuous_drop_off' text,'timepoint' int check(timepoint in (0,1)),unique(feed_id,trip_id,stop_sequence)) 2024/11/19 00:48:21 Execute statement: create table if not exists stops ('feed_id' int not null,'stop_id' text not null,'stop_code' text,'stop_name' text check( ((location_type is null or location_type = 0 or location_type = 1 or location_type = 2) and stop_name is not null) or (location_type = 3 or location_type = 4) ),'stop_desc' text,'stop_lat' real check( ((location_type is null or location_type = 0 or location_type = 1 or location_type = 2) and stop_lat is not null) or (location_type = 3 or location_type = 4) ),'stop_lon' real check( ((location_type is null or location_type = 0 or location_type = 1 or location_type = 2) and stop_lon is not null) or (location_type = 3 or location_type = 4) ),'zone_id' text,'stop_url' text,'location_type' int check(location_type in (0,1,2,3,4)),'parent_station' text,'stop_timezone' text,'wheelchair_boarding' int check(wheelchair_boarding in (0,1,2)),'level_id' text,'platform_code' text,unique(feed_id,stop_id)) 2024/11/19 00:48:21 Execute statement: create table if not exists trips ('feed_id' int not null,'route_id' text not null,'service_id' text not null,'trip_id' text not null,'trip_headsign' text,'trip_short_name' text,'direction_id' int check(direction_id in (0,1)),'block_id' text,'shape_id' text,'wheelchair_accessible' text check(wheelchair_accessible in (0,1,2)),'bikes_allowed' int check(bikes_allowed in (0,1,2)),unique(feed_id,trip_id)) 2024/11/19 00:48:21 Execute statement: create table if not exists routes ('feed_id' int not null,'route_id' text not null,'agency_id' text,'route_short_name' text check(route_long_name is not null or route_short_name is not null),'route_long_name' text,'route_desc' text,'route_type' int,'route_url' text,'route_color' text,'route_text_color' text,'route_sort_order' text,'continuous_pickup' int check(continuous_pickup in (0,1,2,3)),'continuous_drop_off' int check(continuous_drop_off in (0,1,2,3)),unique(feed_id,route_id)) 2024/11/19 00:48:21 Execute statement: create table if not exists transfers ('feed_id' int not null,'from_stop_id' text not null,'to_stop_id' text not null,'transfer_type' int,'min_transfer_time' int) 2024/11/19 00:48:21 Execute statement: create table if not exists _ctconn ('feed_id' int not null,'conn_id' text not null,'trip_id' text not null,'service_id' text not null,'from_stop_id' text not null,'from_stop_idu' text not null,'from_stop_sidu' text not null,'from_stop_time' int not null,'from_stop_sequence' int not null,'to_stop_id' text not null,'to_stop_idu' text not null,'to_stop_sidu' text not null,'to_stop_time' int not null,'to_stop_sequence' int not null,unique(feed_id,conn_id)) 2024/11/19 00:48:21 Execute statement: create table if not exists _ctcaltoservice ('feed_id' int not null,'service_date' int not null,'service_id' text not null) 2024/11/19 00:48:21 Execute statement: create table if not exists _cttransfersgen ('feed_id' int not null,'feed_id_pair' int not null,'from_stop_id' text not null,'to_stop_id' text not null,'from_stop_idu' text not null,'to_stop_idu' text not null,'from_stop_sidu' text not null,'to_stop_sidu' text not null,'dist_km' real) 2024/11/19 00:48:21 Loading schema tables ok 2024/11/19 00:48:21 Loading schema indexes 2024/11/19 00:48:21 Create index idx_agency1_agency_timezone on agency as [agency_timezone] 2024/11/19 00:48:21 Created index idx_agency1_agency_timezone ok 2024/11/19 00:48:21 Create index idx_stop_times1_departure_time on stop_times as [departure_time] 2024/11/19 00:48:21 Created index idx_stop_times1_departure_time ok 2024/11/19 00:48:21 Create index idx_stop_times1_trip_id on stop_times as [trip_id] 2024/11/19 00:48:21 Created index idx_stop_times1_trip_id ok 2024/11/19 00:48:21 Create index idx_stops2_feed_id_stop_id on stops as [feed_id stop_id] 2024/11/19 00:48:21 Created index idx_stops2_feed_id_stop_id ok 2024/11/19 00:48:21 Create index idx_stops2_stop_lat_stop_lon on stops as [stop_lat stop_lon] 2024/11/19 00:48:21 Created index idx_stops2_stop_lat_stop_lon ok 2024/11/19 00:48:21 Create index idx_stops3_feed_id_parent_station_location_type on stops as [feed_id parent_station location_type] 2024/11/19 00:48:21 Created index idx_stops3_feed_id_parent_station_location_type ok 2024/11/19 00:48:21 Create index idx_transfers2_feed_id_from_stop_id on transfers as [feed_id from_stop_id] 2024/11/19 00:48:21 Created index idx_transfers2_feed_id_from_stop_id ok 2024/11/19 00:48:21 Create index idx_transfers2_feed_id_to_stop_id on transfers as [feed_id to_stop_id] 2024/11/19 00:48:21 Created index idx_transfers2_feed_id_to_stop_id ok 2024/11/19 00:48:21 Create index idx__ctconn3_feed_id_service_id_from_stop_time on _ctconn as [feed_id service_id from_stop_time] 2024/11/19 00:48:21 Created index idx__ctconn3_feed_id_service_id_from_stop_time ok 2024/11/19 00:48:21 Create index idx__ctconn3_feed_id_from_stop_sidu_from_stop_time on _ctconn as [feed_id from_stop_sidu from_stop_time] 2024/11/19 00:48:21 Created index idx__ctconn3_feed_id_from_stop_sidu_from_stop_time ok 2024/11/19 00:48:21 Create index idx__ctcaltoservice3_feed_id_service_id_service_date on _ctcaltoservice as [feed_id service_id service_date] 2024/11/19 00:48:21 Created index idx__ctcaltoservice3_feed_id_service_id_service_date ok 2024/11/19 00:48:21 Create index idx__ctcaltoservice2_feed_id_service_date on _ctcaltoservice as [feed_id service_date] 2024/11/19 00:48:21 Created index idx__ctcaltoservice2_feed_id_service_date ok 2024/11/19 00:48:21 Loading schema indexes ok 2024/11/19 00:48:21 Loading views ok 2024/11/19 00:48:21 Loaded view _vfeedsminmaxdates (bytes=251) 2024/11/19 00:48:21 Loaded view _vfeedsmetadata (bytes=3676) 2024/11/19 00:48:21 Loaded view _vstopparent (bytes=2600) 2024/11/19 00:48:21 Loaded view _vconn (bytes=1201) 2024/11/19 00:48:21 Loaded view _vconnverbose (bytes=1122) 2024/11/19 00:48:21 Loaded view _vcaltoservice (bytes=3110) 2024/11/19 00:48:21 Loaded view _vtransferstbl (bytes=933) 2024/11/19 00:48:21 Loaded view _vtransfersgen (bytes=1523) 2024/11/19 00:48:21 Loaded view _vtransfersimplicit (bytes=371) 2024/11/19 00:48:21 Loading views ok 2024/11/19 00:48:21 Importing table from //tmp/mobroute_test_mobdb_1292049521.csv (0.00MB) to table: _gtfssource_mdbcsv 2024/11/19 00:48:21 Last checksum vs current: / C_0M_e6e354e3e96ce7045076c6d9d00802736af751170e98abcc2d9de53ffcae2271; import will occur 2024/11/19 00:48:21 Execute insert query: 2024/11/19 00:48:21 Insert query complete 2024/11/19 00:48:21 Imported 1 rows into _gtfssource_mdbcsv ok 2024/11/19 00:48:21 Imported table from //tmp/mobroute_test_mobdb_1292049521.csv to table: _gtfssource_mdbcsv ok 2024/11/19 00:48:21 Running RTDatabase against input: {"feed_ids":[42],"op":"load"} 2024/11/19 00:48:21 Running Load against 1 feeds 2024/11/19 00:48:21 Loading GTFS feed 42 (1 of 1) 2024/11/19 00:48:21 Loading /tmp/3931493546.zip to DB with GTFS feed: 42 2024/11/19 00:48:21 Loaded GTFS Archive /tmp/3931493546.zip to temporary directory: /tmp/mobroute_tempdir4063941456 2024/11/19 00:48:21 Loading table: agency 2024/11/19 00:48:21 Importing table from /tmp/mobroute_tempdir4063941456/agency.txt (0.00MB) to table: agency 2024/11/19 00:48:21 Last checksum vs current: / C_0M_c15705f0e743a50086d3c871e24b6165b3b4d723a3f96445f676c4216a2fcd14; import will occur 2024/11/19 00:48:21 Execute insert query: 2024/11/19 00:48:21 Insert query complete 2024/11/19 00:48:21 Imported 1 rows into agency ok 2024/11/19 00:48:21 Imported table from /tmp/mobroute_tempdir4063941456/agency.txt to table: agency ok 2024/11/19 00:48:21 Loading table: agency complete 2024/11/19 00:48:21 Loading table: calendar 2024/11/19 00:48:21 Importing table from /tmp/mobroute_tempdir4063941456/calendar.txt (0.00MB) to table: calendar 2024/11/19 00:48:21 Last checksum vs current: / C_0M_124e46e20a21debc5240cba81ffd1f420ad3546f91373ae55886e911b19b2608; import will occur 2024/11/19 00:48:21 Execute insert query: 2024/11/19 00:48:21 Insert query complete 2024/11/19 00:48:21 Imported 2 rows into calendar ok 2024/11/19 00:48:21 Imported table from /tmp/mobroute_tempdir4063941456/calendar.txt to table: calendar ok 2024/11/19 00:48:21 Loading table: calendar complete 2024/11/19 00:48:21 Loading table: calendar_dates 2024/11/19 00:48:21 Importing table from /tmp/mobroute_tempdir4063941456/calendar_dates.txt (0.00MB) to table: calendar_dates 2024/11/19 00:48:21 Skipped import for non-existant non-required file: /tmp/mobroute_tempdir4063941456/calendar_dates.txt 2024/11/19 00:48:21 Loading table: calendar_dates complete 2024/11/19 00:48:21 Loading table: stop_times 2024/11/19 00:48:21 Importing table from /tmp/mobroute_tempdir4063941456/stop_times.txt (0.00MB) to table: stop_times 2024/11/19 00:48:21 Last checksum vs current: / C_0M_c720fd568d7d6154f442f16b61c73437ba7452ed091d91c002b4f384d60b36c6; import will occur 2024/11/19 00:48:21 Execute insert query: 2024/11/19 00:48:21 Insert query complete 2024/11/19 00:48:21 Imported 9 rows into stop_times ok 2024/11/19 00:48:21 Imported table from /tmp/mobroute_tempdir4063941456/stop_times.txt to table: stop_times ok 2024/11/19 00:48:21 Loading table: stop_times complete 2024/11/19 00:48:21 Loading table: stops 2024/11/19 00:48:21 Importing table from /tmp/mobroute_tempdir4063941456/stops.txt (0.00MB) to table: stops 2024/11/19 00:48:21 Last checksum vs current: / C_0M_1e4481e4464525fdf1ea0305fca00f2c9d379749fff7d64a0cd7ffa5175af899; import will occur 2024/11/19 00:48:21 Execute insert query: 2024/11/19 00:48:21 Insert query complete 2024/11/19 00:48:21 Imported 4 rows into stops ok 2024/11/19 00:48:21 Imported table from /tmp/mobroute_tempdir4063941456/stops.txt to table: stops ok 2024/11/19 00:48:21 Loading table: stops complete 2024/11/19 00:48:21 Loading table: trips 2024/11/19 00:48:21 Importing table from /tmp/mobroute_tempdir4063941456/trips.txt (0.00MB) to table: trips 2024/11/19 00:48:21 Last checksum vs current: / C_0M_0220e37a7822e751eaa95f847f72fd94eb66c922e5a43f58f2bc059b96efdce7; import will occur 2024/11/19 00:48:21 Execute insert query: 2024/11/19 00:48:21 Insert query complete 2024/11/19 00:48:21 Imported 4 rows into trips ok 2024/11/19 00:48:21 Imported table from /tmp/mobroute_tempdir4063941456/trips.txt to table: trips ok 2024/11/19 00:48:21 Loading table: trips complete 2024/11/19 00:48:21 Loading table: routes 2024/11/19 00:48:21 Importing table from /tmp/mobroute_tempdir4063941456/routes.txt (0.00MB) to table: routes 2024/11/19 00:48:21 Last checksum vs current: / C_0M_adc89b7b4e4f8b88e68bf10397af1fc696e623cfec1d5ebd84a57dfac7953136; import will occur 2024/11/19 00:48:21 Execute insert query: 2024/11/19 00:48:21 Insert query complete 2024/11/19 00:48:21 Imported 2 rows into routes ok 2024/11/19 00:48:21 Imported table from /tmp/mobroute_tempdir4063941456/routes.txt to table: routes ok 2024/11/19 00:48:21 Loading table: routes complete 2024/11/19 00:48:21 Loading table: transfers 2024/11/19 00:48:21 Importing table from /tmp/mobroute_tempdir4063941456/transfers.txt (0.00MB) to table: transfers 2024/11/19 00:48:21 Skipped import for non-existant non-required file: /tmp/mobroute_tempdir4063941456/transfers.txt 2024/11/19 00:48:21 Loading table: transfers complete 2024/11/19 00:48:21 Loaded /tmp/3931493546.zip to DB with GTFS feed: 42 ok 2024/11/19 00:48:21 Loading GTFS feed 42 ok; used cache for URL download (true) 2024/11/19 00:48:21 Running Load against 1 feeds ok 2024/11/19 00:48:21 Running RTDatabase against input: {"feed_ids":[42],"op":"compute"} 2024/11/19 00:48:21 Running Compute against 1 feeds 2024/11/19 00:48:21 Computed table _ctconn for feed (42 ) out of date - updating ('' vs '42:routes:C_0M_adc89b7b4e4f8b88e68bf10397af1fc696e623cfec1d5ebd84a57dfac7953136,42:stop_times:C_0M_c720fd568d7d6154f442f16b61c73437ba7452ed091d91c002b4f384d60b36c6,42:stops:C_0M_1e4481e4464525fdf1ea0305fca00f2c9d379749fff7d64a0cd7ffa5175af899,42:trips:C_0M_0220e37a7822e751eaa95f847f72fd94eb66c922e5a43f58f2bc059b96efdce7') 2024/11/19 00:48:21 Computed table _ctcaltoservice for feed (42 ) out of date - updating ('' vs '42:stops:C_0M_1e4481e4464525fdf1ea0305fca00f2c9d379749fff7d64a0cd7ffa5175af899') 2024/11/19 00:48:21 Computed table _cttransfersgen for feed (42 0xc000596e88) out of date - updating ('' vs '42:stops:C_0M_1e4481e4464525fdf1ea0305fca00f2c9d379749fff7d64a0cd7ffa5175af899') 2024/11/19 00:48:21 Running Compute against 1 feeds ok 2024/11/19 00:48:21 Loading with inputs as (select ? as yyyymmdddate, ? as seconds_from, ? as seconds_to), tztodelta as (select ? as timezone, ? as seconds), feedidtotzutcdelta as ( -- Note: re distinct, per GTFS spec; if there is >1 agency in agency.txt -- all timezones must be equal; thus 1 feed_id always = 1 timezone -- irregardless of # of agenc(ies) select distinct agency.feed_id, tztodelta.seconds as tzutcdeltasecs from agency join tztodelta on agency.agency_timezone = tztodelta.timezone ), timetable as ( select cts.service_date, -- E.g. normalize from/to stop times in two ways: -- 1) normalize to the input date YYYYMMDD, so if a time departs at 02:00 on monday the following day; -- converted look like 26:00 on the previous day (since all times relative to input YYYYMMDD) -- 2) add the agency's associated timezone UTC delta value so that routing across agencies -- using different timezones functions correctly. All outuput values thus in UTC time -- (cts.service_date - inputs.yyyymmdddate) * (60 * 60 * 24) + con.from_stop_time + tz.tzutcdeltasecs as from_stop_drutctime, (cts.service_date - inputs.yyyymmdddate) * (60 * 60 * 24) + con.to_stop_time + tz.tzutcdeltasecs as to_stop_drutctime, con.* from _ctcaltoservice cts join inputs on ( -- E.g. optimization so we don't have to calculate {from,to}_stop_drutctime for *all* -- timetable entries (should handle both tz shifts & next day for schedule logic) cts.service_date between inputs.yyyymmdddate - 1 and inputs.yyyymmdddate + 1 ) and cts.feed_id in (?) join _ctconn con on cts.service_id = con.service_id and cts.feed_id = con.feed_id and from_stop_drutctime between seconds_from and seconds_to join feedidtotzutcdelta tz on con.feed_id = tz.feed_id order by from_stop_drutctime asc, con.from_stop_sequence asc ) select conn_id,trip_id,from_stop_sequence,from_stop_sidu,from_stop_drutctime,to_stop_sequence,to_stop_sidu,to_stop_drutctime from timetable where 1 = 1 ([20230818 72000 75600 America/New_York -14400 42]) to memory 2024/11/19 00:48:21 Loaded with inputs as (select ? as yyyymmdddate, ? as seconds_from, ? as seconds_to), tztodelta as (select ? as timezone, ? as seconds), feedidtotzutcdelta as ( -- Note: re distinct, per GTFS spec; if there is >1 agency in agency.txt -- all timezones must be equal; thus 1 feed_id always = 1 timezone -- irregardless of # of agenc(ies) select distinct agency.feed_id, tztodelta.seconds as tzutcdeltasecs from agency join tztodelta on agency.agency_timezone = tztodelta.timezone ), timetable as ( select cts.service_date, -- E.g. normalize from/to stop times in two ways: -- 1) normalize to the input date YYYYMMDD, so if a time departs at 02:00 on monday the following day; -- converted look like 26:00 on the previous day (since all times relative to input YYYYMMDD) -- 2) add the agency's associated timezone UTC delta value so that routing across agencies -- using different timezones functions correctly. All outuput values thus in UTC time -- (cts.service_date - inputs.yyyymmdddate) * (60 * 60 * 24) + con.from_stop_time + tz.tzutcdeltasecs as from_stop_drutctime, (cts.service_date - inputs.yyyymmdddate) * (60 * 60 * 24) + con.to_stop_time + tz.tzutcdeltasecs as to_stop_drutctime, con.* from _ctcaltoservice cts join inputs on ( -- E.g. optimization so we don't have to calculate {from,to}_stop_drutctime for *all* -- timetable entries (should handle both tz shifts & next day for schedule logic) cts.service_date between inputs.yyyymmdddate - 1 and inputs.yyyymmdddate + 1 ) and cts.feed_id in (?) join _ctconn con on cts.service_id = con.service_id and cts.feed_id = con.feed_id and from_stop_drutctime between seconds_from and seconds_to join feedidtotzutcdelta tz on con.feed_id = tz.feed_id order by from_stop_drutctime asc, con.from_stop_sequence asc ) select conn_id,trip_id,from_stop_sequence,from_stop_sidu,from_stop_drutctime,to_stop_sequence,to_stop_sidu,to_stop_drutctime from timetable where 1 = 1 ([20230818 72000 75600 America/New_York -14400 42]) to memory ok (len=4) 2024/11/19 00:48:21 Generated mock for input (map[42:../testhelper/mockgtfs/gtfs_sample_0.yml 43:../testhelper/mockgtfs/gtfs_sample_1.yml]): (gtfs zips: [/tmp/3598036880.zip /tmp/2370047196.zip]) (mobdb csv: /tmp/mobroute_test_mobdb_3079313364.csv) 2024/11/19 00:48:21 SQLite system version (3.46.1); comparing to required version: 3.28.0 2024/11/19 00:48:21 Loading schema tables 2024/11/19 00:48:21 Execute statement: create table if not exists _mobsqltrack ('feed_id' int not null,'feed_id_pair' int,'tbl' text not null,'checksum' text not null,'n_rows' int not null,'timestamp' int not null,unique(feed_id,feed_id_pair,tbl)) 2024/11/19 00:48:21 Execute statement: create table if not exists _gtfssource_mdbcsv ('feed_id' int not null check(feed_id = -1),'data_type' text not null,'location.bounding_box.minimum_latitude' real,'location.bounding_box.minimum_longitude' real,'location.bounding_box.maximum_latitude' real,'location.bounding_box.maximum_longitude' real,'location.country_code' text,'location.subdivision_name' text,'location.municipality' text,'urls.latest' text,'urls.license' text,'mdb_source_id' int not null check(mdb_source_id >= 0),'name' text,'status' text,'provider' text not null,unique(mdb_source_id)) 2024/11/19 00:48:21 Execute statement: create table if not exists _gtfssource_custom ('customgtfs_feed_id' int not null check(customgtfs_feed_id < -1),'gtfs_uri' text not null,unique(customgtfs_feed_id)) 2024/11/19 00:48:21 Execute statement: create table if not exists agency ('feed_id' int not null,'agency_id' text,'agency_name' text not null,'agency_url' text not null,'agency_timezone' text not null,unique(feed_id,agency_id)) 2024/11/19 00:48:21 Execute statement: create table if not exists calendar ('feed_id' int not null,'service_id' text not null,'monday' int not null check(monday in (0,1)),'tuesday' int not null check(tuesday in (0,1)),'wednesday' int not null check(wednesday in (0,1)),'thursday' int not null check(thursday in (0,1)),'friday' int not null check(friday in (0,1)),'saturday' int not null check(saturday in (0,1)),'sunday' int not null check(sunday in (0,1)),'start_date' int not null,'end_date' int not null,unique(feed_id,service_id)) 2024/11/19 00:48:21 Execute statement: create table if not exists calendar_dates ('feed_id' int not null,'service_id' text not null,'date' int not null,'exception_type' int not null check(exception_type in (1,2))) 2024/11/19 00:48:21 Execute statement: create table if not exists stop_times ('feed_id' int not null,'trip_id' text not null,'arrival_time' int,'departure_time' int,'stop_id' text not null,'stop_sequence' int not null,'stop_headsign' text,'pickup_type' int,'drop_off_type' int,'continuous_drop_off' text,'timepoint' int check(timepoint in (0,1)),unique(feed_id,trip_id,stop_sequence)) 2024/11/19 00:48:21 Execute statement: create table if not exists stops ('feed_id' int not null,'stop_id' text not null,'stop_code' text,'stop_name' text check( ((location_type is null or location_type = 0 or location_type = 1 or location_type = 2) and stop_name is not null) or (location_type = 3 or location_type = 4) ),'stop_desc' text,'stop_lat' real check( ((location_type is null or location_type = 0 or location_type = 1 or location_type = 2) and stop_lat is not null) or (location_type = 3 or location_type = 4) ),'stop_lon' real check( ((location_type is null or location_type = 0 or location_type = 1 or location_type = 2) and stop_lon is not null) or (location_type = 3 or location_type = 4) ),'zone_id' text,'stop_url' text,'location_type' int check(location_type in (0,1,2,3,4)),'parent_station' text,'stop_timezone' text,'wheelchair_boarding' int check(wheelchair_boarding in (0,1,2)),'level_id' text,'platform_code' text,unique(feed_id,stop_id)) 2024/11/19 00:48:21 Execute statement: create table if not exists trips ('feed_id' int not null,'route_id' text not null,'service_id' text not null,'trip_id' text not null,'trip_headsign' text,'trip_short_name' text,'direction_id' int check(direction_id in (0,1)),'block_id' text,'shape_id' text,'wheelchair_accessible' text check(wheelchair_accessible in (0,1,2)),'bikes_allowed' int check(bikes_allowed in (0,1,2)),unique(feed_id,trip_id)) 2024/11/19 00:48:21 Execute statement: create table if not exists routes ('feed_id' int not null,'route_id' text not null,'agency_id' text,'route_short_name' text check(route_long_name is not null or route_short_name is not null),'route_long_name' text,'route_desc' text,'route_type' int,'route_url' text,'route_color' text,'route_text_color' text,'route_sort_order' text,'continuous_pickup' int check(continuous_pickup in (0,1,2,3)),'continuous_drop_off' int check(continuous_drop_off in (0,1,2,3)),unique(feed_id,route_id)) 2024/11/19 00:48:21 Execute statement: create table if not exists transfers ('feed_id' int not null,'from_stop_id' text not null,'to_stop_id' text not null,'transfer_type' int,'min_transfer_time' int) 2024/11/19 00:48:21 Execute statement: create table if not exists _ctconn ('feed_id' int not null,'conn_id' text not null,'trip_id' text not null,'service_id' text not null,'from_stop_id' text not null,'from_stop_idu' text not null,'from_stop_sidu' text not null,'from_stop_time' int not null,'from_stop_sequence' int not null,'to_stop_id' text not null,'to_stop_idu' text not null,'to_stop_sidu' text not null,'to_stop_time' int not null,'to_stop_sequence' int not null,unique(feed_id,conn_id)) 2024/11/19 00:48:21 Execute statement: create table if not exists _ctcaltoservice ('feed_id' int not null,'service_date' int not null,'service_id' text not null) 2024/11/19 00:48:21 Execute statement: create table if not exists _cttransfersgen ('feed_id' int not null,'feed_id_pair' int not null,'from_stop_id' text not null,'to_stop_id' text not null,'from_stop_idu' text not null,'to_stop_idu' text not null,'from_stop_sidu' text not null,'to_stop_sidu' text not null,'dist_km' real) 2024/11/19 00:48:21 Loading schema tables ok 2024/11/19 00:48:21 Loading schema indexes 2024/11/19 00:48:21 Create index idx_agency1_agency_timezone on agency as [agency_timezone] 2024/11/19 00:48:21 Created index idx_agency1_agency_timezone ok 2024/11/19 00:48:21 Create index idx_stop_times1_departure_time on stop_times as [departure_time] 2024/11/19 00:48:21 Created index idx_stop_times1_departure_time ok 2024/11/19 00:48:21 Create index idx_stop_times1_trip_id on stop_times as [trip_id] 2024/11/19 00:48:21 Created index idx_stop_times1_trip_id ok 2024/11/19 00:48:21 Create index idx_stops2_feed_id_stop_id on stops as [feed_id stop_id] 2024/11/19 00:48:21 Created index idx_stops2_feed_id_stop_id ok 2024/11/19 00:48:21 Create index idx_stops2_stop_lat_stop_lon on stops as [stop_lat stop_lon] 2024/11/19 00:48:21 Created index idx_stops2_stop_lat_stop_lon ok 2024/11/19 00:48:21 Create index idx_stops3_feed_id_parent_station_location_type on stops as [feed_id parent_station location_type] 2024/11/19 00:48:21 Created index idx_stops3_feed_id_parent_station_location_type ok 2024/11/19 00:48:21 Create index idx_transfers2_feed_id_from_stop_id on transfers as [feed_id from_stop_id] 2024/11/19 00:48:21 Created index idx_transfers2_feed_id_from_stop_id ok 2024/11/19 00:48:21 Create index idx_transfers2_feed_id_to_stop_id on transfers as [feed_id to_stop_id] 2024/11/19 00:48:21 Created index idx_transfers2_feed_id_to_stop_id ok 2024/11/19 00:48:21 Create index idx__ctconn3_feed_id_service_id_from_stop_time on _ctconn as [feed_id service_id from_stop_time] 2024/11/19 00:48:21 Created index idx__ctconn3_feed_id_service_id_from_stop_time ok 2024/11/19 00:48:21 Create index idx__ctconn3_feed_id_from_stop_sidu_from_stop_time on _ctconn as [feed_id from_stop_sidu from_stop_time] 2024/11/19 00:48:21 Created index idx__ctconn3_feed_id_from_stop_sidu_from_stop_time ok 2024/11/19 00:48:21 Create index idx__ctcaltoservice3_feed_id_service_id_service_date on _ctcaltoservice as [feed_id service_id service_date] 2024/11/19 00:48:21 Created index idx__ctcaltoservice3_feed_id_service_id_service_date ok 2024/11/19 00:48:21 Create index idx__ctcaltoservice2_feed_id_service_date on _ctcaltoservice as [feed_id service_date] 2024/11/19 00:48:21 Created index idx__ctcaltoservice2_feed_id_service_date ok 2024/11/19 00:48:21 Loading schema indexes ok 2024/11/19 00:48:21 Loading views ok 2024/11/19 00:48:21 Loaded view _vfeedsminmaxdates (bytes=251) 2024/11/19 00:48:21 Loaded view _vfeedsmetadata (bytes=3676) 2024/11/19 00:48:21 Loaded view _vstopparent (bytes=2600) 2024/11/19 00:48:21 Loaded view _vconn (bytes=1201) 2024/11/19 00:48:21 Loaded view _vconnverbose (bytes=1122) 2024/11/19 00:48:21 Loaded view _vcaltoservice (bytes=3110) 2024/11/19 00:48:21 Loaded view _vtransferstbl (bytes=933) 2024/11/19 00:48:21 Loaded view _vtransfersgen (bytes=1523) 2024/11/19 00:48:21 Loaded view _vtransfersimplicit (bytes=371) 2024/11/19 00:48:21 Loading views ok 2024/11/19 00:48:21 Importing table from //tmp/mobroute_test_mobdb_3079313364.csv (0.00MB) to table: _gtfssource_mdbcsv 2024/11/19 00:48:21 Last checksum vs current: / C_0M_3cf5365b671e89bec803c5983041ae2bb2a708829196848a8b8cf7bd781749ec; import will occur 2024/11/19 00:48:21 Execute insert query: 2024/11/19 00:48:21 Insert query complete 2024/11/19 00:48:21 Imported 2 rows into _gtfssource_mdbcsv ok 2024/11/19 00:48:21 Imported table from //tmp/mobroute_test_mobdb_3079313364.csv to table: _gtfssource_mdbcsv ok 2024/11/19 00:48:21 Running RTDatabase against input: {"feed_ids":[42,43],"op":"load"} 2024/11/19 00:48:21 Running Load against 2 feeds 2024/11/19 00:48:21 Loading GTFS feed 42 (1 of 2) 2024/11/19 00:48:21 Loading /tmp/3598036880.zip to DB with GTFS feed: 42 2024/11/19 00:48:21 Loaded GTFS Archive /tmp/3598036880.zip to temporary directory: /tmp/mobroute_tempdir3361749327 2024/11/19 00:48:21 Loading table: agency 2024/11/19 00:48:21 Importing table from /tmp/mobroute_tempdir3361749327/agency.txt (0.00MB) to table: agency 2024/11/19 00:48:21 Last checksum vs current: / C_0M_c15705f0e743a50086d3c871e24b6165b3b4d723a3f96445f676c4216a2fcd14; import will occur 2024/11/19 00:48:21 Execute insert query: 2024/11/19 00:48:21 Insert query complete 2024/11/19 00:48:21 Imported 1 rows into agency ok 2024/11/19 00:48:21 Imported table from /tmp/mobroute_tempdir3361749327/agency.txt to table: agency ok 2024/11/19 00:48:21 Loading table: agency complete 2024/11/19 00:48:21 Loading table: calendar 2024/11/19 00:48:21 Importing table from /tmp/mobroute_tempdir3361749327/calendar.txt (0.00MB) to table: calendar 2024/11/19 00:48:21 Last checksum vs current: / C_0M_124e46e20a21debc5240cba81ffd1f420ad3546f91373ae55886e911b19b2608; import will occur 2024/11/19 00:48:21 Execute insert query: 2024/11/19 00:48:21 Insert query complete 2024/11/19 00:48:21 Imported 2 rows into calendar ok 2024/11/19 00:48:21 Imported table from /tmp/mobroute_tempdir3361749327/calendar.txt to table: calendar ok 2024/11/19 00:48:21 Loading table: calendar complete 2024/11/19 00:48:21 Loading table: calendar_dates 2024/11/19 00:48:21 Importing table from /tmp/mobroute_tempdir3361749327/calendar_dates.txt (0.00MB) to table: calendar_dates 2024/11/19 00:48:21 Skipped import for non-existant non-required file: /tmp/mobroute_tempdir3361749327/calendar_dates.txt 2024/11/19 00:48:21 Loading table: calendar_dates complete 2024/11/19 00:48:21 Loading table: stop_times 2024/11/19 00:48:21 Importing table from /tmp/mobroute_tempdir3361749327/stop_times.txt (0.00MB) to table: stop_times 2024/11/19 00:48:21 Last checksum vs current: / C_0M_c720fd568d7d6154f442f16b61c73437ba7452ed091d91c002b4f384d60b36c6; import will occur 2024/11/19 00:48:21 Execute insert query: 2024/11/19 00:48:21 Insert query complete 2024/11/19 00:48:21 Imported 9 rows into stop_times ok 2024/11/19 00:48:21 Imported table from /tmp/mobroute_tempdir3361749327/stop_times.txt to table: stop_times ok 2024/11/19 00:48:21 Loading table: stop_times complete 2024/11/19 00:48:21 Loading table: stops 2024/11/19 00:48:21 Importing table from /tmp/mobroute_tempdir3361749327/stops.txt (0.00MB) to table: stops 2024/11/19 00:48:21 Last checksum vs current: / C_0M_1e4481e4464525fdf1ea0305fca00f2c9d379749fff7d64a0cd7ffa5175af899; import will occur 2024/11/19 00:48:21 Execute insert query: 2024/11/19 00:48:21 Insert query complete 2024/11/19 00:48:21 Imported 4 rows into stops ok 2024/11/19 00:48:21 Imported table from /tmp/mobroute_tempdir3361749327/stops.txt to table: stops ok 2024/11/19 00:48:21 Loading table: stops complete 2024/11/19 00:48:21 Loading table: trips 2024/11/19 00:48:21 Importing table from /tmp/mobroute_tempdir3361749327/trips.txt (0.00MB) to table: trips 2024/11/19 00:48:21 Last checksum vs current: / C_0M_0220e37a7822e751eaa95f847f72fd94eb66c922e5a43f58f2bc059b96efdce7; import will occur 2024/11/19 00:48:21 Execute insert query: 2024/11/19 00:48:21 Insert query complete 2024/11/19 00:48:21 Imported 4 rows into trips ok 2024/11/19 00:48:21 Imported table from /tmp/mobroute_tempdir3361749327/trips.txt to table: trips ok 2024/11/19 00:48:21 Loading table: trips complete 2024/11/19 00:48:21 Loading table: routes 2024/11/19 00:48:21 Importing table from /tmp/mobroute_tempdir3361749327/routes.txt (0.00MB) to table: routes 2024/11/19 00:48:21 Last checksum vs current: / C_0M_adc89b7b4e4f8b88e68bf10397af1fc696e623cfec1d5ebd84a57dfac7953136; import will occur 2024/11/19 00:48:21 Execute insert query: 2024/11/19 00:48:21 Insert query complete 2024/11/19 00:48:21 Imported 2 rows into routes ok 2024/11/19 00:48:21 Imported table from /tmp/mobroute_tempdir3361749327/routes.txt to table: routes ok 2024/11/19 00:48:21 Loading table: routes complete 2024/11/19 00:48:21 Loading table: transfers 2024/11/19 00:48:21 Importing table from /tmp/mobroute_tempdir3361749327/transfers.txt (0.00MB) to table: transfers 2024/11/19 00:48:21 Skipped import for non-existant non-required file: /tmp/mobroute_tempdir3361749327/transfers.txt 2024/11/19 00:48:21 Loading table: transfers complete 2024/11/19 00:48:21 Loaded /tmp/3598036880.zip to DB with GTFS feed: 42 ok 2024/11/19 00:48:21 Loading GTFS feed 42 ok; used cache for URL download (true) 2024/11/19 00:48:21 Loading GTFS feed 43 (2 of 2) 2024/11/19 00:48:21 Loading /tmp/2370047196.zip to DB with GTFS feed: 43 2024/11/19 00:48:21 Loaded GTFS Archive /tmp/2370047196.zip to temporary directory: /tmp/mobroute_tempdir1143401241 2024/11/19 00:48:21 Loading table: agency 2024/11/19 00:48:21 Importing table from /tmp/mobroute_tempdir1143401241/agency.txt (0.00MB) to table: agency 2024/11/19 00:48:21 Last checksum vs current: / C_0M_ff0363444c30e50468d902237b474ab438a9e78058f5bc3e72580097a477a123; import will occur 2024/11/19 00:48:21 Execute insert query: 2024/11/19 00:48:21 Insert query complete 2024/11/19 00:48:21 Imported 1 rows into agency ok 2024/11/19 00:48:21 Imported table from /tmp/mobroute_tempdir1143401241/agency.txt to table: agency ok 2024/11/19 00:48:21 Loading table: agency complete 2024/11/19 00:48:21 Loading table: calendar 2024/11/19 00:48:21 Importing table from /tmp/mobroute_tempdir1143401241/calendar.txt (0.00MB) to table: calendar 2024/11/19 00:48:21 Last checksum vs current: / C_0M_124e46e20a21debc5240cba81ffd1f420ad3546f91373ae55886e911b19b2608; import will occur 2024/11/19 00:48:21 Execute insert query: 2024/11/19 00:48:21 Insert query complete 2024/11/19 00:48:21 Imported 2 rows into calendar ok 2024/11/19 00:48:21 Imported table from /tmp/mobroute_tempdir1143401241/calendar.txt to table: calendar ok 2024/11/19 00:48:21 Loading table: calendar complete 2024/11/19 00:48:21 Loading table: calendar_dates 2024/11/19 00:48:21 Importing table from /tmp/mobroute_tempdir1143401241/calendar_dates.txt (0.00MB) to table: calendar_dates 2024/11/19 00:48:21 Skipped import for non-existant non-required file: /tmp/mobroute_tempdir1143401241/calendar_dates.txt 2024/11/19 00:48:21 Loading table: calendar_dates complete 2024/11/19 00:48:21 Loading table: stop_times 2024/11/19 00:48:21 Importing table from /tmp/mobroute_tempdir1143401241/stop_times.txt (0.00MB) to table: stop_times 2024/11/19 00:48:21 Last checksum vs current: / C_0M_c720fd568d7d6154f442f16b61c73437ba7452ed091d91c002b4f384d60b36c6; import will occur 2024/11/19 00:48:21 Execute insert query: 2024/11/19 00:48:21 Insert query complete 2024/11/19 00:48:21 Imported 9 rows into stop_times ok 2024/11/19 00:48:21 Imported table from /tmp/mobroute_tempdir1143401241/stop_times.txt to table: stop_times ok 2024/11/19 00:48:21 Loading table: stop_times complete 2024/11/19 00:48:21 Loading table: stops 2024/11/19 00:48:21 Importing table from /tmp/mobroute_tempdir1143401241/stops.txt (0.00MB) to table: stops 2024/11/19 00:48:21 Last checksum vs current: / C_0M_1e4481e4464525fdf1ea0305fca00f2c9d379749fff7d64a0cd7ffa5175af899; import will occur 2024/11/19 00:48:21 Execute insert query: 2024/11/19 00:48:21 Insert query complete 2024/11/19 00:48:21 Imported 4 rows into stops ok 2024/11/19 00:48:21 Imported table from /tmp/mobroute_tempdir1143401241/stops.txt to table: stops ok 2024/11/19 00:48:21 Loading table: stops complete 2024/11/19 00:48:21 Loading table: trips 2024/11/19 00:48:21 Importing table from /tmp/mobroute_tempdir1143401241/trips.txt (0.00MB) to table: trips 2024/11/19 00:48:21 Last checksum vs current: / C_0M_0220e37a7822e751eaa95f847f72fd94eb66c922e5a43f58f2bc059b96efdce7; import will occur 2024/11/19 00:48:21 Execute insert query: 2024/11/19 00:48:21 Insert query complete 2024/11/19 00:48:21 Imported 4 rows into trips ok 2024/11/19 00:48:21 Imported table from /tmp/mobroute_tempdir1143401241/trips.txt to table: trips ok 2024/11/19 00:48:21 Loading table: trips complete 2024/11/19 00:48:21 Loading table: routes 2024/11/19 00:48:21 Importing table from /tmp/mobroute_tempdir1143401241/routes.txt (0.00MB) to table: routes 2024/11/19 00:48:21 Last checksum vs current: / C_0M_adc89b7b4e4f8b88e68bf10397af1fc696e623cfec1d5ebd84a57dfac7953136; import will occur 2024/11/19 00:48:21 Execute insert query: 2024/11/19 00:48:21 Insert query complete 2024/11/19 00:48:21 Imported 2 rows into routes ok 2024/11/19 00:48:21 Imported table from /tmp/mobroute_tempdir1143401241/routes.txt to table: routes ok 2024/11/19 00:48:21 Loading table: routes complete 2024/11/19 00:48:21 Loading table: transfers 2024/11/19 00:48:21 Importing table from /tmp/mobroute_tempdir1143401241/transfers.txt (0.00MB) to table: transfers 2024/11/19 00:48:21 Skipped import for non-existant non-required file: /tmp/mobroute_tempdir1143401241/transfers.txt 2024/11/19 00:48:21 Loading table: transfers complete 2024/11/19 00:48:21 Loaded /tmp/2370047196.zip to DB with GTFS feed: 43 ok 2024/11/19 00:48:21 Loading GTFS feed 43 ok; used cache for URL download (true) 2024/11/19 00:48:21 Running Load against 2 feeds ok 2024/11/19 00:48:21 Running RTDatabase against input: {"feed_ids":[42,43],"op":"compute"} 2024/11/19 00:48:21 Running Compute against 2 feeds 2024/11/19 00:48:21 Computed table _ctconn for feed (42 ) out of date - updating ('' vs '42:routes:C_0M_adc89b7b4e4f8b88e68bf10397af1fc696e623cfec1d5ebd84a57dfac7953136,42:stop_times:C_0M_c720fd568d7d6154f442f16b61c73437ba7452ed091d91c002b4f384d60b36c6,42:stops:C_0M_1e4481e4464525fdf1ea0305fca00f2c9d379749fff7d64a0cd7ffa5175af899,42:trips:C_0M_0220e37a7822e751eaa95f847f72fd94eb66c922e5a43f58f2bc059b96efdce7') 2024/11/19 00:48:21 Computed table _ctconn for feed (43 ) out of date - updating ('' vs '43:routes:C_0M_adc89b7b4e4f8b88e68bf10397af1fc696e623cfec1d5ebd84a57dfac7953136,43:stop_times:C_0M_c720fd568d7d6154f442f16b61c73437ba7452ed091d91c002b4f384d60b36c6,43:stops:C_0M_1e4481e4464525fdf1ea0305fca00f2c9d379749fff7d64a0cd7ffa5175af899,43:trips:C_0M_0220e37a7822e751eaa95f847f72fd94eb66c922e5a43f58f2bc059b96efdce7') 2024/11/19 00:48:21 Computed table _ctcaltoservice for feed (42 ) out of date - updating ('' vs '42:stops:C_0M_1e4481e4464525fdf1ea0305fca00f2c9d379749fff7d64a0cd7ffa5175af899') 2024/11/19 00:48:21 Computed table _ctcaltoservice for feed (43 ) out of date - updating ('' vs '43:stops:C_0M_1e4481e4464525fdf1ea0305fca00f2c9d379749fff7d64a0cd7ffa5175af899') 2024/11/19 00:48:21 Computed table _cttransfersgen for feed (42 0xc0005963b8) out of date - updating ('' vs '42:stops:C_0M_1e4481e4464525fdf1ea0305fca00f2c9d379749fff7d64a0cd7ffa5175af899') 2024/11/19 00:48:21 Computed table _cttransfersgen for feed (42 0xc0005963c8) out of date - updating ('' vs '42:stops:C_0M_1e4481e4464525fdf1ea0305fca00f2c9d379749fff7d64a0cd7ffa5175af899,43:stops:C_0M_1e4481e4464525fdf1ea0305fca00f2c9d379749fff7d64a0cd7ffa5175af899') 2024/11/19 00:48:21 Computed table _cttransfersgen for feed (43 0xc0005963e8) out of date - updating ('' vs '43:stops:C_0M_1e4481e4464525fdf1ea0305fca00f2c9d379749fff7d64a0cd7ffa5175af899') 2024/11/19 00:48:21 Running Compute against 2 feeds ok 2024/11/19 00:48:21 Loading with inputs as (select ? as yyyymmdddate, ? as seconds_from, ? as seconds_to), tztodelta as (select ? as timezone, ? as seconds union select ? as timezone, ? as seconds), feedidtotzutcdelta as ( -- Note: re distinct, per GTFS spec; if there is >1 agency in agency.txt -- all timezones must be equal; thus 1 feed_id always = 1 timezone -- irregardless of # of agenc(ies) select distinct agency.feed_id, tztodelta.seconds as tzutcdeltasecs from agency join tztodelta on agency.agency_timezone = tztodelta.timezone ), timetable as ( select cts.service_date, -- E.g. normalize from/to stop times in two ways: -- 1) normalize to the input date YYYYMMDD, so if a time departs at 02:00 on monday the following day; -- converted look like 26:00 on the previous day (since all times relative to input YYYYMMDD) -- 2) add the agency's associated timezone UTC delta value so that routing across agencies -- using different timezones functions correctly. All outuput values thus in UTC time -- (cts.service_date - inputs.yyyymmdddate) * (60 * 60 * 24) + con.from_stop_time + tz.tzutcdeltasecs as from_stop_drutctime, (cts.service_date - inputs.yyyymmdddate) * (60 * 60 * 24) + con.to_stop_time + tz.tzutcdeltasecs as to_stop_drutctime, con.* from _ctcaltoservice cts join inputs on ( -- E.g. optimization so we don't have to calculate {from,to}_stop_drutctime for *all* -- timetable entries (should handle both tz shifts & next day for schedule logic) cts.service_date between inputs.yyyymmdddate - 1 and inputs.yyyymmdddate + 1 ) and cts.feed_id in (?,?) join _ctconn con on cts.service_id = con.service_id and cts.feed_id = con.feed_id and from_stop_drutctime between seconds_from and seconds_to join feedidtotzutcdelta tz on con.feed_id = tz.feed_id order by from_stop_drutctime asc, con.from_stop_sequence asc ) select conn_id,trip_id,from_stop_sequence,from_stop_sidu,from_stop_drutctime,to_stop_sequence,to_stop_sidu,to_stop_drutctime from timetable where 1 = 1 ([20240304 18000 32400 America/New_York -18000 America/Chicago -21600 42 43]) to memory 2024/11/19 00:48:21 Loaded with inputs as (select ? as yyyymmdddate, ? as seconds_from, ? as seconds_to), tztodelta as (select ? as timezone, ? as seconds union select ? as timezone, ? as seconds), feedidtotzutcdelta as ( -- Note: re distinct, per GTFS spec; if there is >1 agency in agency.txt -- all timezones must be equal; thus 1 feed_id always = 1 timezone -- irregardless of # of agenc(ies) select distinct agency.feed_id, tztodelta.seconds as tzutcdeltasecs from agency join tztodelta on agency.agency_timezone = tztodelta.timezone ), timetable as ( select cts.service_date, -- E.g. normalize from/to stop times in two ways: -- 1) normalize to the input date YYYYMMDD, so if a time departs at 02:00 on monday the following day; -- converted look like 26:00 on the previous day (since all times relative to input YYYYMMDD) -- 2) add the agency's associated timezone UTC delta value so that routing across agencies -- using different timezones functions correctly. All outuput values thus in UTC time -- (cts.service_date - inputs.yyyymmdddate) * (60 * 60 * 24) + con.from_stop_time + tz.tzutcdeltasecs as from_stop_drutctime, (cts.service_date - inputs.yyyymmdddate) * (60 * 60 * 24) + con.to_stop_time + tz.tzutcdeltasecs as to_stop_drutctime, con.* from _ctcaltoservice cts join inputs on ( -- E.g. optimization so we don't have to calculate {from,to}_stop_drutctime for *all* -- timetable entries (should handle both tz shifts & next day for schedule logic) cts.service_date between inputs.yyyymmdddate - 1 and inputs.yyyymmdddate + 1 ) and cts.feed_id in (?,?) join _ctconn con on cts.service_id = con.service_id and cts.feed_id = con.feed_id and from_stop_drutctime between seconds_from and seconds_to join feedidtotzutcdelta tz on con.feed_id = tz.feed_id order by from_stop_drutctime asc, con.from_stop_sequence asc ) select conn_id,trip_id,from_stop_sequence,from_stop_sidu,from_stop_drutctime,to_stop_sequence,to_stop_sidu,to_stop_drutctime from timetable where 1 = 1 ([20240304 18000 32400 America/New_York -18000 America/Chicago -21600 42 43]) to memory ok (len=4) --- PASS: Test_LoadConnections (0.09s) === RUN Test_LoadConnectionsVerbose 2024/11/19 00:48:21 Generated mock for input (map[42:../testhelper/mockgtfs/gtfs_agency_fmt_nilagencyid.yml]): (gtfs zips: [/tmp/716916876.zip]) (mobdb csv: /tmp/mobroute_test_mobdb_2869268006.csv) 2024/11/19 00:48:21 SQLite system version (3.46.1); comparing to required version: 3.28.0 2024/11/19 00:48:21 Loading schema tables 2024/11/19 00:48:21 Execute statement: create table if not exists _mobsqltrack ('feed_id' int not null,'feed_id_pair' int,'tbl' text not null,'checksum' text not null,'n_rows' int not null,'timestamp' int not null,unique(feed_id,feed_id_pair,tbl)) 2024/11/19 00:48:21 Execute statement: create table if not exists _gtfssource_mdbcsv ('feed_id' int not null check(feed_id = -1),'data_type' text not null,'location.bounding_box.minimum_latitude' real,'location.bounding_box.minimum_longitude' real,'location.bounding_box.maximum_latitude' real,'location.bounding_box.maximum_longitude' real,'location.country_code' text,'location.subdivision_name' text,'location.municipality' text,'urls.latest' text,'urls.license' text,'mdb_source_id' int not null check(mdb_source_id >= 0),'name' text,'status' text,'provider' text not null,unique(mdb_source_id)) 2024/11/19 00:48:21 Execute statement: create table if not exists _gtfssource_custom ('customgtfs_feed_id' int not null check(customgtfs_feed_id < -1),'gtfs_uri' text not null,unique(customgtfs_feed_id)) 2024/11/19 00:48:21 Execute statement: create table if not exists agency ('feed_id' int not null,'agency_id' text,'agency_name' text not null,'agency_url' text not null,'agency_timezone' text not null,unique(feed_id,agency_id)) 2024/11/19 00:48:21 Execute statement: create table if not exists calendar ('feed_id' int not null,'service_id' text not null,'monday' int not null check(monday in (0,1)),'tuesday' int not null check(tuesday in (0,1)),'wednesday' int not null check(wednesday in (0,1)),'thursday' int not null check(thursday in (0,1)),'friday' int not null check(friday in (0,1)),'saturday' int not null check(saturday in (0,1)),'sunday' int not null check(sunday in (0,1)),'start_date' int not null,'end_date' int not null,unique(feed_id,service_id)) 2024/11/19 00:48:21 Execute statement: create table if not exists calendar_dates ('feed_id' int not null,'service_id' text not null,'date' int not null,'exception_type' int not null check(exception_type in (1,2))) 2024/11/19 00:48:21 Execute statement: create table if not exists stop_times ('feed_id' int not null,'trip_id' text not null,'arrival_time' int,'departure_time' int,'stop_id' text not null,'stop_sequence' int not null,'stop_headsign' text,'pickup_type' int,'drop_off_type' int,'continuous_drop_off' text,'timepoint' int check(timepoint in (0,1)),unique(feed_id,trip_id,stop_sequence)) 2024/11/19 00:48:21 Execute statement: create table if not exists stops ('feed_id' int not null,'stop_id' text not null,'stop_code' text,'stop_name' text check( ((location_type is null or location_type = 0 or location_type = 1 or location_type = 2) and stop_name is not null) or (location_type = 3 or location_type = 4) ),'stop_desc' text,'stop_lat' real check( ((location_type is null or location_type = 0 or location_type = 1 or location_type = 2) and stop_lat is not null) or (location_type = 3 or location_type = 4) ),'stop_lon' real check( ((location_type is null or location_type = 0 or location_type = 1 or location_type = 2) and stop_lon is not null) or (location_type = 3 or location_type = 4) ),'zone_id' text,'stop_url' text,'location_type' int check(location_type in (0,1,2,3,4)),'parent_station' text,'stop_timezone' text,'wheelchair_boarding' int check(wheelchair_boarding in (0,1,2)),'level_id' text,'platform_code' text,unique(feed_id,stop_id)) 2024/11/19 00:48:21 Execute statement: create table if not exists trips ('feed_id' int not null,'route_id' text not null,'service_id' text not null,'trip_id' text not null,'trip_headsign' text,'trip_short_name' text,'direction_id' int check(direction_id in (0,1)),'block_id' text,'shape_id' text,'wheelchair_accessible' text check(wheelchair_accessible in (0,1,2)),'bikes_allowed' int check(bikes_allowed in (0,1,2)),unique(feed_id,trip_id)) 2024/11/19 00:48:21 Execute statement: create table if not exists routes ('feed_id' int not null,'route_id' text not null,'agency_id' text,'route_short_name' text check(route_long_name is not null or route_short_name is not null),'route_long_name' text,'route_desc' text,'route_type' int,'route_url' text,'route_color' text,'route_text_color' text,'route_sort_order' text,'continuous_pickup' int check(continuous_pickup in (0,1,2,3)),'continuous_drop_off' int check(continuous_drop_off in (0,1,2,3)),unique(feed_id,route_id)) 2024/11/19 00:48:21 Execute statement: create table if not exists transfers ('feed_id' int not null,'from_stop_id' text not null,'to_stop_id' text not null,'transfer_type' int,'min_transfer_time' int) 2024/11/19 00:48:21 Execute statement: create table if not exists _ctconn ('feed_id' int not null,'conn_id' text not null,'trip_id' text not null,'service_id' text not null,'from_stop_id' text not null,'from_stop_idu' text not null,'from_stop_sidu' text not null,'from_stop_time' int not null,'from_stop_sequence' int not null,'to_stop_id' text not null,'to_stop_idu' text not null,'to_stop_sidu' text not null,'to_stop_time' int not null,'to_stop_sequence' int not null,unique(feed_id,conn_id)) 2024/11/19 00:48:21 Execute statement: create table if not exists _ctcaltoservice ('feed_id' int not null,'service_date' int not null,'service_id' text not null) 2024/11/19 00:48:21 Execute statement: create table if not exists _cttransfersgen ('feed_id' int not null,'feed_id_pair' int not null,'from_stop_id' text not null,'to_stop_id' text not null,'from_stop_idu' text not null,'to_stop_idu' text not null,'from_stop_sidu' text not null,'to_stop_sidu' text not null,'dist_km' real) 2024/11/19 00:48:21 Loading schema tables ok 2024/11/19 00:48:21 Loading schema indexes 2024/11/19 00:48:21 Create index idx_agency1_agency_timezone on agency as [agency_timezone] 2024/11/19 00:48:21 Created index idx_agency1_agency_timezone ok 2024/11/19 00:48:21 Create index idx_stop_times1_departure_time on stop_times as [departure_time] 2024/11/19 00:48:21 Created index idx_stop_times1_departure_time ok 2024/11/19 00:48:21 Create index idx_stop_times1_trip_id on stop_times as [trip_id] 2024/11/19 00:48:21 Created index idx_stop_times1_trip_id ok 2024/11/19 00:48:21 Create index idx_stops2_feed_id_stop_id on stops as [feed_id stop_id] 2024/11/19 00:48:21 Created index idx_stops2_feed_id_stop_id ok 2024/11/19 00:48:21 Create index idx_stops2_stop_lat_stop_lon on stops as [stop_lat stop_lon] 2024/11/19 00:48:21 Created index idx_stops2_stop_lat_stop_lon ok 2024/11/19 00:48:21 Create index idx_stops3_feed_id_parent_station_location_type on stops as [feed_id parent_station location_type] 2024/11/19 00:48:21 Created index idx_stops3_feed_id_parent_station_location_type ok 2024/11/19 00:48:21 Create index idx_transfers2_feed_id_from_stop_id on transfers as [feed_id from_stop_id] 2024/11/19 00:48:21 Created index idx_transfers2_feed_id_from_stop_id ok 2024/11/19 00:48:21 Create index idx_transfers2_feed_id_to_stop_id on transfers as [feed_id to_stop_id] 2024/11/19 00:48:21 Created index idx_transfers2_feed_id_to_stop_id ok 2024/11/19 00:48:21 Create index idx__ctconn3_feed_id_service_id_from_stop_time on _ctconn as [feed_id service_id from_stop_time] 2024/11/19 00:48:21 Created index idx__ctconn3_feed_id_service_id_from_stop_time ok 2024/11/19 00:48:21 Create index idx__ctconn3_feed_id_from_stop_sidu_from_stop_time on _ctconn as [feed_id from_stop_sidu from_stop_time] 2024/11/19 00:48:21 Created index idx__ctconn3_feed_id_from_stop_sidu_from_stop_time ok 2024/11/19 00:48:21 Create index idx__ctcaltoservice3_feed_id_service_id_service_date on _ctcaltoservice as [feed_id service_id service_date] 2024/11/19 00:48:21 Created index idx__ctcaltoservice3_feed_id_service_id_service_date ok 2024/11/19 00:48:21 Create index idx__ctcaltoservice2_feed_id_service_date on _ctcaltoservice as [feed_id service_date] 2024/11/19 00:48:21 Created index idx__ctcaltoservice2_feed_id_service_date ok 2024/11/19 00:48:21 Loading schema indexes ok 2024/11/19 00:48:21 Loading views ok 2024/11/19 00:48:21 Loaded view _vfeedsminmaxdates (bytes=251) 2024/11/19 00:48:21 Loaded view _vfeedsmetadata (bytes=3676) 2024/11/19 00:48:21 Loaded view _vstopparent (bytes=2600) 2024/11/19 00:48:21 Loaded view _vconn (bytes=1201) 2024/11/19 00:48:21 Loaded view _vconnverbose (bytes=1122) 2024/11/19 00:48:21 Loaded view _vcaltoservice (bytes=3110) 2024/11/19 00:48:21 Loaded view _vtransferstbl (bytes=933) 2024/11/19 00:48:21 Loaded view _vtransfersgen (bytes=1523) 2024/11/19 00:48:21 Loaded view _vtransfersimplicit (bytes=371) 2024/11/19 00:48:21 Loading views ok 2024/11/19 00:48:21 Importing table from //tmp/mobroute_test_mobdb_2869268006.csv (0.00MB) to table: _gtfssource_mdbcsv 2024/11/19 00:48:21 Last checksum vs current: / C_0M_95758905d8182744958a3e6c7a97bc42d0f69db99cf173ce7ceb65d86dbaa5c9; import will occur 2024/11/19 00:48:21 Execute insert query: 2024/11/19 00:48:21 Insert query complete 2024/11/19 00:48:21 Imported 1 rows into _gtfssource_mdbcsv ok 2024/11/19 00:48:21 Imported table from //tmp/mobroute_test_mobdb_2869268006.csv to table: _gtfssource_mdbcsv ok 2024/11/19 00:48:21 Running RTDatabase against input: {"feed_ids":[42],"op":"load"} 2024/11/19 00:48:21 Running Load against 1 feeds 2024/11/19 00:48:21 Loading GTFS feed 42 (1 of 1) 2024/11/19 00:48:21 Loading /tmp/716916876.zip to DB with GTFS feed: 42 2024/11/19 00:48:21 Loaded GTFS Archive /tmp/716916876.zip to temporary directory: /tmp/mobroute_tempdir2180645956 2024/11/19 00:48:21 Loading table: agency 2024/11/19 00:48:21 Importing table from /tmp/mobroute_tempdir2180645956/agency.txt (0.00MB) to table: agency 2024/11/19 00:48:21 Last checksum vs current: / C_0M_ba39c5c760c18856a8bb3e6b63e9688c4cf76a4800d54373e7084f0f7e01d7b3; import will occur 2024/11/19 00:48:21 Execute insert query: 2024/11/19 00:48:21 Insert query complete 2024/11/19 00:48:21 Imported 1 rows into agency ok 2024/11/19 00:48:21 Imported table from /tmp/mobroute_tempdir2180645956/agency.txt to table: agency ok 2024/11/19 00:48:21 Loading table: agency complete 2024/11/19 00:48:21 Loading table: calendar 2024/11/19 00:48:21 Importing table from /tmp/mobroute_tempdir2180645956/calendar.txt (0.00MB) to table: calendar 2024/11/19 00:48:21 Last checksum vs current: / C_0M_124e46e20a21debc5240cba81ffd1f420ad3546f91373ae55886e911b19b2608; import will occur 2024/11/19 00:48:21 Execute insert query: 2024/11/19 00:48:21 Insert query complete 2024/11/19 00:48:21 Imported 2 rows into calendar ok 2024/11/19 00:48:21 Imported table from /tmp/mobroute_tempdir2180645956/calendar.txt to table: calendar ok 2024/11/19 00:48:21 Loading table: calendar complete 2024/11/19 00:48:21 Loading table: calendar_dates 2024/11/19 00:48:21 Importing table from /tmp/mobroute_tempdir2180645956/calendar_dates.txt (0.00MB) to table: calendar_dates 2024/11/19 00:48:21 Skipped import for non-existant non-required file: /tmp/mobroute_tempdir2180645956/calendar_dates.txt 2024/11/19 00:48:21 Loading table: calendar_dates complete 2024/11/19 00:48:21 Loading table: stop_times 2024/11/19 00:48:21 Importing table from /tmp/mobroute_tempdir2180645956/stop_times.txt (0.00MB) to table: stop_times 2024/11/19 00:48:21 Last checksum vs current: / C_0M_d9bce8ae7ee7dfa8ffc2951ca370d0c3a5e3a3b34a234791d52a7ee735613704; import will occur 2024/11/19 00:48:21 Execute insert query: 2024/11/19 00:48:21 Insert query complete 2024/11/19 00:48:21 Imported 4 rows into stop_times ok 2024/11/19 00:48:21 Imported table from /tmp/mobroute_tempdir2180645956/stop_times.txt to table: stop_times ok 2024/11/19 00:48:21 Loading table: stop_times complete 2024/11/19 00:48:21 Loading table: stops 2024/11/19 00:48:21 Importing table from /tmp/mobroute_tempdir2180645956/stops.txt (0.00MB) to table: stops 2024/11/19 00:48:21 Last checksum vs current: / C_0M_0a1e1a76e511685c15e5b6fbd35e233bbdcaba3f388e7381cc9e2bc2e0233b07; import will occur 2024/11/19 00:48:21 Execute insert query: 2024/11/19 00:48:21 Insert query complete 2024/11/19 00:48:21 Imported 5 rows into stops ok 2024/11/19 00:48:21 Imported table from /tmp/mobroute_tempdir2180645956/stops.txt to table: stops ok 2024/11/19 00:48:21 Loading table: stops complete 2024/11/19 00:48:21 Loading table: trips 2024/11/19 00:48:21 Importing table from /tmp/mobroute_tempdir2180645956/trips.txt (0.00MB) to table: trips 2024/11/19 00:48:21 Last checksum vs current: / C_0M_192859d996a594c799ed78e3d50de8364a2d585195de939c4e1c218633e55290; import will occur 2024/11/19 00:48:21 Execute insert query: 2024/11/19 00:48:21 Insert query complete 2024/11/19 00:48:21 Imported 2 rows into trips ok 2024/11/19 00:48:21 Imported table from /tmp/mobroute_tempdir2180645956/trips.txt to table: trips ok 2024/11/19 00:48:21 Loading table: trips complete 2024/11/19 00:48:21 Loading table: routes 2024/11/19 00:48:21 Importing table from /tmp/mobroute_tempdir2180645956/routes.txt (0.00MB) to table: routes 2024/11/19 00:48:21 Last checksum vs current: / C_0M_a6031af6418607a6e5f51c20eaa22f422664f8d5254c59438ab18ce7e1e97cf8; import will occur 2024/11/19 00:48:21 Execute insert query: 2024/11/19 00:48:21 Insert query complete 2024/11/19 00:48:21 Imported 1 rows into routes ok 2024/11/19 00:48:21 Imported table from /tmp/mobroute_tempdir2180645956/routes.txt to table: routes ok 2024/11/19 00:48:21 Loading table: routes complete 2024/11/19 00:48:21 Loading table: transfers 2024/11/19 00:48:21 Importing table from /tmp/mobroute_tempdir2180645956/transfers.txt (0.00MB) to table: transfers 2024/11/19 00:48:21 Skipped import for non-existant non-required file: /tmp/mobroute_tempdir2180645956/transfers.txt 2024/11/19 00:48:21 Loading table: transfers complete 2024/11/19 00:48:21 Loaded /tmp/716916876.zip to DB with GTFS feed: 42 ok 2024/11/19 00:48:21 Loading GTFS feed 42 ok; used cache for URL download (true) 2024/11/19 00:48:21 Running Load against 1 feeds ok 2024/11/19 00:48:21 Running RTDatabase against input: {"feed_ids":[42],"op":"compute"} 2024/11/19 00:48:21 Running Compute against 1 feeds 2024/11/19 00:48:21 Computed table _ctconn for feed (42 ) out of date - updating ('' vs '42:routes:C_0M_a6031af6418607a6e5f51c20eaa22f422664f8d5254c59438ab18ce7e1e97cf8,42:stop_times:C_0M_d9bce8ae7ee7dfa8ffc2951ca370d0c3a5e3a3b34a234791d52a7ee735613704,42:stops:C_0M_0a1e1a76e511685c15e5b6fbd35e233bbdcaba3f388e7381cc9e2bc2e0233b07,42:trips:C_0M_192859d996a594c799ed78e3d50de8364a2d585195de939c4e1c218633e55290') 2024/11/19 00:48:21 Computed table _ctcaltoservice for feed (42 ) out of date - updating ('' vs '42:stops:C_0M_0a1e1a76e511685c15e5b6fbd35e233bbdcaba3f388e7381cc9e2bc2e0233b07') 2024/11/19 00:48:21 Computed table _cttransfersgen for feed (42 0xc0002f6a28) out of date - updating ('' vs '42:stops:C_0M_0a1e1a76e511685c15e5b6fbd35e233bbdcaba3f388e7381cc9e2bc2e0233b07') 2024/11/19 00:48:21 Running Compute against 1 feeds ok 2024/11/19 00:48:21 Loading with inputs as (select ? as yyyymmdddate, ? as seconds_from, ? as seconds_to), tztodelta as (select ? as timezone, ? as seconds), feedidtotzutcdelta as ( -- Note: re distinct, per GTFS spec; if there is >1 agency in agency.txt -- all timezones must be equal; thus 1 feed_id always = 1 timezone -- irregardless of # of agenc(ies) select distinct agency.feed_id, tztodelta.seconds as tzutcdeltasecs from agency join tztodelta on agency.agency_timezone = tztodelta.timezone ), timetable as ( select cts.service_date, -- E.g. normalize from/to stop times in two ways: -- 1) normalize to the input date YYYYMMDD, so if a time departs at 02:00 on monday the following day; -- converted look like 26:00 on the previous day (since all times relative to input YYYYMMDD) -- 2) add the agency's associated timezone UTC delta value so that routing across agencies -- using different timezones functions correctly. All outuput values thus in UTC time -- (cts.service_date - inputs.yyyymmdddate) * (60 * 60 * 24) + con.from_stop_time + tz.tzutcdeltasecs as from_stop_drutctime, (cts.service_date - inputs.yyyymmdddate) * (60 * 60 * 24) + con.to_stop_time + tz.tzutcdeltasecs as to_stop_drutctime, con.* from _ctcaltoservice cts join inputs on ( -- E.g. optimization so we don't have to calculate {from,to}_stop_drutctime for *all* -- timetable entries (should handle both tz shifts & next day for schedule logic) cts.service_date between inputs.yyyymmdddate - 1 and inputs.yyyymmdddate + 1 ) and cts.feed_id in (?) join _vconnverbose con on cts.service_id = con.service_id and cts.feed_id = con.feed_id and from_stop_drutctime between seconds_from and seconds_to join feedidtotzutcdelta tz on con.feed_id = tz.feed_id order by from_stop_drutctime asc, con.from_stop_sequence asc ) select * from timetable where 1 = 1 and conn_id in (?,?) ([20240304 -18000 68400 America/New_York -18000 42 42_trip_foo_up_wk_2 42_trip_foo_up_wk_3]) to memory 2024/11/19 00:48:21 Loaded with inputs as (select ? as yyyymmdddate, ? as seconds_from, ? as seconds_to), tztodelta as (select ? as timezone, ? as seconds), feedidtotzutcdelta as ( -- Note: re distinct, per GTFS spec; if there is >1 agency in agency.txt -- all timezones must be equal; thus 1 feed_id always = 1 timezone -- irregardless of # of agenc(ies) select distinct agency.feed_id, tztodelta.seconds as tzutcdeltasecs from agency join tztodelta on agency.agency_timezone = tztodelta.timezone ), timetable as ( select cts.service_date, -- E.g. normalize from/to stop times in two ways: -- 1) normalize to the input date YYYYMMDD, so if a time departs at 02:00 on monday the following day; -- converted look like 26:00 on the previous day (since all times relative to input YYYYMMDD) -- 2) add the agency's associated timezone UTC delta value so that routing across agencies -- using different timezones functions correctly. All outuput values thus in UTC time -- (cts.service_date - inputs.yyyymmdddate) * (60 * 60 * 24) + con.from_stop_time + tz.tzutcdeltasecs as from_stop_drutctime, (cts.service_date - inputs.yyyymmdddate) * (60 * 60 * 24) + con.to_stop_time + tz.tzutcdeltasecs as to_stop_drutctime, con.* from _ctcaltoservice cts join inputs on ( -- E.g. optimization so we don't have to calculate {from,to}_stop_drutctime for *all* -- timetable entries (should handle both tz shifts & next day for schedule logic) cts.service_date between inputs.yyyymmdddate - 1 and inputs.yyyymmdddate + 1 ) and cts.feed_id in (?) join _vconnverbose con on cts.service_id = con.service_id and cts.feed_id = con.feed_id and from_stop_drutctime between seconds_from and seconds_to join feedidtotzutcdelta tz on con.feed_id = tz.feed_id order by from_stop_drutctime asc, con.from_stop_sequence asc ) select * from timetable where 1 = 1 and conn_id in (?,?) ([20240304 -18000 68400 America/New_York -18000 42 42_trip_foo_up_wk_2 42_trip_foo_up_wk_3]) to memory ok (len=2) 2024/11/19 00:48:21 Generated mock for input (map[42:../testhelper/mockgtfs/gtfs_agency_fmt_oneagencyid.yml]): (gtfs zips: [/tmp/740918617.zip]) (mobdb csv: /tmp/mobroute_test_mobdb_3405339399.csv) 2024/11/19 00:48:21 SQLite system version (3.46.1); comparing to required version: 3.28.0 2024/11/19 00:48:21 Loading schema tables 2024/11/19 00:48:21 Execute statement: create table if not exists _mobsqltrack ('feed_id' int not null,'feed_id_pair' int,'tbl' text not null,'checksum' text not null,'n_rows' int not null,'timestamp' int not null,unique(feed_id,feed_id_pair,tbl)) 2024/11/19 00:48:21 Execute statement: create table if not exists _gtfssource_mdbcsv ('feed_id' int not null check(feed_id = -1),'data_type' text not null,'location.bounding_box.minimum_latitude' real,'location.bounding_box.minimum_longitude' real,'location.bounding_box.maximum_latitude' real,'location.bounding_box.maximum_longitude' real,'location.country_code' text,'location.subdivision_name' text,'location.municipality' text,'urls.latest' text,'urls.license' text,'mdb_source_id' int not null check(mdb_source_id >= 0),'name' text,'status' text,'provider' text not null,unique(mdb_source_id)) 2024/11/19 00:48:21 Execute statement: create table if not exists _gtfssource_custom ('customgtfs_feed_id' int not null check(customgtfs_feed_id < -1),'gtfs_uri' text not null,unique(customgtfs_feed_id)) 2024/11/19 00:48:21 Execute statement: create table if not exists agency ('feed_id' int not null,'agency_id' text,'agency_name' text not null,'agency_url' text not null,'agency_timezone' text not null,unique(feed_id,agency_id)) 2024/11/19 00:48:21 Execute statement: create table if not exists calendar ('feed_id' int not null,'service_id' text not null,'monday' int not null check(monday in (0,1)),'tuesday' int not null check(tuesday in (0,1)),'wednesday' int not null check(wednesday in (0,1)),'thursday' int not null check(thursday in (0,1)),'friday' int not null check(friday in (0,1)),'saturday' int not null check(saturday in (0,1)),'sunday' int not null check(sunday in (0,1)),'start_date' int not null,'end_date' int not null,unique(feed_id,service_id)) 2024/11/19 00:48:21 Execute statement: create table if not exists calendar_dates ('feed_id' int not null,'service_id' text not null,'date' int not null,'exception_type' int not null check(exception_type in (1,2))) 2024/11/19 00:48:21 Execute statement: create table if not exists stop_times ('feed_id' int not null,'trip_id' text not null,'arrival_time' int,'departure_time' int,'stop_id' text not null,'stop_sequence' int not null,'stop_headsign' text,'pickup_type' int,'drop_off_type' int,'continuous_drop_off' text,'timepoint' int check(timepoint in (0,1)),unique(feed_id,trip_id,stop_sequence)) 2024/11/19 00:48:21 Execute statement: create table if not exists stops ('feed_id' int not null,'stop_id' text not null,'stop_code' text,'stop_name' text check( ((location_type is null or location_type = 0 or location_type = 1 or location_type = 2) and stop_name is not null) or (location_type = 3 or location_type = 4) ),'stop_desc' text,'stop_lat' real check( ((location_type is null or location_type = 0 or location_type = 1 or location_type = 2) and stop_lat is not null) or (location_type = 3 or location_type = 4) ),'stop_lon' real check( ((location_type is null or location_type = 0 or location_type = 1 or location_type = 2) and stop_lon is not null) or (location_type = 3 or location_type = 4) ),'zone_id' text,'stop_url' text,'location_type' int check(location_type in (0,1,2,3,4)),'parent_station' text,'stop_timezone' text,'wheelchair_boarding' int check(wheelchair_boarding in (0,1,2)),'level_id' text,'platform_code' text,unique(feed_id,stop_id)) 2024/11/19 00:48:21 Execute statement: create table if not exists trips ('feed_id' int not null,'route_id' text not null,'service_id' text not null,'trip_id' text not null,'trip_headsign' text,'trip_short_name' text,'direction_id' int check(direction_id in (0,1)),'block_id' text,'shape_id' text,'wheelchair_accessible' text check(wheelchair_accessible in (0,1,2)),'bikes_allowed' int check(bikes_allowed in (0,1,2)),unique(feed_id,trip_id)) 2024/11/19 00:48:21 Execute statement: create table if not exists routes ('feed_id' int not null,'route_id' text not null,'agency_id' text,'route_short_name' text check(route_long_name is not null or route_short_name is not null),'route_long_name' text,'route_desc' text,'route_type' int,'route_url' text,'route_color' text,'route_text_color' text,'route_sort_order' text,'continuous_pickup' int check(continuous_pickup in (0,1,2,3)),'continuous_drop_off' int check(continuous_drop_off in (0,1,2,3)),unique(feed_id,route_id)) 2024/11/19 00:48:21 Execute statement: create table if not exists transfers ('feed_id' int not null,'from_stop_id' text not null,'to_stop_id' text not null,'transfer_type' int,'min_transfer_time' int) 2024/11/19 00:48:21 Execute statement: create table if not exists _ctconn ('feed_id' int not null,'conn_id' text not null,'trip_id' text not null,'service_id' text not null,'from_stop_id' text not null,'from_stop_idu' text not null,'from_stop_sidu' text not null,'from_stop_time' int not null,'from_stop_sequence' int not null,'to_stop_id' text not null,'to_stop_idu' text not null,'to_stop_sidu' text not null,'to_stop_time' int not null,'to_stop_sequence' int not null,unique(feed_id,conn_id)) 2024/11/19 00:48:21 Execute statement: create table if not exists _ctcaltoservice ('feed_id' int not null,'service_date' int not null,'service_id' text not null) 2024/11/19 00:48:21 Execute statement: create table if not exists _cttransfersgen ('feed_id' int not null,'feed_id_pair' int not null,'from_stop_id' text not null,'to_stop_id' text not null,'from_stop_idu' text not null,'to_stop_idu' text not null,'from_stop_sidu' text not null,'to_stop_sidu' text not null,'dist_km' real) 2024/11/19 00:48:21 Loading schema tables ok 2024/11/19 00:48:21 Loading schema indexes 2024/11/19 00:48:21 Create index idx_agency1_agency_timezone on agency as [agency_timezone] 2024/11/19 00:48:21 Created index idx_agency1_agency_timezone ok 2024/11/19 00:48:21 Create index idx_stop_times1_departure_time on stop_times as [departure_time] 2024/11/19 00:48:21 Created index idx_stop_times1_departure_time ok 2024/11/19 00:48:21 Create index idx_stop_times1_trip_id on stop_times as [trip_id] 2024/11/19 00:48:21 Created index idx_stop_times1_trip_id ok 2024/11/19 00:48:21 Create index idx_stops2_feed_id_stop_id on stops as [feed_id stop_id] 2024/11/19 00:48:21 Created index idx_stops2_feed_id_stop_id ok 2024/11/19 00:48:21 Create index idx_stops2_stop_lat_stop_lon on stops as [stop_lat stop_lon] 2024/11/19 00:48:21 Created index idx_stops2_stop_lat_stop_lon ok 2024/11/19 00:48:21 Create index idx_stops3_feed_id_parent_station_location_type on stops as [feed_id parent_station location_type] 2024/11/19 00:48:21 Created index idx_stops3_feed_id_parent_station_location_type ok 2024/11/19 00:48:21 Create index idx_transfers2_feed_id_from_stop_id on transfers as [feed_id from_stop_id] 2024/11/19 00:48:21 Created index idx_transfers2_feed_id_from_stop_id ok 2024/11/19 00:48:21 Create index idx_transfers2_feed_id_to_stop_id on transfers as [feed_id to_stop_id] 2024/11/19 00:48:21 Created index idx_transfers2_feed_id_to_stop_id ok 2024/11/19 00:48:21 Create index idx__ctconn3_feed_id_service_id_from_stop_time on _ctconn as [feed_id service_id from_stop_time] 2024/11/19 00:48:21 Created index idx__ctconn3_feed_id_service_id_from_stop_time ok 2024/11/19 00:48:21 Create index idx__ctconn3_feed_id_from_stop_sidu_from_stop_time on _ctconn as [feed_id from_stop_sidu from_stop_time] 2024/11/19 00:48:21 Created index idx__ctconn3_feed_id_from_stop_sidu_from_stop_time ok 2024/11/19 00:48:21 Create index idx__ctcaltoservice3_feed_id_service_id_service_date on _ctcaltoservice as [feed_id service_id service_date] 2024/11/19 00:48:21 Created index idx__ctcaltoservice3_feed_id_service_id_service_date ok 2024/11/19 00:48:21 Create index idx__ctcaltoservice2_feed_id_service_date on _ctcaltoservice as [feed_id service_date] 2024/11/19 00:48:21 Created index idx__ctcaltoservice2_feed_id_service_date ok 2024/11/19 00:48:21 Loading schema indexes ok 2024/11/19 00:48:21 Loading views ok 2024/11/19 00:48:21 Loaded view _vfeedsminmaxdates (bytes=251) 2024/11/19 00:48:21 Loaded view _vfeedsmetadata (bytes=3676) 2024/11/19 00:48:21 Loaded view _vstopparent (bytes=2600) 2024/11/19 00:48:21 Loaded view _vconn (bytes=1201) 2024/11/19 00:48:21 Loaded view _vconnverbose (bytes=1122) 2024/11/19 00:48:21 Loaded view _vcaltoservice (bytes=3110) 2024/11/19 00:48:21 Loaded view _vtransferstbl (bytes=933) 2024/11/19 00:48:21 Loaded view _vtransfersgen (bytes=1523) 2024/11/19 00:48:21 Loaded view _vtransfersimplicit (bytes=371) 2024/11/19 00:48:21 Loading views ok 2024/11/19 00:48:21 Importing table from //tmp/mobroute_test_mobdb_3405339399.csv (0.00MB) to table: _gtfssource_mdbcsv 2024/11/19 00:48:21 Last checksum vs current: / C_0M_eeac450016ad7f07ceacb08153401f62856c2da9a82b0a24b08a604804c40ef1; import will occur 2024/11/19 00:48:21 Execute insert query: 2024/11/19 00:48:21 Insert query complete 2024/11/19 00:48:21 Imported 1 rows into _gtfssource_mdbcsv ok 2024/11/19 00:48:21 Imported table from //tmp/mobroute_test_mobdb_3405339399.csv to table: _gtfssource_mdbcsv ok 2024/11/19 00:48:21 Running RTDatabase against input: {"feed_ids":[42],"op":"load"} 2024/11/19 00:48:21 Running Load against 1 feeds 2024/11/19 00:48:21 Loading GTFS feed 42 (1 of 1) 2024/11/19 00:48:21 Loading /tmp/740918617.zip to DB with GTFS feed: 42 2024/11/19 00:48:21 Loaded GTFS Archive /tmp/740918617.zip to temporary directory: /tmp/mobroute_tempdir855025520 2024/11/19 00:48:21 Loading table: agency 2024/11/19 00:48:21 Importing table from /tmp/mobroute_tempdir855025520/agency.txt (0.00MB) to table: agency 2024/11/19 00:48:21 Last checksum vs current: / C_0M_c15705f0e743a50086d3c871e24b6165b3b4d723a3f96445f676c4216a2fcd14; import will occur 2024/11/19 00:48:21 Execute insert query: 2024/11/19 00:48:21 Insert query complete 2024/11/19 00:48:21 Imported 1 rows into agency ok 2024/11/19 00:48:21 Imported table from /tmp/mobroute_tempdir855025520/agency.txt to table: agency ok 2024/11/19 00:48:21 Loading table: agency complete 2024/11/19 00:48:21 Loading table: calendar 2024/11/19 00:48:21 Importing table from /tmp/mobroute_tempdir855025520/calendar.txt (0.00MB) to table: calendar 2024/11/19 00:48:21 Last checksum vs current: / C_0M_124e46e20a21debc5240cba81ffd1f420ad3546f91373ae55886e911b19b2608; import will occur 2024/11/19 00:48:21 Execute insert query: 2024/11/19 00:48:21 Insert query complete 2024/11/19 00:48:21 Imported 2 rows into calendar ok 2024/11/19 00:48:21 Imported table from /tmp/mobroute_tempdir855025520/calendar.txt to table: calendar ok 2024/11/19 00:48:21 Loading table: calendar complete 2024/11/19 00:48:21 Loading table: calendar_dates 2024/11/19 00:48:21 Importing table from /tmp/mobroute_tempdir855025520/calendar_dates.txt (0.00MB) to table: calendar_dates 2024/11/19 00:48:21 Skipped import for non-existant non-required file: /tmp/mobroute_tempdir855025520/calendar_dates.txt 2024/11/19 00:48:21 Loading table: calendar_dates complete 2024/11/19 00:48:21 Loading table: stop_times 2024/11/19 00:48:21 Importing table from /tmp/mobroute_tempdir855025520/stop_times.txt (0.00MB) to table: stop_times 2024/11/19 00:48:21 Last checksum vs current: / C_0M_d9bce8ae7ee7dfa8ffc2951ca370d0c3a5e3a3b34a234791d52a7ee735613704; import will occur 2024/11/19 00:48:21 Execute insert query: 2024/11/19 00:48:21 Insert query complete 2024/11/19 00:48:21 Imported 4 rows into stop_times ok 2024/11/19 00:48:21 Imported table from /tmp/mobroute_tempdir855025520/stop_times.txt to table: stop_times ok 2024/11/19 00:48:21 Loading table: stop_times complete 2024/11/19 00:48:21 Loading table: stops 2024/11/19 00:48:21 Importing table from /tmp/mobroute_tempdir855025520/stops.txt (0.00MB) to table: stops 2024/11/19 00:48:21 Last checksum vs current: / C_0M_0a1e1a76e511685c15e5b6fbd35e233bbdcaba3f388e7381cc9e2bc2e0233b07; import will occur 2024/11/19 00:48:21 Execute insert query: 2024/11/19 00:48:21 Insert query complete 2024/11/19 00:48:21 Imported 5 rows into stops ok 2024/11/19 00:48:21 Imported table from /tmp/mobroute_tempdir855025520/stops.txt to table: stops ok 2024/11/19 00:48:21 Loading table: stops complete 2024/11/19 00:48:21 Loading table: trips 2024/11/19 00:48:21 Importing table from /tmp/mobroute_tempdir855025520/trips.txt (0.00MB) to table: trips 2024/11/19 00:48:21 Last checksum vs current: / C_0M_192859d996a594c799ed78e3d50de8364a2d585195de939c4e1c218633e55290; import will occur 2024/11/19 00:48:21 Execute insert query: 2024/11/19 00:48:21 Insert query complete 2024/11/19 00:48:21 Imported 2 rows into trips ok 2024/11/19 00:48:21 Imported table from /tmp/mobroute_tempdir855025520/trips.txt to table: trips ok 2024/11/19 00:48:21 Loading table: trips complete 2024/11/19 00:48:21 Loading table: routes 2024/11/19 00:48:21 Importing table from /tmp/mobroute_tempdir855025520/routes.txt (0.00MB) to table: routes 2024/11/19 00:48:21 Last checksum vs current: / C_0M_a6031af6418607a6e5f51c20eaa22f422664f8d5254c59438ab18ce7e1e97cf8; import will occur 2024/11/19 00:48:21 Execute insert query: 2024/11/19 00:48:21 Insert query complete 2024/11/19 00:48:21 Imported 1 rows into routes ok 2024/11/19 00:48:21 Imported table from /tmp/mobroute_tempdir855025520/routes.txt to table: routes ok 2024/11/19 00:48:21 Loading table: routes complete 2024/11/19 00:48:21 Loading table: transfers 2024/11/19 00:48:21 Importing table from /tmp/mobroute_tempdir855025520/transfers.txt (0.00MB) to table: transfers 2024/11/19 00:48:21 Skipped import for non-existant non-required file: /tmp/mobroute_tempdir855025520/transfers.txt 2024/11/19 00:48:21 Loading table: transfers complete 2024/11/19 00:48:21 Loaded /tmp/740918617.zip to DB with GTFS feed: 42 ok 2024/11/19 00:48:21 Loading GTFS feed 42 ok; used cache for URL download (true) 2024/11/19 00:48:21 Running Load against 1 feeds ok 2024/11/19 00:48:21 Running RTDatabase against input: {"feed_ids":[42],"op":"compute"} 2024/11/19 00:48:21 Running Compute against 1 feeds 2024/11/19 00:48:21 Computed table _ctconn for feed (42 ) out of date - updating ('' vs '42:routes:C_0M_a6031af6418607a6e5f51c20eaa22f422664f8d5254c59438ab18ce7e1e97cf8,42:stop_times:C_0M_d9bce8ae7ee7dfa8ffc2951ca370d0c3a5e3a3b34a234791d52a7ee735613704,42:stops:C_0M_0a1e1a76e511685c15e5b6fbd35e233bbdcaba3f388e7381cc9e2bc2e0233b07,42:trips:C_0M_192859d996a594c799ed78e3d50de8364a2d585195de939c4e1c218633e55290') 2024/11/19 00:48:21 Computed table _ctcaltoservice for feed (42 ) out of date - updating ('' vs '42:stops:C_0M_0a1e1a76e511685c15e5b6fbd35e233bbdcaba3f388e7381cc9e2bc2e0233b07') 2024/11/19 00:48:21 Computed table _cttransfersgen for feed (42 0xc000011328) out of date - updating ('' vs '42:stops:C_0M_0a1e1a76e511685c15e5b6fbd35e233bbdcaba3f388e7381cc9e2bc2e0233b07') 2024/11/19 00:48:21 Running Compute against 1 feeds ok 2024/11/19 00:48:21 Loading with inputs as (select ? as yyyymmdddate, ? as seconds_from, ? as seconds_to), tztodelta as (select ? as timezone, ? as seconds), feedidtotzutcdelta as ( -- Note: re distinct, per GTFS spec; if there is >1 agency in agency.txt -- all timezones must be equal; thus 1 feed_id always = 1 timezone -- irregardless of # of agenc(ies) select distinct agency.feed_id, tztodelta.seconds as tzutcdeltasecs from agency join tztodelta on agency.agency_timezone = tztodelta.timezone ), timetable as ( select cts.service_date, -- E.g. normalize from/to stop times in two ways: -- 1) normalize to the input date YYYYMMDD, so if a time departs at 02:00 on monday the following day; -- converted look like 26:00 on the previous day (since all times relative to input YYYYMMDD) -- 2) add the agency's associated timezone UTC delta value so that routing across agencies -- using different timezones functions correctly. All outuput values thus in UTC time -- (cts.service_date - inputs.yyyymmdddate) * (60 * 60 * 24) + con.from_stop_time + tz.tzutcdeltasecs as from_stop_drutctime, (cts.service_date - inputs.yyyymmdddate) * (60 * 60 * 24) + con.to_stop_time + tz.tzutcdeltasecs as to_stop_drutctime, con.* from _ctcaltoservice cts join inputs on ( -- E.g. optimization so we don't have to calculate {from,to}_stop_drutctime for *all* -- timetable entries (should handle both tz shifts & next day for schedule logic) cts.service_date between inputs.yyyymmdddate - 1 and inputs.yyyymmdddate + 1 ) and cts.feed_id in (?) join _vconnverbose con on cts.service_id = con.service_id and cts.feed_id = con.feed_id and from_stop_drutctime between seconds_from and seconds_to join feedidtotzutcdelta tz on con.feed_id = tz.feed_id order by from_stop_drutctime asc, con.from_stop_sequence asc ) select * from timetable where 1 = 1 and conn_id in (?,?) ([20240304 -18000 68400 America/New_York -18000 42 42_trip_foo_up_wk_2 42_trip_foo_up_wk_3]) to memory 2024/11/19 00:48:21 Loaded with inputs as (select ? as yyyymmdddate, ? as seconds_from, ? as seconds_to), tztodelta as (select ? as timezone, ? as seconds), feedidtotzutcdelta as ( -- Note: re distinct, per GTFS spec; if there is >1 agency in agency.txt -- all timezones must be equal; thus 1 feed_id always = 1 timezone -- irregardless of # of agenc(ies) select distinct agency.feed_id, tztodelta.seconds as tzutcdeltasecs from agency join tztodelta on agency.agency_timezone = tztodelta.timezone ), timetable as ( select cts.service_date, -- E.g. normalize from/to stop times in two ways: -- 1) normalize to the input date YYYYMMDD, so if a time departs at 02:00 on monday the following day; -- converted look like 26:00 on the previous day (since all times relative to input YYYYMMDD) -- 2) add the agency's associated timezone UTC delta value so that routing across agencies -- using different timezones functions correctly. All outuput values thus in UTC time -- (cts.service_date - inputs.yyyymmdddate) * (60 * 60 * 24) + con.from_stop_time + tz.tzutcdeltasecs as from_stop_drutctime, (cts.service_date - inputs.yyyymmdddate) * (60 * 60 * 24) + con.to_stop_time + tz.tzutcdeltasecs as to_stop_drutctime, con.* from _ctcaltoservice cts join inputs on ( -- E.g. optimization so we don't have to calculate {from,to}_stop_drutctime for *all* -- timetable entries (should handle both tz shifts & next day for schedule logic) cts.service_date between inputs.yyyymmdddate - 1 and inputs.yyyymmdddate + 1 ) and cts.feed_id in (?) join _vconnverbose con on cts.service_id = con.service_id and cts.feed_id = con.feed_id and from_stop_drutctime between seconds_from and seconds_to join feedidtotzutcdelta tz on con.feed_id = tz.feed_id order by from_stop_drutctime asc, con.from_stop_sequence asc ) select * from timetable where 1 = 1 and conn_id in (?,?) ([20240304 -18000 68400 America/New_York -18000 42 42_trip_foo_up_wk_2 42_trip_foo_up_wk_3]) to memory ok (len=2) 2024/11/19 00:48:21 Generated mock for input (map[42:../testhelper/mockgtfs/gtfs_agency_fmt_multiagencyid.yml]): (gtfs zips: [/tmp/2341888135.zip]) (mobdb csv: /tmp/mobroute_test_mobdb_560412736.csv) 2024/11/19 00:48:21 SQLite system version (3.46.1); comparing to required version: 3.28.0 2024/11/19 00:48:21 Loading schema tables 2024/11/19 00:48:21 Execute statement: create table if not exists _mobsqltrack ('feed_id' int not null,'feed_id_pair' int,'tbl' text not null,'checksum' text not null,'n_rows' int not null,'timestamp' int not null,unique(feed_id,feed_id_pair,tbl)) 2024/11/19 00:48:21 Execute statement: create table if not exists _gtfssource_mdbcsv ('feed_id' int not null check(feed_id = -1),'data_type' text not null,'location.bounding_box.minimum_latitude' real,'location.bounding_box.minimum_longitude' real,'location.bounding_box.maximum_latitude' real,'location.bounding_box.maximum_longitude' real,'location.country_code' text,'location.subdivision_name' text,'location.municipality' text,'urls.latest' text,'urls.license' text,'mdb_source_id' int not null check(mdb_source_id >= 0),'name' text,'status' text,'provider' text not null,unique(mdb_source_id)) 2024/11/19 00:48:21 Execute statement: create table if not exists _gtfssource_custom ('customgtfs_feed_id' int not null check(customgtfs_feed_id < -1),'gtfs_uri' text not null,unique(customgtfs_feed_id)) 2024/11/19 00:48:21 Execute statement: create table if not exists agency ('feed_id' int not null,'agency_id' text,'agency_name' text not null,'agency_url' text not null,'agency_timezone' text not null,unique(feed_id,agency_id)) 2024/11/19 00:48:21 Execute statement: create table if not exists calendar ('feed_id' int not null,'service_id' text not null,'monday' int not null check(monday in (0,1)),'tuesday' int not null check(tuesday in (0,1)),'wednesday' int not null check(wednesday in (0,1)),'thursday' int not null check(thursday in (0,1)),'friday' int not null check(friday in (0,1)),'saturday' int not null check(saturday in (0,1)),'sunday' int not null check(sunday in (0,1)),'start_date' int not null,'end_date' int not null,unique(feed_id,service_id)) 2024/11/19 00:48:21 Execute statement: create table if not exists calendar_dates ('feed_id' int not null,'service_id' text not null,'date' int not null,'exception_type' int not null check(exception_type in (1,2))) 2024/11/19 00:48:21 Execute statement: create table if not exists stop_times ('feed_id' int not null,'trip_id' text not null,'arrival_time' int,'departure_time' int,'stop_id' text not null,'stop_sequence' int not null,'stop_headsign' text,'pickup_type' int,'drop_off_type' int,'continuous_drop_off' text,'timepoint' int check(timepoint in (0,1)),unique(feed_id,trip_id,stop_sequence)) 2024/11/19 00:48:21 Execute statement: create table if not exists stops ('feed_id' int not null,'stop_id' text not null,'stop_code' text,'stop_name' text check( ((location_type is null or location_type = 0 or location_type = 1 or location_type = 2) and stop_name is not null) or (location_type = 3 or location_type = 4) ),'stop_desc' text,'stop_lat' real check( ((location_type is null or location_type = 0 or location_type = 1 or location_type = 2) and stop_lat is not null) or (location_type = 3 or location_type = 4) ),'stop_lon' real check( ((location_type is null or location_type = 0 or location_type = 1 or location_type = 2) and stop_lon is not null) or (location_type = 3 or location_type = 4) ),'zone_id' text,'stop_url' text,'location_type' int check(location_type in (0,1,2,3,4)),'parent_station' text,'stop_timezone' text,'wheelchair_boarding' int check(wheelchair_boarding in (0,1,2)),'level_id' text,'platform_code' text,unique(feed_id,stop_id)) 2024/11/19 00:48:21 Execute statement: create table if not exists trips ('feed_id' int not null,'route_id' text not null,'service_id' text not null,'trip_id' text not null,'trip_headsign' text,'trip_short_name' text,'direction_id' int check(direction_id in (0,1)),'block_id' text,'shape_id' text,'wheelchair_accessible' text check(wheelchair_accessible in (0,1,2)),'bikes_allowed' int check(bikes_allowed in (0,1,2)),unique(feed_id,trip_id)) 2024/11/19 00:48:21 Execute statement: create table if not exists routes ('feed_id' int not null,'route_id' text not null,'agency_id' text,'route_short_name' text check(route_long_name is not null or route_short_name is not null),'route_long_name' text,'route_desc' text,'route_type' int,'route_url' text,'route_color' text,'route_text_color' text,'route_sort_order' text,'continuous_pickup' int check(continuous_pickup in (0,1,2,3)),'continuous_drop_off' int check(continuous_drop_off in (0,1,2,3)),unique(feed_id,route_id)) 2024/11/19 00:48:21 Execute statement: create table if not exists transfers ('feed_id' int not null,'from_stop_id' text not null,'to_stop_id' text not null,'transfer_type' int,'min_transfer_time' int) 2024/11/19 00:48:21 Execute statement: create table if not exists _ctconn ('feed_id' int not null,'conn_id' text not null,'trip_id' text not null,'service_id' text not null,'from_stop_id' text not null,'from_stop_idu' text not null,'from_stop_sidu' text not null,'from_stop_time' int not null,'from_stop_sequence' int not null,'to_stop_id' text not null,'to_stop_idu' text not null,'to_stop_sidu' text not null,'to_stop_time' int not null,'to_stop_sequence' int not null,unique(feed_id,conn_id)) 2024/11/19 00:48:21 Execute statement: create table if not exists _ctcaltoservice ('feed_id' int not null,'service_date' int not null,'service_id' text not null) 2024/11/19 00:48:21 Execute statement: create table if not exists _cttransfersgen ('feed_id' int not null,'feed_id_pair' int not null,'from_stop_id' text not null,'to_stop_id' text not null,'from_stop_idu' text not null,'to_stop_idu' text not null,'from_stop_sidu' text not null,'to_stop_sidu' text not null,'dist_km' real) 2024/11/19 00:48:21 Loading schema tables ok 2024/11/19 00:48:21 Loading schema indexes 2024/11/19 00:48:21 Create index idx_agency1_agency_timezone on agency as [agency_timezone] 2024/11/19 00:48:21 Created index idx_agency1_agency_timezone ok 2024/11/19 00:48:21 Create index idx_stop_times1_departure_time on stop_times as [departure_time] 2024/11/19 00:48:21 Created index idx_stop_times1_departure_time ok 2024/11/19 00:48:21 Create index idx_stop_times1_trip_id on stop_times as [trip_id] 2024/11/19 00:48:21 Created index idx_stop_times1_trip_id ok 2024/11/19 00:48:21 Create index idx_stops2_feed_id_stop_id on stops as [feed_id stop_id] 2024/11/19 00:48:21 Created index idx_stops2_feed_id_stop_id ok 2024/11/19 00:48:21 Create index idx_stops2_stop_lat_stop_lon on stops as [stop_lat stop_lon] 2024/11/19 00:48:21 Created index idx_stops2_stop_lat_stop_lon ok 2024/11/19 00:48:21 Create index idx_stops3_feed_id_parent_station_location_type on stops as [feed_id parent_station location_type] 2024/11/19 00:48:21 Created index idx_stops3_feed_id_parent_station_location_type ok 2024/11/19 00:48:21 Create index idx_transfers2_feed_id_from_stop_id on transfers as [feed_id from_stop_id] 2024/11/19 00:48:21 Created index idx_transfers2_feed_id_from_stop_id ok 2024/11/19 00:48:21 Create index idx_transfers2_feed_id_to_stop_id on transfers as [feed_id to_stop_id] 2024/11/19 00:48:21 Created index idx_transfers2_feed_id_to_stop_id ok 2024/11/19 00:48:21 Create index idx__ctconn3_feed_id_service_id_from_stop_time on _ctconn as [feed_id service_id from_stop_time] 2024/11/19 00:48:21 Created index idx__ctconn3_feed_id_service_id_from_stop_time ok 2024/11/19 00:48:21 Create index idx__ctconn3_feed_id_from_stop_sidu_from_stop_time on _ctconn as [feed_id from_stop_sidu from_stop_time] 2024/11/19 00:48:21 Created index idx__ctconn3_feed_id_from_stop_sidu_from_stop_time ok 2024/11/19 00:48:21 Create index idx__ctcaltoservice3_feed_id_service_id_service_date on _ctcaltoservice as [feed_id service_id service_date] 2024/11/19 00:48:21 Created index idx__ctcaltoservice3_feed_id_service_id_service_date ok 2024/11/19 00:48:21 Create index idx__ctcaltoservice2_feed_id_service_date on _ctcaltoservice as [feed_id service_date] 2024/11/19 00:48:21 Created index idx__ctcaltoservice2_feed_id_service_date ok 2024/11/19 00:48:21 Loading schema indexes ok 2024/11/19 00:48:21 Loading views ok 2024/11/19 00:48:21 Loaded view _vfeedsminmaxdates (bytes=251) 2024/11/19 00:48:21 Loaded view _vfeedsmetadata (bytes=3676) 2024/11/19 00:48:21 Loaded view _vstopparent (bytes=2600) 2024/11/19 00:48:21 Loaded view _vconn (bytes=1201) 2024/11/19 00:48:21 Loaded view _vconnverbose (bytes=1122) 2024/11/19 00:48:21 Loaded view _vcaltoservice (bytes=3110) 2024/11/19 00:48:21 Loaded view _vtransferstbl (bytes=933) 2024/11/19 00:48:21 Loaded view _vtransfersgen (bytes=1523) 2024/11/19 00:48:21 Loaded view _vtransfersimplicit (bytes=371) 2024/11/19 00:48:21 Loading views ok 2024/11/19 00:48:21 Importing table from //tmp/mobroute_test_mobdb_560412736.csv (0.00MB) to table: _gtfssource_mdbcsv 2024/11/19 00:48:21 Last checksum vs current: / C_0M_7bd75dba6fbc8a1c5b85adfded3ab1cec0c17135900c2aced12d9cee8b57a072; import will occur 2024/11/19 00:48:21 Execute insert query: 2024/11/19 00:48:21 Insert query complete 2024/11/19 00:48:21 Imported 1 rows into _gtfssource_mdbcsv ok 2024/11/19 00:48:21 Imported table from //tmp/mobroute_test_mobdb_560412736.csv to table: _gtfssource_mdbcsv ok 2024/11/19 00:48:21 Running RTDatabase against input: {"feed_ids":[42],"op":"load"} 2024/11/19 00:48:21 Running Load against 1 feeds 2024/11/19 00:48:21 Loading GTFS feed 42 (1 of 1) 2024/11/19 00:48:21 Loading /tmp/2341888135.zip to DB with GTFS feed: 42 2024/11/19 00:48:21 Loaded GTFS Archive /tmp/2341888135.zip to temporary directory: /tmp/mobroute_tempdir1672650009 2024/11/19 00:48:21 Loading table: agency 2024/11/19 00:48:21 Importing table from /tmp/mobroute_tempdir1672650009/agency.txt (0.00MB) to table: agency 2024/11/19 00:48:21 Last checksum vs current: / C_0M_1b19c5b299e31d8d1cfefb7e48146986c62c848400fef102c60695b4f0775d32; import will occur 2024/11/19 00:48:21 Execute insert query: 2024/11/19 00:48:21 Insert query complete 2024/11/19 00:48:21 Imported 3 rows into agency ok 2024/11/19 00:48:21 Imported table from /tmp/mobroute_tempdir1672650009/agency.txt to table: agency ok 2024/11/19 00:48:21 Loading table: agency complete 2024/11/19 00:48:21 Loading table: calendar 2024/11/19 00:48:21 Importing table from /tmp/mobroute_tempdir1672650009/calendar.txt (0.00MB) to table: calendar 2024/11/19 00:48:21 Last checksum vs current: / C_0M_124e46e20a21debc5240cba81ffd1f420ad3546f91373ae55886e911b19b2608; import will occur 2024/11/19 00:48:21 Execute insert query: 2024/11/19 00:48:21 Insert query complete 2024/11/19 00:48:21 Imported 2 rows into calendar ok 2024/11/19 00:48:21 Imported table from /tmp/mobroute_tempdir1672650009/calendar.txt to table: calendar ok 2024/11/19 00:48:21 Loading table: calendar complete 2024/11/19 00:48:21 Loading table: calendar_dates 2024/11/19 00:48:21 Importing table from /tmp/mobroute_tempdir1672650009/calendar_dates.txt (0.00MB) to table: calendar_dates 2024/11/19 00:48:21 Skipped import for non-existant non-required file: /tmp/mobroute_tempdir1672650009/calendar_dates.txt 2024/11/19 00:48:21 Loading table: calendar_dates complete 2024/11/19 00:48:21 Loading table: stop_times 2024/11/19 00:48:21 Importing table from /tmp/mobroute_tempdir1672650009/stop_times.txt (0.00MB) to table: stop_times 2024/11/19 00:48:21 Last checksum vs current: / C_0M_f388cfe714ea19d79a0718f2ec6d011ba3747eafdd8040ca160d14b293599e76; import will occur 2024/11/19 00:48:21 Execute insert query: 2024/11/19 00:48:21 Insert query complete 2024/11/19 00:48:21 Imported 8 rows into stop_times ok 2024/11/19 00:48:21 Imported table from /tmp/mobroute_tempdir1672650009/stop_times.txt to table: stop_times ok 2024/11/19 00:48:21 Loading table: stop_times complete 2024/11/19 00:48:21 Loading table: stops 2024/11/19 00:48:21 Importing table from /tmp/mobroute_tempdir1672650009/stops.txt (0.00MB) to table: stops 2024/11/19 00:48:21 Last checksum vs current: / C_0M_0a1e1a76e511685c15e5b6fbd35e233bbdcaba3f388e7381cc9e2bc2e0233b07; import will occur 2024/11/19 00:48:21 Execute insert query: 2024/11/19 00:48:21 Insert query complete 2024/11/19 00:48:21 Imported 5 rows into stops ok 2024/11/19 00:48:21 Imported table from /tmp/mobroute_tempdir1672650009/stops.txt to table: stops ok 2024/11/19 00:48:21 Loading table: stops complete 2024/11/19 00:48:21 Loading table: trips 2024/11/19 00:48:21 Importing table from /tmp/mobroute_tempdir1672650009/trips.txt (0.00MB) to table: trips 2024/11/19 00:48:21 Last checksum vs current: / C_0M_40b68a8b536ba5a4e14df14dd606ca3b047f7521077c9aa948e99b2d8615e2ff; import will occur 2024/11/19 00:48:21 Execute insert query: 2024/11/19 00:48:21 Insert query complete 2024/11/19 00:48:21 Imported 2 rows into trips ok 2024/11/19 00:48:21 Imported table from /tmp/mobroute_tempdir1672650009/trips.txt to table: trips ok 2024/11/19 00:48:21 Loading table: trips complete 2024/11/19 00:48:21 Loading table: routes 2024/11/19 00:48:21 Importing table from /tmp/mobroute_tempdir1672650009/routes.txt (0.00MB) to table: routes 2024/11/19 00:48:21 Last checksum vs current: / C_0M_d6791ceda8f344e670681056012480211612142eddb7ea00221f228f63f5c4a2; import will occur 2024/11/19 00:48:21 Execute insert query: 2024/11/19 00:48:21 Insert query complete 2024/11/19 00:48:21 Imported 2 rows into routes ok 2024/11/19 00:48:21 Imported table from /tmp/mobroute_tempdir1672650009/routes.txt to table: routes ok 2024/11/19 00:48:21 Loading table: routes complete 2024/11/19 00:48:21 Loading table: transfers 2024/11/19 00:48:21 Importing table from /tmp/mobroute_tempdir1672650009/transfers.txt (0.00MB) to table: transfers 2024/11/19 00:48:21 Skipped import for non-existant non-required file: /tmp/mobroute_tempdir1672650009/transfers.txt 2024/11/19 00:48:21 Loading table: transfers complete 2024/11/19 00:48:21 Loaded /tmp/2341888135.zip to DB with GTFS feed: 42 ok 2024/11/19 00:48:21 Loading GTFS feed 42 ok; used cache for URL download (true) 2024/11/19 00:48:21 Running Load against 1 feeds ok 2024/11/19 00:48:21 Running RTDatabase against input: {"feed_ids":[42],"op":"compute"} 2024/11/19 00:48:21 Running Compute against 1 feeds 2024/11/19 00:48:21 Computed table _ctconn for feed (42 ) out of date - updating ('' vs '42:routes:C_0M_d6791ceda8f344e670681056012480211612142eddb7ea00221f228f63f5c4a2,42:stop_times:C_0M_f388cfe714ea19d79a0718f2ec6d011ba3747eafdd8040ca160d14b293599e76,42:stops:C_0M_0a1e1a76e511685c15e5b6fbd35e233bbdcaba3f388e7381cc9e2bc2e0233b07,42:trips:C_0M_40b68a8b536ba5a4e14df14dd606ca3b047f7521077c9aa948e99b2d8615e2ff') 2024/11/19 00:48:21 Computed table _ctcaltoservice for feed (42 ) out of date - updating ('' vs '42:stops:C_0M_0a1e1a76e511685c15e5b6fbd35e233bbdcaba3f388e7381cc9e2bc2e0233b07') 2024/11/19 00:48:21 Computed table _cttransfersgen for feed (42 0xc0002f6958) out of date - updating ('' vs '42:stops:C_0M_0a1e1a76e511685c15e5b6fbd35e233bbdcaba3f388e7381cc9e2bc2e0233b07') 2024/11/19 00:48:21 Running Compute against 1 feeds ok 2024/11/19 00:48:21 Loading with inputs as (select ? as yyyymmdddate, ? as seconds_from, ? as seconds_to), tztodelta as (select ? as timezone, ? as seconds), feedidtotzutcdelta as ( -- Note: re distinct, per GTFS spec; if there is >1 agency in agency.txt -- all timezones must be equal; thus 1 feed_id always = 1 timezone -- irregardless of # of agenc(ies) select distinct agency.feed_id, tztodelta.seconds as tzutcdeltasecs from agency join tztodelta on agency.agency_timezone = tztodelta.timezone ), timetable as ( select cts.service_date, -- E.g. normalize from/to stop times in two ways: -- 1) normalize to the input date YYYYMMDD, so if a time departs at 02:00 on monday the following day; -- converted look like 26:00 on the previous day (since all times relative to input YYYYMMDD) -- 2) add the agency's associated timezone UTC delta value so that routing across agencies -- using different timezones functions correctly. All outuput values thus in UTC time -- (cts.service_date - inputs.yyyymmdddate) * (60 * 60 * 24) + con.from_stop_time + tz.tzutcdeltasecs as from_stop_drutctime, (cts.service_date - inputs.yyyymmdddate) * (60 * 60 * 24) + con.to_stop_time + tz.tzutcdeltasecs as to_stop_drutctime, con.* from _ctcaltoservice cts join inputs on ( -- E.g. optimization so we don't have to calculate {from,to}_stop_drutctime for *all* -- timetable entries (should handle both tz shifts & next day for schedule logic) cts.service_date between inputs.yyyymmdddate - 1 and inputs.yyyymmdddate + 1 ) and cts.feed_id in (?) join _vconnverbose con on cts.service_id = con.service_id and cts.feed_id = con.feed_id and from_stop_drutctime between seconds_from and seconds_to join feedidtotzutcdelta tz on con.feed_id = tz.feed_id order by from_stop_drutctime asc, con.from_stop_sequence asc ) select * from timetable where 1 = 1 and conn_id in (?,?) ([20240304 -18000 68400 America/New_York -18000 42 42_trip_foo_up_wk_2 42_trip_bar_up_wk_3]) to memory 2024/11/19 00:48:21 Loaded with inputs as (select ? as yyyymmdddate, ? as seconds_from, ? as seconds_to), tztodelta as (select ? as timezone, ? as seconds), feedidtotzutcdelta as ( -- Note: re distinct, per GTFS spec; if there is >1 agency in agency.txt -- all timezones must be equal; thus 1 feed_id always = 1 timezone -- irregardless of # of agenc(ies) select distinct agency.feed_id, tztodelta.seconds as tzutcdeltasecs from agency join tztodelta on agency.agency_timezone = tztodelta.timezone ), timetable as ( select cts.service_date, -- E.g. normalize from/to stop times in two ways: -- 1) normalize to the input date YYYYMMDD, so if a time departs at 02:00 on monday the following day; -- converted look like 26:00 on the previous day (since all times relative to input YYYYMMDD) -- 2) add the agency's associated timezone UTC delta value so that routing across agencies -- using different timezones functions correctly. All outuput values thus in UTC time -- (cts.service_date - inputs.yyyymmdddate) * (60 * 60 * 24) + con.from_stop_time + tz.tzutcdeltasecs as from_stop_drutctime, (cts.service_date - inputs.yyyymmdddate) * (60 * 60 * 24) + con.to_stop_time + tz.tzutcdeltasecs as to_stop_drutctime, con.* from _ctcaltoservice cts join inputs on ( -- E.g. optimization so we don't have to calculate {from,to}_stop_drutctime for *all* -- timetable entries (should handle both tz shifts & next day for schedule logic) cts.service_date between inputs.yyyymmdddate - 1 and inputs.yyyymmdddate + 1 ) and cts.feed_id in (?) join _vconnverbose con on cts.service_id = con.service_id and cts.feed_id = con.feed_id and from_stop_drutctime between seconds_from and seconds_to join feedidtotzutcdelta tz on con.feed_id = tz.feed_id order by from_stop_drutctime asc, con.from_stop_sequence asc ) select * from timetable where 1 = 1 and conn_id in (?,?) ([20240304 -18000 68400 America/New_York -18000 42 42_trip_foo_up_wk_2 42_trip_bar_up_wk_3]) to memory ok (len=2) --- PASS: Test_LoadConnectionsVerbose (0.07s) === RUN Test_LoadStopWalks 2024/11/19 00:48:21 Generated mock for input (map[42:../testhelper/mockgtfs/gtfs_simple_stops.yml]): (gtfs zips: [/tmp/3253446467.zip]) (mobdb csv: /tmp/mobroute_test_mobdb_1585073794.csv) 2024/11/19 00:48:21 SQLite system version (3.46.1); comparing to required version: 3.28.0 2024/11/19 00:48:21 Loading schema tables 2024/11/19 00:48:21 Execute statement: create table if not exists _mobsqltrack ('feed_id' int not null,'feed_id_pair' int,'tbl' text not null,'checksum' text not null,'n_rows' int not null,'timestamp' int not null,unique(feed_id,feed_id_pair,tbl)) 2024/11/19 00:48:21 Execute statement: create table if not exists _gtfssource_mdbcsv ('feed_id' int not null check(feed_id = -1),'data_type' text not null,'location.bounding_box.minimum_latitude' real,'location.bounding_box.minimum_longitude' real,'location.bounding_box.maximum_latitude' real,'location.bounding_box.maximum_longitude' real,'location.country_code' text,'location.subdivision_name' text,'location.municipality' text,'urls.latest' text,'urls.license' text,'mdb_source_id' int not null check(mdb_source_id >= 0),'name' text,'status' text,'provider' text not null,unique(mdb_source_id)) 2024/11/19 00:48:21 Execute statement: create table if not exists _gtfssource_custom ('customgtfs_feed_id' int not null check(customgtfs_feed_id < -1),'gtfs_uri' text not null,unique(customgtfs_feed_id)) 2024/11/19 00:48:21 Execute statement: create table if not exists agency ('feed_id' int not null,'agency_id' text,'agency_name' text not null,'agency_url' text not null,'agency_timezone' text not null,unique(feed_id,agency_id)) 2024/11/19 00:48:21 Execute statement: create table if not exists calendar ('feed_id' int not null,'service_id' text not null,'monday' int not null check(monday in (0,1)),'tuesday' int not null check(tuesday in (0,1)),'wednesday' int not null check(wednesday in (0,1)),'thursday' int not null check(thursday in (0,1)),'friday' int not null check(friday in (0,1)),'saturday' int not null check(saturday in (0,1)),'sunday' int not null check(sunday in (0,1)),'start_date' int not null,'end_date' int not null,unique(feed_id,service_id)) 2024/11/19 00:48:21 Execute statement: create table if not exists calendar_dates ('feed_id' int not null,'service_id' text not null,'date' int not null,'exception_type' int not null check(exception_type in (1,2))) 2024/11/19 00:48:21 Execute statement: create table if not exists stop_times ('feed_id' int not null,'trip_id' text not null,'arrival_time' int,'departure_time' int,'stop_id' text not null,'stop_sequence' int not null,'stop_headsign' text,'pickup_type' int,'drop_off_type' int,'continuous_drop_off' text,'timepoint' int check(timepoint in (0,1)),unique(feed_id,trip_id,stop_sequence)) 2024/11/19 00:48:21 Execute statement: create table if not exists stops ('feed_id' int not null,'stop_id' text not null,'stop_code' text,'stop_name' text check( ((location_type is null or location_type = 0 or location_type = 1 or location_type = 2) and stop_name is not null) or (location_type = 3 or location_type = 4) ),'stop_desc' text,'stop_lat' real check( ((location_type is null or location_type = 0 or location_type = 1 or location_type = 2) and stop_lat is not null) or (location_type = 3 or location_type = 4) ),'stop_lon' real check( ((location_type is null or location_type = 0 or location_type = 1 or location_type = 2) and stop_lon is not null) or (location_type = 3 or location_type = 4) ),'zone_id' text,'stop_url' text,'location_type' int check(location_type in (0,1,2,3,4)),'parent_station' text,'stop_timezone' text,'wheelchair_boarding' int check(wheelchair_boarding in (0,1,2)),'level_id' text,'platform_code' text,unique(feed_id,stop_id)) 2024/11/19 00:48:21 Execute statement: create table if not exists trips ('feed_id' int not null,'route_id' text not null,'service_id' text not null,'trip_id' text not null,'trip_headsign' text,'trip_short_name' text,'direction_id' int check(direction_id in (0,1)),'block_id' text,'shape_id' text,'wheelchair_accessible' text check(wheelchair_accessible in (0,1,2)),'bikes_allowed' int check(bikes_allowed in (0,1,2)),unique(feed_id,trip_id)) 2024/11/19 00:48:21 Execute statement: create table if not exists routes ('feed_id' int not null,'route_id' text not null,'agency_id' text,'route_short_name' text check(route_long_name is not null or route_short_name is not null),'route_long_name' text,'route_desc' text,'route_type' int,'route_url' text,'route_color' text,'route_text_color' text,'route_sort_order' text,'continuous_pickup' int check(continuous_pickup in (0,1,2,3)),'continuous_drop_off' int check(continuous_drop_off in (0,1,2,3)),unique(feed_id,route_id)) 2024/11/19 00:48:21 Execute statement: create table if not exists transfers ('feed_id' int not null,'from_stop_id' text not null,'to_stop_id' text not null,'transfer_type' int,'min_transfer_time' int) 2024/11/19 00:48:21 Execute statement: create table if not exists _ctconn ('feed_id' int not null,'conn_id' text not null,'trip_id' text not null,'service_id' text not null,'from_stop_id' text not null,'from_stop_idu' text not null,'from_stop_sidu' text not null,'from_stop_time' int not null,'from_stop_sequence' int not null,'to_stop_id' text not null,'to_stop_idu' text not null,'to_stop_sidu' text not null,'to_stop_time' int not null,'to_stop_sequence' int not null,unique(feed_id,conn_id)) 2024/11/19 00:48:21 Execute statement: create table if not exists _ctcaltoservice ('feed_id' int not null,'service_date' int not null,'service_id' text not null) 2024/11/19 00:48:21 Execute statement: create table if not exists _cttransfersgen ('feed_id' int not null,'feed_id_pair' int not null,'from_stop_id' text not null,'to_stop_id' text not null,'from_stop_idu' text not null,'to_stop_idu' text not null,'from_stop_sidu' text not null,'to_stop_sidu' text not null,'dist_km' real) 2024/11/19 00:48:21 Loading schema tables ok 2024/11/19 00:48:21 Loading schema indexes 2024/11/19 00:48:21 Create index idx_agency1_agency_timezone on agency as [agency_timezone] 2024/11/19 00:48:21 Created index idx_agency1_agency_timezone ok 2024/11/19 00:48:21 Create index idx_stop_times1_departure_time on stop_times as [departure_time] 2024/11/19 00:48:21 Created index idx_stop_times1_departure_time ok 2024/11/19 00:48:21 Create index idx_stop_times1_trip_id on stop_times as [trip_id] 2024/11/19 00:48:21 Created index idx_stop_times1_trip_id ok 2024/11/19 00:48:21 Create index idx_stops2_feed_id_stop_id on stops as [feed_id stop_id] 2024/11/19 00:48:21 Created index idx_stops2_feed_id_stop_id ok 2024/11/19 00:48:21 Create index idx_stops2_stop_lat_stop_lon on stops as [stop_lat stop_lon] 2024/11/19 00:48:21 Created index idx_stops2_stop_lat_stop_lon ok 2024/11/19 00:48:21 Create index idx_stops3_feed_id_parent_station_location_type on stops as [feed_id parent_station location_type] 2024/11/19 00:48:21 Created index idx_stops3_feed_id_parent_station_location_type ok 2024/11/19 00:48:21 Create index idx_transfers2_feed_id_from_stop_id on transfers as [feed_id from_stop_id] 2024/11/19 00:48:21 Created index idx_transfers2_feed_id_from_stop_id ok 2024/11/19 00:48:21 Create index idx_transfers2_feed_id_to_stop_id on transfers as [feed_id to_stop_id] 2024/11/19 00:48:21 Created index idx_transfers2_feed_id_to_stop_id ok 2024/11/19 00:48:21 Create index idx__ctconn3_feed_id_service_id_from_stop_time on _ctconn as [feed_id service_id from_stop_time] 2024/11/19 00:48:21 Created index idx__ctconn3_feed_id_service_id_from_stop_time ok 2024/11/19 00:48:21 Create index idx__ctconn3_feed_id_from_stop_sidu_from_stop_time on _ctconn as [feed_id from_stop_sidu from_stop_time] 2024/11/19 00:48:21 Created index idx__ctconn3_feed_id_from_stop_sidu_from_stop_time ok 2024/11/19 00:48:21 Create index idx__ctcaltoservice3_feed_id_service_id_service_date on _ctcaltoservice as [feed_id service_id service_date] 2024/11/19 00:48:21 Created index idx__ctcaltoservice3_feed_id_service_id_service_date ok 2024/11/19 00:48:21 Create index idx__ctcaltoservice2_feed_id_service_date on _ctcaltoservice as [feed_id service_date] 2024/11/19 00:48:21 Created index idx__ctcaltoservice2_feed_id_service_date ok 2024/11/19 00:48:21 Loading schema indexes ok 2024/11/19 00:48:21 Loading views ok 2024/11/19 00:48:21 Loaded view _vfeedsminmaxdates (bytes=251) 2024/11/19 00:48:21 Loaded view _vfeedsmetadata (bytes=3676) 2024/11/19 00:48:21 Loaded view _vstopparent (bytes=2600) 2024/11/19 00:48:21 Loaded view _vconn (bytes=1201) 2024/11/19 00:48:21 Loaded view _vconnverbose (bytes=1122) 2024/11/19 00:48:21 Loaded view _vcaltoservice (bytes=3110) 2024/11/19 00:48:21 Loaded view _vtransferstbl (bytes=933) 2024/11/19 00:48:21 Loaded view _vtransfersgen (bytes=1523) 2024/11/19 00:48:21 Loaded view _vtransfersimplicit (bytes=371) 2024/11/19 00:48:21 Loading views ok 2024/11/19 00:48:21 Importing table from //tmp/mobroute_test_mobdb_1585073794.csv (0.00MB) to table: _gtfssource_mdbcsv 2024/11/19 00:48:21 Last checksum vs current: / C_0M_b4f9383f8533b65c455d975fceff1e3ac6b049b3ba128fe40e22f6dc490a6d29; import will occur 2024/11/19 00:48:21 Execute insert query: 2024/11/19 00:48:21 Insert query complete 2024/11/19 00:48:21 Imported 1 rows into _gtfssource_mdbcsv ok 2024/11/19 00:48:21 Imported table from //tmp/mobroute_test_mobdb_1585073794.csv to table: _gtfssource_mdbcsv ok 2024/11/19 00:48:21 Running RTDatabase against input: {"feed_ids":[42],"op":"load"} 2024/11/19 00:48:21 Running Load against 1 feeds 2024/11/19 00:48:21 Loading GTFS feed 42 (1 of 1) 2024/11/19 00:48:21 Loading /tmp/3253446467.zip to DB with GTFS feed: 42 2024/11/19 00:48:21 Loaded GTFS Archive /tmp/3253446467.zip to temporary directory: /tmp/mobroute_tempdir1357215916 2024/11/19 00:48:21 Loading table: agency 2024/11/19 00:48:21 Importing table from /tmp/mobroute_tempdir1357215916/agency.txt (0.00MB) to table: agency 2024/11/19 00:48:21 Last checksum vs current: / C_0M_ec69cc35698113d39b116d06df83c168ff34eec1dd5daa90136c2ccdddd57966; import will occur 2024/11/19 00:48:21 Execute insert query: 2024/11/19 00:48:21 Insert query complete 2024/11/19 00:48:21 Imported 1 rows into agency ok 2024/11/19 00:48:21 Imported table from /tmp/mobroute_tempdir1357215916/agency.txt to table: agency ok 2024/11/19 00:48:21 Loading table: agency complete 2024/11/19 00:48:21 Loading table: calendar 2024/11/19 00:48:21 Importing table from /tmp/mobroute_tempdir1357215916/calendar.txt (0.00MB) to table: calendar 2024/11/19 00:48:21 Skipped import for non-existant non-required file: /tmp/mobroute_tempdir1357215916/calendar.txt 2024/11/19 00:48:21 Loading table: calendar complete 2024/11/19 00:48:21 Loading table: calendar_dates 2024/11/19 00:48:21 Importing table from /tmp/mobroute_tempdir1357215916/calendar_dates.txt (0.00MB) to table: calendar_dates 2024/11/19 00:48:21 Last checksum vs current: / C_0M_e37e371e5f8c7c355413d55fe59c9054de3dbf0d759f0bcd6ef7968b46cde54e; import will occur 2024/11/19 00:48:21 Execute insert query: 2024/11/19 00:48:21 Insert query complete 2024/11/19 00:48:21 Imported 1 rows into calendar_dates ok 2024/11/19 00:48:21 Imported table from /tmp/mobroute_tempdir1357215916/calendar_dates.txt to table: calendar_dates ok 2024/11/19 00:48:21 Loading table: calendar_dates complete 2024/11/19 00:48:21 Loading table: stop_times 2024/11/19 00:48:21 Importing table from /tmp/mobroute_tempdir1357215916/stop_times.txt (0.00MB) to table: stop_times 2024/11/19 00:48:21 Last checksum vs current: / C_0M_34d5ab6ee7cbb3e04fd82bd1dca86e4daecfa570a11b128209c8e5c102662d0a; import will occur 2024/11/19 00:48:21 Execute insert query: 2024/11/19 00:48:21 Insert query complete 2024/11/19 00:48:21 Imported 1 rows into stop_times ok 2024/11/19 00:48:21 Imported table from /tmp/mobroute_tempdir1357215916/stop_times.txt to table: stop_times ok 2024/11/19 00:48:21 Loading table: stop_times complete 2024/11/19 00:48:21 Loading table: stops 2024/11/19 00:48:21 Importing table from /tmp/mobroute_tempdir1357215916/stops.txt (0.00MB) to table: stops 2024/11/19 00:48:21 Last checksum vs current: / C_0M_658a3f90ef5c5b6b531059c770014493d5c29ff969ad1e41a9df10615e479366; import will occur 2024/11/19 00:48:21 Execute insert query: 2024/11/19 00:48:21 Insert query complete 2024/11/19 00:48:21 Imported 10 rows into stops ok 2024/11/19 00:48:21 Imported table from /tmp/mobroute_tempdir1357215916/stops.txt to table: stops ok 2024/11/19 00:48:21 Loading table: stops complete 2024/11/19 00:48:21 Loading table: trips 2024/11/19 00:48:21 Importing table from /tmp/mobroute_tempdir1357215916/trips.txt (0.00MB) to table: trips 2024/11/19 00:48:21 Last checksum vs current: / C_0M_0391ceb043162a440ba78564cae799b0c9b0004ac42d27290246145bfa780435; import will occur 2024/11/19 00:48:21 Execute insert query: 2024/11/19 00:48:21 Insert query complete 2024/11/19 00:48:21 Imported 1 rows into trips ok 2024/11/19 00:48:21 Imported table from /tmp/mobroute_tempdir1357215916/trips.txt to table: trips ok 2024/11/19 00:48:21 Loading table: trips complete 2024/11/19 00:48:21 Loading table: routes 2024/11/19 00:48:21 Importing table from /tmp/mobroute_tempdir1357215916/routes.txt (0.00MB) to table: routes 2024/11/19 00:48:21 Last checksum vs current: / C_0M_a6031af6418607a6e5f51c20eaa22f422664f8d5254c59438ab18ce7e1e97cf8; import will occur 2024/11/19 00:48:21 Execute insert query: 2024/11/19 00:48:21 Insert query complete 2024/11/19 00:48:21 Imported 1 rows into routes ok 2024/11/19 00:48:21 Imported table from /tmp/mobroute_tempdir1357215916/routes.txt to table: routes ok 2024/11/19 00:48:21 Loading table: routes complete 2024/11/19 00:48:21 Loading table: transfers 2024/11/19 00:48:21 Importing table from /tmp/mobroute_tempdir1357215916/transfers.txt (0.00MB) to table: transfers 2024/11/19 00:48:21 Skipped import for non-existant non-required file: /tmp/mobroute_tempdir1357215916/transfers.txt 2024/11/19 00:48:21 Loading table: transfers complete 2024/11/19 00:48:21 Loaded /tmp/3253446467.zip to DB with GTFS feed: 42 ok 2024/11/19 00:48:21 Loading GTFS feed 42 ok; used cache for URL download (true) 2024/11/19 00:48:21 Running Load against 1 feeds ok 2024/11/19 00:48:21 Running RTDatabase against input: {"feed_ids":[42],"op":"compute"} 2024/11/19 00:48:21 Running Compute against 1 feeds 2024/11/19 00:48:21 Computed table _ctconn for feed (42 ) out of date - updating ('' vs '42:routes:C_0M_a6031af6418607a6e5f51c20eaa22f422664f8d5254c59438ab18ce7e1e97cf8,42:stop_times:C_0M_34d5ab6ee7cbb3e04fd82bd1dca86e4daecfa570a11b128209c8e5c102662d0a,42:stops:C_0M_658a3f90ef5c5b6b531059c770014493d5c29ff969ad1e41a9df10615e479366,42:trips:C_0M_0391ceb043162a440ba78564cae799b0c9b0004ac42d27290246145bfa780435') 2024/11/19 00:48:21 Computed table _ctcaltoservice for feed (42 ) out of date - updating ('' vs '42:stops:C_0M_658a3f90ef5c5b6b531059c770014493d5c29ff969ad1e41a9df10615e479366') 2024/11/19 00:48:21 Computed table _cttransfersgen for feed (42 0xc00045c1f8) out of date - updating ('' vs '42:stops:C_0M_658a3f90ef5c5b6b531059c770014493d5c29ff969ad1e41a9df10615e479366') 2024/11/19 00:48:21 Running Compute against 1 feeds ok 2024/11/19 00:48:21 Loading with input_coord as (select ? as lat, ? as lon), dists as ( select distinct s.feed_id, vsp.feed_id || '_' || vsp.parent_station as stop_sidu, s.stop_name, s.stop_lat, s.stop_lon, 6371.0 * acos( sin(input_coord.lat * pi() / 180.0) * sin(s.stop_lat * pi() / 180.0) + cos(input_coord.lat * pi() / 180.0) * cos(s.stop_lat * pi() / 180.0) * cos((s.stop_lon - input_coord.lon) * pi() / 180.0) ) as dist_km from input_coord join stops s on 1 = 1 join _vstopparent vsp on s.feed_id = vsp.feed_id and vsp.parent_station = s.stop_id order by dist_km asc ) select stop_sidu, stop_name, stop_lat, stop_lon, iif(dist_km > ?, null, dist_km) as dist_km from dists where feed_id in (?) and (length(?) = 0 or lower(stop_sidu || ' ' || stop_name) glob lower('*' || ? || '*')) order by dist_km asc limit ? ([1.1 0.2 50 42 -1]) to memory 2024/11/19 00:48:21 Loaded with input_coord as (select ? as lat, ? as lon), dists as ( select distinct s.feed_id, vsp.feed_id || '_' || vsp.parent_station as stop_sidu, s.stop_name, s.stop_lat, s.stop_lon, 6371.0 * acos( sin(input_coord.lat * pi() / 180.0) * sin(s.stop_lat * pi() / 180.0) + cos(input_coord.lat * pi() / 180.0) * cos(s.stop_lat * pi() / 180.0) * cos((s.stop_lon - input_coord.lon) * pi() / 180.0) ) as dist_km from input_coord join stops s on 1 = 1 join _vstopparent vsp on s.feed_id = vsp.feed_id and vsp.parent_station = s.stop_id order by dist_km asc ) select stop_sidu, stop_name, stop_lat, stop_lon, iif(dist_km > ?, null, dist_km) as dist_km from dists where feed_id in (?) and (length(?) = 0 or lower(stop_sidu || ' ' || stop_name) glob lower('*' || ? || '*')) order by dist_km asc limit ? ([1.1 0.2 50 42 -1]) to memory ok (len=4) 2024/11/19 00:48:21 Generated mock for input (map[42:../testhelper/mockgtfs/gtfs_simple_stops.yml]): (gtfs zips: [/tmp/2185756843.zip]) (mobdb csv: /tmp/mobroute_test_mobdb_2990313888.csv) 2024/11/19 00:48:21 SQLite system version (3.46.1); comparing to required version: 3.28.0 2024/11/19 00:48:21 Loading schema tables 2024/11/19 00:48:21 Execute statement: create table if not exists _mobsqltrack ('feed_id' int not null,'feed_id_pair' int,'tbl' text not null,'checksum' text not null,'n_rows' int not null,'timestamp' int not null,unique(feed_id,feed_id_pair,tbl)) 2024/11/19 00:48:21 Execute statement: create table if not exists _gtfssource_mdbcsv ('feed_id' int not null check(feed_id = -1),'data_type' text not null,'location.bounding_box.minimum_latitude' real,'location.bounding_box.minimum_longitude' real,'location.bounding_box.maximum_latitude' real,'location.bounding_box.maximum_longitude' real,'location.country_code' text,'location.subdivision_name' text,'location.municipality' text,'urls.latest' text,'urls.license' text,'mdb_source_id' int not null check(mdb_source_id >= 0),'name' text,'status' text,'provider' text not null,unique(mdb_source_id)) 2024/11/19 00:48:21 Execute statement: create table if not exists _gtfssource_custom ('customgtfs_feed_id' int not null check(customgtfs_feed_id < -1),'gtfs_uri' text not null,unique(customgtfs_feed_id)) 2024/11/19 00:48:21 Execute statement: create table if not exists agency ('feed_id' int not null,'agency_id' text,'agency_name' text not null,'agency_url' text not null,'agency_timezone' text not null,unique(feed_id,agency_id)) 2024/11/19 00:48:21 Execute statement: create table if not exists calendar ('feed_id' int not null,'service_id' text not null,'monday' int not null check(monday in (0,1)),'tuesday' int not null check(tuesday in (0,1)),'wednesday' int not null check(wednesday in (0,1)),'thursday' int not null check(thursday in (0,1)),'friday' int not null check(friday in (0,1)),'saturday' int not null check(saturday in (0,1)),'sunday' int not null check(sunday in (0,1)),'start_date' int not null,'end_date' int not null,unique(feed_id,service_id)) 2024/11/19 00:48:21 Execute statement: create table if not exists calendar_dates ('feed_id' int not null,'service_id' text not null,'date' int not null,'exception_type' int not null check(exception_type in (1,2))) 2024/11/19 00:48:21 Execute statement: create table if not exists stop_times ('feed_id' int not null,'trip_id' text not null,'arrival_time' int,'departure_time' int,'stop_id' text not null,'stop_sequence' int not null,'stop_headsign' text,'pickup_type' int,'drop_off_type' int,'continuous_drop_off' text,'timepoint' int check(timepoint in (0,1)),unique(feed_id,trip_id,stop_sequence)) 2024/11/19 00:48:21 Execute statement: create table if not exists stops ('feed_id' int not null,'stop_id' text not null,'stop_code' text,'stop_name' text check( ((location_type is null or location_type = 0 or location_type = 1 or location_type = 2) and stop_name is not null) or (location_type = 3 or location_type = 4) ),'stop_desc' text,'stop_lat' real check( ((location_type is null or location_type = 0 or location_type = 1 or location_type = 2) and stop_lat is not null) or (location_type = 3 or location_type = 4) ),'stop_lon' real check( ((location_type is null or location_type = 0 or location_type = 1 or location_type = 2) and stop_lon is not null) or (location_type = 3 or location_type = 4) ),'zone_id' text,'stop_url' text,'location_type' int check(location_type in (0,1,2,3,4)),'parent_station' text,'stop_timezone' text,'wheelchair_boarding' int check(wheelchair_boarding in (0,1,2)),'level_id' text,'platform_code' text,unique(feed_id,stop_id)) 2024/11/19 00:48:21 Execute statement: create table if not exists trips ('feed_id' int not null,'route_id' text not null,'service_id' text not null,'trip_id' text not null,'trip_headsign' text,'trip_short_name' text,'direction_id' int check(direction_id in (0,1)),'block_id' text,'shape_id' text,'wheelchair_accessible' text check(wheelchair_accessible in (0,1,2)),'bikes_allowed' int check(bikes_allowed in (0,1,2)),unique(feed_id,trip_id)) 2024/11/19 00:48:21 Execute statement: create table if not exists routes ('feed_id' int not null,'route_id' text not null,'agency_id' text,'route_short_name' text check(route_long_name is not null or route_short_name is not null),'route_long_name' text,'route_desc' text,'route_type' int,'route_url' text,'route_color' text,'route_text_color' text,'route_sort_order' text,'continuous_pickup' int check(continuous_pickup in (0,1,2,3)),'continuous_drop_off' int check(continuous_drop_off in (0,1,2,3)),unique(feed_id,route_id)) 2024/11/19 00:48:21 Execute statement: create table if not exists transfers ('feed_id' int not null,'from_stop_id' text not null,'to_stop_id' text not null,'transfer_type' int,'min_transfer_time' int) 2024/11/19 00:48:21 Execute statement: create table if not exists _ctconn ('feed_id' int not null,'conn_id' text not null,'trip_id' text not null,'service_id' text not null,'from_stop_id' text not null,'from_stop_idu' text not null,'from_stop_sidu' text not null,'from_stop_time' int not null,'from_stop_sequence' int not null,'to_stop_id' text not null,'to_stop_idu' text not null,'to_stop_sidu' text not null,'to_stop_time' int not null,'to_stop_sequence' int not null,unique(feed_id,conn_id)) 2024/11/19 00:48:21 Execute statement: create table if not exists _ctcaltoservice ('feed_id' int not null,'service_date' int not null,'service_id' text not null) 2024/11/19 00:48:21 Execute statement: create table if not exists _cttransfersgen ('feed_id' int not null,'feed_id_pair' int not null,'from_stop_id' text not null,'to_stop_id' text not null,'from_stop_idu' text not null,'to_stop_idu' text not null,'from_stop_sidu' text not null,'to_stop_sidu' text not null,'dist_km' real) 2024/11/19 00:48:21 Loading schema tables ok 2024/11/19 00:48:21 Loading schema indexes 2024/11/19 00:48:21 Create index idx_agency1_agency_timezone on agency as [agency_timezone] 2024/11/19 00:48:21 Created index idx_agency1_agency_timezone ok 2024/11/19 00:48:21 Create index idx_stop_times1_departure_time on stop_times as [departure_time] 2024/11/19 00:48:21 Created index idx_stop_times1_departure_time ok 2024/11/19 00:48:21 Create index idx_stop_times1_trip_id on stop_times as [trip_id] 2024/11/19 00:48:21 Created index idx_stop_times1_trip_id ok 2024/11/19 00:48:21 Create index idx_stops2_feed_id_stop_id on stops as [feed_id stop_id] 2024/11/19 00:48:21 Created index idx_stops2_feed_id_stop_id ok 2024/11/19 00:48:21 Create index idx_stops2_stop_lat_stop_lon on stops as [stop_lat stop_lon] 2024/11/19 00:48:21 Created index idx_stops2_stop_lat_stop_lon ok 2024/11/19 00:48:21 Create index idx_stops3_feed_id_parent_station_location_type on stops as [feed_id parent_station location_type] 2024/11/19 00:48:21 Created index idx_stops3_feed_id_parent_station_location_type ok 2024/11/19 00:48:21 Create index idx_transfers2_feed_id_from_stop_id on transfers as [feed_id from_stop_id] 2024/11/19 00:48:21 Created index idx_transfers2_feed_id_from_stop_id ok 2024/11/19 00:48:21 Create index idx_transfers2_feed_id_to_stop_id on transfers as [feed_id to_stop_id] 2024/11/19 00:48:21 Created index idx_transfers2_feed_id_to_stop_id ok 2024/11/19 00:48:21 Create index idx__ctconn3_feed_id_service_id_from_stop_time on _ctconn as [feed_id service_id from_stop_time] 2024/11/19 00:48:21 Created index idx__ctconn3_feed_id_service_id_from_stop_time ok 2024/11/19 00:48:21 Create index idx__ctconn3_feed_id_from_stop_sidu_from_stop_time on _ctconn as [feed_id from_stop_sidu from_stop_time] 2024/11/19 00:48:21 Created index idx__ctconn3_feed_id_from_stop_sidu_from_stop_time ok 2024/11/19 00:48:21 Create index idx__ctcaltoservice3_feed_id_service_id_service_date on _ctcaltoservice as [feed_id service_id service_date] 2024/11/19 00:48:21 Created index idx__ctcaltoservice3_feed_id_service_id_service_date ok 2024/11/19 00:48:21 Create index idx__ctcaltoservice2_feed_id_service_date on _ctcaltoservice as [feed_id service_date] 2024/11/19 00:48:21 Created index idx__ctcaltoservice2_feed_id_service_date ok 2024/11/19 00:48:21 Loading schema indexes ok 2024/11/19 00:48:21 Loading views ok 2024/11/19 00:48:21 Loaded view _vfeedsminmaxdates (bytes=251) 2024/11/19 00:48:21 Loaded view _vfeedsmetadata (bytes=3676) 2024/11/19 00:48:21 Loaded view _vstopparent (bytes=2600) 2024/11/19 00:48:21 Loaded view _vconn (bytes=1201) 2024/11/19 00:48:21 Loaded view _vconnverbose (bytes=1122) 2024/11/19 00:48:21 Loaded view _vcaltoservice (bytes=3110) 2024/11/19 00:48:21 Loaded view _vtransferstbl (bytes=933) 2024/11/19 00:48:21 Loaded view _vtransfersgen (bytes=1523) 2024/11/19 00:48:21 Loaded view _vtransfersimplicit (bytes=371) 2024/11/19 00:48:21 Loading views ok 2024/11/19 00:48:21 Importing table from //tmp/mobroute_test_mobdb_2990313888.csv (0.00MB) to table: _gtfssource_mdbcsv 2024/11/19 00:48:21 Last checksum vs current: / C_0M_fcb3146c219bbacc7aae30a071b3af78c935418c982a9ff89b771bc1150494e6; import will occur 2024/11/19 00:48:21 Execute insert query: 2024/11/19 00:48:21 Insert query complete 2024/11/19 00:48:21 Imported 1 rows into _gtfssource_mdbcsv ok 2024/11/19 00:48:21 Imported table from //tmp/mobroute_test_mobdb_2990313888.csv to table: _gtfssource_mdbcsv ok 2024/11/19 00:48:21 Running RTDatabase against input: {"feed_ids":[42],"op":"load"} 2024/11/19 00:48:21 Running Load against 1 feeds 2024/11/19 00:48:21 Loading GTFS feed 42 (1 of 1) 2024/11/19 00:48:21 Loading /tmp/2185756843.zip to DB with GTFS feed: 42 2024/11/19 00:48:21 Loaded GTFS Archive /tmp/2185756843.zip to temporary directory: /tmp/mobroute_tempdir1020334162 2024/11/19 00:48:21 Loading table: agency 2024/11/19 00:48:21 Importing table from /tmp/mobroute_tempdir1020334162/agency.txt (0.00MB) to table: agency 2024/11/19 00:48:21 Last checksum vs current: / C_0M_ec69cc35698113d39b116d06df83c168ff34eec1dd5daa90136c2ccdddd57966; import will occur 2024/11/19 00:48:21 Execute insert query: 2024/11/19 00:48:21 Insert query complete 2024/11/19 00:48:21 Imported 1 rows into agency ok 2024/11/19 00:48:21 Imported table from /tmp/mobroute_tempdir1020334162/agency.txt to table: agency ok 2024/11/19 00:48:21 Loading table: agency complete 2024/11/19 00:48:21 Loading table: calendar 2024/11/19 00:48:21 Importing table from /tmp/mobroute_tempdir1020334162/calendar.txt (0.00MB) to table: calendar 2024/11/19 00:48:21 Skipped import for non-existant non-required file: /tmp/mobroute_tempdir1020334162/calendar.txt 2024/11/19 00:48:21 Loading table: calendar complete 2024/11/19 00:48:21 Loading table: calendar_dates 2024/11/19 00:48:21 Importing table from /tmp/mobroute_tempdir1020334162/calendar_dates.txt (0.00MB) to table: calendar_dates 2024/11/19 00:48:21 Last checksum vs current: / C_0M_e37e371e5f8c7c355413d55fe59c9054de3dbf0d759f0bcd6ef7968b46cde54e; import will occur 2024/11/19 00:48:21 Execute insert query: 2024/11/19 00:48:21 Insert query complete 2024/11/19 00:48:21 Imported 1 rows into calendar_dates ok 2024/11/19 00:48:21 Imported table from /tmp/mobroute_tempdir1020334162/calendar_dates.txt to table: calendar_dates ok 2024/11/19 00:48:21 Loading table: calendar_dates complete 2024/11/19 00:48:21 Loading table: stop_times 2024/11/19 00:48:21 Importing table from /tmp/mobroute_tempdir1020334162/stop_times.txt (0.00MB) to table: stop_times 2024/11/19 00:48:21 Last checksum vs current: / C_0M_34d5ab6ee7cbb3e04fd82bd1dca86e4daecfa570a11b128209c8e5c102662d0a; import will occur 2024/11/19 00:48:21 Execute insert query: 2024/11/19 00:48:21 Insert query complete 2024/11/19 00:48:21 Imported 1 rows into stop_times ok 2024/11/19 00:48:21 Imported table from /tmp/mobroute_tempdir1020334162/stop_times.txt to table: stop_times ok 2024/11/19 00:48:21 Loading table: stop_times complete 2024/11/19 00:48:21 Loading table: stops 2024/11/19 00:48:21 Importing table from /tmp/mobroute_tempdir1020334162/stops.txt (0.00MB) to table: stops 2024/11/19 00:48:21 Last checksum vs current: / C_0M_658a3f90ef5c5b6b531059c770014493d5c29ff969ad1e41a9df10615e479366; import will occur 2024/11/19 00:48:21 Execute insert query: 2024/11/19 00:48:21 Insert query complete 2024/11/19 00:48:21 Imported 10 rows into stops ok 2024/11/19 00:48:21 Imported table from /tmp/mobroute_tempdir1020334162/stops.txt to table: stops ok 2024/11/19 00:48:21 Loading table: stops complete 2024/11/19 00:48:21 Loading table: trips 2024/11/19 00:48:21 Importing table from /tmp/mobroute_tempdir1020334162/trips.txt (0.00MB) to table: trips 2024/11/19 00:48:21 Last checksum vs current: / C_0M_0391ceb043162a440ba78564cae799b0c9b0004ac42d27290246145bfa780435; import will occur 2024/11/19 00:48:21 Execute insert query: 2024/11/19 00:48:21 Insert query complete 2024/11/19 00:48:21 Imported 1 rows into trips ok 2024/11/19 00:48:21 Imported table from /tmp/mobroute_tempdir1020334162/trips.txt to table: trips ok 2024/11/19 00:48:21 Loading table: trips complete 2024/11/19 00:48:21 Loading table: routes 2024/11/19 00:48:21 Importing table from /tmp/mobroute_tempdir1020334162/routes.txt (0.00MB) to table: routes 2024/11/19 00:48:21 Last checksum vs current: / C_0M_a6031af6418607a6e5f51c20eaa22f422664f8d5254c59438ab18ce7e1e97cf8; import will occur 2024/11/19 00:48:21 Execute insert query: 2024/11/19 00:48:21 Insert query complete 2024/11/19 00:48:21 Imported 1 rows into routes ok 2024/11/19 00:48:21 Imported table from /tmp/mobroute_tempdir1020334162/routes.txt to table: routes ok 2024/11/19 00:48:21 Loading table: routes complete 2024/11/19 00:48:21 Loading table: transfers 2024/11/19 00:48:21 Importing table from /tmp/mobroute_tempdir1020334162/transfers.txt (0.00MB) to table: transfers 2024/11/19 00:48:21 Skipped import for non-existant non-required file: /tmp/mobroute_tempdir1020334162/transfers.txt 2024/11/19 00:48:21 Loading table: transfers complete 2024/11/19 00:48:21 Loaded /tmp/2185756843.zip to DB with GTFS feed: 42 ok 2024/11/19 00:48:21 Loading GTFS feed 42 ok; used cache for URL download (true) 2024/11/19 00:48:21 Running Load against 1 feeds ok 2024/11/19 00:48:21 Running RTDatabase against input: {"feed_ids":[42],"op":"compute"} 2024/11/19 00:48:21 Running Compute against 1 feeds 2024/11/19 00:48:21 Computed table _ctconn for feed (42 ) out of date - updating ('' vs '42:routes:C_0M_a6031af6418607a6e5f51c20eaa22f422664f8d5254c59438ab18ce7e1e97cf8,42:stop_times:C_0M_34d5ab6ee7cbb3e04fd82bd1dca86e4daecfa570a11b128209c8e5c102662d0a,42:stops:C_0M_658a3f90ef5c5b6b531059c770014493d5c29ff969ad1e41a9df10615e479366,42:trips:C_0M_0391ceb043162a440ba78564cae799b0c9b0004ac42d27290246145bfa780435') 2024/11/19 00:48:21 Computed table _ctcaltoservice for feed (42 ) out of date - updating ('' vs '42:stops:C_0M_658a3f90ef5c5b6b531059c770014493d5c29ff969ad1e41a9df10615e479366') 2024/11/19 00:48:21 Computed table _cttransfersgen for feed (42 0xc0003280e8) out of date - updating ('' vs '42:stops:C_0M_658a3f90ef5c5b6b531059c770014493d5c29ff969ad1e41a9df10615e479366') 2024/11/19 00:48:21 Running Compute against 1 feeds ok 2024/11/19 00:48:21 Loading with input_coord as (select ? as lat, ? as lon), dists as ( select distinct s.feed_id, vsp.feed_id || '_' || vsp.parent_station as stop_sidu, s.stop_name, s.stop_lat, s.stop_lon, 6371.0 * acos( sin(input_coord.lat * pi() / 180.0) * sin(s.stop_lat * pi() / 180.0) + cos(input_coord.lat * pi() / 180.0) * cos(s.stop_lat * pi() / 180.0) * cos((s.stop_lon - input_coord.lon) * pi() / 180.0) ) as dist_km from input_coord join stops s on 1 = 1 join _vstopparent vsp on s.feed_id = vsp.feed_id and vsp.parent_station = s.stop_id order by dist_km asc ) select stop_sidu, stop_name, stop_lat, stop_lon, iif(dist_km > ?, null, dist_km) as dist_km from dists where feed_id in (?) and (length(?) = 0 or lower(stop_sidu || ' ' || stop_name) glob lower('*' || ? || '*')) order by dist_km asc limit ? ([1.1 0.2 20 42 -1]) to memory 2024/11/19 00:48:21 Loaded with input_coord as (select ? as lat, ? as lon), dists as ( select distinct s.feed_id, vsp.feed_id || '_' || vsp.parent_station as stop_sidu, s.stop_name, s.stop_lat, s.stop_lon, 6371.0 * acos( sin(input_coord.lat * pi() / 180.0) * sin(s.stop_lat * pi() / 180.0) + cos(input_coord.lat * pi() / 180.0) * cos(s.stop_lat * pi() / 180.0) * cos((s.stop_lon - input_coord.lon) * pi() / 180.0) ) as dist_km from input_coord join stops s on 1 = 1 join _vstopparent vsp on s.feed_id = vsp.feed_id and vsp.parent_station = s.stop_id order by dist_km asc ) select stop_sidu, stop_name, stop_lat, stop_lon, iif(dist_km > ?, null, dist_km) as dist_km from dists where feed_id in (?) and (length(?) = 0 or lower(stop_sidu || ' ' || stop_name) glob lower('*' || ? || '*')) order by dist_km asc limit ? ([1.1 0.2 20 42 -1]) to memory ok (len=4) --- PASS: Test_LoadStopWalks (0.02s) === RUN Test_LoadTransfers 2024/11/19 00:48:21 Generated mock for input (map[42:../testhelper/mockgtfs/gtfs_transfers.yml]): (gtfs zips: [/tmp/2459187175.zip]) (mobdb csv: /tmp/mobroute_test_mobdb_1541902831.csv) 2024/11/19 00:48:21 SQLite system version (3.46.1); comparing to required version: 3.28.0 2024/11/19 00:48:21 Loading schema tables 2024/11/19 00:48:21 Execute statement: create table if not exists _mobsqltrack ('feed_id' int not null,'feed_id_pair' int,'tbl' text not null,'checksum' text not null,'n_rows' int not null,'timestamp' int not null,unique(feed_id,feed_id_pair,tbl)) 2024/11/19 00:48:21 Execute statement: create table if not exists _gtfssource_mdbcsv ('feed_id' int not null check(feed_id = -1),'data_type' text not null,'location.bounding_box.minimum_latitude' real,'location.bounding_box.minimum_longitude' real,'location.bounding_box.maximum_latitude' real,'location.bounding_box.maximum_longitude' real,'location.country_code' text,'location.subdivision_name' text,'location.municipality' text,'urls.latest' text,'urls.license' text,'mdb_source_id' int not null check(mdb_source_id >= 0),'name' text,'status' text,'provider' text not null,unique(mdb_source_id)) 2024/11/19 00:48:21 Execute statement: create table if not exists _gtfssource_custom ('customgtfs_feed_id' int not null check(customgtfs_feed_id < -1),'gtfs_uri' text not null,unique(customgtfs_feed_id)) 2024/11/19 00:48:21 Execute statement: create table if not exists agency ('feed_id' int not null,'agency_id' text,'agency_name' text not null,'agency_url' text not null,'agency_timezone' text not null,unique(feed_id,agency_id)) 2024/11/19 00:48:21 Execute statement: create table if not exists calendar ('feed_id' int not null,'service_id' text not null,'monday' int not null check(monday in (0,1)),'tuesday' int not null check(tuesday in (0,1)),'wednesday' int not null check(wednesday in (0,1)),'thursday' int not null check(thursday in (0,1)),'friday' int not null check(friday in (0,1)),'saturday' int not null check(saturday in (0,1)),'sunday' int not null check(sunday in (0,1)),'start_date' int not null,'end_date' int not null,unique(feed_id,service_id)) 2024/11/19 00:48:21 Execute statement: create table if not exists calendar_dates ('feed_id' int not null,'service_id' text not null,'date' int not null,'exception_type' int not null check(exception_type in (1,2))) 2024/11/19 00:48:21 Execute statement: create table if not exists stop_times ('feed_id' int not null,'trip_id' text not null,'arrival_time' int,'departure_time' int,'stop_id' text not null,'stop_sequence' int not null,'stop_headsign' text,'pickup_type' int,'drop_off_type' int,'continuous_drop_off' text,'timepoint' int check(timepoint in (0,1)),unique(feed_id,trip_id,stop_sequence)) 2024/11/19 00:48:21 Execute statement: create table if not exists stops ('feed_id' int not null,'stop_id' text not null,'stop_code' text,'stop_name' text check( ((location_type is null or location_type = 0 or location_type = 1 or location_type = 2) and stop_name is not null) or (location_type = 3 or location_type = 4) ),'stop_desc' text,'stop_lat' real check( ((location_type is null or location_type = 0 or location_type = 1 or location_type = 2) and stop_lat is not null) or (location_type = 3 or location_type = 4) ),'stop_lon' real check( ((location_type is null or location_type = 0 or location_type = 1 or location_type = 2) and stop_lon is not null) or (location_type = 3 or location_type = 4) ),'zone_id' text,'stop_url' text,'location_type' int check(location_type in (0,1,2,3,4)),'parent_station' text,'stop_timezone' text,'wheelchair_boarding' int check(wheelchair_boarding in (0,1,2)),'level_id' text,'platform_code' text,unique(feed_id,stop_id)) 2024/11/19 00:48:21 Execute statement: create table if not exists trips ('feed_id' int not null,'route_id' text not null,'service_id' text not null,'trip_id' text not null,'trip_headsign' text,'trip_short_name' text,'direction_id' int check(direction_id in (0,1)),'block_id' text,'shape_id' text,'wheelchair_accessible' text check(wheelchair_accessible in (0,1,2)),'bikes_allowed' int check(bikes_allowed in (0,1,2)),unique(feed_id,trip_id)) 2024/11/19 00:48:21 Execute statement: create table if not exists routes ('feed_id' int not null,'route_id' text not null,'agency_id' text,'route_short_name' text check(route_long_name is not null or route_short_name is not null),'route_long_name' text,'route_desc' text,'route_type' int,'route_url' text,'route_color' text,'route_text_color' text,'route_sort_order' text,'continuous_pickup' int check(continuous_pickup in (0,1,2,3)),'continuous_drop_off' int check(continuous_drop_off in (0,1,2,3)),unique(feed_id,route_id)) 2024/11/19 00:48:21 Execute statement: create table if not exists transfers ('feed_id' int not null,'from_stop_id' text not null,'to_stop_id' text not null,'transfer_type' int,'min_transfer_time' int) 2024/11/19 00:48:21 Execute statement: create table if not exists _ctconn ('feed_id' int not null,'conn_id' text not null,'trip_id' text not null,'service_id' text not null,'from_stop_id' text not null,'from_stop_idu' text not null,'from_stop_sidu' text not null,'from_stop_time' int not null,'from_stop_sequence' int not null,'to_stop_id' text not null,'to_stop_idu' text not null,'to_stop_sidu' text not null,'to_stop_time' int not null,'to_stop_sequence' int not null,unique(feed_id,conn_id)) 2024/11/19 00:48:21 Execute statement: create table if not exists _ctcaltoservice ('feed_id' int not null,'service_date' int not null,'service_id' text not null) 2024/11/19 00:48:21 Execute statement: create table if not exists _cttransfersgen ('feed_id' int not null,'feed_id_pair' int not null,'from_stop_id' text not null,'to_stop_id' text not null,'from_stop_idu' text not null,'to_stop_idu' text not null,'from_stop_sidu' text not null,'to_stop_sidu' text not null,'dist_km' real) 2024/11/19 00:48:21 Loading schema tables ok 2024/11/19 00:48:21 Loading schema indexes 2024/11/19 00:48:21 Create index idx_agency1_agency_timezone on agency as [agency_timezone] 2024/11/19 00:48:21 Created index idx_agency1_agency_timezone ok 2024/11/19 00:48:21 Create index idx_stop_times1_departure_time on stop_times as [departure_time] 2024/11/19 00:48:21 Created index idx_stop_times1_departure_time ok 2024/11/19 00:48:21 Create index idx_stop_times1_trip_id on stop_times as [trip_id] 2024/11/19 00:48:21 Created index idx_stop_times1_trip_id ok 2024/11/19 00:48:21 Create index idx_stops2_feed_id_stop_id on stops as [feed_id stop_id] 2024/11/19 00:48:21 Created index idx_stops2_feed_id_stop_id ok 2024/11/19 00:48:21 Create index idx_stops2_stop_lat_stop_lon on stops as [stop_lat stop_lon] 2024/11/19 00:48:21 Created index idx_stops2_stop_lat_stop_lon ok 2024/11/19 00:48:21 Create index idx_stops3_feed_id_parent_station_location_type on stops as [feed_id parent_station location_type] 2024/11/19 00:48:21 Created index idx_stops3_feed_id_parent_station_location_type ok 2024/11/19 00:48:21 Create index idx_transfers2_feed_id_from_stop_id on transfers as [feed_id from_stop_id] 2024/11/19 00:48:21 Created index idx_transfers2_feed_id_from_stop_id ok 2024/11/19 00:48:21 Create index idx_transfers2_feed_id_to_stop_id on transfers as [feed_id to_stop_id] 2024/11/19 00:48:21 Created index idx_transfers2_feed_id_to_stop_id ok 2024/11/19 00:48:21 Create index idx__ctconn3_feed_id_service_id_from_stop_time on _ctconn as [feed_id service_id from_stop_time] 2024/11/19 00:48:21 Created index idx__ctconn3_feed_id_service_id_from_stop_time ok 2024/11/19 00:48:21 Create index idx__ctconn3_feed_id_from_stop_sidu_from_stop_time on _ctconn as [feed_id from_stop_sidu from_stop_time] 2024/11/19 00:48:21 Created index idx__ctconn3_feed_id_from_stop_sidu_from_stop_time ok 2024/11/19 00:48:21 Create index idx__ctcaltoservice3_feed_id_service_id_service_date on _ctcaltoservice as [feed_id service_id service_date] 2024/11/19 00:48:21 Created index idx__ctcaltoservice3_feed_id_service_id_service_date ok 2024/11/19 00:48:21 Create index idx__ctcaltoservice2_feed_id_service_date on _ctcaltoservice as [feed_id service_date] 2024/11/19 00:48:21 Created index idx__ctcaltoservice2_feed_id_service_date ok 2024/11/19 00:48:21 Loading schema indexes ok 2024/11/19 00:48:21 Loading views ok 2024/11/19 00:48:21 Loaded view _vfeedsminmaxdates (bytes=251) 2024/11/19 00:48:21 Loaded view _vfeedsmetadata (bytes=3676) 2024/11/19 00:48:21 Loaded view _vstopparent (bytes=2600) 2024/11/19 00:48:21 Loaded view _vconn (bytes=1201) 2024/11/19 00:48:21 Loaded view _vconnverbose (bytes=1122) 2024/11/19 00:48:21 Loaded view _vcaltoservice (bytes=3110) 2024/11/19 00:48:21 Loaded view _vtransferstbl (bytes=933) 2024/11/19 00:48:21 Loaded view _vtransfersgen (bytes=1523) 2024/11/19 00:48:21 Loaded view _vtransfersimplicit (bytes=371) 2024/11/19 00:48:21 Loading views ok 2024/11/19 00:48:21 Importing table from //tmp/mobroute_test_mobdb_1541902831.csv (0.00MB) to table: _gtfssource_mdbcsv 2024/11/19 00:48:21 Last checksum vs current: / C_0M_c0d051384d646d5dea29d8e4eab6b68b3cab19dc35a97b0e16abd992dc524c54; import will occur 2024/11/19 00:48:21 Execute insert query: 2024/11/19 00:48:21 Insert query complete 2024/11/19 00:48:21 Imported 1 rows into _gtfssource_mdbcsv ok 2024/11/19 00:48:21 Imported table from //tmp/mobroute_test_mobdb_1541902831.csv to table: _gtfssource_mdbcsv ok 2024/11/19 00:48:21 Running RTDatabase against input: {"feed_ids":[42],"op":"load"} 2024/11/19 00:48:21 Running Load against 1 feeds 2024/11/19 00:48:21 Loading GTFS feed 42 (1 of 1) 2024/11/19 00:48:21 Loading /tmp/2459187175.zip to DB with GTFS feed: 42 2024/11/19 00:48:21 Loaded GTFS Archive /tmp/2459187175.zip to temporary directory: /tmp/mobroute_tempdir2800488808 2024/11/19 00:48:21 Loading table: agency 2024/11/19 00:48:21 Importing table from /tmp/mobroute_tempdir2800488808/agency.txt (0.00MB) to table: agency 2024/11/19 00:48:21 Last checksum vs current: / C_0M_ec69cc35698113d39b116d06df83c168ff34eec1dd5daa90136c2ccdddd57966; import will occur 2024/11/19 00:48:21 Execute insert query: 2024/11/19 00:48:21 Insert query complete 2024/11/19 00:48:21 Imported 1 rows into agency ok 2024/11/19 00:48:21 Imported table from /tmp/mobroute_tempdir2800488808/agency.txt to table: agency ok 2024/11/19 00:48:21 Loading table: agency complete 2024/11/19 00:48:21 Loading table: calendar 2024/11/19 00:48:21 Importing table from /tmp/mobroute_tempdir2800488808/calendar.txt (0.00MB) to table: calendar 2024/11/19 00:48:21 Skipped import for non-existant non-required file: /tmp/mobroute_tempdir2800488808/calendar.txt 2024/11/19 00:48:21 Loading table: calendar complete 2024/11/19 00:48:21 Loading table: calendar_dates 2024/11/19 00:48:21 Importing table from /tmp/mobroute_tempdir2800488808/calendar_dates.txt (0.00MB) to table: calendar_dates 2024/11/19 00:48:21 Last checksum vs current: / C_0M_e37e371e5f8c7c355413d55fe59c9054de3dbf0d759f0bcd6ef7968b46cde54e; import will occur 2024/11/19 00:48:21 Execute insert query: 2024/11/19 00:48:21 Insert query complete 2024/11/19 00:48:21 Imported 1 rows into calendar_dates ok 2024/11/19 00:48:21 Imported table from /tmp/mobroute_tempdir2800488808/calendar_dates.txt to table: calendar_dates ok 2024/11/19 00:48:21 Loading table: calendar_dates complete 2024/11/19 00:48:21 Loading table: stop_times 2024/11/19 00:48:21 Importing table from /tmp/mobroute_tempdir2800488808/stop_times.txt (0.00MB) to table: stop_times 2024/11/19 00:48:21 Last checksum vs current: / C_0M_34d5ab6ee7cbb3e04fd82bd1dca86e4daecfa570a11b128209c8e5c102662d0a; import will occur 2024/11/19 00:48:21 Execute insert query: 2024/11/19 00:48:21 Insert query complete 2024/11/19 00:48:21 Imported 1 rows into stop_times ok 2024/11/19 00:48:21 Imported table from /tmp/mobroute_tempdir2800488808/stop_times.txt to table: stop_times ok 2024/11/19 00:48:21 Loading table: stop_times complete 2024/11/19 00:48:21 Loading table: stops 2024/11/19 00:48:21 Importing table from /tmp/mobroute_tempdir2800488808/stops.txt (0.00MB) to table: stops 2024/11/19 00:48:21 Last checksum vs current: / C_0M_e49bcb4d76fb2c80913af3c8407007f34b72c84c7045982cdafa519098886897; import will occur 2024/11/19 00:48:21 Execute insert query: 2024/11/19 00:48:21 Insert query complete 2024/11/19 00:48:21 Imported 4 rows into stops ok 2024/11/19 00:48:21 Imported table from /tmp/mobroute_tempdir2800488808/stops.txt to table: stops ok 2024/11/19 00:48:21 Loading table: stops complete 2024/11/19 00:48:21 Loading table: trips 2024/11/19 00:48:21 Importing table from /tmp/mobroute_tempdir2800488808/trips.txt (0.00MB) to table: trips 2024/11/19 00:48:21 Last checksum vs current: / C_0M_0391ceb043162a440ba78564cae799b0c9b0004ac42d27290246145bfa780435; import will occur 2024/11/19 00:48:21 Execute insert query: 2024/11/19 00:48:21 Insert query complete 2024/11/19 00:48:21 Imported 1 rows into trips ok 2024/11/19 00:48:21 Imported table from /tmp/mobroute_tempdir2800488808/trips.txt to table: trips ok 2024/11/19 00:48:21 Loading table: trips complete 2024/11/19 00:48:21 Loading table: routes 2024/11/19 00:48:21 Importing table from /tmp/mobroute_tempdir2800488808/routes.txt (0.00MB) to table: routes 2024/11/19 00:48:21 Last checksum vs current: / C_0M_a6031af6418607a6e5f51c20eaa22f422664f8d5254c59438ab18ce7e1e97cf8; import will occur 2024/11/19 00:48:21 Execute insert query: 2024/11/19 00:48:21 Insert query complete 2024/11/19 00:48:21 Imported 1 rows into routes ok 2024/11/19 00:48:21 Imported table from /tmp/mobroute_tempdir2800488808/routes.txt to table: routes ok 2024/11/19 00:48:21 Loading table: routes complete 2024/11/19 00:48:21 Loading table: transfers 2024/11/19 00:48:21 Importing table from /tmp/mobroute_tempdir2800488808/transfers.txt (0.00MB) to table: transfers 2024/11/19 00:48:21 Last checksum vs current: / C_0M_62f6463902bf0c18eefcc88fd81a21fbf559daca8485920a3653a28636aa83f5; import will occur 2024/11/19 00:48:21 Execute insert query: 2024/11/19 00:48:21 Insert query complete 2024/11/19 00:48:21 Imported 2 rows into transfers ok 2024/11/19 00:48:21 Imported table from /tmp/mobroute_tempdir2800488808/transfers.txt to table: transfers ok 2024/11/19 00:48:21 Loading table: transfers complete 2024/11/19 00:48:21 Loaded /tmp/2459187175.zip to DB with GTFS feed: 42 ok 2024/11/19 00:48:21 Loading GTFS feed 42 ok; used cache for URL download (true) 2024/11/19 00:48:21 Running Load against 1 feeds ok 2024/11/19 00:48:21 Running RTDatabase against input: {"feed_ids":[42],"op":"compute"} 2024/11/19 00:48:21 Running Compute against 1 feeds 2024/11/19 00:48:21 Computed table _ctconn for feed (42 ) out of date - updating ('' vs '42:routes:C_0M_a6031af6418607a6e5f51c20eaa22f422664f8d5254c59438ab18ce7e1e97cf8,42:stop_times:C_0M_34d5ab6ee7cbb3e04fd82bd1dca86e4daecfa570a11b128209c8e5c102662d0a,42:stops:C_0M_e49bcb4d76fb2c80913af3c8407007f34b72c84c7045982cdafa519098886897,42:trips:C_0M_0391ceb043162a440ba78564cae799b0c9b0004ac42d27290246145bfa780435') 2024/11/19 00:48:21 Computed table _ctcaltoservice for feed (42 ) out of date - updating ('' vs '42:stops:C_0M_e49bcb4d76fb2c80913af3c8407007f34b72c84c7045982cdafa519098886897') 2024/11/19 00:48:21 Computed table _cttransfersgen for feed (42 0xc0002f7948) out of date - updating ('' vs '42:stops:C_0M_e49bcb4d76fb2c80913af3c8407007f34b72c84c7045982cdafa519098886897') 2024/11/19 00:48:21 Running Compute against 1 feeds ok 2024/11/19 00:48:21 Loading select * from ( -- Implicit transfers select from_stop_sidu, from_stop_idu, from_stop_id, from_feed_id, to_stop_sidu, to_stop_idu, to_stop_id, to_feed_id, 'i' as transfer_category, ? as transfer_seconds from _vtransfersimplicit union all -- Generated transfers select from_stop_sidu, from_stop_idu, from_stop_id, feed_id as from_feed_id, to_stop_sidu, to_stop_idu, to_stop_id, feed_id_pair as to_feed_id, 'g' as transfer_category, -- Uses dist_km to determine seconds transfer cost; round up to min_seconds max(coalesce(cast(dist_km / ? * 60 * 60 as uint), ?), ?) as transfer_seconds from _cttransfersgen union all -- Feed transfers (transfers.txt) select from_stop_sidu, from_stop_idu, from_stop_id, feed_id as from_feed_id, to_stop_sidu, to_stop_idu, to_stop_id, feed_id_pair as to_feed_id, 'f' as transfer_category, -- Uses min_transfer_time, else use dist_km; round up to min_seconds max(coalesce(min_transfer_time, cast(dist_km / ? * 60 * 60 as uint), ?), ?) as transfer_seconds from _vtransferstbl ) t where ((from_feed_id = ? and to_feed_id = ?)) and transfer_seconds < ? and transfer_category in (?) ([0 3.5 0 0 3.5 0 0 42 42 1000 f]) to memory 2024/11/19 00:48:21 Loaded select * from ( -- Implicit transfers select from_stop_sidu, from_stop_idu, from_stop_id, from_feed_id, to_stop_sidu, to_stop_idu, to_stop_id, to_feed_id, 'i' as transfer_category, ? as transfer_seconds from _vtransfersimplicit union all -- Generated transfers select from_stop_sidu, from_stop_idu, from_stop_id, feed_id as from_feed_id, to_stop_sidu, to_stop_idu, to_stop_id, feed_id_pair as to_feed_id, 'g' as transfer_category, -- Uses dist_km to determine seconds transfer cost; round up to min_seconds max(coalesce(cast(dist_km / ? * 60 * 60 as uint), ?), ?) as transfer_seconds from _cttransfersgen union all -- Feed transfers (transfers.txt) select from_stop_sidu, from_stop_idu, from_stop_id, feed_id as from_feed_id, to_stop_sidu, to_stop_idu, to_stop_id, feed_id_pair as to_feed_id, 'f' as transfer_category, -- Uses min_transfer_time, else use dist_km; round up to min_seconds max(coalesce(min_transfer_time, cast(dist_km / ? * 60 * 60 as uint), ?), ?) as transfer_seconds from _vtransferstbl ) t where ((from_feed_id = ? and to_feed_id = ?)) and transfer_seconds < ? and transfer_category in (?) ([0 3.5 0 0 3.5 0 0 42 42 1000 f]) to memory ok (len=2) 2024/11/19 00:48:21 Generated mock for input (map[42:../testhelper/mockgtfs/gtfs_transfers.yml]): (gtfs zips: [/tmp/149105638.zip]) (mobdb csv: /tmp/mobroute_test_mobdb_1701540467.csv) 2024/11/19 00:48:21 SQLite system version (3.46.1); comparing to required version: 3.28.0 2024/11/19 00:48:21 Loading schema tables 2024/11/19 00:48:21 Execute statement: create table if not exists _mobsqltrack ('feed_id' int not null,'feed_id_pair' int,'tbl' text not null,'checksum' text not null,'n_rows' int not null,'timestamp' int not null,unique(feed_id,feed_id_pair,tbl)) 2024/11/19 00:48:21 Execute statement: create table if not exists _gtfssource_mdbcsv ('feed_id' int not null check(feed_id = -1),'data_type' text not null,'location.bounding_box.minimum_latitude' real,'location.bounding_box.minimum_longitude' real,'location.bounding_box.maximum_latitude' real,'location.bounding_box.maximum_longitude' real,'location.country_code' text,'location.subdivision_name' text,'location.municipality' text,'urls.latest' text,'urls.license' text,'mdb_source_id' int not null check(mdb_source_id >= 0),'name' text,'status' text,'provider' text not null,unique(mdb_source_id)) 2024/11/19 00:48:21 Execute statement: create table if not exists _gtfssource_custom ('customgtfs_feed_id' int not null check(customgtfs_feed_id < -1),'gtfs_uri' text not null,unique(customgtfs_feed_id)) 2024/11/19 00:48:21 Execute statement: create table if not exists agency ('feed_id' int not null,'agency_id' text,'agency_name' text not null,'agency_url' text not null,'agency_timezone' text not null,unique(feed_id,agency_id)) 2024/11/19 00:48:21 Execute statement: create table if not exists calendar ('feed_id' int not null,'service_id' text not null,'monday' int not null check(monday in (0,1)),'tuesday' int not null check(tuesday in (0,1)),'wednesday' int not null check(wednesday in (0,1)),'thursday' int not null check(thursday in (0,1)),'friday' int not null check(friday in (0,1)),'saturday' int not null check(saturday in (0,1)),'sunday' int not null check(sunday in (0,1)),'start_date' int not null,'end_date' int not null,unique(feed_id,service_id)) 2024/11/19 00:48:21 Execute statement: create table if not exists calendar_dates ('feed_id' int not null,'service_id' text not null,'date' int not null,'exception_type' int not null check(exception_type in (1,2))) 2024/11/19 00:48:21 Execute statement: create table if not exists stop_times ('feed_id' int not null,'trip_id' text not null,'arrival_time' int,'departure_time' int,'stop_id' text not null,'stop_sequence' int not null,'stop_headsign' text,'pickup_type' int,'drop_off_type' int,'continuous_drop_off' text,'timepoint' int check(timepoint in (0,1)),unique(feed_id,trip_id,stop_sequence)) 2024/11/19 00:48:21 Execute statement: create table if not exists stops ('feed_id' int not null,'stop_id' text not null,'stop_code' text,'stop_name' text check( ((location_type is null or location_type = 0 or location_type = 1 or location_type = 2) and stop_name is not null) or (location_type = 3 or location_type = 4) ),'stop_desc' text,'stop_lat' real check( ((location_type is null or location_type = 0 or location_type = 1 or location_type = 2) and stop_lat is not null) or (location_type = 3 or location_type = 4) ),'stop_lon' real check( ((location_type is null or location_type = 0 or location_type = 1 or location_type = 2) and stop_lon is not null) or (location_type = 3 or location_type = 4) ),'zone_id' text,'stop_url' text,'location_type' int check(location_type in (0,1,2,3,4)),'parent_station' text,'stop_timezone' text,'wheelchair_boarding' int check(wheelchair_boarding in (0,1,2)),'level_id' text,'platform_code' text,unique(feed_id,stop_id)) 2024/11/19 00:48:21 Execute statement: create table if not exists trips ('feed_id' int not null,'route_id' text not null,'service_id' text not null,'trip_id' text not null,'trip_headsign' text,'trip_short_name' text,'direction_id' int check(direction_id in (0,1)),'block_id' text,'shape_id' text,'wheelchair_accessible' text check(wheelchair_accessible in (0,1,2)),'bikes_allowed' int check(bikes_allowed in (0,1,2)),unique(feed_id,trip_id)) 2024/11/19 00:48:21 Execute statement: create table if not exists routes ('feed_id' int not null,'route_id' text not null,'agency_id' text,'route_short_name' text check(route_long_name is not null or route_short_name is not null),'route_long_name' text,'route_desc' text,'route_type' int,'route_url' text,'route_color' text,'route_text_color' text,'route_sort_order' text,'continuous_pickup' int check(continuous_pickup in (0,1,2,3)),'continuous_drop_off' int check(continuous_drop_off in (0,1,2,3)),unique(feed_id,route_id)) 2024/11/19 00:48:21 Execute statement: create table if not exists transfers ('feed_id' int not null,'from_stop_id' text not null,'to_stop_id' text not null,'transfer_type' int,'min_transfer_time' int) 2024/11/19 00:48:21 Execute statement: create table if not exists _ctconn ('feed_id' int not null,'conn_id' text not null,'trip_id' text not null,'service_id' text not null,'from_stop_id' text not null,'from_stop_idu' text not null,'from_stop_sidu' text not null,'from_stop_time' int not null,'from_stop_sequence' int not null,'to_stop_id' text not null,'to_stop_idu' text not null,'to_stop_sidu' text not null,'to_stop_time' int not null,'to_stop_sequence' int not null,unique(feed_id,conn_id)) 2024/11/19 00:48:21 Execute statement: create table if not exists _ctcaltoservice ('feed_id' int not null,'service_date' int not null,'service_id' text not null) 2024/11/19 00:48:21 Execute statement: create table if not exists _cttransfersgen ('feed_id' int not null,'feed_id_pair' int not null,'from_stop_id' text not null,'to_stop_id' text not null,'from_stop_idu' text not null,'to_stop_idu' text not null,'from_stop_sidu' text not null,'to_stop_sidu' text not null,'dist_km' real) 2024/11/19 00:48:21 Loading schema tables ok 2024/11/19 00:48:21 Loading schema indexes 2024/11/19 00:48:21 Create index idx_agency1_agency_timezone on agency as [agency_timezone] 2024/11/19 00:48:21 Created index idx_agency1_agency_timezone ok 2024/11/19 00:48:21 Create index idx_stop_times1_departure_time on stop_times as [departure_time] 2024/11/19 00:48:21 Created index idx_stop_times1_departure_time ok 2024/11/19 00:48:21 Create index idx_stop_times1_trip_id on stop_times as [trip_id] 2024/11/19 00:48:21 Created index idx_stop_times1_trip_id ok 2024/11/19 00:48:21 Create index idx_stops2_feed_id_stop_id on stops as [feed_id stop_id] 2024/11/19 00:48:21 Created index idx_stops2_feed_id_stop_id ok 2024/11/19 00:48:21 Create index idx_stops2_stop_lat_stop_lon on stops as [stop_lat stop_lon] 2024/11/19 00:48:21 Created index idx_stops2_stop_lat_stop_lon ok 2024/11/19 00:48:21 Create index idx_stops3_feed_id_parent_station_location_type on stops as [feed_id parent_station location_type] 2024/11/19 00:48:21 Created index idx_stops3_feed_id_parent_station_location_type ok 2024/11/19 00:48:21 Create index idx_transfers2_feed_id_from_stop_id on transfers as [feed_id from_stop_id] 2024/11/19 00:48:21 Created index idx_transfers2_feed_id_from_stop_id ok 2024/11/19 00:48:21 Create index idx_transfers2_feed_id_to_stop_id on transfers as [feed_id to_stop_id] 2024/11/19 00:48:21 Created index idx_transfers2_feed_id_to_stop_id ok 2024/11/19 00:48:21 Create index idx__ctconn3_feed_id_service_id_from_stop_time on _ctconn as [feed_id service_id from_stop_time] 2024/11/19 00:48:21 Created index idx__ctconn3_feed_id_service_id_from_stop_time ok 2024/11/19 00:48:21 Create index idx__ctconn3_feed_id_from_stop_sidu_from_stop_time on _ctconn as [feed_id from_stop_sidu from_stop_time] 2024/11/19 00:48:21 Created index idx__ctconn3_feed_id_from_stop_sidu_from_stop_time ok 2024/11/19 00:48:21 Create index idx__ctcaltoservice3_feed_id_service_id_service_date on _ctcaltoservice as [feed_id service_id service_date] 2024/11/19 00:48:21 Created index idx__ctcaltoservice3_feed_id_service_id_service_date ok 2024/11/19 00:48:21 Create index idx__ctcaltoservice2_feed_id_service_date on _ctcaltoservice as [feed_id service_date] 2024/11/19 00:48:21 Created index idx__ctcaltoservice2_feed_id_service_date ok 2024/11/19 00:48:21 Loading schema indexes ok 2024/11/19 00:48:21 Loading views ok 2024/11/19 00:48:21 Loaded view _vfeedsminmaxdates (bytes=251) 2024/11/19 00:48:21 Loaded view _vfeedsmetadata (bytes=3676) 2024/11/19 00:48:21 Loaded view _vstopparent (bytes=2600) 2024/11/19 00:48:21 Loaded view _vconn (bytes=1201) 2024/11/19 00:48:21 Loaded view _vconnverbose (bytes=1122) 2024/11/19 00:48:21 Loaded view _vcaltoservice (bytes=3110) 2024/11/19 00:48:21 Loaded view _vtransferstbl (bytes=933) 2024/11/19 00:48:21 Loaded view _vtransfersgen (bytes=1523) 2024/11/19 00:48:21 Loaded view _vtransfersimplicit (bytes=371) 2024/11/19 00:48:21 Loading views ok 2024/11/19 00:48:21 Importing table from //tmp/mobroute_test_mobdb_1701540467.csv (0.00MB) to table: _gtfssource_mdbcsv 2024/11/19 00:48:21 Last checksum vs current: / C_0M_7a35a43b514a2123a874285467731a41c8d01f5127cdca1626afa5c8fa911b3e; import will occur 2024/11/19 00:48:21 Execute insert query: 2024/11/19 00:48:21 Insert query complete 2024/11/19 00:48:21 Imported 1 rows into _gtfssource_mdbcsv ok 2024/11/19 00:48:21 Imported table from //tmp/mobroute_test_mobdb_1701540467.csv to table: _gtfssource_mdbcsv ok 2024/11/19 00:48:21 Running RTDatabase against input: {"feed_ids":[42],"op":"load"} 2024/11/19 00:48:21 Running Load against 1 feeds 2024/11/19 00:48:21 Loading GTFS feed 42 (1 of 1) 2024/11/19 00:48:21 Loading /tmp/149105638.zip to DB with GTFS feed: 42 2024/11/19 00:48:21 Loaded GTFS Archive /tmp/149105638.zip to temporary directory: /tmp/mobroute_tempdir3280640640 2024/11/19 00:48:21 Loading table: agency 2024/11/19 00:48:21 Importing table from /tmp/mobroute_tempdir3280640640/agency.txt (0.00MB) to table: agency 2024/11/19 00:48:21 Last checksum vs current: / C_0M_ec69cc35698113d39b116d06df83c168ff34eec1dd5daa90136c2ccdddd57966; import will occur 2024/11/19 00:48:21 Execute insert query: 2024/11/19 00:48:21 Insert query complete 2024/11/19 00:48:21 Imported 1 rows into agency ok 2024/11/19 00:48:21 Imported table from /tmp/mobroute_tempdir3280640640/agency.txt to table: agency ok 2024/11/19 00:48:21 Loading table: agency complete 2024/11/19 00:48:21 Loading table: calendar 2024/11/19 00:48:21 Importing table from /tmp/mobroute_tempdir3280640640/calendar.txt (0.00MB) to table: calendar 2024/11/19 00:48:21 Skipped import for non-existant non-required file: /tmp/mobroute_tempdir3280640640/calendar.txt 2024/11/19 00:48:21 Loading table: calendar complete 2024/11/19 00:48:21 Loading table: calendar_dates 2024/11/19 00:48:21 Importing table from /tmp/mobroute_tempdir3280640640/calendar_dates.txt (0.00MB) to table: calendar_dates 2024/11/19 00:48:21 Last checksum vs current: / C_0M_e37e371e5f8c7c355413d55fe59c9054de3dbf0d759f0bcd6ef7968b46cde54e; import will occur 2024/11/19 00:48:21 Execute insert query: 2024/11/19 00:48:21 Insert query complete 2024/11/19 00:48:21 Imported 1 rows into calendar_dates ok 2024/11/19 00:48:21 Imported table from /tmp/mobroute_tempdir3280640640/calendar_dates.txt to table: calendar_dates ok 2024/11/19 00:48:21 Loading table: calendar_dates complete 2024/11/19 00:48:21 Loading table: stop_times 2024/11/19 00:48:21 Importing table from /tmp/mobroute_tempdir3280640640/stop_times.txt (0.00MB) to table: stop_times 2024/11/19 00:48:21 Last checksum vs current: / C_0M_34d5ab6ee7cbb3e04fd82bd1dca86e4daecfa570a11b128209c8e5c102662d0a; import will occur 2024/11/19 00:48:21 Execute insert query: 2024/11/19 00:48:21 Insert query complete 2024/11/19 00:48:21 Imported 1 rows into stop_times ok 2024/11/19 00:48:21 Imported table from /tmp/mobroute_tempdir3280640640/stop_times.txt to table: stop_times ok 2024/11/19 00:48:21 Loading table: stop_times complete 2024/11/19 00:48:21 Loading table: stops 2024/11/19 00:48:21 Importing table from /tmp/mobroute_tempdir3280640640/stops.txt (0.00MB) to table: stops 2024/11/19 00:48:21 Last checksum vs current: / C_0M_e49bcb4d76fb2c80913af3c8407007f34b72c84c7045982cdafa519098886897; import will occur 2024/11/19 00:48:21 Execute insert query: 2024/11/19 00:48:21 Insert query complete 2024/11/19 00:48:21 Imported 4 rows into stops ok 2024/11/19 00:48:21 Imported table from /tmp/mobroute_tempdir3280640640/stops.txt to table: stops ok 2024/11/19 00:48:21 Loading table: stops complete 2024/11/19 00:48:21 Loading table: trips 2024/11/19 00:48:21 Importing table from /tmp/mobroute_tempdir3280640640/trips.txt (0.00MB) to table: trips 2024/11/19 00:48:21 Last checksum vs current: / C_0M_0391ceb043162a440ba78564cae799b0c9b0004ac42d27290246145bfa780435; import will occur 2024/11/19 00:48:21 Execute insert query: 2024/11/19 00:48:21 Insert query complete 2024/11/19 00:48:21 Imported 1 rows into trips ok 2024/11/19 00:48:21 Imported table from /tmp/mobroute_tempdir3280640640/trips.txt to table: trips ok 2024/11/19 00:48:21 Loading table: trips complete 2024/11/19 00:48:21 Loading table: routes 2024/11/19 00:48:21 Importing table from /tmp/mobroute_tempdir3280640640/routes.txt (0.00MB) to table: routes 2024/11/19 00:48:21 Last checksum vs current: / C_0M_a6031af6418607a6e5f51c20eaa22f422664f8d5254c59438ab18ce7e1e97cf8; import will occur 2024/11/19 00:48:21 Execute insert query: 2024/11/19 00:48:21 Insert query complete 2024/11/19 00:48:21 Imported 1 rows into routes ok 2024/11/19 00:48:21 Imported table from /tmp/mobroute_tempdir3280640640/routes.txt to table: routes ok 2024/11/19 00:48:21 Loading table: routes complete 2024/11/19 00:48:21 Loading table: transfers 2024/11/19 00:48:21 Importing table from /tmp/mobroute_tempdir3280640640/transfers.txt (0.00MB) to table: transfers 2024/11/19 00:48:21 Last checksum vs current: / C_0M_62f6463902bf0c18eefcc88fd81a21fbf559daca8485920a3653a28636aa83f5; import will occur 2024/11/19 00:48:21 Execute insert query: 2024/11/19 00:48:21 Insert query complete 2024/11/19 00:48:21 Imported 2 rows into transfers ok 2024/11/19 00:48:21 Imported table from /tmp/mobroute_tempdir3280640640/transfers.txt to table: transfers ok 2024/11/19 00:48:21 Loading table: transfers complete 2024/11/19 00:48:21 Loaded /tmp/149105638.zip to DB with GTFS feed: 42 ok 2024/11/19 00:48:21 Loading GTFS feed 42 ok; used cache for URL download (true) 2024/11/19 00:48:21 Running Load against 1 feeds ok 2024/11/19 00:48:21 Running RTDatabase against input: {"feed_ids":[42],"op":"compute"} 2024/11/19 00:48:21 Running Compute against 1 feeds 2024/11/19 00:48:21 Computed table _ctconn for feed (42 ) out of date - updating ('' vs '42:routes:C_0M_a6031af6418607a6e5f51c20eaa22f422664f8d5254c59438ab18ce7e1e97cf8,42:stop_times:C_0M_34d5ab6ee7cbb3e04fd82bd1dca86e4daecfa570a11b128209c8e5c102662d0a,42:stops:C_0M_e49bcb4d76fb2c80913af3c8407007f34b72c84c7045982cdafa519098886897,42:trips:C_0M_0391ceb043162a440ba78564cae799b0c9b0004ac42d27290246145bfa780435') 2024/11/19 00:48:21 Computed table _ctcaltoservice for feed (42 ) out of date - updating ('' vs '42:stops:C_0M_e49bcb4d76fb2c80913af3c8407007f34b72c84c7045982cdafa519098886897') 2024/11/19 00:48:21 Computed table _cttransfersgen for feed (42 0xc00045c778) out of date - updating ('' vs '42:stops:C_0M_e49bcb4d76fb2c80913af3c8407007f34b72c84c7045982cdafa519098886897') 2024/11/19 00:48:21 Running Compute against 1 feeds ok 2024/11/19 00:48:21 Loading select * from ( -- Implicit transfers select from_stop_sidu, from_stop_idu, from_stop_id, from_feed_id, to_stop_sidu, to_stop_idu, to_stop_id, to_feed_id, 'i' as transfer_category, ? as transfer_seconds from _vtransfersimplicit union all -- Generated transfers select from_stop_sidu, from_stop_idu, from_stop_id, feed_id as from_feed_id, to_stop_sidu, to_stop_idu, to_stop_id, feed_id_pair as to_feed_id, 'g' as transfer_category, -- Uses dist_km to determine seconds transfer cost; round up to min_seconds max(coalesce(cast(dist_km / ? * 60 * 60 as uint), ?), ?) as transfer_seconds from _cttransfersgen union all -- Feed transfers (transfers.txt) select from_stop_sidu, from_stop_idu, from_stop_id, feed_id as from_feed_id, to_stop_sidu, to_stop_idu, to_stop_id, feed_id_pair as to_feed_id, 'f' as transfer_category, -- Uses min_transfer_time, else use dist_km; round up to min_seconds max(coalesce(min_transfer_time, cast(dist_km / ? * 60 * 60 as uint), ?), ?) as transfer_seconds from _vtransferstbl ) t where ((from_feed_id = ? and to_feed_id = ?)) and transfer_seconds < ? and transfer_category in (?) ([3 3.5 3 3 3.5 3 3 42 42 1000 i]) to memory 2024/11/19 00:48:21 Loaded select * from ( -- Implicit transfers select from_stop_sidu, from_stop_idu, from_stop_id, from_feed_id, to_stop_sidu, to_stop_idu, to_stop_id, to_feed_id, 'i' as transfer_category, ? as transfer_seconds from _vtransfersimplicit union all -- Generated transfers select from_stop_sidu, from_stop_idu, from_stop_id, feed_id as from_feed_id, to_stop_sidu, to_stop_idu, to_stop_id, feed_id_pair as to_feed_id, 'g' as transfer_category, -- Uses dist_km to determine seconds transfer cost; round up to min_seconds max(coalesce(cast(dist_km / ? * 60 * 60 as uint), ?), ?) as transfer_seconds from _cttransfersgen union all -- Feed transfers (transfers.txt) select from_stop_sidu, from_stop_idu, from_stop_id, feed_id as from_feed_id, to_stop_sidu, to_stop_idu, to_stop_id, feed_id_pair as to_feed_id, 'f' as transfer_category, -- Uses min_transfer_time, else use dist_km; round up to min_seconds max(coalesce(min_transfer_time, cast(dist_km / ? * 60 * 60 as uint), ?), ?) as transfer_seconds from _vtransferstbl ) t where ((from_feed_id = ? and to_feed_id = ?)) and transfer_seconds < ? and transfer_category in (?) ([3 3.5 3 3 3.5 3 3 42 42 1000 i]) to memory ok (len=3) 2024/11/19 00:48:21 Generated mock for input (map[42:../testhelper/mockgtfs/gtfs_transfers.yml]): (gtfs zips: [/tmp/2434999347.zip]) (mobdb csv: /tmp/mobroute_test_mobdb_2794990938.csv) 2024/11/19 00:48:21 SQLite system version (3.46.1); comparing to required version: 3.28.0 2024/11/19 00:48:21 Loading schema tables 2024/11/19 00:48:21 Execute statement: create table if not exists _mobsqltrack ('feed_id' int not null,'feed_id_pair' int,'tbl' text not null,'checksum' text not null,'n_rows' int not null,'timestamp' int not null,unique(feed_id,feed_id_pair,tbl)) 2024/11/19 00:48:21 Execute statement: create table if not exists _gtfssource_mdbcsv ('feed_id' int not null check(feed_id = -1),'data_type' text not null,'location.bounding_box.minimum_latitude' real,'location.bounding_box.minimum_longitude' real,'location.bounding_box.maximum_latitude' real,'location.bounding_box.maximum_longitude' real,'location.country_code' text,'location.subdivision_name' text,'location.municipality' text,'urls.latest' text,'urls.license' text,'mdb_source_id' int not null check(mdb_source_id >= 0),'name' text,'status' text,'provider' text not null,unique(mdb_source_id)) 2024/11/19 00:48:21 Execute statement: create table if not exists _gtfssource_custom ('customgtfs_feed_id' int not null check(customgtfs_feed_id < -1),'gtfs_uri' text not null,unique(customgtfs_feed_id)) 2024/11/19 00:48:21 Execute statement: create table if not exists agency ('feed_id' int not null,'agency_id' text,'agency_name' text not null,'agency_url' text not null,'agency_timezone' text not null,unique(feed_id,agency_id)) 2024/11/19 00:48:21 Execute statement: create table if not exists calendar ('feed_id' int not null,'service_id' text not null,'monday' int not null check(monday in (0,1)),'tuesday' int not null check(tuesday in (0,1)),'wednesday' int not null check(wednesday in (0,1)),'thursday' int not null check(thursday in (0,1)),'friday' int not null check(friday in (0,1)),'saturday' int not null check(saturday in (0,1)),'sunday' int not null check(sunday in (0,1)),'start_date' int not null,'end_date' int not null,unique(feed_id,service_id)) 2024/11/19 00:48:21 Execute statement: create table if not exists calendar_dates ('feed_id' int not null,'service_id' text not null,'date' int not null,'exception_type' int not null check(exception_type in (1,2))) 2024/11/19 00:48:21 Execute statement: create table if not exists stop_times ('feed_id' int not null,'trip_id' text not null,'arrival_time' int,'departure_time' int,'stop_id' text not null,'stop_sequence' int not null,'stop_headsign' text,'pickup_type' int,'drop_off_type' int,'continuous_drop_off' text,'timepoint' int check(timepoint in (0,1)),unique(feed_id,trip_id,stop_sequence)) 2024/11/19 00:48:21 Execute statement: create table if not exists stops ('feed_id' int not null,'stop_id' text not null,'stop_code' text,'stop_name' text check( ((location_type is null or location_type = 0 or location_type = 1 or location_type = 2) and stop_name is not null) or (location_type = 3 or location_type = 4) ),'stop_desc' text,'stop_lat' real check( ((location_type is null or location_type = 0 or location_type = 1 or location_type = 2) and stop_lat is not null) or (location_type = 3 or location_type = 4) ),'stop_lon' real check( ((location_type is null or location_type = 0 or location_type = 1 or location_type = 2) and stop_lon is not null) or (location_type = 3 or location_type = 4) ),'zone_id' text,'stop_url' text,'location_type' int check(location_type in (0,1,2,3,4)),'parent_station' text,'stop_timezone' text,'wheelchair_boarding' int check(wheelchair_boarding in (0,1,2)),'level_id' text,'platform_code' text,unique(feed_id,stop_id)) 2024/11/19 00:48:21 Execute statement: create table if not exists trips ('feed_id' int not null,'route_id' text not null,'service_id' text not null,'trip_id' text not null,'trip_headsign' text,'trip_short_name' text,'direction_id' int check(direction_id in (0,1)),'block_id' text,'shape_id' text,'wheelchair_accessible' text check(wheelchair_accessible in (0,1,2)),'bikes_allowed' int check(bikes_allowed in (0,1,2)),unique(feed_id,trip_id)) 2024/11/19 00:48:21 Execute statement: create table if not exists routes ('feed_id' int not null,'route_id' text not null,'agency_id' text,'route_short_name' text check(route_long_name is not null or route_short_name is not null),'route_long_name' text,'route_desc' text,'route_type' int,'route_url' text,'route_color' text,'route_text_color' text,'route_sort_order' text,'continuous_pickup' int check(continuous_pickup in (0,1,2,3)),'continuous_drop_off' int check(continuous_drop_off in (0,1,2,3)),unique(feed_id,route_id)) 2024/11/19 00:48:21 Execute statement: create table if not exists transfers ('feed_id' int not null,'from_stop_id' text not null,'to_stop_id' text not null,'transfer_type' int,'min_transfer_time' int) 2024/11/19 00:48:21 Execute statement: create table if not exists _ctconn ('feed_id' int not null,'conn_id' text not null,'trip_id' text not null,'service_id' text not null,'from_stop_id' text not null,'from_stop_idu' text not null,'from_stop_sidu' text not null,'from_stop_time' int not null,'from_stop_sequence' int not null,'to_stop_id' text not null,'to_stop_idu' text not null,'to_stop_sidu' text not null,'to_stop_time' int not null,'to_stop_sequence' int not null,unique(feed_id,conn_id)) 2024/11/19 00:48:21 Execute statement: create table if not exists _ctcaltoservice ('feed_id' int not null,'service_date' int not null,'service_id' text not null) 2024/11/19 00:48:21 Execute statement: create table if not exists _cttransfersgen ('feed_id' int not null,'feed_id_pair' int not null,'from_stop_id' text not null,'to_stop_id' text not null,'from_stop_idu' text not null,'to_stop_idu' text not null,'from_stop_sidu' text not null,'to_stop_sidu' text not null,'dist_km' real) 2024/11/19 00:48:21 Loading schema tables ok 2024/11/19 00:48:21 Loading schema indexes 2024/11/19 00:48:21 Create index idx_agency1_agency_timezone on agency as [agency_timezone] 2024/11/19 00:48:21 Created index idx_agency1_agency_timezone ok 2024/11/19 00:48:21 Create index idx_stop_times1_departure_time on stop_times as [departure_time] 2024/11/19 00:48:21 Created index idx_stop_times1_departure_time ok 2024/11/19 00:48:21 Create index idx_stop_times1_trip_id on stop_times as [trip_id] 2024/11/19 00:48:21 Created index idx_stop_times1_trip_id ok 2024/11/19 00:48:21 Create index idx_stops2_feed_id_stop_id on stops as [feed_id stop_id] 2024/11/19 00:48:21 Created index idx_stops2_feed_id_stop_id ok 2024/11/19 00:48:21 Create index idx_stops2_stop_lat_stop_lon on stops as [stop_lat stop_lon] 2024/11/19 00:48:21 Created index idx_stops2_stop_lat_stop_lon ok 2024/11/19 00:48:21 Create index idx_stops3_feed_id_parent_station_location_type on stops as [feed_id parent_station location_type] 2024/11/19 00:48:21 Created index idx_stops3_feed_id_parent_station_location_type ok 2024/11/19 00:48:21 Create index idx_transfers2_feed_id_from_stop_id on transfers as [feed_id from_stop_id] 2024/11/19 00:48:21 Created index idx_transfers2_feed_id_from_stop_id ok 2024/11/19 00:48:21 Create index idx_transfers2_feed_id_to_stop_id on transfers as [feed_id to_stop_id] 2024/11/19 00:48:21 Created index idx_transfers2_feed_id_to_stop_id ok 2024/11/19 00:48:21 Create index idx__ctconn3_feed_id_service_id_from_stop_time on _ctconn as [feed_id service_id from_stop_time] 2024/11/19 00:48:21 Created index idx__ctconn3_feed_id_service_id_from_stop_time ok 2024/11/19 00:48:21 Create index idx__ctconn3_feed_id_from_stop_sidu_from_stop_time on _ctconn as [feed_id from_stop_sidu from_stop_time] 2024/11/19 00:48:21 Created index idx__ctconn3_feed_id_from_stop_sidu_from_stop_time ok 2024/11/19 00:48:21 Create index idx__ctcaltoservice3_feed_id_service_id_service_date on _ctcaltoservice as [feed_id service_id service_date] 2024/11/19 00:48:21 Created index idx__ctcaltoservice3_feed_id_service_id_service_date ok 2024/11/19 00:48:21 Create index idx__ctcaltoservice2_feed_id_service_date on _ctcaltoservice as [feed_id service_date] 2024/11/19 00:48:21 Created index idx__ctcaltoservice2_feed_id_service_date ok 2024/11/19 00:48:21 Loading schema indexes ok 2024/11/19 00:48:21 Loading views ok 2024/11/19 00:48:21 Loaded view _vfeedsminmaxdates (bytes=251) 2024/11/19 00:48:21 Loaded view _vfeedsmetadata (bytes=3676) 2024/11/19 00:48:21 Loaded view _vstopparent (bytes=2600) 2024/11/19 00:48:21 Loaded view _vconn (bytes=1201) 2024/11/19 00:48:21 Loaded view _vconnverbose (bytes=1122) 2024/11/19 00:48:21 Loaded view _vcaltoservice (bytes=3110) 2024/11/19 00:48:21 Loaded view _vtransferstbl (bytes=933) 2024/11/19 00:48:21 Loaded view _vtransfersgen (bytes=1523) 2024/11/19 00:48:21 Loaded view _vtransfersimplicit (bytes=371) 2024/11/19 00:48:21 Loading views ok 2024/11/19 00:48:21 Importing table from //tmp/mobroute_test_mobdb_2794990938.csv (0.00MB) to table: _gtfssource_mdbcsv 2024/11/19 00:48:21 Last checksum vs current: / C_0M_af9dce254bfa4aa91affed43cb0177eec7e1b94c83fe8c340d97527cf3affa68; import will occur 2024/11/19 00:48:21 Execute insert query: 2024/11/19 00:48:21 Insert query complete 2024/11/19 00:48:21 Imported 1 rows into _gtfssource_mdbcsv ok 2024/11/19 00:48:21 Imported table from //tmp/mobroute_test_mobdb_2794990938.csv to table: _gtfssource_mdbcsv ok 2024/11/19 00:48:21 Running RTDatabase against input: {"feed_ids":[42],"op":"load"} 2024/11/19 00:48:21 Running Load against 1 feeds 2024/11/19 00:48:21 Loading GTFS feed 42 (1 of 1) 2024/11/19 00:48:21 Loading /tmp/2434999347.zip to DB with GTFS feed: 42 2024/11/19 00:48:21 Loaded GTFS Archive /tmp/2434999347.zip to temporary directory: /tmp/mobroute_tempdir1624656392 2024/11/19 00:48:21 Loading table: agency 2024/11/19 00:48:21 Importing table from /tmp/mobroute_tempdir1624656392/agency.txt (0.00MB) to table: agency 2024/11/19 00:48:21 Last checksum vs current: / C_0M_ec69cc35698113d39b116d06df83c168ff34eec1dd5daa90136c2ccdddd57966; import will occur 2024/11/19 00:48:21 Execute insert query: 2024/11/19 00:48:21 Insert query complete 2024/11/19 00:48:21 Imported 1 rows into agency ok 2024/11/19 00:48:21 Imported table from /tmp/mobroute_tempdir1624656392/agency.txt to table: agency ok 2024/11/19 00:48:21 Loading table: agency complete 2024/11/19 00:48:21 Loading table: calendar 2024/11/19 00:48:21 Importing table from /tmp/mobroute_tempdir1624656392/calendar.txt (0.00MB) to table: calendar 2024/11/19 00:48:21 Skipped import for non-existant non-required file: /tmp/mobroute_tempdir1624656392/calendar.txt 2024/11/19 00:48:21 Loading table: calendar complete 2024/11/19 00:48:21 Loading table: calendar_dates 2024/11/19 00:48:21 Importing table from /tmp/mobroute_tempdir1624656392/calendar_dates.txt (0.00MB) to table: calendar_dates 2024/11/19 00:48:21 Last checksum vs current: / C_0M_e37e371e5f8c7c355413d55fe59c9054de3dbf0d759f0bcd6ef7968b46cde54e; import will occur 2024/11/19 00:48:21 Execute insert query: 2024/11/19 00:48:21 Insert query complete 2024/11/19 00:48:21 Imported 1 rows into calendar_dates ok 2024/11/19 00:48:21 Imported table from /tmp/mobroute_tempdir1624656392/calendar_dates.txt to table: calendar_dates ok 2024/11/19 00:48:21 Loading table: calendar_dates complete 2024/11/19 00:48:21 Loading table: stop_times 2024/11/19 00:48:21 Importing table from /tmp/mobroute_tempdir1624656392/stop_times.txt (0.00MB) to table: stop_times 2024/11/19 00:48:21 Last checksum vs current: / C_0M_34d5ab6ee7cbb3e04fd82bd1dca86e4daecfa570a11b128209c8e5c102662d0a; import will occur 2024/11/19 00:48:21 Execute insert query: 2024/11/19 00:48:21 Insert query complete 2024/11/19 00:48:21 Imported 1 rows into stop_times ok 2024/11/19 00:48:21 Imported table from /tmp/mobroute_tempdir1624656392/stop_times.txt to table: stop_times ok 2024/11/19 00:48:21 Loading table: stop_times complete 2024/11/19 00:48:21 Loading table: stops 2024/11/19 00:48:21 Importing table from /tmp/mobroute_tempdir1624656392/stops.txt (0.00MB) to table: stops 2024/11/19 00:48:21 Last checksum vs current: / C_0M_e49bcb4d76fb2c80913af3c8407007f34b72c84c7045982cdafa519098886897; import will occur 2024/11/19 00:48:21 Execute insert query: 2024/11/19 00:48:21 Insert query complete 2024/11/19 00:48:21 Imported 4 rows into stops ok 2024/11/19 00:48:21 Imported table from /tmp/mobroute_tempdir1624656392/stops.txt to table: stops ok 2024/11/19 00:48:21 Loading table: stops complete 2024/11/19 00:48:21 Loading table: trips 2024/11/19 00:48:21 Importing table from /tmp/mobroute_tempdir1624656392/trips.txt (0.00MB) to table: trips 2024/11/19 00:48:21 Last checksum vs current: / C_0M_0391ceb043162a440ba78564cae799b0c9b0004ac42d27290246145bfa780435; import will occur 2024/11/19 00:48:21 Execute insert query: 2024/11/19 00:48:21 Insert query complete 2024/11/19 00:48:21 Imported 1 rows into trips ok 2024/11/19 00:48:21 Imported table from /tmp/mobroute_tempdir1624656392/trips.txt to table: trips ok 2024/11/19 00:48:21 Loading table: trips complete 2024/11/19 00:48:21 Loading table: routes 2024/11/19 00:48:21 Importing table from /tmp/mobroute_tempdir1624656392/routes.txt (0.00MB) to table: routes 2024/11/19 00:48:21 Last checksum vs current: / C_0M_a6031af6418607a6e5f51c20eaa22f422664f8d5254c59438ab18ce7e1e97cf8; import will occur 2024/11/19 00:48:21 Execute insert query: 2024/11/19 00:48:21 Insert query complete 2024/11/19 00:48:21 Imported 1 rows into routes ok 2024/11/19 00:48:21 Imported table from /tmp/mobroute_tempdir1624656392/routes.txt to table: routes ok 2024/11/19 00:48:21 Loading table: routes complete 2024/11/19 00:48:21 Loading table: transfers 2024/11/19 00:48:21 Importing table from /tmp/mobroute_tempdir1624656392/transfers.txt (0.00MB) to table: transfers 2024/11/19 00:48:21 Last checksum vs current: / C_0M_62f6463902bf0c18eefcc88fd81a21fbf559daca8485920a3653a28636aa83f5; import will occur 2024/11/19 00:48:21 Execute insert query: 2024/11/19 00:48:21 Insert query complete 2024/11/19 00:48:21 Imported 2 rows into transfers ok 2024/11/19 00:48:21 Imported table from /tmp/mobroute_tempdir1624656392/transfers.txt to table: transfers ok 2024/11/19 00:48:21 Loading table: transfers complete 2024/11/19 00:48:21 Loaded /tmp/2434999347.zip to DB with GTFS feed: 42 ok 2024/11/19 00:48:21 Loading GTFS feed 42 ok; used cache for URL download (true) 2024/11/19 00:48:21 Running Load against 1 feeds ok 2024/11/19 00:48:21 Running RTDatabase against input: {"feed_ids":[42],"op":"compute"} 2024/11/19 00:48:21 Running Compute against 1 feeds 2024/11/19 00:48:21 Computed table _ctconn for feed (42 ) out of date - updating ('' vs '42:routes:C_0M_a6031af6418607a6e5f51c20eaa22f422664f8d5254c59438ab18ce7e1e97cf8,42:stop_times:C_0M_34d5ab6ee7cbb3e04fd82bd1dca86e4daecfa570a11b128209c8e5c102662d0a,42:stops:C_0M_e49bcb4d76fb2c80913af3c8407007f34b72c84c7045982cdafa519098886897,42:trips:C_0M_0391ceb043162a440ba78564cae799b0c9b0004ac42d27290246145bfa780435') 2024/11/19 00:48:21 Computed table _ctcaltoservice for feed (42 ) out of date - updating ('' vs '42:stops:C_0M_e49bcb4d76fb2c80913af3c8407007f34b72c84c7045982cdafa519098886897') 2024/11/19 00:48:21 Computed table _cttransfersgen for feed (42 0xc000597618) out of date - updating ('' vs '42:stops:C_0M_e49bcb4d76fb2c80913af3c8407007f34b72c84c7045982cdafa519098886897') 2024/11/19 00:48:21 Running Compute against 1 feeds ok 2024/11/19 00:48:21 Loading select * from ( -- Implicit transfers select from_stop_sidu, from_stop_idu, from_stop_id, from_feed_id, to_stop_sidu, to_stop_idu, to_stop_id, to_feed_id, 'i' as transfer_category, ? as transfer_seconds from _vtransfersimplicit union all -- Generated transfers select from_stop_sidu, from_stop_idu, from_stop_id, feed_id as from_feed_id, to_stop_sidu, to_stop_idu, to_stop_id, feed_id_pair as to_feed_id, 'g' as transfer_category, -- Uses dist_km to determine seconds transfer cost; round up to min_seconds max(coalesce(cast(dist_km / ? * 60 * 60 as uint), ?), ?) as transfer_seconds from _cttransfersgen union all -- Feed transfers (transfers.txt) select from_stop_sidu, from_stop_idu, from_stop_id, feed_id as from_feed_id, to_stop_sidu, to_stop_idu, to_stop_id, feed_id_pair as to_feed_id, 'f' as transfer_category, -- Uses min_transfer_time, else use dist_km; round up to min_seconds max(coalesce(min_transfer_time, cast(dist_km / ? * 60 * 60 as uint), ?), ?) as transfer_seconds from _vtransferstbl ) t where ((from_feed_id = ? and to_feed_id = ?)) and transfer_seconds < ? and transfer_category in (?) ([3 3.5 3 3 3.5 3 3 42 42 1000 g]) to memory 2024/11/19 00:48:21 Loaded select * from ( -- Implicit transfers select from_stop_sidu, from_stop_idu, from_stop_id, from_feed_id, to_stop_sidu, to_stop_idu, to_stop_id, to_feed_id, 'i' as transfer_category, ? as transfer_seconds from _vtransfersimplicit union all -- Generated transfers select from_stop_sidu, from_stop_idu, from_stop_id, feed_id as from_feed_id, to_stop_sidu, to_stop_idu, to_stop_id, feed_id_pair as to_feed_id, 'g' as transfer_category, -- Uses dist_km to determine seconds transfer cost; round up to min_seconds max(coalesce(cast(dist_km / ? * 60 * 60 as uint), ?), ?) as transfer_seconds from _cttransfersgen union all -- Feed transfers (transfers.txt) select from_stop_sidu, from_stop_idu, from_stop_id, feed_id as from_feed_id, to_stop_sidu, to_stop_idu, to_stop_id, feed_id_pair as to_feed_id, 'f' as transfer_category, -- Uses min_transfer_time, else use dist_km; round up to min_seconds max(coalesce(min_transfer_time, cast(dist_km / ? * 60 * 60 as uint), ?), ?) as transfer_seconds from _vtransferstbl ) t where ((from_feed_id = ? and to_feed_id = ?)) and transfer_seconds < ? and transfer_category in (?) ([3 3.5 3 3 3.5 3 3 42 42 1000 g]) to memory ok (len=3) 2024/11/19 00:48:21 Generated mock for input (map[42:../testhelper/mockgtfs/gtfs_transfers.yml]): (gtfs zips: [/tmp/1691662065.zip]) (mobdb csv: /tmp/mobroute_test_mobdb_3241313087.csv) 2024/11/19 00:48:21 SQLite system version (3.46.1); comparing to required version: 3.28.0 2024/11/19 00:48:21 Loading schema tables 2024/11/19 00:48:21 Execute statement: create table if not exists _mobsqltrack ('feed_id' int not null,'feed_id_pair' int,'tbl' text not null,'checksum' text not null,'n_rows' int not null,'timestamp' int not null,unique(feed_id,feed_id_pair,tbl)) 2024/11/19 00:48:21 Execute statement: create table if not exists _gtfssource_mdbcsv ('feed_id' int not null check(feed_id = -1),'data_type' text not null,'location.bounding_box.minimum_latitude' real,'location.bounding_box.minimum_longitude' real,'location.bounding_box.maximum_latitude' real,'location.bounding_box.maximum_longitude' real,'location.country_code' text,'location.subdivision_name' text,'location.municipality' text,'urls.latest' text,'urls.license' text,'mdb_source_id' int not null check(mdb_source_id >= 0),'name' text,'status' text,'provider' text not null,unique(mdb_source_id)) 2024/11/19 00:48:21 Execute statement: create table if not exists _gtfssource_custom ('customgtfs_feed_id' int not null check(customgtfs_feed_id < -1),'gtfs_uri' text not null,unique(customgtfs_feed_id)) 2024/11/19 00:48:21 Execute statement: create table if not exists agency ('feed_id' int not null,'agency_id' text,'agency_name' text not null,'agency_url' text not null,'agency_timezone' text not null,unique(feed_id,agency_id)) 2024/11/19 00:48:21 Execute statement: create table if not exists calendar ('feed_id' int not null,'service_id' text not null,'monday' int not null check(monday in (0,1)),'tuesday' int not null check(tuesday in (0,1)),'wednesday' int not null check(wednesday in (0,1)),'thursday' int not null check(thursday in (0,1)),'friday' int not null check(friday in (0,1)),'saturday' int not null check(saturday in (0,1)),'sunday' int not null check(sunday in (0,1)),'start_date' int not null,'end_date' int not null,unique(feed_id,service_id)) 2024/11/19 00:48:21 Execute statement: create table if not exists calendar_dates ('feed_id' int not null,'service_id' text not null,'date' int not null,'exception_type' int not null check(exception_type in (1,2))) 2024/11/19 00:48:21 Execute statement: create table if not exists stop_times ('feed_id' int not null,'trip_id' text not null,'arrival_time' int,'departure_time' int,'stop_id' text not null,'stop_sequence' int not null,'stop_headsign' text,'pickup_type' int,'drop_off_type' int,'continuous_drop_off' text,'timepoint' int check(timepoint in (0,1)),unique(feed_id,trip_id,stop_sequence)) 2024/11/19 00:48:21 Execute statement: create table if not exists stops ('feed_id' int not null,'stop_id' text not null,'stop_code' text,'stop_name' text check( ((location_type is null or location_type = 0 or location_type = 1 or location_type = 2) and stop_name is not null) or (location_type = 3 or location_type = 4) ),'stop_desc' text,'stop_lat' real check( ((location_type is null or location_type = 0 or location_type = 1 or location_type = 2) and stop_lat is not null) or (location_type = 3 or location_type = 4) ),'stop_lon' real check( ((location_type is null or location_type = 0 or location_type = 1 or location_type = 2) and stop_lon is not null) or (location_type = 3 or location_type = 4) ),'zone_id' text,'stop_url' text,'location_type' int check(location_type in (0,1,2,3,4)),'parent_station' text,'stop_timezone' text,'wheelchair_boarding' int check(wheelchair_boarding in (0,1,2)),'level_id' text,'platform_code' text,unique(feed_id,stop_id)) 2024/11/19 00:48:21 Execute statement: create table if not exists trips ('feed_id' int not null,'route_id' text not null,'service_id' text not null,'trip_id' text not null,'trip_headsign' text,'trip_short_name' text,'direction_id' int check(direction_id in (0,1)),'block_id' text,'shape_id' text,'wheelchair_accessible' text check(wheelchair_accessible in (0,1,2)),'bikes_allowed' int check(bikes_allowed in (0,1,2)),unique(feed_id,trip_id)) 2024/11/19 00:48:21 Execute statement: create table if not exists routes ('feed_id' int not null,'route_id' text not null,'agency_id' text,'route_short_name' text check(route_long_name is not null or route_short_name is not null),'route_long_name' text,'route_desc' text,'route_type' int,'route_url' text,'route_color' text,'route_text_color' text,'route_sort_order' text,'continuous_pickup' int check(continuous_pickup in (0,1,2,3)),'continuous_drop_off' int check(continuous_drop_off in (0,1,2,3)),unique(feed_id,route_id)) 2024/11/19 00:48:21 Execute statement: create table if not exists transfers ('feed_id' int not null,'from_stop_id' text not null,'to_stop_id' text not null,'transfer_type' int,'min_transfer_time' int) 2024/11/19 00:48:21 Execute statement: create table if not exists _ctconn ('feed_id' int not null,'conn_id' text not null,'trip_id' text not null,'service_id' text not null,'from_stop_id' text not null,'from_stop_idu' text not null,'from_stop_sidu' text not null,'from_stop_time' int not null,'from_stop_sequence' int not null,'to_stop_id' text not null,'to_stop_idu' text not null,'to_stop_sidu' text not null,'to_stop_time' int not null,'to_stop_sequence' int not null,unique(feed_id,conn_id)) 2024/11/19 00:48:21 Execute statement: create table if not exists _ctcaltoservice ('feed_id' int not null,'service_date' int not null,'service_id' text not null) 2024/11/19 00:48:21 Execute statement: create table if not exists _cttransfersgen ('feed_id' int not null,'feed_id_pair' int not null,'from_stop_id' text not null,'to_stop_id' text not null,'from_stop_idu' text not null,'to_stop_idu' text not null,'from_stop_sidu' text not null,'to_stop_sidu' text not null,'dist_km' real) 2024/11/19 00:48:21 Loading schema tables ok 2024/11/19 00:48:21 Loading schema indexes 2024/11/19 00:48:21 Create index idx_agency1_agency_timezone on agency as [agency_timezone] 2024/11/19 00:48:21 Created index idx_agency1_agency_timezone ok 2024/11/19 00:48:21 Create index idx_stop_times1_departure_time on stop_times as [departure_time] 2024/11/19 00:48:21 Created index idx_stop_times1_departure_time ok 2024/11/19 00:48:21 Create index idx_stop_times1_trip_id on stop_times as [trip_id] 2024/11/19 00:48:21 Created index idx_stop_times1_trip_id ok 2024/11/19 00:48:21 Create index idx_stops2_feed_id_stop_id on stops as [feed_id stop_id] 2024/11/19 00:48:21 Created index idx_stops2_feed_id_stop_id ok 2024/11/19 00:48:21 Create index idx_stops2_stop_lat_stop_lon on stops as [stop_lat stop_lon] 2024/11/19 00:48:21 Created index idx_stops2_stop_lat_stop_lon ok 2024/11/19 00:48:21 Create index idx_stops3_feed_id_parent_station_location_type on stops as [feed_id parent_station location_type] 2024/11/19 00:48:21 Created index idx_stops3_feed_id_parent_station_location_type ok 2024/11/19 00:48:21 Create index idx_transfers2_feed_id_from_stop_id on transfers as [feed_id from_stop_id] 2024/11/19 00:48:21 Created index idx_transfers2_feed_id_from_stop_id ok 2024/11/19 00:48:21 Create index idx_transfers2_feed_id_to_stop_id on transfers as [feed_id to_stop_id] 2024/11/19 00:48:21 Created index idx_transfers2_feed_id_to_stop_id ok 2024/11/19 00:48:21 Create index idx__ctconn3_feed_id_service_id_from_stop_time on _ctconn as [feed_id service_id from_stop_time] 2024/11/19 00:48:21 Created index idx__ctconn3_feed_id_service_id_from_stop_time ok 2024/11/19 00:48:21 Create index idx__ctconn3_feed_id_from_stop_sidu_from_stop_time on _ctconn as [feed_id from_stop_sidu from_stop_time] 2024/11/19 00:48:21 Created index idx__ctconn3_feed_id_from_stop_sidu_from_stop_time ok 2024/11/19 00:48:21 Create index idx__ctcaltoservice3_feed_id_service_id_service_date on _ctcaltoservice as [feed_id service_id service_date] 2024/11/19 00:48:21 Created index idx__ctcaltoservice3_feed_id_service_id_service_date ok 2024/11/19 00:48:21 Create index idx__ctcaltoservice2_feed_id_service_date on _ctcaltoservice as [feed_id service_date] 2024/11/19 00:48:21 Created index idx__ctcaltoservice2_feed_id_service_date ok 2024/11/19 00:48:21 Loading schema indexes ok 2024/11/19 00:48:21 Loading views ok 2024/11/19 00:48:21 Loaded view _vfeedsminmaxdates (bytes=251) 2024/11/19 00:48:21 Loaded view _vfeedsmetadata (bytes=3676) 2024/11/19 00:48:21 Loaded view _vstopparent (bytes=2600) 2024/11/19 00:48:21 Loaded view _vconn (bytes=1201) 2024/11/19 00:48:21 Loaded view _vconnverbose (bytes=1122) 2024/11/19 00:48:21 Loaded view _vcaltoservice (bytes=3110) 2024/11/19 00:48:21 Loaded view _vtransferstbl (bytes=933) 2024/11/19 00:48:21 Loaded view _vtransfersgen (bytes=1523) 2024/11/19 00:48:21 Loaded view _vtransfersimplicit (bytes=371) 2024/11/19 00:48:21 Loading views ok 2024/11/19 00:48:21 Importing table from //tmp/mobroute_test_mobdb_3241313087.csv (0.00MB) to table: _gtfssource_mdbcsv 2024/11/19 00:48:21 Last checksum vs current: / C_0M_4c30255b81d217b6a3227860055d8c59ce8247ef03ca854d486e969af932aef1; import will occur 2024/11/19 00:48:21 Execute insert query: 2024/11/19 00:48:21 Insert query complete 2024/11/19 00:48:21 Imported 1 rows into _gtfssource_mdbcsv ok 2024/11/19 00:48:21 Imported table from //tmp/mobroute_test_mobdb_3241313087.csv to table: _gtfssource_mdbcsv ok 2024/11/19 00:48:21 Running RTDatabase against input: {"feed_ids":[42],"op":"load"} 2024/11/19 00:48:21 Running Load against 1 feeds 2024/11/19 00:48:21 Loading GTFS feed 42 (1 of 1) 2024/11/19 00:48:21 Loading /tmp/1691662065.zip to DB with GTFS feed: 42 2024/11/19 00:48:21 Loaded GTFS Archive /tmp/1691662065.zip to temporary directory: /tmp/mobroute_tempdir3544009117 2024/11/19 00:48:21 Loading table: agency 2024/11/19 00:48:21 Importing table from /tmp/mobroute_tempdir3544009117/agency.txt (0.00MB) to table: agency 2024/11/19 00:48:21 Last checksum vs current: / C_0M_ec69cc35698113d39b116d06df83c168ff34eec1dd5daa90136c2ccdddd57966; import will occur 2024/11/19 00:48:21 Execute insert query: 2024/11/19 00:48:21 Insert query complete 2024/11/19 00:48:21 Imported 1 rows into agency ok 2024/11/19 00:48:21 Imported table from /tmp/mobroute_tempdir3544009117/agency.txt to table: agency ok 2024/11/19 00:48:21 Loading table: agency complete 2024/11/19 00:48:21 Loading table: calendar 2024/11/19 00:48:21 Importing table from /tmp/mobroute_tempdir3544009117/calendar.txt (0.00MB) to table: calendar 2024/11/19 00:48:21 Skipped import for non-existant non-required file: /tmp/mobroute_tempdir3544009117/calendar.txt 2024/11/19 00:48:21 Loading table: calendar complete 2024/11/19 00:48:21 Loading table: calendar_dates 2024/11/19 00:48:21 Importing table from /tmp/mobroute_tempdir3544009117/calendar_dates.txt (0.00MB) to table: calendar_dates 2024/11/19 00:48:21 Last checksum vs current: / C_0M_e37e371e5f8c7c355413d55fe59c9054de3dbf0d759f0bcd6ef7968b46cde54e; import will occur 2024/11/19 00:48:21 Execute insert query: 2024/11/19 00:48:21 Insert query complete 2024/11/19 00:48:21 Imported 1 rows into calendar_dates ok 2024/11/19 00:48:21 Imported table from /tmp/mobroute_tempdir3544009117/calendar_dates.txt to table: calendar_dates ok 2024/11/19 00:48:21 Loading table: calendar_dates complete 2024/11/19 00:48:21 Loading table: stop_times 2024/11/19 00:48:21 Importing table from /tmp/mobroute_tempdir3544009117/stop_times.txt (0.00MB) to table: stop_times 2024/11/19 00:48:21 Last checksum vs current: / C_0M_34d5ab6ee7cbb3e04fd82bd1dca86e4daecfa570a11b128209c8e5c102662d0a; import will occur 2024/11/19 00:48:21 Execute insert query: 2024/11/19 00:48:21 Insert query complete 2024/11/19 00:48:21 Imported 1 rows into stop_times ok 2024/11/19 00:48:21 Imported table from /tmp/mobroute_tempdir3544009117/stop_times.txt to table: stop_times ok 2024/11/19 00:48:21 Loading table: stop_times complete 2024/11/19 00:48:21 Loading table: stops 2024/11/19 00:48:21 Importing table from /tmp/mobroute_tempdir3544009117/stops.txt (0.00MB) to table: stops 2024/11/19 00:48:21 Last checksum vs current: / C_0M_e49bcb4d76fb2c80913af3c8407007f34b72c84c7045982cdafa519098886897; import will occur 2024/11/19 00:48:21 Execute insert query: 2024/11/19 00:48:21 Insert query complete 2024/11/19 00:48:21 Imported 4 rows into stops ok 2024/11/19 00:48:21 Imported table from /tmp/mobroute_tempdir3544009117/stops.txt to table: stops ok 2024/11/19 00:48:21 Loading table: stops complete 2024/11/19 00:48:21 Loading table: trips 2024/11/19 00:48:21 Importing table from /tmp/mobroute_tempdir3544009117/trips.txt (0.00MB) to table: trips 2024/11/19 00:48:21 Last checksum vs current: / C_0M_0391ceb043162a440ba78564cae799b0c9b0004ac42d27290246145bfa780435; import will occur 2024/11/19 00:48:21 Execute insert query: 2024/11/19 00:48:21 Insert query complete 2024/11/19 00:48:21 Imported 1 rows into trips ok 2024/11/19 00:48:21 Imported table from /tmp/mobroute_tempdir3544009117/trips.txt to table: trips ok 2024/11/19 00:48:21 Loading table: trips complete 2024/11/19 00:48:21 Loading table: routes 2024/11/19 00:48:21 Importing table from /tmp/mobroute_tempdir3544009117/routes.txt (0.00MB) to table: routes 2024/11/19 00:48:21 Last checksum vs current: / C_0M_a6031af6418607a6e5f51c20eaa22f422664f8d5254c59438ab18ce7e1e97cf8; import will occur 2024/11/19 00:48:21 Execute insert query: 2024/11/19 00:48:21 Insert query complete 2024/11/19 00:48:21 Imported 1 rows into routes ok 2024/11/19 00:48:21 Imported table from /tmp/mobroute_tempdir3544009117/routes.txt to table: routes ok 2024/11/19 00:48:21 Loading table: routes complete 2024/11/19 00:48:21 Loading table: transfers 2024/11/19 00:48:21 Importing table from /tmp/mobroute_tempdir3544009117/transfers.txt (0.00MB) to table: transfers 2024/11/19 00:48:21 Last checksum vs current: / C_0M_62f6463902bf0c18eefcc88fd81a21fbf559daca8485920a3653a28636aa83f5; import will occur 2024/11/19 00:48:21 Execute insert query: 2024/11/19 00:48:21 Insert query complete 2024/11/19 00:48:21 Imported 2 rows into transfers ok 2024/11/19 00:48:21 Imported table from /tmp/mobroute_tempdir3544009117/transfers.txt to table: transfers ok 2024/11/19 00:48:21 Loading table: transfers complete 2024/11/19 00:48:21 Loaded /tmp/1691662065.zip to DB with GTFS feed: 42 ok 2024/11/19 00:48:21 Loading GTFS feed 42 ok; used cache for URL download (true) 2024/11/19 00:48:21 Running Load against 1 feeds ok 2024/11/19 00:48:21 Running RTDatabase against input: {"feed_ids":[42],"op":"compute"} 2024/11/19 00:48:21 Running Compute against 1 feeds 2024/11/19 00:48:21 Computed table _ctconn for feed (42 ) out of date - updating ('' vs '42:routes:C_0M_a6031af6418607a6e5f51c20eaa22f422664f8d5254c59438ab18ce7e1e97cf8,42:stop_times:C_0M_34d5ab6ee7cbb3e04fd82bd1dca86e4daecfa570a11b128209c8e5c102662d0a,42:stops:C_0M_e49bcb4d76fb2c80913af3c8407007f34b72c84c7045982cdafa519098886897,42:trips:C_0M_0391ceb043162a440ba78564cae799b0c9b0004ac42d27290246145bfa780435') 2024/11/19 00:48:21 Computed table _ctcaltoservice for feed (42 ) out of date - updating ('' vs '42:stops:C_0M_e49bcb4d76fb2c80913af3c8407007f34b72c84c7045982cdafa519098886897') 2024/11/19 00:48:21 Computed table _cttransfersgen for feed (42 0xc000329008) out of date - updating ('' vs '42:stops:C_0M_e49bcb4d76fb2c80913af3c8407007f34b72c84c7045982cdafa519098886897') 2024/11/19 00:48:21 Running Compute against 1 feeds ok 2024/11/19 00:48:21 Loading select * from ( -- Implicit transfers select from_stop_sidu, from_stop_idu, from_stop_id, from_feed_id, to_stop_sidu, to_stop_idu, to_stop_id, to_feed_id, 'i' as transfer_category, ? as transfer_seconds from _vtransfersimplicit union all -- Generated transfers select from_stop_sidu, from_stop_idu, from_stop_id, feed_id as from_feed_id, to_stop_sidu, to_stop_idu, to_stop_id, feed_id_pair as to_feed_id, 'g' as transfer_category, -- Uses dist_km to determine seconds transfer cost; round up to min_seconds max(coalesce(cast(dist_km / ? * 60 * 60 as uint), ?), ?) as transfer_seconds from _cttransfersgen union all -- Feed transfers (transfers.txt) select from_stop_sidu, from_stop_idu, from_stop_id, feed_id as from_feed_id, to_stop_sidu, to_stop_idu, to_stop_id, feed_id_pair as to_feed_id, 'f' as transfer_category, -- Uses min_transfer_time, else use dist_km; round up to min_seconds max(coalesce(min_transfer_time, cast(dist_km / ? * 60 * 60 as uint), ?), ?) as transfer_seconds from _vtransferstbl ) t where ((from_feed_id = ? and to_feed_id = ?)) and transfer_seconds < ? and transfer_category in (? , ?) ([3 3.5 3 3 3.5 3 3 42 42 1000 f g]) to memory 2024/11/19 00:48:21 Loaded select * from ( -- Implicit transfers select from_stop_sidu, from_stop_idu, from_stop_id, from_feed_id, to_stop_sidu, to_stop_idu, to_stop_id, to_feed_id, 'i' as transfer_category, ? as transfer_seconds from _vtransfersimplicit union all -- Generated transfers select from_stop_sidu, from_stop_idu, from_stop_id, feed_id as from_feed_id, to_stop_sidu, to_stop_idu, to_stop_id, feed_id_pair as to_feed_id, 'g' as transfer_category, -- Uses dist_km to determine seconds transfer cost; round up to min_seconds max(coalesce(cast(dist_km / ? * 60 * 60 as uint), ?), ?) as transfer_seconds from _cttransfersgen union all -- Feed transfers (transfers.txt) select from_stop_sidu, from_stop_idu, from_stop_id, feed_id as from_feed_id, to_stop_sidu, to_stop_idu, to_stop_id, feed_id_pair as to_feed_id, 'f' as transfer_category, -- Uses min_transfer_time, else use dist_km; round up to min_seconds max(coalesce(min_transfer_time, cast(dist_km / ? * 60 * 60 as uint), ?), ?) as transfer_seconds from _vtransferstbl ) t where ((from_feed_id = ? and to_feed_id = ?)) and transfer_seconds < ? and transfer_category in (? , ?) ([3 3.5 3 3 3.5 3 3 42 42 1000 f g]) to memory ok (len=5) --- PASS: Test_LoadTransfers (0.11s) PASS ok git.sr.ht/~mil/mobroute/dbquery_test 0.293s ? git.sr.ht/~mil/mobroute/dbschemaextra [no test files] ? git.sr.ht/~mil/mobroute/dbstubquery [no test files] === RUN Test_LoadCalToService 2024/11/19 00:48:22 Generated mock for input (map[42:../testhelper/mockgtfs/gtfs_cal_only.yml]): (gtfs zips: [/tmp/3328080721.zip]) (mobdb csv: /tmp/mobroute_test_mobdb_2186692730.csv) 2024/11/19 00:48:22 SQLite system version (3.46.1); comparing to required version: 3.28.0 2024/11/19 00:48:22 Loading schema tables 2024/11/19 00:48:22 Execute statement: create table if not exists _mobsqltrack ('feed_id' int not null,'feed_id_pair' int,'tbl' text not null,'checksum' text not null,'n_rows' int not null,'timestamp' int not null,unique(feed_id,feed_id_pair,tbl)) 2024/11/19 00:48:22 Execute statement: create table if not exists _gtfssource_mdbcsv ('feed_id' int not null check(feed_id = -1),'data_type' text not null,'location.bounding_box.minimum_latitude' real,'location.bounding_box.minimum_longitude' real,'location.bounding_box.maximum_latitude' real,'location.bounding_box.maximum_longitude' real,'location.country_code' text,'location.subdivision_name' text,'location.municipality' text,'urls.latest' text,'urls.license' text,'mdb_source_id' int not null check(mdb_source_id >= 0),'name' text,'status' text,'provider' text not null,unique(mdb_source_id)) 2024/11/19 00:48:22 Execute statement: create table if not exists _gtfssource_custom ('customgtfs_feed_id' int not null check(customgtfs_feed_id < -1),'gtfs_uri' text not null,unique(customgtfs_feed_id)) 2024/11/19 00:48:22 Execute statement: create table if not exists agency ('feed_id' int not null,'agency_id' text,'agency_name' text not null,'agency_url' text not null,'agency_timezone' text not null,unique(feed_id,agency_id)) 2024/11/19 00:48:22 Execute statement: create table if not exists calendar ('feed_id' int not null,'service_id' text not null,'monday' int not null check(monday in (0,1)),'tuesday' int not null check(tuesday in (0,1)),'wednesday' int not null check(wednesday in (0,1)),'thursday' int not null check(thursday in (0,1)),'friday' int not null check(friday in (0,1)),'saturday' int not null check(saturday in (0,1)),'sunday' int not null check(sunday in (0,1)),'start_date' int not null,'end_date' int not null,unique(feed_id,service_id)) 2024/11/19 00:48:22 Execute statement: create table if not exists calendar_dates ('feed_id' int not null,'service_id' text not null,'date' int not null,'exception_type' int not null check(exception_type in (1,2))) 2024/11/19 00:48:22 Execute statement: create table if not exists stop_times ('feed_id' int not null,'trip_id' text not null,'arrival_time' int,'departure_time' int,'stop_id' text not null,'stop_sequence' int not null,'stop_headsign' text,'pickup_type' int,'drop_off_type' int,'continuous_drop_off' text,'timepoint' int check(timepoint in (0,1)),unique(feed_id,trip_id,stop_sequence)) 2024/11/19 00:48:22 Execute statement: create table if not exists stops ('feed_id' int not null,'stop_id' text not null,'stop_code' text,'stop_name' text check( ((location_type is null or location_type = 0 or location_type = 1 or location_type = 2) and stop_name is not null) or (location_type = 3 or location_type = 4) ),'stop_desc' text,'stop_lat' real check( ((location_type is null or location_type = 0 or location_type = 1 or location_type = 2) and stop_lat is not null) or (location_type = 3 or location_type = 4) ),'stop_lon' real check( ((location_type is null or location_type = 0 or location_type = 1 or location_type = 2) and stop_lon is not null) or (location_type = 3 or location_type = 4) ),'zone_id' text,'stop_url' text,'location_type' int check(location_type in (0,1,2,3,4)),'parent_station' text,'stop_timezone' text,'wheelchair_boarding' int check(wheelchair_boarding in (0,1,2)),'level_id' text,'platform_code' text,unique(feed_id,stop_id)) 2024/11/19 00:48:22 Execute statement: create table if not exists trips ('feed_id' int not null,'route_id' text not null,'service_id' text not null,'trip_id' text not null,'trip_headsign' text,'trip_short_name' text,'direction_id' int check(direction_id in (0,1)),'block_id' text,'shape_id' text,'wheelchair_accessible' text check(wheelchair_accessible in (0,1,2)),'bikes_allowed' int check(bikes_allowed in (0,1,2)),unique(feed_id,trip_id)) 2024/11/19 00:48:22 Execute statement: create table if not exists routes ('feed_id' int not null,'route_id' text not null,'agency_id' text,'route_short_name' text check(route_long_name is not null or route_short_name is not null),'route_long_name' text,'route_desc' text,'route_type' int,'route_url' text,'route_color' text,'route_text_color' text,'route_sort_order' text,'continuous_pickup' int check(continuous_pickup in (0,1,2,3)),'continuous_drop_off' int check(continuous_drop_off in (0,1,2,3)),unique(feed_id,route_id)) 2024/11/19 00:48:22 Execute statement: create table if not exists transfers ('feed_id' int not null,'from_stop_id' text not null,'to_stop_id' text not null,'transfer_type' int,'min_transfer_time' int) 2024/11/19 00:48:22 Execute statement: create table if not exists _ctconn ('feed_id' int not null,'conn_id' text not null,'trip_id' text not null,'service_id' text not null,'from_stop_id' text not null,'from_stop_idu' text not null,'from_stop_sidu' text not null,'from_stop_time' int not null,'from_stop_sequence' int not null,'to_stop_id' text not null,'to_stop_idu' text not null,'to_stop_sidu' text not null,'to_stop_time' int not null,'to_stop_sequence' int not null,unique(feed_id,conn_id)) 2024/11/19 00:48:22 Execute statement: create table if not exists _ctcaltoservice ('feed_id' int not null,'service_date' int not null,'service_id' text not null) 2024/11/19 00:48:22 Execute statement: create table if not exists _cttransfersgen ('feed_id' int not null,'feed_id_pair' int not null,'from_stop_id' text not null,'to_stop_id' text not null,'from_stop_idu' text not null,'to_stop_idu' text not null,'from_stop_sidu' text not null,'to_stop_sidu' text not null,'dist_km' real) 2024/11/19 00:48:22 Loading schema tables ok 2024/11/19 00:48:22 Loading schema indexes 2024/11/19 00:48:22 Create index idx_agency1_agency_timezone on agency as [agency_timezone] 2024/11/19 00:48:22 Created index idx_agency1_agency_timezone ok 2024/11/19 00:48:22 Create index idx_stop_times1_departure_time on stop_times as [departure_time] 2024/11/19 00:48:22 Created index idx_stop_times1_departure_time ok 2024/11/19 00:48:22 Create index idx_stop_times1_trip_id on stop_times as [trip_id] 2024/11/19 00:48:22 Created index idx_stop_times1_trip_id ok 2024/11/19 00:48:22 Create index idx_stops2_feed_id_stop_id on stops as [feed_id stop_id] 2024/11/19 00:48:22 Created index idx_stops2_feed_id_stop_id ok 2024/11/19 00:48:22 Create index idx_stops2_stop_lat_stop_lon on stops as [stop_lat stop_lon] 2024/11/19 00:48:22 Created index idx_stops2_stop_lat_stop_lon ok 2024/11/19 00:48:22 Create index idx_stops3_feed_id_parent_station_location_type on stops as [feed_id parent_station location_type] 2024/11/19 00:48:22 Created index idx_stops3_feed_id_parent_station_location_type ok 2024/11/19 00:48:22 Create index idx_transfers2_feed_id_from_stop_id on transfers as [feed_id from_stop_id] 2024/11/19 00:48:22 Created index idx_transfers2_feed_id_from_stop_id ok 2024/11/19 00:48:22 Create index idx_transfers2_feed_id_to_stop_id on transfers as [feed_id to_stop_id] 2024/11/19 00:48:22 Created index idx_transfers2_feed_id_to_stop_id ok 2024/11/19 00:48:22 Create index idx__ctconn3_feed_id_service_id_from_stop_time on _ctconn as [feed_id service_id from_stop_time] 2024/11/19 00:48:22 Created index idx__ctconn3_feed_id_service_id_from_stop_time ok 2024/11/19 00:48:22 Create index idx__ctconn3_feed_id_from_stop_sidu_from_stop_time on _ctconn as [feed_id from_stop_sidu from_stop_time] 2024/11/19 00:48:22 Created index idx__ctconn3_feed_id_from_stop_sidu_from_stop_time ok 2024/11/19 00:48:22 Create index idx__ctcaltoservice3_feed_id_service_id_service_date on _ctcaltoservice as [feed_id service_id service_date] 2024/11/19 00:48:22 Created index idx__ctcaltoservice3_feed_id_service_id_service_date ok 2024/11/19 00:48:22 Create index idx__ctcaltoservice2_feed_id_service_date on _ctcaltoservice as [feed_id service_date] 2024/11/19 00:48:22 Created index idx__ctcaltoservice2_feed_id_service_date ok 2024/11/19 00:48:22 Loading schema indexes ok 2024/11/19 00:48:22 Loading views ok 2024/11/19 00:48:22 Loaded view _vfeedsminmaxdates (bytes=251) 2024/11/19 00:48:22 Loaded view _vfeedsmetadata (bytes=3676) 2024/11/19 00:48:22 Loaded view _vstopparent (bytes=2600) 2024/11/19 00:48:22 Loaded view _vconn (bytes=1201) 2024/11/19 00:48:22 Loaded view _vconnverbose (bytes=1122) 2024/11/19 00:48:22 Loaded view _vcaltoservice (bytes=3110) 2024/11/19 00:48:22 Loaded view _vtransferstbl (bytes=933) 2024/11/19 00:48:22 Loaded view _vtransfersgen (bytes=1523) 2024/11/19 00:48:22 Loaded view _vtransfersimplicit (bytes=371) 2024/11/19 00:48:22 Loading views ok 2024/11/19 00:48:22 Importing table from //tmp/mobroute_test_mobdb_2186692730.csv (0.00MB) to table: _gtfssource_mdbcsv 2024/11/19 00:48:22 Last checksum vs current: / C_0M_06c2774b6532e46f9d68d3662a47b24167a4b76607bd06e5809a4675ccfa44d6; import will occur 2024/11/19 00:48:22 Execute insert query: 2024/11/19 00:48:22 Insert query complete 2024/11/19 00:48:22 Imported 1 rows into _gtfssource_mdbcsv ok 2024/11/19 00:48:22 Imported table from //tmp/mobroute_test_mobdb_2186692730.csv to table: _gtfssource_mdbcsv ok 2024/11/19 00:48:22 Running RTDatabase against input: {"feed_ids":[42],"op":"load"} 2024/11/19 00:48:22 Running Load against 1 feeds 2024/11/19 00:48:22 Loading GTFS feed 42 (1 of 1) 2024/11/19 00:48:22 Loading /tmp/3328080721.zip to DB with GTFS feed: 42 2024/11/19 00:48:22 Loaded GTFS Archive /tmp/3328080721.zip to temporary directory: /tmp/mobroute_tempdir3720840753 2024/11/19 00:48:22 Loading table: agency 2024/11/19 00:48:22 Importing table from /tmp/mobroute_tempdir3720840753/agency.txt (0.00MB) to table: agency 2024/11/19 00:48:22 Last checksum vs current: / C_0M_ec69cc35698113d39b116d06df83c168ff34eec1dd5daa90136c2ccdddd57966; import will occur 2024/11/19 00:48:22 Execute insert query: 2024/11/19 00:48:22 Insert query complete 2024/11/19 00:48:22 Imported 1 rows into agency ok 2024/11/19 00:48:22 Imported table from /tmp/mobroute_tempdir3720840753/agency.txt to table: agency ok 2024/11/19 00:48:22 Loading table: agency complete 2024/11/19 00:48:22 Loading table: calendar 2024/11/19 00:48:22 Importing table from /tmp/mobroute_tempdir3720840753/calendar.txt (0.00MB) to table: calendar 2024/11/19 00:48:22 Last checksum vs current: / C_0M_e3b90f0aa591f682039ce6ac7a9f4e8f46025c2346ee8478c06a04300d59ed12; import will occur 2024/11/19 00:48:22 Execute insert query: 2024/11/19 00:48:22 Insert query complete 2024/11/19 00:48:22 Imported 2 rows into calendar ok 2024/11/19 00:48:22 Imported table from /tmp/mobroute_tempdir3720840753/calendar.txt to table: calendar ok 2024/11/19 00:48:22 Loading table: calendar complete 2024/11/19 00:48:22 Loading table: calendar_dates 2024/11/19 00:48:22 Importing table from /tmp/mobroute_tempdir3720840753/calendar_dates.txt (0.00MB) to table: calendar_dates 2024/11/19 00:48:22 Skipped import for non-existant non-required file: /tmp/mobroute_tempdir3720840753/calendar_dates.txt 2024/11/19 00:48:22 Loading table: calendar_dates complete 2024/11/19 00:48:22 Loading table: stop_times 2024/11/19 00:48:22 Importing table from /tmp/mobroute_tempdir3720840753/stop_times.txt (0.00MB) to table: stop_times 2024/11/19 00:48:22 Last checksum vs current: / C_0M_34d5ab6ee7cbb3e04fd82bd1dca86e4daecfa570a11b128209c8e5c102662d0a; import will occur 2024/11/19 00:48:22 Execute insert query: 2024/11/19 00:48:22 Insert query complete 2024/11/19 00:48:22 Imported 1 rows into stop_times ok 2024/11/19 00:48:22 Imported table from /tmp/mobroute_tempdir3720840753/stop_times.txt to table: stop_times ok 2024/11/19 00:48:22 Loading table: stop_times complete 2024/11/19 00:48:22 Loading table: stops 2024/11/19 00:48:22 Importing table from /tmp/mobroute_tempdir3720840753/stops.txt (0.00MB) to table: stops 2024/11/19 00:48:22 Last checksum vs current: / C_0M_0e74a5076f0274b109142fc425c74cff47bef02800122d1f65189c2f2ac9ddbb; import will occur 2024/11/19 00:48:22 Execute insert query: 2024/11/19 00:48:22 Insert query complete 2024/11/19 00:48:22 Imported 1 rows into stops ok 2024/11/19 00:48:22 Imported table from /tmp/mobroute_tempdir3720840753/stops.txt to table: stops ok 2024/11/19 00:48:22 Loading table: stops complete 2024/11/19 00:48:22 Loading table: trips 2024/11/19 00:48:22 Importing table from /tmp/mobroute_tempdir3720840753/trips.txt (0.00MB) to table: trips 2024/11/19 00:48:22 Last checksum vs current: / C_0M_0391ceb043162a440ba78564cae799b0c9b0004ac42d27290246145bfa780435; import will occur 2024/11/19 00:48:22 Execute insert query: 2024/11/19 00:48:22 Insert query complete 2024/11/19 00:48:22 Imported 1 rows into trips ok 2024/11/19 00:48:22 Imported table from /tmp/mobroute_tempdir3720840753/trips.txt to table: trips ok 2024/11/19 00:48:22 Loading table: trips complete 2024/11/19 00:48:22 Loading table: routes 2024/11/19 00:48:22 Importing table from /tmp/mobroute_tempdir3720840753/routes.txt (0.00MB) to table: routes 2024/11/19 00:48:22 Last checksum vs current: / C_0M_a6031af6418607a6e5f51c20eaa22f422664f8d5254c59438ab18ce7e1e97cf8; import will occur 2024/11/19 00:48:22 Execute insert query: 2024/11/19 00:48:22 Insert query complete 2024/11/19 00:48:22 Imported 1 rows into routes ok 2024/11/19 00:48:22 Imported table from /tmp/mobroute_tempdir3720840753/routes.txt to table: routes ok 2024/11/19 00:48:22 Loading table: routes complete 2024/11/19 00:48:22 Loading table: transfers 2024/11/19 00:48:22 Importing table from /tmp/mobroute_tempdir3720840753/transfers.txt (0.00MB) to table: transfers 2024/11/19 00:48:22 Skipped import for non-existant non-required file: /tmp/mobroute_tempdir3720840753/transfers.txt 2024/11/19 00:48:22 Loading table: transfers complete 2024/11/19 00:48:22 Loaded /tmp/3328080721.zip to DB with GTFS feed: 42 ok 2024/11/19 00:48:22 Loading GTFS feed 42 ok; used cache for URL download (true) 2024/11/19 00:48:22 Running Load against 1 feeds ok 2024/11/19 00:48:22 Running RTDatabase against input: {"feed_ids":[42],"op":"compute"} 2024/11/19 00:48:22 Running Compute against 1 feeds 2024/11/19 00:48:22 Computed table _ctconn for feed (42 ) out of date - updating ('' vs '42:routes:C_0M_a6031af6418607a6e5f51c20eaa22f422664f8d5254c59438ab18ce7e1e97cf8,42:stop_times:C_0M_34d5ab6ee7cbb3e04fd82bd1dca86e4daecfa570a11b128209c8e5c102662d0a,42:stops:C_0M_0e74a5076f0274b109142fc425c74cff47bef02800122d1f65189c2f2ac9ddbb,42:trips:C_0M_0391ceb043162a440ba78564cae799b0c9b0004ac42d27290246145bfa780435') 2024/11/19 00:48:22 Computed table _ctcaltoservice for feed (42 ) out of date - updating ('' vs '42:stops:C_0M_0e74a5076f0274b109142fc425c74cff47bef02800122d1f65189c2f2ac9ddbb') 2024/11/19 00:48:22 Computed table _cttransfersgen for feed (42 0xc000137308) out of date - updating ('' vs '42:stops:C_0M_0e74a5076f0274b109142fc425c74cff47bef02800122d1f65189c2f2ac9ddbb') 2024/11/19 00:48:22 Running Compute against 1 feeds ok 2024/11/19 00:48:22 Loading select feed_id, service_date, service_id from _ctcaltoservice where feed_id = ? and service_date between ? and ? ([42 20230620 20230621]) to memory 2024/11/19 00:48:22 Loaded select feed_id, service_date, service_id from _ctcaltoservice where feed_id = ? and service_date between ? and ? ([42 20230620 20230621]) to memory ok (len=4) 2024/11/19 00:48:22 Generated mock for input (map[42:../testhelper/mockgtfs/gtfs_cal_only.yml]): (gtfs zips: [/tmp/471747919.zip]) (mobdb csv: /tmp/mobroute_test_mobdb_463052425.csv) 2024/11/19 00:48:22 SQLite system version (3.46.1); comparing to required version: 3.28.0 2024/11/19 00:48:22 Loading schema tables 2024/11/19 00:48:22 Execute statement: create table if not exists _mobsqltrack ('feed_id' int not null,'feed_id_pair' int,'tbl' text not null,'checksum' text not null,'n_rows' int not null,'timestamp' int not null,unique(feed_id,feed_id_pair,tbl)) 2024/11/19 00:48:22 Execute statement: create table if not exists _gtfssource_mdbcsv ('feed_id' int not null check(feed_id = -1),'data_type' text not null,'location.bounding_box.minimum_latitude' real,'location.bounding_box.minimum_longitude' real,'location.bounding_box.maximum_latitude' real,'location.bounding_box.maximum_longitude' real,'location.country_code' text,'location.subdivision_name' text,'location.municipality' text,'urls.latest' text,'urls.license' text,'mdb_source_id' int not null check(mdb_source_id >= 0),'name' text,'status' text,'provider' text not null,unique(mdb_source_id)) 2024/11/19 00:48:22 Execute statement: create table if not exists _gtfssource_custom ('customgtfs_feed_id' int not null check(customgtfs_feed_id < -1),'gtfs_uri' text not null,unique(customgtfs_feed_id)) 2024/11/19 00:48:22 Execute statement: create table if not exists agency ('feed_id' int not null,'agency_id' text,'agency_name' text not null,'agency_url' text not null,'agency_timezone' text not null,unique(feed_id,agency_id)) 2024/11/19 00:48:22 Execute statement: create table if not exists calendar ('feed_id' int not null,'service_id' text not null,'monday' int not null check(monday in (0,1)),'tuesday' int not null check(tuesday in (0,1)),'wednesday' int not null check(wednesday in (0,1)),'thursday' int not null check(thursday in (0,1)),'friday' int not null check(friday in (0,1)),'saturday' int not null check(saturday in (0,1)),'sunday' int not null check(sunday in (0,1)),'start_date' int not null,'end_date' int not null,unique(feed_id,service_id)) 2024/11/19 00:48:22 Execute statement: create table if not exists calendar_dates ('feed_id' int not null,'service_id' text not null,'date' int not null,'exception_type' int not null check(exception_type in (1,2))) 2024/11/19 00:48:22 Execute statement: create table if not exists stop_times ('feed_id' int not null,'trip_id' text not null,'arrival_time' int,'departure_time' int,'stop_id' text not null,'stop_sequence' int not null,'stop_headsign' text,'pickup_type' int,'drop_off_type' int,'continuous_drop_off' text,'timepoint' int check(timepoint in (0,1)),unique(feed_id,trip_id,stop_sequence)) 2024/11/19 00:48:22 Execute statement: create table if not exists stops ('feed_id' int not null,'stop_id' text not null,'stop_code' text,'stop_name' text check( ((location_type is null or location_type = 0 or location_type = 1 or location_type = 2) and stop_name is not null) or (location_type = 3 or location_type = 4) ),'stop_desc' text,'stop_lat' real check( ((location_type is null or location_type = 0 or location_type = 1 or location_type = 2) and stop_lat is not null) or (location_type = 3 or location_type = 4) ),'stop_lon' real check( ((location_type is null or location_type = 0 or location_type = 1 or location_type = 2) and stop_lon is not null) or (location_type = 3 or location_type = 4) ),'zone_id' text,'stop_url' text,'location_type' int check(location_type in (0,1,2,3,4)),'parent_station' text,'stop_timezone' text,'wheelchair_boarding' int check(wheelchair_boarding in (0,1,2)),'level_id' text,'platform_code' text,unique(feed_id,stop_id)) 2024/11/19 00:48:22 Execute statement: create table if not exists trips ('feed_id' int not null,'route_id' text not null,'service_id' text not null,'trip_id' text not null,'trip_headsign' text,'trip_short_name' text,'direction_id' int check(direction_id in (0,1)),'block_id' text,'shape_id' text,'wheelchair_accessible' text check(wheelchair_accessible in (0,1,2)),'bikes_allowed' int check(bikes_allowed in (0,1,2)),unique(feed_id,trip_id)) 2024/11/19 00:48:22 Execute statement: create table if not exists routes ('feed_id' int not null,'route_id' text not null,'agency_id' text,'route_short_name' text check(route_long_name is not null or route_short_name is not null),'route_long_name' text,'route_desc' text,'route_type' int,'route_url' text,'route_color' text,'route_text_color' text,'route_sort_order' text,'continuous_pickup' int check(continuous_pickup in (0,1,2,3)),'continuous_drop_off' int check(continuous_drop_off in (0,1,2,3)),unique(feed_id,route_id)) 2024/11/19 00:48:22 Execute statement: create table if not exists transfers ('feed_id' int not null,'from_stop_id' text not null,'to_stop_id' text not null,'transfer_type' int,'min_transfer_time' int) 2024/11/19 00:48:22 Execute statement: create table if not exists _ctconn ('feed_id' int not null,'conn_id' text not null,'trip_id' text not null,'service_id' text not null,'from_stop_id' text not null,'from_stop_idu' text not null,'from_stop_sidu' text not null,'from_stop_time' int not null,'from_stop_sequence' int not null,'to_stop_id' text not null,'to_stop_idu' text not null,'to_stop_sidu' text not null,'to_stop_time' int not null,'to_stop_sequence' int not null,unique(feed_id,conn_id)) 2024/11/19 00:48:22 Execute statement: create table if not exists _ctcaltoservice ('feed_id' int not null,'service_date' int not null,'service_id' text not null) 2024/11/19 00:48:22 Execute statement: create table if not exists _cttransfersgen ('feed_id' int not null,'feed_id_pair' int not null,'from_stop_id' text not null,'to_stop_id' text not null,'from_stop_idu' text not null,'to_stop_idu' text not null,'from_stop_sidu' text not null,'to_stop_sidu' text not null,'dist_km' real) 2024/11/19 00:48:22 Loading schema tables ok 2024/11/19 00:48:22 Loading schema indexes 2024/11/19 00:48:22 Create index idx_agency1_agency_timezone on agency as [agency_timezone] 2024/11/19 00:48:22 Created index idx_agency1_agency_timezone ok 2024/11/19 00:48:22 Create index idx_stop_times1_departure_time on stop_times as [departure_time] 2024/11/19 00:48:22 Created index idx_stop_times1_departure_time ok 2024/11/19 00:48:22 Create index idx_stop_times1_trip_id on stop_times as [trip_id] 2024/11/19 00:48:22 Created index idx_stop_times1_trip_id ok 2024/11/19 00:48:22 Create index idx_stops2_feed_id_stop_id on stops as [feed_id stop_id] 2024/11/19 00:48:22 Created index idx_stops2_feed_id_stop_id ok 2024/11/19 00:48:22 Create index idx_stops2_stop_lat_stop_lon on stops as [stop_lat stop_lon] 2024/11/19 00:48:22 Created index idx_stops2_stop_lat_stop_lon ok 2024/11/19 00:48:22 Create index idx_stops3_feed_id_parent_station_location_type on stops as [feed_id parent_station location_type] 2024/11/19 00:48:22 Created index idx_stops3_feed_id_parent_station_location_type ok 2024/11/19 00:48:22 Create index idx_transfers2_feed_id_from_stop_id on transfers as [feed_id from_stop_id] 2024/11/19 00:48:22 Created index idx_transfers2_feed_id_from_stop_id ok 2024/11/19 00:48:22 Create index idx_transfers2_feed_id_to_stop_id on transfers as [feed_id to_stop_id] 2024/11/19 00:48:22 Created index idx_transfers2_feed_id_to_stop_id ok 2024/11/19 00:48:22 Create index idx__ctconn3_feed_id_service_id_from_stop_time on _ctconn as [feed_id service_id from_stop_time] 2024/11/19 00:48:22 Created index idx__ctconn3_feed_id_service_id_from_stop_time ok 2024/11/19 00:48:22 Create index idx__ctconn3_feed_id_from_stop_sidu_from_stop_time on _ctconn as [feed_id from_stop_sidu from_stop_time] 2024/11/19 00:48:22 Created index idx__ctconn3_feed_id_from_stop_sidu_from_stop_time ok 2024/11/19 00:48:22 Create index idx__ctcaltoservice3_feed_id_service_id_service_date on _ctcaltoservice as [feed_id service_id service_date] 2024/11/19 00:48:22 Created index idx__ctcaltoservice3_feed_id_service_id_service_date ok 2024/11/19 00:48:22 Create index idx__ctcaltoservice2_feed_id_service_date on _ctcaltoservice as [feed_id service_date] 2024/11/19 00:48:22 Created index idx__ctcaltoservice2_feed_id_service_date ok 2024/11/19 00:48:22 Loading schema indexes ok 2024/11/19 00:48:22 Loading views ok 2024/11/19 00:48:22 Loaded view _vfeedsminmaxdates (bytes=251) 2024/11/19 00:48:22 Loaded view _vfeedsmetadata (bytes=3676) 2024/11/19 00:48:22 Loaded view _vstopparent (bytes=2600) 2024/11/19 00:48:22 Loaded view _vconn (bytes=1201) 2024/11/19 00:48:22 Loaded view _vconnverbose (bytes=1122) 2024/11/19 00:48:22 Loaded view _vcaltoservice (bytes=3110) 2024/11/19 00:48:22 Loaded view _vtransferstbl (bytes=933) 2024/11/19 00:48:22 Loaded view _vtransfersgen (bytes=1523) 2024/11/19 00:48:22 Loaded view _vtransfersimplicit (bytes=371) 2024/11/19 00:48:22 Loading views ok 2024/11/19 00:48:22 Importing table from //tmp/mobroute_test_mobdb_463052425.csv (0.00MB) to table: _gtfssource_mdbcsv 2024/11/19 00:48:22 Last checksum vs current: / C_0M_15ba20ba7244dbb94f2b6f9a3d8e8982211c34d669102b8094b85e3d7869a4ed; import will occur 2024/11/19 00:48:22 Execute insert query: 2024/11/19 00:48:22 Insert query complete 2024/11/19 00:48:22 Imported 1 rows into _gtfssource_mdbcsv ok 2024/11/19 00:48:22 Imported table from //tmp/mobroute_test_mobdb_463052425.csv to table: _gtfssource_mdbcsv ok 2024/11/19 00:48:22 Running RTDatabase against input: {"feed_ids":[42],"op":"load"} 2024/11/19 00:48:22 Running Load against 1 feeds 2024/11/19 00:48:22 Loading GTFS feed 42 (1 of 1) 2024/11/19 00:48:22 Loading /tmp/471747919.zip to DB with GTFS feed: 42 2024/11/19 00:48:22 Loaded GTFS Archive /tmp/471747919.zip to temporary directory: /tmp/mobroute_tempdir925075939 2024/11/19 00:48:22 Loading table: agency 2024/11/19 00:48:22 Importing table from /tmp/mobroute_tempdir925075939/agency.txt (0.00MB) to table: agency 2024/11/19 00:48:22 Last checksum vs current: / C_0M_ec69cc35698113d39b116d06df83c168ff34eec1dd5daa90136c2ccdddd57966; import will occur 2024/11/19 00:48:22 Execute insert query: 2024/11/19 00:48:22 Insert query complete 2024/11/19 00:48:22 Imported 1 rows into agency ok 2024/11/19 00:48:22 Imported table from /tmp/mobroute_tempdir925075939/agency.txt to table: agency ok 2024/11/19 00:48:22 Loading table: agency complete 2024/11/19 00:48:22 Loading table: calendar 2024/11/19 00:48:22 Importing table from /tmp/mobroute_tempdir925075939/calendar.txt (0.00MB) to table: calendar 2024/11/19 00:48:22 Last checksum vs current: / C_0M_e3b90f0aa591f682039ce6ac7a9f4e8f46025c2346ee8478c06a04300d59ed12; import will occur 2024/11/19 00:48:22 Execute insert query: 2024/11/19 00:48:22 Insert query complete 2024/11/19 00:48:22 Imported 2 rows into calendar ok 2024/11/19 00:48:22 Imported table from /tmp/mobroute_tempdir925075939/calendar.txt to table: calendar ok 2024/11/19 00:48:22 Loading table: calendar complete 2024/11/19 00:48:22 Loading table: calendar_dates 2024/11/19 00:48:22 Importing table from /tmp/mobroute_tempdir925075939/calendar_dates.txt (0.00MB) to table: calendar_dates 2024/11/19 00:48:22 Skipped import for non-existant non-required file: /tmp/mobroute_tempdir925075939/calendar_dates.txt 2024/11/19 00:48:22 Loading table: calendar_dates complete 2024/11/19 00:48:22 Loading table: stop_times 2024/11/19 00:48:22 Importing table from /tmp/mobroute_tempdir925075939/stop_times.txt (0.00MB) to table: stop_times 2024/11/19 00:48:22 Last checksum vs current: / C_0M_34d5ab6ee7cbb3e04fd82bd1dca86e4daecfa570a11b128209c8e5c102662d0a; import will occur 2024/11/19 00:48:22 Execute insert query: 2024/11/19 00:48:22 Insert query complete 2024/11/19 00:48:22 Imported 1 rows into stop_times ok 2024/11/19 00:48:22 Imported table from /tmp/mobroute_tempdir925075939/stop_times.txt to table: stop_times ok 2024/11/19 00:48:22 Loading table: stop_times complete 2024/11/19 00:48:22 Loading table: stops 2024/11/19 00:48:22 Importing table from /tmp/mobroute_tempdir925075939/stops.txt (0.00MB) to table: stops 2024/11/19 00:48:22 Last checksum vs current: / C_0M_0e74a5076f0274b109142fc425c74cff47bef02800122d1f65189c2f2ac9ddbb; import will occur 2024/11/19 00:48:22 Execute insert query: 2024/11/19 00:48:22 Insert query complete 2024/11/19 00:48:22 Imported 1 rows into stops ok 2024/11/19 00:48:22 Imported table from /tmp/mobroute_tempdir925075939/stops.txt to table: stops ok 2024/11/19 00:48:22 Loading table: stops complete 2024/11/19 00:48:22 Loading table: trips 2024/11/19 00:48:22 Importing table from /tmp/mobroute_tempdir925075939/trips.txt (0.00MB) to table: trips 2024/11/19 00:48:22 Last checksum vs current: / C_0M_0391ceb043162a440ba78564cae799b0c9b0004ac42d27290246145bfa780435; import will occur 2024/11/19 00:48:22 Execute insert query: 2024/11/19 00:48:22 Insert query complete 2024/11/19 00:48:22 Imported 1 rows into trips ok 2024/11/19 00:48:22 Imported table from /tmp/mobroute_tempdir925075939/trips.txt to table: trips ok 2024/11/19 00:48:22 Loading table: trips complete 2024/11/19 00:48:22 Loading table: routes 2024/11/19 00:48:22 Importing table from /tmp/mobroute_tempdir925075939/routes.txt (0.00MB) to table: routes 2024/11/19 00:48:22 Last checksum vs current: / C_0M_a6031af6418607a6e5f51c20eaa22f422664f8d5254c59438ab18ce7e1e97cf8; import will occur 2024/11/19 00:48:22 Execute insert query: 2024/11/19 00:48:22 Insert query complete 2024/11/19 00:48:22 Imported 1 rows into routes ok 2024/11/19 00:48:22 Imported table from /tmp/mobroute_tempdir925075939/routes.txt to table: routes ok 2024/11/19 00:48:22 Loading table: routes complete 2024/11/19 00:48:22 Loading table: transfers 2024/11/19 00:48:22 Importing table from /tmp/mobroute_tempdir925075939/transfers.txt (0.00MB) to table: transfers 2024/11/19 00:48:22 Skipped import for non-existant non-required file: /tmp/mobroute_tempdir925075939/transfers.txt 2024/11/19 00:48:22 Loading table: transfers complete 2024/11/19 00:48:22 Loaded /tmp/471747919.zip to DB with GTFS feed: 42 ok 2024/11/19 00:48:22 Loading GTFS feed 42 ok; used cache for URL download (true) 2024/11/19 00:48:22 Running Load against 1 feeds ok 2024/11/19 00:48:22 Running RTDatabase against input: {"feed_ids":[42],"op":"compute"} 2024/11/19 00:48:22 Running Compute against 1 feeds 2024/11/19 00:48:22 Computed table _ctconn for feed (42 ) out of date - updating ('' vs '42:routes:C_0M_a6031af6418607a6e5f51c20eaa22f422664f8d5254c59438ab18ce7e1e97cf8,42:stop_times:C_0M_34d5ab6ee7cbb3e04fd82bd1dca86e4daecfa570a11b128209c8e5c102662d0a,42:stops:C_0M_0e74a5076f0274b109142fc425c74cff47bef02800122d1f65189c2f2ac9ddbb,42:trips:C_0M_0391ceb043162a440ba78564cae799b0c9b0004ac42d27290246145bfa780435') 2024/11/19 00:48:22 Computed table _ctcaltoservice for feed (42 ) out of date - updating ('' vs '42:stops:C_0M_0e74a5076f0274b109142fc425c74cff47bef02800122d1f65189c2f2ac9ddbb') 2024/11/19 00:48:22 Computed table _cttransfersgen for feed (42 0xc0002ac898) out of date - updating ('' vs '42:stops:C_0M_0e74a5076f0274b109142fc425c74cff47bef02800122d1f65189c2f2ac9ddbb') 2024/11/19 00:48:22 Running Compute against 1 feeds ok 2024/11/19 00:48:22 Loading select feed_id, service_date, service_id from _ctcaltoservice where feed_id = ? and service_date between ? and ? ([42 20270619 20270622]) to memory 2024/11/19 00:48:22 Loaded select feed_id, service_date, service_id from _ctcaltoservice where feed_id = ? and service_date between ? and ? ([42 20270619 20270622]) to memory ok (len=0) 2024/11/19 00:48:22 Generated mock for input (map[42:../testhelper/mockgtfs/gtfs_caldates_only.yml]): (gtfs zips: [/tmp/3947915715.zip]) (mobdb csv: /tmp/mobroute_test_mobdb_1612206541.csv) 2024/11/19 00:48:22 SQLite system version (3.46.1); comparing to required version: 3.28.0 2024/11/19 00:48:22 Loading schema tables 2024/11/19 00:48:22 Execute statement: create table if not exists _mobsqltrack ('feed_id' int not null,'feed_id_pair' int,'tbl' text not null,'checksum' text not null,'n_rows' int not null,'timestamp' int not null,unique(feed_id,feed_id_pair,tbl)) 2024/11/19 00:48:22 Execute statement: create table if not exists _gtfssource_mdbcsv ('feed_id' int not null check(feed_id = -1),'data_type' text not null,'location.bounding_box.minimum_latitude' real,'location.bounding_box.minimum_longitude' real,'location.bounding_box.maximum_latitude' real,'location.bounding_box.maximum_longitude' real,'location.country_code' text,'location.subdivision_name' text,'location.municipality' text,'urls.latest' text,'urls.license' text,'mdb_source_id' int not null check(mdb_source_id >= 0),'name' text,'status' text,'provider' text not null,unique(mdb_source_id)) 2024/11/19 00:48:22 Execute statement: create table if not exists _gtfssource_custom ('customgtfs_feed_id' int not null check(customgtfs_feed_id < -1),'gtfs_uri' text not null,unique(customgtfs_feed_id)) 2024/11/19 00:48:22 Execute statement: create table if not exists agency ('feed_id' int not null,'agency_id' text,'agency_name' text not null,'agency_url' text not null,'agency_timezone' text not null,unique(feed_id,agency_id)) 2024/11/19 00:48:22 Execute statement: create table if not exists calendar ('feed_id' int not null,'service_id' text not null,'monday' int not null check(monday in (0,1)),'tuesday' int not null check(tuesday in (0,1)),'wednesday' int not null check(wednesday in (0,1)),'thursday' int not null check(thursday in (0,1)),'friday' int not null check(friday in (0,1)),'saturday' int not null check(saturday in (0,1)),'sunday' int not null check(sunday in (0,1)),'start_date' int not null,'end_date' int not null,unique(feed_id,service_id)) 2024/11/19 00:48:22 Execute statement: create table if not exists calendar_dates ('feed_id' int not null,'service_id' text not null,'date' int not null,'exception_type' int not null check(exception_type in (1,2))) 2024/11/19 00:48:22 Execute statement: create table if not exists stop_times ('feed_id' int not null,'trip_id' text not null,'arrival_time' int,'departure_time' int,'stop_id' text not null,'stop_sequence' int not null,'stop_headsign' text,'pickup_type' int,'drop_off_type' int,'continuous_drop_off' text,'timepoint' int check(timepoint in (0,1)),unique(feed_id,trip_id,stop_sequence)) 2024/11/19 00:48:22 Execute statement: create table if not exists stops ('feed_id' int not null,'stop_id' text not null,'stop_code' text,'stop_name' text check( ((location_type is null or location_type = 0 or location_type = 1 or location_type = 2) and stop_name is not null) or (location_type = 3 or location_type = 4) ),'stop_desc' text,'stop_lat' real check( ((location_type is null or location_type = 0 or location_type = 1 or location_type = 2) and stop_lat is not null) or (location_type = 3 or location_type = 4) ),'stop_lon' real check( ((location_type is null or location_type = 0 or location_type = 1 or location_type = 2) and stop_lon is not null) or (location_type = 3 or location_type = 4) ),'zone_id' text,'stop_url' text,'location_type' int check(location_type in (0,1,2,3,4)),'parent_station' text,'stop_timezone' text,'wheelchair_boarding' int check(wheelchair_boarding in (0,1,2)),'level_id' text,'platform_code' text,unique(feed_id,stop_id)) 2024/11/19 00:48:22 Execute statement: create table if not exists trips ('feed_id' int not null,'route_id' text not null,'service_id' text not null,'trip_id' text not null,'trip_headsign' text,'trip_short_name' text,'direction_id' int check(direction_id in (0,1)),'block_id' text,'shape_id' text,'wheelchair_accessible' text check(wheelchair_accessible in (0,1,2)),'bikes_allowed' int check(bikes_allowed in (0,1,2)),unique(feed_id,trip_id)) 2024/11/19 00:48:22 Execute statement: create table if not exists routes ('feed_id' int not null,'route_id' text not null,'agency_id' text,'route_short_name' text check(route_long_name is not null or route_short_name is not null),'route_long_name' text,'route_desc' text,'route_type' int,'route_url' text,'route_color' text,'route_text_color' text,'route_sort_order' text,'continuous_pickup' int check(continuous_pickup in (0,1,2,3)),'continuous_drop_off' int check(continuous_drop_off in (0,1,2,3)),unique(feed_id,route_id)) 2024/11/19 00:48:22 Execute statement: create table if not exists transfers ('feed_id' int not null,'from_stop_id' text not null,'to_stop_id' text not null,'transfer_type' int,'min_transfer_time' int) 2024/11/19 00:48:22 Execute statement: create table if not exists _ctconn ('feed_id' int not null,'conn_id' text not null,'trip_id' text not null,'service_id' text not null,'from_stop_id' text not null,'from_stop_idu' text not null,'from_stop_sidu' text not null,'from_stop_time' int not null,'from_stop_sequence' int not null,'to_stop_id' text not null,'to_stop_idu' text not null,'to_stop_sidu' text not null,'to_stop_time' int not null,'to_stop_sequence' int not null,unique(feed_id,conn_id)) 2024/11/19 00:48:22 Execute statement: create table if not exists _ctcaltoservice ('feed_id' int not null,'service_date' int not null,'service_id' text not null) 2024/11/19 00:48:22 Execute statement: create table if not exists _cttransfersgen ('feed_id' int not null,'feed_id_pair' int not null,'from_stop_id' text not null,'to_stop_id' text not null,'from_stop_idu' text not null,'to_stop_idu' text not null,'from_stop_sidu' text not null,'to_stop_sidu' text not null,'dist_km' real) 2024/11/19 00:48:22 Loading schema tables ok 2024/11/19 00:48:22 Loading schema indexes 2024/11/19 00:48:22 Create index idx_agency1_agency_timezone on agency as [agency_timezone] 2024/11/19 00:48:22 Created index idx_agency1_agency_timezone ok 2024/11/19 00:48:22 Create index idx_stop_times1_departure_time on stop_times as [departure_time] 2024/11/19 00:48:22 Created index idx_stop_times1_departure_time ok 2024/11/19 00:48:22 Create index idx_stop_times1_trip_id on stop_times as [trip_id] 2024/11/19 00:48:22 Created index idx_stop_times1_trip_id ok 2024/11/19 00:48:22 Create index idx_stops2_feed_id_stop_id on stops as [feed_id stop_id] 2024/11/19 00:48:22 Created index idx_stops2_feed_id_stop_id ok 2024/11/19 00:48:22 Create index idx_stops2_stop_lat_stop_lon on stops as [stop_lat stop_lon] 2024/11/19 00:48:22 Created index idx_stops2_stop_lat_stop_lon ok 2024/11/19 00:48:22 Create index idx_stops3_feed_id_parent_station_location_type on stops as [feed_id parent_station location_type] 2024/11/19 00:48:22 Created index idx_stops3_feed_id_parent_station_location_type ok 2024/11/19 00:48:22 Create index idx_transfers2_feed_id_from_stop_id on transfers as [feed_id from_stop_id] 2024/11/19 00:48:22 Created index idx_transfers2_feed_id_from_stop_id ok 2024/11/19 00:48:22 Create index idx_transfers2_feed_id_to_stop_id on transfers as [feed_id to_stop_id] 2024/11/19 00:48:22 Created index idx_transfers2_feed_id_to_stop_id ok 2024/11/19 00:48:22 Create index idx__ctconn3_feed_id_service_id_from_stop_time on _ctconn as [feed_id service_id from_stop_time] 2024/11/19 00:48:22 Created index idx__ctconn3_feed_id_service_id_from_stop_time ok 2024/11/19 00:48:22 Create index idx__ctconn3_feed_id_from_stop_sidu_from_stop_time on _ctconn as [feed_id from_stop_sidu from_stop_time] 2024/11/19 00:48:22 Created index idx__ctconn3_feed_id_from_stop_sidu_from_stop_time ok 2024/11/19 00:48:22 Create index idx__ctcaltoservice3_feed_id_service_id_service_date on _ctcaltoservice as [feed_id service_id service_date] 2024/11/19 00:48:22 Created index idx__ctcaltoservice3_feed_id_service_id_service_date ok 2024/11/19 00:48:22 Create index idx__ctcaltoservice2_feed_id_service_date on _ctcaltoservice as [feed_id service_date] 2024/11/19 00:48:22 Created index idx__ctcaltoservice2_feed_id_service_date ok 2024/11/19 00:48:22 Loading schema indexes ok 2024/11/19 00:48:22 Loading views ok 2024/11/19 00:48:22 Loaded view _vfeedsminmaxdates (bytes=251) 2024/11/19 00:48:22 Loaded view _vfeedsmetadata (bytes=3676) 2024/11/19 00:48:22 Loaded view _vstopparent (bytes=2600) 2024/11/19 00:48:22 Loaded view _vconn (bytes=1201) 2024/11/19 00:48:22 Loaded view _vconnverbose (bytes=1122) 2024/11/19 00:48:22 Loaded view _vcaltoservice (bytes=3110) 2024/11/19 00:48:22 Loaded view _vtransferstbl (bytes=933) 2024/11/19 00:48:22 Loaded view _vtransfersgen (bytes=1523) 2024/11/19 00:48:22 Loaded view _vtransfersimplicit (bytes=371) 2024/11/19 00:48:22 Loading views ok 2024/11/19 00:48:22 Importing table from //tmp/mobroute_test_mobdb_1612206541.csv (0.00MB) to table: _gtfssource_mdbcsv 2024/11/19 00:48:22 Last checksum vs current: / C_0M_0e07a62a3198b85c48b5eaa0039cafb4c6ce2c279c5d15ad8b7a53e33b5b4038; import will occur 2024/11/19 00:48:22 Execute insert query: 2024/11/19 00:48:22 Insert query complete 2024/11/19 00:48:22 Imported 1 rows into _gtfssource_mdbcsv ok 2024/11/19 00:48:22 Imported table from //tmp/mobroute_test_mobdb_1612206541.csv to table: _gtfssource_mdbcsv ok 2024/11/19 00:48:22 Running RTDatabase against input: {"feed_ids":[42],"op":"load"} 2024/11/19 00:48:22 Running Load against 1 feeds 2024/11/19 00:48:22 Loading GTFS feed 42 (1 of 1) 2024/11/19 00:48:22 Loading /tmp/3947915715.zip to DB with GTFS feed: 42 2024/11/19 00:48:22 Loaded GTFS Archive /tmp/3947915715.zip to temporary directory: /tmp/mobroute_tempdir1485836316 2024/11/19 00:48:22 Loading table: agency 2024/11/19 00:48:22 Importing table from /tmp/mobroute_tempdir1485836316/agency.txt (0.00MB) to table: agency 2024/11/19 00:48:22 Last checksum vs current: / C_0M_ec69cc35698113d39b116d06df83c168ff34eec1dd5daa90136c2ccdddd57966; import will occur 2024/11/19 00:48:22 Execute insert query: 2024/11/19 00:48:22 Insert query complete 2024/11/19 00:48:22 Imported 1 rows into agency ok 2024/11/19 00:48:22 Imported table from /tmp/mobroute_tempdir1485836316/agency.txt to table: agency ok 2024/11/19 00:48:22 Loading table: agency complete 2024/11/19 00:48:22 Loading table: calendar 2024/11/19 00:48:22 Importing table from /tmp/mobroute_tempdir1485836316/calendar.txt (0.00MB) to table: calendar 2024/11/19 00:48:22 Skipped import for non-existant non-required file: /tmp/mobroute_tempdir1485836316/calendar.txt 2024/11/19 00:48:22 Loading table: calendar complete 2024/11/19 00:48:22 Loading table: calendar_dates 2024/11/19 00:48:22 Importing table from /tmp/mobroute_tempdir1485836316/calendar_dates.txt (0.00MB) to table: calendar_dates 2024/11/19 00:48:22 Last checksum vs current: / C_0M_c9a596973ac871ddba3e27cef7cc8ef2d3481b1fd98a210e6f398bd2ce95a687; import will occur 2024/11/19 00:48:22 Execute insert query: 2024/11/19 00:48:22 Insert query complete 2024/11/19 00:48:22 Imported 6 rows into calendar_dates ok 2024/11/19 00:48:22 Imported table from /tmp/mobroute_tempdir1485836316/calendar_dates.txt to table: calendar_dates ok 2024/11/19 00:48:22 Loading table: calendar_dates complete 2024/11/19 00:48:22 Loading table: stop_times 2024/11/19 00:48:22 Importing table from /tmp/mobroute_tempdir1485836316/stop_times.txt (0.00MB) to table: stop_times 2024/11/19 00:48:22 Last checksum vs current: / C_0M_34d5ab6ee7cbb3e04fd82bd1dca86e4daecfa570a11b128209c8e5c102662d0a; import will occur 2024/11/19 00:48:22 Execute insert query: 2024/11/19 00:48:22 Insert query complete 2024/11/19 00:48:22 Imported 1 rows into stop_times ok 2024/11/19 00:48:22 Imported table from /tmp/mobroute_tempdir1485836316/stop_times.txt to table: stop_times ok 2024/11/19 00:48:22 Loading table: stop_times complete 2024/11/19 00:48:22 Loading table: stops 2024/11/19 00:48:22 Importing table from /tmp/mobroute_tempdir1485836316/stops.txt (0.00MB) to table: stops 2024/11/19 00:48:22 Last checksum vs current: / C_0M_0e74a5076f0274b109142fc425c74cff47bef02800122d1f65189c2f2ac9ddbb; import will occur 2024/11/19 00:48:22 Execute insert query: 2024/11/19 00:48:22 Insert query complete 2024/11/19 00:48:22 Imported 1 rows into stops ok 2024/11/19 00:48:22 Imported table from /tmp/mobroute_tempdir1485836316/stops.txt to table: stops ok 2024/11/19 00:48:22 Loading table: stops complete 2024/11/19 00:48:22 Loading table: trips 2024/11/19 00:48:22 Importing table from /tmp/mobroute_tempdir1485836316/trips.txt (0.00MB) to table: trips 2024/11/19 00:48:22 Last checksum vs current: / C_0M_0391ceb043162a440ba78564cae799b0c9b0004ac42d27290246145bfa780435; import will occur 2024/11/19 00:48:22 Execute insert query: 2024/11/19 00:48:22 Insert query complete 2024/11/19 00:48:22 Imported 1 rows into trips ok 2024/11/19 00:48:22 Imported table from /tmp/mobroute_tempdir1485836316/trips.txt to table: trips ok 2024/11/19 00:48:22 Loading table: trips complete 2024/11/19 00:48:22 Loading table: routes 2024/11/19 00:48:22 Importing table from /tmp/mobroute_tempdir1485836316/routes.txt (0.00MB) to table: routes 2024/11/19 00:48:22 Last checksum vs current: / C_0M_a6031af6418607a6e5f51c20eaa22f422664f8d5254c59438ab18ce7e1e97cf8; import will occur 2024/11/19 00:48:22 Execute insert query: 2024/11/19 00:48:22 Insert query complete 2024/11/19 00:48:22 Imported 1 rows into routes ok 2024/11/19 00:48:22 Imported table from /tmp/mobroute_tempdir1485836316/routes.txt to table: routes ok 2024/11/19 00:48:22 Loading table: routes complete 2024/11/19 00:48:22 Loading table: transfers 2024/11/19 00:48:22 Importing table from /tmp/mobroute_tempdir1485836316/transfers.txt (0.00MB) to table: transfers 2024/11/19 00:48:22 Skipped import for non-existant non-required file: /tmp/mobroute_tempdir1485836316/transfers.txt 2024/11/19 00:48:22 Loading table: transfers complete 2024/11/19 00:48:22 Loaded /tmp/3947915715.zip to DB with GTFS feed: 42 ok 2024/11/19 00:48:22 Loading GTFS feed 42 ok; used cache for URL download (true) 2024/11/19 00:48:22 Running Load against 1 feeds ok 2024/11/19 00:48:22 Running RTDatabase against input: {"feed_ids":[42],"op":"compute"} 2024/11/19 00:48:22 Running Compute against 1 feeds 2024/11/19 00:48:22 Computed table _ctconn for feed (42 ) out of date - updating ('' vs '42:routes:C_0M_a6031af6418607a6e5f51c20eaa22f422664f8d5254c59438ab18ce7e1e97cf8,42:stop_times:C_0M_34d5ab6ee7cbb3e04fd82bd1dca86e4daecfa570a11b128209c8e5c102662d0a,42:stops:C_0M_0e74a5076f0274b109142fc425c74cff47bef02800122d1f65189c2f2ac9ddbb,42:trips:C_0M_0391ceb043162a440ba78564cae799b0c9b0004ac42d27290246145bfa780435') 2024/11/19 00:48:22 Computed table _ctcaltoservice for feed (42 ) out of date - updating ('' vs '42:stops:C_0M_0e74a5076f0274b109142fc425c74cff47bef02800122d1f65189c2f2ac9ddbb') 2024/11/19 00:48:22 Computed table _cttransfersgen for feed (42 0xc0002e8d98) out of date - updating ('' vs '42:stops:C_0M_0e74a5076f0274b109142fc425c74cff47bef02800122d1f65189c2f2ac9ddbb') 2024/11/19 00:48:22 Running Compute against 1 feeds ok 2024/11/19 00:48:22 Loading select feed_id, service_date, service_id from _ctcaltoservice where feed_id = ? and service_date between ? and ? ([42 20230302 20230303]) to memory 2024/11/19 00:48:22 Loaded select feed_id, service_date, service_id from _ctcaltoservice where feed_id = ? and service_date between ? and ? ([42 20230302 20230303]) to memory ok (len=3) 2024/11/19 00:48:22 Generated mock for input (map[42:../testhelper/mockgtfs/gtfs_caldates_only.yml]): (gtfs zips: [/tmp/1007323949.zip]) (mobdb csv: /tmp/mobroute_test_mobdb_93934242.csv) 2024/11/19 00:48:22 SQLite system version (3.46.1); comparing to required version: 3.28.0 2024/11/19 00:48:22 Loading schema tables 2024/11/19 00:48:22 Execute statement: create table if not exists _mobsqltrack ('feed_id' int not null,'feed_id_pair' int,'tbl' text not null,'checksum' text not null,'n_rows' int not null,'timestamp' int not null,unique(feed_id,feed_id_pair,tbl)) 2024/11/19 00:48:22 Execute statement: create table if not exists _gtfssource_mdbcsv ('feed_id' int not null check(feed_id = -1),'data_type' text not null,'location.bounding_box.minimum_latitude' real,'location.bounding_box.minimum_longitude' real,'location.bounding_box.maximum_latitude' real,'location.bounding_box.maximum_longitude' real,'location.country_code' text,'location.subdivision_name' text,'location.municipality' text,'urls.latest' text,'urls.license' text,'mdb_source_id' int not null check(mdb_source_id >= 0),'name' text,'status' text,'provider' text not null,unique(mdb_source_id)) 2024/11/19 00:48:22 Execute statement: create table if not exists _gtfssource_custom ('customgtfs_feed_id' int not null check(customgtfs_feed_id < -1),'gtfs_uri' text not null,unique(customgtfs_feed_id)) 2024/11/19 00:48:22 Execute statement: create table if not exists agency ('feed_id' int not null,'agency_id' text,'agency_name' text not null,'agency_url' text not null,'agency_timezone' text not null,unique(feed_id,agency_id)) 2024/11/19 00:48:22 Execute statement: create table if not exists calendar ('feed_id' int not null,'service_id' text not null,'monday' int not null check(monday in (0,1)),'tuesday' int not null check(tuesday in (0,1)),'wednesday' int not null check(wednesday in (0,1)),'thursday' int not null check(thursday in (0,1)),'friday' int not null check(friday in (0,1)),'saturday' int not null check(saturday in (0,1)),'sunday' int not null check(sunday in (0,1)),'start_date' int not null,'end_date' int not null,unique(feed_id,service_id)) 2024/11/19 00:48:22 Execute statement: create table if not exists calendar_dates ('feed_id' int not null,'service_id' text not null,'date' int not null,'exception_type' int not null check(exception_type in (1,2))) 2024/11/19 00:48:22 Execute statement: create table if not exists stop_times ('feed_id' int not null,'trip_id' text not null,'arrival_time' int,'departure_time' int,'stop_id' text not null,'stop_sequence' int not null,'stop_headsign' text,'pickup_type' int,'drop_off_type' int,'continuous_drop_off' text,'timepoint' int check(timepoint in (0,1)),unique(feed_id,trip_id,stop_sequence)) 2024/11/19 00:48:22 Execute statement: create table if not exists stops ('feed_id' int not null,'stop_id' text not null,'stop_code' text,'stop_name' text check( ((location_type is null or location_type = 0 or location_type = 1 or location_type = 2) and stop_name is not null) or (location_type = 3 or location_type = 4) ),'stop_desc' text,'stop_lat' real check( ((location_type is null or location_type = 0 or location_type = 1 or location_type = 2) and stop_lat is not null) or (location_type = 3 or location_type = 4) ),'stop_lon' real check( ((location_type is null or location_type = 0 or location_type = 1 or location_type = 2) and stop_lon is not null) or (location_type = 3 or location_type = 4) ),'zone_id' text,'stop_url' text,'location_type' int check(location_type in (0,1,2,3,4)),'parent_station' text,'stop_timezone' text,'wheelchair_boarding' int check(wheelchair_boarding in (0,1,2)),'level_id' text,'platform_code' text,unique(feed_id,stop_id)) 2024/11/19 00:48:22 Execute statement: create table if not exists trips ('feed_id' int not null,'route_id' text not null,'service_id' text not null,'trip_id' text not null,'trip_headsign' text,'trip_short_name' text,'direction_id' int check(direction_id in (0,1)),'block_id' text,'shape_id' text,'wheelchair_accessible' text check(wheelchair_accessible in (0,1,2)),'bikes_allowed' int check(bikes_allowed in (0,1,2)),unique(feed_id,trip_id)) 2024/11/19 00:48:22 Execute statement: create table if not exists routes ('feed_id' int not null,'route_id' text not null,'agency_id' text,'route_short_name' text check(route_long_name is not null or route_short_name is not null),'route_long_name' text,'route_desc' text,'route_type' int,'route_url' text,'route_color' text,'route_text_color' text,'route_sort_order' text,'continuous_pickup' int check(continuous_pickup in (0,1,2,3)),'continuous_drop_off' int check(continuous_drop_off in (0,1,2,3)),unique(feed_id,route_id)) 2024/11/19 00:48:22 Execute statement: create table if not exists transfers ('feed_id' int not null,'from_stop_id' text not null,'to_stop_id' text not null,'transfer_type' int,'min_transfer_time' int) 2024/11/19 00:48:22 Execute statement: create table if not exists _ctconn ('feed_id' int not null,'conn_id' text not null,'trip_id' text not null,'service_id' text not null,'from_stop_id' text not null,'from_stop_idu' text not null,'from_stop_sidu' text not null,'from_stop_time' int not null,'from_stop_sequence' int not null,'to_stop_id' text not null,'to_stop_idu' text not null,'to_stop_sidu' text not null,'to_stop_time' int not null,'to_stop_sequence' int not null,unique(feed_id,conn_id)) 2024/11/19 00:48:22 Execute statement: create table if not exists _ctcaltoservice ('feed_id' int not null,'service_date' int not null,'service_id' text not null) 2024/11/19 00:48:22 Execute statement: create table if not exists _cttransfersgen ('feed_id' int not null,'feed_id_pair' int not null,'from_stop_id' text not null,'to_stop_id' text not null,'from_stop_idu' text not null,'to_stop_idu' text not null,'from_stop_sidu' text not null,'to_stop_sidu' text not null,'dist_km' real) 2024/11/19 00:48:22 Loading schema tables ok 2024/11/19 00:48:22 Loading schema indexes 2024/11/19 00:48:22 Create index idx_agency1_agency_timezone on agency as [agency_timezone] 2024/11/19 00:48:22 Created index idx_agency1_agency_timezone ok 2024/11/19 00:48:22 Create index idx_stop_times1_departure_time on stop_times as [departure_time] 2024/11/19 00:48:22 Created index idx_stop_times1_departure_time ok 2024/11/19 00:48:22 Create index idx_stop_times1_trip_id on stop_times as [trip_id] 2024/11/19 00:48:22 Created index idx_stop_times1_trip_id ok 2024/11/19 00:48:22 Create index idx_stops2_feed_id_stop_id on stops as [feed_id stop_id] 2024/11/19 00:48:22 Created index idx_stops2_feed_id_stop_id ok 2024/11/19 00:48:22 Create index idx_stops2_stop_lat_stop_lon on stops as [stop_lat stop_lon] 2024/11/19 00:48:22 Created index idx_stops2_stop_lat_stop_lon ok 2024/11/19 00:48:22 Create index idx_stops3_feed_id_parent_station_location_type on stops as [feed_id parent_station location_type] 2024/11/19 00:48:22 Created index idx_stops3_feed_id_parent_station_location_type ok 2024/11/19 00:48:22 Create index idx_transfers2_feed_id_from_stop_id on transfers as [feed_id from_stop_id] 2024/11/19 00:48:22 Created index idx_transfers2_feed_id_from_stop_id ok 2024/11/19 00:48:22 Create index idx_transfers2_feed_id_to_stop_id on transfers as [feed_id to_stop_id] 2024/11/19 00:48:22 Created index idx_transfers2_feed_id_to_stop_id ok 2024/11/19 00:48:22 Create index idx__ctconn3_feed_id_service_id_from_stop_time on _ctconn as [feed_id service_id from_stop_time] 2024/11/19 00:48:22 Created index idx__ctconn3_feed_id_service_id_from_stop_time ok 2024/11/19 00:48:22 Create index idx__ctconn3_feed_id_from_stop_sidu_from_stop_time on _ctconn as [feed_id from_stop_sidu from_stop_time] 2024/11/19 00:48:22 Created index idx__ctconn3_feed_id_from_stop_sidu_from_stop_time ok 2024/11/19 00:48:22 Create index idx__ctcaltoservice3_feed_id_service_id_service_date on _ctcaltoservice as [feed_id service_id service_date] 2024/11/19 00:48:22 Created index idx__ctcaltoservice3_feed_id_service_id_service_date ok 2024/11/19 00:48:22 Create index idx__ctcaltoservice2_feed_id_service_date on _ctcaltoservice as [feed_id service_date] 2024/11/19 00:48:22 Created index idx__ctcaltoservice2_feed_id_service_date ok 2024/11/19 00:48:22 Loading schema indexes ok 2024/11/19 00:48:22 Loading views ok 2024/11/19 00:48:22 Loaded view _vfeedsminmaxdates (bytes=251) 2024/11/19 00:48:22 Loaded view _vfeedsmetadata (bytes=3676) 2024/11/19 00:48:22 Loaded view _vstopparent (bytes=2600) 2024/11/19 00:48:22 Loaded view _vconn (bytes=1201) 2024/11/19 00:48:22 Loaded view _vconnverbose (bytes=1122) 2024/11/19 00:48:22 Loaded view _vcaltoservice (bytes=3110) 2024/11/19 00:48:22 Loaded view _vtransferstbl (bytes=933) 2024/11/19 00:48:22 Loaded view _vtransfersgen (bytes=1523) 2024/11/19 00:48:22 Loaded view _vtransfersimplicit (bytes=371) 2024/11/19 00:48:22 Loading views ok 2024/11/19 00:48:22 Importing table from //tmp/mobroute_test_mobdb_93934242.csv (0.00MB) to table: _gtfssource_mdbcsv 2024/11/19 00:48:22 Last checksum vs current: / C_0M_e37782248cb886902a0c47e6cec73a3a6132502153ab771d8a17a86df329762e; import will occur 2024/11/19 00:48:22 Execute insert query: 2024/11/19 00:48:22 Insert query complete 2024/11/19 00:48:22 Imported 1 rows into _gtfssource_mdbcsv ok 2024/11/19 00:48:22 Imported table from //tmp/mobroute_test_mobdb_93934242.csv to table: _gtfssource_mdbcsv ok 2024/11/19 00:48:22 Running RTDatabase against input: {"feed_ids":[42],"op":"load"} 2024/11/19 00:48:22 Running Load against 1 feeds 2024/11/19 00:48:22 Loading GTFS feed 42 (1 of 1) 2024/11/19 00:48:22 Loading /tmp/1007323949.zip to DB with GTFS feed: 42 2024/11/19 00:48:22 Loaded GTFS Archive /tmp/1007323949.zip to temporary directory: /tmp/mobroute_tempdir300075787 2024/11/19 00:48:22 Loading table: agency 2024/11/19 00:48:22 Importing table from /tmp/mobroute_tempdir300075787/agency.txt (0.00MB) to table: agency 2024/11/19 00:48:22 Last checksum vs current: / C_0M_ec69cc35698113d39b116d06df83c168ff34eec1dd5daa90136c2ccdddd57966; import will occur 2024/11/19 00:48:22 Execute insert query: 2024/11/19 00:48:22 Insert query complete 2024/11/19 00:48:22 Imported 1 rows into agency ok 2024/11/19 00:48:22 Imported table from /tmp/mobroute_tempdir300075787/agency.txt to table: agency ok 2024/11/19 00:48:22 Loading table: agency complete 2024/11/19 00:48:22 Loading table: calendar 2024/11/19 00:48:22 Importing table from /tmp/mobroute_tempdir300075787/calendar.txt (0.00MB) to table: calendar 2024/11/19 00:48:22 Skipped import for non-existant non-required file: /tmp/mobroute_tempdir300075787/calendar.txt 2024/11/19 00:48:22 Loading table: calendar complete 2024/11/19 00:48:22 Loading table: calendar_dates 2024/11/19 00:48:22 Importing table from /tmp/mobroute_tempdir300075787/calendar_dates.txt (0.00MB) to table: calendar_dates 2024/11/19 00:48:22 Last checksum vs current: / C_0M_c9a596973ac871ddba3e27cef7cc8ef2d3481b1fd98a210e6f398bd2ce95a687; import will occur 2024/11/19 00:48:22 Execute insert query: 2024/11/19 00:48:22 Insert query complete 2024/11/19 00:48:22 Imported 6 rows into calendar_dates ok 2024/11/19 00:48:22 Imported table from /tmp/mobroute_tempdir300075787/calendar_dates.txt to table: calendar_dates ok 2024/11/19 00:48:22 Loading table: calendar_dates complete 2024/11/19 00:48:22 Loading table: stop_times 2024/11/19 00:48:22 Importing table from /tmp/mobroute_tempdir300075787/stop_times.txt (0.00MB) to table: stop_times 2024/11/19 00:48:22 Last checksum vs current: / C_0M_34d5ab6ee7cbb3e04fd82bd1dca86e4daecfa570a11b128209c8e5c102662d0a; import will occur 2024/11/19 00:48:22 Execute insert query: 2024/11/19 00:48:22 Insert query complete 2024/11/19 00:48:22 Imported 1 rows into stop_times ok 2024/11/19 00:48:22 Imported table from /tmp/mobroute_tempdir300075787/stop_times.txt to table: stop_times ok 2024/11/19 00:48:22 Loading table: stop_times complete 2024/11/19 00:48:22 Loading table: stops 2024/11/19 00:48:22 Importing table from /tmp/mobroute_tempdir300075787/stops.txt (0.00MB) to table: stops 2024/11/19 00:48:22 Last checksum vs current: / C_0M_0e74a5076f0274b109142fc425c74cff47bef02800122d1f65189c2f2ac9ddbb; import will occur 2024/11/19 00:48:22 Execute insert query: 2024/11/19 00:48:22 Insert query complete 2024/11/19 00:48:22 Imported 1 rows into stops ok 2024/11/19 00:48:22 Imported table from /tmp/mobroute_tempdir300075787/stops.txt to table: stops ok 2024/11/19 00:48:22 Loading table: stops complete 2024/11/19 00:48:22 Loading table: trips 2024/11/19 00:48:22 Importing table from /tmp/mobroute_tempdir300075787/trips.txt (0.00MB) to table: trips 2024/11/19 00:48:22 Last checksum vs current: / C_0M_0391ceb043162a440ba78564cae799b0c9b0004ac42d27290246145bfa780435; import will occur 2024/11/19 00:48:22 Execute insert query: 2024/11/19 00:48:22 Insert query complete 2024/11/19 00:48:22 Imported 1 rows into trips ok 2024/11/19 00:48:22 Imported table from /tmp/mobroute_tempdir300075787/trips.txt to table: trips ok 2024/11/19 00:48:22 Loading table: trips complete 2024/11/19 00:48:22 Loading table: routes 2024/11/19 00:48:22 Importing table from /tmp/mobroute_tempdir300075787/routes.txt (0.00MB) to table: routes 2024/11/19 00:48:22 Last checksum vs current: / C_0M_a6031af6418607a6e5f51c20eaa22f422664f8d5254c59438ab18ce7e1e97cf8; import will occur 2024/11/19 00:48:22 Execute insert query: 2024/11/19 00:48:22 Insert query complete 2024/11/19 00:48:22 Imported 1 rows into routes ok 2024/11/19 00:48:22 Imported table from /tmp/mobroute_tempdir300075787/routes.txt to table: routes ok 2024/11/19 00:48:22 Loading table: routes complete 2024/11/19 00:48:22 Loading table: transfers 2024/11/19 00:48:22 Importing table from /tmp/mobroute_tempdir300075787/transfers.txt (0.00MB) to table: transfers 2024/11/19 00:48:22 Skipped import for non-existant non-required file: /tmp/mobroute_tempdir300075787/transfers.txt 2024/11/19 00:48:22 Loading table: transfers complete 2024/11/19 00:48:22 Loaded /tmp/1007323949.zip to DB with GTFS feed: 42 ok 2024/11/19 00:48:22 Loading GTFS feed 42 ok; used cache for URL download (true) 2024/11/19 00:48:22 Running Load against 1 feeds ok 2024/11/19 00:48:22 Running RTDatabase against input: {"feed_ids":[42],"op":"compute"} 2024/11/19 00:48:22 Running Compute against 1 feeds 2024/11/19 00:48:22 Computed table _ctconn for feed (42 ) out of date - updating ('' vs '42:routes:C_0M_a6031af6418607a6e5f51c20eaa22f422664f8d5254c59438ab18ce7e1e97cf8,42:stop_times:C_0M_34d5ab6ee7cbb3e04fd82bd1dca86e4daecfa570a11b128209c8e5c102662d0a,42:stops:C_0M_0e74a5076f0274b109142fc425c74cff47bef02800122d1f65189c2f2ac9ddbb,42:trips:C_0M_0391ceb043162a440ba78564cae799b0c9b0004ac42d27290246145bfa780435') 2024/11/19 00:48:22 Computed table _ctcaltoservice for feed (42 ) out of date - updating ('' vs '42:stops:C_0M_0e74a5076f0274b109142fc425c74cff47bef02800122d1f65189c2f2ac9ddbb') 2024/11/19 00:48:22 Computed table _cttransfersgen for feed (42 0xc00031b658) out of date - updating ('' vs '42:stops:C_0M_0e74a5076f0274b109142fc425c74cff47bef02800122d1f65189c2f2ac9ddbb') 2024/11/19 00:48:22 Running Compute against 1 feeds ok 2024/11/19 00:48:22 Loading select feed_id, service_date, service_id from _ctcaltoservice where feed_id = ? and service_date between ? and ? ([42 20230402 20230703]) to memory 2024/11/19 00:48:22 Loaded select feed_id, service_date, service_id from _ctcaltoservice where feed_id = ? and service_date between ? and ? ([42 20230402 20230703]) to memory ok (len=0) 2024/11/19 00:48:22 Generated mock for input (map[42:../testhelper/mockgtfs/gtfs_cal_and_caldates.yml]): (gtfs zips: [/tmp/2700002245.zip]) (mobdb csv: /tmp/mobroute_test_mobdb_599593893.csv) 2024/11/19 00:48:22 SQLite system version (3.46.1); comparing to required version: 3.28.0 2024/11/19 00:48:22 Loading schema tables 2024/11/19 00:48:22 Execute statement: create table if not exists _mobsqltrack ('feed_id' int not null,'feed_id_pair' int,'tbl' text not null,'checksum' text not null,'n_rows' int not null,'timestamp' int not null,unique(feed_id,feed_id_pair,tbl)) 2024/11/19 00:48:22 Execute statement: create table if not exists _gtfssource_mdbcsv ('feed_id' int not null check(feed_id = -1),'data_type' text not null,'location.bounding_box.minimum_latitude' real,'location.bounding_box.minimum_longitude' real,'location.bounding_box.maximum_latitude' real,'location.bounding_box.maximum_longitude' real,'location.country_code' text,'location.subdivision_name' text,'location.municipality' text,'urls.latest' text,'urls.license' text,'mdb_source_id' int not null check(mdb_source_id >= 0),'name' text,'status' text,'provider' text not null,unique(mdb_source_id)) 2024/11/19 00:48:22 Execute statement: create table if not exists _gtfssource_custom ('customgtfs_feed_id' int not null check(customgtfs_feed_id < -1),'gtfs_uri' text not null,unique(customgtfs_feed_id)) 2024/11/19 00:48:22 Execute statement: create table if not exists agency ('feed_id' int not null,'agency_id' text,'agency_name' text not null,'agency_url' text not null,'agency_timezone' text not null,unique(feed_id,agency_id)) 2024/11/19 00:48:22 Execute statement: create table if not exists calendar ('feed_id' int not null,'service_id' text not null,'monday' int not null check(monday in (0,1)),'tuesday' int not null check(tuesday in (0,1)),'wednesday' int not null check(wednesday in (0,1)),'thursday' int not null check(thursday in (0,1)),'friday' int not null check(friday in (0,1)),'saturday' int not null check(saturday in (0,1)),'sunday' int not null check(sunday in (0,1)),'start_date' int not null,'end_date' int not null,unique(feed_id,service_id)) 2024/11/19 00:48:22 Execute statement: create table if not exists calendar_dates ('feed_id' int not null,'service_id' text not null,'date' int not null,'exception_type' int not null check(exception_type in (1,2))) 2024/11/19 00:48:22 Execute statement: create table if not exists stop_times ('feed_id' int not null,'trip_id' text not null,'arrival_time' int,'departure_time' int,'stop_id' text not null,'stop_sequence' int not null,'stop_headsign' text,'pickup_type' int,'drop_off_type' int,'continuous_drop_off' text,'timepoint' int check(timepoint in (0,1)),unique(feed_id,trip_id,stop_sequence)) 2024/11/19 00:48:22 Execute statement: create table if not exists stops ('feed_id' int not null,'stop_id' text not null,'stop_code' text,'stop_name' text check( ((location_type is null or location_type = 0 or location_type = 1 or location_type = 2) and stop_name is not null) or (location_type = 3 or location_type = 4) ),'stop_desc' text,'stop_lat' real check( ((location_type is null or location_type = 0 or location_type = 1 or location_type = 2) and stop_lat is not null) or (location_type = 3 or location_type = 4) ),'stop_lon' real check( ((location_type is null or location_type = 0 or location_type = 1 or location_type = 2) and stop_lon is not null) or (location_type = 3 or location_type = 4) ),'zone_id' text,'stop_url' text,'location_type' int check(location_type in (0,1,2,3,4)),'parent_station' text,'stop_timezone' text,'wheelchair_boarding' int check(wheelchair_boarding in (0,1,2)),'level_id' text,'platform_code' text,unique(feed_id,stop_id)) 2024/11/19 00:48:22 Execute statement: create table if not exists trips ('feed_id' int not null,'route_id' text not null,'service_id' text not null,'trip_id' text not null,'trip_headsign' text,'trip_short_name' text,'direction_id' int check(direction_id in (0,1)),'block_id' text,'shape_id' text,'wheelchair_accessible' text check(wheelchair_accessible in (0,1,2)),'bikes_allowed' int check(bikes_allowed in (0,1,2)),unique(feed_id,trip_id)) 2024/11/19 00:48:22 Execute statement: create table if not exists routes ('feed_id' int not null,'route_id' text not null,'agency_id' text,'route_short_name' text check(route_long_name is not null or route_short_name is not null),'route_long_name' text,'route_desc' text,'route_type' int,'route_url' text,'route_color' text,'route_text_color' text,'route_sort_order' text,'continuous_pickup' int check(continuous_pickup in (0,1,2,3)),'continuous_drop_off' int check(continuous_drop_off in (0,1,2,3)),unique(feed_id,route_id)) 2024/11/19 00:48:22 Execute statement: create table if not exists transfers ('feed_id' int not null,'from_stop_id' text not null,'to_stop_id' text not null,'transfer_type' int,'min_transfer_time' int) 2024/11/19 00:48:22 Execute statement: create table if not exists _ctconn ('feed_id' int not null,'conn_id' text not null,'trip_id' text not null,'service_id' text not null,'from_stop_id' text not null,'from_stop_idu' text not null,'from_stop_sidu' text not null,'from_stop_time' int not null,'from_stop_sequence' int not null,'to_stop_id' text not null,'to_stop_idu' text not null,'to_stop_sidu' text not null,'to_stop_time' int not null,'to_stop_sequence' int not null,unique(feed_id,conn_id)) 2024/11/19 00:48:22 Execute statement: create table if not exists _ctcaltoservice ('feed_id' int not null,'service_date' int not null,'service_id' text not null) 2024/11/19 00:48:22 Execute statement: create table if not exists _cttransfersgen ('feed_id' int not null,'feed_id_pair' int not null,'from_stop_id' text not null,'to_stop_id' text not null,'from_stop_idu' text not null,'to_stop_idu' text not null,'from_stop_sidu' text not null,'to_stop_sidu' text not null,'dist_km' real) 2024/11/19 00:48:22 Loading schema tables ok 2024/11/19 00:48:22 Loading schema indexes 2024/11/19 00:48:22 Create index idx_agency1_agency_timezone on agency as [agency_timezone] 2024/11/19 00:48:22 Created index idx_agency1_agency_timezone ok 2024/11/19 00:48:22 Create index idx_stop_times1_departure_time on stop_times as [departure_time] 2024/11/19 00:48:22 Created index idx_stop_times1_departure_time ok 2024/11/19 00:48:22 Create index idx_stop_times1_trip_id on stop_times as [trip_id] 2024/11/19 00:48:22 Created index idx_stop_times1_trip_id ok 2024/11/19 00:48:22 Create index idx_stops2_feed_id_stop_id on stops as [feed_id stop_id] 2024/11/19 00:48:22 Created index idx_stops2_feed_id_stop_id ok 2024/11/19 00:48:22 Create index idx_stops2_stop_lat_stop_lon on stops as [stop_lat stop_lon] 2024/11/19 00:48:22 Created index idx_stops2_stop_lat_stop_lon ok 2024/11/19 00:48:22 Create index idx_stops3_feed_id_parent_station_location_type on stops as [feed_id parent_station location_type] 2024/11/19 00:48:22 Created index idx_stops3_feed_id_parent_station_location_type ok 2024/11/19 00:48:22 Create index idx_transfers2_feed_id_from_stop_id on transfers as [feed_id from_stop_id] 2024/11/19 00:48:22 Created index idx_transfers2_feed_id_from_stop_id ok 2024/11/19 00:48:22 Create index idx_transfers2_feed_id_to_stop_id on transfers as [feed_id to_stop_id] 2024/11/19 00:48:22 Created index idx_transfers2_feed_id_to_stop_id ok 2024/11/19 00:48:22 Create index idx__ctconn3_feed_id_service_id_from_stop_time on _ctconn as [feed_id service_id from_stop_time] 2024/11/19 00:48:22 Created index idx__ctconn3_feed_id_service_id_from_stop_time ok 2024/11/19 00:48:22 Create index idx__ctconn3_feed_id_from_stop_sidu_from_stop_time on _ctconn as [feed_id from_stop_sidu from_stop_time] 2024/11/19 00:48:22 Created index idx__ctconn3_feed_id_from_stop_sidu_from_stop_time ok 2024/11/19 00:48:22 Create index idx__ctcaltoservice3_feed_id_service_id_service_date on _ctcaltoservice as [feed_id service_id service_date] 2024/11/19 00:48:22 Created index idx__ctcaltoservice3_feed_id_service_id_service_date ok 2024/11/19 00:48:22 Create index idx__ctcaltoservice2_feed_id_service_date on _ctcaltoservice as [feed_id service_date] 2024/11/19 00:48:22 Created index idx__ctcaltoservice2_feed_id_service_date ok 2024/11/19 00:48:22 Loading schema indexes ok 2024/11/19 00:48:22 Loading views ok 2024/11/19 00:48:22 Loaded view _vfeedsminmaxdates (bytes=251) 2024/11/19 00:48:22 Loaded view _vfeedsmetadata (bytes=3676) 2024/11/19 00:48:22 Loaded view _vstopparent (bytes=2600) 2024/11/19 00:48:22 Loaded view _vconn (bytes=1201) 2024/11/19 00:48:22 Loaded view _vconnverbose (bytes=1122) 2024/11/19 00:48:22 Loaded view _vcaltoservice (bytes=3110) 2024/11/19 00:48:22 Loaded view _vtransferstbl (bytes=933) 2024/11/19 00:48:22 Loaded view _vtransfersgen (bytes=1523) 2024/11/19 00:48:22 Loaded view _vtransfersimplicit (bytes=371) 2024/11/19 00:48:22 Loading views ok 2024/11/19 00:48:22 Importing table from //tmp/mobroute_test_mobdb_599593893.csv (0.00MB) to table: _gtfssource_mdbcsv 2024/11/19 00:48:22 Last checksum vs current: / C_0M_9c7b2d8b420c324e0c52fa98ac63dec93e5eb48b12b66fff5786528a192b8c73; import will occur 2024/11/19 00:48:22 Execute insert query: 2024/11/19 00:48:22 Insert query complete 2024/11/19 00:48:22 Imported 1 rows into _gtfssource_mdbcsv ok 2024/11/19 00:48:22 Imported table from //tmp/mobroute_test_mobdb_599593893.csv to table: _gtfssource_mdbcsv ok 2024/11/19 00:48:22 Running RTDatabase against input: {"feed_ids":[42],"op":"load"} 2024/11/19 00:48:22 Running Load against 1 feeds 2024/11/19 00:48:22 Loading GTFS feed 42 (1 of 1) 2024/11/19 00:48:22 Loading /tmp/2700002245.zip to DB with GTFS feed: 42 2024/11/19 00:48:22 Loaded GTFS Archive /tmp/2700002245.zip to temporary directory: /tmp/mobroute_tempdir136166898 2024/11/19 00:48:22 Loading table: agency 2024/11/19 00:48:22 Importing table from /tmp/mobroute_tempdir136166898/agency.txt (0.00MB) to table: agency 2024/11/19 00:48:22 Last checksum vs current: / C_0M_ec69cc35698113d39b116d06df83c168ff34eec1dd5daa90136c2ccdddd57966; import will occur 2024/11/19 00:48:22 Execute insert query: 2024/11/19 00:48:22 Insert query complete 2024/11/19 00:48:22 Imported 1 rows into agency ok 2024/11/19 00:48:22 Imported table from /tmp/mobroute_tempdir136166898/agency.txt to table: agency ok 2024/11/19 00:48:22 Loading table: agency complete 2024/11/19 00:48:22 Loading table: calendar 2024/11/19 00:48:22 Importing table from /tmp/mobroute_tempdir136166898/calendar.txt (0.00MB) to table: calendar 2024/11/19 00:48:22 Last checksum vs current: / C_0M_1a479c2cc8fe96fa8aacf573305f61c13d80b613e0c9ca8c3b964d91ece992ca; import will occur 2024/11/19 00:48:22 Execute insert query: 2024/11/19 00:48:22 Insert query complete 2024/11/19 00:48:22 Imported 2 rows into calendar ok 2024/11/19 00:48:22 Imported table from /tmp/mobroute_tempdir136166898/calendar.txt to table: calendar ok 2024/11/19 00:48:22 Loading table: calendar complete 2024/11/19 00:48:22 Loading table: calendar_dates 2024/11/19 00:48:22 Importing table from /tmp/mobroute_tempdir136166898/calendar_dates.txt (0.00MB) to table: calendar_dates 2024/11/19 00:48:22 Last checksum vs current: / C_0M_674e838dce9a30acbf7bc93af3c4c8f4856ba5f0b7c966777d38b29df07f8800; import will occur 2024/11/19 00:48:22 Execute insert query: 2024/11/19 00:48:22 Insert query complete 2024/11/19 00:48:22 Imported 4 rows into calendar_dates ok 2024/11/19 00:48:22 Imported table from /tmp/mobroute_tempdir136166898/calendar_dates.txt to table: calendar_dates ok 2024/11/19 00:48:22 Loading table: calendar_dates complete 2024/11/19 00:48:22 Loading table: stop_times 2024/11/19 00:48:22 Importing table from /tmp/mobroute_tempdir136166898/stop_times.txt (0.00MB) to table: stop_times 2024/11/19 00:48:22 Last checksum vs current: / C_0M_34d5ab6ee7cbb3e04fd82bd1dca86e4daecfa570a11b128209c8e5c102662d0a; import will occur 2024/11/19 00:48:22 Execute insert query: 2024/11/19 00:48:22 Insert query complete 2024/11/19 00:48:22 Imported 1 rows into stop_times ok 2024/11/19 00:48:22 Imported table from /tmp/mobroute_tempdir136166898/stop_times.txt to table: stop_times ok 2024/11/19 00:48:22 Loading table: stop_times complete 2024/11/19 00:48:22 Loading table: stops 2024/11/19 00:48:22 Importing table from /tmp/mobroute_tempdir136166898/stops.txt (0.00MB) to table: stops 2024/11/19 00:48:22 Last checksum vs current: / C_0M_0e74a5076f0274b109142fc425c74cff47bef02800122d1f65189c2f2ac9ddbb; import will occur 2024/11/19 00:48:22 Execute insert query: 2024/11/19 00:48:22 Insert query complete 2024/11/19 00:48:22 Imported 1 rows into stops ok 2024/11/19 00:48:22 Imported table from /tmp/mobroute_tempdir136166898/stops.txt to table: stops ok 2024/11/19 00:48:22 Loading table: stops complete 2024/11/19 00:48:22 Loading table: trips 2024/11/19 00:48:22 Importing table from /tmp/mobroute_tempdir136166898/trips.txt (0.00MB) to table: trips 2024/11/19 00:48:22 Last checksum vs current: / C_0M_0391ceb043162a440ba78564cae799b0c9b0004ac42d27290246145bfa780435; import will occur 2024/11/19 00:48:22 Execute insert query: 2024/11/19 00:48:22 Insert query complete 2024/11/19 00:48:22 Imported 1 rows into trips ok 2024/11/19 00:48:22 Imported table from /tmp/mobroute_tempdir136166898/trips.txt to table: trips ok 2024/11/19 00:48:22 Loading table: trips complete 2024/11/19 00:48:22 Loading table: routes 2024/11/19 00:48:22 Importing table from /tmp/mobroute_tempdir136166898/routes.txt (0.00MB) to table: routes 2024/11/19 00:48:22 Last checksum vs current: / C_0M_a6031af6418607a6e5f51c20eaa22f422664f8d5254c59438ab18ce7e1e97cf8; import will occur 2024/11/19 00:48:22 Execute insert query: 2024/11/19 00:48:22 Insert query complete 2024/11/19 00:48:22 Imported 1 rows into routes ok 2024/11/19 00:48:22 Imported table from /tmp/mobroute_tempdir136166898/routes.txt to table: routes ok 2024/11/19 00:48:22 Loading table: routes complete 2024/11/19 00:48:22 Loading table: transfers 2024/11/19 00:48:22 Importing table from /tmp/mobroute_tempdir136166898/transfers.txt (0.00MB) to table: transfers 2024/11/19 00:48:22 Skipped import for non-existant non-required file: /tmp/mobroute_tempdir136166898/transfers.txt 2024/11/19 00:48:22 Loading table: transfers complete 2024/11/19 00:48:22 Loaded /tmp/2700002245.zip to DB with GTFS feed: 42 ok 2024/11/19 00:48:22 Loading GTFS feed 42 ok; used cache for URL download (true) 2024/11/19 00:48:22 Running Load against 1 feeds ok 2024/11/19 00:48:22 Running RTDatabase against input: {"feed_ids":[42],"op":"compute"} 2024/11/19 00:48:22 Running Compute against 1 feeds 2024/11/19 00:48:22 Computed table _ctconn for feed (42 ) out of date - updating ('' vs '42:routes:C_0M_a6031af6418607a6e5f51c20eaa22f422664f8d5254c59438ab18ce7e1e97cf8,42:stop_times:C_0M_34d5ab6ee7cbb3e04fd82bd1dca86e4daecfa570a11b128209c8e5c102662d0a,42:stops:C_0M_0e74a5076f0274b109142fc425c74cff47bef02800122d1f65189c2f2ac9ddbb,42:trips:C_0M_0391ceb043162a440ba78564cae799b0c9b0004ac42d27290246145bfa780435') 2024/11/19 00:48:22 Computed table _ctcaltoservice for feed (42 ) out of date - updating ('' vs '42:stops:C_0M_0e74a5076f0274b109142fc425c74cff47bef02800122d1f65189c2f2ac9ddbb') 2024/11/19 00:48:22 Computed table _cttransfersgen for feed (42 0xc000137118) out of date - updating ('' vs '42:stops:C_0M_0e74a5076f0274b109142fc425c74cff47bef02800122d1f65189c2f2ac9ddbb') 2024/11/19 00:48:22 Running Compute against 1 feeds ok 2024/11/19 00:48:22 Loading select feed_id, service_date, service_id from _ctcaltoservice where feed_id = ? and service_date between ? and ? ([42 20230906 20230910]) to memory 2024/11/19 00:48:22 Loaded select feed_id, service_date, service_id from _ctcaltoservice where feed_id = ? and service_date between ? and ? ([42 20230906 20230910]) to memory ok (len=7) --- PASS: Test_LoadCalToService (0.09s) === RUN Test_LoadStopToParent 2024/11/19 00:48:22 Generated mock for input (map[42:../testhelper/mockgtfs/gtfs_simple_stops.yml]): (gtfs zips: [/tmp/1901130198.zip]) (mobdb csv: /tmp/mobroute_test_mobdb_2240673539.csv) 2024/11/19 00:48:22 SQLite system version (3.46.1); comparing to required version: 3.28.0 2024/11/19 00:48:22 Loading schema tables 2024/11/19 00:48:22 Execute statement: create table if not exists _mobsqltrack ('feed_id' int not null,'feed_id_pair' int,'tbl' text not null,'checksum' text not null,'n_rows' int not null,'timestamp' int not null,unique(feed_id,feed_id_pair,tbl)) 2024/11/19 00:48:22 Execute statement: create table if not exists _gtfssource_mdbcsv ('feed_id' int not null check(feed_id = -1),'data_type' text not null,'location.bounding_box.minimum_latitude' real,'location.bounding_box.minimum_longitude' real,'location.bounding_box.maximum_latitude' real,'location.bounding_box.maximum_longitude' real,'location.country_code' text,'location.subdivision_name' text,'location.municipality' text,'urls.latest' text,'urls.license' text,'mdb_source_id' int not null check(mdb_source_id >= 0),'name' text,'status' text,'provider' text not null,unique(mdb_source_id)) 2024/11/19 00:48:22 Execute statement: create table if not exists _gtfssource_custom ('customgtfs_feed_id' int not null check(customgtfs_feed_id < -1),'gtfs_uri' text not null,unique(customgtfs_feed_id)) 2024/11/19 00:48:22 Execute statement: create table if not exists agency ('feed_id' int not null,'agency_id' text,'agency_name' text not null,'agency_url' text not null,'agency_timezone' text not null,unique(feed_id,agency_id)) 2024/11/19 00:48:22 Execute statement: create table if not exists calendar ('feed_id' int not null,'service_id' text not null,'monday' int not null check(monday in (0,1)),'tuesday' int not null check(tuesday in (0,1)),'wednesday' int not null check(wednesday in (0,1)),'thursday' int not null check(thursday in (0,1)),'friday' int not null check(friday in (0,1)),'saturday' int not null check(saturday in (0,1)),'sunday' int not null check(sunday in (0,1)),'start_date' int not null,'end_date' int not null,unique(feed_id,service_id)) 2024/11/19 00:48:22 Execute statement: create table if not exists calendar_dates ('feed_id' int not null,'service_id' text not null,'date' int not null,'exception_type' int not null check(exception_type in (1,2))) 2024/11/19 00:48:22 Execute statement: create table if not exists stop_times ('feed_id' int not null,'trip_id' text not null,'arrival_time' int,'departure_time' int,'stop_id' text not null,'stop_sequence' int not null,'stop_headsign' text,'pickup_type' int,'drop_off_type' int,'continuous_drop_off' text,'timepoint' int check(timepoint in (0,1)),unique(feed_id,trip_id,stop_sequence)) 2024/11/19 00:48:22 Execute statement: create table if not exists stops ('feed_id' int not null,'stop_id' text not null,'stop_code' text,'stop_name' text check( ((location_type is null or location_type = 0 or location_type = 1 or location_type = 2) and stop_name is not null) or (location_type = 3 or location_type = 4) ),'stop_desc' text,'stop_lat' real check( ((location_type is null or location_type = 0 or location_type = 1 or location_type = 2) and stop_lat is not null) or (location_type = 3 or location_type = 4) ),'stop_lon' real check( ((location_type is null or location_type = 0 or location_type = 1 or location_type = 2) and stop_lon is not null) or (location_type = 3 or location_type = 4) ),'zone_id' text,'stop_url' text,'location_type' int check(location_type in (0,1,2,3,4)),'parent_station' text,'stop_timezone' text,'wheelchair_boarding' int check(wheelchair_boarding in (0,1,2)),'level_id' text,'platform_code' text,unique(feed_id,stop_id)) 2024/11/19 00:48:22 Execute statement: create table if not exists trips ('feed_id' int not null,'route_id' text not null,'service_id' text not null,'trip_id' text not null,'trip_headsign' text,'trip_short_name' text,'direction_id' int check(direction_id in (0,1)),'block_id' text,'shape_id' text,'wheelchair_accessible' text check(wheelchair_accessible in (0,1,2)),'bikes_allowed' int check(bikes_allowed in (0,1,2)),unique(feed_id,trip_id)) 2024/11/19 00:48:22 Execute statement: create table if not exists routes ('feed_id' int not null,'route_id' text not null,'agency_id' text,'route_short_name' text check(route_long_name is not null or route_short_name is not null),'route_long_name' text,'route_desc' text,'route_type' int,'route_url' text,'route_color' text,'route_text_color' text,'route_sort_order' text,'continuous_pickup' int check(continuous_pickup in (0,1,2,3)),'continuous_drop_off' int check(continuous_drop_off in (0,1,2,3)),unique(feed_id,route_id)) 2024/11/19 00:48:22 Execute statement: create table if not exists transfers ('feed_id' int not null,'from_stop_id' text not null,'to_stop_id' text not null,'transfer_type' int,'min_transfer_time' int) 2024/11/19 00:48:22 Execute statement: create table if not exists _ctconn ('feed_id' int not null,'conn_id' text not null,'trip_id' text not null,'service_id' text not null,'from_stop_id' text not null,'from_stop_idu' text not null,'from_stop_sidu' text not null,'from_stop_time' int not null,'from_stop_sequence' int not null,'to_stop_id' text not null,'to_stop_idu' text not null,'to_stop_sidu' text not null,'to_stop_time' int not null,'to_stop_sequence' int not null,unique(feed_id,conn_id)) 2024/11/19 00:48:22 Execute statement: create table if not exists _ctcaltoservice ('feed_id' int not null,'service_date' int not null,'service_id' text not null) 2024/11/19 00:48:22 Execute statement: create table if not exists _cttransfersgen ('feed_id' int not null,'feed_id_pair' int not null,'from_stop_id' text not null,'to_stop_id' text not null,'from_stop_idu' text not null,'to_stop_idu' text not null,'from_stop_sidu' text not null,'to_stop_sidu' text not null,'dist_km' real) 2024/11/19 00:48:22 Loading schema tables ok 2024/11/19 00:48:22 Loading schema indexes 2024/11/19 00:48:22 Create index idx_agency1_agency_timezone on agency as [agency_timezone] 2024/11/19 00:48:22 Created index idx_agency1_agency_timezone ok 2024/11/19 00:48:22 Create index idx_stop_times1_departure_time on stop_times as [departure_time] 2024/11/19 00:48:22 Created index idx_stop_times1_departure_time ok 2024/11/19 00:48:22 Create index idx_stop_times1_trip_id on stop_times as [trip_id] 2024/11/19 00:48:22 Created index idx_stop_times1_trip_id ok 2024/11/19 00:48:22 Create index idx_stops2_feed_id_stop_id on stops as [feed_id stop_id] 2024/11/19 00:48:22 Created index idx_stops2_feed_id_stop_id ok 2024/11/19 00:48:22 Create index idx_stops2_stop_lat_stop_lon on stops as [stop_lat stop_lon] 2024/11/19 00:48:22 Created index idx_stops2_stop_lat_stop_lon ok 2024/11/19 00:48:22 Create index idx_stops3_feed_id_parent_station_location_type on stops as [feed_id parent_station location_type] 2024/11/19 00:48:22 Created index idx_stops3_feed_id_parent_station_location_type ok 2024/11/19 00:48:22 Create index idx_transfers2_feed_id_from_stop_id on transfers as [feed_id from_stop_id] 2024/11/19 00:48:22 Created index idx_transfers2_feed_id_from_stop_id ok 2024/11/19 00:48:22 Create index idx_transfers2_feed_id_to_stop_id on transfers as [feed_id to_stop_id] 2024/11/19 00:48:22 Created index idx_transfers2_feed_id_to_stop_id ok 2024/11/19 00:48:22 Create index idx__ctconn3_feed_id_service_id_from_stop_time on _ctconn as [feed_id service_id from_stop_time] 2024/11/19 00:48:22 Created index idx__ctconn3_feed_id_service_id_from_stop_time ok 2024/11/19 00:48:22 Create index idx__ctconn3_feed_id_from_stop_sidu_from_stop_time on _ctconn as [feed_id from_stop_sidu from_stop_time] 2024/11/19 00:48:22 Created index idx__ctconn3_feed_id_from_stop_sidu_from_stop_time ok 2024/11/19 00:48:22 Create index idx__ctcaltoservice3_feed_id_service_id_service_date on _ctcaltoservice as [feed_id service_id service_date] 2024/11/19 00:48:22 Created index idx__ctcaltoservice3_feed_id_service_id_service_date ok 2024/11/19 00:48:22 Create index idx__ctcaltoservice2_feed_id_service_date on _ctcaltoservice as [feed_id service_date] 2024/11/19 00:48:22 Created index idx__ctcaltoservice2_feed_id_service_date ok 2024/11/19 00:48:22 Loading schema indexes ok 2024/11/19 00:48:22 Loading views ok 2024/11/19 00:48:22 Loaded view _vfeedsminmaxdates (bytes=251) 2024/11/19 00:48:22 Loaded view _vfeedsmetadata (bytes=3676) 2024/11/19 00:48:22 Loaded view _vstopparent (bytes=2600) 2024/11/19 00:48:22 Loaded view _vconn (bytes=1201) 2024/11/19 00:48:22 Loaded view _vconnverbose (bytes=1122) 2024/11/19 00:48:22 Loaded view _vcaltoservice (bytes=3110) 2024/11/19 00:48:22 Loaded view _vtransferstbl (bytes=933) 2024/11/19 00:48:22 Loaded view _vtransfersgen (bytes=1523) 2024/11/19 00:48:22 Loaded view _vtransfersimplicit (bytes=371) 2024/11/19 00:48:22 Loading views ok 2024/11/19 00:48:22 Importing table from //tmp/mobroute_test_mobdb_2240673539.csv (0.00MB) to table: _gtfssource_mdbcsv 2024/11/19 00:48:22 Last checksum vs current: / C_0M_243e58230b6f0ffb00073751463a49dcd9a4acb5bf71339155af438d99f64f7e; import will occur 2024/11/19 00:48:22 Execute insert query: 2024/11/19 00:48:22 Insert query complete 2024/11/19 00:48:22 Imported 1 rows into _gtfssource_mdbcsv ok 2024/11/19 00:48:22 Imported table from //tmp/mobroute_test_mobdb_2240673539.csv to table: _gtfssource_mdbcsv ok 2024/11/19 00:48:22 Running RTDatabase against input: {"feed_ids":[42],"op":"load"} 2024/11/19 00:48:22 Running Load against 1 feeds 2024/11/19 00:48:22 Loading GTFS feed 42 (1 of 1) 2024/11/19 00:48:22 Loading /tmp/1901130198.zip to DB with GTFS feed: 42 2024/11/19 00:48:22 Loaded GTFS Archive /tmp/1901130198.zip to temporary directory: /tmp/mobroute_tempdir3323905878 2024/11/19 00:48:22 Loading table: agency 2024/11/19 00:48:22 Importing table from /tmp/mobroute_tempdir3323905878/agency.txt (0.00MB) to table: agency 2024/11/19 00:48:22 Last checksum vs current: / C_0M_ec69cc35698113d39b116d06df83c168ff34eec1dd5daa90136c2ccdddd57966; import will occur 2024/11/19 00:48:22 Execute insert query: 2024/11/19 00:48:22 Insert query complete 2024/11/19 00:48:22 Imported 1 rows into agency ok 2024/11/19 00:48:22 Imported table from /tmp/mobroute_tempdir3323905878/agency.txt to table: agency ok 2024/11/19 00:48:22 Loading table: agency complete 2024/11/19 00:48:22 Loading table: calendar 2024/11/19 00:48:22 Importing table from /tmp/mobroute_tempdir3323905878/calendar.txt (0.00MB) to table: calendar 2024/11/19 00:48:22 Skipped import for non-existant non-required file: /tmp/mobroute_tempdir3323905878/calendar.txt 2024/11/19 00:48:22 Loading table: calendar complete 2024/11/19 00:48:22 Loading table: calendar_dates 2024/11/19 00:48:22 Importing table from /tmp/mobroute_tempdir3323905878/calendar_dates.txt (0.00MB) to table: calendar_dates 2024/11/19 00:48:22 Last checksum vs current: / C_0M_e37e371e5f8c7c355413d55fe59c9054de3dbf0d759f0bcd6ef7968b46cde54e; import will occur 2024/11/19 00:48:22 Execute insert query: 2024/11/19 00:48:22 Insert query complete 2024/11/19 00:48:22 Imported 1 rows into calendar_dates ok 2024/11/19 00:48:22 Imported table from /tmp/mobroute_tempdir3323905878/calendar_dates.txt to table: calendar_dates ok 2024/11/19 00:48:22 Loading table: calendar_dates complete 2024/11/19 00:48:22 Loading table: stop_times 2024/11/19 00:48:22 Importing table from /tmp/mobroute_tempdir3323905878/stop_times.txt (0.00MB) to table: stop_times 2024/11/19 00:48:22 Last checksum vs current: / C_0M_34d5ab6ee7cbb3e04fd82bd1dca86e4daecfa570a11b128209c8e5c102662d0a; import will occur 2024/11/19 00:48:22 Execute insert query: 2024/11/19 00:48:22 Insert query complete 2024/11/19 00:48:22 Imported 1 rows into stop_times ok 2024/11/19 00:48:22 Imported table from /tmp/mobroute_tempdir3323905878/stop_times.txt to table: stop_times ok 2024/11/19 00:48:22 Loading table: stop_times complete 2024/11/19 00:48:22 Loading table: stops 2024/11/19 00:48:22 Importing table from /tmp/mobroute_tempdir3323905878/stops.txt (0.00MB) to table: stops 2024/11/19 00:48:22 Last checksum vs current: / C_0M_658a3f90ef5c5b6b531059c770014493d5c29ff969ad1e41a9df10615e479366; import will occur 2024/11/19 00:48:22 Execute insert query: 2024/11/19 00:48:22 Insert query complete 2024/11/19 00:48:22 Imported 10 rows into stops ok 2024/11/19 00:48:22 Imported table from /tmp/mobroute_tempdir3323905878/stops.txt to table: stops ok 2024/11/19 00:48:22 Loading table: stops complete 2024/11/19 00:48:22 Loading table: trips 2024/11/19 00:48:22 Importing table from /tmp/mobroute_tempdir3323905878/trips.txt (0.00MB) to table: trips 2024/11/19 00:48:22 Last checksum vs current: / C_0M_0391ceb043162a440ba78564cae799b0c9b0004ac42d27290246145bfa780435; import will occur 2024/11/19 00:48:22 Execute insert query: 2024/11/19 00:48:22 Insert query complete 2024/11/19 00:48:22 Imported 1 rows into trips ok 2024/11/19 00:48:22 Imported table from /tmp/mobroute_tempdir3323905878/trips.txt to table: trips ok 2024/11/19 00:48:22 Loading table: trips complete 2024/11/19 00:48:22 Loading table: routes 2024/11/19 00:48:22 Importing table from /tmp/mobroute_tempdir3323905878/routes.txt (0.00MB) to table: routes 2024/11/19 00:48:22 Last checksum vs current: / C_0M_a6031af6418607a6e5f51c20eaa22f422664f8d5254c59438ab18ce7e1e97cf8; import will occur 2024/11/19 00:48:22 Execute insert query: 2024/11/19 00:48:22 Insert query complete 2024/11/19 00:48:22 Imported 1 rows into routes ok 2024/11/19 00:48:22 Imported table from /tmp/mobroute_tempdir3323905878/routes.txt to table: routes ok 2024/11/19 00:48:22 Loading table: routes complete 2024/11/19 00:48:22 Loading table: transfers 2024/11/19 00:48:22 Importing table from /tmp/mobroute_tempdir3323905878/transfers.txt (0.00MB) to table: transfers 2024/11/19 00:48:22 Skipped import for non-existant non-required file: /tmp/mobroute_tempdir3323905878/transfers.txt 2024/11/19 00:48:22 Loading table: transfers complete 2024/11/19 00:48:22 Loaded /tmp/1901130198.zip to DB with GTFS feed: 42 ok 2024/11/19 00:48:22 Loading GTFS feed 42 ok; used cache for URL download (true) 2024/11/19 00:48:22 Running Load against 1 feeds ok 2024/11/19 00:48:22 Running RTDatabase against input: {"feed_ids":[42],"op":"compute"} 2024/11/19 00:48:22 Running Compute against 1 feeds 2024/11/19 00:48:22 Computed table _ctconn for feed (42 ) out of date - updating ('' vs '42:routes:C_0M_a6031af6418607a6e5f51c20eaa22f422664f8d5254c59438ab18ce7e1e97cf8,42:stop_times:C_0M_34d5ab6ee7cbb3e04fd82bd1dca86e4daecfa570a11b128209c8e5c102662d0a,42:stops:C_0M_658a3f90ef5c5b6b531059c770014493d5c29ff969ad1e41a9df10615e479366,42:trips:C_0M_0391ceb043162a440ba78564cae799b0c9b0004ac42d27290246145bfa780435') 2024/11/19 00:48:22 Computed table _ctcaltoservice for feed (42 ) out of date - updating ('' vs '42:stops:C_0M_658a3f90ef5c5b6b531059c770014493d5c29ff969ad1e41a9df10615e479366') 2024/11/19 00:48:22 Computed table _cttransfersgen for feed (42 0xc0002e8af8) out of date - updating ('' vs '42:stops:C_0M_658a3f90ef5c5b6b531059c770014493d5c29ff969ad1e41a9df10615e479366') 2024/11/19 00:48:22 Running Compute against 1 feeds ok 2024/11/19 00:48:22 Loading select feed_id, stop_id, parent_station from _vstopparent where feed_id = ? ([42]) to memory 2024/11/19 00:48:22 Loaded select feed_id, stop_id, parent_station from _vstopparent where feed_id = ? ([42]) to memory ok (len=10) --- PASS: Test_LoadStopToParent (0.01s) PASS ok git.sr.ht/~mil/mobroute/dbstubquery_test 0.109s ? git.sr.ht/~mil/mobroute/dbt [no test files] ? git.sr.ht/~mil/mobroute/testhelper [no test files] ? git.sr.ht/~mil/mobroute/testhelper/dbquerytesthelper [no test files] ? git.sr.ht/~mil/mobroute/util/utilcache [no test files] ? git.sr.ht/~mil/mobroute/util/utilfuncs [no test files] === RUN Test_DistHaversine --- PASS: Test_DistHaversine (0.00s) === RUN Test_TimezoneToUTCDeltaSecs --- PASS: Test_TimezoneToUTCDeltaSecs (0.00s) PASS ok git.sr.ht/~mil/mobroute/util/utilfuncs_test 0.001s ? git.sr.ht/~mil/mobroute/util/utillog [no test files] >>> mobroute: Entering fakeroot... >>> mobroute-doc*: Running split function doc... 'usr/share/doc' -> '/home/buildozer/aports/testing/mobroute/pkg/mobroute-doc/usr/share/doc' >>> mobroute-doc*: Preparing subpackage mobroute-doc... >>> mobroute-doc*: Running postcheck for mobroute-doc >>> mobroute*: Running postcheck for mobroute >>> mobroute*: Preparing package mobroute... >>> mobroute*: Stripping binaries >>> mobroute-doc*: Scanning shared objects >>> mobroute*: Scanning shared objects >>> mobroute-doc*: Tracing dependencies... >>> mobroute-doc*: Package size: 45.9 KB >>> mobroute-doc*: Compressing data... >>> mobroute-doc*: Create checksum... >>> mobroute-doc*: Create mobroute-doc-0.8.4-r0.apk >>> mobroute*: Tracing dependencies... tzdata so:libc.musl-s390x.so.1 >>> mobroute*: Package size: 11.9 MB >>> mobroute*: Compressing data... >>> mobroute*: Create checksum... >>> mobroute*: Create mobroute-0.8.4-r0.apk >>> mobroute: Build complete at Tue, 19 Nov 2024 00:48:23 +0000 elapsed time 0h 1m 12s >>> mobroute: Cleaning up srcdir >>> mobroute: Cleaning up pkgdir >>> mobroute: Uninstalling dependencies... (1/6) Purging .makedepends-mobroute (20241119.004712) (2/6) Purging tzdata (2024b-r1) (3/6) Purging go (1.23.3-r0) (4/6) Purging sqlite-dev (3.47.0-r0) (5/6) Purging sqlite (3.47.0-r0) (6/6) Purging sqlite-libs (3.47.0-r0) Executing busybox-1.37.0-r7.trigger OK: 359 MiB in 105 packages >>> mobroute: Updating the testing/s390x repository index... >>> mobroute: Signing the index...