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


Performing analysis on: 4FGL_J0809.3+4053_daily_bin937
RA = 122.33, Dec = 40.8954
tmin = 482198401, tmax = 482457601
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='231055', job_status='RUN', time_executed='2021-08-29 07:54:03.693369', time_epoch_executed='1630248843.69' WHERE source_name='4FGL J0809.3+4053' and cadence='daily' and bin_id='937'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/231055

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/231055/ft1_4FGL_J0809.3+4053_daily_bin937.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/231055/ft2_4FGL_J0809.3+4053_daily_bin937.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/231055/ft1_4FGL_J0809.3+4053_daily_bin937.fits outfile=/scratch/kocevski/231055/ft1_filteredMKT_4FGL_J0809.3+4053_daily_bin937.fits ra=122.33 dec=40.8954 rad=12.0 tmin=482198401.0 tmax=482457601.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 4.35
user 3.43
sys 0.88

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/231055/ft1_filtered_4FGL_J0809.3+4053_daily_bin937.fits" evtable="EVENTS" scfile=/scratch/kocevski/231055/ft2_4FGL_J0809.3+4053_daily_bin937.fits sctable="SC_DATA" outfile=/scratch/kocevski/231055/ltcube_482198401_482457601_4FGL_J0809.3+4053_daily_bin937.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/231055/ft2_4FGL_J0809.3+4053_daily_bin937.fits
.....................!
real 13.50
user 12.29
sys 1.06

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/231055/ft1_filtered_4FGL_J0809.3+4053_daily_bin937.fits evtable="EVENTS" scfile=/scratch/kocevski/231055/ft2_4FGL_J0809.3+4053_daily_bin937.fits sctable="SC_DATA" expcube=/scratch/kocevski/231055/ltcube_482198401_482457601_4FGL_J0809.3+4053_daily_bin937.fits outfile=/scratch/kocevski/231055/expmap_482198401_482457601_4FGL_J0809.3+4053_daily_bin937.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/231055/ltcube_482198401_482457601_4FGL_J0809.3+4053_daily_bin937.fits
.....................!
real 192.59
user 185.46
sys 6.66

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/231055/ft1_filtered_4FGL_J0809.3+4053_daily_bin937.fits scfile=/scratch/kocevski/231055/ft2_4FGL_J0809.3+4053_daily_bin937.fits outfile=/scratch/kocevski/231055/cmap_482198401_482457601_4FGL_J0809.3+4053_daily_bin937.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 1.18
user 0.36
sys 0.80

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/231055/ft1_filtered_4FGL_J0809.3+4053_daily_bin937.fits scfile=/scratch/kocevski/231055/ft2_4FGL_J0809.3+4053_daily_bin937.fits outfile=/scratch/kocevski/231055/cmap_HighResolution_482198401_482457601_4FGL_J0809.3+4053_daily_bin937.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.21
user 0.36
sys 0.81

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    4.6117       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .39775E-02   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10268E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    1.2944       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10121E-03   1.0000         .10000E-03   10000.    
     6 'norm      '    .56741E-01   1.0000         .10000E-03   10000.    
     7 'norm      '    1.3596       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10305E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    10.051       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10014E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    1.9789       1.0000         .10000E-03   10000.    
    12 'norm      '    .51610       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10015E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .53457E-02   1.0000         .10000E-03   10000.    
    15 'Prefactor '    1.2794       1.0000         .10000E-03   10000.    
    16 'Prefactor '    17.479       1.0000         .10000E-03   10000.    
    17 'Prefactor '    1.8478       1.0000         .10000E-03   10000.    
    18 'norm      '    .10056E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    2.8217       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    4.7013       1.0000         .10000E-03   10000.    
    22 'Normalizat'    .82400       1.0000         .10000E-01   10.000    
    23 'Prefactor '    1.1474       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=   6937.964     FROM MIGRAD    STATUS=CONVERGED    553 CALLS     2279 TOTAL
                     EDM=   .16E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.3%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          4.6101        6.7960       -.28921E-05    .31654E-03
   2  Prefactor     .10005E-03    7.7722       -.14256E-05** at limit **
   3  Prefactor     .10000E-03    27.202       -.10627E-05** at limit **
   4  Prefactor     1.3086        33.415       -.43587E-05   -.24065E-03
   5  Prefactor     .10000E-03    6.6049       -.41903E-08** at limit **
   6  norm          .40879E-01    7.7414       -.23952E-05    .56378E-03
   7  norm          1.3566        3.1691       -.10214E-06   -.60047E-03
   8  Prefactor     .10000E-03    4.3616        .50659E-07** at limit **
   9  Prefactor     10.138        44.738       -.64489E-05    .11552E-03
  10  Prefactor     .10000E-03    1.3075       -.12084E-07** at limit **
  11  norm          1.9788        1.6250       -.71807E-07   -.20925E-03
  12  norm          .51653        .52877        .47521E-07    .86321E-03
  13  Prefactor     .10000E-03    11.761       -.67334E-08** at limit **
  14  Prefactor     .10001E-03    6.9588        .10257E-06** at limit **
  15  Prefactor     1.2799        2.5613       -.78424E-06   -.83964E-03
  16  Prefactor     17.461        26.938        .13014E-04   -.14157E-03
  17  Prefactor     1.8772        24.324       -.27345E-04    .16408E-03
  18  norm          .10000E-03    3.5887        .11892E-06** at limit **
  19  Prefactor     2.8211        3.2978       -.14931E-06   -.28454E-03
  20  Prefactor     .10000E-03    12.929        .11666E-07** at limit **
  21  Prefactor     4.7010        3.5259       -.87409E-07    .69365E-04
  22  Normalizat    .82391        .18515        .30384E-05    .58363E-03
  23  Prefactor     1.1474        .13437        .50187E-06    .91678E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 4.61006
  Prefactor  = 0.000100051
  Prefactor  = 0.0001
  Prefactor  = 1.3086
  Prefactor  = 0.0001
  norm       = 0.0408792
  norm       = 1.35664
  Prefactor  = 0.0001
  Prefactor  = 10.1381
  Prefactor  = 0.0001
  norm       = 1.97879
  norm       = 0.516527
  Prefactor  = 0.0001
  Prefactor  = 0.000100007
  Prefactor  = 1.27992
  Prefactor  = 17.4614
  Prefactor  = 1.87719
  norm       = 0.0001
  Prefactor  = 2.82107
  Prefactor  = 0.0001
  Prefactor  = 4.701
  Normalizat = 0.823906
  Prefactor  = 1.1474
 **********
 **   18 **HESSE 
 **********

 FCN=   6937.964     FROM HESSE     STATUS=OK           388 CALLS     2667 TOTAL
                     EDM=   .53E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          4.6101        6.8186        .18743E-03   -1.5279    
   2  Prefactor     .10005E-03    52.098        .44388E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    27.335        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     1.3086        30.254        .38890E-03   -1.5479    
   5  Prefactor     .10000E-03    6.6147        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          .40879E-01    11.474        .69902E-01   -1.5668    
   7  norm          1.3566        2.9410        .18503E-03   -1.5475    
   8  Prefactor     .10000E-03    4.3812        .16973E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     10.138        44.159        .12639E-03   -1.5071    
  10  Prefactor     .10000E-03    1.3109        .92973E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          1.9788        1.6135        .93571E-04   -1.5427    
  12  norm          .51653        .49613        .56937E-03   -1.5564    
  13  Prefactor     .10000E-03    11.770        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10001E-03    73.717        .40021E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     1.2799        2.4652        .17470E-03   -1.5482    
  16  Prefactor     17.461        26.770        .95800E-04   -1.4872    
  17  Prefactor     1.8772        25.465        .30675E-03   -1.5434    
  18  norm          .10000E-03    9.1970        .30477E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     2.8211        3.2802        .15603E-03   -1.5372    
  20  Prefactor     .10000E-03    12.929        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     4.7010        3.5284        .13137E-03   -1.5274    
  22  Normalizat    .82391        .20985        .30173E-03   -.99188    
  23  Prefactor     1.1474        .15440        .19622E-03   -.87966    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.29544e-09
