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


Performing analysis on: 4FGL_J0420.0+0805_daily_bin258
RA = 65.0086, Dec = 8.0999
tmin = 306201601, tmax = 306460801
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='372489', job_status='RUN', time_executed='2021-08-20 11:39:29.344129', time_epoch_executed='1629484769.34' WHERE source_name='4FGL J0420.0+0805' and cadence='daily' and bin_id='258'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/372489

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/372489/ft1_4FGL_J0420.0+0805_daily_bin258.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/372489/ft2_4FGL_J0420.0+0805_daily_bin258.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/372489/ft1_4FGL_J0420.0+0805_daily_bin258.fits outfile=/scratch/kocevski/372489/ft1_filteredMKT_4FGL_J0420.0+0805_daily_bin258.fits ra=65.0086 dec=8.0999 rad=12.0 tmin=306201601.0 tmax=306460801.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 2.71
user 2.49
sys 0.20

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/372489/ft2_4FGL_J0420.0+0805_daily_bin258.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/372489/ft2_4FGL_J0420.0+0805_daily_bin258.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/372489/ft1_filteredMKT_4FGL_J0420.0+0805_daily_bin258.fits evtable="EVENTS" outfile="/scratch/kocevski/372489/ft1_filtered_4FGL_J0420.0+0805_daily_bin258.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.41
user 0.26
sys 0.15

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/372489/ft1_filtered_4FGL_J0420.0+0805_daily_bin258.fits" evtable="EVENTS" scfile=/scratch/kocevski/372489/ft2_4FGL_J0420.0+0805_daily_bin258.fits sctable="SC_DATA" outfile=/scratch/kocevski/372489/ltcube_306201601_306460801_4FGL_J0420.0+0805_daily_bin258.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/372489/ft2_4FGL_J0420.0+0805_daily_bin258.fits
.....................!
real 9.18
user 8.88
sys 0.27

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/372489/ft1_filtered_4FGL_J0420.0+0805_daily_bin258.fits evtable="EVENTS" scfile=/scratch/kocevski/372489/ft2_4FGL_J0420.0+0805_daily_bin258.fits sctable="SC_DATA" expcube=/scratch/kocevski/372489/ltcube_306201601_306460801_4FGL_J0420.0+0805_daily_bin258.fits outfile=/scratch/kocevski/372489/expmap_306201601_306460801_4FGL_J0420.0+0805_daily_bin258.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/372489/ltcube_306201601_306460801_4FGL_J0420.0+0805_daily_bin258.fits
.....................!
real 145.80
user 141.45
sys 4.08

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
Added 144 point sources and 0 extended sources

Setting source of interest to:
4FGL J0420.0+0805 @ 65.0086 8.0999

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/372489/ft1_filtered_4FGL_J0420.0+0805_daily_bin258.fits scfile=/scratch/kocevski/372489/ft2_4FGL_J0420.0+0805_daily_bin258.fits outfile=/scratch/kocevski/372489/cmap_306201601_306460801_4FGL_J0420.0+0805_daily_bin258.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=65.0086 yref=8.0999 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.45
user 0.30
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/372489/ft1_filtered_4FGL_J0420.0+0805_daily_bin258.fits scfile=/scratch/kocevski/372489/ft2_4FGL_J0420.0+0805_daily_bin258.fits outfile=/scratch/kocevski/372489/cmap_HighResolution_306201601_306460801_4FGL_J0420.0+0805_daily_bin258.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=65.0086 yref=8.0999 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.45
user 0.30
sys 0.15

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/372489/ft1_filtered_4FGL_J0420.0+0805_daily_bin258.fits evtable="EVENTS" scfile=/scratch/kocevski/372489/ft2_4FGL_J0420.0+0805_daily_bin258.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/372489/Model_4FGL_J0420.0+0805_daily_bin258.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 GAL_V02
Working on...
/scratch/kocevski/372489/ft1_filtered_4FGL_J0420.0+0805_daily_bin258.fits.....................!
real 112.55
user 111.32
sys 1.03

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/372489/ft1_filtered_4FGL_J0420.0+0805_daily_bin258.fits', '/scratch/kocevski/372489/ft2_4FGL_J0420.0+0805_daily_bin258.fits', expMap='/scratch/kocevski/372489/expmap_306201601_306460801_4FGL_J0420.0+0805_daily_bin258.fits', expCube='/scratch/kocevski/372489/ltcube_306201601_306460801_4FGL_J0420.0+0805_daily_bin258.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/372489/Model_4FGL_J0420.0+0805_daily_bin258.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J0420.0+0805'

