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


Performing analysis on: 4FGL_J0809.3+4053_daily_bin782
RA = 122.33, Dec = 40.8954
tmin = 442022401, tmax = 442281601
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='229585', job_status='RUN', time_executed='2021-08-29 07:46:07.122457', time_epoch_executed='1630248367.12' WHERE source_name='4FGL J0809.3+4053' and cadence='daily' and bin_id='782'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/229585

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/229585/ft1_4FGL_J0809.3+4053_daily_bin782.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/229585/ft2_4FGL_J0809.3+4053_daily_bin782.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/229585/ft1_4FGL_J0809.3+4053_daily_bin782.fits outfile=/scratch/kocevski/229585/ft1_filteredMKT_4FGL_J0809.3+4053_daily_bin782.fits ra=122.33 dec=40.8954 rad=12.0 tmin=442022401.0 tmax=442281601.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.68
user 3.56
sys 0.95

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/229585/ft1_filtered_4FGL_J0809.3+4053_daily_bin782.fits" evtable="EVENTS" scfile=/scratch/kocevski/229585/ft2_4FGL_J0809.3+4053_daily_bin782.fits sctable="SC_DATA" outfile=/scratch/kocevski/229585/ltcube_442022401_442281601_4FGL_J0809.3+4053_daily_bin782.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/229585/ft2_4FGL_J0809.3+4053_daily_bin782.fits
.....................!
real 12.90
user 11.60
sys 1.24

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/229585/ft1_filtered_4FGL_J0809.3+4053_daily_bin782.fits evtable="EVENTS" scfile=/scratch/kocevski/229585/ft2_4FGL_J0809.3+4053_daily_bin782.fits sctable="SC_DATA" expcube=/scratch/kocevski/229585/ltcube_442022401_442281601_4FGL_J0809.3+4053_daily_bin782.fits outfile=/scratch/kocevski/229585/expmap_442022401_442281601_4FGL_J0809.3+4053_daily_bin782.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/229585/ltcube_442022401_442281601_4FGL_J0809.3+4053_daily_bin782.fits
.....................!
real 190.79
user 184.83
sys 5.57

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/229585/ft1_filtered_4FGL_J0809.3+4053_daily_bin782.fits scfile=/scratch/kocevski/229585/ft2_4FGL_J0809.3+4053_daily_bin782.fits outfile=/scratch/kocevski/229585/cmap_442022401_442281601_4FGL_J0809.3+4053_daily_bin782.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.38
sys 0.84

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/229585/ft1_filtered_4FGL_J0809.3+4053_daily_bin782.fits scfile=/scratch/kocevski/229585/ft2_4FGL_J0809.3+4053_daily_bin782.fits outfile=/scratch/kocevski/229585/cmap_HighResolution_442022401_442281601_4FGL_J0809.3+4053_daily_bin782.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.22
user 0.38
sys 0.83

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    8.5488       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .15786E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    25.262       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10040E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    11.202       1.0000         .10000E-03   10000.    
     6 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
     7 'norm      '    .10105E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10012E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    1.2365       1.0000         .10000E-03   10000.    
    11 'norm      '    .59011       1.0000         .10000E-03   10000.    
    12 'norm      '    1.0302       1.0000         .10000E-03   10000.    
    13 'Prefactor '    34.657       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10022E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .51124       1.0000         .10000E-03   10000.    
    16 'Prefactor '    15.381       1.0000         .10000E-03   10000.    
    17 'Prefactor '    6.1546       1.0000         .10000E-03   10000.    
    18 'norm      '    6.7010       1.0000         .10000E-03   10000.    
    19 'Prefactor '    3.2948       1.0000         .10000E-03   10000.    
    20 'Prefactor '    44.774       1.0000         .10000E-03   10000.    
    21 'Prefactor '    5.0546       1.0000         .10000E-03   10000.    
    22 'Normalizat'    .87997       1.0000         .10000E-01   10.000    
    23 'Prefactor '    .97527       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=   7164.759     FROM MIGRAD    STATUS=CONVERGED    512 CALLS     2607 TOTAL
                     EDM=   .51E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.0%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          8.5495        6.3212        .10707E-06   -.13456E-04
   2  Prefactor     .10001E-03    6.8311        .59078E-06** at limit **
   3  Prefactor     25.275        23.677        .51347E-06    .13830E-03
   4  Prefactor     .10000E-03    8.2438        .54183E-07** at limit **
   5  Prefactor     11.198        13.561        .32892E-06    .18960E-04
   6  norm          .10000E-03    4.6233        .32479E-07** at limit **
   7  norm          .10000E-03    1.0252       -.16336E-07** at limit **
   8  Prefactor     .10000E-03    2.3752       -.36782E-07** at limit **
   9  Prefactor     .10000E-03    10.849       -.77386E-07** at limit **
  10  Prefactor     1.2360        3.6003        .11047E-05   -.14162E-03
  11  norm          .58889        1.2487        .27652E-06    .50536E-03
  12  norm          1.0303        .54321       -.47592E-07   -.60389E-03
  13  Prefactor     34.690        33.237        .17211E-05    .35534E-03
  14  Prefactor     .10000E-03    3.7185       -.93113E-07** at limit **
  15  Prefactor     .51116        1.5213        .44247E-06   -.23337E-03
  16  Prefactor     15.378        23.613       -.80398E-06   -.83872E-04
  17  Prefactor     6.1553        8.0822        .27030E-05   -.28266E-03
  18  norm          6.7005        5.9555        .24907E-05   -.49720E-03
  19  Prefactor     3.2943        2.3714       -.56583E-07   -.91642E-04
  20  Prefactor     44.800        45.339        .11683E-05    .21425E-03
  21  Prefactor     5.0527        4.2406        .16985E-06   -.78794E-04
  22  Normalizat    .88041        .17094       -.21100E-05   -.13612E-03
  23  Prefactor     .97486        .12331        .36480E-06   -.27267E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 8.54951
  Prefactor  = 0.000100006
  Prefactor  = 25.2747
  Prefactor  = 0.0001
  Prefactor  = 11.1976
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 1.23598
  norm       = 0.588888
  norm       = 1.03032
  Prefactor  = 34.6898
  Prefactor  = 0.0001
  Prefactor  = 0.511156
  Prefactor  = 15.3781
  Prefactor  = 6.15526
  norm       = 6.70048
  Prefactor  = 3.29426
  Prefactor  = 44.7995
  Prefactor  = 5.05271
  Normalizat = 0.88041
  Prefactor  = 0.974865
 **********
 **   18 **HESSE 
 **********

 FCN=   7164.759     FROM HESSE     STATUS=OK           378 CALLS     2985 TOTAL
                     EDM=   .15E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          8.5495        6.3292        .13710E-03   -1.5123    
   2  Prefactor     .10001E-03    52.668        .42400E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     25.275        23.725        .79700E-04   -1.4702    
   4  Prefactor     .10000E-03    8.6025        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     11.198        13.553        .11970E-03   -1.5039    
   6  norm          .10000E-03    4.6442        .17774E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          .10000E-03    2.0823        .16658E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    2.3804        .12738E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    10.856        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     1.2360        3.5264        .25477E-03   -1.5486    
  11  norm          .58889        1.0099        .13489E-02   -1.5554    
  12  norm          1.0303        .53471        .42520E-04   -1.5505    
  13  Prefactor     34.690        33.708        .68071E-04   -1.4529    
  14  Prefactor     .10000E-03    3.7249        .15935E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .51116        1.5851        .16868E-02   -1.5565    
  16  Prefactor     15.378        23.550        .10212E-03   -1.4923    
  17  Prefactor     6.1553        8.0635        .80912E-03   -1.5212    
  18  norm          6.7005        5.9402        .77505E-03   -1.5190    
  19  Prefactor     3.2943        2.3685        .10666E-03   -1.5345    
  20  Prefactor     44.800        45.653        .29958E-03   -1.4368    
  21  Prefactor     5.0527        4.2459        .15146E-03   -1.5258    
  22  Normalizat    .88041        .19097        .27806E-03   -.97152    
  23  Prefactor     .97486        .14017        .20262E-03   -.93572    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.46633e-08
