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


Performing analysis on: 4FGL_J1416.1-2417_daily_bin342
RA = 214.033, Dec = -24.2982
tmin = 327974401, tmax = 328233601
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='290316', job_status='RUN', time_executed='2021-09-09 06:40:35.279552', time_epoch_executed='1631194835.28' WHERE source_name='4FGL J1416.1-2417' and cadence='daily' and bin_id='342'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/290316

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/290316/ft1_4FGL_J1416.1-2417_daily_bin342.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/290316/ft2_4FGL_J1416.1-2417_daily_bin342.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/290316/ft1_4FGL_J1416.1-2417_daily_bin342.fits outfile=/scratch/kocevski/290316/ft1_filteredMKT_4FGL_J1416.1-2417_daily_bin342.fits ra=214.033 dec=-24.2982 rad=12.0 tmin=327974401.0 tmax=328233601.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.50
user 3.28
sys 0.20

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/290316/ft2_4FGL_J1416.1-2417_daily_bin342.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/290316/ft2_4FGL_J1416.1-2417_daily_bin342.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/290316/ft1_filteredMKT_4FGL_J1416.1-2417_daily_bin342.fits evtable="EVENTS" outfile="/scratch/kocevski/290316/ft1_filtered_4FGL_J1416.1-2417_daily_bin342.fits" apply_filter=yes overwrite=yes header_obstimes=yes tstart=0.0 tstop=0.0 gtifile="default" chatter=3 clobber=yes debug=no gui=no mode="ql"

WARNING: version mismatch between CFITSIO header (v3.43) and linked library (v3.41).

This is gtmktime version HEAD
Applying GTI filter:
IN_SAA!=T && LIVETIME>0 && gtifilter('/nfs/farm/g/glast/g/LCRepository/Likelihood/GTIs/nogrb.gti',(START+STOP)/2) && (angsep(RA_SUN,DEC_SUN,RA_ZENITH,DEC_ZENITH)>115 || gtifilter('/nfs/farm/g/glast/g/LCRepository/Likelihood/GTIs/nosolarflares.gti',(START+STOP)/2))
real 0.66
user 0.34
sys 0.14

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/290316/ft1_filtered_4FGL_J1416.1-2417_daily_bin342.fits" evtable="EVENTS" scfile=/scratch/kocevski/290316/ft2_4FGL_J1416.1-2417_daily_bin342.fits sctable="SC_DATA" outfile=/scratch/kocevski/290316/ltcube_327974401_328233601_4FGL_J1416.1-2417_daily_bin342.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/290316/ft2_4FGL_J1416.1-2417_daily_bin342.fits
.....................!
real 12.44
user 12.03
sys 0.30

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/290316/ft1_filtered_4FGL_J1416.1-2417_daily_bin342.fits evtable="EVENTS" scfile=/scratch/kocevski/290316/ft2_4FGL_J1416.1-2417_daily_bin342.fits sctable="SC_DATA" expcube=/scratch/kocevski/290316/ltcube_327974401_328233601_4FGL_J1416.1-2417_daily_bin342.fits outfile=/scratch/kocevski/290316/expmap_327974401_328233601_4FGL_J1416.1-2417_daily_bin342.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/290316/ltcube_327974401_328233601_4FGL_J1416.1-2417_daily_bin342.fits
.....................!
real 190.94
user 186.09
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 198 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 J1416.1-2417 @ 214.033 -24.2982

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/290316/ft1_filtered_4FGL_J1416.1-2417_daily_bin342.fits scfile=/scratch/kocevski/290316/ft2_4FGL_J1416.1-2417_daily_bin342.fits outfile=/scratch/kocevski/290316/cmap_327974401_328233601_4FGL_J1416.1-2417_daily_bin342.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=214.033 yref=-24.2982 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.53
user 0.38
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/290316/ft1_filtered_4FGL_J1416.1-2417_daily_bin342.fits scfile=/scratch/kocevski/290316/ft2_4FGL_J1416.1-2417_daily_bin342.fits outfile=/scratch/kocevski/290316/cmap_HighResolution_327974401_328233601_4FGL_J1416.1-2417_daily_bin342.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=214.033 yref=-24.2982 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.15

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/290316/ft1_filtered_4FGL_J1416.1-2417_daily_bin342.fits evtable="EVENTS" scfile=/scratch/kocevski/290316/ft2_4FGL_J1416.1-2417_daily_bin342.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/290316/Model_4FGL_J1416.1-2417_daily_bin342.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/290316/ft1_filtered_4FGL_J1416.1-2417_daily_bin342.fits.....................!
real 113.08
user 111.66
sys 1.12

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/290316/ft1_filtered_4FGL_J1416.1-2417_daily_bin342.fits', '/scratch/kocevski/290316/ft2_4FGL_J1416.1-2417_daily_bin342.fits', expMap='/scratch/kocevski/290316/expmap_327974401_328233601_4FGL_J1416.1-2417_daily_bin342.fits', expCube='/scratch/kocevski/290316/ltcube_327974401_328233601_4FGL_J1416.1-2417_daily_bin342.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/290316/Model_4FGL_J1416.1-2417_daily_bin342.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J1416.1-2417'

