/sdf/group/fermi/u/kocevski/software/conda/envs/fermitools_v1.0.5/lib/python2.7/site-packages/pyfits/__init__.py:22: PyFITSDeprecationWarning: PyFITS is deprecated, please use astropy.io.fits
  PyFITSDeprecationWarning)  # noqa

Likelihood Analysis Tool
Support Contact: Daniel Kocevski (daniel.kocevski@nasa.gov)

Importing modules...
This is make3FGLxml version 01r0.
The default diffuse model files and names are for pass 8 and assume you have v10r00p05 of the Fermi Science Tools or higher.
This is make4FGLDR3xml version 01r09.
The default diffuse model files and names are for P8R3, 4FGL DRs, and the default fermitools directory locations.

WARNING: version mismatch between CFITSIO header (v3.43) and linked library (v3.41).

/sdf/group/fermi/u/kocevski/software/conda/envs/fermitools_v1.0.5/lib/python2.7/site-packages/matplotlib/cbook/deprecation.py:106: MatplotlibDeprecationWarning: The mpl_toolkits.axes_grid module was deprecated in version 2.1. Use mpl_toolkits.axes_grid1 and mpl_toolkits.axisartist provies the same functionality instead.
  warnings.warn(message, mplDeprecation, stacklevel=1)

WARNING: version mismatch between CFITSIO header (v3.43) and linked library (v3.41).

number of points = 17306
number of fields = 31
RA_SUN column already exists. File will not be modified.
Done.


Performing analysis on: 4FGL_J1656.0+2047_weekly_bin906
RA = 254.005, Dec = 20.7841
tmin = 786931201, tmax = 787536001
emin = 100.0, emax = 100000.0
irfs = P8R3_SOURCE_V2
ROI = 12
zmax = 90

Fitting strategies:
Fix sources to their catalog values = True
Leave variable source normalizations free = True
Perform pre-fit where ALL sources are frozen to catalog values = False
Perform secondary fit with a free spectral index = True
Remove all catalog sources = False
Remove weak (TS < 2) catalog sources = False
Freeze Galactic component = False

Likelihood fit parameters:
Statistic: UNBINNED
Optimizer: MINUIT

Catalog: 4FGL

Repository job = True

LAT data source:
Data catalog

Updating database...

UPDATE lightcurve_data_v2 SET job_id='17379958', job_status='RUN', time_executed='2025-12-16 02:51:08.898542', time_epoch_executed='1765882268.9' WHERE source_name='4FGL J1656.0+2047' and cadence='weekly' and bin_id='906'

Database successfully updated.
Done.

Creating custom output directory:
/lscratch/kocevski/17379958

Creating custom pfile directory:
/lscratch/kocevski/17379958/pfiles/

Retrieving the FT1 file...

Issuing command:
datacat find --group FT1 --filter 'nMetStop>=786931201.0 && nMetStart<787536001.0' /Data/Flight/Reprocess/P305

Issuing command:
datacat find --group FT1 --filter 'nMetStart>564945418 && nMetStop>=786931201.0 && nMetStart<787536001.0' /Data/Flight/Level1/LPA

Retrieving 107 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/lscratch/kocevski/17379958/ft1_4FGL_J1656.0+2047_weekly_bin906.fits


Retrieving the FT1 file...

Issuing command:
datacat find --group FT2 --filter 'nMetStop>=786931201.0 && nMetStart<787536001.0' /Data/Flight/Level1/LPA

Retrieving 107 files...
Done.


Merging files...

Merged file saved to:
/lscratch/kocevski/17379958/ft2_4FGL_J1656.0+2047_weekly_bin906.fits


Selecting the photons:
time -p gtselect infile=/lscratch/kocevski/17379958/ft1_4FGL_J1656.0+2047_weekly_bin906.fits outfile=/lscratch/kocevski/17379958/ft1_filteredMKT_4FGL_J1656.0+2047_weekly_bin906.fits ra=254.005 dec=20.7841 rad=12.0 tmin=786931201.0 tmax=787536001.0 emin=100.0 emax=100000.0 zmin=0.0 zmax=90.0 evclass=128 evtype="INDEF" convtype=-1 phasemin=0.0 phasemax=1.0 evtable="EVENTS" chatter=2 clobber=yes debug=no gui=no mode="ql"

