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


Performing analysis on: 4FGL_J0809.3+4053_daily_bin724
RA = 122.33, Dec = 40.8954
tmin = 426988801, tmax = 427248001
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='229503', job_status='RUN', time_executed='2021-08-29 07:47:47.904211', time_epoch_executed='1630248467.9' WHERE source_name='4FGL J0809.3+4053' and cadence='daily' and bin_id='724'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/229503

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/229503/ft1_4FGL_J0809.3+4053_daily_bin724.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/229503/ft2_4FGL_J0809.3+4053_daily_bin724.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/229503/ft1_4FGL_J0809.3+4053_daily_bin724.fits outfile=/scratch/kocevski/229503/ft1_filteredMKT_4FGL_J0809.3+4053_daily_bin724.fits ra=122.33 dec=40.8954 rad=12.0 tmin=426988801.0 tmax=427248001.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 6.31
user 5.61
sys 0.68

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/229503/ft2_4FGL_J0809.3+4053_daily_bin724.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/229503/ft1_filteredMKT_4FGL_J0809.3+4053_daily_bin724.fits evtable="EVENTS" outfile="/scratch/kocevski/229503/ft1_filtered_4FGL_J0809.3+4053_daily_bin724.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 0.92
user 0.34
sys 0.56

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/229503/ft1_filtered_4FGL_J0809.3+4053_daily_bin724.fits" evtable="EVENTS" scfile=/scratch/kocevski/229503/ft2_4FGL_J0809.3+4053_daily_bin724.fits sctable="SC_DATA" outfile=/scratch/kocevski/229503/ltcube_426988801_427248001_4FGL_J0809.3+4053_daily_bin724.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/229503/ft2_4FGL_J0809.3+4053_daily_bin724.fits
.....................!
real 12.40
user 11.51
sys 0.82

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/229503/ft1_filtered_4FGL_J0809.3+4053_daily_bin724.fits evtable="EVENTS" scfile=/scratch/kocevski/229503/ft2_4FGL_J0809.3+4053_daily_bin724.fits sctable="SC_DATA" expcube=/scratch/kocevski/229503/ltcube_426988801_427248001_4FGL_J0809.3+4053_daily_bin724.fits outfile=/scratch/kocevski/229503/expmap_426988801_427248001_4FGL_J0809.3+4053_daily_bin724.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/229503/ltcube_426988801_427248001_4FGL_J0809.3+4053_daily_bin724.fits
.....................!
real 190.11
user 184.76
sys 5.03

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/229503/ft1_filtered_4FGL_J0809.3+4053_daily_bin724.fits scfile=/scratch/kocevski/229503/ft2_4FGL_J0809.3+4053_daily_bin724.fits outfile=/scratch/kocevski/229503/cmap_426988801_427248001_4FGL_J0809.3+4053_daily_bin724.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 0.97
user 0.34
sys 0.59

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/229503/ft1_filtered_4FGL_J0809.3+4053_daily_bin724.fits scfile=/scratch/kocevski/229503/ft2_4FGL_J0809.3+4053_daily_bin724.fits outfile=/scratch/kocevski/229503/cmap_HighResolution_426988801_427248001_4FGL_J0809.3+4053_daily_bin724.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 0.97
user 0.39
sys 0.56

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    12.802       1.0000         .10000E-03   10000.    
     5 'Prefactor '    5.3018       1.0000         .10000E-03   10000.    
     6 'norm      '    .10017E-03   1.0000         .10000E-03   10000.    
     7 'norm      '    1.8475       1.0000         .10000E-03   10000.    
     8 'Prefactor '    4.8573       1.0000         .10000E-03   10000.    
     9 'Prefactor '    12.775       1.0000         .10000E-03   10000.    
    10 'Prefactor '    2.9334       1.0000         .10000E-03   10000.    
    11 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    2.0439       1.0000         .10000E-03   10000.    
    13 'Prefactor '    21.649       1.0000         .10000E-03   10000.    
    14 'Prefactor '    8.6779       1.0000         .10000E-03   10000.    
    15 'Prefactor '    2.6854       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10041E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    4.9333       1.0000         .10000E-03   10000.    
    18 'norm      '    7.1028       1.0000         .10000E-03   10000.    
    19 'Prefactor '    1.4624       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    22 'Normalizat'    1.0916       1.0000         .10000E-01   10.000    
    23 'Prefactor '    .90884       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=   6776.655     FROM MIGRAD    STATUS=CONVERGED    492 CALLS     2516 TOTAL
                     EDM=   .22E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.4%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    2.0237        .31875E-07** at limit **
   2  Prefactor     .10000E-03    6.7040        .12467E-06** at limit **
   3  Prefactor     .10000E-03    17.523       -.12575E-06** at limit **
   4  Prefactor     12.799        12.129        .16347E-06   -.18406E-04
   5  Prefactor     5.3026        14.419        .13447E-05   -.71644E-04
   6  norm          .10000E-03    13.089        .20084E-06** at limit **
   7  norm          1.8477        1.8496       -.73260E-07   -.24919E-03
   8  Prefactor     4.8590        6.2173       -.64634E-07   -.29437E-03
   9  Prefactor     12.752        40.171        .36173E-05    .19548E-04
  10  Prefactor     2.9325        6.3676        .62379E-05   -.11268E-03
  11  norm          .10000E-03    .39393       -.55027E-08** at limit **
  12  norm          2.0440        .82092       -.27741E-06   -.11538E-02
  13  Prefactor     21.649        23.633        .20360E-06   -.79414E-05
  14  Prefactor     8.6777        15.833       -.66218E-06   -.90293E-04
  15  Prefactor     2.6846        2.8599       -.20176E-06   -.10823E-03
  16  Prefactor     .10000E-03    14.602        .29877E-06** at limit **
  17  Prefactor     4.9324        7.9767        .10660E-05   -.79160E-04
  18  norm          7.1028        5.8621        .22690E-08   -.49157E-04
  19  Prefactor     1.4622        3.0825        .30444E-06   -.39138E-05
  20  Prefactor     .10000E-03    22.904        .20811E-07** at limit **
  21  Prefactor     .10000E-03    1.5934        .54229E-07** at limit **
  22  Normalizat    1.0915        .18276        .15408E-06    .10070E-03
  23  Prefactor     .90887        .12959       -.15373E-05   -.22625E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 12.7991
  Prefactor  = 5.30262
  norm       = 0.0001
  norm       = 1.84772
  Prefactor  = 4.85897
  Prefactor  = 12.7523
  Prefactor  = 2.93252
  norm       = 0.0001
  norm       = 2.04402
  Prefactor  = 21.6494
  Prefactor  = 8.67766
  Prefactor  = 2.6846
  Prefactor  = 0.0001
  Prefactor  = 4.93242
  norm       = 7.10282
  Prefactor  = 1.46217
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Normalizat = 1.09153
  Prefactor  = 0.908874
 **********
 **   18 **HESSE 
 **********

 FCN=   6776.655     FROM HESSE     STATUS=OK           374 CALLS     2890 TOTAL
                     EDM=   .52E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    2.0268        .11436E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    6.7356        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    17.583        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     12.799        12.104        .11195E-03   -1.4992    
   5  Prefactor     5.3026        14.402        .87276E-03   -1.5247    
   6  norm          .10000E-03    13.333        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          1.8477        1.8533        .10738E-03   -1.5436    
   8  Prefactor     4.8590        6.2127        .91260E-03   -1.5267    
   9  Prefactor     12.752        40.222        .11207E-03   -1.4994    
  10  Prefactor     2.9325        6.4000        .11858E-02   -1.5365    
  11  norm          .10000E-03    .39461        .50457E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          2.0440        .82034        .42767E-04   -1.5422    
  13  Prefactor     21.649        23.640        .86085E-04   -1.4777    
  14  Prefactor     8.6777        15.730        .68036E-03   -1.5119    
  15  Prefactor     2.6846        2.8375        .13016E-03   -1.5380    
  16  Prefactor     .10000E-03    14.625        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     4.9324        7.9718        .90539E-03   -1.5264    
  18  norm          7.1028        5.8559        .15052E-03   -1.5175    
  19  Prefactor     1.4622        3.0616        .20053E-03   -1.5466    
  20  Prefactor     .10000E-03    22.908        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10000E-03    1.5980        .10147E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Normalizat    1.0915        .21348        .27229E-03   -.90024    
  23  Prefactor     .90887        .15061        .21623E-03   -.95832    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.19001e-10
