/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 133 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 = 7474
number of fields = 22
No RA_SUN column yet. Adding RA_SUN/DEC_SUN columns.
Done.


Performing analysis on: 4FGL_J1309.4+4305_daily_bin54
RA = 197.363, Dec = 43.085
tmin = 253324801, tmax = 253584001
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='274125', job_status='RUN', time_executed='2021-09-07 00:43:46.589856', time_epoch_executed='1631000626.59' WHERE source_name='4FGL J1309.4+4305' and cadence='daily' and bin_id='54'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/274125

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/274125/ft1_4FGL_J1309.4+4305_daily_bin54.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/274125/ft2_4FGL_J1309.4+4305_daily_bin54.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/274125/ft1_4FGL_J1309.4+4305_daily_bin54.fits outfile=/scratch/kocevski/274125/ft1_filteredMKT_4FGL_J1309.4+4305_daily_bin54.fits ra=197.363 dec=43.085 rad=12.0 tmin=253324801.0 tmax=253584001.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 1.45
user 1.24
sys 0.17

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/274125/ft2_4FGL_J1309.4+4305_daily_bin54.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/274125/ft1_filteredMKT_4FGL_J1309.4+4305_daily_bin54.fits evtable="EVENTS" outfile="/scratch/kocevski/274125/ft1_filtered_4FGL_J1309.4+4305_daily_bin54.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.50
user 0.34
sys 0.15

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/274125/ft1_filtered_4FGL_J1309.4+4305_daily_bin54.fits" evtable="EVENTS" scfile=/scratch/kocevski/274125/ft2_4FGL_J1309.4+4305_daily_bin54.fits sctable="SC_DATA" outfile=/scratch/kocevski/274125/ltcube_253324801_253584001_4FGL_J1309.4+4305_daily_bin54.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/274125/ft2_4FGL_J1309.4+4305_daily_bin54.fits
.....................!
real 16.11
user 15.66
sys 0.33

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/274125/ft1_filtered_4FGL_J1309.4+4305_daily_bin54.fits evtable="EVENTS" scfile=/scratch/kocevski/274125/ft2_4FGL_J1309.4+4305_daily_bin54.fits sctable="SC_DATA" expcube=/scratch/kocevski/274125/ltcube_253324801_253584001_4FGL_J1309.4+4305_daily_bin54.fits outfile=/scratch/kocevski/274125/expmap_253324801_253584001_4FGL_J1309.4+4305_daily_bin54.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/274125/ltcube_253324801_253584001_4FGL_J1309.4+4305_daily_bin54.fits
.....................!
real 193.20
user 185.74
sys 5.38

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/274125/ft1_filtered_4FGL_J1309.4+4305_daily_bin54.fits scfile=/scratch/kocevski/274125/ft2_4FGL_J1309.4+4305_daily_bin54.fits outfile=/scratch/kocevski/274125/cmap_253324801_253584001_4FGL_J1309.4+4305_daily_bin54.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.54
user 0.38
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/274125/ft1_filtered_4FGL_J1309.4+4305_daily_bin54.fits scfile=/scratch/kocevski/274125/ft2_4FGL_J1309.4+4305_daily_bin54.fits outfile=/scratch/kocevski/274125/cmap_HighResolution_253324801_253584001_4FGL_J1309.4+4305_daily_bin54.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.55
user 0.40
sys 0.14

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10007E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     5 'norm      '    2.3004       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     7 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    14.370       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10013E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    4.7733       1.0000         .10000E-03   10000.    
    12 'norm      '    11.263       1.0000         .10000E-03   10000.    
    13 'norm      '    9.4506       1.0000         .10000E-03   10000.    
    14 'norm      '    .10149E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    .10014E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .47942       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .13125E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    5.2469       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    46.968       1.0000         .10000E-03   10000.    
    22 'norm      '    .34300       1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    24 'norm      '    1.0910       1.0000         .10000E-03   10000.    
    25 'norm      '    8.9181       1.0000         .10000E-03   10000.    
    26 'Normalizat'    1.3770       1.0000         .10000E-01   10.000    
    27 'Prefactor '    .42032       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=   4532.547     FROM MIGRAD    STATUS=CONVERGED    658 CALLS     3295 TOTAL
                     EDM=   .17E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.0%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    5.3201       -.18850E-06** at limit **
   2  Prefactor     .10000E-03    10.320       -.25030E-05** at limit **
   3  Prefactor     .10000E-03    14.527        .12587E-05** at limit **
   4  Prefactor     .10000E-03    9.4266        .16992E-05** at limit **
   5  norm          2.3003        1.7589       -.61377E-08    .63030E-04
   6  Prefactor     .10000E-03    4.7158        .96276E-07** at limit **
   7  norm          .10000E-03    1.4823        .34633E-07** at limit **
   8  Prefactor     14.319        32.834        .11265E-05   -.25483E-04
   9  Prefactor     .10000E-03    14.162        .15092E-06** at limit **
  10  Prefactor     .10000E-03    7.8793       -.21343E-05** at limit **
  11  norm          4.7733        4.1411       -.63267E-06   -.18263E-02
  12  norm          11.264        12.869        .23828E-09   -.14312E-04
  13  norm          9.4495        4.6339        .11859E-07   -.10947E-03
  14  norm          .10000E-03    8.1440        .73663E-06** at limit **
  15  norm          .10000E-03    1.0768       -.11853E-07** at limit **
  16  Prefactor     .47834        2.7456       -.19919E-06   -.91480E-03
  17  Prefactor     .10000E-03    6.2820        .51778E-06** at limit **
  18  Prefactor     .10000E-03    18.597       -.15323E-05** at limit **
  19  Prefactor     5.2360        158.13       -.24359E-04    .49554E-04
  20  Prefactor     .10000E-03    8.3663        .13266E-05** at limit **
  21  Prefactor     46.983        44.269        .65306E-05   -.87858E-04
  22  norm          .35180        2.7454       -.10646E-05   -.13821E-03
  23  Prefactor     .10000E-03    24.872        .47652E-06** at limit **
  24  norm          1.0873        1.9095       -.72360E-06   -.91088E-03
  25  norm          8.9165        10.944       -.48969E-06   -.36120E-03
  26  Normalizat    1.3774        .19113       -.26080E-06    .22582E-03
  27  Prefactor     .42004        .22989        .14448E-05    .50399E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 2.30034
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 14.3187
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 4.77328
  norm       = 11.2642
  norm       = 9.44946
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 0.478343
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 5.23603
  Prefactor  = 0.0001
  Prefactor  = 46.9829
  norm       = 0.351796
  Prefactor  = 0.0001
  norm       = 1.08729
  norm       = 8.91654
  Normalizat = 1.37739
  Prefactor  = 0.420045
 **********
 **   18 **HESSE 
 **********

 FCN=   4532.547     FROM HESSE     STATUS=OK           484 CALLS     3779 TOTAL
                     EDM=   .15E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    5.3983        .15162E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    10.276        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    14.559        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    9.3946        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          2.3003        1.7602        .76004E-04   -1.5405    
   6  Prefactor     .10000E-03    4.7608        .14273E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          .10000E-03    1.4851        .80041E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     14.319        32.773        .10566E-03   -1.4951    
   9  Prefactor     .10000E-03    14.198        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    7.8093        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          4.7733        4.3440        .64842E-03   -1.5271    
  12  norm          11.264        12.862        .11938E-03   -1.5037    
  13  norm          9.4495        4.5808        .96151E-04   -1.5093    
  14  norm          .10000E-03    8.2510        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          .10000E-03    1.0786        .68224E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .47834        2.7692        .20832E-03   -1.5570    
  17  Prefactor     .10000E-03    6.2944        .16473E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    18.631        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     5.2360        141.30        .17548E-03   -1.5250    
  20  Prefactor     .10000E-03    8.3561        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     46.983        43.558        .58507E-04   -1.4336    
  22  norm          .35180        9.2739        .21240E-02   -1.5589    
  23  Prefactor     .10000E-03    24.879        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  norm          1.0873        1.9127        .11508E-03   -1.5499    
  25  norm          8.9165        11.031        .67108E-03   -1.5111    
  26  Normalizat    1.3774        .20682        .18316E-03   -.81285    
  27  Prefactor     .42004        .24557        .37724E-03   -1.1580    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.50789e-08
