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


Performing analysis on: 4FGL_J0809.3+4053_daily_bin890
RA = 122.33, Dec = 40.8954
tmin = 470016001, tmax = 470275201
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='230988', job_status='RUN', time_executed='2021-08-29 07:53:29.901033', time_epoch_executed='1630248809.9' WHERE source_name='4FGL J0809.3+4053' and cadence='daily' and bin_id='890'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/230988

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/230988/ft1_4FGL_J0809.3+4053_daily_bin890.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/230988/ft2_4FGL_J0809.3+4053_daily_bin890.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/230988/ft1_4FGL_J0809.3+4053_daily_bin890.fits outfile=/scratch/kocevski/230988/ft1_filteredMKT_4FGL_J0809.3+4053_daily_bin890.fits ra=122.33 dec=40.8954 rad=12.0 tmin=470016001.0 tmax=470275201.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.70
user 3.29
sys 0.36

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/230988/ft1_filtered_4FGL_J0809.3+4053_daily_bin890.fits" evtable="EVENTS" scfile=/scratch/kocevski/230988/ft2_4FGL_J0809.3+4053_daily_bin890.fits sctable="SC_DATA" outfile=/scratch/kocevski/230988/ltcube_470016001_470275201_4FGL_J0809.3+4053_daily_bin890.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/230988/ft2_4FGL_J0809.3+4053_daily_bin890.fits
.....................!
real 12.05
user 11.51
sys 0.50

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/230988/ft1_filtered_4FGL_J0809.3+4053_daily_bin890.fits evtable="EVENTS" scfile=/scratch/kocevski/230988/ft2_4FGL_J0809.3+4053_daily_bin890.fits sctable="SC_DATA" expcube=/scratch/kocevski/230988/ltcube_470016001_470275201_4FGL_J0809.3+4053_daily_bin890.fits outfile=/scratch/kocevski/230988/expmap_470016001_470275201_4FGL_J0809.3+4053_daily_bin890.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/230988/ltcube_470016001_470275201_4FGL_J0809.3+4053_daily_bin890.fits
.....................!
real 191.20
user 186.23
sys 4.56

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/230988/ft1_filtered_4FGL_J0809.3+4053_daily_bin890.fits scfile=/scratch/kocevski/230988/ft2_4FGL_J0809.3+4053_daily_bin890.fits outfile=/scratch/kocevski/230988/cmap_470016001_470275201_4FGL_J0809.3+4053_daily_bin890.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.75
user 0.37
sys 0.33

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/230988/ft1_filtered_4FGL_J0809.3+4053_daily_bin890.fits scfile=/scratch/kocevski/230988/ft2_4FGL_J0809.3+4053_daily_bin890.fits outfile=/scratch/kocevski/230988/cmap_HighResolution_470016001_470275201_4FGL_J0809.3+4053_daily_bin890.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.73
user 0.39
sys 0.33

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10004E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10032E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    6.2591       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10686E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    11.427       1.0000         .10000E-03   10000.    
     6 'norm      '    1.0712       1.0000         .10000E-03   10000.    
     7 'norm      '    2.2931       1.0000         .10000E-03   10000.    
     8 'Prefactor '    8.6037       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10888E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    1.7162       1.0000         .10000E-03   10000.    
    11 'norm      '    2.2235       1.0000         .10000E-03   10000.    
    12 'norm      '    1.4746       1.0000         .10000E-03   10000.    
    13 'Prefactor '    26.356       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .69857       1.0000         .10000E-03   10000.    
    16 'Prefactor '    9.0261       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10014E-03   1.0000         .10000E-03   10000.    
    18 'norm      '    5.9038       1.0000         .10000E-03   10000.    
    19 'Prefactor '    4.6539       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10157E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    14.519       1.0000         .10000E-03   10000.    
    22 'Normalizat'    .85769       1.0000         .10000E-01   10.000    
    23 'Prefactor '    .90551       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=   6974.303     FROM MIGRAD    STATUS=CONVERGED    514 CALLS     2571 TOTAL
                     EDM=   .11E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .5%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    1.4575       -.10952E-07** at limit **
   2  Prefactor     .10000E-03    3.0577        .18638E-06** at limit **
   3  Prefactor     6.2023        25.029       -.18466E-05   -.29434E-04
   4  Prefactor     .10000E-03    11.480        .13020E-05** at limit **
   5  Prefactor     11.425        10.008       -.19829E-06    .18863E-04
   6  norm          1.0612        7.6619       -.14923E-05   -.20279E-03
   7  norm          2.2926        1.8311       -.74143E-07   -.19744E-03
   8  Prefactor     8.6013        6.5056       -.18347E-05   -.19924E-04
   9  Prefactor     .10000E-03    13.971       -.20310E-05** at limit **
  10  Prefactor     1.7159        3.5952       -.11188E-05   -.87274E-03
  11  norm          2.2236        1.7933       -.16581E-06   -.41038E-03
  12  norm          1.4747        .60426       -.82086E-07    .20107E-03
  13  Prefactor     26.317        27.899       -.11775E-04    .18890E-04
  14  Prefactor     .10000E-03    5.2179       -.71775E-07** at limit **
  15  Prefactor     .69812        1.7543       -.10194E-05   -.16497E-02
  16  Prefactor     9.0078        19.655        .11730E-04    .14888E-04
  17  Prefactor     .10000E-03    3.0922       -.13124E-06** at limit **
  18  norm          5.9034        6.7011        .80351E-06   -.18340E-03
  19  Prefactor     4.6539        2.5683       -.60760E-07   -.24905E-04
  20  Prefactor     .10000E-03    21.156        .10564E-05** at limit **
  21  Prefactor     14.515        5.5387       -.33824E-05   -.34277E-04
  22  Normalizat    .85793        .16309        .28342E-05    .96916E-04
  23  Prefactor     .90539        .11945       -.57040E-07    .27951E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 6.20228
  Prefactor  = 0.0001
  Prefactor  = 11.4253
  norm       = 1.06123
  norm       = 2.29259
  Prefactor  = 8.6013
  Prefactor  = 0.0001
  Prefactor  = 1.71589
  norm       = 2.22362
  norm       = 1.47466
  Prefactor  = 26.3169
  Prefactor  = 0.0001
  Prefactor  = 0.698123
  Prefactor  = 9.00776
  Prefactor  = 0.0001
  norm       = 5.90337
  Prefactor  = 4.65386
  Prefactor  = 0.0001
  Prefactor  = 14.5154
  Normalizat = 0.857928
  Prefactor  = 0.905388
 **********
 **   18 **HESSE 
 **********

 FCN=   6974.303     FROM HESSE     STATUS=OK           378 CALLS     2949 TOTAL
                     EDM=   .22E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    1.4599        .98459E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    3.0619        .14261E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     6.2023        25.053        .16045E-03   -1.5210    
   4  Prefactor     .10000E-03    11.668        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     11.425        10.008        .11851E-03   -1.5032    
   6  norm          1.0612        23.742        .43503E-02   -1.5502    
   7  norm          2.2926        1.8335        .48967E-03   -1.5405    
   8  Prefactor     8.6013        6.4989        .13666E-03   -1.5121    
   9  Prefactor     .10000E-03    13.981        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     1.7159        3.5857        .21601E-03   -1.5446    
  11  norm          2.2236        1.7854        .97460E-04   -1.5410    
  12  norm          1.4747        .60087        .38909E-04   -1.5465    
  13  Prefactor     26.317        27.824        .78032E-04   -1.4682    
  14  Prefactor     .10000E-03    5.2304        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .69812        1.7335        .16931E-03   -1.5541    
  16  Prefactor     9.0078        19.579        .13341E-03   -1.5108    
  17  Prefactor     .10000E-03    3.0989        .14340E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          5.9034        6.6846        .16527E-03   -1.5222    
  19  Prefactor     4.6539        2.5664        .95831E-04   -1.5276    
  20  Prefactor     .10000E-03    21.164        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     14.515        5.5391        .10512E-03   -1.4946    
  22  Normalizat    .85793        .18379        .26944E-03   -.97955    
  23  Prefactor     .90539        .13556        .20146E-03   -.95953    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.20574e-09
