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


Performing analysis on: 4FGL_J1008.7-2909_daily_bin1112
RA = 152.199, Dec = -29.1559
tmin = 527558401, tmax = 527817601
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='691372', job_status='RUN', time_executed='2021-09-01 11:41:56.958185', time_epoch_executed='1630521716.96' WHERE source_name='4FGL J1008.7-2909' and cadence='daily' and bin_id='1112'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/691372

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/691372/ft1_4FGL_J1008.7-2909_daily_bin1112.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/691372/ft2_4FGL_J1008.7-2909_daily_bin1112.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/691372/ft1_4FGL_J1008.7-2909_daily_bin1112.fits outfile=/scratch/kocevski/691372/ft1_filteredMKT_4FGL_J1008.7-2909_daily_bin1112.fits ra=152.199 dec=-29.1559 rad=12.0 tmin=527558401.0 tmax=527817601.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.65
user 3.41
sys 0.21

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/691372/ft1_filtered_4FGL_J1008.7-2909_daily_bin1112.fits" evtable="EVENTS" scfile=/scratch/kocevski/691372/ft2_4FGL_J1008.7-2909_daily_bin1112.fits sctable="SC_DATA" outfile=/scratch/kocevski/691372/ltcube_527558401_527817601_4FGL_J1008.7-2909_daily_bin1112.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/691372/ft2_4FGL_J1008.7-2909_daily_bin1112.fits
.....................!
real 17.84
user 17.43
sys 0.35

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/691372/ft1_filtered_4FGL_J1008.7-2909_daily_bin1112.fits evtable="EVENTS" scfile=/scratch/kocevski/691372/ft2_4FGL_J1008.7-2909_daily_bin1112.fits sctable="SC_DATA" expcube=/scratch/kocevski/691372/ltcube_527558401_527817601_4FGL_J1008.7-2909_daily_bin1112.fits outfile=/scratch/kocevski/691372/expmap_527558401_527817601_4FGL_J1008.7-2909_daily_bin1112.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/691372/ltcube_527558401_527817601_4FGL_J1008.7-2909_daily_bin1112.fits
.....................!
real 193.56
user 188.47
sys 4.43

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/691372/ft1_filtered_4FGL_J1008.7-2909_daily_bin1112.fits scfile=/scratch/kocevski/691372/ft2_4FGL_J1008.7-2909_daily_bin1112.fits outfile=/scratch/kocevski/691372/cmap_527558401_527817601_4FGL_J1008.7-2909_daily_bin1112.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.63
user 0.40
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/691372/ft1_filtered_4FGL_J1008.7-2909_daily_bin1112.fits scfile=/scratch/kocevski/691372/ft2_4FGL_J1008.7-2909_daily_bin1112.fits outfile=/scratch/kocevski/691372/cmap_HighResolution_527558401_527817601_4FGL_J1008.7-2909_daily_bin1112.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.62
user 0.41
sys 0.15

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/691372/ft1_filtered_4FGL_J1008.7-2909_daily_bin1112.fits evtable="EVENTS" scfile=/scratch/kocevski/691372/ft2_4FGL_J1008.7-2909_daily_bin1112.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/691372/Model_4FGL_J1008.7-2909_daily_bin1112.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/691372/ft1_filtered_4FGL_J1008.7-2909_daily_bin1112.fits.....................!
real 122.93
user 119.69
sys 1.18

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10115E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10425E-03   1.0000         .10000E-03   10000.    
     3 'norm      '    1.8168       1.0000         .10000E-03   10000.    
     4 'norm      '    .69886E-02   1.0000         .10000E-03   10000.    
     5 'norm      '    3.6478       1.0000         .10000E-03   10000.    
     6 'norm      '    2.0825       1.0000         .10000E-03   10000.    
     7 'norm      '    .20297E-02   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .25368E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    15.666       1.0000         .10000E-03   10000.    
    10 'norm      '    4.0286       1.0000         .10000E-03   10000.    
    11 'norm      '    3.9531       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10034E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    1.1716       1.0000         .10000E-03   10000.    
    14 'norm      '    .36958E-02   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10886E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    1.3594       1.0000         .10000E-03   10000.    
    17 'Prefactor '    1.3719       1.0000         .10000E-03   10000.    
    18 'Normalizat'    .97717       1.0000         .10000E-01   10.000    
    19 'Prefactor '    1.0829       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.

 FCN=   11913.61     FROM MIGRAD    STATUS=CONVERGED    433 CALLS     1720 TOTAL
                     EDM=   .80E-06    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    2.5922         .0000    ** at limit **
   2  Prefactor     .10000E-03    5.8533         .0000    ** at limit **
   3  norm          1.8070        3.4771         .0000        .12360E-02
   4  norm          .10069E-03    6.9544         .0000    ** at limit **
   5  norm          3.6518        3.6266         .0000       -.95803E-02
   6  norm          2.0830        1.0371         .0000        .10276E-03
   7  norm          .10577E-03    3.9017         .0000    ** at limit **
   8  Prefactor     .10000E-03    13.005         .0000    ** at limit **
   9  Prefactor     15.599        12.597         .0000       -.30771E-02
  10  norm          4.0052        6.5805         .0000        .71055E-02
  11  norm          3.9984        5.8693         .0000        .41539E-03
  12  Prefactor     .10000E-03    13.985         .0000    ** at limit **
  13  Prefactor     1.1503        46.662         .0000       -.13505E-02
  14  norm          .10700E-03    1.0254         .0000    ** at limit **
  15  Prefactor     .10000E-03    3.8763         .0000    ** at limit **
  16  Prefactor     1.3587        3.1454         .0000        .19401E-02
  17  Prefactor     1.3720        8.1419         .0000        .21131E-01
  18  Normalizat    .97712        .18045         .0000        .24750E-04
  19  Prefactor     1.0829        .81871E-01     .0000       -.19357E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 1.807
  norm       = 0.000100692
  norm       = 3.65181
  norm       = 2.08304
  norm       = 0.000105774
  Prefactor  = 0.0001
  Prefactor  = 15.5989
  norm       = 4.00522
  norm       = 3.99842
  Prefactor  = 0.0001
  Prefactor  = 1.1503
  norm       = 0.000106999
  Prefactor  = 0.0001
  Prefactor  = 1.3587
  Prefactor  = 1.37197
  Normalizat = 0.977118
  Prefactor  = 1.08295
 **********
 **   18 **HESSE 
 **********

 FCN=   11913.61     FROM HESSE     STATUS=OK           284 CALLS     2004 TOTAL
                     EDM=   .16E-06    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    2.5947        .17162E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    5.8583        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          1.8070        3.4531        .27266E-03   -1.5439    
   4  norm          .10069E-03    40.096        .55310E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          3.6518        3.6334        .10111E-02   -1.5326    
   6  norm          2.0830        1.0398        .28615E-04   -1.5419    
   7  norm          .10577E-03    71.266        .40930E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    13.098        .21459E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     15.599        12.510        .10119E-03   -1.4918    
  10  norm          4.0052        6.5178        .10046E-02   -1.5308    
  11  norm          3.9984        5.8142        .20288E-03   -1.5308    
  12  Prefactor     .10000E-03    14.510        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     1.1503        39.955        .42382E-03   -1.5493    
  14  norm          .10700E-03    1.3569        .37991E-01   -1.5707    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    3.8860        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     1.3587        2.8985        .23982E-03   -1.5475    
  17  Prefactor     1.3720        8.0339        .18608E-02   -1.5474    
  18  Normalizat    .97712        .20641        .36329E-03   -.93801    
  19  Prefactor     1.0829        .93787E-01    .16341E-03   -.90013    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.55888e-07
