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


Performing analysis on: 4FGL_J1406.1-2508_daily_bin1100
RA = 211.544, Dec = -25.1386
tmin = 524448001, tmax = 524707201
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='184943', job_status='RUN', time_executed='2021-09-09 00:56:48.998694', time_epoch_executed='1631174209.0' WHERE source_name='4FGL J1406.1-2508' and cadence='daily' and bin_id='1100'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/184943

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/184943/ft1_4FGL_J1406.1-2508_daily_bin1100.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/184943/ft2_4FGL_J1406.1-2508_daily_bin1100.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/184943/ft1_4FGL_J1406.1-2508_daily_bin1100.fits outfile=/scratch/kocevski/184943/ft1_filteredMKT_4FGL_J1406.1-2508_daily_bin1100.fits ra=211.544 dec=-25.1386 rad=12.0 tmin=524448001.0 tmax=524707201.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.43
user 3.24
sys 0.18

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/184943/ft2_4FGL_J1406.1-2508_daily_bin1100.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/184943/ft1_filteredMKT_4FGL_J1406.1-2508_daily_bin1100.fits evtable="EVENTS" outfile="/scratch/kocevski/184943/ft1_filtered_4FGL_J1406.1-2508_daily_bin1100.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.50
user 0.34
sys 0.15

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/184943/ft1_filtered_4FGL_J1406.1-2508_daily_bin1100.fits" evtable="EVENTS" scfile=/scratch/kocevski/184943/ft2_4FGL_J1406.1-2508_daily_bin1100.fits sctable="SC_DATA" outfile=/scratch/kocevski/184943/ltcube_524448001_524707201_4FGL_J1406.1-2508_daily_bin1100.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/184943/ft2_4FGL_J1406.1-2508_daily_bin1100.fits
.....................!
real 16.08
user 15.70
sys 0.34

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/184943/ft1_filtered_4FGL_J1406.1-2508_daily_bin1100.fits evtable="EVENTS" scfile=/scratch/kocevski/184943/ft2_4FGL_J1406.1-2508_daily_bin1100.fits sctable="SC_DATA" expcube=/scratch/kocevski/184943/ltcube_524448001_524707201_4FGL_J1406.1-2508_daily_bin1100.fits outfile=/scratch/kocevski/184943/expmap_524448001_524707201_4FGL_J1406.1-2508_daily_bin1100.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/184943/ltcube_524448001_524707201_4FGL_J1406.1-2508_daily_bin1100.fits
.....................!
real 191.60
user 186.96
sys 4.28

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/184943/ft1_filtered_4FGL_J1406.1-2508_daily_bin1100.fits scfile=/scratch/kocevski/184943/ft2_4FGL_J1406.1-2508_daily_bin1100.fits outfile=/scratch/kocevski/184943/cmap_524448001_524707201_4FGL_J1406.1-2508_daily_bin1100.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.66
user 0.41
sys 0.11

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/184943/ft1_filtered_4FGL_J1406.1-2508_daily_bin1100.fits scfile=/scratch/kocevski/184943/ft2_4FGL_J1406.1-2508_daily_bin1100.fits outfile=/scratch/kocevski/184943/cmap_HighResolution_524448001_524707201_4FGL_J1406.1-2508_daily_bin1100.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.95
user 0.41
sys 0.13

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/184943/ft1_filtered_4FGL_J1406.1-2508_daily_bin1100.fits evtable="EVENTS" scfile=/scratch/kocevski/184943/ft2_4FGL_J1406.1-2508_daily_bin1100.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/184943/Model_4FGL_J1406.1-2508_daily_bin1100.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/184943/ft1_filtered_4FGL_J1406.1-2508_daily_bin1100.fits.....................!
real 105.36
user 101.35
sys 1.16

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/184943/ft1_filtered_4FGL_J1406.1-2508_daily_bin1100.fits', '/scratch/kocevski/184943/ft2_4FGL_J1406.1-2508_daily_bin1100.fits', expMap='/scratch/kocevski/184943/expmap_524448001_524707201_4FGL_J1406.1-2508_daily_bin1100.fits', expCube='/scratch/kocevski/184943/ltcube_524448001_524707201_4FGL_J1406.1-2508_daily_bin1100.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/184943/Model_4FGL_J1406.1-2508_daily_bin1100.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/184943/ft1_filtered_4FGL_J1406.1-2508_daily_bin1100.fits
Spacecraft file(s): /scratch/kocevski/184943/ft2_4FGL_J1406.1-2508_daily_bin1100.fits
Exposure map: /scratch/kocevski/184943/expmap_524448001_524707201_4FGL_J1406.1-2508_daily_bin1100.fits
Exposure cube: /scratch/kocevski/184943/ltcube_524448001_524707201_4FGL_J1406.1-2508_daily_bin1100.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/184943/Model_4FGL_J1406.1-2508_daily_bin1100.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) = 6007.58152728

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10011E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    1.5255       1.0000         .10000E-03   10000.    
     4 'Prefactor '    19.421       1.0000         .10000E-03   10000.    
     5 'norm      '    1.9990       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .14148E-03   1.0000         .10000E-03   10000.    
     7 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10031E-03   1.0000         .10000E-03   10000.    
     9 'norm      '    8.0370       1.0000         .10000E-03   10000.    
    10 'Prefactor '    1.6418       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10080E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    28.670       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10091E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    .10040E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    63.949       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    19 'norm      '    9.4118       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10067E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    4.8185       1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    24 'Normalizat'    1.0575       1.0000         .10000E-01   10.000    
    25 'Prefactor '    .98381       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=   6007.533     FROM MIGRAD    STATUS=CONVERGED    576 CALLS     2888 TOTAL
                     EDM=   .17E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  5.5%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    13.218        .10839E-06** at limit **
   2  Prefactor     .10000E-03    18.787        .95727E-06** at limit **
   3  Prefactor     1.5272        35.536        .90138E-05    .11841E-04
   4  Prefactor     19.420        16.575        .23197E-06   -.27348E-04
   5  norm          1.9982        6.3115        .11063E-05    .19211E-04
   6  Prefactor     .10000E-03    198.91        .80562E-05** at limit **
   7  norm          .10000E-03    8.6908        .68309E-07** at limit **
   8  Prefactor     .10000E-03    30.273        .76440E-07** at limit **
   9  norm          8.0389        14.988       -.21608E-06   -.13007E-04
  10  Prefactor     1.6404        5.0127        .72602E-06    .32877E-04
  11  Prefactor     .10000E-03    118.42       -.77518E-05** at limit **
  12  Prefactor     28.672        52.882       -.18147E-06   -.40043E-05
  13  Prefactor     .10000E-03    11.692       -.13033E-07** at limit **
  14  Prefactor     .10000E-03    29.973       -.21380E-06** at limit **
  15  Prefactor     .10000E-03    23.035       -.51204E-06** at limit **
  16  norm          .10000E-03    4.2667       -.10217E-06** at limit **
  17  Prefactor     63.944        51.403        .21090E-06    .42367E-05
  18  Prefactor     .10000E-03    29.215       -.51211E-06** at limit **
  19  norm          9.4114        15.914        .28034E-06    .28128E-05
  20  Prefactor     .10000E-03    14.051       -.91442E-06** at limit **
  21  Prefactor     .10000E-03    66.060        .18631E-05** at limit **
  22  Prefactor     4.6151        693.26        .47304E-04   -.49539E-05
  23  Prefactor     .10000E-03    6.0733       -.51435E-07** at limit **
  24  Normalizat    1.0575        .30429       -.33139E-05   -.94837E-05
  25  Prefactor     .98387        .11669        .62518E-06   -.96136E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 1.52716
  Prefactor  = 19.4199
  norm       = 1.99825
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 8.03891
  Prefactor  = 1.64038
  Prefactor  = 0.0001
  Prefactor  = 28.6722
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 63.9438
  Prefactor  = 0.0001
  norm       = 9.41142
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 4.6151
  Prefactor  = 0.0001
  Normalizat = 1.05752
  Prefactor  = 0.983871
 **********
 **   18 **HESSE 
 **********

 FCN=   6007.533     FROM HESSE     STATUS=OK           421 CALLS     3309 TOTAL
                     EDM=   .36E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    13.239        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    18.818        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     1.5272        35.837        .17287E-02   -1.5461    
   4  Prefactor     19.420        16.673        .90884E-04   -1.4826    
   5  norm          1.9982        6.3035        .29294E-03   -1.5425    
   6  Prefactor     .10000E-03    200.83        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          .10000E-03    8.6910        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    30.304        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          8.0389        14.901        .14143E-03   -1.5141    
  10  Prefactor     1.6404        4.9406        .27360E-03   -1.5452    
  11  Prefactor     .10000E-03    119.05        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     28.672        52.878        .74823E-04   -1.4637    
  13  Prefactor     .10000E-03    11.708        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    30.192        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    23.083        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          .10000E-03    4.2911        .15562E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     63.944        51.189        .50182E-04   -1.4107    
  18  Prefactor     .10000E-03    29.247        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  norm          9.4114        15.910        .13063E-03   -1.5094    
  20  Prefactor     .10000E-03    14.097        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10000E-03    66.231        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     4.6151        700.83        .18327E-02   -1.5278    
  23  Prefactor     .10000E-03    6.0838        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Normalizat    1.0575        .36365        .39809E-03   -.91128    
  25  Prefactor     .98387        .14223        .16516E-03   -.93269    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.58116e-11
