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


Performing analysis on: 4FGL_J1309.4+4305_daily_bin623
RA = 197.363, Dec = 43.085
tmin = 400809601, tmax = 401068801
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='278375', job_status='RUN', time_executed='2021-09-07 00:59:23.824838', time_epoch_executed='1631001563.82' WHERE source_name='4FGL J1309.4+4305' and cadence='daily' and bin_id='623'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/278375

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

Retrieving the FT1 file...

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

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

Retrieving 48 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/278375/ft1_4FGL_J1309.4+4305_daily_bin623.fits


Retrieving the FT1 file...

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

Retrieving 48 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/278375/ft2_4FGL_J1309.4+4305_daily_bin623.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/278375/ft1_4FGL_J1309.4+4305_daily_bin623.fits outfile=/scratch/kocevski/278375/ft1_filteredMKT_4FGL_J1309.4+4305_daily_bin623.fits ra=197.363 dec=43.085 rad=12.0 tmin=400809601.0 tmax=401068801.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.50
user 3.24
sys 0.21

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/278375/ft2_4FGL_J1309.4+4305_daily_bin623.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/278375/ft1_filteredMKT_4FGL_J1309.4+4305_daily_bin623.fits evtable="EVENTS" outfile="/scratch/kocevski/278375/ft1_filtered_4FGL_J1309.4+4305_daily_bin623.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.51
user 0.36
sys 0.13

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/278375/ft1_filtered_4FGL_J1309.4+4305_daily_bin623.fits evtable="EVENTS" scfile=/scratch/kocevski/278375/ft2_4FGL_J1309.4+4305_daily_bin623.fits sctable="SC_DATA" expcube=/scratch/kocevski/278375/ltcube_400809601_401068801_4FGL_J1309.4+4305_daily_bin623.fits outfile=/scratch/kocevski/278375/expmap_400809601_401068801_4FGL_J1309.4+4305_daily_bin623.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/278375/ltcube_400809601_401068801_4FGL_J1309.4+4305_daily_bin623.fits
.....................!
real 191.66
user 186.96
sys 4.06

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/278375/ft1_filtered_4FGL_J1309.4+4305_daily_bin623.fits scfile=/scratch/kocevski/278375/ft2_4FGL_J1309.4+4305_daily_bin623.fits outfile=/scratch/kocevski/278375/cmap_400809601_401068801_4FGL_J1309.4+4305_daily_bin623.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.66
user 0.40
sys 0.15

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

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .83438E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    34.830       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    1.3684       1.0000         .10000E-03   10000.    
     5 'norm      '    9.1745       1.0000         .10000E-03   10000.    
     6 'Prefactor '    7.4199       1.0000         .10000E-03   10000.    
     7 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    18.658       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10019E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    33.005       1.0000         .10000E-03   10000.    
    13 'norm      '    7.2499       1.0000         .10000E-03   10000.    
    14 'norm      '    .10479E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    7.6397       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .56010E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    5.3014       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .20179E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    18.661       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10094E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    13.380       1.0000         .10000E-03   10000.    
    22 'norm      '    11.752       1.0000         .10000E-03   10000.    
    23 'Prefactor '    5.5345       1.0000         .10000E-03   10000.    
    24 'norm      '    6.2141       1.0000         .10000E-03   10000.    
    25 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    26 'Normalizat'    .82769       1.0000         .10000E-01   10.000    
    27 'Prefactor '    1.0956       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=   5676.167     FROM MIGRAD    STATUS=CONVERGED    652 CALLS     3303 TOTAL
                     EDM=   .36E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  4.4%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10004E-03    8.3980       -.89861E-06** at limit **
   2  Prefactor     34.867        23.964       -.12229E-05    .24275E-03
   3  Prefactor     .10000E-03    6.9424        .25343E-06** at limit **
   4  Prefactor     1.3697        19.519        .44633E-05    .60937E-04
   5  norm          9.1747        3.1397       -.29307E-07    .52065E-04
   6  Prefactor     7.4202        5.0880       -.87734E-07    .33161E-04
   7  norm          .10000E-03    .98984       -.82868E-08** at limit **
   8  Prefactor     18.647        35.595        .87925E-06    .13282E-04
   9  Prefactor     .10000E-03    5.0934       -.82799E-07** at limit **
  10  Prefactor     .10000E-03    5.2795        .68593E-07** at limit **
  11  norm          .10000E-03    1.6734        .38176E-09** at limit **
  12  norm          33.016        19.044        .22801E-06    .24165E-04
  13  norm          7.2505        3.8544        .20864E-06    .21234E-03
  14  norm          .10000E-03    5.0752       -.89252E-07** at limit **
  15  norm          7.6404        4.5859        .85070E-07    .77137E-04
  16  Prefactor     .10000E-03    2.0038       -.52340E-06** at limit **
  17  Prefactor     5.2884        16.659        .26685E-05    .57347E-04
  18  Prefactor     .10001E-03    125.75       -.30799E-05** at limit **
  19  Prefactor     18.661        45.643        .10463E-05    .21085E-04
  20  Prefactor     .10000E-03    10.716       -.68100E-07** at limit **
  21  Prefactor     13.428        39.506       -.44160E-05   -.17604E-04
  22  norm          11.751        5.7020        .11052E-06    .81579E-04
  23  Prefactor     5.5534        136.91       -.41895E-05   -.25579E-05
  24  norm          6.2141        1.9826        .47248E-07    .15308E-03
  25  norm          .10000E-03    6.5410       -.21808E-06** at limit **
  26  Normalizat    .82766        .17535        .11775E-05    .10228E-03
  27  Prefactor     1.0956        .21104       -.71954E-06    .23210E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 0.000100039
  Prefactor  = 34.8669
  Prefactor  = 0.0001
  Prefactor  = 1.3697
  norm       = 9.17473
  Prefactor  = 7.42025
  norm       = 0.0001
  Prefactor  = 18.6471
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 33.0157
  norm       = 7.25048
  norm       = 0.0001
  norm       = 7.64037
  Prefactor  = 0.000100003
  Prefactor  = 5.28842
  Prefactor  = 0.000100015
  Prefactor  = 18.6606
  Prefactor  = 0.0001
  Prefactor  = 13.4284
  norm       = 11.7511
  Prefactor  = 5.55344
  norm       = 6.21411
  norm       = 0.0001
  Normalizat = 0.827659
  Prefactor  = 1.09564
 **********
 **   18 **HESSE 
 **********

 FCN=   5676.167     FROM HESSE     STATUS=OK           492 CALLS     3795 TOTAL
                     EDM=   .19E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10004E-03    30.853        .36060E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     34.867        22.216        .67903E-04   -1.4526    
   3  Prefactor     .10000E-03    6.9611        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     1.3697        20.285        .18642E-02   -1.5474    
   5  norm          9.1747        3.1399        .75661E-04   -1.5102    
   6  Prefactor     7.4202        5.0959        .13506E-03   -1.5163    
   7  norm          .10000E-03    .99155        .73202E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     18.647        35.584        .92723E-04   -1.4844    
   9  Prefactor     .10000E-03    5.0963        .16607E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    5.2906        .16902E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          .10000E-03    1.6780        .95146E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          33.016        19.042        .69749E-04   -1.4558    
  13  norm          7.2505        3.8252        .99681E-04   -1.5169    
  14  norm          .10000E-03    5.1231        .16488E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          7.6404        4.5831        .11987E-03   -1.5155    
  16  Prefactor     .10000E-03    9.6643        .18638E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     5.2884        16.544        .17456E-03   -1.5248    
  18  Prefactor     .10001E-03    125.69        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     18.661        45.485        .92717E-04   -1.4844    
  20  Prefactor     .10000E-03    10.730        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     13.428        39.476        .10950E-03   -1.4975    
  22  norm          11.751        5.7029        .58429E-03   -1.5022    
  23  Prefactor     5.5534        136.51        .17078E-03   -1.5237    
  24  norm          6.2141        1.9849        .56476E-04   -1.5209    
  25  norm          .10000E-03    6.5924        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  Normalizat    .82766        .20493        .24288E-03   -.99051    
  27  Prefactor     1.0956        .24912        .27439E-03   -.89606    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.91001e-09
