>>> mobroute: Building testing/mobroute 0.5.0-r2 (using abuild 3.13.0-r3) started Wed, 03 Jul 2024 21:11:48 +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.211150) Executing busybox-1.36.1-r31.trigger OK: 562 MiB in 110 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 % Total % Received % Xferd Average Speed Time Time Time Current Dload Upload Total Spent Left Speed 0 0 0 0 0 0 0 0 --:--:-- --:--:-- --:--:-- 0 100 70058 100 70058 0 0 458k 0 --:--:-- --:--:-- --:--:-- 459k >>> 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/edge/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:12:59 Generated mock: (gtfs zips: [/tmp/3323642956.zip]) (mobdb csv: /tmp/mobroute_test_mobdb_241297325.csv) 2024/07/03 21:12:59 Running route API against input: {"load":{"filter":{},"config":{"mdb_csv":"file:///tmp/mobroute_test_mobdb_241297325.csv","sqlite_db":"/tmp/mobroute_test_sqlite_3202398589.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:12:59 SQLite system version (3.45.1); comparing to required version: 3.28.0 2024/07/03 21:12:59 Loading schema tables 2024/07/03 21:12:59 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:12:59 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:12:59 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:12:59 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:12:59 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:12:59 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:12:59 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:12:59 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:12:59 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:12:59 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:12:59 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:12:59 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:12:59 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:12:59 Loading schema tables ok 2024/07/03 21:12:59 Loading schema indexes 2024/07/03 21:12:59 Create index idx_stop_times1_departure_time on stop_times as [departure_time] 2024/07/03 21:12:59 Created index idx_stop_times1_departure_time ok 2024/07/03 21:12:59 Create index idx_stop_times1_trip_id on stop_times as [trip_id] 2024/07/03 21:12:59 Created index idx_stop_times1_trip_id ok 2024/07/03 21:12:59 Create index idx_stops2_source_stop_id on stops as [source stop_id] 2024/07/03 21:12:59 Created index idx_stops2_source_stop_id ok 2024/07/03 21:12:59 Create index idx_stops2_stop_lat_stop_lon on stops as [stop_lat stop_lon] 2024/07/03 21:12:59 Created index idx_stops2_stop_lat_stop_lon ok 2024/07/03 21:12:59 Create index idx_transfers2_source_from_stop_id on transfers as [source from_stop_id] 2024/07/03 21:12:59 Created index idx_transfers2_source_from_stop_id ok 2024/07/03 21:12:59 Create index idx_transfers2_source_to_stop_id on transfers as [source to_stop_id] 2024/07/03 21:12:59 Created index idx_transfers2_source_to_stop_id ok 2024/07/03 21:12:59 Create index idx__cvconnd3_source_service_id_from_stop_time on _cvconnd as [source service_id from_stop_time] 2024/07/03 21:12:59 Created index idx__cvconnd3_source_service_id_from_stop_time ok 2024/07/03 21:12:59 Create index idx__cvcaltoservice2_service_date_source on _cvcaltoservice as [service_date source] 2024/07/03 21:12:59 Created index idx__cvcaltoservice2_service_date_source ok 2024/07/03 21:12:59 Loading schema indexes ok 2024/07/03 21:12:59 Loading views ok 2024/07/03 21:12:59 Loaded view _vsources (bytes=2888) 2024/07/03 21:12:59 Loaded view _vstopparent (bytes=2589) 2024/07/03 21:12:59 Loaded view _vconnd (bytes=1214) 2024/07/03 21:12:59 Loaded view _vconndverbose (bytes=1065) 2024/07/03 21:12:59 Loaded view _vcaltoservice (bytes=4202) 2024/07/03 21:12:59 Loaded view _vtransferstbl (bytes=920) 2024/07/03 21:12:59 Loaded view _vtransfersgen (bytes=1538) 2024/07/03 21:12:59 Loaded view _vtransfersimplicit (bytes=365) 2024/07/03 21:12:59 Loading views ok 2024/07/03 21:12:59 Importing table from //tmp/mobroute_test_mobdb_241297325.csv (0.00MB) to table: _mdb 2024/07/03 21:12:59 Last checksum vs current: / C_0M_ce84f119d8ded00dd0cec632f6c4a9b408bcd2d3a2cd6ef63b8e13b337c86b39; import will occur 2024/07/03 21:12:59 Imported 1 rows into _mdb ok 2024/07/03 21:12:59 Imported table from //tmp/mobroute_test_mobdb_241297325.csv to table: _mdb ok 2024/07/03 21:12:59 Input filter &{[] [] 0 } translated to SQL where clause: '' with args: [] 2024/07/03 21:12:59 Applied filter ({}) matched 1 Mobility DB GTFS sources: [42] 2024/07/03 21:12:59 Running Load against 1 sources 2024/07/03 21:12:59 Loading mdbid 42 (1 of 1) 2024/07/03 21:12:59 Loading /tmp/3323642956.zip to DB with source name: 42 2024/07/03 21:12:59 Loaded GTFS Archive /tmp/3323642956.zip to temporary directory: /tmp/mobroute_tempdir1196993221 2024/07/03 21:12:59 Loading table: agency 2024/07/03 21:12:59 Importing table from /tmp/mobroute_tempdir1196993221/agency.txt (0.00MB) to table: agency 2024/07/03 21:12:59 Last checksum vs current: / C_0M_c15705f0e743a50086d3c871e24b6165b3b4d723a3f96445f676c4216a2fcd14; import will occur 2024/07/03 21:12:59 Imported 1 rows into agency ok 2024/07/03 21:12:59 Imported table from /tmp/mobroute_tempdir1196993221/agency.txt to table: agency ok 2024/07/03 21:12:59 Loading table: agency complete 2024/07/03 21:12:59 Loading table: calendar 2024/07/03 21:12:59 Importing table from /tmp/mobroute_tempdir1196993221/calendar.txt (0.00MB) to table: calendar 2024/07/03 21:12:59 Last checksum vs current: / C_0M_124e46e20a21debc5240cba81ffd1f420ad3546f91373ae55886e911b19b2608; import will occur 2024/07/03 21:12:59 Imported 2 rows into calendar ok 2024/07/03 21:12:59 Imported table from /tmp/mobroute_tempdir1196993221/calendar.txt to table: calendar ok 2024/07/03 21:12:59 Loading table: calendar complete 2024/07/03 21:12:59 Loading table: calendar_dates 2024/07/03 21:12:59 Importing table from /tmp/mobroute_tempdir1196993221/calendar_dates.txt (0.00MB) to table: calendar_dates 2024/07/03 21:12:59 Skipped import for non-existant non-required file: /tmp/mobroute_tempdir1196993221/calendar_dates.txt 2024/07/03 21:12:59 Loading table: calendar_dates complete 2024/07/03 21:12:59 Loading table: stop_times 2024/07/03 21:12:59 Importing table from /tmp/mobroute_tempdir1196993221/stop_times.txt (0.00MB) to table: stop_times 2024/07/03 21:12:59 Last checksum vs current: / C_0M_c720fd568d7d6154f442f16b61c73437ba7452ed091d91c002b4f384d60b36c6; import will occur 2024/07/03 21:12:59 Imported 9 rows into stop_times ok 2024/07/03 21:12:59 Imported table from /tmp/mobroute_tempdir1196993221/stop_times.txt to table: stop_times ok 2024/07/03 21:12:59 Loading table: stop_times complete 2024/07/03 21:12:59 Loading table: stops 2024/07/03 21:12:59 Importing table from /tmp/mobroute_tempdir1196993221/stops.txt (0.00MB) to table: stops 2024/07/03 21:12:59 Last checksum vs current: / C_0M_1e4481e4464525fdf1ea0305fca00f2c9d379749fff7d64a0cd7ffa5175af899; import will occur 2024/07/03 21:12:59 Imported 4 rows into stops ok 2024/07/03 21:12:59 Imported table from /tmp/mobroute_tempdir1196993221/stops.txt to table: stops ok 2024/07/03 21:12:59 Loading table: stops complete 2024/07/03 21:12:59 Loading table: trips 2024/07/03 21:12:59 Importing table from /tmp/mobroute_tempdir1196993221/trips.txt (0.00MB) to table: trips 2024/07/03 21:12:59 Last checksum vs current: / C_0M_0220e37a7822e751eaa95f847f72fd94eb66c922e5a43f58f2bc059b96efdce7; import will occur 2024/07/03 21:12:59 Imported 4 rows into trips ok 2024/07/03 21:12:59 Imported table from /tmp/mobroute_tempdir1196993221/trips.txt to table: trips ok 2024/07/03 21:12:59 Loading table: trips complete 2024/07/03 21:12:59 Loading table: routes 2024/07/03 21:12:59 Importing table from /tmp/mobroute_tempdir1196993221/routes.txt (0.00MB) to table: routes 2024/07/03 21:12:59 Last checksum vs current: / C_0M_adc89b7b4e4f8b88e68bf10397af1fc696e623cfec1d5ebd84a57dfac7953136; import will occur 2024/07/03 21:12:59 Imported 2 rows into routes ok 2024/07/03 21:12:59 Imported table from /tmp/mobroute_tempdir1196993221/routes.txt to table: routes ok 2024/07/03 21:12:59 Loading table: routes complete 2024/07/03 21:12:59 Loading table: transfers 2024/07/03 21:12:59 Importing table from /tmp/mobroute_tempdir1196993221/transfers.txt (0.00MB) to table: transfers 2024/07/03 21:12:59 Skipped import for non-existant non-required file: /tmp/mobroute_tempdir1196993221/transfers.txt 2024/07/03 21:12:59 Loading table: transfers complete 2024/07/03 21:12:59 Loaded /tmp/3323642956.zip to DB with source name: 42 ok 2024/07/03 21:12:59 Loading mdbid 42 ok; used cache for URL download (true) 2024/07/03 21:12:59 Running Load against 1 sources ok 2024/07/03 21:12:59 Running Compute against 1 sources 2024/07/03 21:12:59 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:12:59 Computed table _cvcaltoservice for source (42 ) out of date - updating ('' vs '42:stops:C_0M_1e4481e4464525fdf1ea0305fca00f2c9d379749fff7d64a0cd7ffa5175af899') 2024/07/03 21:12:59 Computed table _cvtransfersgen for source (42 0xc000385b18) out of date - updating ('' vs '42:stops:C_0M_1e4481e4464525fdf1ea0305fca00f2c9d379749fff7d64a0cd7ffa5175af899') 2024/07/03 21:12:59 Running Compute against 1 sources ok 2024/07/03 21:12:59 Opening DB in RO mode: file:/tmp/mobroute_test_sqlite_3202398589.db?mode=ro 2024/07/03 21:12:59 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 76379 90779 42]) to memory 2024/07/03 21:12:59 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 76379 90779 42]) to memory ok (len=0) --- PASS: Test_ApiRouteYMLGTFS (0.05s) PASS ok git.sr.ht/~mil/mobroute/api/apiroute_test 0.058s ? 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:12:59 CSA Main Loop Begin 2024/07/03 21:12:59 Completed main CSA loop map[a:{1 0} b:{10 0xc000134540 1} c:{20 0xc0001345b0 1} d:{1000 0} e:{1000 0}] 2024/07/03 21:12:59 CSA Main Loop Complete 2024/07/03 21:12:59 CSA Main Loop Begin 2024/07/03 21:12:59 Completed main CSA loop map[a:{-11 0} b:{-3 0xc000134620 1} c:{20 0xc000134690 1} d:{988 0} e:{988 0}] 2024/07/03 21:12:59 CSA Main Loop Complete 2024/07/03 21:12:59 CSA Main Loop Begin 2024/07/03 21:12:59 Completed main CSA loop map[a:{1 0} b:{10 0xc000134700 1} c:{20 0xc000134770 1} d:{1000 0} e:{1000 0} f:{20 0xc000134850 2} g:{11 0xc000134700 1} h:{13 0xc0001347e0 2}] 2024/07/03 21:12:59 CSA Main Loop Complete 2024/07/03 21:12:59 CSA Main Loop Begin 2024/07/03 21:12:59 Completed main CSA loop map[a:{1 0} b:{10 0xc0001348c0 1} c:{20 0xc000134930 1} d:{1000 0} e:{1000 0} f:{15 0xc0001349a0 2}] 2024/07/03 21:12:59 CSA Main Loop Complete 2024/07/03 21:12:59 CSA Main Loop Begin 2024/07/03 21:12:59 Completed main CSA loop map[a:{1 0} b:{10 0xc000134a10 1} c:{20 0xc000134a80 1} d:{1000 0} e:{1000 0} f:{19 0xc000134af0 2} g:{14 0xc000134a10 1} h:{1000 0}] 2024/07/03 21:12:59 CSA Main Loop Complete 2024/07/03 21:12:59 CSA Main Loop Begin 2024/07/03 21:12:59 Completed main CSA loop map[a:{1 0} b:{10 0xc000134b60 1} c:{20 0xc000134bd0 1} d:{1000 0} e:{1000 0} f:{19 0xc000134d20 2} g:{11 0xc000134b60 1} h:{13 0xc000134c40 2} i:{24 0xc000134d90 3} j:{30 0xc000134e00 3}] 2024/07/03 21:12:59 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.004s ? 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:13:00 Generated mock: (gtfs zips: [/tmp/818533433.zip]) (mobdb csv: /tmp/mobroute_test_mobdb_3998337226.csv) 2024/07/03 21:13:00 SQLite system version (3.45.1); comparing to required version: 3.28.0 2024/07/03 21:13:00 Loading schema tables 2024/07/03 21:13:00 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:13:00 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:13:00 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:13:00 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:13:00 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:13:00 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:13:00 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:13:00 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:13:00 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:13:00 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:13:00 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:13:00 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:13:00 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:13:00 Loading schema tables ok 2024/07/03 21:13:00 Loading schema indexes 2024/07/03 21:13:00 Create index idx_stop_times1_departure_time on stop_times as [departure_time] 2024/07/03 21:13:00 Created index idx_stop_times1_departure_time ok 2024/07/03 21:13:00 Create index idx_stop_times1_trip_id on stop_times as [trip_id] 2024/07/03 21:13:00 Created index idx_stop_times1_trip_id ok 2024/07/03 21:13:00 Create index idx_stops2_source_stop_id on stops as [source stop_id] 2024/07/03 21:13:00 Created index idx_stops2_source_stop_id ok 2024/07/03 21:13:00 Create index idx_stops2_stop_lat_stop_lon on stops as [stop_lat stop_lon] 2024/07/03 21:13:00 Created index idx_stops2_stop_lat_stop_lon ok 2024/07/03 21:13:00 Create index idx_transfers2_source_from_stop_id on transfers as [source from_stop_id] 2024/07/03 21:13:00 Created index idx_transfers2_source_from_stop_id ok 2024/07/03 21:13:00 Create index idx_transfers2_source_to_stop_id on transfers as [source to_stop_id] 2024/07/03 21:13:00 Created index idx_transfers2_source_to_stop_id ok 2024/07/03 21:13:00 Create index idx__cvconnd3_source_service_id_from_stop_time on _cvconnd as [source service_id from_stop_time] 2024/07/03 21:13:00 Created index idx__cvconnd3_source_service_id_from_stop_time ok 2024/07/03 21:13:00 Create index idx__cvcaltoservice2_service_date_source on _cvcaltoservice as [service_date source] 2024/07/03 21:13:00 Created index idx__cvcaltoservice2_service_date_source ok 2024/07/03 21:13:00 Loading schema indexes ok 2024/07/03 21:13:00 Loading views ok 2024/07/03 21:13:00 Loaded view _vsources (bytes=2888) 2024/07/03 21:13:00 Loaded view _vstopparent (bytes=2589) 2024/07/03 21:13:00 Loaded view _vconnd (bytes=1214) 2024/07/03 21:13:00 Loaded view _vconndverbose (bytes=1065) 2024/07/03 21:13:00 Loaded view _vcaltoservice (bytes=4202) 2024/07/03 21:13:00 Loaded view _vtransferstbl (bytes=920) 2024/07/03 21:13:00 Loaded view _vtransfersgen (bytes=1538) 2024/07/03 21:13:00 Loaded view _vtransfersimplicit (bytes=365) 2024/07/03 21:13:00 Loading views ok 2024/07/03 21:13:00 Importing table from //tmp/mobroute_test_mobdb_3998337226.csv (0.00MB) to table: _mdb 2024/07/03 21:13:00 Last checksum vs current: / C_0M_d04836b5e556e2cef8d973fd8515e682764d6199c940e52b7f03ac15e31221a8; import will occur 2024/07/03 21:13:00 Imported 1 rows into _mdb ok 2024/07/03 21:13:00 Imported table from //tmp/mobroute_test_mobdb_3998337226.csv to table: _mdb ok 2024/07/03 21:13:00 Applied filter (null) matched 1 Mobility DB GTFS sources: [42] 2024/07/03 21:13:00 Running Load against 1 sources 2024/07/03 21:13:00 Loading mdbid 42 (1 of 1) 2024/07/03 21:13:00 Loading /tmp/818533433.zip to DB with source name: 42 2024/07/03 21:13:00 Loaded GTFS Archive /tmp/818533433.zip to temporary directory: /tmp/mobroute_tempdir3961512222 2024/07/03 21:13:00 Loading table: agency 2024/07/03 21:13:00 Importing table from /tmp/mobroute_tempdir3961512222/agency.txt (0.00MB) to table: agency 2024/07/03 21:13:00 Last checksum vs current: / C_0M_c15705f0e743a50086d3c871e24b6165b3b4d723a3f96445f676c4216a2fcd14; import will occur 2024/07/03 21:13:00 Imported 1 rows into agency ok 2024/07/03 21:13:00 Imported table from /tmp/mobroute_tempdir3961512222/agency.txt to table: agency ok 2024/07/03 21:13:00 Loading table: agency complete 2024/07/03 21:13:00 Loading table: calendar 2024/07/03 21:13:00 Importing table from /tmp/mobroute_tempdir3961512222/calendar.txt (0.00MB) to table: calendar 2024/07/03 21:13:00 Last checksum vs current: / C_0M_124e46e20a21debc5240cba81ffd1f420ad3546f91373ae55886e911b19b2608; import will occur 2024/07/03 21:13:00 Imported 2 rows into calendar ok 2024/07/03 21:13:00 Imported table from /tmp/mobroute_tempdir3961512222/calendar.txt to table: calendar ok 2024/07/03 21:13:00 Loading table: calendar complete 2024/07/03 21:13:00 Loading table: calendar_dates 2024/07/03 21:13:00 Importing table from /tmp/mobroute_tempdir3961512222/calendar_dates.txt (0.00MB) to table: calendar_dates 2024/07/03 21:13:00 Skipped import for non-existant non-required file: /tmp/mobroute_tempdir3961512222/calendar_dates.txt 2024/07/03 21:13:00 Loading table: calendar_dates complete 2024/07/03 21:13:00 Loading table: stop_times 2024/07/03 21:13:00 Importing table from /tmp/mobroute_tempdir3961512222/stop_times.txt (0.00MB) to table: stop_times 2024/07/03 21:13:00 Last checksum vs current: / C_0M_c720fd568d7d6154f442f16b61c73437ba7452ed091d91c002b4f384d60b36c6; import will occur 2024/07/03 21:13:00 Imported 9 rows into stop_times ok 2024/07/03 21:13:00 Imported table from /tmp/mobroute_tempdir3961512222/stop_times.txt to table: stop_times ok 2024/07/03 21:13:00 Loading table: stop_times complete 2024/07/03 21:13:00 Loading table: stops 2024/07/03 21:13:00 Importing table from /tmp/mobroute_tempdir3961512222/stops.txt (0.00MB) to table: stops 2024/07/03 21:13:00 Last checksum vs current: / C_0M_1e4481e4464525fdf1ea0305fca00f2c9d379749fff7d64a0cd7ffa5175af899; import will occur 2024/07/03 21:13:00 Imported 4 rows into stops ok 2024/07/03 21:13:00 Imported table from /tmp/mobroute_tempdir3961512222/stops.txt to table: stops ok 2024/07/03 21:13:00 Loading table: stops complete 2024/07/03 21:13:00 Loading table: trips 2024/07/03 21:13:00 Importing table from /tmp/mobroute_tempdir3961512222/trips.txt (0.00MB) to table: trips 2024/07/03 21:13:00 Last checksum vs current: / C_0M_0220e37a7822e751eaa95f847f72fd94eb66c922e5a43f58f2bc059b96efdce7; import will occur 2024/07/03 21:13:00 Imported 4 rows into trips ok 2024/07/03 21:13:00 Imported table from /tmp/mobroute_tempdir3961512222/trips.txt to table: trips ok 2024/07/03 21:13:00 Loading table: trips complete 2024/07/03 21:13:00 Loading table: routes 2024/07/03 21:13:00 Importing table from /tmp/mobroute_tempdir3961512222/routes.txt (0.00MB) to table: routes 2024/07/03 21:13:00 Last checksum vs current: / C_0M_adc89b7b4e4f8b88e68bf10397af1fc696e623cfec1d5ebd84a57dfac7953136; import will occur 2024/07/03 21:13:00 Imported 2 rows into routes ok 2024/07/03 21:13:00 Imported table from /tmp/mobroute_tempdir3961512222/routes.txt to table: routes ok 2024/07/03 21:13:00 Loading table: routes complete 2024/07/03 21:13:00 Loading table: transfers 2024/07/03 21:13:00 Importing table from /tmp/mobroute_tempdir3961512222/transfers.txt (0.00MB) to table: transfers 2024/07/03 21:13:00 Skipped import for non-existant non-required file: /tmp/mobroute_tempdir3961512222/transfers.txt 2024/07/03 21:13:00 Loading table: transfers complete 2024/07/03 21:13:00 Loaded /tmp/818533433.zip to DB with source name: 42 ok 2024/07/03 21:13:00 Loading mdbid 42 ok; used cache for URL download (true) 2024/07/03 21:13:00 Running Load against 1 sources ok 2024/07/03 21:13:00 Running Compute against 1 sources 2024/07/03 21:13:00 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:13:00 Computed table _cvcaltoservice for source (42 ) out of date - updating ('' vs '42:stops:C_0M_1e4481e4464525fdf1ea0305fca00f2c9d379749fff7d64a0cd7ffa5175af899') 2024/07/03 21:13:00 Computed table _cvtransfersgen for source (42 0xc00042ebf8) out of date - updating ('' vs '42:stops:C_0M_1e4481e4464525fdf1ea0305fca00f2c9d379749fff7d64a0cd7ffa5175af899') 2024/07/03 21:13:00 Running Compute against 1 sources ok 2024/07/03 21:13:00 Opening DB in RO mode: file:/tmp/mobroute_test_sqlite_154741754.db?mode=ro 2024/07/03 21:13:00 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:13:00 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:13:00 Generated mock: (gtfs zips: [/tmp/669153999.zip]) (mobdb csv: /tmp/mobroute_test_mobdb_54111586.csv) 2024/07/03 21:13:00 SQLite system version (3.45.1); comparing to required version: 3.28.0 2024/07/03 21:13:00 Loading schema tables 2024/07/03 21:13:00 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:13:00 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:13:00 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:13:00 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:13:00 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:13:00 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:13:00 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:13:00 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:13:00 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:13:00 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:13:00 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:13:00 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:13:00 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:13:00 Loading schema tables ok 2024/07/03 21:13:00 Loading schema indexes 2024/07/03 21:13:00 Create index idx_stop_times1_departure_time on stop_times as [departure_time] 2024/07/03 21:13:00 Created index idx_stop_times1_departure_time ok 2024/07/03 21:13:00 Create index idx_stop_times1_trip_id on stop_times as [trip_id] 2024/07/03 21:13:00 Created index idx_stop_times1_trip_id ok 2024/07/03 21:13:00 Create index idx_stops2_source_stop_id on stops as [source stop_id] 2024/07/03 21:13:00 Created index idx_stops2_source_stop_id ok 2024/07/03 21:13:00 Create index idx_stops2_stop_lat_stop_lon on stops as [stop_lat stop_lon] 2024/07/03 21:13:00 Created index idx_stops2_stop_lat_stop_lon ok 2024/07/03 21:13:00 Create index idx_transfers2_source_from_stop_id on transfers as [source from_stop_id] 2024/07/03 21:13:00 Created index idx_transfers2_source_from_stop_id ok 2024/07/03 21:13:00 Create index idx_transfers2_source_to_stop_id on transfers as [source to_stop_id] 2024/07/03 21:13:00 Created index idx_transfers2_source_to_stop_id ok 2024/07/03 21:13:00 Create index idx__cvconnd3_source_service_id_from_stop_time on _cvconnd as [source service_id from_stop_time] 2024/07/03 21:13:00 Created index idx__cvconnd3_source_service_id_from_stop_time ok 2024/07/03 21:13:00 Create index idx__cvcaltoservice2_service_date_source on _cvcaltoservice as [service_date source] 2024/07/03 21:13:00 Created index idx__cvcaltoservice2_service_date_source ok 2024/07/03 21:13:00 Loading schema indexes ok 2024/07/03 21:13:00 Loading views ok 2024/07/03 21:13:00 Loaded view _vsources (bytes=2888) 2024/07/03 21:13:00 Loaded view _vstopparent (bytes=2589) 2024/07/03 21:13:00 Loaded view _vconnd (bytes=1214) 2024/07/03 21:13:00 Loaded view _vconndverbose (bytes=1065) 2024/07/03 21:13:00 Loaded view _vcaltoservice (bytes=4202) 2024/07/03 21:13:00 Loaded view _vtransferstbl (bytes=920) 2024/07/03 21:13:00 Loaded view _vtransfersgen (bytes=1538) 2024/07/03 21:13:00 Loaded view _vtransfersimplicit (bytes=365) 2024/07/03 21:13:00 Loading views ok 2024/07/03 21:13:00 Importing table from //tmp/mobroute_test_mobdb_54111586.csv (0.00MB) to table: _mdb 2024/07/03 21:13:00 Last checksum vs current: / C_0M_6e31da801100528fb621f8c6f97406f156c2bee1a097cc21f69db48cf409475c; import will occur 2024/07/03 21:13:00 Imported 1 rows into _mdb ok 2024/07/03 21:13:00 Imported table from //tmp/mobroute_test_mobdb_54111586.csv to table: _mdb ok 2024/07/03 21:13:00 Applied filter (null) matched 1 Mobility DB GTFS sources: [42] 2024/07/03 21:13:00 Running Load against 1 sources 2024/07/03 21:13:00 Loading mdbid 42 (1 of 1) 2024/07/03 21:13:00 Loading /tmp/669153999.zip to DB with source name: 42 2024/07/03 21:13:00 Loaded GTFS Archive /tmp/669153999.zip to temporary directory: /tmp/mobroute_tempdir3483320128 2024/07/03 21:13:00 Loading table: agency 2024/07/03 21:13:00 Importing table from /tmp/mobroute_tempdir3483320128/agency.txt (0.00MB) to table: agency 2024/07/03 21:13:00 Last checksum vs current: / C_0M_c15705f0e743a50086d3c871e24b6165b3b4d723a3f96445f676c4216a2fcd14; import will occur 2024/07/03 21:13:00 Imported 1 rows into agency ok 2024/07/03 21:13:00 Imported table from /tmp/mobroute_tempdir3483320128/agency.txt to table: agency ok 2024/07/03 21:13:00 Loading table: agency complete 2024/07/03 21:13:00 Loading table: calendar 2024/07/03 21:13:00 Importing table from /tmp/mobroute_tempdir3483320128/calendar.txt (0.00MB) to table: calendar 2024/07/03 21:13:00 Last checksum vs current: / C_0M_124e46e20a21debc5240cba81ffd1f420ad3546f91373ae55886e911b19b2608; import will occur 2024/07/03 21:13:00 Imported 2 rows into calendar ok 2024/07/03 21:13:00 Imported table from /tmp/mobroute_tempdir3483320128/calendar.txt to table: calendar ok 2024/07/03 21:13:00 Loading table: calendar complete 2024/07/03 21:13:00 Loading table: calendar_dates 2024/07/03 21:13:00 Importing table from /tmp/mobroute_tempdir3483320128/calendar_dates.txt (0.00MB) to table: calendar_dates 2024/07/03 21:13:00 Skipped import for non-existant non-required file: /tmp/mobroute_tempdir3483320128/calendar_dates.txt 2024/07/03 21:13:00 Loading table: calendar_dates complete 2024/07/03 21:13:00 Loading table: stop_times 2024/07/03 21:13:00 Importing table from /tmp/mobroute_tempdir3483320128/stop_times.txt (0.00MB) to table: stop_times 2024/07/03 21:13:00 Last checksum vs current: / C_0M_c720fd568d7d6154f442f16b61c73437ba7452ed091d91c002b4f384d60b36c6; import will occur 2024/07/03 21:13:00 Imported 9 rows into stop_times ok 2024/07/03 21:13:00 Imported table from /tmp/mobroute_tempdir3483320128/stop_times.txt to table: stop_times ok 2024/07/03 21:13:00 Loading table: stop_times complete 2024/07/03 21:13:00 Loading table: stops 2024/07/03 21:13:00 Importing table from /tmp/mobroute_tempdir3483320128/stops.txt (0.00MB) to table: stops 2024/07/03 21:13:00 Last checksum vs current: / C_0M_1e4481e4464525fdf1ea0305fca00f2c9d379749fff7d64a0cd7ffa5175af899; import will occur 2024/07/03 21:13:00 Imported 4 rows into stops ok 2024/07/03 21:13:00 Imported table from /tmp/mobroute_tempdir3483320128/stops.txt to table: stops ok 2024/07/03 21:13:00 Loading table: stops complete 2024/07/03 21:13:00 Loading table: trips 2024/07/03 21:13:00 Importing table from /tmp/mobroute_tempdir3483320128/trips.txt (0.00MB) to table: trips 2024/07/03 21:13:00 Last checksum vs current: / C_0M_0220e37a7822e751eaa95f847f72fd94eb66c922e5a43f58f2bc059b96efdce7; import will occur 2024/07/03 21:13:00 Imported 4 rows into trips ok 2024/07/03 21:13:00 Imported table from /tmp/mobroute_tempdir3483320128/trips.txt to table: trips ok 2024/07/03 21:13:00 Loading table: trips complete 2024/07/03 21:13:00 Loading table: routes 2024/07/03 21:13:00 Importing table from /tmp/mobroute_tempdir3483320128/routes.txt (0.00MB) to table: routes 2024/07/03 21:13:00 Last checksum vs current: / C_0M_adc89b7b4e4f8b88e68bf10397af1fc696e623cfec1d5ebd84a57dfac7953136; import will occur 2024/07/03 21:13:00 Imported 2 rows into routes ok 2024/07/03 21:13:00 Imported table from /tmp/mobroute_tempdir3483320128/routes.txt to table: routes ok 2024/07/03 21:13:00 Loading table: routes complete 2024/07/03 21:13:00 Loading table: transfers 2024/07/03 21:13:00 Importing table from /tmp/mobroute_tempdir3483320128/transfers.txt (0.00MB) to table: transfers 2024/07/03 21:13:00 Skipped import for non-existant non-required file: /tmp/mobroute_tempdir3483320128/transfers.txt 2024/07/03 21:13:00 Loading table: transfers complete 2024/07/03 21:13:00 Loaded /tmp/669153999.zip to DB with source name: 42 ok 2024/07/03 21:13:00 Loading mdbid 42 ok; used cache for URL download (true) 2024/07/03 21:13:00 Running Load against 1 sources ok 2024/07/03 21:13:00 Running Compute against 1 sources 2024/07/03 21:13:00 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:13:00 Computed table _cvcaltoservice for source (42 ) out of date - updating ('' vs '42:stops:C_0M_1e4481e4464525fdf1ea0305fca00f2c9d379749fff7d64a0cd7ffa5175af899') 2024/07/03 21:13:00 Computed table _cvtransfersgen for source (42 0xc0004ecf68) out of date - updating ('' vs '42:stops:C_0M_1e4481e4464525fdf1ea0305fca00f2c9d379749fff7d64a0cd7ffa5175af899') 2024/07/03 21:13:00 Running Compute against 1 sources ok 2024/07/03 21:13:00 Opening DB in RO mode: file:/tmp/mobroute_test_sqlite_2055196302.db?mode=ro 2024/07/03 21:13:00 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:13:00 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:13:00 Generated mock: (gtfs zips: [/tmp/1015993190.zip /tmp/3539511515.zip]) (mobdb csv: /tmp/mobroute_test_mobdb_2572620185.csv) 2024/07/03 21:13:00 SQLite system version (3.45.1); comparing to required version: 3.28.0 2024/07/03 21:13:00 Loading schema tables 2024/07/03 21:13:00 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:13:00 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:13:00 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:13:00 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:13:00 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:13:00 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:13:00 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:13:00 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:13:00 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:13:00 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:13:00 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:13:00 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:13:00 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:13:00 Loading schema tables ok 2024/07/03 21:13:00 Loading schema indexes 2024/07/03 21:13:00 Create index idx_stop_times1_departure_time on stop_times as [departure_time] 2024/07/03 21:13:00 Created index idx_stop_times1_departure_time ok 2024/07/03 21:13:00 Create index idx_stop_times1_trip_id on stop_times as [trip_id] 2024/07/03 21:13:00 Created index idx_stop_times1_trip_id ok 2024/07/03 21:13:00 Create index idx_stops2_source_stop_id on stops as [source stop_id] 2024/07/03 21:13:00 Created index idx_stops2_source_stop_id ok 2024/07/03 21:13:00 Create index idx_stops2_stop_lat_stop_lon on stops as [stop_lat stop_lon] 2024/07/03 21:13:00 Created index idx_stops2_stop_lat_stop_lon ok 2024/07/03 21:13:00 Create index idx_transfers2_source_from_stop_id on transfers as [source from_stop_id] 2024/07/03 21:13:00 Created index idx_transfers2_source_from_stop_id ok 2024/07/03 21:13:00 Create index idx_transfers2_source_to_stop_id on transfers as [source to_stop_id] 2024/07/03 21:13:00 Created index idx_transfers2_source_to_stop_id ok 2024/07/03 21:13:00 Create index idx__cvconnd3_source_service_id_from_stop_time on _cvconnd as [source service_id from_stop_time] 2024/07/03 21:13:00 Created index idx__cvconnd3_source_service_id_from_stop_time ok 2024/07/03 21:13:00 Create index idx__cvcaltoservice2_service_date_source on _cvcaltoservice as [service_date source] 2024/07/03 21:13:00 Created index idx__cvcaltoservice2_service_date_source ok 2024/07/03 21:13:00 Loading schema indexes ok 2024/07/03 21:13:00 Loading views ok 2024/07/03 21:13:00 Loaded view _vsources (bytes=2888) 2024/07/03 21:13:00 Loaded view _vstopparent (bytes=2589) 2024/07/03 21:13:00 Loaded view _vconnd (bytes=1214) 2024/07/03 21:13:00 Loaded view _vconndverbose (bytes=1065) 2024/07/03 21:13:00 Loaded view _vcaltoservice (bytes=4202) 2024/07/03 21:13:00 Loaded view _vtransferstbl (bytes=920) 2024/07/03 21:13:00 Loaded view _vtransfersgen (bytes=1538) 2024/07/03 21:13:00 Loaded view _vtransfersimplicit (bytes=365) 2024/07/03 21:13:00 Loading views ok 2024/07/03 21:13:00 Importing table from //tmp/mobroute_test_mobdb_2572620185.csv (0.00MB) to table: _mdb 2024/07/03 21:13:00 Last checksum vs current: / C_0M_d38f91480be503419cfc1ac3d6770b0a4beb69baee92a7b80351ed3edfe2f95c; import will occur 2024/07/03 21:13:00 Imported 2 rows into _mdb ok 2024/07/03 21:13:00 Imported table from //tmp/mobroute_test_mobdb_2572620185.csv to table: _mdb ok 2024/07/03 21:13:00 Applied filter (null) matched 2 Mobility DB GTFS sources: [42 43] 2024/07/03 21:13:00 Running Load against 2 sources 2024/07/03 21:13:00 Loading mdbid 42 (1 of 2) 2024/07/03 21:13:00 Loading /tmp/1015993190.zip to DB with source name: 42 2024/07/03 21:13:00 Loaded GTFS Archive /tmp/1015993190.zip to temporary directory: /tmp/mobroute_tempdir2589460994 2024/07/03 21:13:00 Loading table: agency 2024/07/03 21:13:00 Importing table from /tmp/mobroute_tempdir2589460994/agency.txt (0.00MB) to table: agency 2024/07/03 21:13:00 Last checksum vs current: / C_0M_c15705f0e743a50086d3c871e24b6165b3b4d723a3f96445f676c4216a2fcd14; import will occur 2024/07/03 21:13:00 Imported 1 rows into agency ok 2024/07/03 21:13:00 Imported table from /tmp/mobroute_tempdir2589460994/agency.txt to table: agency ok 2024/07/03 21:13:00 Loading table: agency complete 2024/07/03 21:13:00 Loading table: calendar 2024/07/03 21:13:00 Importing table from /tmp/mobroute_tempdir2589460994/calendar.txt (0.00MB) to table: calendar 2024/07/03 21:13:00 Last checksum vs current: / C_0M_124e46e20a21debc5240cba81ffd1f420ad3546f91373ae55886e911b19b2608; import will occur 2024/07/03 21:13:00 Imported 2 rows into calendar ok 2024/07/03 21:13:00 Imported table from /tmp/mobroute_tempdir2589460994/calendar.txt to table: calendar ok 2024/07/03 21:13:00 Loading table: calendar complete 2024/07/03 21:13:00 Loading table: calendar_dates 2024/07/03 21:13:00 Importing table from /tmp/mobroute_tempdir2589460994/calendar_dates.txt (0.00MB) to table: calendar_dates 2024/07/03 21:13:00 Skipped import for non-existant non-required file: /tmp/mobroute_tempdir2589460994/calendar_dates.txt 2024/07/03 21:13:00 Loading table: calendar_dates complete 2024/07/03 21:13:00 Loading table: stop_times 2024/07/03 21:13:00 Importing table from /tmp/mobroute_tempdir2589460994/stop_times.txt (0.00MB) to table: stop_times 2024/07/03 21:13:00 Last checksum vs current: / C_0M_c720fd568d7d6154f442f16b61c73437ba7452ed091d91c002b4f384d60b36c6; import will occur 2024/07/03 21:13:00 Imported 9 rows into stop_times ok 2024/07/03 21:13:00 Imported table from /tmp/mobroute_tempdir2589460994/stop_times.txt to table: stop_times ok 2024/07/03 21:13:00 Loading table: stop_times complete 2024/07/03 21:13:00 Loading table: stops 2024/07/03 21:13:00 Importing table from /tmp/mobroute_tempdir2589460994/stops.txt (0.00MB) to table: stops 2024/07/03 21:13:00 Last checksum vs current: / C_0M_1e4481e4464525fdf1ea0305fca00f2c9d379749fff7d64a0cd7ffa5175af899; import will occur 2024/07/03 21:13:00 Imported 4 rows into stops ok 2024/07/03 21:13:00 Imported table from /tmp/mobroute_tempdir2589460994/stops.txt to table: stops ok 2024/07/03 21:13:00 Loading table: stops complete 2024/07/03 21:13:00 Loading table: trips 2024/07/03 21:13:00 Importing table from /tmp/mobroute_tempdir2589460994/trips.txt (0.00MB) to table: trips 2024/07/03 21:13:00 Last checksum vs current: / C_0M_0220e37a7822e751eaa95f847f72fd94eb66c922e5a43f58f2bc059b96efdce7; import will occur 2024/07/03 21:13:00 Imported 4 rows into trips ok 2024/07/03 21:13:00 Imported table from /tmp/mobroute_tempdir2589460994/trips.txt to table: trips ok 2024/07/03 21:13:00 Loading table: trips complete 2024/07/03 21:13:00 Loading table: routes 2024/07/03 21:13:00 Importing table from /tmp/mobroute_tempdir2589460994/routes.txt (0.00MB) to table: routes 2024/07/03 21:13:00 Last checksum vs current: / C_0M_adc89b7b4e4f8b88e68bf10397af1fc696e623cfec1d5ebd84a57dfac7953136; import will occur 2024/07/03 21:13:00 Imported 2 rows into routes ok 2024/07/03 21:13:00 Imported table from /tmp/mobroute_tempdir2589460994/routes.txt to table: routes ok 2024/07/03 21:13:00 Loading table: routes complete 2024/07/03 21:13:00 Loading table: transfers 2024/07/03 21:13:00 Importing table from /tmp/mobroute_tempdir2589460994/transfers.txt (0.00MB) to table: transfers 2024/07/03 21:13:00 Skipped import for non-existant non-required file: /tmp/mobroute_tempdir2589460994/transfers.txt 2024/07/03 21:13:00 Loading table: transfers complete 2024/07/03 21:13:00 Loaded /tmp/1015993190.zip to DB with source name: 42 ok 2024/07/03 21:13:00 Loading mdbid 42 ok; used cache for URL download (true) 2024/07/03 21:13:00 Loading mdbid 43 (2 of 2) 2024/07/03 21:13:00 Loading /tmp/3539511515.zip to DB with source name: 43 2024/07/03 21:13:00 Loaded GTFS Archive /tmp/3539511515.zip to temporary directory: /tmp/mobroute_tempdir2656310284 2024/07/03 21:13:00 Loading table: agency 2024/07/03 21:13:00 Importing table from /tmp/mobroute_tempdir2656310284/agency.txt (0.00MB) to table: agency 2024/07/03 21:13:00 Last checksum vs current: / C_0M_ff0363444c30e50468d902237b474ab438a9e78058f5bc3e72580097a477a123; import will occur 2024/07/03 21:13:00 Imported 1 rows into agency ok 2024/07/03 21:13:00 Imported table from /tmp/mobroute_tempdir2656310284/agency.txt to table: agency ok 2024/07/03 21:13:00 Loading table: agency complete 2024/07/03 21:13:00 Loading table: calendar 2024/07/03 21:13:00 Importing table from /tmp/mobroute_tempdir2656310284/calendar.txt (0.00MB) to table: calendar 2024/07/03 21:13:00 Last checksum vs current: / C_0M_124e46e20a21debc5240cba81ffd1f420ad3546f91373ae55886e911b19b2608; import will occur 2024/07/03 21:13:00 Imported 2 rows into calendar ok 2024/07/03 21:13:00 Imported table from /tmp/mobroute_tempdir2656310284/calendar.txt to table: calendar ok 2024/07/03 21:13:00 Loading table: calendar complete 2024/07/03 21:13:00 Loading table: calendar_dates 2024/07/03 21:13:00 Importing table from /tmp/mobroute_tempdir2656310284/calendar_dates.txt (0.00MB) to table: calendar_dates 2024/07/03 21:13:00 Skipped import for non-existant non-required file: /tmp/mobroute_tempdir2656310284/calendar_dates.txt 2024/07/03 21:13:00 Loading table: calendar_dates complete 2024/07/03 21:13:00 Loading table: stop_times 2024/07/03 21:13:00 Importing table from /tmp/mobroute_tempdir2656310284/stop_times.txt (0.00MB) to table: stop_times 2024/07/03 21:13:00 Last checksum vs current: / C_0M_c720fd568d7d6154f442f16b61c73437ba7452ed091d91c002b4f384d60b36c6; import will occur 2024/07/03 21:13:00 Imported 9 rows into stop_times ok 2024/07/03 21:13:00 Imported table from /tmp/mobroute_tempdir2656310284/stop_times.txt to table: stop_times ok 2024/07/03 21:13:00 Loading table: stop_times complete 2024/07/03 21:13:00 Loading table: stops 2024/07/03 21:13:00 Importing table from /tmp/mobroute_tempdir2656310284/stops.txt (0.00MB) to table: stops 2024/07/03 21:13:00 Last checksum vs current: / C_0M_1e4481e4464525fdf1ea0305fca00f2c9d379749fff7d64a0cd7ffa5175af899; import will occur 2024/07/03 21:13:00 Imported 4 rows into stops ok 2024/07/03 21:13:00 Imported table from /tmp/mobroute_tempdir2656310284/stops.txt to table: stops ok 2024/07/03 21:13:00 Loading table: stops complete 2024/07/03 21:13:00 Loading table: trips 2024/07/03 21:13:00 Importing table from /tmp/mobroute_tempdir2656310284/trips.txt (0.00MB) to table: trips 2024/07/03 21:13:00 Last checksum vs current: / C_0M_0220e37a7822e751eaa95f847f72fd94eb66c922e5a43f58f2bc059b96efdce7; import will occur 2024/07/03 21:13:00 Imported 4 rows into trips ok 2024/07/03 21:13:00 Imported table from /tmp/mobroute_tempdir2656310284/trips.txt to table: trips ok 2024/07/03 21:13:00 Loading table: trips complete 2024/07/03 21:13:00 Loading table: routes 2024/07/03 21:13:00 Importing table from /tmp/mobroute_tempdir2656310284/routes.txt (0.00MB) to table: routes 2024/07/03 21:13:00 Last checksum vs current: / C_0M_adc89b7b4e4f8b88e68bf10397af1fc696e623cfec1d5ebd84a57dfac7953136; import will occur 2024/07/03 21:13:00 Imported 2 rows into routes ok 2024/07/03 21:13:00 Imported table from /tmp/mobroute_tempdir2656310284/routes.txt to table: routes ok 2024/07/03 21:13:00 Loading table: routes complete 2024/07/03 21:13:00 Loading table: transfers 2024/07/03 21:13:00 Importing table from /tmp/mobroute_tempdir2656310284/transfers.txt (0.00MB) to table: transfers 2024/07/03 21:13:00 Skipped import for non-existant non-required file: /tmp/mobroute_tempdir2656310284/transfers.txt 2024/07/03 21:13:00 Loading table: transfers complete 2024/07/03 21:13:00 Loaded /tmp/3539511515.zip to DB with source name: 43 ok 2024/07/03 21:13:00 Loading mdbid 43 ok; used cache for URL download (true) 2024/07/03 21:13:00 Running Load against 2 sources ok 2024/07/03 21:13:00 Running Compute against 2 sources 2024/07/03 21:13:00 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:13:00 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:13:00 Computed table _cvcaltoservice for source (42 ) out of date - updating ('' vs '42:stops:C_0M_1e4481e4464525fdf1ea0305fca00f2c9d379749fff7d64a0cd7ffa5175af899') 2024/07/03 21:13:00 Computed table _cvcaltoservice for source (43 ) out of date - updating ('' vs '43:stops:C_0M_1e4481e4464525fdf1ea0305fca00f2c9d379749fff7d64a0cd7ffa5175af899') 2024/07/03 21:13:00 Computed table _cvtransfersgen for source (42 0xc0002637c8) out of date - updating ('' vs '42:stops:C_0M_1e4481e4464525fdf1ea0305fca00f2c9d379749fff7d64a0cd7ffa5175af899') 2024/07/03 21:13:00 Computed table _cvtransfersgen for source (42 0xc0002637d8) out of date - updating ('' vs '42:stops:C_0M_1e4481e4464525fdf1ea0305fca00f2c9d379749fff7d64a0cd7ffa5175af899,43:stops:C_0M_1e4481e4464525fdf1ea0305fca00f2c9d379749fff7d64a0cd7ffa5175af899') 2024/07/03 21:13:00 Computed table _cvtransfersgen for source (43 0xc0002637f8) out of date - updating ('' vs '43:stops:C_0M_1e4481e4464525fdf1ea0305fca00f2c9d379749fff7d64a0cd7ffa5175af899') 2024/07/03 21:13:00 Running Compute against 2 sources ok 2024/07/03 21:13:00 Opening DB in RO mode: file:/tmp/mobroute_test_sqlite_817287314.db?mode=ro 2024/07/03 21:13:00 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:13:00 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.16s) === RUN Test_LoadConnectionsVerbose 2024/07/03 21:13:00 Generated mock: (gtfs zips: [/tmp/364716395.zip]) (mobdb csv: /tmp/mobroute_test_mobdb_669772752.csv) 2024/07/03 21:13:00 SQLite system version (3.45.1); comparing to required version: 3.28.0 2024/07/03 21:13:00 Loading schema tables 2024/07/03 21:13:00 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:13:00 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:13:00 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:13:00 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:13:00 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:13:00 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:13:00 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:13:00 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:13:00 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:13:00 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:13:00 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:13:00 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:13:00 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:13:00 Loading schema tables ok 2024/07/03 21:13:00 Loading schema indexes 2024/07/03 21:13:00 Create index idx_stop_times1_departure_time on stop_times as [departure_time] 2024/07/03 21:13:00 Created index idx_stop_times1_departure_time ok 2024/07/03 21:13:00 Create index idx_stop_times1_trip_id on stop_times as [trip_id] 2024/07/03 21:13:00 Created index idx_stop_times1_trip_id ok 2024/07/03 21:13:00 Create index idx_stops2_source_stop_id on stops as [source stop_id] 2024/07/03 21:13:00 Created index idx_stops2_source_stop_id ok 2024/07/03 21:13:00 Create index idx_stops2_stop_lat_stop_lon on stops as [stop_lat stop_lon] 2024/07/03 21:13:00 Created index idx_stops2_stop_lat_stop_lon ok 2024/07/03 21:13:00 Create index idx_transfers2_source_from_stop_id on transfers as [source from_stop_id] 2024/07/03 21:13:00 Created index idx_transfers2_source_from_stop_id ok 2024/07/03 21:13:00 Create index idx_transfers2_source_to_stop_id on transfers as [source to_stop_id] 2024/07/03 21:13:00 Created index idx_transfers2_source_to_stop_id ok 2024/07/03 21:13:00 Create index idx__cvconnd3_source_service_id_from_stop_time on _cvconnd as [source service_id from_stop_time] 2024/07/03 21:13:00 Created index idx__cvconnd3_source_service_id_from_stop_time ok 2024/07/03 21:13:00 Create index idx__cvcaltoservice2_service_date_source on _cvcaltoservice as [service_date source] 2024/07/03 21:13:00 Created index idx__cvcaltoservice2_service_date_source ok 2024/07/03 21:13:00 Loading schema indexes ok 2024/07/03 21:13:00 Loading views ok 2024/07/03 21:13:00 Loaded view _vsources (bytes=2888) 2024/07/03 21:13:00 Loaded view _vstopparent (bytes=2589) 2024/07/03 21:13:00 Loaded view _vconnd (bytes=1214) 2024/07/03 21:13:00 Loaded view _vconndverbose (bytes=1065) 2024/07/03 21:13:00 Loaded view _vcaltoservice (bytes=4202) 2024/07/03 21:13:00 Loaded view _vtransferstbl (bytes=920) 2024/07/03 21:13:00 Loaded view _vtransfersgen (bytes=1538) 2024/07/03 21:13:00 Loaded view _vtransfersimplicit (bytes=365) 2024/07/03 21:13:00 Loading views ok 2024/07/03 21:13:00 Importing table from //tmp/mobroute_test_mobdb_669772752.csv (0.00MB) to table: _mdb 2024/07/03 21:13:00 Last checksum vs current: / C_0M_0e5cb655e1a2bc0b43f9166971a037d922ea46a1acd26ad8ca2028ce442a9858; import will occur 2024/07/03 21:13:00 Imported 1 rows into _mdb ok 2024/07/03 21:13:00 Imported table from //tmp/mobroute_test_mobdb_669772752.csv to table: _mdb ok 2024/07/03 21:13:00 Applied filter (null) matched 1 Mobility DB GTFS sources: [42] 2024/07/03 21:13:00 Running Load against 1 sources 2024/07/03 21:13:00 Loading mdbid 42 (1 of 1) 2024/07/03 21:13:00 Loading /tmp/364716395.zip to DB with source name: 42 2024/07/03 21:13:00 Loaded GTFS Archive /tmp/364716395.zip to temporary directory: /tmp/mobroute_tempdir34743551 2024/07/03 21:13:00 Loading table: agency 2024/07/03 21:13:00 Importing table from /tmp/mobroute_tempdir34743551/agency.txt (0.00MB) to table: agency 2024/07/03 21:13:00 Last checksum vs current: / C_0M_ba39c5c760c18856a8bb3e6b63e9688c4cf76a4800d54373e7084f0f7e01d7b3; import will occur 2024/07/03 21:13:00 Imported 1 rows into agency ok 2024/07/03 21:13:00 Imported table from /tmp/mobroute_tempdir34743551/agency.txt to table: agency ok 2024/07/03 21:13:00 Loading table: agency complete 2024/07/03 21:13:00 Loading table: calendar 2024/07/03 21:13:00 Importing table from /tmp/mobroute_tempdir34743551/calendar.txt (0.00MB) to table: calendar 2024/07/03 21:13:00 Last checksum vs current: / C_0M_124e46e20a21debc5240cba81ffd1f420ad3546f91373ae55886e911b19b2608; import will occur 2024/07/03 21:13:00 Imported 2 rows into calendar ok 2024/07/03 21:13:00 Imported table from /tmp/mobroute_tempdir34743551/calendar.txt to table: calendar ok 2024/07/03 21:13:00 Loading table: calendar complete 2024/07/03 21:13:00 Loading table: calendar_dates 2024/07/03 21:13:00 Importing table from /tmp/mobroute_tempdir34743551/calendar_dates.txt (0.00MB) to table: calendar_dates 2024/07/03 21:13:00 Skipped import for non-existant non-required file: /tmp/mobroute_tempdir34743551/calendar_dates.txt 2024/07/03 21:13:00 Loading table: calendar_dates complete 2024/07/03 21:13:00 Loading table: stop_times 2024/07/03 21:13:00 Importing table from /tmp/mobroute_tempdir34743551/stop_times.txt (0.00MB) to table: stop_times 2024/07/03 21:13:00 Last checksum vs current: / C_0M_d9bce8ae7ee7dfa8ffc2951ca370d0c3a5e3a3b34a234791d52a7ee735613704; import will occur 2024/07/03 21:13:00 Imported 4 rows into stop_times ok 2024/07/03 21:13:00 Imported table from /tmp/mobroute_tempdir34743551/stop_times.txt to table: stop_times ok 2024/07/03 21:13:00 Loading table: stop_times complete 2024/07/03 21:13:00 Loading table: stops 2024/07/03 21:13:00 Importing table from /tmp/mobroute_tempdir34743551/stops.txt (0.00MB) to table: stops 2024/07/03 21:13:00 Last checksum vs current: / C_0M_0a1e1a76e511685c15e5b6fbd35e233bbdcaba3f388e7381cc9e2bc2e0233b07; import will occur 2024/07/03 21:13:00 Imported 5 rows into stops ok 2024/07/03 21:13:00 Imported table from /tmp/mobroute_tempdir34743551/stops.txt to table: stops ok 2024/07/03 21:13:00 Loading table: stops complete 2024/07/03 21:13:00 Loading table: trips 2024/07/03 21:13:00 Importing table from /tmp/mobroute_tempdir34743551/trips.txt (0.00MB) to table: trips 2024/07/03 21:13:00 Last checksum vs current: / C_0M_192859d996a594c799ed78e3d50de8364a2d585195de939c4e1c218633e55290; import will occur 2024/07/03 21:13:00 Imported 2 rows into trips ok 2024/07/03 21:13:00 Imported table from /tmp/mobroute_tempdir34743551/trips.txt to table: trips ok 2024/07/03 21:13:00 Loading table: trips complete 2024/07/03 21:13:00 Loading table: routes 2024/07/03 21:13:00 Importing table from /tmp/mobroute_tempdir34743551/routes.txt (0.00MB) to table: routes 2024/07/03 21:13:00 Last checksum vs current: / C_0M_a6031af6418607a6e5f51c20eaa22f422664f8d5254c59438ab18ce7e1e97cf8; import will occur 2024/07/03 21:13:00 Imported 1 rows into routes ok 2024/07/03 21:13:00 Imported table from /tmp/mobroute_tempdir34743551/routes.txt to table: routes ok 2024/07/03 21:13:00 Loading table: routes complete 2024/07/03 21:13:00 Loading table: transfers 2024/07/03 21:13:00 Importing table from /tmp/mobroute_tempdir34743551/transfers.txt (0.00MB) to table: transfers 2024/07/03 21:13:00 Skipped import for non-existant non-required file: /tmp/mobroute_tempdir34743551/transfers.txt 2024/07/03 21:13:00 Loading table: transfers complete 2024/07/03 21:13:00 Loaded /tmp/364716395.zip to DB with source name: 42 ok 2024/07/03 21:13:00 Loading mdbid 42 ok; used cache for URL download (true) 2024/07/03 21:13:00 Running Load against 1 sources ok 2024/07/03 21:13:00 Running Compute against 1 sources 2024/07/03 21:13:00 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:13:00 Computed table _cvcaltoservice for source (42 ) out of date - updating ('' vs '42:stops:C_0M_0a1e1a76e511685c15e5b6fbd35e233bbdcaba3f388e7381cc9e2bc2e0233b07') 2024/07/03 21:13:00 Computed table _cvtransfersgen for source (42 0xc0003b64c8) out of date - updating ('' vs '42:stops:C_0M_0a1e1a76e511685c15e5b6fbd35e233bbdcaba3f388e7381cc9e2bc2e0233b07') 2024/07/03 21:13:00 Running Compute against 1 sources ok 2024/07/03 21:13:00 Opening DB in RO mode: file:/tmp/mobroute_test_sqlite_3995158336.db?mode=ro 2024/07/03 21:13:00 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:13:00 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:13:00 Generated mock: (gtfs zips: [/tmp/3243857937.zip]) (mobdb csv: /tmp/mobroute_test_mobdb_2866119539.csv) 2024/07/03 21:13:00 SQLite system version (3.45.1); comparing to required version: 3.28.0 2024/07/03 21:13:00 Loading schema tables 2024/07/03 21:13:00 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:13:00 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:13:00 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:13:00 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:13:00 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:13:00 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:13:00 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:13:00 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:13:00 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:13:00 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:13:00 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:13:00 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:13:00 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:13:00 Loading schema tables ok 2024/07/03 21:13:00 Loading schema indexes 2024/07/03 21:13:00 Create index idx_stop_times1_departure_time on stop_times as [departure_time] 2024/07/03 21:13:00 Created index idx_stop_times1_departure_time ok 2024/07/03 21:13:00 Create index idx_stop_times1_trip_id on stop_times as [trip_id] 2024/07/03 21:13:00 Created index idx_stop_times1_trip_id ok 2024/07/03 21:13:00 Create index idx_stops2_source_stop_id on stops as [source stop_id] 2024/07/03 21:13:00 Created index idx_stops2_source_stop_id ok 2024/07/03 21:13:00 Create index idx_stops2_stop_lat_stop_lon on stops as [stop_lat stop_lon] 2024/07/03 21:13:00 Created index idx_stops2_stop_lat_stop_lon ok 2024/07/03 21:13:00 Create index idx_transfers2_source_from_stop_id on transfers as [source from_stop_id] 2024/07/03 21:13:00 Created index idx_transfers2_source_from_stop_id ok 2024/07/03 21:13:00 Create index idx_transfers2_source_to_stop_id on transfers as [source to_stop_id] 2024/07/03 21:13:00 Created index idx_transfers2_source_to_stop_id ok 2024/07/03 21:13:00 Create index idx__cvconnd3_source_service_id_from_stop_time on _cvconnd as [source service_id from_stop_time] 2024/07/03 21:13:00 Created index idx__cvconnd3_source_service_id_from_stop_time ok 2024/07/03 21:13:00 Create index idx__cvcaltoservice2_service_date_source on _cvcaltoservice as [service_date source] 2024/07/03 21:13:00 Created index idx__cvcaltoservice2_service_date_source ok 2024/07/03 21:13:00 Loading schema indexes ok 2024/07/03 21:13:00 Loading views ok 2024/07/03 21:13:00 Loaded view _vsources (bytes=2888) 2024/07/03 21:13:00 Loaded view _vstopparent (bytes=2589) 2024/07/03 21:13:00 Loaded view _vconnd (bytes=1214) 2024/07/03 21:13:00 Loaded view _vconndverbose (bytes=1065) 2024/07/03 21:13:00 Loaded view _vcaltoservice (bytes=4202) 2024/07/03 21:13:00 Loaded view _vtransferstbl (bytes=920) 2024/07/03 21:13:00 Loaded view _vtransfersgen (bytes=1538) 2024/07/03 21:13:00 Loaded view _vtransfersimplicit (bytes=365) 2024/07/03 21:13:00 Loading views ok 2024/07/03 21:13:00 Importing table from //tmp/mobroute_test_mobdb_2866119539.csv (0.00MB) to table: _mdb 2024/07/03 21:13:00 Last checksum vs current: / C_0M_44a8bdd4e028531c42d5ec5efb296f4bff795a7fb39cb230307c9ac41e3618f4; import will occur 2024/07/03 21:13:00 Imported 1 rows into _mdb ok 2024/07/03 21:13:00 Imported table from //tmp/mobroute_test_mobdb_2866119539.csv to table: _mdb ok 2024/07/03 21:13:00 Applied filter (null) matched 1 Mobility DB GTFS sources: [42] 2024/07/03 21:13:00 Running Load against 1 sources 2024/07/03 21:13:00 Loading mdbid 42 (1 of 1) 2024/07/03 21:13:00 Loading /tmp/3243857937.zip to DB with source name: 42 2024/07/03 21:13:00 Loaded GTFS Archive /tmp/3243857937.zip to temporary directory: /tmp/mobroute_tempdir1462723652 2024/07/03 21:13:00 Loading table: agency 2024/07/03 21:13:00 Importing table from /tmp/mobroute_tempdir1462723652/agency.txt (0.00MB) to table: agency 2024/07/03 21:13:00 Last checksum vs current: / C_0M_c15705f0e743a50086d3c871e24b6165b3b4d723a3f96445f676c4216a2fcd14; import will occur 2024/07/03 21:13:00 Imported 1 rows into agency ok 2024/07/03 21:13:00 Imported table from /tmp/mobroute_tempdir1462723652/agency.txt to table: agency ok 2024/07/03 21:13:00 Loading table: agency complete 2024/07/03 21:13:00 Loading table: calendar 2024/07/03 21:13:00 Importing table from /tmp/mobroute_tempdir1462723652/calendar.txt (0.00MB) to table: calendar 2024/07/03 21:13:00 Last checksum vs current: / C_0M_124e46e20a21debc5240cba81ffd1f420ad3546f91373ae55886e911b19b2608; import will occur 2024/07/03 21:13:00 Imported 2 rows into calendar ok 2024/07/03 21:13:00 Imported table from /tmp/mobroute_tempdir1462723652/calendar.txt to table: calendar ok 2024/07/03 21:13:00 Loading table: calendar complete 2024/07/03 21:13:00 Loading table: calendar_dates 2024/07/03 21:13:00 Importing table from /tmp/mobroute_tempdir1462723652/calendar_dates.txt (0.00MB) to table: calendar_dates 2024/07/03 21:13:00 Skipped import for non-existant non-required file: /tmp/mobroute_tempdir1462723652/calendar_dates.txt 2024/07/03 21:13:00 Loading table: calendar_dates complete 2024/07/03 21:13:00 Loading table: stop_times 2024/07/03 21:13:00 Importing table from /tmp/mobroute_tempdir1462723652/stop_times.txt (0.00MB) to table: stop_times 2024/07/03 21:13:00 Last checksum vs current: / C_0M_d9bce8ae7ee7dfa8ffc2951ca370d0c3a5e3a3b34a234791d52a7ee735613704; import will occur 2024/07/03 21:13:00 Imported 4 rows into stop_times ok 2024/07/03 21:13:00 Imported table from /tmp/mobroute_tempdir1462723652/stop_times.txt to table: stop_times ok 2024/07/03 21:13:00 Loading table: stop_times complete 2024/07/03 21:13:00 Loading table: stops 2024/07/03 21:13:00 Importing table from /tmp/mobroute_tempdir1462723652/stops.txt (0.00MB) to table: stops 2024/07/03 21:13:00 Last checksum vs current: / C_0M_0a1e1a76e511685c15e5b6fbd35e233bbdcaba3f388e7381cc9e2bc2e0233b07; import will occur 2024/07/03 21:13:00 Imported 5 rows into stops ok 2024/07/03 21:13:00 Imported table from /tmp/mobroute_tempdir1462723652/stops.txt to table: stops ok 2024/07/03 21:13:00 Loading table: stops complete 2024/07/03 21:13:00 Loading table: trips 2024/07/03 21:13:00 Importing table from /tmp/mobroute_tempdir1462723652/trips.txt (0.00MB) to table: trips 2024/07/03 21:13:00 Last checksum vs current: / C_0M_192859d996a594c799ed78e3d50de8364a2d585195de939c4e1c218633e55290; import will occur 2024/07/03 21:13:00 Imported 2 rows into trips ok 2024/07/03 21:13:00 Imported table from /tmp/mobroute_tempdir1462723652/trips.txt to table: trips ok 2024/07/03 21:13:00 Loading table: trips complete 2024/07/03 21:13:00 Loading table: routes 2024/07/03 21:13:00 Importing table from /tmp/mobroute_tempdir1462723652/routes.txt (0.00MB) to table: routes 2024/07/03 21:13:00 Last checksum vs current: / C_0M_a6031af6418607a6e5f51c20eaa22f422664f8d5254c59438ab18ce7e1e97cf8; import will occur 2024/07/03 21:13:00 Imported 1 rows into routes ok 2024/07/03 21:13:00 Imported table from /tmp/mobroute_tempdir1462723652/routes.txt to table: routes ok 2024/07/03 21:13:00 Loading table: routes complete 2024/07/03 21:13:00 Loading table: transfers 2024/07/03 21:13:00 Importing table from /tmp/mobroute_tempdir1462723652/transfers.txt (0.00MB) to table: transfers 2024/07/03 21:13:00 Skipped import for non-existant non-required file: /tmp/mobroute_tempdir1462723652/transfers.txt 2024/07/03 21:13:00 Loading table: transfers complete 2024/07/03 21:13:00 Loaded /tmp/3243857937.zip to DB with source name: 42 ok 2024/07/03 21:13:00 Loading mdbid 42 ok; used cache for URL download (true) 2024/07/03 21:13:00 Running Load against 1 sources ok 2024/07/03 21:13:00 Running Compute against 1 sources 2024/07/03 21:13:00 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:13:00 Computed table _cvcaltoservice for source (42 ) out of date - updating ('' vs '42:stops:C_0M_0a1e1a76e511685c15e5b6fbd35e233bbdcaba3f388e7381cc9e2bc2e0233b07') 2024/07/03 21:13:00 Computed table _cvtransfersgen for source (42 0xc0002632a8) out of date - updating ('' vs '42:stops:C_0M_0a1e1a76e511685c15e5b6fbd35e233bbdcaba3f388e7381cc9e2bc2e0233b07') 2024/07/03 21:13:00 Running Compute against 1 sources ok 2024/07/03 21:13:00 Opening DB in RO mode: file:/tmp/mobroute_test_sqlite_3196949673.db?mode=ro 2024/07/03 21:13:00 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:13:00 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:13:00 Generated mock: (gtfs zips: [/tmp/2090452524.zip]) (mobdb csv: /tmp/mobroute_test_mobdb_948553793.csv) 2024/07/03 21:13:01 SQLite system version (3.45.1); comparing to required version: 3.28.0 2024/07/03 21:13:01 Loading schema tables 2024/07/03 21:13:01 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:13:01 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:13:01 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:13:01 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:13:01 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:13:01 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:13:01 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:13:01 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:13:01 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:13:01 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:13:01 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:13:01 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:13:01 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:13:01 Loading schema tables ok 2024/07/03 21:13:01 Loading schema indexes 2024/07/03 21:13:01 Create index idx_stop_times1_departure_time on stop_times as [departure_time] 2024/07/03 21:13:01 Created index idx_stop_times1_departure_time ok 2024/07/03 21:13:01 Create index idx_stop_times1_trip_id on stop_times as [trip_id] 2024/07/03 21:13:01 Created index idx_stop_times1_trip_id ok 2024/07/03 21:13:01 Create index idx_stops2_source_stop_id on stops as [source stop_id] 2024/07/03 21:13:01 Created index idx_stops2_source_stop_id ok 2024/07/03 21:13:01 Create index idx_stops2_stop_lat_stop_lon on stops as [stop_lat stop_lon] 2024/07/03 21:13:01 Created index idx_stops2_stop_lat_stop_lon ok 2024/07/03 21:13:01 Create index idx_transfers2_source_from_stop_id on transfers as [source from_stop_id] 2024/07/03 21:13:01 Created index idx_transfers2_source_from_stop_id ok 2024/07/03 21:13:01 Create index idx_transfers2_source_to_stop_id on transfers as [source to_stop_id] 2024/07/03 21:13:01 Created index idx_transfers2_source_to_stop_id ok 2024/07/03 21:13:01 Create index idx__cvconnd3_source_service_id_from_stop_time on _cvconnd as [source service_id from_stop_time] 2024/07/03 21:13:01 Created index idx__cvconnd3_source_service_id_from_stop_time ok 2024/07/03 21:13:01 Create index idx__cvcaltoservice2_service_date_source on _cvcaltoservice as [service_date source] 2024/07/03 21:13:01 Created index idx__cvcaltoservice2_service_date_source ok 2024/07/03 21:13:01 Loading schema indexes ok 2024/07/03 21:13:01 Loading views ok 2024/07/03 21:13:01 Loaded view _vsources (bytes=2888) 2024/07/03 21:13:01 Loaded view _vstopparent (bytes=2589) 2024/07/03 21:13:01 Loaded view _vconnd (bytes=1214) 2024/07/03 21:13:01 Loaded view _vconndverbose (bytes=1065) 2024/07/03 21:13:01 Loaded view _vcaltoservice (bytes=4202) 2024/07/03 21:13:01 Loaded view _vtransferstbl (bytes=920) 2024/07/03 21:13:01 Loaded view _vtransfersgen (bytes=1538) 2024/07/03 21:13:01 Loaded view _vtransfersimplicit (bytes=365) 2024/07/03 21:13:01 Loading views ok 2024/07/03 21:13:01 Importing table from //tmp/mobroute_test_mobdb_948553793.csv (0.00MB) to table: _mdb 2024/07/03 21:13:01 Last checksum vs current: / C_0M_ed1b50094314bea458eb215e2cd2177c1d4a6c58650c88542253805691a17e91; import will occur 2024/07/03 21:13:01 Imported 1 rows into _mdb ok 2024/07/03 21:13:01 Imported table from //tmp/mobroute_test_mobdb_948553793.csv to table: _mdb ok 2024/07/03 21:13:01 Applied filter (null) matched 1 Mobility DB GTFS sources: [42] 2024/07/03 21:13:01 Running Load against 1 sources 2024/07/03 21:13:01 Loading mdbid 42 (1 of 1) 2024/07/03 21:13:01 Loading /tmp/2090452524.zip to DB with source name: 42 2024/07/03 21:13:01 Loaded GTFS Archive /tmp/2090452524.zip to temporary directory: /tmp/mobroute_tempdir2851760315 2024/07/03 21:13:01 Loading table: agency 2024/07/03 21:13:01 Importing table from /tmp/mobroute_tempdir2851760315/agency.txt (0.00MB) to table: agency 2024/07/03 21:13:01 Last checksum vs current: / C_0M_1b19c5b299e31d8d1cfefb7e48146986c62c848400fef102c60695b4f0775d32; import will occur 2024/07/03 21:13:01 Imported 3 rows into agency ok 2024/07/03 21:13:01 Imported table from /tmp/mobroute_tempdir2851760315/agency.txt to table: agency ok 2024/07/03 21:13:01 Loading table: agency complete 2024/07/03 21:13:01 Loading table: calendar 2024/07/03 21:13:01 Importing table from /tmp/mobroute_tempdir2851760315/calendar.txt (0.00MB) to table: calendar 2024/07/03 21:13:01 Last checksum vs current: / C_0M_124e46e20a21debc5240cba81ffd1f420ad3546f91373ae55886e911b19b2608; import will occur 2024/07/03 21:13:01 Imported 2 rows into calendar ok 2024/07/03 21:13:01 Imported table from /tmp/mobroute_tempdir2851760315/calendar.txt to table: calendar ok 2024/07/03 21:13:01 Loading table: calendar complete 2024/07/03 21:13:01 Loading table: calendar_dates 2024/07/03 21:13:01 Importing table from /tmp/mobroute_tempdir2851760315/calendar_dates.txt (0.00MB) to table: calendar_dates 2024/07/03 21:13:01 Skipped import for non-existant non-required file: /tmp/mobroute_tempdir2851760315/calendar_dates.txt 2024/07/03 21:13:01 Loading table: calendar_dates complete 2024/07/03 21:13:01 Loading table: stop_times 2024/07/03 21:13:01 Importing table from /tmp/mobroute_tempdir2851760315/stop_times.txt (0.00MB) to table: stop_times 2024/07/03 21:13:01 Last checksum vs current: / C_0M_f388cfe714ea19d79a0718f2ec6d011ba3747eafdd8040ca160d14b293599e76; import will occur 2024/07/03 21:13:01 Imported 8 rows into stop_times ok 2024/07/03 21:13:01 Imported table from /tmp/mobroute_tempdir2851760315/stop_times.txt to table: stop_times ok 2024/07/03 21:13:01 Loading table: stop_times complete 2024/07/03 21:13:01 Loading table: stops 2024/07/03 21:13:01 Importing table from /tmp/mobroute_tempdir2851760315/stops.txt (0.00MB) to table: stops 2024/07/03 21:13:01 Last checksum vs current: / C_0M_0a1e1a76e511685c15e5b6fbd35e233bbdcaba3f388e7381cc9e2bc2e0233b07; import will occur 2024/07/03 21:13:01 Imported 5 rows into stops ok 2024/07/03 21:13:01 Imported table from /tmp/mobroute_tempdir2851760315/stops.txt to table: stops ok 2024/07/03 21:13:01 Loading table: stops complete 2024/07/03 21:13:01 Loading table: trips 2024/07/03 21:13:01 Importing table from /tmp/mobroute_tempdir2851760315/trips.txt (0.00MB) to table: trips 2024/07/03 21:13:01 Last checksum vs current: / C_0M_40b68a8b536ba5a4e14df14dd606ca3b047f7521077c9aa948e99b2d8615e2ff; import will occur 2024/07/03 21:13:01 Imported 2 rows into trips ok 2024/07/03 21:13:01 Imported table from /tmp/mobroute_tempdir2851760315/trips.txt to table: trips ok 2024/07/03 21:13:01 Loading table: trips complete 2024/07/03 21:13:01 Loading table: routes 2024/07/03 21:13:01 Importing table from /tmp/mobroute_tempdir2851760315/routes.txt (0.00MB) to table: routes 2024/07/03 21:13:01 Last checksum vs current: / C_0M_d6791ceda8f344e670681056012480211612142eddb7ea00221f228f63f5c4a2; import will occur 2024/07/03 21:13:01 Imported 2 rows into routes ok 2024/07/03 21:13:01 Imported table from /tmp/mobroute_tempdir2851760315/routes.txt to table: routes ok 2024/07/03 21:13:01 Loading table: routes complete 2024/07/03 21:13:01 Loading table: transfers 2024/07/03 21:13:01 Importing table from /tmp/mobroute_tempdir2851760315/transfers.txt (0.00MB) to table: transfers 2024/07/03 21:13:01 Skipped import for non-existant non-required file: /tmp/mobroute_tempdir2851760315/transfers.txt 2024/07/03 21:13:01 Loading table: transfers complete 2024/07/03 21:13:01 Loaded /tmp/2090452524.zip to DB with source name: 42 ok 2024/07/03 21:13:01 Loading mdbid 42 ok; used cache for URL download (true) 2024/07/03 21:13:01 Running Load against 1 sources ok 2024/07/03 21:13:01 Running Compute against 1 sources 2024/07/03 21:13:01 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:13:01 Computed table _cvcaltoservice for source (42 ) out of date - updating ('' vs '42:stops:C_0M_0a1e1a76e511685c15e5b6fbd35e233bbdcaba3f388e7381cc9e2bc2e0233b07') 2024/07/03 21:13:01 Computed table _cvtransfersgen for source (42 0xc00042e1e8) out of date - updating ('' vs '42:stops:C_0M_0a1e1a76e511685c15e5b6fbd35e233bbdcaba3f388e7381cc9e2bc2e0233b07') 2024/07/03 21:13:01 Running Compute against 1 sources ok 2024/07/03 21:13:01 Opening DB in RO mode: file:/tmp/mobroute_test_sqlite_164597181.db?mode=ro 2024/07/03 21:13:01 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:13:01 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.12s) === RUN Test_LoadStopWalks 2024/07/03 21:13:01 Generated mock: (gtfs zips: [/tmp/325254085.zip]) (mobdb csv: /tmp/mobroute_test_mobdb_3325635262.csv) 2024/07/03 21:13:01 SQLite system version (3.45.1); comparing to required version: 3.28.0 2024/07/03 21:13:01 Loading schema tables 2024/07/03 21:13:01 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:13:01 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:13:01 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:13:01 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:13:01 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:13:01 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:13:01 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:13:01 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:13:01 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:13:01 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:13:01 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:13:01 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:13:01 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:13:01 Loading schema tables ok 2024/07/03 21:13:01 Loading schema indexes 2024/07/03 21:13:01 Create index idx_stop_times1_departure_time on stop_times as [departure_time] 2024/07/03 21:13:01 Created index idx_stop_times1_departure_time ok 2024/07/03 21:13:01 Create index idx_stop_times1_trip_id on stop_times as [trip_id] 2024/07/03 21:13:01 Created index idx_stop_times1_trip_id ok 2024/07/03 21:13:01 Create index idx_stops2_source_stop_id on stops as [source stop_id] 2024/07/03 21:13:01 Created index idx_stops2_source_stop_id ok 2024/07/03 21:13:01 Create index idx_stops2_stop_lat_stop_lon on stops as [stop_lat stop_lon] 2024/07/03 21:13:01 Created index idx_stops2_stop_lat_stop_lon ok 2024/07/03 21:13:01 Create index idx_transfers2_source_from_stop_id on transfers as [source from_stop_id] 2024/07/03 21:13:01 Created index idx_transfers2_source_from_stop_id ok 2024/07/03 21:13:01 Create index idx_transfers2_source_to_stop_id on transfers as [source to_stop_id] 2024/07/03 21:13:01 Created index idx_transfers2_source_to_stop_id ok 2024/07/03 21:13:01 Create index idx__cvconnd3_source_service_id_from_stop_time on _cvconnd as [source service_id from_stop_time] 2024/07/03 21:13:01 Created index idx__cvconnd3_source_service_id_from_stop_time ok 2024/07/03 21:13:01 Create index idx__cvcaltoservice2_service_date_source on _cvcaltoservice as [service_date source] 2024/07/03 21:13:01 Created index idx__cvcaltoservice2_service_date_source ok 2024/07/03 21:13:01 Loading schema indexes ok 2024/07/03 21:13:01 Loading views ok 2024/07/03 21:13:01 Loaded view _vsources (bytes=2888) 2024/07/03 21:13:01 Loaded view _vstopparent (bytes=2589) 2024/07/03 21:13:01 Loaded view _vconnd (bytes=1214) 2024/07/03 21:13:01 Loaded view _vconndverbose (bytes=1065) 2024/07/03 21:13:01 Loaded view _vcaltoservice (bytes=4202) 2024/07/03 21:13:01 Loaded view _vtransferstbl (bytes=920) 2024/07/03 21:13:01 Loaded view _vtransfersgen (bytes=1538) 2024/07/03 21:13:01 Loaded view _vtransfersimplicit (bytes=365) 2024/07/03 21:13:01 Loading views ok 2024/07/03 21:13:01 Importing table from //tmp/mobroute_test_mobdb_3325635262.csv (0.00MB) to table: _mdb 2024/07/03 21:13:01 Last checksum vs current: / C_0M_478fa2c39fc75a5f96c14bb210154ec3dfb56aa40922a118757961553d61c43a; import will occur 2024/07/03 21:13:01 Imported 1 rows into _mdb ok 2024/07/03 21:13:01 Imported table from //tmp/mobroute_test_mobdb_3325635262.csv to table: _mdb ok 2024/07/03 21:13:01 Applied filter (null) matched 1 Mobility DB GTFS sources: [42] 2024/07/03 21:13:01 Running Load against 1 sources 2024/07/03 21:13:01 Loading mdbid 42 (1 of 1) 2024/07/03 21:13:01 Loading /tmp/325254085.zip to DB with source name: 42 2024/07/03 21:13:01 Loaded GTFS Archive /tmp/325254085.zip to temporary directory: /tmp/mobroute_tempdir4152070812 2024/07/03 21:13:01 Loading table: agency 2024/07/03 21:13:01 Importing table from /tmp/mobroute_tempdir4152070812/agency.txt (0.00MB) to table: agency 2024/07/03 21:13:01 Last checksum vs current: / C_0M_ec69cc35698113d39b116d06df83c168ff34eec1dd5daa90136c2ccdddd57966; import will occur 2024/07/03 21:13:01 Imported 1 rows into agency ok 2024/07/03 21:13:01 Imported table from /tmp/mobroute_tempdir4152070812/agency.txt to table: agency ok 2024/07/03 21:13:01 Loading table: agency complete 2024/07/03 21:13:01 Loading table: calendar 2024/07/03 21:13:01 Importing table from /tmp/mobroute_tempdir4152070812/calendar.txt (0.00MB) to table: calendar 2024/07/03 21:13:01 Skipped import for non-existant non-required file: /tmp/mobroute_tempdir4152070812/calendar.txt 2024/07/03 21:13:01 Loading table: calendar complete 2024/07/03 21:13:01 Loading table: calendar_dates 2024/07/03 21:13:01 Importing table from /tmp/mobroute_tempdir4152070812/calendar_dates.txt (0.00MB) to table: calendar_dates 2024/07/03 21:13:01 Last checksum vs current: / C_0M_e37e371e5f8c7c355413d55fe59c9054de3dbf0d759f0bcd6ef7968b46cde54e; import will occur 2024/07/03 21:13:01 Imported 1 rows into calendar_dates ok 2024/07/03 21:13:01 Imported table from /tmp/mobroute_tempdir4152070812/calendar_dates.txt to table: calendar_dates ok 2024/07/03 21:13:01 Loading table: calendar_dates complete 2024/07/03 21:13:01 Loading table: stop_times 2024/07/03 21:13:01 Importing table from /tmp/mobroute_tempdir4152070812/stop_times.txt (0.00MB) to table: stop_times 2024/07/03 21:13:01 Last checksum vs current: / C_0M_34d5ab6ee7cbb3e04fd82bd1dca86e4daecfa570a11b128209c8e5c102662d0a; import will occur 2024/07/03 21:13:01 Imported 1 rows into stop_times ok 2024/07/03 21:13:01 Imported table from /tmp/mobroute_tempdir4152070812/stop_times.txt to table: stop_times ok 2024/07/03 21:13:01 Loading table: stop_times complete 2024/07/03 21:13:01 Loading table: stops 2024/07/03 21:13:01 Importing table from /tmp/mobroute_tempdir4152070812/stops.txt (0.00MB) to table: stops 2024/07/03 21:13:01 Last checksum vs current: / C_0M_658a3f90ef5c5b6b531059c770014493d5c29ff969ad1e41a9df10615e479366; import will occur 2024/07/03 21:13:01 Imported 10 rows into stops ok 2024/07/03 21:13:01 Imported table from /tmp/mobroute_tempdir4152070812/stops.txt to table: stops ok 2024/07/03 21:13:01 Loading table: stops complete 2024/07/03 21:13:01 Loading table: trips 2024/07/03 21:13:01 Importing table from /tmp/mobroute_tempdir4152070812/trips.txt (0.00MB) to table: trips 2024/07/03 21:13:01 Last checksum vs current: / C_0M_0391ceb043162a440ba78564cae799b0c9b0004ac42d27290246145bfa780435; import will occur 2024/07/03 21:13:01 Imported 1 rows into trips ok 2024/07/03 21:13:01 Imported table from /tmp/mobroute_tempdir4152070812/trips.txt to table: trips ok 2024/07/03 21:13:01 Loading table: trips complete 2024/07/03 21:13:01 Loading table: routes 2024/07/03 21:13:01 Importing table from /tmp/mobroute_tempdir4152070812/routes.txt (0.00MB) to table: routes 2024/07/03 21:13:01 Last checksum vs current: / C_0M_a6031af6418607a6e5f51c20eaa22f422664f8d5254c59438ab18ce7e1e97cf8; import will occur 2024/07/03 21:13:01 Imported 1 rows into routes ok 2024/07/03 21:13:01 Imported table from /tmp/mobroute_tempdir4152070812/routes.txt to table: routes ok 2024/07/03 21:13:01 Loading table: routes complete 2024/07/03 21:13:01 Loading table: transfers 2024/07/03 21:13:01 Importing table from /tmp/mobroute_tempdir4152070812/transfers.txt (0.00MB) to table: transfers 2024/07/03 21:13:01 Skipped import for non-existant non-required file: /tmp/mobroute_tempdir4152070812/transfers.txt 2024/07/03 21:13:01 Loading table: transfers complete 2024/07/03 21:13:01 Loaded /tmp/325254085.zip to DB with source name: 42 ok 2024/07/03 21:13:01 Loading mdbid 42 ok; used cache for URL download (true) 2024/07/03 21:13:01 Running Load against 1 sources ok 2024/07/03 21:13:01 Running Compute against 1 sources 2024/07/03 21:13:01 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:13:01 Computed table _cvcaltoservice for source (42 ) out of date - updating ('' vs '42:stops:C_0M_658a3f90ef5c5b6b531059c770014493d5c29ff969ad1e41a9df10615e479366') 2024/07/03 21:13:01 Computed table _cvtransfersgen for source (42 0xc000014478) out of date - updating ('' vs '42:stops:C_0M_658a3f90ef5c5b6b531059c770014493d5c29ff969ad1e41a9df10615e479366') 2024/07/03 21:13:01 Running Compute against 1 sources ok 2024/07/03 21:13:01 Opening DB in RO mode: file:/tmp/mobroute_test_sqlite_2336848599.db?mode=ro 2024/07/03 21:13:01 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:13:01 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:13:01 Generated mock: (gtfs zips: [/tmp/2592894497.zip]) (mobdb csv: /tmp/mobroute_test_mobdb_1637314425.csv) 2024/07/03 21:13:01 SQLite system version (3.45.1); comparing to required version: 3.28.0 2024/07/03 21:13:01 Loading schema tables 2024/07/03 21:13:01 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:13:01 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:13:01 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:13:01 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:13:01 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:13:01 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:13:01 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:13:01 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:13:01 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:13:01 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:13:01 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:13:01 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:13:01 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:13:01 Loading schema tables ok 2024/07/03 21:13:01 Loading schema indexes 2024/07/03 21:13:01 Create index idx_stop_times1_departure_time on stop_times as [departure_time] 2024/07/03 21:13:01 Created index idx_stop_times1_departure_time ok 2024/07/03 21:13:01 Create index idx_stop_times1_trip_id on stop_times as [trip_id] 2024/07/03 21:13:01 Created index idx_stop_times1_trip_id ok 2024/07/03 21:13:01 Create index idx_stops2_source_stop_id on stops as [source stop_id] 2024/07/03 21:13:01 Created index idx_stops2_source_stop_id ok 2024/07/03 21:13:01 Create index idx_stops2_stop_lat_stop_lon on stops as [stop_lat stop_lon] 2024/07/03 21:13:01 Created index idx_stops2_stop_lat_stop_lon ok 2024/07/03 21:13:01 Create index idx_transfers2_source_from_stop_id on transfers as [source from_stop_id] 2024/07/03 21:13:01 Created index idx_transfers2_source_from_stop_id ok 2024/07/03 21:13:01 Create index idx_transfers2_source_to_stop_id on transfers as [source to_stop_id] 2024/07/03 21:13:01 Created index idx_transfers2_source_to_stop_id ok 2024/07/03 21:13:01 Create index idx__cvconnd3_source_service_id_from_stop_time on _cvconnd as [source service_id from_stop_time] 2024/07/03 21:13:01 Created index idx__cvconnd3_source_service_id_from_stop_time ok 2024/07/03 21:13:01 Create index idx__cvcaltoservice2_service_date_source on _cvcaltoservice as [service_date source] 2024/07/03 21:13:01 Created index idx__cvcaltoservice2_service_date_source ok 2024/07/03 21:13:01 Loading schema indexes ok 2024/07/03 21:13:01 Loading views ok 2024/07/03 21:13:01 Loaded view _vsources (bytes=2888) 2024/07/03 21:13:01 Loaded view _vstopparent (bytes=2589) 2024/07/03 21:13:01 Loaded view _vconnd (bytes=1214) 2024/07/03 21:13:01 Loaded view _vconndverbose (bytes=1065) 2024/07/03 21:13:01 Loaded view _vcaltoservice (bytes=4202) 2024/07/03 21:13:01 Loaded view _vtransferstbl (bytes=920) 2024/07/03 21:13:01 Loaded view _vtransfersgen (bytes=1538) 2024/07/03 21:13:01 Loaded view _vtransfersimplicit (bytes=365) 2024/07/03 21:13:01 Loading views ok 2024/07/03 21:13:01 Importing table from //tmp/mobroute_test_mobdb_1637314425.csv (0.00MB) to table: _mdb 2024/07/03 21:13:01 Last checksum vs current: / C_0M_faf6c048398801b613ccb065758d6de23e9b15c79264f22c7e550f8fd56db800; import will occur 2024/07/03 21:13:01 Imported 1 rows into _mdb ok 2024/07/03 21:13:01 Imported table from //tmp/mobroute_test_mobdb_1637314425.csv to table: _mdb ok 2024/07/03 21:13:01 Applied filter (null) matched 1 Mobility DB GTFS sources: [42] 2024/07/03 21:13:01 Running Load against 1 sources 2024/07/03 21:13:01 Loading mdbid 42 (1 of 1) 2024/07/03 21:13:01 Loading /tmp/2592894497.zip to DB with source name: 42 2024/07/03 21:13:01 Loaded GTFS Archive /tmp/2592894497.zip to temporary directory: /tmp/mobroute_tempdir218391192 2024/07/03 21:13:01 Loading table: agency 2024/07/03 21:13:01 Importing table from /tmp/mobroute_tempdir218391192/agency.txt (0.00MB) to table: agency 2024/07/03 21:13:01 Last checksum vs current: / C_0M_ec69cc35698113d39b116d06df83c168ff34eec1dd5daa90136c2ccdddd57966; import will occur 2024/07/03 21:13:01 Imported 1 rows into agency ok 2024/07/03 21:13:01 Imported table from /tmp/mobroute_tempdir218391192/agency.txt to table: agency ok 2024/07/03 21:13:01 Loading table: agency complete 2024/07/03 21:13:01 Loading table: calendar 2024/07/03 21:13:01 Importing table from /tmp/mobroute_tempdir218391192/calendar.txt (0.00MB) to table: calendar 2024/07/03 21:13:01 Skipped import for non-existant non-required file: /tmp/mobroute_tempdir218391192/calendar.txt 2024/07/03 21:13:01 Loading table: calendar complete 2024/07/03 21:13:01 Loading table: calendar_dates 2024/07/03 21:13:01 Importing table from /tmp/mobroute_tempdir218391192/calendar_dates.txt (0.00MB) to table: calendar_dates 2024/07/03 21:13:01 Last checksum vs current: / C_0M_e37e371e5f8c7c355413d55fe59c9054de3dbf0d759f0bcd6ef7968b46cde54e; import will occur 2024/07/03 21:13:01 Imported 1 rows into calendar_dates ok 2024/07/03 21:13:01 Imported table from /tmp/mobroute_tempdir218391192/calendar_dates.txt to table: calendar_dates ok 2024/07/03 21:13:01 Loading table: calendar_dates complete 2024/07/03 21:13:01 Loading table: stop_times 2024/07/03 21:13:01 Importing table from /tmp/mobroute_tempdir218391192/stop_times.txt (0.00MB) to table: stop_times 2024/07/03 21:13:01 Last checksum vs current: / C_0M_34d5ab6ee7cbb3e04fd82bd1dca86e4daecfa570a11b128209c8e5c102662d0a; import will occur 2024/07/03 21:13:01 Imported 1 rows into stop_times ok 2024/07/03 21:13:01 Imported table from /tmp/mobroute_tempdir218391192/stop_times.txt to table: stop_times ok 2024/07/03 21:13:01 Loading table: stop_times complete 2024/07/03 21:13:01 Loading table: stops 2024/07/03 21:13:01 Importing table from /tmp/mobroute_tempdir218391192/stops.txt (0.00MB) to table: stops 2024/07/03 21:13:01 Last checksum vs current: / C_0M_658a3f90ef5c5b6b531059c770014493d5c29ff969ad1e41a9df10615e479366; import will occur 2024/07/03 21:13:01 Imported 10 rows into stops ok 2024/07/03 21:13:01 Imported table from /tmp/mobroute_tempdir218391192/stops.txt to table: stops ok 2024/07/03 21:13:01 Loading table: stops complete 2024/07/03 21:13:01 Loading table: trips 2024/07/03 21:13:01 Importing table from /tmp/mobroute_tempdir218391192/trips.txt (0.00MB) to table: trips 2024/07/03 21:13:01 Last checksum vs current: / C_0M_0391ceb043162a440ba78564cae799b0c9b0004ac42d27290246145bfa780435; import will occur 2024/07/03 21:13:01 Imported 1 rows into trips ok 2024/07/03 21:13:01 Imported table from /tmp/mobroute_tempdir218391192/trips.txt to table: trips ok 2024/07/03 21:13:01 Loading table: trips complete 2024/07/03 21:13:01 Loading table: routes 2024/07/03 21:13:01 Importing table from /tmp/mobroute_tempdir218391192/routes.txt (0.00MB) to table: routes 2024/07/03 21:13:01 Last checksum vs current: / C_0M_a6031af6418607a6e5f51c20eaa22f422664f8d5254c59438ab18ce7e1e97cf8; import will occur 2024/07/03 21:13:01 Imported 1 rows into routes ok 2024/07/03 21:13:01 Imported table from /tmp/mobroute_tempdir218391192/routes.txt to table: routes ok 2024/07/03 21:13:01 Loading table: routes complete 2024/07/03 21:13:01 Loading table: transfers 2024/07/03 21:13:01 Importing table from /tmp/mobroute_tempdir218391192/transfers.txt (0.00MB) to table: transfers 2024/07/03 21:13:01 Skipped import for non-existant non-required file: /tmp/mobroute_tempdir218391192/transfers.txt 2024/07/03 21:13:01 Loading table: transfers complete 2024/07/03 21:13:01 Loaded /tmp/2592894497.zip to DB with source name: 42 ok 2024/07/03 21:13:01 Loading mdbid 42 ok; used cache for URL download (true) 2024/07/03 21:13:01 Running Load against 1 sources ok 2024/07/03 21:13:01 Running Compute against 1 sources 2024/07/03 21:13:01 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:13:01 Computed table _cvcaltoservice for source (42 ) out of date - updating ('' vs '42:stops:C_0M_658a3f90ef5c5b6b531059c770014493d5c29ff969ad1e41a9df10615e479366') 2024/07/03 21:13:01 Computed table _cvtransfersgen for source (42 0xc0002639d8) out of date - updating ('' vs '42:stops:C_0M_658a3f90ef5c5b6b531059c770014493d5c29ff969ad1e41a9df10615e479366') 2024/07/03 21:13:01 Running Compute against 1 sources ok 2024/07/03 21:13:01 Opening DB in RO mode: file:/tmp/mobroute_test_sqlite_823262275.db?mode=ro 2024/07/03 21:13:01 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:13:01 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:13:01 Generated mock: (gtfs zips: [/tmp/1424102807.zip]) (mobdb csv: /tmp/mobroute_test_mobdb_554788089.csv) 2024/07/03 21:13:01 SQLite system version (3.45.1); comparing to required version: 3.28.0 2024/07/03 21:13:01 Loading schema tables 2024/07/03 21:13:01 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:13:01 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:13:01 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:13:01 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:13:01 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:13:01 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:13:01 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:13:01 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:13:01 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:13:01 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:13:01 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:13:01 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:13:01 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:13:01 Loading schema tables ok 2024/07/03 21:13:01 Loading schema indexes 2024/07/03 21:13:01 Create index idx_stop_times1_departure_time on stop_times as [departure_time] 2024/07/03 21:13:01 Created index idx_stop_times1_departure_time ok 2024/07/03 21:13:01 Create index idx_stop_times1_trip_id on stop_times as [trip_id] 2024/07/03 21:13:01 Created index idx_stop_times1_trip_id ok 2024/07/03 21:13:01 Create index idx_stops2_source_stop_id on stops as [source stop_id] 2024/07/03 21:13:01 Created index idx_stops2_source_stop_id ok 2024/07/03 21:13:01 Create index idx_stops2_stop_lat_stop_lon on stops as [stop_lat stop_lon] 2024/07/03 21:13:01 Created index idx_stops2_stop_lat_stop_lon ok 2024/07/03 21:13:01 Create index idx_transfers2_source_from_stop_id on transfers as [source from_stop_id] 2024/07/03 21:13:01 Created index idx_transfers2_source_from_stop_id ok 2024/07/03 21:13:01 Create index idx_transfers2_source_to_stop_id on transfers as [source to_stop_id] 2024/07/03 21:13:01 Created index idx_transfers2_source_to_stop_id ok 2024/07/03 21:13:01 Create index idx__cvconnd3_source_service_id_from_stop_time on _cvconnd as [source service_id from_stop_time] 2024/07/03 21:13:01 Created index idx__cvconnd3_source_service_id_from_stop_time ok 2024/07/03 21:13:01 Create index idx__cvcaltoservice2_service_date_source on _cvcaltoservice as [service_date source] 2024/07/03 21:13:01 Created index idx__cvcaltoservice2_service_date_source ok 2024/07/03 21:13:01 Loading schema indexes ok 2024/07/03 21:13:01 Loading views ok 2024/07/03 21:13:01 Loaded view _vsources (bytes=2888) 2024/07/03 21:13:01 Loaded view _vstopparent (bytes=2589) 2024/07/03 21:13:01 Loaded view _vconnd (bytes=1214) 2024/07/03 21:13:01 Loaded view _vconndverbose (bytes=1065) 2024/07/03 21:13:01 Loaded view _vcaltoservice (bytes=4202) 2024/07/03 21:13:01 Loaded view _vtransferstbl (bytes=920) 2024/07/03 21:13:01 Loaded view _vtransfersgen (bytes=1538) 2024/07/03 21:13:01 Loaded view _vtransfersimplicit (bytes=365) 2024/07/03 21:13:01 Loading views ok 2024/07/03 21:13:01 Importing table from //tmp/mobroute_test_mobdb_554788089.csv (0.00MB) to table: _mdb 2024/07/03 21:13:01 Last checksum vs current: / C_0M_9fc43d0750e76bf791c6bb2a0907be4c933309e77f3a08b604d24050a51c3cb9; import will occur 2024/07/03 21:13:01 Imported 1 rows into _mdb ok 2024/07/03 21:13:01 Imported table from //tmp/mobroute_test_mobdb_554788089.csv to table: _mdb ok 2024/07/03 21:13:01 Applied filter (null) matched 1 Mobility DB GTFS sources: [42] 2024/07/03 21:13:01 Running Load against 1 sources 2024/07/03 21:13:01 Loading mdbid 42 (1 of 1) 2024/07/03 21:13:01 Loading /tmp/1424102807.zip to DB with source name: 42 2024/07/03 21:13:01 Loaded GTFS Archive /tmp/1424102807.zip to temporary directory: /tmp/mobroute_tempdir227115275 2024/07/03 21:13:01 Loading table: agency 2024/07/03 21:13:01 Importing table from /tmp/mobroute_tempdir227115275/agency.txt (0.00MB) to table: agency 2024/07/03 21:13:01 Last checksum vs current: / C_0M_ec69cc35698113d39b116d06df83c168ff34eec1dd5daa90136c2ccdddd57966; import will occur 2024/07/03 21:13:01 Imported 1 rows into agency ok 2024/07/03 21:13:01 Imported table from /tmp/mobroute_tempdir227115275/agency.txt to table: agency ok 2024/07/03 21:13:01 Loading table: agency complete 2024/07/03 21:13:01 Loading table: calendar 2024/07/03 21:13:01 Importing table from /tmp/mobroute_tempdir227115275/calendar.txt (0.00MB) to table: calendar 2024/07/03 21:13:01 Skipped import for non-existant non-required file: /tmp/mobroute_tempdir227115275/calendar.txt 2024/07/03 21:13:01 Loading table: calendar complete 2024/07/03 21:13:01 Loading table: calendar_dates 2024/07/03 21:13:01 Importing table from /tmp/mobroute_tempdir227115275/calendar_dates.txt (0.00MB) to table: calendar_dates 2024/07/03 21:13:01 Last checksum vs current: / C_0M_e37e371e5f8c7c355413d55fe59c9054de3dbf0d759f0bcd6ef7968b46cde54e; import will occur 2024/07/03 21:13:01 Imported 1 rows into calendar_dates ok 2024/07/03 21:13:01 Imported table from /tmp/mobroute_tempdir227115275/calendar_dates.txt to table: calendar_dates ok 2024/07/03 21:13:01 Loading table: calendar_dates complete 2024/07/03 21:13:01 Loading table: stop_times 2024/07/03 21:13:01 Importing table from /tmp/mobroute_tempdir227115275/stop_times.txt (0.00MB) to table: stop_times 2024/07/03 21:13:01 Last checksum vs current: / C_0M_34d5ab6ee7cbb3e04fd82bd1dca86e4daecfa570a11b128209c8e5c102662d0a; import will occur 2024/07/03 21:13:01 Imported 1 rows into stop_times ok 2024/07/03 21:13:01 Imported table from /tmp/mobroute_tempdir227115275/stop_times.txt to table: stop_times ok 2024/07/03 21:13:01 Loading table: stop_times complete 2024/07/03 21:13:01 Loading table: stops 2024/07/03 21:13:01 Importing table from /tmp/mobroute_tempdir227115275/stops.txt (0.00MB) to table: stops 2024/07/03 21:13:01 Last checksum vs current: / C_0M_e49bcb4d76fb2c80913af3c8407007f34b72c84c7045982cdafa519098886897; import will occur 2024/07/03 21:13:01 Imported 4 rows into stops ok 2024/07/03 21:13:01 Imported table from /tmp/mobroute_tempdir227115275/stops.txt to table: stops ok 2024/07/03 21:13:01 Loading table: stops complete 2024/07/03 21:13:01 Loading table: trips 2024/07/03 21:13:01 Importing table from /tmp/mobroute_tempdir227115275/trips.txt (0.00MB) to table: trips 2024/07/03 21:13:01 Last checksum vs current: / C_0M_0391ceb043162a440ba78564cae799b0c9b0004ac42d27290246145bfa780435; import will occur 2024/07/03 21:13:01 Imported 1 rows into trips ok 2024/07/03 21:13:01 Imported table from /tmp/mobroute_tempdir227115275/trips.txt to table: trips ok 2024/07/03 21:13:01 Loading table: trips complete 2024/07/03 21:13:01 Loading table: routes 2024/07/03 21:13:01 Importing table from /tmp/mobroute_tempdir227115275/routes.txt (0.00MB) to table: routes 2024/07/03 21:13:01 Last checksum vs current: / C_0M_a6031af6418607a6e5f51c20eaa22f422664f8d5254c59438ab18ce7e1e97cf8; import will occur 2024/07/03 21:13:01 Imported 1 rows into routes ok 2024/07/03 21:13:01 Imported table from /tmp/mobroute_tempdir227115275/routes.txt to table: routes ok 2024/07/03 21:13:01 Loading table: routes complete 2024/07/03 21:13:01 Loading table: transfers 2024/07/03 21:13:01 Importing table from /tmp/mobroute_tempdir227115275/transfers.txt (0.00MB) to table: transfers 2024/07/03 21:13:01 Last checksum vs current: / C_0M_62f6463902bf0c18eefcc88fd81a21fbf559daca8485920a3653a28636aa83f5; import will occur 2024/07/03 21:13:01 Imported 2 rows into transfers ok 2024/07/03 21:13:01 Imported table from /tmp/mobroute_tempdir227115275/transfers.txt to table: transfers ok 2024/07/03 21:13:01 Loading table: transfers complete 2024/07/03 21:13:01 Loaded /tmp/1424102807.zip to DB with source name: 42 ok 2024/07/03 21:13:01 Loading mdbid 42 ok; used cache for URL download (true) 2024/07/03 21:13:01 Running Load against 1 sources ok 2024/07/03 21:13:01 Running Compute against 1 sources 2024/07/03 21:13:01 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:13:01 Computed table _cvcaltoservice for source (42 ) out of date - updating ('' vs '42:stops:C_0M_e49bcb4d76fb2c80913af3c8407007f34b72c84c7045982cdafa519098886897') 2024/07/03 21:13:01 Computed table _cvtransfersgen for source (42 0xc0003b5158) out of date - updating ('' vs '42:stops:C_0M_e49bcb4d76fb2c80913af3c8407007f34b72c84c7045982cdafa519098886897') 2024/07/03 21:13:01 Running Compute against 1 sources ok 2024/07/03 21:13:01 Opening DB in RO mode: file:/tmp/mobroute_test_sqlite_746187972.db?mode=ro 2024/07/03 21:13:01 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:13:01 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:13:01 Generated mock: (gtfs zips: [/tmp/2165631269.zip]) (mobdb csv: /tmp/mobroute_test_mobdb_645676741.csv) 2024/07/03 21:13:01 SQLite system version (3.45.1); comparing to required version: 3.28.0 2024/07/03 21:13:01 Loading schema tables 2024/07/03 21:13:01 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:13:01 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:13:01 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:13:01 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:13:01 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:13:01 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:13:01 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:13:01 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:13:01 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:13:01 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:13:01 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:13:01 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:13:01 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:13:01 Loading schema tables ok 2024/07/03 21:13:01 Loading schema indexes 2024/07/03 21:13:01 Create index idx_stop_times1_departure_time on stop_times as [departure_time] 2024/07/03 21:13:01 Created index idx_stop_times1_departure_time ok 2024/07/03 21:13:01 Create index idx_stop_times1_trip_id on stop_times as [trip_id] 2024/07/03 21:13:01 Created index idx_stop_times1_trip_id ok 2024/07/03 21:13:01 Create index idx_stops2_source_stop_id on stops as [source stop_id] 2024/07/03 21:13:01 Created index idx_stops2_source_stop_id ok 2024/07/03 21:13:01 Create index idx_stops2_stop_lat_stop_lon on stops as [stop_lat stop_lon] 2024/07/03 21:13:01 Created index idx_stops2_stop_lat_stop_lon ok 2024/07/03 21:13:01 Create index idx_transfers2_source_from_stop_id on transfers as [source from_stop_id] 2024/07/03 21:13:01 Created index idx_transfers2_source_from_stop_id ok 2024/07/03 21:13:01 Create index idx_transfers2_source_to_stop_id on transfers as [source to_stop_id] 2024/07/03 21:13:01 Created index idx_transfers2_source_to_stop_id ok 2024/07/03 21:13:01 Create index idx__cvconnd3_source_service_id_from_stop_time on _cvconnd as [source service_id from_stop_time] 2024/07/03 21:13:01 Created index idx__cvconnd3_source_service_id_from_stop_time ok 2024/07/03 21:13:01 Create index idx__cvcaltoservice2_service_date_source on _cvcaltoservice as [service_date source] 2024/07/03 21:13:01 Created index idx__cvcaltoservice2_service_date_source ok 2024/07/03 21:13:01 Loading schema indexes ok 2024/07/03 21:13:01 Loading views ok 2024/07/03 21:13:01 Loaded view _vsources (bytes=2888) 2024/07/03 21:13:01 Loaded view _vstopparent (bytes=2589) 2024/07/03 21:13:01 Loaded view _vconnd (bytes=1214) 2024/07/03 21:13:01 Loaded view _vconndverbose (bytes=1065) 2024/07/03 21:13:01 Loaded view _vcaltoservice (bytes=4202) 2024/07/03 21:13:01 Loaded view _vtransferstbl (bytes=920) 2024/07/03 21:13:01 Loaded view _vtransfersgen (bytes=1538) 2024/07/03 21:13:01 Loaded view _vtransfersimplicit (bytes=365) 2024/07/03 21:13:01 Loading views ok 2024/07/03 21:13:01 Importing table from //tmp/mobroute_test_mobdb_645676741.csv (0.00MB) to table: _mdb 2024/07/03 21:13:01 Last checksum vs current: / C_0M_fb24a86256d5fcba180d1d84f1d5f00fb9743fee62b9c9a15a16aecce492b6e4; import will occur 2024/07/03 21:13:01 Imported 1 rows into _mdb ok 2024/07/03 21:13:01 Imported table from //tmp/mobroute_test_mobdb_645676741.csv to table: _mdb ok 2024/07/03 21:13:01 Applied filter (null) matched 1 Mobility DB GTFS sources: [42] 2024/07/03 21:13:01 Running Load against 1 sources 2024/07/03 21:13:01 Loading mdbid 42 (1 of 1) 2024/07/03 21:13:01 Loading /tmp/2165631269.zip to DB with source name: 42 2024/07/03 21:13:01 Loaded GTFS Archive /tmp/2165631269.zip to temporary directory: /tmp/mobroute_tempdir3909968527 2024/07/03 21:13:01 Loading table: agency 2024/07/03 21:13:01 Importing table from /tmp/mobroute_tempdir3909968527/agency.txt (0.00MB) to table: agency 2024/07/03 21:13:01 Last checksum vs current: / C_0M_ec69cc35698113d39b116d06df83c168ff34eec1dd5daa90136c2ccdddd57966; import will occur 2024/07/03 21:13:01 Imported 1 rows into agency ok 2024/07/03 21:13:01 Imported table from /tmp/mobroute_tempdir3909968527/agency.txt to table: agency ok 2024/07/03 21:13:01 Loading table: agency complete 2024/07/03 21:13:01 Loading table: calendar 2024/07/03 21:13:01 Importing table from /tmp/mobroute_tempdir3909968527/calendar.txt (0.00MB) to table: calendar 2024/07/03 21:13:01 Skipped import for non-existant non-required file: /tmp/mobroute_tempdir3909968527/calendar.txt 2024/07/03 21:13:01 Loading table: calendar complete 2024/07/03 21:13:01 Loading table: calendar_dates 2024/07/03 21:13:01 Importing table from /tmp/mobroute_tempdir3909968527/calendar_dates.txt (0.00MB) to table: calendar_dates 2024/07/03 21:13:01 Last checksum vs current: / C_0M_e37e371e5f8c7c355413d55fe59c9054de3dbf0d759f0bcd6ef7968b46cde54e; import will occur 2024/07/03 21:13:01 Imported 1 rows into calendar_dates ok 2024/07/03 21:13:01 Imported table from /tmp/mobroute_tempdir3909968527/calendar_dates.txt to table: calendar_dates ok 2024/07/03 21:13:01 Loading table: calendar_dates complete 2024/07/03 21:13:01 Loading table: stop_times 2024/07/03 21:13:01 Importing table from /tmp/mobroute_tempdir3909968527/stop_times.txt (0.00MB) to table: stop_times 2024/07/03 21:13:01 Last checksum vs current: / C_0M_34d5ab6ee7cbb3e04fd82bd1dca86e4daecfa570a11b128209c8e5c102662d0a; import will occur 2024/07/03 21:13:01 Imported 1 rows into stop_times ok 2024/07/03 21:13:01 Imported table from /tmp/mobroute_tempdir3909968527/stop_times.txt to table: stop_times ok 2024/07/03 21:13:01 Loading table: stop_times complete 2024/07/03 21:13:01 Loading table: stops 2024/07/03 21:13:01 Importing table from /tmp/mobroute_tempdir3909968527/stops.txt (0.00MB) to table: stops 2024/07/03 21:13:01 Last checksum vs current: / C_0M_e49bcb4d76fb2c80913af3c8407007f34b72c84c7045982cdafa519098886897; import will occur 2024/07/03 21:13:01 Imported 4 rows into stops ok 2024/07/03 21:13:01 Imported table from /tmp/mobroute_tempdir3909968527/stops.txt to table: stops ok 2024/07/03 21:13:01 Loading table: stops complete 2024/07/03 21:13:01 Loading table: trips 2024/07/03 21:13:01 Importing table from /tmp/mobroute_tempdir3909968527/trips.txt (0.00MB) to table: trips 2024/07/03 21:13:01 Last checksum vs current: / C_0M_0391ceb043162a440ba78564cae799b0c9b0004ac42d27290246145bfa780435; import will occur 2024/07/03 21:13:01 Imported 1 rows into trips ok 2024/07/03 21:13:01 Imported table from /tmp/mobroute_tempdir3909968527/trips.txt to table: trips ok 2024/07/03 21:13:01 Loading table: trips complete 2024/07/03 21:13:01 Loading table: routes 2024/07/03 21:13:01 Importing table from /tmp/mobroute_tempdir3909968527/routes.txt (0.00MB) to table: routes 2024/07/03 21:13:01 Last checksum vs current: / C_0M_a6031af6418607a6e5f51c20eaa22f422664f8d5254c59438ab18ce7e1e97cf8; import will occur 2024/07/03 21:13:01 Imported 1 rows into routes ok 2024/07/03 21:13:01 Imported table from /tmp/mobroute_tempdir3909968527/routes.txt to table: routes ok 2024/07/03 21:13:01 Loading table: routes complete 2024/07/03 21:13:01 Loading table: transfers 2024/07/03 21:13:01 Importing table from /tmp/mobroute_tempdir3909968527/transfers.txt (0.00MB) to table: transfers 2024/07/03 21:13:01 Last checksum vs current: / C_0M_62f6463902bf0c18eefcc88fd81a21fbf559daca8485920a3653a28636aa83f5; import will occur 2024/07/03 21:13:01 Imported 2 rows into transfers ok 2024/07/03 21:13:01 Imported table from /tmp/mobroute_tempdir3909968527/transfers.txt to table: transfers ok 2024/07/03 21:13:01 Loading table: transfers complete 2024/07/03 21:13:01 Loaded /tmp/2165631269.zip to DB with source name: 42 ok 2024/07/03 21:13:01 Loading mdbid 42 ok; used cache for URL download (true) 2024/07/03 21:13:01 Running Load against 1 sources ok 2024/07/03 21:13:01 Running Compute against 1 sources 2024/07/03 21:13:01 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:13:01 Computed table _cvcaltoservice for source (42 ) out of date - updating ('' vs '42:stops:C_0M_e49bcb4d76fb2c80913af3c8407007f34b72c84c7045982cdafa519098886897') 2024/07/03 21:13:01 Computed table _cvtransfersgen for source (42 0xc00042f8c8) out of date - updating ('' vs '42:stops:C_0M_e49bcb4d76fb2c80913af3c8407007f34b72c84c7045982cdafa519098886897') 2024/07/03 21:13:01 Running Compute against 1 sources ok 2024/07/03 21:13:01 Opening DB in RO mode: file:/tmp/mobroute_test_sqlite_2596656227.db?mode=ro 2024/07/03 21:13:01 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:13:01 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:13:01 Generated mock: (gtfs zips: [/tmp/527673335.zip]) (mobdb csv: /tmp/mobroute_test_mobdb_3160964201.csv) 2024/07/03 21:13:01 SQLite system version (3.45.1); comparing to required version: 3.28.0 2024/07/03 21:13:01 Loading schema tables 2024/07/03 21:13:01 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:13:01 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:13:01 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:13:01 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:13:01 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:13:01 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:13:01 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:13:01 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:13:01 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:13:01 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:13:01 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:13:01 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:13:01 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:13:01 Loading schema tables ok 2024/07/03 21:13:01 Loading schema indexes 2024/07/03 21:13:01 Create index idx_stop_times1_departure_time on stop_times as [departure_time] 2024/07/03 21:13:01 Created index idx_stop_times1_departure_time ok 2024/07/03 21:13:01 Create index idx_stop_times1_trip_id on stop_times as [trip_id] 2024/07/03 21:13:01 Created index idx_stop_times1_trip_id ok 2024/07/03 21:13:01 Create index idx_stops2_source_stop_id on stops as [source stop_id] 2024/07/03 21:13:01 Created index idx_stops2_source_stop_id ok 2024/07/03 21:13:01 Create index idx_stops2_stop_lat_stop_lon on stops as [stop_lat stop_lon] 2024/07/03 21:13:01 Created index idx_stops2_stop_lat_stop_lon ok 2024/07/03 21:13:01 Create index idx_transfers2_source_from_stop_id on transfers as [source from_stop_id] 2024/07/03 21:13:01 Created index idx_transfers2_source_from_stop_id ok 2024/07/03 21:13:01 Create index idx_transfers2_source_to_stop_id on transfers as [source to_stop_id] 2024/07/03 21:13:01 Created index idx_transfers2_source_to_stop_id ok 2024/07/03 21:13:01 Create index idx__cvconnd3_source_service_id_from_stop_time on _cvconnd as [source service_id from_stop_time] 2024/07/03 21:13:01 Created index idx__cvconnd3_source_service_id_from_stop_time ok 2024/07/03 21:13:01 Create index idx__cvcaltoservice2_service_date_source on _cvcaltoservice as [service_date source] 2024/07/03 21:13:01 Created index idx__cvcaltoservice2_service_date_source ok 2024/07/03 21:13:01 Loading schema indexes ok 2024/07/03 21:13:01 Loading views ok 2024/07/03 21:13:01 Loaded view _vsources (bytes=2888) 2024/07/03 21:13:01 Loaded view _vstopparent (bytes=2589) 2024/07/03 21:13:01 Loaded view _vconnd (bytes=1214) 2024/07/03 21:13:01 Loaded view _vconndverbose (bytes=1065) 2024/07/03 21:13:01 Loaded view _vcaltoservice (bytes=4202) 2024/07/03 21:13:01 Loaded view _vtransferstbl (bytes=920) 2024/07/03 21:13:01 Loaded view _vtransfersgen (bytes=1538) 2024/07/03 21:13:01 Loaded view _vtransfersimplicit (bytes=365) 2024/07/03 21:13:01 Loading views ok 2024/07/03 21:13:01 Importing table from //tmp/mobroute_test_mobdb_3160964201.csv (0.00MB) to table: _mdb 2024/07/03 21:13:01 Last checksum vs current: / C_0M_752973298c8d603757ef0589487a635e7702e8b5ee04608ca2da386bf5f86dcb; import will occur 2024/07/03 21:13:01 Imported 1 rows into _mdb ok 2024/07/03 21:13:01 Imported table from //tmp/mobroute_test_mobdb_3160964201.csv to table: _mdb ok 2024/07/03 21:13:01 Applied filter (null) matched 1 Mobility DB GTFS sources: [42] 2024/07/03 21:13:01 Running Load against 1 sources 2024/07/03 21:13:01 Loading mdbid 42 (1 of 1) 2024/07/03 21:13:01 Loading /tmp/527673335.zip to DB with source name: 42 2024/07/03 21:13:01 Loaded GTFS Archive /tmp/527673335.zip to temporary directory: /tmp/mobroute_tempdir792977812 2024/07/03 21:13:01 Loading table: agency 2024/07/03 21:13:01 Importing table from /tmp/mobroute_tempdir792977812/agency.txt (0.00MB) to table: agency 2024/07/03 21:13:01 Last checksum vs current: / C_0M_ec69cc35698113d39b116d06df83c168ff34eec1dd5daa90136c2ccdddd57966; import will occur 2024/07/03 21:13:01 Imported 1 rows into agency ok 2024/07/03 21:13:01 Imported table from /tmp/mobroute_tempdir792977812/agency.txt to table: agency ok 2024/07/03 21:13:01 Loading table: agency complete 2024/07/03 21:13:01 Loading table: calendar 2024/07/03 21:13:01 Importing table from /tmp/mobroute_tempdir792977812/calendar.txt (0.00MB) to table: calendar 2024/07/03 21:13:01 Skipped import for non-existant non-required file: /tmp/mobroute_tempdir792977812/calendar.txt 2024/07/03 21:13:01 Loading table: calendar complete 2024/07/03 21:13:01 Loading table: calendar_dates 2024/07/03 21:13:01 Importing table from /tmp/mobroute_tempdir792977812/calendar_dates.txt (0.00MB) to table: calendar_dates 2024/07/03 21:13:01 Last checksum vs current: / C_0M_e37e371e5f8c7c355413d55fe59c9054de3dbf0d759f0bcd6ef7968b46cde54e; import will occur 2024/07/03 21:13:01 Imported 1 rows into calendar_dates ok 2024/07/03 21:13:01 Imported table from /tmp/mobroute_tempdir792977812/calendar_dates.txt to table: calendar_dates ok 2024/07/03 21:13:01 Loading table: calendar_dates complete 2024/07/03 21:13:01 Loading table: stop_times 2024/07/03 21:13:01 Importing table from /tmp/mobroute_tempdir792977812/stop_times.txt (0.00MB) to table: stop_times 2024/07/03 21:13:01 Last checksum vs current: / C_0M_34d5ab6ee7cbb3e04fd82bd1dca86e4daecfa570a11b128209c8e5c102662d0a; import will occur 2024/07/03 21:13:01 Imported 1 rows into stop_times ok 2024/07/03 21:13:01 Imported table from /tmp/mobroute_tempdir792977812/stop_times.txt to table: stop_times ok 2024/07/03 21:13:01 Loading table: stop_times complete 2024/07/03 21:13:01 Loading table: stops 2024/07/03 21:13:01 Importing table from /tmp/mobroute_tempdir792977812/stops.txt (0.00MB) to table: stops 2024/07/03 21:13:01 Last checksum vs current: / C_0M_e49bcb4d76fb2c80913af3c8407007f34b72c84c7045982cdafa519098886897; import will occur 2024/07/03 21:13:01 Imported 4 rows into stops ok 2024/07/03 21:13:01 Imported table from /tmp/mobroute_tempdir792977812/stops.txt to table: stops ok 2024/07/03 21:13:01 Loading table: stops complete 2024/07/03 21:13:01 Loading table: trips 2024/07/03 21:13:01 Importing table from /tmp/mobroute_tempdir792977812/trips.txt (0.00MB) to table: trips 2024/07/03 21:13:01 Last checksum vs current: / C_0M_0391ceb043162a440ba78564cae799b0c9b0004ac42d27290246145bfa780435; import will occur 2024/07/03 21:13:01 Imported 1 rows into trips ok 2024/07/03 21:13:01 Imported table from /tmp/mobroute_tempdir792977812/trips.txt to table: trips ok 2024/07/03 21:13:01 Loading table: trips complete 2024/07/03 21:13:01 Loading table: routes 2024/07/03 21:13:01 Importing table from /tmp/mobroute_tempdir792977812/routes.txt (0.00MB) to table: routes 2024/07/03 21:13:01 Last checksum vs current: / C_0M_a6031af6418607a6e5f51c20eaa22f422664f8d5254c59438ab18ce7e1e97cf8; import will occur 2024/07/03 21:13:01 Imported 1 rows into routes ok 2024/07/03 21:13:01 Imported table from /tmp/mobroute_tempdir792977812/routes.txt to table: routes ok 2024/07/03 21:13:01 Loading table: routes complete 2024/07/03 21:13:01 Loading table: transfers 2024/07/03 21:13:01 Importing table from /tmp/mobroute_tempdir792977812/transfers.txt (0.00MB) to table: transfers 2024/07/03 21:13:01 Last checksum vs current: / C_0M_62f6463902bf0c18eefcc88fd81a21fbf559daca8485920a3653a28636aa83f5; import will occur 2024/07/03 21:13:01 Imported 2 rows into transfers ok 2024/07/03 21:13:01 Imported table from /tmp/mobroute_tempdir792977812/transfers.txt to table: transfers ok 2024/07/03 21:13:01 Loading table: transfers complete 2024/07/03 21:13:01 Loaded /tmp/527673335.zip to DB with source name: 42 ok 2024/07/03 21:13:01 Loading mdbid 42 ok; used cache for URL download (true) 2024/07/03 21:13:01 Running Load against 1 sources ok 2024/07/03 21:13:01 Running Compute against 1 sources 2024/07/03 21:13:01 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:13:01 Computed table _cvcaltoservice for source (42 ) out of date - updating ('' vs '42:stops:C_0M_e49bcb4d76fb2c80913af3c8407007f34b72c84c7045982cdafa519098886897') 2024/07/03 21:13:01 Computed table _cvtransfersgen for source (42 0xc0003b7ac8) out of date - updating ('' vs '42:stops:C_0M_e49bcb4d76fb2c80913af3c8407007f34b72c84c7045982cdafa519098886897') 2024/07/03 21:13:01 Running Compute against 1 sources ok 2024/07/03 21:13:01 Opening DB in RO mode: file:/tmp/mobroute_test_sqlite_1798131217.db?mode=ro 2024/07/03 21:13:01 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:13:01 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:13:01 Generated mock: (gtfs zips: [/tmp/2398867380.zip]) (mobdb csv: /tmp/mobroute_test_mobdb_2060580872.csv) 2024/07/03 21:13:01 SQLite system version (3.45.1); comparing to required version: 3.28.0 2024/07/03 21:13:01 Loading schema tables 2024/07/03 21:13:01 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:13:01 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:13:01 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:13:01 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:13:01 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:13:01 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:13:01 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:13:01 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:13:01 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:13:01 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:13:01 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:13:01 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:13:01 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:13:01 Loading schema tables ok 2024/07/03 21:13:01 Loading schema indexes 2024/07/03 21:13:01 Create index idx_stop_times1_departure_time on stop_times as [departure_time] 2024/07/03 21:13:01 Created index idx_stop_times1_departure_time ok 2024/07/03 21:13:01 Create index idx_stop_times1_trip_id on stop_times as [trip_id] 2024/07/03 21:13:01 Created index idx_stop_times1_trip_id ok 2024/07/03 21:13:01 Create index idx_stops2_source_stop_id on stops as [source stop_id] 2024/07/03 21:13:01 Created index idx_stops2_source_stop_id ok 2024/07/03 21:13:01 Create index idx_stops2_stop_lat_stop_lon on stops as [stop_lat stop_lon] 2024/07/03 21:13:01 Created index idx_stops2_stop_lat_stop_lon ok 2024/07/03 21:13:01 Create index idx_transfers2_source_from_stop_id on transfers as [source from_stop_id] 2024/07/03 21:13:01 Created index idx_transfers2_source_from_stop_id ok 2024/07/03 21:13:01 Create index idx_transfers2_source_to_stop_id on transfers as [source to_stop_id] 2024/07/03 21:13:01 Created index idx_transfers2_source_to_stop_id ok 2024/07/03 21:13:01 Create index idx__cvconnd3_source_service_id_from_stop_time on _cvconnd as [source service_id from_stop_time] 2024/07/03 21:13:01 Created index idx__cvconnd3_source_service_id_from_stop_time ok 2024/07/03 21:13:01 Create index idx__cvcaltoservice2_service_date_source on _cvcaltoservice as [service_date source] 2024/07/03 21:13:01 Created index idx__cvcaltoservice2_service_date_source ok 2024/07/03 21:13:01 Loading schema indexes ok 2024/07/03 21:13:01 Loading views ok 2024/07/03 21:13:01 Loaded view _vsources (bytes=2888) 2024/07/03 21:13:01 Loaded view _vstopparent (bytes=2589) 2024/07/03 21:13:01 Loaded view _vconnd (bytes=1214) 2024/07/03 21:13:01 Loaded view _vconndverbose (bytes=1065) 2024/07/03 21:13:01 Loaded view _vcaltoservice (bytes=4202) 2024/07/03 21:13:01 Loaded view _vtransferstbl (bytes=920) 2024/07/03 21:13:01 Loaded view _vtransfersgen (bytes=1538) 2024/07/03 21:13:01 Loaded view _vtransfersimplicit (bytes=365) 2024/07/03 21:13:01 Loading views ok 2024/07/03 21:13:01 Importing table from //tmp/mobroute_test_mobdb_2060580872.csv (0.00MB) to table: _mdb 2024/07/03 21:13:01 Last checksum vs current: / C_0M_35df56eb1fbb0cdb58f3f28263e76d516fe92a478e7514c77ff6365e3730a44f; import will occur 2024/07/03 21:13:01 Imported 1 rows into _mdb ok 2024/07/03 21:13:01 Imported table from //tmp/mobroute_test_mobdb_2060580872.csv to table: _mdb ok 2024/07/03 21:13:01 Applied filter (null) matched 1 Mobility DB GTFS sources: [42] 2024/07/03 21:13:01 Running Load against 1 sources 2024/07/03 21:13:01 Loading mdbid 42 (1 of 1) 2024/07/03 21:13:01 Loading /tmp/2398867380.zip to DB with source name: 42 2024/07/03 21:13:01 Loaded GTFS Archive /tmp/2398867380.zip to temporary directory: /tmp/mobroute_tempdir1442892626 2024/07/03 21:13:01 Loading table: agency 2024/07/03 21:13:01 Importing table from /tmp/mobroute_tempdir1442892626/agency.txt (0.00MB) to table: agency 2024/07/03 21:13:01 Last checksum vs current: / C_0M_ec69cc35698113d39b116d06df83c168ff34eec1dd5daa90136c2ccdddd57966; import will occur 2024/07/03 21:13:01 Imported 1 rows into agency ok 2024/07/03 21:13:01 Imported table from /tmp/mobroute_tempdir1442892626/agency.txt to table: agency ok 2024/07/03 21:13:01 Loading table: agency complete 2024/07/03 21:13:01 Loading table: calendar 2024/07/03 21:13:01 Importing table from /tmp/mobroute_tempdir1442892626/calendar.txt (0.00MB) to table: calendar 2024/07/03 21:13:01 Skipped import for non-existant non-required file: /tmp/mobroute_tempdir1442892626/calendar.txt 2024/07/03 21:13:01 Loading table: calendar complete 2024/07/03 21:13:01 Loading table: calendar_dates 2024/07/03 21:13:01 Importing table from /tmp/mobroute_tempdir1442892626/calendar_dates.txt (0.00MB) to table: calendar_dates 2024/07/03 21:13:01 Last checksum vs current: / C_0M_e37e371e5f8c7c355413d55fe59c9054de3dbf0d759f0bcd6ef7968b46cde54e; import will occur 2024/07/03 21:13:01 Imported 1 rows into calendar_dates ok 2024/07/03 21:13:01 Imported table from /tmp/mobroute_tempdir1442892626/calendar_dates.txt to table: calendar_dates ok 2024/07/03 21:13:01 Loading table: calendar_dates complete 2024/07/03 21:13:01 Loading table: stop_times 2024/07/03 21:13:01 Importing table from /tmp/mobroute_tempdir1442892626/stop_times.txt (0.00MB) to table: stop_times 2024/07/03 21:13:01 Last checksum vs current: / C_0M_34d5ab6ee7cbb3e04fd82bd1dca86e4daecfa570a11b128209c8e5c102662d0a; import will occur 2024/07/03 21:13:01 Imported 1 rows into stop_times ok 2024/07/03 21:13:01 Imported table from /tmp/mobroute_tempdir1442892626/stop_times.txt to table: stop_times ok 2024/07/03 21:13:01 Loading table: stop_times complete 2024/07/03 21:13:01 Loading table: stops 2024/07/03 21:13:01 Importing table from /tmp/mobroute_tempdir1442892626/stops.txt (0.00MB) to table: stops 2024/07/03 21:13:01 Last checksum vs current: / C_0M_e49bcb4d76fb2c80913af3c8407007f34b72c84c7045982cdafa519098886897; import will occur 2024/07/03 21:13:01 Imported 4 rows into stops ok 2024/07/03 21:13:01 Imported table from /tmp/mobroute_tempdir1442892626/stops.txt to table: stops ok 2024/07/03 21:13:01 Loading table: stops complete 2024/07/03 21:13:01 Loading table: trips 2024/07/03 21:13:01 Importing table from /tmp/mobroute_tempdir1442892626/trips.txt (0.00MB) to table: trips 2024/07/03 21:13:01 Last checksum vs current: / C_0M_0391ceb043162a440ba78564cae799b0c9b0004ac42d27290246145bfa780435; import will occur 2024/07/03 21:13:01 Imported 1 rows into trips ok 2024/07/03 21:13:01 Imported table from /tmp/mobroute_tempdir1442892626/trips.txt to table: trips ok 2024/07/03 21:13:01 Loading table: trips complete 2024/07/03 21:13:01 Loading table: routes 2024/07/03 21:13:01 Importing table from /tmp/mobroute_tempdir1442892626/routes.txt (0.00MB) to table: routes 2024/07/03 21:13:01 Last checksum vs current: / C_0M_a6031af6418607a6e5f51c20eaa22f422664f8d5254c59438ab18ce7e1e97cf8; import will occur 2024/07/03 21:13:01 Imported 1 rows into routes ok 2024/07/03 21:13:01 Imported table from /tmp/mobroute_tempdir1442892626/routes.txt to table: routes ok 2024/07/03 21:13:01 Loading table: routes complete 2024/07/03 21:13:01 Loading table: transfers 2024/07/03 21:13:01 Importing table from /tmp/mobroute_tempdir1442892626/transfers.txt (0.00MB) to table: transfers 2024/07/03 21:13:01 Last checksum vs current: / C_0M_62f6463902bf0c18eefcc88fd81a21fbf559daca8485920a3653a28636aa83f5; import will occur 2024/07/03 21:13:01 Imported 2 rows into transfers ok 2024/07/03 21:13:01 Imported table from /tmp/mobroute_tempdir1442892626/transfers.txt to table: transfers ok 2024/07/03 21:13:01 Loading table: transfers complete 2024/07/03 21:13:01 Loaded /tmp/2398867380.zip to DB with source name: 42 ok 2024/07/03 21:13:01 Loading mdbid 42 ok; used cache for URL download (true) 2024/07/03 21:13:01 Running Load against 1 sources ok 2024/07/03 21:13:01 Running Compute against 1 sources 2024/07/03 21:13:01 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:13:01 Computed table _cvcaltoservice for source (42 ) out of date - updating ('' vs '42:stops:C_0M_e49bcb4d76fb2c80913af3c8407007f34b72c84c7045982cdafa519098886897') 2024/07/03 21:13:01 Computed table _cvtransfersgen for source (42 0xc00042f8d8) out of date - updating ('' vs '42:stops:C_0M_e49bcb4d76fb2c80913af3c8407007f34b72c84c7045982cdafa519098886897') 2024/07/03 21:13:01 Running Compute against 1 sources ok 2024/07/03 21:13:01 Opening DB in RO mode: file:/tmp/mobroute_test_sqlite_2758455142.db?mode=ro 2024/07/03 21:13:01 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:13:01 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.14s) PASS ok git.sr.ht/~mil/mobroute/dbquery_test 0.472s ? git.sr.ht/~mil/mobroute/dbstubquery [no test files] === RUN Test_LoadCalToService 2024/07/03 21:13:02 Generated mock: (gtfs zips: [/tmp/2365518815.zip]) (mobdb csv: /tmp/mobroute_test_mobdb_4125662100.csv) 2024/07/03 21:13:02 SQLite system version (3.45.1); comparing to required version: 3.28.0 2024/07/03 21:13:02 Loading schema tables 2024/07/03 21:13:02 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:13:02 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:13:02 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:13:02 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:13:02 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:13:02 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:13:02 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:13:02 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:13:02 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:13:02 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:13:02 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:13:02 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:13:02 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:13:02 Loading schema tables ok 2024/07/03 21:13:02 Loading schema indexes 2024/07/03 21:13:02 Create index idx_stop_times1_departure_time on stop_times as [departure_time] 2024/07/03 21:13:02 Created index idx_stop_times1_departure_time ok 2024/07/03 21:13:02 Create index idx_stop_times1_trip_id on stop_times as [trip_id] 2024/07/03 21:13:02 Created index idx_stop_times1_trip_id ok 2024/07/03 21:13:02 Create index idx_stops2_source_stop_id on stops as [source stop_id] 2024/07/03 21:13:02 Created index idx_stops2_source_stop_id ok 2024/07/03 21:13:02 Create index idx_stops2_stop_lat_stop_lon on stops as [stop_lat stop_lon] 2024/07/03 21:13:02 Created index idx_stops2_stop_lat_stop_lon ok 2024/07/03 21:13:02 Create index idx_transfers2_source_from_stop_id on transfers as [source from_stop_id] 2024/07/03 21:13:02 Created index idx_transfers2_source_from_stop_id ok 2024/07/03 21:13:02 Create index idx_transfers2_source_to_stop_id on transfers as [source to_stop_id] 2024/07/03 21:13:02 Created index idx_transfers2_source_to_stop_id ok 2024/07/03 21:13:02 Create index idx__cvconnd3_source_service_id_from_stop_time on _cvconnd as [source service_id from_stop_time] 2024/07/03 21:13:02 Created index idx__cvconnd3_source_service_id_from_stop_time ok 2024/07/03 21:13:02 Create index idx__cvcaltoservice2_service_date_source on _cvcaltoservice as [service_date source] 2024/07/03 21:13:02 Created index idx__cvcaltoservice2_service_date_source ok 2024/07/03 21:13:02 Loading schema indexes ok 2024/07/03 21:13:02 Loading views ok 2024/07/03 21:13:02 Loaded view _vsources (bytes=2888) 2024/07/03 21:13:02 Loaded view _vstopparent (bytes=2589) 2024/07/03 21:13:02 Loaded view _vconnd (bytes=1214) 2024/07/03 21:13:02 Loaded view _vconndverbose (bytes=1065) 2024/07/03 21:13:02 Loaded view _vcaltoservice (bytes=4202) 2024/07/03 21:13:02 Loaded view _vtransferstbl (bytes=920) 2024/07/03 21:13:02 Loaded view _vtransfersgen (bytes=1538) 2024/07/03 21:13:02 Loaded view _vtransfersimplicit (bytes=365) 2024/07/03 21:13:02 Loading views ok 2024/07/03 21:13:02 Importing table from //tmp/mobroute_test_mobdb_4125662100.csv (0.00MB) to table: _mdb 2024/07/03 21:13:02 Last checksum vs current: / C_0M_2e911b5ffb03cc2ee876415420b761ae2e8d412e31cdf9eb730c08ee681ff419; import will occur 2024/07/03 21:13:02 Imported 1 rows into _mdb ok 2024/07/03 21:13:02 Imported table from //tmp/mobroute_test_mobdb_4125662100.csv to table: _mdb ok 2024/07/03 21:13:02 Applied filter (null) matched 1 Mobility DB GTFS sources: [42] 2024/07/03 21:13:02 Running Load against 1 sources 2024/07/03 21:13:02 Loading mdbid 42 (1 of 1) 2024/07/03 21:13:02 Loading /tmp/2365518815.zip to DB with source name: 42 2024/07/03 21:13:02 Loaded GTFS Archive /tmp/2365518815.zip to temporary directory: /tmp/mobroute_tempdir2140358853 2024/07/03 21:13:02 Loading table: agency 2024/07/03 21:13:02 Importing table from /tmp/mobroute_tempdir2140358853/agency.txt (0.00MB) to table: agency 2024/07/03 21:13:02 Last checksum vs current: / C_0M_ec69cc35698113d39b116d06df83c168ff34eec1dd5daa90136c2ccdddd57966; import will occur 2024/07/03 21:13:02 Imported 1 rows into agency ok 2024/07/03 21:13:02 Imported table from /tmp/mobroute_tempdir2140358853/agency.txt to table: agency ok 2024/07/03 21:13:02 Loading table: agency complete 2024/07/03 21:13:02 Loading table: calendar 2024/07/03 21:13:02 Importing table from /tmp/mobroute_tempdir2140358853/calendar.txt (0.00MB) to table: calendar 2024/07/03 21:13:02 Last checksum vs current: / C_0M_e3b90f0aa591f682039ce6ac7a9f4e8f46025c2346ee8478c06a04300d59ed12; import will occur 2024/07/03 21:13:02 Imported 2 rows into calendar ok 2024/07/03 21:13:02 Imported table from /tmp/mobroute_tempdir2140358853/calendar.txt to table: calendar ok 2024/07/03 21:13:02 Loading table: calendar complete 2024/07/03 21:13:02 Loading table: calendar_dates 2024/07/03 21:13:02 Importing table from /tmp/mobroute_tempdir2140358853/calendar_dates.txt (0.00MB) to table: calendar_dates 2024/07/03 21:13:02 Skipped import for non-existant non-required file: /tmp/mobroute_tempdir2140358853/calendar_dates.txt 2024/07/03 21:13:02 Loading table: calendar_dates complete 2024/07/03 21:13:02 Loading table: stop_times 2024/07/03 21:13:02 Importing table from /tmp/mobroute_tempdir2140358853/stop_times.txt (0.00MB) to table: stop_times 2024/07/03 21:13:02 Last checksum vs current: / C_0M_34d5ab6ee7cbb3e04fd82bd1dca86e4daecfa570a11b128209c8e5c102662d0a; import will occur 2024/07/03 21:13:02 Imported 1 rows into stop_times ok 2024/07/03 21:13:02 Imported table from /tmp/mobroute_tempdir2140358853/stop_times.txt to table: stop_times ok 2024/07/03 21:13:02 Loading table: stop_times complete 2024/07/03 21:13:02 Loading table: stops 2024/07/03 21:13:02 Importing table from /tmp/mobroute_tempdir2140358853/stops.txt (0.00MB) to table: stops 2024/07/03 21:13:02 Last checksum vs current: / C_0M_0e74a5076f0274b109142fc425c74cff47bef02800122d1f65189c2f2ac9ddbb; import will occur 2024/07/03 21:13:02 Imported 1 rows into stops ok 2024/07/03 21:13:02 Imported table from /tmp/mobroute_tempdir2140358853/stops.txt to table: stops ok 2024/07/03 21:13:02 Loading table: stops complete 2024/07/03 21:13:02 Loading table: trips 2024/07/03 21:13:02 Importing table from /tmp/mobroute_tempdir2140358853/trips.txt (0.00MB) to table: trips 2024/07/03 21:13:02 Last checksum vs current: / C_0M_0391ceb043162a440ba78564cae799b0c9b0004ac42d27290246145bfa780435; import will occur 2024/07/03 21:13:02 Imported 1 rows into trips ok 2024/07/03 21:13:02 Imported table from /tmp/mobroute_tempdir2140358853/trips.txt to table: trips ok 2024/07/03 21:13:02 Loading table: trips complete 2024/07/03 21:13:02 Loading table: routes 2024/07/03 21:13:02 Importing table from /tmp/mobroute_tempdir2140358853/routes.txt (0.00MB) to table: routes 2024/07/03 21:13:02 Last checksum vs current: / C_0M_a6031af6418607a6e5f51c20eaa22f422664f8d5254c59438ab18ce7e1e97cf8; import will occur 2024/07/03 21:13:02 Imported 1 rows into routes ok 2024/07/03 21:13:02 Imported table from /tmp/mobroute_tempdir2140358853/routes.txt to table: routes ok 2024/07/03 21:13:02 Loading table: routes complete 2024/07/03 21:13:02 Loading table: transfers 2024/07/03 21:13:02 Importing table from /tmp/mobroute_tempdir2140358853/transfers.txt (0.00MB) to table: transfers 2024/07/03 21:13:02 Skipped import for non-existant non-required file: /tmp/mobroute_tempdir2140358853/transfers.txt 2024/07/03 21:13:02 Loading table: transfers complete 2024/07/03 21:13:02 Loaded /tmp/2365518815.zip to DB with source name: 42 ok 2024/07/03 21:13:02 Loading mdbid 42 ok; used cache for URL download (true) 2024/07/03 21:13:02 Running Load against 1 sources ok 2024/07/03 21:13:02 Running Compute against 1 sources 2024/07/03 21:13:02 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:13:02 Computed table _cvcaltoservice for source (42 ) out of date - updating ('' vs '42:stops:C_0M_0e74a5076f0274b109142fc425c74cff47bef02800122d1f65189c2f2ac9ddbb') 2024/07/03 21:13:02 Computed table _cvtransfersgen for source (42 0xc0002e7758) out of date - updating ('' vs '42:stops:C_0M_0e74a5076f0274b109142fc425c74cff47bef02800122d1f65189c2f2ac9ddbb') 2024/07/03 21:13:02 Running Compute against 1 sources ok 2024/07/03 21:13:02 Opening DB in RO mode: file:/tmp/mobroute_test_sqlite_2445997348.db?mode=ro 2024/07/03 21:13:02 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:13:02 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:13:02 Generated mock: (gtfs zips: [/tmp/4268495496.zip]) (mobdb csv: /tmp/mobroute_test_mobdb_2655636027.csv) 2024/07/03 21:13:02 SQLite system version (3.45.1); comparing to required version: 3.28.0 2024/07/03 21:13:02 Loading schema tables 2024/07/03 21:13:02 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:13:02 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:13:02 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:13:02 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:13:02 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:13:02 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:13:02 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:13:02 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:13:02 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:13:02 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:13:02 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:13:02 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:13:02 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:13:02 Loading schema tables ok 2024/07/03 21:13:02 Loading schema indexes 2024/07/03 21:13:02 Create index idx_stop_times1_departure_time on stop_times as [departure_time] 2024/07/03 21:13:02 Created index idx_stop_times1_departure_time ok 2024/07/03 21:13:02 Create index idx_stop_times1_trip_id on stop_times as [trip_id] 2024/07/03 21:13:02 Created index idx_stop_times1_trip_id ok 2024/07/03 21:13:02 Create index idx_stops2_source_stop_id on stops as [source stop_id] 2024/07/03 21:13:02 Created index idx_stops2_source_stop_id ok 2024/07/03 21:13:02 Create index idx_stops2_stop_lat_stop_lon on stops as [stop_lat stop_lon] 2024/07/03 21:13:02 Created index idx_stops2_stop_lat_stop_lon ok 2024/07/03 21:13:02 Create index idx_transfers2_source_from_stop_id on transfers as [source from_stop_id] 2024/07/03 21:13:02 Created index idx_transfers2_source_from_stop_id ok 2024/07/03 21:13:02 Create index idx_transfers2_source_to_stop_id on transfers as [source to_stop_id] 2024/07/03 21:13:02 Created index idx_transfers2_source_to_stop_id ok 2024/07/03 21:13:02 Create index idx__cvconnd3_source_service_id_from_stop_time on _cvconnd as [source service_id from_stop_time] 2024/07/03 21:13:02 Created index idx__cvconnd3_source_service_id_from_stop_time ok 2024/07/03 21:13:02 Create index idx__cvcaltoservice2_service_date_source on _cvcaltoservice as [service_date source] 2024/07/03 21:13:02 Created index idx__cvcaltoservice2_service_date_source ok 2024/07/03 21:13:02 Loading schema indexes ok 2024/07/03 21:13:02 Loading views ok 2024/07/03 21:13:02 Loaded view _vsources (bytes=2888) 2024/07/03 21:13:02 Loaded view _vstopparent (bytes=2589) 2024/07/03 21:13:02 Loaded view _vconnd (bytes=1214) 2024/07/03 21:13:02 Loaded view _vconndverbose (bytes=1065) 2024/07/03 21:13:02 Loaded view _vcaltoservice (bytes=4202) 2024/07/03 21:13:02 Loaded view _vtransferstbl (bytes=920) 2024/07/03 21:13:02 Loaded view _vtransfersgen (bytes=1538) 2024/07/03 21:13:02 Loaded view _vtransfersimplicit (bytes=365) 2024/07/03 21:13:02 Loading views ok 2024/07/03 21:13:02 Importing table from //tmp/mobroute_test_mobdb_2655636027.csv (0.00MB) to table: _mdb 2024/07/03 21:13:02 Last checksum vs current: / C_0M_44e04065055ba71c996494ebe15ac414d28d4d0430ab89647e6ac4d287f68708; import will occur 2024/07/03 21:13:02 Imported 1 rows into _mdb ok 2024/07/03 21:13:02 Imported table from //tmp/mobroute_test_mobdb_2655636027.csv to table: _mdb ok 2024/07/03 21:13:02 Applied filter (null) matched 1 Mobility DB GTFS sources: [42] 2024/07/03 21:13:02 Running Load against 1 sources 2024/07/03 21:13:02 Loading mdbid 42 (1 of 1) 2024/07/03 21:13:02 Loading /tmp/4268495496.zip to DB with source name: 42 2024/07/03 21:13:02 Loaded GTFS Archive /tmp/4268495496.zip to temporary directory: /tmp/mobroute_tempdir2317162783 2024/07/03 21:13:02 Loading table: agency 2024/07/03 21:13:02 Importing table from /tmp/mobroute_tempdir2317162783/agency.txt (0.00MB) to table: agency 2024/07/03 21:13:02 Last checksum vs current: / C_0M_ec69cc35698113d39b116d06df83c168ff34eec1dd5daa90136c2ccdddd57966; import will occur 2024/07/03 21:13:02 Imported 1 rows into agency ok 2024/07/03 21:13:02 Imported table from /tmp/mobroute_tempdir2317162783/agency.txt to table: agency ok 2024/07/03 21:13:02 Loading table: agency complete 2024/07/03 21:13:02 Loading table: calendar 2024/07/03 21:13:02 Importing table from /tmp/mobroute_tempdir2317162783/calendar.txt (0.00MB) to table: calendar 2024/07/03 21:13:02 Last checksum vs current: / C_0M_e3b90f0aa591f682039ce6ac7a9f4e8f46025c2346ee8478c06a04300d59ed12; import will occur 2024/07/03 21:13:02 Imported 2 rows into calendar ok 2024/07/03 21:13:02 Imported table from /tmp/mobroute_tempdir2317162783/calendar.txt to table: calendar ok 2024/07/03 21:13:02 Loading table: calendar complete 2024/07/03 21:13:02 Loading table: calendar_dates 2024/07/03 21:13:02 Importing table from /tmp/mobroute_tempdir2317162783/calendar_dates.txt (0.00MB) to table: calendar_dates 2024/07/03 21:13:02 Skipped import for non-existant non-required file: /tmp/mobroute_tempdir2317162783/calendar_dates.txt 2024/07/03 21:13:02 Loading table: calendar_dates complete 2024/07/03 21:13:02 Loading table: stop_times 2024/07/03 21:13:02 Importing table from /tmp/mobroute_tempdir2317162783/stop_times.txt (0.00MB) to table: stop_times 2024/07/03 21:13:02 Last checksum vs current: / C_0M_34d5ab6ee7cbb3e04fd82bd1dca86e4daecfa570a11b128209c8e5c102662d0a; import will occur 2024/07/03 21:13:02 Imported 1 rows into stop_times ok 2024/07/03 21:13:02 Imported table from /tmp/mobroute_tempdir2317162783/stop_times.txt to table: stop_times ok 2024/07/03 21:13:02 Loading table: stop_times complete 2024/07/03 21:13:02 Loading table: stops 2024/07/03 21:13:02 Importing table from /tmp/mobroute_tempdir2317162783/stops.txt (0.00MB) to table: stops 2024/07/03 21:13:02 Last checksum vs current: / C_0M_0e74a5076f0274b109142fc425c74cff47bef02800122d1f65189c2f2ac9ddbb; import will occur 2024/07/03 21:13:02 Imported 1 rows into stops ok 2024/07/03 21:13:02 Imported table from /tmp/mobroute_tempdir2317162783/stops.txt to table: stops ok 2024/07/03 21:13:02 Loading table: stops complete 2024/07/03 21:13:02 Loading table: trips 2024/07/03 21:13:02 Importing table from /tmp/mobroute_tempdir2317162783/trips.txt (0.00MB) to table: trips 2024/07/03 21:13:02 Last checksum vs current: / C_0M_0391ceb043162a440ba78564cae799b0c9b0004ac42d27290246145bfa780435; import will occur 2024/07/03 21:13:02 Imported 1 rows into trips ok 2024/07/03 21:13:02 Imported table from /tmp/mobroute_tempdir2317162783/trips.txt to table: trips ok 2024/07/03 21:13:02 Loading table: trips complete 2024/07/03 21:13:02 Loading table: routes 2024/07/03 21:13:02 Importing table from /tmp/mobroute_tempdir2317162783/routes.txt (0.00MB) to table: routes 2024/07/03 21:13:02 Last checksum vs current: / C_0M_a6031af6418607a6e5f51c20eaa22f422664f8d5254c59438ab18ce7e1e97cf8; import will occur 2024/07/03 21:13:02 Imported 1 rows into routes ok 2024/07/03 21:13:02 Imported table from /tmp/mobroute_tempdir2317162783/routes.txt to table: routes ok 2024/07/03 21:13:02 Loading table: routes complete 2024/07/03 21:13:02 Loading table: transfers 2024/07/03 21:13:02 Importing table from /tmp/mobroute_tempdir2317162783/transfers.txt (0.00MB) to table: transfers 2024/07/03 21:13:02 Skipped import for non-existant non-required file: /tmp/mobroute_tempdir2317162783/transfers.txt 2024/07/03 21:13:02 Loading table: transfers complete 2024/07/03 21:13:02 Loaded /tmp/4268495496.zip to DB with source name: 42 ok 2024/07/03 21:13:02 Loading mdbid 42 ok; used cache for URL download (true) 2024/07/03 21:13:02 Running Load against 1 sources ok 2024/07/03 21:13:02 Running Compute against 1 sources 2024/07/03 21:13:02 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:13:02 Computed table _cvcaltoservice for source (42 ) out of date - updating ('' vs '42:stops:C_0M_0e74a5076f0274b109142fc425c74cff47bef02800122d1f65189c2f2ac9ddbb') 2024/07/03 21:13:02 Computed table _cvtransfersgen for source (42 0xc000458658) out of date - updating ('' vs '42:stops:C_0M_0e74a5076f0274b109142fc425c74cff47bef02800122d1f65189c2f2ac9ddbb') 2024/07/03 21:13:02 Running Compute against 1 sources ok 2024/07/03 21:13:02 Opening DB in RO mode: file:/tmp/mobroute_test_sqlite_2963590664.db?mode=ro 2024/07/03 21:13:02 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:13:02 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:13:02 Generated mock: (gtfs zips: [/tmp/3308951677.zip]) (mobdb csv: /tmp/mobroute_test_mobdb_4248580902.csv) 2024/07/03 21:13:02 SQLite system version (3.45.1); comparing to required version: 3.28.0 2024/07/03 21:13:02 Loading schema tables 2024/07/03 21:13:02 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:13:02 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:13:02 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:13:02 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:13:02 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:13:02 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:13:02 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:13:02 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:13:02 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:13:02 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:13:02 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:13:02 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:13:02 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:13:02 Loading schema tables ok 2024/07/03 21:13:02 Loading schema indexes 2024/07/03 21:13:02 Create index idx_stop_times1_departure_time on stop_times as [departure_time] 2024/07/03 21:13:02 Created index idx_stop_times1_departure_time ok 2024/07/03 21:13:02 Create index idx_stop_times1_trip_id on stop_times as [trip_id] 2024/07/03 21:13:02 Created index idx_stop_times1_trip_id ok 2024/07/03 21:13:02 Create index idx_stops2_source_stop_id on stops as [source stop_id] 2024/07/03 21:13:02 Created index idx_stops2_source_stop_id ok 2024/07/03 21:13:02 Create index idx_stops2_stop_lat_stop_lon on stops as [stop_lat stop_lon] 2024/07/03 21:13:02 Created index idx_stops2_stop_lat_stop_lon ok 2024/07/03 21:13:02 Create index idx_transfers2_source_from_stop_id on transfers as [source from_stop_id] 2024/07/03 21:13:02 Created index idx_transfers2_source_from_stop_id ok 2024/07/03 21:13:02 Create index idx_transfers2_source_to_stop_id on transfers as [source to_stop_id] 2024/07/03 21:13:02 Created index idx_transfers2_source_to_stop_id ok 2024/07/03 21:13:02 Create index idx__cvconnd3_source_service_id_from_stop_time on _cvconnd as [source service_id from_stop_time] 2024/07/03 21:13:02 Created index idx__cvconnd3_source_service_id_from_stop_time ok 2024/07/03 21:13:02 Create index idx__cvcaltoservice2_service_date_source on _cvcaltoservice as [service_date source] 2024/07/03 21:13:02 Created index idx__cvcaltoservice2_service_date_source ok 2024/07/03 21:13:02 Loading schema indexes ok 2024/07/03 21:13:02 Loading views ok 2024/07/03 21:13:02 Loaded view _vsources (bytes=2888) 2024/07/03 21:13:02 Loaded view _vstopparent (bytes=2589) 2024/07/03 21:13:02 Loaded view _vconnd (bytes=1214) 2024/07/03 21:13:02 Loaded view _vconndverbose (bytes=1065) 2024/07/03 21:13:02 Loaded view _vcaltoservice (bytes=4202) 2024/07/03 21:13:02 Loaded view _vtransferstbl (bytes=920) 2024/07/03 21:13:02 Loaded view _vtransfersgen (bytes=1538) 2024/07/03 21:13:02 Loaded view _vtransfersimplicit (bytes=365) 2024/07/03 21:13:02 Loading views ok 2024/07/03 21:13:02 Importing table from //tmp/mobroute_test_mobdb_4248580902.csv (0.00MB) to table: _mdb 2024/07/03 21:13:02 Last checksum vs current: / C_0M_d9e3101e73db86f81097c5eac8f54808ea8f2a4b3ae436acde0a618be9ea3caf; import will occur 2024/07/03 21:13:02 Imported 1 rows into _mdb ok 2024/07/03 21:13:02 Imported table from //tmp/mobroute_test_mobdb_4248580902.csv to table: _mdb ok 2024/07/03 21:13:02 Applied filter (null) matched 1 Mobility DB GTFS sources: [42] 2024/07/03 21:13:02 Running Load against 1 sources 2024/07/03 21:13:02 Loading mdbid 42 (1 of 1) 2024/07/03 21:13:02 Loading /tmp/3308951677.zip to DB with source name: 42 2024/07/03 21:13:02 Loaded GTFS Archive /tmp/3308951677.zip to temporary directory: /tmp/mobroute_tempdir903918482 2024/07/03 21:13:02 Loading table: agency 2024/07/03 21:13:02 Importing table from /tmp/mobroute_tempdir903918482/agency.txt (0.00MB) to table: agency 2024/07/03 21:13:02 Last checksum vs current: / C_0M_ec69cc35698113d39b116d06df83c168ff34eec1dd5daa90136c2ccdddd57966; import will occur 2024/07/03 21:13:02 Imported 1 rows into agency ok 2024/07/03 21:13:02 Imported table from /tmp/mobroute_tempdir903918482/agency.txt to table: agency ok 2024/07/03 21:13:02 Loading table: agency complete 2024/07/03 21:13:02 Loading table: calendar 2024/07/03 21:13:02 Importing table from /tmp/mobroute_tempdir903918482/calendar.txt (0.00MB) to table: calendar 2024/07/03 21:13:02 Skipped import for non-existant non-required file: /tmp/mobroute_tempdir903918482/calendar.txt 2024/07/03 21:13:02 Loading table: calendar complete 2024/07/03 21:13:02 Loading table: calendar_dates 2024/07/03 21:13:02 Importing table from /tmp/mobroute_tempdir903918482/calendar_dates.txt (0.00MB) to table: calendar_dates 2024/07/03 21:13:02 Last checksum vs current: / C_0M_c9a596973ac871ddba3e27cef7cc8ef2d3481b1fd98a210e6f398bd2ce95a687; import will occur 2024/07/03 21:13:02 Imported 6 rows into calendar_dates ok 2024/07/03 21:13:02 Imported table from /tmp/mobroute_tempdir903918482/calendar_dates.txt to table: calendar_dates ok 2024/07/03 21:13:02 Loading table: calendar_dates complete 2024/07/03 21:13:02 Loading table: stop_times 2024/07/03 21:13:02 Importing table from /tmp/mobroute_tempdir903918482/stop_times.txt (0.00MB) to table: stop_times 2024/07/03 21:13:02 Last checksum vs current: / C_0M_34d5ab6ee7cbb3e04fd82bd1dca86e4daecfa570a11b128209c8e5c102662d0a; import will occur 2024/07/03 21:13:02 Imported 1 rows into stop_times ok 2024/07/03 21:13:02 Imported table from /tmp/mobroute_tempdir903918482/stop_times.txt to table: stop_times ok 2024/07/03 21:13:02 Loading table: stop_times complete 2024/07/03 21:13:02 Loading table: stops 2024/07/03 21:13:02 Importing table from /tmp/mobroute_tempdir903918482/stops.txt (0.00MB) to table: stops 2024/07/03 21:13:02 Last checksum vs current: / C_0M_0e74a5076f0274b109142fc425c74cff47bef02800122d1f65189c2f2ac9ddbb; import will occur 2024/07/03 21:13:02 Imported 1 rows into stops ok 2024/07/03 21:13:02 Imported table from /tmp/mobroute_tempdir903918482/stops.txt to table: stops ok 2024/07/03 21:13:02 Loading table: stops complete 2024/07/03 21:13:02 Loading table: trips 2024/07/03 21:13:02 Importing table from /tmp/mobroute_tempdir903918482/trips.txt (0.00MB) to table: trips 2024/07/03 21:13:02 Last checksum vs current: / C_0M_0391ceb043162a440ba78564cae799b0c9b0004ac42d27290246145bfa780435; import will occur 2024/07/03 21:13:02 Imported 1 rows into trips ok 2024/07/03 21:13:02 Imported table from /tmp/mobroute_tempdir903918482/trips.txt to table: trips ok 2024/07/03 21:13:02 Loading table: trips complete 2024/07/03 21:13:02 Loading table: routes 2024/07/03 21:13:02 Importing table from /tmp/mobroute_tempdir903918482/routes.txt (0.00MB) to table: routes 2024/07/03 21:13:02 Last checksum vs current: / C_0M_a6031af6418607a6e5f51c20eaa22f422664f8d5254c59438ab18ce7e1e97cf8; import will occur 2024/07/03 21:13:02 Imported 1 rows into routes ok 2024/07/03 21:13:02 Imported table from /tmp/mobroute_tempdir903918482/routes.txt to table: routes ok 2024/07/03 21:13:02 Loading table: routes complete 2024/07/03 21:13:02 Loading table: transfers 2024/07/03 21:13:02 Importing table from /tmp/mobroute_tempdir903918482/transfers.txt (0.00MB) to table: transfers 2024/07/03 21:13:02 Skipped import for non-existant non-required file: /tmp/mobroute_tempdir903918482/transfers.txt 2024/07/03 21:13:02 Loading table: transfers complete 2024/07/03 21:13:02 Loaded /tmp/3308951677.zip to DB with source name: 42 ok 2024/07/03 21:13:02 Loading mdbid 42 ok; used cache for URL download (true) 2024/07/03 21:13:02 Running Load against 1 sources ok 2024/07/03 21:13:02 Running Compute against 1 sources 2024/07/03 21:13:02 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:13:02 Computed table _cvcaltoservice for source (42 ) out of date - updating ('' vs '42:stops:C_0M_0e74a5076f0274b109142fc425c74cff47bef02800122d1f65189c2f2ac9ddbb') 2024/07/03 21:13:02 Computed table _cvtransfersgen for source (42 0xc0004596b8) out of date - updating ('' vs '42:stops:C_0M_0e74a5076f0274b109142fc425c74cff47bef02800122d1f65189c2f2ac9ddbb') 2024/07/03 21:13:02 Running Compute against 1 sources ok 2024/07/03 21:13:02 Opening DB in RO mode: file:/tmp/mobroute_test_sqlite_3480263277.db?mode=ro 2024/07/03 21:13:02 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:13:02 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:13:02 Generated mock: (gtfs zips: [/tmp/1192982571.zip]) (mobdb csv: /tmp/mobroute_test_mobdb_77902801.csv) 2024/07/03 21:13:02 SQLite system version (3.45.1); comparing to required version: 3.28.0 2024/07/03 21:13:02 Loading schema tables 2024/07/03 21:13:02 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:13:02 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:13:02 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:13:02 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:13:02 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:13:02 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:13:02 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:13:02 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:13:02 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:13:02 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:13:02 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:13:02 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:13:02 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:13:02 Loading schema tables ok 2024/07/03 21:13:02 Loading schema indexes 2024/07/03 21:13:02 Create index idx_stop_times1_departure_time on stop_times as [departure_time] 2024/07/03 21:13:02 Created index idx_stop_times1_departure_time ok 2024/07/03 21:13:02 Create index idx_stop_times1_trip_id on stop_times as [trip_id] 2024/07/03 21:13:02 Created index idx_stop_times1_trip_id ok 2024/07/03 21:13:02 Create index idx_stops2_source_stop_id on stops as [source stop_id] 2024/07/03 21:13:02 Created index idx_stops2_source_stop_id ok 2024/07/03 21:13:02 Create index idx_stops2_stop_lat_stop_lon on stops as [stop_lat stop_lon] 2024/07/03 21:13:02 Created index idx_stops2_stop_lat_stop_lon ok 2024/07/03 21:13:02 Create index idx_transfers2_source_from_stop_id on transfers as [source from_stop_id] 2024/07/03 21:13:02 Created index idx_transfers2_source_from_stop_id ok 2024/07/03 21:13:02 Create index idx_transfers2_source_to_stop_id on transfers as [source to_stop_id] 2024/07/03 21:13:02 Created index idx_transfers2_source_to_stop_id ok 2024/07/03 21:13:02 Create index idx__cvconnd3_source_service_id_from_stop_time on _cvconnd as [source service_id from_stop_time] 2024/07/03 21:13:02 Created index idx__cvconnd3_source_service_id_from_stop_time ok 2024/07/03 21:13:02 Create index idx__cvcaltoservice2_service_date_source on _cvcaltoservice as [service_date source] 2024/07/03 21:13:02 Created index idx__cvcaltoservice2_service_date_source ok 2024/07/03 21:13:02 Loading schema indexes ok 2024/07/03 21:13:02 Loading views ok 2024/07/03 21:13:02 Loaded view _vsources (bytes=2888) 2024/07/03 21:13:02 Loaded view _vstopparent (bytes=2589) 2024/07/03 21:13:02 Loaded view _vconnd (bytes=1214) 2024/07/03 21:13:02 Loaded view _vconndverbose (bytes=1065) 2024/07/03 21:13:02 Loaded view _vcaltoservice (bytes=4202) 2024/07/03 21:13:02 Loaded view _vtransferstbl (bytes=920) 2024/07/03 21:13:02 Loaded view _vtransfersgen (bytes=1538) 2024/07/03 21:13:02 Loaded view _vtransfersimplicit (bytes=365) 2024/07/03 21:13:02 Loading views ok 2024/07/03 21:13:02 Importing table from //tmp/mobroute_test_mobdb_77902801.csv (0.00MB) to table: _mdb 2024/07/03 21:13:02 Last checksum vs current: / C_0M_517082d542dcc8de1870a30c653a075305b6892334c0a27eafac8125aedd2230; import will occur 2024/07/03 21:13:02 Imported 1 rows into _mdb ok 2024/07/03 21:13:02 Imported table from //tmp/mobroute_test_mobdb_77902801.csv to table: _mdb ok 2024/07/03 21:13:02 Applied filter (null) matched 1 Mobility DB GTFS sources: [42] 2024/07/03 21:13:02 Running Load against 1 sources 2024/07/03 21:13:02 Loading mdbid 42 (1 of 1) 2024/07/03 21:13:02 Loading /tmp/1192982571.zip to DB with source name: 42 2024/07/03 21:13:02 Loaded GTFS Archive /tmp/1192982571.zip to temporary directory: /tmp/mobroute_tempdir3155891420 2024/07/03 21:13:02 Loading table: agency 2024/07/03 21:13:02 Importing table from /tmp/mobroute_tempdir3155891420/agency.txt (0.00MB) to table: agency 2024/07/03 21:13:02 Last checksum vs current: / C_0M_ec69cc35698113d39b116d06df83c168ff34eec1dd5daa90136c2ccdddd57966; import will occur 2024/07/03 21:13:02 Imported 1 rows into agency ok 2024/07/03 21:13:02 Imported table from /tmp/mobroute_tempdir3155891420/agency.txt to table: agency ok 2024/07/03 21:13:02 Loading table: agency complete 2024/07/03 21:13:02 Loading table: calendar 2024/07/03 21:13:02 Importing table from /tmp/mobroute_tempdir3155891420/calendar.txt (0.00MB) to table: calendar 2024/07/03 21:13:02 Skipped import for non-existant non-required file: /tmp/mobroute_tempdir3155891420/calendar.txt 2024/07/03 21:13:02 Loading table: calendar complete 2024/07/03 21:13:02 Loading table: calendar_dates 2024/07/03 21:13:02 Importing table from /tmp/mobroute_tempdir3155891420/calendar_dates.txt (0.00MB) to table: calendar_dates 2024/07/03 21:13:02 Last checksum vs current: / C_0M_c9a596973ac871ddba3e27cef7cc8ef2d3481b1fd98a210e6f398bd2ce95a687; import will occur 2024/07/03 21:13:02 Imported 6 rows into calendar_dates ok 2024/07/03 21:13:02 Imported table from /tmp/mobroute_tempdir3155891420/calendar_dates.txt to table: calendar_dates ok 2024/07/03 21:13:02 Loading table: calendar_dates complete 2024/07/03 21:13:02 Loading table: stop_times 2024/07/03 21:13:02 Importing table from /tmp/mobroute_tempdir3155891420/stop_times.txt (0.00MB) to table: stop_times 2024/07/03 21:13:02 Last checksum vs current: / C_0M_34d5ab6ee7cbb3e04fd82bd1dca86e4daecfa570a11b128209c8e5c102662d0a; import will occur 2024/07/03 21:13:02 Imported 1 rows into stop_times ok 2024/07/03 21:13:02 Imported table from /tmp/mobroute_tempdir3155891420/stop_times.txt to table: stop_times ok 2024/07/03 21:13:02 Loading table: stop_times complete 2024/07/03 21:13:02 Loading table: stops 2024/07/03 21:13:02 Importing table from /tmp/mobroute_tempdir3155891420/stops.txt (0.00MB) to table: stops 2024/07/03 21:13:02 Last checksum vs current: / C_0M_0e74a5076f0274b109142fc425c74cff47bef02800122d1f65189c2f2ac9ddbb; import will occur 2024/07/03 21:13:02 Imported 1 rows into stops ok 2024/07/03 21:13:02 Imported table from /tmp/mobroute_tempdir3155891420/stops.txt to table: stops ok 2024/07/03 21:13:02 Loading table: stops complete 2024/07/03 21:13:02 Loading table: trips 2024/07/03 21:13:02 Importing table from /tmp/mobroute_tempdir3155891420/trips.txt (0.00MB) to table: trips 2024/07/03 21:13:02 Last checksum vs current: / C_0M_0391ceb043162a440ba78564cae799b0c9b0004ac42d27290246145bfa780435; import will occur 2024/07/03 21:13:02 Imported 1 rows into trips ok 2024/07/03 21:13:02 Imported table from /tmp/mobroute_tempdir3155891420/trips.txt to table: trips ok 2024/07/03 21:13:02 Loading table: trips complete 2024/07/03 21:13:02 Loading table: routes 2024/07/03 21:13:02 Importing table from /tmp/mobroute_tempdir3155891420/routes.txt (0.00MB) to table: routes 2024/07/03 21:13:02 Last checksum vs current: / C_0M_a6031af6418607a6e5f51c20eaa22f422664f8d5254c59438ab18ce7e1e97cf8; import will occur 2024/07/03 21:13:02 Imported 1 rows into routes ok 2024/07/03 21:13:02 Imported table from /tmp/mobroute_tempdir3155891420/routes.txt to table: routes ok 2024/07/03 21:13:02 Loading table: routes complete 2024/07/03 21:13:02 Loading table: transfers 2024/07/03 21:13:02 Importing table from /tmp/mobroute_tempdir3155891420/transfers.txt (0.00MB) to table: transfers 2024/07/03 21:13:02 Skipped import for non-existant non-required file: /tmp/mobroute_tempdir3155891420/transfers.txt 2024/07/03 21:13:02 Loading table: transfers complete 2024/07/03 21:13:02 Loaded /tmp/1192982571.zip to DB with source name: 42 ok 2024/07/03 21:13:02 Loading mdbid 42 ok; used cache for URL download (true) 2024/07/03 21:13:02 Running Load against 1 sources ok 2024/07/03 21:13:02 Running Compute against 1 sources 2024/07/03 21:13:02 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:13:02 Computed table _cvcaltoservice for source (42 ) out of date - updating ('' vs '42:stops:C_0M_0e74a5076f0274b109142fc425c74cff47bef02800122d1f65189c2f2ac9ddbb') 2024/07/03 21:13:02 Computed table _cvtransfersgen for source (42 0xc00059b528) out of date - updating ('' vs '42:stops:C_0M_0e74a5076f0274b109142fc425c74cff47bef02800122d1f65189c2f2ac9ddbb') 2024/07/03 21:13:02 Running Compute against 1 sources ok 2024/07/03 21:13:02 Opening DB in RO mode: file:/tmp/mobroute_test_sqlite_816767391.db?mode=ro 2024/07/03 21:13:02 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:13:02 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:13:02 Generated mock: (gtfs zips: [/tmp/3768558625.zip]) (mobdb csv: /tmp/mobroute_test_mobdb_3942573603.csv) 2024/07/03 21:13:02 SQLite system version (3.45.1); comparing to required version: 3.28.0 2024/07/03 21:13:02 Loading schema tables 2024/07/03 21:13:02 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:13:02 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:13:02 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:13:02 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:13:02 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:13:02 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:13:02 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:13:02 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:13:02 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:13:02 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:13:02 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:13:02 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:13:02 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:13:02 Loading schema tables ok 2024/07/03 21:13:02 Loading schema indexes 2024/07/03 21:13:02 Create index idx_stop_times1_departure_time on stop_times as [departure_time] 2024/07/03 21:13:02 Created index idx_stop_times1_departure_time ok 2024/07/03 21:13:02 Create index idx_stop_times1_trip_id on stop_times as [trip_id] 2024/07/03 21:13:02 Created index idx_stop_times1_trip_id ok 2024/07/03 21:13:02 Create index idx_stops2_source_stop_id on stops as [source stop_id] 2024/07/03 21:13:02 Created index idx_stops2_source_stop_id ok 2024/07/03 21:13:02 Create index idx_stops2_stop_lat_stop_lon on stops as [stop_lat stop_lon] 2024/07/03 21:13:02 Created index idx_stops2_stop_lat_stop_lon ok 2024/07/03 21:13:02 Create index idx_transfers2_source_from_stop_id on transfers as [source from_stop_id] 2024/07/03 21:13:02 Created index idx_transfers2_source_from_stop_id ok 2024/07/03 21:13:02 Create index idx_transfers2_source_to_stop_id on transfers as [source to_stop_id] 2024/07/03 21:13:02 Created index idx_transfers2_source_to_stop_id ok 2024/07/03 21:13:02 Create index idx__cvconnd3_source_service_id_from_stop_time on _cvconnd as [source service_id from_stop_time] 2024/07/03 21:13:02 Created index idx__cvconnd3_source_service_id_from_stop_time ok 2024/07/03 21:13:02 Create index idx__cvcaltoservice2_service_date_source on _cvcaltoservice as [service_date source] 2024/07/03 21:13:02 Created index idx__cvcaltoservice2_service_date_source ok 2024/07/03 21:13:02 Loading schema indexes ok 2024/07/03 21:13:02 Loading views ok 2024/07/03 21:13:02 Loaded view _vsources (bytes=2888) 2024/07/03 21:13:02 Loaded view _vstopparent (bytes=2589) 2024/07/03 21:13:02 Loaded view _vconnd (bytes=1214) 2024/07/03 21:13:02 Loaded view _vconndverbose (bytes=1065) 2024/07/03 21:13:02 Loaded view _vcaltoservice (bytes=4202) 2024/07/03 21:13:02 Loaded view _vtransferstbl (bytes=920) 2024/07/03 21:13:02 Loaded view _vtransfersgen (bytes=1538) 2024/07/03 21:13:02 Loaded view _vtransfersimplicit (bytes=365) 2024/07/03 21:13:02 Loading views ok 2024/07/03 21:13:02 Importing table from //tmp/mobroute_test_mobdb_3942573603.csv (0.00MB) to table: _mdb 2024/07/03 21:13:02 Last checksum vs current: / C_0M_093048c57d3ea4d36ee06780eae22d89eaeca8e4eb992e7f1bfeb7fec251be2d; import will occur 2024/07/03 21:13:02 Imported 1 rows into _mdb ok 2024/07/03 21:13:02 Imported table from //tmp/mobroute_test_mobdb_3942573603.csv to table: _mdb ok 2024/07/03 21:13:02 Applied filter (null) matched 1 Mobility DB GTFS sources: [42] 2024/07/03 21:13:02 Running Load against 1 sources 2024/07/03 21:13:02 Loading mdbid 42 (1 of 1) 2024/07/03 21:13:02 Loading /tmp/3768558625.zip to DB with source name: 42 2024/07/03 21:13:02 Loaded GTFS Archive /tmp/3768558625.zip to temporary directory: /tmp/mobroute_tempdir3882626860 2024/07/03 21:13:02 Loading table: agency 2024/07/03 21:13:02 Importing table from /tmp/mobroute_tempdir3882626860/agency.txt (0.00MB) to table: agency 2024/07/03 21:13:02 Last checksum vs current: / C_0M_ec69cc35698113d39b116d06df83c168ff34eec1dd5daa90136c2ccdddd57966; import will occur 2024/07/03 21:13:02 Imported 1 rows into agency ok 2024/07/03 21:13:02 Imported table from /tmp/mobroute_tempdir3882626860/agency.txt to table: agency ok 2024/07/03 21:13:02 Loading table: agency complete 2024/07/03 21:13:02 Loading table: calendar 2024/07/03 21:13:02 Importing table from /tmp/mobroute_tempdir3882626860/calendar.txt (0.00MB) to table: calendar 2024/07/03 21:13:02 Last checksum vs current: / C_0M_1a479c2cc8fe96fa8aacf573305f61c13d80b613e0c9ca8c3b964d91ece992ca; import will occur 2024/07/03 21:13:02 Imported 2 rows into calendar ok 2024/07/03 21:13:02 Imported table from /tmp/mobroute_tempdir3882626860/calendar.txt to table: calendar ok 2024/07/03 21:13:02 Loading table: calendar complete 2024/07/03 21:13:02 Loading table: calendar_dates 2024/07/03 21:13:02 Importing table from /tmp/mobroute_tempdir3882626860/calendar_dates.txt (0.00MB) to table: calendar_dates 2024/07/03 21:13:02 Last checksum vs current: / C_0M_674e838dce9a30acbf7bc93af3c4c8f4856ba5f0b7c966777d38b29df07f8800; import will occur 2024/07/03 21:13:02 Imported 4 rows into calendar_dates ok 2024/07/03 21:13:02 Imported table from /tmp/mobroute_tempdir3882626860/calendar_dates.txt to table: calendar_dates ok 2024/07/03 21:13:02 Loading table: calendar_dates complete 2024/07/03 21:13:02 Loading table: stop_times 2024/07/03 21:13:02 Importing table from /tmp/mobroute_tempdir3882626860/stop_times.txt (0.00MB) to table: stop_times 2024/07/03 21:13:02 Last checksum vs current: / C_0M_34d5ab6ee7cbb3e04fd82bd1dca86e4daecfa570a11b128209c8e5c102662d0a; import will occur 2024/07/03 21:13:02 Imported 1 rows into stop_times ok 2024/07/03 21:13:02 Imported table from /tmp/mobroute_tempdir3882626860/stop_times.txt to table: stop_times ok 2024/07/03 21:13:02 Loading table: stop_times complete 2024/07/03 21:13:02 Loading table: stops 2024/07/03 21:13:02 Importing table from /tmp/mobroute_tempdir3882626860/stops.txt (0.00MB) to table: stops 2024/07/03 21:13:02 Last checksum vs current: / C_0M_0e74a5076f0274b109142fc425c74cff47bef02800122d1f65189c2f2ac9ddbb; import will occur 2024/07/03 21:13:02 Imported 1 rows into stops ok 2024/07/03 21:13:02 Imported table from /tmp/mobroute_tempdir3882626860/stops.txt to table: stops ok 2024/07/03 21:13:02 Loading table: stops complete 2024/07/03 21:13:02 Loading table: trips 2024/07/03 21:13:02 Importing table from /tmp/mobroute_tempdir3882626860/trips.txt (0.00MB) to table: trips 2024/07/03 21:13:02 Last checksum vs current: / C_0M_0391ceb043162a440ba78564cae799b0c9b0004ac42d27290246145bfa780435; import will occur 2024/07/03 21:13:02 Imported 1 rows into trips ok 2024/07/03 21:13:02 Imported table from /tmp/mobroute_tempdir3882626860/trips.txt to table: trips ok 2024/07/03 21:13:02 Loading table: trips complete 2024/07/03 21:13:02 Loading table: routes 2024/07/03 21:13:02 Importing table from /tmp/mobroute_tempdir3882626860/routes.txt (0.00MB) to table: routes 2024/07/03 21:13:02 Last checksum vs current: / C_0M_a6031af6418607a6e5f51c20eaa22f422664f8d5254c59438ab18ce7e1e97cf8; import will occur 2024/07/03 21:13:02 Imported 1 rows into routes ok 2024/07/03 21:13:02 Imported table from /tmp/mobroute_tempdir3882626860/routes.txt to table: routes ok 2024/07/03 21:13:02 Loading table: routes complete 2024/07/03 21:13:02 Loading table: transfers 2024/07/03 21:13:02 Importing table from /tmp/mobroute_tempdir3882626860/transfers.txt (0.00MB) to table: transfers 2024/07/03 21:13:02 Skipped import for non-existant non-required file: /tmp/mobroute_tempdir3882626860/transfers.txt 2024/07/03 21:13:02 Loading table: transfers complete 2024/07/03 21:13:02 Loaded /tmp/3768558625.zip to DB with source name: 42 ok 2024/07/03 21:13:02 Loading mdbid 42 ok; used cache for URL download (true) 2024/07/03 21:13:02 Running Load against 1 sources ok 2024/07/03 21:13:02 Running Compute against 1 sources 2024/07/03 21:13:02 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:13:02 Computed table _cvcaltoservice for source (42 ) out of date - updating ('' vs '42:stops:C_0M_0e74a5076f0274b109142fc425c74cff47bef02800122d1f65189c2f2ac9ddbb') 2024/07/03 21:13:02 Computed table _cvtransfersgen for source (42 0xc00059aaf8) out of date - updating ('' vs '42:stops:C_0M_0e74a5076f0274b109142fc425c74cff47bef02800122d1f65189c2f2ac9ddbb') 2024/07/03 21:13:02 Running Compute against 1 sources ok 2024/07/03 21:13:02 Opening DB in RO mode: file:/tmp/mobroute_test_sqlite_1850504000.db?mode=ro 2024/07/03 21:13:02 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:13:02 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.19s) === RUN Test_LoadStopToParent 2024/07/03 21:13:02 Generated mock: (gtfs zips: [/tmp/1403124147.zip]) (mobdb csv: /tmp/mobroute_test_mobdb_3133506948.csv) 2024/07/03 21:13:02 SQLite system version (3.45.1); comparing to required version: 3.28.0 2024/07/03 21:13:02 Loading schema tables 2024/07/03 21:13:02 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:13:02 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:13:02 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:13:02 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:13:02 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:13:02 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:13:02 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:13:02 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:13:02 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:13:02 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:13:02 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:13:02 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:13:02 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:13:02 Loading schema tables ok 2024/07/03 21:13:02 Loading schema indexes 2024/07/03 21:13:02 Create index idx_stop_times1_departure_time on stop_times as [departure_time] 2024/07/03 21:13:02 Created index idx_stop_times1_departure_time ok 2024/07/03 21:13:02 Create index idx_stop_times1_trip_id on stop_times as [trip_id] 2024/07/03 21:13:02 Created index idx_stop_times1_trip_id ok 2024/07/03 21:13:02 Create index idx_stops2_source_stop_id on stops as [source stop_id] 2024/07/03 21:13:02 Created index idx_stops2_source_stop_id ok 2024/07/03 21:13:02 Create index idx_stops2_stop_lat_stop_lon on stops as [stop_lat stop_lon] 2024/07/03 21:13:02 Created index idx_stops2_stop_lat_stop_lon ok 2024/07/03 21:13:02 Create index idx_transfers2_source_from_stop_id on transfers as [source from_stop_id] 2024/07/03 21:13:02 Created index idx_transfers2_source_from_stop_id ok 2024/07/03 21:13:02 Create index idx_transfers2_source_to_stop_id on transfers as [source to_stop_id] 2024/07/03 21:13:02 Created index idx_transfers2_source_to_stop_id ok 2024/07/03 21:13:02 Create index idx__cvconnd3_source_service_id_from_stop_time on _cvconnd as [source service_id from_stop_time] 2024/07/03 21:13:02 Created index idx__cvconnd3_source_service_id_from_stop_time ok 2024/07/03 21:13:02 Create index idx__cvcaltoservice2_service_date_source on _cvcaltoservice as [service_date source] 2024/07/03 21:13:02 Created index idx__cvcaltoservice2_service_date_source ok 2024/07/03 21:13:02 Loading schema indexes ok 2024/07/03 21:13:02 Loading views ok 2024/07/03 21:13:02 Loaded view _vsources (bytes=2888) 2024/07/03 21:13:02 Loaded view _vstopparent (bytes=2589) 2024/07/03 21:13:02 Loaded view _vconnd (bytes=1214) 2024/07/03 21:13:02 Loaded view _vconndverbose (bytes=1065) 2024/07/03 21:13:02 Loaded view _vcaltoservice (bytes=4202) 2024/07/03 21:13:02 Loaded view _vtransferstbl (bytes=920) 2024/07/03 21:13:02 Loaded view _vtransfersgen (bytes=1538) 2024/07/03 21:13:02 Loaded view _vtransfersimplicit (bytes=365) 2024/07/03 21:13:02 Loading views ok 2024/07/03 21:13:02 Importing table from //tmp/mobroute_test_mobdb_3133506948.csv (0.00MB) to table: _mdb 2024/07/03 21:13:02 Last checksum vs current: / C_0M_4ed12bdf88b83743a64108358883241effed9e40d334012b9077ac97881ec9f3; import will occur 2024/07/03 21:13:02 Imported 1 rows into _mdb ok 2024/07/03 21:13:02 Imported table from //tmp/mobroute_test_mobdb_3133506948.csv to table: _mdb ok 2024/07/03 21:13:02 Applied filter (null) matched 1 Mobility DB GTFS sources: [42] 2024/07/03 21:13:02 Running Load against 1 sources 2024/07/03 21:13:02 Loading mdbid 42 (1 of 1) 2024/07/03 21:13:02 Loading /tmp/1403124147.zip to DB with source name: 42 2024/07/03 21:13:02 Loaded GTFS Archive /tmp/1403124147.zip to temporary directory: /tmp/mobroute_tempdir2939576920 2024/07/03 21:13:02 Loading table: agency 2024/07/03 21:13:02 Importing table from /tmp/mobroute_tempdir2939576920/agency.txt (0.00MB) to table: agency 2024/07/03 21:13:02 Last checksum vs current: / C_0M_ec69cc35698113d39b116d06df83c168ff34eec1dd5daa90136c2ccdddd57966; import will occur 2024/07/03 21:13:02 Imported 1 rows into agency ok 2024/07/03 21:13:02 Imported table from /tmp/mobroute_tempdir2939576920/agency.txt to table: agency ok 2024/07/03 21:13:02 Loading table: agency complete 2024/07/03 21:13:02 Loading table: calendar 2024/07/03 21:13:02 Importing table from /tmp/mobroute_tempdir2939576920/calendar.txt (0.00MB) to table: calendar 2024/07/03 21:13:02 Skipped import for non-existant non-required file: /tmp/mobroute_tempdir2939576920/calendar.txt 2024/07/03 21:13:02 Loading table: calendar complete 2024/07/03 21:13:02 Loading table: calendar_dates 2024/07/03 21:13:02 Importing table from /tmp/mobroute_tempdir2939576920/calendar_dates.txt (0.00MB) to table: calendar_dates 2024/07/03 21:13:02 Last checksum vs current: / C_0M_e37e371e5f8c7c355413d55fe59c9054de3dbf0d759f0bcd6ef7968b46cde54e; import will occur 2024/07/03 21:13:02 Imported 1 rows into calendar_dates ok 2024/07/03 21:13:02 Imported table from /tmp/mobroute_tempdir2939576920/calendar_dates.txt to table: calendar_dates ok 2024/07/03 21:13:02 Loading table: calendar_dates complete 2024/07/03 21:13:02 Loading table: stop_times 2024/07/03 21:13:02 Importing table from /tmp/mobroute_tempdir2939576920/stop_times.txt (0.00MB) to table: stop_times 2024/07/03 21:13:02 Last checksum vs current: / C_0M_34d5ab6ee7cbb3e04fd82bd1dca86e4daecfa570a11b128209c8e5c102662d0a; import will occur 2024/07/03 21:13:02 Imported 1 rows into stop_times ok 2024/07/03 21:13:02 Imported table from /tmp/mobroute_tempdir2939576920/stop_times.txt to table: stop_times ok 2024/07/03 21:13:02 Loading table: stop_times complete 2024/07/03 21:13:02 Loading table: stops 2024/07/03 21:13:02 Importing table from /tmp/mobroute_tempdir2939576920/stops.txt (0.00MB) to table: stops 2024/07/03 21:13:02 Last checksum vs current: / C_0M_658a3f90ef5c5b6b531059c770014493d5c29ff969ad1e41a9df10615e479366; import will occur 2024/07/03 21:13:02 Imported 10 rows into stops ok 2024/07/03 21:13:02 Imported table from /tmp/mobroute_tempdir2939576920/stops.txt to table: stops ok 2024/07/03 21:13:02 Loading table: stops complete 2024/07/03 21:13:02 Loading table: trips 2024/07/03 21:13:02 Importing table from /tmp/mobroute_tempdir2939576920/trips.txt (0.00MB) to table: trips 2024/07/03 21:13:02 Last checksum vs current: / C_0M_0391ceb043162a440ba78564cae799b0c9b0004ac42d27290246145bfa780435; import will occur 2024/07/03 21:13:02 Imported 1 rows into trips ok 2024/07/03 21:13:02 Imported table from /tmp/mobroute_tempdir2939576920/trips.txt to table: trips ok 2024/07/03 21:13:02 Loading table: trips complete 2024/07/03 21:13:02 Loading table: routes 2024/07/03 21:13:02 Importing table from /tmp/mobroute_tempdir2939576920/routes.txt (0.00MB) to table: routes 2024/07/03 21:13:02 Last checksum vs current: / C_0M_a6031af6418607a6e5f51c20eaa22f422664f8d5254c59438ab18ce7e1e97cf8; import will occur 2024/07/03 21:13:02 Imported 1 rows into routes ok 2024/07/03 21:13:02 Imported table from /tmp/mobroute_tempdir2939576920/routes.txt to table: routes ok 2024/07/03 21:13:02 Loading table: routes complete 2024/07/03 21:13:02 Loading table: transfers 2024/07/03 21:13:02 Importing table from /tmp/mobroute_tempdir2939576920/transfers.txt (0.00MB) to table: transfers 2024/07/03 21:13:02 Skipped import for non-existant non-required file: /tmp/mobroute_tempdir2939576920/transfers.txt 2024/07/03 21:13:02 Loading table: transfers complete 2024/07/03 21:13:02 Loaded /tmp/1403124147.zip to DB with source name: 42 ok 2024/07/03 21:13:02 Loading mdbid 42 ok; used cache for URL download (true) 2024/07/03 21:13:02 Running Load against 1 sources ok 2024/07/03 21:13:02 Running Compute against 1 sources 2024/07/03 21:13:02 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:13:02 Computed table _cvcaltoservice for source (42 ) out of date - updating ('' vs '42:stops:C_0M_658a3f90ef5c5b6b531059c770014493d5c29ff969ad1e41a9df10615e479366') 2024/07/03 21:13:02 Computed table _cvtransfersgen for source (42 0xc000615ee8) out of date - updating ('' vs '42:stops:C_0M_658a3f90ef5c5b6b531059c770014493d5c29ff969ad1e41a9df10615e479366') 2024/07/03 21:13:02 Running Compute against 1 sources ok 2024/07/03 21:13:02 Opening DB in RO mode: file:/tmp/mobroute_test_sqlite_1984242821.db?mode=ro 2024/07/03 21:13:02 Loading select source, stop_id, parent_station from _vstopparent where source = ? ([42]) to memory 2024/07/03 21:13:02 Loaded select source, stop_id, parent_station from _vstopparent where source = ? ([42]) to memory ok (len=10) --- PASS: Test_LoadStopToParent (0.04s) PASS ok git.sr.ht/~mil/mobroute/dbstubquery_test 0.243s ? 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.005s ? 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-x86_64.so.1 >>> mobroute*: Package size: 9.8 MB >>> mobroute*: Compressing data... >>> mobroute*: Create checksum... >>> mobroute*: Create mobroute-0.5.0-r2.apk >>> mobroute: Build complete at Wed, 03 Jul 2024 21:13:03 +0000 elapsed time 0h 1m 15s >>> mobroute: Cleaning up srcdir >>> mobroute: Cleaning up pkgdir >>> mobroute: Uninstalling dependencies... (1/3) Purging .makedepends-mobroute (20240703.211150) (2/3) Purging tzdata (2024a-r1) (3/3) Purging go (1.22.5-r0) Executing busybox-1.36.1-r31.trigger OK: 378 MiB in 107 packages >>> mobroute: Updating the testing/x86_64 repository index... >>> mobroute: Signing the index...