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


Performing analysis on: 4FGL_J0809.8+0507_daily_bin230
RA = 122.453, Dec = 5.1313
tmin = 298944001, tmax = 299203201
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='248930', job_status='RUN', time_executed='2021-08-29 08:49:04.010149', time_epoch_executed='1630252144.01' WHERE source_name='4FGL J0809.8+0507' and cadence='daily' and bin_id='230'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/248930

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/248930/ft1_4FGL_J0809.8+0507_daily_bin230.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/248930/ft2_4FGL_J0809.8+0507_daily_bin230.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/248930/ft1_4FGL_J0809.8+0507_daily_bin230.fits outfile=/scratch/kocevski/248930/ft1_filteredMKT_4FGL_J0809.8+0507_daily_bin230.fits ra=122.453 dec=5.1313 rad=12.0 tmin=298944001.0 tmax=299203201.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 3.84
user 3.20
sys 0.62

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/248930/ft2_4FGL_J0809.8+0507_daily_bin230.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/248930/ft1_filteredMKT_4FGL_J0809.8+0507_daily_bin230.fits evtable="EVENTS" outfile="/scratch/kocevski/248930/ft1_filtered_4FGL_J0809.8+0507_daily_bin230.fits" apply_filter=yes overwrite=yes header_obstimes=yes tstart=0.0 tstop=0.0 gtifile="default" chatter=3 clobber=yes debug=no gui=no mode="ql"

WARNING: version mismatch between CFITSIO header (v3.43) and linked library (v3.41).