Minuit parameter uncertainties:
  1  1.70039e-05
  2  9.06635e-06
  3  14.8052
  4  16.6768
  5  6.30555
  6  0.0004699
  7  3.83905e-07
  8  6.47404e-06
  9  14.9078
  10  4.94183
  11  0.000374397
  12  52.9644
  13  5.54309e-07
  14  3.16478e-06
  15  4.73027e-06
  16  4.55645e-06
  17  51.2238
  18  3.22226e-05
  19  15.9171
  20  4.52016e-05
  21  6.94238e-05
  22  115.142
  23  3.23552e-07
  24  0.364509
  25  0.142283
Done.

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

Extracting fit parameters...

4FGL J1406.1-2508
   Spectrum: PowerLaw
309    Prefactor:  2.867e+01  5.296e+01  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:  9.839e-01  1.423e-01  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:  1.058e+00  3.645e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 0.41
Ra Dec: 211.544 -25.139
Photon Flux Upper Limit: 1.08e-07 ph cm-2 s-1
Energy Flux Upper Limit: 8.11e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/184943/likelihoodResults_524448001_524707201_4FGL_J1406.1-2508_daily_bin1100.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) = 6007.53038875
delta logL = 0.00230276137427

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6007.52973663
delta logL = 0.00295488763186

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    26.665       1.0000         .10000E-03   10000.    
     2 'Index     '    2.1046       1.0000          .0000       10.000    
     3 'Normalizat'    1.0561       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .98411       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.

 FCN=   6007.530     FROM MIGRAD    STATUS=CONVERGED     47 CALLS      230 TOTAL
                     EDM=   .16E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     26.665        5938.4        .19395E-02   -.57509E-04
   2  Index         2.1046        5.6458        .18560       -.63645E-04
   3  Normalizat    1.0560        .11466        .89943E-01    .17158E-04
   4  Prefactor     .98417        .37765E-01    .46068E-01   -.67191E-06
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 26.665
  Index      = 2.10462
  Normalizat = 1.05597
  Prefactor  = 0.984166
 **********
 **   18 **HESSE 
 **********

 FCN=   6007.530     FROM HESSE     STATUS=OK            31 CALLS      261 TOTAL
                     EDM=   .71E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     26.665        60.169        .77579E-04   -1.4675    
   2  Index         2.1046        .98492        .10761E-01   -.61759    
   3  Normalizat    1.0560        .34358        .39835E-03   -.91178    
   4  Prefactor     .98417        .13909        .16514E-03   -.93259    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 7.10474e-10
