/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 4 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 = 7425
number of fields = 27
No RA_SUN column yet. Adding RA_SUN/DEC_SUN columns.
Done.


Performing analysis on: 4FGL_J0809.3+4053_daily_bin435
RA = 122.33, Dec = 40.8954
tmin = 352080001, tmax = 352339201
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='228039', job_status='RUN', time_executed='2021-08-29 07:41:00.511041', time_epoch_executed='1630248060.51' WHERE source_name='4FGL J0809.3+4053' and cadence='daily' and bin_id='435'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/228039

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/228039/ft1_4FGL_J0809.3+4053_daily_bin435.fits


Retrieving the FT1 file...

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

Retrieving 48 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/228039/ft2_4FGL_J0809.3+4053_daily_bin435.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/228039/ft1_4FGL_J0809.3+4053_daily_bin435.fits outfile=/scratch/kocevski/228039/ft1_filteredMKT_4FGL_J0809.3+4053_daily_bin435.fits ra=122.33 dec=40.8954 rad=12.0 tmin=352080001.0 tmax=352339201.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 2.96
user 2.51
sys 0.39

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/228039/ft1_filtered_4FGL_J0809.3+4053_daily_bin435.fits" evtable="EVENTS" scfile=/scratch/kocevski/228039/ft2_4FGL_J0809.3+4053_daily_bin435.fits sctable="SC_DATA" outfile=/scratch/kocevski/228039/ltcube_352080001_352339201_4FGL_J0809.3+4053_daily_bin435.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/228039/ft2_4FGL_J0809.3+4053_daily_bin435.fits
.....................!
real 9.93
user 9.35
sys 0.54

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/228039/ft1_filtered_4FGL_J0809.3+4053_daily_bin435.fits evtable="EVENTS" scfile=/scratch/kocevski/228039/ft2_4FGL_J0809.3+4053_daily_bin435.fits sctable="SC_DATA" expcube=/scratch/kocevski/228039/ltcube_352080001_352339201_4FGL_J0809.3+4053_daily_bin435.fits outfile=/scratch/kocevski/228039/expmap_352080001_352339201_4FGL_J0809.3+4053_daily_bin435.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/228039/ltcube_352080001_352339201_4FGL_J0809.3+4053_daily_bin435.fits
.....................!
real 150.79
user 145.65
sys 4.83

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/228039/ft1_filtered_4FGL_J0809.3+4053_daily_bin435.fits scfile=/scratch/kocevski/228039/ft2_4FGL_J0809.3+4053_daily_bin435.fits outfile=/scratch/kocevski/228039/cmap_352080001_352339201_4FGL_J0809.3+4053_daily_bin435.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.68
user 0.30
sys 0.31

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/228039/ft1_filtered_4FGL_J0809.3+4053_daily_bin435.fits scfile=/scratch/kocevski/228039/ft2_4FGL_J0809.3+4053_daily_bin435.fits outfile=/scratch/kocevski/228039/cmap_HighResolution_352080001_352339201_4FGL_J0809.3+4053_daily_bin435.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.72
user 0.31
sys 0.34

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .19014       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     6 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
     7 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .61599       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    2.8440       1.0000         .10000E-03   10000.    
    11 'norm      '    3.8063       1.0000         .10000E-03   10000.    
    12 'norm      '    1.1625       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    8.7338       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10009E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    16.438       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10402E-03   1.0000         .10000E-03   10000.    
    18 'norm      '    8.7763       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10677E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    3.7045       1.0000         .10000E-03   10000.    
    21 'Prefactor '    1.7987       1.0000         .10000E-03   10000.    
    22 'Normalizat'    .88237       1.0000         .10000E-01   10.000    
    23 'Prefactor '    1.0982       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=   7431.656     FROM MIGRAD    STATUS=CONVERGED    523 CALLS     2551 TOTAL
                     EDM=   .10E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .6%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    2.7919        .37700E-07** at limit **
   2  Prefactor     .10000E-03    9.5278        .10673E-06** at limit **
   3  Prefactor     .10000E-03    12.739       -.40105E-06** at limit **
   4  Prefactor     .23415        5.0711       -.59285E-06    .22807E-03
   5  Prefactor     .10000E-03    3.8246       -.38777E-07** at limit **
   6  norm          .10000E-03    3.2665        .74574E-07** at limit **
   7  norm          .10000E-03    .73857       -.25790E-07** at limit **
   8  Prefactor     .61656        .35665        .13024E-07   -.21612E-03
   9  Prefactor     .10000E-03    25.230       -.31414E-06** at limit **
  10  Prefactor     2.8434        4.8524       -.37579E-06   -.18704E-04
  11  norm          3.8062        1.6982       -.51101E-08    .39896E-04
  12  norm          1.1627        .59575        .27989E-07    .37716E-03
  13  Prefactor     .10000E-03    6.1070        .10730E-06** at limit **
  14  Prefactor     8.7398        13.805        .26518E-05    .42156E-04
  15  Prefactor     .10000E-03    1.1365        .23897E-07** at limit **
  16  Prefactor     16.419        24.543       -.10822E-04   -.23678E-05
  17  Prefactor     .10000E-03    5.0819       -.58854E-06** at limit **
  18  norm          8.7762        5.4199        .44662E-08   -.51100E-04
  19  Prefactor     .10000E-03    1.2337        .20910E-06** at limit **
  20  Prefactor     3.7047        204.54        .30462E-05    .52600E-08
  21  Prefactor     1.7994        3.2892       -.51880E-07   -.11390E-04
  22  Normalizat    .88224        .17161        .12410E-05   -.92182E-05
  23  Prefactor     1.0983        .12915       -.31369E-06    .98297E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.234151
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 0.616556
  Prefactor  = 0.0001
  Prefactor  = 2.84342
  norm       = 3.80625
  norm       = 1.16267
  Prefactor  = 0.0001
  Prefactor  = 8.73979
  Prefactor  = 0.0001
  Prefactor  = 16.4189
  Prefactor  = 0.0001
  norm       = 8.77622
  Prefactor  = 0.000100001
  Prefactor  = 3.70472
  Prefactor  = 1.79944
  Normalizat = 0.882237
  Prefactor  = 1.09826
 **********
 **   18 **HESSE 
 **********

 FCN=   7431.656     FROM HESSE     STATUS=OK           372 CALLS     2923 TOTAL
                     EDM=   .23E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    2.8029        .14066E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    9.6270        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    12.760        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .23415        70.266        .37145E-02   -1.5611    
   5  Prefactor     .10000E-03    3.8274        .16465E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          .10000E-03    3.2729        .15215E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          .10000E-03    .74252        .72300E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .61656        9.0193        .23471E-02   -1.5551    
   9  Prefactor     .10000E-03    25.323        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     2.8434        4.8005        .22387E-03   -1.5371    
  11  norm          3.8062        1.6989        .73152E-04   -1.5318    
  12  norm          1.1627        .58294        .43891E-04   -1.5492    
  13  Prefactor     .10000E-03    6.1085        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     8.7398        13.722        .13563E-03   -1.5117    
  15  Prefactor     .10000E-03    1.1451        .89415E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     16.419        24.553        .98786E-04   -1.4897    
  17  Prefactor     .10000E-03    5.0851        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          8.7762        5.4001        .67651E-03   -1.5115    
  19  Prefactor     .10000E-03    5.0968        .18409E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     3.7047        202.97        .20982E-03   -1.5323    
  21  Prefactor     1.7994        3.2530        .20005E-03   -1.5440    
  22  Normalizat    .88224        .19312        .28032E-03   -.97087    
  23  Prefactor     1.0983        .14743        .19933E-03   -.89522    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.30389e-09
