/nfs/farm/g/glast/g/LCRepository/bin/miniconda2/envs/fermitools_v1.0.5/lib/python2.7/site-packages/matplotlib/font_manager.py:281: UserWarning: Matplotlib is building the font cache using fc-list. This may take a moment.
  'Matplotlib is building the font cache using fc-list. '
/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 68 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 = 7411
number of fields = 27
No RA_SUN column yet. Adding RA_SUN/DEC_SUN columns.
Done.


Performing analysis on: 4FGL_J1008.0+0620_daily_bin404
RA = 152.014, Dec = 6.3475
tmin = 344044801, tmax = 344304001
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='680978', job_status='RUN', time_executed='2021-09-01 11:08:41.372915', time_epoch_executed='1630519721.37' WHERE source_name='4FGL J1008.0+0620' and cadence='daily' and bin_id='404'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/680978

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/680978/ft1_4FGL_J1008.0+0620_daily_bin404.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/680978/ft2_4FGL_J1008.0+0620_daily_bin404.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/680978/ft1_4FGL_J1008.0+0620_daily_bin404.fits outfile=/scratch/kocevski/680978/ft1_filteredMKT_4FGL_J1008.0+0620_daily_bin404.fits ra=152.014 dec=6.3475 rad=12.0 tmin=344044801.0 tmax=344304001.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.52
user 3.21
sys 0.19

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/680978/ft2_4FGL_J1008.0+0620_daily_bin404.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/680978/ft1_filteredMKT_4FGL_J1008.0+0620_daily_bin404.fits evtable="EVENTS" outfile="/scratch/kocevski/680978/ft1_filtered_4FGL_J1008.0+0620_daily_bin404.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.70
user 0.35
sys 0.15

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/680978/ft1_filtered_4FGL_J1008.0+0620_daily_bin404.fits" evtable="EVENTS" scfile=/scratch/kocevski/680978/ft2_4FGL_J1008.0+0620_daily_bin404.fits sctable="SC_DATA" outfile=/scratch/kocevski/680978/ltcube_344044801_344304001_4FGL_J1008.0+0620_daily_bin404.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/680978/ft2_4FGL_J1008.0+0620_daily_bin404.fits
.....................!
real 12.17
user 11.75
sys 0.28

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/680978/ft1_filtered_4FGL_J1008.0+0620_daily_bin404.fits evtable="EVENTS" scfile=/scratch/kocevski/680978/ft2_4FGL_J1008.0+0620_daily_bin404.fits sctable="SC_DATA" expcube=/scratch/kocevski/680978/ltcube_344044801_344304001_4FGL_J1008.0+0620_daily_bin404.fits outfile=/scratch/kocevski/680978/expmap_344044801_344304001_4FGL_J1008.0+0620_daily_bin404.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/680978/ltcube_344044801_344304001_4FGL_J1008.0+0620_daily_bin404.fits
.....................!
real 191.22
user 186.86
sys 3.82

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/680978/ft1_filtered_4FGL_J1008.0+0620_daily_bin404.fits scfile=/scratch/kocevski/680978/ft2_4FGL_J1008.0+0620_daily_bin404.fits outfile=/scratch/kocevski/680978/cmap_344044801_344304001_4FGL_J1008.0+0620_daily_bin404.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.37
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/680978/ft1_filtered_4FGL_J1008.0+0620_daily_bin404.fits scfile=/scratch/kocevski/680978/ft2_4FGL_J1008.0+0620_daily_bin404.fits outfile=/scratch/kocevski/680978/cmap_HighResolution_344044801_344304001_4FGL_J1008.0+0620_daily_bin404.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.54
user 0.39
sys 0.14

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    8.6838       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .31927E-03   1.0000         .10000E-03   10000.    
     3 'norm      '    .96426       1.0000         .10000E-03   10000.    
     4 'norm      '    .89010       1.0000         .10000E-03   10000.    
     5 'Prefactor '    21.267       1.0000         .10000E-03   10000.    
     6 'Prefactor '    10.780       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10019E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    .10014E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .18761E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    17.153       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    .10007E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    6.5363       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10051E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    63.583       1.0000         .10000E-03   10000.    
    17 'Normalizat'    .60708       1.0000         .10000E-01   10.000    
    18 'Prefactor '    1.3420       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=   7662.078     FROM MIGRAD    STATUS=CONVERGED    366 CALLS     1522 TOTAL
                     EDM=   .19E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY= 12.1%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     8.6801        5.2721       -.20282E-05   -.46182E-03
   2  Prefactor     .10003E-03    68.524       -.63134E-04** at limit **
   3  norm          .96516        1.3341        .56761E-06    .89424E-03
   4  norm          .88987        .53502       -.69367E-07   -.77827E-03
   5  Prefactor     21.262        12.451        .87862E-06    .62311E-04
   6  Prefactor     10.779        24.558        .26020E-05   -.45206E-04
   7  Prefactor     .10000E-03    11.112        .30354E-05** at limit **
   8  norm          .10000E-03    3.5971        .96088E-08** at limit **
   9  Prefactor     .10002E-03    4.4247        .62574E-05** at limit **
  10  Prefactor     17.150        22.138        .27662E-05   -.38033E-04
  11  Prefactor     .10000E-03    9.6338       -.14968E-05** at limit **
  12  Prefactor     .10000E-03    2.9875       -.42738E-07** at limit **
  13  norm          .10000E-03    .36804       -.78915E-07** at limit **
  14  Prefactor     6.5374        4.7020        .10735E-05    .24780E-03
  15  Prefactor     .10000E-03    1.3521        .51261E-06** at limit **
  16  Prefactor     63.587        11.392       -.67068E-07   -.37115E-03
  17  Normalizat    .60700        .17268       -.10962E-05   -.79229E-03
  18  Prefactor     1.3420        .14474       -.20074E-05   -.17598E-02
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 8.68012
  Prefactor  = 0.000100035
  norm       = 0.965159
  norm       = 0.889869
  Prefactor  = 21.2621
  Prefactor  = 10.7788
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.000100022
  Prefactor  = 17.1502
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 6.53738
  Prefactor  = 0.0001
  Prefactor  = 63.5868
  Normalizat = 0.607004
  Prefactor  = 1.34195
 **********
 **   18 **HESSE 
 **********

 FCN=   7662.078     FROM HESSE     STATUS=OK           246 CALLS     1768 TOTAL
                     EDM=   .44E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     8.6801        5.2330        .13603E-03   -1.5119    
   2  Prefactor     .10003E-03    68.829        .48693E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          .96516        1.3361        .52155E-04   -1.5511    
   4  norm          .88987        .51997        .46919E-04   -1.5519    
   5  Prefactor     21.262        12.394        .86854E-04   -1.4785    
   6  Prefactor     10.779        24.547        .12203E-03   -1.5051    
   7  Prefactor     .10000E-03    11.086        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          .10000E-03    3.5977        .16212E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10002E-03    19.521        .33515E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     17.150        22.123        .96705E-04   -1.4879    
  11  Prefactor     .10000E-03    9.6304        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    2.9881        .14776E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          .10000E-03    .54317        .10266E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     6.5374        4.7040        .15514E-03   -1.5197    
  15  Prefactor     .10000E-03    2.7635        .19616E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     63.587        11.323        .50325E-04   -1.4111    
  17  Normalizat    .60700        .19429        .33461E-03   -1.0769    
  18  Prefactor     1.3420        .16660        .20730E-03   -.82068    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.44698e-09
