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


Performing analysis on: 4FGL_J0809.3+4053_daily_bin658
RA = 122.33, Dec = 40.8954
tmin = 409881601, tmax = 410140801
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='229410', job_status='RUN', time_executed='2021-08-29 07:47:39.396524', time_epoch_executed='1630248459.4' WHERE source_name='4FGL J0809.3+4053' and cadence='daily' and bin_id='658'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/229410

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/229410/ft1_4FGL_J0809.3+4053_daily_bin658.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/229410/ft2_4FGL_J0809.3+4053_daily_bin658.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/229410/ft1_4FGL_J0809.3+4053_daily_bin658.fits outfile=/scratch/kocevski/229410/ft1_filteredMKT_4FGL_J0809.3+4053_daily_bin658.fits ra=122.33 dec=40.8954 rad=12.0 tmin=409881601.0 tmax=410140801.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 6.41
user 5.92
sys 0.46

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

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

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/229410/ft1_filtered_4FGL_J0809.3+4053_daily_bin658.fits" evtable="EVENTS" scfile=/scratch/kocevski/229410/ft2_4FGL_J0809.3+4053_daily_bin658.fits sctable="SC_DATA" outfile=/scratch/kocevski/229410/ltcube_409881601_410140801_4FGL_J0809.3+4053_daily_bin658.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/229410/ft2_4FGL_J0809.3+4053_daily_bin658.fits
.....................!
real 12.41
user 11.73
sys 0.63

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/229410/ft1_filtered_4FGL_J0809.3+4053_daily_bin658.fits evtable="EVENTS" scfile=/scratch/kocevski/229410/ft2_4FGL_J0809.3+4053_daily_bin658.fits sctable="SC_DATA" expcube=/scratch/kocevski/229410/ltcube_409881601_410140801_4FGL_J0809.3+4053_daily_bin658.fits outfile=/scratch/kocevski/229410/expmap_409881601_410140801_4FGL_J0809.3+4053_daily_bin658.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/229410/ltcube_409881601_410140801_4FGL_J0809.3+4053_daily_bin658.fits
.....................!
real 189.92
user 185.11
sys 4.44

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/229410/ft1_filtered_4FGL_J0809.3+4053_daily_bin658.fits scfile=/scratch/kocevski/229410/ft2_4FGL_J0809.3+4053_daily_bin658.fits outfile=/scratch/kocevski/229410/cmap_409881601_410140801_4FGL_J0809.3+4053_daily_bin658.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.80
user 0.37
sys 0.41

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/229410/ft1_filtered_4FGL_J0809.3+4053_daily_bin658.fits scfile=/scratch/kocevski/229410/ft2_4FGL_J0809.3+4053_daily_bin658.fits outfile=/scratch/kocevski/229410/cmap_HighResolution_409881601_410140801_4FGL_J0809.3+4053_daily_bin658.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.78
user 0.38
sys 0.40

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    12.327       1.0000         .10000E-03   10000.    
     2 'Prefactor '    4.8851       1.0000         .10000E-03   10000.    
     3 'Prefactor '    5.8734       1.0000         .10000E-03   10000.    
     4 'Prefactor '    6.3350       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10031E-03   1.0000         .10000E-03   10000.    
     6 'norm      '    31.260       1.0000         .10000E-03   10000.    
     7 'norm      '    .10565E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10021E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    18.528       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    3.1115       1.0000         .10000E-03   10000.    
    12 'norm      '    .50253       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10008E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    1.2085       1.0000         .10000E-03   10000.    
    18 'norm      '    4.7519       1.0000         .10000E-03   10000.    
    19 'Prefactor '    1.1833       1.0000         .10000E-03   10000.    
    20 'Prefactor '    39.091       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .34132       1.0000         .10000E-03   10000.    
    22 'Normalizat'    1.1875       1.0000         .10000E-01   10.000    
    23 'Prefactor '    .74788       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=   6578.890     FROM MIGRAD    STATUS=CONVERGED    510 CALLS     2554 TOTAL
                     EDM=   .56E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.9%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          12.327        9.1778        .56856E-07   -.22732E-04
   2  Prefactor     4.8850        6.1589        .11084E-06    .35576E-05
   3  Prefactor     5.8643        47.242       -.27810E-04   -.81437E-05
   4  Prefactor     6.3375        12.381        .33143E-05    .11006E-03
   5  Prefactor     .10000E-03    21.161        .13750E-06** at limit **
   6  norm          31.259        15.181       -.54128E-06    .15535E-04
   7  norm          .10000E-03    1.6503       -.10248E-06** at limit **
   8  Prefactor     .10000E-03    3.7496        .13145E-06** at limit **
   9  Prefactor     18.523        23.071       -.48237E-05    .72136E-05
  10  Prefactor     .10000E-03    1.2662        .19608E-07** at limit **
  11  norm          3.1114        1.8718       -.26942E-07    .40114E-04
  12  norm          .50252        .49204       -.28435E-07    .36149E-04
  13  Prefactor     .10000E-03    26.920       -.56354E-06** at limit **
  14  Prefactor     .10000E-03    4.9524       -.12283E-07** at limit **
  15  Prefactor     .10000E-03    1.5581       -.19164E-07** at limit **
  16  Prefactor     .10000E-03    7.2444       -.44117E-06** at limit **
  17  Prefactor     1.2107        .95092        .83339E-07   -.57512E-03
  18  norm          4.7517        4.2486       -.22231E-06    .26032E-04
  19  Prefactor     1.1835        1.7897       -.44686E-07    .57816E-04
  20  Prefactor     39.088        68.867       -.50368E-05    .69466E-04
  21  Prefactor     .35543        2.5654       -.10443E-05    .10060E-02
  22  Normalizat    1.1877        .17420        .15399E-05    .12885E-03
  23  Prefactor     .74774        .12705        .27238E-06    .18350E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 12.3273
  Prefactor  = 4.88503
  Prefactor  = 5.8643
  Prefactor  = 6.33754
  Prefactor  = 0.0001
  norm       = 31.2589
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 18.5231
  Prefactor  = 0.0001
  norm       = 3.11144
  norm       = 0.502524
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 1.21066
  norm       = 4.75172
  Prefactor  = 1.18345
  Prefactor  = 39.0882
  Prefactor  = 0.35543
  Normalizat = 1.1877
  Prefactor  = 0.747741
 **********
 **   18 **HESSE 
 **********

 FCN=   6578.890     FROM HESSE     STATUS=OK           378 CALLS     2932 TOTAL
                     EDM=   .63E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          12.327        9.2129        .57047E-03   -1.5006    
   2  Prefactor     4.8850        6.1564        .18199E-03   -1.5266    
   3  Prefactor     5.8643        47.449        .16571E-03   -1.5224    
   4  Prefactor     6.3375        12.353        .15948E-03   -1.5204    
   5  Prefactor     .10000E-03    21.426        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          31.259        15.201        .71664E-04   -1.4589    
   7  norm          .10000E-03    1.7092        .20259E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    3.7984        .15333E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     18.523        23.039        .93048E-04   -1.4847    
  10  Prefactor     .10000E-03    1.2754        .89087E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          3.1114        1.8706        .83583E-04   -1.5355    
  12  norm          .50252        .46158        .53942E-03   -1.5566    
  13  Prefactor     .10000E-03    27.145        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    4.9665        .17625E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    1.5956        .19751E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    7.2489        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     1.2107        14.428        .20593E-02   -1.5488    
  18  norm          4.7517        4.2505        .15339E-03   -1.5272    
  19  Prefactor     1.1835        1.7483        .12905E-03   -1.5490    
  20  Prefactor     39.088        68.090        .64107E-04   -1.4457    
  21  Prefactor     .35543        9.6594        .23429E-02   -1.5589    
  22  Normalizat    1.1877        .20209        .24378E-03   -.86984    
  23  Prefactor     .74774        .14702        .22241E-03   -1.0168    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 6.26103e-09