Minuit parameter uncertainties:
  1  6.32973
  2  0.00108052
  3  23.7336
  4  1.06833e-05
  5  13.5572
  6  3.26149e-06
  7  1.43315e-05
  8  2.73592e-07
  9  5.70894e-06
  10  3.52701
  11  1.00996
  12  0.53471
  13  33.7268
  14  2.88243e-06
  15  1.58518
  16  23.5644
  17  8.06497
  18  5.94076
  19  2.36856
  20  45.689
  21  4.24616
  22  0.191117
  23  0.140222
Done.

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

Extracting fit parameters...

4FGL J0809.3+4053
   Spectrum: PowerLaw
269    Prefactor:  1.236e+00  3.527e+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:  9.749e-01  1.402e-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.804e-01  1.911e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 0.15
Ra Dec: 122.330 40.895
Photon Flux Upper Limit: 8.69e-08 ph cm-2 s-1
Energy Flux Upper Limit: 6.80e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/229585/likelihoodResults_442022401_442281601_4FGL_J0809.3+4053_daily_bin782.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) = 7164.75443505
delta logL = 0.00444121330656

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 7164.75403542
delta logL = 0.00484084082655

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    1.3288       1.0000         .10000E-03   10000.    
     2 'Index     '    2.3805       1.0000          .0000       10.000    
     3 'Normalizat'    .88264       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .97381       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=   7164.754     FROM MIGRAD    STATUS=CONVERGED    100 CALLS      261 TOTAL
                     EDM=   .16E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     1.3281        3.6976        .26249E-03   -.40279E-04
   2  Index         2.3833        1.9061        .12001E-01   -.51250E-06
   3  Normalizat    .88265        .18052        .27774E-03   -.29880E-05
   4  Prefactor     .97380        .13754        .20272E-03   -.34209E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 1.32806
  Index      = 2.38331
  Normalizat = 0.882652
  Prefactor  = 0.973798
 **********
 **   18 **HESSE 
 **********

 FCN=   7164.754     FROM HESSE     STATUS=OK            25 CALLS      286 TOTAL
                     EDM=   .18E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     1.3281        3.6802        .10500E-04   -1.5477    
   2  Index         2.3833        1.8977        .48003E-03   -.55076    
   3  Normalizat    .88265        .18061        .11110E-04   -.97072    
   4  Prefactor     .97380        .13760        .81088E-05   -.93608    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.76346e-12
