/nfs/farm/g/glast/g/LCRepository/bin/miniconda2/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)


Waiting 7 seconds before starting...
Proceeding.

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 make4FGLxml version 01r04.
The default diffuse model files and names are for pass 8 and 4FGL and assume you have v11r5p3 of the Fermi Science Tools or higher.

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

/nfs/farm/g/glast/g/LCRepository/bin/miniconda2/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 = 7419
number of fields = 30
RA_SUN column already exists. File will not be modified.
Done.


Performing analysis on: 4FGL_J1628.6+7706_daily_bin650
RA = 247.154, Dec = 77.1099
tmin = 407808001, tmax = 408067201
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='550317', job_status='RUN', time_executed='2021-09-14 14:36:14.122314', time_epoch_executed='1631655374.12' WHERE source_name='4FGL J1628.6+7706' and cadence='daily' and bin_id='650'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/550317

Creating custom pfile directory:
/scratch/kocevski/550317/pfiles/

Retrieving the FT1 file...

Issuing command:
/afs/slac.stanford.edu/g/glast/ground/bin/datacat find --group FT1 --filter 'nMetStop>=407808001.0 && nMetStart<408067201.0' /Data/Flight/Reprocess/P305

Issuing command:
/afs/slac.stanford.edu/g/glast/ground/bin/datacat find --group FT1 --filter 'nMetStart>564945418 && nMetStop>=407808001.0 && nMetStart<408067201.0' /Data/Flight/Level1/LPA

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/550317/ft1_4FGL_J1628.6+7706_daily_bin650.fits


Retrieving the FT1 file...

