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


Performing analysis on: 4FGL_J1008.0+0620_daily_bin799
RA = 152.014, Dec = 6.3475
tmin = 446428801, tmax = 446688001
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='683910', job_status='RUN', time_executed='2021-09-01 11:19:47.004703', time_epoch_executed='1630520387.0' WHERE source_name='4FGL J1008.0+0620' and cadence='daily' and bin_id='799'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/683910

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/683910/ft1_4FGL_J1008.0+0620_daily_bin799.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/683910/ft2_4FGL_J1008.0+0620_daily_bin799.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/683910/ft1_4FGL_J1008.0+0620_daily_bin799.fits outfile=/scratch/kocevski/683910/ft1_filteredMKT_4FGL_J1008.0+0620_daily_bin799.fits ra=152.014 dec=6.3475 rad=12.0 tmin=446428801.0 tmax=446688001.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.27
sys 0.20

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/683910/ft2_4FGL_J1008.0+0620_daily_bin799.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/683910/ft1_filteredMKT_4FGL_J1008.0+0620_daily_bin799.fits evtable="EVENTS" outfile="/scratch/kocevski/683910/ft1_filtered_4FGL_J1008.0+0620_daily_bin799.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/683910/ft1_filtered_4FGL_J1008.0+0620_daily_bin799.fits" evtable="EVENTS" scfile=/scratch/kocevski/683910/ft2_4FGL_J1008.0+0620_daily_bin799.fits sctable="SC_DATA" outfile=/scratch/kocevski/683910/ltcube_446428801_446688001_4FGL_J1008.0+0620_daily_bin799.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/683910/ft2_4FGL_J1008.0+0620_daily_bin799.fits
.....................!
real 14.98
user 14.58
sys 0.34

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/683910/ft1_filtered_4FGL_J1008.0+0620_daily_bin799.fits evtable="EVENTS" scfile=/scratch/kocevski/683910/ft2_4FGL_J1008.0+0620_daily_bin799.fits sctable="SC_DATA" expcube=/scratch/kocevski/683910/ltcube_446428801_446688001_4FGL_J1008.0+0620_daily_bin799.fits outfile=/scratch/kocevski/683910/expmap_446428801_446688001_4FGL_J1008.0+0620_daily_bin799.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/683910/ltcube_446428801_446688001_4FGL_J1008.0+0620_daily_bin799.fits
.....................!
real 191.17
user 185.91
sys 4.84

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/683910/ft1_filtered_4FGL_J1008.0+0620_daily_bin799.fits scfile=/scratch/kocevski/683910/ft2_4FGL_J1008.0+0620_daily_bin799.fits outfile=/scratch/kocevski/683910/cmap_446428801_446688001_4FGL_J1008.0+0620_daily_bin799.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.60
user 0.39
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/683910/ft1_filtered_4FGL_J1008.0+0620_daily_bin799.fits scfile=/scratch/kocevski/683910/ft2_4FGL_J1008.0+0620_daily_bin799.fits outfile=/scratch/kocevski/683910/cmap_HighResolution_446428801_446688001_4FGL_J1008.0+0620_daily_bin799.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.58
user 0.39
sys 0.16

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

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/683910/ft1_filtered_4FGL_J1008.0+0620_daily_bin799.fits', '/scratch/kocevski/683910/ft2_4FGL_J1008.0+0620_daily_bin799.fits', expMap='/scratch/kocevski/683910/expmap_446428801_446688001_4FGL_J1008.0+0620_daily_bin799.fits', expCube='/scratch/kocevski/683910/ltcube_446428801_446688001_4FGL_J1008.0+0620_daily_bin799.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/683910/Model_4FGL_J1008.0+0620_daily_bin799.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/683910/ft1_filtered_4FGL_J1008.0+0620_daily_bin799.fits
Spacecraft file(s): /scratch/kocevski/683910/ft2_4FGL_J1008.0+0620_daily_bin799.fits
Exposure map: /scratch/kocevski/683910/expmap_446428801_446688001_4FGL_J1008.0+0620_daily_bin799.fits
Exposure cube: /scratch/kocevski/683910/ltcube_446428801_446688001_4FGL_J1008.0+0620_daily_bin799.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/683910/Model_4FGL_J1008.0+0620_daily_bin799.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) = 5909.57622621

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    8.8841       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     3 'norm      '    1.1225       1.0000         .10000E-03   10000.    
     4 'norm      '    2.7286       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10029E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10027E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    .10052E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .14725E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    38.211       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .13885E-02   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .51304E-02   1.0000         .10000E-03   10000.    
    13 'norm      '    2.7293       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10032E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10008E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    24.857       1.0000         .10000E-03   10000.    
    17 'Normalizat'    1.4164       1.0000         .10000E-01   10.000    
    18 'Prefactor '    .72080       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.

 FCN=   5909.572     FROM MIGRAD    STATUS=CONVERGED    383 CALLS     1759 TOTAL
                     EDM=   .14E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.8%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     8.8846        5.2360       -.87285E-07    .46325E-04
   2  Prefactor     .10000E-03    7.9394        .88061E-07** at limit **
   3  norm          1.1229        1.3184       -.67563E-08    .23516E-03
   4  norm          2.7287        .85833       -.41833E-07    .33101E-03
   5  Prefactor     .10000E-03    5.9497       -.95519E-06** at limit **
   6  Prefactor     .10000E-03    20.001        .15855E-06** at limit **
   7  Prefactor     .10000E-03    128.24        .22667E-05** at limit **
   8  norm          .10000E-03    6.1064       -.11086E-05** at limit **
   9  Prefactor     .10000E-03    12.784       -.32417E-05** at limit **
  10  Prefactor     38.121        50.528        .38698E-05    .32667E-03
  11  Prefactor     .10002E-03    189.79       -.13636E-04** at limit **
  12  Prefactor     .10058E-03    22.058       -.61473E-05** at limit **
  13  norm          2.7288        1.6081        .56063E-07    .77522E-03
  14  Prefactor     .10000E-03    13.415        .43463E-06** at limit **
  15  Prefactor     .10000E-03    3.5022       -.20365E-06** at limit **
  16  Prefactor     24.857        12.022       -.13939E-06    .18072E-03
  17  Normalizat    1.4165        .21488        .38890E-05    .72193E-03
  18  Prefactor     .72063        .16979       -.26925E-05    .64709E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 8.88456
  Prefactor  = 0.0001
  norm       = 1.12287
  norm       = 2.72866
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000100001
  norm       = 0.0001
  Prefactor  = 0.000100001
  Prefactor  = 38.1214
  Prefactor  = 0.000100018
  Prefactor  = 0.000100578
  norm       = 2.72878
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 24.857
  Normalizat = 1.41647
  Prefactor  = 0.720628
 **********
 **   18 **HESSE 
 **********

 FCN=   5909.572     FROM HESSE     STATUS=OK           238 CALLS     1997 TOTAL
                     EDM=   .96E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     8.8846        5.2362        .13031E-03   -1.5112    
   2  Prefactor     .10000E-03    7.9690        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          1.1229        1.2875        .90431E-04   -1.5496    
   4  norm          2.7287        .85774        .37948E-04   -1.5378    
   5  Prefactor     .10000E-03    5.9928        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    20.018        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    129.97        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          .10000E-03    6.1360        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    13.088        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     38.121        51.576        .64839E-04   -1.4472    
  11  Prefactor     .10002E-03    194.09        .20531E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10058E-03    65.979        .53568E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          2.7288        1.6069        .71632E-04   -1.5378    
  14  Prefactor     .10000E-03    13.939        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    3.5975        .28057E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     24.857        12.015        .80346E-04   -1.4710    
  17  Normalizat    1.4165        .24074        .24620E-03   -.80153    
  18  Prefactor     .72063        .19127        .26984E-03   -1.0272    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 9.5775e-09
