/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 147 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 = 7412
number of fields = 27
No RA_SUN column yet. Adding RA_SUN/DEC_SUN columns.
Done.


Performing analysis on: 4FGL_J1008.0+0620_daily_bin434
RA = 152.014, Dec = 6.3475
tmin = 351820801, tmax = 352080001
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='681026', job_status='RUN', time_executed='2021-09-01 11:09:11.793398', time_epoch_executed='1630519751.79' WHERE source_name='4FGL J1008.0+0620' and cadence='daily' and bin_id='434'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/681026

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/681026/ft1_4FGL_J1008.0+0620_daily_bin434.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/681026/ft2_4FGL_J1008.0+0620_daily_bin434.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/681026/ft1_4FGL_J1008.0+0620_daily_bin434.fits outfile=/scratch/kocevski/681026/ft1_filteredMKT_4FGL_J1008.0+0620_daily_bin434.fits ra=152.014 dec=6.3475 rad=12.0 tmin=351820801.0 tmax=352080001.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.49
user 3.49
sys 0.19

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/681026/ft2_4FGL_J1008.0+0620_daily_bin434.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/681026/ft2_4FGL_J1008.0+0620_daily_bin434.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/681026/ft1_filteredMKT_4FGL_J1008.0+0620_daily_bin434.fits evtable="EVENTS" outfile="/scratch/kocevski/681026/ft1_filtered_4FGL_J1008.0+0620_daily_bin434.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 1.72
user 0.33
sys 0.17

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/681026/ft1_filtered_4FGL_J1008.0+0620_daily_bin434.fits" evtable="EVENTS" scfile=/scratch/kocevski/681026/ft2_4FGL_J1008.0+0620_daily_bin434.fits sctable="SC_DATA" outfile=/scratch/kocevski/681026/ltcube_351820801_352080001_4FGL_J1008.0+0620_daily_bin434.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/681026/ft2_4FGL_J1008.0+0620_daily_bin434.fits
.....................!
real 12.40
user 11.45
sys 0.30

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/681026/ft1_filtered_4FGL_J1008.0+0620_daily_bin434.fits evtable="EVENTS" scfile=/scratch/kocevski/681026/ft2_4FGL_J1008.0+0620_daily_bin434.fits sctable="SC_DATA" expcube=/scratch/kocevski/681026/ltcube_351820801_352080001_4FGL_J1008.0+0620_daily_bin434.fits outfile=/scratch/kocevski/681026/expmap_351820801_352080001_4FGL_J1008.0+0620_daily_bin434.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/681026/ltcube_351820801_352080001_4FGL_J1008.0+0620_daily_bin434.fits
.....................!
real 192.03
user 186.44
sys 4.33

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

Setting source of interest to:
4FGL J1008.0+0620 @ 152.014 6.3475

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/681026/ft1_filtered_4FGL_J1008.0+0620_daily_bin434.fits scfile=/scratch/kocevski/681026/ft2_4FGL_J1008.0+0620_daily_bin434.fits outfile=/scratch/kocevski/681026/cmap_351820801_352080001_4FGL_J1008.0+0620_daily_bin434.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=152.014 yref=6.3475 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.53
user 0.39
sys 0.13

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/681026/ft1_filtered_4FGL_J1008.0+0620_daily_bin434.fits scfile=/scratch/kocevski/681026/ft2_4FGL_J1008.0+0620_daily_bin434.fits outfile=/scratch/kocevski/681026/cmap_HighResolution_351820801_352080001_4FGL_J1008.0+0620_daily_bin434.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=152.014 yref=6.3475 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.38
sys 0.14

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/681026/ft1_filtered_4FGL_J1008.0+0620_daily_bin434.fits evtable="EVENTS" scfile=/scratch/kocevski/681026/ft2_4FGL_J1008.0+0620_daily_bin434.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/681026/Model_4FGL_J1008.0+0620_daily_bin434.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/681026/ft1_filtered_4FGL_J1008.0+0620_daily_bin434.fits.....................!
real 54.75
user 53.17
sys 1.13

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/681026/ft1_filtered_4FGL_J1008.0+0620_daily_bin434.fits', '/scratch/kocevski/681026/ft2_4FGL_J1008.0+0620_daily_bin434.fits', expMap='/scratch/kocevski/681026/expmap_351820801_352080001_4FGL_J1008.0+0620_daily_bin434.fits', expCube='/scratch/kocevski/681026/ltcube_351820801_352080001_4FGL_J1008.0+0620_daily_bin434.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/681026/Model_4FGL_J1008.0+0620_daily_bin434.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J1008.0+0620'

4FGL J1008.0+0620
   Spectrum: PowerLaw
