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


Performing analysis on: 4FGL_J1008.7-2909_daily_bin1554
RA = 152.199, Dec = -29.1559
tmin = 642124801, tmax = 642384001
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='693235', job_status='RUN', time_executed='2021-09-01 11:47:49.826498', time_epoch_executed='1630522069.83' WHERE source_name='4FGL J1008.7-2909' and cadence='daily' and bin_id='1554'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/693235

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/693235/ft1_4FGL_J1008.7-2909_daily_bin1554.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/693235/ft2_4FGL_J1008.7-2909_daily_bin1554.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/693235/ft1_4FGL_J1008.7-2909_daily_bin1554.fits outfile=/scratch/kocevski/693235/ft1_filteredMKT_4FGL_J1008.7-2909_daily_bin1554.fits ra=152.199 dec=-29.1559 rad=12.0 tmin=642124801.0 tmax=642384001.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 4.87
user 4.10
sys 0.25

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/693235/ft1_filtered_4FGL_J1008.7-2909_daily_bin1554.fits" evtable="EVENTS" scfile=/scratch/kocevski/693235/ft2_4FGL_J1008.7-2909_daily_bin1554.fits sctable="SC_DATA" outfile=/scratch/kocevski/693235/ltcube_642124801_642384001_4FGL_J1008.7-2909_daily_bin1554.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/693235/ft2_4FGL_J1008.7-2909_daily_bin1554.fits
.....................!
real 13.95
user 13.31
sys 0.34

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/693235/ft1_filtered_4FGL_J1008.7-2909_daily_bin1554.fits evtable="EVENTS" scfile=/scratch/kocevski/693235/ft2_4FGL_J1008.7-2909_daily_bin1554.fits sctable="SC_DATA" expcube=/scratch/kocevski/693235/ltcube_642124801_642384001_4FGL_J1008.7-2909_daily_bin1554.fits outfile=/scratch/kocevski/693235/expmap_642124801_642384001_4FGL_J1008.7-2909_daily_bin1554.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/693235/ltcube_642124801_642384001_4FGL_J1008.7-2909_daily_bin1554.fits
.....................!
real 192.11
user 186.22
sys 4.68

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/693235/ft1_filtered_4FGL_J1008.7-2909_daily_bin1554.fits scfile=/scratch/kocevski/693235/ft2_4FGL_J1008.7-2909_daily_bin1554.fits outfile=/scratch/kocevski/693235/cmap_642124801_642384001_4FGL_J1008.7-2909_daily_bin1554.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/693235/ft1_filtered_4FGL_J1008.7-2909_daily_bin1554.fits scfile=/scratch/kocevski/693235/ft2_4FGL_J1008.7-2909_daily_bin1554.fits outfile=/scratch/kocevski/693235/cmap_HighResolution_642124801_642384001_4FGL_J1008.7-2909_daily_bin1554.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.72
user 0.39
sys 0.15

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/693235/ft1_filtered_4FGL_J1008.7-2909_daily_bin1554.fits evtable="EVENTS" scfile=/scratch/kocevski/693235/ft2_4FGL_J1008.7-2909_daily_bin1554.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/693235/Model_4FGL_J1008.7-2909_daily_bin1554.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/693235/ft1_filtered_4FGL_J1008.7-2909_daily_bin1554.fits.....................!
real 110.47
user 108.84
sys 1.21

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     3 'norm      '    .38307       1.0000         .10000E-03   10000.    
     4 'norm      '    .11613       1.0000         .10000E-03   10000.    
     5 'norm      '    10.670       1.0000         .10000E-03   10000.    
     6 'norm      '    1.3612       1.0000         .10000E-03   10000.    
     7 'norm      '    6.3544       1.0000         .10000E-03   10000.    
     8 'Prefactor '    17.309       1.0000         .10000E-03   10000.    
     9 'Prefactor '    7.9825       1.0000         .10000E-03   10000.    
    10 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    6.3459       1.0000         .10000E-03   10000.    
    14 'norm      '    3.6500       1.0000         .10000E-03   10000.    
    15 'Prefactor '    3.3926       1.0000         .10000E-03   10000.    
    16 'Prefactor '    2.1884       1.0000         .10000E-03   10000.    
    17 'Prefactor '    1.6205       1.0000         .10000E-03   10000.    
    18 'Normalizat'    .82333       1.0000         .10000E-01   10.000    
    19 'Prefactor '    1.0141       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=   11217.18     FROM MIGRAD    STATUS=CONVERGED    406 CALLS     1953 TOTAL
                     EDM=   .13E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    13.605        .90712E-02** at limit **
   2  Prefactor     .10000E-03    25.258        .90712E-02** at limit **
   3  norm          .40689        1.7288        .74325E-01    .86349E-03
   4  norm          .51201E-01    5.5415        .95878E-01    .19889E-03
   5  norm          10.669        7.9320        .30664E-02   -.15709E-03
   6  norm          1.3613        .89123        .93572E-02    .70002E-03
   7  norm          6.3554        7.1994        .39807E-02    .14289E-02
   8  Prefactor     17.305        20.788        .24067E-02   -.40169E-03
   9  Prefactor     7.9822        11.509        .35478E-02   -.98157E-04
  10  norm          .10000E-03    1.7465        .90712E-02** at limit **
  11  norm          .10000E-03    3.4157        .90712E-02** at limit **
  12  Prefactor     .10000E-03    3.3165        .90712E-02** at limit **
  13  Prefactor     6.3430        19.465        .39834E-02   -.35594E-03
  14  norm          3.6517        4.5304        .52861E-02    .10468E-02
  15  Prefactor     3.3924        6.4271        .54915E-02   -.14454E-02
  16  Prefactor     2.1884        3.4351        .69556E-02    .96082E-03
  17  Prefactor     1.6235        8.6107        .83116E-02    .11331E-02
  18  Normalizat    .82308        .17597        .82602E-01    .37245E-04
  19  Prefactor     1.0142        .78156E-01    .42791E-01   -.37508E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.406892
  norm       = 0.0512009
  norm       = 10.6687
  norm       = 1.36131
  norm       = 6.35539
  Prefactor  = 17.3046
  Prefactor  = 7.98218
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 6.34296
  norm       = 3.65173
  Prefactor  = 3.39241
  Prefactor  = 2.18835
  Prefactor  = 1.62346
  Normalizat = 0.823077
  Prefactor  = 1.0142
 **********
 **   18 **HESSE 
 **********

 FCN=   11217.18     FROM HESSE     STATUS=OK           284 CALLS     2237 TOTAL
                     EDM=   .77E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    13.841        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    25.717        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          .40689        7.7671        .26648E-02   -1.5580    
   4  norm          .51201E-01    7.2629        .78184E-01   -1.5663    
   5  norm          10.669        7.9276        .12266E-03   -1.5055    
   6  norm          1.3613        .88683        .77431E-04   -1.5475    
   7  norm          6.3554        7.1879        .15923E-03   -1.5204    
   8  Prefactor     17.305        20.848        .96268E-04   -1.4876    
   9  Prefactor     7.9822        11.498        .14191E-03   -1.5143    
  10  norm          .10000E-03    1.7493        .13667E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          .10000E-03    3.4560        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    3.3219        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     6.3430        18.839        .15934E-03   -1.5204    
  14  norm          3.6517        4.3912        .17401E-03   -1.5326    
  15  Prefactor     3.3924        6.4090        .21966E-03   -1.5340    
  16  Prefactor     2.1884        3.3335        .20984E-03   -1.5412    
  17  Prefactor     1.6235        8.4060        .33246E-03   -1.5453    
  18  Normalizat    .82308        .20167        .36573E-03   -.99218    
  19  Prefactor     1.0142        .91144E-01    .15621E-03   -.92258    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 7.66542e-09
