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


Performing analysis on: 4FGL_J0809.3+4053_daily_bin186
RA = 122.33, Dec = 40.8954
tmin = 287539201, tmax = 287798401
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='226557', job_status='RUN', time_executed='2021-08-29 07:35:56.340822', time_epoch_executed='1630247756.34' WHERE source_name='4FGL J0809.3+4053' and cadence='daily' and bin_id='186'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/226557

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/226557/ft1_4FGL_J0809.3+4053_daily_bin186.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/226557/ft2_4FGL_J0809.3+4053_daily_bin186.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/226557/ft1_4FGL_J0809.3+4053_daily_bin186.fits outfile=/scratch/kocevski/226557/ft1_filteredMKT_4FGL_J0809.3+4053_daily_bin186.fits ra=122.33 dec=40.8954 rad=12.0 tmin=287539201.0 tmax=287798401.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.08
user 3.34
sys 0.71

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/226557/ft1_filtered_4FGL_J0809.3+4053_daily_bin186.fits" evtable="EVENTS" scfile=/scratch/kocevski/226557/ft2_4FGL_J0809.3+4053_daily_bin186.fits sctable="SC_DATA" outfile=/scratch/kocevski/226557/ltcube_287539201_287798401_4FGL_J0809.3+4053_daily_bin186.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/226557/ft2_4FGL_J0809.3+4053_daily_bin186.fits
.....................!
real 12.36
user 11.42
sys 0.90

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/226557/ft1_filtered_4FGL_J0809.3+4053_daily_bin186.fits evtable="EVENTS" scfile=/scratch/kocevski/226557/ft2_4FGL_J0809.3+4053_daily_bin186.fits sctable="SC_DATA" expcube=/scratch/kocevski/226557/ltcube_287539201_287798401_4FGL_J0809.3+4053_daily_bin186.fits outfile=/scratch/kocevski/226557/expmap_287539201_287798401_4FGL_J0809.3+4053_daily_bin186.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/226557/ltcube_287539201_287798401_4FGL_J0809.3+4053_daily_bin186.fits
.....................!
real 191.51
user 185.38
sys 5.43

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/226557/ft1_filtered_4FGL_J0809.3+4053_daily_bin186.fits scfile=/scratch/kocevski/226557/ft2_4FGL_J0809.3+4053_daily_bin186.fits outfile=/scratch/kocevski/226557/cmap_287539201_287798401_4FGL_J0809.3+4053_daily_bin186.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.12
user 0.36
sys 0.65

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/226557/ft1_filtered_4FGL_J0809.3+4053_daily_bin186.fits scfile=/scratch/kocevski/226557/ft2_4FGL_J0809.3+4053_daily_bin186.fits outfile=/scratch/kocevski/226557/cmap_HighResolution_287539201_287798401_4FGL_J0809.3+4053_daily_bin186.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.07
user 0.40
sys 0.65

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .86351       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    28.502       1.0000         .10000E-03   10000.    
     4 'Prefactor '    16.621       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10093E-03   1.0000         .10000E-03   10000.    
     6 'norm      '    .10031E-03   1.0000         .10000E-03   10000.    
     7 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    9.5802       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10017E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    2.0169       1.0000         .10000E-03   10000.    
    11 'norm      '    1.4149       1.0000         .10000E-03   10000.    
    12 'norm      '    1.8799       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10021E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    8.7411       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10187E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    5.7003       1.0000         .10000E-03   10000.    
    17 'Prefactor '    4.3288       1.0000         .10000E-03   10000.    
    18 'norm      '    3.9876       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10336E-01   1.0000         .10000E-03   10000.    
    22 'Normalizat'    1.0330       1.0000         .10000E-01   10.000    
    23 'Prefactor '    .98555       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=   7221.498     FROM MIGRAD    STATUS=CONVERGED    523 CALLS     2217 TOTAL
                     EDM=   .38E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.9%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .85472        8.1707        .25883E-05   -.40750E-03
   2  Prefactor     .10000E-03    4.1973       -.57015E-08** at limit **
   3  Prefactor     28.482        25.735        .25823E-05    .30261E-03
   4  Prefactor     16.617        11.572        .50914E-07    .70257E-04
   5  Prefactor     .10000E-03    22.947       -.12363E-05** at limit **
   6  norm          .10000E-03    6.5715        .15126E-07** at limit **
   7  norm          .10000E-03    .70496        .42786E-08** at limit **
   8  Prefactor     9.5783        8.7825       -.44576E-07   -.41433E-04
   9  Prefactor     .10000E-03    23.607        .10535E-05** at limit **
  10  Prefactor     2.0188        4.6874        .57782E-06   -.24788E-03
  11  norm          1.4148        1.2648        .97814E-08   -.34652E-05
  12  norm          1.8799        .68798       -.23108E-07   -.17138E-03
  13  Prefactor     .10000E-03    18.487        .49653E-07** at limit **
  14  Prefactor     8.7391        11.693        .39406E-06    .45127E-04
  15  Prefactor     .10000E-03    1.1996        .11462E-07** at limit **
  16  Prefactor     5.7014        17.788       -.87806E-06   -.55452E-04
  17  Prefactor     4.3299        6.8405        .10534E-05    .20219E-03
  18  norm          3.9878        4.5463        .10682E-06   -.71638E-04
  19  Prefactor     .10000E-03    1.6144        .89501E-08** at limit **
  20  Prefactor     .10000E-03    15.963        .46023E-07** at limit **
  21  Prefactor     .10013E-03    1.8165        .54931E-09** at limit **
  22  Normalizat    1.0328        .16820       -.17627E-06   -.40595E-04
  23  Prefactor     .98570        .12937       -.50490E-06   -.35104E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 0.854721
  Prefactor  = 0.0001
  Prefactor  = 28.482
  Prefactor  = 16.6173
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 9.57827
  Prefactor  = 0.0001
  Prefactor  = 2.01884
  norm       = 1.41477
  norm       = 1.87994
  Prefactor  = 0.0001
  Prefactor  = 8.73907
  Prefactor  = 0.0001
  Prefactor  = 5.70135
  Prefactor  = 4.32991
  norm       = 3.98783
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000100127
  Normalizat = 1.03278
  Prefactor  = 0.985698
 **********
 **   18 **HESSE 
 **********

 FCN=   7221.498     FROM HESSE     STATUS=OK           380 CALLS     2597 TOTAL
                     EDM=   .12E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .85472        11.717        .50698E-03   -1.5523    
   2  Prefactor     .10000E-03    4.2068        .17002E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     28.482        27.047        .75043E-04   -1.4640    
   4  Prefactor     16.617        11.568        .98241E-04   -1.4892    
   5  Prefactor     .10000E-03    23.263        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          .10000E-03    6.6471        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          .10000E-03    .70922        .69660E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     9.5783        8.7659        .12947E-03   -1.5089    
   9  Prefactor     .10000E-03    23.750        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     2.0188        4.7226        .26020E-03   -1.5424    
  11  norm          1.4148        1.2665        .88023E-04   -1.5470    
  12  norm          1.8799        .68383        .39499E-04   -1.5434    
  13  Prefactor     .10000E-03    18.564        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     8.7391        11.663        .13558E-03   -1.5117    
  15  Prefactor     .10000E-03    1.2210        .90721E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     5.7014        17.851        .16824E-03   -1.5230    
  17  Prefactor     4.3299        6.9006        .19361E-03   -1.5292    
  18  norm          3.9878        4.5454        .18788E-03   -1.5309    
  19  Prefactor     .10000E-03    1.6898        .21068E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    15.965        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10013E-03    4.0575        .38226E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Normalizat    1.0328        .19627        .26665E-03   -.91940    
  23  Prefactor     .98570        .15059        .21107E-03   -.93208    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.18507e-09
