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


Performing analysis on: 4FGL_J0416.2-4353_daily_bin1025
RA = 64.0722, Dec = -43.8879
tmin = 505008001, tmax = 505267201
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='329053', job_status='RUN', time_executed='2021-08-20 09:07:02.609421', time_epoch_executed='1629475622.61' WHERE source_name='4FGL J0416.2-4353' and cadence='daily' and bin_id='1025'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/329053

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/329053/ft1_4FGL_J0416.2-4353_daily_bin1025.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/329053/ft2_4FGL_J0416.2-4353_daily_bin1025.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/329053/ft1_4FGL_J0416.2-4353_daily_bin1025.fits outfile=/scratch/kocevski/329053/ft1_filteredMKT_4FGL_J0416.2-4353_daily_bin1025.fits ra=64.0722 dec=-43.8879 rad=12.0 tmin=505008001.0 tmax=505267201.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 5.30
user 4.23
sys 1.04

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/329053/ft2_4FGL_J0416.2-4353_daily_bin1025.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/329053/ft2_4FGL_J0416.2-4353_daily_bin1025.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/329053/ft1_filteredMKT_4FGL_J0416.2-4353_daily_bin1025.fits evtable="EVENTS" outfile="/scratch/kocevski/329053/ft1_filtered_4FGL_J0416.2-4353_daily_bin1025.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 1.30
user 0.32
sys 0.94

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/329053/ft1_filtered_4FGL_J0416.2-4353_daily_bin1025.fits" evtable="EVENTS" scfile=/scratch/kocevski/329053/ft2_4FGL_J0416.2-4353_daily_bin1025.fits sctable="SC_DATA" outfile=/scratch/kocevski/329053/ltcube_505008001_505267201_4FGL_J0416.2-4353_daily_bin1025.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/329053/ft2_4FGL_J0416.2-4353_daily_bin1025.fits
.....................!
real 12.89
user 11.57
sys 1.19

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/329053/ft1_filtered_4FGL_J0416.2-4353_daily_bin1025.fits evtable="EVENTS" scfile=/scratch/kocevski/329053/ft2_4FGL_J0416.2-4353_daily_bin1025.fits sctable="SC_DATA" expcube=/scratch/kocevski/329053/ltcube_505008001_505267201_4FGL_J0416.2-4353_daily_bin1025.fits outfile=/scratch/kocevski/329053/expmap_505008001_505267201_4FGL_J0416.2-4353_daily_bin1025.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/329053/ltcube_505008001_505267201_4FGL_J0416.2-4353_daily_bin1025.fits
.....................!
real 192.03
user 185.44
sys 6.18

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 Fornax A in ROI, make sure /nfs/farm/g/glast/g/LCRepository/Likelihood/ExtendedSources/Extended_archive_v18/Templates/FornaxA.fits is the correct path to the extended template.
Added 194 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 J0416.2-4353 @ 64.0722 -43.8879

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/329053/ft1_filtered_4FGL_J0416.2-4353_daily_bin1025.fits scfile=/scratch/kocevski/329053/ft2_4FGL_J0416.2-4353_daily_bin1025.fits outfile=/scratch/kocevski/329053/cmap_505008001_505267201_4FGL_J0416.2-4353_daily_bin1025.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=64.0722 yref=-43.8879 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 1.30
user 0.37
sys 0.92

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/329053/ft1_filtered_4FGL_J0416.2-4353_daily_bin1025.fits scfile=/scratch/kocevski/329053/ft2_4FGL_J0416.2-4353_daily_bin1025.fits outfile=/scratch/kocevski/329053/cmap_HighResolution_505008001_505267201_4FGL_J0416.2-4353_daily_bin1025.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=64.0722 yref=-43.8879 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 1.34
user 0.38
sys 0.91

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/329053/ft1_filtered_4FGL_J0416.2-4353_daily_bin1025.fits evtable="EVENTS" scfile=/scratch/kocevski/329053/ft2_4FGL_J0416.2-4353_daily_bin1025.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/329053/Model_4FGL_J0416.2-4353_daily_bin1025.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 EG_v02
adding source Fornax A
adding source GAL_V02
Working on...
/scratch/kocevski/329053/ft1_filtered_4FGL_J0416.2-4353_daily_bin1025.fits.....................!
real 123.57
user 120.90
sys 2.20

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/329053/ft1_filtered_4FGL_J0416.2-4353_daily_bin1025.fits', '/scratch/kocevski/329053/ft2_4FGL_J0416.2-4353_daily_bin1025.fits', expMap='/scratch/kocevski/329053/expmap_505008001_505267201_4FGL_J0416.2-4353_daily_bin1025.fits', expCube='/scratch/kocevski/329053/ltcube_505008001_505267201_4FGL_J0416.2-4353_daily_bin1025.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/329053/Model_4FGL_J0416.2-4353_daily_bin1025.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J0416.2-4353'