Minuit parameter uncertainties:
  1  2.66598e-06
  2  8.9783e-05
  3  7.17185e-05
  4  5.99102e-05
  5  1.76019
  6  1.3722e-06
  7  1.39604e-07
  8  32.8144
  9  7.60759e-06
  10  8.55604e-05
  11  4.34428
  12  12.8655
  13  4.58097
  14  2.32758e-05
  15  2.43053e-06
  16  2.30178
  17  1.24167e-05
  18  4.85328e-05
  19  54.5439
  20  4.13386e-05
  21  43.5877
  22  3.6126
  23  1.78798e-05
  24  1.91285
  25  11.0337
  26  0.206948
  27  0.246192
Done.

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

Extracting fit parameters...

4FGL J1309.4+4305
   Spectrum: LogParabola
349         norm:  1.126e+01  1.287e+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:  4.200e-01  2.462e-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.377e+00  2.069e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 1.81
Ra Dec: 197.363 43.085
Photon Index (Fixed Index): 1.77 +/- 0.00
Photon Flux (Fixed Index): 1.18e-08 +/- 1.35e-08
Energy Flux (Fixed Index): 1.30e-05 +/- 1.48e-05

TS (Fixed Index): 1.81
Ra Dec: 197.363 43.085
Photon Flux Upper Limit: 5.21e-08 ph cm-2 s-1
Energy Flux Upper Limit: 5.72e-05 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/274125/likelihoodResults_253324801_253584001_4FGL_J1309.4+4305_daily_bin54.txt

