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


Performing analysis on: 4FGL_J0416.2-4353_daily_bin1370
RA = 64.0722, Dec = -43.8879
tmin = 594432001, tmax = 594691201
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='332969', job_status='RUN', time_executed='2021-08-20 09:17:58.191011', time_epoch_executed='1629476278.19' WHERE source_name='4FGL J0416.2-4353' and cadence='daily' and bin_id='1370'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/332969

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/332969/ft1_4FGL_J0416.2-4353_daily_bin1370.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/332969/ft2_4FGL_J0416.2-4353_daily_bin1370.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/332969/ft1_4FGL_J0416.2-4353_daily_bin1370.fits outfile=/scratch/kocevski/332969/ft1_filteredMKT_4FGL_J0416.2-4353_daily_bin1370.fits ra=64.0722 dec=-43.8879 rad=12.0 tmin=594432001.0 tmax=594691201.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.38
user 3.12
sys 0.24

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/332969/ft2_4FGL_J0416.2-4353_daily_bin1370.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/332969/ft1_filteredMKT_4FGL_J0416.2-4353_daily_bin1370.fits evtable="EVENTS" outfile="/scratch/kocevski/332969/ft1_filtered_4FGL_J0416.2-4353_daily_bin1370.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.44
user 0.26
sys 0.17

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/332969/ft1_filtered_4FGL_J0416.2-4353_daily_bin1370.fits" evtable="EVENTS" scfile=/scratch/kocevski/332969/ft2_4FGL_J0416.2-4353_daily_bin1370.fits sctable="SC_DATA" outfile=/scratch/kocevski/332969/ltcube_594432001_594691201_4FGL_J0416.2-4353_daily_bin1370.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/332969/ft2_4FGL_J0416.2-4353_daily_bin1370.fits
.....................!
real 9.15
user 8.81
sys 0.30

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/332969/ft1_filtered_4FGL_J0416.2-4353_daily_bin1370.fits evtable="EVENTS" scfile=/scratch/kocevski/332969/ft2_4FGL_J0416.2-4353_daily_bin1370.fits sctable="SC_DATA" expcube=/scratch/kocevski/332969/ltcube_594432001_594691201_4FGL_J0416.2-4353_daily_bin1370.fits outfile=/scratch/kocevski/332969/expmap_594432001_594691201_4FGL_J0416.2-4353_daily_bin1370.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/332969/ltcube_594432001_594691201_4FGL_J0416.2-4353_daily_bin1370.fits
.....................!
real 143.66
user 139.63
sys 3.81

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/332969/ft1_filtered_4FGL_J0416.2-4353_daily_bin1370.fits scfile=/scratch/kocevski/332969/ft2_4FGL_J0416.2-4353_daily_bin1370.fits outfile=/scratch/kocevski/332969/cmap_594432001_594691201_4FGL_J0416.2-4353_daily_bin1370.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 0.47
user 0.28
sys 0.18

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/332969/ft1_filtered_4FGL_J0416.2-4353_daily_bin1370.fits scfile=/scratch/kocevski/332969/ft2_4FGL_J0416.2-4353_daily_bin1370.fits outfile=/scratch/kocevski/332969/cmap_HighResolution_594432001_594691201_4FGL_J0416.2-4353_daily_bin1370.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 0.47
user 0.29
sys 0.17

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/332969/ft1_filtered_4FGL_J0416.2-4353_daily_bin1370.fits evtable="EVENTS" scfile=/scratch/kocevski/332969/ft2_4FGL_J0416.2-4353_daily_bin1370.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/332969/Model_4FGL_J0416.2-4353_daily_bin1370.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/332969/ft1_filtered_4FGL_J0416.2-4353_daily_bin1370.fits.....................!
real 94.28
user 93.10
sys 1.02

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/332969/ft1_filtered_4FGL_J0416.2-4353_daily_bin1370.fits', '/scratch/kocevski/332969/ft2_4FGL_J0416.2-4353_daily_bin1370.fits', expMap='/scratch/kocevski/332969/expmap_594432001_594691201_4FGL_J0416.2-4353_daily_bin1370.fits', expCube='/scratch/kocevski/332969/ltcube_594432001_594691201_4FGL_J0416.2-4353_daily_bin1370.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/332969/Model_4FGL_J0416.2-4353_daily_bin1370.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/332969/ft1_filtered_4FGL_J0416.2-4353_daily_bin1370.fits
Spacecraft file(s): /scratch/kocevski/332969/ft2_4FGL_J0416.2-4353_daily_bin1370.fits
Exposure map: /scratch/kocevski/332969/expmap_594432001_594691201_4FGL_J0416.2-4353_daily_bin1370.fits
Exposure cube: /scratch/kocevski/332969/ltcube_594432001_594691201_4FGL_J0416.2-4353_daily_bin1370.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/332969/Model_4FGL_J0416.2-4353_daily_bin1370.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) = 6295.55251845

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    24.725       1.0000         .10000E-03   10000.    
     2 'Prefactor '    1.4660       1.0000         .10000E-03   10000.    
     3 'norm      '    4.6168       1.0000         .10000E-03   10000.    
     4 'norm      '    .96428       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10017E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .11225E-01   1.0000         .10000E-03   10000.    
     7 'norm      '    .38004       1.0000         .10000E-03   10000.    
     8 'norm      '    4.6920       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    24.533       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10039E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    .30564E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    27.816       1.0000         .10000E-03   10000.    
    14 'norm      '    .92462       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10301E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .19944E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    25.795       1.0000         .10000E-03   10000.    
    18 'norm      '    7.0283       1.0000         .10000E-03   10000.    
    19 'Prefactor '    3.5477       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .11013E-03   1.0000         .10000E-03   10000.    
    21 'norm      '    .10181E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10025E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10034E-03   1.0000         .10000E-03   10000.    
    24 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    25 'Prefactor '    7.5275       1.0000         .10000E-03   10000.    
    26 'Normalizat'    1.1470       1.0000         .10000E-01   10.000    
    27 'Prefactor '    .90829       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=   6295.548     FROM MIGRAD    STATUS=CONVERGED    688 CALLS     3323 TOTAL
                     EDM=   .56E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  5.0%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     24.728        23.522       -.99564E-07    .13958E-04
   2  Prefactor     1.5030        54.725       -.56123E-05   -.71689E-04
   3  norm          4.6157        3.1413        .52825E-08    .99119E-04
   4  norm          .96432        .73186       -.38874E-07   -.29901E-04
   5  Prefactor     .10000E-03    63.522       -.12143E-06** at limit **
   6  Prefactor     .10008E-03    98.977       -.48407E-05** at limit **
   7  norm          .38001        .30116       -.25281E-07    .55101E-04
   8  norm          4.6919        5.5639       -.24542E-06   -.65517E-04
   9  Prefactor     .10000E-03    5.0926        .31925E-07** at limit **
  10  Prefactor     24.557        34.379        .63445E-06    .39139E-04
  11  Prefactor     .10000E-03    5.8810        .42353E-07** at limit **
  12  norm          .10001E-03    3.8188        .11597E-05** at limit **
  13  Prefactor     27.815        12.674       -.80591E-07    .11190E-03
  14  norm          .92483        .60104       -.88384E-08    .80443E-04
  15  Prefactor     .10000E-03    146.14        .24760E-05** at limit **
  16  Prefactor     .10000E-03    9.0794        .38001E-06** at limit **
  17  norm          25.811        16.150        .11907E-05    .50118E-03
  18  norm          7.0301        2.6938        .37984E-07    .71849E-03
  19  Prefactor     3.5413        4.8603        .16077E-06    .37795E-03
  20  Prefactor     .10000E-03    16.497       -.38014E-06** at limit **
  21  norm          .10000E-03    2.5655        .83914E-07** at limit **
  22  Prefactor     .10000E-03    21.135       -.27546E-06** at limit **
  23  Prefactor     .10000E-03    8.5284        .26459E-07** at limit **
  24  Prefactor     .10000E-03    16.913        .38117E-07** at limit **
  25  Prefactor     7.5297        3.0952        .23775E-07    .20761E-03
  26  Normalizat    1.1468        .19591        .83483E-06    .69931E-04
  27  Prefactor     .90811        .20157       -.30026E-06    .77465E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 24.7279
  Prefactor  = 1.50303
  norm       = 4.61572
  norm       = 0.964319
  Prefactor  = 0.0001
  Prefactor  = 0.000100079
  norm       = 0.380013
  norm       = 4.69193
  Prefactor  = 0.0001
  Prefactor  = 24.5572
  Prefactor  = 0.0001
  norm       = 0.000100008
  Prefactor  = 27.815
  norm       = 0.924829
  Prefactor  = 0.000100002
  Prefactor  = 0.000100002
  norm       = 25.8109
  norm       = 7.03008
  Prefactor  = 3.5413
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 7.52969
  Normalizat = 1.14685
  Prefactor  = 0.908114
 **********
 **   18 **HESSE 
 **********

 FCN=   6295.548     FROM HESSE     STATUS=OK           494 CALLS     3817 TOTAL
                     EDM=   .21E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     24.728        23.515        .80560E-04   -1.4713    
   2  Prefactor     1.5030        56.486        .35513E-03   -1.5463    
   3  norm          4.6157        3.1303        .11161E-03   -1.5278    
   4  norm          .96432        .72756        .56638E-04   -1.5512    
   5  Prefactor     .10000E-03    64.042        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10008E-03    166.57        .56163E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          .38001        .29284        .36541E-04   -1.5585    
   8  norm          4.6919        5.5490        .18578E-03   -1.5275    
   9  Prefactor     .10000E-03    5.0988        .17485E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     24.557        34.395        .80874E-04   -1.4716    
  11  Prefactor     .10000E-03    5.9018        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          .10001E-03    6.7124        .26405E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     27.815        12.596        .75960E-04   -1.4653    
  14  norm          .92483        .59608        .44782E-04   -1.5516    
  15  Prefactor     .10000E-03    145.78        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    17.339        .19580E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          25.811        16.276        .78875E-04   -1.4691    
  18  norm          7.0301        2.6977        .69018E-04   -1.5178    
  19  Prefactor     3.5413        4.8933        .15568E-03   -1.5332    
  20  Prefactor     .10000E-03    16.600        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  norm          .10000E-03    2.5991        .12420E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     .10000E-03    21.139        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     .10000E-03    8.5354        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     .10000E-03    16.919        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Prefactor     7.5297        3.0912        .85717E-04   -1.5159    
  26  Normalizat    1.1468        .23760        .24787E-03   -.88262    
  27  Prefactor     .90811        .24657        .30185E-03   -.95858    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.05258e-09
