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


Performing analysis on: 4FGL_J0420.0+0805_daily_bin715
RA = 65.0086, Dec = 8.0999
tmin = 424656001, tmax = 424915201
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='375586', job_status='RUN', time_executed='2021-08-20 11:49:34.417033', time_epoch_executed='1629485374.42' WHERE source_name='4FGL J0420.0+0805' and cadence='daily' and bin_id='715'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/375586

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/375586/ft1_4FGL_J0420.0+0805_daily_bin715.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/375586/ft2_4FGL_J0420.0+0805_daily_bin715.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/375586/ft1_4FGL_J0420.0+0805_daily_bin715.fits outfile=/scratch/kocevski/375586/ft1_filteredMKT_4FGL_J0420.0+0805_daily_bin715.fits ra=65.0086 dec=8.0999 rad=12.0 tmin=424656001.0 tmax=424915201.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.72
user 3.27
sys 0.42

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/375586/ft2_4FGL_J0420.0+0805_daily_bin715.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/375586/ft1_filteredMKT_4FGL_J0420.0+0805_daily_bin715.fits evtable="EVENTS" outfile="/scratch/kocevski/375586/ft1_filtered_4FGL_J0420.0+0805_daily_bin715.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.60
user 0.24
sys 0.34

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/375586/ft1_filtered_4FGL_J0420.0+0805_daily_bin715.fits" evtable="EVENTS" scfile=/scratch/kocevski/375586/ft2_4FGL_J0420.0+0805_daily_bin715.fits sctable="SC_DATA" outfile=/scratch/kocevski/375586/ltcube_424656001_424915201_4FGL_J0420.0+0805_daily_bin715.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/375586/ft2_4FGL_J0420.0+0805_daily_bin715.fits
.....................!
real 9.26
user 8.72
sys 0.52

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/375586/ft1_filtered_4FGL_J0420.0+0805_daily_bin715.fits evtable="EVENTS" scfile=/scratch/kocevski/375586/ft2_4FGL_J0420.0+0805_daily_bin715.fits sctable="SC_DATA" expcube=/scratch/kocevski/375586/ltcube_424656001_424915201_4FGL_J0420.0+0805_daily_bin715.fits outfile=/scratch/kocevski/375586/expmap_424656001_424915201_4FGL_J0420.0+0805_daily_bin715.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/375586/ltcube_424656001_424915201_4FGL_J0420.0+0805_daily_bin715.fits
.....................!
real 145.14
user 140.51
sys 4.37

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/375586/ft1_filtered_4FGL_J0420.0+0805_daily_bin715.fits scfile=/scratch/kocevski/375586/ft2_4FGL_J0420.0+0805_daily_bin715.fits outfile=/scratch/kocevski/375586/cmap_424656001_424915201_4FGL_J0420.0+0805_daily_bin715.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.66
user 0.31
sys 0.34

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/375586/ft1_filtered_4FGL_J0420.0+0805_daily_bin715.fits scfile=/scratch/kocevski/375586/ft2_4FGL_J0420.0+0805_daily_bin715.fits outfile=/scratch/kocevski/375586/cmap_HighResolution_424656001_424915201_4FGL_J0420.0+0805_daily_bin715.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.68
user 0.30
sys 0.37

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/375586/ft1_filtered_4FGL_J0420.0+0805_daily_bin715.fits evtable="EVENTS" scfile=/scratch/kocevski/375586/ft2_4FGL_J0420.0+0805_daily_bin715.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/375586/Model_4FGL_J0420.0+0805_daily_bin715.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/375586/ft1_filtered_4FGL_J0420.0+0805_daily_bin715.fits.....................!
real 121.15
user 119.61
sys 1.31

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/375586/ft1_filtered_4FGL_J0420.0+0805_daily_bin715.fits', '/scratch/kocevski/375586/ft2_4FGL_J0420.0+0805_daily_bin715.fits', expMap='/scratch/kocevski/375586/expmap_424656001_424915201_4FGL_J0420.0+0805_daily_bin715.fits', expCube='/scratch/kocevski/375586/ltcube_424656001_424915201_4FGL_J0420.0+0805_daily_bin715.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/375586/Model_4FGL_J0420.0+0805_daily_bin715.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/375586/ft1_filtered_4FGL_J0420.0+0805_daily_bin715.fits
Spacecraft file(s): /scratch/kocevski/375586/ft2_4FGL_J0420.0+0805_daily_bin715.fits
Exposure map: /scratch/kocevski/375586/expmap_424656001_424915201_4FGL_J0420.0+0805_daily_bin715.fits
Exposure cube: /scratch/kocevski/375586/ltcube_424656001_424915201_4FGL_J0420.0+0805_daily_bin715.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/375586/Model_4FGL_J0420.0+0805_daily_bin715.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) = 11071.6753966

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

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 '    16.637       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10057E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10035E-03   1.0000         .10000E-03   10000.    
     5 'norm      '    4.4865       1.0000         .10000E-03   10000.    
     6 'Prefactor '    29.010       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10376E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
     9 'norm      '    .14330E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10690E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10117E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    37.353       1.0000         .10000E-03   10000.    
    13 'Prefactor '    2.1652       1.0000         .10000E-03   10000.    
    14 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10009E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    1.4162       1.0000         .10000E-03   10000.    
    17 'Prefactor '    9.4264       1.0000         .10000E-03   10000.    
    18 'norm      '    .10230E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    47.821       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .13521E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    22 'norm      '    4.7782       1.0000         .10000E-03   10000.    
    23 'Normalizat'    1.3035       1.0000         .10000E-01   10.000    
    24 'Prefactor '    .91620       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=   11071.66     FROM MIGRAD    STATUS=CONVERGED    583 CALLS     2770 TOTAL
                     EDM=   .13E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  3.3%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    1.5396        .51429E-08** at limit **
   2  Prefactor     16.649        29.058       -.53565E-06   -.28174E-04
   3  Prefactor     .10000E-03    9.8137       -.35610E-06** at limit **
   4  Prefactor     .10000E-03    20.525       -.80898E-06** at limit **
   5  norm          4.4859        4.2190        .36007E-06    .32928E-03
   6  Prefactor     28.979        34.156        .87878E-06    .21764E-03
   7  Prefactor     .10000E-03    17.055       -.17249E-06** at limit **
   8  norm          .10000E-03    8.5232       -.15123E-06** at limit **
   9  norm          .10001E-03    1.1215        .90998E-06** at limit **
  10  Prefactor     .10000E-03    1.1570        .31122E-06** at limit **
  11  Prefactor     .10000E-03    15.486        .73224E-06** at limit **
  12  Prefactor     37.464        45.613        .28409E-05    .74710E-04
  13  Prefactor     2.1641        6.4733        .96360E-06    .42410E-03
  14  norm          .10000E-03    1.7300        .49374E-07** at limit **
  15  Prefactor     .10000E-03    30.474        .11757E-05** at limit **
  16  norm          1.4161        2.4218        .52442E-07    .33212E-03
  17  Prefactor     9.4315        9.5148       -.34619E-06    .17796E-03
  18  norm          .10000E-03    1.1589       -.37124E-06** at limit **
  19  Prefactor     47.790        41.987        .99140E-06    .23557E-03
  20  Prefactor     .10001E-03    89.538       -.24104E-05** at limit **
  21  Prefactor     .10000E-03    9.0419        .56786E-06** at limit **
  22  norm          4.7775        1.2377       -.56077E-07    .89322E-04
  23  Normalizat    1.3036        .27388        .24511E-05    .36447E-03
  24  Prefactor     .91625        .66481E-01   -.39419E-06    .10537E-02
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  Prefactor  = 16.6494
  Prefactor  = 0.0001
  Prefactor  = 0.000100001
  norm       = 4.48588
  Prefactor  = 28.9794
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 0.000100011
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 37.4639
  Prefactor  = 2.16412
  norm       = 0.0001
  Prefactor  = 0.000100001
  norm       = 1.41605
  Prefactor  = 9.43147
  norm       = 0.0001
  Prefactor  = 47.7898
  Prefactor  = 0.000100007
  Prefactor  = 0.0001
  norm       = 4.77754
  Normalizat = 1.30356
  Prefactor  = 0.916252
 **********
 **   18 **HESSE 
 **********

 FCN=   11071.66     FROM HESSE     STATUS=OK           393 CALLS     3163 TOTAL
                     EDM=   .59E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    1.5399        .12751E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     16.649        29.077        .98192E-04   -1.4892    
   3  Prefactor     .10000E-03    9.9085        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    20.664        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          4.4859        4.2187        .19009E-03   -1.5284    
   6  Prefactor     28.979        34.410        .74385E-04   -1.4631    
   7  Prefactor     .10000E-03    17.079        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          .10000E-03    8.5351        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          .10001E-03    2.4320        .13828E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    1.2846        .18030E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    15.508        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     37.464        47.575        .65577E-04   -1.4483    
  13  Prefactor     2.1641        7.0927        .13995E-02   -1.5414    
  14  norm          .10000E-03    1.7638        .26947E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    30.563        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          1.4161        2.3953        .20134E-03   -1.5470    
  17  Prefactor     9.4315        9.4842        .65264E-03   -1.5094    
  18  norm          .10000E-03    2.9480        .21518E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     47.790        42.431        .57985E-04   -1.4324    
  20  Prefactor     .10001E-03    92.452        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10000E-03    9.1292        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  norm          4.7775        1.2359        .56418E-04   -1.5271    
  23  Normalizat    1.3036        .29481        .46839E-03   -.83460    
  24  Prefactor     .91625        .72193E-01    .14643E-03   -.95575    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.87094e-09
