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


Performing analysis on: 4FGL_J1008.7-2909_daily_bin1125
RA = 152.199, Dec = -29.1559
tmin = 530928001, tmax = 531187201
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='691392', job_status='RUN', time_executed='2021-09-01 11:42:03.831887', time_epoch_executed='1630521723.83' WHERE source_name='4FGL J1008.7-2909' and cadence='daily' and bin_id='1125'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/691392

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/691392/ft1_4FGL_J1008.7-2909_daily_bin1125.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/691392/ft2_4FGL_J1008.7-2909_daily_bin1125.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/691392/ft1_4FGL_J1008.7-2909_daily_bin1125.fits outfile=/scratch/kocevski/691392/ft1_filteredMKT_4FGL_J1008.7-2909_daily_bin1125.fits ra=152.199 dec=-29.1559 rad=12.0 tmin=530928001.0 tmax=531187201.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.72
user 3.44
sys 0.23

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/691392/ft2_4FGL_J1008.7-2909_daily_bin1125.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/691392/ft1_filteredMKT_4FGL_J1008.7-2909_daily_bin1125.fits evtable="EVENTS" outfile="/scratch/kocevski/691392/ft1_filtered_4FGL_J1008.7-2909_daily_bin1125.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.55
user 0.36
sys 0.14

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/691392/ft1_filtered_4FGL_J1008.7-2909_daily_bin1125.fits" evtable="EVENTS" scfile=/scratch/kocevski/691392/ft2_4FGL_J1008.7-2909_daily_bin1125.fits sctable="SC_DATA" outfile=/scratch/kocevski/691392/ltcube_530928001_531187201_4FGL_J1008.7-2909_daily_bin1125.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/691392/ft2_4FGL_J1008.7-2909_daily_bin1125.fits
.....................!
real 17.69
user 17.29
sys 0.32

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/691392/ft1_filtered_4FGL_J1008.7-2909_daily_bin1125.fits evtable="EVENTS" scfile=/scratch/kocevski/691392/ft2_4FGL_J1008.7-2909_daily_bin1125.fits sctable="SC_DATA" expcube=/scratch/kocevski/691392/ltcube_530928001_531187201_4FGL_J1008.7-2909_daily_bin1125.fits outfile=/scratch/kocevski/691392/expmap_530928001_531187201_4FGL_J1008.7-2909_daily_bin1125.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/691392/ltcube_530928001_531187201_4FGL_J1008.7-2909_daily_bin1125.fits
.....................!
real 191.74
user 186.19
sys 5.03

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/691392/ft1_filtered_4FGL_J1008.7-2909_daily_bin1125.fits scfile=/scratch/kocevski/691392/ft2_4FGL_J1008.7-2909_daily_bin1125.fits outfile=/scratch/kocevski/691392/cmap_530928001_531187201_4FGL_J1008.7-2909_daily_bin1125.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.38
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/691392/ft1_filtered_4FGL_J1008.7-2909_daily_bin1125.fits scfile=/scratch/kocevski/691392/ft2_4FGL_J1008.7-2909_daily_bin1125.fits outfile=/scratch/kocevski/691392/cmap_HighResolution_530928001_531187201_4FGL_J1008.7-2909_daily_bin1125.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.40
sys 0.15

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/691392/ft1_filtered_4FGL_J1008.7-2909_daily_bin1125.fits evtable="EVENTS" scfile=/scratch/kocevski/691392/ft2_4FGL_J1008.7-2909_daily_bin1125.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/691392/Model_4FGL_J1008.7-2909_daily_bin1125.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/691392/ft1_filtered_4FGL_J1008.7-2909_daily_bin1125.fits.....................!
real 93.58
user 91.35
sys 1.26

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10021E-03   1.0000         .10000E-03   10000.    
     3 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     4 'norm      '    5.2424       1.0000         .10000E-03   10000.    
     5 'norm      '    10.505       1.0000         .10000E-03   10000.    
     6 'norm      '    7.2155       1.0000         .10000E-03   10000.    
     7 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    22.761       1.0000         .10000E-03   10000.    
     9 'Prefactor '    4.0837       1.0000         .10000E-03   10000.    
    10 'norm      '    .10018E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    12.534       1.0000         .10000E-03   10000.    
    12 'Prefactor '    3.1992       1.0000         .10000E-03   10000.    
    13 'Prefactor '    9.5708       1.0000         .10000E-03   10000.    
    14 'norm      '    1.0003       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10015E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10045E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .19674       1.0000         .10000E-03   10000.    
    18 'Normalizat'    1.1016       1.0000         .10000E-01   10.000    
    19 'Prefactor '    1.0663       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=   8985.558     FROM MIGRAD    STATUS=CONVERGED    382 CALLS     1930 TOTAL
                     EDM=   .62E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  4.5%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    5.5420       -.22214E-07** at limit **
   2  Prefactor     .10000E-03    45.649       -.52451E-07** at limit **
   3  norm          .10000E-03    3.5969        .25972E-08** at limit **
   4  norm          5.2408        10.973        .60407E-07    .10372E-04
   5  norm          10.504        8.9489        .36366E-07    .54387E-06
   6  norm          7.2157        2.1031        .21272E-07   -.10282E-03
   7  norm          .10000E-03    4.8800       -.15674E-07** at limit **
   8  Prefactor     22.736        28.316        .25111E-05   -.63690E-04
   9  Prefactor     4.0857        9.3124       -.43475E-07   -.12026E-04
  10  norm          .10000E-03    2.4708       -.10127E-06** at limit **
  11  norm          12.536        8.4631        .43712E-07   -.49693E-04
  12  Prefactor     3.2082        20.861        .41196E-05    .77462E-04
  13  Prefactor     9.5843        14.953       -.10690E-05   -.13076E-03
  14  norm          .99562        2.4882        .91742E-06    .64968E-03
  15  Prefactor     .10000E-03    8.9679        .28368E-06** at limit **
  16  Prefactor     .10000E-03    2.4763       -.70096E-07** at limit **
  17  Prefactor     .19496        7.1056       -.16056E-05    .57629E-03
  18  Normalizat    1.1014        .23010       -.10762E-05   -.13114E-04
  19  Prefactor     1.0664        .97638E-01   -.11797E-06   -.11418E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 5.24076
  norm       = 10.5043
  norm       = 7.21573
  norm       = 0.0001
  Prefactor  = 22.7358
  Prefactor  = 4.08568
  norm       = 0.0001
  norm       = 12.5355
  Prefactor  = 3.20816
  Prefactor  = 9.58433
  norm       = 0.995622
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.19496
  Normalizat = 1.10143
  Prefactor  = 1.06644
 **********
 **   18 **HESSE 
 **********

 FCN=   8985.558     FROM HESSE     STATUS=OK           274 CALLS     2204 TOTAL
                     EDM=   .16E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    5.5507        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    46.091        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          .10000E-03    3.6325        .17553E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  norm          5.2408        10.979        .17556E-03   -1.5250    
   5  norm          10.504        8.9483        .12362E-03   -1.5060    
   6  norm          7.2157        2.1172        .69880E-04   -1.5171    
   7  norm          .10000E-03    4.9211        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     22.736        27.382        .83959E-04   -1.4754    
   9  Prefactor     4.0857        9.2948        .19951E-03   -1.5304    
  10  norm          .10000E-03    2.4736        .14551E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          12.536        8.4601        .11315E-03   -1.5000    
  12  Prefactor     3.2082        21.086        .11326E-02   -1.5350    
  13  Prefactor     9.5843        14.777        .12954E-03   -1.5089    
  14  norm          .99562        2.3624        .22261E-02   -1.5508    
  15  Prefactor     .10000E-03    9.0137        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    2.5148        .14520E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .19496        101.64        .39685E-02   -1.5620    
  18  Normalizat    1.1014        .26607        .37994E-03   -.89706    
  19  Prefactor     1.0664        .11241        .17387E-03   -.90546    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.60181e-08