Minuit parameter uncertainties:
  1  6.33038
  2  1.03557e-06
  3  27.0583
  4  11.5694
  5  0.000171098
  6  4.62754e-06
  7  3.04781e-07
  8  8.76706
  9  0.000152101
  10  4.72349
  11  1.26651
  12  0.683837
  13  1.21672e-05
  14  11.6663
  15  5.47155e-07
  16  17.8676
  17  6.90188
  18  4.5458
  19  9.14913e-07
  20  6.44103e-06
  21  0.00143495
  22  0.196407
  23  0.150658
Done.

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

Extracting fit parameters...

4FGL J0809.3+4053
   Spectrum: PowerLaw
269    Prefactor:  2.019e+00  4.723e+00  1.000e-04  1.000e+04 ( 1.000e-12)
270        Index:  2.588e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
271        Scale:  6.589e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
599    Prefactor:  9.857e-01  1.507e-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.033e+00  1.964e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/226557/likelihoodResults_287539201_287798401_4FGL_J0809.3+4053_daily_bin186.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): 0
logL (Free Index) = 7221.44101544
delta logL = 0.0571575113518

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 7221.43144479
delta logL = 0.0667281671522

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    1.4889       1.0000         .10000E-03   10000.    
     2 'Index     '    3.1429       1.0000          .0000       10.000    
     3 'Normalizat'    1.0222       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .99038       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=   7221.431     FROM MIGRAD    STATUS=FAILED        90 CALLS      249 TOTAL
                     EDM=   .23E-07    STRATEGY= 1      ERR MATRIX APPROXIMATE

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     1.4875        5.2937        .17456E-03   -.28265E-04
   2  Index         3.1444        2.2133        .13212E-01    .30248E-03
   3  Normalizat    1.0220        .19349        .26766E-03   -.13027E-03
   4  Prefactor     .99049        .14821        .21059E-03   -.41838E-04
                               ERR DEF=  .500    
 START SIMPLEX MINIMIZATION.    CONVERGENCE WHEN EDM .LT.   .20E-04
 SIMPLEX MINIMIZATION HAS CONVERGED.

 FCN=   7221.431     FROM SIMPLEX   STATUS=UNCHANGED     78 CALLS      327 TOTAL
                     EDM=   .18E-04    STRATEGY= 1      ERR MATRIX APPROXIMATE

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     1.4875        5.2937        .19417E-03   -1.5464    
   2  Index         3.1444        2.2133        .19691E-02   -.38022    
   3  Normalizat    1.0220        .19349        .28996E-03   -.92296    
   4  Prefactor     .99049        .14821        .23069E-03   -.93047    
                               ERR DEF=  .500    

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   7221.431     FROM MIGRAD    STATUS=CONVERGED     28 CALLS      355 TOTAL
                     EDM=   .72E-13    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     1.4875        4.0783        .69825E-05   -.65126E-06
   2  Index         3.1444        1.7325        .26424E-02    .64966E-06
   3  Normalizat    1.0220        .19344        .10706E-04   -.84949E-07
   4  Prefactor     .99049        .14796        .84237E-05    .26992E-06
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 1.4875
  Index      = 3.14439
  Normalizat = 1.02203
  Prefactor  = 0.990492
 **********
 **   18 **HESSE 
 **********

 FCN=   7221.431     FROM HESSE     STATUS=OK            23 CALLS      378 TOTAL
                     EDM=   .11E-13    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     1.4875        3.9307        .13965E-05   -1.5464    
   2  Index         3.1444        1.6719        .10570E-03   -.38022    
   3  Normalizat    1.0220        .19335        .10706E-04   -.92296    
   4  Prefactor     .99049        .14785        .16847E-05   -.93047    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.14294e-14
