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


Performing analysis on: 4FGL_J0420.0+0805_daily_bin293
RA = 65.0086, Dec = 8.0999
tmin = 315273601, tmax = 315532801
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='372541', job_status='RUN', time_executed='2021-08-20 11:38:34.920218', time_epoch_executed='1629484714.92' WHERE source_name='4FGL J0420.0+0805' and cadence='daily' and bin_id='293'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/372541

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/372541/ft1_4FGL_J0420.0+0805_daily_bin293.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/372541/ft2_4FGL_J0420.0+0805_daily_bin293.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/372541/ft1_4FGL_J0420.0+0805_daily_bin293.fits outfile=/scratch/kocevski/372541/ft1_filteredMKT_4FGL_J0420.0+0805_daily_bin293.fits ra=65.0086 dec=8.0999 rad=12.0 tmin=315273601.0 tmax=315532801.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.45
user 3.50
sys 0.88

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/372541/ft2_4FGL_J0420.0+0805_daily_bin293.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/372541/ft1_filteredMKT_4FGL_J0420.0+0805_daily_bin293.fits evtable="EVENTS" outfile="/scratch/kocevski/372541/ft1_filtered_4FGL_J0420.0+0805_daily_bin293.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.26
user 0.35
sys 0.82

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/372541/ft1_filtered_4FGL_J0420.0+0805_daily_bin293.fits" evtable="EVENTS" scfile=/scratch/kocevski/372541/ft2_4FGL_J0420.0+0805_daily_bin293.fits sctable="SC_DATA" outfile=/scratch/kocevski/372541/ltcube_315273601_315532801_4FGL_J0420.0+0805_daily_bin293.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/372541/ft2_4FGL_J0420.0+0805_daily_bin293.fits
.....................!
real 16.78
user 15.54
sys 1.08

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/372541/ft1_filtered_4FGL_J0420.0+0805_daily_bin293.fits evtable="EVENTS" scfile=/scratch/kocevski/372541/ft2_4FGL_J0420.0+0805_daily_bin293.fits sctable="SC_DATA" expcube=/scratch/kocevski/372541/ltcube_315273601_315532801_4FGL_J0420.0+0805_daily_bin293.fits outfile=/scratch/kocevski/372541/expmap_315273601_315532801_4FGL_J0420.0+0805_daily_bin293.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/372541/ltcube_315273601_315532801_4FGL_J0420.0+0805_daily_bin293.fits
.....................!
real 197.18
user 189.18
sys 6.69

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/372541/ft1_filtered_4FGL_J0420.0+0805_daily_bin293.fits scfile=/scratch/kocevski/372541/ft2_4FGL_J0420.0+0805_daily_bin293.fits outfile=/scratch/kocevski/372541/cmap_315273601_315532801_4FGL_J0420.0+0805_daily_bin293.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.24
user 0.38
sys 0.80

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/372541/ft1_filtered_4FGL_J0420.0+0805_daily_bin293.fits scfile=/scratch/kocevski/372541/ft2_4FGL_J0420.0+0805_daily_bin293.fits outfile=/scratch/kocevski/372541/cmap_HighResolution_315273601_315532801_4FGL_J0420.0+0805_daily_bin293.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.25
user 0.41
sys 0.83

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    1.1860       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10023E-03   1.0000         .10000E-03   10000.    
     5 'norm      '    5.4148       1.0000         .10000E-03   10000.    
     6 'Prefactor '    76.359       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     9 'norm      '    .10016E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .11569E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10083E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    6.4131       1.0000         .10000E-03   10000.    
    14 'norm      '    3.1999       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    3.9672       1.0000         .10000E-03   10000.    
    17 'Prefactor '    13.062       1.0000         .10000E-03   10000.    
    18 'norm      '    3.4418       1.0000         .10000E-03   10000.    
    19 'Prefactor '    55.978       1.0000         .10000E-03   10000.    
    20 'Prefactor '    28.062       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    22 'norm      '    .33720       1.0000         .10000E-03   10000.    
    23 'Normalizat'    .21163       1.0000         .10000E-01   10.000    
    24 'Prefactor '    1.1656       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=   6801.446     FROM MIGRAD    STATUS=CONVERGED    984 CALLS     3661 TOTAL
                     EDM=   .14E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          1.1859        5.4672        .37986E-03   -.26634E-03
   2  Prefactor     .10000E-03    193.01        .18142E-02** at limit **
   3  Prefactor     .10000E-03    7.5259        .18142E-02** at limit **
   4  Prefactor     .10000E-03    17.759        .18142E-02** at limit **
   5  norm          5.4143        6.3889        .17269E-03   -.81699E-04
   6  Prefactor     76.360        40.514        .45952E-04   -.44186E-04
   7  Prefactor     .10000E-03    69.454        .18142E-02** at limit **
   8  norm          .10000E-03    34.574        .18142E-02** at limit **
   9  norm          .10000E-03    1.6707        .12593E-02** at limit **
  10  Prefactor     .10000E-03    3.9653        .18086E-02** at limit **
  11  Prefactor     .10000E-03    12.654        .18142E-02** at limit **
  12  Prefactor     .10000E-03    58.624        .18142E-02** at limit **
  13  Prefactor     6.4130        14.607        .79245E-03   -.43587E-03
  14  norm          3.2000        3.6517        .15593E-03   -.25496E-03
  15  Prefactor     .10000E-03    15.984        .18142E-02** at limit **
  16  norm          3.9669        3.7760        .13878E-03   -.11723E-03
  17  Prefactor     13.063        11.671        .11083E-03   -.11520E-03
  18  norm          3.4417        2.6067        .11062E-03   -.22054E-03
  19  Prefactor     55.969        49.960        .53615E-04   -.73366E-04
  20  Prefactor     28.050        51.135        .75627E-04   -.70713E-04
  21  Prefactor     .10000E-03    3.6652        .15413E-02** at limit **
  22  norm          .33726        .76664        .10820E-02    .41291E-03
  23  Normalizat    .21158        .35131        .97034E-02    .31856E-04
  24  Prefactor     1.1657        .95791E-01    .13176E-03   -.32040E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 1.18588
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 5.41432
  Prefactor  = 76.3603
  Prefactor  = 0.000100001
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000100001
  Prefactor  = 6.41302
  norm       = 3.20001
  Prefactor  = 0.0001
  norm       = 3.96691
  Prefactor  = 13.0626
  norm       = 3.44173
  Prefactor  = 55.9695
  Prefactor  = 28.0501
  Prefactor  = 0.0001
  norm       = 0.337264
  Normalizat = 0.211583
  Prefactor  = 1.16565
 **********
 **   18 **HESSE 
 **********

 FCN=   6801.446     FROM HESSE     STATUS=OK           377 CALLS     4038 TOTAL
                     EDM=   .12E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          1.1859        5.4665        .15194E-04   -1.5490    
   2  Prefactor     .10000E-03    193.07        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    7.5263        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    17.760        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          5.4143        6.3774        .69075E-05   -1.5243    
   6  Prefactor     76.360        40.467        .91904E-05   -1.3958    
   7  Prefactor     .10000E-03    69.470        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          .10000E-03    34.590        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          .10000E-03    1.6838        .25185E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    4.0112        .36172E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    12.654        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    58.639        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     6.4130        14.601        .31698E-04   -1.5201    
  14  norm          3.2000        3.6481        .62371E-05   -1.5350    
  15  Prefactor     .10000E-03    15.984        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          3.9669        3.7502        .55511E-05   -1.5310    
  17  Prefactor     13.063        11.653        .44332E-05   -1.4985    
  18  norm          3.4417        2.6064        .44249E-05   -1.5337    
  19  Prefactor     55.969        49.947        .10723E-04   -1.4210    
  20  Prefactor     28.050        50.931        .15125E-04   -1.4648    
  21  Prefactor     .10000E-03    3.6653        .30826E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  norm          .33726        .76278        .43278E-04   -1.5592    
  23  Normalizat    .21158        .33905        .38814E-03   -1.2857    
  24  Prefactor     1.1657        .92940E-01    .26351E-04   -.87395    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.15287e-09