4FGL J0420.0+0805
   Spectrum: PowerLaw
192    Prefactor:  2.735e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-13)
193        Index:  2.543e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
194        Scale:  9.789e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/372489/ft1_filtered_4FGL_J0420.0+0805_daily_bin258.fits
Spacecraft file(s): /scratch/kocevski/372489/ft2_4FGL_J0420.0+0805_daily_bin258.fits
Exposure map: /scratch/kocevski/372489/expmap_306201601_306460801_4FGL_J0420.0+0805_daily_bin258.fits
Exposure cube: /scratch/kocevski/372489/ltcube_306201601_306460801_4FGL_J0420.0+0805_daily_bin258.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/372489/Model_4FGL_J0420.0+0805_daily_bin258.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) = 10740.8061706

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    42.868       1.0000         .10000E-03   10000.    
     3 'Prefactor '    25.102       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .11591E-03   1.0000         .10000E-03   10000.    
     5 'norm      '    3.0736       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10008E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10014E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    .10034E-03   1.0000         .10000E-03   10000.    
     9 'norm      '    1.6500       1.0000         .10000E-03   10000.    
    10 'Prefactor '    1.5801       1.0000         .10000E-03   10000.    
    11 'Prefactor '    6.2015       1.0000         .10000E-03   10000.    
    12 'Prefactor '    8.6487       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    14 'norm      '    .10025E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10037E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    1.7702       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    18 'norm      '    2.8086       1.0000         .10000E-03   10000.    
    19 'Prefactor '    8.0124       1.0000         .10000E-03   10000.    
    20 'Prefactor '    6.5416       1.0000         .10000E-03   10000.    
    21 'Prefactor '    10.289       1.0000         .10000E-03   10000.    
    22 'norm      '    .99215       1.0000         .10000E-03   10000.    
    23 'Normalizat'    .81932       1.0000         .10000E-01   10.000    
    24 'Prefactor '    1.0654       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .4760E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   10740.78     FROM MIGRAD    STATUS=CONVERGED    559 CALLS     2817 TOTAL
                     EDM=   .16E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .9%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    1.7739        .17837E-08** at limit **
   2  Prefactor     42.858        48.167       -.10258E-06   -.28196E-04
   3  Prefactor     25.102        15.398       -.19849E-07    .97353E-05
   4  Prefactor     .10000E-03    137.50        .16897E-05** at limit **
   5  norm          3.0732        5.2771        .51889E-06   -.88744E-04
   6  Prefactor     .10000E-03    9.4885       -.46091E-07** at limit **
   7  Prefactor     .10000E-03    66.788        .43733E-07** at limit **
   8  norm          .10000E-03    12.679       -.61721E-07** at limit **
   9  norm          1.6498        1.5325       -.31041E-07   -.67525E-04
  10  Prefactor     1.5828        2.5406       -.25420E-06   -.55455E-04
  11  Prefactor     6.1928        18.355        .63011E-05   -.17172E-04
  12  Prefactor     8.5943        80.429        .10000E-05   -.76942E-04
  13  Prefactor     .10000E-03    2.4999        .22285E-07** at limit **
  14  norm          .10000E-03    1.0716       -.74391E-06** at limit **
  15  Prefactor     .10000E-03    43.739        .50327E-07** at limit **
  16  norm          1.7703        2.2467        .18697E-06   -.99088E-04
  17  Prefactor     .10000E-03    4.0280        .37293E-08** at limit **
  18  norm          2.8086        2.0863        .11182E-06   -.70483E-04
  19  Prefactor     8.0110        24.192        .19008E-07    .43416E-05
  20  Prefactor     6.5425        23.836        .89510E-07    .60473E-06
  21  Prefactor     10.289        9.0164        .24962E-07   -.29792E-04
  22  norm          .99214        .69843        .16765E-07   -.48060E-04
  23  Normalizat    .81935        .27103        .17563E-06    .56901E-04
  24  Prefactor     1.0654        .68776E-01   -.22487E-06    .31399E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  Prefactor  = 42.858
  Prefactor  = 25.1023
  Prefactor  = 0.0001
  norm       = 3.07317
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 1.64977
  Prefactor  = 1.58278
  Prefactor  = 6.19279
  Prefactor  = 8.59425
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 1.77025
  Prefactor  = 0.0001
  norm       = 2.8086
  Prefactor  = 8.01096
  Prefactor  = 6.54247
  Prefactor  = 10.2889
  norm       = 0.992141
  Normalizat = 0.819353
  Prefactor  = 1.06542
 **********
 **   18 **HESSE 
 **********

 FCN=   10740.78     FROM HESSE     STATUS=OK           405 CALLS     3222 TOTAL
                     EDM=   .52E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    1.7760        .13481E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     42.858        48.156        .61229E-04   -1.4398    
   3  Prefactor     25.102        15.387        .79954E-04   -1.4706    
   4  Prefactor     .10000E-03    140.72        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          3.0732        5.2190        .23137E-03   -1.5357    
   6  Prefactor     .10000E-03    9.5068        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    67.079        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          .10000E-03    12.701        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          1.6498        1.4828        .10223E-03   -1.5451    
  10  Prefactor     1.5828        2.4249        .16033E-03   -1.5456    
  11  Prefactor     6.1928        18.733        .80602E-03   -1.5210    
  12  Prefactor     8.5943        75.398        .13630E-03   -1.5122    
  13  Prefactor     .10000E-03    2.5030        .16002E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          .10000E-03    1.9109        .20809E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    43.853        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          1.7703        2.2249        .16411E-03   -1.5442    
  17  Prefactor     .10000E-03    4.0651        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          2.8086        2.0734        .12184E-03   -1.5373    
  19  Prefactor     8.0110        24.065        .14165E-03   -1.5142    
  20  Prefactor     6.5425        23.759        .15691E-03   -1.5196    
  21  Prefactor     10.289        9.0123        .12492E-03   -1.5066    
  22  norm          .99214        .67863        .66821E-03   -1.5509    
  23  Normalizat    .81935        .28663        .54838E-03   -.99355    
  24  Prefactor     1.0654        .73908E-01    .13884E-03   -.90580    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.24199e-10
