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


Performing analysis on: 4FGL_J1406.1-2508_daily_bin1019
RA = 211.544, Dec = -25.1386
tmin = 503452801, tmax = 503712001
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='184820', job_status='RUN', time_executed='2021-09-09 00:55:59.875246', time_epoch_executed='1631174159.88' WHERE source_name='4FGL J1406.1-2508' and cadence='daily' and bin_id='1019'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/184820

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/184820/ft1_4FGL_J1406.1-2508_daily_bin1019.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/184820/ft2_4FGL_J1406.1-2508_daily_bin1019.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/184820/ft1_4FGL_J1406.1-2508_daily_bin1019.fits outfile=/scratch/kocevski/184820/ft1_filteredMKT_4FGL_J1406.1-2508_daily_bin1019.fits ra=211.544 dec=-25.1386 rad=12.0 tmin=503452801.0 tmax=503712001.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 7.70
user 7.41
sys 0.26

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/184820/ft2_4FGL_J1406.1-2508_daily_bin1019.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/184820/ft1_filteredMKT_4FGL_J1406.1-2508_daily_bin1019.fits evtable="EVENTS" outfile="/scratch/kocevski/184820/ft1_filtered_4FGL_J1406.1-2508_daily_bin1019.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/184820/ft1_filtered_4FGL_J1406.1-2508_daily_bin1019.fits" evtable="EVENTS" scfile=/scratch/kocevski/184820/ft2_4FGL_J1406.1-2508_daily_bin1019.fits sctable="SC_DATA" outfile=/scratch/kocevski/184820/ltcube_503452801_503712001_4FGL_J1406.1-2508_daily_bin1019.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/184820/ft2_4FGL_J1406.1-2508_daily_bin1019.fits
.....................!
real 11.57
user 11.23
sys 0.31

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/184820/ft1_filtered_4FGL_J1406.1-2508_daily_bin1019.fits evtable="EVENTS" scfile=/scratch/kocevski/184820/ft2_4FGL_J1406.1-2508_daily_bin1019.fits sctable="SC_DATA" expcube=/scratch/kocevski/184820/ltcube_503452801_503712001_4FGL_J1406.1-2508_daily_bin1019.fits outfile=/scratch/kocevski/184820/expmap_503452801_503712001_4FGL_J1406.1-2508_daily_bin1019.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/184820/ltcube_503452801_503712001_4FGL_J1406.1-2508_daily_bin1019.fits
.....................!
real 190.14
user 185.53
sys 4.30

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/184820/ft1_filtered_4FGL_J1406.1-2508_daily_bin1019.fits scfile=/scratch/kocevski/184820/ft2_4FGL_J1406.1-2508_daily_bin1019.fits outfile=/scratch/kocevski/184820/cmap_503452801_503712001_4FGL_J1406.1-2508_daily_bin1019.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.64
user 0.38
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/184820/ft1_filtered_4FGL_J1406.1-2508_daily_bin1019.fits scfile=/scratch/kocevski/184820/ft2_4FGL_J1406.1-2508_daily_bin1019.fits outfile=/scratch/kocevski/184820/cmap_HighResolution_503452801_503712001_4FGL_J1406.1-2508_daily_bin1019.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.38
sys 0.15

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/184820/ft1_filtered_4FGL_J1406.1-2508_daily_bin1019.fits evtable="EVENTS" scfile=/scratch/kocevski/184820/ft2_4FGL_J1406.1-2508_daily_bin1019.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/184820/Model_4FGL_J1406.1-2508_daily_bin1019.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/184820/ft1_filtered_4FGL_J1406.1-2508_daily_bin1019.fits....................!
real 119.92
user 118.36
sys 1.18

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .32825       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10008E-03   1.0000         .10000E-03   10000.    
     5 'norm      '    .10053E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     7 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    20.047       1.0000         .10000E-03   10000.    
     9 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    6.7908       1.0000         .10000E-03   10000.    
    11 'Prefactor '    69.722       1.0000         .10000E-03   10000.    
    12 'Prefactor '    7.4129       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    15.462       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    .14363E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10223E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    159.14       1.0000         .10000E-03   10000.    
    19 'norm      '    11.659       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10219E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    24 'Normalizat'    1.8600       1.0000         .10000E-01   10.000    
    25 'Prefactor '    .58249       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=   6799.497     FROM MIGRAD    STATUS=CONVERGED    550 CALLS     2839 TOTAL
                     EDM=   .30E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .3%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .47126        6.2878        .13416E-06   -.11315E-03
   2  Prefactor     .10000E-03    11.532        .39350E-05** at limit **
   3  Prefactor     .10000E-03    6.3333        .41820E-05** at limit **
   4  Prefactor     .10000E-03    4.5470        .45591E-06** at limit **
   5  norm          .10000E-03    2.0627        .18847E-06** at limit **
   6  Prefactor     .10000E-03    20.221       -.71102E-05** at limit **
   7  norm          .10000E-03    7.1528       -.12970E-05** at limit **
   8  Prefactor     20.021        53.355       -.48395E-04   -.17200E-05
   9  norm          .10000E-03    5.6090        .20024E-05** at limit **
  10  Prefactor     6.7927        4.2767       -.23013E-05   -.45278E-03
  11  Prefactor     69.741        64.621        .21733E-04    .21170E-04
  12  Prefactor     7.4188        42.074        .17099E-04   -.11288E-04
  13  Prefactor     .10000E-03    9.7401        .46000E-05** at limit **
  14  Prefactor     15.468        15.167        .29168E-05    .28196E-03
  15  Prefactor     .10000E-03    7.3770       -.24131E-05** at limit **
  16  norm          .10000E-03    3.3736       -.28835E-05** at limit **
  17  Prefactor     .10000E-03    28.526        .18250E-04** at limit **
  18  Prefactor     159.15        57.191        .63008E-05    .31371E-03
  19  norm          11.663        12.956        .16302E-05   -.15977E-04
  20  Prefactor     .10000E-03    13.585       -.65943E-05** at limit **
  21  Prefactor     .10000E-03    22.293        .15210E-05** at limit **
  22  Prefactor     .10000E-03    38.777       -.13565E-04** at limit **
  23  Prefactor     .10000E-03    5.3286       -.26506E-05** at limit **
  24  Normalizat    1.8597        .24889        .10359E-05    .16294E-03
  25  Prefactor     .58252        .97441E-01   -.36381E-06    .41800E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.471263
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 20.0209
  norm       = 0.0001
  Prefactor  = 6.7927
  Prefactor  = 69.7414
  Prefactor  = 7.41881
  Prefactor  = 0.0001
  Prefactor  = 15.4681
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 159.148
  norm       = 11.6631
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Normalizat = 1.85969
  Prefactor  = 0.582524
 **********
 **   18 **HESSE 
 **********

 FCN=   6799.497     FROM HESSE     STATUS=OK           417 CALLS     3256 TOTAL
                     EDM=   .65E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .47126        44.896        .39634E-02   -1.5571    
   2  Prefactor     .10000E-03    11.553        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    6.3906        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    4.5605        .17163E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          .10000E-03    2.0796        .11565E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    20.226        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          .10000E-03    7.1527        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     20.021        53.383        .89455E-04   -1.4813    
   9  norm          .10000E-03    5.6297        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     6.7927        4.3068        .12858E-03   -1.5187    
  11  Prefactor     69.741        64.608        .48074E-04   -1.4036    
  12  Prefactor     7.4188        41.961        .14731E-03   -1.5163    
  13  Prefactor     .10000E-03    9.7496        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     15.468        15.087        .10186E-03   -1.4921    
  15  Prefactor     .10000E-03    7.3816        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          .10000E-03    7.6214        .28678E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    28.457        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     159.15        56.751        .15982E-03   -1.3178    
  19  norm          11.663        12.953        .11733E-03   -1.5025    
  20  Prefactor     .10000E-03    13.652        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10000E-03    22.331        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     .10000E-03    38.784        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     .10000E-03    5.3464        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Normalizat    1.8597        .29689        .28811E-03   -.68116    
  25  Prefactor     .58252        .11589        .19222E-03   -1.0833    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 6.49276e-10