Issuing command:
/afs/slac.stanford.edu/g/glast/ground/bin/datacat find --group FT2 --filter 'nMetStop>=407808001.0 && nMetStart<408067201.0' /Data/Flight/Level1/LPA

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/550317/ft2_4FGL_J1628.6+7706_daily_bin650.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/550317/ft1_4FGL_J1628.6+7706_daily_bin650.fits outfile=/scratch/kocevski/550317/ft1_filteredMKT_4FGL_J1628.6+7706_daily_bin650.fits ra=247.154 dec=77.1099 rad=12.0 tmin=407808001.0 tmax=408067201.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 4.12
user 3.90
sys 0.20

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/550317/ft2_4FGL_J1628.6+7706_daily_bin650.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/550317/ft2_4FGL_J1628.6+7706_daily_bin650.fits sctable="SC_DATA" filter="IN_SAA!=T && LIVETIME>0 && gtifilter('/nfs/farm/g/glast/g/LCRepository/Likelihood/GTIs/nogrb.gti',(START+STOP)/2) && (angsep(RA_SUN,DEC_SUN,RA_ZENITH,DEC_ZENITH)>115 || gtifilter('/nfs/farm/g/glast/g/LCRepository/Likelihood/GTIs/nosolarflares.gti',(START+STOP)/2))" roicut=no evfile=/scratch/kocevski/550317/ft1_filteredMKT_4FGL_J1628.6+7706_daily_bin650.fits evtable="EVENTS" outfile="/scratch/kocevski/550317/ft1_filtered_4FGL_J1628.6+7706_daily_bin650.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('/nfs/farm/g/glast/g/LCRepository/Likelihood/GTIs/nogrb.gti',(START+STOP)/2) && (angsep(RA_SUN,DEC_SUN,RA_ZENITH,DEC_ZENITH)>115 || gtifilter('/nfs/farm/g/glast/g/LCRepository/Likelihood/GTIs/nosolarflares.gti',(START+STOP)/2))
real 0.51
user 0.35
sys 0.15

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/550317/ft1_filtered_4FGL_J1628.6+7706_daily_bin650.fits" evtable="EVENTS" scfile=/scratch/kocevski/550317/ft2_4FGL_J1628.6+7706_daily_bin650.fits sctable="SC_DATA" outfile=/scratch/kocevski/550317/ltcube_407808001_408067201_4FGL_J1628.6+7706_daily_bin650.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 /scratch/kocevski/550317/ft2_4FGL_J1628.6+7706_daily_bin650.fits
.....................!
real 14.21
user 13.85
sys 0.31

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/550317/ft1_filtered_4FGL_J1628.6+7706_daily_bin650.fits evtable="EVENTS" scfile=/scratch/kocevski/550317/ft2_4FGL_J1628.6+7706_daily_bin650.fits sctable="SC_DATA" expcube=/scratch/kocevski/550317/ltcube_407808001_408067201_4FGL_J1628.6+7706_daily_bin650.fits outfile=/scratch/kocevski/550317/expmap_407808001_408067201_4FGL_J1628.6+7706_daily_bin650.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 /scratch/kocevski/550317/ltcube_407808001_408067201_4FGL_J1628.6+7706_daily_bin650.fits
.....................!
real 192.16
user 186.56
sys 4.95

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=/scratch/kocevski/550317/ft1_filtered_4FGL_J1628.6+7706_daily_bin650.fits scfile=/scratch/kocevski/550317/ft2_4FGL_J1628.6+7706_daily_bin650.fits outfile=/scratch/kocevski/550317/cmap_407808001_408067201_4FGL_J1628.6+7706_daily_bin650.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.55
user 0.38
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/550317/ft1_filtered_4FGL_J1628.6+7706_daily_bin650.fits scfile=/scratch/kocevski/550317/ft2_4FGL_J1628.6+7706_daily_bin650.fits outfile=/scratch/kocevski/550317/cmap_HighResolution_407808001_408067201_4FGL_J1628.6+7706_daily_bin650.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.56
user 0.40
sys 0.15

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/550317/ft1_filtered_4FGL_J1628.6+7706_daily_bin650.fits evtable="EVENTS" scfile=/scratch/kocevski/550317/ft2_4FGL_J1628.6+7706_daily_bin650.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/550317/Model_4FGL_J1628.6+7706_daily_bin650.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...
/scratch/kocevski/550317/ft1_filtered_4FGL_J1628.6+7706_daily_bin650.fits.....................!
real 67.93
user 66.43
sys 1.22

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/550317/ft1_filtered_4FGL_J1628.6+7706_daily_bin650.fits', '/scratch/kocevski/550317/ft2_4FGL_J1628.6+7706_daily_bin650.fits', expMap='/scratch/kocevski/550317/expmap_407808001_408067201_4FGL_J1628.6+7706_daily_bin650.fits', expCube='/scratch/kocevski/550317/ltcube_407808001_408067201_4FGL_J1628.6+7706_daily_bin650.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/550317/Model_4FGL_J1628.6+7706_daily_bin650.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  1.000e-04  1.000e+04 ( 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  0.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): /scratch/kocevski/550317/ft1_filtered_4FGL_J1628.6+7706_daily_bin650.fits
Spacecraft file(s): /scratch/kocevski/550317/ft2_4FGL_J1628.6+7706_daily_bin650.fits
Exposure map: /scratch/kocevski/550317/expmap_407808001_408067201_4FGL_J1628.6+7706_daily_bin650.fits
Exposure cube: /scratch/kocevski/550317/ltcube_407808001_408067201_4FGL_J1628.6+7706_daily_bin650.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/550317/Model_4FGL_J1628.6+7706_daily_bin650.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) = 5692.3090651

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    4.1346       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .93427E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10014E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    84.109       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10018E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    71.758       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
    14 'norm      '    .11893       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10008E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    10.075       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10188E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    20 'norm      '    5.5002       1.0000         .10000E-03   10000.    
    21 'norm      '    .71659       1.0000         .10000E-03   10000.    
    22 'norm      '    14.643       1.0000         .10000E-03   10000.    
    23 'Prefactor '    10.285       1.0000         .10000E-03   10000.    
    24 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    25 'norm      '    16.795       1.0000         .10000E-03   10000.    
    26 'Normalizat'    .75590       1.0000         .10000E-01   10.000    
    27 'Prefactor '    .97639       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.

 FCN=   5692.306     FROM MIGRAD    STATUS=CONVERGED    632 CALLS     3211 TOTAL
                     EDM=   .11E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .2%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    1.1157       -.19389E-07** at limit **
   2  Prefactor     .10000E-03    13.624       -.72768E-05** at limit **
   3  Prefactor     .10000E-03    6.8032        .14416E-05** at limit **
   4  Prefactor     4.1239        10.453       -.10976E-05    .91861E-04
   5  Prefactor     .10000E-03    7.1465       -.25377E-05** at limit **
   6  Prefactor     .10002E-03    259.41       -.22498E-03** at limit **
   7  Prefactor     .10000E-03    34.128        .45389E-05** at limit **
   8  Prefactor     84.039        77.857       -.66211E-04    .13618E-03
   9  Prefactor     .10000E-03    28.432       -.12305E-04** at limit **
  10  Prefactor     .10000E-03    8.3673        .19445E-05** at limit **
  11  norm          71.761        34.260        .23867E-05    .33991E-04
  12  Prefactor     .10000E-03    59.215        .12929E-04** at limit **
  13  Prefactor     .10000E-03    18.032        .71878E-05** at limit **
  14  norm          .11648        .68610       -.15787E-05   -.64433E-03
  15  Prefactor     .10000E-03    3.4413       -.32858E-07** at limit **
  16  Prefactor     10.074        4.4904       -.46448E-06   -.77261E-04
  17  Prefactor     .10000E-03    17.198        .87664E-05** at limit **
  18  Prefactor     .10000E-03    36.138        .11636E-04** at limit **
  19  Prefactor     .10000E-03    19.742        .97095E-06** at limit **
  20  norm          5.5005        3.3559       -.26036E-06    .18701E-03
  21  norm          .71678        .83223       -.48980E-06   -.16702E-02
  22  norm          14.644        6.6660       -.43395E-06    .10180E-03
  23  Prefactor     10.286        9.1236       -.57404E-06    .56097E-04
  24  Prefactor     .10000E-03    24.881       -.14667E-04** at limit **
  25  norm          16.796        6.6149       -.60603E-06   -.86615E-03
  26  Normalizat    .75574        .19468        .13123E-04    .29349E-03
  27  Prefactor     .97639        .12561       -.10704E-05    .10465E-02
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 4.12388
  Prefactor  = 0.0001
  Prefactor  = 0.000100019
  Prefactor  = 0.0001
  Prefactor  = 84.0393
  Prefactor  = 0.000100001
  Prefactor  = 0.0001
  norm       = 71.7613
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.116481
  Prefactor  = 0.0001
  Prefactor  = 10.0739
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 5.50051
  norm       = 0.716781
  norm       = 14.6438
  Prefactor  = 10.2855
  Prefactor  = 0.0001
  norm       = 16.7962
  Normalizat = 0.755744
  Prefactor  = 0.976387
 **********
 **   18 **HESSE 
 **********

 FCN=   5692.306     FROM HESSE     STATUS=OK           482 CALLS     3693 TOTAL
                     EDM=   .23E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    1.1164        .77827E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    13.625        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    6.8155        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     4.1239        10.489        .19824E-03   -1.5302    
   5  Prefactor     .10000E-03    7.1509        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10002E-03    259.00        .20806E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    34.229        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     84.039        77.963        .21900E-03   -1.3872    
   9  Prefactor     .10000E-03    28.419        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    8.3756        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          71.761        34.266        .23696E-03   -1.4012    
  12  Prefactor     .10000E-03    59.218        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    18.039        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          .11648        1.4401        .11573E-02   -1.5640    
  15  Prefactor     .10000E-03    3.4472        .13658E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     10.074        4.4827        .99135E-04   -1.5073    
  17  Prefactor     .10000E-03    17.272        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    36.279        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    19.747        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  norm          5.5005        3.3520        .10180E-03   -1.5239    
  21  norm          .71678        .79882        .69799E-03   -1.5539    
  22  norm          14.644        6.6574        .10467E-03   -1.4942    
  23  Prefactor     10.286        9.1191        .12494E-03   -1.5066    
  24  Prefactor     .10000E-03    24.887        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  norm          16.796        6.6283        .48865E-03   -1.4888    
  26  Normalizat    .75574        .21766        .31525E-03   -1.0173    
  27  Prefactor     .97639        .14225        .19153E-03   -.93521    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.258e-09
