/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 114 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 = 7353
number of fields = 22
No RA_SUN column yet. Adding RA_SUN/DEC_SUN columns.
Done.


Performing analysis on: 4FGL_J0809.3+4053_daily_bin41
RA = 122.33, Dec = 40.8954
tmin = 249955201, tmax = 250214401
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='225249', job_status='RUN', time_executed='2021-08-29 07:33:01.849869', time_epoch_executed='1630247581.85' WHERE source_name='4FGL J0809.3+4053' and cadence='daily' and bin_id='41'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/225249

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/225249/ft1_4FGL_J0809.3+4053_daily_bin41.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/225249/ft2_4FGL_J0809.3+4053_daily_bin41.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/225249/ft1_4FGL_J0809.3+4053_daily_bin41.fits outfile=/scratch/kocevski/225249/ft1_filteredMKT_4FGL_J0809.3+4053_daily_bin41.fits ra=122.33 dec=40.8954 rad=12.0 tmin=249955201.0 tmax=250214401.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 1.84
user 1.26
sys 0.55

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

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

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/225249/ft1_filtered_4FGL_J0809.3+4053_daily_bin41.fits" evtable="EVENTS" scfile=/scratch/kocevski/225249/ft2_4FGL_J0809.3+4053_daily_bin41.fits sctable="SC_DATA" outfile=/scratch/kocevski/225249/ltcube_249955201_250214401_4FGL_J0809.3+4053_daily_bin41.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/225249/ft2_4FGL_J0809.3+4053_daily_bin41.fits
.....................!
real 14.33
user 13.54
sys 0.75

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/225249/ft1_filtered_4FGL_J0809.3+4053_daily_bin41.fits evtable="EVENTS" scfile=/scratch/kocevski/225249/ft2_4FGL_J0809.3+4053_daily_bin41.fits sctable="SC_DATA" expcube=/scratch/kocevski/225249/ltcube_249955201_250214401_4FGL_J0809.3+4053_daily_bin41.fits outfile=/scratch/kocevski/225249/expmap_249955201_250214401_4FGL_J0809.3+4053_daily_bin41.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/225249/ltcube_249955201_250214401_4FGL_J0809.3+4053_daily_bin41.fits
.....................!
real 191.83
user 186.23
sys 5.03

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/225249/ft1_filtered_4FGL_J0809.3+4053_daily_bin41.fits scfile=/scratch/kocevski/225249/ft2_4FGL_J0809.3+4053_daily_bin41.fits outfile=/scratch/kocevski/225249/cmap_249955201_250214401_4FGL_J0809.3+4053_daily_bin41.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.90
user 0.36
sys 0.51

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/225249/ft1_filtered_4FGL_J0809.3+4053_daily_bin41.fits scfile=/scratch/kocevski/225249/ft2_4FGL_J0809.3+4053_daily_bin41.fits outfile=/scratch/kocevski/225249/cmap_HighResolution_249955201_250214401_4FGL_J0809.3+4053_daily_bin41.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.86
user 0.36
sys 0.49

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    8.6826       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    8.3512       1.0000         .10000E-03   10000.    
     5 'Prefactor '    8.7377       1.0000         .10000E-03   10000.    
     6 'norm      '    4.2029       1.0000         .10000E-03   10000.    
     7 'norm      '    .10006E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10557E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    12.325       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10013E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    .52304       1.0000         .10000E-03   10000.    
    12 'norm      '    1.8139       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    5.3003       1.0000         .10000E-03   10000.    
    15 'Prefactor '    3.3163       1.0000         .10000E-03   10000.    
    16 'Prefactor '    22.012       1.0000         .10000E-03   10000.    
    17 'Prefactor '    1.0152       1.0000         .10000E-03   10000.    
    18 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    4.5443       1.0000         .10000E-03   10000.    
    20 'Prefactor '    42.696       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    22 'Normalizat'    .93070       1.0000         .10000E-01   10.000    
    23 'Prefactor '    1.0770       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=   5544.688     FROM MIGRAD    STATUS=CONVERGED    513 CALLS     2280 TOTAL
                     EDM=   .32E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.9%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          8.6822        7.8991        .12570E-06   -.49506E-04
   2  Prefactor     .10000E-03    12.164        .45353E-06** at limit **
   3  Prefactor     .10000E-03    16.648       -.23502E-06** at limit **
   4  Prefactor     8.3520        12.243       -.73563E-06   -.43872E-05
   5  Prefactor     8.7393        21.815        .30547E-05    .12155E-05
   6  norm          4.1989        14.935        .79091E-05   -.98872E-05
   7  norm          .10000E-03    1.4561        .79423E-07** at limit **
   8  Prefactor     .10000E-03    7.7644        .62914E-06** at limit **
   9  Prefactor     12.313        57.838       -.25765E-04   -.29712E-04
  10  Prefactor     .10000E-03    4.6404        .97019E-06** at limit **
  11  norm          .52312        1.7292        .10890E-06    .11155E-04
  12  norm          1.8141        .80589        .18758E-06   -.62033E-03
  13  Prefactor     .10000E-03    119.91       -.93416E-06** at limit **
  14  Prefactor     5.3090        26.774       -.87234E-05   -.10579E-03
  15  Prefactor     3.3145        4.3318        .84615E-06   -.64121E-04
  16  Prefactor     22.022        37.357        .64547E-05   -.10177E-04
  17  Prefactor     1.0111        1.7370       -.15475E-07   -.34796E-03
  18  norm          .10000E-03    3.1527       -.37605E-08** at limit **
  19  Prefactor     4.5444        3.8994        .10931E-06   -.12668E-03
  20  Prefactor     42.696        41.753       -.11411E-06   -.10475E-06
  21  Prefactor     .10000E-03    3.2215       -.17319E-07** at limit **
  22  Normalizat    .93070        .21084        .95095E-06   -.18154E-03
  23  Prefactor     1.0770        .15252       -.86933E-06   -.76223E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 8.68216
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 8.35204
  Prefactor  = 8.73932
  norm       = 4.19885
  norm       = 0.0001
  Prefactor  = 0.000100001
  Prefactor  = 12.3125
  Prefactor  = 0.000100004
  norm       = 0.523117
  norm       = 1.81414
  Prefactor  = 0.0001
  Prefactor  = 5.30904
  Prefactor  = 3.31453
  Prefactor  = 22.0221
  Prefactor  = 1.01113
  norm       = 0.0001
  Prefactor  = 4.54437
  Prefactor  = 42.6957
  Prefactor  = 0.0001
  Normalizat = 0.930704
  Prefactor  = 1.077
 **********
 **   18 **HESSE 
 **********

 FCN=   5544.688     FROM HESSE     STATUS=OK           376 CALLS     2656 TOTAL
                     EDM=   .16E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          8.6822        7.9178        .68017E-03   -1.5119    
   2  Prefactor     .10000E-03    12.261        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    16.664        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     8.3520        12.225        .13872E-03   -1.5130    
   5  Prefactor     8.7393        21.765        .13560E-03   -1.5117    
   6  norm          4.1989        14.880        .19657E-03   -1.5298    
   7  norm          .10000E-03    1.4680        .87693E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    7.8597        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     12.313        57.573        .11410E-03   -1.5006    
  10  Prefactor     .10000E-03    10.939        .29895E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          .52312        1.6930        .17282E-03   -1.5563    
  12  norm          1.8141        .79927        .40424E-04   -1.5439    
  13  Prefactor     .10000E-03    122.16        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     5.3090        25.525        .17458E-03   -1.5247    
  15  Prefactor     3.3145        4.2460        .14435E-03   -1.5344    
  16  Prefactor     22.022        38.710        .85373E-04   -1.4769    
  17  Prefactor     1.0111        22.772        .25933E-02   -1.5507    
  18  norm          .10000E-03    3.1607        .12911E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     4.5444        3.9125        .65457E-03   -1.5282    
  20  Prefactor     42.696        41.766        .61352E-04   -1.4400    
  21  Prefactor     .10000E-03    3.2810        .13043E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Normalizat    .93070        .24209        .29047E-03   -.95389    
  23  Prefactor     1.0770        .17560        .20586E-03   -.90205    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.57257e-09
