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


Performing analysis on: 4FGL_J0809.3+4053_daily_bin92
RA = 122.33, Dec = 40.8954
tmin = 263174401, tmax = 263433601
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='225330', job_status='RUN', time_executed='2021-08-29 07:33:13.356224', time_epoch_executed='1630247593.36' WHERE source_name='4FGL J0809.3+4053' and cadence='daily' and bin_id='92'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/225330

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

Retrieving the FT1 file...

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

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

Retrieving 42 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/225330/ft1_4FGL_J0809.3+4053_daily_bin92.fits


Retrieving the FT1 file...

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

Retrieving 42 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/225330/ft2_4FGL_J0809.3+4053_daily_bin92.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/225330/ft1_4FGL_J0809.3+4053_daily_bin92.fits outfile=/scratch/kocevski/225330/ft1_filteredMKT_4FGL_J0809.3+4053_daily_bin92.fits ra=122.33 dec=40.8954 rad=12.0 tmin=263174401.0 tmax=263433601.0 emin=100.0 emax=100000.0 zmin=0.0 zmax=90.0 evclass=128 evtype="INDEF" convtype=-1 phasemin=0.0 phasemax=1.0 evtable="EVENTS" chatter=2 clobber=yes debug=no gui=no mode="ql"

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

Done.
real 1.61
user 1.18
sys 0.42

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/225330/ft2_4FGL_J0809.3+4053_daily_bin92.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/225330/ft1_filteredMKT_4FGL_J0809.3+4053_daily_bin92.fits evtable="EVENTS" outfile="/scratch/kocevski/225330/ft1_filtered_4FGL_J0809.3+4053_daily_bin92.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.74
user 0.31
sys 0.41

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/225330/ft1_filtered_4FGL_J0809.3+4053_daily_bin92.fits evtable="EVENTS" scfile=/scratch/kocevski/225330/ft2_4FGL_J0809.3+4053_daily_bin92.fits sctable="SC_DATA" expcube=/scratch/kocevski/225330/ltcube_263174401_263433601_4FGL_J0809.3+4053_daily_bin92.fits outfile=/scratch/kocevski/225330/expmap_263174401_263433601_4FGL_J0809.3+4053_daily_bin92.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/225330/ltcube_263174401_263433601_4FGL_J0809.3+4053_daily_bin92.fits
.....................!
real 191.60
user 185.52
sys 5.64

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/225330/ft1_filtered_4FGL_J0809.3+4053_daily_bin92.fits scfile=/scratch/kocevski/225330/ft2_4FGL_J0809.3+4053_daily_bin92.fits outfile=/scratch/kocevski/225330/cmap_263174401_263433601_4FGL_J0809.3+4053_daily_bin92.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.79
user 0.37
sys 0.39

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/225330/ft1_filtered_4FGL_J0809.3+4053_daily_bin92.fits scfile=/scratch/kocevski/225330/ft2_4FGL_J0809.3+4053_daily_bin92.fits outfile=/scratch/kocevski/225330/cmap_HighResolution_263174401_263433601_4FGL_J0809.3+4053_daily_bin92.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.79
user 0.36
sys 0.41

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    4.5392       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .77403E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .20682E-02   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .13115E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10026E-03   1.0000         .10000E-03   10000.    
     6 'norm      '    .10031E-03   1.0000         .10000E-03   10000.    
     7 'norm      '    2.2769       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    17.978       1.0000         .10000E-03   10000.    
    10 'Prefactor '    6.5374       1.0000         .10000E-03   10000.    
    11 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    1.3174       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .12636E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .51493E-02   1.0000         .10000E-03   10000.    
    15 'Prefactor '    1.8787       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .11472E-02   1.0000         .10000E-03   10000.    
    17 'Prefactor '    30.176       1.0000         .10000E-03   10000.    
    18 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    1.9220       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .81356E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .97435       1.0000         .10000E-03   10000.    
    22 'Normalizat'    1.0090       1.0000         .10000E-01   10.000    
    23 'Prefactor '    .94744       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=   6226.531     FROM MIGRAD    STATUS=CONVERGED    540 CALLS     2596 TOTAL
                     EDM=   .11E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  3.6%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          4.5376        5.8300       -.28584E-06   -.17507E-03
   2  Prefactor     .10006E-03    7.7578        .15327E-05** at limit **
   3  Prefactor     .10001E-03    46.644        .64866E-05** at limit **
   4  Prefactor     .10000E-03    7.4898        .16173E-08** at limit **
   5  Prefactor     .10000E-03    4.4686       -.10145E-07** at limit **
   6  norm          .10000E-03    5.1079        .65931E-09** at limit **
   7  norm          2.2766        2.7987        .53920E-07   -.20788E-03
   8  Prefactor     .10000E-03    2.1410       -.19007E-07** at limit **
   9  Prefactor     18.068        38.692        .13728E-05    .70485E-04
  10  Prefactor     6.5310        3.9022        .65753E-06   -.17103E-02
  11  norm          .10000E-03    .60516       -.96637E-09** at limit **
  12  norm          1.3178        .76296       -.68961E-07    .14485E-02
  13  Prefactor     .10000E-03    9.7732        .43617E-08** at limit **
  14  Prefactor     .10010E-03    12.489       -.26064E-05** at limit **
  15  Prefactor     1.8797        3.2819        .25001E-06    .64591E-03
  16  Prefactor     .10000E-03    56.788       -.33381E-05** at limit **
  17  Prefactor     30.109        15.890        .19168E-05    .75492E-03
  18  norm          .10000E-03    2.5334        .10521E-07** at limit **
  19  Prefactor     1.9222        2.0102       -.82065E-08    .38629E-04
  20  Prefactor     .10000E-03    33.769       -.42634E-05** at limit **
  21  Prefactor     .97437        2.6732        .24206E-06   -.26233E-03
  22  Normalizat    1.0091        .19127       -.87723E-06    .12206E-03
  23  Prefactor     .94739        .13921        .65634E-07    .14446E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 4.53757
  Prefactor  = 0.000100059
  Prefactor  = 0.000100006
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 2.27659
  Prefactor  = 0.0001
  Prefactor  = 18.0679
  Prefactor  = 6.53104
  norm       = 0.0001
  norm       = 1.31777
  Prefactor  = 0.0001
  Prefactor  = 0.0001001
  Prefactor  = 1.8797
  Prefactor  = 0.000100004
  Prefactor  = 30.1094
  norm       = 0.0001
  Prefactor  = 1.9222
  Prefactor  = 0.000100003
  Prefactor  = 0.97437
  Normalizat = 1.00912
  Prefactor  = 0.947394
 **********
 **   18 **HESSE 
 **********

 FCN=   6226.531     FROM HESSE     STATUS=OK           372 CALLS     2968 TOTAL
                     EDM=   .14E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          4.5376        5.8374        .18895E-03   -1.5282    
   2  Prefactor     .10006E-03    34.840        .40811E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10001E-03    47.533        .20199E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    7.5212        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    4.4714        .16291E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          .10000E-03    5.1291        .17415E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          2.2766        2.7918        .14104E-03   -1.5406    
   8  Prefactor     .10000E-03    2.1422        .11275E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     18.068        38.774        .94460E-04   -1.4858    
  10  Prefactor     6.5310        5.7987        .78479E-03   -1.5197    
  11  norm          .10000E-03    .60825        .59942E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          1.3178        .74974        .47947E-04   -1.5478    
  13  Prefactor     .10000E-03    9.7799        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10010E-03    48.060        .45985E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     1.8797        3.0474        .16520E-03   -1.5434    
  16  Prefactor     .10000E-03    58.426        .20670E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     30.109        16.316        .72936E-04   -1.4610    
  18  norm          .10000E-03    2.5483        .12265E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     1.9222        2.0138        .11125E-03   -1.5431    
  20  Prefactor     .10000E-03    34.018        .20892E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .97437        2.3796        .21042E-02   -1.5511    
  22  Normalizat    1.0091        .22056        .27037E-03   -.92726    
  23  Prefactor     .94739        .16156        .20944E-03   -.94504    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.40838e-08
