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


Performing analysis on: 4FGL_J1406.1-2508_daily_bin1171
RA = 211.544, Dec = -25.1386
tmin = 542851201, tmax = 543110401
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='185051', job_status='RUN', time_executed='2021-09-09 00:56:44.561222', time_epoch_executed='1631174204.56' WHERE source_name='4FGL J1406.1-2508' and cadence='daily' and bin_id='1171'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/185051

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

Retrieving the FT1 file...

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

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

Retrieving 4 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/185051/ft1_4FGL_J1406.1-2508_daily_bin1171.fits


Retrieving the FT1 file...

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

Retrieving 4 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/185051/ft2_4FGL_J1406.1-2508_daily_bin1171.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/185051/ft1_4FGL_J1406.1-2508_daily_bin1171.fits outfile=/scratch/kocevski/185051/ft1_filteredMKT_4FGL_J1406.1-2508_daily_bin1171.fits ra=211.544 dec=-25.1386 rad=12.0 tmin=542851201.0 tmax=543110401.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 0.76
user 0.59
sys 0.15

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/185051/ft2_4FGL_J1406.1-2508_daily_bin1171.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/185051/ft2_4FGL_J1406.1-2508_daily_bin1171.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/185051/ft1_filteredMKT_4FGL_J1406.1-2508_daily_bin1171.fits evtable="EVENTS" outfile="/scratch/kocevski/185051/ft1_filtered_4FGL_J1406.1-2508_daily_bin1171.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.48
user 0.30
sys 0.14

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/185051/ft1_filtered_4FGL_J1406.1-2508_daily_bin1171.fits" evtable="EVENTS" scfile=/scratch/kocevski/185051/ft2_4FGL_J1406.1-2508_daily_bin1171.fits sctable="SC_DATA" outfile=/scratch/kocevski/185051/ltcube_542851201_543110401_4FGL_J1406.1-2508_daily_bin1171.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/185051/ft2_4FGL_J1406.1-2508_daily_bin1171.fits
.....................!
real 1.83
user 1.47
sys 0.33

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/185051/ft1_filtered_4FGL_J1406.1-2508_daily_bin1171.fits evtable="EVENTS" scfile=/scratch/kocevski/185051/ft2_4FGL_J1406.1-2508_daily_bin1171.fits sctable="SC_DATA" expcube=/scratch/kocevski/185051/ltcube_542851201_543110401_4FGL_J1406.1-2508_daily_bin1171.fits outfile=/scratch/kocevski/185051/expmap_542851201_543110401_4FGL_J1406.1-2508_daily_bin1171.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/185051/ltcube_542851201_543110401_4FGL_J1406.1-2508_daily_bin1171.fits
.....................!
real 189.61
user 184.23
sys 4.93

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
Extended source CenA Lobes in ROI, make sure /nfs/farm/g/glast/g/LCRepository/Likelihood/ExtendedSources/Extended_archive_v18/Templates/CenALobes.fits is the correct path to the extended template.
Added 193 point sources and 1 extended sources
If using unbinned likelihood you will need to rerun gtdiffrsp for the extended sources or rerun the makeModel function with optional argument psForce=True