Minuit parameter uncertainties:
  1  1.87351e-07
  2  48.1993
  3  15.3891
  4  7.73596e-06
  5  5.21975
  6  1.39616e-05
  7  4.90116e-05
  8  2.22038e-05
  9  1.48278
  10  2.42509
  11  18.7504
  12  50.9973
  13  3.33282e-08
  14  4.27335e-05
  15  1.66142e-05
  16  2.22497
  17  7.84815e-06
  18  2.07343
  19  24.0943
  20  23.7929
  21  9.01349
  22  0.678638
  23  0.287159
  24  0.0739146
Done.

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

Extracting fit parameters...

4FGL J0420.0+0805
   Spectrum: PowerLaw
192    Prefactor:  1.000e-04  1.396e-05  1.000e-04  1.000e+04 ( 1.000e-13)
193        Index:  2.543e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
194        Scale:  9.789e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
473    Prefactor:  1.065e+00  7.391e-02  0.000e+00  1.000e+01 ( 1.000e+00)
474        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
475        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
472   Normalization:  8.194e-01  2.872e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): -0.00
Ra Dec: 65.009 8.100
Photon Flux Upper Limit: 8.32e-08 ph cm-2 s-1
Energy Flux Upper Limit: 6.49e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/372489/likelihoodResults_306201601_306460801_4FGL_J0420.0+0805_daily_bin258.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) = 10740.7827129
delta logL = -0.000501332908243

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 10740.7822115
delta logL = 2.4714609026e-08

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 'Index     '    2.5298       1.0000          .0000       10.000    
     3 'Normalizat'    .81932       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0654       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .4760E+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=   10740.78     FROM MIGRAD    STATUS=CONVERGED     91 CALLS      248 TOTAL
                     EDM=   .50E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10148E-03    155.46        .18142E-02** at limit **
   2  Index         2.4515        7.6718        .50000        .96281E-05
   3  Normalizat    .81935        .26471E-01    .54838E-03   -.27366E-05
   4  Prefactor     1.0654        .76195E-02    .13884E-03   -.17359E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000101482
  Index      = 2.4515
  Normalizat = 0.819353
  Prefactor  = 1.06542
 **********
 **   18 **HESSE 
 **********

 FCN=   10740.78     FROM HESSE     STATUS=NOT POSDEF    29 CALLS      277 TOTAL
                     EDM=   .23E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10148E-03    632.86        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.4515        6.6588        .50000       -.53484    
   3  Normalizat    .81935        .57209E-01    .21935E-04   -.99355    
   4  Prefactor     1.0654        .16467E-01    .55537E-05   -.90580    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 2.31507e-08