Minuit parameter uncertainties:
  1  5.83816
  2  0.0028789
  3  0.0010638
  4  2.14793e-07
  5  5.52004e-07
  6  1.66674e-06
  7  2.792
  8  1.3903e-06
  9  38.8277
  10  5.79924
  11  1.06618e-07
  12  0.749749
  13  2.60306e-06
  14  0.00438003
  15  3.04769
  16  0.000956682
  17  16.3184
  18  1.85326e-08
  19  2.01384
  20  0.000598784
  21  2.37985
  22  0.220759
  23  0.161643
Done.

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

Extracting fit parameters...

4FGL J0809.3+4053
   Spectrum: PowerLaw
269    Prefactor:  6.531e+00  5.799e+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.474e-01  1.616e-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.009e+00  2.208e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 2.04
Ra Dec: 122.330 40.895
Photon Index (Fixed Index): 2.59 +/- 0.00
Photon Flux (Fixed Index): 5.42e-08 +/- 4.81e-08
Energy Flux (Fixed Index): 1.44e-05 +/- 1.28e-05

TS (Fixed Index): 2.04
Ra Dec: 122.330 40.895
Photon Flux Upper Limit: 1.52e-07 ph cm-2 s-1
Energy Flux Upper Limit: 1.19e-02 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/225330/likelihoodResults_263174401_263433601_4FGL_J0809.3+4053_daily_bin92.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) = 6226.31336652
delta logL = 0.21734843054

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6226.30890526
delta logL = 0.221809682032

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    4.5801       1.0000         .10000E-03   10000.    
     2 'Index     '    3.0819       1.0000          .0000       10.000    
     3 'Normalizat'    .98527       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .95887       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=   6226.309     FROM MIGRAD    STATUS=CONVERGED     48 CALLS      233 TOTAL
                     EDM=   .86E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     4.5801        81.460        .47022E-02    .11262E-02
   2  Index         3.0820        6.5262        .14507        .10435E-03
   3  Normalizat    .98527        .73322E-01    .45982E-01    .14583E-04
   4  Prefactor     .95886        .52101E-01    .45751E-01    .61308E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 4.58011
  Index      = 3.082
  Normalizat = 0.985267
  Prefactor  = 0.958865
 **********
 **   18 **HESSE 
 **********

 FCN=   6226.309     FROM HESSE     STATUS=OK            33 CALLS      266 TOTAL
                     EDM=   .43E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     4.5801        5.8764        .12073E-03   -1.5280    
   2  Index         3.0820        .88041        .71167E-02   -.39369    
   3  Normalizat    .98527        .21798        .27313E-03   -.93526    
   4  Prefactor     .95886        .16151        .20828E-03   -.94114    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.26253e-09