WARNING: version mismatch between CFITSIO header (v3.43) and linked library (v3.41).

Done.
real 5.16
user 4.45
sys 0.21

Adding sun position to ft2 file:
/sdf/group/fermi/g/LCRepository/Repository/bin/sunpos /lscratch/kocevski/17379958/ft2_4FGL_J1656.0+2047_weekly_bin906.fits

Selecting the good time intervals:
time -p gtmktime scfile=/lscratch/kocevski/17379958/ft2_4FGL_J1656.0+2047_weekly_bin906.fits sctable="SC_DATA" filter="IN_SAA!=T && LIVETIME>0 && gtifilter('/sdf/group/fermi/g/LCRepository/Likelihood/GTIs/nogrb.gti',(START+STOP)/2) && (angsep(RA_SUN,DEC_SUN,RA_ZENITH,DEC_ZENITH)>115 || gtifilter('/sdf/group/fermi/g/LCRepository/Likelihood/GTIs/nosolarflares.gti',(START+STOP)/2))" roicut=no evfile=/lscratch/kocevski/17379958/ft1_filteredMKT_4FGL_J1656.0+2047_weekly_bin906.fits evtable="EVENTS" outfile="/lscratch/kocevski/17379958/ft1_filtered_4FGL_J1656.0+2047_weekly_bin906.fits" apply_filter=yes overwrite=yes header_obstimes=yes tstart=0.0 tstop=0.0 gtifile="default" chatter=3 clobber=yes debug=no gui=no mode="ql"

WARNING: version mismatch between CFITSIO header (v3.43) and linked library (v3.41).

This is gtmktime version HEAD
Applying GTI filter:
IN_SAA!=T && LIVETIME>0 && gtifilter('/sdf/group/fermi/g/LCRepository/Likelihood/GTIs/nogrb.gti',(START+STOP)/2) && (angsep(RA_SUN,DEC_SUN,RA_ZENITH,DEC_ZENITH)>115 || gtifilter('/sdf/group/fermi/g/LCRepository/Likelihood/GTIs/nosolarflares.gti',(START+STOP)/2))
real 0.71
user 0.21
sys 0.12

Number of photons that the gtmktime cut: 1855

Generating the livetime cube:
time -p gtltcube evfile="/lscratch/kocevski/17379958/ft1_filtered_4FGL_J1656.0+2047_weekly_bin906.fits" evtable="EVENTS" scfile=/lscratch/kocevski/17379958/ft2_4FGL_J1656.0+2047_weekly_bin906.fits sctable="SC_DATA" outfile=/lscratch/kocevski/17379958/ltcube_786931201_787536001_4FGL_J1656.0+2047_weekly_bin906.fits dcostheta=0.025 binsz=1.0 phibins=0 tmin=0.0 tmax=0.0 file_version="1" zmin=0.0 zmax=90.0 chatter=2 clobber=yes debug=no gui=no mode="ql"

WARNING: version mismatch between CFITSIO header (v3.43) and linked library (v3.41).

Working on file /lscratch/kocevski/17379958/ft2_4FGL_J1656.0+2047_weekly_bin906.fits
.....................!
real 15.80
user 15.13
sys 0.23

Generating the exposure map:
time -p gtexpmap evfile=/lscratch/kocevski/17379958/ft1_filtered_4FGL_J1656.0+2047_weekly_bin906.fits evtable="EVENTS" scfile=/lscratch/kocevski/17379958/ft2_4FGL_J1656.0+2047_weekly_bin906.fits sctable="SC_DATA" expcube=/lscratch/kocevski/17379958/ltcube_786931201_787536001_4FGL_J1656.0+2047_weekly_bin906.fits outfile=/lscratch/kocevski/17379958/expmap_786931201_787536001_4FGL_J1656.0+2047_weekly_bin906.fits irfs="P8R3_SOURCE_V2" evtype="INDEF" srcrad=30.0 nlong=88 nlat=88 nenergies=10 submap=no nlongmin=0 nlongmax=0 nlatmin=0 nlatmax=0 chatter=2 clobber=yes debug=no gui=no mode="ql"

