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


Performing analysis on: 4FGL_J1628.6+7706_weekly_bin802
RA = 247.154, Dec = 77.1099
tmin = 724032001, tmax = 724636801
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='36607033', job_status='RUN', time_executed='2023-12-19 01:00:50.116522', time_epoch_executed='1702976450.12' WHERE source_name='4FGL J1628.6+7706' and cadence='weekly' and bin_id='802'

Database successfully updated.
Done.

Creating custom output directory:
/lscratch/kocevski/36607033

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

Retrieving the FT1 file...

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

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

Retrieving 107 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/lscratch/kocevski/36607033/ft1_4FGL_J1628.6+7706_weekly_bin802.fits


Retrieving the FT1 file...

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

Retrieving 107 files...
Done.


Merging files...

Merged file saved to:
/lscratch/kocevski/36607033/ft2_4FGL_J1628.6+7706_weekly_bin802.fits


Selecting the photons:
time -p gtselect infile=/lscratch/kocevski/36607033/ft1_4FGL_J1628.6+7706_weekly_bin802.fits outfile=/lscratch/kocevski/36607033/ft1_filteredMKT_4FGL_J1628.6+7706_weekly_bin802.fits ra=247.154 dec=77.1099 rad=12.0 tmin=724032001.0 tmax=724636801.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.81
user 3.55
sys 0.19

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

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

Number of photons that the gtmktime cut: 2081

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

Generating the exposure map:
time -p gtexpmap evfile=/lscratch/kocevski/36607033/ft1_filtered_4FGL_J1628.6+7706_weekly_bin802.fits evtable="EVENTS" scfile=/lscratch/kocevski/36607033/ft2_4FGL_J1628.6+7706_weekly_bin802.fits sctable="SC_DATA" expcube=/lscratch/kocevski/36607033/ltcube_724032001_724636801_4FGL_J1628.6+7706_weekly_bin802.fits outfile=/lscratch/kocevski/36607033/expmap_724032001_724636801_4FGL_J1628.6+7706_weekly_bin802.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/36607033/ltcube_724032001_724636801_4FGL_J1628.6+7706_weekly_bin802.fits
.....................!
real 61.40
user 55.49
sys 3.55

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/36607033/ft1_filtered_4FGL_J1628.6+7706_weekly_bin802.fits scfile=/lscratch/kocevski/36607033/ft2_4FGL_J1628.6+7706_weekly_bin802.fits outfile=/lscratch/kocevski/36607033/cmap_724032001_724636801_4FGL_J1628.6+7706_weekly_bin802.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.36
user 0.20
sys 0.13

