/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 79 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 = 72872
number of fields = 22
No RA_SUN column yet. Adding RA_SUN/DEC_SUN columns.
Done.


Performing analysis on: 4FGL_J1416.1-2417_monthly_bin11
RA = 214.033, Dec = -24.2982
tmin = 265507201, tmax = 268099201
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='620939', job_status='RUN', time_executed='2021-10-25 18:07:05.971622', time_epoch_executed='1635210425.97' WHERE source_name='4FGL J1416.1-2417' and cadence='monthly' and bin_id='11'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/620939

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

Retrieving the FT1 file...

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

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

Retrieving 455 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/620939/ft1_4FGL_J1416.1-2417_monthly_bin11.fits


Retrieving the FT1 file...

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

Retrieving 455 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/620939/ft2_4FGL_J1416.1-2417_monthly_bin11.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/620939/ft1_4FGL_J1416.1-2417_monthly_bin11.fits outfile=/scratch/kocevski/620939/ft1_filteredMKT_4FGL_J1416.1-2417_monthly_bin11.fits ra=214.033 dec=-24.2982 rad=12.0 tmin=265507201.0 tmax=268099201.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 10.42
user 10.02
sys 0.35

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/620939/ft2_4FGL_J1416.1-2417_monthly_bin11.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/620939/ft1_filteredMKT_4FGL_J1416.1-2417_monthly_bin11.fits evtable="EVENTS" outfile="/scratch/kocevski/620939/ft1_filtered_4FGL_J1416.1-2417_monthly_bin11.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.87
user 0.65
sys 0.19

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/620939/ft1_filtered_4FGL_J1416.1-2417_monthly_bin11.fits" evtable="EVENTS" scfile=/scratch/kocevski/620939/ft2_4FGL_J1416.1-2417_monthly_bin11.fits sctable="SC_DATA" outfile=/scratch/kocevski/620939/ltcube_265507201_268099201_4FGL_J1416.1-2417_monthly_bin11.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/620939/ft2_4FGL_J1416.1-2417_monthly_bin11.fits
.....................!
real 146.17
user 145.29
sys 0.35

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/620939/ft1_filtered_4FGL_J1416.1-2417_monthly_bin11.fits evtable="EVENTS" scfile=/scratch/kocevski/620939/ft2_4FGL_J1416.1-2417_monthly_bin11.fits sctable="SC_DATA" expcube=/scratch/kocevski/620939/ltcube_265507201_268099201_4FGL_J1416.1-2417_monthly_bin11.fits outfile=/scratch/kocevski/620939/expmap_265507201_268099201_4FGL_J1416.1-2417_monthly_bin11.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/620939/ltcube_265507201_268099201_4FGL_J1416.1-2417_monthly_bin11.fits
.....................!
real 192.33
user 185.96
sys 5.75

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/620939/ft1_filtered_4FGL_J1416.1-2417_monthly_bin11.fits scfile=/scratch/kocevski/620939/ft2_4FGL_J1416.1-2417_monthly_bin11.fits outfile=/scratch/kocevski/620939/cmap_265507201_268099201_4FGL_J1416.1-2417_monthly_bin11.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.78
user 0.63
sys 0.13

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/620939/ft1_filtered_4FGL_J1416.1-2417_monthly_bin11.fits scfile=/scratch/kocevski/620939/ft2_4FGL_J1416.1-2417_monthly_bin11.fits outfile=/scratch/kocevski/620939/cmap_HighResolution_265507201_268099201_4FGL_J1416.1-2417_monthly_bin11.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.80
user 0.62
sys 0.17

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/620939/ft1_filtered_4FGL_J1416.1-2417_monthly_bin11.fits evtable="EVENTS" scfile=/scratch/kocevski/620939/ft2_4FGL_J1416.1-2417_monthly_bin11.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/620939/Model_4FGL_J1416.1-2417_monthly_bin11.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/620939/ft1_filtered_4FGL_J1416.1-2417_monthly_bin11.fits.....................!
real 1552.12
user 1539.87
sys 4.96

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/620939/ft1_filtered_4FGL_J1416.1-2417_monthly_bin11.fits', '/scratch/kocevski/620939/ft2_4FGL_J1416.1-2417_monthly_bin11.fits', expMap='/scratch/kocevski/620939/expmap_265507201_268099201_4FGL_J1416.1-2417_monthly_bin11.fits', expCube='/scratch/kocevski/620939/ltcube_265507201_268099201_4FGL_J1416.1-2417_monthly_bin11.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/620939/Model_4FGL_J1416.1-2417_monthly_bin11.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/620939/ft1_filtered_4FGL_J1416.1-2417_monthly_bin11.fits
Spacecraft file(s): /scratch/kocevski/620939/ft2_4FGL_J1416.1-2417_monthly_bin11.fits
Exposure map: /scratch/kocevski/620939/expmap_265507201_268099201_4FGL_J1416.1-2417_monthly_bin11.fits
Exposure cube: /scratch/kocevski/620939/ltcube_265507201_268099201_4FGL_J1416.1-2417_monthly_bin11.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/620939/Model_4FGL_J1416.1-2417_monthly_bin11.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) = 102856.502828

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .14752E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    12.071       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .12727E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    3.2047       1.0000         .10000E-03   10000.    
     5 'norm      '    10.958       1.0000         .10000E-03   10000.    
     6 'Prefactor '    18.158       1.0000         .10000E-03   10000.    
     7 'norm      '    6.2535       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .92912E-03   1.0000         .10000E-03   10000.    
     9 'norm      '    3.1952       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    6.3631       1.0000         .10000E-03   10000.    
    12 'Prefactor '    12.330       1.0000         .10000E-03   10000.    
    13 'Prefactor '    3.9302       1.0000         .10000E-03   10000.    
    14 'Prefactor '    8.5755       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    1.7454       1.0000         .10000E-03   10000.    
    17 'Prefactor '    34.560       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10013E-03   1.0000         .10000E-03   10000.    
    19 'norm      '    .10015E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    10.876       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10496E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    24.916       1.0000         .10000E-03   10000.    
    24 'Prefactor '    .11262E-01   1.0000         .10000E-03   10000.    
    25 'Prefactor '    17.695       1.0000         .10000E-03   10000.    
    26 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    27 'Normalizat'    1.3853       1.0000         .10000E-01   10.000    
    28 'Prefactor '    .92209       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=   102856.3     FROM MIGRAD    STATUS=CONVERGED    738 CALLS     3211 TOTAL
                     EDM=   .70E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  4.9%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    .94463       -.10739E-05** at limit **
   2  Prefactor     12.069        6.2855       -.12184E-06   -.63701E-03
   3  Prefactor     .10000E-03    .51860       -.16096E-06** at limit **
   4  Prefactor     3.2054        2.6645        .19829E-05   -.68096E-03
   5  norm          10.958        1.6239       -.61448E-07   -.16692E-02
   6  Prefactor     18.158        13.158        .96528E-07   -.41230E-04
   7  norm          6.2530        4.1146       -.13369E-06    .13927E-04
   8  Prefactor     .10000E-03    1.8996        .12283E-05** at limit **
   9  norm          3.1945        2.3686        .41389E-07   -.58832E-03
  10  Prefactor     .10000E-03    .13742        .13663E-06** at limit **
  11  Prefactor     6.3629        10.117        .18606E-06   -.45017E-04
  12  Prefactor     12.330        10.730        .30501E-06   -.97560E-04
  13  Prefactor     3.9303        3.1631        .92183E-07   -.57813E-04
  14  Prefactor     8.5755        4.5184        .17879E-06   -.18057E-03
  15  Prefactor     .10000E-03    1.2319        .52499E-07** at limit **
  16  norm          1.7456        1.0237        .80778E-07   -.12973E-03
  17  Prefactor     34.559        10.680        .20249E-07   -.11345E-03
  18  Prefactor     .10000E-03    2.2171       -.88550E-09** at limit **
  19  norm          .10000E-03    .63744        .28046E-06** at limit **
  20  Prefactor     10.875        5.9676        .33933E-07   -.30252E-03
  21  Prefactor     .10000E-03    .41931       -.32277E-06** at limit **
  22  Prefactor     .10000E-03    5.1773        .12162E-06** at limit **
  23  Prefactor     24.940        15.677       -.58172E-09    .20385E-03
  24  Prefactor     .10002E-03    2.4436        .22284E-06** at limit **
  25  Prefactor     17.646        28.884        .19932E-05   -.18537E-03
  26  Prefactor     .10000E-03    1.0022        .13220E-06** at limit **
  27  Normalizat    1.3852        .69857E-01   -.92268E-06   -.23025E-02
  28  Prefactor     .92212        .27298E-01    .93881E-09   -.43701E-02
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100004
  Prefactor  = 12.0694
  Prefactor  = 0.000100001
  Prefactor  = 3.20537
  norm       = 10.958
  Prefactor  = 18.1581
  norm       = 6.25301
  Prefactor  = 0.000100005
  norm       = 3.19448
  Prefactor  = 0.0001
  Prefactor  = 6.3629
  Prefactor  = 12.3295
  Prefactor  = 3.93027
  Prefactor  = 8.57554
  Prefactor  = 0.0001
  norm       = 1.74562
  Prefactor  = 34.559
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 10.8747
  Prefactor  = 0.000100003
  Prefactor  = 0.0001
  Prefactor  = 24.9403
  Prefactor  = 0.000100023
  Prefactor  = 17.6456
  Prefactor  = 0.0001
  Normalizat = 1.38521
  Prefactor  = 0.92212
 **********
 **   18 **HESSE 
 **********

 FCN=   102856.3     FROM HESSE     STATUS=OK           567 CALLS     3778 TOTAL
                     EDM=   .13E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    1.0566        .80234E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     12.069        6.2149        .57650E-03   -1.5013    
   3  Prefactor     .10000E-03    5.1542        .43332E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     3.2054        2.9278        .11316E-02   -1.5350    
   5  norm          10.958        1.6211        .12103E-03   -1.5046    
   6  Prefactor     18.158        13.159        .93990E-04   -1.4855    
   7  norm          6.2530        4.1098        .16052E-03   -1.5208    
   8  Prefactor     .10000E-03    1.8132        .15194       -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          3.1945        2.3303        .22668E-03   -1.5350    
  10  Prefactor     .10000E-03    1.0393        .22338E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     6.3629        10.111        .15912E-03   -1.5203    
  12  Prefactor     12.330        10.723        .57039E-03   -1.5006    
  13  Prefactor     3.9303        3.1597        .20349E-03   -1.5311    
  14  Prefactor     8.5755        4.5139        .13689E-03   -1.5122    
  15  Prefactor     .10000E-03    1.2373        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          1.7456        1.0101        .22587E-03   -1.5444    
  17  Prefactor     34.559        10.624        .68167E-04   -1.4532    
  18  Prefactor     .10000E-03    2.2252        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  norm          .10000E-03    4.0310        .48984E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     10.875        5.9534        .12148E-03   -1.5048    
  21  Prefactor     .10000E-03    .53732        .55208E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     .10000E-03    5.2505        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     24.940        19.827        .80251E-04   -1.4709    
  24  Prefactor     .10002E-03    2.4541        .14448       -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Prefactor     17.646        28.757        .95213E-04   -1.4868    
  26  Prefactor     .10000E-03    1.0239        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  Normalizat    1.3852        .83198E-01    .35549E-03   -.81057    
  28  Prefactor     .92212        .32999E-01    .17083E-03   -.95372    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.27639e-09
