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


Performing analysis on: 4FGL_J1008.7-2909_daily_bin1170
RA = 152.199, Dec = -29.1559
tmin = 542592001, tmax = 542851201
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='691463', job_status='RUN', time_executed='2021-09-01 11:45:21.776377', time_epoch_executed='1630521921.78' WHERE source_name='4FGL J1008.7-2909' and cadence='daily' and bin_id='1170'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/691463

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/691463/ft1_4FGL_J1008.7-2909_daily_bin1170.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/691463/ft2_4FGL_J1008.7-2909_daily_bin1170.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/691463/ft1_4FGL_J1008.7-2909_daily_bin1170.fits outfile=/scratch/kocevski/691463/ft1_filteredMKT_4FGL_J1008.7-2909_daily_bin1170.fits ra=152.199 dec=-29.1559 rad=12.0 tmin=542592001.0 tmax=542851201.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 6.97
user 6.43
sys 0.29

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/691463/ft1_filtered_4FGL_J1008.7-2909_daily_bin1170.fits" evtable="EVENTS" scfile=/scratch/kocevski/691463/ft2_4FGL_J1008.7-2909_daily_bin1170.fits sctable="SC_DATA" outfile=/scratch/kocevski/691463/ltcube_542592001_542851201_4FGL_J1008.7-2909_daily_bin1170.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/691463/ft2_4FGL_J1008.7-2909_daily_bin1170.fits
.....................!
real 12.36
user 11.92
sys 0.32

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/691463/ft1_filtered_4FGL_J1008.7-2909_daily_bin1170.fits evtable="EVENTS" scfile=/scratch/kocevski/691463/ft2_4FGL_J1008.7-2909_daily_bin1170.fits sctable="SC_DATA" expcube=/scratch/kocevski/691463/ltcube_542592001_542851201_4FGL_J1008.7-2909_daily_bin1170.fits outfile=/scratch/kocevski/691463/expmap_542592001_542851201_4FGL_J1008.7-2909_daily_bin1170.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/691463/ltcube_542592001_542851201_4FGL_J1008.7-2909_daily_bin1170.fits
.....................!
real 192.46
user 186.09
sys 5.58

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/691463/ft1_filtered_4FGL_J1008.7-2909_daily_bin1170.fits scfile=/scratch/kocevski/691463/ft2_4FGL_J1008.7-2909_daily_bin1170.fits outfile=/scratch/kocevski/691463/cmap_542592001_542851201_4FGL_J1008.7-2909_daily_bin1170.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.57
user 0.41
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/691463/ft1_filtered_4FGL_J1008.7-2909_daily_bin1170.fits scfile=/scratch/kocevski/691463/ft2_4FGL_J1008.7-2909_daily_bin1170.fits outfile=/scratch/kocevski/691463/cmap_HighResolution_542592001_542851201_4FGL_J1008.7-2909_daily_bin1170.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.58
user 0.40
sys 0.17

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/691463/ft1_filtered_4FGL_J1008.7-2909_daily_bin1170.fits evtable="EVENTS" scfile=/scratch/kocevski/691463/ft2_4FGL_J1008.7-2909_daily_bin1170.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/691463/Model_4FGL_J1008.7-2909_daily_bin1170.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/691463/ft1_filtered_4FGL_J1008.7-2909_daily_bin1170.fits.....................!
real 46.04
user 44.36
sys 1.30

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    25.082       1.0000         .10000E-03   10000.    
     3 'norm      '    .10114E-03   1.0000         .10000E-03   10000.    
     4 'norm      '    .10036E-03   1.0000         .10000E-03   10000.    
     5 'norm      '    18.583       1.0000         .10000E-03   10000.    
     6 'norm      '    6.9536       1.0000         .10000E-03   10000.    
     7 'norm      '    .10523E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    60.118       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10136E-03   1.0000         .10000E-03   10000.    
    10 'norm      '    7.5191       1.0000         .10000E-03   10000.    
    11 'norm      '    .10184E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    4.2405       1.0000         .10000E-03   10000.    
    14 'norm      '    .36244E-02   1.0000         .10000E-03   10000.    
    15 'Prefactor '    11.598       1.0000         .10000E-03   10000.    
    16 'Prefactor '    5.7142       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
    18 'Normalizat'    1.1899       1.0000         .10000E-01   10.000    
    19 'Prefactor '    .93102       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=   3511.903     FROM MIGRAD    STATUS=CONVERGED    388 CALLS     1874 TOTAL
                     EDM=   .15E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .3%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    11.235       -.92048E-05** at limit **
   2  Prefactor     24.996        49.036       -.11664E-03    .45210E-04
   3  norm          .10000E-03    5.6570        .55126E-06** at limit **
   4  norm          .10000E-03    8.7148        .16050E-05** at limit **
   5  norm          18.596        16.278       -.30784E-05    .17093E-04
   6  norm          6.9532        3.2202       -.56860E-06    .78802E-04
   7  norm          .10000E-03    25.200       -.87816E-06** at limit **
   8  Prefactor     60.124        47.491        .40679E-05    .23746E-04
   9  Prefactor     .10000E-03    25.642        .36769E-06** at limit **
  10  norm          7.5300        17.419       -.11195E-04   -.46401E-04
  11  norm          .10000E-03    6.4211       -.27398E-06** at limit **
  12  Prefactor     .10000E-03    12.259        .10019E-04** at limit **
  13  Prefactor     4.3176        26.915       -.20344E-04   -.26269E-03
  14  norm          .10012E-03    4.9122        .16982E-05** at limit **
  15  Prefactor     11.597        27.686       -.50923E-05   -.62673E-04
  16  Prefactor     5.7275        7.4065        .22914E-06   -.40427E-03
  17  Prefactor     .10000E-03    5.1307       -.12565E-06** at limit **
  18  Normalizat    1.1901        .35399        .11672E-04   -.35202E-04
  19  Prefactor     .93101        .14555        .49806E-05   -.19169E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100001
  Prefactor  = 24.9957
  norm       = 0.0001
  norm       = 0.0001
  norm       = 18.596
  norm       = 6.95321
  norm       = 0.0001
  Prefactor  = 60.1242
  Prefactor  = 0.0001
  norm       = 7.53001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 4.3176
  norm       = 0.000100124
  Prefactor  = 11.597
  Prefactor  = 5.72751
  Prefactor  = 0.0001
  Normalizat = 1.19014
  Prefactor  = 0.931011
 **********
 **   18 **HESSE 
 **********

 FCN=   3511.903     FROM HESSE     STATUS=OK           264 CALLS     2138 TOTAL
                     EDM=   .63E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    11.232        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     24.996        48.919        .79986E-04   -1.4708    
   3  norm          .10000E-03    5.6954        .13766E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  norm          .10000E-03    8.7241        .17087E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          18.596        16.277        .92910E-04   -1.4845    
   6  norm          6.9532        3.2376        .68931E-04   -1.5181    
   7  norm          .10000E-03    25.577        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     60.124        47.531        .51747E-04   -1.4156    
   9  Prefactor     .10000E-03    25.702        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          7.5300        17.415        .14625E-03   -1.5159    
  11  norm          .10000E-03    6.4369        .14657E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    12.272        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     4.3176        22.313        .19567E-03   -1.5292    
  14  norm          .10012E-03    23.843        .22460E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     11.597        27.730        .11763E-03   -1.5027    
  16  Prefactor     5.7275        7.3338        .16803E-03   -1.5229    
  17  Prefactor     .10000E-03    5.1329        .13109E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Normalizat    1.1901        .41373        .36219E-03   -.86908    
  19  Prefactor     .93101        .17041        .17449E-03   -.95066    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 6.33464e-09
