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


Performing analysis on: 4FGL_J0809.3+4053_daily_bin503
RA = 122.33, Dec = 40.8954
tmin = 369705601, tmax = 369964801
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='228143', job_status='RUN', time_executed='2021-08-29 07:43:48.647051', time_epoch_executed='1630248228.65' WHERE source_name='4FGL J0809.3+4053' and cadence='daily' and bin_id='503'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/228143

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/228143/ft1_4FGL_J0809.3+4053_daily_bin503.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/228143/ft2_4FGL_J0809.3+4053_daily_bin503.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/228143/ft1_4FGL_J0809.3+4053_daily_bin503.fits outfile=/scratch/kocevski/228143/ft1_filteredMKT_4FGL_J0809.3+4053_daily_bin503.fits ra=122.33 dec=40.8954 rad=12.0 tmin=369705601.0 tmax=369964801.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 5.10
user 3.55
sys 1.46

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

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

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/228143/ft1_filtered_4FGL_J0809.3+4053_daily_bin503.fits" evtable="EVENTS" scfile=/scratch/kocevski/228143/ft2_4FGL_J0809.3+4053_daily_bin503.fits sctable="SC_DATA" outfile=/scratch/kocevski/228143/ltcube_369705601_369964801_4FGL_J0809.3+4053_daily_bin503.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/228143/ft2_4FGL_J0809.3+4053_daily_bin503.fits
.....................!
real 12.86
user 11.62
sys 1.16

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/228143/ft1_filtered_4FGL_J0809.3+4053_daily_bin503.fits evtable="EVENTS" scfile=/scratch/kocevski/228143/ft2_4FGL_J0809.3+4053_daily_bin503.fits sctable="SC_DATA" expcube=/scratch/kocevski/228143/ltcube_369705601_369964801_4FGL_J0809.3+4053_daily_bin503.fits outfile=/scratch/kocevski/228143/expmap_369705601_369964801_4FGL_J0809.3+4053_daily_bin503.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/228143/ltcube_369705601_369964801_4FGL_J0809.3+4053_daily_bin503.fits
.....................!
real 191.94
user 185.94
sys 5.53

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/228143/ft1_filtered_4FGL_J0809.3+4053_daily_bin503.fits scfile=/scratch/kocevski/228143/ft2_4FGL_J0809.3+4053_daily_bin503.fits outfile=/scratch/kocevski/228143/cmap_369705601_369964801_4FGL_J0809.3+4053_daily_bin503.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 1.27
user 0.37
sys 0.88

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/228143/ft1_filtered_4FGL_J0809.3+4053_daily_bin503.fits scfile=/scratch/kocevski/228143/ft2_4FGL_J0809.3+4053_daily_bin503.fits outfile=/scratch/kocevski/228143/cmap_HighResolution_369705601_369964801_4FGL_J0809.3+4053_daily_bin503.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 1.28
user 0.40
sys 0.87

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .46694E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10009E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10213E-03   1.0000         .10000E-03   10000.    
     6 'norm      '    5.1054       1.0000         .10000E-03   10000.    
     7 'norm      '    .10005E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .12659E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    68.635       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .11772E-01   1.0000         .10000E-03   10000.    
    11 'norm      '    2.9230       1.0000         .10000E-03   10000.    
    12 'norm      '    1.1777       1.0000         .10000E-03   10000.    
    13 'Prefactor '    32.371       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10103E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    4.6225       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .17015E-02   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10198E-03   1.0000         .10000E-03   10000.    
    18 'norm      '    7.7306       1.0000         .10000E-03   10000.    
    19 'Prefactor '    2.4862       1.0000         .10000E-03   10000.    
    20 'Prefactor '    36.748       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .58576       1.0000         .10000E-03   10000.    
    22 'Normalizat'    .95875       1.0000         .10000E-01   10.000    
    23 'Prefactor '    .99651       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=   6329.710     FROM MIGRAD    STATUS=CONVERGED    521 CALLS     2617 TOTAL
                     EDM=   .85E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.5%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10002E-03    5.1096        .13294E-05** at limit **
   2  Prefactor     .10000E-03    6.0110        .14135E-06** at limit **
   3  Prefactor     .10000E-03    10.032        .16710E-06** at limit **
   4  Prefactor     .10000E-03    4.0663        .11347E-06** at limit **
   5  Prefactor     .10000E-03    14.302        .40298E-06** at limit **
   6  norm          5.1075        9.0309        .47951E-05    .15866E-05
   7  norm          .10000E-03    .67609        .60903E-07** at limit **
   8  Prefactor     .10000E-03    6.3709        .87129E-06** at limit **
   9  Prefactor     68.655        42.683        .37903E-06    .71920E-04
  10  Prefactor     .10185E-03    3.0519        .16083E-05** at limit **
  11  norm          2.9230        1.7541        .19901E-07   -.14227E-04
  12  norm          1.1765        .70922       -.15222E-06   -.19638E-02
  13  Prefactor     32.347        31.444       -.28734E-06   -.25084E-03
  14  Prefactor     .10000E-03    10.370       -.42804E-07** at limit **
  15  Prefactor     4.6222        2.9124       -.10906E-06   -.54302E-03
  16  Prefactor     .10003E-03    129.30       -.86679E-05** at limit **
  17  Prefactor     .10000E-03    4.4148       -.11171E-06** at limit **
  18  norm          7.7303        5.7297        .35892E-07   -.26453E-04
  19  Prefactor     2.4857        3.0810        .21416E-06   -.71784E-04
  20  Prefactor     36.750        59.448       -.76173E-06   -.38862E-04
  21  Prefactor     .58021        3.6312        .11065E-05   -.27886E-03
  22  Normalizat    .95869        .18943       -.19592E-05   -.50523E-03
  23  Prefactor     .99650        .13547       -.27210E-06   -.66406E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 0.000100022
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 5.10745
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 68.6546
  Prefactor  = 0.000101846
  norm       = 2.92299
  norm       = 1.17647
  Prefactor  = 32.347
  Prefactor  = 0.0001
  Prefactor  = 4.62221
  Prefactor  = 0.000100029
  Prefactor  = 0.0001
  norm       = 7.7303
  Prefactor  = 2.48572
  Prefactor  = 36.7503
  Prefactor  = 0.580213
  Normalizat = 0.958691
  Prefactor  = 0.996502
 **********
 **   18 **HESSE 
 **********

 FCN=   6329.710     FROM HESSE     STATUS=OK           374 CALLS     2991 TOTAL
                     EDM=   .34E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10002E-03    21.442        .34180E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    6.0394        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    10.045        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    4.0756        .15669E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    14.531        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          5.1075        9.0552        .88970E-03   -1.5256    
   7  norm          .10000E-03    .67848        .63891E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    6.4698        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     68.655        42.745        .48450E-04   -1.4049    
  10  Prefactor     .10185E-03    6.4035        .41104E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          2.9230        1.7575        .79562E-04   -1.5366    
  12  norm          1.1765        .69594        .48586E-04   -1.5491    
  13  Prefactor     32.347        31.693        .70426E-04   -1.4570    
  14  Prefactor     .10000E-03    10.413        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     4.6222        2.9099        .10241E-03   -1.5278    
  16  Prefactor     .10003E-03    134.04        .40737E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    4.4231        .16321E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          7.7303        5.7279        .14422E-03   -1.5152    
  19  Prefactor     2.4857        3.0747        .14865E-03   -1.5393    
  20  Prefactor     36.750        58.675        .66112E-04   -1.4495    
  21  Prefactor     .58021        6.7929        .27593E-02   -1.5556    
  22  Normalizat    .95869        .21803        .27488E-03   -.94427    
  23  Prefactor     .99650        .15636        .20404E-03   -.92846    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.40878e-09