WARNING: version mismatch between CFITSIO header (v3.43) and linked library (v3.41).

The exposure maps generated by this tool are meant
to be used for *unbinned* likelihood analysis only.
Do not use them for binned analyses.
Computing the ExposureMap using /lscratch/kocevski/17379958/ltcube_786931201_787536001_4FGL_J1656.0+2047_weekly_bin906.fits
.....................!
real 60.75
user 56.26
sys 3.66

Generating the xml model:
radLim = 0.001
maxRad = 12
normsOnly = True
freeVariableSources = True
Fixing all sources to their catalog values, except variable sources
Creating file and adding sources from 4FGL
Added 191 point sources and 0 extended sources

Setting source of interest to:
4FGL J1656.0+2047 @ 254.005 20.7841

Creating the counts map:
time -p gtbin evfile=/lscratch/kocevski/17379958/ft1_filtered_4FGL_J1656.0+2047_weekly_bin906.fits scfile=/lscratch/kocevski/17379958/ft2_4FGL_J1656.0+2047_weekly_bin906.fits outfile=/lscratch/kocevski/17379958/cmap_786931201_787536001_4FGL_J1656.0+2047_weekly_bin906.fits algorithm="CMAP" ebinalg="LOG" emin=30.0 emax=200000.0 ebinfile=NONE tbinalg="LIN" tbinfile=NONE nxpix=160 nypix=160 binsz=0.25 coordsys="CEL" xref=254.005 yref=20.7841 axisrot=0.0 rafield="RA" decfield="DEC" proj="AIT" hpx_ordering_scheme="RING" hpx_order=3 hpx_ebin=yes hpx_region="" evtable="EVENTS" sctable="SC_DATA" efield="ENERGY" tfield="TIME" chatter=2 clobber=yes debug=no gui=no mode="ql"

WARNING: version mismatch between CFITSIO header (v3.43) and linked library (v3.41).

This is gtbin version HEAD
real 0.75
user 0.21
sys 0.13

Creating the high resolution counts map:
time -p gtbin evfile=/lscratch/kocevski/17379958/ft1_filtered_4FGL_J1656.0+2047_weekly_bin906.fits scfile=/lscratch/kocevski/17379958/ft2_4FGL_J1656.0+2047_weekly_bin906.fits outfile=/lscratch/kocevski/17379958/cmap_HighResolution_786931201_787536001_4FGL_J1656.0+2047_weekly_bin906.fits algorithm="CMAP" ebinalg="LOG" emin=30.0 emax=200000.0 ebinfile=NONE tbinalg="LIN" tbinfile=NONE nxpix=500 nypix=500 binsz=0.1 coordsys="CEL" xref=254.005 yref=20.7841 axisrot=0.0 rafield="RA" decfield="DEC" proj="AIT" hpx_ordering_scheme="RING" hpx_order=3 hpx_ebin=yes hpx_region="" evtable="EVENTS" sctable="SC_DATA" efield="ENERGY" tfield="TIME" chatter=2 clobber=yes debug=no gui=no mode="ql"

WARNING: version mismatch between CFITSIO header (v3.43) and linked library (v3.41).

This is gtbin version HEAD
real 0.75
user 0.22
sys 0.14

Computing the diffuse response:
time -p gtdiffrsp evfile=/lscratch/kocevski/17379958/ft1_filtered_4FGL_J1656.0+2047_weekly_bin906.fits evtable="EVENTS" scfile=/lscratch/kocevski/17379958/ft2_4FGL_J1656.0+2047_weekly_bin906.fits sctable="SC_DATA" srcmdl=/lscratch/kocevski/17379958/Model_4FGL_J1656.0+2047_weekly_bin906.xml irfs="P8R3_SOURCE_V2" evclsmin=0 evclass="INDEF" evtype="INDEF" convert=yes chatter=2 clobber=yes debug=no gui=no mode="ql"

