/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 11 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 = 7409
number of fields = 22
No RA_SUN column yet. Adding RA_SUN/DEC_SUN columns.
Done.


Performing analysis on: 4FGL_J0809.3+4053_daily_bin62
RA = 122.33, Dec = 40.8954
tmin = 255398401, tmax = 255657601
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='225281', job_status='RUN', time_executed='2021-08-29 07:31:33.667549', time_epoch_executed='1630247493.67' WHERE source_name='4FGL J0809.3+4053' and cadence='daily' and bin_id='62'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/225281

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/225281/ft1_4FGL_J0809.3+4053_daily_bin62.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/225281/ft2_4FGL_J0809.3+4053_daily_bin62.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/225281/ft1_4FGL_J0809.3+4053_daily_bin62.fits outfile=/scratch/kocevski/225281/ft1_filteredMKT_4FGL_J0809.3+4053_daily_bin62.fits ra=122.33 dec=40.8954 rad=12.0 tmin=255398401.0 tmax=255657601.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 3.11
user 1.66
sys 1.44

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/225281/ft2_4FGL_J0809.3+4053_daily_bin62.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/225281/ft1_filteredMKT_4FGL_J0809.3+4053_daily_bin62.fits evtable="EVENTS" outfile="/scratch/kocevski/225281/ft1_filtered_4FGL_J0809.3+4053_daily_bin62.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.81
user 0.33
sys 1.44

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/225281/ft1_filtered_4FGL_J0809.3+4053_daily_bin62.fits" evtable="EVENTS" scfile=/scratch/kocevski/225281/ft2_4FGL_J0809.3+4053_daily_bin62.fits sctable="SC_DATA" outfile=/scratch/kocevski/225281/ltcube_255398401_255657601_4FGL_J0809.3+4053_daily_bin62.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/225281/ft2_4FGL_J0809.3+4053_daily_bin62.fits
.....................!
real 13.87
user 11.96
sys 1.77

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/225281/ft1_filtered_4FGL_J0809.3+4053_daily_bin62.fits evtable="EVENTS" scfile=/scratch/kocevski/225281/ft2_4FGL_J0809.3+4053_daily_bin62.fits sctable="SC_DATA" expcube=/scratch/kocevski/225281/ltcube_255398401_255657601_4FGL_J0809.3+4053_daily_bin62.fits outfile=/scratch/kocevski/225281/expmap_255398401_255657601_4FGL_J0809.3+4053_daily_bin62.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/225281/ltcube_255398401_255657601_4FGL_J0809.3+4053_daily_bin62.fits
.....................!
real 191.69
user 185.16
sys 6.14

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/225281/ft1_filtered_4FGL_J0809.3+4053_daily_bin62.fits scfile=/scratch/kocevski/225281/ft2_4FGL_J0809.3+4053_daily_bin62.fits outfile=/scratch/kocevski/225281/cmap_255398401_255657601_4FGL_J0809.3+4053_daily_bin62.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 2.05
user 0.36
sys 1.66

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/225281/ft1_filtered_4FGL_J0809.3+4053_daily_bin62.fits scfile=/scratch/kocevski/225281/ft2_4FGL_J0809.3+4053_daily_bin62.fits outfile=/scratch/kocevski/225281/cmap_HighResolution_255398401_255657601_4FGL_J0809.3+4053_daily_bin62.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 1.83
user 0.36
sys 1.43

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

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/225281/ft1_filtered_4FGL_J0809.3+4053_daily_bin62.fits', '/scratch/kocevski/225281/ft2_4FGL_J0809.3+4053_daily_bin62.fits', expMap='/scratch/kocevski/225281/expmap_255398401_255657601_4FGL_J0809.3+4053_daily_bin62.fits', expCube='/scratch/kocevski/225281/ltcube_255398401_255657601_4FGL_J0809.3+4053_daily_bin62.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/225281/Model_4FGL_J0809.3+4053_daily_bin62.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/225281/ft1_filtered_4FGL_J0809.3+4053_daily_bin62.fits
Spacecraft file(s): /scratch/kocevski/225281/ft2_4FGL_J0809.3+4053_daily_bin62.fits
Exposure map: /scratch/kocevski/225281/expmap_255398401_255657601_4FGL_J0809.3+4053_daily_bin62.fits
Exposure cube: /scratch/kocevski/225281/ltcube_255398401_255657601_4FGL_J0809.3+4053_daily_bin62.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/225281/Model_4FGL_J0809.3+4053_daily_bin62.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) = 6554.23423643

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    11.582       1.0000         .10000E-03   10000.    
     2 'Prefactor '    5.5708       1.0000         .10000E-03   10000.    
     3 'Prefactor '    18.820       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10502E-02   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .29761E-02   1.0000         .10000E-03   10000.    
     6 'norm      '    7.0468       1.0000         .10000E-03   10000.    
     7 'norm      '    .10023E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    8.3336       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .23778E-02   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .27707       1.0000         .10000E-03   10000.    
    11 'norm      '    .10003E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    1.2429       1.0000         .10000E-03   10000.    
    13 'Prefactor '    7.5882       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10171E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    3.2607       1.0000         .10000E-03   10000.    
    16 'Prefactor '    36.864       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10218E-03   1.0000         .10000E-03   10000.    
    18 'norm      '    13.619       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10011E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    2.8252       1.0000         .10000E-03   10000.    
    22 'Normalizat'    .96739       1.0000         .10000E-01   10.000    
    23 'Prefactor '    .95781       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=   6554.208     FROM MIGRAD    STATUS=CONVERGED    935 CALLS     3013 TOTAL
                     EDM=   .16E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          11.581        9.4953        .11771E-03    .60845E-05
   2  Prefactor     5.5692        12.903        .17021E-03    .62115E-05
   3  Prefactor     18.838        34.416        .92323E-04   -.20318E-04
   4  Prefactor     .10000E-03    50.119        .46317E-02** at limit **
   5  Prefactor     .10001E-03    8.1713        .76145E-01** at limit **
   6  norm          7.0451        12.399        .15112E-03    .74477E-05
   7  norm          .10000E-03    2.2582        .23386E-03** at limit **
   8  Prefactor     8.3344        7.0751        .13887E-03    .30781E-04
   9  Prefactor     .10000E-03    320.32        .40134E-02** at limit **
  10  Prefactor     .27553        23.784        .23803E-02    .12893E-02
  11  norm          .10000E-03    .69830        .65706E-03** at limit **
  12  norm          1.2430        .67771        .45398E-04    .17830E-03
  13  Prefactor     7.5944        20.399        .14558E-03    .13900E-04
  14  Prefactor     .10000E-03    20.039        .18142E-02** at limit **
  15  Prefactor     3.2597        3.0569        .12805E-03    .29741E-04
  16  Prefactor     36.877        30.859        .66008E-04   -.68892E-06
  17  Prefactor     .10000E-03    6.1177        .18142E-02** at limit **
  18  norm          13.619        7.6920        .54268E-03    .14958E-04
  19  Prefactor     .10000E-03    .92326        .75601E-03** at limit **
  20  Prefactor     .10000E-03    35.308        .18142E-02** at limit **
  21  Prefactor     2.8249        3.2072        .14952E-03   -.73753E-05
  22  Normalizat    .96743        .21260        .27126E-03    .12909E-04
  23  Prefactor     .95786        .15541        .20894E-03    .40318E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 11.5815
  Prefactor  = 5.5692
  Prefactor  = 18.838
  Prefactor  = 0.0001
  Prefactor  = 0.000100011
  norm       = 7.04506
  norm       = 0.0001
  Prefactor  = 8.33442
  Prefactor  = 0.0001
  Prefactor  = 0.275533
  norm       = 0.0001
  norm       = 1.24302
  Prefactor  = 7.59437
  Prefactor  = 0.0001
  Prefactor  = 3.25971
  Prefactor  = 36.8774
  Prefactor  = 0.0001
  norm       = 13.6186
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 2.82489
  Normalizat = 0.967429
  Prefactor  = 0.957864
 **********
 **   18 **HESSE 
 **********

 FCN=   6554.208     FROM HESSE     STATUS=OK           358 CALLS     3371 TOTAL
                     EDM=   .12E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          11.581        9.4946        .47086E-05   -1.5027    
   2  Prefactor     5.5692        12.901        .68086E-05   -1.5236    
   3  Prefactor     18.838        34.386        .36929E-05   -1.4840    
   4  Prefactor     .10000E-03    50.617        .92635E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10001E-03    7.9270        .78435E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          7.0451        12.397        .60448E-05   -1.5177    
   7  norm          .10000E-03    2.2583        .46772E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     8.3344        7.0721        .55549E-05   -1.5130    
   9  Prefactor     .10000E-03    322.40        .80269E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .27553        23.410        .47605E-03   -1.5603    
  11  norm          .10000E-03    .69833        .13141E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          1.2430        .67418        .18159E-05   -1.5485    
  13  Prefactor     7.5944        20.396        .58233E-05   -1.5157    
  14  Prefactor     .10000E-03    20.048        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     3.2597        3.0529        .51222E-05   -1.5347    
  16  Prefactor     36.877        30.855        .26403E-05   -1.4493    
  17  Prefactor     .10000E-03    6.1184        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          13.619        7.6910        .21707E-04   -1.4970    
  19  Prefactor     .10000E-03    .92331        .15120E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    35.310        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     2.8249        3.2069        .59808E-05   -1.5372    
  22  Normalizat    .96743        .21251        .10850E-04   -.94130    
  23  Prefactor     .95786        .15553        .83577E-05   -.94147    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.24143e-11
