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


Performing analysis on: 4FGL_J1309.4+4305_daily_bin616
RA = 197.363, Dec = 43.085
tmin = 398995201, tmax = 399254401
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='278364', job_status='RUN', time_executed='2021-09-07 00:58:02.470619', time_epoch_executed='1631001482.47' WHERE source_name='4FGL J1309.4+4305' and cadence='daily' and bin_id='616'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/278364

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/278364/ft1_4FGL_J1309.4+4305_daily_bin616.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/278364/ft2_4FGL_J1309.4+4305_daily_bin616.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/278364/ft1_4FGL_J1309.4+4305_daily_bin616.fits outfile=/scratch/kocevski/278364/ft1_filteredMKT_4FGL_J1309.4+4305_daily_bin616.fits ra=197.363 dec=43.085 rad=12.0 tmin=398995201.0 tmax=399254401.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.43
user 5.17
sys 0.23

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/278364/ft1_filtered_4FGL_J1309.4+4305_daily_bin616.fits" evtable="EVENTS" scfile=/scratch/kocevski/278364/ft2_4FGL_J1309.4+4305_daily_bin616.fits sctable="SC_DATA" outfile=/scratch/kocevski/278364/ltcube_398995201_399254401_4FGL_J1309.4+4305_daily_bin616.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/278364/ft2_4FGL_J1309.4+4305_daily_bin616.fits
.....................!
real 15.27
user 14.83
sys 0.35

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/278364/ft1_filtered_4FGL_J1309.4+4305_daily_bin616.fits evtable="EVENTS" scfile=/scratch/kocevski/278364/ft2_4FGL_J1309.4+4305_daily_bin616.fits sctable="SC_DATA" expcube=/scratch/kocevski/278364/ltcube_398995201_399254401_4FGL_J1309.4+4305_daily_bin616.fits outfile=/scratch/kocevski/278364/expmap_398995201_399254401_4FGL_J1309.4+4305_daily_bin616.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/278364/ltcube_398995201_399254401_4FGL_J1309.4+4305_daily_bin616.fits
.....................!
real 191.86
user 185.80
sys 5.24

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/278364/ft1_filtered_4FGL_J1309.4+4305_daily_bin616.fits scfile=/scratch/kocevski/278364/ft2_4FGL_J1309.4+4305_daily_bin616.fits outfile=/scratch/kocevski/278364/cmap_398995201_399254401_4FGL_J1309.4+4305_daily_bin616.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.92
user 0.39
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/278364/ft1_filtered_4FGL_J1309.4+4305_daily_bin616.fits scfile=/scratch/kocevski/278364/ft2_4FGL_J1309.4+4305_daily_bin616.fits outfile=/scratch/kocevski/278364/cmap_HighResolution_398995201_399254401_4FGL_J1309.4+4305_daily_bin616.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.65
user 0.39
sys 0.15

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10114E-02   1.0000         .10000E-03   10000.    
     2 'Prefactor '    17.484       1.0000         .10000E-03   10000.    
     3 'Prefactor '    24.070       1.0000         .10000E-03   10000.    
     4 'Prefactor '    10.339       1.0000         .10000E-03   10000.    
     5 'norm      '    3.2011       1.0000         .10000E-03   10000.    
     6 'Prefactor '    3.7057       1.0000         .10000E-03   10000.    
     7 'norm      '    .10081E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    18.317       1.0000         .10000E-03   10000.    
    10 'Prefactor '    20.725       1.0000         .10000E-03   10000.    
    11 'norm      '    .10008E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    .16831       1.0000         .10000E-03   10000.    
    13 'norm      '    .10056E-03   1.0000         .10000E-03   10000.    
    14 'norm      '    .10014E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    1.9885       1.0000         .10000E-03   10000.    
    16 'Prefactor '    5.7597       1.0000         .10000E-03   10000.    
    17 'Prefactor '    38.875       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10038E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    31.303       1.0000         .10000E-03   10000.    
    22 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    72.512       1.0000         .10000E-03   10000.    
    24 'norm      '    8.1901       1.0000         .10000E-03   10000.    
    25 'norm      '    3.6718       1.0000         .10000E-03   10000.    
    26 'Normalizat'    1.0906       1.0000         .10000E-01   10.000    
    27 'Prefactor '    1.0598       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=   5068.086     FROM MIGRAD    STATUS=CONVERGED    663 CALLS     3339 TOTAL
                     EDM=   .29E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  6.3%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    63.376        .15374E-04** at limit **
   2  Prefactor     17.507        19.461       -.21658E-05   -.82045E-04
   3  Prefactor     24.069        25.159       -.60885E-06   -.70109E-04
   4  Prefactor     10.341        17.146       -.10432E-06   -.14136E-04
   5  norm          3.2015        2.3000       -.83730E-07    .22869E-04
   6  Prefactor     3.7052        6.6328       -.12665E-05    .43166E-04
   7  norm          .10000E-03    3.7185       -.93208E-06** at limit **
   8  Prefactor     .10000E-03    14.414        .91091E-07** at limit **
   9  Prefactor     18.310        19.176       -.75670E-06   -.63092E-04
  10  Prefactor     20.724        19.053        .43072E-06   -.27250E-04
  11  norm          .10000E-03    2.2707        .18735E-06** at limit **
  12  norm          .37076        14.526        .23832E-05   -.93989E-05
  13  norm          .10000E-03    1.8953       -.43518E-07** at limit **
  14  norm          .10000E-03    2.2817       -.67287E-08** at limit **
  15  norm          1.9883        4.4127       -.27360E-05   -.25677E-04
  16  Prefactor     5.7610        6.0664       -.78766E-07    .17616E-03
  17  Prefactor     38.865        29.548        .50261E-06   -.22697E-05
  18  Prefactor     .10000E-03    17.829       -.12208E-06** at limit **
  19  Prefactor     .10000E-03    36.275        .28250E-05** at limit **
  20  Prefactor     .10000E-03    7.9947        .27269E-08** at limit **
  21  Prefactor     31.295        31.700        .74147E-06    .18850E-04
  22  norm          .10000E-03    1.7631       -.28057E-07** at limit **
  23  Prefactor     72.486        97.900        .67582E-05    .67885E-04
  24  norm          8.1901        2.6527        .17759E-07   -.43486E-05
  25  norm          3.6725        13.825       -.21491E-05   -.83189E-05
  26  Normalizat    1.0909        .20972       -.18838E-05    .93809E-04
  27  Prefactor     1.0593        .24342        .17968E-05   -.17139E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  Prefactor  = 17.5068
  Prefactor  = 24.0687
  Prefactor  = 10.3414
  norm       = 3.20148
  Prefactor  = 3.70522
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 18.31
  Prefactor  = 20.7236
  norm       = 0.0001
  norm       = 0.370756
  norm       = 0.0001
  norm       = 0.0001
  norm       = 1.98828
  Prefactor  = 5.76105
  Prefactor  = 38.8646
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 31.2946
  norm       = 0.0001
  Prefactor  = 72.486
  norm       = 8.1901
  norm       = 3.67252
  Normalizat = 1.09092
  Prefactor  = 1.05926
 **********
 **   18 **HESSE 
 **********

 FCN=   5068.086     FROM HESSE     STATUS=OK           494 CALLS     3833 TOTAL
                     EDM=   .36E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    61.698        .36183E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     17.507        19.136        .95787E-04   -1.4871    
   3  Prefactor     24.069        25.259        .81648E-04   -1.4726    
   4  Prefactor     10.341        17.131        .12461E-03   -1.5065    
   5  norm          3.2015        2.2964        .88793E-04   -1.5350    
   6  Prefactor     3.7052        6.6060        .20979E-03   -1.5323    
   7  norm          .10000E-03    3.7914        .26734E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    14.415        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     18.310        19.186        .93582E-04   -1.4852    
  10  Prefactor     20.724        19.041        .87981E-04   -1.4797    
  11  norm          .10000E-03    2.2774        .10474E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          .37076        109.91        .50086E-02   -1.5586    
  13  norm          .10000E-03    1.9095        .95658E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          .10000E-03    2.2846        .10502E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          1.9883        4.3921        .21280E-03   -1.5426    
  16  Prefactor     5.7610        6.0630        .14387E-03   -1.5228    
  17  Prefactor     38.865        29.490        .64284E-04   -1.4460    
  18  Prefactor     .10000E-03    17.834        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    36.323        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    8.0110        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     31.295        31.723        .71615E-04   -1.4589    
  22  norm          .10000E-03    1.7741        .92289E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     72.486        98.610        .47146E-04   -1.4003    
  24  norm          8.1901        2.6568        .62455E-04   -1.5136    
  25  norm          3.6725        13.801        .21079E-03   -1.5325    
  26  Normalizat    1.0909        .24931        .24800E-03   -.90044    
  27  Prefactor     1.0593        .28782        .30618E-03   -.90779    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.6109e-08
