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


Performing analysis on: 4FGL_J1309.4+4305_daily_bin561
RA = 197.363, Dec = 43.085
tmin = 384739201, tmax = 384998401
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='278282', job_status='RUN', time_executed='2021-09-07 00:58:04.337474', time_epoch_executed='1631001484.34' WHERE source_name='4FGL J1309.4+4305' and cadence='daily' and bin_id='561'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/278282

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/278282/ft1_4FGL_J1309.4+4305_daily_bin561.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/278282/ft2_4FGL_J1309.4+4305_daily_bin561.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/278282/ft1_4FGL_J1309.4+4305_daily_bin561.fits outfile=/scratch/kocevski/278282/ft1_filteredMKT_4FGL_J1309.4+4305_daily_bin561.fits ra=197.363 dec=43.085 rad=12.0 tmin=384739201.0 tmax=384998401.0 emin=100.0 emax=100000.0 zmin=0.0 zmax=90.0 evclass=128 evtype="INDEF" convtype=-1 phasemin=0.0 phasemax=1.0 evtable="EVENTS" chatter=2 clobber=yes debug=no gui=no mode="ql"

WARNING: version mismatch between CFITSIO header (v3.43) and linked library (v3.41).

Done.
real 4.56
user 4.31
sys 0.23

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

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

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/278282/ft1_filtered_4FGL_J1309.4+4305_daily_bin561.fits evtable="EVENTS" scfile=/scratch/kocevski/278282/ft2_4FGL_J1309.4+4305_daily_bin561.fits sctable="SC_DATA" expcube=/scratch/kocevski/278282/ltcube_384739201_384998401_4FGL_J1309.4+4305_daily_bin561.fits outfile=/scratch/kocevski/278282/expmap_384739201_384998401_4FGL_J1309.4+4305_daily_bin561.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/278282/ltcube_384739201_384998401_4FGL_J1309.4+4305_daily_bin561.fits
.....................!
real 193.32
user 187.27
sys 5.42

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/278282/ft1_filtered_4FGL_J1309.4+4305_daily_bin561.fits scfile=/scratch/kocevski/278282/ft2_4FGL_J1309.4+4305_daily_bin561.fits outfile=/scratch/kocevski/278282/cmap_384739201_384998401_4FGL_J1309.4+4305_daily_bin561.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.73
user 0.37
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/278282/ft1_filtered_4FGL_J1309.4+4305_daily_bin561.fits scfile=/scratch/kocevski/278282/ft2_4FGL_J1309.4+4305_daily_bin561.fits outfile=/scratch/kocevski/278282/cmap_HighResolution_384739201_384998401_4FGL_J1309.4+4305_daily_bin561.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.71
user 0.40
sys 0.17

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    17.296       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    3.5409       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10009E-03   1.0000         .10000E-03   10000.    
     5 'norm      '    1.1985       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10027E-03   1.0000         .10000E-03   10000.    
     7 'norm      '    .11060E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    43.201       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10319E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    4.1111       1.0000         .10000E-03   10000.    
    12 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    1.2674       1.0000         .10000E-03   10000.    
    14 'norm      '    .10094E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    1.5955       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10039E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10008E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    18.918       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10069E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10047E-03   1.0000         .10000E-03   10000.    
    22 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    23.773       1.0000         .10000E-03   10000.    
    24 'norm      '    7.6326       1.0000         .10000E-03   10000.    
    25 'norm      '    .10016E-03   1.0000         .10000E-03   10000.    
    26 'Normalizat'    .80026       1.0000         .10000E-01   10.000    
    27 'Prefactor '    1.0357       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=   4993.289     FROM MIGRAD    STATUS=CONVERGED    648 CALLS     3262 TOTAL
                     EDM=   .18E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.7%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          17.294        9.0422        .47104E-08   -.14730E-04
   2  Prefactor     .10000E-03    10.774        .23420E-06** at limit **
   3  Prefactor     3.5360        27.777        .35291E-05   -.44047E-05
   4  Prefactor     .10000E-03    10.478        .22641E-07** at limit **
   5  norm          1.1985        2.3854        .15249E-06    .10636E-04
   6  Prefactor     .10000E-03    2.7565        .12261E-06** at limit **
   7  norm          .10000E-03    2.6798        .25824E-06** at limit **
   8  Prefactor     .10000E-03    15.885       -.50705E-06** at limit **
   9  Prefactor     43.216        36.403       -.19255E-05   -.38829E-04
  10  Prefactor     .10000E-03    26.302        .53445E-06** at limit **
  11  norm          4.1112        6.0267        .19133E-05   -.54860E-04
  12  norm          .10000E-03    10.294       -.20957E-06** at limit **
  13  norm          1.2624        3.4537        .60165E-06    .66393E-04
  14  norm          .10000E-03    3.6141        .63443E-08** at limit **
  15  norm          1.5945        3.8071        .14994E-06   -.71693E-05
  16  Prefactor     .10000E-03    1.6817        .11831E-06** at limit **
  17  Prefactor     .10000E-03    5.1684        .26317E-07** at limit **
  18  Prefactor     18.914        26.455        .14247E-06   -.84048E-05
  19  Prefactor     .10000E-03    88.505       -.33211E-06** at limit **
  20  Prefactor     .10000E-03    6.0877        .10445E-07** at limit **
  21  Prefactor     .10000E-03    22.369        .69904E-06** at limit **
  22  norm          .10000E-03    1.2615        .24065E-08** at limit **
  23  Prefactor     23.735        55.647        .57458E-05   -.10531E-04
  24  norm          7.6320        2.2402        .12994E-07   -.61578E-04
  25  norm          .10000E-03    12.386        .33264E-08** at limit **
  26  Normalizat    .80068        .17241       -.32814E-06   -.34628E-04
  27  Prefactor     1.0352        .20717       -.62737E-06   -.28073E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 17.294
  Prefactor  = 0.0001
  Prefactor  = 3.53601
  Prefactor  = 0.0001
  norm       = 1.19851
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 43.2158
  Prefactor  = 0.0001
  norm       = 4.11118
  norm       = 0.0001
  norm       = 1.26235
  norm       = 0.0001
  norm       = 1.59453
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 18.9143
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 23.7351
  norm       = 7.63202
  norm       = 0.0001
  Normalizat = 0.800676
  Prefactor  = 1.03524
 **********
 **   18 **HESSE 
 **********

 FCN=   4993.289     FROM HESSE     STATUS=OK           484 CALLS     3746 TOTAL
                     EDM=   .31E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          17.294        9.0391        .96305E-04   -1.4876    
   2  Prefactor     .10000E-03    10.787        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     3.5360        27.728        .10740E-02   -1.5332    
   4  Prefactor     .10000E-03    10.498        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          1.1985        2.3559        .14709E-03   -1.5489    
   6  Prefactor     .10000E-03    2.7657        .11457E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          .10000E-03    2.6978        .11289E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    15.889        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     43.216        36.128        .60993E-04   -1.4392    
  10  Prefactor     .10000E-03    26.671        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          4.1112        6.0189        .97993E-03   -1.5302    
  12  norm          .10000E-03    10.333        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          1.2624        3.3535        .19233E-03   -1.5483    
  14  norm          .10000E-03    3.6185        .13052E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          1.5945        3.7730        .20127E-03   -1.5455    
  16  Prefactor     .10000E-03    1.7030        .89417E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    5.1772        .15688E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     18.914        26.421        .92085E-04   -1.4838    
  19  Prefactor     .10000E-03    89.067        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    6.0967        .17027E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10000E-03    22.403        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  norm          .10000E-03    1.2662        .77490E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     23.735        55.527        .82155E-04   -1.4733    
  24  norm          7.6320        2.2448        .54162E-04   -1.5155    
  25  norm          .10000E-03    12.464        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  Normalizat    .80068        .20631        .23397E-03   -1.0004    
  27  Prefactor     1.0352        .24727        .25892E-03   -.91564    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.10057e-11
