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


Performing analysis on: 4FGL_J0809.3+4053_daily_bin579
RA = 122.33, Dec = 40.8954
tmin = 389404801, tmax = 389664001
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='229298', job_status='RUN', time_executed='2021-08-29 07:47:38.176697', time_epoch_executed='1630248458.18' WHERE source_name='4FGL J0809.3+4053' and cadence='daily' and bin_id='579'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/229298

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/229298/ft1_4FGL_J0809.3+4053_daily_bin579.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/229298/ft2_4FGL_J0809.3+4053_daily_bin579.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/229298/ft1_4FGL_J0809.3+4053_daily_bin579.fits outfile=/scratch/kocevski/229298/ft1_filteredMKT_4FGL_J0809.3+4053_daily_bin579.fits ra=122.33 dec=40.8954 rad=12.0 tmin=389404801.0 tmax=389664001.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.68
user 3.85
sys 0.80

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/229298/ft2_4FGL_J0809.3+4053_daily_bin579.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/229298/ft1_filteredMKT_4FGL_J0809.3+4053_daily_bin579.fits evtable="EVENTS" outfile="/scratch/kocevski/229298/ft1_filtered_4FGL_J0809.3+4053_daily_bin579.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 1.04
user 0.35
sys 0.65

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/229298/ft1_filtered_4FGL_J0809.3+4053_daily_bin579.fits" evtable="EVENTS" scfile=/scratch/kocevski/229298/ft2_4FGL_J0809.3+4053_daily_bin579.fits sctable="SC_DATA" outfile=/scratch/kocevski/229298/ltcube_389404801_389664001_4FGL_J0809.3+4053_daily_bin579.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/229298/ft2_4FGL_J0809.3+4053_daily_bin579.fits
.....................!
real 12.59
user 11.60
sys 0.92

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/229298/ft1_filtered_4FGL_J0809.3+4053_daily_bin579.fits evtable="EVENTS" scfile=/scratch/kocevski/229298/ft2_4FGL_J0809.3+4053_daily_bin579.fits sctable="SC_DATA" expcube=/scratch/kocevski/229298/ltcube_389404801_389664001_4FGL_J0809.3+4053_daily_bin579.fits outfile=/scratch/kocevski/229298/expmap_389404801_389664001_4FGL_J0809.3+4053_daily_bin579.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/229298/ltcube_389404801_389664001_4FGL_J0809.3+4053_daily_bin579.fits
.....................!
real 192.31
user 186.58
sys 5.18

Generating the xml model:
radLim = 0.001
maxRad = 12
normsOnly = True
freeVariableSources = True
Fixing all sources to their catalog values, except variable sources
Creating file and adding sources from 4FGL
Added 188 point sources and 0 extended sources

