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


Performing analysis on: 4FGL_J1008.7-2909_daily_bin1316
RA = 152.199, Dec = -29.1559
tmin = 580435201, tmax = 580694401
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='692914', job_status='RUN', time_executed='2021-09-01 11:47:14.606167', time_epoch_executed='1630522034.61' WHERE source_name='4FGL J1008.7-2909' and cadence='daily' and bin_id='1316'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/692914

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/692914/ft1_4FGL_J1008.7-2909_daily_bin1316.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/692914/ft2_4FGL_J1008.7-2909_daily_bin1316.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/692914/ft1_4FGL_J1008.7-2909_daily_bin1316.fits outfile=/scratch/kocevski/692914/ft1_filteredMKT_4FGL_J1008.7-2909_daily_bin1316.fits ra=152.199 dec=-29.1559 rad=12.0 tmin=580435201.0 tmax=580694401.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.18
user 2.89
sys 0.18

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/692914/ft1_filtered_4FGL_J1008.7-2909_daily_bin1316.fits" evtable="EVENTS" scfile=/scratch/kocevski/692914/ft2_4FGL_J1008.7-2909_daily_bin1316.fits sctable="SC_DATA" outfile=/scratch/kocevski/692914/ltcube_580435201_580694401_4FGL_J1008.7-2909_daily_bin1316.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/692914/ft2_4FGL_J1008.7-2909_daily_bin1316.fits
.....................!
real 18.78
user 18.31
sys 0.34

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/692914/ft1_filtered_4FGL_J1008.7-2909_daily_bin1316.fits evtable="EVENTS" scfile=/scratch/kocevski/692914/ft2_4FGL_J1008.7-2909_daily_bin1316.fits sctable="SC_DATA" expcube=/scratch/kocevski/692914/ltcube_580435201_580694401_4FGL_J1008.7-2909_daily_bin1316.fits outfile=/scratch/kocevski/692914/expmap_580435201_580694401_4FGL_J1008.7-2909_daily_bin1316.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/692914/ltcube_580435201_580694401_4FGL_J1008.7-2909_daily_bin1316.fits
.....................!
real 193.77
user 188.36
sys 4.34

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/692914/ft1_filtered_4FGL_J1008.7-2909_daily_bin1316.fits scfile=/scratch/kocevski/692914/ft2_4FGL_J1008.7-2909_daily_bin1316.fits outfile=/scratch/kocevski/692914/cmap_580435201_580694401_4FGL_J1008.7-2909_daily_bin1316.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.62
user 0.40
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/692914/ft1_filtered_4FGL_J1008.7-2909_daily_bin1316.fits scfile=/scratch/kocevski/692914/ft2_4FGL_J1008.7-2909_daily_bin1316.fits outfile=/scratch/kocevski/692914/cmap_HighResolution_580435201_580694401_4FGL_J1008.7-2909_daily_bin1316.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/692914/ft1_filtered_4FGL_J1008.7-2909_daily_bin1316.fits evtable="EVENTS" scfile=/scratch/kocevski/692914/ft2_4FGL_J1008.7-2909_daily_bin1316.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/692914/Model_4FGL_J1008.7-2909_daily_bin1316.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/692914/ft1_filtered_4FGL_J1008.7-2909_daily_bin1316.fits.....................!
real 83.52
user 82.17
sys 1.11

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    11.991       1.0000         .10000E-03   10000.    
     2 'Prefactor '    4.9654       1.0000         .10000E-03   10000.    
     3 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
     4 'norm      '    .10006E-03   1.0000         .10000E-03   10000.    
     5 'norm      '    .10038E-03   1.0000         .10000E-03   10000.    
     6 'norm      '    5.3348       1.0000         .10000E-03   10000.    
     7 'norm      '    .11149       1.0000         .10000E-03   10000.    
     8 'Prefactor '    16.794       1.0000         .10000E-03   10000.    
     9 'Prefactor '    9.3270       1.0000         .10000E-03   10000.    
    10 'norm      '    .10347E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    15.640       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .73427E-01   1.0000         .10000E-03   10000.    
    14 'norm      '    1.3641       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10091E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10008E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10058E-03   1.0000         .10000E-03   10000.    
    18 'Normalizat'    1.4303       1.0000         .10000E-01   10.000    
    19 'Prefactor '    .91135       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=   7309.214     FROM MIGRAD    STATUS=CONVERGED    442 CALLS     1948 TOTAL
                     EDM=   .53E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.0%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     11.993        18.337       -.38399E-05   -.86320E-04
   2  Prefactor     4.9493        73.085        .33465E-04   -.79232E-05
   3  norm          .10000E-03    2.0008       -.66513E-07** at limit **
   4  norm          .10000E-03    36.387        .25489E-07** at limit **
   5  norm          .10000E-03    3.0449        .52165E-08** at limit **
   6  norm          5.3340        1.8082        .39687E-07   -.95272E-04
   7  norm          .76065E-02    9.6687        .18602E-06    .34071E-04
   8  Prefactor     16.808        28.466       -.29243E-05   -.24580E-04
   9  Prefactor     9.3304        9.7573        .26138E-06    .14909E-04
  10  norm          .10000E-03    7.0587        .79118E-07** at limit **
  11  norm          15.655        9.5784       -.21628E-06   -.72124E-03
  12  Prefactor     .10000E-03    7.8594        .32010E-07** at limit **
  13  Prefactor     .10000E-03    13.319        .83426E-06** at limit **
  14  norm          1.3631        3.0787       -.51432E-06   -.10131E-02
  15  Prefactor     .10000E-03    4.1954        .31846E-08** at limit **
  16  Prefactor     .10000E-03    2.0113        .17254E-07** at limit **
  17  Prefactor     .10000E-03    6.4681        .44989E-07** at limit **
  18  Normalizat    1.4305        .24624       -.48057E-06   -.12446E-03
  19  Prefactor     .91138        .10505       -.48090E-06   -.14354E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 11.9931
  Prefactor  = 4.94932
  norm       = 0.0001
  norm       = 0.0001
  norm       = 0.0001
  norm       = 5.33399
  norm       = 0.00760648
  Prefactor  = 16.8079
  Prefactor  = 9.33044
  norm       = 0.0001
  norm       = 15.655
  Prefactor  = 0.0001
  Prefactor  = 0.000100001
  norm       = 1.36311
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Normalizat = 1.43054
  Prefactor  = 0.911382
 **********
 **   18 **HESSE 
 **********

 FCN=   7309.214     FROM HESSE     STATUS=OK           284 CALLS     2232 TOTAL
                     EDM=   .11E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     11.993        18.386        .11568E-03   -1.5015    
   2  Prefactor     4.9493        69.488        .18048E-03   -1.5263    
   3  norm          .10000E-03    2.0068        .11810E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  norm          .10000E-03    37.046        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          .10000E-03    3.0473        .14570E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          5.3340        1.8159        .63878E-04   -1.5246    
   7  norm          .76065E-02    14.425        .73927E-01   -1.5691    
   8  Prefactor     16.808        28.557        .97735E-04   -1.4888    
   9  Prefactor     9.3304        9.7582        .13123E-03   -1.5097    
  10  norm          .10000E-03    7.1271        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          15.655        9.6391        .50638E-03   -1.4916    
  12  Prefactor     .10000E-03    7.9134        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    13.582        .91860E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          1.3631        3.0706        .21406E-03   -1.5474    
  15  Prefactor     .10000E-03    4.1988        .17102E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    2.0224        .11832E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    6.5016        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Normalizat    1.4305        .29183        .33867E-03   -.79749    
  19  Prefactor     .91138        .12460        .18094E-03   -.95744    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.09332e-09
