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


Performing analysis on: 4FGL_J0416.5-1852_daily_bin1231
RA = 64.1373, Dec = -18.8724
tmin = 558403201, tmax = 558662401
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='342396', job_status='RUN', time_executed='2021-08-20 09:53:03.538290', time_epoch_executed='1629478383.54' WHERE source_name='4FGL J0416.5-1852' and cadence='daily' and bin_id='1231'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/342396

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/342396/ft1_4FGL_J0416.5-1852_daily_bin1231.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/342396/ft2_4FGL_J0416.5-1852_daily_bin1231.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/342396/ft1_4FGL_J0416.5-1852_daily_bin1231.fits outfile=/scratch/kocevski/342396/ft1_filteredMKT_4FGL_J0416.5-1852_daily_bin1231.fits ra=64.1373 dec=-18.8724 rad=12.0 tmin=558403201.0 tmax=558662401.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.74
user 3.52
sys 0.20

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/342396/ft2_4FGL_J0416.5-1852_daily_bin1231.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/342396/ft2_4FGL_J0416.5-1852_daily_bin1231.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/342396/ft1_filteredMKT_4FGL_J0416.5-1852_daily_bin1231.fits evtable="EVENTS" outfile="/scratch/kocevski/342396/ft1_filtered_4FGL_J0416.5-1852_daily_bin1231.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.55
user 0.35
sys 0.14

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/342396/ft1_filtered_4FGL_J0416.5-1852_daily_bin1231.fits" evtable="EVENTS" scfile=/scratch/kocevski/342396/ft2_4FGL_J0416.5-1852_daily_bin1231.fits sctable="SC_DATA" outfile=/scratch/kocevski/342396/ltcube_558403201_558662401_4FGL_J0416.5-1852_daily_bin1231.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/342396/ft2_4FGL_J0416.5-1852_daily_bin1231.fits
.....................!
real 11.70
user 11.30
sys 0.32

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/342396/ft1_filtered_4FGL_J0416.5-1852_daily_bin1231.fits evtable="EVENTS" scfile=/scratch/kocevski/342396/ft2_4FGL_J0416.5-1852_daily_bin1231.fits sctable="SC_DATA" expcube=/scratch/kocevski/342396/ltcube_558403201_558662401_4FGL_J0416.5-1852_daily_bin1231.fits outfile=/scratch/kocevski/342396/expmap_558403201_558662401_4FGL_J0416.5-1852_daily_bin1231.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/342396/ltcube_558403201_558662401_4FGL_J0416.5-1852_daily_bin1231.fits
.....................!
real 189.84
user 184.92
sys 4.52

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 149 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.5-1852 @ 64.1373 -18.8724

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/342396/ft1_filtered_4FGL_J0416.5-1852_daily_bin1231.fits scfile=/scratch/kocevski/342396/ft2_4FGL_J0416.5-1852_daily_bin1231.fits outfile=/scratch/kocevski/342396/cmap_558403201_558662401_4FGL_J0416.5-1852_daily_bin1231.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.1373 yref=-18.8724 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/342396/ft1_filtered_4FGL_J0416.5-1852_daily_bin1231.fits scfile=/scratch/kocevski/342396/ft2_4FGL_J0416.5-1852_daily_bin1231.fits outfile=/scratch/kocevski/342396/cmap_HighResolution_558403201_558662401_4FGL_J0416.5-1852_daily_bin1231.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.1373 yref=-18.8724 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.39
sys 0.14

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/342396/ft1_filtered_4FGL_J0416.5-1852_daily_bin1231.fits evtable="EVENTS" scfile=/scratch/kocevski/342396/ft2_4FGL_J0416.5-1852_daily_bin1231.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/342396/Model_4FGL_J0416.5-1852_daily_bin1231.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/342396/ft1_filtered_4FGL_J0416.5-1852_daily_bin1231.fits.....................!
real 130.01
user 128.57
sys 1.21

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/342396/ft1_filtered_4FGL_J0416.5-1852_daily_bin1231.fits', '/scratch/kocevski/342396/ft2_4FGL_J0416.5-1852_daily_bin1231.fits', expMap='/scratch/kocevski/342396/expmap_558403201_558662401_4FGL_J0416.5-1852_daily_bin1231.fits', expCube='/scratch/kocevski/342396/ltcube_558403201_558662401_4FGL_J0416.5-1852_daily_bin1231.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/342396/Model_4FGL_J0416.5-1852_daily_bin1231.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J0416.5-1852'

4FGL J0416.5-1852
   Spectrum: PowerLaw
