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


Performing analysis on: 4FGL_J1008.7-2909_daily_bin1427
RA = 152.199, Dec = -29.1559
tmin = 609206401, tmax = 609465601
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='693074', job_status='RUN', time_executed='2021-09-01 11:47:27.790892', time_epoch_executed='1630522047.79' WHERE source_name='4FGL J1008.7-2909' and cadence='daily' and bin_id='1427'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/693074

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/693074/ft1_4FGL_J1008.7-2909_daily_bin1427.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/693074/ft2_4FGL_J1008.7-2909_daily_bin1427.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/693074/ft1_4FGL_J1008.7-2909_daily_bin1427.fits outfile=/scratch/kocevski/693074/ft1_filteredMKT_4FGL_J1008.7-2909_daily_bin1427.fits ra=152.199 dec=-29.1559 rad=12.0 tmin=609206401.0 tmax=609465601.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.53
user 2.83
sys 0.20

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/693074/ft1_filtered_4FGL_J1008.7-2909_daily_bin1427.fits" evtable="EVENTS" scfile=/scratch/kocevski/693074/ft2_4FGL_J1008.7-2909_daily_bin1427.fits sctable="SC_DATA" outfile=/scratch/kocevski/693074/ltcube_609206401_609465601_4FGL_J1008.7-2909_daily_bin1427.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/693074/ft2_4FGL_J1008.7-2909_daily_bin1427.fits
.....................!
real 15.28
user 14.55
sys 0.34

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/693074/ft1_filtered_4FGL_J1008.7-2909_daily_bin1427.fits evtable="EVENTS" scfile=/scratch/kocevski/693074/ft2_4FGL_J1008.7-2909_daily_bin1427.fits sctable="SC_DATA" expcube=/scratch/kocevski/693074/ltcube_609206401_609465601_4FGL_J1008.7-2909_daily_bin1427.fits outfile=/scratch/kocevski/693074/expmap_609206401_609465601_4FGL_J1008.7-2909_daily_bin1427.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/693074/ltcube_609206401_609465601_4FGL_J1008.7-2909_daily_bin1427.fits
.....................!
real 193.03
user 185.58
sys 5.13

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/693074/ft1_filtered_4FGL_J1008.7-2909_daily_bin1427.fits scfile=/scratch/kocevski/693074/ft2_4FGL_J1008.7-2909_daily_bin1427.fits outfile=/scratch/kocevski/693074/cmap_609206401_609465601_4FGL_J1008.7-2909_daily_bin1427.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.57
user 0.37
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/693074/ft1_filtered_4FGL_J1008.7-2909_daily_bin1427.fits scfile=/scratch/kocevski/693074/ft2_4FGL_J1008.7-2909_daily_bin1427.fits outfile=/scratch/kocevski/693074/cmap_HighResolution_609206401_609465601_4FGL_J1008.7-2909_daily_bin1427.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/693074/ft1_filtered_4FGL_J1008.7-2909_daily_bin1427.fits evtable="EVENTS" scfile=/scratch/kocevski/693074/ft2_4FGL_J1008.7-2909_daily_bin1427.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/693074/Model_4FGL_J1008.7-2909_daily_bin1427.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/693074/ft1_filtered_4FGL_J1008.7-2909_daily_bin1427.fits.....................!
real 73.77
user 72.25
sys 1.23

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    7.4337       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     3 'norm      '    .10073E-03   1.0000         .10000E-03   10000.    
     4 'norm      '    .10093E-03   1.0000         .10000E-03   10000.    
     5 'norm      '    .10010E-03   1.0000         .10000E-03   10000.    
     6 'norm      '    2.9576       1.0000         .10000E-03   10000.    
     7 'norm      '    .10811E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    22.227       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10024E-03   1.0000         .10000E-03   10000.    
    10 'norm      '    .21610E-02   1.0000         .10000E-03   10000.    
    11 'norm      '    .11863E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .31668E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    14 'norm      '    1.8202       1.0000         .10000E-03   10000.    
    15 'Prefactor '    24.342       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .26098E-01   1.0000         .10000E-03   10000.    
    17 'Prefactor '    5.3842       1.0000         .10000E-03   10000.    
    18 'Normalizat'    1.3208       1.0000         .10000E-01   10.000    
    19 'Prefactor '    .89787       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=   6424.728     FROM MIGRAD    STATUS=CONVERGED    432 CALLS     1994 TOTAL
                     EDM=   .86E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  3.4%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     7.4351        8.7389        .81037E-07   -.16409E-05
   2  Prefactor     .10000E-03    8.8903       -.55143E-07** at limit **
   3  norm          .10000E-03    10.164       -.17661E-06** at limit **
   4  norm          .10000E-03    25.173       -.29462E-06** at limit **
   5  norm          .10000E-03    14.233       -.10073E-06** at limit **
   6  norm          2.9583        1.6798        .13145E-06   -.42736E-05
   7  norm          .10000E-03    22.864       -.66072E-06** at limit **
   8  Prefactor     22.185        32.092        .80777E-07   -.75421E-04
   9  Prefactor     .10000E-03    5.3894        .27829E-06** at limit **
  10  norm          .10010E-03    9.3389        .24460E-05** at limit **
  11  norm          .10000E-03    32.106        .18210E-06** at limit **
  12  Prefactor     .10010E-03    17.999        .51997E-06** at limit **
  13  Prefactor     .10000E-03    22.351       -.13570E-06** at limit **
  14  norm          1.8118        6.2148        .12981E-05   -.22906E-03
  15  Prefactor     24.346        22.580        .45085E-06   -.87354E-04
  16  Prefactor     .57444E-01    10.853        .22106E-05   -.51404E-03
  17  Prefactor     5.3612        17.368       -.31533E-05   -.42915E-03
  18  Normalizat    1.3204        .27089       -.35082E-05   -.61593E-03
  19  Prefactor     .89795        .10653        .89681E-06   -.98897E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 7.43513
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 0.0001
  norm       = 0.0001
  norm       = 2.95833
  norm       = 0.0001
  Prefactor  = 22.185
  Prefactor  = 0.0001
  norm       = 0.000100097
  norm       = 0.0001
  Prefactor  = 0.000100098
  Prefactor  = 0.0001
  norm       = 1.81177
  Prefactor  = 24.3461
  Prefactor  = 0.0574441
  Prefactor  = 5.36117
  Normalizat = 1.32044
  Prefactor  = 0.897951
 **********
 **   18 **HESSE 
 **********

 FCN=   6424.728     FROM HESSE     STATUS=OK           278 CALLS     2272 TOTAL
                     EDM=   .48E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     7.4351        8.7394        .14710E-03   -1.5163    
   2  Prefactor     .10000E-03    8.8971        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          .10000E-03    10.506        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  norm          .10000E-03    25.715        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          .10000E-03    14.756        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          2.9583        1.6836        .74421E-04   -1.5364    
   7  norm          .10000E-03    23.692        .36285E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     22.185        31.587        .84959E-04   -1.4766    
   9  Prefactor     .10000E-03    5.3950        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          .10010E-03    33.645        .37213E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          .10000E-03    33.238        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10010E-03    124.86        .59913E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    22.371        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          1.8118        5.9196        .30092E-03   -1.5439    
  15  Prefactor     24.346        21.717        .81190E-04   -1.4721    
  16  Prefactor     .57444E-01    11.795        .51617E-01   -1.5660    
  17  Prefactor     5.3612        18.441        .17319E-03   -1.5245    
  18  Normalizat    1.3204        .29911        .33750E-03   -.82958    
  19  Prefactor     .89795        .12018        .17034E-03   -.96213    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.75009e-09
