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


Performing analysis on: 4FGL_J1008.7-2909_daily_bin1526
RA = 152.199, Dec = -29.1559
tmin = 634867201, tmax = 635126401
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='693207', job_status='RUN', time_executed='2021-09-01 11:49:59.792504', time_epoch_executed='1630522199.79' WHERE source_name='4FGL J1008.7-2909' and cadence='daily' and bin_id='1526'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/693207

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/693207/ft1_4FGL_J1008.7-2909_daily_bin1526.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/693207/ft2_4FGL_J1008.7-2909_daily_bin1526.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/693207/ft1_4FGL_J1008.7-2909_daily_bin1526.fits outfile=/scratch/kocevski/693207/ft1_filteredMKT_4FGL_J1008.7-2909_daily_bin1526.fits ra=152.199 dec=-29.1559 rad=12.0 tmin=634867201.0 tmax=635126401.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.08
user 2.81
sys 0.20

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/693207/ft1_filtered_4FGL_J1008.7-2909_daily_bin1526.fits" evtable="EVENTS" scfile=/scratch/kocevski/693207/ft2_4FGL_J1008.7-2909_daily_bin1526.fits sctable="SC_DATA" outfile=/scratch/kocevski/693207/ltcube_634867201_635126401_4FGL_J1008.7-2909_daily_bin1526.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/693207/ft2_4FGL_J1008.7-2909_daily_bin1526.fits
.....................!
real 14.62
user 14.17
sys 0.34

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/693207/ft1_filtered_4FGL_J1008.7-2909_daily_bin1526.fits evtable="EVENTS" scfile=/scratch/kocevski/693207/ft2_4FGL_J1008.7-2909_daily_bin1526.fits sctable="SC_DATA" expcube=/scratch/kocevski/693207/ltcube_634867201_635126401_4FGL_J1008.7-2909_daily_bin1526.fits outfile=/scratch/kocevski/693207/expmap_634867201_635126401_4FGL_J1008.7-2909_daily_bin1526.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/693207/ltcube_634867201_635126401_4FGL_J1008.7-2909_daily_bin1526.fits
.....................!
real 190.01
user 184.74
sys 4.71

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/693207/ft1_filtered_4FGL_J1008.7-2909_daily_bin1526.fits scfile=/scratch/kocevski/693207/ft2_4FGL_J1008.7-2909_daily_bin1526.fits outfile=/scratch/kocevski/693207/cmap_634867201_635126401_4FGL_J1008.7-2909_daily_bin1526.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 1.28
user 0.39
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/693207/ft1_filtered_4FGL_J1008.7-2909_daily_bin1526.fits scfile=/scratch/kocevski/693207/ft2_4FGL_J1008.7-2909_daily_bin1526.fits outfile=/scratch/kocevski/693207/cmap_HighResolution_634867201_635126401_4FGL_J1008.7-2909_daily_bin1526.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.38
sys 0.16

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/693207/ft1_filtered_4FGL_J1008.7-2909_daily_bin1526.fits evtable="EVENTS" scfile=/scratch/kocevski/693207/ft2_4FGL_J1008.7-2909_daily_bin1526.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/693207/Model_4FGL_J1008.7-2909_daily_bin1526.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/693207/ft1_filtered_4FGL_J1008.7-2909_daily_bin1526.fits.....................!
real 87.44
user 85.66
sys 1.13

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/693207/ft1_filtered_4FGL_J1008.7-2909_daily_bin1526.fits', '/scratch/kocevski/693207/ft2_4FGL_J1008.7-2909_daily_bin1526.fits', expMap='/scratch/kocevski/693207/expmap_634867201_635126401_4FGL_J1008.7-2909_daily_bin1526.fits', expCube='/scratch/kocevski/693207/ltcube_634867201_635126401_4FGL_J1008.7-2909_daily_bin1526.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/693207/Model_4FGL_J1008.7-2909_daily_bin1526.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/693207/ft1_filtered_4FGL_J1008.7-2909_daily_bin1526.fits
Spacecraft file(s): /scratch/kocevski/693207/ft2_4FGL_J1008.7-2909_daily_bin1526.fits
Exposure map: /scratch/kocevski/693207/expmap_634867201_635126401_4FGL_J1008.7-2909_daily_bin1526.fits
Exposure cube: /scratch/kocevski/693207/ltcube_634867201_635126401_4FGL_J1008.7-2909_daily_bin1526.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/693207/Model_4FGL_J1008.7-2909_daily_bin1526.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) = 7861.52940735

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    20.002       1.0000         .10000E-03   10000.    
     3 'norm      '    2.5408       1.0000         .10000E-03   10000.    
     4 'norm      '    7.1848       1.0000         .10000E-03   10000.    
     5 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     6 'norm      '    .37371       1.0000         .10000E-03   10000.    
     7 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10429E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10019E-03   1.0000         .10000E-03   10000.    
    10 'norm      '    .10018E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    3.6633       1.0000         .10000E-03   10000.    
    12 'Prefactor '    11.981       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
    14 'norm      '    .72360       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10021E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    19.928       1.0000         .10000E-03   10000.    
    18 'Normalizat'    1.2034       1.0000         .10000E-01   10.000    
    19 'Prefactor '    1.0564       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=   7861.526     FROM MIGRAD    STATUS=CONVERGED    370 CALLS     1846 TOTAL
                     EDM=   .16E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    3.5657        .90712E-02** at limit **
   2  Prefactor     20.002        30.616        .22389E-02    .12615E-03
   3  norm          2.5399        6.8400        .64051E-02    .77715E-03
   4  norm          7.1789        15.206        .37412E-02   -.10866E-02
   5  norm          .10000E-03    3.4375        .90712E-02** at limit **
   6  norm          .37367        1.4028        .10744E-01    .23860E-02
   7  norm          .10000E-03    2.0502        .90712E-02** at limit **
   8  Prefactor     .10000E-03    70.246        .90712E-02** at limit **
   9  Prefactor     .10000E-03    14.781        .90712E-02** at limit **
  10  norm          .10001E-03    8.9665        .90712E-02** at limit **
  11  norm          3.6612        8.3907        .52761E-02    .72613E-03
  12  Prefactor     11.979        16.560        .28933E-02   -.17886E-03
  13  Prefactor     .10000E-03    14.853        .90712E-02** at limit **
  14  norm          .72145        3.6846        .12152E-01    .17784E-02
  15  Prefactor     .10001E-03    9.0145        .90712E-02** at limit **
  16  Prefactor     .10000E-03    3.2179        .90712E-02** at limit **
  17  Prefactor     19.928        13.640        .22430E-02    .43266E-03
  18  Normalizat    1.2037        .25584        .88273E-01    .12052E-04
  19  Prefactor     1.0563        .10272        .39548E-01   -.21266E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 20.0021
  norm       = 2.53989
  norm       = 7.17887
  norm       = 0.0001
  norm       = 0.373674
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000100003
  norm       = 0.000100008
  norm       = 3.66115
  Prefactor  = 11.9794
  Prefactor  = 0.000100003
  norm       = 0.72145
  Prefactor  = 0.000100008
  Prefactor  = 0.0001
  Prefactor  = 19.9278
  Normalizat = 1.20366
  Prefactor  = 1.05629
 **********
 **   18 **HESSE 
 **********

 FCN=   7861.526     FROM HESSE     STATUS=OK           266 CALLS     2112 TOTAL
                     EDM=   .72E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    3.5671        .16352E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     20.002        30.609        .89556E-04   -1.4813    
   3  norm          2.5399        6.8126        .25620E-03   -1.5389    
   4  norm          7.1789        15.258        .14965E-03   -1.5172    
   5  norm          .10000E-03    3.4404        .16055E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          .37367        1.3912        .19511E-03   -1.5586    
   7  norm          .10000E-03    2.0521        .12398E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    71.151        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    14.933        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          .10001E-03    9.0656        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          3.6612        8.3731        .21104E-03   -1.5325    
  12  Prefactor     11.979        16.507        .11573E-03   -1.5016    
  13  Prefactor     .10000E-03    14.896        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          .72145        3.6187        .31876E-03   -1.5538    
  15  Prefactor     .10001E-03    9.0330        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    3.2557        .15492E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     19.928        13.632        .89721E-04   -1.4815    
  18  Normalizat    1.2037        .29286        .39092E-03   -.86490    
  19  Prefactor     1.0563        .11904        .17112E-03   -.90876    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 7.19933e-09