Minuit parameter uncertainties:
  1  0.00138766
  2  2.39293e-05
  3  3.64003e-05
  4  6.0225e-06
  5  5.73733e-06
  6  9.05767
  7  1.08188e-06
  8  9.6335e-06
  9  42.7643
  10  0.00687763
  11  1.75757
  12  0.695948
  13  31.7096
  14  1.35698e-05
  15  2.91
  16  0.00394317
  17  7.89488e-06
  18  5.72828
  19  3.07487
  20  58.7671
  21  3.97077
  22  0.218229
  23  0.156431
Done.

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

Extracting fit parameters...

4FGL J0809.3+4053
   Spectrum: PowerLaw
269    Prefactor:  1.018e-04  6.878e-03  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:  9.965e-01  1.564e-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:  9.587e-01  2.182e-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.86e-08 ph cm-2 s-1
Energy Flux Upper Limit: 7.71e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/228143/likelihoodResults_369705601_369964801_4FGL_J0809.3+4053_daily_bin503.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) = 6329.71050748
delta logL = -6.44321153231e-05

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 6329.71050744
delta logL = -6.43975708954e-05

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .96329E-02   1.0000         .10000E-03   10000.    
     2 'Index     '    2.5881       1.0000          .0000       10.000    
     3 'Normalizat'    .95860       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .99654       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=   6329.710     FROM MIGRAD    STATUS=CONVERGED     66 CALLS      234 TOTAL
                     EDM=   .13E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10103E-03    47.868        .75854E-01** at limit **
   2  Index         2.4732        8.7605        .23237        .20019E-04
   3  Normalizat    .95869        .19749E-01    .45646E-01    .34372E-03
   4  Prefactor     .99650        .14917E-01    .46224E-01    .36074E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000101027
  Index      = 2.47323
  Normalizat = 0.958694
  Prefactor  = 0.996502
 **********
 **   18 **HESSE 
 **********

 FCN=   6329.710     FROM HESSE     STATUS=NOT POSDEF    33 CALLS      267 TOTAL
                     EDM=   .14E-06    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10103E-03    829.85        .42684E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.4732        7.5825        .92948E-02   -.52979    
   3  Normalizat    .95869        .10294        .27488E-03   -.94427    
   4  Prefactor     .99650        .65074E-01    .20404E-03   -.92846    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 1.35718e-07