Minuit parameter uncertainties:
  1  9.20567
  2  3.81154e-06
  3  4.70649e-06
  4  1.057e-05
  5  3.75839e-05
  6  2.16373e-05
  7  1.8001e-06
  8  53.5105
  9  2.29371e-05
  10  4.30697
  11  64.6732
  12  35.3253
  13  2.21234e-05
  14  15.091
  15  4.35008e-06
  16  2.96125e-05
  17  0.000148648
  18  56.77
  19  12.956
  20  0.000101278
  21  8.83719e-06
  22  2.32738e-05
  23  2.50285e-06
  24  0.297177
  25  0.11594
Done.

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

Extracting fit parameters...

4FGL J1406.1-2508
   Spectrum: PowerLaw
309    Prefactor:  7.419e+00  3.533e+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:  5.825e-01  1.159e-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.860e+00  2.972e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 0.05
Ra Dec: 211.544 -25.139
Photon Flux Upper Limit: 6.97e-08 ph cm-2 s-1
Energy Flux Upper Limit: 5.24e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/184820/likelihoodResults_503452801_503712001_4FGL_J1406.1-2508_daily_bin1019.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) = 6799.49087796
delta logL = 0.0062059137681

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6799.48800499
delta logL = 0.00907887463927

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    10.919       1.0000         .10000E-03   10000.    
     2 'Index     '    1.8325       1.0000          .0000       10.000    
     3 'Normalizat'    1.8608       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .58203       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=   6799.488     FROM MIGRAD    STATUS=CONVERGED     58 CALLS      285 TOTAL
                     EDM=   .15E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     10.800        6261.1        .30311E-02    .31989E-04
   2  Index         1.8327        5.0451        .26852       -.48825E-04
   3  Normalizat    1.8608        .58304E-01    .65128E-01   -.32938E-04
   4  Prefactor     .58201        .22684E-01    .40808E-01   -.17893E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 10.7996
  Index      = 1.83274
  Normalizat = 1.86084
  Prefactor  = 0.582005
 **********
 **   18 **HESSE 
 **********

 FCN=   6799.488     FROM HESSE     STATUS=OK            31 CALLS      316 TOTAL
                     EDM=   .12E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     10.800        55.980        .12124E-03   -1.5051    
   2  Index         1.8327        1.4225        .16853E-01   -.68601    
   3  Normalizat    1.8608        .28572        .28804E-03   -.68086    
   4  Prefactor     .58201        .11528        .19229E-03   -1.0835    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.18502e-09
