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


Performing analysis on: 4FGL_J0809.3+4053_daily_bin974
RA = 122.33, Dec = 40.8954
tmin = 491788801, tmax = 492048001
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='231113', job_status='RUN', time_executed='2021-08-29 07:56:37.649686', time_epoch_executed='1630248997.65' WHERE source_name='4FGL J0809.3+4053' and cadence='daily' and bin_id='974'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/231113

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/231113/ft1_4FGL_J0809.3+4053_daily_bin974.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/231113/ft2_4FGL_J0809.3+4053_daily_bin974.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/231113/ft1_4FGL_J0809.3+4053_daily_bin974.fits outfile=/scratch/kocevski/231113/ft1_filteredMKT_4FGL_J0809.3+4053_daily_bin974.fits ra=122.33 dec=40.8954 rad=12.0 tmin=491788801.0 tmax=492048001.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 11.54
user 3.99
sys 7.50

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/231113/ft2_4FGL_J0809.3+4053_daily_bin974.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/231113/ft2_4FGL_J0809.3+4053_daily_bin974.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/231113/ft1_filteredMKT_4FGL_J0809.3+4053_daily_bin974.fits evtable="EVENTS" outfile="/scratch/kocevski/231113/ft1_filtered_4FGL_J0809.3+4053_daily_bin974.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 7.82
user 0.32
sys 7.46

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/231113/ft1_filtered_4FGL_J0809.3+4053_daily_bin974.fits" evtable="EVENTS" scfile=/scratch/kocevski/231113/ft2_4FGL_J0809.3+4053_daily_bin974.fits sctable="SC_DATA" outfile=/scratch/kocevski/231113/ltcube_491788801_492048001_4FGL_J0809.3+4053_daily_bin974.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/231113/ft2_4FGL_J0809.3+4053_daily_bin974.fits
.....................!
real 20.39
user 11.81
sys 8.53

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/231113/ft1_filtered_4FGL_J0809.3+4053_daily_bin974.fits evtable="EVENTS" scfile=/scratch/kocevski/231113/ft2_4FGL_J0809.3+4053_daily_bin974.fits sctable="SC_DATA" expcube=/scratch/kocevski/231113/ltcube_491788801_492048001_4FGL_J0809.3+4053_daily_bin974.fits outfile=/scratch/kocevski/231113/expmap_491788801_492048001_4FGL_J0809.3+4053_daily_bin974.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/231113/ltcube_491788801_492048001_4FGL_J0809.3+4053_daily_bin974.fits
.....................!
real 200.03
user 185.31
sys 14.27

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

Setting source of interest to:
4FGL J0809.3+4053 @ 122.33 40.8954

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/231113/ft1_filtered_4FGL_J0809.3+4053_daily_bin974.fits scfile=/scratch/kocevski/231113/ft2_4FGL_J0809.3+4053_daily_bin974.fits outfile=/scratch/kocevski/231113/cmap_491788801_492048001_4FGL_J0809.3+4053_daily_bin974.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=122.33 yref=40.8954 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 7.60
user 0.37
sys 7.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/231113/ft1_filtered_4FGL_J0809.3+4053_daily_bin974.fits scfile=/scratch/kocevski/231113/ft2_4FGL_J0809.3+4053_daily_bin974.fits outfile=/scratch/kocevski/231113/cmap_HighResolution_491788801_492048001_4FGL_J0809.3+4053_daily_bin974.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=122.33 yref=40.8954 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 7.74
user 0.38
sys 7.32

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/231113/ft1_filtered_4FGL_J0809.3+4053_daily_bin974.fits evtable="EVENTS" scfile=/scratch/kocevski/231113/ft2_4FGL_J0809.3+4053_daily_bin974.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/231113/Model_4FGL_J0809.3+4053_daily_bin974.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/231113/ft1_filtered_4FGL_J0809.3+4053_daily_bin974.fits......................!
real 42.25
user 31.54
sys 10.60

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/231113/ft1_filtered_4FGL_J0809.3+4053_daily_bin974.fits', '/scratch/kocevski/231113/ft2_4FGL_J0809.3+4053_daily_bin974.fits', expMap='/scratch/kocevski/231113/expmap_491788801_492048001_4FGL_J0809.3+4053_daily_bin974.fits', expCube='/scratch/kocevski/231113/ltcube_491788801_492048001_4FGL_J0809.3+4053_daily_bin974.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/231113/Model_4FGL_J0809.3+4053_daily_bin974.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J0809.3+4053'

4FGL J0809.3+4053
   Spectrum: PowerLaw
