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


Performing analysis on: 4FGL_J0809.3+4053_daily_bin903
RA = 122.33, Dec = 40.8954
tmin = 473385601, tmax = 473644801
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='231006', job_status='RUN', time_executed='2021-08-29 07:50:55.773038', time_epoch_executed='1630248655.77' WHERE source_name='4FGL J0809.3+4053' and cadence='daily' and bin_id='903'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/231006

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/231006/ft1_4FGL_J0809.3+4053_daily_bin903.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/231006/ft2_4FGL_J0809.3+4053_daily_bin903.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/231006/ft1_4FGL_J0809.3+4053_daily_bin903.fits outfile=/scratch/kocevski/231006/ft1_filteredMKT_4FGL_J0809.3+4053_daily_bin903.fits ra=122.33 dec=40.8954 rad=12.0 tmin=473385601.0 tmax=473644801.0 emin=100.0 emax=100000.0 zmin=0.0 zmax=90.0 evclass=128 evtype="INDEF" convtype=-1 phasemin=0.0 phasemax=1.0 evtable="EVENTS" chatter=2 clobber=yes debug=no gui=no mode="ql"

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

Done.
real 3.84
user 3.42
sys 0.39

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/231006/ft1_filtered_4FGL_J0809.3+4053_daily_bin903.fits" evtable="EVENTS" scfile=/scratch/kocevski/231006/ft2_4FGL_J0809.3+4053_daily_bin903.fits sctable="SC_DATA" outfile=/scratch/kocevski/231006/ltcube_473385601_473644801_4FGL_J0809.3+4053_daily_bin903.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/231006/ft2_4FGL_J0809.3+4053_daily_bin903.fits
.....................!
real 11.99
user 11.43
sys 0.51

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/231006/ft1_filtered_4FGL_J0809.3+4053_daily_bin903.fits evtable="EVENTS" scfile=/scratch/kocevski/231006/ft2_4FGL_J0809.3+4053_daily_bin903.fits sctable="SC_DATA" expcube=/scratch/kocevski/231006/ltcube_473385601_473644801_4FGL_J0809.3+4053_daily_bin903.fits outfile=/scratch/kocevski/231006/expmap_473385601_473644801_4FGL_J0809.3+4053_daily_bin903.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/231006/ltcube_473385601_473644801_4FGL_J0809.3+4053_daily_bin903.fits
.....................!
real 190.36
user 185.15
sys 4.61

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/231006/ft1_filtered_4FGL_J0809.3+4053_daily_bin903.fits scfile=/scratch/kocevski/231006/ft2_4FGL_J0809.3+4053_daily_bin903.fits outfile=/scratch/kocevski/231006/cmap_473385601_473644801_4FGL_J0809.3+4053_daily_bin903.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.75
user 0.36
sys 0.36

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/231006/ft1_filtered_4FGL_J0809.3+4053_daily_bin903.fits scfile=/scratch/kocevski/231006/ft2_4FGL_J0809.3+4053_daily_bin903.fits outfile=/scratch/kocevski/231006/cmap_HighResolution_473385601_473644801_4FGL_J0809.3+4053_daily_bin903.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.76
user 0.38
sys 0.36

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    13.297       1.0000         .10000E-03   10000.    
     2 'Prefactor '    12.064       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10869E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    2.6562       1.0000         .10000E-03   10000.    
     5 'Prefactor '    1.2175       1.0000         .10000E-03   10000.    
     6 'norm      '    6.8942       1.0000         .10000E-03   10000.    
     7 'norm      '    1.8079       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10729E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    42.608       1.0000         .10000E-03   10000.    
    10 'Prefactor '    3.2027       1.0000         .10000E-03   10000.    
    11 'norm      '    .63325       1.0000         .10000E-03   10000.    
    12 'norm      '    .30304       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10018E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    5.6971       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10122E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    18 'norm      '    .47190       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .92202       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    19.186       1.0000         .10000E-03   10000.    
    22 'Normalizat'    .88351       1.0000         .10000E-01   10.000    
    23 'Prefactor '    1.0163       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=   6905.470     FROM MIGRAD    STATUS=CONVERGED    517 CALLS     2640 TOTAL
                     EDM=   .30E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  3.9%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          13.296        7.7799        .25491E-07   -.28657E-05
   2  Prefactor     12.060        17.652        .39587E-06   -.84501E-05
   3  Prefactor     .10000E-03    60.830        .47707E-06** at limit **
   4  Prefactor     2.6551        16.960        .74175E-05   -.77076E-04
   5  Prefactor     1.2219        20.076        .15371E-06   -.57384E-04
   6  norm          6.8954        13.634        .18282E-05   -.29114E-04
   7  norm          1.8078        2.8455       -.53865E-06   -.87776E-04
   8  Prefactor     .10000E-03    4.3667       -.11230E-05** at limit **
   9  Prefactor     42.581        46.338        .38334E-05   -.12923E-05
  10  Prefactor     3.2036        4.5580        .30202E-06   -.13761E-04
  11  norm          .63284        1.1383        .97958E-07    .45669E-03
  12  norm          .30349        .45403       -.18149E-06   -.17987E-02
  13  Prefactor     .10000E-03    21.991        .29614E-06** at limit **
  14  Prefactor     5.6974        9.7196        .25680E-06    .64321E-05
  15  Prefactor     .10000E-03    1.5963        .16745E-06** at limit **
  16  Prefactor     .10000E-03    22.053        .11841E-06** at limit **
  17  Prefactor     .10000E-03    3.9311       -.35248E-07** at limit **
  18  norm          .47170        3.7205        .57130E-06   -.16335E-03
  19  Prefactor     .92177        2.2914        .23690E-06   -.76767E-04
  20  Prefactor     .10000E-03    23.416       -.41013E-06** at limit **
  21  Prefactor     19.187        6.5330        .23660E-06   -.58009E-04
  22  Normalizat    .88343        .18852       -.76633E-06    .46870E-04
  23  Prefactor     1.0164        .13292       -.68934E-06   -.88604E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 13.2964
  Prefactor  = 12.0604
  Prefactor  = 0.0001
  Prefactor  = 2.65512
  Prefactor  = 1.22187
  norm       = 6.89542
  norm       = 1.80783
  Prefactor  = 0.000100001
  Prefactor  = 42.5815
  Prefactor  = 3.20356
  norm       = 0.632835
  norm       = 0.30349
  Prefactor  = 0.0001
  Prefactor  = 5.69741
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.4717
  Prefactor  = 0.921771
  Prefactor  = 0.0001
  Prefactor  = 19.1873
  Normalizat = 0.883431
  Prefactor  = 1.01637
 **********
 **   18 **HESSE 
 **********

 FCN=   6905.470     FROM HESSE     STATUS=OK           384 CALLS     3024 TOTAL
                     EDM=   .41E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          13.296        7.7858        .10985E-03   -1.4979    
   2  Prefactor     12.060        17.644        .11533E-03   -1.5013    
   3  Prefactor     .10000E-03    61.811        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     2.6551        17.318        .12506E-02   -1.5382    
   5  Prefactor     1.2219        20.305        .40915E-03   -1.5487    
   6  norm          6.8954        13.608        .76400E-03   -1.5183    
   7  norm          1.8078        2.8246        .15798E-03   -1.5439    
   8  Prefactor     .10000E-03    4.4740        .17116E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     42.581        46.220        .61414E-04   -1.4402    
  10  Prefactor     3.2036        4.5058        .19459E-03   -1.5350    
  11  norm          .63284        .87998        .11602E-02   -1.5549    
  12  norm          .30349        .42000        .64698E-03   -1.5598    
  13  Prefactor     .10000E-03    22.158        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     5.6974        9.5761        .16829E-03   -1.5231    
  15  Prefactor     .10000E-03    3.4046        .19991E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    22.271        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    3.9594        .16089E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          .47170        8.2427        .30380E-02   -1.5571    
  19  Prefactor     .92177        2.2404        .18856E-03   -1.5516    
  20  Prefactor     .10000E-03    23.418        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     19.187        6.5456        .91439E-04   -1.4832    
  22  Normalizat    .88343        .21838        .29295E-03   -.97045    
  23  Prefactor     1.0164        .15515        .20398E-03   -.92186    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.122e-08
