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


Performing analysis on: 4FGL_J0809.3+4053_daily_bin316
RA = 122.33, Dec = 40.8954
tmin = 321235201, tmax = 321494401
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='226745', job_status='RUN', time_executed='2021-08-29 07:36:10.410873', time_epoch_executed='1630247770.41' WHERE source_name='4FGL J0809.3+4053' and cadence='daily' and bin_id='316'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/226745

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/226745/ft1_4FGL_J0809.3+4053_daily_bin316.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/226745/ft2_4FGL_J0809.3+4053_daily_bin316.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/226745/ft1_4FGL_J0809.3+4053_daily_bin316.fits outfile=/scratch/kocevski/226745/ft1_filteredMKT_4FGL_J0809.3+4053_daily_bin316.fits ra=122.33 dec=40.8954 rad=12.0 tmin=321235201.0 tmax=321494401.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 3.83
user 3.37
sys 0.41

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/226745/ft1_filtered_4FGL_J0809.3+4053_daily_bin316.fits" evtable="EVENTS" scfile=/scratch/kocevski/226745/ft2_4FGL_J0809.3+4053_daily_bin316.fits sctable="SC_DATA" outfile=/scratch/kocevski/226745/ltcube_321235201_321494401_4FGL_J0809.3+4053_daily_bin316.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/226745/ft2_4FGL_J0809.3+4053_daily_bin316.fits
.....................!
real 11.91
user 11.30
sys 0.56

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/226745/ft1_filtered_4FGL_J0809.3+4053_daily_bin316.fits evtable="EVENTS" scfile=/scratch/kocevski/226745/ft2_4FGL_J0809.3+4053_daily_bin316.fits sctable="SC_DATA" expcube=/scratch/kocevski/226745/ltcube_321235201_321494401_4FGL_J0809.3+4053_daily_bin316.fits outfile=/scratch/kocevski/226745/expmap_321235201_321494401_4FGL_J0809.3+4053_daily_bin316.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/226745/ltcube_321235201_321494401_4FGL_J0809.3+4053_daily_bin316.fits
.....................!
real 190.14
user 184.52
sys 5.18

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/226745/ft1_filtered_4FGL_J0809.3+4053_daily_bin316.fits scfile=/scratch/kocevski/226745/ft2_4FGL_J0809.3+4053_daily_bin316.fits outfile=/scratch/kocevski/226745/cmap_321235201_321494401_4FGL_J0809.3+4053_daily_bin316.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.77
user 0.38
sys 0.37

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/226745/ft1_filtered_4FGL_J0809.3+4053_daily_bin316.fits scfile=/scratch/kocevski/226745/ft2_4FGL_J0809.3+4053_daily_bin316.fits outfile=/scratch/kocevski/226745/cmap_HighResolution_321235201_321494401_4FGL_J0809.3+4053_daily_bin316.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.39

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .17378E-02   1.0000         .10000E-03   10000.    
     2 'Prefactor '    14.428       1.0000         .10000E-03   10000.    
     3 'Prefactor '    41.291       1.0000         .10000E-03   10000.    
     4 'Prefactor '    6.2223       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     6 'norm      '    .40950E-03   1.0000         .10000E-03   10000.    
     7 'norm      '    1.6803       1.0000         .10000E-03   10000.    
     8 'Prefactor '    2.5948       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .11138E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    7.5761       1.0000         .10000E-03   10000.    
    12 'norm      '    .10510       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10016E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    3.6029       1.0000         .10000E-03   10000.    
    16 'Prefactor '    15.511       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    18 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .84195       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    22 'Normalizat'    1.1181       1.0000         .10000E-01   10.000    
    23 'Prefactor '    .96021       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=   7900.522     FROM MIGRAD    STATUS=CONVERGED    530 CALLS     2631 TOTAL
                     EDM=   .38E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  6.6%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10002E-03    46.175        .11758E-04** at limit **
   2  Prefactor     14.427        13.384       -.74950E-06   -.54197E-05
   3  Prefactor     41.286        33.753        .31004E-05    .18474E-03
   4  Prefactor     6.2211        10.087        .65152E-06    .16972E-03
   5  Prefactor     .10000E-03    5.3212       -.16198E-06** at limit **
   6  norm          .10001E-03    14.412       -.63706E-05** at limit **
   7  norm          1.6802        1.8842       -.21396E-06    .10175E-03
   8  Prefactor     2.5949        5.3229       -.48778E-08    .14178E-03
   9  Prefactor     .10000E-03    119.75        .18387E-04** at limit **
  10  Prefactor     .10000E-03    3.1577        .11052E-06** at limit **
  11  norm          7.5761        2.5349       -.37121E-07   -.19884E-05
  12  norm          .10532        .35059        .23032E-07    .10405E-02
  13  Prefactor     .10000E-03    38.966        .76611E-05** at limit **
  14  Prefactor     .10000E-03    8.8774        .29479E-06** at limit **
  15  Prefactor     3.6034        3.1694       -.12350E-06    .26768E-03
  16  Prefactor     15.517        23.991       -.20771E-06    .22762E-03
  17  Prefactor     .10000E-03    4.9305       -.30855E-06** at limit **
  18  norm          .10000E-03    5.8702        .80134E-07** at limit **
  19  Prefactor     .84182        1.9017       -.20168E-05    .33520E-03
  20  Prefactor     .10000E-03    15.096       -.47304E-06** at limit **
  21  Prefactor     .10000E-03    .92258        .12223E-06** at limit **
  22  Normalizat    1.1183        .16967        .73332E-06    .14524E-03
  23  Prefactor     .96014        .12300        .12373E-05    .23414E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 0.000100018
  Prefactor  = 14.4275
  Prefactor  = 41.2863
  Prefactor  = 6.22114
  Prefactor  = 0.0001
  norm       = 0.000100008
  norm       = 1.68018
  Prefactor  = 2.59493
  Prefactor  = 0.000100001
  Prefactor  = 0.0001
  norm       = 7.5761
  norm       = 0.105321
  Prefactor  = 0.000100002
  Prefactor  = 0.0001
  Prefactor  = 3.60342
  Prefactor  = 15.5175
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.841816
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Normalizat = 1.11825
  Prefactor  = 0.960138
 **********
 **   18 **HESSE 
 **********

 FCN=   7900.522     FROM HESSE     STATUS=OK           378 CALLS     3009 TOTAL
                     EDM=   .14E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10002E-03    57.653        .40709E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     14.427        13.382        .10545E-03   -1.4948    
   3  Prefactor     41.286        33.911        .62383E-04   -1.4422    
   4  Prefactor     6.2211        10.060        .16093E-03   -1.5209    
   5  Prefactor     .10000E-03    5.3382        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          .10001E-03    45.950        .38478E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          1.6802        1.8616        .12372E-03   -1.5449    
   8  Prefactor     2.5949        5.3044        .25329E-03   -1.5386    
   9  Prefactor     .10000E-03    120.45        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    3.2428        .30791E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          7.5761        2.5344        .79539E-04   -1.5157    
  12  norm          .10532        .44095        .89761E-03   -1.5643    
  13  Prefactor     .10000E-03    39.481        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    8.9101        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     3.6034        3.1523        .13849E-03   -1.5328    
  16  Prefactor     15.517        23.973        .50848E-03   -1.4920    
  17  Prefactor     .10000E-03    4.9565        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          .10000E-03    5.9847        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .84182        1.9001        .19378E-02   -1.5524    
  20  Prefactor     .10000E-03    15.099        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10000E-03    .92430        .83376E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Normalizat    1.1183        .19609        .27270E-03   -.89168    
  23  Prefactor     .96014        .14122        .21525E-03   -.94070    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.3582e-09