Minuit parameter uncertainties:
  1  3.34728e-06
  2  6.97902e-05
  3  2.93043e-06
  4  10.9835
  5  8.94943
  6  2.11721
  7  1.89121e-06
  8  27.3975
  9  9.29811
  10  5.83846e-06
  11  8.46091
  12  16.4577
  13  14.7823
  14  2.36257
  15  3.6707e-06
  16  1.46686e-07
  17  8.91598
  18  0.266396
  19  0.112431
Done.

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

Extracting fit parameters...

4FGL J1008.7-2909
   Spectrum: PowerLaw
296    Prefactor:  2.274e+01  2.740e+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.066e+00  1.124e-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.101e+00  2.664e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/691392/likelihoodResults_530928001_531187201_4FGL_J1008.7-2909_daily_bin1125.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) = 8985.5485008
delta logL = 0.00948509262889

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 8985.54058189
delta logL = 0.0174040036527

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    18.431       1.0000         .10000E-03   10000.    
     2 'Index     '    2.6909       1.0000          .0000       10.000    
     3 'Normalizat'    1.0927       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0692       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=   8985.541     FROM MIGRAD    STATUS=CONVERGED     93 CALLS      253 TOTAL
                     EDM=   .11E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     18.420        42.447        .93292E-04   -.19742E-04
   2  Index         2.6912        1.4706        .86555E-02    .31521E-03
   3  Normalizat    1.0926        .25241        .38129E-03    .54684E-04
   4  Prefactor     1.0693        .11209        .17367E-03   -.16986E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 18.4203
  Index      = 2.69121
  Normalizat = 1.09261
  Prefactor  = 1.06926
 **********
 **   18 **HESSE 
 **********

 FCN=   8985.541     FROM HESSE     STATUS=OK            25 CALLS      278 TOTAL
                     EDM=   .10E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     18.420        35.670        .37317E-05   -1.4849    
   2  Index         2.6912        1.2403        .17311E-02   -.47998    
   3  Normalizat    1.0926        .25119        .15251E-04   -.89989    
   4  Prefactor     1.0693        .11161        .34734E-04   -.90455    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.04205e-10
