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


Performing analysis on: 4FGL_J0416.5-1852_daily_bin1532
RA = 64.1373, Dec = -18.8724
tmin = 636422401, tmax = 636681601
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='343929', job_status='RUN', time_executed='2021-08-20 09:57:17.393095', time_epoch_executed='1629478637.39' WHERE source_name='4FGL J0416.5-1852' and cadence='daily' and bin_id='1532'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/343929

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/343929/ft1_4FGL_J0416.5-1852_daily_bin1532.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/343929/ft2_4FGL_J0416.5-1852_daily_bin1532.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/343929/ft1_4FGL_J0416.5-1852_daily_bin1532.fits outfile=/scratch/kocevski/343929/ft1_filteredMKT_4FGL_J0416.5-1852_daily_bin1532.fits ra=64.1373 dec=-18.8724 rad=12.0 tmin=636422401.0 tmax=636681601.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 4.46
user 3.36
sys 1.07

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/343929/ft2_4FGL_J0416.5-1852_daily_bin1532.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/343929/ft1_filteredMKT_4FGL_J0416.5-1852_daily_bin1532.fits evtable="EVENTS" outfile="/scratch/kocevski/343929/ft1_filtered_4FGL_J0416.5-1852_daily_bin1532.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.42
user 0.34
sys 1.01

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/343929/ft1_filtered_4FGL_J0416.5-1852_daily_bin1532.fits" evtable="EVENTS" scfile=/scratch/kocevski/343929/ft2_4FGL_J0416.5-1852_daily_bin1532.fits sctable="SC_DATA" outfile=/scratch/kocevski/343929/ltcube_636422401_636681601_4FGL_J0416.5-1852_daily_bin1532.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/343929/ft2_4FGL_J0416.5-1852_daily_bin1532.fits
.....................!
real 12.70
user 11.36
sys 1.31

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/343929/ft1_filtered_4FGL_J0416.5-1852_daily_bin1532.fits evtable="EVENTS" scfile=/scratch/kocevski/343929/ft2_4FGL_J0416.5-1852_daily_bin1532.fits sctable="SC_DATA" expcube=/scratch/kocevski/343929/ltcube_636422401_636681601_4FGL_J0416.5-1852_daily_bin1532.fits outfile=/scratch/kocevski/343929/expmap_636422401_636681601_4FGL_J0416.5-1852_daily_bin1532.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/343929/ltcube_636422401_636681601_4FGL_J0416.5-1852_daily_bin1532.fits
.....................!
real 190.91
user 185.37
sys 5.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 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/343929/ft1_filtered_4FGL_J0416.5-1852_daily_bin1532.fits scfile=/scratch/kocevski/343929/ft2_4FGL_J0416.5-1852_daily_bin1532.fits outfile=/scratch/kocevski/343929/cmap_636422401_636681601_4FGL_J0416.5-1852_daily_bin1532.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 1.38
user 0.36
sys 0.99

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/343929/ft1_filtered_4FGL_J0416.5-1852_daily_bin1532.fits scfile=/scratch/kocevski/343929/ft2_4FGL_J0416.5-1852_daily_bin1532.fits outfile=/scratch/kocevski/343929/cmap_HighResolution_636422401_636681601_4FGL_J0416.5-1852_daily_bin1532.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 1.42
user 0.39
sys 1.00

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/343929/ft1_filtered_4FGL_J0416.5-1852_daily_bin1532.fits evtable="EVENTS" scfile=/scratch/kocevski/343929/ft2_4FGL_J0416.5-1852_daily_bin1532.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/343929/Model_4FGL_J0416.5-1852_daily_bin1532.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/343929/ft1_filtered_4FGL_J0416.5-1852_daily_bin1532.fits.....................!
real 118.78
user 116.05
sys 2.36

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/343929/ft1_filtered_4FGL_J0416.5-1852_daily_bin1532.fits', '/scratch/kocevski/343929/ft2_4FGL_J0416.5-1852_daily_bin1532.fits', expMap='/scratch/kocevski/343929/expmap_636422401_636681601_4FGL_J0416.5-1852_daily_bin1532.fits', expCube='/scratch/kocevski/343929/ltcube_636422401_636681601_4FGL_J0416.5-1852_daily_bin1532.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/343929/Model_4FGL_J0416.5-1852_daily_bin1532.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/343929/ft1_filtered_4FGL_J0416.5-1852_daily_bin1532.fits
Spacecraft file(s): /scratch/kocevski/343929/ft2_4FGL_J0416.5-1852_daily_bin1532.fits
Exposure map: /scratch/kocevski/343929/expmap_636422401_636681601_4FGL_J0416.5-1852_daily_bin1532.fits
Exposure cube: /scratch/kocevski/343929/ltcube_636422401_636681601_4FGL_J0416.5-1852_daily_bin1532.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/343929/Model_4FGL_J0416.5-1852_daily_bin1532.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) = 4884.35636585

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

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 '    21.133       1.0000         .10000E-03   10000.    
     3 'Prefactor '    10.023       1.0000         .10000E-03   10000.    
     4 'Prefactor '    3.7269       1.0000         .10000E-03   10000.    
     5 'Prefactor '    10.661       1.0000         .10000E-03   10000.    
     6 'norm      '    8.9928       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    .53920E-02   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    13.409       1.0000         .10000E-03   10000.    
    11 'norm      '    .10004E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10039E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    19.259       1.0000         .10000E-03   10000.    
    14 'Prefactor '    4.8093       1.0000         .10000E-03   10000.    
    15 'Prefactor '    4.6815       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10038E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    .10036E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    5.6707       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .17488E-01   1.0000         .10000E-03   10000.    
    20 'norm      '    1.9686       1.0000         .10000E-03   10000.    
    21 'Normalizat'    .63536       1.0000         .10000E-01   10.000    
    22 'Prefactor '    1.0621       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.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   4884.320     FROM MIGRAD    STATUS=CONVERGED    913 CALLS     2835 TOTAL
                     EDM=   .99E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    37.052        .18142E-02** at limit **
   2  Prefactor     21.102        45.108        .87128E-04    .46974E-05
   3  Prefactor     10.023        4.4895        .90238E-04    .22980E-03
   4  Prefactor     3.7311        9.3962        .20916E-03    .13344E-03
   5  Prefactor     10.655        10.613        .12271E-03    .13675E-03
   6  norm          8.9927        2.2130        .48359E-04    .94036E-04
   7  Prefactor     .10000E-03    13.582        .18142E-02** at limit **
   8  norm          .10000E-03    6.2068        .22140E-01** at limit **
   9  Prefactor     .10000E-03    9.1046        .18142E-02** at limit **
  10  Prefactor     13.407        5.7968        .97899E-04    .29485E-03
  11  norm          .10000E-03    7.2790        .18142E-02** at limit **
  12  Prefactor     .10000E-03    17.918        .18142E-02** at limit **
  13  Prefactor     19.261        11.952        .91267E-04    .66020E-04
  14  Prefactor     4.8106        5.6360        .16908E-03    .12667E-03
  15  Prefactor     4.6757        17.868        .18599E-03    .39670E-04
  16  Prefactor     .10000E-03    13.390        .18142E-02** at limit **
  17  norm          .10000E-03    138.09        .18142E-02** at limit **
  18  Prefactor     5.6707        6.7950        .16868E-03    .30261E-04
  19  Prefactor     .10000E-03    59.104        .14679    ** at limit **
  20  norm          1.9684        .38508        .18153E-04   -.42587E-04
  21  Normalizat    .63524        .28436        .36994E-03    .10313E-03
  22  Prefactor     1.0621        .20240        .22077E-03    .17102E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 21.102
  Prefactor  = 10.0227
  Prefactor  = 3.73109
  Prefactor  = 10.6555
  norm       = 8.99268
  Prefactor  = 0.0001
  norm       = 0.000100004
  Prefactor  = 0.0001
  Prefactor  = 13.4066
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 19.2609
  Prefactor  = 4.81056
  Prefactor  = 4.67575
  Prefactor  = 0.0001
  norm       = 0.000100001
  Prefactor  = 5.67068
  Prefactor  = 0.0001
  norm       = 1.96836
  Normalizat = 0.635237
  Prefactor  = 1.06208
 **********
 **   18 **HESSE 
 **********

 FCN=   4884.320     FROM HESSE     STATUS=OK           340 CALLS     3175 TOTAL
                     EDM=   .96E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    37.061        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     21.102        45.108        .34851E-05   -1.4789    
   3  Prefactor     10.023        4.4813        .36095E-05   -1.5075    
   4  Prefactor     3.7311        9.3781        .83666E-05   -1.5322    
   5  Prefactor     10.655        10.569        .49083E-05   -1.5055    
   6  norm          8.9927        2.2128        .19344E-05   -1.5108    
   7  Prefactor     .10000E-03    13.583        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          .10000E-03    2.9987        .33334E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    9.1047        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     13.407        5.7695        .39160E-05   -1.4976    
  11  norm          .10000E-03    7.2791        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    17.919        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     19.261        11.952        .36507E-05   -1.4830    
  14  Prefactor     4.8106        5.6349        .67633E-05   -1.5269    
  15  Prefactor     4.6757        17.865        .74396E-05   -1.5275    
  16  Prefactor     .10000E-03    13.391        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          .10000E-03    138.09        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     5.6707        6.7947        .67474E-05   -1.5232    
  19  Prefactor     .10000E-03    60.635        .14424       -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  norm          1.9684        .38508        .72611E-06   -1.5427    
  21  Normalizat    .63524        .28453        .14798E-04   -1.0651    
  22  Prefactor     1.0621        .20252        .44153E-04   -.90688    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 9.64222e-11
