/nfs/farm/g/glast/g/LCRepository/bin/miniconda2/envs/fermitools_v1.0.5/lib/python2.7/site-packages/pyfits/__init__.py:22: PyFITSDeprecationWarning: PyFITS is deprecated, please use astropy.io.fits
  PyFITSDeprecationWarning)  # noqa

Likelihood Analysis Tool
Support Contact: Daniel Kocevski (daniel.kocevski@nasa.gov)


Waiting 4 seconds before starting...
Proceeding.

Importing modules...
This is make3FGLxml version 01r0.
The default diffuse model files and names are for pass 8 and assume you have v10r00p05 of the Fermi Science Tools or higher.
This is make4FGLxml version 01r04.
The default diffuse model files and names are for pass 8 and 4FGL and assume you have v11r5p3 of the Fermi Science Tools or higher.

WARNING: version mismatch between CFITSIO header (v3.43) and linked library (v3.41).

/nfs/farm/g/glast/g/LCRepository/bin/miniconda2/envs/fermitools_v1.0.5/lib/python2.7/site-packages/matplotlib/cbook/deprecation.py:106: MatplotlibDeprecationWarning: The mpl_toolkits.axes_grid module was deprecated in version 2.1. Use mpl_toolkits.axes_grid1 and mpl_toolkits.axisartist provies the same functionality instead.
  warnings.warn(message, mplDeprecation, stacklevel=1)

WARNING: version mismatch between CFITSIO header (v3.43) and linked library (v3.41).

number of points = 7378
number of fields = 30
RA_SUN column already exists. File will not be modified.
Done.


