/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 195 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 = 7424
number of fields = 27
No RA_SUN column yet. Adding RA_SUN/DEC_SUN columns.
Done.


Performing analysis on: 4FGL_J1309.4+4305_daily_bin172
RA = 197.363, Dec = 43.085
tmin = 283910401, tmax = 284169601
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='275403', job_status='RUN', time_executed='2021-09-07 00:50:24.220366', time_epoch_executed='1631001024.22' WHERE source_name='4FGL J1309.4+4305' and cadence='daily' and bin_id='172'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/275403

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/275403/ft1_4FGL_J1309.4+4305_daily_bin172.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/275403/ft2_4FGL_J1309.4+4305_daily_bin172.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/275403/ft1_4FGL_J1309.4+4305_daily_bin172.fits outfile=/scratch/kocevski/275403/ft1_filteredMKT_4FGL_J1309.4+4305_daily_bin172.fits ra=197.363 dec=43.085 rad=12.0 tmin=283910401.0 tmax=284169601.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.00
user 2.78
sys 0.20

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/275403/ft2_4FGL_J1309.4+4305_daily_bin172.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/275403/ft2_4FGL_J1309.4+4305_daily_bin172.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/275403/ft1_filteredMKT_4FGL_J1309.4+4305_daily_bin172.fits evtable="EVENTS" outfile="/scratch/kocevski/275403/ft1_filtered_4FGL_J1309.4+4305_daily_bin172.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.45
user 0.28
sys 0.16

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/275403/ft1_filtered_4FGL_J1309.4+4305_daily_bin172.fits" evtable="EVENTS" scfile=/scratch/kocevski/275403/ft2_4FGL_J1309.4+4305_daily_bin172.fits sctable="SC_DATA" outfile=/scratch/kocevski/275403/ltcube_283910401_284169601_4FGL_J1309.4+4305_daily_bin172.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/275403/ft2_4FGL_J1309.4+4305_daily_bin172.fits
.....................!
real 12.34
user 11.99
sys 0.32

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/275403/ft1_filtered_4FGL_J1309.4+4305_daily_bin172.fits evtable="EVENTS" scfile=/scratch/kocevski/275403/ft2_4FGL_J1309.4+4305_daily_bin172.fits sctable="SC_DATA" expcube=/scratch/kocevski/275403/ltcube_283910401_284169601_4FGL_J1309.4+4305_daily_bin172.fits outfile=/scratch/kocevski/275403/expmap_283910401_284169601_4FGL_J1309.4+4305_daily_bin172.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/275403/ltcube_283910401_284169601_4FGL_J1309.4+4305_daily_bin172.fits
.....................!
real 158.37
user 152.50
sys 5.32

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 208 point sources and 0 extended sources

Setting source of interest to:
4FGL J1309.4+4305 @ 197.363 43.085

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/275403/ft1_filtered_4FGL_J1309.4+4305_daily_bin172.fits scfile=/scratch/kocevski/275403/ft2_4FGL_J1309.4+4305_daily_bin172.fits outfile=/scratch/kocevski/275403/cmap_283910401_284169601_4FGL_J1309.4+4305_daily_bin172.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=197.363 yref=43.085 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.50
user 0.35
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/275403/ft1_filtered_4FGL_J1309.4+4305_daily_bin172.fits scfile=/scratch/kocevski/275403/ft2_4FGL_J1309.4+4305_daily_bin172.fits outfile=/scratch/kocevski/275403/cmap_HighResolution_283910401_284169601_4FGL_J1309.4+4305_daily_bin172.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=197.363 yref=43.085 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.51
user 0.37
sys 0.13

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/275403/ft1_filtered_4FGL_J1309.4+4305_daily_bin172.fits evtable="EVENTS" scfile=/scratch/kocevski/275403/ft2_4FGL_J1309.4+4305_daily_bin172.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/275403/Model_4FGL_J1309.4+4305_daily_bin172.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/275403/ft1_filtered_4FGL_J1309.4+4305_daily_bin172.fits.....................!
real 42.03
user 40.83
sys 1.03

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/275403/ft1_filtered_4FGL_J1309.4+4305_daily_bin172.fits', '/scratch/kocevski/275403/ft2_4FGL_J1309.4+4305_daily_bin172.fits', expMap='/scratch/kocevski/275403/expmap_283910401_284169601_4FGL_J1309.4+4305_daily_bin172.fits', expCube='/scratch/kocevski/275403/ltcube_283910401_284169601_4FGL_J1309.4+4305_daily_bin172.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/275403/Model_4FGL_J1309.4+4305_daily_bin172.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J1309.4+4305'