4FGL J0416.2-4353
   Spectrum: PowerLaw
299    Prefactor:  4.485e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-13)
300        Index:  2.549e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
301        Scale:  7.441e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/329053/ft1_filtered_4FGL_J0416.2-4353_daily_bin1025.fits
Spacecraft file(s): /scratch/kocevski/329053/ft2_4FGL_J0416.2-4353_daily_bin1025.fits
Exposure map: /scratch/kocevski/329053/expmap_505008001_505267201_4FGL_J0416.2-4353_daily_bin1025.fits
Exposure cube: /scratch/kocevski/329053/ltcube_505008001_505267201_4FGL_J0416.2-4353_daily_bin1025.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/329053/Model_4FGL_J0416.2-4353_daily_bin1025.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) = 5576.8903564

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    2.4263       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     3 'norm      '    1.2106       1.0000         .10000E-03   10000.    
     4 'norm      '    .10012E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    7.2494       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10013E-03   1.0000         .10000E-03   10000.    
     7 'norm      '    .10007E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    3.8173       1.0000         .10000E-03   10000.    
     9 'Prefactor '    2.5665       1.0000         .10000E-03   10000.    
    10 'Prefactor '    40.967       1.0000         .10000E-03   10000.    
    11 'Prefactor '    23.522       1.0000         .10000E-03   10000.    
    12 'norm      '    .10016E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    2.4524       1.0000         .10000E-03   10000.    
    14 'norm      '    16.668       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    90.665       1.0000         .10000E-03   10000.    
    18 'norm      '    5.9901       1.0000         .10000E-03   10000.    
    19 'Prefactor '    4.8660       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    21 'norm      '    5.8439       1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    3.0794       1.0000         .10000E-03   10000.    
    24 'Prefactor '    16.746       1.0000         .10000E-03   10000.    
    25 'Prefactor '    5.2952       1.0000         .10000E-03   10000.    
    26 'Normalizat'    .95106       1.0000         .10000E-01   10.000    
    27 'Prefactor '    .93026       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6270E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   5576.886     FROM MIGRAD    STATUS=CONVERGED    657 CALLS     3333 TOTAL
                     EDM=   .33E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  4.7%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     2.4019        157.90        .74325E-05   -.11005E-04
   2  Prefactor     .10000E-03    8.7425        .11251E-07** at limit **
   3  norm          1.2131        2.6577       -.97486E-07   -.17672E-03
   4  norm          .10000E-03    .37889       -.17237E-06** at limit **
   5  Prefactor     7.2516        46.411       -.20700E-07   -.49987E-06
   6  Prefactor     .10000E-03    17.935       -.43564E-07** at limit **
   7  norm          .10000E-03    .10607        .31641E-07** at limit **
   8  norm          3.8171        5.4222       -.25007E-06    .31482E-05
   9  Prefactor     2.5608        47.308        .15665E-05   -.94700E-06
  10  Prefactor     40.957        41.816        .29081E-06   -.19725E-04
  11  Prefactor     23.504        27.336       -.48429E-06   -.31485E-04
  12  norm          .10000E-03    3.2208       -.30592E-07** at limit **
  13  Prefactor     2.3527        51.572        .30075E-05    .26886E-05
  14  norm          16.670        2.2298       -.58174E-07   -.50021E-03
  15  Prefactor     .10000E-03    46.187       -.26661E-05** at limit **
  16  Prefactor     .10000E-03    2.5322        .12082E-06** at limit **
  17  norm          90.658        21.282       -.28356E-06   -.27115E-04
  18  norm          5.9904        3.0861       -.17695E-06   -.35032E-04
  19  Prefactor     4.8650        4.3471        .66718E-06   -.60557E-04
  20  Prefactor     .10000E-03    7.2310        .72169E-07** at limit **
  21  norm          5.8455        5.7615       -.17414E-06   -.37942E-05
  22  Prefactor     .10000E-03    40.301        .19661E-05** at limit **
  23  Prefactor     3.0799        17.045        .31027E-05   -.52465E-05
  24  Prefactor     16.749        38.141       -.10474E-06    .25336E-06
  25  Prefactor     5.2953        3.0093        .11960E-07   -.12389E-04
  26  Normalizat    .95124        .21719        .66399E-06   -.50525E-04
  27  Prefactor     .92998        .23589       -.16995E-05   -.46307E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 2.40188
  Prefactor  = 0.0001
  norm       = 1.21306
  norm       = 0.0001
  Prefactor  = 7.25161
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 3.81708
  Prefactor  = 2.56082
  Prefactor  = 40.9571
  Prefactor  = 23.5044
  norm       = 0.0001
  Prefactor  = 2.3527
  norm       = 16.6705
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 90.6578
  norm       = 5.99039
  Prefactor  = 4.86499
  Prefactor  = 0.0001
  norm       = 5.84546
  Prefactor  = 0.0001
  Prefactor  = 3.07989
  Prefactor  = 16.7489
  Prefactor  = 5.29532
  Normalizat = 0.951242
  Prefactor  = 0.929976
 **********
 **   18 **HESSE 
 **********

 FCN=   5576.886     FROM HESSE     STATUS=OK           498 CALLS     3831 TOTAL
                     EDM=   .90E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     2.4019        157.96        .26274E-03   -1.5398    
   2  Prefactor     .10000E-03    8.7551        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          1.2131        2.0900        .17308E-02   -1.5488    
   4  norm          .10000E-03    .39038        .89860E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     7.2516        46.407        .14897E-03   -1.5169    
   6  Prefactor     .10000E-03    18.256        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          .10000E-03    .11315        .47322E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          3.8171        5.4070        .19980E-03   -1.5317    
   9  Prefactor     2.5608        47.317        .25480E-03   -1.5388    
  10  Prefactor     40.957        41.954        .62628E-04   -1.4427    
  11  Prefactor     23.504        27.235        .82592E-04   -1.4738    
  12  norm          .10000E-03    3.2637        .13068E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     2.3527        48.680        .26120E-03   -1.5401    
  14  norm          16.670        2.1888        .30596E-04   -1.4891    
  15  Prefactor     .10000E-03    46.052        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    2.5946        .23161E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          90.658        21.235        .42201E-04   -1.3801    
  18  norm          5.9904        3.1066        .79631E-04   -1.5218    
  19  Prefactor     4.8650        4.3972        .59122E-03   -1.5267    
  20  Prefactor     .10000E-03    7.2422        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  norm          5.8455        5.7510        .16606E-03   -1.5224    
  22  Prefactor     .10000E-03    40.328        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     3.0799        16.999        .11557E-02   -1.5357    
  24  Prefactor     16.749        38.176        .97874E-04   -1.4889    
  25  Prefactor     5.2953        3.0051        .93389E-04   -1.5248    
  26  Normalizat    .95124        .26433        .29038E-03   -.94682    
  27  Prefactor     .92998        .28438        .32857E-03   -.95101    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 8.96047e-11
