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


Performing analysis on: 4FGL_J1008.7-2909_daily_bin639
RA = 152.199, Dec = -29.1559
tmin = 404956801, tmax = 405216001
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='689763', job_status='RUN', time_executed='2021-09-01 11:38:51.366283', time_epoch_executed='1630521531.37' WHERE source_name='4FGL J1008.7-2909' and cadence='daily' and bin_id='639'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/689763

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/689763/ft1_4FGL_J1008.7-2909_daily_bin639.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/689763/ft2_4FGL_J1008.7-2909_daily_bin639.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/689763/ft1_4FGL_J1008.7-2909_daily_bin639.fits outfile=/scratch/kocevski/689763/ft1_filteredMKT_4FGL_J1008.7-2909_daily_bin639.fits ra=152.199 dec=-29.1559 rad=12.0 tmin=404956801.0 tmax=405216001.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.24
sys 0.21

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/689763/ft2_4FGL_J1008.7-2909_daily_bin639.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/689763/ft2_4FGL_J1008.7-2909_daily_bin639.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/689763/ft1_filteredMKT_4FGL_J1008.7-2909_daily_bin639.fits evtable="EVENTS" outfile="/scratch/kocevski/689763/ft1_filtered_4FGL_J1008.7-2909_daily_bin639.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.66
user 0.35
sys 0.15

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/689763/ft1_filtered_4FGL_J1008.7-2909_daily_bin639.fits" evtable="EVENTS" scfile=/scratch/kocevski/689763/ft2_4FGL_J1008.7-2909_daily_bin639.fits sctable="SC_DATA" outfile=/scratch/kocevski/689763/ltcube_404956801_405216001_4FGL_J1008.7-2909_daily_bin639.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/689763/ft2_4FGL_J1008.7-2909_daily_bin639.fits
.....................!
real 12.63
user 12.00
sys 0.33

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/689763/ft1_filtered_4FGL_J1008.7-2909_daily_bin639.fits evtable="EVENTS" scfile=/scratch/kocevski/689763/ft2_4FGL_J1008.7-2909_daily_bin639.fits sctable="SC_DATA" expcube=/scratch/kocevski/689763/ltcube_404956801_405216001_4FGL_J1008.7-2909_daily_bin639.fits outfile=/scratch/kocevski/689763/expmap_404956801_405216001_4FGL_J1008.7-2909_daily_bin639.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/689763/ltcube_404956801_405216001_4FGL_J1008.7-2909_daily_bin639.fits
.....................!
real 192.32
user 186.28
sys 4.87

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 171 point sources and 0 extended sources

Setting source of interest to:
4FGL J1008.7-2909 @ 152.199 -29.1559

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/689763/ft1_filtered_4FGL_J1008.7-2909_daily_bin639.fits scfile=/scratch/kocevski/689763/ft2_4FGL_J1008.7-2909_daily_bin639.fits outfile=/scratch/kocevski/689763/cmap_404956801_405216001_4FGL_J1008.7-2909_daily_bin639.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.199 yref=-29.1559 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.37
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/689763/ft1_filtered_4FGL_J1008.7-2909_daily_bin639.fits scfile=/scratch/kocevski/689763/ft2_4FGL_J1008.7-2909_daily_bin639.fits outfile=/scratch/kocevski/689763/cmap_HighResolution_404956801_405216001_4FGL_J1008.7-2909_daily_bin639.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.199 yref=-29.1559 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.55
user 0.37
sys 0.17

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/689763/ft1_filtered_4FGL_J1008.7-2909_daily_bin639.fits evtable="EVENTS" scfile=/scratch/kocevski/689763/ft2_4FGL_J1008.7-2909_daily_bin639.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/689763/Model_4FGL_J1008.7-2909_daily_bin639.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/689763/ft1_filtered_4FGL_J1008.7-2909_daily_bin639.fits.....................!
real 102.28
user 100.26
sys 1.20

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/689763/ft1_filtered_4FGL_J1008.7-2909_daily_bin639.fits', '/scratch/kocevski/689763/ft2_4FGL_J1008.7-2909_daily_bin639.fits', expMap='/scratch/kocevski/689763/expmap_404956801_405216001_4FGL_J1008.7-2909_daily_bin639.fits', expCube='/scratch/kocevski/689763/ltcube_404956801_405216001_4FGL_J1008.7-2909_daily_bin639.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/689763/Model_4FGL_J1008.7-2909_daily_bin639.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J1008.7-2909'

4FGL J1008.7-2909
   Spectrum: PowerLaw