Minuit parameter uncertainties:
  1  6.81971
  2  0.00325824
  3  0.000133979
  4  12.5908
  5  9.69258e-07
  6  1.36835
  7  2.94126
  8  1.28617e-05
  9  42.3699
  10  1.42753e-07
  11  1.61353
  12  0.496131
  13  1.88751e-05
  14  0.00146699
  15  2.46544
  16  26.7888
  17  13.8347
  18  3.02039e-05
  19  3.28036
  20  3.16772e-06
  21  3.52851
  22  0.210061
  23  0.154456
Done.

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

Extracting fit parameters...

4FGL J0809.3+4053
   Spectrum: PowerLaw
269    Prefactor:  1.000e-04  1.428e-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:  1.147e+00  1.545e-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:  8.239e-01  2.101e-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: 5.61e-08 ph cm-2 s-1
Energy Flux Upper Limit: 4.39e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/231055/likelihoodResults_482198401_482457601_4FGL_J0809.3+4053_daily_bin937.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) = 6937.96763755
delta logL = -0.00359241298156

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 6937.96404505
delta logL = 8.88912836672e-08

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.5790       1.0000          .0000       10.000    
     3 'Normalizat'    .82391       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.1474       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=   6937.964     FROM MIGRAD    STATUS=CONVERGED    101 CALLS      250 TOTAL
                     EDM=   .80E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    20.182        .93298E-02** at limit **
   2  Index         2.1687        5.5158        .50000        .19761E-06
   3  Normalizat    .82391        .17245E-01    .30173E-03    .70873E-04
   4  Prefactor     1.1474        .13100E-01    .19622E-03    .12927E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Index      = 2.16867
  Normalizat = 0.823905
  Prefactor  = 1.1474
 **********
 **   18 **HESSE 
 **********

 FCN=   6937.964     FROM HESSE     STATUS=NOT POSDEF    29 CALLS      279 TOTAL
                     EDM=   .91E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    227.44        .97253E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.1687        8.9112        .50000       -.60197    
   3  Normalizat    .82391        .75809E-01    .12069E-04   -.99188    
   4  Prefactor     1.1474        .57586E-01    .39244E-04   -.87966    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 9.06908e-09