This is gtmktime version HEAD
Applying GTI filter:
IN_SAA!=T && LIVETIME>0 && gtifilter('/nfs/farm/g/glast/g/LCRepository/Likelihood/GTIs/nogrb.gti',(START+STOP)/2) && (angsep(RA_SUN,DEC_SUN,RA_ZENITH,DEC_ZENITH)>115 || gtifilter('/nfs/farm/g/glast/g/LCRepository/Likelihood/GTIs/nosolarflares.gti',(START+STOP)/2))
real 0.91
user 0.32
sys 0.58

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/248930/ft1_filtered_4FGL_J0809.8+0507_daily_bin230.fits" evtable="EVENTS" scfile=/scratch/kocevski/248930/ft2_4FGL_J0809.8+0507_daily_bin230.fits sctable="SC_DATA" outfile=/scratch/kocevski/248930/ltcube_298944001_299203201_4FGL_J0809.8+0507_daily_bin230.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/248930/ft2_4FGL_J0809.8+0507_daily_bin230.fits
.....................!
real 12.12
user 11.26
sys 0.83

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/248930/ft1_filtered_4FGL_J0809.8+0507_daily_bin230.fits evtable="EVENTS" scfile=/scratch/kocevski/248930/ft2_4FGL_J0809.8+0507_daily_bin230.fits sctable="SC_DATA" expcube=/scratch/kocevski/248930/ltcube_298944001_299203201_4FGL_J0809.8+0507_daily_bin230.fits outfile=/scratch/kocevski/248930/expmap_298944001_299203201_4FGL_J0809.8+0507_daily_bin230.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/248930/ltcube_298944001_299203201_4FGL_J0809.8+0507_daily_bin230.fits
.....................!
real 191.41
user 185.05
sys 6.01

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/248930/ft1_filtered_4FGL_J0809.8+0507_daily_bin230.fits scfile=/scratch/kocevski/248930/ft2_4FGL_J0809.8+0507_daily_bin230.fits outfile=/scratch/kocevski/248930/cmap_298944001_299203201_4FGL_J0809.8+0507_daily_bin230.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 0.96
user 0.36
sys 0.57

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/248930/ft1_filtered_4FGL_J0809.8+0507_daily_bin230.fits scfile=/scratch/kocevski/248930/ft2_4FGL_J0809.8+0507_daily_bin230.fits outfile=/scratch/kocevski/248930/cmap_HighResolution_298944001_299203201_4FGL_J0809.8+0507_daily_bin230.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 0.97
user 0.39
sys 0.55

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .11780E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     3 'norm      '    .40967       1.0000         .10000E-03   10000.    
     4 'Prefactor '    13.618       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
     6 'norm      '    .10083E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    8.9585       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .41030E-01   1.0000         .10000E-03   10000.    
     9 'Prefactor '    10.911       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10176E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    6.5439       1.0000         .10000E-03   10000.    
    12 'norm      '    1.4984       1.0000         .10000E-03   10000.    
    13 'norm      '    .10232E-03   1.0000         .10000E-03   10000.    
    14 'norm      '    .95955       1.0000         .10000E-03   10000.    
    15 'Prefactor '    11.109       1.0000         .10000E-03   10000.    
    16 'Prefactor '    5.7032       1.0000         .10000E-03   10000.    
    17 'norm      '    .35603       1.0000         .10000E-03   10000.    
    18 'norm      '    4.1744       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10066E-03   1.0000         .10000E-03   10000.    
    20 'Normalizat'    1.0294       1.0000         .10000E-01   10.000    
    21 'Prefactor '    1.1316       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.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   7645.188     FROM MIGRAD    STATUS=CONVERGED    762 CALLS     2256 TOTAL
                     EDM=   .99E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    30.555        .18142E-02** at limit **
   2  Prefactor     .10000E-03    12.441        .18142E-02** at limit **
   3  norm          .40878        1.4475        .18668E-03    .39195E-03
   4  Prefactor     13.637        18.103        .10854E-03   -.18072E-03
   5  Prefactor     .10000E-03    1.5777        .10628E-02** at limit **
   6  norm          .10000E-03    11.137        .18142E-02** at limit **
   7  Prefactor     8.9530        8.5577        .13391E-03   -.40581E-04
   8  Prefactor     .10001E-03    99.967        .26923    ** at limit **
   9  Prefactor     10.913        6.4607        .12129E-03   -.10639E-03
  10  Prefactor     .10000E-03    9.5369        .18142E-02** at limit **
  11  norm          6.5367        10.093        .15688E-03   -.98774E-04
  12  norm          1.4983        1.9340        .13466E-03    .12233E-03
  13  norm          .10000E-03    8.4563        .18142E-02** at limit **
  14  norm          .95978        3.7054        .31159E-03    .48854E-04
  15  Prefactor     11.131        26.982        .12020E-03   -.11426E-03
  16  Prefactor     5.7007        15.053        .16820E-03   -.12829E-03
  17  norm          .35601        .64702        .21336E-03   -.37932E-03
  18  norm          4.1726        7.7855        .98631E-03   -.19513E-03
  19  Prefactor     .10000E-03    10.139        .18142E-02** at limit **
  20  Normalizat    1.0294        .22000        .30471E-03   -.66077E-03
  21  Prefactor     1.1317        .14905        .20222E-03   -.84167E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.408781
  Prefactor  = 13.6371
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 8.95301
  Prefactor  = 0.000100009
  Prefactor  = 10.9126
  Prefactor  = 0.0001
  norm       = 6.53669
  norm       = 1.49834
  norm       = 0.0001
  norm       = 0.959782
  Prefactor  = 11.1306
  Prefactor  = 5.70068
  norm       = 0.356009
  norm       = 4.17262
  Prefactor  = 0.0001
  Normalizat = 1.02944
  Prefactor  = 1.13169
 **********
 **   18 **HESSE 
 **********

 FCN=   7645.188     FROM HESSE     STATUS=OK           305 CALLS     2561 TOTAL
                     EDM=   .99E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    30.559        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    12.442        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          .40878        1.4470        .74671E-05   -1.5580    
   4  Prefactor     13.637        18.103        .21708E-04   -1.4969    
   5  Prefactor     .10000E-03    1.5781        .21256E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          .10000E-03    11.138        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     8.9530        8.5572        .53565E-05   -1.5109    
   8  Prefactor     .10001E-03    99.963        .26923       -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     10.913        6.4605        .48516E-05   -1.5047    
  10  Prefactor     .10000E-03    9.5374        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          6.5367        10.091        .62752E-05   -1.5197    
  12  norm          1.4983        1.9339        .53863E-05   -1.5463    
  13  norm          .10000E-03    8.4571        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          .95978        3.7043        .12464E-04   -1.5512    
  15  Prefactor     11.131        26.978        .48079E-05   -1.5041    
  16  Prefactor     5.7007        15.051        .67279E-05   -1.5230    
  17  norm          .35601        .64691        .85345E-05   -1.5589    
  18  norm          4.1726        7.7825        .39452E-04   -1.5299    
  19  Prefactor     .10000E-03    10.139        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Normalizat    1.0294        .22010        .60942E-04   -.92050    
  21  Prefactor     1.1317        .14914        .40444E-04   -.88460    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 9.88734e-10
