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


Performing analysis on: 4FGL_J0420.0+0805_daily_bin899
RA = 65.0086, Dec = 8.0999
tmin = 472348801, tmax = 472608001
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='376973', job_status='RUN', time_executed='2021-08-20 11:51:09.016381', time_epoch_executed='1629485469.02' WHERE source_name='4FGL J0420.0+0805' and cadence='daily' and bin_id='899'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/376973

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/376973/ft1_4FGL_J0420.0+0805_daily_bin899.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/376973/ft2_4FGL_J0420.0+0805_daily_bin899.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/376973/ft1_4FGL_J0420.0+0805_daily_bin899.fits outfile=/scratch/kocevski/376973/ft1_filteredMKT_4FGL_J0420.0+0805_daily_bin899.fits ra=65.0086 dec=8.0999 rad=12.0 tmin=472348801.0 tmax=472608001.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 5.18
user 3.60
sys 1.50

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/376973/ft1_filtered_4FGL_J0420.0+0805_daily_bin899.fits" evtable="EVENTS" scfile=/scratch/kocevski/376973/ft2_4FGL_J0420.0+0805_daily_bin899.fits sctable="SC_DATA" outfile=/scratch/kocevski/376973/ltcube_472348801_472608001_4FGL_J0420.0+0805_daily_bin899.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/376973/ft2_4FGL_J0420.0+0805_daily_bin899.fits
.....................!
real 13.79
user 11.86
sys 1.82

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/376973/ft1_filtered_4FGL_J0420.0+0805_daily_bin899.fits evtable="EVENTS" scfile=/scratch/kocevski/376973/ft2_4FGL_J0420.0+0805_daily_bin899.fits sctable="SC_DATA" expcube=/scratch/kocevski/376973/ltcube_472348801_472608001_4FGL_J0420.0+0805_daily_bin899.fits outfile=/scratch/kocevski/376973/expmap_472348801_472608001_4FGL_J0420.0+0805_daily_bin899.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/376973/ltcube_472348801_472608001_4FGL_J0420.0+0805_daily_bin899.fits
.....................!
real 193.41
user 185.66
sys 7.34

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/376973/ft1_filtered_4FGL_J0420.0+0805_daily_bin899.fits scfile=/scratch/kocevski/376973/ft2_4FGL_J0420.0+0805_daily_bin899.fits outfile=/scratch/kocevski/376973/cmap_472348801_472608001_4FGL_J0420.0+0805_daily_bin899.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.81
user 0.37
sys 1.42

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/376973/ft1_filtered_4FGL_J0420.0+0805_daily_bin899.fits scfile=/scratch/kocevski/376973/ft2_4FGL_J0420.0+0805_daily_bin899.fits outfile=/scratch/kocevski/376973/cmap_HighResolution_472348801_472608001_4FGL_J0420.0+0805_daily_bin899.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.85
user 0.38
sys 1.43

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

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 '    .10002E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    20.528       1.0000         .10000E-03   10000.    
     4 'Prefactor '    20.099       1.0000         .10000E-03   10000.    
     5 'norm      '    4.1064       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10013E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    4.0049       1.0000         .10000E-03   10000.    
     9 'norm      '    1.4220       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10011E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10184E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    16.254       1.0000         .10000E-03   10000.    
    14 'norm      '    8.1261       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    3.1431       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    18 'norm      '    .87102       1.0000         .10000E-03   10000.    
    19 'Prefactor '    12.140       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .15687E-03   1.0000         .10000E-03   10000.    
    22 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    23 'Normalizat'    .83280       1.0000         .10000E-01   10.000    
    24 'Prefactor '    1.0632       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=   10878.27     FROM MIGRAD    STATUS=CONVERGED    565 CALLS     2768 TOTAL
                     EDM=   .15E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  3.5%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    1.9447       -.40953E-08** at limit **
   2  Prefactor     .10001E-03    117.86       -.16216E-04** at limit **
   3  Prefactor     20.525        15.762       -.57361E-07    .43001E-04
   4  Prefactor     20.099        19.201       -.81982E-07    .17443E-04
   5  norm          4.1057        3.5569        .96727E-06   -.30915E-02
   6  Prefactor     .10000E-03    14.983        .17745E-06** at limit **
   7  Prefactor     .10003E-03    96.525        .25069E-04** at limit **
   8  norm          4.0035        22.860        .26979E-05   -.34357E-03
   9  norm          1.4221        .95444       -.42488E-07    .80245E-04
  10  Prefactor     .10000E-03    .75193       -.18076E-06** at limit **
  11  Prefactor     .10000E-03    17.865       -.44736E-06** at limit **
  12  Prefactor     .10000E-03    11.389       -.25706E-07** at limit **
  13  Prefactor     16.253        15.341        .89342E-07   -.54564E-04
  14  norm          8.1262        3.4691        .42420E-08   -.11418E-04
  15  Prefactor     .10000E-03    115.34       -.77598E-05** at limit **
  16  norm          3.1432        2.0670        .27130E-07   -.74570E-04
  17  Prefactor     .10000E-03    2.1882       -.36257E-08** at limit **
  18  norm          .87147        2.0044        .23826E-06   -.57727E-03
  19  Prefactor     12.156        27.428        .27436E-05    .68602E-04
  20  Prefactor     .10000E-03    22.090        .43350E-06** at limit **
  21  Prefactor     .10004E-03    7.8008       -.66515E-06** at limit **
  22  norm          .10000E-03    .23523       -.48585E-08** at limit **
  23  Normalizat    .83286        .26638       -.10918E-05    .56936E-04
  24  Prefactor     1.0632        .70054E-01    .59365E-07    .16532E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  Prefactor  = 0.000100013
  Prefactor  = 20.5248
  Prefactor  = 20.0992
  norm       = 4.10571
  Prefactor  = 0.0001
  Prefactor  = 0.000100032
  norm       = 4.00349
  norm       = 1.42209
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 16.2532
  norm       = 8.12623
  Prefactor  = 0.000100003
  norm       = 3.14316
  Prefactor  = 0.0001
  norm       = 0.871469
  Prefactor  = 12.1565
  Prefactor  = 0.0001
  Prefactor  = 0.000100045
  norm       = 0.0001
  Normalizat = 0.832861
  Prefactor  = 1.06319
 **********
 **   18 **HESSE 
 **********

 FCN=   10878.27     FROM HESSE     STATUS=OK           403 CALLS     3171 TOTAL
                     EDM=   .81E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    1.9481        .14204E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10001E-03    120.07        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     20.525        15.743        .88401E-04   -1.4802    
   4  Prefactor     20.099        19.191        .89340E-04   -1.4811    
   5  norm          4.1057        4.7965        .99469E-03   -1.5303    
   6  Prefactor     .10000E-03    15.027        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10003E-03    100.96        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          4.0035        25.053        .10076E-02   -1.5308    
   9  norm          1.4221        .95322        .79447E-04   -1.5469    
  10  Prefactor     .10000E-03    1.2634        .17074E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    17.928        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    11.393        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     16.253        15.345        .99343E-04   -1.4901    
  14  norm          8.1262        3.4586        .11972E-03   -1.5138    
  15  Prefactor     .10000E-03    116.61        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          3.1432        2.0648        .11694E-03   -1.5353    
  17  Prefactor     .10000E-03    2.1971        .15062E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          .87147        1.9983        .21095E-03   -1.5521    
  19  Prefactor     12.156        27.354        .11497E-03   -1.5011    
  20  Prefactor     .10000E-03    22.123        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10004E-03    57.220        .55220E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  norm          .10000E-03    .24552        .98534E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Normalizat    .83286        .28166        .56231E-03   -.98861    
  24  Prefactor     1.0632        .75789E-01    .14091E-03   -.90652    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 8.06084e-09
