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


Performing analysis on: 4FGL_J0809.3+4053_daily_bin245
RA = 122.33, Dec = 40.8954
tmin = 302832001, tmax = 303091201
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='226642', job_status='RUN', time_executed='2021-08-29 07:38:38.685140', time_epoch_executed='1630247918.69' WHERE source_name='4FGL J0809.3+4053' and cadence='daily' and bin_id='245'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/226642

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/226642/ft1_4FGL_J0809.3+4053_daily_bin245.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/226642/ft2_4FGL_J0809.3+4053_daily_bin245.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/226642/ft1_4FGL_J0809.3+4053_daily_bin245.fits outfile=/scratch/kocevski/226642/ft1_filteredMKT_4FGL_J0809.3+4053_daily_bin245.fits ra=122.33 dec=40.8954 rad=12.0 tmin=302832001.0 tmax=303091201.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.89
user 3.29
sys 3.34

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/226642/ft2_4FGL_J0809.3+4053_daily_bin245.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/226642/ft1_filteredMKT_4FGL_J0809.3+4053_daily_bin245.fits evtable="EVENTS" outfile="/scratch/kocevski/226642/ft1_filtered_4FGL_J0809.3+4053_daily_bin245.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 3.70
user 0.32
sys 3.29

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/226642/ft1_filtered_4FGL_J0809.3+4053_daily_bin245.fits" evtable="EVENTS" scfile=/scratch/kocevski/226642/ft2_4FGL_J0809.3+4053_daily_bin245.fits sctable="SC_DATA" outfile=/scratch/kocevski/226642/ltcube_302832001_303091201_4FGL_J0809.3+4053_daily_bin245.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/226642/ft2_4FGL_J0809.3+4053_daily_bin245.fits
.....................!
real 15.80
user 11.32
sys 4.40

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/226642/ft1_filtered_4FGL_J0809.3+4053_daily_bin245.fits evtable="EVENTS" scfile=/scratch/kocevski/226642/ft2_4FGL_J0809.3+4053_daily_bin245.fits sctable="SC_DATA" expcube=/scratch/kocevski/226642/ltcube_302832001_303091201_4FGL_J0809.3+4053_daily_bin245.fits outfile=/scratch/kocevski/226642/expmap_302832001_303091201_4FGL_J0809.3+4053_daily_bin245.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/226642/ltcube_302832001_303091201_4FGL_J0809.3+4053_daily_bin245.fits
.....................!
real 193.86
user 185.20
sys 8.21

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/226642/ft1_filtered_4FGL_J0809.3+4053_daily_bin245.fits scfile=/scratch/kocevski/226642/ft2_4FGL_J0809.3+4053_daily_bin245.fits outfile=/scratch/kocevski/226642/cmap_302832001_303091201_4FGL_J0809.3+4053_daily_bin245.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 3.61
user 0.37
sys 3.22

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/226642/ft1_filtered_4FGL_J0809.3+4053_daily_bin245.fits scfile=/scratch/kocevski/226642/ft2_4FGL_J0809.3+4053_daily_bin245.fits outfile=/scratch/kocevski/226642/cmap_HighResolution_302832001_303091201_4FGL_J0809.3+4053_daily_bin245.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 3.63
user 0.38
sys 3.23

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .20008       1.0000         .10000E-03   10000.    
     2 'Prefactor '    11.467       1.0000         .10000E-03   10000.    
     3 'Prefactor '    19.387       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .11332E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10072E-03   1.0000         .10000E-03   10000.    
     6 'norm      '    .10131E-03   1.0000         .10000E-03   10000.    
     7 'norm      '    .10028E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10013E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .15347E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    2.7741       1.0000         .10000E-03   10000.    
    12 'norm      '    1.3075       1.0000         .10000E-03   10000.    
    13 'Prefactor '    14.307       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10065E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    2.3055       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10850E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    8.6195       1.0000         .10000E-03   10000.    
    18 'norm      '    .50377E-02   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    6.0440       1.0000         .10000E-03   10000.    
    22 'Normalizat'    .95004       1.0000         .10000E-01   10.000    
    23 'Prefactor '    1.2325       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=   7544.392     FROM MIGRAD    STATUS=CONVERGED    518 CALLS     2559 TOTAL
                     EDM=   .17E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .5%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .20020        3.3896       -.11360E-05   -.21649E-03
   2  Prefactor     11.469        12.506        .98834E-06   -.41905E-04
   3  Prefactor     19.418        34.367        .35639E-04    .10033E-04
   4  Prefactor     .10000E-03    6.2322       -.52516E-06** at limit **
   5  Prefactor     .10000E-03    18.774       -.83440E-05** at limit **
   6  norm          .10000E-03    9.6582        .46622E-05** at limit **
   7  norm          .10000E-03    .86839       -.39339E-07** at limit **
   8  Prefactor     .10000E-03    4.3209        .73299E-06** at limit **
   9  Prefactor     .10000E-03    15.309        .13427E-04** at limit **
  10  Prefactor     .10012E-03    2.8530       -.17899E-05** at limit **
  11  norm          2.7744        1.7753        .39768E-07   -.49317E-04
  12  norm          1.3075        .59373        .82024E-07    .39975E-03
  13  Prefactor     14.326        33.855        .25150E-04   -.13395E-04
  14  Prefactor     .10000E-03    4.3302       -.57589E-06** at limit **
  15  Prefactor     2.3051        2.3526        .21330E-06   -.45921E-04
  16  Prefactor     .10000E-03    33.314        .25082E-04** at limit **
  17  Prefactor     8.6226        10.658        .67387E-06   -.24164E-03
  18  norm          .10051E-03    4.7418       -.69069E-07** at limit **
  19  Prefactor     .10000E-03    1.4063        .64856E-07** at limit **
  20  Prefactor     .10000E-03    25.408       -.17308E-04** at limit **
  21  Prefactor     6.0456        4.6694       -.22297E-06   -.27585E-03
  22  Normalizat    .94984        .19402       -.40103E-05    .13441E-03
  23  Prefactor     1.2325        .14212       -.11042E-05    .14009E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 0.200201
  Prefactor  = 11.4693
  Prefactor  = 19.4178
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000100115
  norm       = 2.77443
  norm       = 1.30745
  Prefactor  = 14.3258
  Prefactor  = 0.0001
  Prefactor  = 2.30514
  Prefactor  = 0.0001
  Prefactor  = 8.62257
  norm       = 0.000100506
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 6.04563
  Normalizat = 0.94984
  Prefactor  = 1.23247
 **********
 **   18 **HESSE 
 **********

 FCN=   7544.392     FROM HESSE     STATUS=OK           380 CALLS     2939 TOTAL
                     EDM=   .67E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .20020        15.826        .31038E-02   -1.5618    
   2  Prefactor     11.469        12.505        .11830E-03   -1.5031    
   3  Prefactor     19.418        34.390        .90964E-04   -1.4826    
   4  Prefactor     .10000E-03    6.2849        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    19.002        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          .10000E-03    9.7362        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          .10000E-03    .87800        .79029E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    4.3437        .17630E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    15.326        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10012E-03    10.684        .28013E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          2.7744        1.7759        .90065E-04   -1.5375    
  12  norm          1.3075        .58584        .43217E-04   -1.5479    
  13  Prefactor     14.326        33.831        .10589E-03   -1.4951    
  14  Prefactor     .10000E-03    4.3349        .17647E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     2.3051        2.3443        .12921E-03   -1.5404    
  16  Prefactor     .10000E-03    33.480        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     8.6226        10.648        .13653E-03   -1.5121    
  18  norm          .10051E-03    5.6961        .57265E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    1.4360        .10053E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    25.414        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     6.0456        4.6751        .15913E-03   -1.5216    
  22  Normalizat    .94984        .22127        .31252E-03   -.94730    
  23  Prefactor     1.2325        .16341        .20946E-03   -.85338    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 6.69867e-08
