/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 4 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 = 7258
number of fields = 27
No RA_SUN column yet. Adding RA_SUN/DEC_SUN columns.
Done.


Performing analysis on: 4FGL_J0416.5-1852_daily_bin170
RA = 64.1373, Dec = -18.8724
tmin = 283392001, tmax = 283651201
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='335692', job_status='RUN', time_executed='2021-08-20 09:26:04.753137', time_epoch_executed='1629476764.75' WHERE source_name='4FGL J0416.5-1852' and cadence='daily' and bin_id='170'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/335692

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

Retrieving the FT1 file...

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

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

Retrieving 45 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/335692/ft1_4FGL_J0416.5-1852_daily_bin170.fits


Retrieving the FT1 file...

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

Retrieving 45 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/335692/ft2_4FGL_J0416.5-1852_daily_bin170.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/335692/ft1_4FGL_J0416.5-1852_daily_bin170.fits outfile=/scratch/kocevski/335692/ft1_filteredMKT_4FGL_J0416.5-1852_daily_bin170.fits ra=64.1373 dec=-18.8724 rad=12.0 tmin=283392001.0 tmax=283651201.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.52
user 3.35
sys 1.14

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/335692/ft1_filtered_4FGL_J0416.5-1852_daily_bin170.fits" evtable="EVENTS" scfile=/scratch/kocevski/335692/ft2_4FGL_J0416.5-1852_daily_bin170.fits sctable="SC_DATA" outfile=/scratch/kocevski/335692/ltcube_283392001_283651201_4FGL_J0416.5-1852_daily_bin170.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/335692/ft2_4FGL_J0416.5-1852_daily_bin170.fits
.....................!
real 12.90
user 11.51
sys 1.36

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/335692/ft1_filtered_4FGL_J0416.5-1852_daily_bin170.fits evtable="EVENTS" scfile=/scratch/kocevski/335692/ft2_4FGL_J0416.5-1852_daily_bin170.fits sctable="SC_DATA" expcube=/scratch/kocevski/335692/ltcube_283392001_283651201_4FGL_J0416.5-1852_daily_bin170.fits outfile=/scratch/kocevski/335692/expmap_283392001_283651201_4FGL_J0416.5-1852_daily_bin170.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/335692/ltcube_283392001_283651201_4FGL_J0416.5-1852_daily_bin170.fits
.....................!
real 191.16
user 184.92
sys 5.90

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/335692/ft1_filtered_4FGL_J0416.5-1852_daily_bin170.fits scfile=/scratch/kocevski/335692/ft2_4FGL_J0416.5-1852_daily_bin170.fits outfile=/scratch/kocevski/335692/cmap_283392001_283651201_4FGL_J0416.5-1852_daily_bin170.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.43
user 0.36
sys 1.05

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/335692/ft1_filtered_4FGL_J0416.5-1852_daily_bin170.fits scfile=/scratch/kocevski/335692/ft2_4FGL_J0416.5-1852_daily_bin170.fits outfile=/scratch/kocevski/335692/cmap_HighResolution_283392001_283651201_4FGL_J0416.5-1852_daily_bin170.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.43
user 0.38
sys 1.05

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/335692/ft1_filtered_4FGL_J0416.5-1852_daily_bin170.fits evtable="EVENTS" scfile=/scratch/kocevski/335692/ft2_4FGL_J0416.5-1852_daily_bin170.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/335692/Model_4FGL_J0416.5-1852_daily_bin170.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/335692/ft1_filtered_4FGL_J0416.5-1852_daily_bin170.fits.....................!
real 119.93
user 117.28
sys 2.41

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10020E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    3.3384       1.0000         .10000E-03   10000.    
     4 'Prefactor '    2.3683       1.0000         .10000E-03   10000.    
     5 'Prefactor '    6.2367       1.0000         .10000E-03   10000.    
     6 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    3.4140       1.0000         .10000E-03   10000.    
    11 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    5.1308       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10024E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    4.7504       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10015E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    288.37       1.0000         .10000E-03   10000.    
    18 'Prefactor '    14.927       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10324E-03   1.0000         .10000E-03   10000.    
    20 'norm      '    1.1564       1.0000         .10000E-03   10000.    
    21 'Normalizat'    1.2552       1.0000         .10000E-01   10.000    
    22 'Prefactor '    .92598       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=   5050.688     FROM MIGRAD    STATUS=CONVERGED    480 CALLS     2349 TOTAL
                     EDM=   .51E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .3%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    21.447        .14053E-04** at limit **
   2  Prefactor     .10000E-03    56.423        .53127E-04** at limit **
   3  Prefactor     3.3389        3.0272        .24915E-07   -.34256E-03
   4  Prefactor     2.3674        7.1284       -.22569E-05   -.64002E-03
   5  Prefactor     6.2389        6.4826       -.90741E-07   -.16781E-03
   6  norm          .10000E-03    .50745        .53238E-08** at limit **
   7  Prefactor     .10000E-03    33.329       -.98464E-05** at limit **
   8  norm          .10000E-03    .80416        .54193E-07** at limit **
   9  Prefactor     .10000E-03    15.709       -.23923E-05** at limit **
  10  Prefactor     3.4142        3.3022       -.16892E-06   -.25798E-03
  11  norm          .10000E-03    4.5203        .57980E-06** at limit **
  12  Prefactor     5.1343        19.445       -.19812E-06   -.29542E-04
  13  Prefactor     .10000E-03    8.2632        .29055E-06** at limit **
  14  Prefactor     4.7510        4.8493        .52269E-06   -.14558E-03
  15  Prefactor     .10000E-03    6.5045       -.42460E-06** at limit **
  16  Prefactor     .10000E-03    28.510       -.18920E-04** at limit **
  17  norm          288.36        276.98       -.26255E-05    .15929E-06
  18  Prefactor     14.926        8.2629       -.72935E-08    .14518E-03
  19  Prefactor     .10000E-03    85.343       -.58362E-04** at limit **
  20  norm          1.1563        .32372        .18704E-07    .20021E-02
  21  Normalizat    1.2550        .23445        .54829E-06    .12379E-03
  22  Prefactor     .92610        .16678       -.10619E-06    .15879E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 3.33887
  Prefactor  = 2.36739
  Prefactor  = 6.23889
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 3.41417
  norm       = 0.0001
  Prefactor  = 5.13435
  Prefactor  = 0.0001
  Prefactor  = 4.75104
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 288.364
  Prefactor  = 14.9258
  Prefactor  = 0.0001
  norm       = 1.15629
  Normalizat = 1.25504
  Prefactor  = 0.926103
 **********
 **   18 **HESSE 
 **********

 FCN=   5050.688     FROM HESSE     STATUS=OK           332 CALLS     2681 TOTAL
                     EDM=   .97E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    21.493        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    56.289        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     3.3389        3.0131        .11153E-03   -1.5342    
   4  Prefactor     2.3674        7.0242        .26626E-03   -1.5400    
   5  Prefactor     6.2389        6.3492        .15281E-03   -1.5208    
   6  norm          .10000E-03    .52184        .98439E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    33.498        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          .10000E-03    .82650        .12409E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    15.755        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     3.4142        3.2957        .12113E-03   -1.5338    
  11  norm          .10000E-03    4.5214        .14757E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     5.1343        19.457        .17749E-03   -1.5255    
  13  Prefactor     .10000E-03    8.3820        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     4.7510        4.8565        .15036E-03   -1.5272    
  15  Prefactor     .10000E-03    6.5123        .17702E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    28.650        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          288.36        277.07        .11951E-03   -1.2295    
  18  Prefactor     14.926        8.2653        .10367E-03   -1.4935    
  19  Prefactor     .10000E-03    85.359        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  norm          1.1563        .32435        .20524E-04   -1.5493    
  21  Normalizat    1.2550        .27635        .27774E-03   -.84919    
  22  Prefactor     .92610        .19574        .23691E-03   -.95235    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 9.74439e-10
