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


Performing analysis on: 4FGL_J1008.7-2909_daily_bin1051
RA = 152.199, Dec = -29.1559
tmin = 511747201, tmax = 512006401
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='691277', job_status='RUN', time_executed='2021-09-01 11:42:36.391908', time_epoch_executed='1630521756.39' WHERE source_name='4FGL J1008.7-2909' and cadence='daily' and bin_id='1051'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/691277

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/691277/ft1_4FGL_J1008.7-2909_daily_bin1051.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/691277/ft2_4FGL_J1008.7-2909_daily_bin1051.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/691277/ft1_4FGL_J1008.7-2909_daily_bin1051.fits outfile=/scratch/kocevski/691277/ft1_filteredMKT_4FGL_J1008.7-2909_daily_bin1051.fits ra=152.199 dec=-29.1559 rad=12.0 tmin=511747201.0 tmax=512006401.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.73
user 3.34
sys 0.22

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/691277/ft2_4FGL_J1008.7-2909_daily_bin1051.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/691277/ft1_filteredMKT_4FGL_J1008.7-2909_daily_bin1051.fits evtable="EVENTS" outfile="/scratch/kocevski/691277/ft1_filtered_4FGL_J1008.7-2909_daily_bin1051.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.16

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/691277/ft1_filtered_4FGL_J1008.7-2909_daily_bin1051.fits" evtable="EVENTS" scfile=/scratch/kocevski/691277/ft2_4FGL_J1008.7-2909_daily_bin1051.fits sctable="SC_DATA" outfile=/scratch/kocevski/691277/ltcube_511747201_512006401_4FGL_J1008.7-2909_daily_bin1051.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/691277/ft2_4FGL_J1008.7-2909_daily_bin1051.fits
.....................!
real 17.17
user 16.76
sys 0.34

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/691277/ft1_filtered_4FGL_J1008.7-2909_daily_bin1051.fits evtable="EVENTS" scfile=/scratch/kocevski/691277/ft2_4FGL_J1008.7-2909_daily_bin1051.fits sctable="SC_DATA" expcube=/scratch/kocevski/691277/ltcube_511747201_512006401_4FGL_J1008.7-2909_daily_bin1051.fits outfile=/scratch/kocevski/691277/expmap_511747201_512006401_4FGL_J1008.7-2909_daily_bin1051.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/691277/ltcube_511747201_512006401_4FGL_J1008.7-2909_daily_bin1051.fits
.....................!
real 193.01
user 187.98
sys 4.30

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/691277/ft1_filtered_4FGL_J1008.7-2909_daily_bin1051.fits scfile=/scratch/kocevski/691277/ft2_4FGL_J1008.7-2909_daily_bin1051.fits outfile=/scratch/kocevski/691277/cmap_511747201_512006401_4FGL_J1008.7-2909_daily_bin1051.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.95
user 0.40
sys 0.18

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/691277/ft1_filtered_4FGL_J1008.7-2909_daily_bin1051.fits scfile=/scratch/kocevski/691277/ft2_4FGL_J1008.7-2909_daily_bin1051.fits outfile=/scratch/kocevski/691277/cmap_HighResolution_511747201_512006401_4FGL_J1008.7-2909_daily_bin1051.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.68
user 0.38
sys 0.17

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10078E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    43.683       1.0000         .10000E-03   10000.    
     3 'norm      '    7.8133       1.0000         .10000E-03   10000.    
     4 'norm      '    9.0762       1.0000         .10000E-03   10000.    
     5 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
     6 'norm      '    .67204       1.0000         .10000E-03   10000.    
     7 'norm      '    2.2655       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10023E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    2.6733       1.0000         .10000E-03   10000.    
    10 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    11.292       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    11.952       1.0000         .10000E-03   10000.    
    14 'norm      '    2.9199       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10086E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    3.1872       1.0000         .10000E-03   10000.    
    18 'Normalizat'    1.1664       1.0000         .10000E-01   10.000    
    19 'Prefactor '    .97089       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=   6266.138     FROM MIGRAD    STATUS=CONVERGED    381 CALLS     1886 TOTAL
                     EDM=   .92E-11  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.5%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    14.706        .25072E-06** at limit **
   2  Prefactor     43.684        45.706        .11680E-05   -.16552E-05
   3  norm          7.8124        9.1070       -.13436E-07   -.17652E-03
   4  norm          9.0766        19.314        .23035E-06   -.32738E-05
   5  norm          .10000E-03    4.9466        .21329E-07** at limit **
   6  norm          .67190        1.9649        .70169E-08   -.52821E-04
   7  norm          2.2655        5.3824        .31855E-08   -.34761E-04
   8  Prefactor     .10000E-03    34.531       -.16369E-06** at limit **
   9  Prefactor     2.6734        9.8873       -.84454E-07   -.19902E-04
  10  norm          .10000E-03    8.2483        .26654E-05** at limit **
  11  norm          11.293        9.1309       -.12338E-06   -.47707E-04
  12  Prefactor     .10000E-03    7.2567       -.64699E-06** at limit **
  13  Prefactor     11.950        21.989       -.10520E-05   -.62947E-05
  14  norm          2.9179        4.3765        .22082E-06   -.58295E-05
  15  Prefactor     .10000E-03    8.8904       -.21877E-05** at limit **
  16  Prefactor     .10000E-03    3.2514        .95555E-08** at limit **
  17  Prefactor     3.1862        4.9930        .55588E-07   -.23583E-03
  18  Normalizat    1.1665        .26268        .20289E-07   -.13778E-04
  19  Prefactor     .97086        .10981       -.86450E-07   -.11741E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 43.6844
  norm       = 7.81244
  norm       = 9.07662
  norm       = 0.0001
  norm       = 0.671898
  norm       = 2.26548
  Prefactor  = 0.0001
  Prefactor  = 2.67341
  norm       = 0.0001
  norm       = 11.2933
  Prefactor  = 0.0001
  Prefactor  = 11.95
  norm       = 2.91791
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 3.18623
  Normalizat = 1.16653
  Prefactor  = 0.970863
 **********
 **   18 **HESSE 
 **********

 FCN=   6266.138     FROM HESSE     STATUS=OK           272 CALLS     2158 TOTAL
                     EDM=   .16E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    14.749        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     43.684        45.657        .60657E-04   -1.4385    
   3  norm          7.8124        9.9681        .71727E-03   -1.5149    
   4  norm          9.0766        19.443        .13304E-03   -1.5105    
   5  norm          .10000E-03    4.9633        .17194E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          .67190        2.3902        .16781E-02   -1.5544    
   7  norm          2.2655        5.3648        .27289E-03   -1.5407    
   8  Prefactor     .10000E-03    34.678        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     2.6734        9.8757        .24925E-03   -1.5381    
  10  norm          .10000E-03    8.2904        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          11.293        9.1366        .11922E-03   -1.5036    
  12  Prefactor     .10000E-03    7.2612        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     11.950        21.904        .11587E-03   -1.5016    
  14  norm          2.9179        4.3475        .17562E-03   -1.5366    
  15  Prefactor     .10000E-03    8.8815        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    3.2990        .13920E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     3.1862        10.952        .11349E-02   -1.5351    
  18  Normalizat    1.1665        .30117        .36545E-03   -.87643    
  19  Prefactor     .97086        .12850        .17299E-03   -.93707    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.56106e-08