Minuit parameter uncertainties:
  1  8.86503e-07
  2  8.41918e-06
  3  1.66259e-05
  4  10.4937
  5  6.08317e-05
  6  0.00444732
  7  3.52804e-05
  8  78.058
  9  0.000259121
  10  2.76291e-05
  11  34.2751
  12  2.5188e-05
  13  8.70902e-06
  14  0.818816
  15  1.53361e-06
  16  4.48289
  17  5.92125e-06
  18  9.38812e-05
  19  2.42664e-05
  20  3.35213
  21  0.798832
  22  6.65776
  23  9.12034
  24  1.174e-05
  25  6.62864
  26  0.217911
  27  0.142309
Done.

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

Extracting fit parameters...

4FGL J1628.6+7706
   Spectrum: LogParabola
377         norm:  7.176e+01  3.428e+01  1.000e-04  1.000e+04 ( 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  0.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.764e-01  1.423e-01  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:  7.557e-01  2.179e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 16.52
Ra Dec: 247.154 77.110
Photon Index (Fixed Index): 1.96 +/- 0.00
Photon Flux (Fixed Index): 7.17e-08 +/- 3.43e-08
Energy Flux (Fixed Index): 4.92e-05 +/- 2.35e-05

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) = 5691.88926694
delta logL = 0.416982303701

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5691.87941997
delta logL = 0.426829280705

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    57.404       1.0000         .10000E-03   10000.    
     2 'alpha     '    2.3644       1.0000          .0000       5.0000    
     3 'Normalizat'    .72715       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .98499       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=   5691.879     FROM MIGRAD    STATUS=CONVERGED     86 CALLS      301 TOTAL
                     EDM=   .59E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          57.408        33.748        .52949E-04   -.15597E-03
   2  alpha         2.3644        .44875        .84174E-02   -.95988E-05
   3  Normalizat    .72721        .20543        .32031E-03   -.11514E-03
   4  Prefactor     .98494        .13940        .19062E-03   -.19486E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 57.4082
  alpha      = 2.36437
  Normalizat = 0.727214
  Prefactor  = 0.984944
 **********
 **   18 **HESSE 
 **********

 FCN=   5691.879     FROM HESSE     STATUS=OK            25 CALLS      326 TOTAL
                     EDM=   .49E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          57.408        32.638        .10590E-04   -1.4191    
   2  alpha         2.3644        .43381        .33670E-03   -.54280E-01
   3  Normalizat    .72721        .20536        .12813E-04   -1.0283    
   4  Prefactor     .98494        .13943        .38123E-04   -.93233    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.86299e-11