Minuit parameter uncertainties:
  1  18.3945
  2  37.1419
  3  1.00126e-05
  4  5.50977e-06
  5  3.14695e-07
  6  1.81588
  7  0.65827
  8  28.5806
  9  9.75988
  10  1.97154e-05
  11  9.64004
  12  1.18622e-05
  13  0.0001683
  14  3.07098
  15  2.59861e-06
  16  4.20507e-06
  17  8.19324e-06
  18  0.292167
  19  0.124634
Done.

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

Extracting fit parameters...

4FGL J1008.7-2909
   Spectrum: PowerLaw
296    Prefactor:  1.681e+01  2.858e+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:  9.114e-01  1.246e-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.431e+00  2.922e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 0.41
Ra Dec: 152.199 -29.156
Photon Flux Upper Limit: 1.45e-07 ph cm-2 s-1
Energy Flux Upper Limit: 1.12e-02 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/692914/likelihoodResults_580435201_580694401_4FGL_J1008.7-2909_daily_bin1316.txt

Performing a free index iterative likelihood fit...

Freezing all point sources, except source of interest...

Done.

Freeing candidate source...
Done.

Fit tolerance = 1

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 7308.69618441
delta logL = 0.518141545616

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 7308.68195566
delta logL = 0.532370297448

Fit tolerance = 1e-08

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

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

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.
 MACHINE ACCURACY LIMITS FURTHER IMPROVEMENT.

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   7308.682     FROM MIGRAD    STATUS=CONVERGED    105 CALLS      314 TOTAL
                     EDM=   .90E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     5.5866        224.53        .84929E-03    .44445E-03
   2  Index         3.6400        6.8050        .65750E-02    .27771E-04
   3  Normalizat    1.3727        .25745        .34437E-03    .76591E-05
   4  Prefactor     .92701        .11312        .17952E-03    .16655E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 5.58656
  Index      = 3.64002
  Normalizat = 1.37268
  Prefactor  = 0.927008
 **********
 **   18 **HESSE 
 **********

 FCN=   7308.682     FROM HESSE     STATUS=OK            27 CALLS      341 TOTAL
                     EDM=   .11E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     5.5866        14.249        .16986E-03   -1.5235    
   2  Index         3.6400        1.3368        .26300E-03   -.27547    
   3  Normalizat    1.3727        .28731        .13775E-04   -.81422    
   4  Prefactor     .92701        .12413        .71810E-05   -.95204    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.1402e-12