WARNING: version mismatch between CFITSIO header (v3.43) and linked library (v3.41).

adding source EG_v02
adding source GAL_V02
Working on...
/lscratch/kocevski/17379958/ft1_filtered_4FGL_J1656.0+2047_weekly_bin906.fits.....................!
real 47.95
user 46.08
sys 1.14

Creating the likelihood object...
obs = UnbinnedObs('/lscratch/kocevski/17379958/ft1_filtered_4FGL_J1656.0+2047_weekly_bin906.fits', '/lscratch/kocevski/17379958/ft2_4FGL_J1656.0+2047_weekly_bin906.fits', expMap='/lscratch/kocevski/17379958/expmap_786931201_787536001_4FGL_J1656.0+2047_weekly_bin906.fits', expCube='/lscratch/kocevski/17379958/ltcube_786931201_787536001_4FGL_J1656.0+2047_weekly_bin906.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/lscratch/kocevski/17379958/Model_4FGL_J1656.0+2047_weekly_bin906.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J1656.0+2047'

4FGL J1656.0+2047
   Spectrum: PowerLaw
287    Prefactor:  6.103e+00  0.000e+00  0.000e+00  1.000e+06 ( 1.000e-13)
288        Index:  2.477e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
289        Scale:  8.932e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /lscratch/kocevski/17379958/ft1_filtered_4FGL_J1656.0+2047_weekly_bin906.fits
Spacecraft file(s): /lscratch/kocevski/17379958/ft2_4FGL_J1656.0+2047_weekly_bin906.fits
Exposure map: /lscratch/kocevski/17379958/expmap_786931201_787536001_4FGL_J1656.0+2047_weekly_bin906.fits
Exposure cube: /lscratch/kocevski/17379958/ltcube_786931201_787536001_4FGL_J1656.0+2047_weekly_bin906.fits
IRFs: P8R3_SOURCE_V2
Source model file: /lscratch/kocevski/17379958/Model_4FGL_J1656.0+2047_weekly_bin906.xml
Optimizer: MINUIT
Statistic: UNBINNED

Performing an iterative likelihood fit...

Fit tolerance = 1

Performing likelihood fit...
Done.

MINUIT Return Code (Fixed Index): 0
logL (Fixed Index) = 19750.1370376

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Fixed Index): 0
logL (Fixed Index) = 19750.1212905

Fit tolerance = 1e-08