Minuit parameter uncertainties:
  1  6.82626e-08
  2  0.00253634
  3  15.7465
  4  19.1965
  5  4.79691
  6  1.47537e-05
  7  0.00358317
  8  20.0419
  9  0.953233
  10  3.47433e-06
  11  2.50105e-05
  12  2.2263e-07
  13  15.3489
  14  3.45866
  15  0.00121292
  16  2.06481
  17  2.0786e-06
  18  1.99843
  19  27.3821
  20  4.37928e-05
  21  0.00320409
  22  1.2364e-06
  23  0.282153
  24  0.0757968
Done.

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

Extracting fit parameters...

4FGL J0420.0+0805
   Spectrum: PowerLaw
192    Prefactor:  1.000e-04  1.475e-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.063e+00  7.580e-02  0.000e+00  1.000e+01 ( 1.000e+00)
474        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
475        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
472   Normalization:  8.329e-01  2.822e-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.04e-07 ph cm-2 s-1
Energy Flux Upper Limit: 8.07e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/376973/likelihoodResults_472348801_472608001_4FGL_J0420.0+0805_daily_bin899.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) = 10878.2697046
delta logL = -0.000317154899676

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 10878.2693874
delta logL = 8.04375304142e-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.5184       1.0000          .0000       10.000    
     3 'Normalizat'    .83286       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0632       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=   10878.27     FROM MIGRAD    STATUS=CONVERGED     93 CALLS      255 TOTAL
                     EDM=   .21E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10231E-03    11.620        .18142E-01** at limit **
   2  Index         2.4372        8.5325        .50000        .10954E-04
   3  Normalizat    .83286        .56843E-02    .56231E-03   -.15434E-03
   4  Prefactor     1.0632        .16060E-02    .14091E-03   -.51474E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000102306
  Index      = 2.4372
  Normalizat = 0.832857
  Prefactor  = 1.06319
 **********
 **   18 **HESSE 
 **********

 FCN=   10878.27     FROM HESSE     STATUS=NOT POSDEF    29 CALLS      284 TOTAL
                     EDM=   .15E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10231E-03    83.964        .36285E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.4372        5.4423        .50000       -.53816    
   3  Normalizat    .83286        .15283E-01    .22492E-04   -.98861    
   4  Prefactor     1.0632        .43178E-02    .56365E-05   -.90652    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 1.46605e-09
