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


Performing analysis on: 4FGL_J0809.3+4053_daily_bin654
RA = 122.33, Dec = 40.8954
tmin = 408844801, tmax = 409104001
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='229404', job_status='RUN', time_executed='2021-08-29 07:51:15.868795', time_epoch_executed='1630248675.87' WHERE source_name='4FGL J0809.3+4053' and cadence='daily' and bin_id='654'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/229404

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/229404/ft1_4FGL_J0809.3+4053_daily_bin654.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/229404/ft2_4FGL_J0809.3+4053_daily_bin654.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/229404/ft1_4FGL_J0809.3+4053_daily_bin654.fits outfile=/scratch/kocevski/229404/ft1_filteredMKT_4FGL_J0809.3+4053_daily_bin654.fits ra=122.33 dec=40.8954 rad=12.0 tmin=408844801.0 tmax=409104001.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 12.72
user 4.13
sys 8.54

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/229404/ft2_4FGL_J0809.3+4053_daily_bin654.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/229404/ft1_filteredMKT_4FGL_J0809.3+4053_daily_bin654.fits evtable="EVENTS" outfile="/scratch/kocevski/229404/ft1_filtered_4FGL_J0809.3+4053_daily_bin654.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 8.34
user 0.32
sys 7.94

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/229404/ft1_filtered_4FGL_J0809.3+4053_daily_bin654.fits" evtable="EVENTS" scfile=/scratch/kocevski/229404/ft2_4FGL_J0809.3+4053_daily_bin654.fits sctable="SC_DATA" outfile=/scratch/kocevski/229404/ltcube_408844801_409104001_4FGL_J0809.3+4053_daily_bin654.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/229404/ft2_4FGL_J0809.3+4053_daily_bin654.fits
.....................!
real 20.94
user 11.74
sys 9.11

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/229404/ft1_filtered_4FGL_J0809.3+4053_daily_bin654.fits evtable="EVENTS" scfile=/scratch/kocevski/229404/ft2_4FGL_J0809.3+4053_daily_bin654.fits sctable="SC_DATA" expcube=/scratch/kocevski/229404/ltcube_408844801_409104001_4FGL_J0809.3+4053_daily_bin654.fits outfile=/scratch/kocevski/229404/expmap_408844801_409104001_4FGL_J0809.3+4053_daily_bin654.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/229404/ltcube_408844801_409104001_4FGL_J0809.3+4053_daily_bin654.fits
.....................!
real 202.08
user 186.81
sys 14.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/229404/ft1_filtered_4FGL_J0809.3+4053_daily_bin654.fits scfile=/scratch/kocevski/229404/ft2_4FGL_J0809.3+4053_daily_bin654.fits outfile=/scratch/kocevski/229404/cmap_408844801_409104001_4FGL_J0809.3+4053_daily_bin654.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 8.24
user 0.37
sys 7.68

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/229404/ft1_filtered_4FGL_J0809.3+4053_daily_bin654.fits scfile=/scratch/kocevski/229404/ft2_4FGL_J0809.3+4053_daily_bin654.fits outfile=/scratch/kocevski/229404/cmap_HighResolution_408844801_409104001_4FGL_J0809.3+4053_daily_bin654.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 8.23
user 0.39
sys 7.75

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

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/229404/ft1_filtered_4FGL_J0809.3+4053_daily_bin654.fits', '/scratch/kocevski/229404/ft2_4FGL_J0809.3+4053_daily_bin654.fits', expMap='/scratch/kocevski/229404/expmap_408844801_409104001_4FGL_J0809.3+4053_daily_bin654.fits', expCube='/scratch/kocevski/229404/ltcube_408844801_409104001_4FGL_J0809.3+4053_daily_bin654.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/229404/Model_4FGL_J0809.3+4053_daily_bin654.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/229404/ft1_filtered_4FGL_J0809.3+4053_daily_bin654.fits
Spacecraft file(s): /scratch/kocevski/229404/ft2_4FGL_J0809.3+4053_daily_bin654.fits
Exposure map: /scratch/kocevski/229404/expmap_408844801_409104001_4FGL_J0809.3+4053_daily_bin654.fits
Exposure cube: /scratch/kocevski/229404/ltcube_408844801_409104001_4FGL_J0809.3+4053_daily_bin654.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/229404/Model_4FGL_J0809.3+4053_daily_bin654.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) = 2390.21115876

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    9.6474       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10038E-03   1.0000         .10000E-03   10000.    
     6 'norm      '    .10003E-03   1.0000         .10000E-03   10000.    
     7 'norm      '    .10015E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    9.7138       1.0000         .10000E-03   10000.    
     9 'Prefactor '    80.186       1.0000         .10000E-03   10000.    
    10 'Prefactor '    1.3643       1.0000         .10000E-03   10000.    
    11 'norm      '    3.4498       1.0000         .10000E-03   10000.    
    12 'norm      '    .86874       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10701E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10044E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    35.604       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .12167E-03   1.0000         .10000E-03   10000.    
    18 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    4.1678       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .66184E-02   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .17497E-03   1.0000         .10000E-03   10000.    
    22 'Normalizat'    1.3169       1.0000         .10000E-01   10.000    
    23 'Prefactor '    .70731       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=   2390.205     FROM MIGRAD    STATUS=CONVERGED    519 CALLS     2522 TOTAL
                     EDM=   .80E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.0%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    7.8178       -.98420E-08** at limit **
   2  Prefactor     9.6603        25.551       -.57238E-05   -.20871E-04
   3  Prefactor     .10000E-03    46.561       -.69275E-05** at limit **
   4  Prefactor     .10000E-03    32.172        .56508E-05** at limit **
   5  Prefactor     .10000E-03    31.117       -.83075E-06** at limit **
   6  norm          .10000E-03    12.207        .67920E-06** at limit **
   7  norm          .10000E-03    11.539       -.56040E-06** at limit **
   8  Prefactor     9.7147        24.430       -.73298E-05   -.96983E-05
   9  Prefactor     80.220        131.78        .26959E-04    .33400E-04
  10  Prefactor     1.3703        4.3218        .16842E-05   -.10548E-02
  11  norm          3.4504        6.4890       -.41014E-06   -.23889E-04
  12  norm          .86915        .86869       -.81092E-07    .18381E-03
  13  Prefactor     .10000E-03    69.051        .46106E-05** at limit **
  14  Prefactor     .10000E-03    21.206       -.55536E-05** at limit **
  15  Prefactor     .10000E-03    2.3562       -.41484E-07** at limit **
  16  Prefactor     35.588        52.647       -.68736E-05    .28210E-04
  17  Prefactor     .10000E-03    16.954       -.85678E-05** at limit **
  18  norm          .10000E-03    20.849        .32546E-06** at limit **
  19  Prefactor     4.1687        9.1888       -.20149E-06   -.69346E-04
  20  Prefactor     .10000E-03    330.03       -.97226E-05** at limit **
  21  Prefactor     .10000E-03    17.459        .11977E-04** at limit **
  22  Normalizat    1.3162        .31143       -.72917E-06   -.57725E-04
  23  Prefactor     .70749        .21620        .82648E-06   -.64342E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  Prefactor  = 9.66033
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 9.71467
  Prefactor  = 80.2203
  Prefactor  = 1.37027
  norm       = 3.45044
  norm       = 0.869153
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 35.5876
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 4.16875
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Normalizat = 1.31623
  Prefactor  = 0.707491
 **********
 **   18 **HESSE 
 **********

 FCN=   2390.205     FROM HESSE     STATUS=OK           360 CALLS     2882 TOTAL
                     EDM=   .11E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    7.8208        .13352E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     9.6603        25.559        .12902E-03   -1.5086    
   3  Prefactor     .10000E-03    46.587        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    32.211        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    31.193        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          .10000E-03    12.243        .16682E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          .10000E-03    11.810        .16222E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     9.7147        24.517        .12857E-03   -1.5084    
   9  Prefactor     80.220        132.86        .44851E-04   -1.3914    
  10  Prefactor     1.3703        24.778        .18683E-02   -1.5474    
  11  norm          3.4504        6.4735        .16659E-03   -1.5336    
  12  norm          .86915        .88791        .43841E-04   -1.5522    
  13  Prefactor     .10000E-03    70.510        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    21.320        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    2.3622        .73273E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     35.588        52.456        .67163E-04   -1.4514    
  17  Prefactor     .10000E-03    16.899        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          .10000E-03    20.912        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     4.1687        9.1908        .19742E-03   -1.5300    
  20  Prefactor     .10000E-03    331.02        .18789E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10000E-03    17.707        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Normalizat    1.3162        .37123        .25365E-03   -.83083    
  23  Prefactor     .70749        .25348        .23352E-03   -1.0323    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.08225e-08