Minuit parameter uncertainties:
  1  3.56006
  2  12.5076
  3  34.4252
  4  0.000111273
  5  7.34765e-05
  6  1.97179e-05
  7  4.25733e-06
  8  1.54708e-05
  9  1.541e-05
  10  0.00221979
  11  1.77597
  12  0.585847
  13  33.8761
  14  8.38865e-06
  15  2.34437
  16  4.64766e-05
  17  10.6501
  18  0.00339601
  19  9.46422e-06
  20  3.2621e-05
  21  4.67533
  22  0.221486
  23  0.16348
Done.

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

Extracting fit parameters...

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

GAL_V02
   Spectrum: PowerLaw
599    Prefactor:  1.232e+00  1.635e-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.498e-01  2.215e-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: 8.24e-08 ph cm-2 s-1
Energy Flux Upper Limit: 6.44e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/226642/likelihoodResults_302832001_303091201_4FGL_J0809.3+4053_daily_bin245.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) = 7544.39262562
delta logL = -0.000442318798378

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 7544.39218466
delta logL = -1.36300877784e-06

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .13557E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.5309       1.0000          .0000       10.000    
     3 'Normalizat'    .95007       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.2323       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=   7544.392     FROM MIGRAD    STATUS=CONVERGED    111 CALLS      282 TOTAL
                     EDM=   .64E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .13172E-03    1.7153        .53900E-01** at limit **
   2  Index         2.0690        5.9430        .50000        .70306E-05
   3  Normalizat    .94984        .33634E-02    .31252E-03    .25828E-05
   4  Prefactor     1.2325        .25450E-02    .20947E-03    .23034E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000131724
  Index      = 2.06903
  Normalizat = 0.949839
  Prefactor  = 1.23247
 **********
 **   18 **HESSE 
 **********

 FCN=   7544.392     FROM HESSE     STATUS=NOT POSDEF    39 CALLS      321 TOTAL
                     EDM=   .60E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .13172E-03    1.6359        .55037E-01   -1.5707    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.0690        6.0233        .50000       -.62635    
   3  Normalizat    .94984        .33202E-02    .12501E-04   -.94730    
   4  Prefactor     1.2325        .25124E-02    .41893E-04   -.85338    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 5.96905e-09
