/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_J1628.6+7706_weekly_bin906
RA = 247.154, Dec = 77.1099
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='17379898', job_status='RUN', time_executed='2025-12-16 02:50:21.841720', time_epoch_executed='1765882221.84' WHERE source_name='4FGL J1628.6+7706' and cadence='weekly' and bin_id='906'

Database successfully updated.
Done.

Creating custom output directory:
/lscratch/kocevski/17379898

Creating custom pfile directory:
/lscratch/kocevski/17379898/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/17379898/ft1_4FGL_J1628.6+7706_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/17379898/ft2_4FGL_J1628.6+7706_weekly_bin906.fits


Selecting the photons:
time -p gtselect infile=/lscratch/kocevski/17379898/ft1_4FGL_J1628.6+7706_weekly_bin906.fits outfile=/lscratch/kocevski/17379898/ft1_filteredMKT_4FGL_J1628.6+7706_weekly_bin906.fits ra=247.154 dec=77.1099 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.52
user 4.69
sys 0.23

Adding sun position to ft2 file:
/sdf/group/fermi/g/LCRepository/Repository/bin/sunpos /lscratch/kocevski/17379898/ft2_4FGL_J1628.6+7706_weekly_bin906.fits

Selecting the good time intervals:
time -p gtmktime scfile=/lscratch/kocevski/17379898/ft2_4FGL_J1628.6+7706_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/17379898/ft1_filteredMKT_4FGL_J1628.6+7706_weekly_bin906.fits evtable="EVENTS" outfile="/lscratch/kocevski/17379898/ft1_filtered_4FGL_J1628.6+7706_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.83
user 0.19
sys 0.14

Number of photons that the gtmktime cut: 2233

Generating the livetime cube:
time -p gtltcube evfile="/lscratch/kocevski/17379898/ft1_filtered_4FGL_J1628.6+7706_weekly_bin906.fits" evtable="EVENTS" scfile=/lscratch/kocevski/17379898/ft2_4FGL_J1628.6+7706_weekly_bin906.fits sctable="SC_DATA" outfile=/lscratch/kocevski/17379898/ltcube_786931201_787536001_4FGL_J1628.6+7706_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/17379898/ft2_4FGL_J1628.6+7706_weekly_bin906.fits
.....................!
real 17.74
user 16.79
sys 0.22

Generating the exposure map:
time -p gtexpmap evfile=/lscratch/kocevski/17379898/ft1_filtered_4FGL_J1628.6+7706_weekly_bin906.fits evtable="EVENTS" scfile=/lscratch/kocevski/17379898/ft2_4FGL_J1628.6+7706_weekly_bin906.fits sctable="SC_DATA" expcube=/lscratch/kocevski/17379898/ltcube_786931201_787536001_4FGL_J1628.6+7706_weekly_bin906.fits outfile=/lscratch/kocevski/17379898/expmap_786931201_787536001_4FGL_J1628.6+7706_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/17379898/ltcube_786931201_787536001_4FGL_J1628.6+7706_weekly_bin906.fits
.....................!
real 66.69
user 61.63
sys 3.87

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 210 point sources and 0 extended sources

Setting source of interest to:
4FGL J1628.6+7706 @ 247.154 77.1099

Creating the counts map:
time -p gtbin evfile=/lscratch/kocevski/17379898/ft1_filtered_4FGL_J1628.6+7706_weekly_bin906.fits scfile=/lscratch/kocevski/17379898/ft2_4FGL_J1628.6+7706_weekly_bin906.fits outfile=/lscratch/kocevski/17379898/cmap_786931201_787536001_4FGL_J1628.6+7706_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=247.154 yref=77.1099 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.96
user 0.22
sys 0.13

Creating the high resolution counts map:
time -p gtbin evfile=/lscratch/kocevski/17379898/ft1_filtered_4FGL_J1628.6+7706_weekly_bin906.fits scfile=/lscratch/kocevski/17379898/ft2_4FGL_J1628.6+7706_weekly_bin906.fits outfile=/lscratch/kocevski/17379898/cmap_HighResolution_786931201_787536001_4FGL_J1628.6+7706_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=247.154 yref=77.1099 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 1.13
user 0.23
sys 0.12

Computing the diffuse response:
time -p gtdiffrsp evfile=/lscratch/kocevski/17379898/ft1_filtered_4FGL_J1628.6+7706_weekly_bin906.fits evtable="EVENTS" scfile=/lscratch/kocevski/17379898/ft2_4FGL_J1628.6+7706_weekly_bin906.fits sctable="SC_DATA" srcmdl=/lscratch/kocevski/17379898/Model_4FGL_J1628.6+7706_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/17379898/ft1_filtered_4FGL_J1628.6+7706_weekly_bin906.fits.....................!
real 88.30
user 86.52
sys 0.60