Minuit parameter uncertainties:
  1  0.00031195
  2  19.1423
  3  25.2698
  4  17.1388
  5  2.29645
  6  6.60729
  7  1.96468e-05
  8  1.17746e-05
  9  19.1922
  10  19.0466
  11  2.38928e-07
  12  12.7892
  13  1.62573e-06
  14  1.26077e-06
  15  4.39282
  16  6.06364
  17  29.501
  18  4.38894e-05
  19  0.00018731
  20  1.69447e-05
  21  31.7398
  22  5.05457e-06
  23  98.8331
  24  2.65684
  25  13.8127
  26  0.249577
  27  0.288245
Done.

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

Extracting fit parameters...

4FGL J1309.4+4305
   Spectrum: LogParabola
349         norm:  3.708e-01  1.279e+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.059e+00  2.882e-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.091e+00  2.496e-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: 4.78e-08 ph cm-2 s-1
Energy Flux Upper Limit: 5.25e-05 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/278364/likelihoodResults_398995201_399254401_4FGL_J1309.4+4305_daily_bin616.txt

Performing a free index iterative likelihood fit...

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

Done.

Freeing candidate source...
Done.

Fit tolerance = 1

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5067.99331642
delta logL = 0.0927509683088

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5067.99312184
delta logL = 0.092945549457

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    3.1214       1.0000         .10000E-03   10000.    
     2 'alpha     '    1.0341       1.0000          .0000       5.0000    
     3 'Normalizat'    1.0940       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0520       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.
 MACHINE ACCURACY LIMITS FURTHER IMPROVEMENT.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   5067.993     FROM MIGRAD    STATUS=CONVERGED     67 CALLS      268 TOTAL
                     EDM=   .24E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          3.0297        8.5127         .0000        .43867E-02
   2  alpha         1.0271        .97100         .0000       -.28767E-04
   3  Normalizat    1.0937        .19403         .0000        .85315E-05
   4  Prefactor     1.0523        .23769         .0000        .10682E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 3.02971
  alpha      = 1.0271
  Normalizat = 1.09374
  Prefactor  = 1.05227
 **********
 **   18 **HESSE 
 **********

 FCN=   5067.993     FROM HESSE     STATUS=OK            33 CALLS      301 TOTAL
                     EDM=   .64E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          3.0297        8.9640        .11474E-02   -1.5360    
   2  alpha         1.0271        1.1080        .33329E-01   -.63002    
   3  Normalizat    1.0937        .23224        .24769E-03   -.89953    
   4  Prefactor     1.0523        .28431        .30701E-03   -.91007    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 6.38017e-09