Setting source of interest to:
4FGL J1406.1-2508 @ 211.544 -25.1386

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/185051/ft1_filtered_4FGL_J1406.1-2508_daily_bin1171.fits scfile=/scratch/kocevski/185051/ft2_4FGL_J1406.1-2508_daily_bin1171.fits outfile=/scratch/kocevski/185051/cmap_542851201_543110401_4FGL_J1406.1-2508_daily_bin1171.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=211.544 yref=-25.1386 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.34
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/185051/ft1_filtered_4FGL_J1406.1-2508_daily_bin1171.fits scfile=/scratch/kocevski/185051/ft2_4FGL_J1406.1-2508_daily_bin1171.fits outfile=/scratch/kocevski/185051/cmap_HighResolution_542851201_543110401_4FGL_J1406.1-2508_daily_bin1171.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=211.544 yref=-25.1386 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.56
user 0.35
sys 0.15

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/185051/ft1_filtered_4FGL_J1406.1-2508_daily_bin1171.fits evtable="EVENTS" scfile=/scratch/kocevski/185051/ft2_4FGL_J1406.1-2508_daily_bin1171.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/185051/Model_4FGL_J1406.1-2508_daily_bin1171.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 CenA Lobes
adding source EG_v02
adding source GAL_V02
Working on...
/scratch/kocevski/185051/ft1_filtered_4FGL_J1406.1-2508_daily_bin1171.fits.............!
real 16.63
user 14.49
sys 1.18

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/185051/ft1_filtered_4FGL_J1406.1-2508_daily_bin1171.fits', '/scratch/kocevski/185051/ft2_4FGL_J1406.1-2508_daily_bin1171.fits', expMap='/scratch/kocevski/185051/expmap_542851201_543110401_4FGL_J1406.1-2508_daily_bin1171.fits', expCube='/scratch/kocevski/185051/ltcube_542851201_543110401_4FGL_J1406.1-2508_daily_bin1171.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/185051/Model_4FGL_J1406.1-2508_daily_bin1171.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J1406.1-2508'

4FGL J1406.1-2508
   Spectrum: PowerLaw
309    Prefactor:  7.649e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-14)
310        Index:  2.033e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
311        Scale:  2.354e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/185051/ft1_filtered_4FGL_J1406.1-2508_daily_bin1171.fits
Spacecraft file(s): /scratch/kocevski/185051/ft2_4FGL_J1406.1-2508_daily_bin1171.fits
Exposure map: /scratch/kocevski/185051/expmap_542851201_543110401_4FGL_J1406.1-2508_daily_bin1171.fits
Exposure cube: /scratch/kocevski/185051/ltcube_542851201_543110401_4FGL_J1406.1-2508_daily_bin1171.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/185051/Model_4FGL_J1406.1-2508_daily_bin1171.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) = 145.445081676

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10016E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    220.56       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10009E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .24741E-03   1.0000         .10000E-03   10000.    
     5 'norm      '    134.37       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .11420E-03   1.0000         .10000E-03   10000.    
     7 'norm      '    .13047E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10320E-03   1.0000         .10000E-03   10000.    
     9 'norm      '    .10022E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10015E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .13468E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    1068.5       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10599E-02   1.0000         .10000E-03   10000.    
    14 'Prefactor '    172.89       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10201E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .13236E-03   1.0000         .10000E-03   10000.    
    19 'norm      '    191.64       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .21022E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    595.54       1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10461E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10040E-03   1.0000         .10000E-03   10000.    
    24 'Normalizat'    .36301       1.0000         .10000E-01   10.000    
    25 'Prefactor '    .11130E-04   1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6450E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   145.4058     FROM MIGRAD    STATUS=CONVERGED    548 CALLS     2848 TOTAL
                     EDM=   .42E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  3.8%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    108.49        .51667E-06** at limit **
   2  Prefactor     220.95        296.75       -.48638E-05    .11259E-04
   3  Prefactor     .10000E-03    75.490        .43173E-07** at limit **
   4  Prefactor     .10000E-03    395.80        .95957E-05** at limit **
   5  norm          134.49        96.754       -.46934E-05    .63393E-04
   6  Prefactor     .10000E-03    521.07        .20351E-05** at limit **
   7  norm          .10000E-03    268.15       -.21426E-05** at limit **
   8  Prefactor     .10001E-03    6904.2       -.30050E-04** at limit **
   9  norm          .10000E-03    76.618        .23936E-06** at limit **
  10  Prefactor     .10000E-03    23.433        .83291E-07** at limit **
  11  Prefactor     .10000E-03    533.89        .23353E-05** at limit **
  12  Prefactor     1069.2        1100.0       -.29244E-04    .30588E-04
  13  Prefactor     .10002E-03    1970.1       -.17457E-04** at limit **
  14  Prefactor     173.47        240.28       -.68259E-05    .54038E-04
  15  Prefactor     .10000E-03    387.52        .16545E-05** at limit **
  16  norm          .10000E-03    39.687        .77335E-06** at limit **
  17  Prefactor     .10000E-03    512.65        .24391E-05** at limit **
  18  Prefactor     .10000E-03    702.59       -.11528E-05** at limit **
  19  norm          191.94        198.78       -.84632E-05    .59076E-04
  20  Prefactor     .10000E-03    299.02       -.71926E-07** at limit **
  21  Prefactor     594.85        579.86       -.17620E-04    .73283E-05
  22  Prefactor     .10000E-03    878.37       -.47365E-05** at limit **
  23  Prefactor     .10000E-03    54.628       -.17688E-06** at limit **
  24  Normalizat    .35880        1.2198        .40184E-04    .47067E-04
  25  Prefactor     .22288E-08    1.0318        .91951E-05** at limit **
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 220.954
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 134.485
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.000100013
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 1069.16
  Prefactor  = 0.000100019
  Prefactor  = 173.47
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 191.941
  Prefactor  = 0.0001
  Prefactor  = 594.847
  Prefactor  = 0.000100001
  Prefactor  = 0.0001
  Normalizat = 0.358798
  Prefactor  = 2.22883e-09
 **********
 **   18 **HESSE 
 **********

 FCN=   145.4058     FROM HESSE     STATUS=OK           403 CALLS     3251 TOTAL
                     EDM=   .16E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    108.47        .12308E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     220.95        296.61        .13618E-03   -1.2724    
   3  Prefactor     .10000E-03    75.482        .10262E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    393.32        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          134.49        96.965        .17371E-03   -1.3383    
   6  Prefactor     .10000E-03    520.97        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          .10000E-03    268.20        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10001E-03    6910.1        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          .10000E-03    76.618        .10338E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    23.434        .57124E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    533.64        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     1069.2        1098.5        .64742E-04   -.90458    
  13  Prefactor     .10002E-03    1977.1        .20724E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     173.47        240.07        .15344E-03   -1.3066    
  15  Prefactor     .10000E-03    387.82        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          .10000E-03    39.669        .74334E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    512.54        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    703.18        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  norm          191.94        198.81        .14588E-03   -1.2928    
  20  Prefactor     .10000E-03    299.35        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     594.85        581.84        .84510E-04   -1.0780    
  22  Prefactor     .10000E-03    878.85        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     .10000E-03    54.634        .87263E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Normalizat    .35880        1.2601        .48597E-03   -1.1949    
  25  Prefactor     .22288E-08    1.7411        .74534E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.56969e-09