Minuit parameter uncertainties:
  1  5.23326
  2  0.00308876
  3  1.33618
  4  0.519974
  5  12.3958
  6  24.5699
  7  0.000132943
  8  1.43457e-05
  9  0.00132424
  10  22.134
  11  2.45742e-05
  12  1.25907e-06
  13  1.81823e-06
  14  4.70428
  15  5.86842e-05
  16  11.3229
  17  0.194509
  18  0.166666
Done.

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

Extracting fit parameters...

4FGL J1008.0+0620
   Spectrum: PowerLaw
200    Prefactor:  2.126e+01  1.240e+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.342e+00  1.667e-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:  6.070e-01  1.945e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 8.06
Ra Dec: 152.014 6.348
Photon Index (Fixed Index): 2.19 +/- 0.00
Photon Flux (Fixed Index): 5.39e-08 +/- 3.14e-08
Energy Flux (Fixed Index): 2.47e-05 +/- 1.44e-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) = 7661.79344625
delta logL = 0.284434124022

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 7661.79149118
delta logL = 0.286389191034

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    14.403       1.0000         .10000E-03   10000.    
     2 'Index     '    2.6591       1.0000          .0000       10.000    
     3 'Normalizat'    .55751       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.3684       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.

 FCN=   7661.791     FROM MIGRAD    STATUS=CONVERGED     61 CALLS      275 TOTAL
                     EDM=   .16E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     14.413        122.40        .26385E-02    .12833E-03
   2  Index         2.6582        2.9826        .10434        .20754E-03
   3  Normalizat    .55801        .11559        .78623E-01    .22858E-04
   4  Prefactor     1.3677        .61236E-01    .46515E-01   -.73542E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 14.4128
  Index      = 2.65824
  Normalizat = 0.558013
  Prefactor  = 1.36769
 **********
 **   18 **HESSE 
 **********

 FCN=   7661.791     FROM HESSE     STATUS=OK            33 CALLS      308 TOTAL
                     EDM=   .34E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     14.413        15.670        .10554E-03   -1.4949    
   2  Index         2.6582        .75780        .52038E-02   -.48742    
   3  Normalizat    .55801        .20672        .34818E-03   -1.0980    
   4  Prefactor     1.3677        .17349        .20561E-03   -.81316    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.40892e-11
