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


Performing analysis on: 4FGL_J1008.7-2909_daily_bin1578
RA = 152.199, Dec = -29.1559
tmin = 648345601, tmax = 648604801
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='693270', job_status='RUN', time_executed='2021-09-01 11:47:29.528681', time_epoch_executed='1630522049.53' WHERE source_name='4FGL J1008.7-2909' and cadence='daily' and bin_id='1578'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/693270

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/693270/ft1_4FGL_J1008.7-2909_daily_bin1578.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/693270/ft2_4FGL_J1008.7-2909_daily_bin1578.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/693270/ft1_4FGL_J1008.7-2909_daily_bin1578.fits outfile=/scratch/kocevski/693270/ft1_filteredMKT_4FGL_J1008.7-2909_daily_bin1578.fits ra=152.199 dec=-29.1559 rad=12.0 tmin=648345601.0 tmax=648604801.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 2.93
user 2.20
sys 0.22

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/693270/ft2_4FGL_J1008.7-2909_daily_bin1578.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/693270/ft1_filteredMKT_4FGL_J1008.7-2909_daily_bin1578.fits evtable="EVENTS" outfile="/scratch/kocevski/693270/ft1_filtered_4FGL_J1008.7-2909_daily_bin1578.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.77
user 0.30
sys 0.17

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/693270/ft1_filtered_4FGL_J1008.7-2909_daily_bin1578.fits" evtable="EVENTS" scfile=/scratch/kocevski/693270/ft2_4FGL_J1008.7-2909_daily_bin1578.fits sctable="SC_DATA" outfile=/scratch/kocevski/693270/ltcube_648345601_648604801_4FGL_J1008.7-2909_daily_bin1578.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/693270/ft2_4FGL_J1008.7-2909_daily_bin1578.fits
.....................!
real 13.48
user 12.66
sys 0.29

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/693270/ft1_filtered_4FGL_J1008.7-2909_daily_bin1578.fits evtable="EVENTS" scfile=/scratch/kocevski/693270/ft2_4FGL_J1008.7-2909_daily_bin1578.fits sctable="SC_DATA" expcube=/scratch/kocevski/693270/ltcube_648345601_648604801_4FGL_J1008.7-2909_daily_bin1578.fits outfile=/scratch/kocevski/693270/expmap_648345601_648604801_4FGL_J1008.7-2909_daily_bin1578.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/693270/ltcube_648345601_648604801_4FGL_J1008.7-2909_daily_bin1578.fits
.....................!
real 157.90
user 152.15
sys 4.12

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/693270/ft1_filtered_4FGL_J1008.7-2909_daily_bin1578.fits scfile=/scratch/kocevski/693270/ft2_4FGL_J1008.7-2909_daily_bin1578.fits outfile=/scratch/kocevski/693270/cmap_648345601_648604801_4FGL_J1008.7-2909_daily_bin1578.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.52
user 0.33
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/693270/ft1_filtered_4FGL_J1008.7-2909_daily_bin1578.fits scfile=/scratch/kocevski/693270/ft2_4FGL_J1008.7-2909_daily_bin1578.fits outfile=/scratch/kocevski/693270/cmap_HighResolution_648345601_648604801_4FGL_J1008.7-2909_daily_bin1578.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.53
user 0.33
sys 0.15

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/693270/ft1_filtered_4FGL_J1008.7-2909_daily_bin1578.fits evtable="EVENTS" scfile=/scratch/kocevski/693270/ft2_4FGL_J1008.7-2909_daily_bin1578.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/693270/Model_4FGL_J1008.7-2909_daily_bin1578.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/693270/ft1_filtered_4FGL_J1008.7-2909_daily_bin1578.fits.....................!
real 84.35
user 82.52
sys 1.00

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

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 '    .10016E-03   1.0000         .10000E-03   10000.    
     3 'norm      '    .11483E-03   1.0000         .10000E-03   10000.    
     4 'norm      '    .27974       1.0000         .10000E-03   10000.    
     5 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     6 'norm      '    .40594       1.0000         .10000E-03   10000.    
     7 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    10 'norm      '    3.6086       1.0000         .10000E-03   10000.    
    11 'norm      '    8.2851       1.0000         .10000E-03   10000.    
    12 'Prefactor '    2.9974       1.0000         .10000E-03   10000.    
    13 'Prefactor '    39.745       1.0000         .10000E-03   10000.    
    14 'norm      '    .56145       1.0000         .10000E-03   10000.    
    15 'Prefactor '    3.5270       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10045E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    11.718       1.0000         .10000E-03   10000.    
    18 'Normalizat'    1.0658       1.0000         .10000E-01   10.000    
    19 'Prefactor '    1.1504       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5690E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   10524.43     FROM MIGRAD    STATUS=CONVERGED    674 CALLS     1943 TOTAL
                     EDM=   .31E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    6.9151        .18142E-02** at limit **
   2  Prefactor     .10000E-03    20.901        .18142E-02** at limit **
   3  norm          .10000E-03    6.2823        .31393E-02** at limit **
   4  norm          .25603        11.934        .88204E-01    .34929E-03
   5  norm          .10000E-03    2.8221        .16818E-02** at limit **
   6  norm          .40619        1.2012        .18175E-03    .21205E-03
   7  norm          .10000E-03    2.9952        .17320E-02** at limit **
   8  Prefactor     .10000E-03    6.2194        .18142E-02** at limit **
   9  Prefactor     .10000E-03    3.1349        .17735E-02** at limit **
  10  norm          3.6093        7.5926        .10635E-02    .15199E-03
  11  norm          8.2843        7.8381        .13928E-03   -.18904E-03
  12  Prefactor     2.9843        18.063        .23446E-03    .52853E-04
  13  Prefactor     39.693        20.173        .63580E-04   -.87374E-03
  14  norm          .57079        4.8292        .38443E-03   -.23061E-03
  15  Prefactor     3.5201        12.454        .21525E-03   -.10532E-03
  16  Prefactor     .10000E-03    1.0923        .10446E-02** at limit **
  17  Prefactor     11.719        9.6159        .11703E-03   -.25219E-03
  18  Normalizat    1.0657        .24780        .39590E-03   -.29709E-03
  19  Prefactor     1.1504        .10696        .16956E-03   -.15483E-02
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 0.256034
  norm       = 0.0001
  norm       = 0.406188
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 3.60927
  norm       = 8.28427
  Prefactor  = 2.98434
  Prefactor  = 39.6928
  norm       = 0.57079
  Prefactor  = 3.52013
  Prefactor  = 0.0001
  Prefactor  = 11.7187
  Normalizat = 1.06574
  Prefactor  = 1.15043
 **********
 **   18 **HESSE 
 **********

 FCN=   10524.43     FROM HESSE     STATUS=OK           260 CALLS     2203 TOTAL
                     EDM=   .29E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    6.9160        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    20.904        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          .10000E-03    6.3215        .62786E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  norm          .25603        11.116        .92487E-01   -1.5607    
   5  norm          .10000E-03    2.8223        .33636E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          .40619        1.2009        .72701E-05   -1.5581    
   7  norm          .10000E-03    2.9954        .34640E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    6.2196        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    3.1349        .35470E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          3.6093        7.5831        .42540E-04   -1.5328    
  11  norm          8.2843        7.8308        .55712E-05   -1.5132    
  12  Prefactor     2.9843        18.027        .93784E-05   -1.5362    
  13  Prefactor     39.693        20.132        .12716E-04   -1.4447    
  14  norm          .57079        4.8040        .15377E-04   -1.5557    
  15  Prefactor     3.5201        12.448        .86099E-05   -1.5333    
  16  Prefactor     .10000E-03    1.0924        .20891E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     11.719        9.6157        .46810E-05   -1.5023    
  18  Normalizat    1.0657        .24788        .15836E-04   -.90859    
  19  Prefactor     1.1504        .10698        .33913E-04   -.87871    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.89414e-09
