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


Performing analysis on: 4FGL_J0416.5-1852_daily_bin1021
RA = 64.1373, Dec = -18.8724
tmin = 503971201, tmax = 504230401
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='341018', job_status='RUN', time_executed='2021-08-20 09:51:01.988185', time_epoch_executed='1629478261.99' WHERE source_name='4FGL J0416.5-1852' and cadence='daily' and bin_id='1021'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/341018

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/341018/ft1_4FGL_J0416.5-1852_daily_bin1021.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/341018/ft2_4FGL_J0416.5-1852_daily_bin1021.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/341018/ft1_4FGL_J0416.5-1852_daily_bin1021.fits outfile=/scratch/kocevski/341018/ft1_filteredMKT_4FGL_J0416.5-1852_daily_bin1021.fits ra=64.1373 dec=-18.8724 rad=12.0 tmin=503971201.0 tmax=504230401.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 9.02
user 3.80
sys 4.69

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/341018/ft2_4FGL_J0416.5-1852_daily_bin1021.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/341018/ft1_filteredMKT_4FGL_J0416.5-1852_daily_bin1021.fits evtable="EVENTS" outfile="/scratch/kocevski/341018/ft1_filtered_4FGL_J0416.5-1852_daily_bin1021.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 4.90
user 0.33
sys 4.54

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/341018/ft1_filtered_4FGL_J0416.5-1852_daily_bin1021.fits" evtable="EVENTS" scfile=/scratch/kocevski/341018/ft2_4FGL_J0416.5-1852_daily_bin1021.fits sctable="SC_DATA" outfile=/scratch/kocevski/341018/ltcube_503971201_504230401_4FGL_J0416.5-1852_daily_bin1021.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/341018/ft2_4FGL_J0416.5-1852_daily_bin1021.fits
.....................!
real 16.89
user 11.49
sys 5.35

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/341018/ft1_filtered_4FGL_J0416.5-1852_daily_bin1021.fits evtable="EVENTS" scfile=/scratch/kocevski/341018/ft2_4FGL_J0416.5-1852_daily_bin1021.fits sctable="SC_DATA" expcube=/scratch/kocevski/341018/ltcube_503971201_504230401_4FGL_J0416.5-1852_daily_bin1021.fits outfile=/scratch/kocevski/341018/expmap_503971201_504230401_4FGL_J0416.5-1852_daily_bin1021.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/341018/ltcube_503971201_504230401_4FGL_J0416.5-1852_daily_bin1021.fits
.....................!
real 197.27
user 186.61
sys 10.26

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/341018/ft1_filtered_4FGL_J0416.5-1852_daily_bin1021.fits scfile=/scratch/kocevski/341018/ft2_4FGL_J0416.5-1852_daily_bin1021.fits outfile=/scratch/kocevski/341018/cmap_503971201_504230401_4FGL_J0416.5-1852_daily_bin1021.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 4.98
user 0.37
sys 4.59

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/341018/ft1_filtered_4FGL_J0416.5-1852_daily_bin1021.fits scfile=/scratch/kocevski/341018/ft2_4FGL_J0416.5-1852_daily_bin1021.fits outfile=/scratch/kocevski/341018/cmap_HighResolution_503971201_504230401_4FGL_J0416.5-1852_daily_bin1021.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 4.90
user 0.38
sys 4.47

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/341018/ft1_filtered_4FGL_J0416.5-1852_daily_bin1021.fits evtable="EVENTS" scfile=/scratch/kocevski/341018/ft2_4FGL_J0416.5-1852_daily_bin1021.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/341018/Model_4FGL_J0416.5-1852_daily_bin1021.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/341018/ft1_filtered_4FGL_J0416.5-1852_daily_bin1021.fits......................!
real 99.77
user 92.46
sys 7.04

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10008E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    2.2847       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10008E-03   1.0000         .10000E-03   10000.    
     6 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    1.0226       1.0000         .10000E-03   10000.    
    11 'norm      '    .10003E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    6.0971       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10396E-03   1.0000         .10000E-03   10000.    
    20 'norm      '    .17340       1.0000         .10000E-03   10000.    
    21 'Normalizat'    1.5154       1.0000         .10000E-01   10.000    
    22 'Prefactor '    .58349       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=   3858.034     FROM MIGRAD    STATUS=CONVERGED    478 CALLS     2002 TOTAL
                     EDM=   .31E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .8%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    27.214        .63323E-05** at limit **
   2  Prefactor     .10000E-03    17.706       -.65787E-05** at limit **
   3  Prefactor     .10000E-03    2.1205       -.44090E-07** at limit **
   4  Prefactor     2.2800        2.1967        .39848E-06   -.16763E-02
   5  Prefactor     .10000E-03    5.9301       -.41662E-06** at limit **
   6  norm          .10000E-03    .54716       -.63071E-07** at limit **
   7  Prefactor     .10000E-03    12.298       -.59415E-06** at limit **
   8  norm          .10000E-03    .77082       -.25737E-07** at limit **
   9  Prefactor     .10000E-03    25.467       -.51942E-05** at limit **
  10  Prefactor     1.0226        2.9823        .29402E-07   -.71587E-04
  11  norm          .10000E-03    12.079       -.17364E-05** at limit **
  12  Prefactor     .10000E-03    15.768        .35036E-05** at limit **
  13  Prefactor     .10000E-03    4.9592       -.32618E-08** at limit **
  14  Prefactor     6.0977        6.5362       -.13724E-07   -.28872E-04
  15  Prefactor     .10000E-03    15.587        .41932E-05** at limit **
  16  Prefactor     .10000E-03    9.8945        .48853E-06** at limit **
  17  norm          .10000E-03    73.350        .16373E-04** at limit **
  18  Prefactor     .10000E-03    3.2651       -.74903E-09** at limit **
  19  Prefactor     .10000E-03    78.606       -.18505E-04** at limit **
  20  norm          .17321        .21007        .14536E-07    .18982E-03
  21  Normalizat    1.5153        .22686        .22353E-06    .38514E-04
  22  Prefactor     .58351        .15987       -.23963E-06    .43898E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 2.27997
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 1.02265
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 6.09773
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.173206
  Normalizat = 1.51531
  Prefactor  = 0.583514
 **********
 **   18 **HESSE 
 **********

 FCN=   3858.034     FROM HESSE     STATUS=OK           332 CALLS     2334 TOTAL
                     EDM=   .49E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    27.363        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    17.721        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    2.2010        .17652E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     2.2800        6.3241        .12075E-02   -1.5406    
   5  Prefactor     .10000E-03    6.1060        .29536E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          .10000E-03    .56629        .89680E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    12.305        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          .10000E-03    .78103        .53138E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    25.575        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     1.0226        2.9055        .17357E-03   -1.5506    
  11  norm          .10000E-03    12.144        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    15.790        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    5.0006        .13506E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     6.0977        6.5562        .15413E-03   -1.5214    
  15  Prefactor     .10000E-03    15.630        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    9.9169        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          .10000E-03    73.421        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    3.2882        .10959E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    78.899        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  norm          .17321        .20033        .30066E-03   -1.5625    
  21  Normalizat    1.5153        .26916        .22283E-03   -.77349    
  22  Prefactor     .58351        .18531        .24634E-03   -1.0828    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.86899e-09