Minuit parameter uncertainties:
  1  7.78643
  2  17.6519
  3  4.46267e-05
  4  13.5675
  5  9.96558
  6  13.614
  7  2.82477
  8  0.000107835
  9  46.2588
  10  4.5063
  11  0.880001
  12  0.420009
  13  2.52343e-05
  14  9.57867
  15  3.6646e-06
  16  7.31963e-06
  17  2.05334e-06
  18  3.94387
  19  2.24056
  20  4.41841e-07
  21  6.54587
  22  0.218595
  23  0.155218
Done.

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

Extracting fit parameters...

4FGL J0809.3+4053
   Spectrum: PowerLaw
269    Prefactor:  3.204e+00  4.506e+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

GAL_V02
   Spectrum: PowerLaw
599    Prefactor:  1.016e+00  1.552e-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:  8.834e-01  2.186e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 0.76
Ra Dec: 122.330 40.895
Photon Flux Upper Limit: 1.13e-07 ph cm-2 s-1
Energy Flux Upper Limit: 8.85e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/231006/likelihoodResults_473385601_473644801_4FGL_J0809.3+4053_daily_bin903.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) = 6905.09470249
delta logL = 0.375048673739

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 6905.01537458
delta logL = 0.454376586362

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .17945E-01   1.0000         .10000E-03   10000.    
     2 'Index     '    6.5184       1.0000          .0000       10.000    
     3 'Normalizat'    .81412       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0572       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=   6905.015     FROM MIGRAD    STATUS=CONVERGED     56 CALLS      354 TOTAL
                     EDM=   .60E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .17738E-01    .20205        .20605E-02   -.24535E-01
   2  Index         6.5249        2.7156        .18345       -.23616E-03
   3  Normalizat    .81435        .38018E-01    .68689E-01   -.22024E-03
   4  Prefactor     1.0570        .28369E-01    .39508E-01   -.18556E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.017738
  Index      = 6.52489
  Normalizat = 0.81435
  Prefactor  = 1.057
 **********
 **   18 **HESSE 
 **********

 FCN=   6905.015     FROM HESSE     STATUS=NOT POSDEF    33 CALLS      387 TOTAL
                     EDM=   .11E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .17738E-01    .63951        .93954E-04   -1.5681    
   2  Index         6.5249        8.0217        .63424E-02    .30992    
   3  Normalizat    .81435        .15387        .30392E-03   -.99539    
   4  Prefactor     1.0570        .11233        .20058E-03   -.90853    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 1.06592e-09