269    Prefactor:  1.019e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-12)
270        Index:  2.588e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
271        Scale:  6.589e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/231113/ft1_filtered_4FGL_J0809.3+4053_daily_bin974.fits
Spacecraft file(s): /scratch/kocevski/231113/ft2_4FGL_J0809.3+4053_daily_bin974.fits
Exposure map: /scratch/kocevski/231113/expmap_491788801_492048001_4FGL_J0809.3+4053_daily_bin974.fits
Exposure cube: /scratch/kocevski/231113/ltcube_491788801_492048001_4FGL_J0809.3+4053_daily_bin974.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/231113/Model_4FGL_J0809.3+4053_daily_bin974.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) = 2347.98259452

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    43.941       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10091E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    115.23       1.0000         .10000E-03   10000.    
     4 'Prefactor '    46.980       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10789E-03   1.0000         .10000E-03   10000.    
     6 'norm      '    65.417       1.0000         .10000E-03   10000.    
     7 'norm      '    13.093       1.0000         .10000E-03   10000.    
     8 'Prefactor '    37.352       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .11780E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10241E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    .10028E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    1.5228       1.0000         .10000E-03   10000.    
    13 'Prefactor '    17.454       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10813E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10940E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    14.022       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10098E-03   1.0000         .10000E-03   10000.    
    18 'norm      '    .10015E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10303E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .36405E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .67183E-03   1.0000         .10000E-03   10000.    
    22 'Normalizat'    .26662       1.0000         .10000E-01   10.000    
    23 'Prefactor '    1.3530       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6020E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   2347.979     FROM MIGRAD    STATUS=CONVERGED    491 CALLS     3435 TOTAL
                     EDM=   .13E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  4.5%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          43.921        30.565       -.12344E-05    .14924E-04
   2  Prefactor     .10000E-03    24.247        .17544E-05** at limit **
   3  Prefactor     115.17        150.83       -.22038E-05    .48562E-05
   4  Prefactor     47.018        51.010        .44965E-05    .84631E-04
   5  Prefactor     .10000E-03    32.074       -.12799E-05** at limit **
   6  norm          65.371        30.053        .10587E-05    .10394E-03
   7  norm          13.084        11.070       -.12282E-06    .64679E-04
   8  Prefactor     37.347        28.164        .28869E-06    .71200E-04
   9  Prefactor     .10000E-03    51.933        .22065E-05** at limit **
  10  Prefactor     .10000E-03    7.2977        .94319E-06** at limit **
  11  norm          .10000E-03    3.1837        .90485E-07** at limit **
  12  norm          1.5220        1.4146        .14270E-06    .17716E-03
  13  Prefactor     17.379        49.279       -.10991E-05   -.14013E-04
  14  Prefactor     .10000E-03    54.649        .33156E-05** at limit **
  15  Prefactor     .10000E-03    7.1537        .89826E-06** at limit **
  16  Prefactor     14.038        105.22        .64090E-05    .55056E-04
  17  Prefactor     .10000E-03    32.236       -.32166E-06** at limit **
  18  norm          .10000E-03    10.387        .20781E-06** at limit **
  19  Prefactor     .10000E-03    5.0574        .34213E-06** at limit **
  20  Prefactor     .10000E-03    84.735        .30164E-06** at limit **
  21  Prefactor     .10208E-03    17.167       -.16514E-05** at limit **
  22  Normalizat    .26730        .37267       -.52177E-04    .57795E-04
  23  Prefactor     1.3527        .27457        .16463E-04    .18986E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 43.9208
  Prefactor  = 0.0001
  Prefactor  = 115.174
  Prefactor  = 47.0183
  Prefactor  = 0.0001
  norm       = 65.3708
  norm       = 13.0837
  Prefactor  = 37.3469
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 1.52203
  Prefactor  = 17.3794
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 14.0381
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000102078
  Normalizat = 0.267305
  Prefactor  = 1.35266
 **********
 **   18 **HESSE 
 **********

 FCN=   2347.979     FROM HESSE     STATUS=OK           364 CALLS     3799 TOTAL
                     EDM=   .17E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          43.921        30.580        .60480E-04   -1.4382    
   2  Prefactor     .10000E-03    24.323        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     115.17        150.86        .18740E-03   -1.3557    
   4  Prefactor     47.018        51.110        .29250E-03   -1.4335    
   5  Prefactor     .10000E-03    32.116        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          65.371        30.164        .49620E-04   -1.4089    
   7  norm          13.084        11.071        .11070E-03   -1.4984    
   8  Prefactor     37.347        28.172        .65577E-04   -1.4485    
   9  Prefactor     .10000E-03    51.941        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    7.3285        .12783E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          .10000E-03    3.1842        .84444E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          1.5220        1.4092        .52642E-04   -1.5461    
  13  Prefactor     17.379        49.319        .95868E-04   -1.4874    
  14  Prefactor     .10000E-03    54.949        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    7.2819        .12650E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     14.038        105.07        .10696E-03   -1.4958    
  17  Prefactor     .10000E-03    32.301        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          .10000E-03    10.391        .15255E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    5.0643        .10644E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    84.735        .21306E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10208E-03    119.38        .38456E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Normalizat    .26730        .37373        .55396E-03   -1.2484    
  23  Prefactor     1.3527        .27487        .19268E-03   -.81754    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.65433e-08