Minuit parameter uncertainties:
  1  32.6481
  2  0.436029
  3  0.205574
  4  0.139477
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/550317': No such file or directory
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) = 5691.87941991
delta logL = 0.426829341467

Extracting fit parameters...

4FGL J1628.6+7706
   Spectrum: LogParabola
377         norm:  5.741e+01  3.265e+01  1.000e-04  1.000e+04 ( 1.000e-13)
378        alpha:  2.364e+00  4.360e-01  0.000e+00  5.000e+00 ( 1.000e+00)
379         beta:  9.152e-02  0.000e+00  0.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.849e-01  1.395e-01  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:  7.272e-01  2.056e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 17.41
Ra Dec: 247.154 77.110
Photon Index (Free Index): 2.36 +/- 0.44
Photon Flux (Free Index): 1.05e-07 +/- 5.70e-08
Energy Flux (Free Index): 3.87e-05 +/- 1.80e-05

Creating a high resolution counts map...
INFO: Auto-setting vmin to  0.000e+00 [aplpy.core]
INFO: Auto-setting vmax to  0.000e+00 [aplpy.core]
Saving /scratch/kocevski/550317/cmap_HighResolution_407808001_408067201_4FGL_J1628.6+7706_daily_bin650.png

Cleaning up...

** Nuclear option initiated! **
rmdir /scratch/kocevski/550317

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='7.17e-08', energy_flux2='3.87e-05', photon_flux_error='3.43e-08', dlogl='4.27e-01', energy_flux='4.92e-05', photon_flux2='1.05e-07', job_status='DONE', time_completed='2021-09-14 14:48:22.599042', photon_index_error2='0.44', photon_index2='2.36', ts='16.52', fit_tolerance='1e-08', GAL='0.98', photon_index_error='0.00', energy_flux_error2='1.80e-05', EG='0.76', time_epoch_completed='1631656102.6', return_code='0', job_id='550317', GAL2='0.98', EG2='0.73', return_code2='0', energy_flux_error='2.35e-05', photon_flux_error2='5.70e-08', ts2='17.41', photon_index='1.96' WHERE bin_id='650' AND source_name='4FGL J1628.6+7706' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Sep 14 14:48:22 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0237>
Subject: Job 550317: <4FGL_J1628.6+7706_daily_bin650> in cluster <slac> Done

Job <4FGL_J1628.6+7706_daily_bin650> was submitted from host <rhel6-64f> by user <kocevski> in cluster <slac> at Tue Sep 14 14:35:24 2021
Job was executed on host(s) <bullet0237>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Sep 14 14:35:58 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Tue Sep 14 14:35:58 2021
Terminated at Tue Sep 14 14:48:22 2021
Results reported at Tue Sep 14 14:48:22 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1628.6+7706_daily_bin650 247.154 77.1099 407808001 408067201 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J1628.6+7706 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   722.46 sec.
    Max Memory :                                 1095 MB
    Average Memory :                             343.46 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   744 sec.
    Turnaround time :                            778 sec.

The output (if any) is above this job summary.