Minuit parameter uncertainties:
  1  0.000100786
  2  45.1805
  3  4.48147
  4  9.38181
  5  10.5709
  6  2.21278
  7  1.36412e-05
  8  0.000218432
  9  6.23457e-06
  10  5.76971
  11  3.83081e-06
  12  1.61312e-05
  13  11.9536
  14  5.63556
  15  17.8855
  16  1.6992e-05
  17  0.00091149
  18  6.79564
  19  0.000208139
  20  0.385079
  21  0.285189
  22  0.20267
Done.

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

Extracting fit parameters...

4FGL J0416.5-1852
   Spectrum: PowerLaw
265    Prefactor:  4.811e+00  5.636e+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.062e+00  2.027e-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:  6.352e-01  2.852e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 1.03
Ra Dec: 64.137 -18.872
Photon Index (Fixed Index): 2.39 +/- 0.00
Photon Flux (Fixed Index): 4.42e-08 +/- 5.17e-08
Energy Flux (Fixed Index): 1.46e-05 +/- 1.71e-05

TS (Fixed Index): 1.03
Ra Dec: 64.137 -18.872
Photon Flux Upper Limit: 1.62e-07 ph cm-2 s-1
Energy Flux Upper Limit: 1.25e-02 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/343929/likelihoodResults_636422401_636681601_4FGL_J0416.5-1852_daily_bin1532.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) = 4884.32027582
delta logL = 0.000101485374216

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 4884.32024786
delta logL = 0.00012944248374

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    4.8497       1.0000         .10000E-03   10000.    
     2 'Index     '    2.3802       1.0000          .0000       10.000    
     3 'Normalizat'    .63584       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0618       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=   4884.320     FROM MIGRAD    STATUS=CONVERGED     55 CALLS      218 TOTAL
                     EDM=   .10E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     4.8562        193.01        .45666E-02    .27689E-03
   2  Index         2.3815        5.9950        .23981        .31976E-04
   3  Normalizat    .63569        .84940E-01    .83494E-01    .24407E-04
   4  Prefactor     1.0618        .63647E-01    .39262E-01    .20390E-06
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 4.85619
  Index      = 2.38146
  Normalizat = 0.635687
  Prefactor  = 1.06181
 **********
 **   18 **HESSE 
 **********

 FCN=   4884.320     FROM HESSE     STATUS=OK            33 CALLS      251 TOTAL
                     EDM=   .61E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     4.8562        6.4440        .16992E-03   -1.5267    
   2  Index         2.3815        .81918        .86334E-02   -.55120    
   3  Normalizat    .63569        .26355        .36982E-03   -1.0649    
   4  Prefactor     1.0618        .19918        .22079E-03   -.90697    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 6.12921e-10
