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


Performing analysis on: 4FGL_J1008.0+0620_daily_bin651
RA = 152.014, Dec = 6.3475
tmin = 408067201, tmax = 408326401
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='682652', job_status='RUN', time_executed='2021-09-01 11:13:30.005927', time_epoch_executed='1630520010.01' WHERE source_name='4FGL J1008.0+0620' and cadence='daily' and bin_id='651'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/682652

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/682652/ft1_4FGL_J1008.0+0620_daily_bin651.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/682652/ft2_4FGL_J1008.0+0620_daily_bin651.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/682652/ft1_4FGL_J1008.0+0620_daily_bin651.fits outfile=/scratch/kocevski/682652/ft1_filteredMKT_4FGL_J1008.0+0620_daily_bin651.fits ra=152.014 dec=6.3475 rad=12.0 tmin=408067201.0 tmax=408326401.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.01
user 3.71
sys 0.20

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/682652/ft1_filtered_4FGL_J1008.0+0620_daily_bin651.fits" evtable="EVENTS" scfile=/scratch/kocevski/682652/ft2_4FGL_J1008.0+0620_daily_bin651.fits sctable="SC_DATA" outfile=/scratch/kocevski/682652/ltcube_408067201_408326401_4FGL_J1008.0+0620_daily_bin651.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/682652/ft2_4FGL_J1008.0+0620_daily_bin651.fits
.....................!
real 11.55
user 11.15
sys 0.31

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/682652/ft1_filtered_4FGL_J1008.0+0620_daily_bin651.fits evtable="EVENTS" scfile=/scratch/kocevski/682652/ft2_4FGL_J1008.0+0620_daily_bin651.fits sctable="SC_DATA" expcube=/scratch/kocevski/682652/ltcube_408067201_408326401_4FGL_J1008.0+0620_daily_bin651.fits outfile=/scratch/kocevski/682652/expmap_408067201_408326401_4FGL_J1008.0+0620_daily_bin651.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/682652/ltcube_408067201_408326401_4FGL_J1008.0+0620_daily_bin651.fits
.....................!
real 192.62
user 186.17
sys 4.00

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/682652/ft1_filtered_4FGL_J1008.0+0620_daily_bin651.fits scfile=/scratch/kocevski/682652/ft2_4FGL_J1008.0+0620_daily_bin651.fits outfile=/scratch/kocevski/682652/cmap_408067201_408326401_4FGL_J1008.0+0620_daily_bin651.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.63
user 0.39
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/682652/ft1_filtered_4FGL_J1008.0+0620_daily_bin651.fits scfile=/scratch/kocevski/682652/ft2_4FGL_J1008.0+0620_daily_bin651.fits outfile=/scratch/kocevski/682652/cmap_HighResolution_408067201_408326401_4FGL_J1008.0+0620_daily_bin651.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.84
user 0.39
sys 0.15

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    4.8676       1.0000         .10000E-03   10000.    
     2 'Prefactor '    3.3930       1.0000         .10000E-03   10000.    
     3 'norm      '    1.4084       1.0000         .10000E-03   10000.    
     4 'norm      '    .90693E-01   1.0000         .10000E-03   10000.    
     5 'Prefactor '    21.341       1.0000         .10000E-03   10000.    
     6 'Prefactor '    1.4112       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10160E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    .10033E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10021E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    34.301       1.0000         .10000E-03   10000.    
    11 'Prefactor '    15.792       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    4.4815       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .14853E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    4.7999       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    17 'Normalizat'    1.0167       1.0000         .10000E-01   10.000    
    18 'Prefactor '    1.1189       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.
 MIGRAD TERMINATED WITHOUT CONVERGENCE.

 FCN=   10297.42     FROM MIGRAD    STATUS=FAILED       641 CALLS     2300 TOTAL
                     EDM=   .33E-07    STRATEGY= 1      ERR MATRIX APPROXIMATE

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     4.8675        3.8529        .16981E-03   -.10672E-03
   2  Prefactor     3.3923        8.1225        .21965E-03   -.59109E-04
   3  norm          1.4084        1.1835        .96647E-04   -.11175E-03
   4  norm          .90626E-01    .32603        .81614E-03    .16258E-01
   5  Prefactor     21.344        11.398        .86703E-04   -.14424E-04
   6  Prefactor     1.4082        81.436        .18233E-02   -.73362E-04
   7  Prefactor     .10001E-03    99.446        .69982E-02** at limit **
   8  norm          .10000E-03    11.454        .18142E-02** at limit **
   9  Prefactor     .10000E-03    7.4853        .18142E-02** at limit **
  10  Prefactor     34.277        46.240        .68423E-04   -.50843E-04
  11  Prefactor     15.779        25.685        .10079E-03    .19402E-04
  12  Prefactor     .10000E-03    6.8177        .18142E-02** at limit **
  13  norm          4.4814        1.2824        .58275E-04   -.88063E-03
  14  Prefactor     .10000E-03    19.458        .32909E-02** at limit **
  15  Prefactor     4.7998        2.7899        .12188E-03   -.17275E-03
  16  Prefactor     .10000E-03    2.9079        .16818E-02** at limit **
  17  Normalizat    1.0166        .18890        .28021E-03   -.25431E-03
  18  Prefactor     1.1189        .15327        .22775E-03   -.63135E-03
                               ERR DEF=  .500    
 START SIMPLEX MINIMIZATION.    CONVERGENCE WHEN EDM .LT.   .20E-04
 SIMPLEX MINIMIZATION HAS CONVERGED.

 FCN=   10297.42     FROM SIMPLEX   STATUS=PROGRESS     644 CALLS     2944 TOTAL
                     EDM=   .14E-04    STRATEGY= 1      ERR MATRIX APPROXIMATE

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     4.8675        3.8529        .46891E-07   -1.5267    
   2  Prefactor     3.3924        8.1225        .11840E-06   -1.5340    
   3  norm          1.4084        1.1835        .42030E-07   -1.5471    
   4  norm          .90627E-01    .32603        .47640E-07   -1.5648    
   5  Prefactor     21.344        11.398        .77366E-07   -1.4784    
   6  Prefactor     1.4085        81.436        .18423E-05   -1.5471    
   7  Prefactor     .10001E-03    99.446        .11531E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          .10000E-03    11.454        .37023E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    7.4853        .26193E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     34.277        46.240        .24526E-07   -1.4536    
  11  Prefactor     15.779        25.685        .35350E-07   -1.4913    
  12  Prefactor     .10000E-03    6.8177        .40650E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          4.4814        1.2824        .29711E-07   -1.5285    
  14  Prefactor     .10000E-03    19.458        .52362E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     4.7998        2.7899        .30319E-07   -1.5270    
  16  Prefactor     .10000E-03    2.9079        .98828E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Normalizat    1.0166        .18890        .17743E-07   -.92475    
  18  Prefactor     1.1189        .15327        .17400E-07   -.88864    
                               ERR DEF=  .500    

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   10297.42     FROM MIGRAD    STATUS=CONVERGED    233 CALLS     3177 TOTAL
                     EDM=   .55E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     4.8675        3.8524        .67922E-05   -.66951E-06
   2  Prefactor     3.3923        8.1208        .87859E-05   -.51759E-06
   3  norm          1.4084        1.1832        .38659E-05   -.11763E-05
   4  norm          .90628E-01    .32535        .16323E-03    .66960E-03
   5  Prefactor     21.344        11.398        .34681E-05   -.10490E-04
   6  Prefactor     1.4085        81.142        .72934E-04   -.18705E-05
   7  Prefactor     .10000E-03    102.69        .27993E-03** at limit **
   8  norm          .10000E-03    11.458        .36285E-03** at limit **
   9  Prefactor     .10000E-03    7.4884        .36285E-03** at limit **
  10  Prefactor     34.277        46.245        .27369E-05   -.33231E-05
  11  Prefactor     15.779        25.679        .40315E-05   -.67680E-05
  12  Prefactor     .10000E-03    6.8178        .36285E-03** at limit **
  13  norm          4.4814        1.2820        .23310E-05   -.21460E-04
  14  Prefactor     .10000E-03    20.032        .13163E-03** at limit **
  15  Prefactor     4.7998        2.7891        .48752E-05   -.18656E-05
  16  Prefactor     .10000E-03    2.9087        .33637E-03** at limit **
  17  Normalizat    1.0166        .18894        .11208E-04   -.16635E-04
  18  Prefactor     1.1189        .15336        .45551E-04   -.21165E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 4.8675
  Prefactor  = 3.39235
  norm       = 1.40844
  norm       = 0.0906278
  Prefactor  = 21.3437
  Prefactor  = 1.40848
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 34.2774
  Prefactor  = 15.7789
  Prefactor  = 0.0001
  norm       = 4.4814
  Prefactor  = 0.0001
  Prefactor  = 4.79981
  Prefactor  = 0.0001
  Normalizat = 1.01664
  Prefactor  = 1.11892
 **********
 **   18 **HESSE 
 **********

 FCN=   10297.42     FROM HESSE     STATUS=OK           228 CALLS     3405 TOTAL
                     EDM=   .99E-12    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     4.8675        3.8534        .13584E-05   -1.5267    
   2  Prefactor     3.3923        8.1176        .17572E-05   -1.5340    
   3  norm          1.4084        1.1835        .77318E-06   -1.5471    
   4  norm          .90628E-01    .32519        .32646E-04   -1.5648    
   5  Prefactor     21.344        11.377        .69362E-06   -1.4784    
   6  Prefactor     1.4085        81.050        .29173E-05   -1.5471    
   7  Prefactor     .10000E-03    102.69        .55985E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          .10000E-03    11.458        .72569E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    7.4885        .72569E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     34.277        45.770        .54738E-06   -1.4536    
  11  Prefactor     15.779        25.692        .80629E-06   -1.4913    
  12  Prefactor     .10000E-03    6.8178        .72569E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          4.4814        1.2820        .46620E-06   -1.5285    
  14  Prefactor     .10000E-03    20.033        .26327E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     4.7998        2.7882        .97503E-06   -1.5270    
  16  Prefactor     .10000E-03    2.9087        .67274E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Normalizat    1.0166        .18861        .22417E-05   -.92475    
  18  Prefactor     1.1189        .15319        .91101E-05   -.88864    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 9.91748e-13