4FGL J1309.4+4305
   Spectrum: LogParabola
349         norm:  8.179e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-13)
350        alpha:  1.769e+00  0.000e+00  0.000e+00  5.000e+00 ( 1.000e+00) fixed
351         beta:  8.354e-02  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
352           Eb:  1.387e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/275403/ft1_filtered_4FGL_J1309.4+4305_daily_bin172.fits
Spacecraft file(s): /scratch/kocevski/275403/ft2_4FGL_J1309.4+4305_daily_bin172.fits
Exposure map: /scratch/kocevski/275403/expmap_283910401_284169601_4FGL_J1309.4+4305_daily_bin172.fits
Exposure cube: /scratch/kocevski/275403/ltcube_283910401_284169601_4FGL_J1309.4+4305_daily_bin172.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/275403/Model_4FGL_J1309.4+4305_daily_bin172.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) = 5763.5719378

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10018E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    7.9931       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10008E-03   1.0000         .10000E-03   10000.    
     5 'norm      '    2.8349       1.0000         .10000E-03   10000.    
     6 'Prefactor '    6.8303       1.0000         .10000E-03   10000.    
     7 'norm      '    .35376E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10034E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    15.597       1.0000         .10000E-03   10000.    
    11 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    9.2331       1.0000         .10000E-03   10000.    
    13 'norm      '    .10024E-03   1.0000         .10000E-03   10000.    
    14 'norm      '    7.6530       1.0000         .10000E-03   10000.    
    15 'norm      '    8.5644       1.0000         .10000E-03   10000.    
    16 'Prefactor '    3.2068       1.0000         .10000E-03   10000.    
    17 'Prefactor '    10.156       1.0000         .10000E-03   10000.    
    18 'Prefactor '    83.708       1.0000         .10000E-03   10000.    
    19 'Prefactor '    10.191       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10127E-03   1.0000         .10000E-03   10000.    
    22 'norm      '    3.0618       1.0000         .10000E-03   10000.    
    23 'Prefactor '    82.889       1.0000         .10000E-03   10000.    
    24 'norm      '    .11293E-03   1.0000         .10000E-03   10000.    
    25 'norm      '    1.5478       1.0000         .10000E-03   10000.    
    26 'Normalizat'    1.0633       1.0000         .10000E-01   10.000    
    27 'Prefactor '    .93914       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6660E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   5763.557     FROM MIGRAD    STATUS=CONVERGED    636 CALLS     3298 TOTAL
                     EDM=   .27E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  6.0%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    4.6794        .22080E-06** at limit **
   2  Prefactor     .10000E-03    16.023        .41512E-06** at limit **
   3  Prefactor     7.9975        15.434        .54979E-07   -.13952E-04
   4  Prefactor     .10000E-03    13.608        .80454E-07** at limit **
   5  norm          2.8348        2.0306        .32722E-07   -.27237E-04
   6  Prefactor     6.8295        6.2441        .88761E-07    .10326E-04
   7  norm          .10001E-03    2.3593        .67204E-06** at limit **
   8  Prefactor     .10000E-03    28.041        .17769E-06** at limit **
   9  Prefactor     .10000E-03    18.054       -.21050E-06** at limit **
  10  Prefactor     15.596        15.350        .14259E-06   -.31477E-05
  11  norm          .10000E-03    2.3438       -.73485E-07** at limit **
  12  norm          9.2330        9.3381        .28150E-07   -.90677E-05
  13  norm          .10000E-03    2.6392       -.12123E-06** at limit **
  14  norm          7.6534        6.4407        .21806E-06    .71364E-06
  15  norm          8.5645        4.4415        .77400E-09   -.85917E-04
  16  Prefactor     3.2085        4.5117       -.58927E-06   -.60526E-03
  17  Prefactor     10.155        12.144       -.46363E-08   -.61344E-04
  18  Prefactor     83.699        46.048        .41223E-06   -.71587E-04
  19  Prefactor     10.167        139.29        .83428E-05   -.19737E-05
  20  Prefactor     .10000E-03    16.140       -.62943E-06** at limit **
  21  Prefactor     .10000E-03    15.951       -.33523E-06** at limit **
  22  norm          3.0613        3.8229        .12841E-06   -.11835E-03
  23  Prefactor     82.879        79.823       -.78330E-06   -.29859E-04
  24  norm          .10000E-03    .68150       -.38684E-07** at limit **
  25  norm          1.5481        41.796        .15515E-04   -.44032E-04
  26  Normalizat    1.0633        .17942        .10405E-05    .19233E-04
  27  Prefactor     .93916        .21328       -.26994E-05   -.13661E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 7.99751
  Prefactor  = 0.0001
  norm       = 2.83483
  Prefactor  = 6.82952
  norm       = 0.000100011
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 15.5956
  norm       = 0.0001
  norm       = 9.23295
  norm       = 0.0001
  norm       = 7.65337
  norm       = 8.56447
  Prefactor  = 3.20854
  Prefactor  = 10.1553
  Prefactor  = 83.6995
  Prefactor  = 10.1671
  Prefactor  = 0.000100001
  Prefactor  = 0.0001
  norm       = 3.06127
  Prefactor  = 82.8793
  norm       = 0.0001
  norm       = 1.54813
  Normalizat = 1.06331
  Prefactor  = 0.939162
 **********
 **   18 **HESSE 
 **********

 FCN=   5763.557     FROM HESSE     STATUS=OK           492 CALLS     3790 TOTAL
                     EDM=   .88E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    4.7679        .16039E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    16.154        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     7.9975        15.424        .14182E-03   -1.5142    
   4  Prefactor     .10000E-03    13.694        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          2.8348        2.0308        .88702E-04   -1.5371    
   6  Prefactor     6.8295        6.2344        .15352E-03   -1.5185    
   7  norm          .10001E-03    29.846        .22197E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    28.075        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    18.083        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     15.596        15.336        .10142E-03   -1.4918    
  11  norm          .10000E-03    2.3484        .11343E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          9.2330        9.3408        .13190E-03   -1.5100    
  13  norm          .10000E-03    2.6598        .11997E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          7.6534        6.4132        .14496E-03   -1.5155    
  15  norm          8.5645        4.4396        .10933E-03   -1.5123    
  16  Prefactor     3.2085        4.4929        .15871E-03   -1.5350    
  17  Prefactor     10.155        12.104        .12574E-03   -1.5071    
  18  Prefactor     83.699        45.998        .43905E-04   -1.3876    
  19  Prefactor     10.167        139.32        .12552E-03   -1.5070    
  20  Prefactor     .10000E-03    16.273        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10000E-03    15.968        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  norm          3.0613        3.8061        .15791E-03   -1.5358    
  23  Prefactor     82.879        79.994        .44119E-04   -1.3885    
  24  norm          .10000E-03    5.6888        .11970E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  norm          1.5481        42.718        .17123E-02   -1.5459    
  26  Normalizat    1.0633        .21426        .22681E-03   -.90939    
  27  Prefactor     .93916        .25238        .29335E-03   -.94786    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 8.78058e-10
