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


Performing analysis on: 4FGL_J0809.8+0507_daily_bin956
RA = 122.453, Dec = 5.1313
tmin = 487123201, tmax = 487382401
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='254318', job_status='RUN', time_executed='2021-08-29 09:08:57.328267', time_epoch_executed='1630253337.33' WHERE source_name='4FGL J0809.8+0507' and cadence='daily' and bin_id='956'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/254318

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/254318/ft1_4FGL_J0809.8+0507_daily_bin956.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/254318/ft2_4FGL_J0809.8+0507_daily_bin956.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/254318/ft1_4FGL_J0809.8+0507_daily_bin956.fits outfile=/scratch/kocevski/254318/ft1_filteredMKT_4FGL_J0809.8+0507_daily_bin956.fits ra=122.453 dec=5.1313 rad=12.0 tmin=487123201.0 tmax=487382401.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 8.64
user 3.28
sys 5.31

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/254318/ft2_4FGL_J0809.8+0507_daily_bin956.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/254318/ft1_filteredMKT_4FGL_J0809.8+0507_daily_bin956.fits evtable="EVENTS" outfile="/scratch/kocevski/254318/ft1_filtered_4FGL_J0809.8+0507_daily_bin956.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 5.57
user 0.34
sys 5.18

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/254318/ft1_filtered_4FGL_J0809.8+0507_daily_bin956.fits" evtable="EVENTS" scfile=/scratch/kocevski/254318/ft2_4FGL_J0809.8+0507_daily_bin956.fits sctable="SC_DATA" outfile=/scratch/kocevski/254318/ltcube_487123201_487382401_4FGL_J0809.8+0507_daily_bin956.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/254318/ft2_4FGL_J0809.8+0507_daily_bin956.fits
.....................!
real 17.78
user 11.67
sys 6.06

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/254318/ft1_filtered_4FGL_J0809.8+0507_daily_bin956.fits evtable="EVENTS" scfile=/scratch/kocevski/254318/ft2_4FGL_J0809.8+0507_daily_bin956.fits sctable="SC_DATA" expcube=/scratch/kocevski/254318/ltcube_487123201_487382401_4FGL_J0809.8+0507_daily_bin956.fits outfile=/scratch/kocevski/254318/expmap_487123201_487382401_4FGL_J0809.8+0507_daily_bin956.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/254318/ltcube_487123201_487382401_4FGL_J0809.8+0507_daily_bin956.fits
.....................!
real 197.28
user 185.32
sys 11.06

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/254318/ft1_filtered_4FGL_J0809.8+0507_daily_bin956.fits scfile=/scratch/kocevski/254318/ft2_4FGL_J0809.8+0507_daily_bin956.fits outfile=/scratch/kocevski/254318/cmap_487123201_487382401_4FGL_J0809.8+0507_daily_bin956.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 5.63
user 0.38
sys 5.17

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/254318/ft1_filtered_4FGL_J0809.8+0507_daily_bin956.fits scfile=/scratch/kocevski/254318/ft2_4FGL_J0809.8+0507_daily_bin956.fits outfile=/scratch/kocevski/254318/cmap_HighResolution_487123201_487382401_4FGL_J0809.8+0507_daily_bin956.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 5.57
user 0.39
sys 5.14

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

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/254318/ft1_filtered_4FGL_J0809.8+0507_daily_bin956.fits', '/scratch/kocevski/254318/ft2_4FGL_J0809.8+0507_daily_bin956.fits', expMap='/scratch/kocevski/254318/expmap_487123201_487382401_4FGL_J0809.8+0507_daily_bin956.fits', expCube='/scratch/kocevski/254318/ltcube_487123201_487382401_4FGL_J0809.8+0507_daily_bin956.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/254318/Model_4FGL_J0809.8+0507_daily_bin956.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/254318/ft1_filtered_4FGL_J0809.8+0507_daily_bin956.fits
Spacecraft file(s): /scratch/kocevski/254318/ft2_4FGL_J0809.8+0507_daily_bin956.fits
Exposure map: /scratch/kocevski/254318/expmap_487123201_487382401_4FGL_J0809.8+0507_daily_bin956.fits
Exposure cube: /scratch/kocevski/254318/ltcube_487123201_487382401_4FGL_J0809.8+0507_daily_bin956.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/254318/Model_4FGL_J0809.8+0507_daily_bin956.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) = 7399.94550423

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    26.705       1.0000         .10000E-03   10000.    
     2 'Prefactor '    36.875       1.0000         .10000E-03   10000.    
     3 'norm      '    10.253       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    2.4573       1.0000         .10000E-03   10000.    
     6 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    6.6196       1.0000         .10000E-03   10000.    
     8 'Prefactor '    245.26       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10047E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    .84548       1.0000         .10000E-03   10000.    
    13 'norm      '    9.3356       1.0000         .10000E-03   10000.    
    14 'norm      '    5.6327       1.0000         .10000E-03   10000.    
    15 'Prefactor '    9.0143       1.0000         .10000E-03   10000.    
    16 'Prefactor '    4.7817       1.0000         .10000E-03   10000.    
    17 'norm      '    1.4459       1.0000         .10000E-03   10000.    
    18 'norm      '    .10023E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    20 'Normalizat'    1.1600       1.0000         .10000E-01   10.000    
    21 'Prefactor '    .83208       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=   7399.945     FROM MIGRAD    STATUS=CONVERGED    422 CALLS     2168 TOTAL
                     EDM=   .17E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     26.705        47.883        .19380E-02   -.17838E-03
   2  Prefactor     36.875        36.956        .16500E-02   -.19363E-03
   3  norm          10.253        2.5265        .31283E-02   -.23438E-03
   4  Prefactor     .10000E-03    8.9905        .90712E-02** at limit **
   5  Prefactor     2.4568        3.3934        .65229E-02   -.18309E-02
   6  norm          .10000E-03    4.3930        .90712E-02** at limit **
   7  Prefactor     6.6196        6.5333        .38992E-02   -.29013E-03
   8  Prefactor     245.26        150.91        .64652E-03   -.35048E-03
   9  Prefactor     .10000E-03    1.8101        .90712E-02** at limit **
  10  Prefactor     .10005E-03    16.406        .90712E-02** at limit **
  11  norm          .10000E-03    3.3041        .90712E-02** at limit **
  12  norm          .84577        2.1418        .12608E-01    .15086E-02
  13  norm          9.3332        14.417        .32791E-02    .11804E-02
  14  norm          5.6324        3.6013        .42315E-02   -.30345E-03
  15  Prefactor     9.0135        18.385        .33374E-02    .64486E-03
  16  Prefactor     4.7816        5.5269        .45997E-02   -.17206E-02
  17  norm          1.4459        1.0548        .89627E-02    .60720E-03
  18  norm          .10000E-03    6.3810        .90712E-02** at limit **
  19  Prefactor     .10005E-03    17.084        .90712E-02** at limit **
  20  Normalizat    1.1601        .18693        .63508E-01   -.73477E-05
  21  Prefactor     .83203        .12457        .44133E-01   -.11908E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 26.7053
  Prefactor  = 36.8755
  norm       = 10.2532
  Prefactor  = 0.0001
  Prefactor  = 2.45678
  norm       = 0.0001
  Prefactor  = 6.61959
  Prefactor  = 245.256
  Prefactor  = 0.0001
  Prefactor  = 0.000100053
  norm       = 0.0001
  norm       = 0.845769
  norm       = 9.33322
  norm       = 5.63237
  Prefactor  = 9.0135
  Prefactor  = 4.78163
  norm       = 1.44594
  norm       = 0.0001
  Prefactor  = 0.000100054
  Normalizat = 1.16008
  Prefactor  = 0.832028
 **********
 **   18 **HESSE 
 **********

 FCN=   7399.945     FROM HESSE     STATUS=OK           313 CALLS     2481 TOTAL
                     EDM=   .14E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     26.705        47.996        .77521E-04   -1.4674    
   2  Prefactor     36.875        36.955        .65999E-04   -1.4493    
   3  norm          10.253        2.5261        .63351E-04   -1.5067    
   4  Prefactor     .10000E-03    8.9947        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     2.4568        3.3754        .17356E-03   -1.5394    
   6  norm          .10000E-03    4.3944        .17609E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     6.6196        6.5359        .15597E-03   -1.5193    
   8  Prefactor     245.26        150.66        .12930E-03   -1.2563    
   9  Prefactor     .10000E-03    1.8119        .11301E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10005E-03    16.452        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          .10000E-03    3.3215        .15269E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          .84577        2.1392        .19099E-03   -1.5524    
  13  norm          9.3332        14.410        .13117E-03   -1.5097    
  14  norm          5.6324        3.6010        .12596E-03   -1.5233    
  15  Prefactor     9.0135        18.391        .13349E-03   -1.5107    
  16  Prefactor     4.7816        5.5280        .91994E-03   -1.5271    
  17  norm          1.4459        1.0433        .71294E-04   -1.5467    
  18  norm          .10000E-03    6.6038        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10005E-03    17.099        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Normalizat    1.1601        .21752        .28092E-03   -.87845    
  21  Prefactor     .83203        .14492        .21962E-03   -.98558    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.43526e-08