Minuit parameter uncertainties:
  1  2.53479e-05
  2  5.79918e-05
  3  1.44708
  4  18.11
  5  1.69038e-05
  6  5.31072e-05
  7  8.55841
  8  0.00190702
  9  6.46088
  10  6.25146e-05
  11  10.0938
  12  1.93401
  13  0.00012632
  14  3.70522
  15  27.008
  16  15.0607
  17  0.646923
  18  7.78438
  19  2.68315e-05
  20  0.220298
  21  0.149195
Done.

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

Extracting fit parameters...

4FGL J0809.8+0507
   Spectrum: LogParabola
280         norm:  1.000e-04  1.263e-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.132e+00  1.492e-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.029e+00  2.203e-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: 5.37e-08 ph cm-2 s-1
Energy Flux Upper Limit: 1.41e-05 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/248930/likelihoodResults_298944001_299203201_4FGL_J0809.8+0507_daily_bin230.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): 102
logL (Free Index) = 7645.18830002
delta logL = -0.000562805043046

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 7645.18773734
delta logL = -1.252947186e-07

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10204E-03   1.0000         .10000E-03   10000.    
     2 'alpha     '    2.8027       1.0000          .0000       5.0000    
     3 'Normalizat'    1.0295       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.1317       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.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   7645.188     FROM MIGRAD    STATUS=CONVERGED     97 CALLS      234 TOTAL
                     EDM=   .21E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    430.18        .18142E-01** at limit **
   2  alpha         1.9705        4.0013        .16616        .10605E-07
   3  Normalizat    1.0294        .32620E-01    .30471E-03    .14140E-04
   4  Prefactor     1.1317        .22709E-01    .20222E-03    .23556E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  alpha      = 1.97048
  Normalizat = 1.02945
  Prefactor  = 1.13169
 **********
 **   18 **HESSE 
 **********

 FCN=   7645.188     FROM HESSE     STATUS=OK            23 CALLS      257 TOTAL
                     EDM=   .61E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    10.626        .27599E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  alpha         1.9705        3.1246        .66463E-02   -.21342    
   3  Normalizat    1.0294        .20953        .12188E-04   -.92050    
   4  Prefactor     1.1317        .14593        .80888E-05   -.88460    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 6.06792e-12
Minuit parameter uncertainties:
  1  2.71284e-06
  2  554.069
  3  0.209695
  4  0.145986
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/248930': 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) = 7645.18773603
delta logL = 1.18074240163e-06

Extracting fit parameters...

4FGL J0809.8+0507
   Spectrum: LogParabola
280         norm:  1.000e-04  2.713e-06  1.000e-04  1.000e+04 ( 1.000e-12)
281        alpha:  1.970e+00  5.541e+02  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.132e+00  1.460e-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.029e+00  2.097e-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/248930/cmap_HighResolution_298944001_299203201_4FGL_J0809.8+0507_daily_bin230.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.41e-05', job_status='DONE', photon_flux_upper_limit='5.37e-08', time_completed='2021-08-29 09:00:19.880736', job_id='248930', GAL2='1.13', fit_tolerance='1e-08', EG2='1.03', EG='1.03', time_epoch_completed='1630252819.88', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.13', dlogl='1.18e-06', ts2='-0.00', photon_index_error='0.00', photon_index='2.82' WHERE bin_id='230' AND source_name='4FGL J0809.8+0507' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Aug 29 09:00:19 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0262>
Subject: Job 248930: <4FGL_J0809.8+0507_daily_bin230> in cluster <slac> Done

Job <4FGL_J0809.8+0507_daily_bin230> was submitted from host <rhel6-64o> by user <kocevski> in cluster <slac> at Sun Aug 29 08:45:53 2021
Job was executed on host(s) <bullet0262>, in queue <medium>, as user <kocevski> in cluster <slac> at Sun Aug 29 08:45:55 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:55 2021
Terminated at Sun Aug 29 09:00:20 2021
Results reported at Sun Aug 29 09:00:20 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0809.8+0507_daily_bin230 122.453 5.1313 298944001 299203201 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 :                                   680.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             269.46 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   865 sec.
    Turnaround time :                            867 sec.

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

