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


Performing analysis on: 4FGL_J0809.8+0507_daily_bin211
RA = 122.453, Dec = 5.1313
tmin = 294019201, tmax = 294278401
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='248903', job_status='RUN', time_executed='2021-08-29 08:49:16.951677', time_epoch_executed='1630252156.95' WHERE source_name='4FGL J0809.8+0507' and cadence='daily' and bin_id='211'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/248903

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

Retrieving the FT1 file...

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

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

Retrieving 48 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/248903/ft1_4FGL_J0809.8+0507_daily_bin211.fits


Retrieving the FT1 file...

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

Retrieving 48 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/248903/ft2_4FGL_J0809.8+0507_daily_bin211.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/248903/ft1_4FGL_J0809.8+0507_daily_bin211.fits outfile=/scratch/kocevski/248903/ft1_filteredMKT_4FGL_J0809.8+0507_daily_bin211.fits ra=122.453 dec=5.1313 rad=12.0 tmin=294019201.0 tmax=294278401.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 6.37
user 2.91
sys 3.42

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/248903/ft2_4FGL_J0809.8+0507_daily_bin211.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/248903/ft1_filteredMKT_4FGL_J0809.8+0507_daily_bin211.fits evtable="EVENTS" outfile="/scratch/kocevski/248903/ft1_filtered_4FGL_J0809.8+0507_daily_bin211.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 3.80
user 0.33
sys 3.44

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/248903/ft1_filtered_4FGL_J0809.8+0507_daily_bin211.fits" evtable="EVENTS" scfile=/scratch/kocevski/248903/ft2_4FGL_J0809.8+0507_daily_bin211.fits sctable="SC_DATA" outfile=/scratch/kocevski/248903/ltcube_294019201_294278401_4FGL_J0809.8+0507_daily_bin211.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/248903/ft2_4FGL_J0809.8+0507_daily_bin211.fits
.....................!
real 15.60
user 11.56
sys 3.98

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/248903/ft1_filtered_4FGL_J0809.8+0507_daily_bin211.fits evtable="EVENTS" scfile=/scratch/kocevski/248903/ft2_4FGL_J0809.8+0507_daily_bin211.fits sctable="SC_DATA" expcube=/scratch/kocevski/248903/ltcube_294019201_294278401_4FGL_J0809.8+0507_daily_bin211.fits outfile=/scratch/kocevski/248903/expmap_294019201_294278401_4FGL_J0809.8+0507_daily_bin211.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/248903/ltcube_294019201_294278401_4FGL_J0809.8+0507_daily_bin211.fits
.....................!
real 195.49
user 186.55
sys 8.60

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/248903/ft1_filtered_4FGL_J0809.8+0507_daily_bin211.fits scfile=/scratch/kocevski/248903/ft2_4FGL_J0809.8+0507_daily_bin211.fits outfile=/scratch/kocevski/248903/cmap_294019201_294278401_4FGL_J0809.8+0507_daily_bin211.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 3.77
user 0.39
sys 3.36

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/248903/ft1_filtered_4FGL_J0809.8+0507_daily_bin211.fits scfile=/scratch/kocevski/248903/ft2_4FGL_J0809.8+0507_daily_bin211.fits outfile=/scratch/kocevski/248903/cmap_HighResolution_294019201_294278401_4FGL_J0809.8+0507_daily_bin211.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 3.67
user 0.39
sys 3.27

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10494E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10009E-03   1.0000         .10000E-03   10000.    
     3 'norm      '    3.2460       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10163E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    1.2168       1.0000         .10000E-03   10000.    
     6 'norm      '    14.041       1.0000         .10000E-03   10000.    
     7 'Prefactor '    3.4120       1.0000         .10000E-03   10000.    
     8 'Prefactor '    81.189       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10009E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    19.512       1.0000         .10000E-03   10000.    
    11 'norm      '    .10027E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    .10003E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    .10158E-03   1.0000         .10000E-03   10000.    
    14 'norm      '    4.3514       1.0000         .10000E-03   10000.    
    15 'Prefactor '    22.342       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    2.9394       1.0000         .10000E-03   10000.    
    18 'norm      '    1.6190       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    20 'Normalizat'    .89564       1.0000         .10000E-01   10.000    
    21 'Prefactor '    1.1563       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=   8576.333     FROM MIGRAD    STATUS=CONVERGED    457 CALLS     2230 TOTAL
                     EDM=   .20E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  6.7%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    33.563       -.10786E-07** at limit **
   2  Prefactor     .10000E-03    14.110       -.13000E-07** at limit **
   3  norm          3.2462        1.8530        .39630E-07    .40999E-04
   4  Prefactor     .10000E-03    17.846        .21086E-08** at limit **
   5  Prefactor     1.2145        3.7261        .76267E-06    .19370E-03
   6  norm          14.037        30.979       -.40666E-05   -.44671E-04
   7  Prefactor     3.4093        19.251        .64207E-05   -.80574E-04
   8  Prefactor     81.225        122.43       -.29480E-05    .67669E-04
   9  Prefactor     .10000E-03    2.0749        .37376E-08** at limit **
  10  Prefactor     19.490        24.676        .14984E-05    .20927E-03
  11  norm          .10000E-03    3.4028       -.41608E-08** at limit **
  12  norm          .10000E-03    .53088        .35105E-08** at limit **
  13  norm          .10000E-03    12.846       -.11375E-05** at limit **
  14  norm          4.3515        3.3316        .69268E-07    .25786E-03
  15  Prefactor     22.326        25.904        .82802E-06    .11335E-03
  16  Prefactor     .10000E-03    3.7200       -.20475E-07** at limit **
  17  norm          2.9393        1.0479        .24801E-07    .38091E-03
  18  norm          1.6201        4.3857        .48743E-06   -.12508E-04
  19  Prefactor     .10000E-03    7.3238        .36296E-08** at limit **
  20  Normalizat    .89575        .18763       -.55588E-07    .19940E-03
  21  Prefactor     1.1563        .12691       -.21123E-06    .14432E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 3.24623
  Prefactor  = 0.0001
  Prefactor  = 1.21448
  norm       = 14.0375
  Prefactor  = 3.40933
  Prefactor  = 81.225
  Prefactor  = 0.0001
  Prefactor  = 19.4898
  norm       = 0.0001
  norm       = 0.0001
  norm       = 0.0001
  norm       = 4.35152
  Prefactor  = 22.3259
  Prefactor  = 0.0001
  norm       = 2.93925
  norm       = 1.62012
  Prefactor  = 0.0001
  Normalizat = 0.895749
  Prefactor  = 1.15625
 **********
 **   18 **HESSE 
 **********

 FCN=   8576.333     FROM HESSE     STATUS=OK           319 CALLS     2549 TOTAL
                     EDM=   .35E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    33.718        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    14.146        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          3.2462        1.8513        .89558E-04   -1.5348    
   4  Prefactor     .10000E-03    17.894        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     1.2145        3.6555        .27043E-03   -1.5488    
   6  norm          14.037        31.176        .10689E-03   -1.4958    
   7  Prefactor     3.4093        19.675        .10950E-02   -1.5339    
   8  Prefactor     81.225        121.49        .22287E-03   -1.3903    
   9  Prefactor     .10000E-03    2.0829        .13027E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     19.490        24.468        .90673E-04   -1.4825    
  11  norm          .10000E-03    3.4176        .16681E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          .10000E-03    .53452        .65884E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          .10000E-03    77.974        .60514E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          4.3515        3.3283        .14178E-03   -1.5291    
  15  Prefactor     22.326        25.860        .84741E-04   -1.4763    
  16  Prefactor     .10000E-03    3.7287        .17443E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          2.9393        1.0494        .11845E-03   -1.5365    
  18  norm          1.6201        4.3536        .30849E-03   -1.5453    
  19  Prefactor     .10000E-03    7.3275        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Normalizat    .89575        .21622        .31856E-03   -.96610    
  21  Prefactor     1.1563        .14732        .19967E-03   -.87688    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.4783e-10
