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


Performing analysis on: 4FGL_J0805.4+6147_daily_bin654
RA = 121.356, Dec = 61.7937
tmin = 408844801, tmax = 409104001
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='130971', job_status='RUN', time_executed='2021-08-29 02:01:19.030090', time_epoch_executed='1630227679.03' WHERE source_name='4FGL J0805.4+6147' and cadence='daily' and bin_id='654'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/130971

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/130971/ft1_4FGL_J0805.4+6147_daily_bin654.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/130971/ft2_4FGL_J0805.4+6147_daily_bin654.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/130971/ft1_4FGL_J0805.4+6147_daily_bin654.fits outfile=/scratch/kocevski/130971/ft1_filteredMKT_4FGL_J0805.4+6147_daily_bin654.fits ra=121.356 dec=61.7937 rad=12.0 tmin=408844801.0 tmax=409104001.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.09
user 4.12
sys 0.43

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/130971/ft2_4FGL_J0805.4+6147_daily_bin654.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/130971/ft2_4FGL_J0805.4+6147_daily_bin654.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/130971/ft1_filteredMKT_4FGL_J0805.4+6147_daily_bin654.fits evtable="EVENTS" outfile="/scratch/kocevski/130971/ft1_filtered_4FGL_J0805.4+6147_daily_bin654.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.33
sys 0.37

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/130971/ft1_filtered_4FGL_J0805.4+6147_daily_bin654.fits" evtable="EVENTS" scfile=/scratch/kocevski/130971/ft2_4FGL_J0805.4+6147_daily_bin654.fits sctable="SC_DATA" outfile=/scratch/kocevski/130971/ltcube_408844801_409104001_4FGL_J0805.4+6147_daily_bin654.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/130971/ft2_4FGL_J0805.4+6147_daily_bin654.fits
.....................!
real 14.31
user 11.32
sys 0.57

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/130971/ft1_filtered_4FGL_J0805.4+6147_daily_bin654.fits evtable="EVENTS" scfile=/scratch/kocevski/130971/ft2_4FGL_J0805.4+6147_daily_bin654.fits sctable="SC_DATA" expcube=/scratch/kocevski/130971/ltcube_408844801_409104001_4FGL_J0805.4+6147_daily_bin654.fits outfile=/scratch/kocevski/130971/expmap_408844801_409104001_4FGL_J0805.4+6147_daily_bin654.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/130971/ltcube_408844801_409104001_4FGL_J0805.4+6147_daily_bin654.fits
.....................!
real 192.57
user 185.60
sys 4.64

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 225 point sources and 0 extended sources

Setting source of interest to:
4FGL J0805.4+6147 @ 121.356 61.7937

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/130971/ft1_filtered_4FGL_J0805.4+6147_daily_bin654.fits scfile=/scratch/kocevski/130971/ft2_4FGL_J0805.4+6147_daily_bin654.fits outfile=/scratch/kocevski/130971/cmap_408844801_409104001_4FGL_J0805.4+6147_daily_bin654.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=121.356 yref=61.7937 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.09
user 0.38
sys 0.35

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/130971/ft1_filtered_4FGL_J0805.4+6147_daily_bin654.fits scfile=/scratch/kocevski/130971/ft2_4FGL_J0805.4+6147_daily_bin654.fits outfile=/scratch/kocevski/130971/cmap_HighResolution_408844801_409104001_4FGL_J0805.4+6147_daily_bin654.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=121.356 yref=61.7937 axisrot=0.0 rafield="RA" decfield="DEC" proj="AIT" hpx_ordering_scheme="RING" hpx_order=3 hpx_ebin=yes hpx_region="" evtable="EVENTS" sctable="SC_DATA" efield="ENERGY" tfield="TIME" chatter=2 clobber=yes debug=no gui=no mode="ql"

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

This is gtbin version HEAD
real 0.77
user 0.37
sys 0.37

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/130971/ft1_filtered_4FGL_J0805.4+6147_daily_bin654.fits evtable="EVENTS" scfile=/scratch/kocevski/130971/ft2_4FGL_J0805.4+6147_daily_bin654.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/130971/Model_4FGL_J0805.4+6147_daily_bin654.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/130971/ft1_filtered_4FGL_J0805.4+6147_daily_bin654.fits........................!
real 21.19
user 19.14
sys 1.45

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/130971/ft1_filtered_4FGL_J0805.4+6147_daily_bin654.fits', '/scratch/kocevski/130971/ft2_4FGL_J0805.4+6147_daily_bin654.fits', expMap='/scratch/kocevski/130971/expmap_408844801_409104001_4FGL_J0805.4+6147_daily_bin654.fits', expCube='/scratch/kocevski/130971/ltcube_408844801_409104001_4FGL_J0805.4+6147_daily_bin654.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/130971/Model_4FGL_J0805.4+6147_daily_bin654.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J0805.4+6147'