Minuit parameter uncertainties:
  1  5.09273
  2  0.000611456
  3  2.3275e-06
  4  2.60498e-05
  5  6.37819
  6  40.4819
  7  0.00060113
  8  4.43033e-05
  9  3.96026e-06
  10  7.49944e-06
  11  7.46239e-06
  12  0.00053487
  13  14.6091
  14  3.64836
  15  1.8024e-05
  16  3.75039
  17  11.6546
  18  2.60648
  19  49.9843
  20  51.01
  21  3.60762e-07
  22  0.762807
  23  0.342434
  24  0.0929534
Done.

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

Extracting fit parameters...

4FGL J0420.0+0805
   Spectrum: PowerLaw
192    Prefactor:  7.636e+01  4.048e+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:  1.166e+00  9.295e-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:  2.116e-01  3.424e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 6.20
Ra Dec: 65.009 8.100
Photon Index (Fixed Index): 2.54 +/- 0.00
Photon Flux (Fixed Index): 1.64e-07 +/- 8.68e-08
Energy Flux (Fixed Index): 4.54e-05 +/- 2.41e-05

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) = 6801.44594507
delta logL = 0.000241689347604

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6801.44562243
delta logL = 0.000564332865906

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    74.923       1.0000         .10000E-03   10000.    
     2 'Index     '    2.5606       1.0000          .0000       10.000    
     3 'Normalizat'    .20981       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.1658       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=   6801.446     FROM MIGRAD    STATUS=CONVERGED     93 CALLS      270 TOTAL
                     EDM=   .76E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     74.871        63.215        .46387E-04    .10078E-03
   2  Index         2.5596        .52530        .49588E-02    .23575E-04
   3  Normalizat    .21007        .30591        .97317E-02    .38490E-04
   4  Prefactor     1.1659        .91281E-01    .13174E-03    .60751E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 74.8711
  Index      = 2.55959
  Normalizat = 0.21007
  Prefactor  = 1.16593
 **********
 **   18 **HESSE 
 **********

 FCN=   6801.446     FROM HESSE     STATUS=OK            27 CALLS      297 TOTAL
                     EDM=   .57E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     74.871        59.117        .92774E-05   -1.3975    
   2  Index         2.5596        .49048        .19835E-03   -.50989    
   3  Normalizat    .21007        .29810        .38927E-03   -1.2868    
   4  Prefactor     1.1659        .89021E-01    .52697E-05   -.87386    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.6873e-11
