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


Performing analysis on: 4FGL_J0809.8+0507_daily_bin376
RA = 122.453, Dec = 5.1313
tmin = 336787201, tmax = 337046401
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='250217', job_status='RUN', time_executed='2021-08-29 08:51:06.686166', time_epoch_executed='1630252266.69' WHERE source_name='4FGL J0809.8+0507' and cadence='daily' and bin_id='376'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/250217

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

Retrieving the FT1 file...

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

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

Retrieving 53 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/250217/ft1_4FGL_J0809.8+0507_daily_bin376.fits


Retrieving the FT1 file...

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

Retrieving 53 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/250217/ft2_4FGL_J0809.8+0507_daily_bin376.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/250217/ft1_4FGL_J0809.8+0507_daily_bin376.fits outfile=/scratch/kocevski/250217/ft1_filteredMKT_4FGL_J0809.8+0507_daily_bin376.fits ra=122.453 dec=5.1313 rad=12.0 tmin=336787201.0 tmax=337046401.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 7.48
user 6.50
sys 0.92

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

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

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/250217/ft1_filtered_4FGL_J0809.8+0507_daily_bin376.fits" evtable="EVENTS" scfile=/scratch/kocevski/250217/ft2_4FGL_J0809.8+0507_daily_bin376.fits sctable="SC_DATA" outfile=/scratch/kocevski/250217/ltcube_336787201_337046401_4FGL_J0809.8+0507_daily_bin376.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/250217/ft2_4FGL_J0809.8+0507_daily_bin376.fits
.....................!
real 12.26
user 11.03
sys 1.07

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/250217/ft1_filtered_4FGL_J0809.8+0507_daily_bin376.fits evtable="EVENTS" scfile=/scratch/kocevski/250217/ft2_4FGL_J0809.8+0507_daily_bin376.fits sctable="SC_DATA" expcube=/scratch/kocevski/250217/ltcube_336787201_337046401_4FGL_J0809.8+0507_daily_bin376.fits outfile=/scratch/kocevski/250217/expmap_336787201_337046401_4FGL_J0809.8+0507_daily_bin376.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/250217/ltcube_336787201_337046401_4FGL_J0809.8+0507_daily_bin376.fits
.....................!
real 190.62
user 184.68
sys 5.51

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/250217/ft1_filtered_4FGL_J0809.8+0507_daily_bin376.fits scfile=/scratch/kocevski/250217/ft2_4FGL_J0809.8+0507_daily_bin376.fits outfile=/scratch/kocevski/250217/cmap_336787201_337046401_4FGL_J0809.8+0507_daily_bin376.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 1.22
user 0.38
sys 0.80

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/250217/ft1_filtered_4FGL_J0809.8+0507_daily_bin376.fits scfile=/scratch/kocevski/250217/ft2_4FGL_J0809.8+0507_daily_bin376.fits outfile=/scratch/kocevski/250217/cmap_HighResolution_336787201_337046401_4FGL_J0809.8+0507_daily_bin376.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 1.21
user 0.39
sys 0.80

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     3 'norm      '    2.4081       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    2.3003       1.0000         .10000E-03   10000.    
     6 'norm      '    23.238       1.0000         .10000E-03   10000.    
     7 'Prefactor '    6.5247       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    2.4363       1.0000         .10000E-03   10000.    
    10 'Prefactor '    16.357       1.0000         .10000E-03   10000.    
    11 'norm      '    37.438       1.0000         .10000E-03   10000.    
    12 'norm      '    .12227E-01   1.0000         .10000E-03   10000.    
    13 'norm      '    .10006E-03   1.0000         .10000E-03   10000.    
    14 'norm      '    20.317       1.0000         .10000E-03   10000.    
    15 'Prefactor '    66.907       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    .46115       1.0000         .10000E-03   10000.    
    18 'norm      '    9.3571       1.0000         .10000E-03   10000.    
    19 'Prefactor '    17.184       1.0000         .10000E-03   10000.    
    20 'Normalizat'    1.2711       1.0000         .10000E-01   10.000    
    21 'Prefactor '    .71294       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=   6049.627     FROM MIGRAD    STATUS=CONVERGED    442 CALLS     2191 TOTAL
                     EDM=   .19E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .6%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    45.103        .37584E-04** at limit **
   2  Prefactor     .10000E-03    20.557        .28061E-05** at limit **
   3  norm          2.4076        1.8256       -.13544E-06   -.56535E-03
   4  Prefactor     .10000E-03    8.0197        .52882E-07** at limit **
   5  Prefactor     2.3002        2.4815       -.13110E-06   -.28298E-03
   6  norm          23.238        15.576       -.11998E-06    .55017E-05
   7  Prefactor     6.5242        9.6752       -.26324E-06   -.57502E-04
   8  Prefactor     .10000E-03    32.679       -.19661E-04** at limit **
   9  Prefactor     2.4390        6.3141       -.76436E-06   -.29612E-03
  10  Prefactor     16.358        19.432       -.18378E-06    .36912E-05
  11  norm          37.438        14.143        .62303E-07    .12006E-03
  12  norm          .55705E-02    1.1865       -.12994E-05    .26475E-02
  13  norm          .10000E-03    9.3929       -.15616E-06** at limit **
  14  norm          20.317        6.3890        .14074E-06    .43927E-04
  15  Prefactor     66.909        38.913        .14206E-05    .10658E-04
  16  Prefactor     .10000E-03    3.4612        .75579E-07** at limit **
  17  norm          .46121        .69515       -.11982E-06   -.12772E-02
  18  norm          9.3568        7.9132       -.13264E-06   -.54077E-05
  19  Prefactor     17.175        31.652       -.11522E-04   -.29385E-05
  20  Normalizat    1.2711        .20377        .73937E-06    .86318E-04
  21  Prefactor     .71295        .13118        .36517E-06    .12249E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 2.40765
  Prefactor  = 0.0001
  Prefactor  = 2.30025
  norm       = 23.238
  Prefactor  = 6.52422
  Prefactor  = 0.0001
  Prefactor  = 2.43902
  Prefactor  = 16.3577
  norm       = 37.4383
  norm       = 0.00557046
  norm       = 0.0001
  norm       = 20.3168
  Prefactor  = 66.9092
  Prefactor  = 0.0001
  norm       = 0.461214
  norm       = 9.35683
  Prefactor  = 17.1746
  Normalizat = 1.27113
  Prefactor  = 0.712953
 **********
 **   18 **HESSE 
 **********

 FCN=   6049.627     FROM HESSE     STATUS=OK           331 CALLS     2522 TOTAL
                     EDM=   .74E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    44.907        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    20.617        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          2.4076        1.8219        .86709E-04   -1.5398    
   4  Prefactor     .10000E-03    8.0215        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     2.3002        2.4762        .12206E-03   -1.5405    
   6  norm          23.238        15.577        .83093E-04   -1.4743    
   7  Prefactor     6.5242        9.6695        .15711E-03   -1.5197    
   8  Prefactor     .10000E-03    32.642        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     2.4390        6.3118        .26214E-03   -1.5396    
  10  Prefactor     16.358        19.438        .99032E-04   -1.4899    
  11  norm          37.438        14.143        .65502E-04   -1.4483    
  12  norm          .55705E-02    1.9934        .30467E-01   -1.5693    
  13  norm          .10000E-03    9.4040        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          20.317        6.3903        .88860E-04   -1.4806    
  15  Prefactor     66.909        39.102        .49068E-04   -1.4070    
  16  Prefactor     .10000E-03    3.4632        .14132E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          .46121        .58871        .76986E-03   -1.5572    
  18  norm          9.3568        7.9119        .13101E-03   -1.5096    
  19  Prefactor     17.175        31.710        .96618E-04   -1.4879    
  20  Normalizat    1.2711        .23608        .26704E-03   -.84432    
  21  Prefactor     .71295        .15171        .22768E-03   -1.0302    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 7.38828e-09