Minuit parameter uncertainties:
  1  7.45278e-05
  2  4.7476e-05
  3  3.55557
  4  1.21857
  5  7.92839
  6  0.886839
  7  7.18887
  8  20.8567
  9  11.501
  10  1.41299e-06
  11  6.77456e-06
  12  2.71834e-06
  13  18.8568
  14  4.39159
  15  6.41032
  16  3.33378
  17  7.38974
  18  0.201849
  19  0.0911575
Done.

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

Extracting fit parameters...

4FGL J1008.7-2909
   Spectrum: PowerLaw
296    Prefactor:  1.730e+01  2.086e+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.014e+00  9.116e-02  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:  8.231e-01  2.018e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/693235/likelihoodResults_642124801_642384001_4FGL_J1008.7-2909_daily_bin1554.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) = 11216.0019975
delta logL = 1.17521819024

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 11215.9602304
delta logL = 1.21698521891

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    3.2006       1.0000         .10000E-03   10000.    
     2 'Index     '    3.9523       1.0000          .0000       10.000    
     3 'Normalizat'    .75063       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0355       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.
 MACHINE ACCURACY LIMITS FURTHER IMPROVEMENT.

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   11215.96     FROM MIGRAD    STATUS=CONVERGED    100 CALLS      309 TOTAL
                     EDM=   .18E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     3.1819        56.222        .54443E-03   -.75355E-03
   2  Index         3.9549        3.8079        .54189E-02   -.79391E-04
   3  Normalizat    .75057        .16793        .38131E-03   -.17263E-03
   4  Prefactor     1.0355        .78157E-01    .15470E-03   -.38941E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 3.18191
  Index      = 3.95489
  Normalizat = 0.750566
  Prefactor  = 1.03548
 **********
 **   18 **HESSE 
 **********

 FCN=   11215.96     FROM HESSE     STATUS=OK            25 CALLS      334 TOTAL
                     EDM=   .89E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     3.1819        7.8745        .21777E-04   -1.5351    
   2  Index         3.9549        1.2694        .21676E-03   -.21057    
   3  Normalizat    .75057        .19801        .15252E-04   -1.0193    
   4  Prefactor     1.0355        .91076E-01    .30939E-04   -.91556    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 8.85668e-11
