/nfs/farm/g/glast/g/LCRepository/bin/miniconda2/envs/fermitools_v1.0.5/lib/python2.7/site-packages/matplotlib/font_manager.py:281: UserWarning: Matplotlib is building the font cache using fc-list. This may take a moment.
  'Matplotlib is building the font cache using fc-list. '
/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 95 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 = 7670
number of fields = 27
No RA_SUN column yet. Adding RA_SUN/DEC_SUN columns.
Done.


Performing analysis on: 4FGL_J0809.3+4053_daily_bin130
RA = 122.33, Dec = 40.8954
tmin = 273024001, tmax = 273283201
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='226478', job_status='RUN', time_executed='2021-08-29 07:37:29.030640', time_epoch_executed='1630247849.03' WHERE source_name='4FGL J0809.3+4053' and cadence='daily' and bin_id='130'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/226478

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

Retrieving the FT1 file...

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

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

Retrieving 48 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/226478/ft1_4FGL_J0809.3+4053_daily_bin130.fits


Retrieving the FT1 file...

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

Retrieving 48 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/226478/ft2_4FGL_J0809.3+4053_daily_bin130.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/226478/ft1_4FGL_J0809.3+4053_daily_bin130.fits outfile=/scratch/kocevski/226478/ft1_filteredMKT_4FGL_J0809.3+4053_daily_bin130.fits ra=122.33 dec=40.8954 rad=12.0 tmin=273024001.0 tmax=273283201.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.23
user 2.66
sys 0.51

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/226478/ft2_4FGL_J0809.3+4053_daily_bin130.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/226478/ft2_4FGL_J0809.3+4053_daily_bin130.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/226478/ft1_filteredMKT_4FGL_J0809.3+4053_daily_bin130.fits evtable="EVENTS" outfile="/scratch/kocevski/226478/ft1_filtered_4FGL_J0809.3+4053_daily_bin130.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.83
user 0.33
sys 0.46

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/226478/ft1_filtered_4FGL_J0809.3+4053_daily_bin130.fits" evtable="EVENTS" scfile=/scratch/kocevski/226478/ft2_4FGL_J0809.3+4053_daily_bin130.fits sctable="SC_DATA" outfile=/scratch/kocevski/226478/ltcube_273024001_273283201_4FGL_J0809.3+4053_daily_bin130.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/226478/ft2_4FGL_J0809.3+4053_daily_bin130.fits
.....................!
real 12.66
user 11.93
sys 0.65

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/226478/ft1_filtered_4FGL_J0809.3+4053_daily_bin130.fits evtable="EVENTS" scfile=/scratch/kocevski/226478/ft2_4FGL_J0809.3+4053_daily_bin130.fits sctable="SC_DATA" expcube=/scratch/kocevski/226478/ltcube_273024001_273283201_4FGL_J0809.3+4053_daily_bin130.fits outfile=/scratch/kocevski/226478/expmap_273024001_273283201_4FGL_J0809.3+4053_daily_bin130.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/226478/ltcube_273024001_273283201_4FGL_J0809.3+4053_daily_bin130.fits
.....................!
real 191.67
user 185.58
sys 5.63

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