Creating the likelihood object...
obs = UnbinnedObs('/lscratch/kocevski/17379898/ft1_filtered_4FGL_J1628.6+7706_weekly_bin906.fits', '/lscratch/kocevski/17379898/ft2_4FGL_J1628.6+7706_weekly_bin906.fits', expMap='/lscratch/kocevski/17379898/expmap_786931201_787536001_4FGL_J1628.6+7706_weekly_bin906.fits', expCube='/lscratch/kocevski/17379898/ltcube_786931201_787536001_4FGL_J1628.6+7706_weekly_bin906.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/lscratch/kocevski/17379898/Model_4FGL_J1628.6+7706_weekly_bin906.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J1628.6+7706'

4FGL J1628.6+7706
   Spectrum: LogParabola
377         norm:  7.623e+00  0.000e+00  0.000e+00  1.000e+06 ( 1.000e-13)
378        alpha:  1.958e+00  0.000e+00  0.000e+00  5.000e+00 ( 1.000e+00) fixed
379         beta:  9.152e-02  0.000e+00 -5.000e+00  1.000e+01 ( 1.000e+00) fixed
380           Eb:  1.177e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /lscratch/kocevski/17379898/ft1_filtered_4FGL_J1628.6+7706_weekly_bin906.fits
Spacecraft file(s): /lscratch/kocevski/17379898/ft2_4FGL_J1628.6+7706_weekly_bin906.fits
Exposure map: /lscratch/kocevski/17379898/expmap_786931201_787536001_4FGL_J1628.6+7706_weekly_bin906.fits
Exposure cube: /lscratch/kocevski/17379898/ltcube_786931201_787536001_4FGL_J1628.6+7706_weekly_bin906.fits
IRFs: P8R3_SOURCE_V2
Source model file: /lscratch/kocevski/17379898/Model_4FGL_J1628.6+7706_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) = 23469.8129112

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    1.2645       1.0000          .0000       .10000E+07
     2 'Prefactor '    15.642       1.0000          .0000       .10000E+07
     3 'Prefactor '    15.171       1.0000          .0000       .10000E+07
     4 'Prefactor '    .12459E-01   1.0000          .0000       .10000E+07
     5 'Prefactor '    26.222       1.0000          .0000       .10000E+07
     6 'Prefactor '    .83218E-05   1.0000          .0000       .10000E+07
     7 'Prefactor '    21.126       1.0000          .0000       .10000E+07
     8 'Prefactor '    .25793E-03   1.0000          .0000       .10000E+07
     9 'norm      '    6.1490       1.0000          .0000       .10000E+07
    10 'Prefactor '    26.428       1.0000          .0000       .10000E+07
    11 'Prefactor '    18.601       1.0000          .0000       .10000E+07
    12 'norm      '    8.4004       1.0000          .0000       .10000E+07
    13 'Prefactor '    3.6217       1.0000          .0000       .10000E+07
    14 'Prefactor '    .52569E-07   1.0000          .0000       .10000E+07
    15 'Prefactor '    .92023E-02   1.0000          .0000       .10000E+07
    16 'Prefactor '    10.685       1.0000          .0000       .10000E+07
    17 'Prefactor '    .13611E-02   1.0000          .0000       .10000E+07
    18 'norm      '    2.4240       1.0000          .0000       .10000E+07
    19 'norm      '    2.9360       1.0000          .0000       .10000E+07
    20 'norm      '    .35624       1.0000          .0000       .10000E+07
    21 'Prefactor '    7.4202       1.0000          .0000       .10000E+07
    22 'norm      '    4.0514       1.0000          .0000       .10000E+07
    23 'Normalizat'    .89110       1.0000         .10000E-01   10.000    
    24 'Prefactor '    .99388       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6790E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   23469.81     FROM MIGRAD    STATUS=CONVERGED    183 CALLS     2057 TOTAL
                     EDM=   .17E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.1%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          1.2646        1.4102       -.26756E-06    .35402E-02
   2  Prefactor     15.629        21.071       -.75378E-06    .19631E-01
   3  Prefactor     15.152        7.8897        .23450E-06    .46295E-03
   4  Prefactor     .55511E-10    30.668       -.25716E-05** at limit **
   5  Prefactor     26.186        6.4612        .45534E-06   -.13880    
   6  Prefactor      .0000        2.6142        .64214E-07** at limit **
   7  Prefactor     21.085        8.4889        .21169E-06    .19021    
   8  Prefactor     .55511E-10    8.3882        .45458E-06** at limit **
   9  norm          6.2017        6.1623       -.23557E-06   -.42321E-03
  10  Prefactor     24.416        86.433        .48516E-05    .70298E-02
  11  Prefactor     18.637        17.022       -.77868E-07    .65023E-01
  12  norm          8.4019        .86521       -.35408E-07    .20455E-02
  13  Prefactor     3.5984        5.4017        .21130E-06   -.24067E-03
  14  Prefactor      .0000        .83202        .20494E-06** at limit **
  15  Prefactor     .11758E-05    176.18       -.20739E-06** at limit **
  16  Prefactor     10.655        15.422       -.16045E-06    .10555E-01
  17  Prefactor     .44409E-08    23.669        .11717E-05** at limit **
  18  norm          2.4240        1.5792       -.30808E-06    .20230E-02
  19  norm          2.9359        .55655        .43231E-07   -.11919E-01
  20  norm          .34940        2.9324        .57108E-06   -.67428E-03
  21  Prefactor     7.4706        5.0141       -.16716E-06    .15209E-02
  22  norm          4.0502        1.9330       -.26876E-08   -.17492E-02
  23  Normalizat    .89126        .11239        .20460E-05   -.18990E-03
  24  Prefactor     .99392        .75867E-01    .13844E-05   -.31446E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 1.26456
  Prefactor  = 15.6289
  Prefactor  = 15.1519
  Prefactor  = 5.55112e-11
  Prefactor  = 26.1859
  Prefactor  = 0
  Prefactor  = 21.0846
  Prefactor  = 5.55112e-11
  norm       = 6.20166
  Prefactor  = 24.4164
  Prefactor  = 18.6372
  norm       = 8.4019
  Prefactor  = 3.59836
  Prefactor  = 0
  Prefactor  = 1.17578e-06
  Prefactor  = 10.6548
  Prefactor  = 4.44089e-09
  norm       = 2.42397
  norm       = 2.93592
  norm       = 0.349404
  Prefactor  = 7.47062
  norm       = 4.05019
  Normalizat = 0.891261
  Prefactor  = 0.993921
 **********
 **   18 **HESSE 
 **********

 FCN=   23469.81     FROM HESSE     STATUS=OK           467 CALLS     2524 TOTAL
                     EDM=   .15E-05    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          1.2646        1.4305        .99054E-03   -1.5685    
   2  Prefactor     15.629        22.399        .25298E-03   -1.5629    
   3  Prefactor     15.152        7.9210        .25688E-03   -1.5630    
   4  Prefactor     .55511E-10    30.614        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     26.186        30.724        .19532E-03   -1.5606    
   6  Prefactor      .0000        2.6223        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     21.085        17.193        .21763E-03   -1.5616    
   8  Prefactor     .55511E-10    8.4826        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          6.2017        6.1674        .40462E-03   -1.5658    
  10  Prefactor     24.416        87.418        .19456E-03   -1.5609    
  11  Prefactor     18.637        18.437        .23195E-03   -1.5622    
  12  norm          8.4019        .89948        .34564E-03   -1.5650    
  13  Prefactor     3.5984        5.4510        .53065E-03   -1.5670    
  14  Prefactor      .0000        .82700        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .11758E-05    6.1005        .81407E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     10.655        15.544        .30626E-03   -1.5643    
  17  Prefactor     .44409E-08    23.909        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          2.4240        1.6355        .65709E-03   -1.5677    
  19  norm          2.9359        .55746        .59253E-03   -1.5674    
  20  norm          .34940        1.3119        .46493E-02   -1.5696    
  21  Prefactor     7.4706        5.1777        .36795E-03   -1.5653    
  22  norm          4.0502        1.9317        .50070E-03   -1.5668    
  23  Normalizat    .89126        .99869E-01    .69420E-01   -.96768    
  24  Prefactor     .99392        .66322E-01    .46191E-01   -.92932    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.52505e-06