Minuit parameter uncertainties:
  1  30.5907
  2  2.36981e-05
  3  151.363
  4  51.1574
  5  9.46937e-05
  6  30.1711
  7  11.073
  8  28.1818
  9  0.000135142
  10  3.84124e-06
  11  5.9145e-06
  12  1.4092
  13  49.4345
  14  0.000138792
  15  2.39485e-05
  16  77.0015
  17  0.000218653
  18  2.44596e-06
  19  3.72828e-06
  20  2.02957e-05
  21  0.0315641
  22  0.377297
  23  0.27517
Done.

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

Extracting fit parameters...

4FGL J0809.3+4053
   Spectrum: PowerLaw
269    Prefactor:  1.000e-04  3.841e-06  1.000e-04  1.000e+04 ( 1.000e-12)
270        Index:  2.588e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
271        Scale:  6.589e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
599    Prefactor:  1.353e+00  2.752e-01  0.000e+00  1.000e+01 ( 1.000e+00)
600        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
601        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
598   Normalization:  2.673e-01  3.773e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): -0.00
Ra Dec: 122.330 40.895
Photon Flux Upper Limit: 2.24e-07 ph cm-2 s-1
Energy Flux Upper Limit: 1.75e-02 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/231113/likelihoodResults_491788801_492048001_4FGL_J0809.3+4053_daily_bin974.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) = 2347.97956968
delta logL = -0.000644118917535

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 2347.97892691
delta logL = -1.34675292429e-06

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10008E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.5859       1.0000          .0000       10.000    
     3 'Normalizat'    .26672       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.3531       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6020E+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=   2347.979     FROM MIGRAD    STATUS=CONVERGED     93 CALLS      226 TOTAL
                     EDM=   .14E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    11.349        .12785E-02** at limit **
   2  Index         2.4170        7.0563        .92977E-01    .21826E-07
   3  Normalizat    .26730        .35574        .55384E-03    .11670E-04
   4  Prefactor     1.3527        .26982        .19268E-03    .34340E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Index      = 2.41702
  Normalizat = 0.267305
  Prefactor  = 1.35266
 **********
 **   18 **HESSE 
 **********

 FCN=   2347.979     FROM HESSE     STATUS=OK            23 CALLS      249 TOTAL
                     EDM=   .90E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    7.3924        .25570E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.4170        7.2560        .37191E-02   -.54287    
   3  Normalizat    .26730        .35559        .22154E-04   -1.2484    
   4  Prefactor     1.3527        .26970        .77072E-05   -.81754    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 8.95158e-12
Minuit parameter uncertainties:
  1  7.7792e-06
  2  480.167
  3  0.358648
  4  0.26998
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/231113': 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) = 2347.9789255
delta logL = 5.81262611377e-08

Extracting fit parameters...

4FGL J0809.3+4053
   Spectrum: PowerLaw
269    Prefactor:  1.000e-04  7.779e-06  1.000e-04  1.000e+04 ( 1.000e-12)
270        Index:  2.417e+00  4.802e+02  0.000e+00  1.000e+01 (-1.000e+00)
271        Scale:  6.589e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
599    Prefactor:  1.353e+00  2.700e-01  0.000e+00  1.000e+01 ( 1.000e+00)
600        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
601        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
598   Normalization:  2.673e-01  3.586e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
Ra Dec: 122.330 40.895

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/231113/cmap_HighResolution_491788801_492048001_4FGL_J0809.3+4053_daily_bin974.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.75e-02', job_status='DONE', photon_flux_upper_limit='2.24e-07', time_completed='2021-08-29 08:06:28.711290', job_id='231113', GAL2='1.35', fit_tolerance='1e-08', EG2='0.27', EG='0.27', time_epoch_completed='1630249588.71', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.35', dlogl='5.81e-08', ts2='-0.00', photon_index_error='0.00', photon_index='2.59' WHERE bin_id='974' AND source_name='4FGL J0809.3+4053' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Aug 29 08:06:28 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0261>
Subject: Job 231113: <4FGL_J0809.3+4053_daily_bin974> in cluster <slac> Done

Job <4FGL_J0809.3+4053_daily_bin974> was submitted from host <rhel6-64q> by user <kocevski> in cluster <slac> at Sun Aug 29 07:50:44 2021
Job was executed on host(s) <bullet0261>, in queue <medium>, as user <kocevski> in cluster <slac> at Sun Aug 29 07:50:46 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Sun Aug 29 07:50:46 2021
Terminated at Sun Aug 29 08:06:30 2021
Results reported at Sun Aug 29 08:06:30 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0809.3+4053_daily_bin974 122.33 40.8954 491788801 492048001 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J0809.3+4053 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   700.15 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             186.48 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   943 sec.
    Turnaround time :                            946 sec.

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

