/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 = 17347
number of fields = 31
RA_SUN column already exists. File will not be modified.
Done.


Performing analysis on: 4FGL_J1628.6+7706_weekly_bin806
RA = 247.154, Dec = 77.1099
tmin = 726451201, tmax = 727056001
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='38429738', job_status='RUN', time_executed='2024-01-18 20:45:50.418206', time_epoch_executed='1705639550.42' WHERE source_name='4FGL J1628.6+7706' and cadence='weekly' and bin_id='806'

Database successfully updated.
Done.

Creating custom output directory:
/lscratch/kocevski/38429738

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

Retrieving the FT1 file...

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

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

Retrieving 107 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/lscratch/kocevski/38429738/ft1_4FGL_J1628.6+7706_weekly_bin806.fits


Retrieving the FT1 file...

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

Retrieving 107 files...
Done.


Merging files...

Merged file saved to:
/lscratch/kocevski/38429738/ft2_4FGL_J1628.6+7706_weekly_bin806.fits


Selecting the photons:
time -p gtselect infile=/lscratch/kocevski/38429738/ft1_4FGL_J1628.6+7706_weekly_bin806.fits outfile=/lscratch/kocevski/38429738/ft1_filteredMKT_4FGL_J1628.6+7706_weekly_bin806.fits ra=247.154 dec=77.1099 rad=12.0 tmin=726451201.0 tmax=727056001.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 3.49
user 3.15
sys 0.22

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

Selecting the good time intervals:
time -p gtmktime scfile=/lscratch/kocevski/38429738/ft2_4FGL_J1628.6+7706_weekly_bin806.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/38429738/ft1_filteredMKT_4FGL_J1628.6+7706_weekly_bin806.fits evtable="EVENTS" outfile="/lscratch/kocevski/38429738/ft1_filtered_4FGL_J1628.6+7706_weekly_bin806.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.41
user 0.24
sys 0.12

Number of photons that the gtmktime cut: 3173

Generating the livetime cube:
time -p gtltcube evfile="/lscratch/kocevski/38429738/ft1_filtered_4FGL_J1628.6+7706_weekly_bin806.fits" evtable="EVENTS" scfile=/lscratch/kocevski/38429738/ft2_4FGL_J1628.6+7706_weekly_bin806.fits sctable="SC_DATA" outfile=/lscratch/kocevski/38429738/ltcube_726451201_727056001_4FGL_J1628.6+7706_weekly_bin806.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/38429738/ft2_4FGL_J1628.6+7706_weekly_bin806.fits
.....................!
real 19.17
user 18.82
sys 0.21

Generating the exposure map:
time -p gtexpmap evfile=/lscratch/kocevski/38429738/ft1_filtered_4FGL_J1628.6+7706_weekly_bin806.fits evtable="EVENTS" scfile=/lscratch/kocevski/38429738/ft2_4FGL_J1628.6+7706_weekly_bin806.fits sctable="SC_DATA" expcube=/lscratch/kocevski/38429738/ltcube_726451201_727056001_4FGL_J1628.6+7706_weekly_bin806.fits outfile=/lscratch/kocevski/38429738/expmap_726451201_727056001_4FGL_J1628.6+7706_weekly_bin806.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/38429738/ltcube_726451201_727056001_4FGL_J1628.6+7706_weekly_bin806.fits
.....................!
real 68.59
user 64.45
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/38429738/ft1_filtered_4FGL_J1628.6+7706_weekly_bin806.fits scfile=/lscratch/kocevski/38429738/ft2_4FGL_J1628.6+7706_weekly_bin806.fits outfile=/lscratch/kocevski/38429738/cmap_726451201_727056001_4FGL_J1628.6+7706_weekly_bin806.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.43
user 0.24
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/lscratch/kocevski/38429738/ft1_filtered_4FGL_J1628.6+7706_weekly_bin806.fits scfile=/lscratch/kocevski/38429738/ft2_4FGL_J1628.6+7706_weekly_bin806.fits outfile=/lscratch/kocevski/38429738/cmap_HighResolution_726451201_727056001_4FGL_J1628.6+7706_weekly_bin806.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 0.43
user 0.24
sys 0.14