Setting source of interest to:
4FGL J0809.3+4053 @ 122.33 40.8954

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/226478/ft1_filtered_4FGL_J0809.3+4053_daily_bin130.fits scfile=/scratch/kocevski/226478/ft2_4FGL_J0809.3+4053_daily_bin130.fits outfile=/scratch/kocevski/226478/cmap_273024001_273283201_4FGL_J0809.3+4053_daily_bin130.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.33 yref=40.8954 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.86
user 0.38
sys 0.46

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/226478/ft1_filtered_4FGL_J0809.3+4053_daily_bin130.fits scfile=/scratch/kocevski/226478/ft2_4FGL_J0809.3+4053_daily_bin130.fits outfile=/scratch/kocevski/226478/cmap_HighResolution_273024001_273283201_4FGL_J0809.3+4053_daily_bin130.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.33 yref=40.8954 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.85
user 0.38
sys 0.46

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/226478/ft1_filtered_4FGL_J0809.3+4053_daily_bin130.fits evtable="EVENTS" scfile=/scratch/kocevski/226478/ft2_4FGL_J0809.3+4053_daily_bin130.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/226478/Model_4FGL_J0809.3+4053_daily_bin130.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/226478/ft1_filtered_4FGL_J0809.3+4053_daily_bin130.fits.....................!
real 59.18
user 57.49
sys 1.49

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/226478/ft1_filtered_4FGL_J0809.3+4053_daily_bin130.fits', '/scratch/kocevski/226478/ft2_4FGL_J0809.3+4053_daily_bin130.fits', expMap='/scratch/kocevski/226478/expmap_273024001_273283201_4FGL_J0809.3+4053_daily_bin130.fits', expCube='/scratch/kocevski/226478/ltcube_273024001_273283201_4FGL_J0809.3+4053_daily_bin130.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/226478/Model_4FGL_J0809.3+4053_daily_bin130.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J0809.3+4053'

4FGL J0809.3+4053
   Spectrum: PowerLaw
