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


Performing analysis on: 4FGL_J1008.0+0620_daily_bin267
RA = 152.014, Dec = 6.3475
tmin = 308534401, tmax = 308793601
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='680767', job_status='RUN', time_executed='2021-09-01 11:09:28.142109', time_epoch_executed='1630519768.14' WHERE source_name='4FGL J1008.0+0620' and cadence='daily' and bin_id='267'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/680767

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

Retrieving the FT1 file...

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

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

Retrieving 45 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/680767/ft1_4FGL_J1008.0+0620_daily_bin267.fits


Retrieving the FT1 file...

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

Retrieving 45 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/680767/ft2_4FGL_J1008.0+0620_daily_bin267.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/680767/ft1_4FGL_J1008.0+0620_daily_bin267.fits outfile=/scratch/kocevski/680767/ft1_filteredMKT_4FGL_J1008.0+0620_daily_bin267.fits ra=152.014 dec=6.3475 rad=12.0 tmin=308534401.0 tmax=308793601.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 5.62
user 5.11
sys 0.23

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/680767/ft1_filtered_4FGL_J1008.0+0620_daily_bin267.fits" evtable="EVENTS" scfile=/scratch/kocevski/680767/ft2_4FGL_J1008.0+0620_daily_bin267.fits sctable="SC_DATA" outfile=/scratch/kocevski/680767/ltcube_308534401_308793601_4FGL_J1008.0+0620_daily_bin267.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/680767/ft2_4FGL_J1008.0+0620_daily_bin267.fits
.....................!
real 11.38
user 10.99
sys 0.30

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/680767/ft1_filtered_4FGL_J1008.0+0620_daily_bin267.fits evtable="EVENTS" scfile=/scratch/kocevski/680767/ft2_4FGL_J1008.0+0620_daily_bin267.fits sctable="SC_DATA" expcube=/scratch/kocevski/680767/ltcube_308534401_308793601_4FGL_J1008.0+0620_daily_bin267.fits outfile=/scratch/kocevski/680767/expmap_308534401_308793601_4FGL_J1008.0+0620_daily_bin267.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/680767/ltcube_308534401_308793601_4FGL_J1008.0+0620_daily_bin267.fits
.....................!
real 191.79
user 186.35
sys 5.11

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/680767/ft1_filtered_4FGL_J1008.0+0620_daily_bin267.fits scfile=/scratch/kocevski/680767/ft2_4FGL_J1008.0+0620_daily_bin267.fits outfile=/scratch/kocevski/680767/cmap_308534401_308793601_4FGL_J1008.0+0620_daily_bin267.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.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/680767/ft1_filtered_4FGL_J1008.0+0620_daily_bin267.fits scfile=/scratch/kocevski/680767/ft2_4FGL_J1008.0+0620_daily_bin267.fits outfile=/scratch/kocevski/680767/cmap_HighResolution_308534401_308793601_4FGL_J1008.0+0620_daily_bin267.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.56
user 0.38
sys 0.15

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10037E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    13.466       1.0000         .10000E-03   10000.    
     3 'norm      '    1.4041       1.0000         .10000E-03   10000.    
     4 'norm      '    2.0805       1.0000         .10000E-03   10000.    
     5 'Prefactor '    11.858       1.0000         .10000E-03   10000.    
     6 'Prefactor '    49.833       1.0000         .10000E-03   10000.    
     7 'Prefactor '    27.944       1.0000         .10000E-03   10000.    
     8 'norm      '    .11443E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .12599E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    78.507       1.0000         .10000E-03   10000.    
    11 'Prefactor '    70.558       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10979E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    .10018E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10691E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    6.1861       1.0000         .10000E-03   10000.    
    16 'Prefactor '    8.0396       1.0000         .10000E-03   10000.    
    17 'Normalizat'    1.1306       1.0000         .10000E-01   10.000    
    18 'Prefactor '    .94389       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=   5041.264     FROM MIGRAD    STATUS=CONVERGED    325 CALLS     1731 TOTAL
                     EDM=   .10E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .4%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    5.1311        .28165E-05** at limit **
   2  Prefactor     13.462        22.218       -.78143E-05   -.18015E-04
   3  norm          1.4044        1.2365       -.32612E-06   -.27955E-03
   4  norm          2.0807        .85010        .34706E-08    .47333E-03
   5  Prefactor     11.860        13.357        .54130E-05    .12921E-03
   6  Prefactor     49.812        54.079       -.28365E-04    .40087E-04
   7  Prefactor     27.945        32.365        .20946E-05    .33472E-04
   8  norm          .10000E-03    9.9696       -.58159E-05** at limit **
   9  Prefactor     .10000E-03    5.9967       -.31037E-05** at limit **
  10  Prefactor     78.429        70.678       -.86027E-04    .22711E-04
  11  Prefactor     70.583        56.173        .29864E-04    .11783E-04
  12  Prefactor     .10000E-03    8.1983        .10462E-04** at limit **
  13  norm          .10000E-03    .43740        .65294E-07** at limit **
  14  Prefactor     .10000E-03    5.9744       -.32839E-05** at limit **
  15  Prefactor     6.1870        3.9429        .13007E-05    .16153E-04
  16  Prefactor     8.0428        10.974        .16215E-05   -.55407E-04
  17  Normalizat    1.1298        .23014        .11591E-04   -.27965E-03
  18  Prefactor     .94459        .18291       -.12423E-05    .39237E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 13.462
  norm       = 1.40439
  norm       = 2.08074
  Prefactor  = 11.8601
  Prefactor  = 49.8117
  Prefactor  = 27.945
  norm       = 0.000100001
  Prefactor  = 0.0001
  Prefactor  = 78.4291
  Prefactor  = 70.5831
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 6.18701
  Prefactor  = 8.04284
  Normalizat = 1.12978
  Prefactor  = 0.944593
 **********
 **   18 **HESSE 
 **********

 FCN=   5041.264     FROM HESSE     STATUS=OK           242 CALLS     1973 TOTAL
                     EDM=   .30E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    5.2296        .15685E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     13.462        22.221        .10915E-03   -1.4974    
   3  norm          1.4044        1.2187        .70985E-04   -1.5471    
   4  norm          2.0807        .84584        .39542E-04   -1.5419    
   5  Prefactor     11.860        13.354        .11633E-03   -1.5019    
   6  Prefactor     49.812        54.071        .56808E-04   -1.4295    
   7  Prefactor     27.945        32.358        .75787E-04   -1.4650    
   8  norm          .10000E-03    9.9704        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    6.0038        .16963E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     78.429        70.777        .22662E-03   -1.3934    
  11  Prefactor     70.583        56.168        .23895E-03   -1.4026    
  12  Prefactor     .10000E-03    8.2119        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          .10000E-03    .44107        .45836E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    6.0593        .16940E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     6.1870        3.9390        .10650E-03   -1.5210    
  16  Prefactor     8.0428        10.976        .14140E-03   -1.5141    
  17  Normalizat    1.1298        .27438        .27203E-03   -.88801    
  18  Prefactor     .94459        .21830        .24375E-03   -.94600    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.97537e-09