Minuit parameter uncertainties:
  1  3.16751e-06
  2  2.18318e-05
  3  1.1152e-05
  4  12.1059
  5  14.4111
  6  0.000101617
  7  1.85331
  8  6.21354
  9  40.3073
  10  6.40149
  11  2.22396e-07
  12  0.820346
  13  23.6503
  14  15.7373
  15  2.83767
  16  1.65903e-05
  17  7.97356
  18  5.85635
  19  3.06193
  20  1.5972e-05
  21  4.43887e-06
  22  0.213652
  23  0.150681
Done.

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

Extracting fit parameters...

4FGL J0809.3+4053
   Spectrum: PowerLaw
269    Prefactor:  2.933e+00  6.401e+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.089e-01  1.507e-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:  1.092e+00  2.137e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/229503/likelihoodResults_426988801_427248001_4FGL_J0809.3+4053_daily_bin724.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) = 6776.65133043
delta logL = 0.00363043903963

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6776.65030353
delta logL = 0.00465733825695

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    2.6609       1.0000         .10000E-03   10000.    
     2 'Index     '    2.7262       1.0000          .0000       10.000    
     3 'Normalizat'    1.0888       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .91039       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=   6776.650     FROM MIGRAD    STATUS=CONVERGED     99 CALLS      259 TOTAL
                     EDM=   .52E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     2.6643        7.4357        .24987E-03   -.18063E-04
   2  Index         2.7248        1.6715        .14728E-01    .18520E-03
   3  Normalizat    1.0887        .20821        .27258E-03   -.82164E-05
   4  Prefactor     .91043        .15148        .21607E-03   -.24729E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 2.66425
  Index      = 2.72479
  Normalizat = 1.08874
  Prefactor  = 0.910434
 **********
 **   18 **HESSE 
 **********

 FCN=   6776.650     FROM HESSE     STATUS=OK            25 CALLS      284 TOTAL
                     EDM=   .49E-12    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     2.6643        6.6406        .99949E-05   -1.5382    
   2  Index         2.7248        1.4997        .29455E-02   -.47242    
   3  Normalizat    1.0887        .20826        .10903E-04   -.90114    
   4  Prefactor     .91043        .15125        .86429E-05   -.95777    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.94357e-13