Minuit parameter uncertainties:
  1  3.55752e-05
  2  0.00011552
  3  3.01328
  4  7.02669
  5  6.34984
  6  5.2516e-06
  7  4.82752e-07
  8  8.56979e-07
  9  1.00388e-06
  10  3.29591
  11  1.61437e-06
  12  19.4813
  13  6.92541e-06
  14  4.85689
  15  1.37725e-07
  16  5.47431e-05
  17  278.351
  18  8.26596
  19  0.000151903
  20  0.324349
  21  0.276672
  22  0.19589
Done.

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

Extracting fit parameters...

4FGL J0416.5-1852
   Spectrum: PowerLaw
265    Prefactor:  4.751e+00  4.857e+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:  9.261e-01  1.959e-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.255e+00  2.767e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 1.62
Ra Dec: 64.137 -18.872
Photon Index (Fixed Index): 2.39 +/- 0.00
Photon Flux (Fixed Index): 4.37e-08 +/- 4.46e-08
Energy Flux (Fixed Index): 1.44e-05 +/- 1.47e-05

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

Saving results to:
/scratch/kocevski/335692/likelihoodResults_283392001_283651201_4FGL_J0416.5-1852_daily_bin170.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) = 5050.35557533
delta logL = 0.33222353841

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5050.35469855
delta logL = 0.333100311556

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    3.0246       1.0000         .10000E-03   10000.    
     2 'Index     '    3.1481       1.0000          .0000       10.000    
     3 'Normalizat'    1.2062       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .94932       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=   5050.355     FROM MIGRAD    STATUS=CONVERGED     86 CALLS      275 TOTAL
                     EDM=   .92E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     3.0243        5.0635        .93010E-04    .54515E-04
   2  Index         3.1485        1.1667        .67185E-02    .38225E-03
   3  Normalizat    1.2062        .26868        .28241E-03   -.12069E-03
   4  Prefactor     .94937        .19662        .23436E-03   -.14965E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 3.02427
  Index      = 3.1485
  Normalizat = 1.20616
  Prefactor  = 0.949367
 **********
 **   18 **HESSE 
 **********

 FCN=   5050.355     FROM HESSE     STATUS=OK            25 CALLS      300 TOTAL
                     EDM=   .56E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     3.0243        4.3280        .37204E-05   -1.5360    
   2  Index         3.1485        .99911        .13437E-02   -.37933    
   3  Normalizat    1.2062        .26842        .11296E-04   -.86413    
   4  Prefactor     .94937        .19642        .46872E-04   -.94437    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.60789e-11
