>>> mobroute: Building testing/mobroute 0.5.0-r2 (using abuild 3.13.0-r3) started Wed, 03 Jul 2024 21:36:45 +0000 >>> mobroute: Checking sanity of /home/buildozer/aports/testing/mobroute/APKBUILD... >>> mobroute: Analyzing dependencies... >>> mobroute: Installing for build: build-base tzdata go (1/3) Installing tzdata (2024a-r1) (2/3) Installing go (1.22.5-r0) (3/3) Installing .makedepends-mobroute (20240703.213647) Executing busybox-1.36.1-r31.trigger OK: 451 MiB in 113 packages >>> mobroute: Cleaning up srcdir >>> mobroute: Cleaning up pkgdir >>> mobroute: Cleaning up tmpdir >>> mobroute: Fetching https://distfiles.alpinelinux.org/distfiles/edge/mobroute-0.5.0.tar.gz >>> mobroute: Fetching https://distfiles.alpinelinux.org/distfiles/edge/mobroute-0.5.0.tar.gz >>> mobroute: Checking sha512sums... mobroute-0.5.0.tar.gz: OK >>> mobroute: Unpacking /var/cache/distfiles/mobroute-0.5.0.tar.gz... go: downloading gopkg.in/yaml.v3 v3.0.1 go: downloading github.com/jmoiron/sqlx v1.4.0 go: downloading github.com/mattn/go-sqlite3 v1.14.22 go: downloading git.sr.ht/~mil/mobsql v0.5.0 ? git.sr.ht/~mil/mobroute [no test files] ? git.sr.ht/~mil/mobroute/api/apims [no test files] ? git.sr.ht/~mil/mobroute/api/apims/dbschemaextra [no test files] ? git.sr.ht/~mil/mobroute/api/apiroute [no test files] ? git.sr.ht/~mil/mobroute/api/apiroute/calcwalk [no test files] ? git.sr.ht/~mil/mobroute/api/apiroute/diagnosticst [no test files] ? git.sr.ht/~mil/mobroute/api/apiroute/formatterdiagnostics [no test files] ? git.sr.ht/~mil/mobroute/api/apiroute/formattergeojson [no test files] ? git.sr.ht/~mil/mobroute/api/apiroute/formatterlegs [no test files] ? git.sr.ht/~mil/mobroute/api/apiroute/formattermapurl [no test files] === RUN Test_ApiRouteYMLGTFS 2024/07/03 21:38:43 Generated mock: (gtfs zips: [/tmp/1148265755.zip]) (mobdb csv: /tmp/mobroute_test_mobdb_3343292346.csv) 2024/07/03 21:38:43 Running route API against input: {"load":{"filter":{},"config":{"mdb_csv":"file:///tmp/mobroute_test_mobdb_3343292346.csv","sqlite_db":"/tmp/mobroute_test_sqlite_2554811056.db","allow_file_uris":true,"log_info":true,"log_warn":true,"log_debug":true}},"from":null,"to":null,"time":null,"max_walk_seconds":null,"max_trip_seconds":null,"max_transfer_seconds":null,"min_transfer_seconds":null,"max_n_transfers":null,"walkspeed_km_hr":null,"transfer_categories":null,"output_formats":null} 2024/07/03 21:38:43 SQLite system version (3.45.1); comparing to required version: 3.28.0 2024/07/03 21:38:43 Loading schema tables 2024/07/03 21:38:43 Execute statement: create table if not exists _mobsql ('source' int not null,'source_pair' int,'tbl' text not null,'checksum' text not null,'n_rows' int not null,'timestamp' int not null,unique(source,source_pair,tbl)) 2024/07/03 21:38:43 Execute statement: create table if not exists _mdb ('source' int not null,'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 not null,'mdb_source_id' int not null,'name' text,'status' text,'provider' text not null,unique(mdb_source_id)) 2024/07/03 21:38:43 Execute statement: create table if not exists agency ('source' int not null,'agency_id' text,'agency_name' text not null,'agency_url' text not null,'agency_timezone' text not null,unique(source,agency_id)) 2024/07/03 21:38:43 Execute statement: create table if not exists calendar ('source' 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(source,service_id)) 2024/07/03 21:38:43 Execute statement: create table if not exists calendar_dates ('source' int not null,'service_id' text not null,'date' int not null,'exception_type' int not null check(exception_type in (1,2))) 2024/07/03 21:38:43 Execute statement: create table if not exists stop_times ('source' 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(source,trip_id,stop_sequence)) 2024/07/03 21:38:43 Execute statement: create table if not exists stops ('source' 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(source,stop_id)) 2024/07/03 21:38:43 Execute statement: create table if not exists trips ('source' 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(source,trip_id)) 2024/07/03 21:38:43 Execute statement: create table if not exists routes ('source' 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(source,route_id)) 2024/07/03 21:38:43 Execute statement: create table if not exists transfers ('source' int not null,'from_stop_id' text not null,'to_stop_id' text not null,'transfer_type' int,'min_transfer_time' int) 2024/07/03 21:38:43 Execute statement: create table if not exists _cvconnd ('source' 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(source,conn_id)) 2024/07/03 21:38:43 Execute statement: create table if not exists _cvcaltoservice ('source' int not null,'service_date' int not null,'service_id' text not null) 2024/07/03 21:38:43 Execute statement: create table if not exists _cvtransfersgen ('source' int not null,'source_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/07/03 21:38:43 Loading schema tables ok 2024/07/03 21:38:43 Loading schema indexes 2024/07/03 21:38:43 Create index idx_stop_times1_departure_time on stop_times as [departure_time] 2024/07/03 21:38:43 Created index idx_stop_times1_departure_time ok 2024/07/03 21:38:43 Create index idx_stop_times1_trip_id on stop_times as [trip_id] 2024/07/03 21:38:43 Created index idx_stop_times1_trip_id ok 2024/07/03 21:38:43 Create index idx_stops2_source_stop_id on stops as [source stop_id] 2024/07/03 21:38:43 Created index idx_stops2_source_stop_id ok 2024/07/03 21:38:43 Create index idx_stops2_stop_lat_stop_lon on stops as [stop_lat stop_lon] 2024/07/03 21:38:43 Created index idx_stops2_stop_lat_stop_lon ok 2024/07/03 21:38:43 Create index idx_transfers2_source_from_stop_id on transfers as [source from_stop_id] 2024/07/03 21:38:43 Created index idx_transfers2_source_from_stop_id ok 2024/07/03 21:38:43 Create index idx_transfers2_source_to_stop_id on transfers as [source to_stop_id] 2024/07/03 21:38:43 Created index idx_transfers2_source_to_stop_id ok 2024/07/03 21:38:43 Create index idx__cvconnd3_source_service_id_from_stop_time on _cvconnd as [source service_id from_stop_time] 2024/07/03 21:38:43 Created index idx__cvconnd3_source_service_id_from_stop_time ok 2024/07/03 21:38:43 Create index idx__cvcaltoservice2_service_date_source on _cvcaltoservice as [service_date source] 2024/07/03 21:38:43 Created index idx__cvcaltoservice2_service_date_source ok 2024/07/03 21:38:43 Loading schema indexes ok 2024/07/03 21:38:43 Loading views ok 2024/07/03 21:38:43 Loaded view _vsources (bytes=2888) 2024/07/03 21:38:43 Loaded view _vstopparent (bytes=2589) 2024/07/03 21:38:43 Loaded view _vconnd (bytes=1214) 2024/07/03 21:38:43 Loaded view _vconndverbose (bytes=1065) 2024/07/03 21:38:43 Loaded view _vcaltoservice (bytes=4202) 2024/07/03 21:38:43 Loaded view _vtransferstbl (bytes=920) 2024/07/03 21:38:43 Loaded view _vtransfersgen (bytes=1538) 2024/07/03 21:38:43 Loaded view _vtransfersimplicit (bytes=365) 2024/07/03 21:38:43 Loading views ok 2024/07/03 21:38:43 Importing table from //tmp/mobroute_test_mobdb_3343292346.csv (0.00MB) to table: _mdb 2024/07/03 21:38:43 Last checksum vs current: / C_0M_1ce01886c6c2e0d6286fbff88eb1f4fa299bc031062ea551a41668635542a395; import will occur 2024/07/03 21:38:43 Imported 1 rows into _mdb ok 2024/07/03 21:38:43 Imported table from //tmp/mobroute_test_mobdb_3343292346.csv to table: _mdb ok 2024/07/03 21:38:43 Input filter &{[] [] 0 } translated to SQL where clause: '' with args: [] 2024/07/03 21:38:43 Applied filter ({}) matched 1 Mobility DB GTFS sources: [42] 2024/07/03 21:38:43 Running Load against 1 sources 2024/07/03 21:38:43 Loading mdbid 42 (1 of 1) 2024/07/03 21:38:43 Loading /tmp/1148265755.zip to DB with source name: 42 2024/07/03 21:38:43 Loaded GTFS Archive /tmp/1148265755.zip to temporary directory: /tmp/mobroute_tempdir199141838 2024/07/03 21:38:43 Loading table: agency 2024/07/03 21:38:43 Importing table from /tmp/mobroute_tempdir199141838/agency.txt (0.00MB) to table: agency 2024/07/03 21:38:43 Last checksum vs current: / C_0M_c15705f0e743a50086d3c871e24b6165b3b4d723a3f96445f676c4216a2fcd14; import will occur 2024/07/03 21:38:43 Imported 1 rows into agency ok 2024/07/03 21:38:43 Imported table from /tmp/mobroute_tempdir199141838/agency.txt to table: agency ok 2024/07/03 21:38:43 Loading table: agency complete 2024/07/03 21:38:43 Loading table: calendar 2024/07/03 21:38:43 Importing table from /tmp/mobroute_tempdir199141838/calendar.txt (0.00MB) to table: calendar 2024/07/03 21:38:43 Last checksum vs current: / C_0M_124e46e20a21debc5240cba81ffd1f420ad3546f91373ae55886e911b19b2608; import will occur 2024/07/03 21:38:43 Imported 2 rows into calendar ok 2024/07/03 21:38:43 Imported table from /tmp/mobroute_tempdir199141838/calendar.txt to table: calendar ok 2024/07/03 21:38:43 Loading table: calendar complete 2024/07/03 21:38:43 Loading table: calendar_dates 2024/07/03 21:38:43 Importing table from /tmp/mobroute_tempdir199141838/calendar_dates.txt (0.00MB) to table: calendar_dates 2024/07/03 21:38:43 Skipped import for non-existant non-required file: /tmp/mobroute_tempdir199141838/calendar_dates.txt 2024/07/03 21:38:43 Loading table: calendar_dates complete 2024/07/03 21:38:43 Loading table: stop_times 2024/07/03 21:38:43 Importing table from /tmp/mobroute_tempdir199141838/stop_times.txt (0.00MB) to table: stop_times 2024/07/03 21:38:43 Last checksum vs current: / C_0M_c720fd568d7d6154f442f16b61c73437ba7452ed091d91c002b4f384d60b36c6; import will occur 2024/07/03 21:38:44 Imported 9 rows into stop_times ok 2024/07/03 21:38:44 Imported table from /tmp/mobroute_tempdir199141838/stop_times.txt to table: stop_times ok 2024/07/03 21:38:44 Loading table: stop_times complete 2024/07/03 21:38:44 Loading table: stops 2024/07/03 21:38:44 Importing table from /tmp/mobroute_tempdir199141838/stops.txt (0.00MB) to table: stops 2024/07/03 21:38:44 Last checksum vs current: / C_0M_1e4481e4464525fdf1ea0305fca00f2c9d379749fff7d64a0cd7ffa5175af899; import will occur 2024/07/03 21:38:44 Imported 4 rows into stops ok 2024/07/03 21:38:44 Imported table from /tmp/mobroute_tempdir199141838/stops.txt to table: stops ok 2024/07/03 21:38:44 Loading table: stops complete 2024/07/03 21:38:44 Loading table: trips 2024/07/03 21:38:44 Importing table from /tmp/mobroute_tempdir199141838/trips.txt (0.00MB) to table: trips 2024/07/03 21:38:44 Last checksum vs current: / C_0M_0220e37a7822e751eaa95f847f72fd94eb66c922e5a43f58f2bc059b96efdce7; import will occur 2024/07/03 21:38:44 Imported 4 rows into trips ok 2024/07/03 21:38:44 Imported table from /tmp/mobroute_tempdir199141838/trips.txt to table: trips ok 2024/07/03 21:38:44 Loading table: trips complete 2024/07/03 21:38:44 Loading table: routes 2024/07/03 21:38:44 Importing table from /tmp/mobroute_tempdir199141838/routes.txt (0.00MB) to table: routes 2024/07/03 21:38:44 Last checksum vs current: / C_0M_adc89b7b4e4f8b88e68bf10397af1fc696e623cfec1d5ebd84a57dfac7953136; import will occur 2024/07/03 21:38:44 Imported 2 rows into routes ok 2024/07/03 21:38:44 Imported table from /tmp/mobroute_tempdir199141838/routes.txt to table: routes ok 2024/07/03 21:38:44 Loading table: routes complete 2024/07/03 21:38:44 Loading table: transfers 2024/07/03 21:38:44 Importing table from /tmp/mobroute_tempdir199141838/transfers.txt (0.00MB) to table: transfers 2024/07/03 21:38:44 Skipped import for non-existant non-required file: /tmp/mobroute_tempdir199141838/transfers.txt 2024/07/03 21:38:44 Loading table: transfers complete 2024/07/03 21:38:44 Loaded /tmp/1148265755.zip to DB with source name: 42 ok 2024/07/03 21:38:44 Loading mdbid 42 ok; used cache for URL download (true) 2024/07/03 21:38:44 Running Load against 1 sources ok 2024/07/03 21:38:44 Running Compute against 1 sources 2024/07/03 21:38:44 Computed table _cvconnd for source (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/07/03 21:38:44 Computed table _cvcaltoservice for source (42 ) out of date - updating ('' vs '42:stops:C_0M_1e4481e4464525fdf1ea0305fca00f2c9d379749fff7d64a0cd7ffa5175af899') 2024/07/03 21:38:44 Computed table _cvtransfersgen for source (42 0xc0004670c8) out of date - updating ('' vs '42:stops:C_0M_1e4481e4464525fdf1ea0305fca00f2c9d379749fff7d64a0cd7ffa5175af899') 2024/07/03 21:38:44 Running Compute against 1 sources ok 2024/07/03 21:38:44 Opening DB in RO mode: file:/tmp/mobroute_test_sqlite_2554811056.db?mode=ro 2024/07/03 21:38:44 Loading with inputs as (select ? as yyyymmdddate, ? as seconds_from, ? as seconds_to), sourcetotzutcdelta as ( select source, ext_timezonetoutcdeltasecs(inputs.yyyymmdddate, min(agency_timezone)) as tzutcdeltasecs from agency join inputs on 1 = 1 group by source ), 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 _cvcaltoservice 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.source in (?) join _cvconnd con on cts.service_id = con.service_id and cts.source = con.source and from_stop_drutctime between seconds_from and seconds_to join sourcetotzutcdelta tz on con.source = tz.source order by from_stop_drutctime 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 ([20240703 77923 92323 42]) to memory 2024/07/03 21:38:44 Loaded with inputs as (select ? as yyyymmdddate, ? as seconds_from, ? as seconds_to), sourcetotzutcdelta as ( select source, ext_timezonetoutcdeltasecs(inputs.yyyymmdddate, min(agency_timezone)) as tzutcdeltasecs from agency join inputs on 1 = 1 group by source ), 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 _cvcaltoservice 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.source in (?) join _cvconnd con on cts.service_id = con.service_id and cts.source = con.source and from_stop_drutctime between seconds_from and seconds_to join sourcetotzutcdelta tz on con.source = tz.source order by from_stop_drutctime 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 ([20240703 77923 92323 42]) to memory ok (len=0) --- PASS: Test_ApiRouteYMLGTFS (0.17s) PASS ok git.sr.ht/~mil/mobroute/api/apiroute_test 0.175s ? 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/07/03 21:38:44 CSA Main Loop Begin 2024/07/03 21:38:44 Completed main CSA loop map[a:{1 0} b:{10 0xc0001a0bd0 1} c:{20 0xc0001a0c40 1} d:{1000 0} e:{1000 0}] 2024/07/03 21:38:44 CSA Main Loop Complete 2024/07/03 21:38:44 CSA Main Loop Begin 2024/07/03 21:38:44 Completed main CSA loop map[a:{-11 0} b:{-3 0xc0001a0cb0 1} c:{20 0xc0001a0d20 1} d:{988 0} e:{988 0}] 2024/07/03 21:38:44 CSA Main Loop Complete 2024/07/03 21:38:44 CSA Main Loop Begin 2024/07/03 21:38:44 Completed main CSA loop map[a:{1 0} b:{10 0xc0001a0d90 1} c:{20 0xc0001a0e00 1} d:{1000 0} e:{1000 0} f:{20 0xc0001a0ee0 2} g:{11 0xc0001a0d90 1} h:{13 0xc0001a0e70 2}] 2024/07/03 21:38:44 CSA Main Loop Complete 2024/07/03 21:38:44 CSA Main Loop Begin 2024/07/03 21:38:44 Completed main CSA loop map[a:{1 0} b:{10 0xc0001a0f50 1} c:{20 0xc0001a0fc0 1} d:{1000 0} e:{1000 0} f:{15 0xc0001a1030 2}] 2024/07/03 21:38:44 CSA Main Loop Complete 2024/07/03 21:38:44 CSA Main Loop Begin 2024/07/03 21:38:44 Completed main CSA loop map[a:{1 0} b:{10 0xc0001a10a0 1} c:{20 0xc0001a1110 1} d:{1000 0} e:{1000 0} f:{19 0xc0001a1180 2} g:{14 0xc0001a10a0 1} h:{1000 0}] 2024/07/03 21:38:44 CSA Main Loop Complete 2024/07/03 21:38:44 CSA Main Loop Begin 2024/07/03 21:38:44 Completed main CSA loop map[a:{1 0} b:{10 0xc0001a11f0 1} c:{20 0xc0001a1260 1} d:{1000 0} e:{1000 0} f:{19 0xc0001a13b0 2} g:{11 0xc0001a11f0 1} h:{13 0xc0001a12d0 2} i:{24 0xc0001a1420 3} j:{30 0xc0001a1490 3}] 2024/07/03 21:38:44 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.003s ? 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/07/03 21:38:45 Generated mock: (gtfs zips: [/tmp/3982160250.zip]) (mobdb csv: /tmp/mobroute_test_mobdb_2749560559.csv) 2024/07/03 21:38:45 SQLite system version (3.45.1); comparing to required version: 3.28.0 2024/07/03 21:38:45 Loading schema tables 2024/07/03 21:38:45 Execute statement: create table if not exists _mobsql ('source' int not null,'source_pair' int,'tbl' text not null,'checksum' text not null,'n_rows' int not null,'timestamp' int not null,unique(source,source_pair,tbl)) 2024/07/03 21:38:45 Execute statement: create table if not exists _mdb ('source' int not null,'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 not null,'mdb_source_id' int not null,'name' text,'status' text,'provider' text not null,unique(mdb_source_id)) 2024/07/03 21:38:45 Execute statement: create table if not exists agency ('source' int not null,'agency_id' text,'agency_name' text not null,'agency_url' text not null,'agency_timezone' text not null,unique(source,agency_id)) 2024/07/03 21:38:45 Execute statement: create table if not exists calendar ('source' 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(source,service_id)) 2024/07/03 21:38:45 Execute statement: create table if not exists calendar_dates ('source' int not null,'service_id' text not null,'date' int not null,'exception_type' int not null check(exception_type in (1,2))) 2024/07/03 21:38:45 Execute statement: create table if not exists stop_times ('source' 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(source,trip_id,stop_sequence)) 2024/07/03 21:38:45 Execute statement: create table if not exists stops ('source' 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(source,stop_id)) 2024/07/03 21:38:45 Execute statement: create table if not exists trips ('source' 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(source,trip_id)) 2024/07/03 21:38:45 Execute statement: create table if not exists routes ('source' 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(source,route_id)) 2024/07/03 21:38:45 Execute statement: create table if not exists transfers ('source' int not null,'from_stop_id' text not null,'to_stop_id' text not null,'transfer_type' int,'min_transfer_time' int) 2024/07/03 21:38:45 Execute statement: create table if not exists _cvconnd ('source' 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(source,conn_id)) 2024/07/03 21:38:45 Execute statement: create table if not exists _cvcaltoservice ('source' int not null,'service_date' int not null,'service_id' text not null) 2024/07/03 21:38:45 Execute statement: create table if not exists _cvtransfersgen ('source' int not null,'source_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/07/03 21:38:45 Loading schema tables ok 2024/07/03 21:38:45 Loading schema indexes 2024/07/03 21:38:45 Create index idx_stop_times1_departure_time on stop_times as [departure_time] 2024/07/03 21:38:45 Created index idx_stop_times1_departure_time ok 2024/07/03 21:38:45 Create index idx_stop_times1_trip_id on stop_times as [trip_id] 2024/07/03 21:38:45 Created index idx_stop_times1_trip_id ok 2024/07/03 21:38:45 Create index idx_stops2_source_stop_id on stops as [source stop_id] 2024/07/03 21:38:45 Created index idx_stops2_source_stop_id ok 2024/07/03 21:38:45 Create index idx_stops2_stop_lat_stop_lon on stops as [stop_lat stop_lon] 2024/07/03 21:38:45 Created index idx_stops2_stop_lat_stop_lon ok 2024/07/03 21:38:45 Create index idx_transfers2_source_from_stop_id on transfers as [source from_stop_id] 2024/07/03 21:38:45 Created index idx_transfers2_source_from_stop_id ok 2024/07/03 21:38:45 Create index idx_transfers2_source_to_stop_id on transfers as [source to_stop_id] 2024/07/03 21:38:45 Created index idx_transfers2_source_to_stop_id ok 2024/07/03 21:38:45 Create index idx__cvconnd3_source_service_id_from_stop_time on _cvconnd as [source service_id from_stop_time] 2024/07/03 21:38:45 Created index idx__cvconnd3_source_service_id_from_stop_time ok 2024/07/03 21:38:45 Create index idx__cvcaltoservice2_service_date_source on _cvcaltoservice as [service_date source] 2024/07/03 21:38:45 Created index idx__cvcaltoservice2_service_date_source ok 2024/07/03 21:38:45 Loading schema indexes ok 2024/07/03 21:38:45 Loading views ok 2024/07/03 21:38:45 Loaded view _vsources (bytes=2888) 2024/07/03 21:38:45 Loaded view _vstopparent (bytes=2589) 2024/07/03 21:38:45 Loaded view _vconnd (bytes=1214) 2024/07/03 21:38:45 Loaded view _vconndverbose (bytes=1065) 2024/07/03 21:38:45 Loaded view _vcaltoservice (bytes=4202) 2024/07/03 21:38:45 Loaded view _vtransferstbl (bytes=920) 2024/07/03 21:38:45 Loaded view _vtransfersgen (bytes=1538) 2024/07/03 21:38:45 Loaded view _vtransfersimplicit (bytes=365) 2024/07/03 21:38:45 Loading views ok 2024/07/03 21:38:45 Importing table from //tmp/mobroute_test_mobdb_2749560559.csv (0.00MB) to table: _mdb 2024/07/03 21:38:45 Last checksum vs current: / C_0M_4d1bec48ebf32f43bec7ed986d5b1248a6d4aa2b06cd035d7b695db0292e0e59; import will occur 2024/07/03 21:38:45 Imported 1 rows into _mdb ok 2024/07/03 21:38:45 Imported table from //tmp/mobroute_test_mobdb_2749560559.csv to table: _mdb ok 2024/07/03 21:38:45 Applied filter (null) matched 1 Mobility DB GTFS sources: [42] 2024/07/03 21:38:45 Running Load against 1 sources 2024/07/03 21:38:45 Loading mdbid 42 (1 of 1) 2024/07/03 21:38:45 Loading /tmp/3982160250.zip to DB with source name: 42 2024/07/03 21:38:45 Loaded GTFS Archive /tmp/3982160250.zip to temporary directory: /tmp/mobroute_tempdir172767056 2024/07/03 21:38:45 Loading table: agency 2024/07/03 21:38:45 Importing table from /tmp/mobroute_tempdir172767056/agency.txt (0.00MB) to table: agency 2024/07/03 21:38:45 Last checksum vs current: / C_0M_c15705f0e743a50086d3c871e24b6165b3b4d723a3f96445f676c4216a2fcd14; import will occur 2024/07/03 21:38:45 Imported 1 rows into agency ok 2024/07/03 21:38:45 Imported table from /tmp/mobroute_tempdir172767056/agency.txt to table: agency ok 2024/07/03 21:38:45 Loading table: agency complete 2024/07/03 21:38:45 Loading table: calendar 2024/07/03 21:38:45 Importing table from /tmp/mobroute_tempdir172767056/calendar.txt (0.00MB) to table: calendar 2024/07/03 21:38:45 Last checksum vs current: / C_0M_124e46e20a21debc5240cba81ffd1f420ad3546f91373ae55886e911b19b2608; import will occur 2024/07/03 21:38:45 Imported 2 rows into calendar ok 2024/07/03 21:38:45 Imported table from /tmp/mobroute_tempdir172767056/calendar.txt to table: calendar ok 2024/07/03 21:38:45 Loading table: calendar complete 2024/07/03 21:38:45 Loading table: calendar_dates 2024/07/03 21:38:45 Importing table from /tmp/mobroute_tempdir172767056/calendar_dates.txt (0.00MB) to table: calendar_dates 2024/07/03 21:38:45 Skipped import for non-existant non-required file: /tmp/mobroute_tempdir172767056/calendar_dates.txt 2024/07/03 21:38:45 Loading table: calendar_dates complete 2024/07/03 21:38:45 Loading table: stop_times 2024/07/03 21:38:45 Importing table from /tmp/mobroute_tempdir172767056/stop_times.txt (0.00MB) to table: stop_times 2024/07/03 21:38:45 Last checksum vs current: / C_0M_c720fd568d7d6154f442f16b61c73437ba7452ed091d91c002b4f384d60b36c6; import will occur 2024/07/03 21:38:45 Imported 9 rows into stop_times ok 2024/07/03 21:38:45 Imported table from /tmp/mobroute_tempdir172767056/stop_times.txt to table: stop_times ok 2024/07/03 21:38:45 Loading table: stop_times complete 2024/07/03 21:38:45 Loading table: stops 2024/07/03 21:38:45 Importing table from /tmp/mobroute_tempdir172767056/stops.txt (0.00MB) to table: stops 2024/07/03 21:38:45 Last checksum vs current: / C_0M_1e4481e4464525fdf1ea0305fca00f2c9d379749fff7d64a0cd7ffa5175af899; import will occur 2024/07/03 21:38:45 Imported 4 rows into stops ok 2024/07/03 21:38:45 Imported table from /tmp/mobroute_tempdir172767056/stops.txt to table: stops ok 2024/07/03 21:38:45 Loading table: stops complete 2024/07/03 21:38:45 Loading table: trips 2024/07/03 21:38:45 Importing table from /tmp/mobroute_tempdir172767056/trips.txt (0.00MB) to table: trips 2024/07/03 21:38:45 Last checksum vs current: / C_0M_0220e37a7822e751eaa95f847f72fd94eb66c922e5a43f58f2bc059b96efdce7; import will occur 2024/07/03 21:38:45 Imported 4 rows into trips ok 2024/07/03 21:38:45 Imported table from /tmp/mobroute_tempdir172767056/trips.txt to table: trips ok 2024/07/03 21:38:45 Loading table: trips complete 2024/07/03 21:38:45 Loading table: routes 2024/07/03 21:38:45 Importing table from /tmp/mobroute_tempdir172767056/routes.txt (0.00MB) to table: routes 2024/07/03 21:38:45 Last checksum vs current: / C_0M_adc89b7b4e4f8b88e68bf10397af1fc696e623cfec1d5ebd84a57dfac7953136; import will occur 2024/07/03 21:38:45 Imported 2 rows into routes ok 2024/07/03 21:38:45 Imported table from /tmp/mobroute_tempdir172767056/routes.txt to table: routes ok 2024/07/03 21:38:45 Loading table: routes complete 2024/07/03 21:38:45 Loading table: transfers 2024/07/03 21:38:45 Importing table from /tmp/mobroute_tempdir172767056/transfers.txt (0.00MB) to table: transfers 2024/07/03 21:38:45 Skipped import for non-existant non-required file: /tmp/mobroute_tempdir172767056/transfers.txt 2024/07/03 21:38:45 Loading table: transfers complete 2024/07/03 21:38:45 Loaded /tmp/3982160250.zip to DB with source name: 42 ok 2024/07/03 21:38:45 Loading mdbid 42 ok; used cache for URL download (true) 2024/07/03 21:38:45 Running Load against 1 sources ok 2024/07/03 21:38:45 Running Compute against 1 sources 2024/07/03 21:38:45 Computed table _cvconnd for source (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/07/03 21:38:45 Computed table _cvcaltoservice for source (42 ) out of date - updating ('' vs '42:stops:C_0M_1e4481e4464525fdf1ea0305fca00f2c9d379749fff7d64a0cd7ffa5175af899') 2024/07/03 21:38:45 Computed table _cvtransfersgen for source (42 0xc00047eb08) out of date - updating ('' vs '42:stops:C_0M_1e4481e4464525fdf1ea0305fca00f2c9d379749fff7d64a0cd7ffa5175af899') 2024/07/03 21:38:45 Running Compute against 1 sources ok 2024/07/03 21:38:45 Opening DB in RO mode: file:/tmp/mobroute_test_sqlite_3112797605.db?mode=ro 2024/07/03 21:38:45 Loading with inputs as (select ? as yyyymmdddate, ? as seconds_from, ? as seconds_to), sourcetotzutcdelta as ( select source, ext_timezonetoutcdeltasecs(inputs.yyyymmdddate, min(agency_timezone)) as tzutcdeltasecs from agency join inputs on 1 = 1 group by source ), 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 _cvcaltoservice 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.source in (?) join _cvconnd con on cts.service_id = con.service_id and cts.source = con.source and from_stop_drutctime between seconds_from and seconds_to join sourcetotzutcdelta tz on con.source = tz.source order by from_stop_drutctime 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 ([20240304 25200 28800 42]) to memory 2024/07/03 21:38:45 Loaded with inputs as (select ? as yyyymmdddate, ? as seconds_from, ? as seconds_to), sourcetotzutcdelta as ( select source, ext_timezonetoutcdeltasecs(inputs.yyyymmdddate, min(agency_timezone)) as tzutcdeltasecs from agency join inputs on 1 = 1 group by source ), 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 _cvcaltoservice 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.source in (?) join _cvconnd con on cts.service_id = con.service_id and cts.source = con.source and from_stop_drutctime between seconds_from and seconds_to join sourcetotzutcdelta tz on con.source = tz.source order by from_stop_drutctime 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 ([20240304 25200 28800 42]) to memory ok (len=2) 2024/07/03 21:38:45 Generated mock: (gtfs zips: [/tmp/2866805651.zip]) (mobdb csv: /tmp/mobroute_test_mobdb_3319682376.csv) 2024/07/03 21:38:45 SQLite system version (3.45.1); comparing to required version: 3.28.0 2024/07/03 21:38:45 Loading schema tables 2024/07/03 21:38:45 Execute statement: create table if not exists _mobsql ('source' int not null,'source_pair' int,'tbl' text not null,'checksum' text not null,'n_rows' int not null,'timestamp' int not null,unique(source,source_pair,tbl)) 2024/07/03 21:38:45 Execute statement: create table if not exists _mdb ('source' int not null,'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 not null,'mdb_source_id' int not null,'name' text,'status' text,'provider' text not null,unique(mdb_source_id)) 2024/07/03 21:38:45 Execute statement: create table if not exists agency ('source' int not null,'agency_id' text,'agency_name' text not null,'agency_url' text not null,'agency_timezone' text not null,unique(source,agency_id)) 2024/07/03 21:38:45 Execute statement: create table if not exists calendar ('source' 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(source,service_id)) 2024/07/03 21:38:45 Execute statement: create table if not exists calendar_dates ('source' int not null,'service_id' text not null,'date' int not null,'exception_type' int not null check(exception_type in (1,2))) 2024/07/03 21:38:45 Execute statement: create table if not exists stop_times ('source' 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(source,trip_id,stop_sequence)) 2024/07/03 21:38:45 Execute statement: create table if not exists stops ('source' 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(source,stop_id)) 2024/07/03 21:38:45 Execute statement: create table if not exists trips ('source' 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(source,trip_id)) 2024/07/03 21:38:45 Execute statement: create table if not exists routes ('source' 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(source,route_id)) 2024/07/03 21:38:45 Execute statement: create table if not exists transfers ('source' int not null,'from_stop_id' text not null,'to_stop_id' text not null,'transfer_type' int,'min_transfer_time' int) 2024/07/03 21:38:45 Execute statement: create table if not exists _cvconnd ('source' 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(source,conn_id)) 2024/07/03 21:38:45 Execute statement: create table if not exists _cvcaltoservice ('source' int not null,'service_date' int not null,'service_id' text not null) 2024/07/03 21:38:45 Execute statement: create table if not exists _cvtransfersgen ('source' int not null,'source_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/07/03 21:38:45 Loading schema tables ok 2024/07/03 21:38:45 Loading schema indexes 2024/07/03 21:38:45 Create index idx_stop_times1_departure_time on stop_times as [departure_time] 2024/07/03 21:38:45 Created index idx_stop_times1_departure_time ok 2024/07/03 21:38:45 Create index idx_stop_times1_trip_id on stop_times as [trip_id] 2024/07/03 21:38:45 Created index idx_stop_times1_trip_id ok 2024/07/03 21:38:45 Create index idx_stops2_source_stop_id on stops as [source stop_id] 2024/07/03 21:38:45 Created index idx_stops2_source_stop_id ok 2024/07/03 21:38:45 Create index idx_stops2_stop_lat_stop_lon on stops as [stop_lat stop_lon] 2024/07/03 21:38:45 Created index idx_stops2_stop_lat_stop_lon ok 2024/07/03 21:38:45 Create index idx_transfers2_source_from_stop_id on transfers as [source from_stop_id] 2024/07/03 21:38:45 Created index idx_transfers2_source_from_stop_id ok 2024/07/03 21:38:45 Create index idx_transfers2_source_to_stop_id on transfers as [source to_stop_id] 2024/07/03 21:38:45 Created index idx_transfers2_source_to_stop_id ok 2024/07/03 21:38:45 Create index idx__cvconnd3_source_service_id_from_stop_time on _cvconnd as [source service_id from_stop_time] 2024/07/03 21:38:45 Created index idx__cvconnd3_source_service_id_from_stop_time ok 2024/07/03 21:38:45 Create index idx__cvcaltoservice2_service_date_source on _cvcaltoservice as [service_date source] 2024/07/03 21:38:45 Created index idx__cvcaltoservice2_service_date_source ok 2024/07/03 21:38:45 Loading schema indexes ok 2024/07/03 21:38:45 Loading views ok 2024/07/03 21:38:45 Loaded view _vsources (bytes=2888) 2024/07/03 21:38:45 Loaded view _vstopparent (bytes=2589) 2024/07/03 21:38:45 Loaded view _vconnd (bytes=1214) 2024/07/03 21:38:45 Loaded view _vconndverbose (bytes=1065) 2024/07/03 21:38:45 Loaded view _vcaltoservice (bytes=4202) 2024/07/03 21:38:45 Loaded view _vtransferstbl (bytes=920) 2024/07/03 21:38:45 Loaded view _vtransfersgen (bytes=1538) 2024/07/03 21:38:45 Loaded view _vtransfersimplicit (bytes=365) 2024/07/03 21:38:45 Loading views ok 2024/07/03 21:38:45 Importing table from //tmp/mobroute_test_mobdb_3319682376.csv (0.00MB) to table: _mdb 2024/07/03 21:38:45 Last checksum vs current: / C_0M_313da63f2c0a21c3b56a8130060f7fb0cb23c13f68706aac32995a4591a37793; import will occur 2024/07/03 21:38:45 Imported 1 rows into _mdb ok 2024/07/03 21:38:45 Imported table from //tmp/mobroute_test_mobdb_3319682376.csv to table: _mdb ok 2024/07/03 21:38:45 Applied filter (null) matched 1 Mobility DB GTFS sources: [42] 2024/07/03 21:38:45 Running Load against 1 sources 2024/07/03 21:38:45 Loading mdbid 42 (1 of 1) 2024/07/03 21:38:45 Loading /tmp/2866805651.zip to DB with source name: 42 2024/07/03 21:38:45 Loaded GTFS Archive /tmp/2866805651.zip to temporary directory: /tmp/mobroute_tempdir1816251759 2024/07/03 21:38:45 Loading table: agency 2024/07/03 21:38:45 Importing table from /tmp/mobroute_tempdir1816251759/agency.txt (0.00MB) to table: agency 2024/07/03 21:38:45 Last checksum vs current: / C_0M_c15705f0e743a50086d3c871e24b6165b3b4d723a3f96445f676c4216a2fcd14; import will occur 2024/07/03 21:38:45 Imported 1 rows into agency ok 2024/07/03 21:38:45 Imported table from /tmp/mobroute_tempdir1816251759/agency.txt to table: agency ok 2024/07/03 21:38:45 Loading table: agency complete 2024/07/03 21:38:45 Loading table: calendar 2024/07/03 21:38:45 Importing table from /tmp/mobroute_tempdir1816251759/calendar.txt (0.00MB) to table: calendar 2024/07/03 21:38:45 Last checksum vs current: / C_0M_124e46e20a21debc5240cba81ffd1f420ad3546f91373ae55886e911b19b2608; import will occur 2024/07/03 21:38:45 Imported 2 rows into calendar ok 2024/07/03 21:38:45 Imported table from /tmp/mobroute_tempdir1816251759/calendar.txt to table: calendar ok 2024/07/03 21:38:45 Loading table: calendar complete 2024/07/03 21:38:45 Loading table: calendar_dates 2024/07/03 21:38:45 Importing table from /tmp/mobroute_tempdir1816251759/calendar_dates.txt (0.00MB) to table: calendar_dates 2024/07/03 21:38:45 Skipped import for non-existant non-required file: /tmp/mobroute_tempdir1816251759/calendar_dates.txt 2024/07/03 21:38:45 Loading table: calendar_dates complete 2024/07/03 21:38:45 Loading table: stop_times 2024/07/03 21:38:45 Importing table from /tmp/mobroute_tempdir1816251759/stop_times.txt (0.00MB) to table: stop_times 2024/07/03 21:38:45 Last checksum vs current: / C_0M_c720fd568d7d6154f442f16b61c73437ba7452ed091d91c002b4f384d60b36c6; import will occur 2024/07/03 21:38:45 Imported 9 rows into stop_times ok 2024/07/03 21:38:45 Imported table from /tmp/mobroute_tempdir1816251759/stop_times.txt to table: stop_times ok 2024/07/03 21:38:45 Loading table: stop_times complete 2024/07/03 21:38:45 Loading table: stops 2024/07/03 21:38:45 Importing table from /tmp/mobroute_tempdir1816251759/stops.txt (0.00MB) to table: stops 2024/07/03 21:38:45 Last checksum vs current: / C_0M_1e4481e4464525fdf1ea0305fca00f2c9d379749fff7d64a0cd7ffa5175af899; import will occur 2024/07/03 21:38:45 Imported 4 rows into stops ok 2024/07/03 21:38:45 Imported table from /tmp/mobroute_tempdir1816251759/stops.txt to table: stops ok 2024/07/03 21:38:45 Loading table: stops complete 2024/07/03 21:38:45 Loading table: trips 2024/07/03 21:38:45 Importing table from /tmp/mobroute_tempdir1816251759/trips.txt (0.00MB) to table: trips 2024/07/03 21:38:45 Last checksum vs current: / C_0M_0220e37a7822e751eaa95f847f72fd94eb66c922e5a43f58f2bc059b96efdce7; import will occur 2024/07/03 21:38:45 Imported 4 rows into trips ok 2024/07/03 21:38:45 Imported table from /tmp/mobroute_tempdir1816251759/trips.txt to table: trips ok 2024/07/03 21:38:45 Loading table: trips complete 2024/07/03 21:38:45 Loading table: routes 2024/07/03 21:38:45 Importing table from /tmp/mobroute_tempdir1816251759/routes.txt (0.00MB) to table: routes 2024/07/03 21:38:45 Last checksum vs current: / C_0M_adc89b7b4e4f8b88e68bf10397af1fc696e623cfec1d5ebd84a57dfac7953136; import will occur 2024/07/03 21:38:45 Imported 2 rows into routes ok 2024/07/03 21:38:45 Imported table from /tmp/mobroute_tempdir1816251759/routes.txt to table: routes ok 2024/07/03 21:38:45 Loading table: routes complete 2024/07/03 21:38:45 Loading table: transfers 2024/07/03 21:38:45 Importing table from /tmp/mobroute_tempdir1816251759/transfers.txt (0.00MB) to table: transfers 2024/07/03 21:38:45 Skipped import for non-existant non-required file: /tmp/mobroute_tempdir1816251759/transfers.txt 2024/07/03 21:38:45 Loading table: transfers complete 2024/07/03 21:38:45 Loaded /tmp/2866805651.zip to DB with source name: 42 ok 2024/07/03 21:38:45 Loading mdbid 42 ok; used cache for URL download (true) 2024/07/03 21:38:45 Running Load against 1 sources ok 2024/07/03 21:38:45 Running Compute against 1 sources 2024/07/03 21:38:45 Computed table _cvconnd for source (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/07/03 21:38:45 Computed table _cvcaltoservice for source (42 ) out of date - updating ('' vs '42:stops:C_0M_1e4481e4464525fdf1ea0305fca00f2c9d379749fff7d64a0cd7ffa5175af899') 2024/07/03 21:38:45 Computed table _cvtransfersgen for source (42 0xc0003ccff8) out of date - updating ('' vs '42:stops:C_0M_1e4481e4464525fdf1ea0305fca00f2c9d379749fff7d64a0cd7ffa5175af899') 2024/07/03 21:38:45 Running Compute against 1 sources ok 2024/07/03 21:38:45 Opening DB in RO mode: file:/tmp/mobroute_test_sqlite_2473567424.db?mode=ro 2024/07/03 21:38:45 Loading with inputs as (select ? as yyyymmdddate, ? as seconds_from, ? as seconds_to), sourcetotzutcdelta as ( select source, ext_timezonetoutcdeltasecs(inputs.yyyymmdddate, min(agency_timezone)) as tzutcdeltasecs from agency join inputs on 1 = 1 group by source ), 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 _cvcaltoservice 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.source in (?) join _cvconnd con on cts.service_id = con.service_id and cts.source = con.source and from_stop_drutctime between seconds_from and seconds_to join sourcetotzutcdelta tz on con.source = tz.source order by from_stop_drutctime 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 ([20230818 72000 75600 42]) to memory 2024/07/03 21:38:45 Loaded with inputs as (select ? as yyyymmdddate, ? as seconds_from, ? as seconds_to), sourcetotzutcdelta as ( select source, ext_timezonetoutcdeltasecs(inputs.yyyymmdddate, min(agency_timezone)) as tzutcdeltasecs from agency join inputs on 1 = 1 group by source ), 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 _cvcaltoservice 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.source in (?) join _cvconnd con on cts.service_id = con.service_id and cts.source = con.source and from_stop_drutctime between seconds_from and seconds_to join sourcetotzutcdelta tz on con.source = tz.source order by from_stop_drutctime 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 ([20230818 72000 75600 42]) to memory ok (len=4) 2024/07/03 21:38:45 Generated mock: (gtfs zips: [/tmp/4158412668.zip /tmp/2035175235.zip]) (mobdb csv: /tmp/mobroute_test_mobdb_2839368715.csv) 2024/07/03 21:38:45 SQLite system version (3.45.1); comparing to required version: 3.28.0 2024/07/03 21:38:45 Loading schema tables 2024/07/03 21:38:45 Execute statement: create table if not exists _mobsql ('source' int not null,'source_pair' int,'tbl' text not null,'checksum' text not null,'n_rows' int not null,'timestamp' int not null,unique(source,source_pair,tbl)) 2024/07/03 21:38:45 Execute statement: create table if not exists _mdb ('source' int not null,'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 not null,'mdb_source_id' int not null,'name' text,'status' text,'provider' text not null,unique(mdb_source_id)) 2024/07/03 21:38:45 Execute statement: create table if not exists agency ('source' int not null,'agency_id' text,'agency_name' text not null,'agency_url' text not null,'agency_timezone' text not null,unique(source,agency_id)) 2024/07/03 21:38:45 Execute statement: create table if not exists calendar ('source' 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(source,service_id)) 2024/07/03 21:38:45 Execute statement: create table if not exists calendar_dates ('source' int not null,'service_id' text not null,'date' int not null,'exception_type' int not null check(exception_type in (1,2))) 2024/07/03 21:38:45 Execute statement: create table if not exists stop_times ('source' 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(source,trip_id,stop_sequence)) 2024/07/03 21:38:45 Execute statement: create table if not exists stops ('source' 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(source,stop_id)) 2024/07/03 21:38:45 Execute statement: create table if not exists trips ('source' 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(source,trip_id)) 2024/07/03 21:38:45 Execute statement: create table if not exists routes ('source' 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(source,route_id)) 2024/07/03 21:38:45 Execute statement: create table if not exists transfers ('source' int not null,'from_stop_id' text not null,'to_stop_id' text not null,'transfer_type' int,'min_transfer_time' int) 2024/07/03 21:38:45 Execute statement: create table if not exists _cvconnd ('source' 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(source,conn_id)) 2024/07/03 21:38:45 Execute statement: create table if not exists _cvcaltoservice ('source' int not null,'service_date' int not null,'service_id' text not null) 2024/07/03 21:38:45 Execute statement: create table if not exists _cvtransfersgen ('source' int not null,'source_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/07/03 21:38:45 Loading schema tables ok 2024/07/03 21:38:45 Loading schema indexes 2024/07/03 21:38:45 Create index idx_stop_times1_departure_time on stop_times as [departure_time] 2024/07/03 21:38:45 Created index idx_stop_times1_departure_time ok 2024/07/03 21:38:45 Create index idx_stop_times1_trip_id on stop_times as [trip_id] 2024/07/03 21:38:45 Created index idx_stop_times1_trip_id ok 2024/07/03 21:38:45 Create index idx_stops2_source_stop_id on stops as [source stop_id] 2024/07/03 21:38:45 Created index idx_stops2_source_stop_id ok 2024/07/03 21:38:45 Create index idx_stops2_stop_lat_stop_lon on stops as [stop_lat stop_lon] 2024/07/03 21:38:45 Created index idx_stops2_stop_lat_stop_lon ok 2024/07/03 21:38:45 Create index idx_transfers2_source_from_stop_id on transfers as [source from_stop_id] 2024/07/03 21:38:45 Created index idx_transfers2_source_from_stop_id ok 2024/07/03 21:38:45 Create index idx_transfers2_source_to_stop_id on transfers as [source to_stop_id] 2024/07/03 21:38:45 Created index idx_transfers2_source_to_stop_id ok 2024/07/03 21:38:45 Create index idx__cvconnd3_source_service_id_from_stop_time on _cvconnd as [source service_id from_stop_time] 2024/07/03 21:38:45 Created index idx__cvconnd3_source_service_id_from_stop_time ok 2024/07/03 21:38:45 Create index idx__cvcaltoservice2_service_date_source on _cvcaltoservice as [service_date source] 2024/07/03 21:38:45 Created index idx__cvcaltoservice2_service_date_source ok 2024/07/03 21:38:45 Loading schema indexes ok 2024/07/03 21:38:45 Loading views ok 2024/07/03 21:38:45 Loaded view _vsources (bytes=2888) 2024/07/03 21:38:45 Loaded view _vstopparent (bytes=2589) 2024/07/03 21:38:45 Loaded view _vconnd (bytes=1214) 2024/07/03 21:38:45 Loaded view _vconndverbose (bytes=1065) 2024/07/03 21:38:45 Loaded view _vcaltoservice (bytes=4202) 2024/07/03 21:38:45 Loaded view _vtransferstbl (bytes=920) 2024/07/03 21:38:45 Loaded view _vtransfersgen (bytes=1538) 2024/07/03 21:38:45 Loaded view _vtransfersimplicit (bytes=365) 2024/07/03 21:38:45 Loading views ok 2024/07/03 21:38:45 Importing table from //tmp/mobroute_test_mobdb_2839368715.csv (0.00MB) to table: _mdb 2024/07/03 21:38:45 Last checksum vs current: / C_0M_2774602ae8e1e715d5d00676fe18955a9aa68d002fc4eff9e2accc4ae08bfadf; import will occur 2024/07/03 21:38:45 Imported 2 rows into _mdb ok 2024/07/03 21:38:45 Imported table from //tmp/mobroute_test_mobdb_2839368715.csv to table: _mdb ok 2024/07/03 21:38:45 Applied filter (null) matched 2 Mobility DB GTFS sources: [42 43] 2024/07/03 21:38:45 Running Load against 2 sources 2024/07/03 21:38:45 Loading mdbid 42 (1 of 2) 2024/07/03 21:38:45 Loading /tmp/4158412668.zip to DB with source name: 42 2024/07/03 21:38:45 Loaded GTFS Archive /tmp/4158412668.zip to temporary directory: /tmp/mobroute_tempdir1452838594 2024/07/03 21:38:45 Loading table: agency 2024/07/03 21:38:45 Importing table from /tmp/mobroute_tempdir1452838594/agency.txt (0.00MB) to table: agency 2024/07/03 21:38:45 Last checksum vs current: / C_0M_c15705f0e743a50086d3c871e24b6165b3b4d723a3f96445f676c4216a2fcd14; import will occur 2024/07/03 21:38:45 Imported 1 rows into agency ok 2024/07/03 21:38:45 Imported table from /tmp/mobroute_tempdir1452838594/agency.txt to table: agency ok 2024/07/03 21:38:45 Loading table: agency complete 2024/07/03 21:38:45 Loading table: calendar 2024/07/03 21:38:45 Importing table from /tmp/mobroute_tempdir1452838594/calendar.txt (0.00MB) to table: calendar 2024/07/03 21:38:45 Last checksum vs current: / C_0M_124e46e20a21debc5240cba81ffd1f420ad3546f91373ae55886e911b19b2608; import will occur 2024/07/03 21:38:45 Imported 2 rows into calendar ok 2024/07/03 21:38:45 Imported table from /tmp/mobroute_tempdir1452838594/calendar.txt to table: calendar ok 2024/07/03 21:38:45 Loading table: calendar complete 2024/07/03 21:38:45 Loading table: calendar_dates 2024/07/03 21:38:45 Importing table from /tmp/mobroute_tempdir1452838594/calendar_dates.txt (0.00MB) to table: calendar_dates 2024/07/03 21:38:45 Skipped import for non-existant non-required file: /tmp/mobroute_tempdir1452838594/calendar_dates.txt 2024/07/03 21:38:45 Loading table: calendar_dates complete 2024/07/03 21:38:45 Loading table: stop_times 2024/07/03 21:38:45 Importing table from /tmp/mobroute_tempdir1452838594/stop_times.txt (0.00MB) to table: stop_times 2024/07/03 21:38:45 Last checksum vs current: / C_0M_c720fd568d7d6154f442f16b61c73437ba7452ed091d91c002b4f384d60b36c6; import will occur 2024/07/03 21:38:45 Imported 9 rows into stop_times ok 2024/07/03 21:38:45 Imported table from /tmp/mobroute_tempdir1452838594/stop_times.txt to table: stop_times ok 2024/07/03 21:38:45 Loading table: stop_times complete 2024/07/03 21:38:45 Loading table: stops 2024/07/03 21:38:45 Importing table from /tmp/mobroute_tempdir1452838594/stops.txt (0.00MB) to table: stops 2024/07/03 21:38:45 Last checksum vs current: / C_0M_1e4481e4464525fdf1ea0305fca00f2c9d379749fff7d64a0cd7ffa5175af899; import will occur 2024/07/03 21:38:45 Imported 4 rows into stops ok 2024/07/03 21:38:45 Imported table from /tmp/mobroute_tempdir1452838594/stops.txt to table: stops ok 2024/07/03 21:38:45 Loading table: stops complete 2024/07/03 21:38:45 Loading table: trips 2024/07/03 21:38:45 Importing table from /tmp/mobroute_tempdir1452838594/trips.txt (0.00MB) to table: trips 2024/07/03 21:38:45 Last checksum vs current: / C_0M_0220e37a7822e751eaa95f847f72fd94eb66c922e5a43f58f2bc059b96efdce7; import will occur 2024/07/03 21:38:45 Imported 4 rows into trips ok 2024/07/03 21:38:45 Imported table from /tmp/mobroute_tempdir1452838594/trips.txt to table: trips ok 2024/07/03 21:38:45 Loading table: trips complete 2024/07/03 21:38:45 Loading table: routes 2024/07/03 21:38:45 Importing table from /tmp/mobroute_tempdir1452838594/routes.txt (0.00MB) to table: routes 2024/07/03 21:38:45 Last checksum vs current: / C_0M_adc89b7b4e4f8b88e68bf10397af1fc696e623cfec1d5ebd84a57dfac7953136; import will occur 2024/07/03 21:38:45 Imported 2 rows into routes ok 2024/07/03 21:38:45 Imported table from /tmp/mobroute_tempdir1452838594/routes.txt to table: routes ok 2024/07/03 21:38:45 Loading table: routes complete 2024/07/03 21:38:45 Loading table: transfers 2024/07/03 21:38:45 Importing table from /tmp/mobroute_tempdir1452838594/transfers.txt (0.00MB) to table: transfers 2024/07/03 21:38:45 Skipped import for non-existant non-required file: /tmp/mobroute_tempdir1452838594/transfers.txt 2024/07/03 21:38:45 Loading table: transfers complete 2024/07/03 21:38:45 Loaded /tmp/4158412668.zip to DB with source name: 42 ok 2024/07/03 21:38:45 Loading mdbid 42 ok; used cache for URL download (true) 2024/07/03 21:38:45 Loading mdbid 43 (2 of 2) 2024/07/03 21:38:45 Loading /tmp/2035175235.zip to DB with source name: 43 2024/07/03 21:38:45 Loaded GTFS Archive /tmp/2035175235.zip to temporary directory: /tmp/mobroute_tempdir731553937 2024/07/03 21:38:45 Loading table: agency 2024/07/03 21:38:45 Importing table from /tmp/mobroute_tempdir731553937/agency.txt (0.00MB) to table: agency 2024/07/03 21:38:45 Last checksum vs current: / C_0M_ff0363444c30e50468d902237b474ab438a9e78058f5bc3e72580097a477a123; import will occur 2024/07/03 21:38:45 Imported 1 rows into agency ok 2024/07/03 21:38:45 Imported table from /tmp/mobroute_tempdir731553937/agency.txt to table: agency ok 2024/07/03 21:38:45 Loading table: agency complete 2024/07/03 21:38:45 Loading table: calendar 2024/07/03 21:38:45 Importing table from /tmp/mobroute_tempdir731553937/calendar.txt (0.00MB) to table: calendar 2024/07/03 21:38:45 Last checksum vs current: / C_0M_124e46e20a21debc5240cba81ffd1f420ad3546f91373ae55886e911b19b2608; import will occur 2024/07/03 21:38:45 Imported 2 rows into calendar ok 2024/07/03 21:38:45 Imported table from /tmp/mobroute_tempdir731553937/calendar.txt to table: calendar ok 2024/07/03 21:38:45 Loading table: calendar complete 2024/07/03 21:38:45 Loading table: calendar_dates 2024/07/03 21:38:45 Importing table from /tmp/mobroute_tempdir731553937/calendar_dates.txt (0.00MB) to table: calendar_dates 2024/07/03 21:38:45 Skipped import for non-existant non-required file: /tmp/mobroute_tempdir731553937/calendar_dates.txt 2024/07/03 21:38:45 Loading table: calendar_dates complete 2024/07/03 21:38:45 Loading table: stop_times 2024/07/03 21:38:45 Importing table from /tmp/mobroute_tempdir731553937/stop_times.txt (0.00MB) to table: stop_times 2024/07/03 21:38:45 Last checksum vs current: / C_0M_c720fd568d7d6154f442f16b61c73437ba7452ed091d91c002b4f384d60b36c6; import will occur 2024/07/03 21:38:45 Imported 9 rows into stop_times ok 2024/07/03 21:38:45 Imported table from /tmp/mobroute_tempdir731553937/stop_times.txt to table: stop_times ok 2024/07/03 21:38:45 Loading table: stop_times complete 2024/07/03 21:38:45 Loading table: stops 2024/07/03 21:38:45 Importing table from /tmp/mobroute_tempdir731553937/stops.txt (0.00MB) to table: stops 2024/07/03 21:38:45 Last checksum vs current: / C_0M_1e4481e4464525fdf1ea0305fca00f2c9d379749fff7d64a0cd7ffa5175af899; import will occur 2024/07/03 21:38:45 Imported 4 rows into stops ok 2024/07/03 21:38:45 Imported table from /tmp/mobroute_tempdir731553937/stops.txt to table: stops ok 2024/07/03 21:38:45 Loading table: stops complete 2024/07/03 21:38:45 Loading table: trips 2024/07/03 21:38:45 Importing table from /tmp/mobroute_tempdir731553937/trips.txt (0.00MB) to table: trips 2024/07/03 21:38:45 Last checksum vs current: / C_0M_0220e37a7822e751eaa95f847f72fd94eb66c922e5a43f58f2bc059b96efdce7; import will occur 2024/07/03 21:38:45 Imported 4 rows into trips ok 2024/07/03 21:38:45 Imported table from /tmp/mobroute_tempdir731553937/trips.txt to table: trips ok 2024/07/03 21:38:45 Loading table: trips complete 2024/07/03 21:38:45 Loading table: routes 2024/07/03 21:38:45 Importing table from /tmp/mobroute_tempdir731553937/routes.txt (0.00MB) to table: routes 2024/07/03 21:38:45 Last checksum vs current: / C_0M_adc89b7b4e4f8b88e68bf10397af1fc696e623cfec1d5ebd84a57dfac7953136; import will occur 2024/07/03 21:38:45 Imported 2 rows into routes ok 2024/07/03 21:38:45 Imported table from /tmp/mobroute_tempdir731553937/routes.txt to table: routes ok 2024/07/03 21:38:45 Loading table: routes complete 2024/07/03 21:38:45 Loading table: transfers 2024/07/03 21:38:45 Importing table from /tmp/mobroute_tempdir731553937/transfers.txt (0.00MB) to table: transfers 2024/07/03 21:38:45 Skipped import for non-existant non-required file: /tmp/mobroute_tempdir731553937/transfers.txt 2024/07/03 21:38:45 Loading table: transfers complete 2024/07/03 21:38:45 Loaded /tmp/2035175235.zip to DB with source name: 43 ok 2024/07/03 21:38:45 Loading mdbid 43 ok; used cache for URL download (true) 2024/07/03 21:38:45 Running Load against 2 sources ok 2024/07/03 21:38:45 Running Compute against 2 sources 2024/07/03 21:38:45 Computed table _cvconnd for source (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/07/03 21:38:45 Computed table _cvconnd for source (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/07/03 21:38:45 Computed table _cvcaltoservice for source (42 ) out of date - updating ('' vs '42:stops:C_0M_1e4481e4464525fdf1ea0305fca00f2c9d379749fff7d64a0cd7ffa5175af899') 2024/07/03 21:38:45 Computed table _cvcaltoservice for source (43 ) out of date - updating ('' vs '43:stops:C_0M_1e4481e4464525fdf1ea0305fca00f2c9d379749fff7d64a0cd7ffa5175af899') 2024/07/03 21:38:46 Computed table _cvtransfersgen for source (42 0xc0003cded8) out of date - updating ('' vs '42:stops:C_0M_1e4481e4464525fdf1ea0305fca00f2c9d379749fff7d64a0cd7ffa5175af899') 2024/07/03 21:38:46 Computed table _cvtransfersgen for source (42 0xc0003cdee8) out of date - updating ('' vs '42:stops:C_0M_1e4481e4464525fdf1ea0305fca00f2c9d379749fff7d64a0cd7ffa5175af899,43:stops:C_0M_1e4481e4464525fdf1ea0305fca00f2c9d379749fff7d64a0cd7ffa5175af899') 2024/07/03 21:38:46 Computed table _cvtransfersgen for source (43 0xc0003cdf08) out of date - updating ('' vs '43:stops:C_0M_1e4481e4464525fdf1ea0305fca00f2c9d379749fff7d64a0cd7ffa5175af899') 2024/07/03 21:38:46 Running Compute against 2 sources ok 2024/07/03 21:38:46 Opening DB in RO mode: file:/tmp/mobroute_test_sqlite_2811571410.db?mode=ro 2024/07/03 21:38:46 Loading with inputs as (select ? as yyyymmdddate, ? as seconds_from, ? as seconds_to), sourcetotzutcdelta as ( select source, ext_timezonetoutcdeltasecs(inputs.yyyymmdddate, min(agency_timezone)) as tzutcdeltasecs from agency join inputs on 1 = 1 group by source ), 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 _cvcaltoservice 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.source in (?,?) join _cvconnd con on cts.service_id = con.service_id and cts.source = con.source and from_stop_drutctime between seconds_from and seconds_to join sourcetotzutcdelta tz on con.source = tz.source order by from_stop_drutctime 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 ([20240304 18000 32400 42 43]) to memory 2024/07/03 21:38:46 Loaded with inputs as (select ? as yyyymmdddate, ? as seconds_from, ? as seconds_to), sourcetotzutcdelta as ( select source, ext_timezonetoutcdeltasecs(inputs.yyyymmdddate, min(agency_timezone)) as tzutcdeltasecs from agency join inputs on 1 = 1 group by source ), 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 _cvcaltoservice 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.source in (?,?) join _cvconnd con on cts.service_id = con.service_id and cts.source = con.source and from_stop_drutctime between seconds_from and seconds_to join sourcetotzutcdelta tz on con.source = tz.source order by from_stop_drutctime 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 ([20240304 18000 32400 42 43]) to memory ok (len=4) --- PASS: Test_LoadConnections (0.39s) === RUN Test_LoadConnectionsVerbose 2024/07/03 21:38:46 Generated mock: (gtfs zips: [/tmp/3303397240.zip]) (mobdb csv: /tmp/mobroute_test_mobdb_2714414006.csv) 2024/07/03 21:38:46 SQLite system version (3.45.1); comparing to required version: 3.28.0 2024/07/03 21:38:46 Loading schema tables 2024/07/03 21:38:46 Execute statement: create table if not exists _mobsql ('source' int not null,'source_pair' int,'tbl' text not null,'checksum' text not null,'n_rows' int not null,'timestamp' int not null,unique(source,source_pair,tbl)) 2024/07/03 21:38:46 Execute statement: create table if not exists _mdb ('source' int not null,'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 not null,'mdb_source_id' int not null,'name' text,'status' text,'provider' text not null,unique(mdb_source_id)) 2024/07/03 21:38:46 Execute statement: create table if not exists agency ('source' int not null,'agency_id' text,'agency_name' text not null,'agency_url' text not null,'agency_timezone' text not null,unique(source,agency_id)) 2024/07/03 21:38:46 Execute statement: create table if not exists calendar ('source' 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(source,service_id)) 2024/07/03 21:38:46 Execute statement: create table if not exists calendar_dates ('source' int not null,'service_id' text not null,'date' int not null,'exception_type' int not null check(exception_type in (1,2))) 2024/07/03 21:38:46 Execute statement: create table if not exists stop_times ('source' 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(source,trip_id,stop_sequence)) 2024/07/03 21:38:46 Execute statement: create table if not exists stops ('source' 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(source,stop_id)) 2024/07/03 21:38:46 Execute statement: create table if not exists trips ('source' 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(source,trip_id)) 2024/07/03 21:38:46 Execute statement: create table if not exists routes ('source' 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(source,route_id)) 2024/07/03 21:38:46 Execute statement: create table if not exists transfers ('source' int not null,'from_stop_id' text not null,'to_stop_id' text not null,'transfer_type' int,'min_transfer_time' int) 2024/07/03 21:38:46 Execute statement: create table if not exists _cvconnd ('source' 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(source,conn_id)) 2024/07/03 21:38:46 Execute statement: create table if not exists _cvcaltoservice ('source' int not null,'service_date' int not null,'service_id' text not null) 2024/07/03 21:38:46 Execute statement: create table if not exists _cvtransfersgen ('source' int not null,'source_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/07/03 21:38:46 Loading schema tables ok 2024/07/03 21:38:46 Loading schema indexes 2024/07/03 21:38:46 Create index idx_stop_times1_departure_time on stop_times as [departure_time] 2024/07/03 21:38:46 Created index idx_stop_times1_departure_time ok 2024/07/03 21:38:46 Create index idx_stop_times1_trip_id on stop_times as [trip_id] 2024/07/03 21:38:46 Created index idx_stop_times1_trip_id ok 2024/07/03 21:38:46 Create index idx_stops2_source_stop_id on stops as [source stop_id] 2024/07/03 21:38:46 Created index idx_stops2_source_stop_id ok 2024/07/03 21:38:46 Create index idx_stops2_stop_lat_stop_lon on stops as [stop_lat stop_lon] 2024/07/03 21:38:46 Created index idx_stops2_stop_lat_stop_lon ok 2024/07/03 21:38:46 Create index idx_transfers2_source_from_stop_id on transfers as [source from_stop_id] 2024/07/03 21:38:46 Created index idx_transfers2_source_from_stop_id ok 2024/07/03 21:38:46 Create index idx_transfers2_source_to_stop_id on transfers as [source to_stop_id] 2024/07/03 21:38:46 Created index idx_transfers2_source_to_stop_id ok 2024/07/03 21:38:46 Create index idx__cvconnd3_source_service_id_from_stop_time on _cvconnd as [source service_id from_stop_time] 2024/07/03 21:38:46 Created index idx__cvconnd3_source_service_id_from_stop_time ok 2024/07/03 21:38:46 Create index idx__cvcaltoservice2_service_date_source on _cvcaltoservice as [service_date source] 2024/07/03 21:38:46 Created index idx__cvcaltoservice2_service_date_source ok 2024/07/03 21:38:46 Loading schema indexes ok 2024/07/03 21:38:46 Loading views ok 2024/07/03 21:38:46 Loaded view _vsources (bytes=2888) 2024/07/03 21:38:46 Loaded view _vstopparent (bytes=2589) 2024/07/03 21:38:46 Loaded view _vconnd (bytes=1214) 2024/07/03 21:38:46 Loaded view _vconndverbose (bytes=1065) 2024/07/03 21:38:46 Loaded view _vcaltoservice (bytes=4202) 2024/07/03 21:38:46 Loaded view _vtransferstbl (bytes=920) 2024/07/03 21:38:46 Loaded view _vtransfersgen (bytes=1538) 2024/07/03 21:38:46 Loaded view _vtransfersimplicit (bytes=365) 2024/07/03 21:38:46 Loading views ok 2024/07/03 21:38:46 Importing table from //tmp/mobroute_test_mobdb_2714414006.csv (0.00MB) to table: _mdb 2024/07/03 21:38:46 Last checksum vs current: / C_0M_a13473ba1090d484ea32d3a3a9118218860243d686cd44fe3389922ee2d3923f; import will occur 2024/07/03 21:38:46 Imported 1 rows into _mdb ok 2024/07/03 21:38:46 Imported table from //tmp/mobroute_test_mobdb_2714414006.csv to table: _mdb ok 2024/07/03 21:38:46 Applied filter (null) matched 1 Mobility DB GTFS sources: [42] 2024/07/03 21:38:46 Running Load against 1 sources 2024/07/03 21:38:46 Loading mdbid 42 (1 of 1) 2024/07/03 21:38:46 Loading /tmp/3303397240.zip to DB with source name: 42 2024/07/03 21:38:46 Loaded GTFS Archive /tmp/3303397240.zip to temporary directory: /tmp/mobroute_tempdir2451948564 2024/07/03 21:38:46 Loading table: agency 2024/07/03 21:38:46 Importing table from /tmp/mobroute_tempdir2451948564/agency.txt (0.00MB) to table: agency 2024/07/03 21:38:46 Last checksum vs current: / C_0M_ba39c5c760c18856a8bb3e6b63e9688c4cf76a4800d54373e7084f0f7e01d7b3; import will occur 2024/07/03 21:38:46 Imported 1 rows into agency ok 2024/07/03 21:38:46 Imported table from /tmp/mobroute_tempdir2451948564/agency.txt to table: agency ok 2024/07/03 21:38:46 Loading table: agency complete 2024/07/03 21:38:46 Loading table: calendar 2024/07/03 21:38:46 Importing table from /tmp/mobroute_tempdir2451948564/calendar.txt (0.00MB) to table: calendar 2024/07/03 21:38:46 Last checksum vs current: / C_0M_124e46e20a21debc5240cba81ffd1f420ad3546f91373ae55886e911b19b2608; import will occur 2024/07/03 21:38:46 Imported 2 rows into calendar ok 2024/07/03 21:38:46 Imported table from /tmp/mobroute_tempdir2451948564/calendar.txt to table: calendar ok 2024/07/03 21:38:46 Loading table: calendar complete 2024/07/03 21:38:46 Loading table: calendar_dates 2024/07/03 21:38:46 Importing table from /tmp/mobroute_tempdir2451948564/calendar_dates.txt (0.00MB) to table: calendar_dates 2024/07/03 21:38:46 Skipped import for non-existant non-required file: /tmp/mobroute_tempdir2451948564/calendar_dates.txt 2024/07/03 21:38:46 Loading table: calendar_dates complete 2024/07/03 21:38:46 Loading table: stop_times 2024/07/03 21:38:46 Importing table from /tmp/mobroute_tempdir2451948564/stop_times.txt (0.00MB) to table: stop_times 2024/07/03 21:38:46 Last checksum vs current: / C_0M_d9bce8ae7ee7dfa8ffc2951ca370d0c3a5e3a3b34a234791d52a7ee735613704; import will occur 2024/07/03 21:38:46 Imported 4 rows into stop_times ok 2024/07/03 21:38:46 Imported table from /tmp/mobroute_tempdir2451948564/stop_times.txt to table: stop_times ok 2024/07/03 21:38:46 Loading table: stop_times complete 2024/07/03 21:38:46 Loading table: stops 2024/07/03 21:38:46 Importing table from /tmp/mobroute_tempdir2451948564/stops.txt (0.00MB) to table: stops 2024/07/03 21:38:46 Last checksum vs current: / C_0M_0a1e1a76e511685c15e5b6fbd35e233bbdcaba3f388e7381cc9e2bc2e0233b07; import will occur 2024/07/03 21:38:46 Imported 5 rows into stops ok 2024/07/03 21:38:46 Imported table from /tmp/mobroute_tempdir2451948564/stops.txt to table: stops ok 2024/07/03 21:38:46 Loading table: stops complete 2024/07/03 21:38:46 Loading table: trips 2024/07/03 21:38:46 Importing table from /tmp/mobroute_tempdir2451948564/trips.txt (0.00MB) to table: trips 2024/07/03 21:38:46 Last checksum vs current: / C_0M_192859d996a594c799ed78e3d50de8364a2d585195de939c4e1c218633e55290; import will occur 2024/07/03 21:38:46 Imported 2 rows into trips ok 2024/07/03 21:38:46 Imported table from /tmp/mobroute_tempdir2451948564/trips.txt to table: trips ok 2024/07/03 21:38:46 Loading table: trips complete 2024/07/03 21:38:46 Loading table: routes 2024/07/03 21:38:46 Importing table from /tmp/mobroute_tempdir2451948564/routes.txt (0.00MB) to table: routes 2024/07/03 21:38:46 Last checksum vs current: / C_0M_a6031af6418607a6e5f51c20eaa22f422664f8d5254c59438ab18ce7e1e97cf8; import will occur 2024/07/03 21:38:46 Imported 1 rows into routes ok 2024/07/03 21:38:46 Imported table from /tmp/mobroute_tempdir2451948564/routes.txt to table: routes ok 2024/07/03 21:38:46 Loading table: routes complete 2024/07/03 21:38:46 Loading table: transfers 2024/07/03 21:38:46 Importing table from /tmp/mobroute_tempdir2451948564/transfers.txt (0.00MB) to table: transfers 2024/07/03 21:38:46 Skipped import for non-existant non-required file: /tmp/mobroute_tempdir2451948564/transfers.txt 2024/07/03 21:38:46 Loading table: transfers complete 2024/07/03 21:38:46 Loaded /tmp/3303397240.zip to DB with source name: 42 ok 2024/07/03 21:38:46 Loading mdbid 42 ok; used cache for URL download (true) 2024/07/03 21:38:46 Running Load against 1 sources ok 2024/07/03 21:38:46 Running Compute against 1 sources 2024/07/03 21:38:46 Computed table _cvconnd for source (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/07/03 21:38:46 Computed table _cvcaltoservice for source (42 ) out of date - updating ('' vs '42:stops:C_0M_0a1e1a76e511685c15e5b6fbd35e233bbdcaba3f388e7381cc9e2bc2e0233b07') 2024/07/03 21:38:46 Computed table _cvtransfersgen for source (42 0xc00047f898) out of date - updating ('' vs '42:stops:C_0M_0a1e1a76e511685c15e5b6fbd35e233bbdcaba3f388e7381cc9e2bc2e0233b07') 2024/07/03 21:38:46 Running Compute against 1 sources ok 2024/07/03 21:38:46 Opening DB in RO mode: file:/tmp/mobroute_test_sqlite_3122631731.db?mode=ro 2024/07/03 21:38:46 Loading with inputs as (select ? as yyyymmdddate, ? as seconds_from, ? as seconds_to), sourcetotzutcdelta as ( select source, ext_timezonetoutcdeltasecs(inputs.yyyymmdddate, min(agency_timezone)) as tzutcdeltasecs from agency join inputs on 1 = 1 group by source ), 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 _cvcaltoservice 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.source in (?) join _vconndverbose con on cts.service_id = con.service_id and cts.source = con.source and from_stop_drutctime between seconds_from and seconds_to join sourcetotzutcdelta tz on con.source = tz.source order by from_stop_drutctime asc ) select * from timetable where conn_id in (?,?) ([20240304 -18000 68400 42 42_trip_foo_up_wk_2 42_trip_foo_up_wk_3]) to memory 2024/07/03 21:38:46 Loaded with inputs as (select ? as yyyymmdddate, ? as seconds_from, ? as seconds_to), sourcetotzutcdelta as ( select source, ext_timezonetoutcdeltasecs(inputs.yyyymmdddate, min(agency_timezone)) as tzutcdeltasecs from agency join inputs on 1 = 1 group by source ), 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 _cvcaltoservice 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.source in (?) join _vconndverbose con on cts.service_id = con.service_id and cts.source = con.source and from_stop_drutctime between seconds_from and seconds_to join sourcetotzutcdelta tz on con.source = tz.source order by from_stop_drutctime asc ) select * from timetable where conn_id in (?,?) ([20240304 -18000 68400 42 42_trip_foo_up_wk_2 42_trip_foo_up_wk_3]) to memory ok (len=2) 2024/07/03 21:38:46 Generated mock: (gtfs zips: [/tmp/1148513135.zip]) (mobdb csv: /tmp/mobroute_test_mobdb_2994187673.csv) 2024/07/03 21:38:46 SQLite system version (3.45.1); comparing to required version: 3.28.0 2024/07/03 21:38:46 Loading schema tables 2024/07/03 21:38:46 Execute statement: create table if not exists _mobsql ('source' int not null,'source_pair' int,'tbl' text not null,'checksum' text not null,'n_rows' int not null,'timestamp' int not null,unique(source,source_pair,tbl)) 2024/07/03 21:38:46 Execute statement: create table if not exists _mdb ('source' int not null,'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 not null,'mdb_source_id' int not null,'name' text,'status' text,'provider' text not null,unique(mdb_source_id)) 2024/07/03 21:38:46 Execute statement: create table if not exists agency ('source' int not null,'agency_id' text,'agency_name' text not null,'agency_url' text not null,'agency_timezone' text not null,unique(source,agency_id)) 2024/07/03 21:38:46 Execute statement: create table if not exists calendar ('source' 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(source,service_id)) 2024/07/03 21:38:46 Execute statement: create table if not exists calendar_dates ('source' int not null,'service_id' text not null,'date' int not null,'exception_type' int not null check(exception_type in (1,2))) 2024/07/03 21:38:46 Execute statement: create table if not exists stop_times ('source' 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(source,trip_id,stop_sequence)) 2024/07/03 21:38:46 Execute statement: create table if not exists stops ('source' 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(source,stop_id)) 2024/07/03 21:38:46 Execute statement: create table if not exists trips ('source' 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(source,trip_id)) 2024/07/03 21:38:46 Execute statement: create table if not exists routes ('source' 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(source,route_id)) 2024/07/03 21:38:46 Execute statement: create table if not exists transfers ('source' int not null,'from_stop_id' text not null,'to_stop_id' text not null,'transfer_type' int,'min_transfer_time' int) 2024/07/03 21:38:46 Execute statement: create table if not exists _cvconnd ('source' 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(source,conn_id)) 2024/07/03 21:38:46 Execute statement: create table if not exists _cvcaltoservice ('source' int not null,'service_date' int not null,'service_id' text not null) 2024/07/03 21:38:46 Execute statement: create table if not exists _cvtransfersgen ('source' int not null,'source_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/07/03 21:38:46 Loading schema tables ok 2024/07/03 21:38:46 Loading schema indexes 2024/07/03 21:38:46 Create index idx_stop_times1_departure_time on stop_times as [departure_time] 2024/07/03 21:38:46 Created index idx_stop_times1_departure_time ok 2024/07/03 21:38:46 Create index idx_stop_times1_trip_id on stop_times as [trip_id] 2024/07/03 21:38:46 Created index idx_stop_times1_trip_id ok 2024/07/03 21:38:46 Create index idx_stops2_source_stop_id on stops as [source stop_id] 2024/07/03 21:38:46 Created index idx_stops2_source_stop_id ok 2024/07/03 21:38:46 Create index idx_stops2_stop_lat_stop_lon on stops as [stop_lat stop_lon] 2024/07/03 21:38:46 Created index idx_stops2_stop_lat_stop_lon ok 2024/07/03 21:38:46 Create index idx_transfers2_source_from_stop_id on transfers as [source from_stop_id] 2024/07/03 21:38:46 Created index idx_transfers2_source_from_stop_id ok 2024/07/03 21:38:46 Create index idx_transfers2_source_to_stop_id on transfers as [source to_stop_id] 2024/07/03 21:38:46 Created index idx_transfers2_source_to_stop_id ok 2024/07/03 21:38:46 Create index idx__cvconnd3_source_service_id_from_stop_time on _cvconnd as [source service_id from_stop_time] 2024/07/03 21:38:46 Created index idx__cvconnd3_source_service_id_from_stop_time ok 2024/07/03 21:38:46 Create index idx__cvcaltoservice2_service_date_source on _cvcaltoservice as [service_date source] 2024/07/03 21:38:46 Created index idx__cvcaltoservice2_service_date_source ok 2024/07/03 21:38:46 Loading schema indexes ok 2024/07/03 21:38:46 Loading views ok 2024/07/03 21:38:46 Loaded view _vsources (bytes=2888) 2024/07/03 21:38:46 Loaded view _vstopparent (bytes=2589) 2024/07/03 21:38:46 Loaded view _vconnd (bytes=1214) 2024/07/03 21:38:46 Loaded view _vconndverbose (bytes=1065) 2024/07/03 21:38:46 Loaded view _vcaltoservice (bytes=4202) 2024/07/03 21:38:46 Loaded view _vtransferstbl (bytes=920) 2024/07/03 21:38:46 Loaded view _vtransfersgen (bytes=1538) 2024/07/03 21:38:46 Loaded view _vtransfersimplicit (bytes=365) 2024/07/03 21:38:46 Loading views ok 2024/07/03 21:38:46 Importing table from //tmp/mobroute_test_mobdb_2994187673.csv (0.00MB) to table: _mdb 2024/07/03 21:38:46 Last checksum vs current: / C_0M_724aab8491d5d40d783d66a0217047047867ad19f0dc94175d3ff08b8f509302; import will occur 2024/07/03 21:38:46 Imported 1 rows into _mdb ok 2024/07/03 21:38:46 Imported table from //tmp/mobroute_test_mobdb_2994187673.csv to table: _mdb ok 2024/07/03 21:38:46 Applied filter (null) matched 1 Mobility DB GTFS sources: [42] 2024/07/03 21:38:46 Running Load against 1 sources 2024/07/03 21:38:46 Loading mdbid 42 (1 of 1) 2024/07/03 21:38:46 Loading /tmp/1148513135.zip to DB with source name: 42 2024/07/03 21:38:46 Loaded GTFS Archive /tmp/1148513135.zip to temporary directory: /tmp/mobroute_tempdir2215509058 2024/07/03 21:38:46 Loading table: agency 2024/07/03 21:38:46 Importing table from /tmp/mobroute_tempdir2215509058/agency.txt (0.00MB) to table: agency 2024/07/03 21:38:46 Last checksum vs current: / C_0M_c15705f0e743a50086d3c871e24b6165b3b4d723a3f96445f676c4216a2fcd14; import will occur 2024/07/03 21:38:46 Imported 1 rows into agency ok 2024/07/03 21:38:46 Imported table from /tmp/mobroute_tempdir2215509058/agency.txt to table: agency ok 2024/07/03 21:38:46 Loading table: agency complete 2024/07/03 21:38:46 Loading table: calendar 2024/07/03 21:38:46 Importing table from /tmp/mobroute_tempdir2215509058/calendar.txt (0.00MB) to table: calendar 2024/07/03 21:38:46 Last checksum vs current: / C_0M_124e46e20a21debc5240cba81ffd1f420ad3546f91373ae55886e911b19b2608; import will occur 2024/07/03 21:38:46 Imported 2 rows into calendar ok 2024/07/03 21:38:46 Imported table from /tmp/mobroute_tempdir2215509058/calendar.txt to table: calendar ok 2024/07/03 21:38:46 Loading table: calendar complete 2024/07/03 21:38:46 Loading table: calendar_dates 2024/07/03 21:38:46 Importing table from /tmp/mobroute_tempdir2215509058/calendar_dates.txt (0.00MB) to table: calendar_dates 2024/07/03 21:38:46 Skipped import for non-existant non-required file: /tmp/mobroute_tempdir2215509058/calendar_dates.txt 2024/07/03 21:38:46 Loading table: calendar_dates complete 2024/07/03 21:38:46 Loading table: stop_times 2024/07/03 21:38:46 Importing table from /tmp/mobroute_tempdir2215509058/stop_times.txt (0.00MB) to table: stop_times 2024/07/03 21:38:46 Last checksum vs current: / C_0M_d9bce8ae7ee7dfa8ffc2951ca370d0c3a5e3a3b34a234791d52a7ee735613704; import will occur 2024/07/03 21:38:46 Imported 4 rows into stop_times ok 2024/07/03 21:38:46 Imported table from /tmp/mobroute_tempdir2215509058/stop_times.txt to table: stop_times ok 2024/07/03 21:38:46 Loading table: stop_times complete 2024/07/03 21:38:46 Loading table: stops 2024/07/03 21:38:46 Importing table from /tmp/mobroute_tempdir2215509058/stops.txt (0.00MB) to table: stops 2024/07/03 21:38:46 Last checksum vs current: / C_0M_0a1e1a76e511685c15e5b6fbd35e233bbdcaba3f388e7381cc9e2bc2e0233b07; import will occur 2024/07/03 21:38:46 Imported 5 rows into stops ok 2024/07/03 21:38:46 Imported table from /tmp/mobroute_tempdir2215509058/stops.txt to table: stops ok 2024/07/03 21:38:46 Loading table: stops complete 2024/07/03 21:38:46 Loading table: trips 2024/07/03 21:38:46 Importing table from /tmp/mobroute_tempdir2215509058/trips.txt (0.00MB) to table: trips 2024/07/03 21:38:46 Last checksum vs current: / C_0M_192859d996a594c799ed78e3d50de8364a2d585195de939c4e1c218633e55290; import will occur 2024/07/03 21:38:46 Imported 2 rows into trips ok 2024/07/03 21:38:46 Imported table from /tmp/mobroute_tempdir2215509058/trips.txt to table: trips ok 2024/07/03 21:38:46 Loading table: trips complete 2024/07/03 21:38:46 Loading table: routes 2024/07/03 21:38:46 Importing table from /tmp/mobroute_tempdir2215509058/routes.txt (0.00MB) to table: routes 2024/07/03 21:38:46 Last checksum vs current: / C_0M_a6031af6418607a6e5f51c20eaa22f422664f8d5254c59438ab18ce7e1e97cf8; import will occur 2024/07/03 21:38:46 Imported 1 rows into routes ok 2024/07/03 21:38:46 Imported table from /tmp/mobroute_tempdir2215509058/routes.txt to table: routes ok 2024/07/03 21:38:46 Loading table: routes complete 2024/07/03 21:38:46 Loading table: transfers 2024/07/03 21:38:46 Importing table from /tmp/mobroute_tempdir2215509058/transfers.txt (0.00MB) to table: transfers 2024/07/03 21:38:46 Skipped import for non-existant non-required file: /tmp/mobroute_tempdir2215509058/transfers.txt 2024/07/03 21:38:46 Loading table: transfers complete 2024/07/03 21:38:46 Loaded /tmp/1148513135.zip to DB with source name: 42 ok 2024/07/03 21:38:46 Loading mdbid 42 ok; used cache for URL download (true) 2024/07/03 21:38:46 Running Load against 1 sources ok 2024/07/03 21:38:46 Running Compute against 1 sources 2024/07/03 21:38:46 Computed table _cvconnd for source (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/07/03 21:38:46 Computed table _cvcaltoservice for source (42 ) out of date - updating ('' vs '42:stops:C_0M_0a1e1a76e511685c15e5b6fbd35e233bbdcaba3f388e7381cc9e2bc2e0233b07') 2024/07/03 21:38:46 Computed table _cvtransfersgen for source (42 0xc00047e798) out of date - updating ('' vs '42:stops:C_0M_0a1e1a76e511685c15e5b6fbd35e233bbdcaba3f388e7381cc9e2bc2e0233b07') 2024/07/03 21:38:46 Running Compute against 1 sources ok 2024/07/03 21:38:46 Opening DB in RO mode: file:/tmp/mobroute_test_sqlite_2511534673.db?mode=ro 2024/07/03 21:38:46 Loading with inputs as (select ? as yyyymmdddate, ? as seconds_from, ? as seconds_to), sourcetotzutcdelta as ( select source, ext_timezonetoutcdeltasecs(inputs.yyyymmdddate, min(agency_timezone)) as tzutcdeltasecs from agency join inputs on 1 = 1 group by source ), 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 _cvcaltoservice 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.source in (?) join _vconndverbose con on cts.service_id = con.service_id and cts.source = con.source and from_stop_drutctime between seconds_from and seconds_to join sourcetotzutcdelta tz on con.source = tz.source order by from_stop_drutctime asc ) select * from timetable where conn_id in (?,?) ([20240304 -18000 68400 42 42_trip_foo_up_wk_2 42_trip_foo_up_wk_3]) to memory 2024/07/03 21:38:46 Loaded with inputs as (select ? as yyyymmdddate, ? as seconds_from, ? as seconds_to), sourcetotzutcdelta as ( select source, ext_timezonetoutcdeltasecs(inputs.yyyymmdddate, min(agency_timezone)) as tzutcdeltasecs from agency join inputs on 1 = 1 group by source ), 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 _cvcaltoservice 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.source in (?) join _vconndverbose con on cts.service_id = con.service_id and cts.source = con.source and from_stop_drutctime between seconds_from and seconds_to join sourcetotzutcdelta tz on con.source = tz.source order by from_stop_drutctime asc ) select * from timetable where conn_id in (?,?) ([20240304 -18000 68400 42 42_trip_foo_up_wk_2 42_trip_foo_up_wk_3]) to memory ok (len=2) 2024/07/03 21:38:46 Generated mock: (gtfs zips: [/tmp/808459320.zip]) (mobdb csv: /tmp/mobroute_test_mobdb_139224988.csv) 2024/07/03 21:38:46 SQLite system version (3.45.1); comparing to required version: 3.28.0 2024/07/03 21:38:46 Loading schema tables 2024/07/03 21:38:46 Execute statement: create table if not exists _mobsql ('source' int not null,'source_pair' int,'tbl' text not null,'checksum' text not null,'n_rows' int not null,'timestamp' int not null,unique(source,source_pair,tbl)) 2024/07/03 21:38:46 Execute statement: create table if not exists _mdb ('source' int not null,'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 not null,'mdb_source_id' int not null,'name' text,'status' text,'provider' text not null,unique(mdb_source_id)) 2024/07/03 21:38:46 Execute statement: create table if not exists agency ('source' int not null,'agency_id' text,'agency_name' text not null,'agency_url' text not null,'agency_timezone' text not null,unique(source,agency_id)) 2024/07/03 21:38:46 Execute statement: create table if not exists calendar ('source' 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(source,service_id)) 2024/07/03 21:38:46 Execute statement: create table if not exists calendar_dates ('source' int not null,'service_id' text not null,'date' int not null,'exception_type' int not null check(exception_type in (1,2))) 2024/07/03 21:38:46 Execute statement: create table if not exists stop_times ('source' 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(source,trip_id,stop_sequence)) 2024/07/03 21:38:46 Execute statement: create table if not exists stops ('source' 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(source,stop_id)) 2024/07/03 21:38:46 Execute statement: create table if not exists trips ('source' 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(source,trip_id)) 2024/07/03 21:38:46 Execute statement: create table if not exists routes ('source' 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(source,route_id)) 2024/07/03 21:38:46 Execute statement: create table if not exists transfers ('source' int not null,'from_stop_id' text not null,'to_stop_id' text not null,'transfer_type' int,'min_transfer_time' int) 2024/07/03 21:38:46 Execute statement: create table if not exists _cvconnd ('source' 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(source,conn_id)) 2024/07/03 21:38:46 Execute statement: create table if not exists _cvcaltoservice ('source' int not null,'service_date' int not null,'service_id' text not null) 2024/07/03 21:38:46 Execute statement: create table if not exists _cvtransfersgen ('source' int not null,'source_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/07/03 21:38:46 Loading schema tables ok 2024/07/03 21:38:46 Loading schema indexes 2024/07/03 21:38:46 Create index idx_stop_times1_departure_time on stop_times as [departure_time] 2024/07/03 21:38:46 Created index idx_stop_times1_departure_time ok 2024/07/03 21:38:46 Create index idx_stop_times1_trip_id on stop_times as [trip_id] 2024/07/03 21:38:46 Created index idx_stop_times1_trip_id ok 2024/07/03 21:38:46 Create index idx_stops2_source_stop_id on stops as [source stop_id] 2024/07/03 21:38:46 Created index idx_stops2_source_stop_id ok 2024/07/03 21:38:46 Create index idx_stops2_stop_lat_stop_lon on stops as [stop_lat stop_lon] 2024/07/03 21:38:46 Created index idx_stops2_stop_lat_stop_lon ok 2024/07/03 21:38:46 Create index idx_transfers2_source_from_stop_id on transfers as [source from_stop_id] 2024/07/03 21:38:46 Created index idx_transfers2_source_from_stop_id ok 2024/07/03 21:38:46 Create index idx_transfers2_source_to_stop_id on transfers as [source to_stop_id] 2024/07/03 21:38:46 Created index idx_transfers2_source_to_stop_id ok 2024/07/03 21:38:46 Create index idx__cvconnd3_source_service_id_from_stop_time on _cvconnd as [source service_id from_stop_time] 2024/07/03 21:38:46 Created index idx__cvconnd3_source_service_id_from_stop_time ok 2024/07/03 21:38:46 Create index idx__cvcaltoservice2_service_date_source on _cvcaltoservice as [service_date source] 2024/07/03 21:38:46 Created index idx__cvcaltoservice2_service_date_source ok 2024/07/03 21:38:46 Loading schema indexes ok 2024/07/03 21:38:46 Loading views ok 2024/07/03 21:38:46 Loaded view _vsources (bytes=2888) 2024/07/03 21:38:46 Loaded view _vstopparent (bytes=2589) 2024/07/03 21:38:46 Loaded view _vconnd (bytes=1214) 2024/07/03 21:38:46 Loaded view _vconndverbose (bytes=1065) 2024/07/03 21:38:46 Loaded view _vcaltoservice (bytes=4202) 2024/07/03 21:38:46 Loaded view _vtransferstbl (bytes=920) 2024/07/03 21:38:46 Loaded view _vtransfersgen (bytes=1538) 2024/07/03 21:38:46 Loaded view _vtransfersimplicit (bytes=365) 2024/07/03 21:38:46 Loading views ok 2024/07/03 21:38:46 Importing table from //tmp/mobroute_test_mobdb_139224988.csv (0.00MB) to table: _mdb 2024/07/03 21:38:46 Last checksum vs current: / C_0M_d05aa8d4122fb4498a4a50a75a8f13c6588c9a0edf7988c525bbbebbe8158366; import will occur 2024/07/03 21:38:46 Imported 1 rows into _mdb ok 2024/07/03 21:38:46 Imported table from //tmp/mobroute_test_mobdb_139224988.csv to table: _mdb ok 2024/07/03 21:38:46 Applied filter (null) matched 1 Mobility DB GTFS sources: [42] 2024/07/03 21:38:46 Running Load against 1 sources 2024/07/03 21:38:46 Loading mdbid 42 (1 of 1) 2024/07/03 21:38:46 Loading /tmp/808459320.zip to DB with source name: 42 2024/07/03 21:38:46 Loaded GTFS Archive /tmp/808459320.zip to temporary directory: /tmp/mobroute_tempdir1922127328 2024/07/03 21:38:46 Loading table: agency 2024/07/03 21:38:46 Importing table from /tmp/mobroute_tempdir1922127328/agency.txt (0.00MB) to table: agency 2024/07/03 21:38:46 Last checksum vs current: / C_0M_1b19c5b299e31d8d1cfefb7e48146986c62c848400fef102c60695b4f0775d32; import will occur 2024/07/03 21:38:46 Imported 3 rows into agency ok 2024/07/03 21:38:46 Imported table from /tmp/mobroute_tempdir1922127328/agency.txt to table: agency ok 2024/07/03 21:38:46 Loading table: agency complete 2024/07/03 21:38:46 Loading table: calendar 2024/07/03 21:38:46 Importing table from /tmp/mobroute_tempdir1922127328/calendar.txt (0.00MB) to table: calendar 2024/07/03 21:38:46 Last checksum vs current: / C_0M_124e46e20a21debc5240cba81ffd1f420ad3546f91373ae55886e911b19b2608; import will occur 2024/07/03 21:38:46 Imported 2 rows into calendar ok 2024/07/03 21:38:46 Imported table from /tmp/mobroute_tempdir1922127328/calendar.txt to table: calendar ok 2024/07/03 21:38:46 Loading table: calendar complete 2024/07/03 21:38:46 Loading table: calendar_dates 2024/07/03 21:38:46 Importing table from /tmp/mobroute_tempdir1922127328/calendar_dates.txt (0.00MB) to table: calendar_dates 2024/07/03 21:38:46 Skipped import for non-existant non-required file: /tmp/mobroute_tempdir1922127328/calendar_dates.txt 2024/07/03 21:38:46 Loading table: calendar_dates complete 2024/07/03 21:38:46 Loading table: stop_times 2024/07/03 21:38:46 Importing table from /tmp/mobroute_tempdir1922127328/stop_times.txt (0.00MB) to table: stop_times 2024/07/03 21:38:46 Last checksum vs current: / C_0M_f388cfe714ea19d79a0718f2ec6d011ba3747eafdd8040ca160d14b293599e76; import will occur 2024/07/03 21:38:46 Imported 8 rows into stop_times ok 2024/07/03 21:38:46 Imported table from /tmp/mobroute_tempdir1922127328/stop_times.txt to table: stop_times ok 2024/07/03 21:38:46 Loading table: stop_times complete 2024/07/03 21:38:46 Loading table: stops 2024/07/03 21:38:46 Importing table from /tmp/mobroute_tempdir1922127328/stops.txt (0.00MB) to table: stops 2024/07/03 21:38:46 Last checksum vs current: / C_0M_0a1e1a76e511685c15e5b6fbd35e233bbdcaba3f388e7381cc9e2bc2e0233b07; import will occur 2024/07/03 21:38:46 Imported 5 rows into stops ok 2024/07/03 21:38:46 Imported table from /tmp/mobroute_tempdir1922127328/stops.txt to table: stops ok 2024/07/03 21:38:46 Loading table: stops complete 2024/07/03 21:38:46 Loading table: trips 2024/07/03 21:38:46 Importing table from /tmp/mobroute_tempdir1922127328/trips.txt (0.00MB) to table: trips 2024/07/03 21:38:46 Last checksum vs current: / C_0M_40b68a8b536ba5a4e14df14dd606ca3b047f7521077c9aa948e99b2d8615e2ff; import will occur 2024/07/03 21:38:46 Imported 2 rows into trips ok 2024/07/03 21:38:46 Imported table from /tmp/mobroute_tempdir1922127328/trips.txt to table: trips ok 2024/07/03 21:38:46 Loading table: trips complete 2024/07/03 21:38:46 Loading table: routes 2024/07/03 21:38:46 Importing table from /tmp/mobroute_tempdir1922127328/routes.txt (0.00MB) to table: routes 2024/07/03 21:38:46 Last checksum vs current: / C_0M_d6791ceda8f344e670681056012480211612142eddb7ea00221f228f63f5c4a2; import will occur 2024/07/03 21:38:46 Imported 2 rows into routes ok 2024/07/03 21:38:46 Imported table from /tmp/mobroute_tempdir1922127328/routes.txt to table: routes ok 2024/07/03 21:38:46 Loading table: routes complete 2024/07/03 21:38:46 Loading table: transfers 2024/07/03 21:38:46 Importing table from /tmp/mobroute_tempdir1922127328/transfers.txt (0.00MB) to table: transfers 2024/07/03 21:38:46 Skipped import for non-existant non-required file: /tmp/mobroute_tempdir1922127328/transfers.txt 2024/07/03 21:38:46 Loading table: transfers complete 2024/07/03 21:38:46 Loaded /tmp/808459320.zip to DB with source name: 42 ok 2024/07/03 21:38:46 Loading mdbid 42 ok; used cache for URL download (true) 2024/07/03 21:38:46 Running Load against 1 sources ok 2024/07/03 21:38:46 Running Compute against 1 sources 2024/07/03 21:38:46 Computed table _cvconnd for source (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/07/03 21:38:46 Computed table _cvcaltoservice for source (42 ) out of date - updating ('' vs '42:stops:C_0M_0a1e1a76e511685c15e5b6fbd35e233bbdcaba3f388e7381cc9e2bc2e0233b07') 2024/07/03 21:38:46 Computed table _cvtransfersgen for source (42 0xc000510078) out of date - updating ('' vs '42:stops:C_0M_0a1e1a76e511685c15e5b6fbd35e233bbdcaba3f388e7381cc9e2bc2e0233b07') 2024/07/03 21:38:46 Running Compute against 1 sources ok 2024/07/03 21:38:46 Opening DB in RO mode: file:/tmp/mobroute_test_sqlite_993670846.db?mode=ro 2024/07/03 21:38:46 Loading with inputs as (select ? as yyyymmdddate, ? as seconds_from, ? as seconds_to), sourcetotzutcdelta as ( select source, ext_timezonetoutcdeltasecs(inputs.yyyymmdddate, min(agency_timezone)) as tzutcdeltasecs from agency join inputs on 1 = 1 group by source ), 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 _cvcaltoservice 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.source in (?) join _vconndverbose con on cts.service_id = con.service_id and cts.source = con.source and from_stop_drutctime between seconds_from and seconds_to join sourcetotzutcdelta tz on con.source = tz.source order by from_stop_drutctime asc ) select * from timetable where conn_id in (?,?) ([20240304 -18000 68400 42 42_trip_foo_up_wk_2 42_trip_bar_up_wk_3]) to memory 2024/07/03 21:38:46 Loaded with inputs as (select ? as yyyymmdddate, ? as seconds_from, ? as seconds_to), sourcetotzutcdelta as ( select source, ext_timezonetoutcdeltasecs(inputs.yyyymmdddate, min(agency_timezone)) as tzutcdeltasecs from agency join inputs on 1 = 1 group by source ), 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 _cvcaltoservice 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.source in (?) join _vconndverbose con on cts.service_id = con.service_id and cts.source = con.source and from_stop_drutctime between seconds_from and seconds_to join sourcetotzutcdelta tz on con.source = tz.source order by from_stop_drutctime asc ) select * from timetable where conn_id in (?,?) ([20240304 -18000 68400 42 42_trip_foo_up_wk_2 42_trip_bar_up_wk_3]) to memory ok (len=2) --- PASS: Test_LoadConnectionsVerbose (0.15s) === RUN Test_LoadStopWalks 2024/07/03 21:38:46 Generated mock: (gtfs zips: [/tmp/2997861035.zip]) (mobdb csv: /tmp/mobroute_test_mobdb_3044869259.csv) 2024/07/03 21:38:46 SQLite system version (3.45.1); comparing to required version: 3.28.0 2024/07/03 21:38:46 Loading schema tables 2024/07/03 21:38:46 Execute statement: create table if not exists _mobsql ('source' int not null,'source_pair' int,'tbl' text not null,'checksum' text not null,'n_rows' int not null,'timestamp' int not null,unique(source,source_pair,tbl)) 2024/07/03 21:38:46 Execute statement: create table if not exists _mdb ('source' int not null,'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 not null,'mdb_source_id' int not null,'name' text,'status' text,'provider' text not null,unique(mdb_source_id)) 2024/07/03 21:38:46 Execute statement: create table if not exists agency ('source' int not null,'agency_id' text,'agency_name' text not null,'agency_url' text not null,'agency_timezone' text not null,unique(source,agency_id)) 2024/07/03 21:38:46 Execute statement: create table if not exists calendar ('source' 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(source,service_id)) 2024/07/03 21:38:46 Execute statement: create table if not exists calendar_dates ('source' int not null,'service_id' text not null,'date' int not null,'exception_type' int not null check(exception_type in (1,2))) 2024/07/03 21:38:46 Execute statement: create table if not exists stop_times ('source' 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(source,trip_id,stop_sequence)) 2024/07/03 21:38:46 Execute statement: create table if not exists stops ('source' 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(source,stop_id)) 2024/07/03 21:38:46 Execute statement: create table if not exists trips ('source' 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(source,trip_id)) 2024/07/03 21:38:46 Execute statement: create table if not exists routes ('source' 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(source,route_id)) 2024/07/03 21:38:46 Execute statement: create table if not exists transfers ('source' int not null,'from_stop_id' text not null,'to_stop_id' text not null,'transfer_type' int,'min_transfer_time' int) 2024/07/03 21:38:46 Execute statement: create table if not exists _cvconnd ('source' 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(source,conn_id)) 2024/07/03 21:38:46 Execute statement: create table if not exists _cvcaltoservice ('source' int not null,'service_date' int not null,'service_id' text not null) 2024/07/03 21:38:46 Execute statement: create table if not exists _cvtransfersgen ('source' int not null,'source_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/07/03 21:38:46 Loading schema tables ok 2024/07/03 21:38:46 Loading schema indexes 2024/07/03 21:38:46 Create index idx_stop_times1_departure_time on stop_times as [departure_time] 2024/07/03 21:38:46 Created index idx_stop_times1_departure_time ok 2024/07/03 21:38:46 Create index idx_stop_times1_trip_id on stop_times as [trip_id] 2024/07/03 21:38:46 Created index idx_stop_times1_trip_id ok 2024/07/03 21:38:46 Create index idx_stops2_source_stop_id on stops as [source stop_id] 2024/07/03 21:38:46 Created index idx_stops2_source_stop_id ok 2024/07/03 21:38:46 Create index idx_stops2_stop_lat_stop_lon on stops as [stop_lat stop_lon] 2024/07/03 21:38:46 Created index idx_stops2_stop_lat_stop_lon ok 2024/07/03 21:38:46 Create index idx_transfers2_source_from_stop_id on transfers as [source from_stop_id] 2024/07/03 21:38:46 Created index idx_transfers2_source_from_stop_id ok 2024/07/03 21:38:46 Create index idx_transfers2_source_to_stop_id on transfers as [source to_stop_id] 2024/07/03 21:38:46 Created index idx_transfers2_source_to_stop_id ok 2024/07/03 21:38:46 Create index idx__cvconnd3_source_service_id_from_stop_time on _cvconnd as [source service_id from_stop_time] 2024/07/03 21:38:46 Created index idx__cvconnd3_source_service_id_from_stop_time ok 2024/07/03 21:38:46 Create index idx__cvcaltoservice2_service_date_source on _cvcaltoservice as [service_date source] 2024/07/03 21:38:46 Created index idx__cvcaltoservice2_service_date_source ok 2024/07/03 21:38:46 Loading schema indexes ok 2024/07/03 21:38:46 Loading views ok 2024/07/03 21:38:46 Loaded view _vsources (bytes=2888) 2024/07/03 21:38:46 Loaded view _vstopparent (bytes=2589) 2024/07/03 21:38:46 Loaded view _vconnd (bytes=1214) 2024/07/03 21:38:46 Loaded view _vconndverbose (bytes=1065) 2024/07/03 21:38:46 Loaded view _vcaltoservice (bytes=4202) 2024/07/03 21:38:46 Loaded view _vtransferstbl (bytes=920) 2024/07/03 21:38:46 Loaded view _vtransfersgen (bytes=1538) 2024/07/03 21:38:46 Loaded view _vtransfersimplicit (bytes=365) 2024/07/03 21:38:46 Loading views ok 2024/07/03 21:38:46 Importing table from //tmp/mobroute_test_mobdb_3044869259.csv (0.00MB) to table: _mdb 2024/07/03 21:38:46 Last checksum vs current: / C_0M_207623bd2eb7eac7653c480183a1088679004a801d427c1a6e85dea90b6e8235; import will occur 2024/07/03 21:38:46 Imported 1 rows into _mdb ok 2024/07/03 21:38:46 Imported table from //tmp/mobroute_test_mobdb_3044869259.csv to table: _mdb ok 2024/07/03 21:38:46 Applied filter (null) matched 1 Mobility DB GTFS sources: [42] 2024/07/03 21:38:46 Running Load against 1 sources 2024/07/03 21:38:46 Loading mdbid 42 (1 of 1) 2024/07/03 21:38:46 Loading /tmp/2997861035.zip to DB with source name: 42 2024/07/03 21:38:46 Loaded GTFS Archive /tmp/2997861035.zip to temporary directory: /tmp/mobroute_tempdir1506976207 2024/07/03 21:38:46 Loading table: agency 2024/07/03 21:38:46 Importing table from /tmp/mobroute_tempdir1506976207/agency.txt (0.00MB) to table: agency 2024/07/03 21:38:46 Last checksum vs current: / C_0M_ec69cc35698113d39b116d06df83c168ff34eec1dd5daa90136c2ccdddd57966; import will occur 2024/07/03 21:38:46 Imported 1 rows into agency ok 2024/07/03 21:38:46 Imported table from /tmp/mobroute_tempdir1506976207/agency.txt to table: agency ok 2024/07/03 21:38:46 Loading table: agency complete 2024/07/03 21:38:46 Loading table: calendar 2024/07/03 21:38:46 Importing table from /tmp/mobroute_tempdir1506976207/calendar.txt (0.00MB) to table: calendar 2024/07/03 21:38:46 Skipped import for non-existant non-required file: /tmp/mobroute_tempdir1506976207/calendar.txt 2024/07/03 21:38:46 Loading table: calendar complete 2024/07/03 21:38:46 Loading table: calendar_dates 2024/07/03 21:38:46 Importing table from /tmp/mobroute_tempdir1506976207/calendar_dates.txt (0.00MB) to table: calendar_dates 2024/07/03 21:38:46 Last checksum vs current: / C_0M_e37e371e5f8c7c355413d55fe59c9054de3dbf0d759f0bcd6ef7968b46cde54e; import will occur 2024/07/03 21:38:46 Imported 1 rows into calendar_dates ok 2024/07/03 21:38:46 Imported table from /tmp/mobroute_tempdir1506976207/calendar_dates.txt to table: calendar_dates ok 2024/07/03 21:38:46 Loading table: calendar_dates complete 2024/07/03 21:38:46 Loading table: stop_times 2024/07/03 21:38:46 Importing table from /tmp/mobroute_tempdir1506976207/stop_times.txt (0.00MB) to table: stop_times 2024/07/03 21:38:46 Last checksum vs current: / C_0M_34d5ab6ee7cbb3e04fd82bd1dca86e4daecfa570a11b128209c8e5c102662d0a; import will occur 2024/07/03 21:38:46 Imported 1 rows into stop_times ok 2024/07/03 21:38:46 Imported table from /tmp/mobroute_tempdir1506976207/stop_times.txt to table: stop_times ok 2024/07/03 21:38:46 Loading table: stop_times complete 2024/07/03 21:38:46 Loading table: stops 2024/07/03 21:38:46 Importing table from /tmp/mobroute_tempdir1506976207/stops.txt (0.00MB) to table: stops 2024/07/03 21:38:46 Last checksum vs current: / C_0M_658a3f90ef5c5b6b531059c770014493d5c29ff969ad1e41a9df10615e479366; import will occur 2024/07/03 21:38:46 Imported 10 rows into stops ok 2024/07/03 21:38:46 Imported table from /tmp/mobroute_tempdir1506976207/stops.txt to table: stops ok 2024/07/03 21:38:46 Loading table: stops complete 2024/07/03 21:38:46 Loading table: trips 2024/07/03 21:38:46 Importing table from /tmp/mobroute_tempdir1506976207/trips.txt (0.00MB) to table: trips 2024/07/03 21:38:46 Last checksum vs current: / C_0M_0391ceb043162a440ba78564cae799b0c9b0004ac42d27290246145bfa780435; import will occur 2024/07/03 21:38:46 Imported 1 rows into trips ok 2024/07/03 21:38:46 Imported table from /tmp/mobroute_tempdir1506976207/trips.txt to table: trips ok 2024/07/03 21:38:46 Loading table: trips complete 2024/07/03 21:38:46 Loading table: routes 2024/07/03 21:38:46 Importing table from /tmp/mobroute_tempdir1506976207/routes.txt (0.00MB) to table: routes 2024/07/03 21:38:46 Last checksum vs current: / C_0M_a6031af6418607a6e5f51c20eaa22f422664f8d5254c59438ab18ce7e1e97cf8; import will occur 2024/07/03 21:38:46 Imported 1 rows into routes ok 2024/07/03 21:38:46 Imported table from /tmp/mobroute_tempdir1506976207/routes.txt to table: routes ok 2024/07/03 21:38:46 Loading table: routes complete 2024/07/03 21:38:46 Loading table: transfers 2024/07/03 21:38:46 Importing table from /tmp/mobroute_tempdir1506976207/transfers.txt (0.00MB) to table: transfers 2024/07/03 21:38:46 Skipped import for non-existant non-required file: /tmp/mobroute_tempdir1506976207/transfers.txt 2024/07/03 21:38:46 Loading table: transfers complete 2024/07/03 21:38:46 Loaded /tmp/2997861035.zip to DB with source name: 42 ok 2024/07/03 21:38:46 Loading mdbid 42 ok; used cache for URL download (true) 2024/07/03 21:38:46 Running Load against 1 sources ok 2024/07/03 21:38:46 Running Compute against 1 sources 2024/07/03 21:38:46 Computed table _cvconnd for source (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/07/03 21:38:46 Computed table _cvcaltoservice for source (42 ) out of date - updating ('' vs '42:stops:C_0M_658a3f90ef5c5b6b531059c770014493d5c29ff969ad1e41a9df10615e479366') 2024/07/03 21:38:46 Computed table _cvtransfersgen for source (42 0xc000431408) out of date - updating ('' vs '42:stops:C_0M_658a3f90ef5c5b6b531059c770014493d5c29ff969ad1e41a9df10615e479366') 2024/07/03 21:38:46 Running Compute against 1 sources ok 2024/07/03 21:38:46 Opening DB in RO mode: file:/tmp/mobroute_test_sqlite_2498486318.db?mode=ro 2024/07/03 21:38:46 Loading with input_coord as (select ? as lat, ? as lon) select distinct vsp.source || '_' || vsp.parent_station as stop_sidu, s.stop_name, iif( ext_haversinedistkm(s.stop_lat, s.stop_lon, input_coord.lat, input_coord.lon) > ?, null, ext_haversinedistkm(s.stop_lat, s.stop_lon, input_coord.lat, input_coord.lon) ) as dist_km from input_coord join stops s on s.source in (?) join _vstopparent vsp on vsp.parent_station = s.stop_id order by dist_km asc ([1.1 0.2 50 42]) to memory 2024/07/03 21:38:46 Loaded with input_coord as (select ? as lat, ? as lon) select distinct vsp.source || '_' || vsp.parent_station as stop_sidu, s.stop_name, iif( ext_haversinedistkm(s.stop_lat, s.stop_lon, input_coord.lat, input_coord.lon) > ?, null, ext_haversinedistkm(s.stop_lat, s.stop_lon, input_coord.lat, input_coord.lon) ) as dist_km from input_coord join stops s on s.source in (?) join _vstopparent vsp on vsp.parent_station = s.stop_id order by dist_km asc ([1.1 0.2 50 42]) to memory ok (len=4) 2024/07/03 21:38:46 Generated mock: (gtfs zips: [/tmp/1408422191.zip]) (mobdb csv: /tmp/mobroute_test_mobdb_1064704115.csv) 2024/07/03 21:38:46 SQLite system version (3.45.1); comparing to required version: 3.28.0 2024/07/03 21:38:46 Loading schema tables 2024/07/03 21:38:46 Execute statement: create table if not exists _mobsql ('source' int not null,'source_pair' int,'tbl' text not null,'checksum' text not null,'n_rows' int not null,'timestamp' int not null,unique(source,source_pair,tbl)) 2024/07/03 21:38:46 Execute statement: create table if not exists _mdb ('source' int not null,'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 not null,'mdb_source_id' int not null,'name' text,'status' text,'provider' text not null,unique(mdb_source_id)) 2024/07/03 21:38:46 Execute statement: create table if not exists agency ('source' int not null,'agency_id' text,'agency_name' text not null,'agency_url' text not null,'agency_timezone' text not null,unique(source,agency_id)) 2024/07/03 21:38:46 Execute statement: create table if not exists calendar ('source' 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(source,service_id)) 2024/07/03 21:38:46 Execute statement: create table if not exists calendar_dates ('source' int not null,'service_id' text not null,'date' int not null,'exception_type' int not null check(exception_type in (1,2))) 2024/07/03 21:38:46 Execute statement: create table if not exists stop_times ('source' 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(source,trip_id,stop_sequence)) 2024/07/03 21:38:46 Execute statement: create table if not exists stops ('source' 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(source,stop_id)) 2024/07/03 21:38:46 Execute statement: create table if not exists trips ('source' 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(source,trip_id)) 2024/07/03 21:38:46 Execute statement: create table if not exists routes ('source' 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(source,route_id)) 2024/07/03 21:38:46 Execute statement: create table if not exists transfers ('source' int not null,'from_stop_id' text not null,'to_stop_id' text not null,'transfer_type' int,'min_transfer_time' int) 2024/07/03 21:38:46 Execute statement: create table if not exists _cvconnd ('source' 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(source,conn_id)) 2024/07/03 21:38:46 Execute statement: create table if not exists _cvcaltoservice ('source' int not null,'service_date' int not null,'service_id' text not null) 2024/07/03 21:38:46 Execute statement: create table if not exists _cvtransfersgen ('source' int not null,'source_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/07/03 21:38:46 Loading schema tables ok 2024/07/03 21:38:46 Loading schema indexes 2024/07/03 21:38:46 Create index idx_stop_times1_departure_time on stop_times as [departure_time] 2024/07/03 21:38:46 Created index idx_stop_times1_departure_time ok 2024/07/03 21:38:46 Create index idx_stop_times1_trip_id on stop_times as [trip_id] 2024/07/03 21:38:46 Created index idx_stop_times1_trip_id ok 2024/07/03 21:38:46 Create index idx_stops2_source_stop_id on stops as [source stop_id] 2024/07/03 21:38:46 Created index idx_stops2_source_stop_id ok 2024/07/03 21:38:46 Create index idx_stops2_stop_lat_stop_lon on stops as [stop_lat stop_lon] 2024/07/03 21:38:46 Created index idx_stops2_stop_lat_stop_lon ok 2024/07/03 21:38:46 Create index idx_transfers2_source_from_stop_id on transfers as [source from_stop_id] 2024/07/03 21:38:46 Created index idx_transfers2_source_from_stop_id ok 2024/07/03 21:38:46 Create index idx_transfers2_source_to_stop_id on transfers as [source to_stop_id] 2024/07/03 21:38:46 Created index idx_transfers2_source_to_stop_id ok 2024/07/03 21:38:46 Create index idx__cvconnd3_source_service_id_from_stop_time on _cvconnd as [source service_id from_stop_time] 2024/07/03 21:38:46 Created index idx__cvconnd3_source_service_id_from_stop_time ok 2024/07/03 21:38:46 Create index idx__cvcaltoservice2_service_date_source on _cvcaltoservice as [service_date source] 2024/07/03 21:38:46 Created index idx__cvcaltoservice2_service_date_source ok 2024/07/03 21:38:46 Loading schema indexes ok 2024/07/03 21:38:46 Loading views ok 2024/07/03 21:38:46 Loaded view _vsources (bytes=2888) 2024/07/03 21:38:46 Loaded view _vstopparent (bytes=2589) 2024/07/03 21:38:46 Loaded view _vconnd (bytes=1214) 2024/07/03 21:38:46 Loaded view _vconndverbose (bytes=1065) 2024/07/03 21:38:46 Loaded view _vcaltoservice (bytes=4202) 2024/07/03 21:38:46 Loaded view _vtransferstbl (bytes=920) 2024/07/03 21:38:46 Loaded view _vtransfersgen (bytes=1538) 2024/07/03 21:38:46 Loaded view _vtransfersimplicit (bytes=365) 2024/07/03 21:38:46 Loading views ok 2024/07/03 21:38:46 Importing table from //tmp/mobroute_test_mobdb_1064704115.csv (0.00MB) to table: _mdb 2024/07/03 21:38:46 Last checksum vs current: / C_0M_9cbf8a232951ae37ed7eeadf305e3a194dc178c1e2c195ddc065e3ee35dba235; import will occur 2024/07/03 21:38:46 Imported 1 rows into _mdb ok 2024/07/03 21:38:46 Imported table from //tmp/mobroute_test_mobdb_1064704115.csv to table: _mdb ok 2024/07/03 21:38:46 Applied filter (null) matched 1 Mobility DB GTFS sources: [42] 2024/07/03 21:38:46 Running Load against 1 sources 2024/07/03 21:38:46 Loading mdbid 42 (1 of 1) 2024/07/03 21:38:46 Loading /tmp/1408422191.zip to DB with source name: 42 2024/07/03 21:38:46 Loaded GTFS Archive /tmp/1408422191.zip to temporary directory: /tmp/mobroute_tempdir2387925910 2024/07/03 21:38:46 Loading table: agency 2024/07/03 21:38:46 Importing table from /tmp/mobroute_tempdir2387925910/agency.txt (0.00MB) to table: agency 2024/07/03 21:38:46 Last checksum vs current: / C_0M_ec69cc35698113d39b116d06df83c168ff34eec1dd5daa90136c2ccdddd57966; import will occur 2024/07/03 21:38:46 Imported 1 rows into agency ok 2024/07/03 21:38:46 Imported table from /tmp/mobroute_tempdir2387925910/agency.txt to table: agency ok 2024/07/03 21:38:46 Loading table: agency complete 2024/07/03 21:38:46 Loading table: calendar 2024/07/03 21:38:46 Importing table from /tmp/mobroute_tempdir2387925910/calendar.txt (0.00MB) to table: calendar 2024/07/03 21:38:46 Skipped import for non-existant non-required file: /tmp/mobroute_tempdir2387925910/calendar.txt 2024/07/03 21:38:46 Loading table: calendar complete 2024/07/03 21:38:46 Loading table: calendar_dates 2024/07/03 21:38:46 Importing table from /tmp/mobroute_tempdir2387925910/calendar_dates.txt (0.00MB) to table: calendar_dates 2024/07/03 21:38:46 Last checksum vs current: / C_0M_e37e371e5f8c7c355413d55fe59c9054de3dbf0d759f0bcd6ef7968b46cde54e; import will occur 2024/07/03 21:38:46 Imported 1 rows into calendar_dates ok 2024/07/03 21:38:46 Imported table from /tmp/mobroute_tempdir2387925910/calendar_dates.txt to table: calendar_dates ok 2024/07/03 21:38:46 Loading table: calendar_dates complete 2024/07/03 21:38:46 Loading table: stop_times 2024/07/03 21:38:46 Importing table from /tmp/mobroute_tempdir2387925910/stop_times.txt (0.00MB) to table: stop_times 2024/07/03 21:38:46 Last checksum vs current: / C_0M_34d5ab6ee7cbb3e04fd82bd1dca86e4daecfa570a11b128209c8e5c102662d0a; import will occur 2024/07/03 21:38:46 Imported 1 rows into stop_times ok 2024/07/03 21:38:46 Imported table from /tmp/mobroute_tempdir2387925910/stop_times.txt to table: stop_times ok 2024/07/03 21:38:46 Loading table: stop_times complete 2024/07/03 21:38:46 Loading table: stops 2024/07/03 21:38:46 Importing table from /tmp/mobroute_tempdir2387925910/stops.txt (0.00MB) to table: stops 2024/07/03 21:38:46 Last checksum vs current: / C_0M_658a3f90ef5c5b6b531059c770014493d5c29ff969ad1e41a9df10615e479366; import will occur 2024/07/03 21:38:46 Imported 10 rows into stops ok 2024/07/03 21:38:46 Imported table from /tmp/mobroute_tempdir2387925910/stops.txt to table: stops ok 2024/07/03 21:38:46 Loading table: stops complete 2024/07/03 21:38:46 Loading table: trips 2024/07/03 21:38:46 Importing table from /tmp/mobroute_tempdir2387925910/trips.txt (0.00MB) to table: trips 2024/07/03 21:38:46 Last checksum vs current: / C_0M_0391ceb043162a440ba78564cae799b0c9b0004ac42d27290246145bfa780435; import will occur 2024/07/03 21:38:46 Imported 1 rows into trips ok 2024/07/03 21:38:46 Imported table from /tmp/mobroute_tempdir2387925910/trips.txt to table: trips ok 2024/07/03 21:38:46 Loading table: trips complete 2024/07/03 21:38:46 Loading table: routes 2024/07/03 21:38:46 Importing table from /tmp/mobroute_tempdir2387925910/routes.txt (0.00MB) to table: routes 2024/07/03 21:38:46 Last checksum vs current: / C_0M_a6031af6418607a6e5f51c20eaa22f422664f8d5254c59438ab18ce7e1e97cf8; import will occur 2024/07/03 21:38:46 Imported 1 rows into routes ok 2024/07/03 21:38:46 Imported table from /tmp/mobroute_tempdir2387925910/routes.txt to table: routes ok 2024/07/03 21:38:46 Loading table: routes complete 2024/07/03 21:38:46 Loading table: transfers 2024/07/03 21:38:46 Importing table from /tmp/mobroute_tempdir2387925910/transfers.txt (0.00MB) to table: transfers 2024/07/03 21:38:46 Skipped import for non-existant non-required file: /tmp/mobroute_tempdir2387925910/transfers.txt 2024/07/03 21:38:46 Loading table: transfers complete 2024/07/03 21:38:46 Loaded /tmp/1408422191.zip to DB with source name: 42 ok 2024/07/03 21:38:46 Loading mdbid 42 ok; used cache for URL download (true) 2024/07/03 21:38:46 Running Load against 1 sources ok 2024/07/03 21:38:46 Running Compute against 1 sources 2024/07/03 21:38:46 Computed table _cvconnd for source (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/07/03 21:38:46 Computed table _cvcaltoservice for source (42 ) out of date - updating ('' vs '42:stops:C_0M_658a3f90ef5c5b6b531059c770014493d5c29ff969ad1e41a9df10615e479366') 2024/07/03 21:38:46 Computed table _cvtransfersgen for source (42 0xc00047f0f8) out of date - updating ('' vs '42:stops:C_0M_658a3f90ef5c5b6b531059c770014493d5c29ff969ad1e41a9df10615e479366') 2024/07/03 21:38:46 Running Compute against 1 sources ok 2024/07/03 21:38:46 Opening DB in RO mode: file:/tmp/mobroute_test_sqlite_3906105457.db?mode=ro 2024/07/03 21:38:46 Loading with input_coord as (select ? as lat, ? as lon) select distinct vsp.source || '_' || vsp.parent_station as stop_sidu, s.stop_name, iif( ext_haversinedistkm(s.stop_lat, s.stop_lon, input_coord.lat, input_coord.lon) > ?, null, ext_haversinedistkm(s.stop_lat, s.stop_lon, input_coord.lat, input_coord.lon) ) as dist_km from input_coord join stops s on s.source in (?) join _vstopparent vsp on vsp.parent_station = s.stop_id order by dist_km asc ([1.1 0.2 20 42]) to memory 2024/07/03 21:38:46 Loaded with input_coord as (select ? as lat, ? as lon) select distinct vsp.source || '_' || vsp.parent_station as stop_sidu, s.stop_name, iif( ext_haversinedistkm(s.stop_lat, s.stop_lon, input_coord.lat, input_coord.lon) > ?, null, ext_haversinedistkm(s.stop_lat, s.stop_lon, input_coord.lat, input_coord.lon) ) as dist_km from input_coord join stops s on s.source in (?) join _vstopparent vsp on vsp.parent_station = s.stop_id order by dist_km asc ([1.1 0.2 20 42]) to memory ok (len=4) --- PASS: Test_LoadStopWalks (0.04s) === RUN Test_LoadTransfers 2024/07/03 21:38:46 Generated mock: (gtfs zips: [/tmp/296438378.zip]) (mobdb csv: /tmp/mobroute_test_mobdb_2680574759.csv) 2024/07/03 21:38:46 SQLite system version (3.45.1); comparing to required version: 3.28.0 2024/07/03 21:38:46 Loading schema tables 2024/07/03 21:38:46 Execute statement: create table if not exists _mobsql ('source' int not null,'source_pair' int,'tbl' text not null,'checksum' text not null,'n_rows' int not null,'timestamp' int not null,unique(source,source_pair,tbl)) 2024/07/03 21:38:46 Execute statement: create table if not exists _mdb ('source' int not null,'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 not null,'mdb_source_id' int not null,'name' text,'status' text,'provider' text not null,unique(mdb_source_id)) 2024/07/03 21:38:46 Execute statement: create table if not exists agency ('source' int not null,'agency_id' text,'agency_name' text not null,'agency_url' text not null,'agency_timezone' text not null,unique(source,agency_id)) 2024/07/03 21:38:46 Execute statement: create table if not exists calendar ('source' 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(source,service_id)) 2024/07/03 21:38:46 Execute statement: create table if not exists calendar_dates ('source' int not null,'service_id' text not null,'date' int not null,'exception_type' int not null check(exception_type in (1,2))) 2024/07/03 21:38:46 Execute statement: create table if not exists stop_times ('source' 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(source,trip_id,stop_sequence)) 2024/07/03 21:38:46 Execute statement: create table if not exists stops ('source' 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(source,stop_id)) 2024/07/03 21:38:46 Execute statement: create table if not exists trips ('source' 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(source,trip_id)) 2024/07/03 21:38:46 Execute statement: create table if not exists routes ('source' 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(source,route_id)) 2024/07/03 21:38:46 Execute statement: create table if not exists transfers ('source' int not null,'from_stop_id' text not null,'to_stop_id' text not null,'transfer_type' int,'min_transfer_time' int) 2024/07/03 21:38:46 Execute statement: create table if not exists _cvconnd ('source' 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(source,conn_id)) 2024/07/03 21:38:46 Execute statement: create table if not exists _cvcaltoservice ('source' int not null,'service_date' int not null,'service_id' text not null) 2024/07/03 21:38:46 Execute statement: create table if not exists _cvtransfersgen ('source' int not null,'source_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/07/03 21:38:46 Loading schema tables ok 2024/07/03 21:38:46 Loading schema indexes 2024/07/03 21:38:46 Create index idx_stop_times1_departure_time on stop_times as [departure_time] 2024/07/03 21:38:46 Created index idx_stop_times1_departure_time ok 2024/07/03 21:38:46 Create index idx_stop_times1_trip_id on stop_times as [trip_id] 2024/07/03 21:38:46 Created index idx_stop_times1_trip_id ok 2024/07/03 21:38:46 Create index idx_stops2_source_stop_id on stops as [source stop_id] 2024/07/03 21:38:46 Created index idx_stops2_source_stop_id ok 2024/07/03 21:38:46 Create index idx_stops2_stop_lat_stop_lon on stops as [stop_lat stop_lon] 2024/07/03 21:38:46 Created index idx_stops2_stop_lat_stop_lon ok 2024/07/03 21:38:46 Create index idx_transfers2_source_from_stop_id on transfers as [source from_stop_id] 2024/07/03 21:38:46 Created index idx_transfers2_source_from_stop_id ok 2024/07/03 21:38:46 Create index idx_transfers2_source_to_stop_id on transfers as [source to_stop_id] 2024/07/03 21:38:46 Created index idx_transfers2_source_to_stop_id ok 2024/07/03 21:38:46 Create index idx__cvconnd3_source_service_id_from_stop_time on _cvconnd as [source service_id from_stop_time] 2024/07/03 21:38:46 Created index idx__cvconnd3_source_service_id_from_stop_time ok 2024/07/03 21:38:46 Create index idx__cvcaltoservice2_service_date_source on _cvcaltoservice as [service_date source] 2024/07/03 21:38:46 Created index idx__cvcaltoservice2_service_date_source ok 2024/07/03 21:38:46 Loading schema indexes ok 2024/07/03 21:38:46 Loading views ok 2024/07/03 21:38:46 Loaded view _vsources (bytes=2888) 2024/07/03 21:38:46 Loaded view _vstopparent (bytes=2589) 2024/07/03 21:38:46 Loaded view _vconnd (bytes=1214) 2024/07/03 21:38:46 Loaded view _vconndverbose (bytes=1065) 2024/07/03 21:38:46 Loaded view _vcaltoservice (bytes=4202) 2024/07/03 21:38:46 Loaded view _vtransferstbl (bytes=920) 2024/07/03 21:38:46 Loaded view _vtransfersgen (bytes=1538) 2024/07/03 21:38:46 Loaded view _vtransfersimplicit (bytes=365) 2024/07/03 21:38:46 Loading views ok 2024/07/03 21:38:46 Importing table from //tmp/mobroute_test_mobdb_2680574759.csv (0.00MB) to table: _mdb 2024/07/03 21:38:46 Last checksum vs current: / C_0M_f4c1ae84e53aec3664420ea3ca51cc19cdf6202df74ca356d247ba5983582956; import will occur 2024/07/03 21:38:46 Imported 1 rows into _mdb ok 2024/07/03 21:38:46 Imported table from //tmp/mobroute_test_mobdb_2680574759.csv to table: _mdb ok 2024/07/03 21:38:46 Applied filter (null) matched 1 Mobility DB GTFS sources: [42] 2024/07/03 21:38:46 Running Load against 1 sources 2024/07/03 21:38:46 Loading mdbid 42 (1 of 1) 2024/07/03 21:38:46 Loading /tmp/296438378.zip to DB with source name: 42 2024/07/03 21:38:46 Loaded GTFS Archive /tmp/296438378.zip to temporary directory: /tmp/mobroute_tempdir1410262594 2024/07/03 21:38:46 Loading table: agency 2024/07/03 21:38:46 Importing table from /tmp/mobroute_tempdir1410262594/agency.txt (0.00MB) to table: agency 2024/07/03 21:38:46 Last checksum vs current: / C_0M_ec69cc35698113d39b116d06df83c168ff34eec1dd5daa90136c2ccdddd57966; import will occur 2024/07/03 21:38:46 Imported 1 rows into agency ok 2024/07/03 21:38:46 Imported table from /tmp/mobroute_tempdir1410262594/agency.txt to table: agency ok 2024/07/03 21:38:46 Loading table: agency complete 2024/07/03 21:38:46 Loading table: calendar 2024/07/03 21:38:46 Importing table from /tmp/mobroute_tempdir1410262594/calendar.txt (0.00MB) to table: calendar 2024/07/03 21:38:46 Skipped import for non-existant non-required file: /tmp/mobroute_tempdir1410262594/calendar.txt 2024/07/03 21:38:46 Loading table: calendar complete 2024/07/03 21:38:46 Loading table: calendar_dates 2024/07/03 21:38:46 Importing table from /tmp/mobroute_tempdir1410262594/calendar_dates.txt (0.00MB) to table: calendar_dates 2024/07/03 21:38:46 Last checksum vs current: / C_0M_e37e371e5f8c7c355413d55fe59c9054de3dbf0d759f0bcd6ef7968b46cde54e; import will occur 2024/07/03 21:38:46 Imported 1 rows into calendar_dates ok 2024/07/03 21:38:46 Imported table from /tmp/mobroute_tempdir1410262594/calendar_dates.txt to table: calendar_dates ok 2024/07/03 21:38:46 Loading table: calendar_dates complete 2024/07/03 21:38:46 Loading table: stop_times 2024/07/03 21:38:46 Importing table from /tmp/mobroute_tempdir1410262594/stop_times.txt (0.00MB) to table: stop_times 2024/07/03 21:38:46 Last checksum vs current: / C_0M_34d5ab6ee7cbb3e04fd82bd1dca86e4daecfa570a11b128209c8e5c102662d0a; import will occur 2024/07/03 21:38:46 Imported 1 rows into stop_times ok 2024/07/03 21:38:46 Imported table from /tmp/mobroute_tempdir1410262594/stop_times.txt to table: stop_times ok 2024/07/03 21:38:46 Loading table: stop_times complete 2024/07/03 21:38:46 Loading table: stops 2024/07/03 21:38:46 Importing table from /tmp/mobroute_tempdir1410262594/stops.txt (0.00MB) to table: stops 2024/07/03 21:38:46 Last checksum vs current: / C_0M_e49bcb4d76fb2c80913af3c8407007f34b72c84c7045982cdafa519098886897; import will occur 2024/07/03 21:38:46 Imported 4 rows into stops ok 2024/07/03 21:38:46 Imported table from /tmp/mobroute_tempdir1410262594/stops.txt to table: stops ok 2024/07/03 21:38:46 Loading table: stops complete 2024/07/03 21:38:46 Loading table: trips 2024/07/03 21:38:46 Importing table from /tmp/mobroute_tempdir1410262594/trips.txt (0.00MB) to table: trips 2024/07/03 21:38:46 Last checksum vs current: / C_0M_0391ceb043162a440ba78564cae799b0c9b0004ac42d27290246145bfa780435; import will occur 2024/07/03 21:38:46 Imported 1 rows into trips ok 2024/07/03 21:38:46 Imported table from /tmp/mobroute_tempdir1410262594/trips.txt to table: trips ok 2024/07/03 21:38:46 Loading table: trips complete 2024/07/03 21:38:46 Loading table: routes 2024/07/03 21:38:46 Importing table from /tmp/mobroute_tempdir1410262594/routes.txt (0.00MB) to table: routes 2024/07/03 21:38:46 Last checksum vs current: / C_0M_a6031af6418607a6e5f51c20eaa22f422664f8d5254c59438ab18ce7e1e97cf8; import will occur 2024/07/03 21:38:46 Imported 1 rows into routes ok 2024/07/03 21:38:46 Imported table from /tmp/mobroute_tempdir1410262594/routes.txt to table: routes ok 2024/07/03 21:38:46 Loading table: routes complete 2024/07/03 21:38:46 Loading table: transfers 2024/07/03 21:38:46 Importing table from /tmp/mobroute_tempdir1410262594/transfers.txt (0.00MB) to table: transfers 2024/07/03 21:38:46 Last checksum vs current: / C_0M_62f6463902bf0c18eefcc88fd81a21fbf559daca8485920a3653a28636aa83f5; import will occur 2024/07/03 21:38:46 Imported 2 rows into transfers ok 2024/07/03 21:38:46 Imported table from /tmp/mobroute_tempdir1410262594/transfers.txt to table: transfers ok 2024/07/03 21:38:46 Loading table: transfers complete 2024/07/03 21:38:46 Loaded /tmp/296438378.zip to DB with source name: 42 ok 2024/07/03 21:38:46 Loading mdbid 42 ok; used cache for URL download (true) 2024/07/03 21:38:46 Running Load against 1 sources ok 2024/07/03 21:38:46 Running Compute against 1 sources 2024/07/03 21:38:46 Computed table _cvconnd for source (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/07/03 21:38:46 Computed table _cvcaltoservice for source (42 ) out of date - updating ('' vs '42:stops:C_0M_e49bcb4d76fb2c80913af3c8407007f34b72c84c7045982cdafa519098886897') 2024/07/03 21:38:46 Computed table _cvtransfersgen for source (42 0xc000011a48) out of date - updating ('' vs '42:stops:C_0M_e49bcb4d76fb2c80913af3c8407007f34b72c84c7045982cdafa519098886897') 2024/07/03 21:38:46 Running Compute against 1 sources ok 2024/07/03 21:38:46 Opening DB in RO mode: file:/tmp/mobroute_test_sqlite_4039642570.db?mode=ro 2024/07/03 21:38:46 Loading select * from ( -- Implicit transfers select from_stop_sidu, from_stop_idu, from_stop_id, from_source, to_stop_sidu, to_stop_idu, to_stop_id, to_source, 'i' as transfer_category, ? as transfer_seconds from _vtransfersimplicit union all -- Generated transfers select from_stop_sidu, from_stop_idu, from_stop_id, source as from_source, to_stop_sidu, to_stop_idu, to_stop_id, source_pair as to_source, '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 _cvtransfersgen union all -- Feed transfers (transfers.txt) select from_stop_sidu, from_stop_idu, from_stop_id, source as from_source, to_stop_sidu, to_stop_idu, to_stop_id, source_pair as to_source, '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_source = ? and to_source = ?)) and transfer_seconds < ? and transfer_category in (?) ([0 3.5 0 0 3.5 0 0 42 42 1000 f]) to memory 2024/07/03 21:38:46 Loaded select * from ( -- Implicit transfers select from_stop_sidu, from_stop_idu, from_stop_id, from_source, to_stop_sidu, to_stop_idu, to_stop_id, to_source, 'i' as transfer_category, ? as transfer_seconds from _vtransfersimplicit union all -- Generated transfers select from_stop_sidu, from_stop_idu, from_stop_id, source as from_source, to_stop_sidu, to_stop_idu, to_stop_id, source_pair as to_source, '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 _cvtransfersgen union all -- Feed transfers (transfers.txt) select from_stop_sidu, from_stop_idu, from_stop_id, source as from_source, to_stop_sidu, to_stop_idu, to_stop_id, source_pair as to_source, '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_source = ? and to_source = ?)) 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/07/03 21:38:46 Generated mock: (gtfs zips: [/tmp/598064262.zip]) (mobdb csv: /tmp/mobroute_test_mobdb_600575456.csv) 2024/07/03 21:38:46 SQLite system version (3.45.1); comparing to required version: 3.28.0 2024/07/03 21:38:46 Loading schema tables 2024/07/03 21:38:46 Execute statement: create table if not exists _mobsql ('source' int not null,'source_pair' int,'tbl' text not null,'checksum' text not null,'n_rows' int not null,'timestamp' int not null,unique(source,source_pair,tbl)) 2024/07/03 21:38:46 Execute statement: create table if not exists _mdb ('source' int not null,'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 not null,'mdb_source_id' int not null,'name' text,'status' text,'provider' text not null,unique(mdb_source_id)) 2024/07/03 21:38:46 Execute statement: create table if not exists agency ('source' int not null,'agency_id' text,'agency_name' text not null,'agency_url' text not null,'agency_timezone' text not null,unique(source,agency_id)) 2024/07/03 21:38:46 Execute statement: create table if not exists calendar ('source' 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(source,service_id)) 2024/07/03 21:38:46 Execute statement: create table if not exists calendar_dates ('source' int not null,'service_id' text not null,'date' int not null,'exception_type' int not null check(exception_type in (1,2))) 2024/07/03 21:38:46 Execute statement: create table if not exists stop_times ('source' 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(source,trip_id,stop_sequence)) 2024/07/03 21:38:46 Execute statement: create table if not exists stops ('source' 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(source,stop_id)) 2024/07/03 21:38:46 Execute statement: create table if not exists trips ('source' 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(source,trip_id)) 2024/07/03 21:38:46 Execute statement: create table if not exists routes ('source' 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(source,route_id)) 2024/07/03 21:38:46 Execute statement: create table if not exists transfers ('source' int not null,'from_stop_id' text not null,'to_stop_id' text not null,'transfer_type' int,'min_transfer_time' int) 2024/07/03 21:38:46 Execute statement: create table if not exists _cvconnd ('source' 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(source,conn_id)) 2024/07/03 21:38:46 Execute statement: create table if not exists _cvcaltoservice ('source' int not null,'service_date' int not null,'service_id' text not null) 2024/07/03 21:38:46 Execute statement: create table if not exists _cvtransfersgen ('source' int not null,'source_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/07/03 21:38:46 Loading schema tables ok 2024/07/03 21:38:46 Loading schema indexes 2024/07/03 21:38:46 Create index idx_stop_times1_departure_time on stop_times as [departure_time] 2024/07/03 21:38:46 Created index idx_stop_times1_departure_time ok 2024/07/03 21:38:46 Create index idx_stop_times1_trip_id on stop_times as [trip_id] 2024/07/03 21:38:46 Created index idx_stop_times1_trip_id ok 2024/07/03 21:38:46 Create index idx_stops2_source_stop_id on stops as [source stop_id] 2024/07/03 21:38:46 Created index idx_stops2_source_stop_id ok 2024/07/03 21:38:46 Create index idx_stops2_stop_lat_stop_lon on stops as [stop_lat stop_lon] 2024/07/03 21:38:46 Created index idx_stops2_stop_lat_stop_lon ok 2024/07/03 21:38:46 Create index idx_transfers2_source_from_stop_id on transfers as [source from_stop_id] 2024/07/03 21:38:46 Created index idx_transfers2_source_from_stop_id ok 2024/07/03 21:38:46 Create index idx_transfers2_source_to_stop_id on transfers as [source to_stop_id] 2024/07/03 21:38:46 Created index idx_transfers2_source_to_stop_id ok 2024/07/03 21:38:46 Create index idx__cvconnd3_source_service_id_from_stop_time on _cvconnd as [source service_id from_stop_time] 2024/07/03 21:38:46 Created index idx__cvconnd3_source_service_id_from_stop_time ok 2024/07/03 21:38:46 Create index idx__cvcaltoservice2_service_date_source on _cvcaltoservice as [service_date source] 2024/07/03 21:38:46 Created index idx__cvcaltoservice2_service_date_source ok 2024/07/03 21:38:46 Loading schema indexes ok 2024/07/03 21:38:46 Loading views ok 2024/07/03 21:38:46 Loaded view _vsources (bytes=2888) 2024/07/03 21:38:46 Loaded view _vstopparent (bytes=2589) 2024/07/03 21:38:46 Loaded view _vconnd (bytes=1214) 2024/07/03 21:38:46 Loaded view _vconndverbose (bytes=1065) 2024/07/03 21:38:46 Loaded view _vcaltoservice (bytes=4202) 2024/07/03 21:38:46 Loaded view _vtransferstbl (bytes=920) 2024/07/03 21:38:46 Loaded view _vtransfersgen (bytes=1538) 2024/07/03 21:38:46 Loaded view _vtransfersimplicit (bytes=365) 2024/07/03 21:38:46 Loading views ok 2024/07/03 21:38:46 Importing table from //tmp/mobroute_test_mobdb_600575456.csv (0.00MB) to table: _mdb 2024/07/03 21:38:46 Last checksum vs current: / C_0M_e6278f3b35c7da98f5705ad9c1804576c2bcfc290173aec86cbe98391880dd48; import will occur 2024/07/03 21:38:46 Imported 1 rows into _mdb ok 2024/07/03 21:38:46 Imported table from //tmp/mobroute_test_mobdb_600575456.csv to table: _mdb ok 2024/07/03 21:38:46 Applied filter (null) matched 1 Mobility DB GTFS sources: [42] 2024/07/03 21:38:46 Running Load against 1 sources 2024/07/03 21:38:46 Loading mdbid 42 (1 of 1) 2024/07/03 21:38:46 Loading /tmp/598064262.zip to DB with source name: 42 2024/07/03 21:38:46 Loaded GTFS Archive /tmp/598064262.zip to temporary directory: /tmp/mobroute_tempdir1360749281 2024/07/03 21:38:46 Loading table: agency 2024/07/03 21:38:46 Importing table from /tmp/mobroute_tempdir1360749281/agency.txt (0.00MB) to table: agency 2024/07/03 21:38:46 Last checksum vs current: / C_0M_ec69cc35698113d39b116d06df83c168ff34eec1dd5daa90136c2ccdddd57966; import will occur 2024/07/03 21:38:46 Imported 1 rows into agency ok 2024/07/03 21:38:46 Imported table from /tmp/mobroute_tempdir1360749281/agency.txt to table: agency ok 2024/07/03 21:38:46 Loading table: agency complete 2024/07/03 21:38:46 Loading table: calendar 2024/07/03 21:38:46 Importing table from /tmp/mobroute_tempdir1360749281/calendar.txt (0.00MB) to table: calendar 2024/07/03 21:38:46 Skipped import for non-existant non-required file: /tmp/mobroute_tempdir1360749281/calendar.txt 2024/07/03 21:38:46 Loading table: calendar complete 2024/07/03 21:38:46 Loading table: calendar_dates 2024/07/03 21:38:46 Importing table from /tmp/mobroute_tempdir1360749281/calendar_dates.txt (0.00MB) to table: calendar_dates 2024/07/03 21:38:46 Last checksum vs current: / C_0M_e37e371e5f8c7c355413d55fe59c9054de3dbf0d759f0bcd6ef7968b46cde54e; import will occur 2024/07/03 21:38:46 Imported 1 rows into calendar_dates ok 2024/07/03 21:38:46 Imported table from /tmp/mobroute_tempdir1360749281/calendar_dates.txt to table: calendar_dates ok 2024/07/03 21:38:46 Loading table: calendar_dates complete 2024/07/03 21:38:46 Loading table: stop_times 2024/07/03 21:38:46 Importing table from /tmp/mobroute_tempdir1360749281/stop_times.txt (0.00MB) to table: stop_times 2024/07/03 21:38:46 Last checksum vs current: / C_0M_34d5ab6ee7cbb3e04fd82bd1dca86e4daecfa570a11b128209c8e5c102662d0a; import will occur 2024/07/03 21:38:46 Imported 1 rows into stop_times ok 2024/07/03 21:38:46 Imported table from /tmp/mobroute_tempdir1360749281/stop_times.txt to table: stop_times ok 2024/07/03 21:38:46 Loading table: stop_times complete 2024/07/03 21:38:46 Loading table: stops 2024/07/03 21:38:46 Importing table from /tmp/mobroute_tempdir1360749281/stops.txt (0.00MB) to table: stops 2024/07/03 21:38:46 Last checksum vs current: / C_0M_e49bcb4d76fb2c80913af3c8407007f34b72c84c7045982cdafa519098886897; import will occur 2024/07/03 21:38:46 Imported 4 rows into stops ok 2024/07/03 21:38:46 Imported table from /tmp/mobroute_tempdir1360749281/stops.txt to table: stops ok 2024/07/03 21:38:46 Loading table: stops complete 2024/07/03 21:38:46 Loading table: trips 2024/07/03 21:38:46 Importing table from /tmp/mobroute_tempdir1360749281/trips.txt (0.00MB) to table: trips 2024/07/03 21:38:46 Last checksum vs current: / C_0M_0391ceb043162a440ba78564cae799b0c9b0004ac42d27290246145bfa780435; import will occur 2024/07/03 21:38:46 Imported 1 rows into trips ok 2024/07/03 21:38:46 Imported table from /tmp/mobroute_tempdir1360749281/trips.txt to table: trips ok 2024/07/03 21:38:46 Loading table: trips complete 2024/07/03 21:38:46 Loading table: routes 2024/07/03 21:38:46 Importing table from /tmp/mobroute_tempdir1360749281/routes.txt (0.00MB) to table: routes 2024/07/03 21:38:46 Last checksum vs current: / C_0M_a6031af6418607a6e5f51c20eaa22f422664f8d5254c59438ab18ce7e1e97cf8; import will occur 2024/07/03 21:38:46 Imported 1 rows into routes ok 2024/07/03 21:38:46 Imported table from /tmp/mobroute_tempdir1360749281/routes.txt to table: routes ok 2024/07/03 21:38:46 Loading table: routes complete 2024/07/03 21:38:46 Loading table: transfers 2024/07/03 21:38:46 Importing table from /tmp/mobroute_tempdir1360749281/transfers.txt (0.00MB) to table: transfers 2024/07/03 21:38:46 Last checksum vs current: / C_0M_62f6463902bf0c18eefcc88fd81a21fbf559daca8485920a3653a28636aa83f5; import will occur 2024/07/03 21:38:46 Imported 2 rows into transfers ok 2024/07/03 21:38:46 Imported table from /tmp/mobroute_tempdir1360749281/transfers.txt to table: transfers ok 2024/07/03 21:38:46 Loading table: transfers complete 2024/07/03 21:38:46 Loaded /tmp/598064262.zip to DB with source name: 42 ok 2024/07/03 21:38:46 Loading mdbid 42 ok; used cache for URL download (true) 2024/07/03 21:38:46 Running Load against 1 sources ok 2024/07/03 21:38:46 Running Compute against 1 sources 2024/07/03 21:38:46 Computed table _cvconnd for source (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/07/03 21:38:46 Computed table _cvcaltoservice for source (42 ) out of date - updating ('' vs '42:stops:C_0M_e49bcb4d76fb2c80913af3c8407007f34b72c84c7045982cdafa519098886897') 2024/07/03 21:38:46 Computed table _cvtransfersgen for source (42 0xc000430798) out of date - updating ('' vs '42:stops:C_0M_e49bcb4d76fb2c80913af3c8407007f34b72c84c7045982cdafa519098886897') 2024/07/03 21:38:46 Running Compute against 1 sources ok 2024/07/03 21:38:46 Opening DB in RO mode: file:/tmp/mobroute_test_sqlite_419526224.db?mode=ro 2024/07/03 21:38:46 Loading select * from ( -- Implicit transfers select from_stop_sidu, from_stop_idu, from_stop_id, from_source, to_stop_sidu, to_stop_idu, to_stop_id, to_source, 'i' as transfer_category, ? as transfer_seconds from _vtransfersimplicit union all -- Generated transfers select from_stop_sidu, from_stop_idu, from_stop_id, source as from_source, to_stop_sidu, to_stop_idu, to_stop_id, source_pair as to_source, '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 _cvtransfersgen union all -- Feed transfers (transfers.txt) select from_stop_sidu, from_stop_idu, from_stop_id, source as from_source, to_stop_sidu, to_stop_idu, to_stop_id, source_pair as to_source, '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_source = ? and to_source = ?)) and transfer_seconds < ? and transfer_category in (?) ([3 3.5 3 3 3.5 3 3 42 42 1000 i]) to memory 2024/07/03 21:38:46 Loaded select * from ( -- Implicit transfers select from_stop_sidu, from_stop_idu, from_stop_id, from_source, to_stop_sidu, to_stop_idu, to_stop_id, to_source, 'i' as transfer_category, ? as transfer_seconds from _vtransfersimplicit union all -- Generated transfers select from_stop_sidu, from_stop_idu, from_stop_id, source as from_source, to_stop_sidu, to_stop_idu, to_stop_id, source_pair as to_source, '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 _cvtransfersgen union all -- Feed transfers (transfers.txt) select from_stop_sidu, from_stop_idu, from_stop_id, source as from_source, to_stop_sidu, to_stop_idu, to_stop_id, source_pair as to_source, '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_source = ? and to_source = ?)) 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/07/03 21:38:46 Generated mock: (gtfs zips: [/tmp/3616016744.zip]) (mobdb csv: /tmp/mobroute_test_mobdb_114684086.csv) 2024/07/03 21:38:46 SQLite system version (3.45.1); comparing to required version: 3.28.0 2024/07/03 21:38:46 Loading schema tables 2024/07/03 21:38:46 Execute statement: create table if not exists _mobsql ('source' int not null,'source_pair' int,'tbl' text not null,'checksum' text not null,'n_rows' int not null,'timestamp' int not null,unique(source,source_pair,tbl)) 2024/07/03 21:38:46 Execute statement: create table if not exists _mdb ('source' int not null,'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 not null,'mdb_source_id' int not null,'name' text,'status' text,'provider' text not null,unique(mdb_source_id)) 2024/07/03 21:38:46 Execute statement: create table if not exists agency ('source' int not null,'agency_id' text,'agency_name' text not null,'agency_url' text not null,'agency_timezone' text not null,unique(source,agency_id)) 2024/07/03 21:38:46 Execute statement: create table if not exists calendar ('source' 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(source,service_id)) 2024/07/03 21:38:46 Execute statement: create table if not exists calendar_dates ('source' int not null,'service_id' text not null,'date' int not null,'exception_type' int not null check(exception_type in (1,2))) 2024/07/03 21:38:46 Execute statement: create table if not exists stop_times ('source' 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(source,trip_id,stop_sequence)) 2024/07/03 21:38:46 Execute statement: create table if not exists stops ('source' 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(source,stop_id)) 2024/07/03 21:38:46 Execute statement: create table if not exists trips ('source' 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(source,trip_id)) 2024/07/03 21:38:46 Execute statement: create table if not exists routes ('source' 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(source,route_id)) 2024/07/03 21:38:46 Execute statement: create table if not exists transfers ('source' int not null,'from_stop_id' text not null,'to_stop_id' text not null,'transfer_type' int,'min_transfer_time' int) 2024/07/03 21:38:46 Execute statement: create table if not exists _cvconnd ('source' 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(source,conn_id)) 2024/07/03 21:38:46 Execute statement: create table if not exists _cvcaltoservice ('source' int not null,'service_date' int not null,'service_id' text not null) 2024/07/03 21:38:46 Execute statement: create table if not exists _cvtransfersgen ('source' int not null,'source_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/07/03 21:38:46 Loading schema tables ok 2024/07/03 21:38:46 Loading schema indexes 2024/07/03 21:38:46 Create index idx_stop_times1_departure_time on stop_times as [departure_time] 2024/07/03 21:38:46 Created index idx_stop_times1_departure_time ok 2024/07/03 21:38:46 Create index idx_stop_times1_trip_id on stop_times as [trip_id] 2024/07/03 21:38:46 Created index idx_stop_times1_trip_id ok 2024/07/03 21:38:46 Create index idx_stops2_source_stop_id on stops as [source stop_id] 2024/07/03 21:38:46 Created index idx_stops2_source_stop_id ok 2024/07/03 21:38:46 Create index idx_stops2_stop_lat_stop_lon on stops as [stop_lat stop_lon] 2024/07/03 21:38:46 Created index idx_stops2_stop_lat_stop_lon ok 2024/07/03 21:38:46 Create index idx_transfers2_source_from_stop_id on transfers as [source from_stop_id] 2024/07/03 21:38:46 Created index idx_transfers2_source_from_stop_id ok 2024/07/03 21:38:46 Create index idx_transfers2_source_to_stop_id on transfers as [source to_stop_id] 2024/07/03 21:38:46 Created index idx_transfers2_source_to_stop_id ok 2024/07/03 21:38:46 Create index idx__cvconnd3_source_service_id_from_stop_time on _cvconnd as [source service_id from_stop_time] 2024/07/03 21:38:46 Created index idx__cvconnd3_source_service_id_from_stop_time ok 2024/07/03 21:38:46 Create index idx__cvcaltoservice2_service_date_source on _cvcaltoservice as [service_date source] 2024/07/03 21:38:46 Created index idx__cvcaltoservice2_service_date_source ok 2024/07/03 21:38:46 Loading schema indexes ok 2024/07/03 21:38:46 Loading views ok 2024/07/03 21:38:46 Loaded view _vsources (bytes=2888) 2024/07/03 21:38:46 Loaded view _vstopparent (bytes=2589) 2024/07/03 21:38:46 Loaded view _vconnd (bytes=1214) 2024/07/03 21:38:46 Loaded view _vconndverbose (bytes=1065) 2024/07/03 21:38:46 Loaded view _vcaltoservice (bytes=4202) 2024/07/03 21:38:46 Loaded view _vtransferstbl (bytes=920) 2024/07/03 21:38:46 Loaded view _vtransfersgen (bytes=1538) 2024/07/03 21:38:46 Loaded view _vtransfersimplicit (bytes=365) 2024/07/03 21:38:46 Loading views ok 2024/07/03 21:38:46 Importing table from //tmp/mobroute_test_mobdb_114684086.csv (0.00MB) to table: _mdb 2024/07/03 21:38:46 Last checksum vs current: / C_0M_b59744775c65fc5f6e1bfe4b2e6a11872b5ad91a1dd3c76e22373794de2442a0; import will occur 2024/07/03 21:38:46 Imported 1 rows into _mdb ok 2024/07/03 21:38:46 Imported table from //tmp/mobroute_test_mobdb_114684086.csv to table: _mdb ok 2024/07/03 21:38:46 Applied filter (null) matched 1 Mobility DB GTFS sources: [42] 2024/07/03 21:38:46 Running Load against 1 sources 2024/07/03 21:38:46 Loading mdbid 42 (1 of 1) 2024/07/03 21:38:46 Loading /tmp/3616016744.zip to DB with source name: 42 2024/07/03 21:38:46 Loaded GTFS Archive /tmp/3616016744.zip to temporary directory: /tmp/mobroute_tempdir2629685120 2024/07/03 21:38:46 Loading table: agency 2024/07/03 21:38:46 Importing table from /tmp/mobroute_tempdir2629685120/agency.txt (0.00MB) to table: agency 2024/07/03 21:38:46 Last checksum vs current: / C_0M_ec69cc35698113d39b116d06df83c168ff34eec1dd5daa90136c2ccdddd57966; import will occur 2024/07/03 21:38:46 Imported 1 rows into agency ok 2024/07/03 21:38:46 Imported table from /tmp/mobroute_tempdir2629685120/agency.txt to table: agency ok 2024/07/03 21:38:46 Loading table: agency complete 2024/07/03 21:38:46 Loading table: calendar 2024/07/03 21:38:46 Importing table from /tmp/mobroute_tempdir2629685120/calendar.txt (0.00MB) to table: calendar 2024/07/03 21:38:46 Skipped import for non-existant non-required file: /tmp/mobroute_tempdir2629685120/calendar.txt 2024/07/03 21:38:46 Loading table: calendar complete 2024/07/03 21:38:46 Loading table: calendar_dates 2024/07/03 21:38:46 Importing table from /tmp/mobroute_tempdir2629685120/calendar_dates.txt (0.00MB) to table: calendar_dates 2024/07/03 21:38:46 Last checksum vs current: / C_0M_e37e371e5f8c7c355413d55fe59c9054de3dbf0d759f0bcd6ef7968b46cde54e; import will occur 2024/07/03 21:38:46 Imported 1 rows into calendar_dates ok 2024/07/03 21:38:46 Imported table from /tmp/mobroute_tempdir2629685120/calendar_dates.txt to table: calendar_dates ok 2024/07/03 21:38:46 Loading table: calendar_dates complete 2024/07/03 21:38:46 Loading table: stop_times 2024/07/03 21:38:46 Importing table from /tmp/mobroute_tempdir2629685120/stop_times.txt (0.00MB) to table: stop_times 2024/07/03 21:38:46 Last checksum vs current: / C_0M_34d5ab6ee7cbb3e04fd82bd1dca86e4daecfa570a11b128209c8e5c102662d0a; import will occur 2024/07/03 21:38:46 Imported 1 rows into stop_times ok 2024/07/03 21:38:46 Imported table from /tmp/mobroute_tempdir2629685120/stop_times.txt to table: stop_times ok 2024/07/03 21:38:46 Loading table: stop_times complete 2024/07/03 21:38:46 Loading table: stops 2024/07/03 21:38:46 Importing table from /tmp/mobroute_tempdir2629685120/stops.txt (0.00MB) to table: stops 2024/07/03 21:38:46 Last checksum vs current: / C_0M_e49bcb4d76fb2c80913af3c8407007f34b72c84c7045982cdafa519098886897; import will occur 2024/07/03 21:38:46 Imported 4 rows into stops ok 2024/07/03 21:38:46 Imported table from /tmp/mobroute_tempdir2629685120/stops.txt to table: stops ok 2024/07/03 21:38:46 Loading table: stops complete 2024/07/03 21:38:46 Loading table: trips 2024/07/03 21:38:46 Importing table from /tmp/mobroute_tempdir2629685120/trips.txt (0.00MB) to table: trips 2024/07/03 21:38:46 Last checksum vs current: / C_0M_0391ceb043162a440ba78564cae799b0c9b0004ac42d27290246145bfa780435; import will occur 2024/07/03 21:38:46 Imported 1 rows into trips ok 2024/07/03 21:38:46 Imported table from /tmp/mobroute_tempdir2629685120/trips.txt to table: trips ok 2024/07/03 21:38:46 Loading table: trips complete 2024/07/03 21:38:46 Loading table: routes 2024/07/03 21:38:46 Importing table from /tmp/mobroute_tempdir2629685120/routes.txt (0.00MB) to table: routes 2024/07/03 21:38:46 Last checksum vs current: / C_0M_a6031af6418607a6e5f51c20eaa22f422664f8d5254c59438ab18ce7e1e97cf8; import will occur 2024/07/03 21:38:46 Imported 1 rows into routes ok 2024/07/03 21:38:46 Imported table from /tmp/mobroute_tempdir2629685120/routes.txt to table: routes ok 2024/07/03 21:38:46 Loading table: routes complete 2024/07/03 21:38:46 Loading table: transfers 2024/07/03 21:38:46 Importing table from /tmp/mobroute_tempdir2629685120/transfers.txt (0.00MB) to table: transfers 2024/07/03 21:38:46 Last checksum vs current: / C_0M_62f6463902bf0c18eefcc88fd81a21fbf559daca8485920a3653a28636aa83f5; import will occur 2024/07/03 21:38:46 Imported 2 rows into transfers ok 2024/07/03 21:38:46 Imported table from /tmp/mobroute_tempdir2629685120/transfers.txt to table: transfers ok 2024/07/03 21:38:46 Loading table: transfers complete 2024/07/03 21:38:46 Loaded /tmp/3616016744.zip to DB with source name: 42 ok 2024/07/03 21:38:46 Loading mdbid 42 ok; used cache for URL download (true) 2024/07/03 21:38:46 Running Load against 1 sources ok 2024/07/03 21:38:46 Running Compute against 1 sources 2024/07/03 21:38:46 Computed table _cvconnd for source (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/07/03 21:38:46 Computed table _cvcaltoservice for source (42 ) out of date - updating ('' vs '42:stops:C_0M_e49bcb4d76fb2c80913af3c8407007f34b72c84c7045982cdafa519098886897') 2024/07/03 21:38:46 Computed table _cvtransfersgen for source (42 0xc0004310f8) out of date - updating ('' vs '42:stops:C_0M_e49bcb4d76fb2c80913af3c8407007f34b72c84c7045982cdafa519098886897') 2024/07/03 21:38:46 Running Compute against 1 sources ok 2024/07/03 21:38:46 Opening DB in RO mode: file:/tmp/mobroute_test_sqlite_733225543.db?mode=ro 2024/07/03 21:38:46 Loading select * from ( -- Implicit transfers select from_stop_sidu, from_stop_idu, from_stop_id, from_source, to_stop_sidu, to_stop_idu, to_stop_id, to_source, 'i' as transfer_category, ? as transfer_seconds from _vtransfersimplicit union all -- Generated transfers select from_stop_sidu, from_stop_idu, from_stop_id, source as from_source, to_stop_sidu, to_stop_idu, to_stop_id, source_pair as to_source, '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 _cvtransfersgen union all -- Feed transfers (transfers.txt) select from_stop_sidu, from_stop_idu, from_stop_id, source as from_source, to_stop_sidu, to_stop_idu, to_stop_id, source_pair as to_source, '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_source = ? and to_source = ?)) and transfer_seconds < ? and transfer_category in (?) ([3 3.5 3 3 3.5 3 3 42 42 1000 g]) to memory 2024/07/03 21:38:46 Loaded select * from ( -- Implicit transfers select from_stop_sidu, from_stop_idu, from_stop_id, from_source, to_stop_sidu, to_stop_idu, to_stop_id, to_source, 'i' as transfer_category, ? as transfer_seconds from _vtransfersimplicit union all -- Generated transfers select from_stop_sidu, from_stop_idu, from_stop_id, source as from_source, to_stop_sidu, to_stop_idu, to_stop_id, source_pair as to_source, '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 _cvtransfersgen union all -- Feed transfers (transfers.txt) select from_stop_sidu, from_stop_idu, from_stop_id, source as from_source, to_stop_sidu, to_stop_idu, to_stop_id, source_pair as to_source, '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_source = ? and to_source = ?)) 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/07/03 21:38:46 Generated mock: (gtfs zips: [/tmp/2144350051.zip]) (mobdb csv: /tmp/mobroute_test_mobdb_2018248300.csv) 2024/07/03 21:38:46 SQLite system version (3.45.1); comparing to required version: 3.28.0 2024/07/03 21:38:46 Loading schema tables 2024/07/03 21:38:46 Execute statement: create table if not exists _mobsql ('source' int not null,'source_pair' int,'tbl' text not null,'checksum' text not null,'n_rows' int not null,'timestamp' int not null,unique(source,source_pair,tbl)) 2024/07/03 21:38:46 Execute statement: create table if not exists _mdb ('source' int not null,'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 not null,'mdb_source_id' int not null,'name' text,'status' text,'provider' text not null,unique(mdb_source_id)) 2024/07/03 21:38:46 Execute statement: create table if not exists agency ('source' int not null,'agency_id' text,'agency_name' text not null,'agency_url' text not null,'agency_timezone' text not null,unique(source,agency_id)) 2024/07/03 21:38:46 Execute statement: create table if not exists calendar ('source' 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(source,service_id)) 2024/07/03 21:38:46 Execute statement: create table if not exists calendar_dates ('source' int not null,'service_id' text not null,'date' int not null,'exception_type' int not null check(exception_type in (1,2))) 2024/07/03 21:38:46 Execute statement: create table if not exists stop_times ('source' 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(source,trip_id,stop_sequence)) 2024/07/03 21:38:46 Execute statement: create table if not exists stops ('source' 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(source,stop_id)) 2024/07/03 21:38:46 Execute statement: create table if not exists trips ('source' 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(source,trip_id)) 2024/07/03 21:38:46 Execute statement: create table if not exists routes ('source' 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(source,route_id)) 2024/07/03 21:38:46 Execute statement: create table if not exists transfers ('source' int not null,'from_stop_id' text not null,'to_stop_id' text not null,'transfer_type' int,'min_transfer_time' int) 2024/07/03 21:38:46 Execute statement: create table if not exists _cvconnd ('source' 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(source,conn_id)) 2024/07/03 21:38:46 Execute statement: create table if not exists _cvcaltoservice ('source' int not null,'service_date' int not null,'service_id' text not null) 2024/07/03 21:38:46 Execute statement: create table if not exists _cvtransfersgen ('source' int not null,'source_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/07/03 21:38:46 Loading schema tables ok 2024/07/03 21:38:46 Loading schema indexes 2024/07/03 21:38:46 Create index idx_stop_times1_departure_time on stop_times as [departure_time] 2024/07/03 21:38:46 Created index idx_stop_times1_departure_time ok 2024/07/03 21:38:46 Create index idx_stop_times1_trip_id on stop_times as [trip_id] 2024/07/03 21:38:46 Created index idx_stop_times1_trip_id ok 2024/07/03 21:38:46 Create index idx_stops2_source_stop_id on stops as [source stop_id] 2024/07/03 21:38:46 Created index idx_stops2_source_stop_id ok 2024/07/03 21:38:46 Create index idx_stops2_stop_lat_stop_lon on stops as [stop_lat stop_lon] 2024/07/03 21:38:46 Created index idx_stops2_stop_lat_stop_lon ok 2024/07/03 21:38:46 Create index idx_transfers2_source_from_stop_id on transfers as [source from_stop_id] 2024/07/03 21:38:46 Created index idx_transfers2_source_from_stop_id ok 2024/07/03 21:38:46 Create index idx_transfers2_source_to_stop_id on transfers as [source to_stop_id] 2024/07/03 21:38:46 Created index idx_transfers2_source_to_stop_id ok 2024/07/03 21:38:46 Create index idx__cvconnd3_source_service_id_from_stop_time on _cvconnd as [source service_id from_stop_time] 2024/07/03 21:38:46 Created index idx__cvconnd3_source_service_id_from_stop_time ok 2024/07/03 21:38:46 Create index idx__cvcaltoservice2_service_date_source on _cvcaltoservice as [service_date source] 2024/07/03 21:38:46 Created index idx__cvcaltoservice2_service_date_source ok 2024/07/03 21:38:46 Loading schema indexes ok 2024/07/03 21:38:46 Loading views ok 2024/07/03 21:38:46 Loaded view _vsources (bytes=2888) 2024/07/03 21:38:46 Loaded view _vstopparent (bytes=2589) 2024/07/03 21:38:46 Loaded view _vconnd (bytes=1214) 2024/07/03 21:38:46 Loaded view _vconndverbose (bytes=1065) 2024/07/03 21:38:46 Loaded view _vcaltoservice (bytes=4202) 2024/07/03 21:38:46 Loaded view _vtransferstbl (bytes=920) 2024/07/03 21:38:46 Loaded view _vtransfersgen (bytes=1538) 2024/07/03 21:38:46 Loaded view _vtransfersimplicit (bytes=365) 2024/07/03 21:38:46 Loading views ok 2024/07/03 21:38:46 Importing table from //tmp/mobroute_test_mobdb_2018248300.csv (0.00MB) to table: _mdb 2024/07/03 21:38:46 Last checksum vs current: / C_0M_5fae040bfc09cd0be0c5620ebb62694094c1c655bcf35e6ec4a4e4fa9a34ef3b; import will occur 2024/07/03 21:38:46 Imported 1 rows into _mdb ok 2024/07/03 21:38:46 Imported table from //tmp/mobroute_test_mobdb_2018248300.csv to table: _mdb ok 2024/07/03 21:38:46 Applied filter (null) matched 1 Mobility DB GTFS sources: [42] 2024/07/03 21:38:46 Running Load against 1 sources 2024/07/03 21:38:46 Loading mdbid 42 (1 of 1) 2024/07/03 21:38:46 Loading /tmp/2144350051.zip to DB with source name: 42 2024/07/03 21:38:46 Loaded GTFS Archive /tmp/2144350051.zip to temporary directory: /tmp/mobroute_tempdir648846709 2024/07/03 21:38:46 Loading table: agency 2024/07/03 21:38:46 Importing table from /tmp/mobroute_tempdir648846709/agency.txt (0.00MB) to table: agency 2024/07/03 21:38:46 Last checksum vs current: / C_0M_ec69cc35698113d39b116d06df83c168ff34eec1dd5daa90136c2ccdddd57966; import will occur 2024/07/03 21:38:46 Imported 1 rows into agency ok 2024/07/03 21:38:46 Imported table from /tmp/mobroute_tempdir648846709/agency.txt to table: agency ok 2024/07/03 21:38:46 Loading table: agency complete 2024/07/03 21:38:46 Loading table: calendar 2024/07/03 21:38:46 Importing table from /tmp/mobroute_tempdir648846709/calendar.txt (0.00MB) to table: calendar 2024/07/03 21:38:46 Skipped import for non-existant non-required file: /tmp/mobroute_tempdir648846709/calendar.txt 2024/07/03 21:38:46 Loading table: calendar complete 2024/07/03 21:38:46 Loading table: calendar_dates 2024/07/03 21:38:46 Importing table from /tmp/mobroute_tempdir648846709/calendar_dates.txt (0.00MB) to table: calendar_dates 2024/07/03 21:38:46 Last checksum vs current: / C_0M_e37e371e5f8c7c355413d55fe59c9054de3dbf0d759f0bcd6ef7968b46cde54e; import will occur 2024/07/03 21:38:46 Imported 1 rows into calendar_dates ok 2024/07/03 21:38:46 Imported table from /tmp/mobroute_tempdir648846709/calendar_dates.txt to table: calendar_dates ok 2024/07/03 21:38:46 Loading table: calendar_dates complete 2024/07/03 21:38:46 Loading table: stop_times 2024/07/03 21:38:46 Importing table from /tmp/mobroute_tempdir648846709/stop_times.txt (0.00MB) to table: stop_times 2024/07/03 21:38:46 Last checksum vs current: / C_0M_34d5ab6ee7cbb3e04fd82bd1dca86e4daecfa570a11b128209c8e5c102662d0a; import will occur 2024/07/03 21:38:46 Imported 1 rows into stop_times ok 2024/07/03 21:38:46 Imported table from /tmp/mobroute_tempdir648846709/stop_times.txt to table: stop_times ok 2024/07/03 21:38:46 Loading table: stop_times complete 2024/07/03 21:38:46 Loading table: stops 2024/07/03 21:38:46 Importing table from /tmp/mobroute_tempdir648846709/stops.txt (0.00MB) to table: stops 2024/07/03 21:38:46 Last checksum vs current: / C_0M_e49bcb4d76fb2c80913af3c8407007f34b72c84c7045982cdafa519098886897; import will occur 2024/07/03 21:38:46 Imported 4 rows into stops ok 2024/07/03 21:38:46 Imported table from /tmp/mobroute_tempdir648846709/stops.txt to table: stops ok 2024/07/03 21:38:46 Loading table: stops complete 2024/07/03 21:38:46 Loading table: trips 2024/07/03 21:38:46 Importing table from /tmp/mobroute_tempdir648846709/trips.txt (0.00MB) to table: trips 2024/07/03 21:38:46 Last checksum vs current: / C_0M_0391ceb043162a440ba78564cae799b0c9b0004ac42d27290246145bfa780435; import will occur 2024/07/03 21:38:46 Imported 1 rows into trips ok 2024/07/03 21:38:46 Imported table from /tmp/mobroute_tempdir648846709/trips.txt to table: trips ok 2024/07/03 21:38:46 Loading table: trips complete 2024/07/03 21:38:46 Loading table: routes 2024/07/03 21:38:46 Importing table from /tmp/mobroute_tempdir648846709/routes.txt (0.00MB) to table: routes 2024/07/03 21:38:46 Last checksum vs current: / C_0M_a6031af6418607a6e5f51c20eaa22f422664f8d5254c59438ab18ce7e1e97cf8; import will occur 2024/07/03 21:38:46 Imported 1 rows into routes ok 2024/07/03 21:38:46 Imported table from /tmp/mobroute_tempdir648846709/routes.txt to table: routes ok 2024/07/03 21:38:46 Loading table: routes complete 2024/07/03 21:38:46 Loading table: transfers 2024/07/03 21:38:46 Importing table from /tmp/mobroute_tempdir648846709/transfers.txt (0.00MB) to table: transfers 2024/07/03 21:38:46 Last checksum vs current: / C_0M_62f6463902bf0c18eefcc88fd81a21fbf559daca8485920a3653a28636aa83f5; import will occur 2024/07/03 21:38:46 Imported 2 rows into transfers ok 2024/07/03 21:38:46 Imported table from /tmp/mobroute_tempdir648846709/transfers.txt to table: transfers ok 2024/07/03 21:38:46 Loading table: transfers complete 2024/07/03 21:38:46 Loaded /tmp/2144350051.zip to DB with source name: 42 ok 2024/07/03 21:38:46 Loading mdbid 42 ok; used cache for URL download (true) 2024/07/03 21:38:46 Running Load against 1 sources ok 2024/07/03 21:38:46 Running Compute against 1 sources 2024/07/03 21:38:46 Computed table _cvconnd for source (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/07/03 21:38:46 Computed table _cvcaltoservice for source (42 ) out of date - updating ('' vs '42:stops:C_0M_e49bcb4d76fb2c80913af3c8407007f34b72c84c7045982cdafa519098886897') 2024/07/03 21:38:46 Computed table _cvtransfersgen for source (42 0xc0001a9198) out of date - updating ('' vs '42:stops:C_0M_e49bcb4d76fb2c80913af3c8407007f34b72c84c7045982cdafa519098886897') 2024/07/03 21:38:46 Running Compute against 1 sources ok 2024/07/03 21:38:46 Opening DB in RO mode: file:/tmp/mobroute_test_sqlite_222646473.db?mode=ro 2024/07/03 21:38:46 Loading select * from ( -- Implicit transfers select from_stop_sidu, from_stop_idu, from_stop_id, from_source, to_stop_sidu, to_stop_idu, to_stop_id, to_source, 'i' as transfer_category, ? as transfer_seconds from _vtransfersimplicit union all -- Generated transfers select from_stop_sidu, from_stop_idu, from_stop_id, source as from_source, to_stop_sidu, to_stop_idu, to_stop_id, source_pair as to_source, '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 _cvtransfersgen union all -- Feed transfers (transfers.txt) select from_stop_sidu, from_stop_idu, from_stop_id, source as from_source, to_stop_sidu, to_stop_idu, to_stop_id, source_pair as to_source, '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_source = ? and to_source = ?)) and transfer_seconds < ? and transfer_category in (? , ?) ([3 3.5 3 3 3.5 3 3 42 42 1000 f g]) to memory 2024/07/03 21:38:46 Loaded select * from ( -- Implicit transfers select from_stop_sidu, from_stop_idu, from_stop_id, from_source, to_stop_sidu, to_stop_idu, to_stop_id, to_source, 'i' as transfer_category, ? as transfer_seconds from _vtransfersimplicit union all -- Generated transfers select from_stop_sidu, from_stop_idu, from_stop_id, source as from_source, to_stop_sidu, to_stop_idu, to_stop_id, source_pair as to_source, '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 _cvtransfersgen union all -- Feed transfers (transfers.txt) select from_stop_sidu, from_stop_idu, from_stop_id, source as from_source, to_stop_sidu, to_stop_idu, to_stop_id, source_pair as to_source, '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_source = ? and to_source = ?)) 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.10s) PASS ok git.sr.ht/~mil/mobroute/dbquery_test 0.686s ? git.sr.ht/~mil/mobroute/dbstubquery [no test files] === RUN Test_LoadCalToService 2024/07/03 21:38:47 Generated mock: (gtfs zips: [/tmp/2020887144.zip]) (mobdb csv: /tmp/mobroute_test_mobdb_2557971097.csv) 2024/07/03 21:38:47 SQLite system version (3.45.1); comparing to required version: 3.28.0 2024/07/03 21:38:47 Loading schema tables 2024/07/03 21:38:47 Execute statement: create table if not exists _mobsql ('source' int not null,'source_pair' int,'tbl' text not null,'checksum' text not null,'n_rows' int not null,'timestamp' int not null,unique(source,source_pair,tbl)) 2024/07/03 21:38:47 Execute statement: create table if not exists _mdb ('source' int not null,'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 not null,'mdb_source_id' int not null,'name' text,'status' text,'provider' text not null,unique(mdb_source_id)) 2024/07/03 21:38:47 Execute statement: create table if not exists agency ('source' int not null,'agency_id' text,'agency_name' text not null,'agency_url' text not null,'agency_timezone' text not null,unique(source,agency_id)) 2024/07/03 21:38:47 Execute statement: create table if not exists calendar ('source' 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(source,service_id)) 2024/07/03 21:38:47 Execute statement: create table if not exists calendar_dates ('source' int not null,'service_id' text not null,'date' int not null,'exception_type' int not null check(exception_type in (1,2))) 2024/07/03 21:38:47 Execute statement: create table if not exists stop_times ('source' 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(source,trip_id,stop_sequence)) 2024/07/03 21:38:47 Execute statement: create table if not exists stops ('source' 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(source,stop_id)) 2024/07/03 21:38:47 Execute statement: create table if not exists trips ('source' 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(source,trip_id)) 2024/07/03 21:38:47 Execute statement: create table if not exists routes ('source' 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(source,route_id)) 2024/07/03 21:38:47 Execute statement: create table if not exists transfers ('source' int not null,'from_stop_id' text not null,'to_stop_id' text not null,'transfer_type' int,'min_transfer_time' int) 2024/07/03 21:38:47 Execute statement: create table if not exists _cvconnd ('source' 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(source,conn_id)) 2024/07/03 21:38:47 Execute statement: create table if not exists _cvcaltoservice ('source' int not null,'service_date' int not null,'service_id' text not null) 2024/07/03 21:38:47 Execute statement: create table if not exists _cvtransfersgen ('source' int not null,'source_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/07/03 21:38:47 Loading schema tables ok 2024/07/03 21:38:47 Loading schema indexes 2024/07/03 21:38:47 Create index idx_stop_times1_departure_time on stop_times as [departure_time] 2024/07/03 21:38:47 Created index idx_stop_times1_departure_time ok 2024/07/03 21:38:47 Create index idx_stop_times1_trip_id on stop_times as [trip_id] 2024/07/03 21:38:47 Created index idx_stop_times1_trip_id ok 2024/07/03 21:38:47 Create index idx_stops2_source_stop_id on stops as [source stop_id] 2024/07/03 21:38:47 Created index idx_stops2_source_stop_id ok 2024/07/03 21:38:47 Create index idx_stops2_stop_lat_stop_lon on stops as [stop_lat stop_lon] 2024/07/03 21:38:47 Created index idx_stops2_stop_lat_stop_lon ok 2024/07/03 21:38:47 Create index idx_transfers2_source_from_stop_id on transfers as [source from_stop_id] 2024/07/03 21:38:47 Created index idx_transfers2_source_from_stop_id ok 2024/07/03 21:38:47 Create index idx_transfers2_source_to_stop_id on transfers as [source to_stop_id] 2024/07/03 21:38:47 Created index idx_transfers2_source_to_stop_id ok 2024/07/03 21:38:47 Create index idx__cvconnd3_source_service_id_from_stop_time on _cvconnd as [source service_id from_stop_time] 2024/07/03 21:38:47 Created index idx__cvconnd3_source_service_id_from_stop_time ok 2024/07/03 21:38:47 Create index idx__cvcaltoservice2_service_date_source on _cvcaltoservice as [service_date source] 2024/07/03 21:38:47 Created index idx__cvcaltoservice2_service_date_source ok 2024/07/03 21:38:47 Loading schema indexes ok 2024/07/03 21:38:47 Loading views ok 2024/07/03 21:38:47 Loaded view _vsources (bytes=2888) 2024/07/03 21:38:47 Loaded view _vstopparent (bytes=2589) 2024/07/03 21:38:47 Loaded view _vconnd (bytes=1214) 2024/07/03 21:38:47 Loaded view _vconndverbose (bytes=1065) 2024/07/03 21:38:47 Loaded view _vcaltoservice (bytes=4202) 2024/07/03 21:38:47 Loaded view _vtransferstbl (bytes=920) 2024/07/03 21:38:47 Loaded view _vtransfersgen (bytes=1538) 2024/07/03 21:38:47 Loaded view _vtransfersimplicit (bytes=365) 2024/07/03 21:38:47 Loading views ok 2024/07/03 21:38:47 Importing table from //tmp/mobroute_test_mobdb_2557971097.csv (0.00MB) to table: _mdb 2024/07/03 21:38:47 Last checksum vs current: / C_0M_5ced2795c6d26506d6d48dae43810ff5517a40bfac1feda5be4ee6431d7281c3; import will occur 2024/07/03 21:38:47 Imported 1 rows into _mdb ok 2024/07/03 21:38:47 Imported table from //tmp/mobroute_test_mobdb_2557971097.csv to table: _mdb ok 2024/07/03 21:38:47 Applied filter (null) matched 1 Mobility DB GTFS sources: [42] 2024/07/03 21:38:47 Running Load against 1 sources 2024/07/03 21:38:47 Loading mdbid 42 (1 of 1) 2024/07/03 21:38:47 Loading /tmp/2020887144.zip to DB with source name: 42 2024/07/03 21:38:47 Loaded GTFS Archive /tmp/2020887144.zip to temporary directory: /tmp/mobroute_tempdir2325477485 2024/07/03 21:38:47 Loading table: agency 2024/07/03 21:38:47 Importing table from /tmp/mobroute_tempdir2325477485/agency.txt (0.00MB) to table: agency 2024/07/03 21:38:47 Last checksum vs current: / C_0M_ec69cc35698113d39b116d06df83c168ff34eec1dd5daa90136c2ccdddd57966; import will occur 2024/07/03 21:38:47 Imported 1 rows into agency ok 2024/07/03 21:38:47 Imported table from /tmp/mobroute_tempdir2325477485/agency.txt to table: agency ok 2024/07/03 21:38:47 Loading table: agency complete 2024/07/03 21:38:47 Loading table: calendar 2024/07/03 21:38:47 Importing table from /tmp/mobroute_tempdir2325477485/calendar.txt (0.00MB) to table: calendar 2024/07/03 21:38:47 Last checksum vs current: / C_0M_e3b90f0aa591f682039ce6ac7a9f4e8f46025c2346ee8478c06a04300d59ed12; import will occur 2024/07/03 21:38:47 Imported 2 rows into calendar ok 2024/07/03 21:38:47 Imported table from /tmp/mobroute_tempdir2325477485/calendar.txt to table: calendar ok 2024/07/03 21:38:47 Loading table: calendar complete 2024/07/03 21:38:47 Loading table: calendar_dates 2024/07/03 21:38:47 Importing table from /tmp/mobroute_tempdir2325477485/calendar_dates.txt (0.00MB) to table: calendar_dates 2024/07/03 21:38:47 Skipped import for non-existant non-required file: /tmp/mobroute_tempdir2325477485/calendar_dates.txt 2024/07/03 21:38:47 Loading table: calendar_dates complete 2024/07/03 21:38:47 Loading table: stop_times 2024/07/03 21:38:47 Importing table from /tmp/mobroute_tempdir2325477485/stop_times.txt (0.00MB) to table: stop_times 2024/07/03 21:38:47 Last checksum vs current: / C_0M_34d5ab6ee7cbb3e04fd82bd1dca86e4daecfa570a11b128209c8e5c102662d0a; import will occur 2024/07/03 21:38:47 Imported 1 rows into stop_times ok 2024/07/03 21:38:47 Imported table from /tmp/mobroute_tempdir2325477485/stop_times.txt to table: stop_times ok 2024/07/03 21:38:47 Loading table: stop_times complete 2024/07/03 21:38:47 Loading table: stops 2024/07/03 21:38:47 Importing table from /tmp/mobroute_tempdir2325477485/stops.txt (0.00MB) to table: stops 2024/07/03 21:38:47 Last checksum vs current: / C_0M_0e74a5076f0274b109142fc425c74cff47bef02800122d1f65189c2f2ac9ddbb; import will occur 2024/07/03 21:38:47 Imported 1 rows into stops ok 2024/07/03 21:38:47 Imported table from /tmp/mobroute_tempdir2325477485/stops.txt to table: stops ok 2024/07/03 21:38:47 Loading table: stops complete 2024/07/03 21:38:47 Loading table: trips 2024/07/03 21:38:47 Importing table from /tmp/mobroute_tempdir2325477485/trips.txt (0.00MB) to table: trips 2024/07/03 21:38:47 Last checksum vs current: / C_0M_0391ceb043162a440ba78564cae799b0c9b0004ac42d27290246145bfa780435; import will occur 2024/07/03 21:38:47 Imported 1 rows into trips ok 2024/07/03 21:38:47 Imported table from /tmp/mobroute_tempdir2325477485/trips.txt to table: trips ok 2024/07/03 21:38:47 Loading table: trips complete 2024/07/03 21:38:47 Loading table: routes 2024/07/03 21:38:47 Importing table from /tmp/mobroute_tempdir2325477485/routes.txt (0.00MB) to table: routes 2024/07/03 21:38:47 Last checksum vs current: / C_0M_a6031af6418607a6e5f51c20eaa22f422664f8d5254c59438ab18ce7e1e97cf8; import will occur 2024/07/03 21:38:47 Imported 1 rows into routes ok 2024/07/03 21:38:47 Imported table from /tmp/mobroute_tempdir2325477485/routes.txt to table: routes ok 2024/07/03 21:38:47 Loading table: routes complete 2024/07/03 21:38:47 Loading table: transfers 2024/07/03 21:38:47 Importing table from /tmp/mobroute_tempdir2325477485/transfers.txt (0.00MB) to table: transfers 2024/07/03 21:38:47 Skipped import for non-existant non-required file: /tmp/mobroute_tempdir2325477485/transfers.txt 2024/07/03 21:38:47 Loading table: transfers complete 2024/07/03 21:38:47 Loaded /tmp/2020887144.zip to DB with source name: 42 ok 2024/07/03 21:38:47 Loading mdbid 42 ok; used cache for URL download (true) 2024/07/03 21:38:47 Running Load against 1 sources ok 2024/07/03 21:38:47 Running Compute against 1 sources 2024/07/03 21:38:47 Computed table _cvconnd for source (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/07/03 21:38:47 Computed table _cvcaltoservice for source (42 ) out of date - updating ('' vs '42:stops:C_0M_0e74a5076f0274b109142fc425c74cff47bef02800122d1f65189c2f2ac9ddbb') 2024/07/03 21:38:47 Computed table _cvtransfersgen for source (42 0xc000331848) out of date - updating ('' vs '42:stops:C_0M_0e74a5076f0274b109142fc425c74cff47bef02800122d1f65189c2f2ac9ddbb') 2024/07/03 21:38:47 Running Compute against 1 sources ok 2024/07/03 21:38:47 Opening DB in RO mode: file:/tmp/mobroute_test_sqlite_2265805565.db?mode=ro 2024/07/03 21:38:47 Loading select source, service_date, service_id from _cvcaltoservice where source = ? and service_date between ? and ? ([42 20230620 20230621]) to memory 2024/07/03 21:38:47 Loaded select source, service_date, service_id from _cvcaltoservice where source = ? and service_date between ? and ? ([42 20230620 20230621]) to memory ok (len=4) 2024/07/03 21:38:47 Generated mock: (gtfs zips: [/tmp/3058404947.zip]) (mobdb csv: /tmp/mobroute_test_mobdb_648696905.csv) 2024/07/03 21:38:47 SQLite system version (3.45.1); comparing to required version: 3.28.0 2024/07/03 21:38:47 Loading schema tables 2024/07/03 21:38:47 Execute statement: create table if not exists _mobsql ('source' int not null,'source_pair' int,'tbl' text not null,'checksum' text not null,'n_rows' int not null,'timestamp' int not null,unique(source,source_pair,tbl)) 2024/07/03 21:38:47 Execute statement: create table if not exists _mdb ('source' int not null,'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 not null,'mdb_source_id' int not null,'name' text,'status' text,'provider' text not null,unique(mdb_source_id)) 2024/07/03 21:38:47 Execute statement: create table if not exists agency ('source' int not null,'agency_id' text,'agency_name' text not null,'agency_url' text not null,'agency_timezone' text not null,unique(source,agency_id)) 2024/07/03 21:38:47 Execute statement: create table if not exists calendar ('source' 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(source,service_id)) 2024/07/03 21:38:47 Execute statement: create table if not exists calendar_dates ('source' int not null,'service_id' text not null,'date' int not null,'exception_type' int not null check(exception_type in (1,2))) 2024/07/03 21:38:47 Execute statement: create table if not exists stop_times ('source' 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(source,trip_id,stop_sequence)) 2024/07/03 21:38:47 Execute statement: create table if not exists stops ('source' 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(source,stop_id)) 2024/07/03 21:38:47 Execute statement: create table if not exists trips ('source' 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(source,trip_id)) 2024/07/03 21:38:47 Execute statement: create table if not exists routes ('source' 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(source,route_id)) 2024/07/03 21:38:47 Execute statement: create table if not exists transfers ('source' int not null,'from_stop_id' text not null,'to_stop_id' text not null,'transfer_type' int,'min_transfer_time' int) 2024/07/03 21:38:47 Execute statement: create table if not exists _cvconnd ('source' 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(source,conn_id)) 2024/07/03 21:38:47 Execute statement: create table if not exists _cvcaltoservice ('source' int not null,'service_date' int not null,'service_id' text not null) 2024/07/03 21:38:47 Execute statement: create table if not exists _cvtransfersgen ('source' int not null,'source_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/07/03 21:38:47 Loading schema tables ok 2024/07/03 21:38:47 Loading schema indexes 2024/07/03 21:38:47 Create index idx_stop_times1_departure_time on stop_times as [departure_time] 2024/07/03 21:38:47 Created index idx_stop_times1_departure_time ok 2024/07/03 21:38:47 Create index idx_stop_times1_trip_id on stop_times as [trip_id] 2024/07/03 21:38:47 Created index idx_stop_times1_trip_id ok 2024/07/03 21:38:47 Create index idx_stops2_source_stop_id on stops as [source stop_id] 2024/07/03 21:38:47 Created index idx_stops2_source_stop_id ok 2024/07/03 21:38:47 Create index idx_stops2_stop_lat_stop_lon on stops as [stop_lat stop_lon] 2024/07/03 21:38:47 Created index idx_stops2_stop_lat_stop_lon ok 2024/07/03 21:38:47 Create index idx_transfers2_source_from_stop_id on transfers as [source from_stop_id] 2024/07/03 21:38:47 Created index idx_transfers2_source_from_stop_id ok 2024/07/03 21:38:47 Create index idx_transfers2_source_to_stop_id on transfers as [source to_stop_id] 2024/07/03 21:38:47 Created index idx_transfers2_source_to_stop_id ok 2024/07/03 21:38:47 Create index idx__cvconnd3_source_service_id_from_stop_time on _cvconnd as [source service_id from_stop_time] 2024/07/03 21:38:47 Created index idx__cvconnd3_source_service_id_from_stop_time ok 2024/07/03 21:38:47 Create index idx__cvcaltoservice2_service_date_source on _cvcaltoservice as [service_date source] 2024/07/03 21:38:47 Created index idx__cvcaltoservice2_service_date_source ok 2024/07/03 21:38:47 Loading schema indexes ok 2024/07/03 21:38:47 Loading views ok 2024/07/03 21:38:47 Loaded view _vsources (bytes=2888) 2024/07/03 21:38:47 Loaded view _vstopparent (bytes=2589) 2024/07/03 21:38:47 Loaded view _vconnd (bytes=1214) 2024/07/03 21:38:47 Loaded view _vconndverbose (bytes=1065) 2024/07/03 21:38:47 Loaded view _vcaltoservice (bytes=4202) 2024/07/03 21:38:47 Loaded view _vtransferstbl (bytes=920) 2024/07/03 21:38:47 Loaded view _vtransfersgen (bytes=1538) 2024/07/03 21:38:47 Loaded view _vtransfersimplicit (bytes=365) 2024/07/03 21:38:47 Loading views ok 2024/07/03 21:38:47 Importing table from //tmp/mobroute_test_mobdb_648696905.csv (0.00MB) to table: _mdb 2024/07/03 21:38:47 Last checksum vs current: / C_0M_8fd2b2d674c199b62952d2bbe3c5bccfbb3b09634f75b943ea55f045cd6551f1; import will occur 2024/07/03 21:38:47 Imported 1 rows into _mdb ok 2024/07/03 21:38:47 Imported table from //tmp/mobroute_test_mobdb_648696905.csv to table: _mdb ok 2024/07/03 21:38:47 Applied filter (null) matched 1 Mobility DB GTFS sources: [42] 2024/07/03 21:38:47 Running Load against 1 sources 2024/07/03 21:38:47 Loading mdbid 42 (1 of 1) 2024/07/03 21:38:47 Loading /tmp/3058404947.zip to DB with source name: 42 2024/07/03 21:38:47 Loaded GTFS Archive /tmp/3058404947.zip to temporary directory: /tmp/mobroute_tempdir2945869137 2024/07/03 21:38:47 Loading table: agency 2024/07/03 21:38:47 Importing table from /tmp/mobroute_tempdir2945869137/agency.txt (0.00MB) to table: agency 2024/07/03 21:38:47 Last checksum vs current: / C_0M_ec69cc35698113d39b116d06df83c168ff34eec1dd5daa90136c2ccdddd57966; import will occur 2024/07/03 21:38:47 Imported 1 rows into agency ok 2024/07/03 21:38:47 Imported table from /tmp/mobroute_tempdir2945869137/agency.txt to table: agency ok 2024/07/03 21:38:47 Loading table: agency complete 2024/07/03 21:38:47 Loading table: calendar 2024/07/03 21:38:47 Importing table from /tmp/mobroute_tempdir2945869137/calendar.txt (0.00MB) to table: calendar 2024/07/03 21:38:47 Last checksum vs current: / C_0M_e3b90f0aa591f682039ce6ac7a9f4e8f46025c2346ee8478c06a04300d59ed12; import will occur 2024/07/03 21:38:47 Imported 2 rows into calendar ok 2024/07/03 21:38:47 Imported table from /tmp/mobroute_tempdir2945869137/calendar.txt to table: calendar ok 2024/07/03 21:38:47 Loading table: calendar complete 2024/07/03 21:38:47 Loading table: calendar_dates 2024/07/03 21:38:47 Importing table from /tmp/mobroute_tempdir2945869137/calendar_dates.txt (0.00MB) to table: calendar_dates 2024/07/03 21:38:47 Skipped import for non-existant non-required file: /tmp/mobroute_tempdir2945869137/calendar_dates.txt 2024/07/03 21:38:47 Loading table: calendar_dates complete 2024/07/03 21:38:47 Loading table: stop_times 2024/07/03 21:38:47 Importing table from /tmp/mobroute_tempdir2945869137/stop_times.txt (0.00MB) to table: stop_times 2024/07/03 21:38:47 Last checksum vs current: / C_0M_34d5ab6ee7cbb3e04fd82bd1dca86e4daecfa570a11b128209c8e5c102662d0a; import will occur 2024/07/03 21:38:47 Imported 1 rows into stop_times ok 2024/07/03 21:38:47 Imported table from /tmp/mobroute_tempdir2945869137/stop_times.txt to table: stop_times ok 2024/07/03 21:38:47 Loading table: stop_times complete 2024/07/03 21:38:47 Loading table: stops 2024/07/03 21:38:47 Importing table from /tmp/mobroute_tempdir2945869137/stops.txt (0.00MB) to table: stops 2024/07/03 21:38:47 Last checksum vs current: / C_0M_0e74a5076f0274b109142fc425c74cff47bef02800122d1f65189c2f2ac9ddbb; import will occur 2024/07/03 21:38:47 Imported 1 rows into stops ok 2024/07/03 21:38:47 Imported table from /tmp/mobroute_tempdir2945869137/stops.txt to table: stops ok 2024/07/03 21:38:47 Loading table: stops complete 2024/07/03 21:38:47 Loading table: trips 2024/07/03 21:38:47 Importing table from /tmp/mobroute_tempdir2945869137/trips.txt (0.00MB) to table: trips 2024/07/03 21:38:47 Last checksum vs current: / C_0M_0391ceb043162a440ba78564cae799b0c9b0004ac42d27290246145bfa780435; import will occur 2024/07/03 21:38:47 Imported 1 rows into trips ok 2024/07/03 21:38:47 Imported table from /tmp/mobroute_tempdir2945869137/trips.txt to table: trips ok 2024/07/03 21:38:47 Loading table: trips complete 2024/07/03 21:38:47 Loading table: routes 2024/07/03 21:38:47 Importing table from /tmp/mobroute_tempdir2945869137/routes.txt (0.00MB) to table: routes 2024/07/03 21:38:47 Last checksum vs current: / C_0M_a6031af6418607a6e5f51c20eaa22f422664f8d5254c59438ab18ce7e1e97cf8; import will occur 2024/07/03 21:38:47 Imported 1 rows into routes ok 2024/07/03 21:38:47 Imported table from /tmp/mobroute_tempdir2945869137/routes.txt to table: routes ok 2024/07/03 21:38:47 Loading table: routes complete 2024/07/03 21:38:47 Loading table: transfers 2024/07/03 21:38:47 Importing table from /tmp/mobroute_tempdir2945869137/transfers.txt (0.00MB) to table: transfers 2024/07/03 21:38:47 Skipped import for non-existant non-required file: /tmp/mobroute_tempdir2945869137/transfers.txt 2024/07/03 21:38:47 Loading table: transfers complete 2024/07/03 21:38:47 Loaded /tmp/3058404947.zip to DB with source name: 42 ok 2024/07/03 21:38:47 Loading mdbid 42 ok; used cache for URL download (true) 2024/07/03 21:38:47 Running Load against 1 sources ok 2024/07/03 21:38:47 Running Compute against 1 sources 2024/07/03 21:38:47 Computed table _cvconnd for source (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/07/03 21:38:47 Computed table _cvcaltoservice for source (42 ) out of date - updating ('' vs '42:stops:C_0M_0e74a5076f0274b109142fc425c74cff47bef02800122d1f65189c2f2ac9ddbb') 2024/07/03 21:38:47 Computed table _cvtransfersgen for source (42 0xc0004d4748) out of date - updating ('' vs '42:stops:C_0M_0e74a5076f0274b109142fc425c74cff47bef02800122d1f65189c2f2ac9ddbb') 2024/07/03 21:38:47 Running Compute against 1 sources ok 2024/07/03 21:38:47 Opening DB in RO mode: file:/tmp/mobroute_test_sqlite_1811985905.db?mode=ro 2024/07/03 21:38:47 Loading select source, service_date, service_id from _cvcaltoservice where source = ? and service_date between ? and ? ([42 20270619 20270622]) to memory 2024/07/03 21:38:47 Loaded select source, service_date, service_id from _cvcaltoservice where source = ? and service_date between ? and ? ([42 20270619 20270622]) to memory ok (len=0) 2024/07/03 21:38:47 Generated mock: (gtfs zips: [/tmp/3473672983.zip]) (mobdb csv: /tmp/mobroute_test_mobdb_3376057240.csv) 2024/07/03 21:38:47 SQLite system version (3.45.1); comparing to required version: 3.28.0 2024/07/03 21:38:47 Loading schema tables 2024/07/03 21:38:47 Execute statement: create table if not exists _mobsql ('source' int not null,'source_pair' int,'tbl' text not null,'checksum' text not null,'n_rows' int not null,'timestamp' int not null,unique(source,source_pair,tbl)) 2024/07/03 21:38:47 Execute statement: create table if not exists _mdb ('source' int not null,'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 not null,'mdb_source_id' int not null,'name' text,'status' text,'provider' text not null,unique(mdb_source_id)) 2024/07/03 21:38:47 Execute statement: create table if not exists agency ('source' int not null,'agency_id' text,'agency_name' text not null,'agency_url' text not null,'agency_timezone' text not null,unique(source,agency_id)) 2024/07/03 21:38:47 Execute statement: create table if not exists calendar ('source' 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(source,service_id)) 2024/07/03 21:38:47 Execute statement: create table if not exists calendar_dates ('source' int not null,'service_id' text not null,'date' int not null,'exception_type' int not null check(exception_type in (1,2))) 2024/07/03 21:38:47 Execute statement: create table if not exists stop_times ('source' 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(source,trip_id,stop_sequence)) 2024/07/03 21:38:47 Execute statement: create table if not exists stops ('source' 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(source,stop_id)) 2024/07/03 21:38:47 Execute statement: create table if not exists trips ('source' 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(source,trip_id)) 2024/07/03 21:38:47 Execute statement: create table if not exists routes ('source' 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(source,route_id)) 2024/07/03 21:38:47 Execute statement: create table if not exists transfers ('source' int not null,'from_stop_id' text not null,'to_stop_id' text not null,'transfer_type' int,'min_transfer_time' int) 2024/07/03 21:38:47 Execute statement: create table if not exists _cvconnd ('source' 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(source,conn_id)) 2024/07/03 21:38:47 Execute statement: create table if not exists _cvcaltoservice ('source' int not null,'service_date' int not null,'service_id' text not null) 2024/07/03 21:38:47 Execute statement: create table if not exists _cvtransfersgen ('source' int not null,'source_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/07/03 21:38:47 Loading schema tables ok 2024/07/03 21:38:47 Loading schema indexes 2024/07/03 21:38:47 Create index idx_stop_times1_departure_time on stop_times as [departure_time] 2024/07/03 21:38:47 Created index idx_stop_times1_departure_time ok 2024/07/03 21:38:47 Create index idx_stop_times1_trip_id on stop_times as [trip_id] 2024/07/03 21:38:47 Created index idx_stop_times1_trip_id ok 2024/07/03 21:38:47 Create index idx_stops2_source_stop_id on stops as [source stop_id] 2024/07/03 21:38:47 Created index idx_stops2_source_stop_id ok 2024/07/03 21:38:47 Create index idx_stops2_stop_lat_stop_lon on stops as [stop_lat stop_lon] 2024/07/03 21:38:47 Created index idx_stops2_stop_lat_stop_lon ok 2024/07/03 21:38:47 Create index idx_transfers2_source_from_stop_id on transfers as [source from_stop_id] 2024/07/03 21:38:47 Created index idx_transfers2_source_from_stop_id ok 2024/07/03 21:38:47 Create index idx_transfers2_source_to_stop_id on transfers as [source to_stop_id] 2024/07/03 21:38:47 Created index idx_transfers2_source_to_stop_id ok 2024/07/03 21:38:47 Create index idx__cvconnd3_source_service_id_from_stop_time on _cvconnd as [source service_id from_stop_time] 2024/07/03 21:38:47 Created index idx__cvconnd3_source_service_id_from_stop_time ok 2024/07/03 21:38:47 Create index idx__cvcaltoservice2_service_date_source on _cvcaltoservice as [service_date source] 2024/07/03 21:38:47 Created index idx__cvcaltoservice2_service_date_source ok 2024/07/03 21:38:47 Loading schema indexes ok 2024/07/03 21:38:47 Loading views ok 2024/07/03 21:38:47 Loaded view _vsources (bytes=2888) 2024/07/03 21:38:47 Loaded view _vstopparent (bytes=2589) 2024/07/03 21:38:47 Loaded view _vconnd (bytes=1214) 2024/07/03 21:38:47 Loaded view _vconndverbose (bytes=1065) 2024/07/03 21:38:47 Loaded view _vcaltoservice (bytes=4202) 2024/07/03 21:38:47 Loaded view _vtransferstbl (bytes=920) 2024/07/03 21:38:47 Loaded view _vtransfersgen (bytes=1538) 2024/07/03 21:38:47 Loaded view _vtransfersimplicit (bytes=365) 2024/07/03 21:38:47 Loading views ok 2024/07/03 21:38:47 Importing table from //tmp/mobroute_test_mobdb_3376057240.csv (0.00MB) to table: _mdb 2024/07/03 21:38:47 Last checksum vs current: / C_0M_0f5677017cd339ed8b2cf3fe05f03b8f416986d083b3365c7b970ca027e48794; import will occur 2024/07/03 21:38:47 Imported 1 rows into _mdb ok 2024/07/03 21:38:47 Imported table from //tmp/mobroute_test_mobdb_3376057240.csv to table: _mdb ok 2024/07/03 21:38:47 Applied filter (null) matched 1 Mobility DB GTFS sources: [42] 2024/07/03 21:38:47 Running Load against 1 sources 2024/07/03 21:38:47 Loading mdbid 42 (1 of 1) 2024/07/03 21:38:47 Loading /tmp/3473672983.zip to DB with source name: 42 2024/07/03 21:38:47 Loaded GTFS Archive /tmp/3473672983.zip to temporary directory: /tmp/mobroute_tempdir3014386300 2024/07/03 21:38:47 Loading table: agency 2024/07/03 21:38:47 Importing table from /tmp/mobroute_tempdir3014386300/agency.txt (0.00MB) to table: agency 2024/07/03 21:38:47 Last checksum vs current: / C_0M_ec69cc35698113d39b116d06df83c168ff34eec1dd5daa90136c2ccdddd57966; import will occur 2024/07/03 21:38:47 Imported 1 rows into agency ok 2024/07/03 21:38:47 Imported table from /tmp/mobroute_tempdir3014386300/agency.txt to table: agency ok 2024/07/03 21:38:47 Loading table: agency complete 2024/07/03 21:38:47 Loading table: calendar 2024/07/03 21:38:47 Importing table from /tmp/mobroute_tempdir3014386300/calendar.txt (0.00MB) to table: calendar 2024/07/03 21:38:47 Skipped import for non-existant non-required file: /tmp/mobroute_tempdir3014386300/calendar.txt 2024/07/03 21:38:47 Loading table: calendar complete 2024/07/03 21:38:47 Loading table: calendar_dates 2024/07/03 21:38:47 Importing table from /tmp/mobroute_tempdir3014386300/calendar_dates.txt (0.00MB) to table: calendar_dates 2024/07/03 21:38:47 Last checksum vs current: / C_0M_c9a596973ac871ddba3e27cef7cc8ef2d3481b1fd98a210e6f398bd2ce95a687; import will occur 2024/07/03 21:38:47 Imported 6 rows into calendar_dates ok 2024/07/03 21:38:47 Imported table from /tmp/mobroute_tempdir3014386300/calendar_dates.txt to table: calendar_dates ok 2024/07/03 21:38:47 Loading table: calendar_dates complete 2024/07/03 21:38:47 Loading table: stop_times 2024/07/03 21:38:47 Importing table from /tmp/mobroute_tempdir3014386300/stop_times.txt (0.00MB) to table: stop_times 2024/07/03 21:38:47 Last checksum vs current: / C_0M_34d5ab6ee7cbb3e04fd82bd1dca86e4daecfa570a11b128209c8e5c102662d0a; import will occur 2024/07/03 21:38:47 Imported 1 rows into stop_times ok 2024/07/03 21:38:47 Imported table from /tmp/mobroute_tempdir3014386300/stop_times.txt to table: stop_times ok 2024/07/03 21:38:47 Loading table: stop_times complete 2024/07/03 21:38:47 Loading table: stops 2024/07/03 21:38:47 Importing table from /tmp/mobroute_tempdir3014386300/stops.txt (0.00MB) to table: stops 2024/07/03 21:38:47 Last checksum vs current: / C_0M_0e74a5076f0274b109142fc425c74cff47bef02800122d1f65189c2f2ac9ddbb; import will occur 2024/07/03 21:38:47 Imported 1 rows into stops ok 2024/07/03 21:38:47 Imported table from /tmp/mobroute_tempdir3014386300/stops.txt to table: stops ok 2024/07/03 21:38:47 Loading table: stops complete 2024/07/03 21:38:47 Loading table: trips 2024/07/03 21:38:47 Importing table from /tmp/mobroute_tempdir3014386300/trips.txt (0.00MB) to table: trips 2024/07/03 21:38:47 Last checksum vs current: / C_0M_0391ceb043162a440ba78564cae799b0c9b0004ac42d27290246145bfa780435; import will occur 2024/07/03 21:38:47 Imported 1 rows into trips ok 2024/07/03 21:38:47 Imported table from /tmp/mobroute_tempdir3014386300/trips.txt to table: trips ok 2024/07/03 21:38:47 Loading table: trips complete 2024/07/03 21:38:47 Loading table: routes 2024/07/03 21:38:47 Importing table from /tmp/mobroute_tempdir3014386300/routes.txt (0.00MB) to table: routes 2024/07/03 21:38:47 Last checksum vs current: / C_0M_a6031af6418607a6e5f51c20eaa22f422664f8d5254c59438ab18ce7e1e97cf8; import will occur 2024/07/03 21:38:47 Imported 1 rows into routes ok 2024/07/03 21:38:47 Imported table from /tmp/mobroute_tempdir3014386300/routes.txt to table: routes ok 2024/07/03 21:38:47 Loading table: routes complete 2024/07/03 21:38:47 Loading table: transfers 2024/07/03 21:38:47 Importing table from /tmp/mobroute_tempdir3014386300/transfers.txt (0.00MB) to table: transfers 2024/07/03 21:38:47 Skipped import for non-existant non-required file: /tmp/mobroute_tempdir3014386300/transfers.txt 2024/07/03 21:38:47 Loading table: transfers complete 2024/07/03 21:38:47 Loaded /tmp/3473672983.zip to DB with source name: 42 ok 2024/07/03 21:38:47 Loading mdbid 42 ok; used cache for URL download (true) 2024/07/03 21:38:47 Running Load against 1 sources ok 2024/07/03 21:38:47 Running Compute against 1 sources 2024/07/03 21:38:47 Computed table _cvconnd for source (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/07/03 21:38:47 Computed table _cvcaltoservice for source (42 ) out of date - updating ('' vs '42:stops:C_0M_0e74a5076f0274b109142fc425c74cff47bef02800122d1f65189c2f2ac9ddbb') 2024/07/03 21:38:47 Computed table _cvtransfersgen for source (42 0xc0001337b8) out of date - updating ('' vs '42:stops:C_0M_0e74a5076f0274b109142fc425c74cff47bef02800122d1f65189c2f2ac9ddbb') 2024/07/03 21:38:47 Running Compute against 1 sources ok 2024/07/03 21:38:47 Opening DB in RO mode: file:/tmp/mobroute_test_sqlite_897955554.db?mode=ro 2024/07/03 21:38:47 Loading select source, service_date, service_id from _cvcaltoservice where source = ? and service_date between ? and ? ([42 20230302 20230303]) to memory 2024/07/03 21:38:47 Loaded select source, service_date, service_id from _cvcaltoservice where source = ? and service_date between ? and ? ([42 20230302 20230303]) to memory ok (len=3) 2024/07/03 21:38:47 Generated mock: (gtfs zips: [/tmp/1037349076.zip]) (mobdb csv: /tmp/mobroute_test_mobdb_2783023259.csv) 2024/07/03 21:38:47 SQLite system version (3.45.1); comparing to required version: 3.28.0 2024/07/03 21:38:47 Loading schema tables 2024/07/03 21:38:47 Execute statement: create table if not exists _mobsql ('source' int not null,'source_pair' int,'tbl' text not null,'checksum' text not null,'n_rows' int not null,'timestamp' int not null,unique(source,source_pair,tbl)) 2024/07/03 21:38:47 Execute statement: create table if not exists _mdb ('source' int not null,'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 not null,'mdb_source_id' int not null,'name' text,'status' text,'provider' text not null,unique(mdb_source_id)) 2024/07/03 21:38:47 Execute statement: create table if not exists agency ('source' int not null,'agency_id' text,'agency_name' text not null,'agency_url' text not null,'agency_timezone' text not null,unique(source,agency_id)) 2024/07/03 21:38:47 Execute statement: create table if not exists calendar ('source' 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(source,service_id)) 2024/07/03 21:38:47 Execute statement: create table if not exists calendar_dates ('source' int not null,'service_id' text not null,'date' int not null,'exception_type' int not null check(exception_type in (1,2))) 2024/07/03 21:38:47 Execute statement: create table if not exists stop_times ('source' 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(source,trip_id,stop_sequence)) 2024/07/03 21:38:47 Execute statement: create table if not exists stops ('source' 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(source,stop_id)) 2024/07/03 21:38:47 Execute statement: create table if not exists trips ('source' 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(source,trip_id)) 2024/07/03 21:38:47 Execute statement: create table if not exists routes ('source' 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(source,route_id)) 2024/07/03 21:38:47 Execute statement: create table if not exists transfers ('source' int not null,'from_stop_id' text not null,'to_stop_id' text not null,'transfer_type' int,'min_transfer_time' int) 2024/07/03 21:38:47 Execute statement: create table if not exists _cvconnd ('source' 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(source,conn_id)) 2024/07/03 21:38:47 Execute statement: create table if not exists _cvcaltoservice ('source' int not null,'service_date' int not null,'service_id' text not null) 2024/07/03 21:38:47 Execute statement: create table if not exists _cvtransfersgen ('source' int not null,'source_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/07/03 21:38:47 Loading schema tables ok 2024/07/03 21:38:47 Loading schema indexes 2024/07/03 21:38:47 Create index idx_stop_times1_departure_time on stop_times as [departure_time] 2024/07/03 21:38:47 Created index idx_stop_times1_departure_time ok 2024/07/03 21:38:47 Create index idx_stop_times1_trip_id on stop_times as [trip_id] 2024/07/03 21:38:47 Created index idx_stop_times1_trip_id ok 2024/07/03 21:38:47 Create index idx_stops2_source_stop_id on stops as [source stop_id] 2024/07/03 21:38:47 Created index idx_stops2_source_stop_id ok 2024/07/03 21:38:47 Create index idx_stops2_stop_lat_stop_lon on stops as [stop_lat stop_lon] 2024/07/03 21:38:47 Created index idx_stops2_stop_lat_stop_lon ok 2024/07/03 21:38:47 Create index idx_transfers2_source_from_stop_id on transfers as [source from_stop_id] 2024/07/03 21:38:47 Created index idx_transfers2_source_from_stop_id ok 2024/07/03 21:38:47 Create index idx_transfers2_source_to_stop_id on transfers as [source to_stop_id] 2024/07/03 21:38:47 Created index idx_transfers2_source_to_stop_id ok 2024/07/03 21:38:47 Create index idx__cvconnd3_source_service_id_from_stop_time on _cvconnd as [source service_id from_stop_time] 2024/07/03 21:38:47 Created index idx__cvconnd3_source_service_id_from_stop_time ok 2024/07/03 21:38:47 Create index idx__cvcaltoservice2_service_date_source on _cvcaltoservice as [service_date source] 2024/07/03 21:38:47 Created index idx__cvcaltoservice2_service_date_source ok 2024/07/03 21:38:47 Loading schema indexes ok 2024/07/03 21:38:47 Loading views ok 2024/07/03 21:38:47 Loaded view _vsources (bytes=2888) 2024/07/03 21:38:47 Loaded view _vstopparent (bytes=2589) 2024/07/03 21:38:47 Loaded view _vconnd (bytes=1214) 2024/07/03 21:38:47 Loaded view _vconndverbose (bytes=1065) 2024/07/03 21:38:47 Loaded view _vcaltoservice (bytes=4202) 2024/07/03 21:38:47 Loaded view _vtransferstbl (bytes=920) 2024/07/03 21:38:47 Loaded view _vtransfersgen (bytes=1538) 2024/07/03 21:38:47 Loaded view _vtransfersimplicit (bytes=365) 2024/07/03 21:38:47 Loading views ok 2024/07/03 21:38:47 Importing table from //tmp/mobroute_test_mobdb_2783023259.csv (0.00MB) to table: _mdb 2024/07/03 21:38:47 Last checksum vs current: / C_0M_77e9022ba25fee6473191c0bb529e7ce2e68177f920c7eb20f77b88c0cdff6e2; import will occur 2024/07/03 21:38:47 Imported 1 rows into _mdb ok 2024/07/03 21:38:47 Imported table from //tmp/mobroute_test_mobdb_2783023259.csv to table: _mdb ok 2024/07/03 21:38:47 Applied filter (null) matched 1 Mobility DB GTFS sources: [42] 2024/07/03 21:38:47 Running Load against 1 sources 2024/07/03 21:38:47 Loading mdbid 42 (1 of 1) 2024/07/03 21:38:47 Loading /tmp/1037349076.zip to DB with source name: 42 2024/07/03 21:38:47 Loaded GTFS Archive /tmp/1037349076.zip to temporary directory: /tmp/mobroute_tempdir697786824 2024/07/03 21:38:47 Loading table: agency 2024/07/03 21:38:47 Importing table from /tmp/mobroute_tempdir697786824/agency.txt (0.00MB) to table: agency 2024/07/03 21:38:47 Last checksum vs current: / C_0M_ec69cc35698113d39b116d06df83c168ff34eec1dd5daa90136c2ccdddd57966; import will occur 2024/07/03 21:38:47 Imported 1 rows into agency ok 2024/07/03 21:38:47 Imported table from /tmp/mobroute_tempdir697786824/agency.txt to table: agency ok 2024/07/03 21:38:47 Loading table: agency complete 2024/07/03 21:38:47 Loading table: calendar 2024/07/03 21:38:47 Importing table from /tmp/mobroute_tempdir697786824/calendar.txt (0.00MB) to table: calendar 2024/07/03 21:38:47 Skipped import for non-existant non-required file: /tmp/mobroute_tempdir697786824/calendar.txt 2024/07/03 21:38:47 Loading table: calendar complete 2024/07/03 21:38:47 Loading table: calendar_dates 2024/07/03 21:38:47 Importing table from /tmp/mobroute_tempdir697786824/calendar_dates.txt (0.00MB) to table: calendar_dates 2024/07/03 21:38:47 Last checksum vs current: / C_0M_c9a596973ac871ddba3e27cef7cc8ef2d3481b1fd98a210e6f398bd2ce95a687; import will occur 2024/07/03 21:38:47 Imported 6 rows into calendar_dates ok 2024/07/03 21:38:47 Imported table from /tmp/mobroute_tempdir697786824/calendar_dates.txt to table: calendar_dates ok 2024/07/03 21:38:47 Loading table: calendar_dates complete 2024/07/03 21:38:47 Loading table: stop_times 2024/07/03 21:38:47 Importing table from /tmp/mobroute_tempdir697786824/stop_times.txt (0.00MB) to table: stop_times 2024/07/03 21:38:47 Last checksum vs current: / C_0M_34d5ab6ee7cbb3e04fd82bd1dca86e4daecfa570a11b128209c8e5c102662d0a; import will occur 2024/07/03 21:38:47 Imported 1 rows into stop_times ok 2024/07/03 21:38:47 Imported table from /tmp/mobroute_tempdir697786824/stop_times.txt to table: stop_times ok 2024/07/03 21:38:47 Loading table: stop_times complete 2024/07/03 21:38:47 Loading table: stops 2024/07/03 21:38:47 Importing table from /tmp/mobroute_tempdir697786824/stops.txt (0.00MB) to table: stops 2024/07/03 21:38:47 Last checksum vs current: / C_0M_0e74a5076f0274b109142fc425c74cff47bef02800122d1f65189c2f2ac9ddbb; import will occur 2024/07/03 21:38:47 Imported 1 rows into stops ok 2024/07/03 21:38:47 Imported table from /tmp/mobroute_tempdir697786824/stops.txt to table: stops ok 2024/07/03 21:38:47 Loading table: stops complete 2024/07/03 21:38:47 Loading table: trips 2024/07/03 21:38:47 Importing table from /tmp/mobroute_tempdir697786824/trips.txt (0.00MB) to table: trips 2024/07/03 21:38:47 Last checksum vs current: / C_0M_0391ceb043162a440ba78564cae799b0c9b0004ac42d27290246145bfa780435; import will occur 2024/07/03 21:38:47 Imported 1 rows into trips ok 2024/07/03 21:38:47 Imported table from /tmp/mobroute_tempdir697786824/trips.txt to table: trips ok 2024/07/03 21:38:47 Loading table: trips complete 2024/07/03 21:38:47 Loading table: routes 2024/07/03 21:38:47 Importing table from /tmp/mobroute_tempdir697786824/routes.txt (0.00MB) to table: routes 2024/07/03 21:38:47 Last checksum vs current: / C_0M_a6031af6418607a6e5f51c20eaa22f422664f8d5254c59438ab18ce7e1e97cf8; import will occur 2024/07/03 21:38:47 Imported 1 rows into routes ok 2024/07/03 21:38:47 Imported table from /tmp/mobroute_tempdir697786824/routes.txt to table: routes ok 2024/07/03 21:38:47 Loading table: routes complete 2024/07/03 21:38:47 Loading table: transfers 2024/07/03 21:38:47 Importing table from /tmp/mobroute_tempdir697786824/transfers.txt (0.00MB) to table: transfers 2024/07/03 21:38:47 Skipped import for non-existant non-required file: /tmp/mobroute_tempdir697786824/transfers.txt 2024/07/03 21:38:47 Loading table: transfers complete 2024/07/03 21:38:47 Loaded /tmp/1037349076.zip to DB with source name: 42 ok 2024/07/03 21:38:47 Loading mdbid 42 ok; used cache for URL download (true) 2024/07/03 21:38:47 Running Load against 1 sources ok 2024/07/03 21:38:47 Running Compute against 1 sources 2024/07/03 21:38:47 Computed table _cvconnd for source (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/07/03 21:38:47 Computed table _cvcaltoservice for source (42 ) out of date - updating ('' vs '42:stops:C_0M_0e74a5076f0274b109142fc425c74cff47bef02800122d1f65189c2f2ac9ddbb') 2024/07/03 21:38:47 Computed table _cvtransfersgen for source (42 0xc000132898) out of date - updating ('' vs '42:stops:C_0M_0e74a5076f0274b109142fc425c74cff47bef02800122d1f65189c2f2ac9ddbb') 2024/07/03 21:38:47 Running Compute against 1 sources ok 2024/07/03 21:38:47 Opening DB in RO mode: file:/tmp/mobroute_test_sqlite_4000192151.db?mode=ro 2024/07/03 21:38:47 Loading select source, service_date, service_id from _cvcaltoservice where source = ? and service_date between ? and ? ([42 20230402 20230703]) to memory 2024/07/03 21:38:47 Loaded select source, service_date, service_id from _cvcaltoservice where source = ? and service_date between ? and ? ([42 20230402 20230703]) to memory ok (len=0) 2024/07/03 21:38:47 Generated mock: (gtfs zips: [/tmp/1401098948.zip]) (mobdb csv: /tmp/mobroute_test_mobdb_1408103634.csv) 2024/07/03 21:38:47 SQLite system version (3.45.1); comparing to required version: 3.28.0 2024/07/03 21:38:47 Loading schema tables 2024/07/03 21:38:47 Execute statement: create table if not exists _mobsql ('source' int not null,'source_pair' int,'tbl' text not null,'checksum' text not null,'n_rows' int not null,'timestamp' int not null,unique(source,source_pair,tbl)) 2024/07/03 21:38:47 Execute statement: create table if not exists _mdb ('source' int not null,'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 not null,'mdb_source_id' int not null,'name' text,'status' text,'provider' text not null,unique(mdb_source_id)) 2024/07/03 21:38:47 Execute statement: create table if not exists agency ('source' int not null,'agency_id' text,'agency_name' text not null,'agency_url' text not null,'agency_timezone' text not null,unique(source,agency_id)) 2024/07/03 21:38:47 Execute statement: create table if not exists calendar ('source' 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(source,service_id)) 2024/07/03 21:38:47 Execute statement: create table if not exists calendar_dates ('source' int not null,'service_id' text not null,'date' int not null,'exception_type' int not null check(exception_type in (1,2))) 2024/07/03 21:38:47 Execute statement: create table if not exists stop_times ('source' 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(source,trip_id,stop_sequence)) 2024/07/03 21:38:47 Execute statement: create table if not exists stops ('source' 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(source,stop_id)) 2024/07/03 21:38:47 Execute statement: create table if not exists trips ('source' 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(source,trip_id)) 2024/07/03 21:38:47 Execute statement: create table if not exists routes ('source' 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(source,route_id)) 2024/07/03 21:38:47 Execute statement: create table if not exists transfers ('source' int not null,'from_stop_id' text not null,'to_stop_id' text not null,'transfer_type' int,'min_transfer_time' int) 2024/07/03 21:38:47 Execute statement: create table if not exists _cvconnd ('source' 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(source,conn_id)) 2024/07/03 21:38:47 Execute statement: create table if not exists _cvcaltoservice ('source' int not null,'service_date' int not null,'service_id' text not null) 2024/07/03 21:38:47 Execute statement: create table if not exists _cvtransfersgen ('source' int not null,'source_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/07/03 21:38:47 Loading schema tables ok 2024/07/03 21:38:47 Loading schema indexes 2024/07/03 21:38:47 Create index idx_stop_times1_departure_time on stop_times as [departure_time] 2024/07/03 21:38:47 Created index idx_stop_times1_departure_time ok 2024/07/03 21:38:47 Create index idx_stop_times1_trip_id on stop_times as [trip_id] 2024/07/03 21:38:47 Created index idx_stop_times1_trip_id ok 2024/07/03 21:38:47 Create index idx_stops2_source_stop_id on stops as [source stop_id] 2024/07/03 21:38:47 Created index idx_stops2_source_stop_id ok 2024/07/03 21:38:47 Create index idx_stops2_stop_lat_stop_lon on stops as [stop_lat stop_lon] 2024/07/03 21:38:47 Created index idx_stops2_stop_lat_stop_lon ok 2024/07/03 21:38:47 Create index idx_transfers2_source_from_stop_id on transfers as [source from_stop_id] 2024/07/03 21:38:47 Created index idx_transfers2_source_from_stop_id ok 2024/07/03 21:38:47 Create index idx_transfers2_source_to_stop_id on transfers as [source to_stop_id] 2024/07/03 21:38:47 Created index idx_transfers2_source_to_stop_id ok 2024/07/03 21:38:47 Create index idx__cvconnd3_source_service_id_from_stop_time on _cvconnd as [source service_id from_stop_time] 2024/07/03 21:38:47 Created index idx__cvconnd3_source_service_id_from_stop_time ok 2024/07/03 21:38:47 Create index idx__cvcaltoservice2_service_date_source on _cvcaltoservice as [service_date source] 2024/07/03 21:38:47 Created index idx__cvcaltoservice2_service_date_source ok 2024/07/03 21:38:47 Loading schema indexes ok 2024/07/03 21:38:47 Loading views ok 2024/07/03 21:38:47 Loaded view _vsources (bytes=2888) 2024/07/03 21:38:47 Loaded view _vstopparent (bytes=2589) 2024/07/03 21:38:47 Loaded view _vconnd (bytes=1214) 2024/07/03 21:38:47 Loaded view _vconndverbose (bytes=1065) 2024/07/03 21:38:47 Loaded view _vcaltoservice (bytes=4202) 2024/07/03 21:38:47 Loaded view _vtransferstbl (bytes=920) 2024/07/03 21:38:47 Loaded view _vtransfersgen (bytes=1538) 2024/07/03 21:38:47 Loaded view _vtransfersimplicit (bytes=365) 2024/07/03 21:38:47 Loading views ok 2024/07/03 21:38:47 Importing table from //tmp/mobroute_test_mobdb_1408103634.csv (0.00MB) to table: _mdb 2024/07/03 21:38:47 Last checksum vs current: / C_0M_adc1bd538d79e29aa11861005f61e9bae4a573d3226bac98304fefa548eed4f1; import will occur 2024/07/03 21:38:47 Imported 1 rows into _mdb ok 2024/07/03 21:38:47 Imported table from //tmp/mobroute_test_mobdb_1408103634.csv to table: _mdb ok 2024/07/03 21:38:47 Applied filter (null) matched 1 Mobility DB GTFS sources: [42] 2024/07/03 21:38:47 Running Load against 1 sources 2024/07/03 21:38:47 Loading mdbid 42 (1 of 1) 2024/07/03 21:38:47 Loading /tmp/1401098948.zip to DB with source name: 42 2024/07/03 21:38:47 Loaded GTFS Archive /tmp/1401098948.zip to temporary directory: /tmp/mobroute_tempdir1490370558 2024/07/03 21:38:47 Loading table: agency 2024/07/03 21:38:47 Importing table from /tmp/mobroute_tempdir1490370558/agency.txt (0.00MB) to table: agency 2024/07/03 21:38:47 Last checksum vs current: / C_0M_ec69cc35698113d39b116d06df83c168ff34eec1dd5daa90136c2ccdddd57966; import will occur 2024/07/03 21:38:47 Imported 1 rows into agency ok 2024/07/03 21:38:47 Imported table from /tmp/mobroute_tempdir1490370558/agency.txt to table: agency ok 2024/07/03 21:38:47 Loading table: agency complete 2024/07/03 21:38:47 Loading table: calendar 2024/07/03 21:38:47 Importing table from /tmp/mobroute_tempdir1490370558/calendar.txt (0.00MB) to table: calendar 2024/07/03 21:38:47 Last checksum vs current: / C_0M_1a479c2cc8fe96fa8aacf573305f61c13d80b613e0c9ca8c3b964d91ece992ca; import will occur 2024/07/03 21:38:47 Imported 2 rows into calendar ok 2024/07/03 21:38:47 Imported table from /tmp/mobroute_tempdir1490370558/calendar.txt to table: calendar ok 2024/07/03 21:38:47 Loading table: calendar complete 2024/07/03 21:38:47 Loading table: calendar_dates 2024/07/03 21:38:47 Importing table from /tmp/mobroute_tempdir1490370558/calendar_dates.txt (0.00MB) to table: calendar_dates 2024/07/03 21:38:47 Last checksum vs current: / C_0M_674e838dce9a30acbf7bc93af3c4c8f4856ba5f0b7c966777d38b29df07f8800; import will occur 2024/07/03 21:38:47 Imported 4 rows into calendar_dates ok 2024/07/03 21:38:47 Imported table from /tmp/mobroute_tempdir1490370558/calendar_dates.txt to table: calendar_dates ok 2024/07/03 21:38:47 Loading table: calendar_dates complete 2024/07/03 21:38:47 Loading table: stop_times 2024/07/03 21:38:47 Importing table from /tmp/mobroute_tempdir1490370558/stop_times.txt (0.00MB) to table: stop_times 2024/07/03 21:38:47 Last checksum vs current: / C_0M_34d5ab6ee7cbb3e04fd82bd1dca86e4daecfa570a11b128209c8e5c102662d0a; import will occur 2024/07/03 21:38:47 Imported 1 rows into stop_times ok 2024/07/03 21:38:47 Imported table from /tmp/mobroute_tempdir1490370558/stop_times.txt to table: stop_times ok 2024/07/03 21:38:47 Loading table: stop_times complete 2024/07/03 21:38:47 Loading table: stops 2024/07/03 21:38:47 Importing table from /tmp/mobroute_tempdir1490370558/stops.txt (0.00MB) to table: stops 2024/07/03 21:38:47 Last checksum vs current: / C_0M_0e74a5076f0274b109142fc425c74cff47bef02800122d1f65189c2f2ac9ddbb; import will occur 2024/07/03 21:38:47 Imported 1 rows into stops ok 2024/07/03 21:38:47 Imported table from /tmp/mobroute_tempdir1490370558/stops.txt to table: stops ok 2024/07/03 21:38:47 Loading table: stops complete 2024/07/03 21:38:47 Loading table: trips 2024/07/03 21:38:47 Importing table from /tmp/mobroute_tempdir1490370558/trips.txt (0.00MB) to table: trips 2024/07/03 21:38:47 Last checksum vs current: / C_0M_0391ceb043162a440ba78564cae799b0c9b0004ac42d27290246145bfa780435; import will occur 2024/07/03 21:38:47 Imported 1 rows into trips ok 2024/07/03 21:38:47 Imported table from /tmp/mobroute_tempdir1490370558/trips.txt to table: trips ok 2024/07/03 21:38:47 Loading table: trips complete 2024/07/03 21:38:47 Loading table: routes 2024/07/03 21:38:47 Importing table from /tmp/mobroute_tempdir1490370558/routes.txt (0.00MB) to table: routes 2024/07/03 21:38:47 Last checksum vs current: / C_0M_a6031af6418607a6e5f51c20eaa22f422664f8d5254c59438ab18ce7e1e97cf8; import will occur 2024/07/03 21:38:47 Imported 1 rows into routes ok 2024/07/03 21:38:47 Imported table from /tmp/mobroute_tempdir1490370558/routes.txt to table: routes ok 2024/07/03 21:38:47 Loading table: routes complete 2024/07/03 21:38:47 Loading table: transfers 2024/07/03 21:38:47 Importing table from /tmp/mobroute_tempdir1490370558/transfers.txt (0.00MB) to table: transfers 2024/07/03 21:38:47 Skipped import for non-existant non-required file: /tmp/mobroute_tempdir1490370558/transfers.txt 2024/07/03 21:38:47 Loading table: transfers complete 2024/07/03 21:38:47 Loaded /tmp/1401098948.zip to DB with source name: 42 ok 2024/07/03 21:38:47 Loading mdbid 42 ok; used cache for URL download (true) 2024/07/03 21:38:47 Running Load against 1 sources ok 2024/07/03 21:38:47 Running Compute against 1 sources 2024/07/03 21:38:47 Computed table _cvconnd for source (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/07/03 21:38:47 Computed table _cvcaltoservice for source (42 ) out of date - updating ('' vs '42:stops:C_0M_0e74a5076f0274b109142fc425c74cff47bef02800122d1f65189c2f2ac9ddbb') 2024/07/03 21:38:47 Computed table _cvtransfersgen for source (42 0xc000330698) out of date - updating ('' vs '42:stops:C_0M_0e74a5076f0274b109142fc425c74cff47bef02800122d1f65189c2f2ac9ddbb') 2024/07/03 21:38:47 Running Compute against 1 sources ok 2024/07/03 21:38:47 Opening DB in RO mode: file:/tmp/mobroute_test_sqlite_1042353802.db?mode=ro 2024/07/03 21:38:47 Loading select source, service_date, service_id from _cvcaltoservice where source = ? and service_date between ? and ? ([42 20230906 20230910]) to memory 2024/07/03 21:38:47 Loaded select source, service_date, service_id from _cvcaltoservice where source = ? and service_date between ? and ? ([42 20230906 20230910]) to memory ok (len=7) --- PASS: Test_LoadCalToService (0.31s) === RUN Test_LoadStopToParent 2024/07/03 21:38:47 Generated mock: (gtfs zips: [/tmp/704954071.zip]) (mobdb csv: /tmp/mobroute_test_mobdb_2950999461.csv) 2024/07/03 21:38:47 SQLite system version (3.45.1); comparing to required version: 3.28.0 2024/07/03 21:38:47 Loading schema tables 2024/07/03 21:38:47 Execute statement: create table if not exists _mobsql ('source' int not null,'source_pair' int,'tbl' text not null,'checksum' text not null,'n_rows' int not null,'timestamp' int not null,unique(source,source_pair,tbl)) 2024/07/03 21:38:47 Execute statement: create table if not exists _mdb ('source' int not null,'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 not null,'mdb_source_id' int not null,'name' text,'status' text,'provider' text not null,unique(mdb_source_id)) 2024/07/03 21:38:47 Execute statement: create table if not exists agency ('source' int not null,'agency_id' text,'agency_name' text not null,'agency_url' text not null,'agency_timezone' text not null,unique(source,agency_id)) 2024/07/03 21:38:47 Execute statement: create table if not exists calendar ('source' 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(source,service_id)) 2024/07/03 21:38:47 Execute statement: create table if not exists calendar_dates ('source' int not null,'service_id' text not null,'date' int not null,'exception_type' int not null check(exception_type in (1,2))) 2024/07/03 21:38:47 Execute statement: create table if not exists stop_times ('source' 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(source,trip_id,stop_sequence)) 2024/07/03 21:38:47 Execute statement: create table if not exists stops ('source' 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(source,stop_id)) 2024/07/03 21:38:47 Execute statement: create table if not exists trips ('source' 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(source,trip_id)) 2024/07/03 21:38:47 Execute statement: create table if not exists routes ('source' 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(source,route_id)) 2024/07/03 21:38:47 Execute statement: create table if not exists transfers ('source' int not null,'from_stop_id' text not null,'to_stop_id' text not null,'transfer_type' int,'min_transfer_time' int) 2024/07/03 21:38:47 Execute statement: create table if not exists _cvconnd ('source' 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(source,conn_id)) 2024/07/03 21:38:47 Execute statement: create table if not exists _cvcaltoservice ('source' int not null,'service_date' int not null,'service_id' text not null) 2024/07/03 21:38:47 Execute statement: create table if not exists _cvtransfersgen ('source' int not null,'source_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/07/03 21:38:47 Loading schema tables ok 2024/07/03 21:38:47 Loading schema indexes 2024/07/03 21:38:47 Create index idx_stop_times1_departure_time on stop_times as [departure_time] 2024/07/03 21:38:47 Created index idx_stop_times1_departure_time ok 2024/07/03 21:38:47 Create index idx_stop_times1_trip_id on stop_times as [trip_id] 2024/07/03 21:38:47 Created index idx_stop_times1_trip_id ok 2024/07/03 21:38:47 Create index idx_stops2_source_stop_id on stops as [source stop_id] 2024/07/03 21:38:47 Created index idx_stops2_source_stop_id ok 2024/07/03 21:38:47 Create index idx_stops2_stop_lat_stop_lon on stops as [stop_lat stop_lon] 2024/07/03 21:38:47 Created index idx_stops2_stop_lat_stop_lon ok 2024/07/03 21:38:47 Create index idx_transfers2_source_from_stop_id on transfers as [source from_stop_id] 2024/07/03 21:38:47 Created index idx_transfers2_source_from_stop_id ok 2024/07/03 21:38:47 Create index idx_transfers2_source_to_stop_id on transfers as [source to_stop_id] 2024/07/03 21:38:47 Created index idx_transfers2_source_to_stop_id ok 2024/07/03 21:38:47 Create index idx__cvconnd3_source_service_id_from_stop_time on _cvconnd as [source service_id from_stop_time] 2024/07/03 21:38:47 Created index idx__cvconnd3_source_service_id_from_stop_time ok 2024/07/03 21:38:47 Create index idx__cvcaltoservice2_service_date_source on _cvcaltoservice as [service_date source] 2024/07/03 21:38:47 Created index idx__cvcaltoservice2_service_date_source ok 2024/07/03 21:38:47 Loading schema indexes ok 2024/07/03 21:38:47 Loading views ok 2024/07/03 21:38:47 Loaded view _vsources (bytes=2888) 2024/07/03 21:38:47 Loaded view _vstopparent (bytes=2589) 2024/07/03 21:38:47 Loaded view _vconnd (bytes=1214) 2024/07/03 21:38:47 Loaded view _vconndverbose (bytes=1065) 2024/07/03 21:38:47 Loaded view _vcaltoservice (bytes=4202) 2024/07/03 21:38:47 Loaded view _vtransferstbl (bytes=920) 2024/07/03 21:38:47 Loaded view _vtransfersgen (bytes=1538) 2024/07/03 21:38:47 Loaded view _vtransfersimplicit (bytes=365) 2024/07/03 21:38:47 Loading views ok 2024/07/03 21:38:47 Importing table from //tmp/mobroute_test_mobdb_2950999461.csv (0.00MB) to table: _mdb 2024/07/03 21:38:47 Last checksum vs current: / C_0M_9f8bf2f56eda86c7eef98edcc9db65c8f7ca5d06aea0c74ba2a5b5eaebe9e2f0; import will occur 2024/07/03 21:38:47 Imported 1 rows into _mdb ok 2024/07/03 21:38:47 Imported table from //tmp/mobroute_test_mobdb_2950999461.csv to table: _mdb ok 2024/07/03 21:38:47 Applied filter (null) matched 1 Mobility DB GTFS sources: [42] 2024/07/03 21:38:47 Running Load against 1 sources 2024/07/03 21:38:47 Loading mdbid 42 (1 of 1) 2024/07/03 21:38:47 Loading /tmp/704954071.zip to DB with source name: 42 2024/07/03 21:38:47 Loaded GTFS Archive /tmp/704954071.zip to temporary directory: /tmp/mobroute_tempdir2035656496 2024/07/03 21:38:47 Loading table: agency 2024/07/03 21:38:47 Importing table from /tmp/mobroute_tempdir2035656496/agency.txt (0.00MB) to table: agency 2024/07/03 21:38:47 Last checksum vs current: / C_0M_ec69cc35698113d39b116d06df83c168ff34eec1dd5daa90136c2ccdddd57966; import will occur 2024/07/03 21:38:47 Imported 1 rows into agency ok 2024/07/03 21:38:47 Imported table from /tmp/mobroute_tempdir2035656496/agency.txt to table: agency ok 2024/07/03 21:38:47 Loading table: agency complete 2024/07/03 21:38:47 Loading table: calendar 2024/07/03 21:38:47 Importing table from /tmp/mobroute_tempdir2035656496/calendar.txt (0.00MB) to table: calendar 2024/07/03 21:38:47 Skipped import for non-existant non-required file: /tmp/mobroute_tempdir2035656496/calendar.txt 2024/07/03 21:38:47 Loading table: calendar complete 2024/07/03 21:38:47 Loading table: calendar_dates 2024/07/03 21:38:47 Importing table from /tmp/mobroute_tempdir2035656496/calendar_dates.txt (0.00MB) to table: calendar_dates 2024/07/03 21:38:47 Last checksum vs current: / C_0M_e37e371e5f8c7c355413d55fe59c9054de3dbf0d759f0bcd6ef7968b46cde54e; import will occur 2024/07/03 21:38:47 Imported 1 rows into calendar_dates ok 2024/07/03 21:38:47 Imported table from /tmp/mobroute_tempdir2035656496/calendar_dates.txt to table: calendar_dates ok 2024/07/03 21:38:47 Loading table: calendar_dates complete 2024/07/03 21:38:47 Loading table: stop_times 2024/07/03 21:38:47 Importing table from /tmp/mobroute_tempdir2035656496/stop_times.txt (0.00MB) to table: stop_times 2024/07/03 21:38:47 Last checksum vs current: / C_0M_34d5ab6ee7cbb3e04fd82bd1dca86e4daecfa570a11b128209c8e5c102662d0a; import will occur 2024/07/03 21:38:47 Imported 1 rows into stop_times ok 2024/07/03 21:38:47 Imported table from /tmp/mobroute_tempdir2035656496/stop_times.txt to table: stop_times ok 2024/07/03 21:38:47 Loading table: stop_times complete 2024/07/03 21:38:47 Loading table: stops 2024/07/03 21:38:47 Importing table from /tmp/mobroute_tempdir2035656496/stops.txt (0.00MB) to table: stops 2024/07/03 21:38:47 Last checksum vs current: / C_0M_658a3f90ef5c5b6b531059c770014493d5c29ff969ad1e41a9df10615e479366; import will occur 2024/07/03 21:38:47 Imported 10 rows into stops ok 2024/07/03 21:38:47 Imported table from /tmp/mobroute_tempdir2035656496/stops.txt to table: stops ok 2024/07/03 21:38:47 Loading table: stops complete 2024/07/03 21:38:47 Loading table: trips 2024/07/03 21:38:47 Importing table from /tmp/mobroute_tempdir2035656496/trips.txt (0.00MB) to table: trips 2024/07/03 21:38:47 Last checksum vs current: / C_0M_0391ceb043162a440ba78564cae799b0c9b0004ac42d27290246145bfa780435; import will occur 2024/07/03 21:38:47 Imported 1 rows into trips ok 2024/07/03 21:38:47 Imported table from /tmp/mobroute_tempdir2035656496/trips.txt to table: trips ok 2024/07/03 21:38:47 Loading table: trips complete 2024/07/03 21:38:47 Loading table: routes 2024/07/03 21:38:47 Importing table from /tmp/mobroute_tempdir2035656496/routes.txt (0.00MB) to table: routes 2024/07/03 21:38:47 Last checksum vs current: / C_0M_a6031af6418607a6e5f51c20eaa22f422664f8d5254c59438ab18ce7e1e97cf8; import will occur 2024/07/03 21:38:47 Imported 1 rows into routes ok 2024/07/03 21:38:47 Imported table from /tmp/mobroute_tempdir2035656496/routes.txt to table: routes ok 2024/07/03 21:38:47 Loading table: routes complete 2024/07/03 21:38:47 Loading table: transfers 2024/07/03 21:38:47 Importing table from /tmp/mobroute_tempdir2035656496/transfers.txt (0.00MB) to table: transfers 2024/07/03 21:38:47 Skipped import for non-existant non-required file: /tmp/mobroute_tempdir2035656496/transfers.txt 2024/07/03 21:38:47 Loading table: transfers complete 2024/07/03 21:38:47 Loaded /tmp/704954071.zip to DB with source name: 42 ok 2024/07/03 21:38:47 Loading mdbid 42 ok; used cache for URL download (true) 2024/07/03 21:38:47 Running Load against 1 sources ok 2024/07/03 21:38:47 Running Compute against 1 sources 2024/07/03 21:38:47 Computed table _cvconnd for source (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/07/03 21:38:47 Computed table _cvcaltoservice for source (42 ) out of date - updating ('' vs '42:stops:C_0M_658a3f90ef5c5b6b531059c770014493d5c29ff969ad1e41a9df10615e479366') 2024/07/03 21:38:47 Computed table _cvtransfersgen for source (42 0xc0002054a8) out of date - updating ('' vs '42:stops:C_0M_658a3f90ef5c5b6b531059c770014493d5c29ff969ad1e41a9df10615e479366') 2024/07/03 21:38:47 Running Compute against 1 sources ok 2024/07/03 21:38:47 Opening DB in RO mode: file:/tmp/mobroute_test_sqlite_3530622882.db?mode=ro 2024/07/03 21:38:47 Loading select source, stop_id, parent_station from _vstopparent where source = ? ([42]) to memory 2024/07/03 21:38:47 Loaded select source, stop_id, parent_station from _vstopparent where source = ? ([42]) to memory ok (len=10) --- PASS: Test_LoadStopToParent (0.02s) PASS ok git.sr.ht/~mil/mobroute/dbstubquery_test 0.340s ? 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_Zero --- PASS: Test_DistHaversine_Zero (0.00s) === RUN Test_DistHaversine_Case --- PASS: Test_DistHaversine_Case (0.00s) === RUN Test_TimezoneToUTCDeltaSecs --- PASS: Test_TimezoneToUTCDeltaSecs (0.00s) PASS ok git.sr.ht/~mil/mobroute/util/utilfuncs_test 0.002s ? git.sr.ht/~mil/mobroute/util/utillog [no test files] >>> mobroute: Entering fakeroot... >>> mobroute-doc*: Running split function 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: 88.0 KB >>> mobroute-doc*: Compressing data... >>> mobroute-doc*: Create checksum... >>> mobroute-doc*: Create mobroute-doc-0.5.0-r2.apk >>> mobroute*: Tracing dependencies... tzdata so:libc.musl-ppc64le.so.1 >>> mobroute*: Package size: 10.1 MB >>> mobroute*: Compressing data... >>> mobroute*: Create checksum... >>> mobroute*: Create mobroute-0.5.0-r2.apk >>> mobroute: Build complete at Wed, 03 Jul 2024 21:38:48 +0000 elapsed time 0h 2m 3s >>> mobroute: Cleaning up srcdir >>> mobroute: Cleaning up pkgdir >>> mobroute: Uninstalling dependencies... (1/3) Purging .makedepends-mobroute (20240703.213647) (2/3) Purging tzdata (2024a-r1) (3/3) Purging go (1.22.5-r0) Executing busybox-1.36.1-r31.trigger OK: 265 MiB in 110 packages >>> mobroute: Updating the testing/ppc64le repository index... >>> mobroute: Signing the index...