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


Performing analysis on: 4FGL_J1309.4+4305_daily_bin997
RA = 197.363, Dec = 43.085
tmin = 497750401, tmax = 498009601
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='282966', job_status='RUN', time_executed='2021-09-07 01:10:29.016866', time_epoch_executed='1631002229.02' WHERE source_name='4FGL J1309.4+4305' and cadence='daily' and bin_id='997'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/282966

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/282966/ft1_4FGL_J1309.4+4305_daily_bin997.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/282966/ft2_4FGL_J1309.4+4305_daily_bin997.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/282966/ft1_4FGL_J1309.4+4305_daily_bin997.fits outfile=/scratch/kocevski/282966/ft1_filteredMKT_4FGL_J1309.4+4305_daily_bin997.fits ra=197.363 dec=43.085 rad=12.0 tmin=497750401.0 tmax=498009601.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.74
user 4.45
sys 0.25

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/282966/ft2_4FGL_J1309.4+4305_daily_bin997.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/282966/ft1_filteredMKT_4FGL_J1309.4+4305_daily_bin997.fits evtable="EVENTS" outfile="/scratch/kocevski/282966/ft1_filtered_4FGL_J1309.4+4305_daily_bin997.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.56
user 0.35
sys 0.17

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/282966/ft1_filtered_4FGL_J1309.4+4305_daily_bin997.fits" evtable="EVENTS" scfile=/scratch/kocevski/282966/ft2_4FGL_J1309.4+4305_daily_bin997.fits sctable="SC_DATA" outfile=/scratch/kocevski/282966/ltcube_497750401_498009601_4FGL_J1309.4+4305_daily_bin997.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/282966/ft2_4FGL_J1309.4+4305_daily_bin997.fits
.....................!
real 16.16
user 15.77
sys 0.34

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/282966/ft1_filtered_4FGL_J1309.4+4305_daily_bin997.fits evtable="EVENTS" scfile=/scratch/kocevski/282966/ft2_4FGL_J1309.4+4305_daily_bin997.fits sctable="SC_DATA" expcube=/scratch/kocevski/282966/ltcube_497750401_498009601_4FGL_J1309.4+4305_daily_bin997.fits outfile=/scratch/kocevski/282966/expmap_497750401_498009601_4FGL_J1309.4+4305_daily_bin997.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/282966/ltcube_497750401_498009601_4FGL_J1309.4+4305_daily_bin997.fits
.....................!
real 192.86
user 187.82
sys 4.65

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/282966/ft1_filtered_4FGL_J1309.4+4305_daily_bin997.fits scfile=/scratch/kocevski/282966/ft2_4FGL_J1309.4+4305_daily_bin997.fits outfile=/scratch/kocevski/282966/cmap_497750401_498009601_4FGL_J1309.4+4305_daily_bin997.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.60
user 0.37
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/282966/ft1_filtered_4FGL_J1309.4+4305_daily_bin997.fits scfile=/scratch/kocevski/282966/ft2_4FGL_J1309.4+4305_daily_bin997.fits outfile=/scratch/kocevski/282966/cmap_HighResolution_497750401_498009601_4FGL_J1309.4+4305_daily_bin997.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.56
user 0.39
sys 0.16

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

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/282966/ft1_filtered_4FGL_J1309.4+4305_daily_bin997.fits', '/scratch/kocevski/282966/ft2_4FGL_J1309.4+4305_daily_bin997.fits', expMap='/scratch/kocevski/282966/expmap_497750401_498009601_4FGL_J1309.4+4305_daily_bin997.fits', expCube='/scratch/kocevski/282966/ltcube_497750401_498009601_4FGL_J1309.4+4305_daily_bin997.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/282966/Model_4FGL_J1309.4+4305_daily_bin997.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/282966/ft1_filtered_4FGL_J1309.4+4305_daily_bin997.fits
Spacecraft file(s): /scratch/kocevski/282966/ft2_4FGL_J1309.4+4305_daily_bin997.fits
Exposure map: /scratch/kocevski/282966/expmap_497750401_498009601_4FGL_J1309.4+4305_daily_bin997.fits
Exposure cube: /scratch/kocevski/282966/ltcube_497750401_498009601_4FGL_J1309.4+4305_daily_bin997.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/282966/Model_4FGL_J1309.4+4305_daily_bin997.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) = 5703.3100836

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    13.224       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10048E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    23.411       1.0000         .10000E-03   10000.    
     5 'norm      '    5.1191       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10038E-03   1.0000         .10000E-03   10000.    
     7 'norm      '    14.603       1.0000         .10000E-03   10000.    
     8 'Prefactor '    12.095       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .40010E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    20.971       1.0000         .10000E-03   10000.    
    11 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    14.117       1.0000         .10000E-03   10000.    
    13 'norm      '    .10007E-03   1.0000         .10000E-03   10000.    
    14 'norm      '    .10005E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    .10014E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    4.0632       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10053E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    48.712       1.0000         .10000E-03   10000.    
    19 'Prefactor '    59.108       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10255E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    6.7222       1.0000         .10000E-03   10000.    
    22 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    21.489       1.0000         .10000E-03   10000.    
    24 'norm      '    3.2457       1.0000         .10000E-03   10000.    
    25 'norm      '    .13541E-03   1.0000         .10000E-03   10000.    
    26 'Normalizat'    1.0746       1.0000         .10000E-01   10.000    
    27 'Prefactor '    .70632       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=   5703.295     FROM MIGRAD    STATUS=CONVERGED    658 CALLS     3282 TOTAL
                     EDM=   .16E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .6%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          13.229        7.3589        .11459E-06    .38790E-04
   2  Prefactor     .10000E-03    6.3616       -.99090E-07** at limit **
   3  Prefactor     .10000E-03    7.1837       -.31495E-06** at limit **
   4  Prefactor     23.421        25.360       -.26355E-04    .15613E-04
   5  norm          5.1189        2.3074       -.30044E-06    .13694E-03
   6  Prefactor     .10001E-03    8.2348        .14910E-05** at limit **
   7  norm          14.597        5.8055       -.37090E-06    .52162E-03
   8  Prefactor     12.010        53.936        .13119E-06    .18506E-04
   9  Prefactor     .10000E-03    63.821       -.13475E-04** at limit **
  10  Prefactor     20.977        16.389       -.36159E-06    .13009E-03
  11  norm          .10000E-03    1.5655        .28695E-07** at limit **
  12  norm          14.121        11.276       -.16038E-05    .52588E-04
  13  norm          .10000E-03    .79017       -.12781E-07** at limit **
  14  norm          .10000E-03    1.3912        .35699E-08** at limit **
  15  norm          .10000E-03    1.8022        .53082E-07** at limit **
  16  Prefactor     4.0629        2.9231        .15669E-06    .18632E-03
  17  Prefactor     .10000E-03    5.2292       -.78468E-07** at limit **
  18  Prefactor     48.810        47.169       -.33714E-06    .22587E-03
  19  Prefactor     59.131        41.893       -.10169E-04    .36064E-04
  20  Prefactor     .10000E-03    4.3154       -.92822E-07** at limit **
  21  Prefactor     6.6525        64.185       -.54466E-04   -.79433E-06
  22  norm          .10000E-03    .87092        .37799E-07** at limit **
  23  Prefactor     21.390        67.354       -.71812E-04    .31811E-04
  24  norm          3.2471        1.5639        .40033E-06    .78217E-03
  25  norm          .10000E-03    28.267        .82045E-06** at limit **
  26  Normalizat    1.0739        .16271        .10336E-04   -.24022E-03
  27  Prefactor     .70719        .18632       -.56542E-06    .46953E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 13.2287
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 23.4209
  norm       = 5.11891
  Prefactor  = 0.000100005
  norm       = 14.5967
  Prefactor  = 12.0101
  Prefactor  = 0.000100001
  Prefactor  = 20.9768
  norm       = 0.0001
  norm       = 14.1212
  norm       = 0.0001
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 4.06292
  Prefactor  = 0.0001
  Prefactor  = 48.8099
  Prefactor  = 59.1314
  Prefactor  = 0.0001
  Prefactor  = 6.6525
  norm       = 0.0001
  Prefactor  = 21.3899
  norm       = 3.24709
  norm       = 0.0001
  Normalizat = 1.07387
  Prefactor  = 0.707191
 **********
 **   18 **HESSE 
 **********

 FCN=   5703.295     FROM HESSE     STATUS=OK           480 CALLS     3762 TOTAL
                     EDM=   .41E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          13.229        7.3612        .11015E-03   -1.4980    
   2  Prefactor     .10000E-03    6.3680        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    7.1960        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     23.421        25.371        .82786E-04   -1.4740    
   5  norm          5.1189        2.3084        .74741E-04   -1.5255    
   6  Prefactor     .10001E-03    8.4004        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          14.597        5.7855        .10481E-03   -1.4944    
   8  Prefactor     12.010        53.932        .11518E-03   -1.5015    
   9  Prefactor     .10000E-03    66.025        .42527E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     20.977        16.389        .87465E-04   -1.4792    
  11  norm          .10000E-03    1.5674        .92235E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          14.121        11.272        .10660E-03   -1.4956    
  13  norm          .10000E-03    .79252        .65545E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          .10000E-03    1.3922        .86989E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          .10000E-03    1.8143        .98847E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     4.0629        2.9185        .10409E-03   -1.5305    
  17  Prefactor     .10000E-03    5.2484        .16859E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     48.810        46.560        .57454E-04   -1.4310    
  19  Prefactor     59.131        41.874        .26092E-03   -1.4169    
  20  Prefactor     .10000E-03    4.3221        .15321E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     6.6525        62.576        .15476E-03   -1.5192    
  22  norm          .10000E-03    .87343        .68820E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     21.390        67.525        .86406E-04   -1.4783    
  24  norm          3.2471        1.5618        .61711E-04   -1.5348    
  25  norm          .10000E-03    29.053        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  Normalizat    1.0739        .18621        .20738E-03   -.90595    
  27  Prefactor     .70719        .21276        .30803E-03   -1.0325    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.11756e-09