Minuit parameter uncertainties:
  1  3.85364e-05
  2  5.07355e-05
  3  2.52483e-08
  4  6.326
  5  1.78886e-06
  6  1.36186e-07
  7  2.51124e-06
  8  1.5381e-07
  9  3.83215e-05
  10  2.90587
  11  1.01432e-05
  12  2.41496e-05
  13  3.84729e-07
  14  6.55701
  15  2.62432e-05
  16  2.10249e-06
  17  0.000257502
  18  2.00786e-07
  19  0.000246767
  20  0.200333
  21  0.269417
  22  0.185499
Done.

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

Extracting fit parameters...

4FGL J0416.5-1852
   Spectrum: PowerLaw
265    Prefactor:  6.098e+00  6.557e+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:  5.835e-01  1.855e-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.515e+00  2.694e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 1.10
Ra Dec: 64.137 -18.872
Photon Index (Fixed Index): 2.39 +/- 0.00
Photon Flux (Fixed Index): 5.60e-08 +/- 6.02e-08
Energy Flux (Fixed Index): 1.85e-05 +/- 1.99e-05

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

Saving results to:
/scratch/kocevski/341018/likelihoodResults_503971201_504230401_4FGL_J0416.5-1852_daily_bin1021.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) = 3858.02096045
delta logL = 0.0130535984936

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 3858.01701333
delta logL = 0.017000721256

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    5.5703       1.0000         .10000E-03   10000.    
     2 'Index     '    2.5519       1.0000          .0000       10.000    
     3 'Normalizat'    1.5060       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .58830       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=   3858.017     FROM MIGRAD    STATUS=CONVERGED     82 CALLS      240 TOTAL
                     EDM=   .44E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     5.5691        7.2928        .14330E-03    .18680E-02
   2  Index         2.5524        .92799        .82102E-02    .33227E-03
   3  Normalizat    1.5059        .26210        .22339E-03   -.49276E-03
   4  Prefactor     .58834        .18523        .24544E-03   -.53361E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 5.56911
  Index      = 2.55238
  Normalizat = 1.50593
  Prefactor  = 0.58834
 **********
 **   18 **HESSE 
 **********

 FCN=   3858.017     FROM HESSE     STATUS=OK            23 CALLS      263 TOTAL
                     EDM=   .44E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     5.5691        6.9456        .57320E-05   -1.5236    
   2  Index         2.5524        .88298        .32841E-03   -.51154    
   3  Normalizat    1.5059        .26212        .44679E-04   -.77612    
   4  Prefactor     .58834        .18513        .49087E-04   -1.0808    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.44178e-09