Minuit parameter uncertainties:
  1  0.000123534
  2  6.21525
  3  0.000103499
  4  2.92792
  5  1.62111
  6  13.1608
  7  4.11001
  8  0.0001845
  9  2.3304
  10  3.68035e-06
  11  10.1135
  12  10.7242
  13  3.15981
  14  4.51406
  15  4.80849e-06
  16  1.01008
  17  10.6251
  18  1.04511e-08
  19  3.38236e-05
  20  5.95374
  21  7.99852e-05
  22  3.13639e-05
  23  19.8327
  24  0.000478159
  25  28.7794
  26  1.11962e-05
  27  0.0832057
  28  0.0329996
Done.

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

Extracting fit parameters...

4FGL J1416.1-2417
   Spectrum: PowerLaw
317    Prefactor:  3.930e+00  3.160e+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

GAL_V02
   Spectrum: PowerLaw
659    Prefactor:  9.221e-01  3.300e-02  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.385e+00  8.321e-02  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 2.86
Ra Dec: 214.033 -24.298
Photon Index (Fixed Index): 1.83 +/- 0.00
Photon Flux (Fixed Index): 5.04e-09 +/- 4.05e-09
Energy Flux (Fixed Index): 5.44e-06 +/- 4.37e-06

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

Saving results to:
/scratch/kocevski/620939/likelihoodResults_265507201_268099201_4FGL_J1416.1-2417_monthly_bin11.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) = 102855.798427
delta logL = 0.546529606087

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 102855.796134
delta logL = 0.548823359291

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    4.1590       1.0000         .10000E-03   10000.    
     2 'Index     '    1.1690       1.0000          .0000       10.000    
     3 'Normalizat'    1.3868       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .92255       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.
 MACHINE ACCURACY LIMITS FURTHER IMPROVEMENT.

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   102855.8     FROM MIGRAD    STATUS=CONVERGED     94 CALLS      257 TOTAL
                     EDM=   .14E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     4.1581        3.6780        .19764E-03    .33520E-03
   2  Index         1.1689        .57373        .37144E-01   -.73027E-04
   3  Normalizat    1.3868        .80953E-01    .35530E-03    .87033E-05
   4  Prefactor     .92254        .32754E-01    .17080E-03    .18105E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 4.15814
  Index      = 1.16891
  Normalizat = 1.38684
  Prefactor  = 0.922544
 **********
 **   18 **HESSE 
 **********

 FCN=   102855.8     FROM HESSE     STATUS=OK            25 CALLS      282 TOTAL
                     EDM=   .40E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     4.1581        3.9397        .39528E-04   -1.5300    
   2  Index         1.1689        .61470        .14857E-02   -.87293    
   3  Normalizat    1.3868        .81031E-01    .14212E-04   -.81010    
   4  Prefactor     .92254        .32786E-01    .68319E-05   -.95358    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.98053e-11