Minuit parameter uncertainties:
  1  9.03981
  2  5.98572e-07
  3  19.8162
  4  7.28209e-06
  5  2.35609
  6  5.29632e-06
  7  1.77641e-05
  8  4.87421e-06
  9  36.1466
  10  7.73312e-05
  11  6.01976
  12  3.6945e-06
  13  3.35396
  14  4.79202e-06
  15  3.77353
  16  2.15459e-06
  17  8.28898e-07
  18  26.4375
  19  5.5476e-05
  20  9.87656e-07
  21  8.80479e-06
  22  2.52769e-07
  23  55.6478
  24  2.2448
  25  3.47149e-05
  26  0.206509
  27  0.247542
Done.

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

Extracting fit parameters...

4FGL J1309.4+4305
   Spectrum: LogParabola
349         norm:  1.000e-04  3.695e-06  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.035e+00  2.475e-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.007e-01  2.065e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/278282/likelihoodResults_384739201_384998401_4FGL_J1309.4+4305_daily_bin561.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): 102
logL (Free Index) = 4993.2892652
delta logL = -0.000460922776256

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 4993.28880705
delta logL = -2.77739491139e-06

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .13692E-03   1.0000         .10000E-03   10000.    
     2 'alpha     '    1.7486       1.0000          .0000       5.0000    
     3 'Normalizat'    .80096       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0349       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.
 MIGRAD TERMINATED WITHOUT CONVERGENCE.

 FCN=   4993.289     FROM MIGRAD    STATUS=FAILED        94 CALLS      235 TOTAL
                     EDM=   .25E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    1763.5        .18142E-01** at limit **
   2  alpha         1.4710        3.6663        .17516E-01    .39592E-07
   3  Normalizat    .80068        .70412E-01    .23397E-03   -.10690E-05
   4  Prefactor     1.0352        .89572E-01    .25892E-03    .23271E-05
                               ERR DEF=  .500    
 START SIMPLEX MINIMIZATION.    CONVERGENCE WHEN EDM .LT.   .20E-04
 SIMPLEX MINIMIZATION HAS CONVERGED.

 FCN=   4993.289     FROM SIMPLEX   STATUS=UNCHANGED    185 CALLS      420 TOTAL
                     EDM=   .85E-05    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    1763.5        .48195E-03** at limit **
   2  alpha         1.4710        3.6663        .99020E-07    .39592E-07
   3  Normalizat    .80068        .70412E-01    .74726E-08   -.10690E-05
   4  Prefactor     1.0352        .89572E-01    .14182E-07    .23271E-05
                               ERR DEF=  .500    

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   4993.289     FROM MIGRAD    STATUS=CONVERGED     28 CALLS      448 TOTAL
                     EDM=   .70E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    11.738        .23404E-02** at limit **
   2  alpha         1.4694        2.7801        .70063E-03   -.16226E-07
   3  Normalizat    .80068        .19617        .93589E-05   -.36442E-05
   4  Prefactor     1.0352        .24511        .10357E-04   -.21954E-06
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  alpha      = 1.46943
  Normalizat = 0.800676
  Prefactor  = 1.03524
 **********
 **   18 **HESSE 
 **********

 FCN=   4993.289     FROM HESSE     STATUS=OK            25 CALLS      473 TOTAL
                     EDM=   .70E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    11.742        .46809E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  alpha         1.4694        2.7799        .14013E-02   -.42490    
   3  Normalizat    .80068        .19612        .18718E-05   -1.0004    
   4  Prefactor     1.0352        .24496        .20713E-05   -.91564    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 6.96409e-12
