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


Performing analysis on: 4FGL_J1008.0+0620_daily_bin612
RA = 152.014, Dec = 6.3475
tmin = 397958401, tmax = 398217601
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='682568', job_status='RUN', time_executed='2021-09-01 11:14:20.208909', time_epoch_executed='1630520060.21' WHERE source_name='4FGL J1008.0+0620' and cadence='daily' and bin_id='612'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/682568

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

Retrieving the FT1 file...

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

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

Retrieving 50 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/682568/ft1_4FGL_J1008.0+0620_daily_bin612.fits


Retrieving the FT1 file...

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

Retrieving 50 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/682568/ft2_4FGL_J1008.0+0620_daily_bin612.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/682568/ft1_4FGL_J1008.0+0620_daily_bin612.fits outfile=/scratch/kocevski/682568/ft1_filteredMKT_4FGL_J1008.0+0620_daily_bin612.fits ra=152.014 dec=6.3475 rad=12.0 tmin=397958401.0 tmax=398217601.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.66
user 3.29
sys 0.21

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/682568/ft1_filtered_4FGL_J1008.0+0620_daily_bin612.fits" evtable="EVENTS" scfile=/scratch/kocevski/682568/ft2_4FGL_J1008.0+0620_daily_bin612.fits sctable="SC_DATA" outfile=/scratch/kocevski/682568/ltcube_397958401_398217601_4FGL_J1008.0+0620_daily_bin612.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/682568/ft2_4FGL_J1008.0+0620_daily_bin612.fits
.....................!
real 13.84
user 13.13
sys 0.35

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/682568/ft1_filtered_4FGL_J1008.0+0620_daily_bin612.fits evtable="EVENTS" scfile=/scratch/kocevski/682568/ft2_4FGL_J1008.0+0620_daily_bin612.fits sctable="SC_DATA" expcube=/scratch/kocevski/682568/ltcube_397958401_398217601_4FGL_J1008.0+0620_daily_bin612.fits outfile=/scratch/kocevski/682568/expmap_397958401_398217601_4FGL_J1008.0+0620_daily_bin612.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/682568/ltcube_397958401_398217601_4FGL_J1008.0+0620_daily_bin612.fits
.....................!
real 191.97
user 185.26
sys 4.94

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/682568/ft1_filtered_4FGL_J1008.0+0620_daily_bin612.fits scfile=/scratch/kocevski/682568/ft2_4FGL_J1008.0+0620_daily_bin612.fits outfile=/scratch/kocevski/682568/cmap_397958401_398217601_4FGL_J1008.0+0620_daily_bin612.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.42
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/682568/ft1_filtered_4FGL_J1008.0+0620_daily_bin612.fits scfile=/scratch/kocevski/682568/ft2_4FGL_J1008.0+0620_daily_bin612.fits outfile=/scratch/kocevski/682568/cmap_HighResolution_397958401_398217601_4FGL_J1008.0+0620_daily_bin612.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.58
user 0.39
sys 0.16

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    4.1156       1.0000         .10000E-03   10000.    
     2 'Prefactor '    19.152       1.0000         .10000E-03   10000.    
     3 'norm      '    3.8512       1.0000         .10000E-03   10000.    
     4 'norm      '    .10005E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    13.387       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .26157E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .15746E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    .10004E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    6.6919       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10596E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10614E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10317E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    3.8443       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .29946E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    4.5847       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .83992       1.0000         .10000E-03   10000.    
    17 'Normalizat'    .88131       1.0000         .10000E-01   10.000    
    18 'Prefactor '    1.3375       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=   5947.169     FROM MIGRAD    STATUS=CONVERGED    379 CALLS     1546 TOTAL
                     EDM=   .15E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.5%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     4.1159        3.7642       -.92687E-07   -.14040E-03
   2  Prefactor     19.150        17.261        .43667E-06    .64097E-04
   3  norm          3.8513        1.8972       -.97363E-07   -.28747E-03
   4  norm          .10000E-03    .25096       -.45145E-07** at limit **
   5  Prefactor     13.383        11.513       -.29639E-07    .52599E-05
   6  Prefactor     .10004E-03    61.996        .26501E-04** at limit **
   7  Prefactor     .10000E-03    81.278       -.44255E-05** at limit **
   8  norm          .10000E-03    4.7573        .71512E-08** at limit **
   9  Prefactor     6.6958        7.6279       -.19733E-05   -.30560E-03
  10  Prefactor     .10000E-03    21.057       -.16210E-05** at limit **
  11  Prefactor     .10000E-03    26.162        .12833E-05** at limit **
  12  Prefactor     .10000E-03    6.8060        .84525E-07** at limit **
  13  norm          3.8452        1.9349        .38603E-07    .69677E-03
  14  Prefactor     .10003E-03    6.0587       -.30684E-05** at limit **
  15  Prefactor     4.5795        4.0703        .56944E-06    .78942E-03
  16  Prefactor     .86616        6.6612       -.43861E-05    .86481E-03
  17  Normalizat    .88135        .21012        .10660E-05    .46273E-03
  18  Prefactor     1.3374        .17580        .15680E-06    .57490E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 4.1159
  Prefactor  = 19.1499
  norm       = 3.85128
  norm       = 0.0001
  Prefactor  = 13.383
  Prefactor  = 0.000100037
  Prefactor  = 0.000100001
  norm       = 0.0001
  Prefactor  = 6.69583
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 3.84516
  Prefactor  = 0.000100031
  Prefactor  = 4.57951
  Prefactor  = 0.866157
  Normalizat = 0.88135
  Prefactor  = 1.33744
 **********
 **   18 **HESSE 
 **********

 FCN=   5947.169     FROM HESSE     STATUS=OK           248 CALLS     1794 TOTAL
                     EDM=   .94E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     4.1159        3.7612        .13886E-03   -1.5302    
   2  Prefactor     19.150        17.237        .91519E-04   -1.4832    
   3  norm          3.8513        1.8992        .69571E-04   -1.5315    
   4  norm          .10000E-03    .34372        .74561E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     13.383        11.512        .10947E-03   -1.4976    
   6  Prefactor     .10004E-03    64.753        .21447E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    82.116        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          .10000E-03    4.7585        .16427E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     6.6958        7.6676        .15512E-03   -1.5190    
  10  Prefactor     .10000E-03    21.077        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    26.205        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    6.8134        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          3.8452        1.9246        .72345E-04   -1.5316    
  14  Prefactor     .10003E-03    13.845        .34577E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     4.5795        4.0227        .13325E-03   -1.5280    
  16  Prefactor     .86616        20.744        .33146E-02   -1.5522    
  17  Normalizat    .88135        .24562        .31020E-03   -.97119    
  18  Prefactor     1.3374        .20768        .22464E-03   -.82200    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 9.40792e-09