Minuit parameter uncertainties:
  1  3.85355
  2  8.12027
  3  1.18356
  4  0.325194
  5  11.3781
  6  21.3986
  7  0.000122398
  8  5.37006e-07
  9  1.13817e-07
  10  45.8168
  11  25.71
  12  3.50397e-07
  13  1.28202
  14  1.43363e-05
  15  2.78829
  16  8.33408e-09
  17  0.188735
  18  0.153253
Done.

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

Extracting fit parameters...

4FGL J1008.0+0620
   Spectrum: PowerLaw
200    Prefactor:  2.134e+01  1.138e+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:  1.119e+00  1.533e-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.017e+00  1.887e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 10.05
Ra Dec: 152.014 6.348
Photon Index (Fixed Index): 2.19 +/- 0.00
Photon Flux (Fixed Index): 5.41e-08 +/- 2.88e-08
Energy Flux (Fixed Index): 2.48e-05 +/- 1.32e-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) = 10297.4094761
delta logL = 0.00874878553259

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 10297.4063313
delta logL = 0.0118935467672

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    22.320       1.0000         .10000E-03   10000.    
     2 'Index     '    2.1264       1.0000          .0000       10.000    
     3 'Normalizat'    1.0213       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.1165       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=   10297.41     FROM MIGRAD    STATUS=CONVERGED     90 CALLS      252 TOTAL
                     EDM=   .36E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     22.321        13.455        .84782E-04   -.23949E-03
   2  Index         2.1262        .41776        .71641E-02   -.24451E-04
   3  Normalizat    1.0214        .18136        .27964E-03   -.56916E-04
   4  Prefactor     1.1164        .15253        .22797E-03   -.50367E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 22.3206
  Index      = 2.12625
  Normalizat = 1.02135
  Prefactor  = 1.11641
 **********
 **   18 **HESSE 
 **********

 FCN=   10297.41     FROM HESSE     STATUS=OK            25 CALLS      277 TOTAL
                     EDM=   .37E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     22.321        13.130        .16956E-04   -1.4763    
   2  Index         2.1262        .40726        .28657E-03   -.61230    
   3  Normalizat    1.0214        .18137        .11186E-04   -.92319    
   4  Prefactor     1.1164        .15261        .91190E-05   -.88944    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.69886e-11