Minuit parameter uncertainties:
  1  3.68086
  2  1.96677
  3  0.180733
  4  0.137648
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/229585': 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) = 7164.75403441
delta logL = 0.00484185300957

Extracting fit parameters...

4FGL J0809.3+4053
   Spectrum: PowerLaw
269    Prefactor:  1.328e+00  3.681e+00  1.000e-04  1.000e+04 ( 1.000e-12)
270        Index:  2.383e+00  1.967e+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:  9.738e-01  1.376e-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.827e-01  1.807e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 0.15
Ra Dec: 122.330 40.895

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/229585/cmap_HighResolution_442022401_442281601_4FGL_J0809.3+4053_daily_bin782.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='6.80e-03', job_status='DONE', photon_flux_upper_limit='8.69e-08', time_completed='2021-08-29 07:59:05.955999', job_id='229585', GAL2='0.97', fit_tolerance='1e-08', EG2='0.88', EG='0.88', time_epoch_completed='1630249145.96', return_code2='0', ts='0.15', comment='SUCCESS', return_code='0', GAL='0.97', dlogl='4.84e-03', ts2='0.16', photon_index_error='0.00', photon_index='2.59' WHERE bin_id='782' AND source_name='4FGL J0809.3+4053' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Aug 29 07:59:05 PDT 2021


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

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0809.3+4053_daily_bin782 122.33 40.8954 442022401 442281601 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 :                                   781.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             341.52 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   806 sec.
    Turnaround time :                            808 sec.

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