Minuit parameter uncertainties:
  1  8.968
  2  1.17274
  3  0.232453
  4  0.284721
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/278364': 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) = 5067.993073
delta logL = 0.0929943915553

Extracting fit parameters...

4FGL J1309.4+4305
   Spectrum: LogParabola
349         norm:  3.030e+00  8.968e+00  1.000e-04  1.000e+04 ( 1.000e-13)
350        alpha:  1.027e+00  1.173e+00  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.052e+00  2.847e-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.094e+00  2.325e-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/278364/cmap_HighResolution_398995201_399254401_4FGL_J1309.4+4305_daily_bin616.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='5.25e-05', job_status='DONE', photon_flux_upper_limit='4.78e-08', time_completed='2021-09-07 01:10:52.282194', job_id='278364', GAL2='1.05', fit_tolerance='1e-08', EG2='1.09', EG='1.09', time_epoch_completed='1631002252.28', return_code2='0', ts='0.00', comment='SUCCESS', return_code='0', GAL='1.06', dlogl='9.30e-02', ts2='0.19', photon_index_error='0.00', photon_index='1.77' WHERE bin_id='616' AND source_name='4FGL J1309.4+4305' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Sep  7 01:10:52 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0088>
Subject: Job 278364: <4FGL_J1309.4+4305_daily_bin616> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1309.4+4305_daily_bin616 197.363 43.085 398995201 399254401 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 :                                   759.00 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             297.63 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   902 sec.
    Turnaround time :                            918 sec.

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