Performing analysis on: 4FGL_J0420.0+0805_daily_bin1512
RA = 65.0086, Dec = 8.0999
tmin = 631238401, tmax = 631497601
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='384572', job_status='RUN', time_executed='2021-08-20 12:12:50.454408', time_epoch_executed='1629486770.45' WHERE source_name='4FGL J0420.0+0805' and cadence='daily' and bin_id='1512'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/384572

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/384572/ft1_4FGL_J0420.0+0805_daily_bin1512.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/384572/ft2_4FGL_J0420.0+0805_daily_bin1512.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/384572/ft1_4FGL_J0420.0+0805_daily_bin1512.fits outfile=/scratch/kocevski/384572/ft1_filteredMKT_4FGL_J0420.0+0805_daily_bin1512.fits ra=65.0086 dec=8.0999 rad=12.0 tmin=631238401.0 tmax=631497601.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 10.36
user 2.52
sys 7.80

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/384572/ft2_4FGL_J0420.0+0805_daily_bin1512.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/384572/ft1_filteredMKT_4FGL_J0420.0+0805_daily_bin1512.fits evtable="EVENTS" outfile="/scratch/kocevski/384572/ft1_filtered_4FGL_J0420.0+0805_daily_bin1512.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 8.17
user 0.32
sys 7.78

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/384572/ft1_filtered_4FGL_J0420.0+0805_daily_bin1512.fits" evtable="EVENTS" scfile=/scratch/kocevski/384572/ft2_4FGL_J0420.0+0805_daily_bin1512.fits sctable="SC_DATA" outfile=/scratch/kocevski/384572/ltcube_631238401_631497601_4FGL_J0420.0+0805_daily_bin1512.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/384572/ft2_4FGL_J0420.0+0805_daily_bin1512.fits
.....................!
real 21.78
user 12.93
sys 8.79

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/384572/ft1_filtered_4FGL_J0420.0+0805_daily_bin1512.fits evtable="EVENTS" scfile=/scratch/kocevski/384572/ft2_4FGL_J0420.0+0805_daily_bin1512.fits sctable="SC_DATA" expcube=/scratch/kocevski/384572/ltcube_631238401_631497601_4FGL_J0420.0+0805_daily_bin1512.fits outfile=/scratch/kocevski/384572/expmap_631238401_631497601_4FGL_J0420.0+0805_daily_bin1512.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/384572/ltcube_631238401_631497601_4FGL_J0420.0+0805_daily_bin1512.fits
.....................!
real 200.64
user 186.12
sys 14.03

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/384572/ft1_filtered_4FGL_J0420.0+0805_daily_bin1512.fits scfile=/scratch/kocevski/384572/ft2_4FGL_J0420.0+0805_daily_bin1512.fits outfile=/scratch/kocevski/384572/cmap_631238401_631497601_4FGL_J0420.0+0805_daily_bin1512.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 8.06
user 0.38
sys 7.65

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/384572/ft1_filtered_4FGL_J0420.0+0805_daily_bin1512.fits scfile=/scratch/kocevski/384572/ft2_4FGL_J0420.0+0805_daily_bin1512.fits outfile=/scratch/kocevski/384572/cmap_HighResolution_631238401_631497601_4FGL_J0420.0+0805_daily_bin1512.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 7.75
user 0.37
sys 7.36

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

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 '    .10106E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10046E-03   1.0000         .10000E-03   10000.    
     5 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10034E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    14.416       1.0000         .10000E-03   10000.    
     8 'norm      '    .10990E-03   1.0000         .10000E-03   10000.    
     9 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    4.8584       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10030E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    15.857       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10025E-03   1.0000         .10000E-03   10000.    
    14 'norm      '    3.0216       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10032E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    18 'norm      '    7.6858       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10100E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .25833E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10122E-03   1.0000         .10000E-03   10000.    
    22 'norm      '    3.0038       1.0000         .10000E-03   10000.    
    23 'Normalizat'    .12094E-01   1.0000         .10000E-01   10.000    
    24 'Prefactor '    1.2686       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .4760E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   5120.822     FROM MIGRAD    STATUS=CONVERGED    111 CALLS     2301 TOTAL
                     EDM=   .67E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  9.9%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    4.8501       -.17187E-06** at limit **
   2  Prefactor     .10006E-03    9.7342       -.10040E-04** at limit **
   3  Prefactor     .10000E-03    15.611        .40112E-05** at limit **
   4  Prefactor     .10001E-03    12.396        .89910E-05** at limit **
   5  norm          .10000E-03    2.4700       -.80097E-06** at limit **
   6  Prefactor     .10001E-03    16.735       -.23826E-04** at limit **
   7  Prefactor     14.408        2.3802       -.24018E-05    .16507E-02
   8  norm          .10066E-03    69.967       -.13723E-04** at limit **
   9  norm          .10000E-03    .80256        .60744E-09** at limit **
  10  Prefactor     4.8611        3.1289        .70305E-09    .66445E-03
  11  Prefactor     .10006E-03    10.131        .34824E-05** at limit **
  12  Prefactor     15.872        4.2656        .43483E-05   -.31330E-02
  13  Prefactor     .10000E-03    15.852        .16875E-04** at limit **
  14  norm          3.0244        5.0821       -.80047E-06    .23559E-03
  15  Prefactor     .10000E-03    18.311       -.23749E-04** at limit **
  16  norm          .10000E-03    1.5235       -.31891E-06** at limit **
  17  Prefactor     .10000E-03    4.9616        .50775E-07** at limit **
  18  norm          7.6871        5.9202        .42842E-05    .50097E-03
  19  Prefactor     .10004E-03    51.745        .36914E-04** at limit **
  20  Prefactor     .10671E-03    2.6907       -.11143E-04** at limit **
  21  Prefactor     .10013E-03    74.706       -.22700E-04** at limit **
  22  norm          3.0026        2.4806       -.18902E-06    .12712E-03
  23  Normalizat    .10031E-01    1.7651       -.20346E-03    .93211E-05
  24  Prefactor     1.2693        .65055E-01    .16449E-06    .12896E-02
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  Prefactor  = 0.000100058
  Prefactor  = 0.000100002
  Prefactor  = 0.000100006
  norm       = 0.0001
  Prefactor  = 0.000100011
  Prefactor  = 14.4085
  norm       = 0.00010066
  norm       = 0.0001
  Prefactor  = 4.86106
  Prefactor  = 0.000100062
  Prefactor  = 15.872
  Prefactor  = 0.000100005
  norm       = 3.02437
  Prefactor  = 0.000100003
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 7.68711
  Prefactor  = 0.000100045
  Prefactor  = 0.000106709
  Prefactor  = 0.000100125
  norm       = 3.00261
  Normalizat = 0.0100315
  Prefactor  = 1.26926
 **********
 **   18 **HESSE 
 **********

 FCN=   5120.822     FROM HESSE     STATUS=OK           439 CALLS     2740 TOTAL
                     EDM=   .36E-06    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    4.8133        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10006E-03    17.769        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    15.619        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10001E-03    28.992        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          .10000E-03    2.4701        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10001E-03    35.451        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     14.408        99.149        .26372E-02   -1.4949    
   8  norm          .10066E-03    137.67        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          .10000E-03    .78242        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     4.8611        3.3435        .45625E-02   -1.5267    
  11  Prefactor     .10006E-03    18.398        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     15.872        59.951        .25145E-02   -1.4911    
  13  Prefactor     .10000E-03    28.065        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          3.0244        5.1269        .58366E-02   -1.5360    
  15  Prefactor     .10000E-03    37.167        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          .10000E-03    1.5138        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    4.9667        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          7.6871        5.9289        .36162E-02   -1.5153    
  19  Prefactor     .10004E-03    53.239        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10671E-03    360.35        .10726E-01   -1.5707    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10013E-03    146.26        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  norm          3.0026        2.5125        .58549E-02   -1.5361    
  23  Normalizat    .10031E-01    .46655        .32129       -1.5672    
  24  Prefactor     1.2693        .97358E-01    .33180E-01   -.84226    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.63205e-07