265    Prefactor:  1.793e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-12)
266        Index:  2.395e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
267        Scale:  7.587e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/342396/ft1_filtered_4FGL_J0416.5-1852_daily_bin1231.fits
Spacecraft file(s): /scratch/kocevski/342396/ft2_4FGL_J0416.5-1852_daily_bin1231.fits
Exposure map: /scratch/kocevski/342396/expmap_558403201_558662401_4FGL_J0416.5-1852_daily_bin1231.fits
Exposure cube: /scratch/kocevski/342396/ltcube_558403201_558662401_4FGL_J0416.5-1852_daily_bin1231.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/342396/Model_4FGL_J0416.5-1852_daily_bin1231.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) = 5490.34619148

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10291E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    2.1282       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     6 'norm      '    21.609       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10009E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    .51469       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    .10009E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    8.0498       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .15834E-02   1.0000         .10000E-03   10000.    
    14 'Prefactor '    6.2410       1.0000         .10000E-03   10000.    
    15 'Prefactor '    21.354       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .34229E-01   1.0000         .10000E-03   10000.    
    17 'norm      '    131.17       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    21.961       1.0000         .10000E-03   10000.    
    20 'norm      '    .40851       1.0000         .10000E-03   10000.    
    21 'Normalizat'    1.0486       1.0000         .10000E-01   10.000    
    22 'Prefactor '    1.1110       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .4850E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   5490.308     FROM MIGRAD    STATUS=CONVERGED    511 CALLS     2480 TOTAL
                     EDM=   .60E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.5%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    15.647       -.45829E-06** at limit **
   2  Prefactor     .10000E-03    51.416       -.73458E-06** at limit **
   3  Prefactor     2.1285        2.2786       -.62930E-07   -.30940E-04
   4  Prefactor     .10000E-03    2.0354       -.66613E-07** at limit **
   5  Prefactor     .10000E-03    1.3781       -.49070E-07** at limit **
   6  norm          21.610        3.2592        .34146E-08    .50339E-04
   7  Prefactor     .10000E-03    7.3885       -.14297E-06** at limit **
   8  norm          .51508        1.7592        .49145E-06    .15540E-03
   9  Prefactor     .10000E-03    10.528       -.28193E-06** at limit **
  10  Prefactor     .10000E-03    1.8620       -.23609E-06** at limit **
  11  norm          .10000E-03    9.9203        .50670E-07** at limit **
  12  Prefactor     8.0629        70.201       -.35977E-06    .39833E-05
  13  Prefactor     .10000E-03    7.7042       -.13860E-05** at limit **
  14  Prefactor     6.2420        4.7236        .11782E-06    .13496E-03
  15  Prefactor     21.346        22.163        .29791E-06    .30162E-04
  16  Prefactor     .10154E-03    22.150        .13941E-05** at limit **
  17  norm          131.29        274.79       -.11401E-05    .61318E-05
  18  Prefactor     .10000E-03    2.2102        .16461E-06** at limit **
  19  Prefactor     22.114        65.550       -.11239E-05    .31551E-04
  20  norm          .40846        .23670        .53791E-07    .88045E-03
  21  Normalizat    1.0482        .25382       -.22426E-05    .35199E-03
  22  Prefactor     1.1112        .18334        .36946E-05    .31690E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 2.12847
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 21.6098
  Prefactor  = 0.0001
  norm       = 0.515083
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 8.06294
  Prefactor  = 0.000100004
  Prefactor  = 6.242
  Prefactor  = 21.3461
  Prefactor  = 0.000101541
  norm       = 131.292
  Prefactor  = 0.0001
  Prefactor  = 22.1137
  norm       = 0.408459
  Normalizat = 1.04823
  Prefactor  = 1.11119
 **********
 **   18 **HESSE 
 **********

 FCN=   5490.308     FROM HESSE     STATUS=OK           344 CALLS     2824 TOTAL
                     EDM=   .72E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    15.698        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    51.669        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     2.1285        2.2654        .10999E-03   -1.5416    
   4  Prefactor     .10000E-03    2.0418        .10322E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    1.3797        .84944E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          21.610        3.2585        .49548E-04   -1.4778    
   7  Prefactor     .10000E-03    7.3925        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          .51508        1.7281        .16619E-03   -1.5564    
   9  Prefactor     .10000E-03    10.552        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    1.8936        .98852E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          .10000E-03    9.9332        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     8.0629        70.748        .14131E-03   -1.5140    
  13  Prefactor     .10000E-03    31.113        .38292E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     6.2420        4.7232        .13419E-03   -1.5208    
  15  Prefactor     21.346        22.146        .86677E-04   -1.4784    
  16  Prefactor     .10154E-03    211.94        .66063E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          131.29        274.69        .17579E-03   -1.3411    
  18  Prefactor     .10000E-03    2.2118        .10750E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     22.114        65.445        .85473E-04   -1.4767    
  20  norm          .40846        .23290        .25963E-04   -1.5580    
  21  Normalizat    1.0482        .27862        .31153E-03   -.91432    
  22  Prefactor     1.1112        .19471        .22563E-03   -.89110    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 7.2265e-09
Minuit parameter uncertainties:
  1  3.40906e-05
  2  0.000155427
  3  2.26552
  4  2.06119e-06
  5  1.83595e-06
  6  3.25851
  7  8.46538e-06
  8  1.72826
  9  2.05916e-05
  10  1.10224e-05
  11  2.67513e-06
  12  47.8432
  13  0.000726333
  14  4.72347
  15  22.1547
  16  0.0362696
  17  277.423
  18  2.88591e-07
  19  65.6589
  20  0.232905
  21  0.279008
  22  0.194838