Minuit parameter uncertainties:
  1  3.93991
  2  0.618509
  3  0.0810385
  4  0.032787
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/620939': 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) = 102855.796134
delta logL = 0.548823386693

Extracting fit parameters...

4FGL J1416.1-2417
   Spectrum: PowerLaw
317    Prefactor:  4.158e+00  3.940e+00  1.000e-04  1.000e+04 ( 1.000e-14)
318        Index:  1.169e+00  6.185e-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.225e-01  3.279e-02  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.387e+00  8.104e-02  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 3.96
Ra Dec: 214.033 -24.298
Photon Index (Free Index): 1.17 +/- 0.62
Photon Flux (Free Index): 1.45e-09 +/- 2.01e-09
Energy Flux (Free Index): 1.32e-05 +/- 1.38e-05

Creating a high resolution counts map...
INFO: Auto-setting vmin to -2.000e-01 [aplpy.core]
INFO: Auto-setting vmax to  2.220e+00 [aplpy.core]
Saving /scratch/kocevski/620939/cmap_HighResolution_265507201_268099201_4FGL_J1416.1-2417_monthly_bin11.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.08e-03', comment='SUCCESS', photon_flux='5.04e-09', energy_flux2='1.32e-05', photon_flux_error='4.05e-09', dlogl='5.49e-01', energy_flux='5.44e-06', photon_flux2='1.45e-09', job_status='DONE', time_completed='2021-10-25 20:54:34.579042', photon_index_error2='0.62', photon_index2='1.17', ts='2.86', fit_tolerance='1e-08', GAL='0.92', photon_index_error='0.00', photon_flux_upper_limit='1.46e-08', energy_flux_error2='1.38e-05', EG='1.39', time_epoch_completed='1635220474.58', return_code='0', job_id='620939', GAL2='0.92', EG2='1.39', return_code2='0', energy_flux_error='4.37e-06', photon_flux_error2='2.01e-09', ts2='3.96', photon_index='1.83' WHERE bin_id='11' AND source_name='4FGL J1416.1-2417' AND cadence='monthly';

Database successfully updated.


Analysis Complete.


Mon Oct 25 20:54:34 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0188>
Subject: Job 620939: <4FGL_J1416.1-2417_monthly_bin11> in cluster <slac> Done

Job <4FGL_J1416.1-2417_monthly_bin11> was submitted from host <rhel6-64p> by user <kocevski> in cluster <slac> at Mon Oct 25 18:05:19 2021
Job was executed on host(s) <bullet0188>, in queue <medium>, as user <kocevski> in cluster <slac> at Mon Oct 25 18:05:33 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Mon Oct 25 18:05:33 2021
Terminated at Mon Oct 25 20:54:35 2021
Results reported at Mon Oct 25 20:54:35 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1416.1-2417_monthly_bin11 214.033 -24.2982 265507201 268099201 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 :                                   9989.00 sec.
    Max Memory :                                 634 MB
    Average Memory :                             468.90 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   10142 sec.
    Turnaround time :                            10156 sec.

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