Minuit parameter uncertainties:
  1  23.5239
  2  18.4465
  3  3.1304
  4  0.727566
  5  3.35888e-05
  6  0.00726114
  7  0.29284
  8  5.54964
  9  7.24608e-06
  10  34.4227
  11  4.8281e-06
  12  0.000464058
  13  12.5976
  14  0.596084
  15  0.00108016
  16  0.000362693
  17  16.2786
  18  2.69775
  19  4.89384
  20  9.88715e-05
  21  8.9988e-06
  22  2.08556e-05
  23  8.08783e-07
  24  4.25867e-07
  25  3.09123
  26  0.237822
  27  0.246872
Done.

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

Extracting fit parameters...

4FGL J0416.2-4353
   Spectrum: PowerLaw
299    Prefactor:  2.456e+01  3.442e+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.081e-01  2.469e-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:  1.147e+00  2.378e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 0.64
Ra Dec: 64.072 -43.888
Photon Flux Upper Limit: 1.10e-07 ph cm-2 s-1
Energy Flux Upper Limit: 8.61e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/332969/likelihoodResults_594432001_594691201_4FGL_J0416.2-4353_daily_bin1370.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) = 6295.54140693
delta logL = 0.00631031618013

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6295.53828542
delta logL = 0.00943182208812

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    21.550       1.0000         .10000E-03   10000.    
     2 'Index     '    2.6965       1.0000          .0000       10.000    
     3 'Normalizat'    1.1436       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .91106       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.

 FCN=   6295.538     FROM MIGRAD    STATUS=CONVERGED     50 CALLS      238 TOTAL
                     EDM=   .35E-10    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     21.550        980.86        .21571E-02    .12701E-03
   2  Index         2.6965        6.2464        .22900        .61863E-04
   3  Normalizat    1.1437        .56078E-01    .56119E-01    .68976E-05
   4  Prefactor     .91094        .60189E-01    .68140E-01    .14106E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 21.5497
  Index      = 2.69647
  Normalizat = 1.14369
  Prefactor  = 0.910939
 **********
 **   18 **HESSE 
 **********

 FCN=   6295.538     FROM HESSE     STATUS=OK            31 CALLS      269 TOTAL
                     EDM=   .85E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     21.550        42.275        .86283E-04   -1.4779    
   2  Index         2.6965        1.2081        .10414E-01   -.47879    
   3  Normalizat    1.1437        .22261        .24815E-03   -.88361    
   4  Prefactor     .91094        .24328        .30143E-03   -.95760    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 8.52451e-11