4FGL J1416.1-2417
   Spectrum: PowerLaw
317    Prefactor:  1.276e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-14)
318        Index:  1.835e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
319        Scale:  4.486e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/290316/ft1_filtered_4FGL_J1416.1-2417_daily_bin342.fits
Spacecraft file(s): /scratch/kocevski/290316/ft2_4FGL_J1416.1-2417_daily_bin342.fits
Exposure map: /scratch/kocevski/290316/expmap_327974401_328233601_4FGL_J1416.1-2417_daily_bin342.fits
Exposure cube: /scratch/kocevski/290316/ltcube_327974401_328233601_4FGL_J1416.1-2417_daily_bin342.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/290316/Model_4FGL_J1416.1-2417_daily_bin342.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) = 6826.05021532

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10065E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    8.7857       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10042E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    26.870       1.0000         .10000E-03   10000.    
     5 'norm      '    .88518       1.0000         .10000E-03   10000.    
     6 'Prefactor '    23.615       1.0000         .10000E-03   10000.    
     7 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     9 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    137.17       1.0000         .10000E-03   10000.    
    12 'Prefactor '    2.9802       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10012E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    51.129       1.0000         .10000E-03   10000.    
    15 'Prefactor '    5.4534       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 '    .10000E-03   1.0000         .10000E-03   10000.    
    19 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10541E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    45.229       1.0000         .10000E-03   10000.    
    23 'Prefactor '    82.452       1.0000         .10000E-03   10000.    
    24 'Prefactor '    .10035E-03   1.0000         .10000E-03   10000.    
    25 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    26 'Prefactor '    .10017E-03   1.0000         .10000E-03   10000.    
    27 'Normalizat'    1.0018       1.0000         .10000E-01   10.000    
    28 'Prefactor '    .98985       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6620E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   6826.021     FROM MIGRAD    STATUS=CONVERGED    653 CALLS     3459 TOTAL
                     EDM=   .11E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .6%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    30.177        .31644E-06** at limit **
   2  Prefactor     8.7792        33.170       -.54756E-07    .69751E-06
   3  Prefactor     .10000E-03    12.656        .63941E-07** at limit **
   4  Prefactor     26.873        18.007       -.62396E-06   -.28408E-04
   5  norm          .88572        4.1845        .23795E-05   -.29144E-04
   6  Prefactor     23.675        86.897        .38900E-06    .12040E-04
   7  norm          .10000E-03    10.008       -.30712E-07** at limit **
   8  Prefactor     .10000E-03    18.510        .93915E-07** at limit **
   9  norm          .10000E-03    4.3074        .96119E-07** at limit **
  10  Prefactor     .10000E-03    1.2764       -.23125E-07** at limit **
  11  Prefactor     137.18        90.180        .93559E-07    .54411E-05
  12  Prefactor     2.9018        294.87       -.58356E-05   -.31802E-05
  13  Prefactor     .10000E-03    21.673       -.10481E-05** at limit **
  14  Prefactor     51.127        25.996        .10314E-06   -.24958E-05
  15  Prefactor     5.4518        18.473        .27673E-06    .79508E-06
  16  norm          .10000E-03    1.4412        .56478E-07** at limit **
  17  Prefactor     .10000E-03    14.518        .10797E-06** at limit **
  18  Prefactor     .10000E-03    13.889        .91414E-07** at limit **
  19  norm          .10000E-03    8.2605       -.60871E-07** at limit **
  20  Prefactor     .10000E-03    18.402        .38215E-06** at limit **
  21  Prefactor     .10000E-03    9.2286       -.24038E-05** at limit **
  22  Prefactor     45.175        69.056       -.13005E-06   -.16169E-04
  23  Prefactor     82.420        74.676        .22525E-05    .34891E-04
  24  Prefactor     .10000E-03    40.126       -.55261E-06** at limit **
  25  Prefactor     .10000E-03    58.702        .13295E-06** at limit **
  26  Prefactor     .10000E-03    4.3735       -.17595E-06** at limit **
  27  Normalizat    1.0019        .28867       -.56833E-06    .11011E-04
  28  Prefactor     .98985        .10795       -.16265E-06    .39178E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 8.77916
  Prefactor  = 0.0001
  Prefactor  = 26.8731
  norm       = 0.885717
  Prefactor  = 23.6747
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 137.176
  Prefactor  = 2.90178
  Prefactor  = 0.0001
  Prefactor  = 51.127
  Prefactor  = 5.45177
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 45.1754
  Prefactor  = 82.42
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Normalizat = 1.00188
  Prefactor  = 0.989854
 **********
 **   18 **HESSE 
 **********

 FCN=   6826.021     FROM HESSE     STATUS=OK           513 CALLS     3972 TOTAL
                     EDM=   .22E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    30.395        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     8.7792        33.106        .13523E-03   -1.5115    
   3  Prefactor     .10000E-03    12.794        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     26.873        18.063        .77283E-04   -1.4671    
   5  norm          .88572        4.0980        .32836E-03   -1.5520    
   6  Prefactor     23.675        86.826        .82429E-04   -1.4734    
   7  norm          .10000E-03    10.012        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    18.515        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          .10000E-03    4.3142        .16747E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    1.2808        .91127E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     137.18        90.184        .17195E-03   -1.3360    
  12  Prefactor     2.9018        302.20        .23518E-03   -1.5367    
  13  Prefactor     .10000E-03    21.667        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     51.127        26.002        .56087E-04   -1.4277    
  15  Prefactor     5.4518        18.470        .17207E-03   -1.5241    
  16  norm          .10000E-03    1.4435        .96841E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    14.523        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    13.892        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  norm          .10000E-03    8.2877        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    18.483        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10000E-03    9.4562        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     45.175        69.174        .59616E-04   -1.4363    
  23  Prefactor     82.420        75.585        .22117E-03   -1.3890    
  24  Prefactor     .10000E-03    40.206        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Prefactor     .10000E-03    58.726        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  Prefactor     .10000E-03    4.3789        .16870E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  Normalizat    1.0019        .34487        .41684E-03   -.92968    
  28  Prefactor     .98985        .13042        .16371E-03   -.93068    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.24094e-11
