/nfs/farm/g/glast/g/LCRepository/bin/miniconda2/envs/fermitools_v1.0.5/lib/python2.7/site-packages/pyfits/__init__.py:22: PyFITSDeprecationWarning: PyFITS is deprecated, please use astropy.io.fits
  PyFITSDeprecationWarning)  # noqa

Likelihood Analysis Tool
Support Contact: Daniel Kocevski (daniel.kocevski@nasa.gov)


Waiting 1 seconds before starting...
Proceeding.

Importing modules...
This is make3FGLxml version 01r0.
The default diffuse model files and names are for pass 8 and assume you have v10r00p05 of the Fermi Science Tools or higher.
This is make4FGLxml version 01r04.
The default diffuse model files and names are for pass 8 and 4FGL and assume you have v11r5p3 of the Fermi Science Tools or higher.

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

/nfs/farm/g/glast/g/LCRepository/bin/miniconda2/envs/fermitools_v1.0.5/lib/python2.7/site-packages/matplotlib/cbook/deprecation.py:106: MatplotlibDeprecationWarning: The mpl_toolkits.axes_grid module was deprecated in version 2.1. Use mpl_toolkits.axes_grid1 and mpl_toolkits.axisartist provies the same functionality instead.
  warnings.warn(message, mplDeprecation, stacklevel=1)

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

number of points = 7450
number of fields = 30
RA_SUN column already exists. File will not be modified.
Done.