Setting source of interest to:
4FGL J0809.3+4053 @ 122.33 40.8954

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/229298/ft1_filtered_4FGL_J0809.3+4053_daily_bin579.fits scfile=/scratch/kocevski/229298/ft2_4FGL_J0809.3+4053_daily_bin579.fits outfile=/scratch/kocevski/229298/cmap_389404801_389664001_4FGL_J0809.3+4053_daily_bin579.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 1.14
user 0.37
sys 0.74

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/229298/ft1_filtered_4FGL_J0809.3+4053_daily_bin579.fits scfile=/scratch/kocevski/229298/ft2_4FGL_J0809.3+4053_daily_bin579.fits outfile=/scratch/kocevski/229298/cmap_HighResolution_389404801_389664001_4FGL_J0809.3+4053_daily_bin579.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 1.05
user 0.37
sys 0.66

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    5.8098       1.0000         .10000E-03   10000.    
     2 'Prefactor '    9.4585       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     6 'norm      '    .66400       1.0000         .10000E-03   10000.    
     7 'norm      '    1.7142       1.0000         .10000E-03   10000.    
     8 'Prefactor '    3.6191       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .43185E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    .63876       1.0000         .10000E-03   10000.    
    12 'norm      '    .10128E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    1.8559       1.0000         .10000E-03   10000.    
    14 'Prefactor '    1.2757       1.0000         .10000E-03   10000.    
    15 'Prefactor '    5.1676       1.0000         .10000E-03   10000.    
    16 'Prefactor '    14.500       1.0000         .10000E-03   10000.    
    17 'Prefactor '    1.8929       1.0000         .10000E-03   10000.    
    18 'norm      '    .56034       1.0000         .10000E-03   10000.    
    19 'Prefactor '    1.6983       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10011E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    22 'Normalizat'    1.2657       1.0000         .10000E-01   10.000    
    23 'Prefactor '    .90950       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.
 MACHINE ACCURACY LIMITS FURTHER IMPROVEMENT.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   8074.305     FROM MIGRAD    STATUS=CONVERGED    528 CALLS     2602 TOTAL
                     EDM=   .42E-05    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          5.8106        7.4345         .0000        .51462E-02
   2  Prefactor     9.4578        9.5665         .0000        .77380E-04
   3  Prefactor     .10000E-03    11.238         .0000    ** at limit **
   4  Prefactor     .10000E-03    2.5707         .0000    ** at limit **
   5  Prefactor     .10000E-03    15.831         .0000    ** at limit **
   6  norm          .66171        7.4388         .0000        .34198E-03
   7  norm          1.7142        1.5068         .0000       -.18002E-03
   8  Prefactor     3.6180        6.1968         .0000        .12706E-02
   9  Prefactor     .10328E-03    13.286         .0000    ** at limit **
  10  Prefactor     .10000E-03    1.9241         .0000    ** at limit **
  11  norm          .63877        .71908         .0000       -.32491E-03
  12  norm          .10000E-03    .33434         .0000    ** at limit **
  13  Prefactor     1.8176        94.238         .0000        .10096E-02
  14  Prefactor     1.2701        49.975         .0000        .66335E-02
  15  Prefactor     5.1672        3.7463         .0000        .36356E-03
  16  Prefactor     14.495        31.581         .0000        .10843E-02
  17  Prefactor     1.8920        7.7266         .0000        .11528E-01
  18  norm          .56008        8.1469         .0000        .46302E-01
  19  Prefactor     1.6982        1.7059         .0000       -.91852E-04
  20  Prefactor     .10000E-03    19.609         .0000    ** at limit **
  21  Prefactor     .10000E-03    .78031         .0000    ** at limit **
  22  Normalizat    1.2659        .17047         .0000       -.94372E-05
  23  Prefactor     .90937        .12360         .0000       -.17626E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 5.81055
  Prefactor  = 9.45775
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.661711
  norm       = 1.71422
  Prefactor  = 3.61801
  Prefactor  = 0.000103278
  Prefactor  = 0.0001
  norm       = 0.638768
  norm       = 0.0001
  Prefactor  = 1.8176
  Prefactor  = 1.27008
  Prefactor  = 5.16722
  Prefactor  = 14.4945
  Prefactor  = 1.89201
  norm       = 0.560075
  Prefactor  = 1.69816
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Normalizat = 1.26586
  Prefactor  = 0.909367
 **********
 **   18 **HESSE 
 **********

 FCN=   8074.305     FROM HESSE     STATUS=OK           380 CALLS     2982 TOTAL
                     EDM=   .12E-06    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          5.8106        7.4437        .83311E-03   -1.5226    
   2  Prefactor     9.4578        9.5622        .13031E-03   -1.5093    
   3  Prefactor     .10000E-03    11.254        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    2.5738        .14069E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    16.043        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          .66171        39.350        .46365E-02   -1.5545    
   7  norm          1.7142        1.5190        .10053E-03   -1.5446    
   8  Prefactor     3.6180        6.0537        .21238E-03   -1.5328    
   9  Prefactor     .10328E-03    117.95        .61738E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    1.9471        .12155E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          .63877        .71383        .78895E-04   -1.5548    
  12  norm          .10000E-03    .78401        .96272E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     1.8176        94.909        .30596E-03   -1.5438    
  14  Prefactor     1.2701        42.650        .19672E-02   -1.5483    
  15  Prefactor     5.1672        3.5761        .11911E-03   -1.5253    
  16  Prefactor     14.495        30.829        .10519E-03   -1.4946    
  17  Prefactor     1.8920        7.5579        .15120E-02   -1.5433    
  18  norm          .56008        8.4639        .23029E-02   -1.5558    
  19  Prefactor     1.6982        1.7114        .11382E-03   -1.5447    
  20  Prefactor     .10000E-03    19.616        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10000E-03    .78106        .77515E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Normalizat    1.2659        .19743        .25457E-03   -.84591    
  23  Prefactor     .90937        .14403        .22095E-03   -.95815    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.19069e-07
Minuit parameter uncertainties:
  1  7.44491
  2  9.56371
  3  4.86484e-06
  4  4.49595e-07
  5  5.85108e-05
  6  10.2119
  7  1.51901
  8  6.05472
  9  0.039403
  10  3.48205e-07
  11  0.713837
  12  7.83878e-07
  13  26.3118
  14  14.7308
  15  3.57626
  16  30.8626
  17  7.56172
  18  4.35484
  19  1.71143
  20  0.000142372
  21  4.90486e-08
  22  0.197551
  23  0.144092