Minuit parameter uncertainties:
  1  15.6741
  2  0.761569
  3  0.207008
  4  0.17356
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/680978': 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) = 7661.79147961
delta logL = 0.286400764001

Extracting fit parameters...

4FGL J1008.0+0620
   Spectrum: PowerLaw
200    Prefactor:  1.441e+01  1.567e+01  1.000e-04  1.000e+04 ( 1.000e-13)
201        Index:  2.658e+00  7.616e-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.368e+00  1.736e-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:  5.580e-01  2.070e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 8.75
Ra Dec: 152.014 6.348
Photon Index (Free Index): 2.66 +/- 0.76
Photon Flux (Free Index): 8.89e-08 +/- 6.77e-08
Energy Flux (Free Index): 2.21e-05 +/- 1.14e-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/680978/cmap_HighResolution_344044801_344304001_4FGL_J1008.0+0620_daily_bin404.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='5.39e-08', energy_flux2='2.21e-05', photon_flux_error='3.14e-08', dlogl='2.86e-01', energy_flux='2.47e-05', photon_flux2='8.89e-08', job_status='DONE', time_completed='2021-09-01 11:17:29.223564', photon_index_error2='0.76', photon_index2='2.66', ts='8.06', fit_tolerance='1e-08', GAL='1.34', photon_index_error='0.00', energy_flux_error2='1.14e-05', EG='0.61', time_epoch_completed='1630520249.22', return_code='0', job_id='680978', GAL2='1.37', EG2='0.56', return_code2='0', energy_flux_error='1.44e-05', photon_flux_error2='6.77e-08', ts2='8.75', photon_index='2.19' WHERE bin_id='404' AND source_name='4FGL J1008.0+0620' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep  1 11:17:29 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0209>
Subject: Job 680978: <4FGL_J1008.0+0620_daily_bin404> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1008.0+0620_daily_bin404 152.014 6.3475 344044801 344304001 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 :                                   526.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             263.77 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   669 sec.
    Turnaround time :                            671 sec.

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