Minuit parameter uncertainties:
  1  59.1633
  2  0.491517
  3  0.300402
  4  0.0890319
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/372541': 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) = 6801.44560889
delta logL = 0.000577873245675

Extracting fit parameters...

4FGL J0420.0+0805
   Spectrum: PowerLaw
192    Prefactor:  7.487e+01  5.916e+01  1.000e-04  1.000e+04 ( 1.000e-13)
193        Index:  2.560e+00  4.915e-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.166e+00  8.903e-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:  2.101e-01  3.004e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 6.20
Ra Dec: 65.009 8.100
Photon Index (Free Index): 2.56 +/- 0.49
Photon Flux (Free Index): 1.65e-07 +/- 9.35e-08
Energy Flux (Free Index): 4.50e-05 +/- 2.67e-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/372541/cmap_HighResolution_315273601_315532801_4FGL_J0420.0+0805_daily_bin293.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='1.64e-07', energy_flux2='4.50e-05', photon_flux_error='8.68e-08', dlogl='5.78e-04', energy_flux='4.54e-05', photon_flux2='1.65e-07', job_status='DONE', time_completed='2021-08-20 11:50:57.337053', photon_index_error2='0.49', photon_index2='2.56', ts='6.20', fit_tolerance='1e-08', GAL='1.17', photon_index_error='0.00', energy_flux_error2='2.67e-05', EG='0.21', time_epoch_completed='1629485457.34', return_code='0', job_id='372541', GAL2='1.17', EG2='0.21', return_code2='0', energy_flux_error='2.41e-05', photon_flux_error2='9.35e-08', ts2='6.20', photon_index='2.54' WHERE bin_id='293' AND source_name='4FGL J0420.0+0805' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Fri Aug 20 11:50:57 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0234>
Subject: Job 372541: <4FGL_J0420.0+0805_daily_bin293> in cluster <slac> Done

Job <4FGL_J0420.0+0805_daily_bin293> was submitted from host <rhel6-64q> by user <kocevski> in cluster <slac> at Fri Aug 20 11:35:36 2021
Job was executed on host(s) <bullet0234>, in queue <medium>, as user <kocevski> in cluster <slac> at Fri Aug 20 11:35:39 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:39 2021
Terminated at Fri Aug 20 11:50:59 2021
Results reported at Fri Aug 20 11:50:59 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0420.0+0805_daily_bin293 65.0086 8.0999 315273601 315532801 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 :                                 1255 MB
    Average Memory :                             260.07 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   918 sec.
    Turnaround time :                            923 sec.

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