296    Prefactor:  3.409e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-13)
297        Index:  2.483e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
298        Scale:  9.538e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/689763/ft1_filtered_4FGL_J1008.7-2909_daily_bin639.fits
Spacecraft file(s): /scratch/kocevski/689763/ft2_4FGL_J1008.7-2909_daily_bin639.fits
Exposure map: /scratch/kocevski/689763/expmap_404956801_405216001_4FGL_J1008.7-2909_daily_bin639.fits
Exposure cube: /scratch/kocevski/689763/ltcube_404956801_405216001_4FGL_J1008.7-2909_daily_bin639.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/689763/Model_4FGL_J1008.7-2909_daily_bin639.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) = 9975.98966365

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    1.3372       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10068E-03   1.0000         .10000E-03   10000.    
     3 'norm      '    .10009E-03   1.0000         .10000E-03   10000.    
     4 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
     5 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     6 'norm      '    .11367E-03   1.0000         .10000E-03   10000.    
     7 'norm      '    15.134       1.0000         .10000E-03   10000.    
     8 'Prefactor '    32.699       1.0000         .10000E-03   10000.    
     9 'Prefactor '    6.6313       1.0000         .10000E-03   10000.    
    10 'norm      '    .10013E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    12.476       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    14 'norm      '    4.6516       1.0000         .10000E-03   10000.    
    15 'Prefactor '    9.1545       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .33437       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    18 'Normalizat'    .73469       1.0000         .10000E-01   10.000    
    19 'Prefactor '    1.1978       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5690E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   9975.965     FROM MIGRAD    STATUS=CONVERGED    386 CALLS     1944 TOTAL
                     EDM=   .58E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  6.3%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     1.3336        34.611        .20163E-04   -.15188E-03
   2  Prefactor     .10000E-03    31.834       -.42413E-06** at limit **
   3  norm          .10000E-03    4.4252        .10436E-06** at limit **
   4  norm          .10000E-03    8.6352        .34027E-07** at limit **
   5  norm          .10000E-03    2.6959        .20989E-07** at limit **
   6  norm          .10000E-03    .44716        .10255E-06** at limit **
   7  norm          15.134        9.7644        .13807E-06   -.23554E-04
   8  Prefactor     32.700        25.968        .67678E-07   -.28202E-04
   9  Prefactor     6.6313        9.4282        .11610E-06   -.85968E-05
  10  norm          .10000E-03    7.4542        .18634E-06** at limit **
  11  norm          .10000E-03    7.6237        .23872E-06** at limit **
  12  Prefactor     12.492        16.068       -.43795E-05   -.32584E-03
  13  Prefactor     .10000E-03    6.9399       -.47491E-06** at limit **
  14  norm          4.6510        3.7057        .26708E-06    .11706E-03
  15  Prefactor     9.1237        18.031        .65496E-05    .26627E-03
  16  Prefactor     .33486        2.6381        .84996E-06   -.11101E-03
  17  Prefactor     .10000E-03    3.7511       -.45977E-07** at limit **
  18  Normalizat    .73456        .21110        .53220E-07    .33311E-05
  19  Prefactor     1.1979        .94612E-01   -.64568E-06    .55653E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 1.3336
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 0.0001
  norm       = 0.0001
  norm       = 0.0001
  norm       = 15.1341
  Prefactor  = 32.7001
  Prefactor  = 6.63135
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 12.4924
  Prefactor  = 0.0001
  norm       = 4.651
  Prefactor  = 9.12368
  Prefactor  = 0.334859
  Prefactor  = 0.0001
  Normalizat = 0.734559
  Prefactor  = 1.1979
 **********
 **   18 **HESSE 
 **********

 FCN=   9975.965     FROM HESSE     STATUS=OK           270 CALLS     2214 TOTAL
                     EDM=   .10E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     1.3336        35.058        .18964E-02   -1.5477    
   2  Prefactor     .10000E-03    32.059        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          .10000E-03    4.5386        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  norm          .10000E-03    8.6771        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          .10000E-03    2.7024        .16016E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          .10000E-03    2.6494        .12784E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          15.134        9.7605        .10295E-03   -1.4930    
   8  Prefactor     32.700        25.975        .70074E-04   -1.4564    
   9  Prefactor     6.6313        9.4179        .15583E-03   -1.5193    
  10  norm          .10000E-03    7.5608        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          .10000E-03    7.8313        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     12.492        16.244        .11341E-03   -1.5001    
  13  Prefactor     .10000E-03    6.9510        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          4.6510        3.6709        .15913E-03   -1.5277    
  15  Prefactor     9.1237        18.225        .13246E-03   -1.5104    
  16  Prefactor     .33486        2.5901        .30954E-03   -1.5592    
  17  Prefactor     .10000E-03    3.8110        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Normalizat    .73456        .22964        .42436E-03   -1.0254    
  19  Prefactor     1.1979        .10474        .15933E-03   -.86396    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.03004e-09
Minuit parameter uncertainties:
  1  13.6837
  2  1.275e-05
  3  5.25198e-07
  4  1.30838e-07
  5  3.09307e-07
  6  1.22619e-05
  7  9.76155
  8  25.9842
  9  9.41999
  10  1.01173e-05
  11  2.12831e-06
  12  16.2499
  13  1.55783e-05
  14  3.6711
  15  18.2356
  16  1.86244
  17  6.17928e-07
  18  0.229945
  19  0.104761
Done.

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

Extracting fit parameters...

4FGL J1008.7-2909
   Spectrum: PowerLaw