Performing analysis on: 4FGL_J0809.3+4053_daily_bin876
RA = 122.33, Dec = 40.8954
tmin = 466387201, tmax = 466646401
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='230968', job_status='RUN', time_executed='2021-08-29 07:51:37.415125', time_epoch_executed='1630248697.42' WHERE source_name='4FGL J0809.3+4053' and cadence='daily' and bin_id='876'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/230968

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/230968/ft1_4FGL_J0809.3+4053_daily_bin876.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/230968/ft2_4FGL_J0809.3+4053_daily_bin876.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/230968/ft1_4FGL_J0809.3+4053_daily_bin876.fits outfile=/scratch/kocevski/230968/ft1_filteredMKT_4FGL_J0809.3+4053_daily_bin876.fits ra=122.33 dec=40.8954 rad=12.0 tmin=466387201.0 tmax=466646401.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.73
user 3.39
sys 3.29

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/230968/ft1_filtered_4FGL_J0809.3+4053_daily_bin876.fits" evtable="EVENTS" scfile=/scratch/kocevski/230968/ft2_4FGL_J0809.3+4053_daily_bin876.fits sctable="SC_DATA" outfile=/scratch/kocevski/230968/ltcube_466387201_466646401_4FGL_J0809.3+4053_daily_bin876.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/230968/ft2_4FGL_J0809.3+4053_daily_bin876.fits
.....................!
real 15.63
user 11.73
sys 3.84

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/230968/ft1_filtered_4FGL_J0809.3+4053_daily_bin876.fits evtable="EVENTS" scfile=/scratch/kocevski/230968/ft2_4FGL_J0809.3+4053_daily_bin876.fits sctable="SC_DATA" expcube=/scratch/kocevski/230968/ltcube_466387201_466646401_4FGL_J0809.3+4053_daily_bin876.fits outfile=/scratch/kocevski/230968/expmap_466387201_466646401_4FGL_J0809.3+4053_daily_bin876.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/230968/ltcube_466387201_466646401_4FGL_J0809.3+4053_daily_bin876.fits
.....................!
real 194.91
user 185.47
sys 8.93

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/230968/ft1_filtered_4FGL_J0809.3+4053_daily_bin876.fits scfile=/scratch/kocevski/230968/ft2_4FGL_J0809.3+4053_daily_bin876.fits outfile=/scratch/kocevski/230968/cmap_466387201_466646401_4FGL_J0809.3+4053_daily_bin876.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 3.54
user 0.37
sys 3.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/230968/ft1_filtered_4FGL_J0809.3+4053_daily_bin876.fits scfile=/scratch/kocevski/230968/ft2_4FGL_J0809.3+4053_daily_bin876.fits outfile=/scratch/kocevski/230968/cmap_HighResolution_466387201_466646401_4FGL_J0809.3+4053_daily_bin876.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 3.61
user 0.38
sys 3.17

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10016E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    2.2288       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10019E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10035E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    37.200       1.0000         .10000E-03   10000.    
     6 'norm      '    19.191       1.0000         .10000E-03   10000.    
     7 'norm      '    3.7305       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10017E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10048E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .11523E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    .10020E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    1.9189       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    3.7130       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10155E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    6.5096       1.0000         .10000E-03   10000.    
    18 'norm      '    .44912       1.0000         .10000E-03   10000.    
    19 'Prefactor '    1.4522       1.0000         .10000E-03   10000.    
    20 'Prefactor '    62.770       1.0000         .10000E-03   10000.    
    21 'Prefactor '    5.7254       1.0000         .10000E-03   10000.    
    22 'Normalizat'    .91537       1.0000         .10000E-01   10.000    
    23 'Prefactor '    .93980       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=   6203.034     FROM MIGRAD    STATUS=CONVERGED    505 CALLS     2530 TOTAL
                     EDM=   .56E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.8%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    4.4421        .44799E-07** at limit **
   2  Prefactor     2.2285        8.0603        .60432E-05   -.34012E-04
   3  Prefactor     .10000E-03    16.116       -.29824E-07** at limit **
   4  Prefactor     .10000E-03    6.1681       -.31730E-07** at limit **
   5  Prefactor     37.195        19.805        .31844E-06   -.37356E-04
   6  norm          19.189        12.287        .68679E-07   -.24589E-04
   7  norm          3.7307        2.7154        .40118E-07   -.26592E-04
   8  Prefactor     .10000E-03    2.0417       -.48377E-07** at limit **
   9  Prefactor     .10000E-03    16.514       -.20751E-07** at limit **
  10  Prefactor     .10000E-03    5.2722        .78483E-07** at limit **
  11  norm          .10000E-03    1.3782        .21775E-06** at limit **
  12  norm          1.9189        .69345       -.12456E-07   -.60824E-03
  13  Prefactor     .10000E-03    7.0866        .23835E-07** at limit **
  14  Prefactor     .10000E-03    7.2903        .10495E-07** at limit **
  15  Prefactor     3.7121        3.0966        .14152E-07   -.15146E-03
  16  Prefactor     .10000E-03    10.845       -.94187E-07** at limit **
  17  Prefactor     6.5042        12.361        .29487E-06   -.31653E-04
  18  norm          .42110        3.2477       -.36348E-06   -.32367E-04
  19  Prefactor     1.4523        1.7558        .52544E-08   -.44507E-04
  20  Prefactor     62.749        60.509        .16688E-05   -.22803E-04
  21  Prefactor     5.7242        4.1110       -.67155E-07   -.76694E-04
  22  Normalizat    .91563        .18164        .47768E-06   -.26894E-04
  23  Prefactor     .93967        .13270       -.10972E-05   -.21659E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  Prefactor  = 2.22851
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 37.1949
  norm       = 19.1894
  norm       = 3.73073
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 1.91885
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 3.71212
  Prefactor  = 0.0001
  Prefactor  = 6.5042
  norm       = 0.421099
  Prefactor  = 1.45227
  Prefactor  = 62.749
  Prefactor  = 5.72425
  Normalizat = 0.915626
  Prefactor  = 0.939667
 **********
 **   18 **HESSE 
 **********

 FCN=   6203.034     FROM HESSE     STATUS=OK           374 CALLS     2904 TOTAL
                     EDM=   .19E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    4.5134        .16208E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     2.2285        8.1030        .13769E-02   -1.5409    
   3  Prefactor     .10000E-03    16.150        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    6.2011        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     37.195        19.813        .65711E-04   -1.4487    
   6  norm          19.189        12.290        .91427E-04   -1.4832    
   7  norm          3.7307        2.7134        .10711E-03   -1.5322    
   8  Prefactor     .10000E-03    2.0430        .10991E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    16.532        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    5.4755        .35235E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          .10000E-03    3.2293        .17956E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          1.9189        .69237        .37743E-04   -1.5431    
  13  Prefactor     .10000E-03    7.0926        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    7.3135        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     3.7121        3.0912        .11948E-03   -1.5323    
  16  Prefactor     .10000E-03    10.852        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     6.5042        12.358        .15730E-03   -1.5198    
  18  norm          .42110        16.176        .27323E-02   -1.5578    
  19  Prefactor     1.4523        1.7427        .11138E-03   -1.5467    
  20  Prefactor     62.749        60.541        .25324E-03   -1.4122    
  21  Prefactor     5.7242        4.1203        .12980E-03   -1.5229    
  22  Normalizat    .91563        .20733        .27257E-03   -.95913    
  23  Prefactor     .93967        .15170        .20551E-03   -.94768    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.86048e-08