Minuit parameter uncertainties:
  1  13.132
  2  0.407934
  3  0.18148
  4  0.15267
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/682652': 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) = 10297.4063312
delta logL = 0.0118936807903

Extracting fit parameters...

4FGL J1008.0+0620
   Spectrum: PowerLaw
200    Prefactor:  2.232e+01  1.313e+01  1.000e-04  1.000e+04 ( 1.000e-13)
201        Index:  2.126e+00  4.079e-01  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:  1.116e+00  1.527e-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.021e+00  1.815e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 10.07
Ra Dec: 152.014 6.348
Photon Index (Free Index): 2.13 +/- 0.41
Photon Flux (Free Index): 5.06e-08 +/- 3.49e-08
Energy Flux (Free Index): 2.63e-05 +/- 1.74e-05

Creating a high resolution counts map...
INFO: Auto-setting vmin to -1.000e-01 [aplpy.core]
INFO: Auto-setting vmax to  1.110e+00 [aplpy.core]
Saving /scratch/kocevski/682652/cmap_HighResolution_408067201_408326401_4FGL_J1008.0+0620_daily_bin651.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='5.41e-08', energy_flux2='2.63e-05', photon_flux_error='2.88e-08', dlogl='1.19e-02', energy_flux='2.48e-05', photon_flux2='5.06e-08', job_status='DONE', time_completed='2021-09-01 11:26:13.564644', photon_index_error2='0.41', photon_index2='2.13', ts='10.05', fit_tolerance='1e-08', GAL='1.12', photon_index_error='0.00', energy_flux_error2='1.74e-05', EG='1.02', time_epoch_completed='1630520773.56', return_code='0', job_id='682652', GAL2='1.12', EG2='1.02', return_code2='0', energy_flux_error='1.32e-05', photon_flux_error2='3.49e-08', ts2='10.07', photon_index='2.19' WHERE bin_id='651' AND source_name='4FGL J1008.0+0620' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep  1 11:26:13 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0036>
Subject: Job 682652: <4FGL_J1008.0+0620_daily_bin651> in cluster <slac> Done

Job <4FGL_J1008.0+0620_daily_bin651> was submitted from host <rhel6-64p> by user <kocevski> in cluster <slac> at Wed Sep  1 11:11:20 2021
Job was executed on host(s) <bullet0036>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Sep  1 11:11:22 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:11:22 2021
Terminated at Wed Sep  1 11:26:14 2021
Results reported at Wed Sep  1 11:26:14 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1008.0+0620_daily_bin651 152.014 6.3475 408067201 408326401 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 :                                   758.27 sec.
    Max Memory :                                 1255 MB
    Average Memory :                             333.71 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   891 sec.
    Turnaround time :                            894 sec.

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

