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


Performing analysis on: 4FGL_J0809.3+4053_daily_bin788
RA = 122.33, Dec = 40.8954
tmin = 443577601, tmax = 443836801
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='230834', job_status='RUN', time_executed='2021-08-29 07:53:20.209906', time_epoch_executed='1630248800.21' WHERE source_name='4FGL J0809.3+4053' and cadence='daily' and bin_id='788'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/230834

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/230834/ft1_4FGL_J0809.3+4053_daily_bin788.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/230834/ft2_4FGL_J0809.3+4053_daily_bin788.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/230834/ft1_4FGL_J0809.3+4053_daily_bin788.fits outfile=/scratch/kocevski/230834/ft1_filteredMKT_4FGL_J0809.3+4053_daily_bin788.fits ra=122.33 dec=40.8954 rad=12.0 tmin=443577601.0 tmax=443836801.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.87
user 3.33
sys 0.50

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/230834/ft1_filtered_4FGL_J0809.3+4053_daily_bin788.fits" evtable="EVENTS" scfile=/scratch/kocevski/230834/ft2_4FGL_J0809.3+4053_daily_bin788.fits sctable="SC_DATA" outfile=/scratch/kocevski/230834/ltcube_443577601_443836801_4FGL_J0809.3+4053_daily_bin788.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/230834/ft2_4FGL_J0809.3+4053_daily_bin788.fits
.....................!
real 12.59
user 11.84
sys 0.66

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/230834/ft1_filtered_4FGL_J0809.3+4053_daily_bin788.fits evtable="EVENTS" scfile=/scratch/kocevski/230834/ft2_4FGL_J0809.3+4053_daily_bin788.fits sctable="SC_DATA" expcube=/scratch/kocevski/230834/ltcube_443577601_443836801_4FGL_J0809.3+4053_daily_bin788.fits outfile=/scratch/kocevski/230834/expmap_443577601_443836801_4FGL_J0809.3+4053_daily_bin788.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/230834/ltcube_443577601_443836801_4FGL_J0809.3+4053_daily_bin788.fits
.....................!
real 191.77
user 185.28
sys 5.79

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/230834/ft1_filtered_4FGL_J0809.3+4053_daily_bin788.fits scfile=/scratch/kocevski/230834/ft2_4FGL_J0809.3+4053_daily_bin788.fits outfile=/scratch/kocevski/230834/cmap_443577601_443836801_4FGL_J0809.3+4053_daily_bin788.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.79
user 0.35
sys 0.42

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/230834/ft1_filtered_4FGL_J0809.3+4053_daily_bin788.fits scfile=/scratch/kocevski/230834/ft2_4FGL_J0809.3+4053_daily_bin788.fits outfile=/scratch/kocevski/230834/cmap_HighResolution_443577601_443836801_4FGL_J0809.3+4053_daily_bin788.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.80
user 0.37
sys 0.42

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10038E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    3.5957       1.0000         .10000E-03   10000.    
     4 'Prefactor '    8.6186       1.0000         .10000E-03   10000.    
     5 'Prefactor '    4.2934       1.0000         .10000E-03   10000.    
     6 'norm      '    9.6512       1.0000         .10000E-03   10000.    
     7 'norm      '    6.0448       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10078E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10031E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    3.6097       1.0000         .10000E-03   10000.    
    12 'norm      '    .79336       1.0000         .10000E-03   10000.    
    13 'Prefactor '    9.7541       1.0000         .10000E-03   10000.    
    14 'Prefactor '    8.0310       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .15648E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    7.6138       1.0000         .10000E-03   10000.    
    18 'norm      '    8.3898       1.0000         .10000E-03   10000.    
    19 'Prefactor '    1.9500       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .13181E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    5.4665       1.0000         .10000E-03   10000.    
    22 'Normalizat'    1.1308       1.0000         .10000E-01   10.000    
    23 'Prefactor '    .71680       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=   5942.115     FROM MIGRAD    STATUS=CONVERGED    502 CALLS     2528 TOTAL
                     EDM=   .28E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .8%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    4.1989       -.85451E-07** at limit **
   2  Prefactor     .10000E-03    4.4860        .81592E-07** at limit **
   3  Prefactor     3.6013        81.604        .14209E-04   -.20414E-04
   4  Prefactor     8.6148        13.813       -.30814E-06   -.99660E-04
   5  Prefactor     4.2915        17.102        .46595E-06   -.67231E-04
   6  norm          9.6516        9.9484        .23027E-05   -.56774E-04
   7  norm          6.0450        3.4919       -.11662E-06   -.14342E-03
   8  Prefactor     .10000E-03    1.9715        .10635E-08** at limit **
   9  Prefactor     .10000E-03    9.5889        .93760E-07** at limit **
  10  Prefactor     .10000E-03    4.8636        .15640E-06** at limit **
  11  norm          3.6099        2.1263       -.32829E-07   -.24997E-04
  12  norm          .79305        .57282        .29578E-06    .75208E-03
  13  Prefactor     9.7445        21.008       -.27469E-05   -.13774E-04
  14  Prefactor     8.0281        11.087       -.54405E-05   -.66510E-04
  15  Prefactor     .10000E-03    .73101        .98855E-07** at limit **
  16  Prefactor     .10002E-03    71.472       -.10505E-05** at limit **
  17  Prefactor     7.5863        12.995       -.62410E-05   -.52908E-04
  18  norm          8.3891        7.2412       -.76931E-06   -.91254E-04
  19  Prefactor     1.9490        2.3513       -.11375E-08   -.33718E-03
  20  Prefactor     .10000E-03    38.102        .41523E-05** at limit **
  21  Prefactor     5.4644        4.8589       -.14759E-06   -.28495E-03
  22  Normalizat    1.1309        .17973        .17222E-05   -.11908E-03
  23  Prefactor     .71675        .12708       -.66347E-06    .73459E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 3.60134
  Prefactor  = 8.61477
  Prefactor  = 4.29146
  norm       = 9.65161
  norm       = 6.04497
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 3.60991
  norm       = 0.793051
  Prefactor  = 9.74446
  Prefactor  = 8.02811
  Prefactor  = 0.0001
  Prefactor  = 0.000100018
  Prefactor  = 7.58633
  norm       = 8.38906
  Prefactor  = 1.94901
  Prefactor  = 0.0001
  Prefactor  = 5.46437
  Normalizat = 1.13088
  Prefactor  = 0.716751
 **********
 **   18 **HESSE 
 **********

 FCN=   5942.115     FROM HESSE     STATUS=OK           378 CALLS     2906 TOTAL
                     EDM=   .57E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    4.2495        .15423E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    4.5005        .15943E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     3.6013        79.725        .21310E-03   -1.5328    
   4  Prefactor     8.6148        13.692        .13654E-03   -1.5121    
   5  Prefactor     4.2915        17.079        .19443E-03   -1.5294    
   6  norm          9.6516        9.9128        .12899E-03   -1.5087    
   7  norm          6.0450        3.4858        .10041E-03   -1.5216    
   8  Prefactor     .10000E-03    1.9728        .10569E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    9.5913        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    5.0491        .33114E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          3.6099        2.1251        .83905E-04   -1.5328    
  12  norm          .79305        .55558        .46360E-03   -1.5530    
  13  Prefactor     9.7445        21.031        .12831E-03   -1.5084    
  14  Prefactor     8.0281        11.109        .14148E-03   -1.5141    
  15  Prefactor     .10000E-03    .73565        .64355E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10002E-03    72.145        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     7.5863        13.039        .14534E-03   -1.5157    
  18  norm          8.3891        7.2463        .13840E-03   -1.5129    
  19  Prefactor     1.9490        2.3340        .12514E-03   -1.5429    
  20  Prefactor     .10000E-03    38.131        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     5.4644        4.8860        .15316E-03   -1.5240    
  22  Normalizat    1.1309        .20876        .23868E-03   -.88766    
  23  Prefactor     .71675        .14702        .21766E-03   -1.0287    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.68237e-10