Minuit parameter uncertainties:
  1  0.000114061
  2  1156.02
  3  0.0758183
  4  0.0575894
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/231055': 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) = 6937.96404192
delta logL = 3.21808329318e-06

Extracting fit parameters...

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

GAL_V02
   Spectrum: PowerLaw
599    Prefactor:  1.147e+00  5.759e-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:  8.239e-01  7.582e-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 -2.500e-04 [aplpy.core]
INFO: Auto-setting vmax to  2.775e-03 [aplpy.core]
Saving /scratch/kocevski/231055/cmap_HighResolution_482198401_482457601_4FGL_J0809.3+4053_daily_bin937.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='4.39e-03', job_status='DONE', photon_flux_upper_limit='5.61e-08', time_completed='2021-08-29 08:06:01.516836', job_id='231055', GAL2='1.15', fit_tolerance='1e-08', EG2='0.82', EG='0.82', time_epoch_completed='1630249561.52', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.15', dlogl='3.22e-06', ts2='-0.00', photon_index_error='0.00', photon_index='2.59' WHERE bin_id='937' 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@bullet0222>
Subject: Job 231055: <4FGL_J0809.3+4053_daily_bin937> in cluster <slac> Done

Job <4FGL_J0809.3+4053_daily_bin937> was submitted from host <rhel6-64q> by user <kocevski> in cluster <slac> at Sun Aug 29 07:50:40 2021
Job was executed on host(s) <bullet0222>, in queue <medium>, as user <kocevski> in cluster <slac> at Sun Aug 29 07:50:42 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:42 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_bin937 122.33 40.8954 482198401 482457601 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 :                                   724.22 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             307.42 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   919 sec.
    Turnaround time :                            922 sec.

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

