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


Performing analysis on: 4FGL_J0809.8+0507_daily_bin126
RA = 122.453, Dec = 5.1313
tmin = 271987201, tmax = 272246401
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='248778', job_status='RUN', time_executed='2021-08-29 08:48:39.472190', time_epoch_executed='1630252119.47' WHERE source_name='4FGL J0809.8+0507' and cadence='daily' and bin_id='126'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/248778

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/248778/ft1_4FGL_J0809.8+0507_daily_bin126.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/248778/ft2_4FGL_J0809.8+0507_daily_bin126.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/248778/ft1_4FGL_J0809.8+0507_daily_bin126.fits outfile=/scratch/kocevski/248778/ft1_filteredMKT_4FGL_J0809.8+0507_daily_bin126.fits ra=122.453 dec=5.1313 rad=12.0 tmin=271987201.0 tmax=272246401.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.12
user 1.44
sys 2.67

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/248778/ft2_4FGL_J0809.8+0507_daily_bin126.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/248778/ft2_4FGL_J0809.8+0507_daily_bin126.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/248778/ft1_filteredMKT_4FGL_J0809.8+0507_daily_bin126.fits evtable="EVENTS" outfile="/scratch/kocevski/248778/ft1_filtered_4FGL_J0809.8+0507_daily_bin126.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 2.51
user 0.31
sys 2.09

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/248778/ft1_filtered_4FGL_J0809.8+0507_daily_bin126.fits" evtable="EVENTS" scfile=/scratch/kocevski/248778/ft2_4FGL_J0809.8+0507_daily_bin126.fits sctable="SC_DATA" outfile=/scratch/kocevski/248778/ltcube_271987201_272246401_4FGL_J0809.8+0507_daily_bin126.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/248778/ft2_4FGL_J0809.8+0507_daily_bin126.fits
.....................!
real 14.43
user 11.79
sys 2.50

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/248778/ft1_filtered_4FGL_J0809.8+0507_daily_bin126.fits evtable="EVENTS" scfile=/scratch/kocevski/248778/ft2_4FGL_J0809.8+0507_daily_bin126.fits sctable="SC_DATA" expcube=/scratch/kocevski/248778/ltcube_271987201_272246401_4FGL_J0809.8+0507_daily_bin126.fits outfile=/scratch/kocevski/248778/expmap_271987201_272246401_4FGL_J0809.8+0507_daily_bin126.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/248778/ltcube_271987201_272246401_4FGL_J0809.8+0507_daily_bin126.fits
.....................!
real 192.84
user 184.28
sys 8.19

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 163 point sources and 0 extended sources

Setting source of interest to:
4FGL J0809.8+0507 @ 122.453 5.1313

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/248778/ft1_filtered_4FGL_J0809.8+0507_daily_bin126.fits scfile=/scratch/kocevski/248778/ft2_4FGL_J0809.8+0507_daily_bin126.fits outfile=/scratch/kocevski/248778/cmap_271987201_272246401_4FGL_J0809.8+0507_daily_bin126.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.453 yref=5.1313 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 2.42
user 0.36
sys 2.03

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/248778/ft1_filtered_4FGL_J0809.8+0507_daily_bin126.fits scfile=/scratch/kocevski/248778/ft2_4FGL_J0809.8+0507_daily_bin126.fits outfile=/scratch/kocevski/248778/cmap_HighResolution_271987201_272246401_4FGL_J0809.8+0507_daily_bin126.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.453 yref=5.1313 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 2.42
user 0.37
sys 2.03

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/248778/ft1_filtered_4FGL_J0809.8+0507_daily_bin126.fits evtable="EVENTS" scfile=/scratch/kocevski/248778/ft2_4FGL_J0809.8+0507_daily_bin126.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/248778/Model_4FGL_J0809.8+0507_daily_bin126.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/248778/ft1_filtered_4FGL_J0809.8+0507_daily_bin126.fits.....................!
real 97.59
user 93.59
sys 3.76

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/248778/ft1_filtered_4FGL_J0809.8+0507_daily_bin126.fits', '/scratch/kocevski/248778/ft2_4FGL_J0809.8+0507_daily_bin126.fits', expMap='/scratch/kocevski/248778/expmap_271987201_272246401_4FGL_J0809.8+0507_daily_bin126.fits', expCube='/scratch/kocevski/248778/ltcube_271987201_272246401_4FGL_J0809.8+0507_daily_bin126.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/248778/Model_4FGL_J0809.8+0507_daily_bin126.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J0809.8+0507'

4FGL J0809.8+0507
   Spectrum: LogParabola