Minuit parameter uncertainties:
  1  1.18912e-06
  2  3.80064e-06
  3  24.949
  4  3.09328e-05
  5  10.0093
  6  10.0432
  7  1.83351
  8  6.49942
  9  1.65601e-05
  10  3.58611
  11  1.78545
  12  0.600871
  13  27.8374
  14  1.19865e-05
  15  1.7336
  16  19.5929
  17  2.26206e-05
  18  6.6854
  19  2.56645
  20  4.74034e-05
  21  5.53932
  22  0.183926
  23  0.135611
Done.

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

Extracting fit parameters...

4FGL J0809.3+4053
   Spectrum: PowerLaw
269    Prefactor:  1.716e+00  3.586e+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.054e-01  1.356e-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:  8.579e-01  1.839e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 0.28
Ra Dec: 122.330 40.895
Photon Flux Upper Limit: 8.53e-08 ph cm-2 s-1
Energy Flux Upper Limit: 6.67e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/230988/likelihoodResults_470016001_470275201_4FGL_J0809.3+4053_daily_bin890.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) = 6974.28770261
delta logL = 0.014799178789

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6974.28179804
delta logL = 0.0207037544624

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    2.1790       1.0000         .10000E-03   10000.    
     2 'Index     '    2.3639       1.0000          .0000       10.000    
     3 'Normalizat'    .85957       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .90401       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=   6974.282     FROM MIGRAD    STATUS=CONVERGED     92 CALLS      247 TOTAL
                     EDM=   .16E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     2.1796        4.6321        .22933E-03   -.26472E-04
   2  Index         2.3637        1.0598        .14423E-01    .15488E-03
   3  Normalizat    .85955        .17433        .26920E-03    .14781E-05
   4  Prefactor     .90402        .13418        .20159E-03   -.95307E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 2.17964
  Index      = 2.36373
  Normalizat = 0.859548
  Prefactor  = 0.904018
 **********
 **   18 **HESSE 
 **********

 FCN=   6974.282     FROM HESSE     STATUS=OK            25 CALLS      272 TOTAL
                     EDM=   .10E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     2.1796        4.4829        .91734E-05   -1.5413    
   2  Index         2.3637        1.0270        .28847E-02   -.55537    
   3  Normalizat    .85955        .17445        .10768E-04   -.97896    
   4  Prefactor     .90402        .13424        .80637E-05   -.96001    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.01153e-12