4FGL J0805.4+6147
   Spectrum: LogParabola
306         norm:  1.245e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-11)
307        alpha:  2.635e+00  0.000e+00  0.000e+00  5.000e+00 ( 1.000e+00) fixed
308         beta:  1.845e-01  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
309           Eb:  3.489e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/130971/ft1_filtered_4FGL_J0805.4+6147_daily_bin654.fits
Spacecraft file(s): /scratch/kocevski/130971/ft2_4FGL_J0805.4+6147_daily_bin654.fits
Exposure map: /scratch/kocevski/130971/expmap_408844801_409104001_4FGL_J0805.4+6147_daily_bin654.fits
Exposure cube: /scratch/kocevski/130971/ltcube_408844801_409104001_4FGL_J0805.4+6147_daily_bin654.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/130971/Model_4FGL_J0805.4+6147_daily_bin654.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) = 759.809791409

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10034E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10012E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
     5 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    65.347       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .11851E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    178.45       1.0000         .10000E-03   10000.    
     9 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    77.474       1.0000         .10000E-03   10000.    
    11 'norm      '    9.6346       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10027E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    14 'norm      '    1.8419       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10046E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    18 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    34.564       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10121E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    4.1520       1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10024E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    63.798       1.0000         .10000E-03   10000.    
    24 'norm      '    .18799E-02   1.0000         .10000E-03   10000.    
    25 'Prefactor '    76.507       1.0000         .10000E-03   10000.    
    26 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
    27 'Prefactor '    .10018E-03   1.0000         .10000E-03   10000.    
    28 'Normalizat'    1.4760       1.0000         .10000E-01   10.000    
    29 'Prefactor '    .29911       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .7250E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   759.7477     FROM MIGRAD    STATUS=CONVERGED    715 CALLS     3667 TOTAL
                     EDM=   .14E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .3%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    56.370       -.61035E-05** at limit **
   2  Prefactor     .10000E-03    46.068        .33417E-04** at limit **
   3  Prefactor     .10000E-03    27.881        .86523E-05** at limit **
   4  Prefactor     .10000E-03    27.084       -.18984E-05** at limit **
   5  norm          .10000E-03    .82806       -.55929E-07** at limit **
   6  Prefactor     65.341        74.195       -.23908E-05   -.12457E-04
   7  Prefactor     .10000E-03    487.52       -.44751E-04** at limit **
   8  Prefactor     178.47        139.11        .13441E-04   -.73903E-05
   9  norm          .10000E-03    1.1804        .60165E-07** at limit **
  10  Prefactor     77.593        130.41        .10791E-03   -.13658E-04
  11  norm          9.6356        10.014        .79234E-05   -.29832E-04
  12  Prefactor     .10000E-03    66.394       -.47198E-04** at limit **
  13  norm          .10000E-03    4.8925        .24013E-07** at limit **
  14  norm          1.8417        4.2307        .64838E-06   -.13433E-03
  15  Prefactor     .10000E-03    4.5546       -.94694E-06** at limit **
  16  Prefactor     .10000E-03    14.750        .48945E-08** at limit **
  17  Prefactor     .10000E-03    6.1283        .16984E-07** at limit **
  18  norm          .10000E-03    2.6529       -.53807E-07** at limit **
  19  Prefactor     34.563        33.351        .66323E-05   -.14299E-04
  20  Prefactor     .10000E-03    90.369        .20239E-04** at limit **
  21  Prefactor     4.0851        159.54       -.44379E-05   -.16236E-04
  22  Prefactor     .10000E-03    31.705       -.77935E-05** at limit **
  23  Prefactor     63.832        47.069       -.45624E-05   -.26933E-03
  24  norm          .10075E-03    4.3426        .12213E-05** at limit **
  25  Prefactor     76.529        69.579        .86802E-05   -.86678E-04
  26  Prefactor     .10000E-03    35.062       -.94426E-05** at limit **
  27  Prefactor     .10000E-03    90.787        .25891E-04** at limit **
  28  Normalizat    1.4758        .58090       -.21012E-04    .88597E-05
  29  Prefactor     .29930        .35466       -.53085E-05   -.18186E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 65.3407
  Prefactor  = 0.000100003
  Prefactor  = 178.472
  norm       = 0.0001
  Prefactor  = 77.5934
  norm       = 9.63561
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 1.84173
  Prefactor  = 0.000100002
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 34.5634
  Prefactor  = 0.0001
  Prefactor  = 4.0851
  Prefactor  = 0.0001
  Prefactor  = 63.8322
  norm       = 0.000100746
  Prefactor  = 76.5294
  Prefactor  = 0.0001
  Prefactor  = 0.000100001
  Normalizat = 1.47576
  Prefactor  = 0.299299
 **********
 **   18 **HESSE 
 **********

 FCN=   759.7477     FROM HESSE     STATUS=OK           533 CALLS     4200 TOTAL
                     EDM=   .10E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    56.369        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    46.059        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    27.881        .14224E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    27.086        .14019E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          .10000E-03    .82959        .24487E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     65.341        74.149        .24823E-03   -1.4090    
   7  Prefactor     .10000E-03    487.67        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     178.47        139.54        .15107E-03   -1.3028    
   9  norm          .10000E-03    1.1827        .29250E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     77.593        130.28        .22811E-03   -1.3944    
  11  norm          9.6356        10.036        .84609E-04   -1.5087    
  12  Prefactor     .10000E-03    66.451        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          .10000E-03    4.8928        .59560E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          1.8417        4.1917        .83487E-04   -1.5437    
  15  Prefactor     .10000E-03    4.5849        .57463E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    14.752        .10344E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    6.1285        .66664E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          .10000E-03    2.6546        .43856E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     34.563        33.331        .68163E-04   -1.4531    
  20  Prefactor     .10000E-03    90.356        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     4.0851        160.84        .19781E-03   -1.5304    
  22  Prefactor     .10000E-03    31.707        .15169E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     63.832        45.551        .25121E-03   -1.4108    
  24  norm          .10075E-03    96.859        .10381E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Prefactor     76.529        69.469        .45908E-04   -1.3956    
  26  Prefactor     .10000E-03    35.061        .15952E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  Prefactor     .10000E-03    91.083        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  28  Normalizat    1.4758        .64189        .23416E-03   -.78462    
  29  Prefactor     .29930        .38974        .31673E-03   -1.2230    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.03781e-08
