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


Performing analysis on: 4FGL_J0809.3+4053_daily_bin408
RA = 122.33, Dec = 40.8954
tmin = 345081601, tmax = 345340801
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='227996', job_status='RUN', time_executed='2021-08-29 07:44:19.655001', time_epoch_executed='1630248259.66' WHERE source_name='4FGL J0809.3+4053' and cadence='daily' and bin_id='408'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/227996

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/227996/ft1_4FGL_J0809.3+4053_daily_bin408.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/227996/ft2_4FGL_J0809.3+4053_daily_bin408.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/227996/ft1_4FGL_J0809.3+4053_daily_bin408.fits outfile=/scratch/kocevski/227996/ft1_filteredMKT_4FGL_J0809.3+4053_daily_bin408.fits ra=122.33 dec=40.8954 rad=12.0 tmin=345081601.0 tmax=345340801.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.23
user 3.29
sys 0.89

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/227996/ft2_4FGL_J0809.3+4053_daily_bin408.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/227996/ft1_filteredMKT_4FGL_J0809.3+4053_daily_bin408.fits evtable="EVENTS" outfile="/scratch/kocevski/227996/ft1_filtered_4FGL_J0809.3+4053_daily_bin408.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.32
sys 0.86

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/227996/ft1_filtered_4FGL_J0809.3+4053_daily_bin408.fits" evtable="EVENTS" scfile=/scratch/kocevski/227996/ft2_4FGL_J0809.3+4053_daily_bin408.fits sctable="SC_DATA" outfile=/scratch/kocevski/227996/ltcube_345081601_345340801_4FGL_J0809.3+4053_daily_bin408.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/227996/ft2_4FGL_J0809.3+4053_daily_bin408.fits
.....................!
real 12.49
user 11.43
sys 0.98

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/227996/ft1_filtered_4FGL_J0809.3+4053_daily_bin408.fits evtable="EVENTS" scfile=/scratch/kocevski/227996/ft2_4FGL_J0809.3+4053_daily_bin408.fits sctable="SC_DATA" expcube=/scratch/kocevski/227996/ltcube_345081601_345340801_4FGL_J0809.3+4053_daily_bin408.fits outfile=/scratch/kocevski/227996/expmap_345081601_345340801_4FGL_J0809.3+4053_daily_bin408.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/227996/ltcube_345081601_345340801_4FGL_J0809.3+4053_daily_bin408.fits
.....................!
real 190.88
user 184.93
sys 5.56

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/227996/ft1_filtered_4FGL_J0809.3+4053_daily_bin408.fits scfile=/scratch/kocevski/227996/ft2_4FGL_J0809.3+4053_daily_bin408.fits outfile=/scratch/kocevski/227996/cmap_345081601_345340801_4FGL_J0809.3+4053_daily_bin408.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.22
user 0.37
sys 0.82

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/227996/ft1_filtered_4FGL_J0809.3+4053_daily_bin408.fits scfile=/scratch/kocevski/227996/ft2_4FGL_J0809.3+4053_daily_bin408.fits outfile=/scratch/kocevski/227996/cmap_HighResolution_345081601_345340801_4FGL_J0809.3+4053_daily_bin408.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.23
user 0.37
sys 0.84

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10006E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    7.6575       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    9.1574       1.0000         .10000E-03   10000.    
     5 'Prefactor '    11.902       1.0000         .10000E-03   10000.    
     6 'norm      '    .10012E-03   1.0000         .10000E-03   10000.    
     7 'norm      '    .15746E-02   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10045E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    85.172       1.0000         .10000E-03   10000.    
    10 'Prefactor '    2.4287       1.0000         .10000E-03   10000.    
    11 'norm      '    1.2032       1.0000         .10000E-03   10000.    
    12 'norm      '    1.5543       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10024E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    15.247       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10477E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    24.151       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .11900E-03   1.0000         .10000E-03   10000.    
    18 'norm      '    .11698E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .80412       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    22 'Normalizat'    .95211       1.0000         .10000E-01   10.000    
    23 'Prefactor '    1.0563       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=   7213.448     FROM MIGRAD    STATUS=CONVERGED    522 CALLS     2613 TOTAL
                     EDM=   .17E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  3.1%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    3.6691       -.20456E-08** at limit **
   2  Prefactor     7.6573        8.6418        .68708E-07   -.15777E-04
   3  Prefactor     .10000E-03    49.404       -.49957E-06** at limit **
   4  Prefactor     9.1745        14.647        .89896E-07   -.11391E-03
   5  Prefactor     11.900        23.603        .32551E-07   -.47359E-04
   6  norm          .10000E-03    6.1893        .34195E-07** at limit **
   7  norm          .10007E-03    1.5459        .28935E-06** at limit **
   8  Prefactor     .10000E-03    2.8915        .22052E-06** at limit **
   9  Prefactor     85.188        62.610        .69166E-06    .12535E-03
  10  Prefactor     2.4312        6.3061        .16283E-05    .13553E-03
  11  norm          1.2032        1.0478       -.17895E-07   -.43419E-04
  12  norm          1.5541        .89172        .26926E-07   -.99622E-03
  13  Prefactor     .10000E-03    31.210        .75638E-06** at limit **
  14  Prefactor     15.281        16.297       -.21275E-05   -.68098E-03
  15  Prefactor     .10000E-03    2.4284        .15303E-05** at limit **
  16  Prefactor     24.135        24.239       -.59813E-06   -.39749E-03
  17  Prefactor     .10000E-03    11.524       -.68036E-06** at limit **
  18  norm          .10016E-03    7.2645       -.32015E-05** at limit **
  19  Prefactor     .80429        2.1938        .11302E-05    .73839E-03
  20  Prefactor     .10000E-03    18.562        .41980E-06** at limit **
  21  Prefactor     .10000E-03    2.3479       -.43842E-07** at limit **
  22  Normalizat    .95194        .19153       -.17501E-05   -.15846E-03
  23  Prefactor     1.0564        .13573        .52764E-06   -.27176E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  Prefactor  = 7.6573
  Prefactor  = 0.0001
  Prefactor  = 9.17452
  Prefactor  = 11.8998
  norm       = 0.0001
  norm       = 0.000100069
  Prefactor  = 0.0001
  Prefactor  = 85.1883
  Prefactor  = 2.43116
  norm       = 1.20317
  norm       = 1.55411
  Prefactor  = 0.000100001
  Prefactor  = 15.2809
  Prefactor  = 0.0001
  Prefactor  = 24.135
  Prefactor  = 0.0001
  norm       = 0.000100157
  Prefactor  = 0.804291
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Normalizat = 0.951941
  Prefactor  = 1.05642
 **********
 **   18 **HESSE 
 **********

 FCN=   7213.448     FROM HESSE     STATUS=OK           376 CALLS     2989 TOTAL
                     EDM=   .88E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    3.6955        .15886E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     7.6573        8.6401        .14492E-03   -1.5154    
   3  Prefactor     .10000E-03    50.136        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     9.1745        14.658        .13244E-03   -1.5102    
   5  Prefactor     11.900        23.572        .11612E-03   -1.5018    
   6  norm          .10000E-03    6.2109        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          .10007E-03    3.0760        .35090E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    2.8907        .14094E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     85.188        63.203        .43529E-04   -1.3859    
  10  Prefactor     2.4312        6.1544        .26260E-03   -1.5396    
  11  norm          1.2032        1.0685        .79130E-04   -1.5489    
  12  norm          1.5541        .87414        .52111E-04   -1.5459    
  13  Prefactor     .10000E-03    31.604        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     15.281        16.798        .10257E-03   -1.4926    
  15  Prefactor     .10000E-03    4.3924        .23265E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     24.135        24.522        .81510E-04   -1.4725    
  17  Prefactor     .10000E-03    11.703        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          .10016E-03    21.467        .34981E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .80429        2.1707        .20194E-03   -1.5529    
  20  Prefactor     .10000E-03    18.619        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10000E-03    2.4042        .12704E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Normalizat    .95194        .21871        .29211E-03   -.94658    
  23  Prefactor     1.0564        .15723        .20855E-03   -.90872    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 8.81017e-09