Computing the diffuse response:
time -p gtdiffrsp evfile=/lscratch/kocevski/38429738/ft1_filtered_4FGL_J1628.6+7706_weekly_bin806.fits evtable="EVENTS" scfile=/lscratch/kocevski/38429738/ft2_4FGL_J1628.6+7706_weekly_bin806.fits sctable="SC_DATA" srcmdl=/lscratch/kocevski/38429738/Model_4FGL_J1628.6+7706_weekly_bin806.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/38429738/ft1_filtered_4FGL_J1628.6+7706_weekly_bin806.fits.....................!
real 132.73
user 131.46
sys 0.75

Creating the likelihood object...
obs = UnbinnedObs('/lscratch/kocevski/38429738/ft1_filtered_4FGL_J1628.6+7706_weekly_bin806.fits', '/lscratch/kocevski/38429738/ft2_4FGL_J1628.6+7706_weekly_bin806.fits', expMap='/lscratch/kocevski/38429738/expmap_726451201_727056001_4FGL_J1628.6+7706_weekly_bin806.fits', expCube='/lscratch/kocevski/38429738/ltcube_726451201_727056001_4FGL_J1628.6+7706_weekly_bin806.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/lscratch/kocevski/38429738/Model_4FGL_J1628.6+7706_weekly_bin806.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/38429738/ft1_filtered_4FGL_J1628.6+7706_weekly_bin806.fits
Spacecraft file(s): /lscratch/kocevski/38429738/ft2_4FGL_J1628.6+7706_weekly_bin806.fits
Exposure map: /lscratch/kocevski/38429738/expmap_726451201_727056001_4FGL_J1628.6+7706_weekly_bin806.fits
Exposure cube: /lscratch/kocevski/38429738/ltcube_726451201_727056001_4FGL_J1628.6+7706_weekly_bin806.fits
IRFs: P8R3_SOURCE_V2
Source model file: /lscratch/kocevski/38429738/Model_4FGL_J1628.6+7706_weekly_bin806.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) = 33973.6513994

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .92492       1.0000          .0000       .10000E+07
     2 'Prefactor '    10.623       1.0000          .0000       .10000E+07
     3 'Prefactor '    .42411       1.0000          .0000       .10000E+07
     4 'Prefactor '    .10129E-05   1.0000          .0000       .10000E+07
     5 'Prefactor '    .70499E-08   1.0000          .0000       .10000E+07
     6 'Prefactor '    .96420E-02   1.0000          .0000       .10000E+07
     7 'Prefactor '    .25628E-02   1.0000          .0000       .10000E+07
     8 'Prefactor '    18.797       1.0000          .0000       .10000E+07
     9 'norm      '    12.157       1.0000          .0000       .10000E+07
    10 'Prefactor '    11.129       1.0000          .0000       .10000E+07
    11 'Prefactor '    .33518E-06   1.0000          .0000       .10000E+07
    12 'norm      '    .39140       1.0000          .0000       .10000E+07
    13 'Prefactor '    2.9000       1.0000          .0000       .10000E+07
    14 'Prefactor '    .13323E-08   1.0000          .0000       .10000E+07
    15 'Prefactor '    .51736E-07   1.0000          .0000       .10000E+07
    16 'Prefactor '    .99966E-02   1.0000          .0000       .10000E+07
    17 'Prefactor '    .60775E-02   1.0000          .0000       .10000E+07
    18 'norm      '    6.3300       1.0000          .0000       .10000E+07
    19 'norm      '    1.7018       1.0000          .0000       .10000E+07
    20 'norm      '    2.2161       1.0000          .0000       .10000E+07
    21 'Prefactor '    3.0908       1.0000          .0000       .10000E+07
    22 'norm      '    4.3906       1.0000          .0000       .10000E+07
    23 'Normalizat'    .93130       1.0000         .10000E-01   10.000    
    24 'Prefactor '    .99484       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=   33973.55     FROM MIGRAD    STATUS=CONVERGED    162 CALLS     2024 TOTAL
                     EDM=   .18E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  4.0%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .92465        .97403       -.26985E-07    .16417E-02
   2  Prefactor     10.596        11.185       -.31084E-06   -.40209E-02
   3  Prefactor     .45233        10.118        .43795E-06   -.85782E-04
   4  Prefactor      .0000        2.1353       -.51345E-06** at limit **
   5  Prefactor     .22204E-09    8.1926       -.16288E-05** at limit **
   6  Prefactor     .50232E-04    24.777       -.17621E-05** at limit **
   7  Prefactor     .24664E-05    27.003        .14778E-05** at limit **
   8  Prefactor     18.362        3.0298        .22427E-07   -.29973E-01
   9  norm          12.111        7.4994       -.55466E-07    .41455E-03
  10  Prefactor     11.647        43.804        .59782E-05   -.72631E-01
  11  Prefactor     .68834E-08    14.469       -.83151E-06** at limit **
  12  norm          .39126        .29825       -.11085E-07    .46238E-02
  13  Prefactor     2.8982        3.7226       -.83593E-06   -.38981E-02
  14  Prefactor     .55511E-10    1.4745       -.24794E-06** at limit **
  15  Prefactor     .55511E-10    3.9694       -.26654E-05** at limit **
  16  Prefactor     .31612E-04    13.800        .36948E-05** at limit **
  17  Prefactor     .23440E-05    21.329        .24481E-05** at limit **
  18  norm          6.3297        1.3151       -.97314E-07    .72902E-03
  19  norm          1.7018        .35028       -.23519E-07    .94742E-02
  20  norm          2.2158        1.5392        .33462E-08    .14641E-02
  21  Prefactor     3.0897        3.4953        .12965E-05   -.60499E-03
  22  norm          4.3903        1.8070        .65578E-07   -.19645E-02
  23  Normalizat    .93148        .87454E-01    .34953E-05    .11953E-03
  24  Prefactor     .99478        .59686E-01   -.52177E-05    .21792E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 0.924653
  Prefactor  = 10.5958
  Prefactor  = 0.452334
  Prefactor  = 0
  Prefactor  = 2.22045e-10
  Prefactor  = 5.02323e-05
  Prefactor  = 2.46636e-06
  Prefactor  = 18.3624
  norm       = 12.1113
  Prefactor  = 11.6467
  Prefactor  = 6.88338e-09
  norm       = 0.391259
  Prefactor  = 2.89815
  Prefactor  = 5.55112e-11
  Prefactor  = 5.55112e-11
  Prefactor  = 3.16117e-05
  Prefactor  = 2.34396e-06
  norm       = 6.3297
  norm       = 1.70179
  norm       = 2.21582
  Prefactor  = 3.08966
  norm       = 4.39029
  Normalizat = 0.931481
  Prefactor  = 0.994781
 **********
 **   18 **HESSE 
 **********

 FCN=   33973.55     FROM HESSE     STATUS=OK           453 CALLS     2477 TOTAL
                     EDM=   .48E-05    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .92465        .97413        .44052E-03   -1.5689    
   2  Prefactor     10.596        11.186        .30715E-03   -1.5643    
   3  Prefactor     .45233        2.0609        .86745E-02   -1.5695    
   4  Prefactor      .0000        2.1416        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .22204E-09    8.2196        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .50232E-04    46.045        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .24664E-05    29.196        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     18.362        24.210        .23073E-03   -1.5622    
   9  norm          12.111        7.5092        .28705E-03   -1.5638    
  10  Prefactor     11.647        69.659        .30007E-03   -1.5640    
  11  Prefactor     .68834E-08    14.516        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          .39126        .33988        .19088E-02   -1.5695    
  13  Prefactor     2.8982        3.8698        .59644E-03   -1.5674    
  14  Prefactor     .55511E-10    1.4156        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .55511E-10    3.9603        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .31612E-04    35.370        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .23440E-05    37.399        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          6.3297        1.3182        .39872E-03   -1.5658    
  19  norm          1.7018        .35216        .80599E-03   -1.5682    
  20  norm          2.2158        1.5616        .69058E-03   -1.5678    
  21  Prefactor     3.0897        3.5258        .57662E-03   -1.5673    
  22  norm          4.3903        1.8025        .48041E-03   -1.5666    
  23  Normalizat    .93148        .78260E-01    .45300E-01   -.95363    
  24  Prefactor     .99478        .52432E-01    .46203E-01   -.92904    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.77382e-06