Minuit parameter uncertainties:
  1  48.0655
  2  36.9783
  3  2.52615
  4  6.95669e-05
  5  3.37568
  6  1.11528e-05
  7  6.53662
  8  150.903
  9  3.3492e-06
  10  0.00187666
  11  1.4696e-06
  12  2.13936
  13  14.4152
  14  3.60112
  15  18.4021
  16  5.52856
  17  1.04328
  18  4.79276e-06
  19  0.00192794
  20  0.217685
  21  0.144987
Done.

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

Extracting fit parameters...

4FGL J0809.8+0507
   Spectrum: LogParabola
280         norm:  9.333e+00  1.442e+01  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:  8.320e-01  1.450e-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:  1.160e+00  2.177e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/254318/likelihoodResults_487123201_487382401_4FGL_J0809.8+0507_daily_bin956.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) = 7398.53651229
delta logL = 1.40858770089

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 7398.53201866
delta logL = 1.41308132499

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    8.6087       1.0000         .10000E-03   10000.    
     2 'alpha     '    .39261E-06   1.0000          .0000       5.0000    
     3 'Normalizat'    1.1832       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .81516       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=   7398.532     FROM MIGRAD    STATUS=CONVERGED     46 CALLS      199 TOTAL
                     EDM=   .95E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          8.6086        7.8351        .34155E-02    .11445E-02
   2  alpha         .21649E-12    .73694        .46406    ** at limit **
   3  Normalizat    1.1832        .17915        .62938E-01   -.63824E-04
   4  Prefactor     .81516        .12135        .43914E-01    .47918E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 8.60864
  alpha      = 2.16493e-13
  Normalizat = 1.18319
  Prefactor  = 0.815159
 **********
 **   18 **HESSE 
 **********

 FCN=   7398.532     FROM HESSE     STATUS=OK            27 CALLS      226 TOTAL
                     EDM=   .89E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          8.6086        7.6181        .13662E-03   -1.5121    
   2  alpha         .21649E-12    .70454        .32156E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Normalizat    1.1832        .20737        .27839E-03   -.87124    
   4  Prefactor     .81516        .14055        .22139E-03   -.99172    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 8.93003e-10