Minuit parameter uncertainties:
  1  0.00218741
  2  22.2216
  3  9.63555e-07
  4  10.5462
  5  3.13996
  6  5.09618
  7  1.11914e-06
  8  35.6242
  9  5.66068e-06
  10  6.75165e-06
  11  2.75087e-06
  12  19.0457
  13  3.8253
  14  3.49291e-05
  15  4.58329
  16  0.000342077
  17  16.5579
  18  0.00270828
  19  45.57
  20  1.45905e-07
  21  39.5529
  22  5.70319
  23  55.2088
  24  1.98496
  25  4.29745e-06
  26  0.205126
  27  0.249388
Done.

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

Extracting fit parameters...

4FGL J1309.4+4305
   Spectrum: LogParabola
349         norm:  3.302e+01  1.905e+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:  1.096e+00  2.494e-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:  8.277e-01  2.051e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 7.60
Ra Dec: 197.363 43.085
Photon Index (Fixed Index): 1.77 +/- 0.00
Photon Flux (Fixed Index): 3.46e-08 +/- 2.00e-08
Energy Flux (Fixed Index): 3.80e-05 +/- 2.19e-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) = 5676.06388014
delta logL = 0.102648638369

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5676.06188935
delta logL = 0.104639431392

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    30.382       1.0000         .10000E-03   10000.    
     2 'alpha     '    1.9632       1.0000          .0000       5.0000    
     3 'Normalizat'    .82118       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0987       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.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   5676.062     FROM MIGRAD    STATUS=CONVERGED     91 CALLS      295 TOTAL
                     EDM=   .68E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          30.387        19.099        .72690E-04    .28152E-04
   2  alpha         1.9631        .43532        .10041E-01    .14275E-03
   3  Normalizat    .82135        .19180        .24372E-03   -.30834E-04
   4  Prefactor     1.0985        .24673        .27403E-03    .40907E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 30.3873
  alpha      = 1.96308
  Normalizat = 0.82135
  Prefactor  = 1.09849
 **********
 **   18 **HESSE 
 **********

 FCN=   5676.062     FROM HESSE     STATUS=OK            25 CALLS      320 TOTAL
                     EDM=   .28E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          30.387        18.851        .29076E-05   -1.4605    
   2  alpha         1.9631        .42964        .20082E-02   -.21646    
   3  Normalizat    .82135        .19194        .97486E-05   -.99282    
   4  Prefactor     1.0985        .24695        .10961E-04   -.89515    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.79859e-11
