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


Performing analysis on: 4FGL_J1309.4+4305_daily_bin313
RA = 197.363, Dec = 43.085
tmin = 320457601, tmax = 320716801
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='276734', job_status='RUN', time_executed='2021-09-07 00:53:06.523660', time_epoch_executed='1631001186.52' WHERE source_name='4FGL J1309.4+4305' and cadence='daily' and bin_id='313'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/276734

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/276734/ft1_4FGL_J1309.4+4305_daily_bin313.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/276734/ft2_4FGL_J1309.4+4305_daily_bin313.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/276734/ft1_4FGL_J1309.4+4305_daily_bin313.fits outfile=/scratch/kocevski/276734/ft1_filteredMKT_4FGL_J1309.4+4305_daily_bin313.fits ra=197.363 dec=43.085 rad=12.0 tmin=320457601.0 tmax=320716801.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.81
user 3.58
sys 0.19

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

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

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/276734/ft1_filtered_4FGL_J1309.4+4305_daily_bin313.fits evtable="EVENTS" scfile=/scratch/kocevski/276734/ft2_4FGL_J1309.4+4305_daily_bin313.fits sctable="SC_DATA" expcube=/scratch/kocevski/276734/ltcube_320457601_320716801_4FGL_J1309.4+4305_daily_bin313.fits outfile=/scratch/kocevski/276734/expmap_320457601_320716801_4FGL_J1309.4+4305_daily_bin313.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/276734/ltcube_320457601_320716801_4FGL_J1309.4+4305_daily_bin313.fits
.....................!
real 191.24
user 185.59
sys 4.72

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/276734/ft1_filtered_4FGL_J1309.4+4305_daily_bin313.fits scfile=/scratch/kocevski/276734/ft2_4FGL_J1309.4+4305_daily_bin313.fits outfile=/scratch/kocevski/276734/cmap_320457601_320716801_4FGL_J1309.4+4305_daily_bin313.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.55
user 0.39
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/276734/ft1_filtered_4FGL_J1309.4+4305_daily_bin313.fits scfile=/scratch/kocevski/276734/ft2_4FGL_J1309.4+4305_daily_bin313.fits outfile=/scratch/kocevski/276734/cmap_HighResolution_320457601_320716801_4FGL_J1309.4+4305_daily_bin313.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.60
user 0.41
sys 0.14

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    4.6571       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     5 'norm      '    2.4063       1.0000         .10000E-03   10000.    
     6 'Prefactor '    7.2648       1.0000         .10000E-03   10000.    
     7 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .18745E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .38984E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    12.600       1.0000         .10000E-03   10000.    
    11 'norm      '    3.2771       1.0000         .10000E-03   10000.    
    12 'norm      '    16.034       1.0000         .10000E-03   10000.    
    13 'norm      '    .16788E-03   1.0000         .10000E-03   10000.    
    14 'norm      '    1.7968       1.0000         .10000E-03   10000.    
    15 'norm      '    7.9082       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .71069       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10174E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    23.826       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .11805E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    28.528       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10110E-03   1.0000         .10000E-03   10000.    
    22 'norm      '    .10221E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    42.832       1.0000         .10000E-03   10000.    
    24 'norm      '    6.1235       1.0000         .10000E-03   10000.    
    25 'norm      '    .10005E-03   1.0000         .10000E-03   10000.    
    26 'Normalizat'    1.1370       1.0000         .10000E-01   10.000    
    27 'Prefactor '    .87874       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=   6246.268     FROM MIGRAD    STATUS=CONVERGED    676 CALLS     3347 TOTAL
                     EDM=   .14E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  6.7%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          4.6581        6.3029        .11495E-05    .71254E-03
   2  Prefactor     .10000E-03    7.5766        .44326E-06** at limit **
   3  Prefactor     .10000E-03    7.7572        .15262E-06** at limit **
   4  Prefactor     .10000E-03    7.3698       -.16704E-06** at limit **
   5  norm          2.4063        1.7961        .17969E-07    .20662E-04
   6  Prefactor     7.2668        6.9042        .23093E-06    .38124E-03
   7  norm          .10000E-03    2.6586       -.44442E-07** at limit **
   8  Prefactor     .10006E-03    254.97        .19077E-04** at limit **
   9  Prefactor     .10061E-03    37.754       -.77212E-05** at limit **
  10  Prefactor     12.585        18.332        .13931E-06    .13184E-03
  11  norm          3.2780        3.7296        .48981E-07    .22925E-03
  12  norm          16.038        11.348       -.55471E-06   -.29577E-03
  13  norm          .10000E-03    2.1025        .25022E-06** at limit **
  14  norm          1.7939        4.1673       -.33563E-06   -.12208E-03
  15  norm          7.9079        5.0232        .29768E-06    .48548E-03
  16  Prefactor     .71070        3.2242        .17105E-06    .27144E-03
  17  Prefactor     .10000E-03    12.876        .88621E-06** at limit **
  18  Prefactor     23.841        32.351       -.83945E-07    .83418E-05
  19  Prefactor     .10003E-03    171.68       -.13040E-04** at limit **
  20  Prefactor     28.518        16.044        .58019E-06    .31640E-03
  21  Prefactor     .10000E-03    14.259       -.31801E-06** at limit **
  22  norm          .10000E-03    2.3538       -.67898E-06** at limit **
  23  Prefactor     42.816        77.815        .25632E-05    .58626E-04
  24  norm          6.1235        1.8816        .30463E-07    .74723E-04
  25  norm          .10000E-03    8.7475       -.24448E-06** at limit **
  26  Normalizat    1.1369        .17649       -.32774E-06    .19088E-03
  27  Prefactor     .87887        .20761       -.59323E-06    .52240E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 4.65808
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 2.40625
  Prefactor  = 7.2668
  norm       = 0.0001
  Prefactor  = 0.00010006
  Prefactor  = 0.000100612
  Prefactor  = 12.5852
  norm       = 3.27797
  norm       = 16.0382
  norm       = 0.0001
  norm       = 1.79386
  norm       = 7.90794
  Prefactor  = 0.710702
  Prefactor  = 0.0001
  Prefactor  = 23.8413
  Prefactor  = 0.000100035
  Prefactor  = 28.518
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 42.816
  norm       = 6.12349
  norm       = 0.0001
  Normalizat = 1.13689
  Prefactor  = 0.878873
 **********
 **   18 **HESSE 
 **********

 FCN=   6246.268     FROM HESSE     STATUS=OK           490 CALLS     3837 TOTAL
                     EDM=   .82E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          4.6581        6.4398        .93245E-03   -1.5276    
   2  Prefactor     .10000E-03    7.5931        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    7.7716        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    7.3728        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          2.4063        1.7929        .88801E-04   -1.5398    
   6  Prefactor     7.2668        6.9035        .74407E-03   -1.5169    
   7  norm          .10000E-03    2.6932        .12573E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10006E-03    263.01        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10061E-03    88.140        .61903E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     12.585        18.272        .11285E-03   -1.4998    
  11  norm          3.2780        3.6997        .15405E-03   -1.5346    
  12  norm          16.038        11.399        .10002E-03   -1.4907    
  13  norm          .10000E-03    3.1944        .20169E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          1.7939        3.7722        .21711E-03   -1.5440    
  15  norm          7.9079        5.0388        .66421E-03   -1.5145    
  16  Prefactor     .71070        3.1521        .26126E-03   -1.5539    
  17  Prefactor     .10000E-03    12.976        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     23.841        32.323        .82064E-04   -1.4731    
  19  Prefactor     .10003E-03    174.61        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     28.518        15.714        .75008E-04   -1.4639    
  21  Prefactor     .10000E-03    14.275        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  norm          .10000E-03    4.5092        .22550E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     42.816        78.585        .61255E-04   -1.4398    
  24  norm          6.1235        1.8817        .57478E-04   -1.5213    
  25  norm          .10000E-03    8.7917        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  Normalizat    1.1369        .20744        .22476E-03   -.88576    
  27  Prefactor     .87887        .24302        .30817E-03   -.96883    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 8.15115e-09