Minuit parameter uncertainties:
  1  2.85194e-05
  2  6.94281e-05
  3  15.4313
  4  3.74197e-05
  5  2.03085
  6  6.23498
  7  0.00115194
  8  2.3079e-05
  9  6.10222e-05
  10  15.3403
  11  6.82576e-06
  12  9.34224
  13  1.28293e-05
  14  6.41373
  15  4.43975
  16  4.49342
  17  12.1064
  18  46.0175
  19  75.4854
  20  0.000192097
  21  0.000131219
  22  3.80638
  23  80.0978
  24  1.47297e-05
  25  16.2768
  26  0.214439
  27  0.252698
Done.

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

Extracting fit parameters...

4FGL J1309.4+4305
   Spectrum: LogParabola
349         norm:  9.233e+00  9.342e+00  1.000e-04  1.000e+04 ( 1.000e-13)
350        alpha:  1.769e+00  0.000e+00  0.000e+00  5.000e+00 ( 1.000e+00) fixed
351         beta:  8.354e-02  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
352           Eb:  1.387e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
663    Prefactor:  9.392e-01  2.527e-01  0.000e+00  1.000e+01 ( 1.000e+00)
664        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
665        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
662   Normalization:  1.063e+00  2.144e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 5.09
Ra Dec: 197.363 43.085
Photon Index (Fixed Index): 1.77 +/- 0.00
Photon Flux (Fixed Index): 9.67e-09 +/- 9.79e-09
Energy Flux (Fixed Index): 1.06e-05 +/- 1.08e-05

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) = 5763.14809655
delta logL = 0.408615161475

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5763.10914002
delta logL = 0.447571698874

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    6.5917       1.0000         .10000E-03   10000.    
     2 'alpha     '    1.0622       1.0000          .0000       5.0000    
     3 'Normalizat'    1.0664       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .94005       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6660E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   5763.109     FROM MIGRAD    STATUS=CONVERGED     56 CALLS      209 TOTAL
                     EDM=   .47E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          6.5734        6.7016        .39076E-02   -.25771E-02
   2  alpha         1.0599        .52480        .45692       -.31676E-04
   3  Normalizat    1.0662        .17143        .39572E-01    .22003E-05
   4  Prefactor     .94015        .21073        .66283E-01    .16789E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 6.57342
  alpha      = 1.05986
  Normalizat = 1.06617
  Prefactor  = 0.940148
 **********
 **   18 **HESSE 
 **********

 FCN=   5763.109     FROM HESSE     STATUS=OK            33 CALLS      242 TOTAL
                     EDM=   .74E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          6.5734        8.3730        .78152E-03   -1.5195    
   2  alpha         1.0599        .68642        .19135E-01   -.61390    
   3  Normalizat    1.0662        .20370        .22652E-03   -.90846    
   4  Prefactor     .94015        .25017        .29318E-03   -.94752    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 7.3871e-12
