test.t.rast.accdetect.reverse stderr

+ g.region s=0 n=80 w=0 e=120 b=0 t=50 res=10 -p
+ export GRASS_OVERWRITE=1
+ r.mapcalc expr=temp_6 = 5
+ r.mapcalc expr=temp_5 = 10
+ r.mapcalc expr=temp_4 = 15
+ r.mapcalc expr=temp_3 = 20
+ r.mapcalc expr=temp_2 = 25
+ r.mapcalc expr=temp_1 = 30
+ t.create type=strds temporaltype=absolute output=temp_abs1 title=A test descr=A test
Default TGIS driver / database set to:
driver: sqlite
database: $GISDBASE/$LOCATION_NAME/$MAPSET/tgis/sqlite.db
WARNING: Temporal database connection defined as:
/grassdata/tests-grassdata/piemonte_utm32_wgs84_grass7/__temporal_t_rast_accdetect_test.t.rast.accdetect.reverse/tgis/sqlite.db
But database file does not exist.
Creating temporal database: /grassdata/tests-grassdata/piemonte_utm32_wgs84_grass7/__temporal_t_rast_accdetect_test.t.rast.accdetect.reverse/tgis/sqlite.db
+ t.register -i type=raster input=temp_abs1 maps=temp_1,temp_2,temp_3,temp_4,temp_5,temp_6 start=2001-01-01 increment=2 months
Gathering map information...
0..100
Registering maps in the temporal database...
Registering maps in the space time dataset...
0..Updating space time dataset...
100
+ t.rast.accumulate -r input=temp_abs1 output=temp_accumulation base=temp_acc limits=10,25 start=2001-01-01 gran=2 months cycle=12 months suffix=num%03
Processing cycle 2001-01-01 00:00:00 - 2002-01-01 00:00:00
0..12..25..37..50..62..75..87..100
0..12..25..37..50..62..75..87..100
0..12..25..37..50..62..75..87..100
0..12..25..37..50..62..75..87..100
0..12..25..37..50..62..75..87..100
0..12..25..37..50..62..75..87..100
100
+ t.rast.accdetect -r input=temp_accumulation occurrence=temp_occ base=temp_occ range=20,80 start=2001-01-01 cycle=12 months staend=1,2,3 indi=temp_indi suffix=num%03
Processing cycle 2001-01-01 00:00:00 - 2002-01-01 00:00:00
100
Traceback (most recent call last):
  File "scripts/t.rast.accdetect", line 588, in <module>
    main()
  File "scripts/t.rast.accdetect", line 435, in main
ERROR: Unable to execute transaction:
 INSERT INTO raster_base ( name  ,creator  ,mapset  ,creation_time  ,temporal_type  ,id ) VALUES ('temp_occ_004' ,'vpetras' ,'__temporal_t_rast_accdetect_test.t.rast.accdetect.reverse' ,'2016-08-21 04:39:39.761169' ,'absolute' ,'temp_occ_004@__temporal_t_rast_accdetect_test.t.rast.accdetect.reverse') ;
INSERT INTO raster_absolute_time ( start_time  ,id  ,end_time ) VALUES ('2001-05-01 00:00:00' ,'temp_occ_004@__temporal_t_rast_accdetect_test.t.rast.accdetect.reverse' ,'2001-07-01 00:00:00') ;
INSERT INTO raster_spatial_extent ( north  ,bottom  ,west  ,top  ,proj  ,east  ,id  ,south ) VALUES (80.000000 ,0.000000 ,0.000000 ,0.000000 ,'XY' ,120.000000 ,'temp_occ_004@__temporal_t_rast_accdetect_test.t.rast.accdetect.reverse' ,0.000000) ;
INSERT INTO raster_metadata ( max  ,rows  ,min  ,datatype  ,number_of_cells  ,cols  ,ewres  ,nsres  ,id ) VALUES (2.000000 ,12 ,2.000000 ,'CELL' ,96 ,8 ,10.000000 ,10.000000 ,'temp_occ_004@__temporal_t_rast_accdetect_test.t.rast.accdetect.reverse') ;
INSERT INTO raster_stds_register ( id  ,registered_stds ) VALUES ('temp_occ_004@__temporal_t_rast_accdetect_test.t.rast.accdetect.reverse' ,NULL) ;

    register_null, empty_maps, dbif)
  File "scripts/t.rast.accdetect", line 477, in create_strds_register_maps
    map.insert(dbif)
  File "etc/python/grass/temporal/abstract_map_dataset.py", line 275, in insert
    return AbstractDataset.insert(self, dbif=dbif, execute=execute)
  File "etc/python/grass/temporal/abstract_dataset.py", line 405, in insert
    dbif.execute_transaction(statement)
  File "etc/python/grass/temporal/core.py", line 1021, in execute_transaction
    return self.connections[mapset].execute_transaction(statement)
  File "etc/python/grass/temporal/core.py", line 1315, in execute_transaction
    self.cursor.executescript(statement)
sqlite3.IntegrityError: UNIQUE constraint failed: raster_base.id