Minuit parameter uncertainties:
  1  5.23648
  2  1.26151e-06
  3  1.28754
  4  0.857746
  5  6.70709e-05
  6  9.78507e-06
  7  0.000743851
  8  7.39208e-05
  9  0.000220489
  10  51.6367
  11  0.00379479
  12  0.0123688
  13  1.60692
  14  1.52755e-05
  15  2.05484e-05
  16  12.0157
  17  0.240929
  18  0.191443
Done.

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

Extracting fit parameters...

4FGL J1008.0+0620
   Spectrum: PowerLaw
200    Prefactor:  1.000e-04  6.707e-05  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.206e-01  1.914e-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.416e+00  2.409e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/683910/likelihoodResults_446428801_446688001_4FGL_J1008.0+0620_daily_bin799.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): 102
logL (Free Index) = 5909.57325872
delta logL = -0.000793769077973

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 5909.57246493
delta logL = 1.45810190588e-08

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.1806       1.0000          .0000       10.000    
     3 'Normalizat'    1.4165       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .72063       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=   5909.572     FROM MIGRAD    STATUS=CONVERGED     92 CALLS      248 TOTAL
                     EDM=   .16E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10031E-03    64.963        .18142E-02** at limit **
   2  Index         2.1516        8.5085        .50000        .10346E-04
   3  Normalizat    1.4165        .16848E-01    .24620E-03    .21149E-04
   4  Prefactor     .72063        .13730E-01    .26984E-03    .10027E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100313
  Index      = 2.15155
  Normalizat = 1.41647
  Prefactor  = 0.720627
 **********
 **   18 **HESSE 
 **********

 FCN=   5909.572     FROM HESSE     STATUS=NOT POSDEF    29 CALLS      277 TOTAL
                     EDM=   .74E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10031E-03    288.79        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.1516        7.1066        .50000       -.60613    
   3  Normalizat    1.4165        .37250E-01    .98479E-05   -.80153    
   4  Prefactor     .72063        .30355E-01    .10794E-04   -1.0272    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 7.37359e-09
