/nfs/farm/g/glast/g/LCRepository/bin/miniconda2/envs/fermitools_v1.0.5/lib/python2.7/site-packages/pyfits/__init__.py:22: PyFITSDeprecationWarning: PyFITS is deprecated, please use astropy.io.fits
  PyFITSDeprecationWarning)  # noqa

Likelihood Analysis Tool
Support Contact: Daniel Kocevski (daniel.kocevski@nasa.gov)


Waiting 1 seconds before starting...
Proceeding.

Importing modules...
This is make3FGLxml version 01r0.
The default diffuse model files and names are for pass 8 and assume you have v10r00p05 of the Fermi Science Tools or higher.
This is make4FGLxml version 01r04.
The default diffuse model files and names are for pass 8 and 4FGL and assume you have v11r5p3 of the Fermi Science Tools or higher.

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

/nfs/farm/g/glast/g/LCRepository/bin/miniconda2/envs/fermitools_v1.0.5/lib/python2.7/site-packages/matplotlib/cbook/deprecation.py:106: MatplotlibDeprecationWarning: The mpl_toolkits.axes_grid module was deprecated in version 2.1. Use mpl_toolkits.axes_grid1 and mpl_toolkits.axisartist provies the same functionality instead.
  warnings.warn(message, mplDeprecation, stacklevel=1)

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

number of points = 7465
number of fields = 29
RA_SUN column already exists. File will not be modified.
Done.


Performing analysis on: 4FGL_J0809.3+4053_daily_bin536
RA = 122.33, Dec = 40.8954
tmin = 378259201, tmax = 378518401
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='228194', job_status='RUN', time_executed='2021-08-29 07:41:06.041723', time_epoch_executed='1630248066.04' WHERE source_name='4FGL J0809.3+4053' and cadence='daily' and bin_id='536'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/228194

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/228194/ft1_4FGL_J0809.3+4053_daily_bin536.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/228194/ft2_4FGL_J0809.3+4053_daily_bin536.fits


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

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