Minuit parameter uncertainties:
  1  8.74095
  2  8.95021e-07
  3  8.01495e-06
  4  2.70507e-05
  5  9.14697e-07
  6  1.68361
  7  0.000173084
  8  31.6107
  9  1.98333e-05
  10  0.00361025
  11  9.95387e-05
  12  0.00701567
  13  5.52985e-05
  14  5.92156
  15  21.7242
  16  1.64519
  17  18.4605
  18  0.299507
  19  0.12022
Done.

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

Extracting fit parameters...

4FGL J1008.7-2909
   Spectrum: PowerLaw
296    Prefactor:  2.218e+01  3.161e+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:  8.980e-01  1.202e-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.320e+00  2.995e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/693074/likelihoodResults_609206401_609465601_4FGL_J1008.7-2909_daily_bin1427.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) = 6424.49230858
delta logL = 0.235782559893

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6424.49200837
delta logL = 0.236082771507

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    32.435       1.0000         .10000E-03   10000.    
     2 'Index     '    1.9368       1.0000          .0000       10.000    
     3 'Normalizat'    1.3411       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .89172       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=   6424.492     FROM MIGRAD    STATUS=CONVERGED     58 CALLS      265 TOTAL
                     EDM=   .44E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     32.523        1876.2        .17589E-02   -.10586E-03
   2  Index         1.9386        5.2134        .26166       -.17631E-04
   3  Normalizat    1.3410        .15375        .75752E-01   -.17050E-03
   4  Prefactor     .89170        .52728E-01    .44899E-01   -.96331E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 32.523
  Index      = 1.93863
  Normalizat = 1.341
  Prefactor  = 0.891699
 **********
 **   18 **HESSE 
 **********

 FCN=   6424.492     FROM HESSE     STATUS=OK            29 CALLS      294 TOTAL
                     EDM=   .86E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     32.523        40.528        .70358E-04   -1.4567    
   2  Index         1.9386        .72811        .10310E-01   -.65893    
   3  Normalizat    1.3410        .27838        .33525E-03   -.82351    
   4  Prefactor     .89170        .11846        .17082E-03   -.96432    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 8.61945e-10