Minuit parameter uncertainties:
  1  7.9188
  2  2.05608e-05
  3  1.30898e-05
  4  12.2282
  5  21.7851
  6  14.8928
  7  8.63133e-06
  8  0.000172609
  9  53.3333
  10  0.000419782
  11  1.69311
  12  0.799277
  13  0.000201973
  14  23.2981
  15  4.24642
  16  38.7545
  17  9.60055
  18  2.67015e-07
  19  3.91274
  20  41.795
  21  2.876e-06
  22  0.242373
  23  0.175691
Done.

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

Extracting fit parameters...

4FGL J0809.3+4053
   Spectrum: PowerLaw
269    Prefactor:  1.000e-04  4.198e-04  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.077e+00  1.757e-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.307e-01  2.424e-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: 1.09e-07 ph cm-2 s-1
Energy Flux Upper Limit: 8.50e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/225249/likelihoodResults_249955201_250214401_4FGL_J0809.3+4053_daily_bin41.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) = 5544.68858085
delta logL = -0.000434342927292

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 5544.68814953
delta logL = -3.01973614114e-06

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .50054E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.6994       1.0000          .0000       10.000    
     3 'Normalizat'    .93049       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0772       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=   5543.532     FROM MIGRAD    STATUS=CONVERGED    180 CALLS      355 TOTAL
                     EDM=   .12E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .75293E-01    2.0149        .32635E-02   -.41037E-02
   2  Index         5.8870        7.3207        .13955        .14703E-03
   3  Normalizat    .81163        .19906        .69669E-01    .24026E-04
   4  Prefactor     1.1320        .11067        .38527E-01   -.12985E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.075293
  Index      = 5.88704
  Normalizat = 0.811627
  Prefactor  = 1.132
 **********
 **   18 **HESSE 
 **********

 FCN=   5543.532     FROM HESSE     STATUS=NOT POSDEF    31 CALLS      386 TOTAL
                     EDM=   .34E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .75293E-01    2.0441        .14742E-04   -1.5763    
   2  Index         5.8870        7.6133        .52457E-02    .17835    
   3  Normalizat    .81163        .21335        .30825E-03   -.99639    
   4  Prefactor     1.1320        .15816        .20126E-03   -.88450    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 3.39056e-10
