/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 119 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 = 7474
number of fields = 27
No RA_SUN column yet. Adding RA_SUN/DEC_SUN columns.
Done.


Performing analysis on: 4FGL_J0809.3+4053_daily_bin315
RA = 122.33, Dec = 40.8954
tmin = 320976001, tmax = 321235201
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='226743', job_status='RUN', time_executed='2021-08-29 07:38:11.672671', time_epoch_executed='1630247891.67' WHERE source_name='4FGL J0809.3+4053' and cadence='daily' and bin_id='315'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/226743

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/226743/ft1_4FGL_J0809.3+4053_daily_bin315.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/226743/ft2_4FGL_J0809.3+4053_daily_bin315.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/226743/ft1_4FGL_J0809.3+4053_daily_bin315.fits outfile=/scratch/kocevski/226743/ft1_filteredMKT_4FGL_J0809.3+4053_daily_bin315.fits ra=122.33 dec=40.8954 rad=12.0 tmin=320976001.0 tmax=321235201.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 4.26
user 3.22
sys 0.89

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/226743/ft2_4FGL_J0809.3+4053_daily_bin315.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/226743/ft1_filteredMKT_4FGL_J0809.3+4053_daily_bin315.fits evtable="EVENTS" outfile="/scratch/kocevski/226743/ft1_filtered_4FGL_J0809.3+4053_daily_bin315.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.17
user 0.34
sys 0.79

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/226743/ft1_filtered_4FGL_J0809.3+4053_daily_bin315.fits" evtable="EVENTS" scfile=/scratch/kocevski/226743/ft2_4FGL_J0809.3+4053_daily_bin315.fits sctable="SC_DATA" outfile=/scratch/kocevski/226743/ltcube_320976001_321235201_4FGL_J0809.3+4053_daily_bin315.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/226743/ft2_4FGL_J0809.3+4053_daily_bin315.fits
.....................!
real 12.81
user 11.57
sys 1.12

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/226743/ft1_filtered_4FGL_J0809.3+4053_daily_bin315.fits evtable="EVENTS" scfile=/scratch/kocevski/226743/ft2_4FGL_J0809.3+4053_daily_bin315.fits sctable="SC_DATA" expcube=/scratch/kocevski/226743/ltcube_320976001_321235201_4FGL_J0809.3+4053_daily_bin315.fits outfile=/scratch/kocevski/226743/expmap_320976001_321235201_4FGL_J0809.3+4053_daily_bin315.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/226743/ltcube_320976001_321235201_4FGL_J0809.3+4053_daily_bin315.fits
.....................!
real 191.60
user 185.67
sys 5.41

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/226743/ft1_filtered_4FGL_J0809.3+4053_daily_bin315.fits scfile=/scratch/kocevski/226743/ft2_4FGL_J0809.3+4053_daily_bin315.fits outfile=/scratch/kocevski/226743/cmap_320976001_321235201_4FGL_J0809.3+4053_daily_bin315.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.24
user 0.37
sys 0.78

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/226743/ft1_filtered_4FGL_J0809.3+4053_daily_bin315.fits scfile=/scratch/kocevski/226743/ft2_4FGL_J0809.3+4053_daily_bin315.fits outfile=/scratch/kocevski/226743/cmap_HighResolution_320976001_321235201_4FGL_J0809.3+4053_daily_bin315.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.18
user 0.39
sys 0.77

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .43637       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .17009E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    21.860       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     6 'norm      '    6.8889       1.0000         .10000E-03   10000.    
     7 'norm      '    3.4667       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .95617       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .20731E-02   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .22496E-02   1.0000         .10000E-03   10000.    
    11 'norm      '    7.3756       1.0000         .10000E-03   10000.    
    12 'norm      '    .21555E-01   1.0000         .10000E-03   10000.    
    13 'Prefactor '    27.404       1.0000         .10000E-03   10000.    
    14 'Prefactor '    14.590       1.0000         .10000E-03   10000.    
    15 'Prefactor '    5.2459       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10103E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    12.537       1.0000         .10000E-03   10000.    
    18 'norm      '    4.4216       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10110E-02   1.0000         .10000E-03   10000.    
    20 'Prefactor '    10.164       1.0000         .10000E-03   10000.    
    21 'Prefactor '    2.5750       1.0000         .10000E-03   10000.    
    22 'Normalizat'    .72210       1.0000         .10000E-01   10.000    
    23 'Prefactor '    1.1375       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=   7562.745     FROM MIGRAD    STATUS=CONVERGED    567 CALLS     2682 TOTAL
                     EDM=   .44E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.0%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .43006        5.4499       -.10892E-06   -.39756E-03
   2  Prefactor     .10000E-03    5.1174        .16493E-06** at limit **
   3  Prefactor     21.866        24.430       -.51979E-05   -.63549E-05
   4  Prefactor     .10000E-03    2.9272        .68392E-07** at limit **
   5  Prefactor     .10000E-03    5.4357        .32118E-07** at limit **
   6  norm          6.8846        9.9388        .57930E-06   -.10767E-03
   7  norm          3.4679        2.4755        .81822E-07   -.19273E-03
   8  Prefactor     .93462        5.7392       -.56340E-06   -.12554E-03
   9  Prefactor     .10027E-03    38.202        .82091E-06** at limit **
  10  Prefactor     .10000E-03    2.3963        .24779E-06** at limit **
  11  norm          7.3755        2.4920        .54330E-07    .58630E-04
  12  norm          .21557E-01    .21316       -.28701E-06   -.12024E-02
  13  Prefactor     27.377        30.239        .86189E-05   -.72960E-05
  14  Prefactor     14.597        12.272        .62167E-06    .23926E-04
  15  Prefactor     5.2471        3.2955       -.92198E-07   -.25872E-03
  16  Prefactor     .10000E-03    9.6933        .70097E-07** at limit **
  17  Prefactor     12.541        8.8444       -.19426E-06    .28178E-05
  18  norm          4.4225        5.9010       -.23214E-06   -.35437E-03
  19  Prefactor     .10000E-03    1.2358        .69200E-07** at limit **
  20  Prefactor     10.198        43.493        .24217E-04   -.42430E-05
  21  Prefactor     2.5752        2.6767       -.26113E-06   -.17072E-03
  22  Normalizat    .72225        .18099       -.12246E-05   -.32040E-04
  23  Prefactor     1.1377        .13266       -.42211E-07   -.34827E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 0.43006
  Prefactor  = 0.0001
  Prefactor  = 21.8663
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 6.88463
  norm       = 3.46787
  Prefactor  = 0.934615
  Prefactor  = 0.000100266
  Prefactor  = 0.000100002
  norm       = 7.37554
  norm       = 0.0215569
  Prefactor  = 27.3767
  Prefactor  = 14.597
  Prefactor  = 5.24708
  Prefactor  = 0.0001
  Prefactor  = 12.5412
  norm       = 4.42252
  Prefactor  = 0.000100001
  Prefactor  = 10.1979
  Prefactor  = 2.5752
  Normalizat = 0.722251
  Prefactor  = 1.13765
 **********
 **   18 **HESSE 
 **********

 FCN=   7562.745     FROM HESSE     STATUS=OK           400 CALLS     3082 TOTAL
                     EDM=   .25E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .43006        24.299        .38525E-02   -1.5577    
   2  Prefactor     .10000E-03    24.650        .37939E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     21.866        24.391        .85670E-04   -1.4772    
   4  Prefactor     .10000E-03    2.9297        .14529E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    5.4450        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          6.8846        9.9191        .15286E-03   -1.5183    
   7  norm          3.4679        2.4698        .11149E-03   -1.5336    
   8  Prefactor     .93462        25.398        .34067E-02   -1.5515    
   9  Prefactor     .10027E-03    45.788        .13297       -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    41.830        .24480E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          7.3755        2.4917        .77466E-04   -1.5165    
  12  norm          .21557E-01    .65384        .77021E-03   -1.5679    
  13  Prefactor     27.377        30.029        .76529E-04   -1.4661    
  14  Prefactor     14.597        12.142        .10486E-03   -1.4944    
  15  Prefactor     5.2471        3.2779        .11332E-03   -1.5250    
  16  Prefactor     .10000E-03    9.7112        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     12.541        8.8451        .11313E-03   -1.5000    
  18  norm          4.4225        5.8668        .19152E-03   -1.5287    
  19  Prefactor     .10000E-03    18.743        .18550E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     10.198        42.781        .12569E-03   -1.5069    
  21  Prefactor     2.5752        2.6735        .14069E-03   -1.5387    
  22  Normalizat    .72225        .20285        .31680E-03   -1.0302    
  23  Prefactor     1.1377        .15301        .19556E-03   -.88272    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.48808e-08
