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


Performing analysis on: 4FGL_J0809.3+4053_daily_bin539
RA = 122.33, Dec = 40.8954
tmin = 379036801, tmax = 379296001
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='228198', job_status='RUN', time_executed='2021-08-29 07:44:53.296718', time_epoch_executed='1630248293.3' WHERE source_name='4FGL J0809.3+4053' and cadence='daily' and bin_id='539'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/228198

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/228198/ft1_4FGL_J0809.3+4053_daily_bin539.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/228198/ft2_4FGL_J0809.3+4053_daily_bin539.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/228198/ft1_4FGL_J0809.3+4053_daily_bin539.fits outfile=/scratch/kocevski/228198/ft1_filteredMKT_4FGL_J0809.3+4053_daily_bin539.fits ra=122.33 dec=40.8954 rad=12.0 tmin=379036801.0 tmax=379296001.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 5.86
user 3.23
sys 2.56

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/228198/ft2_4FGL_J0809.3+4053_daily_bin539.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/228198/ft1_filteredMKT_4FGL_J0809.3+4053_daily_bin539.fits evtable="EVENTS" outfile="/scratch/kocevski/228198/ft1_filtered_4FGL_J0809.3+4053_daily_bin539.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 2.89
user 0.33
sys 2.51

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/228198/ft1_filtered_4FGL_J0809.3+4053_daily_bin539.fits" evtable="EVENTS" scfile=/scratch/kocevski/228198/ft2_4FGL_J0809.3+4053_daily_bin539.fits sctable="SC_DATA" outfile=/scratch/kocevski/228198/ltcube_379036801_379296001_4FGL_J0809.3+4053_daily_bin539.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/228198/ft2_4FGL_J0809.3+4053_daily_bin539.fits
.....................!
real 14.47
user 11.46
sys 2.96

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/228198/ft1_filtered_4FGL_J0809.3+4053_daily_bin539.fits evtable="EVENTS" scfile=/scratch/kocevski/228198/ft2_4FGL_J0809.3+4053_daily_bin539.fits sctable="SC_DATA" expcube=/scratch/kocevski/228198/ltcube_379036801_379296001_4FGL_J0809.3+4053_daily_bin539.fits outfile=/scratch/kocevski/228198/expmap_379036801_379296001_4FGL_J0809.3+4053_daily_bin539.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/228198/ltcube_379036801_379296001_4FGL_J0809.3+4053_daily_bin539.fits
.....................!
real 193.80
user 185.79
sys 7.59

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/228198/ft1_filtered_4FGL_J0809.3+4053_daily_bin539.fits scfile=/scratch/kocevski/228198/ft2_4FGL_J0809.3+4053_daily_bin539.fits outfile=/scratch/kocevski/228198/cmap_379036801_379296001_4FGL_J0809.3+4053_daily_bin539.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 2.88
user 0.39
sys 2.44

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/228198/ft1_filtered_4FGL_J0809.3+4053_daily_bin539.fits scfile=/scratch/kocevski/228198/ft2_4FGL_J0809.3+4053_daily_bin539.fits outfile=/scratch/kocevski/228198/cmap_HighResolution_379036801_379296001_4FGL_J0809.3+4053_daily_bin539.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 2.89
user 0.40
sys 2.43

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .47210       1.0000         .10000E-03   10000.    
     2 'Prefactor '    5.7283       1.0000         .10000E-03   10000.    
     3 'Prefactor '    36.340       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10009E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     6 'norm      '    11.261       1.0000         .10000E-03   10000.    
     7 'norm      '    1.9830       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    .10029E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    .79036       1.0000         .10000E-03   10000.    
    13 'Prefactor '    30.957       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    10.726       1.0000         .10000E-03   10000.    
    16 'Prefactor '    23.693       1.0000         .10000E-03   10000.    
    17 'Prefactor '    12.075       1.0000         .10000E-03   10000.    
    18 'norm      '    12.457       1.0000         .10000E-03   10000.    
    19 'Prefactor '    2.6883       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    22 'Normalizat'    1.0909       1.0000         .10000E-01   10.000    
    23 'Prefactor '    .69300       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=   5778.840     FROM MIGRAD    STATUS=CONVERGED    510 CALLS     2575 TOTAL
                     EDM=   .13E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  4.9%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .50447        21.513       -.22983E-04    .66367E-04
   2  Prefactor     5.7296        11.600        .12874E-05    .23918E-03
   3  Prefactor     36.344        29.465       -.77469E-06    .86427E-04
   4  Prefactor     .10000E-03    3.4994        .10773E-06** at limit **
   5  Prefactor     .10000E-03    8.1560       -.52872E-06** at limit **
   6  norm          11.262        9.4698        .33280E-06   -.58397E-04
   7  norm          1.9837        2.1507        .30968E-06    .96797E-03
   8  Prefactor     .10000E-03    2.6410        .46161E-07** at limit **
   9  Prefactor     .10000E-03    10.609        .20412E-05** at limit **
  10  Prefactor     .10000E-03    4.1277        .12221E-07** at limit **
  11  norm          .10000E-03    .98559        .52718E-07** at limit **
  12  norm          .79038        .55266        .75320E-07    .16971E-02
  13  Prefactor     30.960        26.487       -.54002E-06    .92781E-04
  14  Prefactor     .10000E-03    11.208       -.46017E-06** at limit **
  15  Prefactor     10.726        4.4073        .34499E-06    .76768E-03
  16  Prefactor     23.697        38.585       -.12671E-05    .97658E-04
  17  Prefactor     12.075        14.444        .73992E-06    .14856E-03
  18  norm          12.457        7.3060        .84409E-07    .10431E-03
  19  Prefactor     2.6884        3.1406        .41838E-06    .14349E-02
  20  Prefactor     .10000E-03    58.508        .11805E-05** at limit **
  21  Prefactor     .10000E-03    2.2803        .15844E-06** at limit **
  22  Normalizat    1.0910        .17902       -.31597E-05   -.35780E-03
  23  Prefactor     .69284        .12834        .27245E-05   -.29253E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 0.504468
  Prefactor  = 5.72965
  Prefactor  = 36.3441
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 11.2624
  norm       = 1.98371
  Prefactor  = 0.0001
  Prefactor  = 0.000100001
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 0.790384
  Prefactor  = 30.9596
  Prefactor  = 0.0001
  Prefactor  = 10.7264
  Prefactor  = 23.6968
  Prefactor  = 12.0754
  norm       = 12.4573
  Prefactor  = 2.68835
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Normalizat = 1.09099
  Prefactor  = 0.692839
 **********
 **   18 **HESSE 
 **********

 FCN=   5778.840     FROM HESSE     STATUS=OK           372 CALLS     2947 TOTAL
                     EDM=   .26E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .50447        21.792        .28854E-02   -1.5566    
   2  Prefactor     5.7296        11.679        .16782E-03   -1.5229    
   3  Prefactor     36.344        29.499        .66481E-04   -1.4502    
   4  Prefactor     .10000E-03    3.5046        .13886E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    8.2028        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          11.262        9.4869        .11938E-03   -1.5037    
   7  norm          1.9837        2.1455        .11276E-03   -1.5426    
   8  Prefactor     .10000E-03    2.6481        .12064E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    10.737        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    4.2457        .30117E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          .10000E-03    1.6746        .14695E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          .79038        .53644        .45292E-03   -1.5530    
  13  Prefactor     30.960        26.504        .72013E-04   -1.4595    
  14  Prefactor     .10000E-03    11.247        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     10.726        4.4334        .94450E-04   -1.5053    
  16  Prefactor     23.697        38.519        .82293E-04   -1.4734    
  17  Prefactor     12.075        14.439        .11528E-03   -1.5013    
  18  norm          12.457        7.3063        .11350E-03   -1.5002    
  19  Prefactor     2.6884        3.1443        .13936E-03   -1.5380    
  20  Prefactor     .10000E-03    58.784        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10000E-03    2.3138        .11209E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Normalizat    1.0910        .20644        .24301E-03   -.90041    
  23  Prefactor     .69284        .14575        .21788E-03   -1.0381    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.61062e-09