Minuit parameter uncertainties:
  1  7.91409e-06
  2  2.70838e-05
  3  3.45344
  4  0.0105401
  5  3.6336
  6  1.0398
  7  0.0406203
  8  9.42051e-06
  9  12.5125
  10  6.51897
  11  5.81504
  12  0.000138077
  13  13.568
  14  0.00616356
  15  1.32756e-05
  16  2.89878
  17  6.64106
  18  0.206581
  19  0.0938014
Done.

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

Extracting fit parameters...

4FGL J1008.7-2909
   Spectrum: PowerLaw
296    Prefactor:  1.000e-04  9.421e-06  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.083e+00  9.380e-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.771e-01  2.066e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/691372/likelihoodResults_527558401_527817601_4FGL_J1008.7-2909_daily_bin1112.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) = 11913.6073635
delta logL = -0.000363847586414

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 11913.6069996
delta logL = 3.08336893795e-08

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.4969       1.0000          .0000       10.000    
     3 'Normalizat'    .97712       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0829       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=   11913.61     FROM MIGRAD    STATUS=CONVERGED     53 CALLS      209 TOTAL
                     EDM=   .11E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    13.173        .90712E-02** at limit **
   2  Index         2.5113        6.2525        .50000       -.98395E-05
   3  Normalizat    .97712        .17015        .82069E-01    .57596E-04
   4  Prefactor     1.0829        .80579E-01    .38274E-01    .23320E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Index      = 2.51129
  Normalizat = 0.977118
  Prefactor  = 1.08295
 **********
 **   18 **HESSE 
 **********

 FCN=   11913.61     FROM HESSE     STATUS=NOT POSDEF    33 CALLS      242 TOTAL
                     EDM=   .19E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    6459.5        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.5113        7.4202        .50000       -.52099    
   3  Normalizat    .97712        .17475        .36329E-03   -.93801    
   4  Prefactor     1.0829        .82839E-01    .16341E-03   -.90013    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 1.89581e-08