Minuit parameter uncertainties:
  1  18.8549
  2  0.431893
  3  0.192103
  4  0.247208
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/278375': 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) = 5676.06188887
delta logL = 0.104639903233

Extracting fit parameters...

4FGL J1309.4+4305
   Spectrum: LogParabola
349         norm:  3.039e+01  1.885e+01  1.000e-04  1.000e+04 ( 1.000e-13)
350        alpha:  1.963e+00  4.319e-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:  1.098e+00  2.472e-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:  8.214e-01  1.921e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 7.77
Ra Dec: 197.363 43.085
Photon Index (Free Index): 1.96 +/- 0.43
Photon Flux (Free Index): 4.15e-08 +/- 2.74e-08
Energy Flux (Free Index): 2.99e-05 +/- 2.24e-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/278375/cmap_HighResolution_400809601_401068801_4FGL_J1309.4+4305_daily_bin623.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='3.46e-08', energy_flux2='2.99e-05', photon_flux_error='2.00e-08', dlogl='1.05e-01', energy_flux='3.80e-05', photon_flux2='4.15e-08', job_status='DONE', time_completed='2021-09-07 01:11:27.155302', photon_index_error2='0.43', photon_index2='1.96', ts='7.60', fit_tolerance='1e-08', GAL='1.10', photon_index_error='0.00', energy_flux_error2='2.24e-05', EG='0.83', time_epoch_completed='1631002287.16', return_code='0', job_id='278375', GAL2='1.10', EG2='0.82', return_code2='0', energy_flux_error='2.19e-05', photon_flux_error2='2.74e-08', ts2='7.77', photon_index='1.77' WHERE bin_id='623' AND source_name='4FGL J1309.4+4305' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Sep  7 01:11:27 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0186>
Subject: Job 278375: <4FGL_J1309.4+4305_daily_bin623> in cluster <slac> Done

Job <4FGL_J1309.4+4305_daily_bin623> was submitted from host <rhel6-64k> by user <kocevski> in cluster <slac> at Tue Sep  7 00:55:36 2021
Job was executed on host(s) <bullet0186>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Sep  7 00:55:51 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:55:51 2021
Terminated at Tue Sep  7 01:11:27 2021
Results reported at Tue Sep  7 01:11:27 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1309.4+4305_daily_bin623 197.363 43.085 400809601 401068801 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 :                                   718.24 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             268.77 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   936 sec.
    Turnaround time :                            951 sec.

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