Minuit parameter uncertainties:
  1  0.0619188
  2  1402.53
  3  0.0572128
  4  0.0164667
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/372489': 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) = 10740.7822114
delta logL = 1.5641853679e-07

Extracting fit parameters...

4FGL J0420.0+0805
   Spectrum: PowerLaw
192    Prefactor:  1.015e-04  6.192e-02  1.000e-04  1.000e+04 ( 1.000e-13)
193        Index:  2.452e+00  1.403e+03  0.000e+00  1.000e+01 (-1.000e+00)
194        Scale:  9.789e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
473    Prefactor:  1.065e+00  1.647e-02  0.000e+00  1.000e+01 ( 1.000e+00)
474        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
475        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
472   Normalization:  8.194e-01  5.721e-02  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
Ra Dec: 65.009 8.100

Creating a high resolution counts map...
INFO: Auto-setting vmin to -1.000e-01 [aplpy.core]
INFO: Auto-setting vmax to  1.110e+00 [aplpy.core]
Saving /scratch/kocevski/372489/cmap_HighResolution_306201601_306460801_4FGL_J0420.0+0805_daily_bin258.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='6.49e-03', job_status='DONE', photon_flux_upper_limit='8.32e-08', time_completed='2021-08-20 11:51:14.703682', job_id='372489', GAL2='1.07', fit_tolerance='1e-08', EG2='0.82', EG='0.82', time_epoch_completed='1629485474.7', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.07', dlogl='1.56e-07', ts2='-0.00', photon_index_error='0.00', photon_index='2.54' WHERE bin_id='258' AND source_name='4FGL J0420.0+0805' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Fri Aug 20 11:51:14 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0071>
Subject: Job 372489: <4FGL_J0420.0+0805_daily_bin258> in cluster <slac> Done

Job <4FGL_J0420.0+0805_daily_bin258> was submitted from host <rhel6-64q> by user <kocevski> in cluster <slac> at Fri Aug 20 11:35:33 2021
Job was executed on host(s) <bullet0071>, in queue <medium>, as user <kocevski> in cluster <slac> at Fri Aug 20 11:35:34 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Fri Aug 20 11:35:34 2021
Terminated at Fri Aug 20 11:51:15 2021
Results reported at Fri Aug 20 11:51:15 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0420.0+0805_daily_bin258 65.0086 8.0999 306201601 306460801 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J0420.0+0805 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   704.00 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             285.37 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   940 sec.
    Turnaround time :                            942 sec.

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

