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


Performing analysis on: 4FGL_J0420.0+0805_daily_bin828
RA = 65.0086, Dec = 8.0999
tmin = 453945601, tmax = 454204801
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='376866', job_status='RUN', time_executed='2021-08-20 11:50:42.205818', time_epoch_executed='1629485442.21' WHERE source_name='4FGL J0420.0+0805' and cadence='daily' and bin_id='828'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/376866

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/376866/ft1_4FGL_J0420.0+0805_daily_bin828.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/376866/ft2_4FGL_J0420.0+0805_daily_bin828.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/376866/ft1_4FGL_J0420.0+0805_daily_bin828.fits outfile=/scratch/kocevski/376866/ft1_filteredMKT_4FGL_J0420.0+0805_daily_bin828.fits ra=65.0086 dec=8.0999 rad=12.0 tmin=453945601.0 tmax=454204801.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 4.72
user 3.89
sys 0.80

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/376866/ft2_4FGL_J0420.0+0805_daily_bin828.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/376866/ft1_filteredMKT_4FGL_J0420.0+0805_daily_bin828.fits evtable="EVENTS" outfile="/scratch/kocevski/376866/ft1_filtered_4FGL_J0420.0+0805_daily_bin828.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 1.12
user 0.37
sys 0.72

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/376866/ft1_filtered_4FGL_J0420.0+0805_daily_bin828.fits" evtable="EVENTS" scfile=/scratch/kocevski/376866/ft2_4FGL_J0420.0+0805_daily_bin828.fits sctable="SC_DATA" outfile=/scratch/kocevski/376866/ltcube_453945601_454204801_4FGL_J0420.0+0805_daily_bin828.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/376866/ft2_4FGL_J0420.0+0805_daily_bin828.fits
.....................!
real 17.34
user 16.32
sys 0.96

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/376866/ft1_filtered_4FGL_J0420.0+0805_daily_bin828.fits evtable="EVENTS" scfile=/scratch/kocevski/376866/ft2_4FGL_J0420.0+0805_daily_bin828.fits sctable="SC_DATA" expcube=/scratch/kocevski/376866/ltcube_453945601_454204801_4FGL_J0420.0+0805_daily_bin828.fits outfile=/scratch/kocevski/376866/expmap_453945601_454204801_4FGL_J0420.0+0805_daily_bin828.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/376866/ltcube_453945601_454204801_4FGL_J0420.0+0805_daily_bin828.fits
.....................!
real 195.37
user 189.03
sys 5.85

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/376866/ft1_filtered_4FGL_J0420.0+0805_daily_bin828.fits scfile=/scratch/kocevski/376866/ft2_4FGL_J0420.0+0805_daily_bin828.fits outfile=/scratch/kocevski/376866/cmap_453945601_454204801_4FGL_J0420.0+0805_daily_bin828.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 1.13
user 0.40
sys 0.71

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/376866/ft1_filtered_4FGL_J0420.0+0805_daily_bin828.fits scfile=/scratch/kocevski/376866/ft2_4FGL_J0420.0+0805_daily_bin828.fits outfile=/scratch/kocevski/376866/cmap_HighResolution_453945601_454204801_4FGL_J0420.0+0805_daily_bin828.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 1.13
user 0.43
sys 0.69

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

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 '    136.64       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10123E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    29.149       1.0000         .10000E-03   10000.    
     5 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10030E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10265E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    .10012E-03   1.0000         .10000E-03   10000.    
     9 'norm      '    .65867E-01   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .68838E-01   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .11156E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .30450E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    11.804       1.0000         .10000E-03   10000.    
    14 'norm      '    4.3146       1.0000         .10000E-03   10000.    
    15 'Prefactor '    79.259       1.0000         .10000E-03   10000.    
    16 'norm      '    2.5381       1.0000         .10000E-03   10000.    
    17 'Prefactor '    21.103       1.0000         .10000E-03   10000.    
    18 'norm      '    2.9271       1.0000         .10000E-03   10000.    
    19 'Prefactor '    10.745       1.0000         .10000E-03   10000.    
    20 'Prefactor '    106.35       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
    22 'norm      '    4.1708       1.0000         .10000E-03   10000.    
    23 'Normalizat'    .30331       1.0000         .10000E-01   10.000    
    24 'Prefactor '    1.1913       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=   10881.47     FROM MIGRAD    STATUS=CONVERGED    553 CALLS     2767 TOTAL
                     EDM=   .11E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY= 11.6%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    1.8939        .11547E-09** at limit **
   2  Prefactor     136.69        62.059       -.37638E-05   -.18896E-03
   3  Prefactor     .10001E-03    26.225        .11204E-05** at limit **
   4  Prefactor     29.158        24.894       -.72661E-06   -.34367E-04
   5  norm          .10000E-03    1.5378       -.13164E-06** at limit **
   6  Prefactor     .10000E-03    33.949       -.37520E-05** at limit **
   7  Prefactor     .10000E-03    89.859       -.93136E-06** at limit **
   8  norm          .10000E-03    12.417       -.26210E-06** at limit **
   9  norm          .66304E-01    .47427       -.62462E-06   -.87382E-03
  10  Prefactor     .64596E-01    .73694       -.79232E-06   -.58635E-03
  11  Prefactor     .10000E-03    53.401        .17555E-05** at limit **
  12  Prefactor     .10000E-03    145.32       -.48345E-05** at limit **
  13  Prefactor     11.802        12.306       -.12447E-05   -.10999E-03
  14  norm          4.3194        3.5428       -.10481E-05   -.17009E-02
  15  Prefactor     79.268        64.092       -.22020E-05   -.36758E-04
  16  norm          2.5376        1.9314       -.79331E-06   -.14473E-03
  17  Prefactor     21.109        10.497       -.14055E-05   -.18272E-04
  18  norm          2.9276        2.6379       -.65049E-06   -.70322E-03
  19  Prefactor     10.638        45.503       -.15679E-04   -.56256E-04
  20  Prefactor     106.45        62.937        .26548E-05    .69434E-04
  21  Prefactor     .10000E-03    4.6484       -.48064E-07** at limit **
  22  norm          4.1704        1.4184       -.41252E-06    .33687E-02
  23  Normalizat    .30291        .29071        .60159E-04   -.84085E-04
  24  Prefactor     1.1914        .78664E-01   -.73159E-05   -.17516E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  Prefactor  = 136.688
  Prefactor  = 0.000100006
  Prefactor  = 29.1577
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 0.0663037
  Prefactor  = 0.0645956
  Prefactor  = 0.000100002
  Prefactor  = 0.0001
  Prefactor  = 11.8023
  norm       = 4.31945
  Prefactor  = 79.2682
  norm       = 2.53764
  Prefactor  = 21.1088
  norm       = 2.92758
  Prefactor  = 10.6378
  Prefactor  = 106.45
  Prefactor  = 0.0001
  norm       = 4.17044
  Normalizat = 0.302908
  Prefactor  = 1.19141
 **********
 **   18 **HESSE 
 **********

 FCN=   10881.47     FROM HESSE     STATUS=OK           401 CALLS     3168 TOTAL
                     EDM=   .26E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    1.8950        .14020E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     136.69        62.209        .17228E-03   -1.3364    
   3  Prefactor     .10001E-03    26.604        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     29.158        24.892        .74208E-04   -1.4627    
   5  norm          .10000E-03    1.5422        .12632E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    34.130        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    90.463        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          .10000E-03    12.448        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          .66304E-01    2.6745        .13128E-02   -1.5657    
  10  Prefactor     .64596E-01    9.6372        .16265E-02   -1.5657    
  11  Prefactor     .10000E-03    54.231        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    149.76        .42767E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     11.802        12.362        .11660E-03   -1.5021    
  14  norm          4.3194        3.5221        .16308E-03   -1.5292    
  15  Prefactor     79.268        64.160        .45110E-04   -1.3925    
  16  norm          2.5376        1.9288        .12119E-03   -1.5389    
  17  Prefactor     21.109        10.478        .87191E-04   -1.4789    
  18  norm          2.9276        2.6351        .15104E-03   -1.5366    
  19  Prefactor     10.638        45.906        .12223E-03   -1.5056    
  20  Prefactor     106.45        63.194        .19498E-03   -1.3641    
  21  Prefactor     .10000E-03    4.6724        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  norm          4.1704        1.4244        .61020E-04   -1.5300    
  23  Normalizat    .30291        .29529        .92045E-03   -1.2266    
  24  Prefactor     1.1914        .79224E-01    .14061E-03   -.86596    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.574e-09