Minuit parameter uncertainties:
  1  9.34064e-06
  2  2.21186e-05
  3  7.12257e-06
  4  2.17508e-05
  5  5.16499e-06
  6  74.2539
  7  0.00253174
  8  139.795
  9  6.96754e-06
  10  130.761
  11  10.0373
  12  0.000223065
  13  2.25379e-06
  14  4.19238
  15  0.000205954
  16  6.56861e-06
  17  5.0171e-07
  18  8.80346e-06
  19  33.3493
  20  9.93426e-05
  21  51.4143
  22  1.85418e-05
  23  45.5759
  24  0.0170295
  25  69.5425
  26  2.71935e-05
  27  0.000503978
  28  0.645473
  29  0.39322
Done.

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

Extracting fit parameters...

4FGL J0805.4+6147
   Spectrum: LogParabola
306         norm:  9.636e+00  1.004e+01  1.000e-04  1.000e+04 ( 1.000e-11)
307        alpha:  2.635e+00  0.000e+00  0.000e+00  5.000e+00 ( 1.000e+00) fixed
308         beta:  1.845e-01  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
309           Eb:  3.489e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
722    Prefactor:  2.993e-01  3.932e-01  0.000e+00  1.000e+01 ( 1.000e+00)
723        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
724        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
721   Normalization:  1.476e+00  6.455e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 2.40
Ra Dec: 121.356 61.794
Photon Index (Fixed Index): 2.63 +/- 0.00
Photon Flux (Fixed Index): 1.38e-07 +/- 1.44e-07
Energy Flux (Fixed Index): 3.24e-05 +/- 3.37e-05

TS (Fixed Index): 2.40
Ra Dec: 121.356 61.794
Photon Flux Upper Limit: 5.37e-07 ph cm-2 s-1
Energy Flux Upper Limit: 1.26e-04 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/130971/likelihoodResults_408844801_409104001_4FGL_J0805.4+6147_daily_bin654.txt

Performing a free index iterative likelihood fit...