Minuit parameter uncertainties:
  1  39.064
  2  1.29097e-06
  3  2.09014
  4  3.25059e-06
  5  36.7307
  6  3.85634e-06
  7  3.6868e-07
  8  5.40768
  9  22.0352
  10  41.984
  11  27.2499
  12  2.72067e-06
  13  21.4231
  14  2.18885
  15  0.000149006
  16  2.51321e-06
  17  21.2368
  18  3.10669
  19  4.39746
  20  3.52732e-06
  21  5.75157
  22  8.94455e-05
  23  14.4774
  24  38.2312
  25  3.00522
  26  0.26469
  27  0.284841
Done.

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

Extracting fit parameters...

4FGL J0416.2-4353
   Spectrum: PowerLaw
299    Prefactor:  4.096e+01  4.198e+01  1.000e-04  1.000e+04 ( 1.000e-13)
300        Index:  2.549e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
301        Scale:  7.441e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
624    Prefactor:  9.300e-01  2.848e-01  0.000e+00  1.000e+01 ( 1.000e+00)
625        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
626        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
620   Normalization:  9.512e-01  2.647e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 1.40
Ra Dec: 64.072 -43.888
Photon Index (Fixed Index): 2.55 +/- 0.00
Photon Flux (Fixed Index): 4.41e-08 +/- 4.51e-08
Energy Flux (Fixed Index): 1.22e-05 +/- 1.25e-05

