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


Performing analysis on: 4FGL_J1008.0+0620_daily_bin307
RA = 152.014, Dec = 6.3475
tmin = 318902401, tmax = 319161601
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='680811', job_status='RUN', time_executed='2021-09-01 11:09:54.431593', time_epoch_executed='1630519794.43' WHERE source_name='4FGL J1008.0+0620' and cadence='daily' and bin_id='307'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/680811

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/680811/ft1_4FGL_J1008.0+0620_daily_bin307.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/680811/ft2_4FGL_J1008.0+0620_daily_bin307.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/680811/ft1_4FGL_J1008.0+0620_daily_bin307.fits outfile=/scratch/kocevski/680811/ft1_filteredMKT_4FGL_J1008.0+0620_daily_bin307.fits ra=152.014 dec=6.3475 rad=12.0 tmin=318902401.0 tmax=319161601.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.58
user 3.25
sys 0.22

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/680811/ft1_filtered_4FGL_J1008.0+0620_daily_bin307.fits" evtable="EVENTS" scfile=/scratch/kocevski/680811/ft2_4FGL_J1008.0+0620_daily_bin307.fits sctable="SC_DATA" outfile=/scratch/kocevski/680811/ltcube_318902401_319161601_4FGL_J1008.0+0620_daily_bin307.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/680811/ft2_4FGL_J1008.0+0620_daily_bin307.fits
.....................!
real 11.99
user 11.50
sys 0.32

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/680811/ft1_filtered_4FGL_J1008.0+0620_daily_bin307.fits evtable="EVENTS" scfile=/scratch/kocevski/680811/ft2_4FGL_J1008.0+0620_daily_bin307.fits sctable="SC_DATA" expcube=/scratch/kocevski/680811/ltcube_318902401_319161601_4FGL_J1008.0+0620_daily_bin307.fits outfile=/scratch/kocevski/680811/expmap_318902401_319161601_4FGL_J1008.0+0620_daily_bin307.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/680811/ltcube_318902401_319161601_4FGL_J1008.0+0620_daily_bin307.fits
.....................!
real 193.32
user 186.72
sys 4.85

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/680811/ft1_filtered_4FGL_J1008.0+0620_daily_bin307.fits scfile=/scratch/kocevski/680811/ft2_4FGL_J1008.0+0620_daily_bin307.fits outfile=/scratch/kocevski/680811/cmap_318902401_319161601_4FGL_J1008.0+0620_daily_bin307.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.36
sys 0.16

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

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .21170E-02   1.0000         .10000E-03   10000.    
     2 'Prefactor '    21.013       1.0000         .10000E-03   10000.    
     3 'norm      '    .72609       1.0000         .10000E-03   10000.    
     4 'norm      '    .90362       1.0000         .10000E-03   10000.    
     5 'Prefactor '    22.855       1.0000         .10000E-03   10000.    
     6 'Prefactor '    1.0054       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    .10048E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10180E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10020E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    7.8403       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10188E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    .10099E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10050E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    3.9527       1.0000         .10000E-03   10000.    
    16 'Prefactor '    9.8407       1.0000         .10000E-03   10000.    
    17 'Normalizat'    1.1027       1.0000         .10000E-01   10.000    
    18 'Prefactor '    1.0042       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=   5038.188     FROM MIGRAD    STATUS=CONVERGED    385 CALLS     1562 TOTAL
                     EDM=   .70E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .6%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10001E-03    2.5134       -.54665E-06** at limit **
   2  Prefactor     20.988        20.496        .11489E-04    .28456E-04
   3  norm          .72648        1.3657       -.67463E-07   -.99753E-03
   4  norm          .90380        .56599       -.14307E-06   -.93141E-03
   5  Prefactor     22.854        13.465        .32473E-06   -.21380E-04
   6  Prefactor     1.1042        37.584        .31315E-05   -.24519E-03
   7  Prefactor     .10000E-03    23.438       -.65217E-06** at limit **
   8  norm          .10000E-03    6.2056       -.15505E-07** at limit **
   9  Prefactor     .10000E-03    3.3618        .24022E-06** at limit **
  10  Prefactor     .10000E-03    42.825       -.62578E-06** at limit **
  11  Prefactor     7.8465        20.656       -.47212E-05   -.29328E-04
  12  Prefactor     .10000E-03    6.0315        .17942E-06** at limit **
  13  norm          .10000E-03    .89241        .26291E-07** at limit **
  14  Prefactor     .10000E-03    7.3148        .26726E-07** at limit **
  15  Prefactor     3.9533        3.6018       -.27651E-06   -.34251E-03
  16  Prefactor     9.8421        7.9123        .28616E-05   -.46292E-04
  17  Normalizat    1.1026        .20476       -.19236E-05   -.25464E-04
  18  Prefactor     1.0042        .17208       -.39784E-06   -.11913E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.00010001
  Prefactor  = 20.9877
  norm       = 0.726478
  norm       = 0.903804
  Prefactor  = 22.854
  Prefactor  = 1.10416
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 7.84654
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 3.95325
  Prefactor  = 9.84214
  Normalizat = 1.10264
  Prefactor  = 1.00421
 **********
 **   18 **HESSE 
 **********

 FCN=   5038.188     FROM HESSE     STATUS=OK           250 CALLS     1812 TOTAL
                     EDM=   .88E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10001E-03    25.771        .21708E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     20.988        20.311        .87377E-04   -1.4791    
   3  norm          .72648        1.3501        .10624E-03   -1.5538    
   4  norm          .90380        .56007        .40649E-04   -1.5518    
   5  Prefactor     22.854        13.468        .83786E-04   -1.4751    
   6  Prefactor     1.1042        374.90        .82267E-02   -1.5498    
   7  Prefactor     .10000E-03    23.484        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          .10000E-03    6.2111        .17266E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    3.3670        .12685E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    43.058        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     7.8465        20.609        .14320E-03   -1.5148    
  12  Prefactor     .10000E-03    6.0356        .17007E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          .10000E-03    .93264        .13073E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    7.6340        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     3.9533        3.6021        .12128E-03   -1.5310    
  16  Prefactor     9.8421        7.8809        .12774E-03   -1.5080    
  17  Normalizat    1.1026        .24036        .25118E-03   -.89667    
  18  Prefactor     1.0042        .20372        .22785E-03   -.92589    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 8.84562e-09