Minuit parameter uncertainties:
  1  4.32849
  2  1.00698
  3  0.268727
  4  0.196564
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/335692': 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) = 5050.35469819
delta logL = 0.333100678718

Extracting fit parameters...

4FGL J0416.5-1852
   Spectrum: PowerLaw
265    Prefactor:  3.024e+00  4.328e+00  1.000e-04  1.000e+04 ( 1.000e-12)
266        Index:  3.149e+00  1.007e+00  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:  9.494e-01  1.966e-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.206e+00  2.687e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 2.34
Ra Dec: 64.137 -18.872
Photon Index (Free Index): 3.15 +/- 1.01
Photon Flux (Free Index): 8.32e-08 +/- 7.39e-08
Energy Flux (Free Index): 1.55e-05 +/- 1.25e-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/335692/cmap_HighResolution_283392001_283651201_4FGL_J0416.5-1852_daily_bin170.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.14e-02', comment='SUCCESS', photon_flux='4.37e-08', energy_flux2='1.55e-05', photon_flux_error='4.46e-08', dlogl='3.33e-01', energy_flux='1.44e-05', photon_flux2='8.32e-08', job_status='DONE', time_completed='2021-08-20 09:36:18.201184', photon_index_error2='1.01', photon_index2='3.15', ts='1.62', fit_tolerance='1e-08', GAL='0.93', photon_index_error='0.00', photon_flux_upper_limit='1.48e-07', energy_flux_error2='1.25e-05', EG='1.26', time_epoch_completed='1629477378.2', return_code='0', job_id='335692', GAL2='0.95', EG2='1.21', return_code2='0', energy_flux_error='1.47e-05', photon_flux_error2='7.39e-08', ts2='2.34', photon_index='2.39' WHERE bin_id='170' AND source_name='4FGL J0416.5-1852' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Fri Aug 20 09:36:18 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0077>
Subject: Job 335692: <4FGL_J0416.5-1852_daily_bin170> in cluster <slac> Done

Job <4FGL_J0416.5-1852_daily_bin170> was submitted from host <rhel6-64p> by user <kocevski> in cluster <slac> at Fri Aug 20 09:25:36 2021
Job was executed on host(s) <bullet0077>, in queue <medium>, as user <kocevski> in cluster <slac> at Fri Aug 20 09:25:37 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:25:37 2021
Terminated at Fri Aug 20 09:36:19 2021
Results reported at Fri Aug 20 09:36:19 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0416.5-1852_daily_bin170 64.1373 -18.8724 283392001 283651201 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 :                                   627.00 sec.
    Max Memory :                                 1093 MB
    Average Memory :                             325.14 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   641 sec.
    Turnaround time :                            643 sec.

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