Minuit parameter uncertainties:
  1  0.000443793
  2  67.9838
  3  0.17485
  4  0.0828484
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/691372': 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) = 11913.6069996
delta logL = 6.36409822619e-08

Extracting fit parameters...

4FGL J1008.7-2909
   Spectrum: PowerLaw
296    Prefactor:  1.000e-04  4.438e-04  1.000e-04  1.000e+04 ( 1.000e-13)
297        Index:  2.511e+00  6.798e+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:  1.083e+00  8.285e-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.771e-01  1.748e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Creating a high resolution counts map...
INFO: Auto-setting vmin to -1.000e-01 [aplpy.core]
INFO: Auto-setting vmax to  1.110e+00 [aplpy.core]
Saving /scratch/kocevski/691372/cmap_HighResolution_527558401_527817601_4FGL_J1008.7-2909_daily_bin1112.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='5.09e-03', job_status='DONE', photon_flux_upper_limit='6.55e-08', time_completed='2021-09-01 11:55:49.796606', job_id='691372', GAL2='1.08', fit_tolerance='1e-08', EG2='0.98', EG='0.98', time_epoch_completed='1630522549.8', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.08', dlogl='6.36e-08', ts2='-0.00', photon_index_error='0.00', photon_index='2.48' WHERE bin_id='1112' AND source_name='4FGL J1008.7-2909' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep  1 11:55:49 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0167>
Subject: Job 691372: <4FGL_J1008.7-2909_daily_bin1112> in cluster <slac> Done

Job <4FGL_J1008.7-2909_daily_bin1112> was submitted from host <rhel6-64a> by user <kocevski> in cluster <slac> at Wed Sep  1 11:40:31 2021
Job was executed on host(s) <bullet0167>, 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:55:50 2021
Results reported at Wed Sep  1 11:55:50 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1008.7-2909_daily_bin1112 152.199 -29.1559 527558401 527817601 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 :                                   829.11 sec.
    Max Memory :                                 1258 MB
    Average Memory :                             331.03 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   914 sec.
    Turnaround time :                            919 sec.

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

