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


Performing analysis on: 4FGL_J0809.3+4053_daily_bin454
RA = 122.33, Dec = 40.8954
tmin = 357004801, tmax = 357264001
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='228068', job_status='RUN', time_executed='2021-08-29 07:43:07.352719', time_epoch_executed='1630248187.35' WHERE source_name='4FGL J0809.3+4053' and cadence='daily' and bin_id='454'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/228068

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/228068/ft1_4FGL_J0809.3+4053_daily_bin454.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/228068/ft2_4FGL_J0809.3+4053_daily_bin454.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/228068/ft1_4FGL_J0809.3+4053_daily_bin454.fits outfile=/scratch/kocevski/228068/ft1_filteredMKT_4FGL_J0809.3+4053_daily_bin454.fits ra=122.33 dec=40.8954 rad=12.0 tmin=357004801.0 tmax=357264001.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.30
user 3.71
sys 0.55

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/228068/ft1_filtered_4FGL_J0809.3+4053_daily_bin454.fits" evtable="EVENTS" scfile=/scratch/kocevski/228068/ft2_4FGL_J0809.3+4053_daily_bin454.fits sctable="SC_DATA" outfile=/scratch/kocevski/228068/ltcube_357004801_357264001_4FGL_J0809.3+4053_daily_bin454.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/228068/ft2_4FGL_J0809.3+4053_daily_bin454.fits
.....................!
real 12.21
user 11.43
sys 0.69

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/228068/ft1_filtered_4FGL_J0809.3+4053_daily_bin454.fits evtable="EVENTS" scfile=/scratch/kocevski/228068/ft2_4FGL_J0809.3+4053_daily_bin454.fits sctable="SC_DATA" expcube=/scratch/kocevski/228068/ltcube_357004801_357264001_4FGL_J0809.3+4053_daily_bin454.fits outfile=/scratch/kocevski/228068/expmap_357004801_357264001_4FGL_J0809.3+4053_daily_bin454.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/228068/ltcube_357004801_357264001_4FGL_J0809.3+4053_daily_bin454.fits
.....................!
real 190.58
user 185.06
sys 5.16

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/228068/ft1_filtered_4FGL_J0809.3+4053_daily_bin454.fits scfile=/scratch/kocevski/228068/ft2_4FGL_J0809.3+4053_daily_bin454.fits outfile=/scratch/kocevski/228068/cmap_357004801_357264001_4FGL_J0809.3+4053_daily_bin454.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.88
user 0.37
sys 0.48

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/228068/ft1_filtered_4FGL_J0809.3+4053_daily_bin454.fits scfile=/scratch/kocevski/228068/ft2_4FGL_J0809.3+4053_daily_bin454.fits outfile=/scratch/kocevski/228068/cmap_HighResolution_357004801_357264001_4FGL_J0809.3+4053_daily_bin454.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.87
user 0.36
sys 0.50

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    12.573       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    9.3532       1.0000         .10000E-03   10000.    
     5 'Prefactor '    2.6272       1.0000         .10000E-03   10000.    
     6 'norm      '    2.5476       1.0000         .10000E-03   10000.    
     7 'norm      '    1.9836       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10916E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    15.643       1.0000         .10000E-03   10000.    
    10 'Prefactor '    2.3743       1.0000         .10000E-03   10000.    
    11 'norm      '    1.9478       1.0000         .10000E-03   10000.    
    12 'norm      '    .38628       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    1.9616       1.0000         .10000E-03   10000.    
    16 'Prefactor '    9.1457       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10042E-03   1.0000         .10000E-03   10000.    
    18 'norm      '    13.114       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .70200       1.0000         .10000E-03   10000.    
    20 'Prefactor '    22.060       1.0000         .10000E-03   10000.    
    21 'Prefactor '    2.6415       1.0000         .10000E-03   10000.    
    22 'Normalizat'    .88404       1.0000         .10000E-01   10.000    
    23 'Prefactor '    1.1411       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=   8125.481     FROM MIGRAD    STATUS=CONVERGED    485 CALLS     2521 TOTAL
                     EDM=   .36E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.2%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          12.574        7.7533        .98392E-07   -.79971E-05
   2  Prefactor     .10000E-03    4.4002        .70967E-07** at limit **
   3  Prefactor     .10000E-03    8.5059        .72500E-07** at limit **
   4  Prefactor     9.3538        7.6273        .60981E-07   -.87150E-05
   5  Prefactor     2.6200        11.205        .10847E-05   -.31651E-04
   6  norm          2.5477        6.3799        .72300E-06    .43016E-05
   7  norm          1.9839        1.6260        .47082E-08   -.11073E-04
   8  Prefactor     .10000E-03    6.8700        .12675E-05** at limit **
   9  Prefactor     15.660        32.037       -.46077E-06    .34142E-04
  10  Prefactor     2.3740        4.1809        .84933E-06   -.44298E-05
  11  norm          1.9478        1.3326        .25156E-07   -.74671E-05
  12  norm          .38659        .45573       -.54476E-07   -.37051E-03
  13  Prefactor     .10000E-03    8.4051        .66062E-07** at limit **
  14  Prefactor     .10000E-03    9.5385       -.57867E-06** at limit **
  15  Prefactor     1.9614        2.5763        .15430E-06   -.72789E-05
  16  Prefactor     9.1304        24.051       -.33247E-07   -.72567E-04
  17  Prefactor     .10000E-03    4.0769       -.62232E-06** at limit **
  18  norm          13.113        6.1218       -.18557E-06   -.16417E-03
  19  Prefactor     .70093        2.7378        .20447E-05   -.48463E-04
  20  Prefactor     22.059        43.403        .13312E-06   -.59982E-05
  21  Prefactor     2.6414        2.9055        .75923E-07   -.39551E-04
  22  Normalizat    .88407        .17413       -.10778E-05   -.10081E-03
  23  Prefactor     1.1410        .12919       -.43808E-07   -.17152E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 12.5738
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 9.35383
  Prefactor  = 2.62005
  norm       = 2.54775
  norm       = 1.98387
  Prefactor  = 0.0001
  Prefactor  = 15.6596
  Prefactor  = 2.37401
  norm       = 1.94782
  norm       = 0.386586
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 1.96141
  Prefactor  = 9.13035
  Prefactor  = 0.0001
  norm       = 13.1129
  Prefactor  = 0.700932
  Prefactor  = 22.0586
  Prefactor  = 2.64137
  Normalizat = 0.884075
  Prefactor  = 1.14103
 **********
 **   18 **HESSE 
 **********

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

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          12.574        7.7639        .11297E-03   -1.4999    
   2  Prefactor     .10000E-03    4.4168        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    8.5237        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     9.3538        7.6223        .13104E-03   -1.5096    
   5  Prefactor     2.6200        11.167        .25160E-03   -1.5384    
   6  norm          2.5477        6.3612        .25583E-03   -1.5389    
   7  norm          1.9839        1.6294        .10076E-03   -1.5426    
   8  Prefactor     .10000E-03    7.0078        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     15.660        31.850        .10127E-03   -1.4916    
  10  Prefactor     2.3740        4.1468        .22687E-03   -1.5400    
  11  norm          1.9478        1.3284        .83868E-04   -1.5429    
  12  norm          .38659        .41833        .61588E-03   -1.5584    
  13  Prefactor     .10000E-03    8.4134        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    9.6329        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     1.9614        2.5533        .15401E-03   -1.5428    
  16  Prefactor     9.1304        23.837        .13253E-03   -1.5104    
  17  Prefactor     .10000E-03    4.0876        .17741E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          13.113        6.1166        .11061E-03   -1.4984    
  19  Prefactor     .70093        2.7460        .27306E-03   -1.5541    
  20  Prefactor     22.059        43.400        .85281E-04   -1.4768    
  21  Prefactor     2.6414        2.8938        .15573E-03   -1.5383    
  22  Normalizat    .88407        .19964        .29235E-03   -.97022    
  23  Prefactor     1.1410        .14915        .20364E-03   -.88166    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.41315e-09