Minuit parameter uncertainties:
  1  0.0191122
  2  641.861
  3  0.0372507
  4  0.0303556
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/683910': 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): 102
logL (Free Index) = 5909.57246487
delta logL = 7.89514160715e-08

Extracting fit parameters...

4FGL J1008.0+0620
   Spectrum: PowerLaw
200    Prefactor:  1.003e-04  1.911e-02  1.000e-04  1.000e+04 ( 1.000e-13)
201        Index:  2.152e+00  6.419e+02  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.206e-01  3.036e-02  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.416e+00  3.725e-02  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
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/683910/cmap_HighResolution_446428801_446688001_4FGL_J1008.0+0620_daily_bin799.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='4.77e-03', job_status='DONE', photon_flux_upper_limit='6.27e-08', time_completed='2021-09-01 11:28:25.822667', job_id='683910', GAL2='0.72', fit_tolerance='1e-08', EG2='1.42', EG='1.42', time_epoch_completed='1630520905.82', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.72', dlogl='7.90e-08', ts2='-0.00', photon_index_error='0.00', photon_index='2.19' WHERE bin_id='799' AND source_name='4FGL J1008.0+0620' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep  1 11:28:25 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0115>
Subject: Job 683910: <4FGL_J1008.0+0620_daily_bin799> in cluster <slac> Done

Job <4FGL_J1008.0+0620_daily_bin799> was submitted from host <rhel6-64f> by user <kocevski> in cluster <slac> at Wed Sep  1 11:15:37 2021
Job was executed on host(s) <bullet0115>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Sep  1 11:15:52 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:15:52 2021
Terminated at Wed Sep  1 11:28:26 2021
Results reported at Wed Sep  1 11:28:26 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1008.0+0620_daily_bin799 152.014 6.3475 446428801 446688001 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 :                                   519.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             295.92 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   754 sec.
    Turnaround time :                            769 sec.

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