Minuit parameter uncertainties:
  1  0.000183011
  2  48.9978
  3  9.52351e-05
  4  1.18397e-05
  5  16.2812
  6  3.23763
  7  0.000144825
  8  47.5608
  9  6.63476e-05
  10  17.4271
  11  3.23389e-05
  12  2.65603e-05
  13  19.6417
  14  0.00344509
  15  27.7607
  16  7.33492
  17  1.88414e-05
  18  0.414874
  19  0.170509
Done.

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

Extracting fit parameters...

4FGL J1008.7-2909
   Spectrum: PowerLaw
296    Prefactor:  6.012e+01  4.756e+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.310e-01  1.705e-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.190e+00  4.149e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 4.30
Ra Dec: 152.199 -29.156
Photon Index (Fixed Index): 2.48 +/- 0.00
Photon Flux (Fixed Index): 1.10e-07 +/- 8.67e-08
Energy Flux (Fixed Index): 3.25e-05 +/- 2.57e-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) = 3511.36999072
delta logL = 0.533207308804

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 3511.13475309
delta logL = 0.768444940672

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    106.55       1.0000         .10000E-03   10000.    
     2 'Index     '    1.7700       1.0000          .0000       10.000    
     3 'Normalizat'    1.2468       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .91076       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=   3511.135     FROM MIGRAD    STATUS=CONVERGED     49 CALLS      216 TOTAL
                     EDM=   .14E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY= 21.4%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     106.56        72.490        .68323E-05   -.46079E-03
   2  Index         1.7700        .37772       -.66290E-05   -.47433E-03
   3  Normalizat    1.2466        .33387        .30715E-06    .58316E-04
   4  Prefactor     .91085        .14436       -.32362E-06    .10831E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 106.558
  Index      = 1.76997
  Normalizat = 1.24661
  Prefactor  = 0.910851
 **********
 **   18 **HESSE 
 **********

 FCN=   3511.135     FROM HESSE     STATUS=OK            29 CALLS      245 TOTAL
                     EDM=   .50E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     106.56        78.490        .19480E-03   -1.3640    
   2  Index         1.7700        .47191        .63280E-02   -.70234    
   3  Normalizat    1.2466        .38808        .35492E-03   -.85175    
   4  Prefactor     .91085        .16803        .17604E-03   -.95763    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.97851e-09