Minuit parameter uncertainties:
  1  7.87705
  2  1.28407
  3  0.198198
  4  0.0910899
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/693235': 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) = 11215.9602267
delta logL = 1.2169889851

Extracting fit parameters...

4FGL J1008.7-2909
   Spectrum: PowerLaw
296    Prefactor:  3.182e+00  7.877e+00  1.000e-04  1.000e+04 ( 1.000e-13)
297        Index:  3.955e+00  1.284e+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.035e+00  9.109e-02  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.506e-01  1.982e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 3.52
Ra Dec: 152.199 -29.156
Photon Index (Free Index): 3.95 +/- 1.28
Photon Flux (Free Index): 8.08e-08 +/- 5.06e-08
Energy Flux (Free Index): 1.22e-05 +/- 7.84e-06

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/693235/cmap_HighResolution_642124801_642384001_4FGL_J1008.7-2909_daily_bin1554.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='8.28e-03', comment='SUCCESS', energy_flux2='1.22e-05', dlogl='1.22e+00', photon_flux2='8.08e-08', job_status='DONE', time_completed='2021-09-01 12:01:51.311536', photon_index_error2='1.28', photon_index2='3.95', ts='0.83', fit_tolerance='1e-08', GAL='1.01', photon_index_error='0.00', photon_flux_upper_limit='1.07e-07', energy_flux_error2='7.84e-06', EG='0.82', time_epoch_completed='1630522911.31', return_code='0', job_id='693235', GAL2='1.04', EG2='0.75', return_code2='0', photon_flux_error2='5.06e-08', ts2='3.52', photon_index='2.48' WHERE bin_id='1554' AND source_name='4FGL J1008.7-2909' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep  1 12:01:51 PDT 2021


------------------------------------------------------------
Sender: LSF System <scs@bullet0144>
Subject: Job 693235: <4FGL_J1008.7-2909_daily_bin1554> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1008.7-2909_daily_bin1554 152.199 -29.1559 642124801 642384001 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 :                                   831.00 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             298.66 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              7
    Max Threads :                                21
    Run time :                                   948 sec.
    Turnaround time :                            951 sec.

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