Minuit parameter uncertainties:
  1  9.49583
  2  12.907
  3  34.4217
  4  1.21062e-05
  5  0.000593035
  6  12.4018
  7  1.82791e-06
  8  7.07282
  9  5.07647e-05
  10  5.0806
  11  2.06175e-07
  12  0.674181
  13  20.4149
  14  5.07567e-05
  15  3.05304
  16  30.8686
  17  1.21922e-05
  18  7.69159
  19  1.50104e-07
  20  3.33173e-05
  21  3.20712
  22  0.212696
  23  0.155603
Done.

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

Extracting fit parameters...

4FGL J0809.3+4053
   Spectrum: PowerLaw
269    Prefactor:  2.755e-01  5.081e+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

GAL_V02
   Spectrum: PowerLaw
599    Prefactor:  9.579e-01  1.556e-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:  9.674e-01  2.127e-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: 9.85e-08 ph cm-2 s-1
Energy Flux Upper Limit: 7.70e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/225281/likelihoodResults_255398401_255657601_4FGL_J0809.3+4053_daily_bin62.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) = 6554.20126249
delta logL = 0.00715784874865

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6554.1907526
delta logL = 0.0176677339978

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    1.0678       1.0000         .10000E-03   10000.    
     2 'Index     '    2.1347       1.0000          .0000       10.000    
     3 'Normalizat'    .96789       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .95571       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.
 MACHINE ACCURACY LIMITS FURTHER IMPROVEMENT.

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   6554.191     FROM MIGRAD    STATUS=CONVERGED     92 CALLS      271 TOTAL
                     EDM=   .77E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     1.0679        7.4302        .20809E-02   -.14817E-02
   2  Index         2.1350        1.7072        .14066E-01    .90133E-05
   3  Normalizat    .96788        .19709        .27118E-03    .56569E-03
   4  Prefactor     .95570        .15223        .20913E-03    .76099E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 1.06788
  Index      = 2.13495
  Normalizat = 0.96788
  Prefactor  = 0.955704
 **********
 **   18 **HESSE 
 **********

 FCN=   6554.191     FROM HESSE     STATUS=OK            25 CALLS      296 TOTAL
                     EDM=   .80E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     1.0679        7.3847        .83235E-04   -1.5501    
   2  Index         2.1350        1.7049        .56265E-03   -.61017    
   3  Normalizat    .96788        .19722        .54237E-04   -.94114    
   4  Prefactor     .95570        .15227        .41826E-04   -.94221    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 8.00108e-09
