/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 3 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 = 7464
number of fields = 27
No RA_SUN column yet. Adding RA_SUN/DEC_SUN columns.
Done.


Performing analysis on: 4FGL_J1406.1-2508_daily_bin144
RA = 211.544, Dec = -25.1386
tmin = 276652801, tmax = 276912001
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='177646', job_status='RUN', time_executed='2021-09-09 00:31:04.370502', time_epoch_executed='1631172664.37' WHERE source_name='4FGL J1406.1-2508' and cadence='daily' and bin_id='144'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/177646

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/177646/ft1_4FGL_J1406.1-2508_daily_bin144.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/177646/ft2_4FGL_J1406.1-2508_daily_bin144.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/177646/ft1_4FGL_J1406.1-2508_daily_bin144.fits outfile=/scratch/kocevski/177646/ft1_filteredMKT_4FGL_J1406.1-2508_daily_bin144.fits ra=211.544 dec=-25.1386 rad=12.0 tmin=276652801.0 tmax=276912001.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 4.62
user 4.34
sys 0.24

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/177646/ft1_filtered_4FGL_J1406.1-2508_daily_bin144.fits" evtable="EVENTS" scfile=/scratch/kocevski/177646/ft2_4FGL_J1406.1-2508_daily_bin144.fits sctable="SC_DATA" outfile=/scratch/kocevski/177646/ltcube_276652801_276912001_4FGL_J1406.1-2508_daily_bin144.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/177646/ft2_4FGL_J1406.1-2508_daily_bin144.fits
.....................!
real 11.96
user 11.62
sys 0.30

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/177646/ft1_filtered_4FGL_J1406.1-2508_daily_bin144.fits evtable="EVENTS" scfile=/scratch/kocevski/177646/ft2_4FGL_J1406.1-2508_daily_bin144.fits sctable="SC_DATA" expcube=/scratch/kocevski/177646/ltcube_276652801_276912001_4FGL_J1406.1-2508_daily_bin144.fits outfile=/scratch/kocevski/177646/expmap_276652801_276912001_4FGL_J1406.1-2508_daily_bin144.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/177646/ltcube_276652801_276912001_4FGL_J1406.1-2508_daily_bin144.fits
.....................!
real 189.60
user 184.97
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/177646/ft1_filtered_4FGL_J1406.1-2508_daily_bin144.fits scfile=/scratch/kocevski/177646/ft2_4FGL_J1406.1-2508_daily_bin144.fits outfile=/scratch/kocevski/177646/cmap_276652801_276912001_4FGL_J1406.1-2508_daily_bin144.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.54
user 0.37
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/177646/ft1_filtered_4FGL_J1406.1-2508_daily_bin144.fits scfile=/scratch/kocevski/177646/ft2_4FGL_J1406.1-2508_daily_bin144.fits outfile=/scratch/kocevski/177646/cmap_HighResolution_276652801_276912001_4FGL_J1406.1-2508_daily_bin144.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.54
user 0.38
sys 0.14

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    29.732       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .11074E-03   1.0000         .10000E-03   10000.    
     5 'norm      '    19.834       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     7 'norm      '    22.825       1.0000         .10000E-03   10000.    
     8 'Prefactor '    40.422       1.0000         .10000E-03   10000.    
     9 'norm      '    .10563E-01   1.0000         .10000E-03   10000.    
    10 'Prefactor '    3.7447       1.0000         .10000E-03   10000.    
    11 'Prefactor '    49.846       1.0000         .10000E-03   10000.    
    12 'Prefactor '    27.650       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10011E-03   1.0000         .10000E-03   10000.    
    19 'norm      '    .10091E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    17.202       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .60865E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    24 'Normalizat'    1.7127       1.0000         .10000E-01   10.000    
    25 'Prefactor '    .75285       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=   5932.249     FROM MIGRAD    STATUS=CONVERGED    615 CALLS     3372 TOTAL
                     EDM=   .46E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  5.3%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     29.750        20.243        .12761E-05    .12569E-03
   2  Prefactor     .10000E-03    17.497       -.10210E-05** at limit **
   3  Prefactor     .10000E-03    6.5818       -.33585E-06** at limit **
   4  Prefactor     .10000E-03    21.819        .84362E-06** at limit **
   5  norm          19.835        8.6277       -.43737E-06    .11298E-04
   6  Prefactor     .10000E-03    60.302        .17686E-05** at limit **
   7  norm          22.827        22.717        .29483E-06    .13920E-04
   8  Prefactor     40.424        41.767        .81336E-07    .64626E-05
   9  norm          .10427E-03    351.71       -.10118E-04** at limit **
  10  Prefactor     3.7398        5.9323       -.76381E-06    .22874E-04
  11  Prefactor     49.842        105.93        .28477E-05    .29713E-04
  12  Prefactor     27.669        61.758       -.11292E-05    .53399E-05
  13  Prefactor     .10000E-03    17.934        .68264E-07** at limit **
  14  Prefactor     .10000E-03    4.3839       -.22779E-06** at limit **
  15  Prefactor     .10000E-03    18.423        .46587E-06** at limit **
  16  norm          .10000E-03    2.3504       -.62343E-06** at limit **
  17  Prefactor     .10000E-03    55.373       -.45945E-05** at limit **
  18  Prefactor     .10000E-03    29.667       -.19016E-05** at limit **
  19  norm          .10301E-03    192.21        .45058E-05** at limit **
  20  Prefactor     17.210        30.080        .15513E-05    .65013E-04
  21  Prefactor     .10003E-03    861.20       -.35584E-04** at limit **
  22  Prefactor     .10000E-03    82.864       -.68616E-06** at limit **
  23  Prefactor     .10000E-03    26.635       -.25976E-05** at limit **
  24  Normalizat    1.7127        .33581        .43929E-05    .11646E-03
  25  Prefactor     .75278        .12503       -.15143E-05    .50952E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 29.7505
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 19.8355
  Prefactor  = 0.0001
  norm       = 22.8266
  Prefactor  = 40.4237
  norm       = 0.000104274
  Prefactor  = 3.73984
  Prefactor  = 49.8416
  Prefactor  = 27.6685
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.000103008
  Prefactor  = 17.2095
  Prefactor  = 0.000100029
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Normalizat = 1.71268
  Prefactor  = 0.752779
 **********
 **   18 **HESSE 
 **********

 FCN=   5932.249     FROM HESSE     STATUS=OK           433 CALLS     3805 TOTAL
                     EDM=   .10E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     29.750        20.228        .73478E-04   -1.4617    
   2  Prefactor     .10000E-03    17.534        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    6.6089        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    21.978        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          19.835        8.6235        .89934E-04   -1.4817    
   6  Prefactor     .10000E-03    60.289        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          22.827        22.716        .83841E-04   -1.4752    
   8  Prefactor     40.424        41.776        .63047E-04   -1.4436    
   9  norm          .10427E-03    27.354        .84350E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     3.7398        6.5083        .10432E-02   -1.5321    
  11  Prefactor     49.842        106.15        .56800E-04   -1.4295    
  12  Prefactor     27.669        61.773        .76188E-04   -1.4655    
  13  Prefactor     .10000E-03    17.997        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    4.3874        .15753E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    18.444        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          .10000E-03    2.3807        .11547E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    55.902        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    29.777        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  norm          .10301E-03    20.727        .83438E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     17.210        30.324        .96567E-04   -1.4878    
  21  Prefactor     .10003E-03    882.50        .42113E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     .10000E-03    82.894        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     .10000E-03    26.990        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Normalizat    1.7127        .39877        .34076E-03   -.71965    
  25  Prefactor     .75278        .14964        .18826E-03   -1.0149    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.02143e-09