Done.

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

Extracting fit parameters...

4FGL J0416.5-1852
   Spectrum: PowerLaw
265    Prefactor:  6.242e+00  4.723e+00  1.000e-04  1.000e+04 ( 1.000e-12)
266        Index:  2.395e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
267        Scale:  7.587e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
482    Prefactor:  1.111e+00  1.948e-01  0.000e+00  1.000e+01 ( 1.000e+00)
483        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
484        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
478   Normalization:  1.048e+00  2.790e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 4.94
Ra Dec: 64.137 -18.872
Photon Index (Fixed Index): 2.39 +/- 0.00
Photon Flux (Fixed Index): 5.74e-08 +/- 4.34e-08
Energy Flux (Fixed Index): 1.89e-05 +/- 1.43e-05

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) = 5489.35834925
delta logL = 0.94965764446

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5489.34223615
delta logL = 0.965770738124

Fit tolerance = 1e-08

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

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

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   5489.342     FROM MIGRAD    STATUS=CONVERGED     48 CALLS      203 TOTAL
                     EDM=   .65E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     7.2490        5.1834        .37244E-02    .41428E-02
   2  Index         1.6025        .36041        .18245       -.61820E-04
   3  Normalizat    1.0854        .22129        .69280E-01    .17728E-04
   4  Prefactor     1.0911        .16497        .37932E-01    .17144E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 7.24897
  Index      = 1.60254
  Normalizat = 1.0854
  Prefactor  = 1.09115
 **********
 **   18 **HESSE 
 **********

 FCN=   5489.342     FROM HESSE     STATUS=OK            31 CALLS      234 TOTAL
                     EDM=   .63E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     7.2490        5.7341        .13827E-03   -1.5169    
   2  Index         1.6025        .45452        .70807E-02   -.74707    
   3  Normalizat    1.0854        .25519        .30653E-03   -.90222    
   4  Prefactor     1.0911        .19036        .22723E-03   -.89750    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 6.34319e-09
Minuit parameter uncertainties:
  1  5.73451
  2  0.455689
  3  0.255477
  4  0.190475
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/342396': 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) = 5489.34223336
delta logL = 0.965773535229

Extracting fit parameters...

4FGL J0416.5-1852
   Spectrum: PowerLaw
265    Prefactor:  7.249e+00  5.735e+00  1.000e-04  1.000e+04 ( 1.000e-12)
266        Index:  1.603e+00  4.557e-01  0.000e+00  1.000e+01 (-1.000e+00)
267        Scale:  7.587e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
482    Prefactor:  1.091e+00  1.905e-01  0.000e+00  1.000e+01 ( 1.000e+00)
483        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
484        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
478   Normalization:  1.085e+00  2.555e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 6.85
Ra Dec: 64.137 -18.872
Photon Index (Free Index): 1.60 +/- 0.46
Photon Flux (Free Index): 3.05e-08 +/- 2.76e-08
Energy Flux (Free Index): 6.84e-05 +/- 8.13e-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/342396/cmap_HighResolution_558403201_558662401_4FGL_J0416.5-1852_daily_bin1231.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='5.74e-08', energy_flux2='6.84e-05', photon_flux_error='4.34e-08', dlogl='9.66e-01', energy_flux='1.89e-05', photon_flux2='3.05e-08', job_status='DONE', time_completed='2021-08-20 10:02:53.229807', photon_index_error2='0.46', photon_index2='1.60', ts='4.94', fit_tolerance='1e-08', GAL='1.11', photon_index_error='0.00', energy_flux_error2='8.13e-05', EG='1.05', time_epoch_completed='1629478973.23', return_code='0', job_id='342396', GAL2='1.09', EG2='1.09', return_code2='0', energy_flux_error='1.43e-05', photon_flux_error2='2.76e-08', ts2='6.85', photon_index='2.39' WHERE bin_id='1231' AND source_name='4FGL J0416.5-1852' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Fri Aug 20 10:02:53 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0231>
Subject: Job 342396: <4FGL_J0416.5-1852_daily_bin1231> in cluster <slac> Done

Job <4FGL_J0416.5-1852_daily_bin1231> was submitted from host <rhel6-64n> by user <kocevski> in cluster <slac> at Fri Aug 20 09:50:40 2021
Job was executed on host(s) <bullet0231>, in queue <medium>, as user <kocevski> in cluster <slac> at Fri Aug 20 09:50:42 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:50:42 2021
Terminated at Fri Aug 20 10:02:53 2021
Results reported at Fri Aug 20 10:02:53 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0416.5-1852_daily_bin1231 64.1373 -18.8724 558403201 558662401 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J0416.5-1852 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   588.33 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             320.40 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   731 sec.
    Turnaround time :                            733 sec.

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