Minuit parameter uncertainties:
  1  2.07818e-07
  2  29.1019
  3  8.34923e-05
  4  0.000238814
  5  4.21899
  6  34.4337
  7  4.3133e-05
  8  3.19823e-05
  9  0.000334428
  10  8.01719e-06
  11  0.000117292
  12  47.6227
  13  7.09545
  14  5.54433e-06
  15  0.000343219
  16  2.39551
  17  9.48566
  18  1.4672e-05
  19  42.4581
  20  0.00156669
  21  8.30609e-05
  22  1.23591
  23  0.295196
  24  0.0722007
Done.

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

Extracting fit parameters...

4FGL J0420.0+0805
   Spectrum: PowerLaw
192    Prefactor:  2.898e+01  3.443e+01  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:  9.163e-01  7.220e-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:  1.304e+00  2.952e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 0.86
Ra Dec: 65.009 8.100
Photon Flux Upper Limit: 2.08e-07 ph cm-2 s-1
Energy Flux Upper Limit: 1.62e-02 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/375586/likelihoodResults_424656001_424915201_4FGL_J0420.0+0805_daily_bin715.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) = 11071.3550656
delta logL = 0.302366820624

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 11071.3362096
delta logL = 0.321222802409

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    11.061       1.0000         .10000E-03   10000.    
     2 'Index     '    3.4019       1.0000          .0000       10.000    
     3 'Normalizat'    1.2506       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .92469       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.

 FCN=   11071.34     FROM MIGRAD    STATUS=CONVERGED     53 CALLS      261 TOTAL
                     EDM=   .15E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     11.061        213.80        .30115E-02    .51609E-03
   2  Index         3.4026        3.3994        .12396        .23750E-03
   3  Normalizat    1.2506        .93945E-01    .10757        .31043E-04
   4  Prefactor     .92468        .23223E-01    .33000E-01    .10809E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 11.0611
  Index      = 3.40264
  Normalizat = 1.25062
  Prefactor  = 0.924682
 **********
 **   18 **HESSE 
 **********

 FCN=   11071.34     FROM HESSE     STATUS=NOT POSDEF    33 CALLS      294 TOTAL
                     EDM=   .15E-05    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     11.061        373.64        .12046E-03   -1.5043    
   2  Index         3.4026        6.6845        .77533E-02   -.32517    
   3  Normalizat    1.2506        .28585        .47685E-03   -.85053    
   4  Prefactor     .92468        .76669E-01    .14582E-03   -.95284    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 1.45877e-06