Minuit parameter uncertainties:
  1  0.0144084
  2  55.1147
  3  0.00332023
  4  0.00251241
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/226642': 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) = 7544.39218027
delta logL = 3.02919579553e-06

Extracting fit parameters...

4FGL J0809.3+4053
   Spectrum: PowerLaw
269    Prefactor:  1.317e-04  1.441e-02  1.000e-04  1.000e+04 ( 1.000e-12)
270        Index:  2.069e+00  5.511e+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.232e+00  2.512e-03  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.498e-01  3.320e-03  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/226642/cmap_HighResolution_302832001_303091201_4FGL_J0809.3+4053_daily_bin245.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='6.44e-03', job_status='DONE', photon_flux_upper_limit='8.24e-08', time_completed='2021-08-29 07:52:08.183995', job_id='226642', GAL2='1.23', fit_tolerance='1e-08', EG2='0.95', EG='0.95', time_epoch_completed='1630248728.18', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.23', dlogl='3.03e-06', ts2='-0.00', photon_index_error='0.00', photon_index='2.59' WHERE bin_id='245' AND source_name='4FGL J0809.3+4053' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Aug 29 07:52:08 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0079>
Subject: Job 226642: <4FGL_J0809.3+4053_daily_bin245> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0809.3+4053_daily_bin245 122.33 40.8954 302832001 303091201 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 :                                   855.46 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             254.65 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   985 sec.
    Turnaround time :                            988 sec.

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