Performing likelihood fit...
 **********
 **   14 **SET NOWARN 
 **********

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    8.5884       1.0000          .0000       .10000E+07
     2 'Prefactor '    .73275E-08   1.0000          .0000       .10000E+07
     3 'Prefactor '    .54481E-03   1.0000          .0000       .10000E+07
     4 'Prefactor '    6.2104       1.0000          .0000       .10000E+07
     5 'Prefactor '    21.233       1.0000          .0000       .10000E+07
     6 'Prefactor '    .55511E-10   1.0000          .0000       .10000E+07
     7 'Prefactor '    67.221       1.0000          .0000       .10000E+07
     8 'Prefactor '    10.576       1.0000          .0000       .10000E+07
     9 'Prefactor '    1.5844       1.0000          .0000       .10000E+07
    10 'norm      '    .53328       1.0000          .0000       .10000E+07
    11 'norm      '    15.796       1.0000          .0000       .10000E+07
    12 'Prefactor '    19.428       1.0000          .0000       .10000E+07
    13 'norm      '    .16802E-04   1.0000          .0000       .10000E+07
    14 'Normalizat'    .77901       1.0000         .10000E-01   10.000    
    15 'Prefactor '    1.0830       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6290E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   19750.12     FROM MIGRAD    STATUS=CONVERGED     99 CALLS     1187 TOTAL
                     EDM=   .38E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.0%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     8.5888        7.1736        .12414E-05    .12190E-02
   2  Prefactor     .14433E-08    10.734        .30593E-05** at limit **
   3  Prefactor     .99920E-09    13.532       -.76910E-06** at limit **
   4  Prefactor     6.2089        3.7117       -.18647E-06   -.11130E-02
   5  Prefactor     21.235        1.2874        .78524E-07    .12285E-01
   6  Prefactor     .66613E-09    7.1749       -.87459E-06** at limit **
   7  Prefactor     67.233        1.0179        .62086E-08    .24879E-01
   8  Prefactor     10.576        5.8766        .37433E-06    .23425E-02
   9  Prefactor     1.5863        11.929        .75794E-05   -.44841E-03
  10  norm          .53378        1.8307        .11331E-05   -.16667E-02
  11  norm          15.796        1.2653       -.21267E-06    .20197E-01
  12  Prefactor     19.429        3.3408       -.14546E-06   -.63432E-02
  13  norm           .0000        39.493       -.26200E-06** at limit **
  14  Normalizat    .77899        .16594        .33575E-04   -.15027E-03
  15  Prefactor     1.0830        .77326E-01   -.15279E-04   -.98358E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 8.5888
  Prefactor  = 1.44329e-09
  Prefactor  = 9.99201e-10
  Prefactor  = 6.20888
  Prefactor  = 21.2346
  Prefactor  = 6.66134e-10
  Prefactor  = 67.2333
  Prefactor  = 10.5764
  Prefactor  = 1.58627
  norm       = 0.53378
  norm       = 15.7963
  Prefactor  = 19.4286
  norm       = 0
  Normalizat = 0.778987
  Prefactor  = 1.08298
 **********
 **   18 **HESSE 
 **********

 FCN=   19750.12     FROM HESSE     STATUS=OK           216 CALLS     1403 TOTAL
                     EDM=   .81E-05    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     8.5888        7.1843        .34181E-03   -1.5649    
   2  Prefactor     .14433E-08    10.795        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .99920E-09    13.320        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     6.2089        3.7786        .40259E-03   -1.5658    
   5  Prefactor     21.235        15.823        .21708E-03   -1.5616    
   6  Prefactor     .66613E-09    7.1963        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     67.233        49.198        .12198E-03   -1.5544    
   8  Prefactor     10.576        6.0039        .30784E-03   -1.5643    
   9  Prefactor     1.5863        12.024        .84314E-03   -1.5683    
  10  norm          .53378        1.8253        .75430E-03   -1.5693    
  11  norm          15.796        8.3953        .25174E-03   -1.5628    
  12  Prefactor     19.429        3.4982        .22695E-03   -1.5620    
  13  norm           .0000        39.829        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Normalizat    .77899        .14625        .92197E-01   -1.0085    
  15  Prefactor     1.0830        .67516E-01    .38272E-01   -.90012    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 8.05218e-06
Minuit parameter uncertainties:
  1  7.18435
  2  0.00025177
  3  0.000227705
  4  3.77858
  5  15.8228
  6  0.000139887
  7  49.1985
  8  6.00388
  9  8.73451
  10  1.82526
  11  8.39527
  12  3.49817
  13  5.02966e-05
  14  0.146325
  15  0.0675217
Done.

MINUIT Return Code (Fixed Index): 0
logL (Fixed Index) = 19750.1212699

Extracting fit parameters...

4FGL J1656.0+2047
   Spectrum: PowerLaw
287    Prefactor:  2.123e+01  1.582e+01  0.000e+00  1.000e+06 ( 1.000e-13)
288        Index:  2.477e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
289        Scale:  8.932e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
626    Prefactor:  1.083e+00  6.752e-02  0.000e+00  1.000e+01 ( 1.000e+00)
627        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
628        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
625   Normalization:  7.790e-01  1.463e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 3.25
Ra Dec: 254.005 20.784
Photon Index (Fixed Index): 2.48 +/- 0.00
Photon Flux (Fixed Index): 3.26e-08 +/- 2.43e-08
Energy Flux (Fixed Index): 9.72e-06 +/- 7.24e-06

TS (Fixed Index): 3.25
Ra Dec: 254.005 20.784
Photon Flux Upper Limit: 8.4087059286e-08 ph cm-2 s-1
Energy Flux Upper Limit: 0.00653065593318 MeV cm-2 s-1

Saving results to:
/lscratch/kocevski/17379958/likelihoodResults_786931201_787536001_4FGL_J1656.0+2047_weekly_bin906.txt