Minuit parameter uncertainties:
  1  8.37449
  2  0.700032
  3  0.203852
  4  0.250476
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/275403': 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) = 5763.10913334
delta logL = 0.447578372252

Extracting fit parameters...

4FGL J1309.4+4305
   Spectrum: LogParabola
349         norm:  6.573e+00  8.374e+00  1.000e-04  1.000e+04 ( 1.000e-13)
350        alpha:  1.060e+00  7.000e-01  0.000e+00  5.000e+00 ( 1.000e+00)
351         beta:  8.354e-02  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
352           Eb:  1.387e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
663    Prefactor:  9.401e-01  2.505e-01  0.000e+00  1.000e+01 ( 1.000e+00)
664        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
665        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
662   Normalization:  1.066e+00  2.039e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 5.99
Ra Dec: 197.363 43.085
Photon Index (Free Index): 1.06 +/- 0.70
Photon Flux (Free Index): 4.49e-09 +/- 5.30e-09
Energy Flux (Free Index): 3.17e-05 +/- 4.87e-05

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/275403/cmap_HighResolution_283910401_284169601_4FGL_J1309.4+4305_daily_bin172.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='9.67e-09', energy_flux2='3.17e-05', photon_flux_error='9.79e-09', dlogl='4.48e-01', energy_flux='1.06e-05', photon_flux2='4.49e-09', job_status='DONE', time_completed='2021-09-07 01:00:08.051480', photon_index_error2='0.70', photon_index2='1.06', ts='5.09', fit_tolerance='1e-08', GAL='0.94', photon_index_error='0.00', energy_flux_error2='4.87e-05', EG='1.06', time_epoch_completed='1631001608.05', return_code='0', job_id='275403', GAL2='0.94', EG2='1.07', return_code2='0', energy_flux_error='1.08e-05', photon_flux_error2='5.30e-09', ts2='5.99', photon_index='1.77' WHERE bin_id='172' AND source_name='4FGL J1309.4+4305' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Sep  7 01:00:08 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0086>
Subject: Job 275403: <4FGL_J1309.4+4305_daily_bin172> in cluster <slac> Done

Job <4FGL_J1309.4+4305_daily_bin172> was submitted from host <rhel6-64p> by user <kocevski> in cluster <slac> at Tue Sep  7 00:45:27 2021
Job was executed on host(s) <bullet0086>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Sep  7 00:47:02 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Tue Sep  7 00:47:02 2021
Terminated at Tue Sep  7 01:00:08 2021
Results reported at Tue Sep  7 01:00:08 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1309.4+4305_daily_bin172 197.363 43.085 283910401 284169601 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J1309.4+4305 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   581.46 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             312.96 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   786 sec.
    Turnaround time :                            881 sec.

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