Minuit parameter uncertainties:
  1  0.974132
  2  11.1856
  3  1.93103
  4  1.18243e-05
  5  8.52497e-05
  6  0.0961873
  7  0.0169715
  8  24.2098
  9  7.50918
  10  56.9678
  11  0.000631907
  12  0.339883
  13  3.86976
  14  1.48457e-05
  15  2.15904e-05
  16  0.0668764
  17  0.0187257
  18  1.31822
  19  0.352158
  20  1.5616
  21  3.52576
  22  1.80254
  23  0.0782697
  24  0.0524347
Done.

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

Extracting fit parameters...

4FGL J1628.6+7706
   Spectrum: LogParabola
377         norm:  1.211e+01  7.509e+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.948e-01  5.243e-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:  9.315e-01  7.827e-02  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 8.45
Ra Dec: 247.154 77.110
Photon Index (Fixed Index): 1.96 +/- 0.00
Photon Flux (Fixed Index): 1.21e-08 +/- 7.51e-09
Energy Flux (Fixed Index): 8.30e-06 +/- 5.15e-06

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) = 33973.2830218
delta logL = 0.269469885476

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 33973.2541746
delta logL = 0.298317041881

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    10.103       1.0000          .0000       .10000E+07
     2 'alpha     '    1.5516       1.0000          .0000       5.0000    
     3 'Normalizat'    .93588       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .99463       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=   33973.25     FROM MIGRAD    STATUS=CONVERGED     56 CALLS      215 TOTAL
                     EDM=   .61E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          10.095        7.7560        .31500E-03    .22752E-03
   2  alpha         1.5511        .40510        .45714       -.13677E-03
   3  Normalizat    .93598        .75645E-01    .45358E-01    .86377E-04
   4  Prefactor     .99454        .51883E-01    .46200E-01    .13384E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 10.0955
  alpha      = 1.5511
  Normalizat = 0.935984
  Prefactor  = 0.994544
 **********
 **   18 **HESSE 
 **********

 FCN=   33973.25     FROM HESSE     STATUS=OK            33 CALLS      248 TOTAL
                     EDM=   .26E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          10.095        8.6418        .12600E-04   -1.5644    
   2  alpha         1.5511        .53153        .28786E-01   -.38932    
   3  Normalizat    .93598        .85522E-01    .28353E-03   -.95207    
   4  Prefactor     .99454        .58897E-01    .18891E-03   -.92912    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.57648e-11