Creating the high resolution counts map:
time -p gtbin evfile=/lscratch/kocevski/36607033/ft1_filtered_4FGL_J1628.6+7706_weekly_bin802.fits scfile=/lscratch/kocevski/36607033/ft2_4FGL_J1628.6+7706_weekly_bin802.fits outfile=/lscratch/kocevski/36607033/cmap_HighResolution_724032001_724636801_4FGL_J1628.6+7706_weekly_bin802.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.36
user 0.20
sys 0.13

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .37125E-02   1.0000          .0000       .10000E+07
     2 'Prefactor '    .50057E-04   1.0000          .0000       .10000E+07
     3 'Prefactor '    .89373E-03   1.0000          .0000       .10000E+07
     4 'Prefactor '    .41759E-04   1.0000          .0000       .10000E+07
     5 'Prefactor '    .61448E-03   1.0000          .0000       .10000E+07
     6 'Prefactor '    .42969E-01   1.0000          .0000       .10000E+07
     7 'Prefactor '    23.294       1.0000          .0000       .10000E+07
     8 'Prefactor '    8.7667       1.0000          .0000       .10000E+07
     9 'norm      '    21.854       1.0000          .0000       .10000E+07
    10 'Prefactor '    31.090       1.0000          .0000       .10000E+07
    11 'Prefactor '    3.9396       1.0000          .0000       .10000E+07
    12 'norm      '    2.2691       1.0000          .0000       .10000E+07
    13 'Prefactor '    .60441E-02   1.0000          .0000       .10000E+07
    14 'Prefactor '    .81923E-06   1.0000          .0000       .10000E+07
    15 'Prefactor '    4.5140       1.0000          .0000       .10000E+07
    16 'Prefactor '    .47678E-02   1.0000          .0000       .10000E+07
    17 'Prefactor '    2.8286       1.0000          .0000       .10000E+07
    18 'norm      '    5.0470       1.0000          .0000       .10000E+07
    19 'norm      '    2.3687       1.0000          .0000       .10000E+07
    20 'norm      '    4.4755       1.0000          .0000       .10000E+07
    21 'Prefactor '    4.3025       1.0000          .0000       .10000E+07
    22 'norm      '    1.8491       1.0000          .0000       .10000E+07
    23 'Normalizat'    1.0058       1.0000         .10000E-01   10.000    
    24 'Prefactor '    1.0027       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=   21820.76     FROM MIGRAD    STATUS=CONVERGED    108 CALLS     2037 TOTAL
                     EDM=   .19E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.6%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .11852E-06    7.1281        .79408E-06** at limit **
   2  Prefactor     .71576E-06    6.5564        .16304E-05** at limit **
   3  Prefactor     .23315E-08    4.2233        .20589E-06** at limit **
   4  Prefactor     .23481E-07    3.8923        .15494E-06** at limit **
   5  Prefactor     .16160E-05    4.3488        .10346E-05** at limit **
   6  Prefactor     .14433E-08    17.264       -.21259E-05** at limit **
   7  Prefactor     23.255        2.9550       -.53946E-07    .61950E-01
   8  Prefactor     8.6771        3.5314       -.10075E-06    .45547E-01
   9  norm          21.850        1.2491       -.97289E-08   -.42236E-02
  10  Prefactor     31.109        1.0066       -.49756E-08    .11104E-01
  11  Prefactor     3.9187        1.2423        .67172E-07   -.52878E-02
  12  norm          2.2701        .56218       -.72714E-07    .71471E-04
  13  Prefactor     .27578E-06    17.999        .41965E-06** at limit **
  14  Prefactor     .16653E-09    .57315       -.46613E-06** at limit **
  15  Prefactor     4.4861        4.2370       -.77120E-07   -.18215E-01
  16  Prefactor     .35860E-07    5.4370       -.50378E-06** at limit **
  17  Prefactor     2.8073        4.3026       -.28953E-06    .47804E-01
  18  norm          5.0466        1.8106       -.18631E-06    .95390E-02
  19  norm          2.3686        .52096        .57629E-07   -.15959E-01
  20  norm          4.4914        3.0599        .52335E-07   -.60383E-02
  21  Prefactor     4.2324        5.7507        .51647E-06   -.26200E-02
  22  norm          1.8487        1.5797       -.38004E-06    .12938E-01
  23  Normalizat    1.0061        .11415        .15435E-05   -.20960E-03
  24  Prefactor     1.0026        .77422E-01    .98819E-06   -.23349E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 1.18516e-07
  Prefactor  = 7.15761e-07
  Prefactor  = 2.33147e-09
  Prefactor  = 2.34812e-08
  Prefactor  = 1.61599e-06
  Prefactor  = 1.44329e-09
  Prefactor  = 23.2547
  Prefactor  = 8.67713
  norm       = 21.8498
  Prefactor  = 31.1093
  Prefactor  = 3.91873
  norm       = 2.2701
  Prefactor  = 2.75779e-07
  Prefactor  = 1.66533e-10
  Prefactor  = 4.4861
  Prefactor  = 3.58602e-08
  Prefactor  = 2.80732
  norm       = 5.04656
  norm       = 2.36859
  norm       = 4.49136
  Prefactor  = 4.23241
  norm       = 1.84873
  Normalizat = 1.0061
  Prefactor  = 1.00264
 **********
 **   18 **HESSE 
 **********

 FCN=   21820.76     FROM HESSE     STATUS=OK           459 CALLS     2496 TOTAL
                     EDM=   .13E-05    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .11852E-06    1.0107        .52703E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .71576E-06    10.744        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .23315E-08    5.7230        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .23481E-07    5.1772        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .16160E-05    9.7371        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .14433E-08    16.690        .15832E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     23.255        24.205        .20724E-03   -1.5612    
   8  Prefactor     8.6771        24.061        .33829E-03   -1.5649    
   9  norm          21.850        10.820        .21397E-03   -1.5614    
  10  Prefactor     31.109        49.647        .17937E-03   -1.5596    
  11  Prefactor     3.9187        16.956        .50800E-03   -1.5668    
  12  norm          2.2701        .62851        .68152E-03   -1.5678    
  13  Prefactor     .27578E-06    18.683        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .16653E-09    .57686        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     4.4861        10.995        .47363E-03   -1.5666    
  16  Prefactor     .35860E-07    8.0149        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     2.8073        62.296        .60443E-03   -1.5674    
  18  norm          5.0466        1.8210        .44735E-03   -1.5663    
  19  norm          2.3686        .52313        .66548E-03   -1.5677    
  20  norm          4.4914        3.1102        .47571E-03   -1.5666    
  21  Prefactor     4.2324        5.7999        .48544E-03   -1.5667    
  22  norm          1.8487        1.5753        .76647E-03   -1.5681    
  23  Normalizat    1.0061        .10315        .46240E-01   -.92826    
  24  Prefactor     1.0026        .68956E-01    .44747E-01   -.92641    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.30647e-06