Minuit parameter uncertainties:
  1  20.2322
  2  2.1199e-05
  3  5.38649e-06
  4  2.6082e-05
  5  8.62399
  6  2.25067e-05
  7  22.7243
  8  41.8067
  9  0.0216355
  10  6.50955
  11  106.558
  12  61.9161
  13  2.8783e-05
  14  6.47057e-06
  15  1.20783e-05
  16  1.2879e-05
  17  0.000296495
  18  0.000137427
  19  0.0157964
  20  30.351
  21  0.010323
  22  0.000180018
  23  0.000127229
  24  0.399521
  25  0.149725
Done.

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

Extracting fit parameters...

4FGL J1406.1-2508
   Spectrum: PowerLaw
309    Prefactor:  2.767e+01  6.192e+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:  7.528e-01  1.497e-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.713e+00  3.995e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/177646/likelihoodResults_276652801_276912001_4FGL_J1406.1-2508_daily_bin144.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) = 5932.1695312
delta logL = 0.0798099147423

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5932.15577345
delta logL = 0.0935676612344

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    19.429       1.0000         .10000E-03   10000.    
     2 'Index     '    2.4621       1.0000          .0000       10.000    
     3 'Normalizat'    1.6966       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .75571       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=   5932.156     FROM MIGRAD    STATUS=CONVERGED     87 CALLS      280 TOTAL
                     EDM=   .64E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     19.431        56.186        .90867E-04    .66185E-04
   2  Index         2.4622        1.1649        .84702E-02    .23376E-04
   3  Normalizat    1.6965        .38393        .34202E-03    .15247E-03
   4  Prefactor     .75573        .14828        .18790E-03    .27888E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 19.4313
  Index      = 2.46224
  Normalizat = 1.69655
  Prefactor  = 0.755727
 **********
 **   18 **HESSE 
 **********

 FCN=   5932.156     FROM HESSE     STATUS=OK            25 CALLS      305 TOTAL
                     EDM=   .82E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     19.431        47.182        .36347E-05   -1.4826    
   2  Index         2.4622        .98066        .33881E-03   -.53234    
   3  Normalizat    1.6965        .38406        .68403E-04   -.72395    
   4  Prefactor     .75573        .14831        .37581E-04   -1.0138    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 8.22302e-11