Minuit parameter uncertainties:
  1  5.87713
  2  0.885837
  3  0.218176
  4  0.161589
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/225330': 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) = 6226.30890524
delta logL = 0.221809705713

Extracting fit parameters...

4FGL J0809.3+4053
   Spectrum: PowerLaw
269    Prefactor:  4.580e+00  5.877e+00  1.000e-04  1.000e+04 ( 1.000e-12)
270        Index:  3.082e+00  8.858e-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:  9.589e-01  1.616e-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.853e-01  2.182e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 2.54
Ra Dec: 122.330 40.895
Photon Index (Free Index): 3.08 +/- 0.89
Photon Flux (Free Index): 7.36e-08 +/- 5.83e-08
Energy Flux (Free Index): 1.41e-05 +/- 1.11e-05

Creating a high resolution counts map...
INFO: Auto-setting vmin to  0.000e+00 [aplpy.core]
INFO: Auto-setting vmax to  0.000e+00 [aplpy.core]
Saving /scratch/kocevski/225330/cmap_HighResolution_263174401_263433601_4FGL_J0809.3+4053_daily_bin92.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.19e-02', comment='SUCCESS', photon_flux='5.42e-08', energy_flux2='1.41e-05', photon_flux_error='4.81e-08', dlogl='2.22e-01', energy_flux='1.44e-05', photon_flux2='7.36e-08', job_status='DONE', time_completed='2021-08-29 07:44:43.314927', photon_index_error2='0.89', photon_index2='3.08', ts='2.04', fit_tolerance='1e-08', GAL='0.95', photon_index_error='0.00', photon_flux_upper_limit='1.52e-07', energy_flux_error2='1.11e-05', EG='1.01', time_epoch_completed='1630248283.31', return_code='0', job_id='225330', GAL2='0.96', EG2='0.99', return_code2='0', energy_flux_error='1.28e-05', photon_flux_error2='5.83e-08', ts2='2.54', photon_index='2.59' WHERE bin_id='92' AND source_name='4FGL J0809.3+4053' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Aug 29 07:44:43 PDT 2021


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

Job <4FGL_J0809.3+4053_daily_bin92> was submitted from host <rhel6-64l> by user <kocevski> in cluster <slac> at Sun Aug 29 07:30:54 2021
Job was executed on host(s) <bullet0268>, in queue <medium>, as user <kocevski> in cluster <slac> at Sun Aug 29 07:30:56 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Sun Aug 29 07:30:56 2021
Terminated at Sun Aug 29 07:44:44 2021
Results reported at Sun Aug 29 07:44:44 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0809.3+4053_daily_bin92 122.33 40.8954 263174401 263433601 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 :                                   693.21 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             293.52 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   827 sec.
    Turnaround time :                            830 sec.

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

