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


Performing analysis on: 4FGL_J0809.3+4053_daily_bin963
RA = 122.33, Dec = 40.8954
tmin = 488937601, tmax = 489196801
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='231093', job_status='RUN', time_executed='2021-08-29 07:54:20.341859', time_epoch_executed='1630248860.34' WHERE source_name='4FGL J0809.3+4053' and cadence='daily' and bin_id='963'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/231093

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/231093/ft1_4FGL_J0809.3+4053_daily_bin963.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/231093/ft2_4FGL_J0809.3+4053_daily_bin963.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/231093/ft1_4FGL_J0809.3+4053_daily_bin963.fits outfile=/scratch/kocevski/231093/ft1_filteredMKT_4FGL_J0809.3+4053_daily_bin963.fits ra=122.33 dec=40.8954 rad=12.0 tmin=488937601.0 tmax=489196801.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.56
user 3.32
sys 0.22

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/231093/ft1_filtered_4FGL_J0809.3+4053_daily_bin963.fits" evtable="EVENTS" scfile=/scratch/kocevski/231093/ft2_4FGL_J0809.3+4053_daily_bin963.fits sctable="SC_DATA" outfile=/scratch/kocevski/231093/ltcube_488937601_489196801_4FGL_J0809.3+4053_daily_bin963.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/231093/ft2_4FGL_J0809.3+4053_daily_bin963.fits
.....................!
real 12.16
user 11.53
sys 0.56

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/231093/ft1_filtered_4FGL_J0809.3+4053_daily_bin963.fits evtable="EVENTS" scfile=/scratch/kocevski/231093/ft2_4FGL_J0809.3+4053_daily_bin963.fits sctable="SC_DATA" expcube=/scratch/kocevski/231093/ltcube_488937601_489196801_4FGL_J0809.3+4053_daily_bin963.fits outfile=/scratch/kocevski/231093/expmap_488937601_489196801_4FGL_J0809.3+4053_daily_bin963.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/231093/ltcube_488937601_489196801_4FGL_J0809.3+4053_daily_bin963.fits
.....................!
real 191.30
user 186.68
sys 4.24

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/231093/ft1_filtered_4FGL_J0809.3+4053_daily_bin963.fits scfile=/scratch/kocevski/231093/ft2_4FGL_J0809.3+4053_daily_bin963.fits outfile=/scratch/kocevski/231093/cmap_488937601_489196801_4FGL_J0809.3+4053_daily_bin963.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.60
user 0.39
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/231093/ft1_filtered_4FGL_J0809.3+4053_daily_bin963.fits scfile=/scratch/kocevski/231093/ft2_4FGL_J0809.3+4053_daily_bin963.fits outfile=/scratch/kocevski/231093/cmap_HighResolution_488937601_489196801_4FGL_J0809.3+4053_daily_bin963.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.58
user 0.39
sys 0.15

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    5.0557       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    27.319       1.0000         .10000E-03   10000.    
     4 'Prefactor '    12.391       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     6 'norm      '    .10016E-03   1.0000         .10000E-03   10000.    
     7 'norm      '    8.3573       1.0000         .10000E-03   10000.    
     8 'Prefactor '    4.5463       1.0000         .10000E-03   10000.    
     9 'Prefactor '    3.1308       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    3.2141       1.0000         .10000E-03   10000.    
    12 'norm      '    .92567       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    1.0861       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    18 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    2.0546       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
    22 'Normalizat'    1.1586       1.0000         .10000E-01   10.000    
    23 'Prefactor '    .72598       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.586     FROM MIGRAD    STATUS=CONVERGED    505 CALLS     2525 TOTAL
                     EDM=   .74E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  6.1%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          5.0558        5.6349        .79906E-06   -.84022E-03
   2  Prefactor     .10000E-03    3.0079        .46519E-07** at limit **
   3  Prefactor     27.318        24.086       -.43901E-06   -.90732E-04
   4  Prefactor     12.389        17.381       -.63821E-06   -.11664E-03
   5  Prefactor     .10000E-03    4.7022        .22409E-06** at limit **
   6  norm          .10000E-03    15.299        .17668E-05** at limit **
   7  norm          8.3575        4.2614        .12956E-06    .21149E-04
   8  Prefactor     4.5457        5.2232        .14899E-05   -.11174E-02
   9  Prefactor     3.1231        60.217       -.10712E-04   -.14862E-03
  10  Prefactor     .10000E-03    2.3179       -.34033E-07** at limit **
  11  norm          3.2141        2.1223        .75236E-08    .81749E-05
  12  norm          .92568        .45631        .65739E-09    .17486E-03
  13  Prefactor     .10000E-03    15.283        .10617E-05** at limit **
  14  Prefactor     .10000E-03    7.3084        .69997E-06** at limit **
  15  Prefactor     1.0863        2.1229        .18229E-06   -.31146E-03
  16  Prefactor     .10000E-03    13.124       -.25410E-05** at limit **
  17  Prefactor     .10000E-03    3.4407       -.70125E-07** at limit **
  18  norm          .10000E-03    1.9452       -.45738E-08** at limit **
  19  Prefactor     2.0546        3.1766       -.48853E-07   -.34896E-03
  20  Prefactor     .10000E-03    26.923       -.50440E-06** at limit **
  21  Prefactor     .10000E-03    5.6780       -.66463E-06** at limit **
  22  Normalizat    1.1587        .16781        .18404E-06    .53129E-05
  23  Prefactor     .72592        .12422       -.14800E-06    .22362E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 5.05578
  Prefactor  = 0.0001
  Prefactor  = 27.3175
  Prefactor  = 12.3885
  Prefactor  = 0.0001
  norm       = 0.000100001
  norm       = 8.35754
  Prefactor  = 4.54573
  Prefactor  = 3.12307
  Prefactor  = 0.0001
  norm       = 3.21407
  norm       = 0.925683
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 1.08629
  Prefactor  = 0.000100002
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 2.05457
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Normalizat = 1.15873
  Prefactor  = 0.725922
 **********
 **   18 **HESSE 
 **********

 FCN=   6203.586     FROM HESSE     STATUS=OK           370 CALLS     2895 TOTAL
                     EDM=   .21E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          5.0558        5.9757        .89415E-03   -1.5258    
   2  Prefactor     .10000E-03    3.0148        .13340E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     27.318        24.108        .76647E-04   -1.4662    
   4  Prefactor     12.389        17.424        .11380E-03   -1.5004    
   5  Prefactor     .10000E-03    4.7135        .16691E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          .10000E-03    15.674        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          8.3575        4.2642        .10028E-03   -1.5130    
   8  Prefactor     4.5457        5.6483        .94401E-03   -1.5282    
   9  Prefactor     3.1231        64.254        .22912E-03   -1.5355    
  10  Prefactor     .10000E-03    2.3601        .11699E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          3.2141        2.1232        .90583E-04   -1.5349    
  12  norm          .92568        .45949        .36074E-04   -1.5516    
  13  Prefactor     .10000E-03    15.388        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    7.3853        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     1.0863        2.0895        .15330E-03   -1.5500    
  16  Prefactor     .10000E-03    13.596        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    3.4622        .14268E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          .10000E-03    1.9496        .10727E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     2.0546        3.1999        .16833E-03   -1.5421    
  20  Prefactor     .10000E-03    26.958        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10000E-03    5.9252        .36285E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Normalizat    1.1587        .19322        .23530E-03   -.87888    
  23  Prefactor     .72592        .14346        .21810E-03   -1.0252    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.12675e-09