269    Prefactor:  1.019e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-12)
270        Index:  2.588e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
271        Scale:  6.589e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/226478/ft1_filtered_4FGL_J0809.3+4053_daily_bin130.fits
Spacecraft file(s): /scratch/kocevski/226478/ft2_4FGL_J0809.3+4053_daily_bin130.fits
Exposure map: /scratch/kocevski/226478/expmap_273024001_273283201_4FGL_J0809.3+4053_daily_bin130.fits
Exposure cube: /scratch/kocevski/226478/ltcube_273024001_273283201_4FGL_J0809.3+4053_daily_bin130.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/226478/Model_4FGL_J0809.3+4053_daily_bin130.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) = 5892.72236806

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    2.9559       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .72110E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10008E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    1.5530       1.0000         .10000E-03   10000.    
     6 'norm      '    .10086E-03   1.0000         .10000E-03   10000.    
     7 'norm      '    .10005E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    13.399       1.0000         .10000E-03   10000.    
     9 'Prefactor '    62.985       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .65156E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    .71206       1.0000         .10000E-03   10000.    
    12 'norm      '    1.1200       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10147E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10011E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    18.144       1.0000         .10000E-03   10000.    
    17 'Prefactor '    5.0430       1.0000         .10000E-03   10000.    
    18 'norm      '    .11003E-01   1.0000         .10000E-03   10000.    
    19 'Prefactor '    1.2526       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10057E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    1.6938       1.0000         .10000E-03   10000.    
    22 'Normalizat'    1.2203       1.0000         .10000E-01   10.000    
    23 'Prefactor '    1.0147       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6020E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   5892.715     FROM MIGRAD    STATUS=CONVERGED    542 CALLS     2609 TOTAL
                     EDM=   .13E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  5.7%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          2.9562        4.4960       -.56268E-09    .14413E-04
   2  Prefactor     .10002E-03    8.0720       -.56978E-08** at limit **
   3  Prefactor     .10000E-03    29.137        .99233E-09** at limit **
   4  Prefactor     .10000E-03    8.3864        .21292E-09** at limit **
   5  Prefactor     1.5502        4.9925       -.22905E-06   -.19163E-04
   6  norm          .10000E-03    13.810       -.60274E-09** at limit **
   7  norm          .10000E-03    1.3522        .21177E-09** at limit **
   8  Prefactor     13.402        12.852        .11494E-07    .42981E-04
   9  Prefactor     62.985        55.669       -.46067E-08    .63165E-03
  10  Prefactor     .10000E-03    2.6819       -.73528E-09** at limit **
  11  norm          .71189        2.4747       -.61544E-08   -.39682E-05
  12  norm          1.1203        .56451        .65016E-10    .59936E-04
  13  Prefactor     .10000E-03    18.566        .50603E-08** at limit **
  14  Prefactor     .10000E-03    17.767       -.59767E-08** at limit **
  15  Prefactor     .10000E-03    1.4651       -.20989E-09** at limit **
  16  Prefactor     18.144        26.661        .45944E-08    .10905E-03
  17  Prefactor     5.0427        11.159       -.29016E-07   -.28359E-04
  18  norm          .10000E-03    5.1334       -.13143E-08** at limit **
  19  Prefactor     1.2518        2.4617       -.17303E-08   -.19666E-04
  20  Prefactor     .10000E-03    45.299        .12641E-08** at limit **
  21  Prefactor     1.6928        4.6313       -.64641E-08   -.92679E-05
  22  Normalizat    1.2205        .20416        .13594E-07    .11888E-04
  23  Prefactor     1.0145        .14708        .35572E-08    .10914E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 2.9562
  Prefactor  = 0.000100015
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 1.55022
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 13.4021
  Prefactor  = 62.9846
  Prefactor  = 0.0001
  norm       = 0.711886
  norm       = 1.1203
  Prefactor  = 0.000100005
  Prefactor  = 0.000100005
  Prefactor  = 0.0001
  Prefactor  = 18.1437
  Prefactor  = 5.04267
  norm       = 0.0001
  Prefactor  = 1.25177
  Prefactor  = 0.0001
  Prefactor  = 1.69277
  Normalizat = 1.2205
  Prefactor  = 1.01454
 **********
 **   18 **HESSE 
 **********

 FCN=   5892.715     FROM HESSE     STATUS=OK           376 CALLS     2985 TOTAL
                     EDM=   .29E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          2.9562        4.4841        .19530E-03   -1.5364    
   2  Prefactor     .10002E-03    42.669        .41776E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    29.200        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    8.4188        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     1.5502        41.135        .17085E-02   -1.5459    
   6  norm          .10000E-03    14.016        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          .10000E-03    1.3660        .87153E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     13.402        12.893        .10943E-03   -1.4976    
   9  Prefactor     62.985        55.732        .50562E-04   -1.4119    
  10  Prefactor     .10000E-03    14.278        .23875E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          .71189        2.5024        .21783E-03   -1.5539    
  12  norm          1.1203        .56635        .39334E-04   -1.5496    
  13  Prefactor     .10000E-03    18.601        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    18.255        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    1.4865        .90664E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     18.144        26.638        .94026E-04   -1.4856    
  17  Prefactor     5.0427        11.666        .89529E-03   -1.5259    
  18  norm          .10000E-03    86.726        .33347E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     1.2518        2.4087        .16314E-03   -1.5484    
  20  Prefactor     .10000E-03    45.326        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     1.6928        4.6504        .26178E-03   -1.5448    
  22  Normalizat    1.2205        .23178        .27054E-03   -.85972    
  23  Prefactor     1.0145        .16921        .22045E-03   -.92247    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.88333e-09
Minuit parameter uncertainties:
  1  4.48461
  2  0.00161047
  3  0.000134548
  4  1.12275e-06
  5  15.9828
  6  2.42477e-05
  7  1.44386e-06
  8  12.8954
  9  55.7781
  10  2.20701e-05
  11  2.50272
  12  0.566352
  13  0.000590338
  14  0.000603908
  15  4.08703e-07
  16  26.6559
  17  11.6714
  18  0.000186162
  19  2.40884
  20  0.000195348
  21  4.65139
  22  0.23198
  23  0.169294
Done.

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

Extracting fit parameters...

4FGL J0809.3+4053
   Spectrum: PowerLaw