Minuit parameter uncertainties:
  1  1.43055
  2  22.3996
  3  7.92097
  4  6.48906e-05
  5  30.7244
  6  7.55417e-07
  7  17.1928
  8  3.75591e-05
  9  6.16743
  10  87.4229
  11  18.437
  12  0.899484
  13  5.45097
  14  4.1621e-06
  15  0.0053564
  16  15.5437
  17  0.000650836
  18  1.63546
  19  0.557459
  20  1.31187
  21  5.17767
  22  1.93165
  23  0.09989
  24  0.0663271
Done.

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

Extracting fit parameters...

4FGL J1628.6+7706
   Spectrum: LogParabola
377         norm:  6.202e+00  6.167e+00  0.000e+00  1.000e+06 ( 1.000e-13)
378        alpha:  1.958e+00  0.000e+00  0.000e+00  5.000e+00 ( 1.000e+00) fixed
379         beta:  9.152e-02  0.000e+00 -5.000e+00  1.000e+01 ( 1.000e+00) fixed
380           Eb:  1.177e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
676    Prefactor:  9.939e-01  6.633e-02  0.000e+00  1.000e+01 ( 1.000e+00)
677        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
678        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
675   Normalization:  8.913e-01  9.989e-02  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 3.24
Ra Dec: 247.154 77.110
Photon Index (Fixed Index): 1.96 +/- 0.00
Photon Flux (Fixed Index): 6.20e-09 +/- 6.17e-09
Energy Flux (Fixed Index): 4.25e-06 +/- 4.23e-06