Minuit parameter uncertainties:
  1  7.36168
  2  3.34387e-05
  3  3.95327e-05
  4  25.3828
  5  2.30843
  6  0.000422319
  7  5.78572
  8  50.9774
  9  0.000444211
  10  16.3927
  11  3.59164e-06
  12  11.2736
  13  8.59562e-07
  14  1.01169e-06
  15  5.50424e-06
  16  2.91856
  17  7.35285e-07
  18  46.5945
  19  41.8945
  20  5.6673e-06
  21  40.8624
  22  1.17179e-06
  23  67.7675
  24  1.56178
  25  0.000160282
  26  0.186321
  27  0.213006
Done.

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

Extracting fit parameters...

4FGL J1309.4+4305
   Spectrum: LogParabola
349         norm:  1.412e+01  1.127e+01  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:  7.072e-01  2.130e-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.074e+00  1.863e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 8.13
Ra Dec: 197.363 43.085
Photon Index (Fixed Index): 1.77 +/- 0.00
Photon Flux (Fixed Index): 1.48e-08 +/- 1.18e-08
Energy Flux (Fixed Index): 1.63e-05 +/- 1.30e-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) = 5703.2932143
delta logL = 0.00205486461255

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5703.2931796
delta logL = 0.00208956568349

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    14.104       1.0000         .10000E-03   10000.    
     2 'alpha     '    1.7180       1.0000          .0000       5.0000    
     3 'Normalizat'    1.0747       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .70688       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=   5703.293     FROM MIGRAD    STATUS=CONVERGED     56 CALLS      226 TOTAL
                     EDM=   .82E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          14.086        439.67        .26663E-02   -.12301E-04
   2  alpha         1.7165        3.8693        .44039       -.90574E-05
   3  Normalizat    1.0748        .22608        .39136E-01    .31984E-05
   4  Prefactor     .70689        .12141        .69624E-01    .19859E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 14.0855
  alpha      = 1.71645
  Normalizat = 1.07478
  Prefactor  = 0.706893
 **********
 **   18 **HESSE 
 **********

 FCN=   5703.293     FROM HESSE     STATUS=OK            33 CALLS      259 TOTAL
                     EDM=   .26E-12    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          14.086        11.264        .10665E-03   -1.4957    
   2  alpha         1.7165        .78733        .19005E-01   -.31879    
   3  Normalizat    1.0748        .17009        .20730E-03   -.90566    
   4  Prefactor     .70689        .20905        .30810E-03   -1.0326    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.61036e-13