Minuit parameter uncertainties:
  1  5.61712
  2  1.75834
  3  0.197367
  4  0.152342
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/225281': 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) = 6554.19075259
delta logL = 0.0176677518348

Extracting fit parameters...

4FGL J0809.3+4053
   Spectrum: PowerLaw
269    Prefactor:  1.068e+00  5.617e+00  1.000e-04  1.000e+04 ( 1.000e-12)
270        Index:  2.135e+00  1.758e+00  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:  9.557e-01  1.523e-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:  9.679e-01  1.974e-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 -2.500e-04 [aplpy.core]
INFO: Auto-setting vmax to  2.775e-03 [aplpy.core]
Saving /scratch/kocevski/225281/cmap_HighResolution_255398401_255657601_4FGL_J0809.3+4053_daily_bin62.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='7.70e-03', job_status='DONE', photon_flux_upper_limit='9.85e-08', time_completed='2021-08-29 07:44:24.132261', job_id='225281', GAL2='0.96', fit_tolerance='1e-08', EG2='0.97', EG='0.97', time_epoch_completed='1630248264.13', return_code2='0', ts='0.00', comment='SUCCESS', return_code='0', GAL='0.96', dlogl='1.77e-02', ts2='0.04', photon_index_error='0.00', photon_index='2.59' WHERE bin_id='62' AND source_name='4FGL J0809.3+4053' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Aug 29 07:44:24 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0233>
Subject: Job 225281: <4FGL_J0809.3+4053_daily_bin62> in cluster <slac> Done

Job <4FGL_J0809.3+4053_daily_bin62> was submitted from host <rhel6-64l> by user <kocevski> in cluster <slac> at Sun Aug 29 07:30:50 2021
Job was executed on host(s) <bullet0233>, in queue <medium>, as user <kocevski> in cluster <slac> at Sun Aug 29 07:30:52 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:30:52 2021
Terminated at Sun Aug 29 07:44:25 2021
Results reported at Sun Aug 29 07:44:25 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0809.3+4053_daily_bin62 122.33 40.8954 255398401 255657601 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 :                                   789.00 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             350.04 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              7
    Max Threads :                                21
    Run time :                                   812 sec.
    Turnaround time :                            815 sec.

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