Done.
real 4.67
user 4.24
sys 0.22

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/228194/ft2_4FGL_J0809.3+4053_daily_bin536.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/228194/ft1_filteredMKT_4FGL_J0809.3+4053_daily_bin536.fits evtable="EVENTS" outfile="/scratch/kocevski/228194/ft1_filtered_4FGL_J0809.3+4053_daily_bin536.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.50
user 0.34
sys 0.15

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/228194/ft1_filtered_4FGL_J0809.3+4053_daily_bin536.fits" evtable="EVENTS" scfile=/scratch/kocevski/228194/ft2_4FGL_J0809.3+4053_daily_bin536.fits sctable="SC_DATA" outfile=/scratch/kocevski/228194/ltcube_378259201_378518401_4FGL_J0809.3+4053_daily_bin536.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/228194/ft2_4FGL_J0809.3+4053_daily_bin536.fits
.....................!
real 14.69
user 14.29
sys 0.33

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/228194/ft1_filtered_4FGL_J0809.3+4053_daily_bin536.fits evtable="EVENTS" scfile=/scratch/kocevski/228194/ft2_4FGL_J0809.3+4053_daily_bin536.fits sctable="SC_DATA" expcube=/scratch/kocevski/228194/ltcube_378259201_378518401_4FGL_J0809.3+4053_daily_bin536.fits outfile=/scratch/kocevski/228194/expmap_378259201_378518401_4FGL_J0809.3+4053_daily_bin536.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/228194/ltcube_378259201_378518401_4FGL_J0809.3+4053_daily_bin536.fits
.....................!
real 190.81
user 185.78
sys 4.65

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/228194/ft1_filtered_4FGL_J0809.3+4053_daily_bin536.fits scfile=/scratch/kocevski/228194/ft2_4FGL_J0809.3+4053_daily_bin536.fits outfile=/scratch/kocevski/228194/cmap_378259201_378518401_4FGL_J0809.3+4053_daily_bin536.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.53
user 0.36
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/228194/ft1_filtered_4FGL_J0809.3+4053_daily_bin536.fits scfile=/scratch/kocevski/228194/ft2_4FGL_J0809.3+4053_daily_bin536.fits outfile=/scratch/kocevski/228194/cmap_HighResolution_378259201_378518401_4FGL_J0809.3+4053_daily_bin536.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.58
user 0.38
sys 0.15

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    12.672       1.0000         .10000E-03   10000.    
     2 'Prefactor '    15.317       1.0000         .10000E-03   10000.    
     3 'Prefactor '    4.0894       1.0000         .10000E-03   10000.    
     4 'Prefactor '    3.2639       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
     6 'norm      '    6.7643       1.0000         .10000E-03   10000.    
     7 'norm      '    .55912E-02   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10068E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    2.3387       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .14968E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    1.8707       1.0000         .10000E-03   10000.    
    12 'norm      '    .37716       1.0000         .10000E-03   10000.    
    13 'Prefactor '    6.0060       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    4.0148       1.0000         .10000E-03   10000.    
    16 'Prefactor '    12.273       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    18 'norm      '    13.794       1.0000         .10000E-03   10000.    
    19 'Prefactor '    1.1338       1.0000         .10000E-03   10000.    
    20 'Prefactor '    50.995       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10073E-03   1.0000         .10000E-03   10000.    
    22 'Normalizat'    1.0059       1.0000         .10000E-01   10.000    
    23 'Prefactor '    .98937       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=   7622.650     FROM MIGRAD    STATUS=CONVERGED    538 CALLS     2270 TOTAL
                     EDM=   .74E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  4.4%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          12.671        7.3556       -.20054E-06   -.68697E-04
   2  Prefactor     15.315        12.081        .17334E-06   -.13610E-04
   3  Prefactor     4.0233        45.589        .13064E-05    .15344E-04
   4  Prefactor     3.2664        9.4945        .51667E-05   -.70839E-04
   5  Prefactor     .10000E-03    5.0941        .16113E-06** at limit **
   6  norm          6.7628        10.305        .31438E-06   -.44018E-05
   7  norm          .10001E-03    1.2132       -.55879E-06** at limit **
   8  Prefactor     .10000E-03    2.9622        .39552E-06** at limit **
   9  Prefactor     2.2922        49.849       -.43990E-05   -.36027E-04
  10  Prefactor     .10000E-03    2.0394        .31731E-06** at limit **
  11  norm          1.8707        1.5237        .95147E-08   -.26640E-04
  12  norm          .37702        .34663        .32654E-07    .12480E-03
  13  Prefactor     6.0042        13.487        .14773E-05   -.87064E-08
  14  Prefactor     .10000E-03    4.8943        .20067E-07** at limit **
  15  Prefactor     4.0141        2.5035        .33690E-07   -.19802E-03
  16  Prefactor     12.268        14.033        .93433E-07   -.16385E-04
  17  Prefactor     .10000E-03    4.0136        .36346E-07** at limit **
  18  norm          13.793        7.1024       -.51870E-08   -.22630E-04
  19  Prefactor     1.1334        2.4523        .37177E-06    .33218E-04
  20  Prefactor     50.993        42.305        .45944E-06    .66419E-05
  21  Prefactor     .10000E-03    1.5707       -.30290E-07** at limit **
  22  Normalizat    1.0060        .17120       -.74040E-06   -.14358E-03
  23  Prefactor     .98930        .12713       -.19869E-06   -.15720E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 12.6714
  Prefactor  = 15.3149
  Prefactor  = 4.02331
  Prefactor  = 3.26639
  Prefactor  = 0.0001
  norm       = 6.7628
  norm       = 0.000100006
  Prefactor  = 0.0001
  Prefactor  = 2.29216
  Prefactor  = 0.0001
  norm       = 1.87067
  norm       = 0.377023
  Prefactor  = 6.00419
  Prefactor  = 0.0001
  Prefactor  = 4.01409
  Prefactor  = 12.2684
  Prefactor  = 0.0001
  norm       = 13.7933
  Prefactor  = 1.13341
  Prefactor  = 50.9929
  Prefactor  = 0.0001
  Normalizat = 1.00603
  Prefactor  = 0.989305
 **********
 **   18 **HESSE 
 **********

 FCN=   7622.650     FROM HESSE     STATUS=OK           386 CALLS     2656 TOTAL
                     EDM=   .15E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          12.671        7.3569        .11253E-03   -1.4996    
   2  Prefactor     15.315        12.080        .10234E-03   -1.4925    
   3  Prefactor     4.0233        45.595        .19936E-03   -1.5307    
   4  Prefactor     3.2664        9.7407        .11208E-02   -1.5346    
   5  Prefactor     .10000E-03    5.1071        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          6.7628        10.298        .15427E-03   -1.5188    
   7  norm          .10001E-03    2.7371        .32090E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    2.9925        .14713E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     2.2922        49.876        .26811E-03   -1.5405    
  10  Prefactor     .10000E-03    18.065        .23301E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          1.8707        1.5122        .94527E-04   -1.5434    
  12  norm          .37702        .33814        .47028E-04   -1.5585    
  13  Prefactor     6.0042        13.455        .81921E-03   -1.5218    
  14  Prefactor     .10000E-03    4.9176        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     4.0141        2.4928        .10403E-03   -1.5307    
  16  Prefactor     12.268        14.033        .11435E-03   -1.5007    
  17  Prefactor     .10000E-03    4.0277        .17078E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          13.793        7.0817        .10784E-03   -1.4965    
  19  Prefactor     1.1334        2.4271        .19083E-03   -1.5495    
  20  Prefactor     50.993        42.314        .56160E-04   -1.4279    
  21  Prefactor     .10000E-03    1.6134        .21365E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Normalizat    1.0060        .19506        .27019E-03   -.92829    
  23  Prefactor     .98930        .14695        .20865E-03   -.93087    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.53539e-10