280         norm:  4.437e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-12)
281        alpha:  2.815e+00  0.000e+00  0.000e+00  5.000e+00 ( 1.000e+00) fixed
282         beta:  8.580e-01  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
283           Eb:  4.471e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/248778/ft1_filtered_4FGL_J0809.8+0507_daily_bin126.fits
Spacecraft file(s): /scratch/kocevski/248778/ft2_4FGL_J0809.8+0507_daily_bin126.fits
Exposure map: /scratch/kocevski/248778/expmap_271987201_272246401_4FGL_J0809.8+0507_daily_bin126.fits
Exposure cube: /scratch/kocevski/248778/ltcube_271987201_272246401_4FGL_J0809.8+0507_daily_bin126.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/248778/Model_4FGL_J0809.8+0507_daily_bin126.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) = 8502.91557475

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    25.468       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10025E-03   1.0000         .10000E-03   10000.    
     3 'norm      '    .10193E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    1.6078       1.0000         .10000E-03   10000.    
     6 'norm      '    .10038E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    16.132       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    6.5032       1.0000         .10000E-03   10000.    
    11 'norm      '    .84871E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    2.5423       1.0000         .10000E-03   10000.    
    13 'norm      '    .10341E-03   1.0000         .10000E-03   10000.    
    14 'norm      '    .10003E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10008E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    .28497       1.0000         .10000E-03   10000.    
    18 'norm      '    4.9750       1.0000         .10000E-03   10000.    
    19 'Prefactor '    14.111       1.0000         .10000E-03   10000.    
    20 'Normalizat'    .68285       1.0000         .10000E-01   10.000    
    21 'Prefactor '    1.3773       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5380E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   8502.820     FROM MIGRAD    STATUS=CONVERGED    467 CALLS     2252 TOTAL
                     EDM=   .17E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .7%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     25.323        38.731       -.18838E-04    .63907E-05
   2  Prefactor     .10000E-03    9.9638       -.37245E-05** at limit **
   3  norm          .10000E-03    .55863        .14001E-06** at limit **
   4  Prefactor     .10000E-03    10.442        .23765E-05** at limit **
   5  Prefactor     1.6067        2.2336        .15416E-06   -.67501E-03
   6  norm          .10000E-03    9.6242        .16571E-05** at limit **
   7  Prefactor     16.129        10.508        .14639E-06   -.71548E-04
   8  Prefactor     .10000E-03    39.289       -.24488E-05** at limit **
   9  Prefactor     .10000E-03    2.3073        .39630E-07** at limit **
  10  Prefactor     6.4796        22.621        .39486E-04   -.15197E-05
  11  norm          .10000E-03    5.3743        .24408E-06** at limit **
  12  norm          2.5431        2.4630        .28923E-07   -.46558E-03
  13  norm          .10001E-03    16.144       -.32492E-05** at limit **
  14  norm          .10000E-03    .98448       -.10805E-06** at limit **
  15  Prefactor     .10000E-03    19.474        .18144E-05** at limit **
  16  Prefactor     .10000E-03    4.5434        .11982E-07** at limit **
  17  norm          .28462        .81817       -.37419E-06   -.27906E-02
  18  norm          4.9741        6.8903        .34437E-06   -.16934E-03
  19  Prefactor     14.084        27.379        .22955E-04   -.11085E-04
  20  Normalizat    .68356        .19026       -.98352E-05    .81679E-04
  21  Prefactor     1.3768        .12994        .27095E-05   -.48589E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 25.3231
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 1.60672
  norm       = 0.0001
  Prefactor  = 16.1287
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 6.47958
  norm       = 0.0001
  norm       = 2.54314
  norm       = 0.000100006
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.284616
  norm       = 4.9741
  Prefactor  = 14.0842
  Normalizat = 0.683556
  Prefactor  = 1.37682
 **********
 **   18 **HESSE 
 **********

 FCN=   8502.820     FROM HESSE     STATUS=OK           317 CALLS     2569 TOTAL
                     EDM=   .35E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     25.323        38.794        .79378E-04   -1.4701    
   2  Prefactor     .10000E-03    9.9840        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          .10000E-03    1.0503        .13350E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    10.461        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     1.6067        2.2063        .15426E-03   -1.5454    
   6  norm          .10000E-03    9.6577        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     16.129        10.497        .99717E-04   -1.4905    
   8  Prefactor     .10000E-03    39.292        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    2.3122        .13676E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     6.4796        22.464        .15737E-03   -1.5199    
  11  norm          .10000E-03    21.716        .40923E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          2.5431        2.4540        .13713E-03   -1.5389    
  13  norm          .10001E-03    16.297        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          .10000E-03    .99507        .89335E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    19.527        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    4.5620        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          .28462        .82310        .13240E-03   -1.5601    
  18  norm          4.9741        6.8684        .18030E-03   -1.5262    
  19  Prefactor     14.084        27.248        .10663E-03   -1.4957    
  20  Normalizat    .68356        .20601        .35612E-03   -1.0455    
  21  Prefactor     1.3768        .14419        .18757E-03   -.81051    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.45949e-09