Minuit parameter uncertainties:
  1  3.7614
  2  17.2413
  3  1.89925
  4  2.40326e-06
  5  11.5141
  6  0.00308771
  7  0.000609536
  8  2.95286e-06
  9  7.6687
  10  0.000101098
  11  0.00014526
  12  1.40761e-05
  13  1.9246
  14  0.00130557
  15  4.02291
  16  8.48045
  17  0.245933
  18  0.20781
Done.

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

Extracting fit parameters...

4FGL J1008.0+0620
   Spectrum: PowerLaw
200    Prefactor:  1.338e+01  1.151e+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.337e+00  2.078e-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:  8.813e-01  2.459e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 2.82
Ra Dec: 152.014 6.348
Photon Index (Fixed Index): 2.19 +/- 0.00
Photon Flux (Fixed Index): 3.39e-08 +/- 2.91e-08
Energy Flux (Fixed Index): 1.55e-05 +/- 1.34e-05

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

Saving results to:
/scratch/kocevski/682568/likelihoodResults_397958401_398217601_4FGL_J1008.0+0620_daily_bin612.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) = 5947.16834803
delta logL = 0.000570597701881

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5947.16802513
delta logL = 0.000893500847269

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    13.728       1.0000         .10000E-03   10000.    
     2 'Index     '    2.1620       1.0000          .0000       10.000    
     3 'Normalizat'    .88232       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.3369       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=   5947.168     FROM MIGRAD    STATUS=CONVERGED     90 CALLS      270 TOTAL
                     EDM=   .16E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     13.733        14.853        .10810E-03    .51531E-04
   2  Index         2.1619        .67187        .82043E-02    .25026E-03
   3  Normalizat    .88234        .23683        .31004E-03   -.31608E-04
   4  Prefactor     1.3369        .20648        .22468E-03   -.12417E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 13.7331
  Index      = 2.16188
  Normalizat = 0.882339
  Prefactor  = 1.33687
 **********
 **   18 **HESSE 
 **********

 FCN=   5947.168     FROM HESSE     STATUS=OK            25 CALLS      295 TOTAL
                     EDM=   .14E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     13.733        14.397        .43242E-05   -1.4967    
   2  Index         2.1619        .65117        .16409E-02   -.60362    
   3  Normalizat    .88234        .23690        .12402E-04   -.97084    
   4  Prefactor     1.3369        .20658        .44936E-04   -.82217    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.43157e-11
Minuit parameter uncertainties:
  1  14.4004
  2  0.653913
  3  0.237178
  4  0.206712
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/682568': 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) = 5947.16802501
delta logL = 0.000893613850167

Extracting fit parameters...

4FGL J1008.0+0620
   Spectrum: PowerLaw
200    Prefactor:  1.373e+01  1.440e+01  1.000e-04  1.000e+04 ( 1.000e-13)
201        Index:  2.162e+00  6.539e-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.337e+00  2.067e-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:  8.823e-01  2.372e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 2.82
Ra Dec: 152.014 6.348
Photon Index (Free Index): 2.16 +/- 0.65
Photon Flux (Free Index): 3.31e-08 +/- 3.36e-08
Energy Flux (Free Index): 1.60e-05 +/- 1.82e-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/682568/cmap_HighResolution_397958401_398217601_4FGL_J1008.0+0620_daily_bin612.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='8.12e-03', comment='SUCCESS', photon_flux='3.39e-08', energy_flux2='1.60e-05', photon_flux_error='2.91e-08', dlogl='8.94e-04', energy_flux='1.55e-05', photon_flux2='3.31e-08', job_status='DONE', time_completed='2021-09-01 11:22:54.191367', photon_index_error2='0.65', photon_index2='2.16', ts='2.82', fit_tolerance='1e-08', GAL='1.34', photon_index_error='0.00', photon_flux_upper_limit='1.07e-07', energy_flux_error2='1.82e-05', EG='0.88', time_epoch_completed='1630520574.19', return_code='0', job_id='682568', GAL2='1.34', EG2='0.88', return_code2='0', energy_flux_error='1.34e-05', photon_flux_error2='3.36e-08', ts2='2.82', photon_index='2.19' WHERE bin_id='612' AND source_name='4FGL J1008.0+0620' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep  1 11:22:54 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0252>
Subject: Job 682568: <4FGL_J1008.0+0620_daily_bin612> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1008.0+0620_daily_bin612 152.014 6.3475 397958401 398217601 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 :                                   511.00 sec.
    Max Memory :                                 1093 MB
    Average Memory :                             248.35 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   697 sec.
    Turnaround time :                            700 sec.

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