Minuit parameter uncertainties:
  1  6.4408
  2  3.93472e-05
  3  1.40196e-05
  4  1.11528e-05
  5  1.79297
  6  6.90424
  7  8.11127e-06
  8  0.00800349
  9  0.0147121
  10  18.2803
  11  3.69998
  12  11.4002
  13  6.94909e-05
  14  3.77269
  15  5.03908
  16  2.99351
  17  0.000129699
  18  32.3472
  19  0.00495523
  20  15.7166
  21  3.56425e-05
  22  4.20835e-06
  23  78.7763
  24  1.88177
  25  2.30216e-05
  26  0.20759
  27  0.243324
Done.

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

Extracting fit parameters...

4FGL J1309.4+4305
   Spectrum: LogParabola
349         norm:  1.604e+01  1.140e+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:  8.789e-01  2.433e-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.137e+00  2.076e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 16.62
Ra Dec: 197.363 43.085
Photon Index (Fixed Index): 1.77 +/- 0.00
Photon Flux (Fixed Index): 1.68e-08 +/- 1.19e-08
Energy Flux (Fixed Index): 1.85e-05 +/- 1.31e-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) = 6245.45063392
delta logL = 0.816974397422

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6245.34309809
delta logL = 0.924510234633

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    11.182       1.0000         .10000E-03   10000.    
     2 'alpha     '    1.0317       1.0000          .0000       5.0000    
     3 'Normalizat'    1.1416       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .88106       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=   6245.343     FROM MIGRAD    STATUS=CONVERGED     54 CALLS      216 TOTAL
                     EDM=   .94E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          11.177        8.4695        .29951E-02    .10127E-03
   2  alpha         1.0317        .39426        .34385       -.50179E-04
   3  Normalizat    1.1416        .16739        .36513E-01   -.18380E-04
   4  Prefactor     .88105        .20559        .69580E-01    .12000E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 11.1774
  alpha      = 1.03166
  Normalizat = 1.1416
  Prefactor  = 0.88105
 **********
 **   18 **HESSE 
 **********

 FCN=   6245.343     FROM HESSE     STATUS=OK            33 CALLS      249 TOTAL
                     EDM=   .27E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          11.177        10.578        .11980E-03   -1.5039    
   2  alpha         1.0317        .50770        .14688E-01   -.62776    
   3  Normalizat    1.1416        .19564        .22433E-03   -.88427    
   4  Prefactor     .88105        .23996        .30784E-03   -.96806    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.67372e-11