Performing a free index iterative likelihood fit...

Freezing all point sources, except source of interest...

Done.

Freeing candidate source...
Done.

Fit tolerance = 1

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 4532.53406238
delta logL = 0.0131081936024

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 4532.53387836
delta logL = 0.0132922165358

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    11.238       1.0000         .10000E-03   10000.    
     2 'alpha     '    1.9219       1.0000          .0000       5.0000    
     3 'Normalizat'    1.3750       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .42074       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=   4532.534     FROM MIGRAD    STATUS=CONVERGED     55 CALLS      223 TOTAL
                     EDM=   .82E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          11.231        501.51        .29877E-02   -.20118E-04
   2  alpha         1.9212        3.3077        .42636       -.13909E-04
   3  Normalizat    1.3750        .10841        .31581E-01   -.38003E-03
   4  Prefactor     .42079        .84306E-01    .85069E-01   -.49436E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 11.2311
  alpha      = 1.92119
  Normalizat = 1.37499
  Prefactor  = 0.420789
 **********
 **   18 **HESSE 
 **********

 FCN=   4532.534     FROM HESSE     STATUS=OK            31 CALLS      254 TOTAL
                     EDM=   .24E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          11.231        12.672        .11951E-03   -1.5038    
   2  alpha         1.9212        .92224        .17812E-01   -.23364    
   3  Normalizat    1.3750        .20298        .18329E-03   -.81355    
   4  Prefactor     .42079        .24251        .37690E-03   -1.1576    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.37978e-10
Minuit parameter uncertainties:
  1  12.6753
  2  0.945906
  3  0.203103
  4  0.243107
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/274125': 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) = 4532.53387781
delta logL = 0.013292759314

Extracting fit parameters...

4FGL J1309.4+4305
   Spectrum: LogParabola
349         norm:  1.123e+01  1.268e+01  1.000e-04  1.000e+04 ( 1.000e-13)
350        alpha:  1.921e+00  9.459e-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:  4.208e-01  2.431e-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.375e+00  2.031e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 1.84
Ra Dec: 197.363 43.085
Photon Index (Free Index): 1.92 +/- 0.95
Photon Flux (Free Index): 1.44e-08 +/- 2.31e-08
Energy Flux (Free Index): 1.13e-05 +/- 1.56e-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/274125/cmap_HighResolution_253324801_253584001_4FGL_J1309.4+4305_daily_bin54.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='5.72e-05', comment='SUCCESS', photon_flux='1.18e-08', energy_flux2='1.13e-05', photon_flux_error='1.35e-08', dlogl='1.33e-02', energy_flux='1.30e-05', photon_flux2='1.44e-08', job_status='DONE', time_completed='2021-09-07 00:55:21.056649', photon_index_error2='0.95', photon_index2='1.92', ts='1.81', fit_tolerance='1e-08', GAL='0.42', photon_index_error='0.00', photon_flux_upper_limit='5.21e-08', energy_flux_error2='1.56e-05', EG='1.38', time_epoch_completed='1631001321.06', return_code='0', job_id='274125', GAL2='0.42', EG2='1.37', return_code2='0', energy_flux_error='1.48e-05', photon_flux_error2='2.31e-08', ts2='1.84', photon_index='1.77' WHERE bin_id='54' AND source_name='4FGL J1309.4+4305' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Sep  7 00:55:21 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0293>
Subject: Job 274125: <4FGL_J1309.4+4305_daily_bin54> in cluster <slac> Done

Job <4FGL_J1309.4+4305_daily_bin54> was submitted from host <rhel6-64j> by user <kocevski> in cluster <slac> at Tue Sep  7 00:40:46 2021
Job was executed on host(s) <bullet0293>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Sep  7 00:41:24 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:41:24 2021
Terminated at Tue Sep  7 00:55:21 2021
Results reported at Tue Sep  7 00:55:21 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1309.4+4305_daily_bin54 197.363 43.085 253324801 253584001 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 :                                   690.00 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             294.96 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   837 sec.
    Turnaround time :                            875 sec.

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

