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


Performing analysis on: 4FGL_J1008.7-2909_daily_bin1164
RA = 152.199, Dec = -29.1559
tmin = 541036801, tmax = 541296001
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='691453', job_status='RUN', time_executed='2021-09-01 11:42:11.756250', time_epoch_executed='1630521731.76' WHERE source_name='4FGL J1008.7-2909' and cadence='daily' and bin_id='1164'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/691453

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/691453/ft1_4FGL_J1008.7-2909_daily_bin1164.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/691453/ft2_4FGL_J1008.7-2909_daily_bin1164.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/691453/ft1_4FGL_J1008.7-2909_daily_bin1164.fits outfile=/scratch/kocevski/691453/ft1_filteredMKT_4FGL_J1008.7-2909_daily_bin1164.fits ra=152.199 dec=-29.1559 rad=12.0 tmin=541036801.0 tmax=541296001.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.68
user 3.46
sys 0.21

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/691453/ft1_filtered_4FGL_J1008.7-2909_daily_bin1164.fits" evtable="EVENTS" scfile=/scratch/kocevski/691453/ft2_4FGL_J1008.7-2909_daily_bin1164.fits sctable="SC_DATA" outfile=/scratch/kocevski/691453/ltcube_541036801_541296001_4FGL_J1008.7-2909_daily_bin1164.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/691453/ft2_4FGL_J1008.7-2909_daily_bin1164.fits
.....................!
real 16.92
user 16.56
sys 0.31

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/691453/ft1_filtered_4FGL_J1008.7-2909_daily_bin1164.fits evtable="EVENTS" scfile=/scratch/kocevski/691453/ft2_4FGL_J1008.7-2909_daily_bin1164.fits sctable="SC_DATA" expcube=/scratch/kocevski/691453/ltcube_541036801_541296001_4FGL_J1008.7-2909_daily_bin1164.fits outfile=/scratch/kocevski/691453/expmap_541036801_541296001_4FGL_J1008.7-2909_daily_bin1164.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/691453/ltcube_541036801_541296001_4FGL_J1008.7-2909_daily_bin1164.fits
.....................!
real 193.10
user 188.63
sys 3.83

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/691453/ft1_filtered_4FGL_J1008.7-2909_daily_bin1164.fits scfile=/scratch/kocevski/691453/ft2_4FGL_J1008.7-2909_daily_bin1164.fits outfile=/scratch/kocevski/691453/cmap_541036801_541296001_4FGL_J1008.7-2909_daily_bin1164.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.53
user 0.37
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/691453/ft1_filtered_4FGL_J1008.7-2909_daily_bin1164.fits scfile=/scratch/kocevski/691453/ft2_4FGL_J1008.7-2909_daily_bin1164.fits outfile=/scratch/kocevski/691453/cmap_HighResolution_541036801_541296001_4FGL_J1008.7-2909_daily_bin1164.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.66
user 0.39
sys 0.13

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/691453/ft1_filtered_4FGL_J1008.7-2909_daily_bin1164.fits evtable="EVENTS" scfile=/scratch/kocevski/691453/ft2_4FGL_J1008.7-2909_daily_bin1164.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/691453/Model_4FGL_J1008.7-2909_daily_bin1164.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/691453/ft1_filtered_4FGL_J1008.7-2909_daily_bin1164.fits.....................!
real 120.22
user 118.82
sys 1.09

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    3.0482       1.0000         .10000E-03   10000.    
     2 'Prefactor '    34.123       1.0000         .10000E-03   10000.    
     3 'norm      '    1.5856       1.0000         .10000E-03   10000.    
     4 'norm      '    14.488       1.0000         .10000E-03   10000.    
     5 'norm      '    4.8276       1.0000         .10000E-03   10000.    
     6 'norm      '    8.5296       1.0000         .10000E-03   10000.    
     7 'norm      '    3.2015       1.0000         .10000E-03   10000.    
     8 'Prefactor '    44.993       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    10 'norm      '    .10125E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    .11840E-02   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10022E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    18.804       1.0000         .10000E-03   10000.    
    14 'norm      '    10.682       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    3.2204       1.0000         .10000E-03   10000.    
    18 'Normalizat'    1.0874       1.0000         .10000E-01   10.000    
    19 'Prefactor '    .85379       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=   11899.50     FROM MIGRAD    STATUS=CONVERGED    382 CALLS     1900 TOTAL
                     EDM=   .18E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.7%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     3.0513        11.694        .45914E-05    .12591E-04
   2  Prefactor     34.120        26.245       -.40860E-05   -.43398E-04
   3  norm          1.5861        2.4118        .77443E-07   -.15957E-04
   4  norm          14.489        13.249        .13245E-05   -.44984E-05
   5  norm          4.8279        5.6469       -.20340E-08   -.37168E-05
   6  norm          8.5300        1.6589       -.61032E-08    .42097E-05
   7  norm          3.2005        4.0247        .80861E-07   -.95605E-03
   8  Prefactor     44.990        20.376       -.23525E-05   -.71755E-04
   9  Prefactor     .10000E-03    5.5891        .31270E-06** at limit **
  10  norm          .10000E-03    10.321       -.37054E-06** at limit **
  11  norm          .10001E-03    3.3558        .88494E-06** at limit **
  12  Prefactor     .10000E-03    6.3317       -.48426E-06** at limit **
  13  Prefactor     18.801        12.211       -.14915E-05   -.72530E-04
  14  norm          10.682        3.5740        .28501E-06   -.10548E-03
  15  Prefactor     .10000E-03    2.5429       -.22131E-08** at limit **
  16  Prefactor     .10000E-03    1.3138       -.77390E-08** at limit **
  17  Prefactor     3.2201        3.8925        .12051E-08   -.10002E-02
  18  Normalizat    1.0873        .17024        .73628E-06   -.19316E-03
  19  Prefactor     .85379        .75036E-01   -.11501E-06   -.19364E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 3.05128
  Prefactor  = 34.1202
  norm       = 1.58614
  norm       = 14.4893
  norm       = 4.82793
  norm       = 8.52995
  norm       = 3.20053
  Prefactor  = 44.9896
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 0.000100009
  Prefactor  = 0.0001
  Prefactor  = 18.8015
  norm       = 10.6819
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 3.22013
  Normalizat = 1.08733
  Prefactor  = 0.853792
 **********
 **   18 **HESSE 
 **********

 FCN=   11899.50     FROM HESSE     STATUS=OK           274 CALLS     2174 TOTAL
                     EDM=   .25E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     3.0513        11.721        .23238E-03   -1.5359    
   2  Prefactor     34.120        26.285        .68600E-04   -1.4539    
   3  norm          1.5861        2.3856        .20304E-03   -1.5456    
   4  norm          14.489        13.287        .10523E-03   -1.4946    
   5  norm          4.8279        5.6449        .18309E-03   -1.5268    
   6  norm          8.5300        1.6691        .58597E-04   -1.5124    
   7  norm          3.2005        4.9171        .11322E-02   -1.5350    
   8  Prefactor     44.990        20.379        .59772E-04   -1.4365    
   9  Prefactor     .10000E-03    5.6137        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          .10000E-03    10.674        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          .10001E-03    12.504        .37642E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    6.4385        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     18.801        12.212        .92362E-04   -1.4840    
  14  norm          10.682        3.5773        .10755E-03   -1.5054    
  15  Prefactor     .10000E-03    2.5479        .16988E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    1.3449        .24383E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     3.2201        6.1946        .11287E-02   -1.5349    
  18  Normalizat    1.0873        .19617        .33894E-03   -.90160    
  19  Prefactor     .85379        .87025E-01    .17195E-03   -.97775    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.50588e-09