Minuit parameter uncertainties:
  1  6.53913e-07
  2  62.2391
  3  0.000792866
  4  24.9009
  5  1.77123e-07
  6  3.09361e-05
  7  0.000277043
  8  1.54132e-05
  9  0.841621
  10  1.57704
  11  0.000691182
  12  0.000405794
  13  12.365
  14  3.52223
  15  64.2166
  16  1.92881
  17  10.479
  18  2.63519
  19  44.2539
  20  63.2341
  21  4.47539e-06
  22  1.42439
  23  0.296822
  24  0.0792319
Done.

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

Extracting fit parameters...

4FGL J0420.0+0805
   Spectrum: PowerLaw
192    Prefactor:  1.000e-04  3.094e-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.191e+00  7.923e-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:  3.029e-01  2.968e-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: 1.39e-07 ph cm-2 s-1
Energy Flux Upper Limit: 1.09e-02 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/376866/likelihoodResults_453945601_454204801_4FGL_J0420.0+0805_daily_bin828.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) = 10881.4708998
delta logL = -0.000139557525472

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 10881.4707605
delta logL = -2.24037648877e-07

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.4698       1.0000          .0000       10.000    
     3 'Normalizat'    .30292       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.1914       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=   10881.47     FROM MIGRAD    STATUS=CONVERGED     95 CALLS      282 TOTAL
                     EDM=   .77E-10    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10001E-03    7102.9        .18142E-02** at limit **
   2  Index         2.5110        5.0522        .50000       -.12896E-04
   3  Normalizat    .30291        .11150        .92050E-03   -.10374E-05
   4  Prefactor     1.1914        .32590E-01    .14061E-03    .49969E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100005
  Index      = 2.51099
  Normalizat = 0.30291
  Prefactor  = 1.19141
 **********
 **   18 **HESSE 
 **********

 FCN=   10881.47     FROM HESSE     STATUS=OK            29 CALLS      311 TOTAL
                     EDM=   .23E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10001E-03    39.448        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.5110        6.2498        .50000       -.52106    
   3  Normalizat    .30291        .26016        .36820E-04   -1.2266    
   4  Prefactor     1.1914        .76312E-01    .56242E-05   -.86596    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.32288e-10