Minuit parameter uncertainties:
  1  8.64177
  2  0.536319
  3  0.0855345
  4  0.0589011
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) = 33973.2541731
delta logL = 0.298318521134

Extracting fit parameters...

4FGL J1628.6+7706
   Spectrum: LogParabola
377         norm:  1.010e+01  8.642e+00  0.000e+00  1.000e+06 ( 1.000e-13)
378        alpha:  1.551e+00  5.363e-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.945e-01  5.890e-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:  9.360e-01  8.553e-02  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 9.05
Ra Dec: 247.154 77.110
Photon Index (Free Index): 1.55 +/- 0.54
Photon Flux (Free Index): 6.50e-09 +/- 7.50e-09
Energy Flux (Free Index): 1.12e-05 +/- 9.35e-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/38429738/cmap_HighResolution_726451201_727056001_4FGL_J1628.6+7706_weekly_bin806.png

Cleaning up...

** Nuclear option initiated! **

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='1.21e-08', energy_flux2='1.12e-05', photon_flux_error='7.51e-09', dlogl='2.98e-01', energy_flux='8.30e-06', photon_flux2='6.50e-09', job_status='DONE', time_completed='2024-01-18 21:01:09.056161', photon_index_error2='0.54', photon_index2='1.55', ts='8.45', fit_tolerance='1e-08', GAL='0.99', photon_index_error='0.00', energy_flux_error2='9.35e-06', EG='0.93', time_epoch_completed='1705640469.06', return_code='0', job_id='38429738', GAL2='0.99', EG2='0.94', return_code2='0', energy_flux_error='5.15e-06', photon_flux_error2='7.50e-09', ts2='9.05', photon_index='1.96' WHERE bin_id='806' AND source_name='4FGL J1628.6+7706' AND cadence='weekly';

Database successfully updated.


Analysis Complete.


Thu Jan 18 21:01:09 PST 2024