Minuit parameter uncertainties:
  1  35.7113
  2  1.25703
  3  0.251466
  4  0.111635
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/691392': 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) = 8985.54058169
delta logL = 0.0174042013768

Extracting fit parameters...

4FGL J1008.7-2909
   Spectrum: PowerLaw
296    Prefactor:  1.842e+01  3.571e+01  1.000e-04  1.000e+04 ( 1.000e-13)
297        Index:  2.691e+00  1.257e+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.069e+00  1.116e-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.093e+00  2.515e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 0.90
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/691392/cmap_HighResolution_530928001_531187201_4FGL_J1008.7-2909_daily_bin1125.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.15e-02', job_status='DONE', photon_flux_upper_limit='1.48e-07', time_completed='2021-09-01 11:54:06.286487', job_id='691392', GAL2='1.07', fit_tolerance='1e-08', EG2='1.09', EG='1.10', time_epoch_completed='1630522446.29', return_code2='0', ts='0.90', comment='SUCCESS', return_code='0', GAL='1.07', dlogl='1.74e-02', ts2='0.94', photon_index_error='0.00', photon_index='2.48' WHERE bin_id='1125' AND source_name='4FGL J1008.7-2909' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep  1 11:54:06 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0261>
Subject: Job 691392: <4FGL_J1008.7-2909_daily_bin1125> in cluster <slac> Done

Job <4FGL_J1008.7-2909_daily_bin1125> was submitted from host <rhel6-64a> by user <kocevski> in cluster <slac> at Wed Sep  1 11:40:32 2021
Job was executed on host(s) <bullet0261>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Sep  1 11:40:36 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:40:36 2021
Terminated at Wed Sep  1 11:54:07 2021
Results reported at Wed Sep  1 11:54:07 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1008.7-2909_daily_bin1125 152.199 -29.1559 530928001 531187201 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 :                                   720.44 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             303.54 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   810 sec.
    Turnaround time :                            815 sec.

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

