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


Performing analysis on: 4FGL_J1008.7-2909_daily_bin1522
RA = 152.199, Dec = -29.1559
tmin = 633830401, tmax = 634089601
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='693203', job_status='RUN', time_executed='2021-09-01 11:47:22.759089', time_epoch_executed='1630522042.76' WHERE source_name='4FGL J1008.7-2909' and cadence='daily' and bin_id='1522'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/693203

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

Retrieving the FT1 file...

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

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

Retrieving 48 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/693203/ft1_4FGL_J1008.7-2909_daily_bin1522.fits


Retrieving the FT1 file...

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

Retrieving 48 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/693203/ft2_4FGL_J1008.7-2909_daily_bin1522.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/693203/ft1_4FGL_J1008.7-2909_daily_bin1522.fits outfile=/scratch/kocevski/693203/ft1_filteredMKT_4FGL_J1008.7-2909_daily_bin1522.fits ra=152.199 dec=-29.1559 rad=12.0 tmin=633830401.0 tmax=634089601.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.90
user 3.47
sys 0.22

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/693203/ft1_filtered_4FGL_J1008.7-2909_daily_bin1522.fits" evtable="EVENTS" scfile=/scratch/kocevski/693203/ft2_4FGL_J1008.7-2909_daily_bin1522.fits sctable="SC_DATA" outfile=/scratch/kocevski/693203/ltcube_633830401_634089601_4FGL_J1008.7-2909_daily_bin1522.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/693203/ft2_4FGL_J1008.7-2909_daily_bin1522.fits
.....................!
real 15.34
user 14.49
sys 0.34

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/693203/ft1_filtered_4FGL_J1008.7-2909_daily_bin1522.fits evtable="EVENTS" scfile=/scratch/kocevski/693203/ft2_4FGL_J1008.7-2909_daily_bin1522.fits sctable="SC_DATA" expcube=/scratch/kocevski/693203/ltcube_633830401_634089601_4FGL_J1008.7-2909_daily_bin1522.fits outfile=/scratch/kocevski/693203/expmap_633830401_634089601_4FGL_J1008.7-2909_daily_bin1522.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/693203/ltcube_633830401_634089601_4FGL_J1008.7-2909_daily_bin1522.fits
.....................!
real 192.67
user 185.80
sys 5.53

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/693203/ft1_filtered_4FGL_J1008.7-2909_daily_bin1522.fits scfile=/scratch/kocevski/693203/ft2_4FGL_J1008.7-2909_daily_bin1522.fits outfile=/scratch/kocevski/693203/cmap_633830401_634089601_4FGL_J1008.7-2909_daily_bin1522.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.65
user 0.39
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/693203/ft1_filtered_4FGL_J1008.7-2909_daily_bin1522.fits scfile=/scratch/kocevski/693203/ft2_4FGL_J1008.7-2909_daily_bin1522.fits outfile=/scratch/kocevski/693203/cmap_HighResolution_633830401_634089601_4FGL_J1008.7-2909_daily_bin1522.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.64
user 0.40
sys 0.16

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .11960E-01   1.0000         .10000E-03   10000.    
     2 'Prefactor '    8.6012       1.0000         .10000E-03   10000.    
     3 'norm      '    .10005E-03   1.0000         .10000E-03   10000.    
     4 'norm      '    .10019E-03   1.0000         .10000E-03   10000.    
     5 'norm      '    6.4314       1.0000         .10000E-03   10000.    
     6 'norm      '    3.9039       1.0000         .10000E-03   10000.    
     7 'norm      '    5.2107       1.0000         .10000E-03   10000.    
     8 'Prefactor '    3.2932       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10079E-03   1.0000         .10000E-03   10000.    
    10 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    5.4076       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10177E-03   1.0000         .10000E-03   10000.    
    14 'norm      '    .79199       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    3.1168       1.0000         .10000E-03   10000.    
    17 'Prefactor '    16.761       1.0000         .10000E-03   10000.    
    18 'Normalizat'    1.1070       1.0000         .10000E-01   10.000    
    19 'Prefactor '    1.0946       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=   8755.432     FROM MIGRAD    STATUS=CONVERGED    393 CALLS     1642 TOTAL
                     EDM=   .19E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.0%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10005E-03    10.142       -.33509E-05** at limit **
   2  Prefactor     8.6181        32.837        .22960E-04   -.13439E-03
   3  norm          .10000E-03    2.4831       -.53875E-07** at limit **
   4  norm          .10000E-03    4.1653        .99617E-07** at limit **
   5  norm          6.4315        7.2837        .35767E-06   -.42979E-04
   6  norm          3.9039        1.5988        .26597E-07   -.13401E-03
   7  norm          5.2107        7.2948        .60533E-06   -.20066E-03
   8  Prefactor     3.2910        46.632        .32826E-06   -.12158E-04
   9  Prefactor     .10000E-03    5.6065       -.81247E-06** at limit **
  10  norm          .10000E-03    4.4194       -.73121E-07** at limit **
  11  norm          5.4041        9.0657       -.42665E-05    .26681E-03
  12  Prefactor     .10000E-03    5.0911        .74839E-06** at limit **
  13  Prefactor     .10000E-03    27.452        .54575E-06** at limit **
  14  norm          .79141        3.0991       -.13508E-05   -.15877E-02
  15  Prefactor     .10000E-03    6.3462        .33806E-06** at limit **
  16  Prefactor     3.1196        5.7822       -.45699E-06   -.54825E-03
  17  Prefactor     16.753        12.212        .19574E-05   -.23321E-03
  18  Normalizat    1.1070        .23656       -.81600E-06    .17660E-03
  19  Prefactor     1.0946        .99886E-01   -.20891E-06    .48911E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100049
  Prefactor  = 8.61815
  norm       = 0.0001
  norm       = 0.0001
  norm       = 6.43147
  norm       = 3.90391
  norm       = 5.21067
  Prefactor  = 3.29101
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 5.40407
  Prefactor  = 0.0001
  Prefactor  = 0.000100001
  norm       = 0.791409
  Prefactor  = 0.0001
  Prefactor  = 3.11958
  Prefactor  = 16.7531
  Normalizat = 1.10698
  Prefactor  = 1.0946
 **********
 **   18 **HESSE 
 **********

 FCN=   8755.432     FROM HESSE     STATUS=OK           272 CALLS     1914 TOTAL
                     EDM=   .41E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10005E-03    107.58        .56106E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     8.6181        31.498        .13668E-03   -1.5121    
   3  norm          .10000E-03    2.4997        .14398E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  norm          .10000E-03    4.1694        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          6.4315        7.2814        .15826E-03   -1.5201    
   6  norm          3.9039        1.6027        .72297E-04   -1.5313    
   7  norm          5.2107        7.2737        .17610E-03   -1.5251    
   8  Prefactor     3.2910        46.933        .22311E-03   -1.5345    
   9  Prefactor     .10000E-03    5.6116        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          .10000E-03    4.4322        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          5.4041        9.0276        .17281E-03   -1.5243    
  12  Prefactor     .10000E-03    5.1016        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    27.731        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          .79141        3.1221        .29806E-03   -1.5530    
  15  Prefactor     .10000E-03    6.3670        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     3.1196        5.5222        .22966E-03   -1.5355    
  17  Prefactor     16.753        12.099        .97830E-04   -1.4889    
  18  Normalizat    1.1070        .27102        .37937E-03   -.89528    
  19  Prefactor     1.0946        .11504        .17123E-03   -.89639    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.07165e-09