Minuit parameter uncertainties:
  1  8.98314e-06
  2  8.10699
  3  1.85107e-05
  4  5.98698e-06
  5  19.8168
  6  12.2917
  7  2.71351
  8  4.58483e-06
  9  1.61929e-05
  10  1.96761e-06
  11  1.34374e-05
  12  0.692372
  13  7.40457e-06
  14  1.53325e-06
  15  3.09136
  16  3.10748e-05
  17  12.363
  18  5.22081
  19  1.74275
  20  60.6
  21  4.12051
  22  0.207515
  23  0.15177
Done.

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

Extracting fit parameters...

4FGL J0809.3+4053
   Spectrum: PowerLaw
269    Prefactor:  1.000e-04  1.968e-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:  9.397e-01  1.518e-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.156e-01  2.075e-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: 8.36e-08 ph cm-2 s-1
Energy Flux Upper Limit: 6.54e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/230968/likelihoodResults_466387201_466646401_4FGL_J0809.3+4053_daily_bin876.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) = 6203.03465966
delta logL = -0.000866436687829

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 6203.03379382
delta logL = -5.98480255576e-07

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10985E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.6203       1.0000          .0000       10.000    
     3 'Normalizat'    .91572       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .93963       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.

 FCN=   6203.034     FROM MIGRAD    STATUS=CONVERGED     57 CALLS      216 TOTAL
                     EDM=   .11E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    9.1487        .43341E-01** at limit **
   2  Index         2.6563        5.6989        .50000       -.59973E-04
   3  Normalizat    .91562        .82377E-02    .45102E-01   -.53305E-03
   4  Prefactor     .93967        .63190E-02    .45508E-01   -.31996E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Index      = 2.65628
  Normalizat = 0.91562
  Prefactor  = 0.939671
 **********
 **   18 **HESSE 
 **********

 FCN=   6203.034     FROM HESSE     STATUS=NOT POSDEF    31 CALLS      247 TOTAL
                     EDM=   .72E-06    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    1136.3        .25751E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.6563        6.2074        .50000       -.48787    
   3  Normalizat    .91562        .97570E-01    .27257E-03   -.95913    
   4  Prefactor     .93967        .74162E-01    .20551E-03   -.94768    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 7.23532e-07
Minuit parameter uncertainties:
  1  0.00019832
  2  61.6628
  3  0.0975891
  4  0.0741695
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/230968': 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): 102
logL (Free Index) = 6203.03379234
delta logL = 8.86074303708e-07

Extracting fit parameters...

4FGL J0809.3+4053
   Spectrum: PowerLaw
269    Prefactor:  1.000e-04  1.983e-04  1.000e-04  1.000e+04 ( 1.000e-12)
270        Index:  2.656e+00  6.166e+01  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.397e-01  7.417e-02  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.156e-01  9.759e-02  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/230968/cmap_HighResolution_466387201_466646401_4FGL_J0809.3+4053_daily_bin876.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='6.54e-03', job_status='DONE', photon_flux_upper_limit='8.36e-08', time_completed='2021-08-29 08:04:05.722446', job_id='230968', GAL2='0.94', fit_tolerance='1e-08', EG2='0.92', EG='0.92', time_epoch_completed='1630249445.72', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.94', dlogl='8.86e-07', ts2='-0.00', photon_index_error='0.00', photon_index='2.59' WHERE bin_id='876' AND source_name='4FGL J0809.3+4053' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Aug 29 08:04:05 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0065>
Subject: Job 230968: <4FGL_J0809.3+4053_daily_bin876> in cluster <slac> Done

Job <4FGL_J0809.3+4053_daily_bin876> was submitted from host <rhel6-64q> by user <kocevski> in cluster <slac> at Sun Aug 29 07:50:33 2021
Job was executed on host(s) <bullet0065>, in queue <medium>, as user <kocevski> in cluster <slac> at Sun Aug 29 07:50:35 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:35 2021
Terminated at Sun Aug 29 08:04:06 2021
Results reported at Sun Aug 29 08:04:06 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0809.3+4053_daily_bin876 122.33 40.8954 466387201 466646401 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 :                                   792.00 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             333.54 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   811 sec.
    Turnaround time :                            813 sec.

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