Minuit parameter uncertainties:
  1  9.1443e-06
  2  3.93408e-05
  3  4.50069e-05
  4  3.374
  5  5.28451e-06
  6  1.20093
  7  1.68006e-07
  8  7.12904e-05
  9  1.41196e-05
  10  7.5851
  11  7.83177
  12  14.6761
  13  20.135
  14  3.31192
  15  12.4567
  16  1.01524e-05
  17  9.61696
  18  0.248151
  19  0.106996
Done.

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

Extracting fit parameters...

4FGL J1008.7-2909
   Spectrum: PowerLaw
296    Prefactor:  1.000e-04  7.129e-05  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.150e+00  1.070e-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.066e+00  2.482e-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: 5.56e-08 ph cm-2 s-1
Energy Flux Upper Limit: 4.32e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/693270/likelihoodResults_648345601_648604801_4FGL_J1008.7-2909_daily_bin1578.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) = 10524.4355345
delta logL = -0.000763567322792

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 10524.4347708
delta logL = 1.03909769678e-07

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.4648       1.0000          .0000       10.000    
     3 'Normalizat'    1.0657       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.1504       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5690E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   10524.43     FROM MIGRAD    STATUS=CONVERGED    103 CALLS      260 TOTAL
                     EDM=   .80E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    29.381        .18142E-01** at limit **
   2  Index         1.8752        5.5437        .50000        .49499E-06
   3  Normalizat    1.0657        .10332E-01    .39590E-03    .51143E-03
   4  Prefactor     1.1504        .46084E-02    .16956E-03    .13043E-02
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Index      = 1.87522
  Normalizat = 1.06574
  Prefactor  = 1.15044
 **********
 **   18 **HESSE 
 **********

 FCN=   10524.43     FROM HESSE     STATUS=NOT POSDEF    29 CALLS      289 TOTAL
                     EDM=   .62E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    227.15        .28549E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         1.8752        6.8264        .50000       -.67507    
   3  Normalizat    1.0657        .29565E-01    .15836E-04   -.90859    
   4  Prefactor     1.1504        .13187E-01    .33913E-04   -.87870    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 6.20358e-09