Freezing all point sources, except source of interest...

Done.

Freeing candidate source...
Done.

Fit tolerance = 1

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 759.739762185
delta logL = 0.00794226754124

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 759.739394519
delta logL = 0.00830993381237

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    9.7322       1.0000         .10000E-03   10000.    
     2 'alpha     '    2.4627       1.0000          .0000       5.0000    
     3 'Normalizat'    1.4891       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .29388       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .7250E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   759.7394     FROM MIGRAD    STATUS=CONVERGED     55 CALLS      194 TOTAL
                     EDM=   .40E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          9.7513        11.877        .32113E-02   -.77994E-04
   2  alpha         2.4661        1.3610        .31091        .20217E-04
   3  Normalizat    1.4884        .54723        .52791E-01   -.15764E-03
   4  Prefactor     .29417        .35158        .72087E-01   -.93780E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 9.75128
  alpha      = 2.46612
  Normalizat = 1.48836
  Prefactor  = 0.294165
 **********
 **   18 **HESSE 
 **********

 FCN=   759.7394     FROM HESSE     STATUS=OK            29 CALLS      223 TOTAL
                     EDM=   .35E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          9.7513        10.240        .86593E-04   -1.5083    
   2  alpha         2.4661        1.2415        .13074E-01   -.13551E-01
   3  Normalizat    1.4884        .60487        .23339E-03   -.78106    
   4  Prefactor     .29417        .38489        .31935E-03   -1.2261    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.49721e-10
Minuit parameter uncertainties:
  1  10.242
  2  1.29916
  3  0.607837
  4  0.388299
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/130971': 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) = 759.739389181
delta logL = 0.00831527216656

Extracting fit parameters...

4FGL J0805.4+6147
   Spectrum: LogParabola
306         norm:  9.751e+00  1.024e+01  1.000e-04  1.000e+04 ( 1.000e-11)
307        alpha:  2.466e+00  1.299e+00  0.000e+00  5.000e+00 ( 1.000e+00)
308         beta:  1.845e-01  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
309           Eb:  3.489e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
722    Prefactor:  2.942e-01  3.883e-01  0.000e+00  1.000e+01 ( 1.000e+00)
723        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
724        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
721   Normalization:  1.488e+00  6.078e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 2.40
Ra Dec: 121.356 61.794
Photon Index (Free Index): 2.47 +/- 1.30
Photon Flux (Free Index): 1.27e-07 +/- 1.61e-07
Energy Flux (Free Index): 3.27e-05 +/- 3.44e-05

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/130971/cmap_HighResolution_408844801_409104001_4FGL_J0805.4+6147_daily_bin654.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.26e-04', comment='SUCCESS', photon_flux='1.38e-07', energy_flux2='3.27e-05', photon_flux_error='1.44e-07', dlogl='8.32e-03', energy_flux='3.24e-05', photon_flux2='1.27e-07', job_status='DONE', time_completed='2021-08-29 02:08:32.110274', photon_index_error2='1.30', photon_index2='2.47', ts='2.40', fit_tolerance='1e-08', GAL='0.30', photon_index_error='0.00', photon_flux_upper_limit='5.37e-07', energy_flux_error2='3.44e-05', EG='1.48', time_epoch_completed='1630228112.11', return_code='0', job_id='130971', GAL2='0.29', EG2='1.49', return_code2='0', energy_flux_error='3.37e-05', photon_flux_error2='1.61e-07', ts2='2.40', photon_index='2.63' WHERE bin_id='654' AND source_name='4FGL J0805.4+6147' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Aug 29 02:08:32 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0052>
Subject: Job 130971: <4FGL_J0805.4+6147_daily_bin654> in cluster <slac> Done

Job <4FGL_J0805.4+6147_daily_bin654> was submitted from host <rhel6-64h> by user <kocevski> in cluster <slac> at Sun Aug 29 02:00:52 2021
Job was executed on host(s) <bullet0052>, in queue <medium>, as user <kocevski> in cluster <slac> at Sun Aug 29 02:00:53 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Sun Aug 29 02:00:53 2021
Terminated at Sun Aug 29 02:08:32 2021
Results reported at Sun Aug 29 02:08:32 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0805.4+6147_daily_bin654 121.356 61.7937 408844801 409104001 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J0805.4+6147 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   425.02 sec.
    Max Memory :                                 1095 MB
    Average Memory :                             254.53 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   459 sec.
    Turnaround time :                            460 sec.

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