Minuit parameter uncertainties:
  1  7.39636e-05
  2  22.2347
  3  1.21869
  4  0.845847
  5  13.3572
  6  54.1248
  7  32.3784
  8  0.000177857
  9  0.000107901
  10  70.8529
  11  56.21
  12  5.20248e-05
  13  3.41932e-06
  14  2.93226e-05
  15  3.93919
  16  10.9789
  17  0.274731
  18  0.218504
Done.

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

Extracting fit parameters...

4FGL J1008.0+0620
   Spectrum: PowerLaw
200    Prefactor:  1.186e+01  1.336e+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:  9.446e-01  2.185e-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.130e+00  2.747e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 1.34
Ra Dec: 152.014 6.348
Photon Index (Fixed Index): 2.19 +/- 0.00
Photon Flux (Fixed Index): 3.00e-08 +/- 3.38e-08
Energy Flux (Fixed Index): 1.38e-05 +/- 1.55e-05

TS (Fixed Index): 1.34
Ra Dec: 152.014 6.348
Photon Flux Upper Limit: 1.15e-07 ph cm-2 s-1
Energy Flux Upper Limit: 8.72e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/680767/likelihoodResults_308534401_308793601_4FGL_J1008.0+0620_daily_bin267.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): 0
logL (Free Index) = 5041.25187064
delta logL = 0.0116731935796

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5041.24929885
delta logL = 0.0142449836621

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    12.863       1.0000         .10000E-03   10000.    
     2 'Index     '    2.0669       1.0000          .0000       10.000    
     3 'Normalizat'    1.1338       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .94258       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=   5041.249     FROM MIGRAD    STATUS=CONVERGED     84 CALLS      233 TOTAL
                     EDM=   .94E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     12.864        15.348        .11168E-03   -.10118E-03
   2  Index         2.0668        .72870        .95630E-02   -.54535E-04
   3  Normalizat    1.1338        .26277        .27162E-03    .39887E-04
   4  Prefactor     .94262        .21772        .24397E-03    .52330E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 12.8637
  Index      = 2.06684
  Normalizat = 1.13377
  Prefactor  = 0.942616
 **********
 **   18 **HESSE 
 **********

 FCN=   5041.249     FROM HESSE     STATUS=OK            25 CALLS      258 TOTAL
                     EDM=   .12E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     12.864        15.093        .44674E-05   -1.4990    
   2  Index         2.0668        .71660        .38252E-03   -.62689    
   3  Normalizat    1.1338        .26300        .10865E-04   -.88675    
   4  Prefactor     .94262        .21794        .97589E-05   -.94667    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.18807e-10