Minuit parameter uncertainties:
  1  4.48358
  2  1.03725
  3  0.174564
  4  0.134286
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/230988': 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) = 6974.28179802
delta logL = 0.0207037754781

Extracting fit parameters...

4FGL J0809.3+4053
   Spectrum: PowerLaw
269    Prefactor:  2.180e+00  4.484e+00  1.000e-04  1.000e+04 ( 1.000e-12)
270        Index:  2.364e+00  1.037e+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.040e-01  1.343e-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:  8.595e-01  1.746e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 0.28
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/230988/cmap_HighResolution_470016001_470275201_4FGL_J0809.3+4053_daily_bin890.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='6.67e-03', job_status='DONE', photon_flux_upper_limit='8.53e-08', time_completed='2021-08-29 08:05:57.220239', job_id='230988', GAL2='0.90', fit_tolerance='1e-08', EG2='0.86', EG='0.86', time_epoch_completed='1630249557.22', return_code2='0', ts='0.28', comment='SUCCESS', return_code='0', GAL='0.91', dlogl='2.07e-02', ts2='0.33', photon_index_error='0.00', photon_index='2.59' WHERE bin_id='890' AND source_name='4FGL J0809.3+4053' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Aug 29 08:05:57 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0234>
Subject: Job 230988: <4FGL_J0809.3+4053_daily_bin890> in cluster <slac> Done

Job <4FGL_J0809.3+4053_daily_bin890> was submitted from host <rhel6-64q> by user <kocevski> in cluster <slac> at Sun Aug 29 07:50:35 2021
Job was executed on host(s) <bullet0234>, in queue <medium>, as user <kocevski> in cluster <slac> at Sun Aug 29 07:50:37 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:50:37 2021
Terminated at Sun Aug 29 08:05:57 2021
Results reported at Sun Aug 29 08:05:57 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0809.3+4053_daily_bin890 122.33 40.8954 470016001 470275201 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 :                                   747.01 sec.
    Max Memory :                                 1113 MB
    Average Memory :                             283.38 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   920 sec.
    Turnaround time :                            922 sec.

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