Minuit parameter uncertainties:
  1  6.46734
  2  5.8731e-05
  3  24.4017
  4  8.02003e-06
  5  8.07672e-06
  6  9.92145
  7  2.46989
  8  9.74826
  9  0.00698135
  10  0.000612706
  11  2.49174
  12  0.236895
  13  30.0455
  14  12.1443
  15  3.27805
  16  6.14268e-06
  17  8.84602
  18  5.86752
  19  0.000283365
  20  41.8254
  21  2.67366
  22  0.203062
  23  0.153069
Done.

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

Extracting fit parameters...

4FGL J0809.3+4053
   Spectrum: PowerLaw
269    Prefactor:  1.000e-04  6.127e-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.138e+00  1.531e-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:  7.223e-01  2.031e-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.24e-08 ph cm-2 s-1
Energy Flux Upper Limit: 7.23e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/226743/likelihoodResults_320976001_321235201_4FGL_J0809.3+4053_daily_bin315.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) = 7562.74470006
delta logL = -0.000112993808216

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 7562.39146745
delta logL = 0.353119617068

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .58173       1.0000         .10000E-03   10000.    
     2 'Index     '    4.1249       1.0000          .0000       10.000    
     3 'Normalizat'    .66930       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.1597       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=   7562.391     FROM MIGRAD    STATUS=CONVERGED     55 CALLS      285 TOTAL
                     EDM=   .18E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .58341        10.031        .11600E-01    .17788E-02
   2  Index         4.1236        3.0444        .20470        .10530E-03
   3  Normalizat    .66960        .31280E-01    .74109E-01    .36246E-04
   4  Prefactor     1.1594        .23884E-01    .35661E-01   -.32129E-06
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.583407
  Index      = 4.12362
  Normalizat = 0.669601
  Prefactor  = 1.1594
 **********
 **   18 **HESSE 
 **********

 FCN=   7562.391     FROM HESSE     STATUS=NOT POSDEF    33 CALLS      318 TOTAL
                     EDM=   .79E-06    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .58341        42.756        .77966E-04   -1.5555    
   2  Index         4.1236        6.4657        .82062E-02   -.17619    
   3  Normalizat    .66960        .19663        .32806E-03   -1.0511    
   4  Prefactor     1.1594        .14839        .19391E-03   -.87590    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 7.87669e-07