Minuit parameter uncertainties:
  1  0.00459533
  2  31.5586
  3  1.04261e-05
  4  3.52689e-06
  5  7.28241
  6  1.60268
  7  7.27498
  8  24.8793
  9  3.52363e-05
  10  5.26484e-05
  11  9.0299
  12  1.22474e-05
  13  0.000313493
  14  3.12273
  15  2.69656e-06
  16  5.52308
  17  12.1009
  18  0.271358
  19  0.115061
Done.

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

Extracting fit parameters...

4FGL J1008.7-2909
   Spectrum: PowerLaw
296    Prefactor:  3.291e+00  2.488e+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.095e+00  1.151e-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.107e+00  2.714e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/693203/likelihoodResults_633830401_634089601_4FGL_J1008.7-2909_daily_bin1522.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) = 8753.89750292
delta logL = 1.5340225354

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 8753.85630032
delta logL = 1.5752251357

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .13446       1.0000         .10000E-03   10000.    
     2 'Index     '    5.6409       1.0000          .0000       10.000    
     3 'Normalizat'    .97786       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.1311       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=   8753.856     FROM MIGRAD    STATUS=CONVERGED     56 CALLS      253 TOTAL
                     EDM=   .60E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .13104        1.1157        .48619E-02    .37094E-02
   2  Index         5.6532        2.1566        .12941        .22754E-03
   3  Normalizat    .97880        .55366E-01    .90388E-01    .46834E-04
   4  Prefactor     1.1308        .24953E-01    .36510E-01   -.42192E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.131036
  Index      = 5.6532
  Normalizat = 0.978798
  Prefactor  = 1.13077
 **********
 **   18 **HESSE 
 **********

 FCN=   8753.856     FROM HESSE     STATUS=NOT POSDEF    35 CALLS      288 TOTAL
                     EDM=   .24E-10    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .13104        2.9034        .22250E-03   -1.5636    
   2  Index         5.6532        3.9189        .47398E-02    .13101    
   3  Normalizat    .97880        .20239        .40028E-03   -.93744    
   4  Prefactor     1.1308        .89855E-01    .16874E-03   -.88489    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 2.40734e-11