Minuit parameter uncertainties:
  1  0.0006922
  2  0.0055461
  3  0.000231917
  4  0.00069702
  5  0.00793353
  6  0.000309189
  7  24.2056
  8  24.061
  9  10.8196
  10  49.6475
  11  16.3031
  12  0.628511
  13  0.00453995
  14  2.00616e-05
  15  10.9954
  16  0.00107207
  17  26.4492
  18  1.82102
  19  0.523131
  20  3.11015
  21  5.79991
  22  1.57532
  23  0.103166
  24  0.0689617
Done.

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

Extracting fit parameters...

4FGL J1628.6+7706
   Spectrum: LogParabola
377         norm:  2.185e+01  1.082e+01  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:  1.003e+00  6.896e-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:  1.006e+00  1.032e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 9.64
Ra Dec: 247.154 77.110
Photon Index (Fixed Index): 1.96 +/- 0.00
Photon Flux (Fixed Index): 2.18e-08 +/- 1.08e-08
Energy Flux (Fixed Index): 1.50e-05 +/- 7.42e-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) = 21820.7572499
delta logL = 2.21487425733e-07

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 21820.7572498
delta logL = 3.33100615535e-07

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    21.850       1.0000          .0000       .10000E+07
     2 'alpha     '    1.9577       1.0000          .0000       5.0000    
     3 'Normalizat'    1.0061       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0026       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.

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   21820.76     FROM MIGRAD    STATUS=CONVERGED     78 CALLS      219 TOTAL
                     EDM=   .40E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          21.851        10.944        .85596E-05   -.15729E-01
   2  alpha         1.9574        .46358        .19008E-01   -.29766E-03
   3  Normalizat    1.0061        .11345        .28729E-03   -.14499E-03
   4  Prefactor     1.0026        .77087E-01    .19585E-03   -.44391E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 21.8507
  alpha      = 1.95742
  Normalizat = 1.00612
  Prefactor  = 1.00264
 **********
 **   18 **HESSE 
 **********

 FCN=   21820.76     FROM HESSE     STATUS=OK            23 CALLS      242 TOTAL
                     EDM=   .42E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          21.851        10.878        .17119E-05   -1.5614    
   2  alpha         1.9574        .46062        .76033E-03   -.21877    
   3  Normalizat    1.0061        .11347        .11492E-04   -.92826    
   4  Prefactor     1.0026        .77125E-01    .39170E-04   -.92642    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.21537e-09
Minuit parameter uncertainties:
  1  10.8778
  2  0.463402
  3  0.113494
  4  0.0771333
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) = 21820.7572497
delta logL = 4.51665982837e-07

Extracting fit parameters...

4FGL J1628.6+7706
   Spectrum: LogParabola
377         norm:  2.185e+01  1.088e+01  0.000e+00  1.000e+06 ( 1.000e-13)
378        alpha:  1.957e+00  4.634e-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:  1.003e+00  7.713e-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:  1.006e+00  1.135e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 9.63
Ra Dec: 247.154 77.110
Photon Index (Free Index): 1.96 +/- 0.46
Photon Flux (Free Index): 2.18e-08 +/- 1.63e-08
Energy Flux (Free Index): 1.50e-05 +/- 8.87e-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/36607033/cmap_HighResolution_724032001_724636801_4FGL_J1628.6+7706_weekly_bin802.png

Cleaning up...

** Nuclear option initiated! **

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='2.18e-08', energy_flux2='1.50e-05', photon_flux_error='1.08e-08', dlogl='4.52e-07', energy_flux='1.50e-05', photon_flux2='2.18e-08', job_status='DONE', time_completed='2023-12-19 01:10:24.265357', photon_index_error2='0.46', photon_index2='1.96', ts='9.64', fit_tolerance='1e-08', GAL='1.00', photon_index_error='0.00', energy_flux_error2='8.87e-06', EG='1.01', time_epoch_completed='1702977024.27', return_code='0', job_id='36607033', GAL2='1.00', EG2='1.01', return_code2='0', energy_flux_error='7.42e-06', photon_flux_error2='1.63e-08', ts2='9.63', photon_index='1.96' WHERE bin_id='802' AND source_name='4FGL J1628.6+7706' AND cadence='weekly';

Database successfully updated.


Analysis Complete.


Tue Dec 19 01:10:24 PST 2023

