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


Performing analysis on: 4FGL_J0805.4+6147_daily_bin1510
RA = 121.356, Dec = 61.7937
tmin = 630720001, tmax = 630979201
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='138242', job_status='RUN', time_executed='2021-08-29 02:28:12.804778', time_epoch_executed='1630229292.8' WHERE source_name='4FGL J0805.4+6147' and cadence='daily' and bin_id='1510'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/138242

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/138242/ft1_4FGL_J0805.4+6147_daily_bin1510.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/138242/ft2_4FGL_J0805.4+6147_daily_bin1510.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/138242/ft1_4FGL_J0805.4+6147_daily_bin1510.fits outfile=/scratch/kocevski/138242/ft1_filteredMKT_4FGL_J0805.4+6147_daily_bin1510.fits ra=121.356 dec=61.7937 rad=12.0 tmin=630720001.0 tmax=630979201.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.58
user 2.72
sys 1.75

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/138242/ft2_4FGL_J0805.4+6147_daily_bin1510.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/138242/ft1_filteredMKT_4FGL_J0805.4+6147_daily_bin1510.fits evtable="EVENTS" outfile="/scratch/kocevski/138242/ft1_filtered_4FGL_J0805.4+6147_daily_bin1510.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 2.07
user 0.33
sys 1.69

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/138242/ft1_filtered_4FGL_J0805.4+6147_daily_bin1510.fits" evtable="EVENTS" scfile=/scratch/kocevski/138242/ft2_4FGL_J0805.4+6147_daily_bin1510.fits sctable="SC_DATA" outfile=/scratch/kocevski/138242/ltcube_630720001_630979201_4FGL_J0805.4+6147_daily_bin1510.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/138242/ft2_4FGL_J0805.4+6147_daily_bin1510.fits
.....................!
real 14.59
user 12.46
sys 2.02

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/138242/ft1_filtered_4FGL_J0805.4+6147_daily_bin1510.fits evtable="EVENTS" scfile=/scratch/kocevski/138242/ft2_4FGL_J0805.4+6147_daily_bin1510.fits sctable="SC_DATA" expcube=/scratch/kocevski/138242/ltcube_630720001_630979201_4FGL_J0805.4+6147_daily_bin1510.fits outfile=/scratch/kocevski/138242/expmap_630720001_630979201_4FGL_J0805.4+6147_daily_bin1510.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/138242/ltcube_630720001_630979201_4FGL_J0805.4+6147_daily_bin1510.fits
.....................!
real 191.69
user 185.11
sys 5.96

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/138242/ft1_filtered_4FGL_J0805.4+6147_daily_bin1510.fits scfile=/scratch/kocevski/138242/ft2_4FGL_J0805.4+6147_daily_bin1510.fits outfile=/scratch/kocevski/138242/cmap_630720001_630979201_4FGL_J0805.4+6147_daily_bin1510.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 2.05
user 0.38
sys 1.61

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/138242/ft1_filtered_4FGL_J0805.4+6147_daily_bin1510.fits scfile=/scratch/kocevski/138242/ft2_4FGL_J0805.4+6147_daily_bin1510.fits outfile=/scratch/kocevski/138242/cmap_HighResolution_630720001_630979201_4FGL_J0805.4+6147_daily_bin1510.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 2.17
user 0.37
sys 1.65

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

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/138242/ft1_filtered_4FGL_J0805.4+6147_daily_bin1510.fits', '/scratch/kocevski/138242/ft2_4FGL_J0805.4+6147_daily_bin1510.fits', expMap='/scratch/kocevski/138242/expmap_630720001_630979201_4FGL_J0805.4+6147_daily_bin1510.fits', expCube='/scratch/kocevski/138242/ltcube_630720001_630979201_4FGL_J0805.4+6147_daily_bin1510.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/138242/Model_4FGL_J0805.4+6147_daily_bin1510.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/138242/ft1_filtered_4FGL_J0805.4+6147_daily_bin1510.fits
Spacecraft file(s): /scratch/kocevski/138242/ft2_4FGL_J0805.4+6147_daily_bin1510.fits
Exposure map: /scratch/kocevski/138242/expmap_630720001_630979201_4FGL_J0805.4+6147_daily_bin1510.fits
Exposure cube: /scratch/kocevski/138242/ltcube_630720001_630979201_4FGL_J0805.4+6147_daily_bin1510.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/138242/Model_4FGL_J0805.4+6147_daily_bin1510.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) = 3570.79159499

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10027E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10097E-03   1.0000         .10000E-03   10000.    
     5 'norm      '    3.0389       1.0000         .10000E-03   10000.    
     6 'Prefactor '    10000.       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    15.603       1.0000         .10000E-03   10000.    
     9 'norm      '    10000.       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    189.42       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10138E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    14 'norm      '    15.696       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10010E-03   1.0000         .10000E-03   10000.    
    18 'norm      '    1.3414       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10009E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    24 'norm      '    .88373       1.0000         .10000E-03   10000.    
    25 'Prefactor '    7.7349       1.0000         .10000E-03   10000.    
    26 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    27 'Prefactor '    10.664       1.0000         .10000E-03   10000.    
    28 'Normalizat'    .10000E-01   1.0000         .10000E-01   10.000    
    29 'Prefactor '    .91748       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .7250E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   3562.852     FROM MIGRAD    STATUS=CONVERGED    177 CALLS     3815 TOTAL
                     EDM=   .13E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.5%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10360E-03    49.096        .82764E-06** at limit **
   2  Prefactor     .10065E-03    36.663       -.18261E-08** at limit **
   3  Prefactor     .10384E-03    46.365       -.48470E-06** at limit **
   4  Prefactor     .12004E-03    90.871       -.18047E-05** at limit **
   5  norm          3.0389        .80532       -.53133E-09   -.14559E-04
   6  Prefactor    10000.0        220.22       -.16216E-05** at limit **
   7  Prefactor     .10041E-03    22.667        .22338E-06** at limit **
   8  Prefactor     15.610        1.1922        .14910E-07    .12682E-03
   9  norm         10000.0        30.786       -.11280E-05** at limit **
  10  Prefactor     .10000E-03    8.7366       -.54332E-06** at limit **
  11  norm          189.41        2.2773        .11765E-07    .25452E-02
  12  Prefactor     .11113E-03    236.92        .10259E-05** at limit **
  13  norm          .10000E-03    21.738        .49940E-06** at limit **
  14  norm          15.699        1.0155        .13742E-08   -.13668E-04
  15  Prefactor     .10000E-03    .37963        .47092E-09** at limit **
  16  Prefactor     .10462E-03    30.572       -.13071E-05** at limit **
  17  Prefactor     .10000E-03    11.211        .13498E-06** at limit **
  18  norm          1.3417        1.5241       -.24370E-08    .80939E-05
  19  Prefactor     .10000E-03    7.6693        .63494E-08** at limit **
  20  Prefactor     .10000E-03    16.551       -.33904E-06** at limit **
  21  Prefactor     .10000E-03    8.2647       -.76606E-06** at limit **
  22  Prefactor     .10000E-03    6.0110       -.20731E-08** at limit **
  23  Prefactor     .10000E-03    2.0439        .78730E-09** at limit **
  24  norm          .88372        .73995        .82817E-09   -.34946E-04
  25  Prefactor     7.7365        1.4554       -.73473E-07    .38403E-02
  26  Prefactor     .10000E-03    8.3901        .12399E-05** at limit **
  27  Prefactor     10.664        1.0178       -.36807E-08    .21240E-03
  28  Normalizat    .10000E-01    .45323E-01   -.78796E-08** at limit **
  29  Prefactor     .91748        .10442        .31561E-07   -.13090E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000103601
  Prefactor  = 0.000100652
  Prefactor  = 0.000103839
  Prefactor  = 0.000120042
  norm       = 3.03892
  Prefactor  = 10000
  Prefactor  = 0.000100407
  Prefactor  = 15.61
  norm       = 10000
  Prefactor  = 0.000100001
  norm       = 189.406
  Prefactor  = 0.000111133
  norm       = 0.0001
  norm       = 15.6992
  Prefactor  = 0.0001
  Prefactor  = 0.000104616
  Prefactor  = 0.0001
  norm       = 1.34169
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000100001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.883722
  Prefactor  = 7.73654
  Prefactor  = 0.000100004
  Prefactor  = 10.6636
  Normalizat = 0.01
  Prefactor  = 0.917478
 **********
 **   18 **HESSE 
 **********

 FCN=   3562.852     FROM HESSE     STATUS=OK           597 CALLS     4412 TOTAL
                     EDM=   .77E-06    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10360E-03    94.292        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10065E-03    38.643        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10384E-03    112.29        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .12004E-03    157.76        .90712E-02   -1.5709    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          3.0389        .81993        .58189E-02   -1.5359    
   6  Prefactor    10000.0        631.60        .90712E-02    1.5705    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10041E-03    53.911        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     15.610        28.225        .25349E-02   -1.4918    
   9  norm         10000.0        58.743        .90712E-02    1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    8.7415        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          189.41        137.71        .73358E-03   -1.2947    
  12  Prefactor     .11113E-03    424.84        .90712E-02   -1.5709    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          .10000E-03    21.804        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          15.699        15.820        .25274E-02   -1.4915    
  15  Prefactor     .10000E-03    .37935        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10462E-03    44.696        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    11.223        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          1.3417        1.5579        .94598E-02   -1.5476    
  19  Prefactor     .10000E-03    7.6670        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    16.571        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10000E-03    8.2703        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     .10000E-03    6.0026        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     .10000E-03    2.0422        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  norm          .88372        .76639        .10139E-01   -1.5520    
  25  Prefactor     7.7365        8.0194        .36046E-02   -1.5152    
  26  Prefactor     .10000E-03    8.3689        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  Prefactor     10.664        7.2777        .30673E-02   -1.5055    
  28  Normalizat    .10000E-01    .43671E-01    .17746       -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  29  Prefactor     .91748        .11311        .45227E-01   -.95533    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 7.72672e-07
