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


Performing analysis on: 4FGL_J1309.4+4305_daily_bin685
RA = 197.363, Dec = 43.085
tmin = 416880001, tmax = 417139201
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='278466', job_status='RUN', time_executed='2021-09-07 00:58:31.531183', time_epoch_executed='1631001511.53' WHERE source_name='4FGL J1309.4+4305' and cadence='daily' and bin_id='685'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/278466

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/278466/ft1_4FGL_J1309.4+4305_daily_bin685.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/278466/ft2_4FGL_J1309.4+4305_daily_bin685.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/278466/ft1_4FGL_J1309.4+4305_daily_bin685.fits outfile=/scratch/kocevski/278466/ft1_filteredMKT_4FGL_J1309.4+4305_daily_bin685.fits ra=197.363 dec=43.085 rad=12.0 tmin=416880001.0 tmax=417139201.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 5.96
user 5.11
sys 0.23

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

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

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/278466/ft1_filtered_4FGL_J1309.4+4305_daily_bin685.fits evtable="EVENTS" scfile=/scratch/kocevski/278466/ft2_4FGL_J1309.4+4305_daily_bin685.fits sctable="SC_DATA" expcube=/scratch/kocevski/278466/ltcube_416880001_417139201_4FGL_J1309.4+4305_daily_bin685.fits outfile=/scratch/kocevski/278466/expmap_416880001_417139201_4FGL_J1309.4+4305_daily_bin685.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/278466/ltcube_416880001_417139201_4FGL_J1309.4+4305_daily_bin685.fits
.....................!
real 192.43
user 188.03
sys 3.92

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/278466/ft1_filtered_4FGL_J1309.4+4305_daily_bin685.fits scfile=/scratch/kocevski/278466/ft2_4FGL_J1309.4+4305_daily_bin685.fits outfile=/scratch/kocevski/278466/cmap_416880001_417139201_4FGL_J1309.4+4305_daily_bin685.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.58
user 0.41
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/278466/ft1_filtered_4FGL_J1309.4+4305_daily_bin685.fits scfile=/scratch/kocevski/278466/ft2_4FGL_J1309.4+4305_daily_bin685.fits outfile=/scratch/kocevski/278466/cmap_HighResolution_416880001_417139201_4FGL_J1309.4+4305_daily_bin685.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.63
user 0.41
sys 0.16

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    66.390       1.0000         .10000E-03   10000.    
     4 'Prefactor '    18.189       1.0000         .10000E-03   10000.    
     5 'norm      '    2.3312       1.0000         .10000E-03   10000.    
     6 'Prefactor '    2.5337       1.0000         .10000E-03   10000.    
     7 'norm      '    29.155       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .79236       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10013E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10185E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    19.543       1.0000         .10000E-03   10000.    
    13 'norm      '    3.4877       1.0000         .10000E-03   10000.    
    14 'norm      '    16.551       1.0000         .10000E-03   10000.    
    15 'norm      '    1.8955       1.0000         .10000E-03   10000.    
    16 'Prefactor '    2.6291       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10067E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .12406E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    25.392       1.0000         .10000E-03   10000.    
    20 'Prefactor '    42.459       1.0000         .10000E-03   10000.    
    21 'Prefactor '    32.599       1.0000         .10000E-03   10000.    
    22 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    40.556       1.0000         .10000E-03   10000.    
    24 'norm      '    3.9862       1.0000         .10000E-03   10000.    
    25 'norm      '    26.557       1.0000         .10000E-03   10000.    
    26 'Normalizat'    .98250       1.0000         .10000E-01   10.000    
    27 'Prefactor '    .86213       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=   4915.837     FROM MIGRAD    STATUS=CONVERGED    680 CALLS     3312 TOTAL
                     EDM=   .16E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  6.7%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    3.2033       -.84027E-07** at limit **
   2  Prefactor     .10000E-03    25.762        .32356E-05** at limit **
   3  Prefactor     66.377        31.803        .22310E-05    .85034E-04
   4  Prefactor     18.189        18.292        .25512E-07    .38207E-04
   5  norm          2.3317        2.3181       -.21217E-07   -.11995E-04
   6  Prefactor     2.5359        6.4713        .49023E-06    .17652E-03
   7  norm          29.156        10.279       -.36321E-06    .91918E-04
   8  Prefactor     1.4531        116.47       -.18105E-04    .26792E-03
   9  Prefactor     .10000E-03    12.045        .94652E-07** at limit **
  10  Prefactor     .10000E-03    26.659       -.44718E-05** at limit **
  11  norm          .10000E-03    2.4455       -.96326E-08** at limit **
  12  norm          19.518        16.528       -.15796E-07    .21426E-03
  13  norm          3.4891        11.373        .14196E-04    .33900E-03
  14  norm          16.548        19.959       -.93568E-05    .34863E-04
  15  norm          1.8970        4.0501        .45578E-06    .15268E-03
  16  Prefactor     2.6368        4.2297       -.13849E-05   -.14347E-03
  17  Prefactor     .10000E-03    8.5866       -.30327E-06** at limit **
  18  Prefactor     .10000E-03    31.640        .27376E-05** at limit **
  19  Prefactor     25.044        76.966        .21934E-04    .16986E-04
  20  Prefactor     42.466        20.757        .68950E-06    .59106E-05
  21  Prefactor     32.580        35.158       -.60517E-05    .22638E-05
  22  norm          .10000E-03    1.2124        .41123E-07** at limit **
  23  Prefactor     40.565        52.015       -.41501E-05    .55225E-05
  24  norm          3.9867        1.6494        .11337E-06    .14741E-03
  25  norm          26.565        19.127        .39637E-06    .49804E-05
  26  Normalizat    .98229        .19783       -.26306E-05    .39712E-03
  27  Prefactor     .86214        .23131        .21198E-05    .21516E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 66.3775
  Prefactor  = 18.1891
  norm       = 2.33173
  Prefactor  = 2.53588
  norm       = 29.1555
  Prefactor  = 1.45306
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 19.5184
  norm       = 3.48906
  norm       = 16.5477
  norm       = 1.89703
  Prefactor  = 2.63679
  Prefactor  = 0.0001
  Prefactor  = 0.000100001
  Prefactor  = 25.0437
  Prefactor  = 42.4659
  Prefactor  = 32.58
  norm       = 0.0001
  Prefactor  = 40.5646
  norm       = 3.98674
  norm       = 26.5651
  Normalizat = 0.982285
  Prefactor  = 0.862139
 **********
 **   18 **HESSE 
 **********

 FCN=   4915.837     FROM HESSE     STATUS=OK           498 CALLS     3810 TOTAL
                     EDM=   .49E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    3.2087        .12255E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    25.846        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     66.377        31.822        .24629E-03   -1.4077    
   4  Prefactor     18.189        18.285        .93911E-04   -1.4855    
   5  norm          2.3317        2.3104        .10297E-03   -1.5403    
   6  Prefactor     2.5359        6.4359        .25659E-03   -1.5389    
   7  norm          29.156        10.286        .74199E-04   -1.4628    
   8  Prefactor     1.4531        100.48        .17807       -1.5467    
   9  Prefactor     .10000E-03    12.049        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    26.804        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          .10000E-03    2.4544        .10706E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          19.518        16.528        .90602E-04   -1.4824    
  13  norm          3.4891        11.529        .10529E-02   -1.5334    
  14  norm          16.548        20.186        .98447E-04   -1.4894    
  15  norm          1.8970        4.0250        .19689E-03   -1.5432    
  16  Prefactor     2.6368        4.1978        .16166E-03   -1.5383    
  17  Prefactor     .10000E-03    8.5955        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    31.763        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     25.044        77.030        .79497E-04   -1.4707    
  20  Prefactor     42.466        20.778        .61522E-04   -1.4404    
  21  Prefactor     32.580        35.182        .70181E-04   -1.4566    
  22  norm          .10000E-03    1.2136        .75359E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     40.565        52.043        .62943E-04   -1.4433    
  24  norm          3.9867        1.6494        .55486E-04   -1.5309    
  25  norm          26.565        19.146        .77737E-04   -1.4677    
  26  Normalizat    .98229        .23502        .24184E-03   -.93626    
  27  Prefactor     .86214        .27268        .30879E-03   -.97477    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.93423e-09