Minuit parameter uncertainties:
  1  0.000590996
  2  904.384
  3  0.0295651
  4  0.0131873
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/693270': 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) = 10524.434769
delta logL = 1.8947503122e-06

Extracting fit parameters...

4FGL J1008.7-2909
   Spectrum: PowerLaw
296    Prefactor:  1.000e-04  5.910e-04  1.000e-04  1.000e+04 ( 1.000e-13)
297        Index:  1.875e+00  9.044e+02  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.150e+00  1.319e-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.066e+00  2.957e-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 -1.000e-01 [aplpy.core]
INFO: Auto-setting vmax to  1.110e+00 [aplpy.core]
Saving /scratch/kocevski/693270/cmap_HighResolution_648345601_648604801_4FGL_J1008.7-2909_daily_bin1578.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='4.32e-03', job_status='DONE', photon_flux_upper_limit='5.56e-08', time_completed='2021-09-01 11:57:45.485516', job_id='693270', GAL2='1.15', fit_tolerance='1e-08', EG2='1.07', EG='1.07', time_epoch_completed='1630522665.49', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.15', dlogl='1.89e-06', ts2='-0.00', photon_index_error='0.00', photon_index='2.48' WHERE bin_id='1578' AND source_name='4FGL J1008.7-2909' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep  1 11:57:45 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0086>
Subject: Job 693270: <4FGL_J1008.7-2909_daily_bin1578> in cluster <slac> Done

Job <4FGL_J1008.7-2909_daily_bin1578> was submitted from host <rhel6-64k> by user <kocevski> in cluster <slac> at Wed Sep  1 11:46:04 2021
Job was executed on host(s) <bullet0086>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Sep  1 11:46:07 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:07 2021
Terminated at Wed Sep  1 11:57:45 2021
Results reported at Wed Sep  1 11:57:45 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1008.7-2909_daily_bin1578 152.199 -29.1559 648345601 648604801 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 :                                   608.30 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             302.96 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   698 sec.
    Turnaround time :                            701 sec.

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