Minuit parameter uncertainties:
  1  1.11006e-05
  2  3.63567e-06
  3  1.8513
  4  3.82979e-06
  5  3.6562
  6  31.2122
  7  16.3883
  8  121.861
  9  3.20481e-07
  10  24.4804
  11  7.40916e-07
  12  1.69516e-07
  13  1.81987e-05
  14  3.32843
  15  25.8726
  16  2.66295e-06
  17  1.04939
  18  4.35447
  19  4.97457e-07
  20  0.216427
  21  0.14737
Done.

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

Extracting fit parameters...

4FGL J0809.8+0507
   Spectrum: LogParabola
280         norm:  1.000e-04  1.820e-05  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.156e+00  1.474e-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:  8.957e-01  2.164e-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.81e-08 ph cm-2 s-1
Energy Flux Upper Limit: 1.79e-05 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/248903/likelihoodResults_294019201_294278401_4FGL_J0809.8+0507_daily_bin211.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) = 8576.33341972
delta logL = -5.98704209551e-05

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 8576.33341967
delta logL = -5.98277165409e-05

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .96238E-02   1.0000         .10000E-03   10000.    
     2 'alpha     '    2.8151       1.0000          .0000       5.0000    
     3 'Normalizat'    .89568       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.1563       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=   8576.333     FROM MIGRAD    STATUS=CONVERGED     62 CALLS      223 TOTAL
                     EDM=   .20E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    4.8857        .11364    ** at limit **
   2  alpha         2.8126        3.1521        .41572        .14981E-06
   3  Normalizat    .89575        .29539E-02    .71994E-01    .41069E-04
   4  Prefactor     1.1563        .20850E-02    .35756E-01    .13423E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  alpha      = 2.81263
  Normalizat = 0.895747
  Prefactor  = 1.15625
 **********
 **   18 **HESSE 
 **********

 FCN=   8576.333     FROM HESSE     STATUS=NOT POSDEF    35 CALLS      258 TOTAL
                     EDM=   .34E-06    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    7077.8        .60532E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  alpha         2.8126        3.5920        .16629        .12538    
   3  Normalizat    .89575        .38314E-01    .31856E-03   -.96610    
   4  Prefactor     1.1563        .27054E-01    .19967E-03   -.87688    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 3.38352e-07