Minuit parameter uncertainties:
  1  3.93136
  2  1.71035
  3  0.193483
  4  0.147912
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/226557': 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) = 7221.43144385
delta logL = 0.066729102221

Extracting fit parameters...

4FGL J0809.3+4053
   Spectrum: PowerLaw
269    Prefactor:  1.488e+00  3.931e+00  1.000e-04  1.000e+04 ( 1.000e-12)
270        Index:  3.144e+00  1.710e+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:  9.905e-01  1.479e-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.022e+00  1.935e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 0.22
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/226557/cmap_HighResolution_287539201_287798401_4FGL_J0809.3+4053_daily_bin186.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='8.18e-03', job_status='DONE', photon_flux_upper_limit='1.05e-07', time_completed='2021-08-29 07:48:36.676866', job_id='226557', GAL2='0.99', fit_tolerance='1e-08', EG2='1.02', EG='1.03', time_epoch_completed='1630248516.68', return_code2='0', ts='0.22', comment='SUCCESS', return_code='0', GAL='0.99', dlogl='6.67e-02', ts2='0.36', photon_index_error='0.00', photon_index='2.59' WHERE bin_id='186' AND source_name='4FGL J0809.3+4053' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Aug 29 07:48:36 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0224>
Subject: Job 226557: <4FGL_J0809.3+4053_daily_bin186> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0809.3+4053_daily_bin186 122.33 40.8954 287539201 287798401 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 :                                   762.24 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             334.04 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   780 sec.
    Turnaround time :                            782 sec.

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