Minuit parameter uncertainties:
  1  1.75743e-06
  2  8.64148
  3  0.000202216
  4  14.6632
  5  23.5908
  6  1.0372e-05
  7  0.000919799
  8  8.40923e-06
  9  63.2531
  10  6.15597
  11  1.06852
  12  0.874143
  13  0.000396081
  14  16.8029
  15  3.85366e-06
  16  24.5327
  17  2.48292e-05
  18  0.00366834
  19  2.1709
  20  0.000186509
  21  1.50535e-06
  22  0.218918
  23  0.157301
Done.

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

Extracting fit parameters...

4FGL J0809.3+4053
   Spectrum: PowerLaw
269    Prefactor:  2.431e+00  6.156e+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.056e+00  1.573e-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.519e-01  2.189e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/227996/likelihoodResults_345081601_345340801_4FGL_J0809.3+4053_daily_bin408.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) = 7212.97207827
delta logL = 0.475432582261

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 7212.92951447
delta logL = 0.517996385057

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    1.5415       1.0000         .10000E-03   10000.    
     2 'Index     '    3.7916       1.0000          .0000       10.000    
     3 'Normalizat'    .89829       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0796       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=   7212.930     FROM MIGRAD    STATUS=CONVERGED     57 CALLS      228 TOTAL
                     EDM=   .30E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     1.5327        28.475        .85842E-02    .82322E-03
   2  Index         3.7953        3.7752        .15069        .11726E-03
   3  Normalizat    .89841        .49040E-01    .67683E-01   -.89606E-05
   4  Prefactor     1.0795        .36558E-01    .38419E-01   -.43905E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 1.5327
  Index      = 3.79527
  Normalizat = 0.898411
  Prefactor  = 1.07951
 **********
 **   18 **HESSE 
 **********

 FCN=   7212.930     FROM HESSE     STATUS=OK            33 CALLS      261 TOTAL
                     EDM=   .11E-06    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     1.5327        8.3548        .94566E-04   -1.5460    
   2  Index         3.7953        2.7922        .78908E-02   -.24334    
   3  Normalizat    .89841        .21650        .29942E-03   -.96516    
   4  Prefactor     1.0795        .15890        .20644E-03   -.90124    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.10964e-07