Minuit parameter uncertainties:
  1  9.21291e-07
  2  25.5875
  3  0.00010796
  4  2.64349e-05
  5  2.07317e-05
  6  1.65417e-05
  7  7.45874e-05
  8  24.5427
  9  133.36
  10  11.659
  11  6.47485
  12  0.887921
  13  3.14947e-05
  14  3.51015e-07
  15  2.91378e-06
  16  52.5242
  17  1.72113e-05
  18  3.07133e-06
  19  9.19389
  20  0.000816038
  21  2.15402e-05
  22  0.37199
  23  0.253891
Done.

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

Extracting fit parameters...

4FGL J0809.3+4053
   Spectrum: PowerLaw
269    Prefactor:  1.370e+00  1.166e+01  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:  7.075e-01  2.539e-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.316e+00  3.720e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 0.02
Ra Dec: 122.330 40.895
Photon Flux Upper Limit: 2.58e-07 ph cm-2 s-1
Energy Flux Upper Limit: 2.02e-02 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/229404/likelihoodResults_408844801_409104001_4FGL_J0809.3+4053_daily_bin654.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) = 2390.01841848
delta logL = 0.186823532647

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 2390.00283933
delta logL = 0.202402685185

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    2.0253       1.0000         .10000E-03   10000.    
     2 'Index     '    3.6871       1.0000          .0000       10.000    
     3 'Normalizat'    1.2668       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .72503       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.

 FCN=   2390.003     FROM MIGRAD    STATUS=CONVERGED     56 CALLS      208 TOTAL
                     EDM=   .17E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     2.0315        143.07        .72686E-02    .22133E-03
   2  Index         3.6883        6.6685        .15795        .39053E-04
   3  Normalizat    1.2665        .94245E-01    .58225E-01    .11599E-04
   4  Prefactor     .72510        .66622E-01    .42733E-01    .18745E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 2.03149
  Index      = 3.68832
  Normalizat = 1.26653
  Prefactor  = 0.725102
 **********
 **   18 **HESSE 
 **********

 FCN=   2390.003     FROM HESSE     STATUS=OK            33 CALLS      241 TOTAL
                     EDM=   .60E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     2.0315        7.5971        .11287E-03   -1.5423    
   2  Index         3.6883        2.1120        .79228E-02   -.26544    
   3  Normalizat    1.2665        .36703        .25748E-03   -.84571    
   4  Prefactor     .72510        .25214        .23073E-03   -1.0255    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.953e-09
