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


Performing analysis on: 4FGL_J1008.0+0620_daily_bin430
RA = 152.014, Dec = 6.3475
tmin = 350784001, tmax = 351043201
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='681020', job_status='RUN', time_executed='2021-09-01 11:08:59.230775', time_epoch_executed='1630519739.23' WHERE source_name='4FGL J1008.0+0620' and cadence='daily' and bin_id='430'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/681020

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/681020/ft1_4FGL_J1008.0+0620_daily_bin430.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/681020/ft2_4FGL_J1008.0+0620_daily_bin430.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/681020/ft1_4FGL_J1008.0+0620_daily_bin430.fits outfile=/scratch/kocevski/681020/ft1_filteredMKT_4FGL_J1008.0+0620_daily_bin430.fits ra=152.014 dec=6.3475 rad=12.0 tmin=350784001.0 tmax=351043201.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.43
user 3.20
sys 0.21

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/681020/ft2_4FGL_J1008.0+0620_daily_bin430.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/681020/ft1_filteredMKT_4FGL_J1008.0+0620_daily_bin430.fits evtable="EVENTS" outfile="/scratch/kocevski/681020/ft1_filtered_4FGL_J1008.0+0620_daily_bin430.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.55
user 0.34
sys 0.14

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/681020/ft1_filtered_4FGL_J1008.0+0620_daily_bin430.fits" evtable="EVENTS" scfile=/scratch/kocevski/681020/ft2_4FGL_J1008.0+0620_daily_bin430.fits sctable="SC_DATA" outfile=/scratch/kocevski/681020/ltcube_350784001_351043201_4FGL_J1008.0+0620_daily_bin430.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/681020/ft2_4FGL_J1008.0+0620_daily_bin430.fits
.....................!
real 11.93
user 11.44
sys 0.27

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/681020/ft1_filtered_4FGL_J1008.0+0620_daily_bin430.fits evtable="EVENTS" scfile=/scratch/kocevski/681020/ft2_4FGL_J1008.0+0620_daily_bin430.fits sctable="SC_DATA" expcube=/scratch/kocevski/681020/ltcube_350784001_351043201_4FGL_J1008.0+0620_daily_bin430.fits outfile=/scratch/kocevski/681020/expmap_350784001_351043201_4FGL_J1008.0+0620_daily_bin430.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/681020/ltcube_350784001_351043201_4FGL_J1008.0+0620_daily_bin430.fits
.....................!
real 189.92
user 185.13
sys 4.06

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/681020/ft1_filtered_4FGL_J1008.0+0620_daily_bin430.fits scfile=/scratch/kocevski/681020/ft2_4FGL_J1008.0+0620_daily_bin430.fits outfile=/scratch/kocevski/681020/cmap_350784001_351043201_4FGL_J1008.0+0620_daily_bin430.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.38
sys 0.13

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/681020/ft1_filtered_4FGL_J1008.0+0620_daily_bin430.fits scfile=/scratch/kocevski/681020/ft2_4FGL_J1008.0+0620_daily_bin430.fits outfile=/scratch/kocevski/681020/cmap_HighResolution_350784001_351043201_4FGL_J1008.0+0620_daily_bin430.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.53
user 0.38
sys 0.14

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .36514       1.0000         .10000E-03   10000.    
     3 'norm      '    1.1220       1.0000         .10000E-03   10000.    
     4 'norm      '    2.0135       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10018E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    .10730E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    6.3251       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10182E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10125E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    .10013E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    11.867       1.0000         .10000E-03   10000.    
    15 'Prefactor '    5.0849       1.0000         .10000E-03   10000.    
    16 'Prefactor '    2.8743       1.0000         .10000E-03   10000.    
    17 'Normalizat'    1.2182       1.0000         .10000E-01   10.000    
    18 'Prefactor '    .90120       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=   4939.000     FROM MIGRAD    STATUS=CONVERGED    370 CALLS     1489 TOTAL
                     EDM=   .14E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.5%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    2.2797       -.55151E-07** at limit **
   2  Prefactor     .29093        13.006       -.96307E-06    .16692E-03
   3  norm          1.1218        1.0934       -.58310E-07   -.17359E-03
   4  norm          2.0140        .85257        .20860E-07    .31559E-03
   5  Prefactor     .10000E-03    7.9022       -.76239E-06** at limit **
   6  Prefactor     .10000E-03    14.434        .59824E-05** at limit **
   7  Prefactor     .10000E-03    16.538       -.11180E-04** at limit **
   8  norm          .10000E-03    7.4313        .70683E-06** at limit **
   9  Prefactor     6.3265        8.7348        .33970E-06   -.65800E-03
  10  Prefactor     .10000E-03    18.029       -.35376E-05** at limit **
  11  Prefactor     .10000E-03    18.929        .99725E-05** at limit **
  12  Prefactor     .10000E-03    5.7099       -.48056E-07** at limit **
  13  norm          .10000E-03    .87552        .20129E-07** at limit **
  14  Prefactor     11.873        8.5610        .13904E-06   -.39430E-03
  15  Prefactor     5.0843        3.3196       -.81613E-07   -.40334E-04
  16  Prefactor     2.8722        4.3062        .15041E-05   -.20542E-02
  17  Normalizat    1.2183        .20514       -.38022E-06    .56466E-04
  18  Prefactor     .90129        .17340        .60698E-07    .45682E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.290933
  norm       = 1.12182
  norm       = 2.01403
  Prefactor  = 0.0001
  Prefactor  = 0.000100001
  Prefactor  = 0.000100002
  norm       = 0.0001
  Prefactor  = 6.32648
  Prefactor  = 0.0001
  Prefactor  = 0.000100002
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 11.8729
  Prefactor  = 5.08434
  Prefactor  = 2.87215
  Normalizat = 1.21828
  Prefactor  = 0.901285
 **********
 **   18 **HESSE 
 **********

 FCN=   4939.000     FROM HESSE     STATUS=OK           248 CALLS     1737 TOTAL
                     EDM=   .12E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    2.3024        .10360E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .29093        185.89        .48164E-02   -1.5600    
   3  norm          1.1218        1.0672        .69507E-04   -1.5496    
   4  norm          2.0140        .84823        .39851E-04   -1.5424    
   5  Prefactor     .10000E-03    7.9418        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    14.491        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    16.719        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          .10000E-03    7.4447        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     6.3265        8.9371        .79800E-03   -1.5205    
  10  Prefactor     .10000E-03    18.056        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    19.072        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    5.7117        .16400E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          .10000E-03    1.3643        .12679E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     11.873        8.5762        .58143E-03   -1.5019    
  15  Prefactor     5.0843        3.3368        .99288E-04   -1.5257    
  16  Prefactor     2.8722        7.6607        .11987E-02   -1.5369    
  17  Normalizat    1.2183        .24272        .24398E-03   -.86040    
  18  Prefactor     .90129        .20456        .23892E-03   -.96096    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.19281e-08