Minuit parameter uncertainties:
  1  0.00205287
  2  13.3851
  3  33.927
  4  10.0623
  5  1.95072e-05
  6  0.00121643
  7  1.86171
  8  5.30537
  9  0.000707026
  10  2.10663e-05
  11  2.53439
  12  0.430806
  13  0.00050814
  14  2.885e-05
  15  3.15243
  16  23.9875
  17  2.10866e-05
  18  7.09346e-06
  19  1.9002
  20  2.45256e-05
  21  1.535e-06
  22  0.196213
  23  0.141274
Done.

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

Extracting fit parameters...

4FGL J0809.3+4053
   Spectrum: PowerLaw
269    Prefactor:  1.000e-04  2.107e-05  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.601e-01  1.413e-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.118e+00  1.962e-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: 7.08e-08 ph cm-2 s-1
Energy Flux Upper Limit: 5.54e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/226745/likelihoodResults_321235201_321494401_4FGL_J0809.3+4053_daily_bin316.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) = 7900.5231692
delta logL = -0.0014714540639

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 7900.52169772
delta logL = 2.66963979811e-08

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10018E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.5674       1.0000          .0000       10.000    
     3 'Normalizat'    1.1182       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .96023       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=   7900.522     FROM MIGRAD    STATUS=CONVERGED     99 CALLS      256 TOTAL
                     EDM=   .22E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    73.120        .31316E-02** at limit **
   2  Index         2.2071        5.5726        .50000        .13663E-06
   3  Normalizat    1.1182        .19521E-01    .27270E-03   -.17902E-02
   4  Prefactor     .96014        .14478E-01    .21525E-03   -.22487E-02
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100001
  Index      = 2.20706
  Normalizat = 1.11825
  Prefactor  = 0.960137
 **********
 **   18 **HESSE 
 **********

 FCN=   7900.522     FROM HESSE     STATUS=NOT POSDEF    29 CALLS      285 TOTAL
                     EDM=   .99E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    325.75        .62633E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.2071        8.3171        .50000       -.59268    
   3  Normalizat    1.1182        .45125E-01    .54540E-04   -.89168    
   4  Prefactor     .96014        .33468E-01    .43050E-04   -.94070    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 9.89991e-09