Minuit parameter uncertainties:
  1  7.60068
  2  2.18604
  3  0.367784
  4  0.252538
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/229404': 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) = 2390.00283529
delta logL = 0.202406723846

Extracting fit parameters...

4FGL J0809.3+4053
   Spectrum: PowerLaw
269    Prefactor:  2.031e+00  7.601e+00  1.000e-04  1.000e+04 ( 1.000e-12)
270        Index:  3.688e+00  2.186e+00  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:  7.251e-01  2.525e-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.267e+00  3.678e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 0.02
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/229404/cmap_HighResolution_408844801_409104001_4FGL_J0809.3+4053_daily_bin654.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='2.02e-02', job_status='DONE', photon_flux_upper_limit='2.58e-07', time_completed='2021-08-29 08:00:51.324846', job_id='229404', GAL2='0.73', fit_tolerance='1e-08', EG2='1.27', EG='1.32', time_epoch_completed='1630249251.32', return_code2='0', ts='0.02', comment='SUCCESS', return_code='0', GAL='0.71', dlogl='2.02e-01', ts2='0.46', photon_index_error='0.00', photon_index='2.59' WHERE bin_id='654' AND source_name='4FGL J0809.3+4053' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Aug 29 08:00:51 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0134>
Subject: Job 229404: <4FGL_J0809.3+4053_daily_bin654> in cluster <slac> Done

Job <4FGL_J0809.3+4053_daily_bin654> was submitted from host <rhel6-64c> by user <kocevski> in cluster <slac> at Sun Aug 29 07:45:25 2021
Job was executed on host(s) <bullet0134>, in queue <medium>, as user <kocevski> in cluster <slac> at Sun Aug 29 07:45:26 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Sun Aug 29 07:45:26 2021
Terminated at Sun Aug 29 08:00:53 2021
Results reported at Sun Aug 29 08:00:53 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0809.3+4053_daily_bin654 122.33 40.8954 408844801 409104001 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 :                                   695.34 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             186.81 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              7
    Max Threads :                                21
    Run time :                                   926 sec.
    Turnaround time :                            928 sec.

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