Minuit parameter uncertainties:
  1  0.000925339
  2  4.84385
  3  0.261203
  4  0.0763191
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/376866': 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) = 10881.4707603
delta logL = -9.63445927482e-08

Extracting fit parameters...

4FGL J0420.0+0805
   Spectrum: PowerLaw
192    Prefactor:  1.000e-04  9.253e-04  1.000e-04  1.000e+04 ( 1.000e-13)
193        Index:  2.511e+00  4.844e+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:  1.191e+00  7.632e-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:  3.029e-01  2.612e-01  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/376866/cmap_HighResolution_453945601_454204801_4FGL_J0420.0+0805_daily_bin828.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.09e-02', job_status='DONE', photon_flux_upper_limit='1.39e-07', time_completed='2021-08-20 12:06:52.316621', job_id='376866', GAL2='1.19', fit_tolerance='1e-08', EG2='0.30', EG='0.30', time_epoch_completed='1629486412.32', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.19', dlogl='-9.63e-08', ts2='-0.00', photon_index_error='0.00', photon_index='2.54' WHERE bin_id='828' AND source_name='4FGL J0420.0+0805' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Fri Aug 20 12:06:52 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0224>
Subject: Job 376866: <4FGL_J0420.0+0805_daily_bin828> in cluster <slac> Done

Job <4FGL_J0420.0+0805_daily_bin828> was submitted from host <rhel6-64q> by user <kocevski> in cluster <slac> at Fri Aug 20 11:50:21 2021
Job was executed on host(s) <bullet0224>, in queue <medium>, as user <kocevski> in cluster <slac> at Fri Aug 20 11:50:22 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:50:22 2021
Terminated at Fri Aug 20 12:06:53 2021
Results reported at Fri Aug 20 12:06:53 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0420.0+0805_daily_bin828 65.0086 8.0999 453945601 454204801 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 :                                   977.23 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             350.31 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   990 sec.
    Turnaround time :                            992 sec.

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