Minuit parameter uncertainties:
  1  8.41838e-05
  2  2.2842e-05
  3  1.82198
  4  1.07095e-06
  5  2.47629
  6  15.5792
  7  9.67184
  8  1.25408e-06
  9  6.31351
  10  19.446
  11  14.1446
  12  0.20886
  13  1.42358e-05
  14  6.39052
  15  39.1167
  16  2.53096e-07
  17  0.588717
  18  7.91275
  19  31.7414
  20  0.236281
  21  0.151801
Done.

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

Extracting fit parameters...

4FGL J0809.8+0507
   Spectrum: LogParabola
280         norm:  1.000e-04  1.424e-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:  7.130e-01  1.518e-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.271e+00  2.363e-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.50e-08 ph cm-2 s-1
Energy Flux Upper Limit: 1.71e-05 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/250217/likelihoodResults_336787201_337046401_4FGL_J0809.8+0507_daily_bin376.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) = 6049.62772463
delta logL = -0.000505965554112

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 6049.62721867
delta logL = -6.12089934293e-09

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10012E-03   1.0000         .10000E-03   10000.    
     2 'alpha     '    2.8117       1.0000          .0000       5.0000    
     3 'Normalizat'    1.2711       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .71296       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=   6049.627     FROM MIGRAD    STATUS=CONVERGED     90 CALLS      227 TOTAL
                     EDM=   .31E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    34.834        .18142E-02** at limit **
   2  alpha         2.4752        3.7525        .16625        .61544E-08
   3  Normalizat    1.2711        .22370        .26704E-03    .40282E-03
   4  Prefactor     .71295        .14799        .22768E-03    .58660E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  alpha      = 2.47519
  Normalizat = 1.27113
  Prefactor  = 0.712954
 **********
 **   18 **HESSE 
 **********

 FCN=   6049.627     FROM HESSE     STATUS=OK            23 CALLS      250 TOTAL
                     EDM=   .31E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    9.6326        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  alpha         2.4752        2.5428        .66501E-02   -.99223E-02
   3  Normalizat    1.2711        .22385        .53409E-04   -.84432    
   4  Prefactor     .71295        .14809        .45536E-04   -1.0302    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.14807e-10