Minuit parameter uncertainties:
  1  9.99534
  2  10.3361
  3  0.196833
  4  0.148446
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/226743': 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) = 7562.39146435
delta logL = 0.353122717474

Extracting fit parameters...

4FGL J0809.3+4053
   Spectrum: PowerLaw
269    Prefactor:  5.834e-01  9.995e+00  1.000e-04  1.000e+04 ( 1.000e-12)
270        Index:  4.124e+00  1.034e+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:  1.159e+00  1.484e-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:  6.696e-01  1.968e-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 -1.000e-01 [aplpy.core]
INFO: Auto-setting vmax to  1.110e+00 [aplpy.core]
Saving /scratch/kocevski/226743/cmap_HighResolution_320976001_321235201_4FGL_J0809.3+4053_daily_bin315.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='7.23e-03', job_status='DONE', photon_flux_upper_limit='9.24e-08', time_completed='2021-08-29 07:51:34.866364', job_id='226743', GAL2='1.16', fit_tolerance='1e-08', EG2='0.67', EG='0.72', time_epoch_completed='1630248694.87', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.14', dlogl='3.53e-01', ts2='0.76', photon_index_error='0.00', photon_index='2.59' WHERE bin_id='315' AND source_name='4FGL J0809.3+4053' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Aug 29 07:51:34 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0222>
Subject: Job 226743: <4FGL_J0809.3+4053_daily_bin315> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0809.3+4053_daily_bin315 122.33 40.8954 320976001 321235201 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 :                                   810.57 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             321.93 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   945 sec.
    Turnaround time :                            947 sec.

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