Minuit parameter uncertainties:
  1  11.7303
  2  26.2944
  3  2.3857
  4  13.2894
  5  5.6455
  6  1.66916
  7  4.91775
  8  20.3823
  9  1.17405e-05
  10  1.78675e-05
  11  0.000689112
  12  2.54585e-06
  13  12.2132
  14  3.57741
  15  5.76246e-07
  16  1.83559e-06
  17  6.19581
  18  0.196303
  19  0.0870392
Done.

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

Extracting fit parameters...

4FGL J1008.7-2909
   Spectrum: PowerLaw
296    Prefactor:  4.499e+01  2.038e+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:  8.538e-01  8.704e-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.087e+00  1.963e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 8.84
Ra Dec: 152.199 -29.156
Photon Index (Fixed Index): 2.48 +/- 0.00
Photon Flux (Fixed Index): 8.21e-08 +/- 3.72e-08
Energy Flux (Fixed Index): 2.43e-05 +/- 1.10e-05

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) = 11899.414803
delta logL = 0.0894945340533

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 11899.4066267
delta logL = 0.0976708375438

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    36.041       1.0000         .10000E-03   10000.    
     2 'Index     '    2.6983       1.0000          .0000       10.000    
     3 'Normalizat'    1.0721       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .85814       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=   11899.41     FROM MIGRAD    STATUS=CONVERGED     82 CALLS      287 TOTAL
                     EDM=   .77E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     36.037        29.486        .66756E-04    .20028E-03
   2  Index         2.6984        .56051        .53882E-02    .12092E-03
   3  Normalizat    1.0721        .19088        .34097E-03   -.30115E-03
   4  Prefactor     .85818        .85583E-01    .17155E-03   -.13230E-02
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 36.0367
  Index      = 2.69839
  Normalizat = 1.07214
  Prefactor  = 0.858184
 **********
 **   18 **HESSE 
 **********

 FCN=   11899.41     FROM HESSE     STATUS=OK            25 CALLS      312 TOTAL
                     EDM=   .74E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     36.037        26.440        .13351E-04   -1.4507    
   2  Index         2.6984        .50228        .21553E-03   -.47836    
   3  Normalizat    1.0721        .19051        .13639E-04   -.90651    
   4  Prefactor     .85818        .85497E-01    .34310E-04   -.97618    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 7.41347e-10
