/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 18 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_bin1052
RA = 64.1373, Dec = -18.8724
tmin = 512006401, tmax = 512265601
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='341064', job_status='RUN', time_executed='2021-08-20 09:46:12.255194', time_epoch_executed='1629477972.26' WHERE source_name='4FGL J0416.5-1852' and cadence='daily' and bin_id='1052'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/341064

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/341064/ft1_4FGL_J0416.5-1852_daily_bin1052.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/341064/ft2_4FGL_J0416.5-1852_daily_bin1052.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/341064/ft1_4FGL_J0416.5-1852_daily_bin1052.fits outfile=/scratch/kocevski/341064/ft1_filteredMKT_4FGL_J0416.5-1852_daily_bin1052.fits ra=64.1373 dec=-18.8724 rad=12.0 tmin=512006401.0 tmax=512265601.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.47
user 3.26
sys 0.20

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/341064/ft2_4FGL_J0416.5-1852_daily_bin1052.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/341064/ft1_filteredMKT_4FGL_J0416.5-1852_daily_bin1052.fits evtable="EVENTS" outfile="/scratch/kocevski/341064/ft1_filtered_4FGL_J0416.5-1852_daily_bin1052.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.48
user 0.32
sys 0.16

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/341064/ft1_filtered_4FGL_J0416.5-1852_daily_bin1052.fits" evtable="EVENTS" scfile=/scratch/kocevski/341064/ft2_4FGL_J0416.5-1852_daily_bin1052.fits sctable="SC_DATA" outfile=/scratch/kocevski/341064/ltcube_512006401_512265601_4FGL_J0416.5-1852_daily_bin1052.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/341064/ft2_4FGL_J0416.5-1852_daily_bin1052.fits
.....................!
real 11.84
user 11.51
sys 0.29

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/341064/ft1_filtered_4FGL_J0416.5-1852_daily_bin1052.fits evtable="EVENTS" scfile=/scratch/kocevski/341064/ft2_4FGL_J0416.5-1852_daily_bin1052.fits sctable="SC_DATA" expcube=/scratch/kocevski/341064/ltcube_512006401_512265601_4FGL_J0416.5-1852_daily_bin1052.fits outfile=/scratch/kocevski/341064/expmap_512006401_512265601_4FGL_J0416.5-1852_daily_bin1052.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/341064/ltcube_512006401_512265601_4FGL_J0416.5-1852_daily_bin1052.fits
.....................!
real 190.80
user 185.82
sys 4.65

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/341064/ft1_filtered_4FGL_J0416.5-1852_daily_bin1052.fits scfile=/scratch/kocevski/341064/ft2_4FGL_J0416.5-1852_daily_bin1052.fits outfile=/scratch/kocevski/341064/cmap_512006401_512265601_4FGL_J0416.5-1852_daily_bin1052.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.54
user 0.36
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/341064/ft1_filtered_4FGL_J0416.5-1852_daily_bin1052.fits scfile=/scratch/kocevski/341064/ft2_4FGL_J0416.5-1852_daily_bin1052.fits outfile=/scratch/kocevski/341064/cmap_HighResolution_512006401_512265601_4FGL_J0416.5-1852_daily_bin1052.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.55
user 0.38
sys 0.15

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/341064/ft1_filtered_4FGL_J0416.5-1852_daily_bin1052.fits evtable="EVENTS" scfile=/scratch/kocevski/341064/ft2_4FGL_J0416.5-1852_daily_bin1052.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/341064/Model_4FGL_J0416.5-1852_daily_bin1052.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/341064/ft1_filtered_4FGL_J0416.5-1852_daily_bin1052.fits.....................!
real 110.85
user 109.46
sys 1.13

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    19.317       1.0000         .10000E-03   10000.    
     2 'Prefactor '    72.479       1.0000         .10000E-03   10000.    
     3 'Prefactor '    2.9422       1.0000         .10000E-03   10000.    
     4 'Prefactor '    10.205       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     6 'norm      '    .52186       1.0000         .10000E-03   10000.    
     7 'Prefactor '    5.6916       1.0000         .10000E-03   10000.    
     8 'norm      '    .82800E-01   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10015E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    1.9638       1.0000         .10000E-03   10000.    
    11 'norm      '    .15863E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    4.7868       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10008E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    16.931       1.0000         .10000E-03   10000.    
    16 'Prefactor '    7.5284       1.0000         .10000E-03   10000.    
    17 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    79.166       1.0000         .10000E-03   10000.    
    20 'norm      '    .37428       1.0000         .10000E-03   10000.    
    21 'Normalizat'    .96166       1.0000         .10000E-01   10.000    
    22 'Prefactor '    .99452       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=   4810.985     FROM MIGRAD    STATUS=CONVERGED    476 CALLS     2372 TOTAL
                     EDM=   .72E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .8%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     19.312        27.346       -.83861E-07   -.16615E-05
   2  Prefactor     72.472        64.146       -.23420E-07   -.23010E-05
   3  Prefactor     2.9432        2.3995        .10367E-07    .64788E-04
   4  Prefactor     10.204        6.0006        .80955E-07    .15901E-03
   5  Prefactor     .10000E-03    1.1594       -.13672E-06** at limit **
   6  norm          .52319        .89166       -.34882E-06   -.64128E-03
   7  Prefactor     5.6875        32.039        .32565E-06   -.16940E-05
   8  norm          .75436E-01    .99450       -.77018E-07    .17863E-03
   9  Prefactor     .10000E-03    9.5951        .37195E-07** at limit **
  10  Prefactor     1.9662        3.5447       -.53786E-08    .36949E-04
  11  norm          .10000E-03    25.199       -.67204E-05** at limit **
  12  Prefactor     4.7173        48.995        .79065E-06    .58596E-05
  13  Prefactor     .10000E-03    3.3035        .21114E-06** at limit **
  14  Prefactor     .10000E-03    3.3888        .15363E-06** at limit **
  15  Prefactor     16.927        27.038       -.25026E-06   -.40610E-05
  16  Prefactor     7.5155        22.650        .23739E-06   -.11357E-04
  17  norm          .10000E-03    67.588        .10962E-06** at limit **
  18  Prefactor     .10000E-03    2.2021        .69501E-07** at limit **
  19  Prefactor     79.162        65.367       -.20732E-06   -.34364E-06
  20  norm          .37427        .20472       -.55779E-08    .15839E-05
  21  Normalizat    .96150        .23172        .13481E-05    .10632E-04
  22  Prefactor     .99473        .16721       -.11308E-05    .11370E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 19.3119
  Prefactor  = 72.4722
  Prefactor  = 2.94315
  Prefactor  = 10.2035
  Prefactor  = 0.0001
  norm       = 0.523191
  Prefactor  = 5.68751
  norm       = 0.0754359
  Prefactor  = 0.0001
  Prefactor  = 1.96617
  norm       = 0.0001
  Prefactor  = 4.71732
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 16.9271
  Prefactor  = 7.51548
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 79.1616
  norm       = 0.374273
  Normalizat = 0.961498
  Prefactor  = 0.994725
 **********
 **   18 **HESSE 
 **********

 FCN=   4810.985     FROM HESSE     STATUS=OK           348 CALLS     2720 TOTAL
                     EDM=   .26E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     19.312        27.342        .91128E-04   -1.4829    
   2  Prefactor     72.472        64.054        .47157E-04   -1.4003    
   3  Prefactor     2.9432        2.3866        .91507E-04   -1.5365    
   4  Prefactor     10.204        5.9353        .12028E-03   -1.5069    
   5  Prefactor     .10000E-03    1.1603        .72903E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          .52319        .80007        .83552E-03   -1.5563    
   7  Prefactor     5.6875        31.920        .16837E-03   -1.5231    
   8  norm          .75436E-01    6.1902        .12566E-02   -1.5653    
   9  Prefactor     .10000E-03    9.5995        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     1.9662        3.4966        .16070E-03   -1.5428    
  11  norm          .10000E-03    24.297        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     4.7173        49.370        .18389E-03   -1.5274    
  13  Prefactor     .10000E-03    3.3128        .12307E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    3.4231        .12454E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     16.927        27.070        .97336E-04   -1.4885    
  16  Prefactor     7.5155        22.697        .14616E-03   -1.5160    
  17  norm          .10000E-03    67.589        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    2.2073        .10052E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     79.162        65.368        .45136E-04   -1.3926    
  20  norm          .37427        .20459        .22072E-04   -1.5586    
  21  Normalizat    .96150        .26299        .28469E-03   -.94332    
  22  Prefactor     .99473        .19095        .21401E-03   -.92906    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.61744e-10