Minuit parameter uncertainties:
  1  7.619
  2  8.00561e-07
  3  0.207517
  4  0.140612
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/254318': 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) = 7398.5320184
delta logL = 1.41308159225

Extracting fit parameters...

4FGL J0809.8+0507
   Spectrum: LogParabola
280         norm:  8.609e+00  7.619e+00  1.000e-04  1.000e+04 ( 1.000e-12)
281        alpha:  2.165e-13  8.006e-07  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:  8.152e-01  1.406e-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:  1.183e+00  2.075e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 3.41
Ra Dec: 122.453 5.131
Photon Index (Free Index): 0.00 +/- 0.00
Photon Flux (Free Index): 9.83e-09 +/- 8.70e-09
Energy Flux (Free Index): 1.06e-05 +/- 9.35e-06

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/254318/cmap_HighResolution_487123201_487382401_4FGL_J0809.8+0507_daily_bin956.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='2.00e-05', comment='SUCCESS', energy_flux2='1.06e-05', dlogl='1.41e+00', photon_flux2='9.83e-09', job_status='DONE', time_completed='2021-08-29 09:21:05.450634', photon_index_error2='0.00', photon_index2='0.00', ts='0.58', fit_tolerance='1e-08', GAL='0.83', photon_index_error='0.00', photon_flux_upper_limit='7.60e-08', energy_flux_error2='9.35e-06', EG='1.16', time_epoch_completed='1630254065.45', return_code='0', job_id='254318', GAL2='0.82', EG2='1.18', return_code2='0', photon_flux_error2='8.70e-09', ts2='3.41', photon_index='2.82' WHERE bin_id='956' AND source_name='4FGL J0809.8+0507' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Aug 29 09:21:05 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0210>
Subject: Job 254318: <4FGL_J0809.8+0507_daily_bin956> in cluster <slac> Done

Job <4FGL_J0809.8+0507_daily_bin956> was submitted from host <rhel6-64p> by user <kocevski> in cluster <slac> at Sun Aug 29 09:05:23 2021
Job was executed on host(s) <bullet0210>, in queue <medium>, as user <kocevski> in cluster <slac> at Sun Aug 29 09:05:26 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Sun Aug 29 09:05:26 2021
Terminated at Sun Aug 29 09:21:07 2021
Results reported at Sun Aug 29 09:21:07 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0809.8+0507_daily_bin956 122.453 5.1313 487123201 487382401 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 :                                   807.29 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             259.48 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              7
    Max Threads :                                21
    Run time :                                   940 sec.
    Turnaround time :                            944 sec.

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