Minuit parameter uncertainties:
  1  7.76455
  2  7.12258e-06
  3  1.22698e-05
  4  7.62313
  5  10.8211
  6  6.3629
  7  1.62948
  8  1.41827e-05
  9  31.8847
  10  4.14731
  11  1.32846
  12  0.418338
  13  1.30752e-05
  14  1.2471e-05
  15  2.55341
  16  23.862
  17  7.16003e-07
  18  6.11685
  19  2.74654
  20  43.462
  21  2.89392
  22  0.199807
  23  0.149201
Done.

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

Extracting fit parameters...

4FGL J0809.3+4053
   Spectrum: PowerLaw
269    Prefactor:  2.374e+00  4.147e+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:  1.141e+00  1.492e-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.841e-01  1.998e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/228068/likelihoodResults_357004801_357264001_4FGL_J0809.3+4053_daily_bin454.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) = 8125.45465678
delta logL = 0.0264510115212

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 8125.44384347
delta logL = 0.0372643222709

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    1.7326       1.0000         .10000E-03   10000.    
     2 'Index     '    2.9770       1.0000          .0000       10.000    
     3 'Normalizat'    .87680       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.1451       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=   8125.444     FROM MIGRAD    STATUS=CONVERGED     90 CALLS      248 TOTAL
                     EDM=   .14E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     1.7353        4.4380        .17747E-03    .13286E-03
   2  Index         2.9762        1.6432        .88642E-03    .16070E-04
   3  Normalizat    .87683        .18923        .29344E-03   -.56177E-05
   4  Prefactor     1.1451        .14664        .20333E-03    .43053E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 1.73531
  Index      = 2.97615
  Normalizat = 0.876831
  Prefactor  = 1.14507
 **********
 **   18 **HESSE 
 **********

 FCN=   8125.444     FROM HESSE     STATUS=OK            23 CALLS      271 TOTAL
                     EDM=   .14E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     1.7353        4.2785        .70987E-05   -1.5445    
   2  Index         2.9762        1.5867        .35457E-04   -.41673    
   3  Normalizat    .87683        .18938        .11738E-04   -.97279    
   4  Prefactor     1.1451        .14671        .81330E-05   -.88039    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.42875e-11