Minuit parameter uncertainties:
  1  3.73428e-06
  2  298.657
  3  4.72046e-05
  4  0.000547181
  5  97.0795
  6  0.000389637
  7  0.000428684
  8  0.0153658
  9  2.59851e-05
  10  2.66144e-06
  11  0.000251239
  12  1123.09
  13  0.0127751
  14  241.448
  15  0.000715465
  16  6.58034e-05
  17  9.38409e-05
  18  0.00101976
  19  199.517
  20  0.000534247
  21  587.869
  22  0.0019938
  23  4.2655e-05
  24  1.38312
  25  0.000128522
Done.

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

Extracting fit parameters...

4FGL J1406.1-2508
   Spectrum: PowerLaw
309    Prefactor:  1.069e+03  1.123e+03  1.000e-04  1.000e+04 ( 1.000e-14)
310        Index:  2.033e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
311        Scale:  2.354e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
642    Prefactor:  2.229e-09  1.285e-04  0.000e+00  1.000e+01 ( 1.000e+00)
643        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
644        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
641   Normalization:  3.588e-01  1.383e+00  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 4.24
Ra Dec: 211.544 -25.139
Photon Index (Fixed Index): 2.03 +/- 0.00
Photon Flux (Fixed Index): 6.37e-07 +/- 6.68e-07
Energy Flux (Fixed Index): 4.06e-04 +/- 4.27e-04

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) = 145.324057625
delta logL = 0.081780346362

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 145.323557206
delta logL = 0.0822807655546

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    621.23       1.0000         .10000E-03   10000.    
     2 'Index     '    2.3520       1.0000          .0000       10.000    
     3 'Normalizat'    .33687       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .57587E-03   1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6450E+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=   145.3235     FROM MIGRAD    STATUS=CONVERGED    101 CALLS      304 TOTAL
                     EDM=   .94E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     618.72        1155.8        .82857E-04    .51496E-05
   2  Index         2.3531        .84346        .10575E-03   -.80293E-06
   3  Normalizat    .33719        .84763        .49999E-03    .42747E-05
   4  Prefactor     .27084E-11    7.8749        .92582E-02** at limit **
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 618.718
  Index      = 2.35308
  Normalizat = 0.337187
  Prefactor  = 2.70839e-12
 **********
 **   18 **HESSE 
 **********

 FCN=   145.3235     FROM HESSE     STATUS=OK            23 CALLS      327 TOTAL
                     EDM=   .90E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     618.72        1151.9        .16571E-04   -1.0680    
   2  Index         2.3531        .84042        .42300E-05   -.55787    
   3  Normalizat    .33719        .84307        .20000E-04   -1.2068    
   4  Prefactor     .27084E-11    7.8813        .18516E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 8.95174e-12