Minuit parameter uncertainties:
  1  9.214
  2  6.15716
  3  33.3981
  4  12.3583
  5  2.86048e-05
  6  15.2024
  7  1.30072e-05
  8  1.29111e-05
  9  23.0503
  10  5.96631e-07
  11  1.87061
  12  0.461581
  13  3.60708e-05
  14  4.58434e-06
  15  5.31681e-06
  16  3.12286e-06
  17  8.36086
  18  4.25078
  19  1.74841
  20  68.2256
  21  3.70594
  22  0.202219
  23  0.147098
Done.

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

Extracting fit parameters...

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

GAL_V02
   Spectrum: PowerLaw
599    Prefactor:  7.477e-01  1.471e-01  0.000e+00  1.000e+01 ( 1.000e+00)
600        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
601        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
598   Normalization:  1.188e+00  2.022e-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: 4.94e-08 ph cm-2 s-1
Energy Flux Upper Limit: 3.86e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/229410/likelihoodResults_409881601_410140801_4FGL_J0809.3+4053_daily_bin658.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) = 6578.89366779
delta logL = -0.00368969651481

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 6578.88997781
delta logL = 2.79988853435e-07

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10009E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.5731       1.0000          .0000       10.000    
     3 'Normalizat'    1.1877       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .74777       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.

 FCN=   6578.890     FROM MIGRAD    STATUS=CONVERGED    101 CALLS      252 TOTAL
                     EDM=   .22E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    11.525        .89925E-02** at limit **
   2  Index         2.0779        5.1635        .50000        .28581E-06
   3  Normalizat    1.1877        .12302E-01    .24378E-03   -.31213E-03
   4  Prefactor     .74774        .91650E-02    .22241E-03   -.33275E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Index      = 2.0779
  Normalizat = 1.1877
  Prefactor  = 0.74774
 **********
 **   18 **HESSE 
 **********

 FCN=   6578.890     FROM HESSE     STATUS=NOT POSDEF    29 CALLS      281 TOTAL
                     EDM=   .21E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    111.68        .97528E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.0779        5.7515        .50000       -.62416    
   3  Normalizat    1.1877        .41608E-01    .48755E-04   -.86984    
   4  Prefactor     .74774        .30998E-01    .44482E-04   -1.0168    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 2.14869e-09