Minuit parameter uncertainties:
  1  0.0278671
  2  331.615
  3  0.0152826
  4  0.00431781
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/376973': 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) = 10878.2693872
delta logL = 2.39237124333e-07

Extracting fit parameters...

4FGL J0420.0+0805
   Spectrum: PowerLaw
192    Prefactor:  1.023e-04  2.787e-02  1.000e-04  1.000e+04 ( 1.000e-13)
193        Index:  2.437e+00  3.316e+02  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.063e+00  4.318e-03  0.000e+00  1.000e+01 ( 1.000e+00)
474        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
475        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
472   Normalization:  8.329e-01  1.528e-02  1.000e-02  1.000e+01 ( 1.000e+00)


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

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

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='8.07e-03', job_status='DONE', photon_flux_upper_limit='1.04e-07', time_completed='2021-08-20 12:06:45.618954', job_id='376973', GAL2='1.06', fit_tolerance='1e-08', EG2='0.83', EG='0.83', time_epoch_completed='1629486405.62', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.06', dlogl='2.39e-07', ts2='-0.00', photon_index_error='0.00', photon_index='2.54' WHERE bin_id='899' AND source_name='4FGL J0420.0+0805' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Fri Aug 20 12:06:45 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0233>
Subject: Job 376973: <4FGL_J0420.0+0805_daily_bin899> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0420.0+0805_daily_bin899 65.0086 8.0999 472348801 472608001 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 :                                   955.11 sec.
    Max Memory :                                 1255 MB
    Average Memory :                             358.86 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              7
    Max Threads :                                21
    Run time :                                   974 sec.
    Turnaround time :                            976 sec.

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