Minuit parameter uncertainties:
  1  27.3595
  2  64.1149
  3  2.3867
  4  5.93564
  5  3.99146e-07
  6  0.800088
  7  26.9697
  8  1.36594
  9  8.46323e-07
  10  3.49693
  11  0.000112184
  12  30.5538
  13  1.14641e-06
  14  1.81515e-06
  15  27.0893
  16  22.7235
  17  8.55551e-05
  18  4.38938e-07
  19  65.4278
  20  0.204588
  21  0.263341
  22  0.191081
Done.

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

Extracting fit parameters...

4FGL J0416.5-1852
   Spectrum: PowerLaw
265    Prefactor:  1.000e-04  1.815e-06  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.947e-01  1.911e-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:  9.615e-01  2.633e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): -0.00
Ra Dec: 64.137 -18.872
Photon Flux Upper Limit: 1.04e-07 ph cm-2 s-1
Energy Flux Upper Limit: 8.04e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/341064/likelihoodResults_512006401_512265601_4FGL_J0416.5-1852_daily_bin1052.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): 102
logL (Free Index) = 4810.98604097
delta logL = -0.00139312126794

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 4810.98464855
delta logL = -7.01396857039e-07

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10290E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.4077       1.0000          .0000       10.000    
     3 'Normalizat'    .96133       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .99489       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=   4810.985     FROM MIGRAD    STATUS=CONVERGED    105 CALLS      253 TOTAL
                     EDM=   .19E-11    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    .21725        .37294E-01** at limit **
   2  Index         2.9001        6.3178        .50000        .75192E-07
   3  Normalizat    .96150        .17477E-02    .28469E-03   -.12407E-02
   4  Prefactor     .99472        .13410E-02    .21401E-03   -.17113E-02
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Index      = 2.90006
  Normalizat = 0.961495
  Prefactor  = 0.994721
 **********
 **   18 **HESSE 
 **********

 FCN=   4810.985     FROM HESSE     STATUS=NOT POSDEF    31 CALLS      284 TOTAL
                     EDM=   .26E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    34.430        .19887E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.9001        6.8713        .50000       -.43343    
   3  Normalizat    .96150        .16367E-01    .56937E-04   -.94332    
   4  Prefactor     .99472        .12559E-01    .42802E-04   -.92906    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 2.59081e-10