TS (Fixed Index): 3.24
Ra Dec: 247.154 77.110
Photon Flux Upper Limit: 2.41139784757e-08 ph cm-2 s-1
Energy Flux Upper Limit: 1.65301576713e-05 MeV cm-2 s-1

Saving results to:
/lscratch/kocevski/17379898/likelihoodResults_786931201_787536001_4FGL_J1628.6+7706_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) = 23469.7583211
delta logL = 0.0467068432808

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 23469.751143
delta logL = 0.0538849234727

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    5.3897       1.0000          .0000       .10000E+07
     2 'alpha     '    1.6214       1.0000          .0000       5.0000    
     3 'Normalizat'    .89354       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .99366       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6790E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   23469.75     FROM MIGRAD    STATUS=CONVERGED     55 CALLS      213 TOTAL
                     EDM=   .91E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          5.3766        5.8470        .43262E-03    .80896E-03
   2  alpha         1.6208        .72458        .44941       -.93066E-04
   3  Normalizat    .89351        .95914E-01    .69342E-01    .33476E-04
   4  Prefactor     .99367        .65650E-01    .46188E-01   -.16456E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 5.37656
  alpha      = 1.62083
  Normalizat = 0.893508
  Prefactor  = 0.993674
 **********
 **   18 **HESSE 
 **********

 FCN=   23469.75     FROM HESSE     STATUS=OK            33 CALLS      246 TOTAL
                     EDM=   .27E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          5.3766        6.3995        .17305E-04   -1.5662    
   2  alpha         1.6208        .94481        .44676E-01   -.35935    
   3  Normalizat    .89351        .10912        .30679E-03   -.96689    
   4  Prefactor     .99367        .74970E-01    .19974E-03   -.92941    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.70458e-08
Minuit parameter uncertainties:
  1  6.39952
  2  0.972562
  3  0.109149
  4  0.0749778
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) = 23469.7511408
delta logL = 0.0538871379104

Extracting fit parameters...

4FGL J1628.6+7706
   Spectrum: LogParabola
377         norm:  5.377e+00  6.400e+00  0.000e+00  1.000e+06 ( 1.000e-13)
378        alpha:  1.621e+00  9.726e-01  0.000e+00  5.000e+00 ( 1.000e+00)
379         beta:  9.152e-02  0.000e+00 -5.000e+00  1.000e+01 ( 1.000e+00) fixed
380           Eb:  1.177e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
676    Prefactor:  9.937e-01  7.498e-02  0.000e+00  1.000e+01 ( 1.000e+00)
677        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
678        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
675   Normalization:  8.935e-01  1.091e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 3.35
Ra Dec: 247.154 77.110
Photon Index (Free Index): 1.62 +/- 0.97
Photon Flux (Free Index): 3.67e-09 +/- 6.59e-09
Energy Flux (Free Index): 5.29e-06 +/- 7.42e-06

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/17379898/cmap_HighResolution_786931201_787536001_4FGL_J1628.6+7706_weekly_bin906.png

Cleaning up...

** Nuclear option initiated! **

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.65e-05', comment='SUCCESS', photon_flux='6.20e-09', energy_flux2='5.29e-06', photon_flux_error='6.17e-09', dlogl='5.39e-02', energy_flux='4.25e-06', photon_flux2='3.67e-09', job_status='DONE', time_completed='2025-12-16 03:08:22.618697', photon_index_error2='0.97', photon_index2='1.62', ts='3.24', fit_tolerance='1e-08', GAL='0.99', photon_index_error='0.00', photon_flux_upper_limit='2.41e-08', energy_flux_error2='7.42e-06', EG='0.89', time_epoch_completed='1765883302.62', return_code='0', job_id='17379898', GAL2='0.99', EG2='0.89', return_code2='0', energy_flux_error='4.23e-06', photon_flux_error2='6.59e-09', ts2='3.35', photon_index='1.96' WHERE bin_id='906' AND source_name='4FGL J1628.6+7706' AND cadence='weekly';

Database successfully updated.


Analysis Complete.


Tue Dec 16 03:08:23 PST 2025