Minuit parameter uncertainties:
  1  5.02816e-06
  2  7.07895e-05
  3  31.8298
  4  18.2904
  5  2.31045
  6  6.43763
  7  10.2865
  8  24.2074
  9  1.00721e-05
  10  2.35118e-05
  11  2.61622e-06
  12  16.5317
  13  11.5367
  14  20.194
  15  4.02554
  16  4.19829
  17  5.21441e-05
  18  0.000411374
  19  77.3381
  20  20.7814
  21  35.2046
  22  2.33068e-06
  23  52.1016
  24  1.6494
  25  19.15
  26  0.235264
  27  0.273108
Done.

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

Extracting fit parameters...

4FGL J1309.4+4305
   Spectrum: LogParabola
349         norm:  1.952e+01  1.653e+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.621e-01  2.731e-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:  9.823e-01  2.353e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 4.10
Ra Dec: 197.363 43.085
Photon Index (Fixed Index): 1.77 +/- 0.00
Photon Flux (Fixed Index): 2.05e-08 +/- 1.73e-08
Energy Flux (Fixed Index): 2.25e-05 +/- 1.90e-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) = 4915.71774754
delta logL = 0.118772527631

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 4915.71301037
delta logL = 0.123509697637

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    18.082       1.0000         .10000E-03   10000.    
     2 'alpha     '    2.2094       1.0000          .0000       5.0000    
     3 'Normalizat'    .96512       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .87073       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=   4915.713     FROM MIGRAD    STATUS=CONVERGED     81 CALLS      239 TOTAL
                     EDM=   .19E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          18.080        16.846        .94188E-04    .91929E-03
   2  alpha         2.2098        .95793        .16481E-01    .10345E-03
   3  Normalizat    .96508        .22759        .24379E-03   -.31741E-03
   4  Prefactor     .87076        .26901        .30739E-03   -.37620E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 18.0801
  alpha      = 2.20977
  Normalizat = 0.965084
  Prefactor  = 0.870763
 **********
 **   18 **HESSE 
 **********

 FCN=   4915.713     FROM HESSE     STATUS=OK            23 CALLS      262 TOTAL
                     EDM=   .19E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          18.080        16.281        .18838E-04   -1.4857    
   2  alpha         2.2098        .92478        .65923E-03   -.11636    
   3  Normalizat    .96508        .22688        .48758E-04   -.94210    
   4  Prefactor     .87076        .26882        .61478E-04   -.97170    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.88182e-09