Minuit parameter uncertainties:
  1  47.2729
  2  0.989337
  3  0.384737
  4  0.148385
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/177646': 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) = 5932.15577342
delta logL = 0.0935676971467

Extracting fit parameters...

4FGL J1406.1-2508
   Spectrum: PowerLaw
309    Prefactor:  1.943e+01  4.727e+01  1.000e-04  1.000e+04 ( 1.000e-14)
310        Index:  2.462e+00  9.893e-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:  7.557e-01  1.484e-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.697e+00  3.847e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 0.25
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/177646/cmap_HighResolution_276652801_276912001_4FGL_J1406.1-2508_daily_bin144.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='8.71e-03', job_status='DONE', photon_flux_upper_limit='1.16e-07', time_completed='2021-09-09 00:44:33.052197', job_id='177646', GAL2='0.76', fit_tolerance='1e-08', EG2='1.70', EG='1.71', time_epoch_completed='1631173473.05', return_code2='0', ts='0.25', comment='SUCCESS', return_code='0', GAL='0.75', dlogl='9.36e-02', ts2='0.44', photon_index_error='0.00', photon_index='2.03' WHERE bin_id='144' AND source_name='4FGL J1406.1-2508' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Thu Sep  9 00:44:33 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0218>
Subject: Job 177646: <4FGL_J1406.1-2508_daily_bin144> in cluster <slac> Done

Job <4FGL_J1406.1-2508_daily_bin144> was submitted from host <rhel6-64h> by user <kocevski> in cluster <slac> at Thu Sep  9 00:30:51 2021
Job was executed on host(s) <bullet0218>, in queue <medium>, as user <kocevski> in cluster <slac> at Thu Sep  9 00:30:53 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:30:53 2021
Terminated at Thu Sep  9 00:44:33 2021
Results reported at Thu Sep  9 00:44:33 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1406.1-2508_daily_bin144 211.544 -25.1386 276652801 276912001 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 :                                   803.22 sec.
    Max Memory :                                 1095 MB
    Average Memory :                             312.85 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   820 sec.
    Turnaround time :                            822 sec.

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