Minuit parameter uncertainties:
  1  2.67436e-05
  2  0.00202371
  3  0.000334027
  4  0.000819213
  5  5.28583e-05
  6  0.00126512
  7  75.7735
  8  0.0191154
  9  1.32519e-05
  10  3.34361
  11  0.00212834
  12  60.1797
  13  0.000721564
  14  5.12767
  15  0.000637846
  16  1.45572e-05
  17  3.46103e-05
  18  5.92937
  19  0.00308764
  20  0.0989413
  21  0.00857577
  22  2.51263
  23  0.0077274
  24  0.0973717
Done.

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

Extracting fit parameters...

4FGL J0420.0+0805
   Spectrum: PowerLaw
192    Prefactor:  1.000e-04  1.265e-03  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.269e+00  9.737e-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.003e-02  7.727e-03  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/384572/likelihoodResults_631238401_631497601_4FGL_J0420.0+0805_daily_bin1512.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) = 5120.82172201
delta logL = -0.000133927861498

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5120.82158815
delta logL = -7.33743945602e-08

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.4714       1.0000          .0000       10.000    
     3 'Normalizat'    .10032E-01   1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.2693       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=   5120.822     FROM MIGRAD    STATUS=CONVERGED     51 CALLS      262 TOTAL
                     EDM=   .18E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    6780.5        .90712E-02** at limit **
   2  Index         2.4860        8.3854        .50000       -.40347E-05
   3  Normalizat    .10029E-01    .58533E-01    .32095        .10597E-04
   4  Prefactor     1.2693        .36328E-01    .33168E-01   -.40856E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Index      = 2.48601
  Normalizat = 0.0100293
  Prefactor  = 1.26926
 **********
 **   18 **HESSE 
 **********

 FCN=   5120.822     FROM HESSE     STATUS=OK            41 CALLS      303 TOTAL
                     EDM=   .15E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    280.41        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.4860        6.9510        .50000       -.52683    
   3  Normalizat    .10029E-01    .51413        .28926       -1.5674    
   4  Prefactor     1.2693        .99372E-01    .13089E-03   -.84226    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.5044e-10
Minuit parameter uncertainties:
  1  3.68007e-05
  2  12.5168
  3  0.00783041
  4  0.0993866
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/384572': 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) = 5120.82158814
delta logL = -5.56974555366e-08

Extracting fit parameters...

4FGL J0420.0+0805
   Spectrum: PowerLaw
192    Prefactor:  1.000e-04  3.680e-05  1.000e-04  1.000e+04 ( 1.000e-13)
193        Index:  2.486e+00  1.252e+01  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.269e+00  9.939e-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.003e-02  7.830e-03  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  0.000e+00 [aplpy.core]
INFO: Auto-setting vmax to  0.000e+00 [aplpy.core]
Saving /scratch/kocevski/384572/cmap_HighResolution_631238401_631497601_4FGL_J0420.0+0805_daily_bin1512.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.48e-02', job_status='DONE', photon_flux_upper_limit='1.90e-07', time_completed='2021-08-20 12:23:57.527508', job_id='384572', GAL2='1.27', fit_tolerance='1e-08', EG2='0.01', EG='0.01', time_epoch_completed='1629487437.53', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.27', dlogl='-5.57e-08', ts2='-0.00', photon_index_error='0.00', photon_index='2.54' WHERE bin_id='1512' AND source_name='4FGL J0420.0+0805' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Fri Aug 20 12:23:57 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0287>
Subject: Job 384572: <4FGL_J0420.0+0805_daily_bin1512> in cluster <slac> Done

Job <4FGL_J0420.0+0805_daily_bin1512> was submitted from host <rhel6-64a> by user <kocevski> in cluster <slac> at Fri Aug 20 12:10:34 2021
Job was executed on host(s) <bullet0287>, in queue <medium>, as user <kocevski> in cluster <slac> at Fri Aug 20 12:10:37 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Fri Aug 20 12:10:37 2021
Terminated at Fri Aug 20 12:24:01 2021
Results reported at Fri Aug 20 12:24:01 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0420.0+0805_daily_bin1512 65.0086 8.0999 631238401 631497601 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 :                                   782.23 sec.
    Max Memory :                                 1224 MB
    Average Memory :                             250.60 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              7
    Max Threads :                                21
    Run time :                                   801 sec.
    Turnaround time :                            807 sec.

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