Minuit parameter uncertainties:
  1  0.0592281
  2  49.5344
  3  0.102961
  4  0.0650791
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/228143': 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) = 6329.71044259
delta logL = 4.54421751783e-07

Extracting fit parameters...

4FGL J0809.3+4053
   Spectrum: PowerLaw
269    Prefactor:  1.010e-04  5.923e-02  1.000e-04  1.000e+04 ( 1.000e-12)
270        Index:  2.473e+00  4.953e+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:  9.965e-01  6.508e-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:  9.587e-01  1.030e-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/228143/cmap_HighResolution_369705601_369964801_4FGL_J0809.3+4053_daily_bin503.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='7.71e-03', job_status='DONE', photon_flux_upper_limit='9.86e-08', time_completed='2021-08-29 07:55:56.471962', job_id='228143', GAL2='1.00', fit_tolerance='1e-08', EG2='0.96', EG='0.96', time_epoch_completed='1630248956.47', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.00', dlogl='4.54e-07', ts2='-0.00', photon_index_error='0.00', photon_index='2.59' WHERE bin_id='503' AND source_name='4FGL J0809.3+4053' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Aug 29 07:55:56 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0226>
Subject: Job 228143: <4FGL_J0809.3+4053_daily_bin503> in cluster <slac> Done

Job <4FGL_J0809.3+4053_daily_bin503> was submitted from host <rhel6-64m> by user <kocevski> in cluster <slac> at Sun Aug 29 07:40:50 2021
Job was executed on host(s) <bullet0226>, in queue <medium>, as user <kocevski> in cluster <slac> at Sun Aug 29 07:40:52 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:40:52 2021
Terminated at Sun Aug 29 07:55:57 2021
Results reported at Sun Aug 29 07:55:57 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0809.3+4053_daily_bin503 122.33 40.8954 369705601 369964801 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 :                                   736.34 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             268.50 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   904 sec.
    Turnaround time :                            907 sec.

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