Minuit parameter uncertainties:
  1  10.5793
  2  0.513187
  3  0.195761
  4  0.240249
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/276734': 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) = 6245.34309797
delta logL = 0.924510351528

Extracting fit parameters...

4FGL J1309.4+4305
   Spectrum: LogParabola
349         norm:  1.118e+01  1.058e+01  1.000e-04  1.000e+04 ( 1.000e-13)
350        alpha:  1.032e+00  5.132e-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:  8.810e-01  2.402e-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.142e+00  1.958e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 18.46
Ra Dec: 197.363 43.085
Photon Index (Free Index): 1.03 +/- 0.51
Photon Flux (Free Index): 7.70e-09 +/- 6.57e-09
Energy Flux (Free Index): 5.83e-05 +/- 6.50e-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/276734/cmap_HighResolution_320457601_320716801_4FGL_J1309.4+4305_daily_bin313.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='1.68e-08', energy_flux2='5.83e-05', photon_flux_error='1.19e-08', dlogl='9.25e-01', energy_flux='1.85e-05', photon_flux2='7.70e-09', job_status='DONE', time_completed='2021-09-07 01:06:31.778795', photon_index_error2='0.51', photon_index2='1.03', ts='16.62', fit_tolerance='1e-08', GAL='0.88', photon_index_error='0.00', energy_flux_error2='6.50e-05', EG='1.14', time_epoch_completed='1631001991.78', return_code='0', job_id='276734', GAL2='0.88', EG2='1.14', return_code2='0', energy_flux_error='1.31e-05', photon_flux_error2='6.57e-09', ts2='18.46', photon_index='1.77' WHERE bin_id='313' AND source_name='4FGL J1309.4+4305' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Sep  7 01:06:31 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0286>
Subject: Job 276734: <4FGL_J1309.4+4305_daily_bin313> in cluster <slac> Done

Job <4FGL_J1309.4+4305_daily_bin313> was submitted from host <rhel6-64m> by user <kocevski> in cluster <slac> at Tue Sep  7 00:50:31 2021
Job was executed on host(s) <bullet0286>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Sep  7 00:50:45 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:50:45 2021
Terminated at Tue Sep  7 01:06:32 2021
Results reported at Tue Sep  7 01:06:32 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1309.4+4305_daily_bin313 197.363 43.085 320457601 320716801 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 :                                   742.00 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             268.47 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   947 sec.
    Turnaround time :                            961 sec.

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