Minuit parameter uncertainties:
  1  0.036914
  2  0.0100456
  3  0.0416046
  4  0.112759
  5  0.819936
  6  0.690251
  7  0.00937883
  8  28.2493
  9  0.0277889
  10  0.000166752
  11  137.95
  12  0.138541
  13  0.000156446
  14  15.8242
  15  3.6337e-08
  16  0.0287503
  17  4.72627e-05
  18  1.55797
  19  4.07375e-07
  20  0.000154193
  21  0.000209048
  22  6.24304e-07
  23  1.40944e-07
  24  0.766402
  25  8.02053
  26  0.000352672
  27  7.27831
  28  6.46033e-09
  29  0.113144
Done.

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

Extracting fit parameters...

4FGL J0805.4+6147
   Spectrum: LogParabola
306         norm:  1.894e+02  1.380e+02  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:  9.175e-01  1.131e-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.000e-02  6.460e-09  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 2.45
Ra Dec: 121.356 61.794
Photon Index (Fixed Index): 2.63 +/- 0.00
Photon Flux (Fixed Index): 2.72e-06 +/- 1.98e-06
Energy Flux (Fixed Index): 6.37e-04 +/- 4.64e-04

TS (Fixed Index): 2.45
Ra Dec: 121.356 61.794
Photon Flux Upper Limit: 6.31e-06 ph cm-2 s-1
Energy Flux Upper Limit: 1.48e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/138242/likelihoodResults_630720001_630979201_4FGL_J0805.4+6147_daily_bin1510.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) = 3557.49416549
delta logL = 5.35764974144

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 3557.47272546
delta logL = 5.37908977326

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    81.587       1.0000         .10000E-03   10000.    
     2 'alpha     '    4.9293       1.0000          .0000       5.0000    
     3 'Normalizat'    .10000E-01   1.0000         .10000E-01   10.000    
     4 'Prefactor '    .89729       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.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   3557.473     FROM MIGRAD    STATUS=CONVERGED     91 CALLS      322 TOTAL
                     EDM=   .12E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          81.377        62.975        .44467E-04    .41001E-03
   2  alpha         4.9325        3.6754        .28527E-01    .10077E-04
   3  Normalizat    .10000E-01    .36327E-01    .67173E-02** at limit **
   4  Prefactor     .89763        .97478E-01    .19487E-03    .35744E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 81.377
  alpha      = 4.93248
  Normalizat = 0.01
  Prefactor  = 0.897635
 **********
 **   18 **HESSE 
 **********

 FCN=   3557.473     FROM HESSE     STATUS=OK            25 CALLS      347 TOTAL
                     EDM=   .10E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          81.377        81.249        .88934E-05   -1.3901    
   2  alpha         4.9325        4.1440        .11411E-02    1.3379    
   3  Normalizat    .10000E-01    .36328E-01    .13435E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .89763        .97818E-01    .38974E-04   -.96224    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.04275e-09