Minuit parameter uncertainties:
  1  1201.01
  2  0.846019
  3  0.878358
  4  8.97141e-06
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/185051': 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) = 145.323510427
delta logL = 0.0823275448006

Extracting fit parameters...

4FGL J1406.1-2508
   Spectrum: PowerLaw
309    Prefactor:  6.187e+02  1.201e+03  1.000e-04  1.000e+04 ( 1.000e-14)
310        Index:  2.353e+00  8.460e-01  0.000e+00  1.000e+01 (-1.000e+00)
311        Scale:  2.354e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
642    Prefactor:  2.708e-12  8.971e-06  0.000e+00  1.000e+01 ( 1.000e+00)
643        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
644        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
641   Normalization:  3.372e-01  8.784e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 2.96
Ra Dec: 211.544 -25.139
Photon Index (Free Index): 2.35 +/- 0.85
Photon Flux (Free Index): 7.73e-07 +/- 8.10e-07
Energy Flux (Free Index): 2.70e-04 +/- 3.49e-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/185051/cmap_HighResolution_542851201_543110401_4FGL_J1406.1-2508_daily_bin1171.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='6.37e-07', energy_flux2='2.70e-04', photon_flux_error='6.68e-07', dlogl='8.23e-02', energy_flux='4.06e-04', photon_flux2='7.73e-07', job_status='DONE', time_completed='2021-09-09 01:01:50.141845', photon_index_error2='0.85', photon_index2='2.35', ts='4.24', fit_tolerance='1e-08', GAL='0.00', photon_index_error='0.00', energy_flux_error2='3.49e-04', EG='0.36', time_epoch_completed='1631174510.14', return_code='0', job_id='185051', GAL2='0.00', EG2='0.34', return_code2='0', energy_flux_error='4.27e-04', photon_flux_error2='8.10e-07', ts2='2.96', photon_index='2.03' WHERE bin_id='1171' AND source_name='4FGL J1406.1-2508' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Thu Sep  9 01:01:50 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0167>
Subject: Job 185051: <4FGL_J1406.1-2508_daily_bin1171> in cluster <slac> Done

Job <4FGL_J1406.1-2508_daily_bin1171> was submitted from host <rhel6-64f> by user <kocevski> in cluster <slac> at Thu Sep  9 00:55:50 2021
Job was executed on host(s) <bullet0167>, in queue <medium>, as user <kocevski> in cluster <slac> at Thu Sep  9 00:55:51 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Thu Sep  9 00:55:51 2021
Terminated at Thu Sep  9 01:01:51 2021
Results reported at Thu Sep  9 01:01:51 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1406.1-2508_daily_bin1171 211.544 -25.1386 542851201 543110401 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J1406.1-2508 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   304.33 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             460.42 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   359 sec.
    Turnaround time :                            361 sec.

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