Minuit parameter uncertainties:
  1  7.15825
  2  2.97514
  3  0.216706
  4  0.158974
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/227996': 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) = 7212.9295102
delta logL = 0.51800065

Extracting fit parameters...

4FGL J0809.3+4053
   Spectrum: PowerLaw
269    Prefactor:  1.533e+00  7.158e+00  1.000e-04  1.000e+04 ( 1.000e-12)
270        Index:  3.795e+00  2.975e+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:  1.080e+00  1.590e-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.984e-01  2.167e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 1.32
Ra Dec: 122.330 40.895
Photon Index (Free Index): 3.80 +/- 2.98
Photon Flux (Free Index): 7.05e-08 +/- 6.87e-08
Energy Flux (Free Index): 1.10e-05 +/- 1.26e-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/227996/cmap_HighResolution_345081601_345340801_4FGL_J0809.3+4053_daily_bin408.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='9.64e-03', comment='SUCCESS', energy_flux2='1.10e-05', dlogl='5.18e-01', photon_flux2='7.05e-08', job_status='DONE', time_completed='2021-08-29 07:57:09.965146', photon_index_error2='2.98', photon_index2='3.80', ts='0.20', fit_tolerance='1e-08', GAL='1.06', photon_index_error='0.00', photon_flux_upper_limit='1.23e-07', energy_flux_error2='1.26e-05', EG='0.95', time_epoch_completed='1630249029.97', return_code='0', job_id='227996', GAL2='1.08', EG2='0.90', return_code2='0', photon_flux_error2='6.87e-08', ts2='1.32', photon_index='2.59' WHERE bin_id='408' AND source_name='4FGL J0809.3+4053' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Aug 29 07:57:10 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0089>
Subject: Job 227996: <4FGL_J0809.3+4053_daily_bin408> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0809.3+4053_daily_bin408 122.33 40.8954 345081601 345340801 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 :                                   777.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             258.84 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   991 sec.
    Turnaround time :                            993 sec.

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