Done.

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

Extracting fit parameters...

4FGL J0809.3+4053
   Spectrum: PowerLaw
269    Prefactor:  1.000e-04  3.482e-07  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.094e-01  1.441e-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.266e+00  1.976e-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: 5.97e-08 ph cm-2 s-1
Energy Flux Upper Limit: 4.67e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/229298/likelihoodResults_389404801_389664001_4FGL_J0809.3+4053_daily_bin579.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) = 8074.30729219
delta logL = -0.00244552683216

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 8074.3048467
delta logL = -3.79968696507e-08

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.5824       1.0000          .0000       10.000    
     3 'Normalizat'    1.2659       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .90939       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=   8074.305     FROM MIGRAD    STATUS=FAILED        88 CALLS      239 TOTAL
                     EDM=   .30E-06    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10067E-03    225.67        .12173E-02** at limit **
   2  Index         2.4969        8.7300        .50000        .18490E-04
   3  Normalizat    1.2659        .54099E-01    .25457E-03   -.16568E-04
   4  Prefactor     .90937        .40757E-01    .22095E-03   -.13995E-04
                               ERR DEF=  .500    
 START SIMPLEX MINIMIZATION.    CONVERGENCE WHEN EDM .LT.   .20E-04
 SIMPLEX MINIMIZATION HAS CONVERGED.

 FCN=   8074.305     FROM SIMPLEX   STATUS=UNCHANGED    150 CALLS      389 TOTAL
                     EDM=   .96E-05    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10067E-03    225.67        .22668E-03** at limit **
   2  Index         2.4969        8.7300        .45061E-04    .18490E-04
   3  Normalizat    1.2659        .54099E-01    .16640E-05   -.16568E-04
   4  Prefactor     .90937        .40757E-01    .61220E-06   -.13995E-04
                               ERR DEF=  .500    

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   8074.305     FROM MIGRAD    STATUS=CONVERGED     41 CALLS      430 TOTAL
                     EDM=   .39E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    2.4124        .24346E-03** at limit **
   2  Index         2.3100        5.8334        .50000       -.13811E-06
   3  Normalizat    1.2659        .18686        .10183E-04    .14447E-03
   4  Prefactor     .90937        .14084        .88380E-05    .16825E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Index      = 2.31002
  Normalizat = 1.26586
  Prefactor  = 0.909368
 **********
 **   18 **HESSE 
 **********

 FCN=   8074.305     FROM HESSE     STATUS=OK            29 CALLS      459 TOTAL
                     EDM=   .33E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    2.0303        .48692E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.3100        5.1950        .50000       -.56806    
   3  Normalizat    1.2659        .18707        .20366E-05   -.84591    
   4  Prefactor     .90937        .14103        .17676E-05   -.95815    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.30485e-11
Minuit parameter uncertainties:
  1  4.26176e-06
  2  106.331
  3  0.187173
  4  0.141082
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/229298': 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) = 8074.30484577
delta logL = 8.85640474735e-07

Extracting fit parameters...

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

GAL_V02
   Spectrum: PowerLaw
599    Prefactor:  9.094e-01  1.411e-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.266e+00  1.872e-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/229298/cmap_HighResolution_389404801_389664001_4FGL_J0809.3+4053_daily_bin579.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='4.67e-03', job_status='DONE', photon_flux_upper_limit='5.97e-08', time_completed='2021-08-29 08:01:39.110216', job_id='229298', GAL2='0.91', fit_tolerance='1e-08', EG2='1.27', EG='1.27', time_epoch_completed='1630249299.11', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.91', dlogl='8.86e-07', ts2='-0.00', photon_index_error='0.00', photon_index='2.59' WHERE bin_id='579' AND source_name='4FGL J0809.3+4053' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Aug 29 08:01:39 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0057>
Subject: Job 229298: <4FGL_J0809.3+4053_daily_bin579> in cluster <slac> Done

Job <4FGL_J0809.3+4053_daily_bin579> was submitted from host <rhel6-64c> by user <kocevski> in cluster <slac> at Sun Aug 29 07:45:16 2021
Job was executed on host(s) <bullet0057>, in queue <medium>, as user <kocevski> in cluster <slac> at Sun Aug 29 07:45:18 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:45:18 2021
Terminated at Sun Aug 29 08:01:39 2021
Results reported at Sun Aug 29 08:01:39 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0809.3+4053_daily_bin579 122.33 40.8954 389404801 389664001 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 :                                   848.17 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             286.41 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   994 sec.
    Turnaround time :                            983 sec.

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