Minuit parameter uncertainties:
  1  3.81891e-06
  2  635.948
  3  0.0416093
  4  0.0309988
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/229410': 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) = 6578.88997177
delta logL = 6.3214038164e-06

Extracting fit parameters...

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

GAL_V02
   Spectrum: PowerLaw
599    Prefactor:  7.477e-01  3.100e-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:  1.188e+00  4.161e-02  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 -2.500e-04 [aplpy.core]
INFO: Auto-setting vmax to  2.775e-03 [aplpy.core]
Saving /scratch/kocevski/229410/cmap_HighResolution_409881601_410140801_4FGL_J0809.3+4053_daily_bin658.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='3.86e-03', job_status='DONE', photon_flux_upper_limit='4.94e-08', time_completed='2021-08-29 07:59:47.190296', job_id='229410', GAL2='0.75', fit_tolerance='1e-08', EG2='1.19', EG='1.19', time_epoch_completed='1630249187.19', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.75', dlogl='6.32e-06', ts2='-0.00', photon_index_error='0.00', photon_index='2.59' WHERE bin_id='658' AND source_name='4FGL J0809.3+4053' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Aug 29 07:59:47 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0268>
Subject: Job 229410: <4FGL_J0809.3+4053_daily_bin658> in cluster <slac> Done

Job <4FGL_J0809.3+4053_daily_bin658> was submitted from host <rhel6-64c> by user <kocevski> in cluster <slac> at Sun Aug 29 07:45:25 2021
Job was executed on host(s) <bullet0268>, in queue <medium>, as user <kocevski> in cluster <slac> at Sun Aug 29 07:45:27 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:45:27 2021
Terminated at Sun Aug 29 07:59:47 2021
Results reported at Sun Aug 29 07:59:47 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0809.3+4053_daily_bin658 122.33 40.8954 409881601 410140801 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 :                                   730.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             295.58 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   860 sec.
    Turnaround time :                            862 sec.

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