Minuit parameter uncertainties:
  1  42.3335
  2  1.22359
  3  0.222797
  4  0.243574
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/332969': 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) = 6295.5382853
delta logL = 0.00943194574575

Extracting fit parameters...

4FGL J0416.2-4353
   Spectrum: PowerLaw
299    Prefactor:  2.155e+01  4.233e+01  1.000e-04  1.000e+04 ( 1.000e-13)
300        Index:  2.696e+00  1.224e+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.109e-01  2.436e-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:  1.144e+00  2.228e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 0.64
Ra Dec: 64.072 -43.888

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/332969/cmap_HighResolution_594432001_594691201_4FGL_J0416.2-4353_daily_bin1370.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='8.61e-03', job_status='DONE', photon_flux_upper_limit='1.10e-07', time_completed='2021-08-20 09:28:49.775218', job_id='332969', GAL2='0.91', fit_tolerance='1e-08', EG2='1.14', EG='1.15', time_epoch_completed='1629476929.78', return_code2='0', ts='0.64', comment='SUCCESS', return_code='0', GAL='0.91', dlogl='9.43e-03', ts2='0.65', photon_index_error='0.00', photon_index='2.55' WHERE bin_id='1370' AND source_name='4FGL J0416.2-4353' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Fri Aug 20 09:28:49 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0135>
Subject: Job 332969: <4FGL_J0416.2-4353_daily_bin1370> in cluster <slac> Done

Job <4FGL_J0416.2-4353_daily_bin1370> was submitted from host <rhel6-64p> by user <kocevski> in cluster <slac> at Fri Aug 20 09:15:38 2021
Job was executed on host(s) <bullet0135>, in queue <medium>, as user <kocevski> in cluster <slac> at Fri Aug 20 09:15:40 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:15:40 2021
Terminated at Fri Aug 20 09:28:50 2021
Results reported at Fri Aug 20 09:28:50 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0416.2-4353_daily_bin1370 64.0722 -43.8879 594432001 594691201 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 :                                   648.34 sec.
    Max Memory :                                 1095 MB
    Average Memory :                             295.11 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   789 sec.
    Turnaround time :                            792 sec.

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