Minuit parameter uncertainties:
  1  11.2653
  2  0.802523
  3  0.170174
  4  0.209283
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/282966': 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) = 5703.29317661
delta logL = 0.00209255544451

Extracting fit parameters...

4FGL J1309.4+4305
   Spectrum: LogParabola
349         norm:  1.409e+01  1.127e+01  1.000e-04  1.000e+04 ( 1.000e-13)
350        alpha:  1.716e+00  8.025e-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:  7.069e-01  2.093e-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.075e+00  1.702e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 8.14
Ra Dec: 197.363 43.085
Photon Index (Free Index): 1.72 +/- 0.80
Photon Flux (Free Index): 1.38e-08 +/- 1.76e-08
Energy Flux (Free Index): 1.73e-05 +/- 2.17e-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/282966/cmap_HighResolution_497750401_498009601_4FGL_J1309.4+4305_daily_bin997.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='1.48e-08', energy_flux2='1.73e-05', photon_flux_error='1.18e-08', dlogl='2.09e-03', energy_flux='1.63e-05', photon_flux2='1.38e-08', job_status='DONE', time_completed='2021-09-07 01:22:27.359922', photon_index_error2='0.80', photon_index2='1.72', ts='8.13', fit_tolerance='1e-08', GAL='0.71', photon_index_error='0.00', energy_flux_error2='2.17e-05', EG='1.07', time_epoch_completed='1631002947.36', return_code='0', job_id='282966', GAL2='0.71', EG2='1.07', return_code2='0', energy_flux_error='1.30e-05', photon_flux_error2='1.76e-08', ts2='8.14', photon_index='1.77' WHERE bin_id='997' AND source_name='4FGL J1309.4+4305' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Sep  7 01:22:27 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0161>
Subject: Job 282966: <4FGL_J1309.4+4305_daily_bin997> in cluster <slac> Done

Job <4FGL_J1309.4+4305_daily_bin997> was submitted from host <rhel6-64a> by user <kocevski> in cluster <slac> at Tue Sep  7 01:07:33 2021
Job was executed on host(s) <bullet0161>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Sep  7 01:07:41 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Tue Sep  7 01:07:41 2021
Terminated at Tue Sep  7 01:22:28 2021
Results reported at Tue Sep  7 01:22:28 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1309.4+4305_daily_bin997 197.363 43.085 497750401 498009601 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 :                                   716.21 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             258.04 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   887 sec.
    Turnaround time :                            895 sec.

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