Minuit parameter uncertainties:
  1  0.000132624
  2  241.895
  3  0.0163667
  4  0.0125589
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/341064': 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): 102
logL (Free Index) = 4810.98464581
delta logL = 2.03287345357e-06

Extracting fit parameters...

4FGL J0416.5-1852
   Spectrum: PowerLaw
265    Prefactor:  1.000e-04  1.326e-04  1.000e-04  1.000e+04 ( 1.000e-12)
266        Index:  2.900e+00  2.419e+02  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.947e-01  1.256e-02  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:  9.615e-01  1.637e-02  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
Ra Dec: 64.137 -18.872

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/341064/cmap_HighResolution_512006401_512265601_4FGL_J0416.5-1852_daily_bin1052.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='8.04e-03', job_status='DONE', photon_flux_upper_limit='1.04e-07', time_completed='2021-08-20 09:55:50.366689', job_id='341064', GAL2='0.99', fit_tolerance='1e-08', EG2='0.96', EG='0.96', time_epoch_completed='1629478550.37', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.99', dlogl='2.03e-06', ts2='-0.00', photon_index_error='0.00', photon_index='2.39' WHERE bin_id='1052' AND source_name='4FGL J0416.5-1852' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Fri Aug 20 09:55:50 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0256>
Subject: Job 341064: <4FGL_J0416.5-1852_daily_bin1052> in cluster <slac> Done

Job <4FGL_J0416.5-1852_daily_bin1052> was submitted from host <rhel6-64k> by user <kocevski> in cluster <slac> at Fri Aug 20 09:45:44 2021
Job was executed on host(s) <bullet0256>, in queue <medium>, as user <kocevski> in cluster <slac> at Fri Aug 20 09:45:46 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:46 2021
Terminated at Fri Aug 20 09:55:50 2021
Results reported at Fri Aug 20 09:55:50 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0416.5-1852_daily_bin1052 64.1373 -18.8724 512006401 512265601 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 :                                   577.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             363.18 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   604 sec.
    Turnaround time :                            606 sec.

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