Minuit parameter uncertainties:
  1  7.08092e-06
  2  5.86451e-06
  3  33.9399
  4  13.6972
  5  17.0988
  6  9.91444
  7  3.48588
  8  1.43953e-07
  9  3.58283e-06
  10  5.01281e-05
  11  2.12511
  12  0.55558
  13  21.0466
  14  11.1118
  15  8.50391e-06
  16  0.00230732
  17  13.0435
  18  7.24709
  19  2.33407
  20  1.52012e-06
  21  4.88639
  22  0.208915
  23  0.147104
Done.

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

Extracting fit parameters...

4FGL J0809.3+4053
   Spectrum: PowerLaw
269    Prefactor:  1.000e-04  5.013e-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:  7.168e-01  1.471e-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.131e+00  2.089e-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: 7.97e-08 ph cm-2 s-1
Energy Flux Upper Limit: 6.24e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/230834/likelihoodResults_443577601_443836801_4FGL_J0809.3+4053_daily_bin788.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) = 5942.1159788
delta logL = -0.00094562459708

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5942.03916698
delta logL = 0.075866202531

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .16188       1.0000         .10000E-03   10000.    
     2 'Index     '    4.4170       1.0000          .0000       10.000    
     3 'Normalizat'    1.1070       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .72667       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.
 MIGRAD TERMINATED WITHOUT CONVERGENCE.

 FCN=   5942.039     FROM MIGRAD    STATUS=FAILED        90 CALLS      322 TOTAL
                     EDM=   .22E-06    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .16189        50.938        .65899E-03   -.45045E-02
   2  Index         4.4173        7.4888        .92371E-02   -.26929E-03
   3  Normalizat    1.1070        .13640        .24092E-03   -.62897E-03
   4  Prefactor     .72666        .97305E-01    .21631E-03   -.42195E-03
                               ERR DEF=  .500    
 START SIMPLEX MINIMIZATION.    CONVERGENCE WHEN EDM .LT.   .20E-04
 SIMPLEX MINIMIZATION HAS CONVERGED.

 FCN=   5942.039     FROM SIMPLEX   STATUS=UNCHANGED     93 CALLS      415 TOTAL
                     EDM=   .73E-05    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .16189        50.938        .67915E-04   -.45045E-02
   2  Index         4.4173        7.4888        .25822E-02   -.26929E-03
   3  Normalizat    1.1070        .13640        .91785E-04   -.62897E-03
   4  Prefactor     .72666        .97305E-01    .56550E-04   -.42195E-03
                               ERR DEF=  .500    

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   5942.039     FROM MIGRAD    STATUS=CONVERGED     34 CALLS      449 TOTAL
                     EDM=   .11E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .16183        1.6540        .26360E-04   -.60769E-03
   2  Index         4.4175        3.3347        .36948E-03   -.30492E-04
   3  Normalizat    1.1070        .20329        .48184E-04    .19819E-04
   4  Prefactor     .72666        .14711        .43261E-04    .39051E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.161834
  Index      = 4.41753
  Normalizat = 1.10697
  Prefactor  = 0.726663
 **********
 **   18 **HESSE 
 **********

 FCN=   5942.039     FROM HESSE     STATUS=OK            23 CALLS      472 TOTAL
                     EDM=   .11E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .16183        1.4787        .10544E-05   -1.5628    
   2  Index         4.4175        3.1847        .14779E-04   -.11676    
   3  Normalizat    1.1070        .20334        .96368E-05   -.89528    
   4  Prefactor     .72666        .14715        .86522E-05   -1.0249    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.06519e-10