296    Prefactor:  3.270e+01  2.598e+01  1.000e-04  1.000e+04 ( 1.000e-13)
297        Index:  2.483e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
298        Scale:  9.538e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
566    Prefactor:  1.198e+00  1.048e-01  0.000e+00  1.000e+01 ( 1.000e+00)
567        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
568        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
565   Normalization:  7.346e-01  2.299e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 2.27
Ra Dec: 152.199 -29.156
Photon Index (Fixed Index): 2.48 +/- 0.00
Photon Flux (Fixed Index): 5.97e-08 +/- 4.74e-08
Energy Flux (Fixed Index): 1.77e-05 +/- 1.40e-05

TS (Fixed Index): 2.27
Ra Dec: 152.199 -29.156
Photon Flux Upper Limit: 1.53e-07 ph cm-2 s-1
Energy Flux Upper Limit: 1.19e-02 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/689763/likelihoodResults_404956801_405216001_4FGL_J1008.7-2909_daily_bin639.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) = 9974.68554862
delta logL = 1.27924445591

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 9974.66872409
delta logL = 1.29606899205

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    7.2237       1.0000         .10000E-03   10000.    
     2 'Index     '    3.7221       1.0000          .0000       10.000    
     3 'Normalizat'    .65631       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.2209       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5690E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   9974.669     FROM MIGRAD    STATUS=CONVERGED     56 CALLS      250 TOTAL
                     EDM=   .74E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     7.2655        56.044        .37310E-02   -.76922E-03
   2  Index         3.7189        2.3561        .12196       -.58081E-04
   3  Normalizat    .65612        .70752E-01    .10078       -.39767E-04
   4  Prefactor     1.2210        .31885E-01    .34153E-01   -.36147E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 7.26545
  Index      = 3.71889
  Normalizat = 0.656123
  Prefactor  = 1.221
 **********
 **   18 **HESSE 
 **********

 FCN=   9974.669     FROM HESSE     STATUS=NOT POSDEF    33 CALLS      283 TOTAL
                     EDM=   .13E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     7.2655        95.084        .13278E-03   -1.5169    
   2  Index         3.7189        3.4699        .45000E-02   -.25911    
   3  Normalizat    .65612        .22781        .44667E-03   -1.0565    
   4  Prefactor     1.2210        .10586        .15791E-03   -.85687    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 1.33918e-09
Minuit parameter uncertainties:
  1  52.6698
  2  3.8706
  3  0.228134
  4  0.105874
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/689763': 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): 102
logL (Free Index) = 9974.66871677
delta logL = 1.29607630647

Extracting fit parameters...

4FGL J1008.7-2909
   Spectrum: PowerLaw
296    Prefactor:  7.265e+00  5.267e+01  1.000e-04  1.000e+04 ( 1.000e-13)
297        Index:  3.719e+00  3.871e+00  0.000e+00  1.000e+01 (-1.000e+00)
298        Scale:  9.538e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
566    Prefactor:  1.221e+00  1.059e-01  0.000e+00  1.000e+01 ( 1.000e+00)
567        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
568        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
565   Normalization:  6.561e-01  2.281e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 5.17
Ra Dec: 152.199 -29.156
Photon Index (Free Index): 3.72 +/- 3.87
Photon Flux (Free Index): 1.18e-07 +/- 6.29e-08
Energy Flux (Free Index): 1.86e-05 +/- 1.71e-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/689763/cmap_HighResolution_404956801_405216001_4FGL_J1008.7-2909_daily_bin639.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.19e-02', comment='SUCCESS', photon_flux='5.97e-08', energy_flux2='1.86e-05', photon_flux_error='4.74e-08', dlogl='1.30e+00', energy_flux='1.77e-05', photon_flux2='1.18e-07', job_status='DONE', time_completed='2021-09-01 11:51:47.190898', photon_index_error2='3.87', photon_index2='3.72', ts='2.27', fit_tolerance='1e-08', GAL='1.20', photon_index_error='0.00', photon_flux_upper_limit='1.53e-07', energy_flux_error2='1.71e-05', EG='0.73', time_epoch_completed='1630522307.19', return_code='0', job_id='689763', GAL2='1.22', EG2='0.66', return_code2='102', energy_flux_error='1.40e-05', photon_flux_error2='6.29e-08', ts2='5.17', photon_index='2.48' WHERE bin_id='639' AND source_name='4FGL J1008.7-2909' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep  1 11:51:47 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0269>
Subject: Job 689763: <4FGL_J1008.7-2909_daily_bin639> in cluster <slac> Done

Job <4FGL_J1008.7-2909_daily_bin639> was submitted from host <rhel6-64p> by user <kocevski> in cluster <slac> at Wed Sep  1 11:35:36 2021
Job was executed on host(s) <bullet0269>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Sep  1 11:35:38 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:35:38 2021
Terminated at Wed Sep  1 11:51:48 2021
Results reported at Wed Sep  1 11:51:48 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1008.7-2909_daily_bin639 152.199 -29.1559 404956801 405216001 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J1008.7-2909 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   762.40 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             291.35 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   969 sec.
    Turnaround time :                            972 sec.

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