Minuit parameter uncertainties:
  1  4.27923
  2  1.62036
  3  0.189524
  4  0.146765
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/228068': 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) = 8125.44384321
delta logL = 0.0372645822554

Extracting fit parameters...

4FGL J0809.3+4053
   Spectrum: PowerLaw
269    Prefactor:  1.735e+00  4.279e+00  1.000e-04  1.000e+04 ( 1.000e-12)
270        Index:  2.976e+00  1.620e+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:  1.145e+00  1.468e-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.768e-01  1.895e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 0.38
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/228068/cmap_HighResolution_357004801_357264001_4FGL_J0809.3+4053_daily_bin454.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='7.34e-03', job_status='DONE', photon_flux_upper_limit='9.38e-08', time_completed='2021-08-29 07:56:49.021352', job_id='228068', GAL2='1.15', fit_tolerance='1e-08', EG2='0.88', EG='0.88', time_epoch_completed='1630249009.02', return_code2='0', ts='0.38', comment='SUCCESS', return_code='0', GAL='1.14', dlogl='3.73e-02', ts2='0.46', photon_index_error='0.00', photon_index='2.59' WHERE bin_id='454' AND source_name='4FGL J0809.3+4053' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Aug 29 07:56:49 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0275>
Subject: Job 228068: <4FGL_J0809.3+4053_daily_bin454> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0809.3+4053_daily_bin454 122.33 40.8954 357004801 357264001 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 :                                   822.59 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             280.59 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   963 sec.
    Turnaround time :                            966 sec.

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