Minuit parameter uncertainties:
  1  60.3061
  2  0.99476
  3  0.344309
  4  0.139137
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/184943': 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) = 6007.52973655
delta logL = 0.00295496159288

Extracting fit parameters...

4FGL J1406.1-2508
   Spectrum: PowerLaw
309    Prefactor:  2.666e+01  6.031e+01  1.000e-04  1.000e+04 ( 1.000e-14)
310        Index:  2.105e+00  9.948e-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:  9.842e-01  1.391e-01  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:  1.056e+00  3.443e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 0.41
Ra Dec: 211.544 -25.139

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/184943/cmap_HighResolution_524448001_524707201_4FGL_J1406.1-2508_daily_bin1100.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='8.11e-03', job_status='DONE', photon_flux_upper_limit='1.08e-07', time_completed='2021-09-09 01:10:19.599067', job_id='184943', GAL2='0.98', fit_tolerance='1e-08', EG2='1.06', EG='1.06', time_epoch_completed='1631175019.6', return_code2='0', ts='0.41', comment='SUCCESS', return_code='0', GAL='0.98', dlogl='2.95e-03', ts2='0.41', photon_index_error='0.00', photon_index='2.03' WHERE bin_id='1100' AND source_name='4FGL J1406.1-2508' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Thu Sep  9 01:10:19 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0090>
Subject: Job 184943: <4FGL_J1406.1-2508_daily_bin1100> in cluster <slac> Done

Job <4FGL_J1406.1-2508_daily_bin1100> was submitted from host <rhel6-64f> by user <kocevski> in cluster <slac> at Thu Sep  9 00:55:40 2021
Job was executed on host(s) <bullet0090>, in queue <medium>, as user <kocevski> in cluster <slac> at Thu Sep  9 00:55:44 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:44 2021
Terminated at Thu Sep  9 01:10:25 2021
Results reported at Thu Sep  9 01:10:25 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1406.1-2508_daily_bin1100 211.544 -25.1386 524448001 524707201 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 :                                   762.40 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             331.73 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   881 sec.
    Turnaround time :                            885 sec.

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