Minuit parameter uncertainties:
  1  6.94663
  2  0.889133
  3  0.262358
  4  0.185322
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/341018': 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) = 3858.01701322
delta logL = 0.0170008332161

Extracting fit parameters...

4FGL J0416.5-1852
   Spectrum: PowerLaw
265    Prefactor:  5.569e+00  6.947e+00  1.000e-04  1.000e+04 ( 1.000e-12)
266        Index:  2.552e+00  8.891e-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:  5.883e-01  1.853e-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.506e+00  2.624e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 1.13
Ra Dec: 64.137 -18.872
Photon Index (Free Index): 2.55 +/- 0.89
Photon Flux (Free Index): 6.33e-08 +/- 7.49e-08
Energy Flux (Free Index): 1.74e-05 +/- 1.92e-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/341018/cmap_HighResolution_503971201_504230401_4FGL_J0416.5-1852_daily_bin1021.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.40e-02', comment='SUCCESS', photon_flux='5.60e-08', energy_flux2='1.74e-05', photon_flux_error='6.02e-08', dlogl='1.70e-02', energy_flux='1.85e-05', photon_flux2='6.33e-08', job_status='DONE', time_completed='2021-08-20 10:00:45.395734', photon_index_error2='0.89', photon_index2='2.55', ts='1.10', fit_tolerance='1e-08', GAL='0.58', photon_index_error='0.00', photon_flux_upper_limit='1.82e-07', energy_flux_error2='1.92e-05', EG='1.52', time_epoch_completed='1629478845.4', return_code='0', job_id='341018', GAL2='0.59', EG2='1.51', return_code2='0', energy_flux_error='1.99e-05', photon_flux_error2='7.49e-08', ts2='1.13', photon_index='2.39' WHERE bin_id='1021' AND source_name='4FGL J0416.5-1852' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Fri Aug 20 10:00:45 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0275>
Subject: Job 341018: <4FGL_J0416.5-1852_daily_bin1021> in cluster <slac> Done

Job <4FGL_J0416.5-1852_daily_bin1021> was submitted from host <rhel6-64k> by user <kocevski> in cluster <slac> at Fri Aug 20 09:45:42 2021
Job was executed on host(s) <bullet0275>, in queue <medium>, as user <kocevski> in cluster <slac> at Fri Aug 20 09:45:43 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Fri Aug 20 09:45:43 2021
Terminated at Fri Aug 20 10:00:46 2021
Results reported at Fri Aug 20 10:00:46 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0416.5-1852_daily_bin1021 64.1373 -18.8724 503971201 504230401 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 :                                   652.44 sec.
    Max Memory :                                 1255 MB
    Average Memory :                             254.73 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   903 sec.
    Turnaround time :                            904 sec.

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