Minuit parameter uncertainties:
  1  0.212414
  2  6.84859
  3  0.153951
  4  0.112358
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/231006': 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) = 6905.01537318
delta logL = 0.454377989607

Extracting fit parameters...

4FGL J0809.3+4053
   Spectrum: PowerLaw
269    Prefactor:  1.774e-02  2.124e-01  1.000e-04  1.000e+04 ( 1.000e-12)
270        Index:  6.525e+00  6.849e+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:  1.057e+00  1.124e-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:  8.144e-01  1.540e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 1.82
Ra Dec: 122.330 40.895
Photon Index (Free Index): 6.52 +/- 6.85
Photon Flux (Free Index): 7.16e-08 +/- 6.07e-08
Energy Flux (Free Index): 8.70e-06 +/- 8.47e-06

Creating a high resolution counts map...
INFO: Auto-setting vmin to -2.500e-04 [aplpy.core]
INFO: Auto-setting vmax to  2.775e-03 [aplpy.core]
Saving /scratch/kocevski/231006/cmap_HighResolution_473385601_473644801_4FGL_J0809.3+4053_daily_bin903.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='8.85e-03', comment='SUCCESS', energy_flux2='8.70e-06', dlogl='4.54e-01', photon_flux2='7.16e-08', job_status='DONE', time_completed='2021-08-29 08:03:34.815892', photon_index_error2='6.85', photon_index2='6.52', ts='0.76', fit_tolerance='1e-08', GAL='1.02', photon_index_error='0.00', photon_flux_upper_limit='1.13e-07', energy_flux_error2='8.47e-06', EG='0.88', time_epoch_completed='1630249414.82', return_code='0', job_id='231006', GAL2='1.06', EG2='0.81', return_code2='102', photon_flux_error2='6.07e-08', ts2='1.82', photon_index='2.59' WHERE bin_id='903' AND source_name='4FGL J0809.3+4053' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Aug 29 08:03:34 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0078>
Subject: Job 231006: <4FGL_J0809.3+4053_daily_bin903> in cluster <slac> Done

Job <4FGL_J0809.3+4053_daily_bin903> was submitted from host <rhel6-64q> by user <kocevski> in cluster <slac> at Sun Aug 29 07:50:36 2021
Job was executed on host(s) <bullet0078>, in queue <medium>, as user <kocevski> in cluster <slac> at Sun Aug 29 07:50:38 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:50:38 2021
Terminated at Sun Aug 29 08:03:35 2021
Results reported at Sun Aug 29 08:03:35 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0809.3+4053_daily_bin903 122.33 40.8954 473385601 473644801 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 :                                   759.00 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             293.64 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   777 sec.
    Turnaround time :                            779 sec.

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