Minuit parameter uncertainties:
  1  38.8322
  2  2.00179e-05
  3  1.4606e-05
  4  3.03489e-06
  5  2.20643
  6  6.51134e-06
  7  10.4978
  8  2.2329e-05
  9  4.3055e-06
  10  22.4928
  11  5.16649e-05
  12  2.45414
  13  0.000628924
  14  1.14592e-05
  15  9.18053e-05
  16  5.59066e-06
  17  0.823133
  18  6.86946
  19  27.272
  20  0.206247
  21  0.144232
Done.

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

Extracting fit parameters...

4FGL J0809.8+0507
   Spectrum: LogParabola
280         norm:  1.000e-04  6.289e-04  1.000e-04  1.000e+04 ( 1.000e-12)
281        alpha:  2.815e+00  0.000e+00  0.000e+00  5.000e+00 ( 1.000e+00) fixed
282         beta:  8.580e-01  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
283           Eb:  4.471e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
535    Prefactor:  1.377e+00  1.442e-01  0.000e+00  1.000e+01 ( 1.000e+00)
536        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
537        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
534   Normalization:  6.836e-01  2.062e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): -0.00
Ra Dec: 122.453 5.131
Photon Flux Upper Limit: 6.25e-08 ph cm-2 s-1
Energy Flux Upper Limit: 1.65e-05 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/248778/likelihoodResults_271987201_272246401_4FGL_J0809.8+0507_daily_bin126.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) = 8502.82044872
delta logL = -0.000292410728434

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 8502.82015629
delta logL = 1.49429979501e-08

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10126E-03   1.0000         .10000E-03   10000.    
     2 'alpha     '    2.8366       1.0000          .0000       5.0000    
     3 'Normalizat'    .68354       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.3768       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5380E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   8502.820     FROM MIGRAD    STATUS=CONVERGED     55 CALLS      193 TOTAL
                     EDM=   .76E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    17.333        .90712E-02** at limit **
   2  alpha         2.8593        3.6380        .41633       -.68719E-05
   3  Normalizat    .68355        .17429        .80425E-01    .39398E-04
   4  Prefactor     1.3768        .12639        .31389E-01   -.15007E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  alpha      = 2.85929
  Normalizat = 0.683551
  Prefactor  = 1.37682
 **********
 **   18 **HESSE 
 **********

 FCN=   8502.820     FROM HESSE     STATUS=OK            27 CALLS      220 TOTAL
                     EDM=   .57E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    16.861        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  alpha         2.8593        3.6238        .16653E-01    .14421    
   3  Normalizat    .68355        .19236        .35613E-03   -1.0455    
   4  Prefactor     1.3768        .13989        .18757E-03   -.81051    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.6611e-11
Minuit parameter uncertainties:
  1  9.7673e-05
  2  2.47488
  3  0.192552
  4  0.13993
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/248778': 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) = 8502.82015619
delta logL = 1.21304765344e-07

Extracting fit parameters...

4FGL J0809.8+0507
   Spectrum: LogParabola
280         norm:  1.000e-04  9.767e-05  1.000e-04  1.000e+04 ( 1.000e-12)
281        alpha:  2.859e+00  2.475e+00  0.000e+00  5.000e+00 ( 1.000e+00)
282         beta:  8.580e-01  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
283           Eb:  4.471e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
535    Prefactor:  1.377e+00  1.399e-01  0.000e+00  1.000e+01 ( 1.000e+00)
536        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
537        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
534   Normalization:  6.836e-01  1.926e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
Ra Dec: 122.453 5.131

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/248778/cmap_HighResolution_271987201_272246401_4FGL_J0809.8+0507_daily_bin126.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.65e-05', job_status='DONE', photon_flux_upper_limit='6.25e-08', time_completed='2021-08-29 09:00:43.574431', job_id='248778', GAL2='1.38', fit_tolerance='1e-08', EG2='0.68', EG='0.68', time_epoch_completed='1630252843.57', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.38', dlogl='1.21e-07', ts2='-0.00', photon_index_error='0.00', photon_index='2.82' WHERE bin_id='126' AND source_name='4FGL J0809.8+0507' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Aug 29 09:00:43 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0254>
Subject: Job 248778: <4FGL_J0809.8+0507_daily_bin126> in cluster <slac> Done

Job <4FGL_J0809.8+0507_daily_bin126> was submitted from host <rhel6-64o> by user <kocevski> in cluster <slac> at Sun Aug 29 08:45:43 2021
Job was executed on host(s) <bullet0254>, in queue <medium>, as user <kocevski> in cluster <slac> at Sun Aug 29 08:45:45 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Sun Aug 29 08:45:45 2021
Terminated at Sun Aug 29 09:00:44 2021
Results reported at Sun Aug 29 09:00:44 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0809.8+0507_daily_bin126 122.453 5.1313 271987201 272246401 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J0809.8+0507 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   754.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             317.60 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              7
    Max Threads :                                21
    Run time :                                   899 sec.
    Turnaround time :                            901 sec.

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