Minuit parameter uncertainties:
  1  1.19452e-05
  2  45.6935
  3  9.97024
  4  19.4564
  5  7.19828e-08
  6  2.39054
  7  5.36591
  8  8.76453e-07
  9  9.88169
  10  2.8627e-06
  11  9.13774
  12  1.15339e-06
  13  21.9189
  14  4.34796
  15  5.99711e-07
  16  3.91789e-06
  17  10.9584
  18  0.301615
  19  0.128543
Done.

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

Extracting fit parameters...

4FGL J1008.7-2909
   Spectrum: PowerLaw
296    Prefactor:  1.000e-04  8.765e-07  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:  9.709e-01  1.285e-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.167e+00  3.016e-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: 1.30e-07 ph cm-2 s-1
Energy Flux Upper Limit: 1.01e-02 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/691277/likelihoodResults_511747201_512006401_4FGL_J1008.7-2909_daily_bin1051.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) = 6266.13786459
delta logL = -0.000137344796713

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 6266.13772751
delta logL = -2.61882632913e-07

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 'Index     '    2.4109       1.0000          .0000       10.000    
     3 'Normalizat'    1.1665       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .97087       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=   6266.138     FROM MIGRAD    STATUS=CONVERGED     55 CALLS      237 TOTAL
                     EDM=   .91E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    1190.3        .90712E-02** at limit **
   2  Index         2.4597        5.1617        .50000       -.16012E-04
   3  Normalizat    1.1665        .43713E-01    .82546E-01   -.32284E-03
   4  Prefactor     .97087        .19177E-01    .45902E-01   -.13599E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Index      = 2.45967
  Normalizat = 1.16653
  Prefactor  = 0.970865
 **********
 **   18 **HESSE 
 **********

 FCN=   6266.138     FROM HESSE     STATUS=NOT POSDEF    29 CALLS      266 TOTAL
                     EDM=   .29E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    6754.8        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.4597        8.1956        .50000       -.53294    
   3  Normalizat    1.1665        .90180E-01    .36545E-03   -.87644    
   4  Prefactor     .97087        .39637E-01    .17299E-03   -.93707    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 2.93178e-08
Minuit parameter uncertainties:
  1  0.000484122
  2  48.0371
  3  0.0901924
  4  0.0396385
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/691277': 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) = 6266.13772734
delta logL = -8.74752004165e-08

Extracting fit parameters...

4FGL J1008.7-2909
   Spectrum: PowerLaw
296    Prefactor:  1.000e-04  4.841e-04  1.000e-04  1.000e+04 ( 1.000e-13)
297        Index:  2.460e+00  4.804e+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:  9.709e-01  3.964e-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:  1.167e+00  9.019e-02  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  0.000e+00 [aplpy.core]
INFO: Auto-setting vmax to  0.000e+00 [aplpy.core]
Saving /scratch/kocevski/691277/cmap_HighResolution_511747201_512006401_4FGL_J1008.7-2909_daily_bin1051.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.01e-02', job_status='DONE', photon_flux_upper_limit='1.30e-07', time_completed='2021-09-01 11:52:29.721059', job_id='691277', GAL2='0.97', fit_tolerance='1e-08', EG2='1.17', EG='1.17', time_epoch_completed='1630522349.72', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.97', dlogl='-8.75e-08', ts2='-0.00', photon_index_error='0.00', photon_index='2.48' WHERE bin_id='1051' AND source_name='4FGL J1008.7-2909' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep  1 11:52:29 PDT 2021


------------------------------------------------------------
Sender: LSF System <scs@bullet0182>
Subject: Job 691277: <4FGL_J1008.7-2909_daily_bin1051> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1008.7-2909_daily_bin1051 152.199 -29.1559 511747201 512006401 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 :                                   591.38 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             315.33 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   714 sec.
    Turnaround time :                            727 sec.

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