Minuit parameter uncertainties:
  1  6.63323
  2  11.684
  3  29.5106
  4  3.52646e-05
  5  0.000111764
  6  9.48819
  7  2.14562
  8  1.51083e-06
  9  0.000231657
  10  2.29495e-05
  11  1.00506e-06
  12  0.536444
  13  26.5143
  14  0.000101651
  15  4.43353
  16  38.5595
  17  14.4435
  18  7.30678
  19  3.14446
  20  0.000256968
  21  2.15412e-05
  22  0.206592
  23  0.145826
Done.

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

Extracting fit parameters...

4FGL J0809.3+4053
   Spectrum: PowerLaw
269    Prefactor:  1.000e-04  2.295e-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:  6.928e-01  1.458e-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.091e+00  2.066e-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: 8.16e-08 ph cm-2 s-1
Energy Flux Upper Limit: 6.38e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/228198/likelihoodResults_379036801_379296001_4FGL_J0809.3+4053_daily_bin539.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) = 5778.84137577
delta logL = -0.00112380915834

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5778.84025204
delta logL = -8.78990249475e-08

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10053E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.5999       1.0000          .0000       10.000    
     3 'Normalizat'    1.0910       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .69289       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=   5778.840     FROM MIGRAD    STATUS=CONVERGED     91 CALLS      242 TOTAL
                     EDM=   .15E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    4.3375        .30261E-03** at limit **
   2  Index         2.6119        6.3003        .50000       -.25285E-04
   3  Normalizat    1.0910        .19085        .24301E-03    .42712E-04
   4  Prefactor     .69284        .14008        .21788E-03    .41431E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100003
  Index      = 2.61193
  Normalizat = 1.091
  Prefactor  = 0.692839
 **********
 **   18 **HESSE 
 **********

 FCN=   5778.840     FROM HESSE     STATUS=OK            29 CALLS      271 TOTAL
                     EDM=   .13E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    4.2904        .60523E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.6119        6.2994        .50000       -.49794    
   3  Normalizat    1.0910        .19101        .97205E-05   -.90041    
   4  Prefactor     .69284        .14019        .87150E-05   -1.0381    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.32584e-09