TS (Fixed Index): 1.40
Ra Dec: 64.072 -43.888
Photon Flux Upper Limit: 1.44e-07 ph cm-2 s-1
Energy Flux Upper Limit: 1.13e-02 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/329053/likelihoodResults_505008001_505267201_4FGL_J0416.2-4353_daily_bin1025.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) = 5575.35215246
delta logL = 1.53348666442

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 5575.29810419
delta logL = 1.58753492757

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    6.4016       1.0000         .10000E-03   10000.    
     2 'Index     '    4.3484       1.0000          .0000       10.000    
     3 'Normalizat'    .86027       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .99711       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6270E+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=   5575.298     FROM MIGRAD    STATUS=CONVERGED     79 CALLS      335 TOTAL
                     EDM=   .50E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     6.4006        108.30        .10430E-03   -.77674E-03
   2  Index         4.3484        4.1052        .43781E-02   -.23591E-03
   3  Normalizat    .86027        .25020        .30251E-03   -.30578E-03
   4  Prefactor     .99712        .27848        .31817E-03   -.22450E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 6.40061
  Index      = 4.34844
  Normalizat = 0.86027
  Prefactor  = 0.997115
 **********
 **   18 **HESSE 
 **********

 FCN=   5575.298     FROM HESSE     STATUS=OK            25 CALLS      360 TOTAL
                     EDM=   .79E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     6.4006        13.391        .41720E-05   -1.5202    
   2  Index         4.3484        1.2147        .17512E-03   -.13068    
   3  Normalizat    .86027        .25435        .60502E-04   -.97871    
   4  Prefactor     .99712        .28157        .63635E-04   -.92826    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 7.94493e-10
Minuit parameter uncertainties:
  1  13.3976
  2  1.22716
  3  0.2547
  4  0.281991
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/329053': 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) = 5575.29810419
delta logL = 1.58753493516

Extracting fit parameters...

4FGL J0416.2-4353
   Spectrum: PowerLaw
299    Prefactor:  6.401e+00  1.340e+01  1.000e-04  1.000e+04 ( 1.000e-13)
300        Index:  4.348e+00  1.227e+00  0.000e+00  1.000e+01 (-1.000e+00)
301        Scale:  7.441e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
624    Prefactor:  9.971e-01  2.820e-01  0.000e+00  1.000e+01 ( 1.000e+00)
625        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
626        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
620   Normalization:  8.603e-01  2.547e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 4.78
Ra Dec: 64.072 -43.888
Photon Index (Free Index): 4.35 +/- 1.23
Photon Flux (Free Index): 1.18e-07 +/- 7.05e-08
Energy Flux (Free Index): 1.69e-05 +/- 1.00e-05

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/329053/cmap_HighResolution_505008001_505267201_4FGL_J0416.2-4353_daily_bin1025.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.13e-02', comment='SUCCESS', photon_flux='4.41e-08', energy_flux2='1.69e-05', photon_flux_error='4.51e-08', dlogl='1.59e+00', energy_flux='1.22e-05', photon_flux2='1.18e-07', job_status='DONE', time_completed='2021-08-20 09:21:44.362553', photon_index_error2='1.23', photon_index2='4.35', ts='1.40', fit_tolerance='1e-08', GAL='0.93', photon_index_error='0.00', photon_flux_upper_limit='1.44e-07', energy_flux_error2='1.00e-05', EG='0.95', time_epoch_completed='1629476504.36', return_code='0', job_id='329053', GAL2='1.00', EG2='0.86', return_code2='0', energy_flux_error='1.25e-05', photon_flux_error2='7.05e-08', ts2='4.78', photon_index='2.55' WHERE bin_id='1025' AND source_name='4FGL J0416.2-4353' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Fri Aug 20 09:21:44 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0034>
Subject: Job 329053: <4FGL_J0416.2-4353_daily_bin1025> in cluster <slac> Done

Job <4FGL_J0416.2-4353_daily_bin1025> was submitted from host <rhel6-64p> by user <kocevski> in cluster <slac> at Fri Aug 20 09:05:42 2021
Job was executed on host(s) <bullet0034>, in queue <medium>, as user <kocevski> in cluster <slac> at Fri Aug 20 09:05:43 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Fri Aug 20 09:05:43 2021
Terminated at Fri Aug 20 09:21:45 2021
Results reported at Fri Aug 20 09:21:45 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0416.2-4353_daily_bin1025 64.0722 -43.8879 505008001 505267201 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J0416.2-4353 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   892.00 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             339.45 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   961 sec.
    Turnaround time :                            963 sec.

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