Minuit parameter uncertainties:
  1  5.97637
  2  1.69403e-06
  3  24.1167
  4  17.4313
  5  2.23343e-05
  6  0.000216321
  7  4.26431
  8  5.64901
  9  28.3661
  10  2.88713e-07
  11  2.12329
  12  0.459489
  13  0.000144971
  14  7.2132e-05
  15  2.08965
  16  0.000346186
  17  3.86296e-06
  18  4.10767e-07
  19  3.20012
  20  9.85276e-05
  21  5.23738e-05
  22  0.193334
  23  0.143536
Done.

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

Extracting fit parameters...

4FGL J0809.3+4053
   Spectrum: PowerLaw
269    Prefactor:  1.000e-04  2.887e-07  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:  7.259e-01  1.435e-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.159e+00  1.933e-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: 6.34e-08 ph cm-2 s-1
Energy Flux Upper Limit: 4.96e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/231093/likelihoodResults_488937601_489196801_4FGL_J0809.3+4053_daily_bin963.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) = 6203.58762417
delta logL = -0.00201796888814

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6203.5856063
delta logL = -9.58980308496e-08

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.5867       1.0000          .0000       10.000    
     3 'Normalizat'    1.1587       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .72595       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.586     FROM MIGRAD    STATUS=CONVERGED     51 CALLS      202 TOTAL
                     EDM=   .71E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    163.88        .90712E-02** at limit **
   2  Index         2.5853        5.0567        .50000        .48871E-05
   3  Normalizat    1.1587        .40262E-01    .53217E-01   -.72698E-04
   4  Prefactor     .72592        .30309E-01    .42746E-01   -.41667E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Index      = 2.58534
  Normalizat = 1.15873
  Prefactor  = 0.725922
 **********
 **   18 **HESSE 
 **********

 FCN=   6203.586     FROM HESSE     STATUS=OK            33 CALLS      235 TOTAL
                     EDM=   .46E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    2.7886        .11701E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.5853        6.2921        .50000       -.50400    
   3  Normalizat    1.1587        .18633        .23530E-03   -.87888    
   4  Prefactor     .72592        .14065        .21810E-03   -1.0252    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.64434e-11
Minuit parameter uncertainties:
  1  8.907e-06
  2  4.76113
  3  0.186436
  4  0.140714
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/231093': 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) = 6203.5856062
delta logL = 3.23962012772e-09

Extracting fit parameters...

4FGL J0809.3+4053
   Spectrum: PowerLaw
269    Prefactor:  1.000e-04  8.907e-06  1.000e-04  1.000e+04 ( 1.000e-12)
270        Index:  2.585e+00  4.761e+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:  7.259e-01  1.407e-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.159e+00  1.864e-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/231093/cmap_HighResolution_488937601_489196801_4FGL_J0809.3+4053_daily_bin963.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='4.96e-03', job_status='DONE', photon_flux_upper_limit='6.34e-08', time_completed='2021-08-29 08:06:01.300866', job_id='231093', GAL2='0.73', fit_tolerance='1e-08', EG2='1.16', EG='1.16', time_epoch_completed='1630249561.3', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.73', dlogl='3.24e-09', ts2='-0.00', photon_index_error='0.00', photon_index='2.59' WHERE bin_id='963' AND source_name='4FGL J0809.3+4053' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Aug 29 08:06:01 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0231>
Subject: Job 231093: <4FGL_J0809.3+4053_daily_bin963> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0809.3+4053_daily_bin963 122.33 40.8954 488937601 489196801 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 :                                   695.51 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             264.70 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   916 sec.
    Turnaround time :                            919 sec.

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