200    Prefactor:  6.323e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-13)
201        Index:  2.189e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
202        Scale:  1.356e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/681026/ft1_filtered_4FGL_J1008.0+0620_daily_bin434.fits
Spacecraft file(s): /scratch/kocevski/681026/ft2_4FGL_J1008.0+0620_daily_bin434.fits
Exposure map: /scratch/kocevski/681026/expmap_351820801_352080001_4FGL_J1008.0+0620_daily_bin434.fits
Exposure cube: /scratch/kocevski/681026/ltcube_351820801_352080001_4FGL_J1008.0+0620_daily_bin434.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/681026/Model_4FGL_J1008.0+0620_daily_bin434.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) = 5352.85009073

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    3.7553       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10982E-03   1.0000         .10000E-03   10000.    
     3 'norm      '    2.2242       1.0000         .10000E-03   10000.    
     4 'norm      '    .59916       1.0000         .10000E-03   10000.    
     5 'Prefactor '    2.6918       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10200E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .97820E-02   1.0000         .10000E-03   10000.    
     8 'norm      '    48.849       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10763E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    25.325       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .21655E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10953E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    1.1002       1.0000         .10000E-03   10000.    
    14 'Prefactor '    18.037       1.0000         .10000E-03   10000.    
    15 'Prefactor '    3.3556       1.0000         .10000E-03   10000.    
    16 'Prefactor '    13.181       1.0000         .10000E-03   10000.    
    17 'Normalizat'    1.3969       1.0000         .10000E-01   10.000    
    18 'Prefactor '    .77124       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .4840E+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=   5352.816     FROM MIGRAD    STATUS=CONVERGED    631 CALLS     1767 TOTAL
                     EDM=   .14E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     3.7531        3.4839        .12761E-03   -.76886E-04
   2  Prefactor     .10000E-03    28.997        .18142E-02** at limit **
   3  norm          2.2240        1.3005        .61234E-04   -.62753E-04
   4  norm          .59888        .60787        .57088E-03    .60111E-03
   5  Prefactor     2.6888        12.127        .24832E-03    .25409E-04
   6  Prefactor     .10000E-03    30.034        .18142E-02** at limit **
   7  Prefactor     .10000E-03    46.964        .13661    ** at limit **
   8  norm          48.855        25.139        .28687E-03   -.70739E-04
   9  Prefactor     .10000E-03    5.3864        .16562E-02** at limit **
  10  Prefactor     25.479        37.492        .79602E-04   -.16567E-04
  11  Prefactor     .10000E-03    37.049        .18142E-02** at limit **
  12  Prefactor     .10000E-03    16.856        .18142E-02** at limit **
  13  norm          1.1002        1.6606        .11156E-03    .63384E-04
  14  Prefactor     18.039        9.7962        .94307E-04   -.78598E-04
  15  Prefactor     3.3538        4.5034        .16640E-03   -.94691E-04
  16  Prefactor     13.183        9.7829        .11033E-03   -.46474E-04
  17  Normalizat    1.3971        .24706        .24510E-03   -.82794E-04
  18  Prefactor     .77113        .20088        .26464E-03   -.15010E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 3.75315
  Prefactor  = 0.0001
  norm       = 2.22401
  norm       = 0.598878
  Prefactor  = 2.68884
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 48.8553
  Prefactor  = 0.0001
  Prefactor  = 25.4788
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 1.10024
  Prefactor  = 18.0387
  Prefactor  = 3.35383
  Prefactor  = 13.183
  Normalizat = 1.3971
  Prefactor  = 0.771131
 **********
 **   18 **HESSE 
 **********

 FCN=   5352.816     FROM HESSE     STATUS=OK           238 CALLS     2005 TOTAL
                     EDM=   .13E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     3.7531        3.4839        .51043E-05   -1.5320    
   2  Prefactor     .10000E-03    29.012        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          2.2240        1.3005        .24494E-05   -1.5410    
   4  norm          .59888        .60761        .22835E-04   -1.5553    
   5  Prefactor     2.6888        12.120        .99330E-05   -1.5380    
   6  Prefactor     .10000E-03    30.036        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    47.738        .13514       -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          48.855        25.133        .11475E-04   -1.4309    
   9  Prefactor     .10000E-03    5.3867        .33125E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     25.479        37.485        .31841E-05   -1.4698    
  11  Prefactor     .10000E-03    37.051        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    16.858        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          1.1002        1.6605        .44625E-05   -1.5498    
  14  Prefactor     18.039        9.7957        .37723E-05   -1.4858    
  15  Prefactor     3.3538        4.5027        .66562E-05   -1.5342    
  16  Prefactor     13.183        9.7822        .44131E-05   -1.4982    
  17  Normalizat    1.3971        .24722        .49020E-04   -.80713    
  18  Prefactor     .77113        .20106        .10586E-04   -1.0080    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.32797e-10