Minuit parameter uncertainties:
  1  0.00103108
  2  20.3175
  3  1.35015
  4  0.560077
  5  13.4702
  6  40.9506
  7  2.20638e-06
  8  5.28399e-06
  9  3.28332e-05
  10  9.8708e-05
  11  20.6278
  12  4.34419e-05
  13  3.6895e-06
  14  1.74639e-05
  15  3.60228
  16  7.88171
  17  0.240601
  18  0.203874
Done.

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

Extracting fit parameters...

4FGL J1008.0+0620
   Spectrum: PowerLaw
200    Prefactor:  2.285e+01  1.347e+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.004e+00  2.039e-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.103e+00  2.406e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 10.36
Ra Dec: 152.014 6.348
Photon Index (Fixed Index): 2.19 +/- 0.00
Photon Flux (Fixed Index): 5.79e-08 +/- 3.41e-08
Energy Flux (Fixed Index): 2.65e-05 +/- 1.56e-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) = 5037.2505076
delta logL = 0.9378975219

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5037.25013632
delta logL = 0.938268796947

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    33.911       1.0000         .10000E-03   10000.    
     2 'Index     '    1.6521       1.0000          .0000       10.000    
     3 'Normalizat'    1.1286       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .98908       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=   5037.250     FROM MIGRAD    STATUS=CONVERGED     81 CALLS      264 TOTAL
                     EDM=   .53E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     33.902        20.148        .68814E-04    .10735E-03
   2  Index         1.6522        .36222        .60902E-02    .50048E-04
   3  Normalizat    1.1287        .23256        .24860E-03    .63194E-03
   4  Prefactor     .98901        .20298        .22930E-03    .62411E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 33.902
  Index      = 1.65219
  Normalizat = 1.12874
  Prefactor  = 0.989013
 **********
 **   18 **HESSE 
 **********

 FCN=   5037.250     FROM HESSE     STATUS=OK            23 CALLS      287 TOTAL
                     EDM=   .52E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     33.902        20.157        .13763E-04   -1.4543    
   2  Index         1.6522        .36239        .24361E-03   -.73362    
   3  Normalizat    1.1287        .23274        .49720E-04   -.88834    
   4  Prefactor     .98901        .20315        .45860E-04   -.93097    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.24696e-10
Minuit parameter uncertainties:
  1  20.1613
  2  0.362964
  3  0.232955
  4  0.203305
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/680811': 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) = 5037.25013604
delta logL = 0.938269073468

Extracting fit parameters...

4FGL J1008.0+0620
   Spectrum: PowerLaw
200    Prefactor:  3.390e+01  2.016e+01  1.000e-04  1.000e+04 ( 1.000e-13)
201        Index:  1.652e+00  3.630e-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:  9.890e-01  2.033e-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.129e+00  2.330e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 12.24
Ra Dec: 152.014 6.348
Photon Index (Free Index): 1.65 +/- 0.36
Photon Flux (Free Index): 3.82e-08 +/- 2.81e-08
Energy Flux (Free Index): 7.27e-05 +/- 6.95e-05

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/680811/cmap_HighResolution_318902401_319161601_4FGL_J1008.0+0620_daily_bin307.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='5.79e-08', energy_flux2='7.27e-05', photon_flux_error='3.41e-08', dlogl='9.38e-01', energy_flux='2.65e-05', photon_flux2='3.82e-08', job_status='DONE', time_completed='2021-09-01 11:17:33.186163', photon_index_error2='0.36', photon_index2='1.65', ts='10.36', fit_tolerance='1e-08', GAL='1.00', photon_index_error='0.00', energy_flux_error2='6.95e-05', EG='1.10', time_epoch_completed='1630520253.19', return_code='0', job_id='680811', GAL2='0.99', EG2='1.13', return_code2='0', energy_flux_error='1.56e-05', photon_flux_error2='2.81e-08', ts2='12.24', photon_index='2.19' WHERE bin_id='307' AND source_name='4FGL J1008.0+0620' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep  1 11:17:33 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0234>
Subject: Job 680811: <4FGL_J1008.0+0620_daily_bin307> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1008.0+0620_daily_bin307 152.014 6.3475 318902401 319161601 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 :                                   451.00 sec.
    Max Memory :                                 1255 MB
    Average Memory :                             255.09 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   689 sec.
    Turnaround time :                            690 sec.

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