Minuit parameter uncertainties:
  1  6.64246
  2  1.5296
  3  0.208415
  4  0.151323
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/229503': 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) = 6776.650303
delta logL = 0.00465787652684

Extracting fit parameters...

4FGL J0809.3+4053
   Spectrum: PowerLaw
269    Prefactor:  2.664e+00  6.642e+00  1.000e-04  1.000e+04 ( 1.000e-12)
270        Index:  2.725e+00  1.530e+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.104e-01  1.513e-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:  1.089e+00  2.084e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 0.25
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/229503/cmap_HighResolution_426988801_427248001_4FGL_J0809.3+4053_daily_bin724.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.03e-02', job_status='DONE', photon_flux_upper_limit='1.32e-07', time_completed='2021-08-29 08:00:06.111618', job_id='229503', GAL2='0.91', fit_tolerance='1e-08', EG2='1.09', EG='1.09', time_epoch_completed='1630249206.11', return_code2='0', ts='0.25', comment='SUCCESS', return_code='0', GAL='0.91', dlogl='4.66e-03', ts2='0.27', photon_index_error='0.00', photon_index='2.59' WHERE bin_id='724' AND source_name='4FGL J0809.3+4053' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Aug 29 08:00:06 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0252>
Subject: Job 229503: <4FGL_J0809.3+4053_daily_bin724> in cluster <slac> Done

Job <4FGL_J0809.3+4053_daily_bin724> was submitted from host <rhel6-64c> by user <kocevski> in cluster <slac> at Sun Aug 29 07:45:32 2021
Job was executed on host(s) <bullet0252>, in queue <medium>, as user <kocevski> in cluster <slac> at Sun Aug 29 07:45:34 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:45:34 2021
Terminated at Sun Aug 29 08:00:06 2021
Results reported at Sun Aug 29 08:00:06 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0809.3+4053_daily_bin724 122.33 40.8954 426988801 427248001 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 :                                   743.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             315.59 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   872 sec.
    Turnaround time :                            874 sec.

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