Minuit parameter uncertainties:
  1  6.44491
  2  0.824318
  3  0.264079
  4  0.199319
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/343929': 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) = 4884.32024444
delta logL = 0.000132864558509

Extracting fit parameters...

4FGL J0416.5-1852
   Spectrum: PowerLaw
265    Prefactor:  4.856e+00  6.445e+00  1.000e-04  1.000e+04 ( 1.000e-12)
266        Index:  2.381e+00  8.243e-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.062e+00  1.993e-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:  6.357e-01  2.641e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 1.02
Ra Dec: 64.137 -18.872
Photon Index (Free Index): 2.38 +/- 0.82
Photon Flux (Free Index): 4.39e-08 +/- 5.42e-08
Energy Flux (Free Index): 1.47e-05 +/- 1.99e-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/343929/cmap_HighResolution_636422401_636681601_4FGL_J0416.5-1852_daily_bin1532.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.25e-02', comment='SUCCESS', photon_flux='4.42e-08', energy_flux2='1.47e-05', photon_flux_error='5.17e-08', dlogl='1.33e-04', energy_flux='1.46e-05', photon_flux2='4.39e-08', job_status='DONE', time_completed='2021-08-20 10:07:38.712082', photon_index_error2='0.82', photon_index2='2.38', ts='1.03', fit_tolerance='1e-08', GAL='1.06', photon_index_error='0.00', photon_flux_upper_limit='1.62e-07', energy_flux_error2='1.99e-05', EG='0.64', time_epoch_completed='1629479258.71', return_code='0', job_id='343929', GAL2='1.06', EG2='0.64', return_code2='0', energy_flux_error='1.71e-05', photon_flux_error2='5.42e-08', ts2='1.02', photon_index='2.39' WHERE bin_id='1532' AND source_name='4FGL J0416.5-1852' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Fri Aug 20 10:07:38 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0030>
Subject: Job 343929: <4FGL_J0416.5-1852_daily_bin1532> in cluster <slac> Done

Job <4FGL_J0416.5-1852_daily_bin1532> was submitted from host <rhel6-64j> by user <kocevski> in cluster <slac> at Fri Aug 20 09:55:46 2021
Job was executed on host(s) <bullet0030>, in queue <medium>, as user <kocevski> in cluster <slac> at Fri Aug 20 09:55:48 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:55:48 2021
Terminated at Fri Aug 20 10:07:39 2021
Results reported at Fri Aug 20 10:07:39 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0416.5-1852_daily_bin1532 64.1373 -18.8724 636422401 636681601 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 :                                   633.00 sec.
    Max Memory :                                 1255 MB
    Average Memory :                             331.08 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   711 sec.
    Turnaround time :                            713 sec.

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