Minuit parameter uncertainties:
  1  16.2851
  2  0.947615
  3  0.227111
  4  0.269227
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/278466': 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) = 4915.71301029
delta logL = 0.123509773845

Extracting fit parameters...

4FGL J1309.4+4305
   Spectrum: LogParabola
349         norm:  1.808e+01  1.629e+01  1.000e-04  1.000e+04 ( 1.000e-13)
350        alpha:  2.210e+00  9.476e-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.708e-01  2.692e-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:  9.651e-01  2.271e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 4.32
Ra Dec: 197.363 43.085
Photon Index (Free Index): 2.21 +/- 0.95
Photon Flux (Free Index): 3.65e-08 +/- 5.07e-08
Energy Flux (Free Index): 1.71e-05 +/- 1.42e-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/278466/cmap_HighResolution_416880001_417139201_4FGL_J1309.4+4305_daily_bin685.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='2.05e-08', energy_flux2='1.71e-05', photon_flux_error='1.73e-08', dlogl='1.24e-01', energy_flux='2.25e-05', photon_flux2='3.65e-08', job_status='DONE', time_completed='2021-09-07 01:09:33.979790', photon_index_error2='0.95', photon_index2='2.21', ts='4.10', fit_tolerance='1e-08', GAL='0.86', photon_index_error='0.00', energy_flux_error2='1.42e-05', EG='0.98', time_epoch_completed='1631002173.98', return_code='0', job_id='278466', GAL2='0.87', EG2='0.97', return_code2='0', energy_flux_error='1.90e-05', photon_flux_error2='5.07e-08', ts2='4.32', photon_index='1.77' WHERE bin_id='685' AND source_name='4FGL J1309.4+4305' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Sep  7 01:09:34 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0171>
Subject: Job 278466: <4FGL_J1309.4+4305_daily_bin685> in cluster <slac> Done

Job <4FGL_J1309.4+4305_daily_bin685> was submitted from host <rhel6-64k> by user <kocevski> in cluster <slac> at Tue Sep  7 00:55:42 2021
Job was executed on host(s) <bullet0171>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Sep  7 00:56:04 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:56:04 2021
Terminated at Tue Sep  7 01:09:35 2021
Results reported at Tue Sep  7 01:09:35 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1309.4+4305_daily_bin685 197.363 43.085 416880001 417139201 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 :                                   657.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             295.52 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   810 sec.
    Turnaround time :                            833 sec.

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