Minuit parameter uncertainties:
  1  0.00113092
  2  9762
  3  0.0383156
  4  0.0270545
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/248903': 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): 102
logL (Free Index) = 8576.33335985
delta logL = 1.90993887372e-10

Extracting fit parameters...

4FGL J0809.8+0507
   Spectrum: LogParabola
280         norm:  1.000e-04  1.131e-03  1.000e-04  1.000e+04 ( 1.000e-12)
281        alpha:  2.813e+00  9.762e+03  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.156e+00  2.705e-02  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:  8.957e-01  3.832e-02  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/248903/cmap_HighResolution_294019201_294278401_4FGL_J0809.8+0507_daily_bin211.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.79e-05', job_status='DONE', photon_flux_upper_limit='6.81e-08', time_completed='2021-08-29 09:02:09.653518', job_id='248903', GAL2='1.16', fit_tolerance='1e-08', EG2='0.90', EG='0.90', time_epoch_completed='1630252929.65', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.16', dlogl='1.91e-10', ts2='-0.00', photon_index_error='0.00', photon_index='2.82' WHERE bin_id='211' AND source_name='4FGL J0809.8+0507' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Aug 29 09:02:09 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0121>
Subject: Job 248903: <4FGL_J0809.8+0507_daily_bin211> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0809.8+0507_daily_bin211 122.453 5.1313 294019201 294278401 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 :                                   818.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             284.44 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              7
    Max Threads :                                21
    Run time :                                   977 sec.
    Turnaround time :                            979 sec.

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