Minuit parameter uncertainties:
  1  3.65201e-05
  2  33.175
  3  6.05836e-06
  4  18.0664
  5  3.81056
  6  87.2942
  7  3.82778e-06
  8  6.62674e-07
  9  3.43016e-07
  10  1.69221e-06
  11  90.2749
  12  59.5357
  13  3.77534e-05
  14  26.008
  15  18.4896
  16  3.32414e-08
  17  8.21176e-06
  18  2.959e-06
  19  1.04087e-06
  20  5.08956e-06
  21  1.3472e-05
  22  69.2975
  23  75.6732
  24  4.39708e-05
  25  7.76797e-06
  26  4.31879e-06
  27  0.345637
  28  0.130466
Done.

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

Extracting fit parameters...

4FGL J1416.1-2417
   Spectrum: PowerLaw
317    Prefactor:  1.000e-04  3.775e-05  1.000e-04  1.000e+04 ( 1.000e-14)
318        Index:  1.835e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
319        Scale:  4.486e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
659    Prefactor:  9.899e-01  1.305e-01  0.000e+00  1.000e+01 ( 1.000e+00)
660        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
661        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
658   Normalization:  1.002e+00  3.456e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): -0.00
Ra Dec: 214.033 -24.298
Photon Flux Upper Limit: 8.43e-08 ph cm-2 s-1
Energy Flux Upper Limit: 6.24e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/290316/likelihoodResults_327974401_328233601_4FGL_J1416.1-2417_daily_bin342.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): 102
logL (Free Index) = 6826.02101205
delta logL = -0.00021991050653

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 6826.02079185
delta logL = 2.86247086478e-07

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    1.9175       1.0000          .0000       10.000    
     3 'Normalizat'    1.0019       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .98985       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6620E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   6826.021     FROM MIGRAD    STATUS=CONVERGED     59 CALLS      242 TOTAL
                     EDM=   .99E-10    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    55.480        .90712E-02** at limit **
   2  Index         1.9672        5.6661        .50000       -.19210E-04
   3  Normalizat    1.0019        .98595E-02    .94109E-01    .33423E-04
   4  Prefactor     .98985        .38753E-02    .46140E-01    .24464E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100004
  Index      = 1.96721
  Normalizat = 1.00188
  Prefactor  = 0.989854
 **********
 **   18 **HESSE 
 **********

 FCN=   6826.021     FROM HESSE     STATUS=NOT POSDEF    33 CALLS      275 TOTAL
                     EDM=   .13E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    349.91        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         1.9672        8.7486        .50000       -.65172    
   3  Normalizat    1.0019        .25010E-01    .41683E-03   -.92968    
   4  Prefactor     .98985        .98546E-02    .16370E-03   -.93069    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 1.28277e-08