Minuit parameter uncertainties:
  1  5.80068e-07
  2  14.7517
  3  1.06725
  4  0.84823
  5  1.71813e-05
  6  0.000188334
  7  0.000373376
  8  1.51418e-05
  9  8.93896
  10  0.000124257
  11  0.000358077
  12  1.54887e-06
  13  2.17189e-06
  14  8.57711
  15  3.33689
  16  7.66335
  17  0.242942
  18  0.204733
Done.

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

Extracting fit parameters...

4FGL J1008.0+0620
   Spectrum: PowerLaw
200    Prefactor:  1.000e-04  1.718e-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:  9.013e-01  2.047e-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.218e+00  2.429e-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.77e-08 ph cm-2 s-1
Energy Flux Upper Limit: 5.16e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/681020/likelihoodResults_350784001_351043201_4FGL_J1008.0+0620_daily_bin430.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) = 4939.00104638
delta logL = -0.000599602511102

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 4939.00044692
delta logL = -1.44983459904e-07

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10177E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.1948       1.0000          .0000       10.000    
     3 'Normalizat'    1.2182       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .90134       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=   4939.000     FROM MIGRAD    STATUS=CONVERGED     88 CALLS      241 TOTAL
                     EDM=   .19E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10035E-03    115.80        .18142E-02** at limit **
   2  Index         2.2360        6.9612        .50000       -.51239E-05
   3  Normalizat    1.2183        .19982E-01    .24398E-03    .20083E-04
   4  Prefactor     .90129        .17204E-01    .23892E-03    .11849E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100349
  Index      = 2.23595
  Normalizat = 1.21828
  Prefactor  = 0.901285
 **********
 **   18 **HESSE 
 **********

 FCN=   4939.000     FROM HESSE     STATUS=NOT POSDEF    29 CALLS      270 TOTAL
                     EDM=   .13E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10035E-03    678.37        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.2360        5.1695        .50000       -.58573    
   3  Normalizat    1.2183        .53898E-01    .97592E-05   -.86040    
   4  Prefactor     .90129        .46320E-01    .95566E-05   -.96096    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 1.26705e-08
Minuit parameter uncertainties:
  1  0.0311246
  2  1526.93
  3  0.0539005
  4  0.0463219
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/681020': 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) = 4939.00044674
delta logL = 3.80123310606e-08

Extracting fit parameters...

4FGL J1008.0+0620
   Spectrum: PowerLaw
200    Prefactor:  1.003e-04  3.112e-02  1.000e-04  1.000e+04 ( 1.000e-13)
201        Index:  2.236e+00  1.527e+03  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:  9.013e-01  4.632e-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.218e+00  5.390e-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/681020/cmap_HighResolution_350784001_351043201_4FGL_J1008.0+0620_daily_bin430.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='5.16e-03', job_status='DONE', photon_flux_upper_limit='6.77e-08', time_completed='2021-09-01 11:16:53.261624', job_id='681020', GAL2='0.90', fit_tolerance='1e-08', EG2='1.22', EG='1.22', time_epoch_completed='1630520213.26', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.90', dlogl='3.80e-08', ts2='-0.00', photon_index_error='0.00', photon_index='2.19' WHERE bin_id='430' AND source_name='4FGL J1008.0+0620' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep  1 11:16:53 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0204>
Subject: Job 681020: <4FGL_J1008.0+0620_daily_bin430> in cluster <slac> Done

Job <4FGL_J1008.0+0620_daily_bin430> was submitted from host <rhel6-64d> by user <kocevski> in cluster <slac> at Wed Sep  1 11:06:21 2021
Job was executed on host(s) <bullet0204>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Sep  1 11:06:23 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:23 2021
Terminated at Wed Sep  1 11:16:54 2021
Results reported at Wed Sep  1 11:16:54 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1008.0+0620_daily_bin430 152.014 6.3475 350784001 351043201 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 :                                   473.00 sec.
    Max Memory :                                 1255 MB
    Average Memory :                             234.81 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   630 sec.
    Turnaround time :                            633 sec.

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