Minuit parameter uncertainties:
  1  14.2579
  2  1.35466
  3  0.287643
  4  0.124172
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/692914': No such file or directory
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 7308.68195549
delta logL = 0.532370470353

Extracting fit parameters...

4FGL J1008.7-2909
   Spectrum: PowerLaw
296    Prefactor:  5.587e+00  1.426e+01  1.000e-04  1.000e+04 ( 1.000e-13)
297        Index:  3.640e+00  1.355e+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:  9.270e-01  1.242e-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.373e+00  2.876e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 1.54
Ra Dec: 152.199 -29.156
Photon Index (Free Index): 3.64 +/- 1.35
Photon Flux (Free Index): 7.80e-08 +/- 7.24e-08
Energy Flux (Free Index): 1.25e-05 +/- 1.16e-05

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/692914/cmap_HighResolution_580435201_580694401_4FGL_J1008.7-2909_daily_bin1316.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.12e-02', comment='SUCCESS', energy_flux2='1.25e-05', dlogl='5.32e-01', photon_flux2='7.80e-08', job_status='DONE', time_completed='2021-09-01 11:58:14.722711', photon_index_error2='1.35', photon_index2='3.64', ts='0.41', fit_tolerance='1e-08', GAL='0.91', photon_index_error='0.00', photon_flux_upper_limit='1.45e-07', energy_flux_error2='1.16e-05', EG='1.43', time_epoch_completed='1630522694.72', return_code='0', job_id='692914', GAL2='0.93', EG2='1.37', return_code2='0', photon_flux_error2='7.24e-08', ts2='1.54', photon_index='2.48' WHERE bin_id='1316' AND source_name='4FGL J1008.7-2909' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep  1 11:58:14 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0216>
Subject: Job 692914: <4FGL_J1008.7-2909_daily_bin1316> in cluster <slac> Done

Job <4FGL_J1008.7-2909_daily_bin1316> was submitted from host <rhel6-64k> by user <kocevski> in cluster <slac> at Wed Sep  1 11:45:37 2021
Job was executed on host(s) <bullet0216>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Sep  1 11:45:40 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:45:40 2021
Terminated at Wed Sep  1 11:58:15 2021
Results reported at Wed Sep  1 11:58:15 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1008.7-2909_daily_bin1316 152.199 -29.1559 580435201 580694401 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 :                                   656.21 sec.
    Max Memory :                                 1255 MB
    Average Memory :                             335.39 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   755 sec.
    Turnaround time :                            758 sec.

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