Minuit parameter uncertainties:
  1  129.462
  2  6.45197
  3  0.286206
  4  0.0766776
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/375586': 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) = 11071.3362082
delta logL = 0.321224202124

Extracting fit parameters...

4FGL J0420.0+0805
   Spectrum: PowerLaw
192    Prefactor:  1.106e+01  1.295e+02  1.000e-04  1.000e+04 ( 1.000e-13)
193        Index:  3.403e+00  6.452e+00  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:  9.247e-01  7.668e-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:  1.251e+00  2.862e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 1.58
Ra Dec: 65.009 8.100
Photon Index (Free Index): 3.40 +/- 6.45
Photon Flux (Free Index): 1.08e-07 +/- 1.02e-07
Energy Flux (Free Index): 1.85e-05 +/- 3.29e-05

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/375586/cmap_HighResolution_424656001_424915201_4FGL_J0420.0+0805_daily_bin715.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.62e-02', comment='SUCCESS', energy_flux2='1.85e-05', dlogl='3.21e-01', photon_flux2='1.08e-07', job_status='DONE', time_completed='2021-08-20 12:01:43.066265', photon_index_error2='6.45', photon_index2='3.40', ts='0.86', fit_tolerance='1e-08', GAL='0.92', photon_index_error='0.00', photon_flux_upper_limit='2.08e-07', energy_flux_error2='3.29e-05', EG='1.30', time_epoch_completed='1629486103.07', return_code='0', job_id='375586', GAL2='0.92', EG2='1.25', return_code2='102', photon_flux_error2='1.02e-07', ts2='1.58', photon_index='2.54' WHERE bin_id='715' AND source_name='4FGL J0420.0+0805' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Fri Aug 20 12:01:43 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0033>
Subject: Job 375586: <4FGL_J0420.0+0805_daily_bin715> in cluster <slac> Done

Job <4FGL_J0420.0+0805_daily_bin715> was submitted from host <rhel6-64q> by user <kocevski> in cluster <slac> at Fri Aug 20 11:45:47 2021
Job was executed on host(s) <bullet0033>, in queue <medium>, as user <kocevski> in cluster <slac> at Fri Aug 20 11:45:48 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Fri Aug 20 11:45:48 2021
Terminated at Fri Aug 20 12:01:43 2021
Results reported at Fri Aug 20 12:01:43 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0420.0+0805_daily_bin715 65.0086 8.0999 424656001 424915201 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 :                                   730.00 sec.
    Max Memory :                                 1043 MB
    Average Memory :                             262.69 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   955 sec.
    Turnaround time :                            956 sec.

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