Minuit parameter uncertainties:
  1  0.000926596
  2  769.881
  3  0.045127
  4  0.0334684
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/226745': 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) = 7900.5216952
delta logL = 2.54425413004e-06

Extracting fit parameters...

4FGL J0809.3+4053
   Spectrum: PowerLaw
269    Prefactor:  1.000e-04  9.266e-04  1.000e-04  1.000e+04 ( 1.000e-12)
270        Index:  2.207e+00  7.699e+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:  9.601e-01  3.347e-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.118e+00  4.513e-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 -1.000e-01 [aplpy.core]
INFO: Auto-setting vmax to  1.110e+00 [aplpy.core]
Saving /scratch/kocevski/226745/cmap_HighResolution_321235201_321494401_4FGL_J0809.3+4053_daily_bin316.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='5.54e-03', job_status='DONE', photon_flux_upper_limit='7.08e-08', time_completed='2021-08-29 07:49:35.948112', job_id='226745', GAL2='0.96', fit_tolerance='1e-08', EG2='1.12', EG='1.12', time_epoch_completed='1630248575.95', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.96', dlogl='2.54e-06', ts2='-0.00', photon_index_error='0.00', photon_index='2.59' WHERE bin_id='316' AND source_name='4FGL J0809.3+4053' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Aug 29 07:49:35 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0225>
Subject: Job 226745: <4FGL_J0809.3+4053_daily_bin316> in cluster <slac> Done

Job <4FGL_J0809.3+4053_daily_bin316> was submitted from host <rhel6-64f> by user <kocevski> in cluster <slac> at Sun Aug 29 07:35:48 2021
Job was executed on host(s) <bullet0225>, in queue <medium>, as user <kocevski> in cluster <slac> at Sun Aug 29 07:35:50 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Sun Aug 29 07:35:50 2021
Terminated at Sun Aug 29 07:49:36 2021
Results reported at Sun Aug 29 07:49:36 2021

Your job looked like:

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

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