Minuit parameter uncertainties:
  1  81.3598
  2  0.973604
  3  2.03701e-06
  4  0.0978371
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/138242': 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) = 3557.4727104
delta logL = 5.3791048302

Extracting fit parameters...

4FGL J0805.4+6147
   Spectrum: LogParabola
306         norm:  8.138e+01  8.136e+01  1.000e-04  1.000e+04 ( 1.000e-11)
307        alpha:  4.932e+00  9.736e-01  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:  8.976e-01  9.784e-02  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.000e-02  2.037e-06  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 13.44
Ra Dec: 121.356 61.794
Photon Index (Free Index): 4.93 +/- 0.97
Photon Flux (Free Index): 8.16e-06 +/- 2.72e-06
Energy Flux (Free Index): 1.12e-03 +/- 3.83e-04

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/138242/cmap_HighResolution_630720001_630979201_4FGL_J0805.4+6147_daily_bin1510.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.48e-03', comment='SUCCESS', photon_flux='2.72e-06', energy_flux2='1.12e-03', photon_flux_error='1.98e-06', dlogl='5.38e+00', energy_flux='6.37e-04', photon_flux2='8.16e-06', job_status='DONE', time_completed='2021-08-29 02:40:44.886271', photon_index_error2='0.97', photon_index2='4.93', ts='2.45', fit_tolerance='1e-08', GAL='0.92', photon_index_error='0.00', photon_flux_upper_limit='6.31e-06', energy_flux_error2='3.83e-04', EG='0.01', time_epoch_completed='1630230044.89', return_code='0', job_id='138242', GAL2='0.90', EG2='0.01', return_code2='0', energy_flux_error='4.64e-04', photon_flux_error2='2.72e-06', ts2='13.44', photon_index='2.63' WHERE bin_id='1510' AND source_name='4FGL J0805.4+6147' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Aug 29 02:40:44 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0207>
Subject: Job 138242: <4FGL_J0805.4+6147_daily_bin1510> in cluster <slac> Done

Job <4FGL_J0805.4+6147_daily_bin1510> was submitted from host <rhel6-64j> by user <kocevski> in cluster <slac> at Sun Aug 29 02:25:22 2021
Job was executed on host(s) <bullet0207>, in queue <medium>, as user <kocevski> in cluster <slac> at Sun Aug 29 02:25:23 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:25:23 2021
Terminated at Sun Aug 29 02:40:45 2021
Results reported at Sun Aug 29 02:40:45 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0805.4+6147_daily_bin1510 121.356 61.7937 630720001 630979201 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 :                                   768.34 sec.
    Max Memory :                                 1258 MB
    Average Memory :                             303.47 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   922 sec.
    Turnaround time :                            923 sec.

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