Minuit parameter uncertainties:
  1  49.248
  2  1.45668
  3  0.285975
  4  0.11533
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/184820': 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) = 6799.48800124
delta logL = 0.00908262790108

Extracting fit parameters...

4FGL J1406.1-2508
   Spectrum: PowerLaw
309    Prefactor:  1.080e+01  4.925e+01  1.000e-04  1.000e+04 ( 1.000e-14)
310        Index:  1.833e+00  1.457e+00  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:  5.820e-01  1.153e-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.861e+00  2.860e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Creating a high resolution counts map...
INFO: Auto-setting vmin to -1.000e-01 [aplpy.core]
INFO: Auto-setting vmax to  1.110e+00 [aplpy.core]
Saving /scratch/kocevski/184820/cmap_HighResolution_503452801_503712001_4FGL_J1406.1-2508_daily_bin1019.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='5.24e-03', job_status='DONE', photon_flux_upper_limit='6.97e-08', time_completed='2021-09-09 01:10:56.150926', job_id='184820', GAL2='0.58', fit_tolerance='1e-08', EG2='1.86', EG='1.86', time_epoch_completed='1631175056.15', return_code2='0', ts='0.05', comment='SUCCESS', return_code='0', GAL='0.58', dlogl='9.08e-03', ts2='0.07', photon_index_error='0.00', photon_index='2.03' WHERE bin_id='1019' AND source_name='4FGL J1406.1-2508' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Thu Sep  9 01:10:56 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0296>
Subject: Job 184820: <4FGL_J1406.1-2508_daily_bin1019> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1406.1-2508_daily_bin1019 211.544 -25.1386 503452801 503712001 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 :                                   865.21 sec.
    Max Memory :                                 1095 MB
    Average Memory :                             311.03 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   924 sec.
    Turnaround time :                            926 sec.

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