Minuit parameter uncertainties:
  1  26.4482
  2  0.50336
  3  0.190631
  4  0.0855107
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/691453': 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) = 11899.4066259
delta logL = 0.0976716734349

Extracting fit parameters...

4FGL J1008.7-2909
   Spectrum: PowerLaw
296    Prefactor:  3.604e+01  2.645e+01  1.000e-04  1.000e+04 ( 1.000e-13)
297        Index:  2.698e+00  5.034e-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:  8.582e-01  8.551e-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.072e+00  1.906e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 9.05
Ra Dec: 152.199 -29.156
Photon Index (Free Index): 2.70 +/- 0.50
Photon Flux (Free Index): 9.34e-08 +/- 4.67e-08
Energy Flux (Free Index): 2.25e-05 +/- 1.03e-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/691453/cmap_HighResolution_541036801_541296001_4FGL_J1008.7-2909_daily_bin1164.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='8.21e-08', energy_flux2='2.25e-05', photon_flux_error='3.72e-08', dlogl='9.77e-02', energy_flux='2.43e-05', photon_flux2='9.34e-08', job_status='DONE', time_completed='2021-09-01 11:55:10.586683', photon_index_error2='0.50', photon_index2='2.70', ts='8.84', fit_tolerance='1e-08', GAL='0.85', photon_index_error='0.00', energy_flux_error2='1.03e-05', EG='1.09', time_epoch_completed='1630522510.59', return_code='0', job_id='691453', GAL2='0.86', EG2='1.07', return_code2='0', energy_flux_error='1.10e-05', photon_flux_error2='4.67e-08', ts2='9.05', photon_index='2.48' WHERE bin_id='1164' AND source_name='4FGL J1008.7-2909' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep  1 11:55:10 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0263>
Subject: Job 691453: <4FGL_J1008.7-2909_daily_bin1164> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1008.7-2909_daily_bin1164 152.199 -29.1559 541036801 541296001 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 :                                   777.00 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             322.64 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   858 sec.
    Turnaround time :                            874 sec.

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