Minuit parameter uncertainties:
  1  1.09251e-06
  2  1.24731e-05
  3  1.78122e-07
  4  8.12034
  5  6.1062e-07
  6  2.25273e-06
  7  2.99426e-07
  8  4.71679
  9  2.60029e-06
  10  4.80119
  11  1.6989
  12  0.582948
  13  1.5198e-06
  14  13.7274
  15  1.58874e-06
  16  24.5684
  17  5.78423e-05
  18  5.40035
  19  0.00012855
  20  55.0402
  21  3.25329
  22  0.193275
  23  0.14748
Done.

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

Extracting fit parameters...

4FGL J0809.3+4053
   Spectrum: PowerLaw
269    Prefactor:  2.843e+00  4.801e+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:  1.098e+00  1.475e-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.822e-01  1.933e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 0.45
Ra Dec: 122.330 40.895
Photon Flux Upper Limit: 1.08e-07 ph cm-2 s-1
Energy Flux Upper Limit: 8.43e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/228039/likelihoodResults_352080001_352339201_4FGL_J0809.3+4053_daily_bin435.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) = 7431.0635342
delta logL = 0.592318958532

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 7431.01873106
delta logL = 0.637122102156

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    4.2779       1.0000         .10000E-03   10000.    
     2 'Index     '    1.6515       1.0000          .0000       10.000    
     3 'Normalizat'    .90590       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0820       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=   7431.019     FROM MIGRAD    STATUS=CONVERGED     50 CALLS      211 TOTAL
                     EDM=   .13E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     4.2779        4.4768        .48698E-02   -.15801E-03
   2  Index         1.6514        .43707        .20180       -.93764E-04
   3  Normalizat    .90590        .16286        .44977E-01    .19793E-04
   4  Prefactor     1.0820        .12835        .38314E-01    .25949E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 4.27788
  Index      = 1.65137
  Normalizat = 0.905903
  Prefactor  = 1.08201
 **********
 **   18 **HESSE 
 **********

 FCN=   7431.019     FROM HESSE     STATUS=OK            33 CALLS      244 TOTAL
                     EDM=   .94E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     4.2779        5.1389        .18078E-03   -1.5294    
   2  Index         1.6514        .59185        .98801E-02   -.73384    
   3  Normalizat    .90590        .18511        .27703E-03   -.96253    
   4  Prefactor     1.0820        .14597        .20048E-03   -.90044    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 9.38962e-11