Minuit parameter uncertainties:
  1  40.5628
  2  0.732291
  3  0.278695
  4  0.118493
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/693074': 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) = 6424.49200373
delta logL = 0.236087409562

Extracting fit parameters...

4FGL J1008.7-2909
   Spectrum: PowerLaw
296    Prefactor:  3.252e+01  4.056e+01  1.000e-04  1.000e+04 ( 1.000e-13)
297        Index:  1.939e+00  7.323e-01  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:  8.917e-01  1.185e-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.341e+00  2.787e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 1.08
Ra Dec: 152.199 -29.156
Photon Index (Free Index): 1.94 +/- 0.73
Photon Flux (Free Index): 2.74e-08 +/- 4.48e-08
Energy Flux (Free Index): 2.22e-05 +/- 3.33e-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/693074/cmap_HighResolution_609206401_609465601_4FGL_J1008.7-2909_daily_bin1427.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.30e-02', comment='SUCCESS', energy_flux2='2.22e-05', dlogl='2.36e-01', photon_flux2='2.74e-08', job_status='DONE', time_completed='2021-09-01 11:57:47.067613', photon_index_error2='0.73', photon_index2='1.94', ts='0.62', fit_tolerance='1e-08', GAL='0.90', photon_index_error='0.00', photon_flux_upper_limit='1.67e-07', energy_flux_error2='3.33e-05', EG='1.32', time_epoch_completed='1630522667.07', return_code='0', job_id='693074', GAL2='0.89', EG2='1.34', return_code2='0', photon_flux_error2='4.48e-08', ts2='1.08', photon_index='2.48' WHERE bin_id='1427' AND source_name='4FGL J1008.7-2909' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep  1 11:57:47 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0213>
Subject: Job 693074: <4FGL_J1008.7-2909_daily_bin1427> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1008.7-2909_daily_bin1427 152.199 -29.1559 609206401 609465601 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 :                                   607.28 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             272.43 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   720 sec.
    Turnaround time :                            719 sec.

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