Minuit parameter uncertainties:
  1  15.097
  2  0.720395
  3  0.263302
  4  0.218138
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/680767': 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) = 5041.24929883
delta logL = 0.0142450014782

Extracting fit parameters...

4FGL J1008.0+0620
   Spectrum: PowerLaw
200    Prefactor:  1.286e+01  1.510e+01  1.000e-04  1.000e+04 ( 1.000e-13)
201        Index:  2.067e+00  7.204e-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.426e-01  2.181e-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.134e+00  2.633e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 1.37
Ra Dec: 152.014 6.348
Photon Index (Free Index): 2.07 +/- 0.72
Photon Flux (Free Index): 2.64e-08 +/- 3.71e-08
Energy Flux (Free Index): 1.56e-05 +/- 2.12e-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/680767/cmap_HighResolution_308534401_308793601_4FGL_J1008.0+0620_daily_bin267.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='8.72e-03', comment='SUCCESS', photon_flux='3.00e-08', energy_flux2='1.56e-05', photon_flux_error='3.38e-08', dlogl='1.42e-02', energy_flux='1.38e-05', photon_flux2='2.64e-08', job_status='DONE', time_completed='2021-09-01 11:17:44.949132', photon_index_error2='0.72', photon_index2='2.07', ts='1.34', fit_tolerance='1e-08', GAL='0.94', photon_index_error='0.00', photon_flux_upper_limit='1.15e-07', energy_flux_error2='2.12e-05', EG='1.13', time_epoch_completed='1630520264.95', return_code='0', job_id='680767', GAL2='0.94', EG2='1.13', return_code2='0', energy_flux_error='1.55e-05', photon_flux_error2='3.71e-08', ts2='1.37', photon_index='2.19' WHERE bin_id='267' AND source_name='4FGL J1008.0+0620' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep  1 11:17:44 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0034>
Subject: Job 680767: <4FGL_J1008.0+0620_daily_bin267> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1008.0+0620_daily_bin267 152.014 6.3475 308534401 308793601 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 :                                   494.27 sec.
    Max Memory :                                 1255 MB
    Average Memory :                             223.70 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   706 sec.
    Turnaround time :                            708 sec.

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