Minuit parameter uncertainties:
  1  1.23321
  2  4.51957
  3  0.20255
  4  0.0898666
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/693203': No such file or directory
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 8753.85628133
delta logL = 1.57524412508

Extracting fit parameters...

4FGL J1008.7-2909
   Spectrum: PowerLaw
296    Prefactor:  1.310e-01  1.233e+00  1.000e-04  1.000e+04 ( 1.000e-13)
297        Index:  5.653e+00  4.520e+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.131e+00  8.987e-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:  9.788e-01  2.025e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 3.42
Ra Dec: 152.199 -29.156
Photon Index (Free Index): 5.65 +/- 4.52
Photon Flux (Free Index): 9.78e-08 +/- 6.40e-08
Energy Flux (Free Index): 1.24e-05 +/- 9.53e-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/693203/cmap_HighResolution_633830401_634089601_4FGL_J1008.7-2909_daily_bin1522.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='8.59e-03', comment='SUCCESS', energy_flux2='1.24e-05', dlogl='1.58e+00', photon_flux2='9.78e-08', job_status='DONE', time_completed='2021-09-01 11:58:46.791245', photon_index_error2='4.52', photon_index2='5.65', ts='0.02', fit_tolerance='1e-08', GAL='1.09', photon_index_error='0.00', photon_flux_upper_limit='1.11e-07', energy_flux_error2='9.53e-06', EG='1.11', time_epoch_completed='1630522726.79', return_code='0', job_id='693203', GAL2='1.13', EG2='0.98', return_code2='102', photon_flux_error2='6.40e-08', ts2='3.42', photon_index='2.48' WHERE bin_id='1522' AND source_name='4FGL J1008.7-2909' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep  1 11:58:46 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0101>
Subject: Job 693203: <4FGL_J1008.7-2909_daily_bin1522> in cluster <slac> Done

Job <4FGL_J1008.7-2909_daily_bin1522> 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) <bullet0101>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Sep  1 11:46:00 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:00 2021
Terminated at Wed Sep  1 11:58:47 2021
Results reported at Wed Sep  1 11:58:47 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1008.7-2909_daily_bin1522 152.199 -29.1559 633830401 634089601 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 :                                   676.12 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             315.82 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   767 sec.
    Turnaround time :                            770 sec.

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