Minuit parameter uncertainties:
  1  7.35742
  2  12.0822
  3  27.114
  4  9.74542
  5  2.16923e-05
  6  10.3003
  7  0.000254091
  8  4.06736e-05
  9  21.4043
  10  0.000128835
  11  1.51221
  12  0.33814
  13  13.4617
  14  2.90035e-06
  15  2.49282
  16  14.0371
  17  5.39689e-06
  18  7.08215
  19  2.42728
  20  42.3393
  21  1.77988e-06
  22  0.195203
  23  0.147011
Done.

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

Extracting fit parameters...

4FGL J0809.3+4053
   Spectrum: PowerLaw
269    Prefactor:  1.000e-04  1.288e-04  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.893e-01  1.470e-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.006e+00  1.952e-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.89e-08 ph cm-2 s-1
Energy Flux Upper Limit: 6.17e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/228194/likelihoodResults_378259201_378518401_4FGL_J0809.3+4053_daily_bin536.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) = 7622.65009534
delta logL = -0.000262801569079

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 7622.64983853
delta logL = -5.9854646679e-06

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .45812E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.5030       1.0000          .0000       10.000    
     3 'Normalizat'    1.0060       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .98941       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6020E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.
 MIGRAD TERMINATED WITHOUT CONVERGENCE.

 FCN=   7622.650     FROM MIGRAD    STATUS=FAILED       100 CALLS      272 TOTAL
                     EDM=   .36E-03    STRATEGY= 1      ERR MATRIX APPROXIMATE

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .15598E-03    6215.8        .23515E-02** at limit **
   2  Index         1.8602        .35311        .20000E-01   -.13726E-04
   3  Normalizat    1.0060        .14502        .27019E-03   -.30056E-03
   4  Prefactor     .98931        .11584        .20865E-03   -.44788E-04
                               ERR DEF=  .500    
 START SIMPLEX MINIMIZATION.    CONVERGENCE WHEN EDM .LT.   .20E-04
 SIMPLEX MINIMIZATION HAS CONVERGED.

 FCN=   7622.646     FROM SIMPLEX   STATUS=PROGRESS     148 CALLS      420 TOTAL
                     EDM=   .66E-05    STRATEGY= 1      ERR MATRIX APPROXIMATE

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .31497        6215.8        .49821E-03   -1.5820    
   2  Index         1.8602        .35311        .20399E-06   -.67894    
   3  Normalizat    1.0060        .14502        .39352E-06   -.92829    
   4  Prefactor     .98930        .11584        .16352E-06   -.93087    
                               ERR DEF=  .500    

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   7622.646     FROM MIGRAD    STATUS=CONVERGED     53 CALLS      473 TOTAL
                     EDM=   .85E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .35532        10.473        .47030E-02   -.40216E-03
   2  Index         1.9467        2.4815        .80000E-02   -.35527E-06
   3  Normalizat    1.0062        .18783        .10808E-04   -.32378E-03
   4  Prefactor     .98819        .14502        .83460E-05   -.42227E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.355322
  Index      = 1.94666
  Normalizat = 1.00624
  Prefactor  = 0.98819
 **********
 **   18 **HESSE 
 **********

 FCN=   7622.646     FROM HESSE     STATUS=OK            27 CALLS      500 TOTAL
                     EDM=   .16E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .35532        10.902        .18812E-03   -1.5827    
   2  Index         1.9467        2.4970        .32000E-03   -.65690    
   3  Normalizat    1.0062        .18802        .21615E-05   -.92822    
   4  Prefactor     .98819        .14526        .16692E-05   -.93124    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.61736e-10
Minuit parameter uncertainties:
  1  3.93656
  2  2.70192
  3  0.188146
  4  0.145317
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/228194': 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) = 7622.6455007
delta logL = 0.00433184090889

Extracting fit parameters...

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

GAL_V02
   Spectrum: PowerLaw
599    Prefactor:  9.882e-01  1.453e-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.006e+00  1.881e-01  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/228194/cmap_HighResolution_378259201_378518401_4FGL_J0809.3+4053_daily_bin536.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='6.17e-03', job_status='DONE', photon_flux_upper_limit='7.89e-08', time_completed='2021-08-29 07:54:22.347327', job_id='228194', GAL2='0.99', fit_tolerance='1e-08', EG2='1.01', EG='1.01', time_epoch_completed='1630248862.35', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.99', dlogl='4.33e-03', ts2='0.01', photon_index_error='0.00', photon_index='2.59' WHERE bin_id='536' AND source_name='4FGL J0809.3+4053' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Aug 29 07:54:22 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0231>
Subject: Job 228194: <4FGL_J0809.3+4053_daily_bin536> in cluster <slac> Done

Job <4FGL_J0809.3+4053_daily_bin536> was submitted from host <rhel6-64m> by user <kocevski> in cluster <slac> at Sun Aug 29 07:40:54 2021
Job was executed on host(s) <bullet0231>, in queue <medium>, as user <kocevski> in cluster <slac> at Sun Aug 29 07:40: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:40:56 2021
Terminated at Sun Aug 29 07:54:22 2021
Results reported at Sun Aug 29 07:54:22 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0809.3+4053_daily_bin536 122.33 40.8954 378259201 378518401 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 :                                   787.00 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             308.41 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   806 sec.
    Turnaround time :                            808 sec.

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