Minuit parameter uncertainties:
  1  0.978109
  2  3.4573
  3  0.203479
  4  0.147228
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/230834': 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) = 5942.03916694
delta logL = 0.0758662359003

Extracting fit parameters...

4FGL J0809.3+4053
   Spectrum: PowerLaw
269    Prefactor:  1.618e-01  9.781e-01  1.000e-04  1.000e+04 ( 1.000e-12)
270        Index:  4.418e+00  3.457e+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.267e-01  1.472e-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.107e+00  2.035e-01  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/230834/cmap_HighResolution_443577601_443836801_4FGL_J0809.3+4053_daily_bin788.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='6.24e-03', job_status='DONE', photon_flux_upper_limit='7.97e-08', time_completed='2021-08-29 08:04:59.255942', job_id='230834', GAL2='0.73', fit_tolerance='1e-08', EG2='1.11', EG='1.13', time_epoch_completed='1630249499.26', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.72', dlogl='7.59e-02', ts2='0.17', photon_index_error='0.00', photon_index='2.59' WHERE bin_id='788' AND source_name='4FGL J0809.3+4053' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Aug 29 08:04:59 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0203>
Subject: Job 230834: <4FGL_J0809.3+4053_daily_bin788> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0809.3+4053_daily_bin788 122.33 40.8954 443577601 443836801 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 :                                   700.01 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             275.48 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   874 sec.
    Turnaround time :                            876 sec.

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