Minuit parameter uncertainties:
  1  5.13939
  2  0.594383
  3  0.185244
  4  0.146019
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/228039': 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) = 7431.018731
delta logL = 0.637122162088

Extracting fit parameters...

4FGL J0809.3+4053
   Spectrum: PowerLaw
269    Prefactor:  4.278e+00  5.139e+00  1.000e-04  1.000e+04 ( 1.000e-12)
270        Index:  1.651e+00  5.944e-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:  1.082e+00  1.460e-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.059e-01  1.852e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 1.73
Ra Dec: 122.330 40.895
Photon Index (Free Index): 1.65 +/- 0.59
Photon Flux (Free Index): 1.46e-08 +/- 1.97e-08
Energy Flux (Free Index): 2.79e-05 +/- 4.21e-05

Creating a high resolution counts map...
INFO: Auto-setting vmin to -1.000e-01 [aplpy.core]
INFO: Auto-setting vmax to  1.110e+00 [aplpy.core]
Saving /scratch/kocevski/228039/cmap_HighResolution_352080001_352339201_4FGL_J0809.3+4053_daily_bin435.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='8.43e-03', comment='SUCCESS', energy_flux2='2.79e-05', dlogl='6.37e-01', photon_flux2='1.46e-08', job_status='DONE', time_completed='2021-08-29 07:51:08.111060', photon_index_error2='0.59', photon_index2='1.65', ts='0.45', fit_tolerance='1e-08', GAL='1.10', photon_index_error='0.00', photon_flux_upper_limit='1.08e-07', energy_flux_error2='4.21e-05', EG='0.88', time_epoch_completed='1630248668.11', return_code='0', job_id='228039', GAL2='1.08', EG2='0.91', return_code2='0', photon_flux_error2='1.97e-08', ts2='1.73', photon_index='2.59' WHERE bin_id='435' AND source_name='4FGL J0809.3+4053' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Aug 29 07:51:08 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0033>
Subject: Job 228039: <4FGL_J0809.3+4053_daily_bin435> in cluster <slac> Done

Job <4FGL_J0809.3+4053_daily_bin435> was submitted from host <rhel6-64m> by user <kocevski> in cluster <slac> at Sun Aug 29 07:40:41 2021
Job was executed on host(s) <bullet0033>, in queue <medium>, as user <kocevski> in cluster <slac> at Sun Aug 29 07:40:43 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:40:43 2021
Terminated at Sun Aug 29 07:51:08 2021
Results reported at Sun Aug 29 07:51:08 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0809.3+4053_daily_bin435 122.33 40.8954 352080001 352339201 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 :                                   606.14 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             347.35 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              7
    Max Threads :                                21
    Run time :                                   625 sec.
    Turnaround time :                            627 sec.

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