Minuit parameter uncertainties:
  1  0.00245473
  2  14.2852
  3  0.0250105
  4  0.0098546
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/290316': 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): 102
logL (Free Index) = 6826.02079163
delta logL = 5.03034243593e-07

Extracting fit parameters...

4FGL J1416.1-2417
   Spectrum: PowerLaw
317    Prefactor:  1.000e-04  2.455e-03  1.000e-04  1.000e+04 ( 1.000e-14)
318        Index:  1.967e+00  1.429e+01  0.000e+00  1.000e+01 (-1.000e+00)
319        Scale:  4.486e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
659    Prefactor:  9.899e-01  9.855e-03  0.000e+00  1.000e+01 ( 1.000e+00)
660        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
661        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
658   Normalization:  1.002e+00  2.501e-02  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
Ra Dec: 214.033 -24.298

Creating a high resolution counts map...
INFO: Auto-setting vmin to -2.500e-04 [aplpy.core]
INFO: Auto-setting vmax to  2.775e-03 [aplpy.core]
Saving /scratch/kocevski/290316/cmap_HighResolution_327974401_328233601_4FGL_J1416.1-2417_daily_bin342.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='6.24e-03', job_status='DONE', photon_flux_upper_limit='8.43e-08', time_completed='2021-09-09 06:56:04.664264', job_id='290316', GAL2='0.99', fit_tolerance='1e-08', EG2='1.00', EG='1.00', time_epoch_completed='1631195764.66', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.99', dlogl='5.03e-07', ts2='-0.00', photon_index_error='0.00', photon_index='1.83' WHERE bin_id='342' AND source_name='4FGL J1416.1-2417' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Thu Sep  9 06:56:04 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0236>
Subject: Job 290316: <4FGL_J1416.1-2417_daily_bin342> in cluster <slac> Done

Job <4FGL_J1416.1-2417_daily_bin342> was submitted from host <rhel6-64p> by user <kocevski> in cluster <slac> at Thu Sep  9 06:40:20 2021
Job was executed on host(s) <bullet0236>, in queue <medium>, as user <kocevski> in cluster <slac> at Thu Sep  9 06:40:22 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Thu Sep  9 06:40:22 2021
Terminated at Thu Sep  9 06:56:07 2021
Results reported at Thu Sep  9 06:56:07 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1416.1-2417_daily_bin342 214.033 -24.2982 327974401 328233601 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J1416.1-2417 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   926.00 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             318.42 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   942 sec.
    Turnaround time :                            947 sec.

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