269    Prefactor:  1.000e-04  2.207e-05  1.000e-04  1.000e+04 ( 1.000e-12)
270        Index:  2.588e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
271        Scale:  6.589e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
599    Prefactor:  1.015e+00  1.693e-01  0.000e+00  1.000e+01 ( 1.000e+00)
600        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
601        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
598   Normalization:  1.221e+00  2.320e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): -0.00
Ra Dec: 122.330 40.895
Photon Flux Upper Limit: 9.65e-08 ph cm-2 s-1
Energy Flux Upper Limit: 7.54e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/226478/likelihoodResults_273024001_273283201_4FGL_J0809.3+4053_daily_bin130.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) = 5892.71533011
delta logL = -0.000332711107148

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 5892.71499755
delta logL = -1.48974322656e-07

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .12613E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.6582       1.0000          .0000       10.000    
     3 'Normalizat'    1.2204       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0146       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6020E+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=   5892.707     FROM MIGRAD    STATUS=CONVERGED    215 CALLS      389 TOTAL
                     EDM=   .17E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    .98562E-02    .66007E-03** at limit **
   2  Index         8.1197        8.8110        .50000        .61160E-04
   3  Normalizat    1.2132        .21720E-01    .27054E-03    .52948E-04
   4  Prefactor     1.0180        .16393E-01    .22045E-03   -.14285E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Index      = 8.1197
  Normalizat = 1.21321
  Prefactor  = 1.01795
 **********
 **   18 **HESSE 
 **********

 FCN=   5892.707     FROM HESSE     STATUS=NOT POSDEF    37 CALLS      426 TOTAL
                     EDM=   .69E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    .37013E-01    .58919E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         8.1197        6.9334        .33114E-01    .67377    
   3  Normalizat    1.2132        .40994E-01    .10822E-04   -.86196    
   4  Prefactor     1.0180        .30885E-01    .88179E-05   -.92133    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 6.93584e-08
Minuit parameter uncertainties:
  1  1.19185e-06
  2  27.7693
  3  0.0409952
  4  0.0308857
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/226478': 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) = 5892.70655126
delta logL = 0.00844613974277

Extracting fit parameters...

4FGL J0809.3+4053
   Spectrum: PowerLaw
269    Prefactor:  1.000e-04  1.192e-06  1.000e-04  1.000e+04 ( 1.000e-12)
270        Index:  8.120e+00  2.777e+01  0.000e+00  1.000e+01 (-1.000e+00)
271        Scale:  6.589e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
599    Prefactor:  1.018e+00  3.089e-02  0.000e+00  1.000e+01 ( 1.000e+00)
600        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
601        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
598   Normalization:  1.213e+00  4.100e-02  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
Ra Dec: 122.330 40.895

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/226478/cmap_HighResolution_273024001_273283201_4FGL_J0809.3+4053_daily_bin130.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='7.54e-03', job_status='DONE', photon_flux_upper_limit='9.65e-08', time_completed='2021-08-29 07:49:04.510823', job_id='226478', GAL2='1.02', fit_tolerance='1e-08', EG2='1.21', EG='1.22', time_epoch_completed='1630248544.51', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.01', dlogl='8.45e-03', ts2='0.02', photon_index_error='0.00', photon_index='2.59' WHERE bin_id='130' AND source_name='4FGL J0809.3+4053' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Aug 29 07:49:04 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0215>
Subject: Job 226478: <4FGL_J0809.3+4053_daily_bin130> in cluster <slac> Done

Job <4FGL_J0809.3+4053_daily_bin130> was submitted from host <rhel6-64f> by user <kocevski> in cluster <slac> at Sun Aug 29 07:35:30 2021
Job was executed on host(s) <bullet0215>, in queue <medium>, as user <kocevski> in cluster <slac> at Sun Aug 29 07:35:32 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Sun Aug 29 07:35:32 2021
Terminated at Sun Aug 29 07:49:05 2021
Results reported at Sun Aug 29 07:49:05 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0809.3+4053_daily_bin130 122.33 40.8954 273024001 273283201 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J0809.3+4053 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   697.00 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             297.81 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   812 sec.
    Turnaround time :                            815 sec.

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