Minuit parameter uncertainties:
  1  3.48406
  2  0.000104956
  3  1.30049
  4  0.607616
  5  11.4209
  6  4.02981e-05
  7  8.39821e-05
  8  25.1385
  9  4.65287e-05
  10  37.5197
  11  0.000203925
  12  0.000110841
  13  1.66055
  14  9.7966
  15  4.50315
  16  9.78339
  17  0.247429
  18  0.201252
Done.

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

Extracting fit parameters...

4FGL J1008.0+0620
   Spectrum: PowerLaw
200    Prefactor:  2.689e+00  1.142e+01  1.000e-04  1.000e+04 ( 1.000e-13)
201        Index:  2.189e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
202        Scale:  1.356e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
481    Prefactor:  7.711e-01  2.013e-01  0.000e+00  1.000e+01 ( 1.000e+00)
482        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
483        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
480   Normalization:  1.397e+00  2.474e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 0.08
Ra Dec: 152.014 6.348
Photon Flux Upper Limit: 8.80e-08 ph cm-2 s-1
Energy Flux Upper Limit: 6.70e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/681026/likelihoodResults_351820801_352080001_4FGL_J1008.0+0620_daily_bin434.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) = 5352.78023101
delta logL = 0.0355311536241

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5352.7770565
delta logL = 0.0387056638547

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    2.1972       1.0000         .10000E-03   10000.    
     2 'Index     '    2.6821       1.0000          .0000       10.000    
     3 'Normalizat'    1.3894       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .77469       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .4840E+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=   5352.777     FROM MIGRAD    STATUS=CONVERGED     83 CALLS      238 TOTAL
                     EDM=   .23E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     2.1988        10.463        .27760E-03    .46138E-03
   2  Index         2.6828        2.0305        .11293E-01    .13556E-03
   3  Normalizat    1.3893        .24267        .24564E-03    .61213E-03
   4  Prefactor     .77465        .20029        .26407E-03    .43251E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 2.19884
  Index      = 2.68281
  Normalizat = 1.38934
  Prefactor  = 0.774651
 **********
 **   18 **HESSE 
 **********

 FCN=   5352.777     FROM HESSE     STATUS=OK            25 CALLS      263 TOTAL
                     EDM=   .18E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     2.1988        8.0690        .11104E-04   -1.5411    
   2  Index         2.6828        1.7274        .45170E-03   -.48187    
   3  Normalizat    1.3893        .24276        .49128E-04   -.80937    
   4  Prefactor     .77465        .20035        .52814E-04   -1.0067    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.78781e-09
Minuit parameter uncertainties:
  1  8.07297
  2  1.77442
  3  0.242965
  4  0.200534
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/681026': 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) = 5352.77705611
delta logL = 0.0387060580815

Extracting fit parameters...

4FGL J1008.0+0620
   Spectrum: PowerLaw
200    Prefactor:  2.199e+00  8.073e+00  1.000e-04  1.000e+04 ( 1.000e-13)
201        Index:  2.683e+00  1.774e+00  0.000e+00  1.000e+01 (-1.000e+00)
202        Scale:  1.356e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
481    Prefactor:  7.747e-01  2.005e-01  0.000e+00  1.000e+01 ( 1.000e+00)
482        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
483        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
480   Normalization:  1.389e+00  2.430e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 0.08
Ra Dec: 152.014 6.348

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/681026/cmap_HighResolution_351820801_352080001_4FGL_J1008.0+0620_daily_bin434.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='6.70e-03', job_status='DONE', photon_flux_upper_limit='8.80e-08', time_completed='2021-09-01 11:17:39.010524', job_id='681026', GAL2='0.77', fit_tolerance='1e-08', EG2='1.39', EG='1.40', time_epoch_completed='1630520259.01', return_code2='0', ts='0.08', comment='SUCCESS', return_code='0', GAL='0.77', dlogl='3.87e-02', ts2='0.16', photon_index_error='0.00', photon_index='2.19' WHERE bin_id='434' AND source_name='4FGL J1008.0+0620' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep  1 11:17:39 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0254>
Subject: Job 681026: <4FGL_J1008.0+0620_daily_bin434> in cluster <slac> Done

Job <4FGL_J1008.0+0620_daily_bin434> was submitted from host <rhel6-64d> by user <kocevski> in cluster <slac> at Wed Sep  1 11:06:22 2021
Job was executed on host(s) <bullet0254>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Sep  1 11:06:24 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Wed Sep  1 11:06:24 2021
Terminated at Wed Sep  1 11:17:39 2021
Results reported at Wed Sep  1 11:17:39 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1008.0+0620_daily_bin434 152.014 6.3475 351820801 352080001 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J1008.0+0620 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   501.26 sec.
    Max Memory :                                 1255 MB
    Average Memory :                             221.00 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   675 sec.
    Turnaround time :                            677 sec.

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