Minuit parameter uncertainties:
  1  4.42175e-05
  2  258.205
  3  0.196294
  4  0.245221
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/278282': 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) = 4993.28880369
delta logL = 5.79781954002e-07

Extracting fit parameters...

4FGL J1309.4+4305
   Spectrum: LogParabola
349         norm:  1.000e-04  4.422e-05  1.000e-04  1.000e+04 ( 1.000e-13)
350        alpha:  1.469e+00  2.582e+02  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.035e+00  2.452e-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.007e-01  1.963e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
Ra Dec: 197.363 43.085

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/278282/cmap_HighResolution_384739201_384998401_4FGL_J1309.4+4305_daily_bin561.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='4.18e-05', job_status='DONE', photon_flux_upper_limit='3.80e-08', time_completed='2021-09-07 01:10:35.491971', job_id='278282', GAL2='1.04', fit_tolerance='1e-08', EG2='0.80', EG='0.80', time_epoch_completed='1631002235.49', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.04', dlogl='5.80e-07', ts2='-0.00', photon_index_error='0.00', photon_index='1.77' WHERE bin_id='561' AND source_name='4FGL J1309.4+4305' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Sep  7 01:10:35 PDT 2021


------------------------------------------------------------
Sender: LSF System <scs@bullet0012>
Subject: Job 278282: <4FGL_J1309.4+4305_daily_bin561> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1309.4+4305_daily_bin561 197.363 43.085 384739201 384998401 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 :                                   741.00 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             258.13 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   897 sec.
    Turnaround time :                            907 sec.

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