Minuit parameter uncertainties:
  1  8.61047e-06
  2  30.6327
  3  6.81465
  4  15.2662
  5  1.24496e-05
  6  1.39128
  7  4.72347e-07
  8  0.000366141
  9  0.0004315
  10  0.000541106
  11  8.37573
  12  16.5137
  13  0.000409994
  14  3.23164
  15  0.000541542
  16  3.88625e-06
  17  13.634
  18  0.293263
  19  0.119072
Done.

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

Extracting fit parameters...

4FGL J1008.7-2909
   Spectrum: PowerLaw
296    Prefactor:  1.000e-04  3.661e-04  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.056e+00  1.191e-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:  1.204e+00  2.933e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): -0.00
Ra Dec: 152.199 -29.156
Photon Flux Upper Limit: 1.26e-07 ph cm-2 s-1
Energy Flux Upper Limit: 9.79e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/693207/likelihoodResults_634867201_635126401_4FGL_J1008.7-2909_daily_bin1526.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): 102
logL (Free Index) = 7861.52601026
delta logL = -6.686474444e-05

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 7861.52594358
delta logL = -1.76059984369e-07

Fit tolerance = 1e-08

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

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

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   7861.526     FROM MIGRAD    STATUS=CONVERGED     95 CALLS      282 TOTAL
                     EDM=   .10E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10002E-03    8944.1        .18142E-02** at limit **
   2  Index         2.5228        6.8420        .50000       -.15433E-04
   3  Normalizat    1.2037        .95923E-01    .39092E-03    .61741E-04
   4  Prefactor     1.0563        .39908E-01    .17112E-03    .16639E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100022
  Index      = 2.52283
  Normalizat = 1.20366
  Prefactor  = 1.05629
 **********
 **   18 **HESSE 
 **********

 FCN=   7861.526     FROM HESSE     STATUS=OK            29 CALLS      311 TOTAL
                     EDM=   .32E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10002E-03    119.74        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.5228        6.2400        .50000       -.51833    
   3  Normalizat    1.2037        .27721        .15637E-04   -.86490    
   4  Prefactor     1.0563        .11555        .34223E-04   -.90876    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.24877e-10