Minuit parameter uncertainties:
  1  0.000220299
  2  4.39379
  3  0.191127
  4  0.140262
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/228198': 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) = 5778.84025182
delta logL = 1.37272763823e-07

Extracting fit parameters...

4FGL J0809.3+4053
   Spectrum: PowerLaw
269    Prefactor:  1.000e-04  2.203e-04  1.000e-04  1.000e+04 ( 1.000e-12)
270        Index:  2.612e+00  4.394e+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:  6.928e-01  1.403e-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.091e+00  1.911e-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  0.000e+00 [aplpy.core]
INFO: Auto-setting vmax to  0.000e+00 [aplpy.core]
Saving /scratch/kocevski/228198/cmap_HighResolution_379036801_379296001_4FGL_J0809.3+4053_daily_bin539.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='6.38e-03', job_status='DONE', photon_flux_upper_limit='8.16e-08', time_completed='2021-08-29 07:56:38.792235', job_id='228198', GAL2='0.69', fit_tolerance='1e-08', EG2='1.09', EG='1.09', time_epoch_completed='1630248998.79', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.69', dlogl='1.37e-07', ts2='-0.00', photon_index_error='0.00', photon_index='2.59' WHERE bin_id='539' AND source_name='4FGL J0809.3+4053' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Aug 29 07:56:38 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0093>
Subject: Job 228198: <4FGL_J0809.3+4053_daily_bin539> in cluster <slac> Done

Job <4FGL_J0809.3+4053_daily_bin539> was submitted from host <rhel6-64m> by user <kocevski> in cluster <slac> at Sun Aug 29 07:40:55 2021
Job was executed on host(s) <bullet0093>, 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:56:39 2021
Results reported at Sun Aug 29 07:56:39 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0809.3+4053_daily_bin539 122.33 40.8954 379036801 379296001 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 :                                   739.52 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             287.59 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   943 sec.
    Turnaround time :                            944 sec.

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