Performing a free index iterative likelihood fit...

Freezing all point sources, except source of interest...

Done.

Freeing candidate source...
Done.

Fit tolerance = 1

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 19749.610867
delta logL = 0.510402989144

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 19749.6106101
delta logL = 0.510659885258

Fit tolerance = 1e-08

Performing likelihood fit...
 **********
 **   14 **SET NOWARN 
 **********

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    21.235       1.0000          .0000       .10000E+07
     2 'Index     '    1.7682       1.0000          .0000       10.000    
     3 'Normalizat'    .79809       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0794       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6290E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   19749.61     FROM MIGRAD    STATUS=CONVERGED     55 CALLS      210 TOTAL
                     EDM=   .42E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     21.463        19.381        .21707E-03    .32302E-02
   2  Index         1.7722        .47532        .27321       -.26346E-04
   3  Normalizat    .79801        .14286        .91194E-01    .41909E-03
   4  Prefactor     1.0794        .65959E-01    .38426E-01    .74943E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 21.4627
  Index      = 1.77222
  Normalizat = 0.798007
  Prefactor  = 1.07941
 **********
 **   18 **HESSE 
 **********

 FCN=   19749.61     FROM HESSE     STATUS=OK            29 CALLS      239 TOTAL
                     EDM=   .83E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     21.463        19.220        .86829E-05   -1.5615    
   2  Index         1.7722        .61179        .14367E-01   -.70175    
   3  Normalizat    .79801        .16330        .40396E-03   -1.0014    
   4  Prefactor     1.0794        .75896E-01    .16270E-03   -.90127    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 8.28156e-10
Minuit parameter uncertainties:
  1  19.2197
  2  0.614442
  3  0.163396
  4  0.0759036
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 19749.610545
delta logL = 0.51072496971

Extracting fit parameters...

4FGL J1656.0+2047
   Spectrum: PowerLaw
287    Prefactor:  2.146e+01  1.922e+01  0.000e+00  1.000e+06 ( 1.000e-13)
288        Index:  1.772e+00  6.144e-01  0.000e+00  1.000e+01 (-1.000e+00)
289        Scale:  8.932e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
626    Prefactor:  1.079e+00  7.590e-02  0.000e+00  1.000e+01 ( 1.000e+00)
627        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
628        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
625   Normalization:  7.980e-01  1.634e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 4.26
Ra Dec: 254.005 20.784
Photon Index (Free Index): 1.77 +/- 0.61
Photon Flux (Free Index): 1.34e-08 +/- 1.72e-08
Energy Flux (Free Index): 1.75e-05 +/- 2.00e-05

Creating a high resolution counts map...
INFO: Auto-setting vmin to -1.000e-01 [aplpy.core]
INFO: Auto-setting vmax to  1.110e+00 [aplpy.core]
Saving /lscratch/kocevski/17379958/cmap_HighResolution_786931201_787536001_4FGL_J1656.0+2047_weekly_bin906.png

Cleaning up...

** Nuclear option initiated! **

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='6.53e-03', comment='SUCCESS', photon_flux='3.26e-08', energy_flux2='1.75e-05', photon_flux_error='2.43e-08', dlogl='5.11e-01', energy_flux='9.72e-06', photon_flux2='1.34e-08', job_status='DONE', time_completed='2025-12-16 03:03:12.890888', photon_index_error2='0.61', photon_index2='1.77', ts='3.25', fit_tolerance='1e-08', GAL='1.08', photon_index_error='0.00', photon_flux_upper_limit='8.41e-08', energy_flux_error2='2.00e-05', EG='0.78', time_epoch_completed='1765882992.89', return_code='0', job_id='17379958', GAL2='1.08', EG2='0.80', return_code2='0', energy_flux_error='7.24e-06', photon_flux_error2='1.72e-08', ts2='4.26', photon_index='2.48' WHERE bin_id='906' AND source_name='4FGL J1656.0+2047' AND cadence='weekly';

Database successfully updated.


Analysis Complete.


Tue Dec 16 03:03:13 PST 2025