Minuit parameter uncertainties:
  1  0.003286
  2  5.1396
  3  0.277547
  4  0.115577
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/693207': 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) = 7861.52594326
delta logL = 1.38187715493e-07

Extracting fit parameters...

4FGL J1008.7-2909
   Spectrum: PowerLaw
296    Prefactor:  1.000e-04  3.286e-03  1.000e-04  1.000e+04 ( 1.000e-13)
297        Index:  2.523e+00  5.140e+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.056e+00  1.156e-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:  1.204e+00  2.775e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
Ra Dec: 152.199 -29.156

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/693207/cmap_HighResolution_634867201_635126401_4FGL_J1008.7-2909_daily_bin1526.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='9.79e-03', job_status='DONE', photon_flux_upper_limit='1.26e-07', time_completed='2021-09-01 12:00:55.489433', job_id='693207', GAL2='1.06', fit_tolerance='1e-08', EG2='1.20', EG='1.20', time_epoch_completed='1630522855.49', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.06', dlogl='1.38e-07', ts2='-0.00', photon_index_error='0.00', photon_index='2.48' WHERE bin_id='1526' AND source_name='4FGL J1008.7-2909' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep  1 12:00:55 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0217>
Subject: Job 693207: <4FGL_J1008.7-2909_daily_bin1526> in cluster <slac> Done

Job <4FGL_J1008.7-2909_daily_bin1526> was submitted from host <rhel6-64k> by user <kocevski> in cluster <slac> at Wed Sep  1 11:45:57 2021
Job was executed on host(s) <bullet0217>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Sep  1 11:46:01 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:46:01 2021
Terminated at Wed Sep  1 12:00:56 2021
Results reported at Wed Sep  1 12:00:56 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1008.7-2909_daily_bin1526 152.199 -29.1559 634867201 635126401 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 :                                   651.00 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             286.96 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   894 sec.
    Turnaround time :                            899 sec.

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