Minuit parameter uncertainties:
  1  78.5667
  2  0.473117
  3  0.388988
  4  0.16813
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/691463': 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) = 3511.13475294
delta logL = 0.768445091653

Extracting fit parameters...

4FGL J1008.7-2909
   Spectrum: PowerLaw
296    Prefactor:  1.066e+02  7.857e+01  1.000e-04  1.000e+04 ( 1.000e-13)
297        Index:  1.770e+00  4.731e-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.109e-01  1.681e-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.247e+00  3.890e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 5.83
Ra Dec: 152.199 -29.156
Photon Index (Free Index): 1.77 +/- 0.47
Photon Flux (Free Index): 7.46e-08 +/- 6.62e-08
Energy Flux (Free Index): 9.78e-05 +/- 1.18e-04

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/691463/cmap_HighResolution_542592001_542851201_4FGL_J1008.7-2909_daily_bin1170.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='1.10e-07', energy_flux2='9.78e-05', photon_flux_error='8.67e-08', dlogl='7.68e-01', energy_flux='3.25e-05', photon_flux2='7.46e-08', job_status='DONE', time_completed='2021-09-01 11:53:07.225361', photon_index_error2='0.47', photon_index2='1.77', ts='4.30', fit_tolerance='1e-08', GAL='0.93', photon_index_error='0.00', energy_flux_error2='1.18e-04', EG='1.19', time_epoch_completed='1630522387.23', return_code='0', job_id='691463', GAL2='0.91', EG2='1.25', return_code2='0', energy_flux_error='2.57e-05', photon_flux_error2='6.62e-08', ts2='5.83', photon_index='2.48' WHERE bin_id='1170' AND source_name='4FGL J1008.7-2909' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep  1 11:53:07 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0049>
Subject: Job 691463: <4FGL_J1008.7-2909_daily_bin1170> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1008.7-2909_daily_bin1170 152.199 -29.1559 542592001 542851201 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 :                                   462.00 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             236.74 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   735 sec.
    Turnaround time :                            749 sec.

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