Minuit parameter uncertainties:
  1  1.96883e-05
  2  675.495
  3  0.224023
  4  0.148172
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/250217': 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) = 6049.62721854
delta logL = 1.25455699163e-07

Extracting fit parameters...

4FGL J0809.8+0507
   Spectrum: LogParabola
280         norm:  1.000e-04  1.969e-05  1.000e-04  1.000e+04 ( 1.000e-12)
281        alpha:  2.475e+00  6.755e+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:  7.130e-01  1.482e-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.271e+00  2.240e-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  0.000e+00 [aplpy.core]
INFO: Auto-setting vmax to  0.000e+00 [aplpy.core]
Saving /scratch/kocevski/250217/cmap_HighResolution_336787201_337046401_4FGL_J0809.8+0507_daily_bin376.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.71e-05', job_status='DONE', photon_flux_upper_limit='6.50e-08', time_completed='2021-08-29 09:01:38.112955', job_id='250217', GAL2='0.71', fit_tolerance='1e-08', EG2='1.27', EG='1.27', time_epoch_completed='1630252898.11', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.71', dlogl='1.25e-07', ts2='-0.00', photon_index_error='0.00', photon_index='2.82' WHERE bin_id='376' AND source_name='4FGL J0809.8+0507' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Aug 29 09:01:38 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0222>
Subject: Job 250217: <4FGL_J0809.8+0507_daily_bin376> in cluster <slac> Done

Job <4FGL_J0809.8+0507_daily_bin376> was submitted from host <rhel6-64h> by user <kocevski> in cluster <slac> at Sun Aug 29 08:50:41 2021
Job was executed on host(s) <bullet0222>, in queue <medium>, as user <kocevski> in cluster <slac> at Sun Aug 29 08:50:42 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:50:42 2021
Terminated at Sun Aug 29 09:01:38 2021
Results reported at Sun Aug 29 09:01:38 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0809.8+0507_daily_bin376 122.453 5.1313 336787201 337046401 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 :                                   638.17 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             323.70 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   656 sec.
    Turnaround time :                            657 sec.

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