Minuit parameter uncertainties:
  1  0.784119
  2  6.04898
  3  0.213567
  4  0.158224
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/225249': 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) = 5543.53213787
delta logL = 1.15600863933

Extracting fit parameters...

4FGL J0809.3+4053
   Spectrum: PowerLaw
269    Prefactor:  7.529e-02  7.841e-01  1.000e-04  1.000e+04 ( 1.000e-12)
270        Index:  5.887e+00  6.049e+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.132e+00  1.582e-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.116e-01  2.136e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 2.54
Ra Dec: 122.330 40.895
Photon Index (Free Index): 5.89 +/- 6.05
Photon Flux (Free Index): 1.03e-07 +/- 2.10e-06
Energy Flux (Free Index): 1.29e-05 +/- 2.60e-04

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/225249/cmap_HighResolution_249955201_250214401_4FGL_J0809.3+4053_daily_bin41.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='8.50e-03', comment='SUCCESS', energy_flux2='1.29e-05', dlogl='1.16e+00', photon_flux2='1.03e-07', job_status='DONE', time_completed='2021-08-29 07:43:37.004764', photon_index_error2='6.05', photon_index2='5.89', ts='-0.00', fit_tolerance='1e-08', GAL='1.08', photon_index_error='0.00', photon_flux_upper_limit='1.09e-07', energy_flux_error2='2.60e-04', EG='0.93', time_epoch_completed='1630248217.0', return_code='0', job_id='225249', GAL2='1.13', EG2='0.81', return_code2='102', photon_flux_error2='2.10e-06', ts2='2.54', photon_index='2.59' WHERE bin_id='41' AND source_name='4FGL J0809.3+4053' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Aug 29 07:43:37 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0262>
Subject: Job 225249: <4FGL_J0809.3+4053_daily_bin41> in cluster <slac> Done

Job <4FGL_J0809.3+4053_daily_bin41> was submitted from host <rhel6-64l> by user <kocevski> in cluster <slac> at Sun Aug 29 07:30:47 2021
Job was executed on host(s) <bullet0262>, in queue <medium>, as user <kocevski> in cluster <slac> at Sun Aug 29 07:30:49 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:30:49 2021
Terminated at Sun Aug 29 07:43:37 2021
Results reported at Sun Aug 29 07:43:37 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0809.3+4053_daily_bin41 122.33 40.8954 249955201 250214401 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 :                                   640.01 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             295.56 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   768 sec.
    Turnaround time :                            770 sec.

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

