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


Performing analysis on: 4FGL_J1309.4+4305_daily_bin506
RA = 197.363, Dec = 43.085
tmin = 370483201, tmax = 370742401
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='278205', job_status='RUN', time_executed='2021-09-07 00:58:51.604859', time_epoch_executed='1631001531.6' WHERE source_name='4FGL J1309.4+4305' and cadence='daily' and bin_id='506'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/278205

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/278205/ft1_4FGL_J1309.4+4305_daily_bin506.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/278205/ft2_4FGL_J1309.4+4305_daily_bin506.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/278205/ft1_4FGL_J1309.4+4305_daily_bin506.fits outfile=/scratch/kocevski/278205/ft1_filteredMKT_4FGL_J1309.4+4305_daily_bin506.fits ra=197.363 dec=43.085 rad=12.0 tmin=370483201.0 tmax=370742401.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 20.63
user 19.33
sys 0.51

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

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

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/278205/ft1_filtered_4FGL_J1309.4+4305_daily_bin506.fits evtable="EVENTS" scfile=/scratch/kocevski/278205/ft2_4FGL_J1309.4+4305_daily_bin506.fits sctable="SC_DATA" expcube=/scratch/kocevski/278205/ltcube_370483201_370742401_4FGL_J1309.4+4305_daily_bin506.fits outfile=/scratch/kocevski/278205/expmap_370483201_370742401_4FGL_J1309.4+4305_daily_bin506.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/278205/ltcube_370483201_370742401_4FGL_J1309.4+4305_daily_bin506.fits
.....................!
real 195.64
user 188.85
sys 4.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/278205/ft1_filtered_4FGL_J1309.4+4305_daily_bin506.fits scfile=/scratch/kocevski/278205/ft2_4FGL_J1309.4+4305_daily_bin506.fits outfile=/scratch/kocevski/278205/cmap_370483201_370742401_4FGL_J1309.4+4305_daily_bin506.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.78
user 0.38
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/278205/ft1_filtered_4FGL_J1309.4+4305_daily_bin506.fits scfile=/scratch/kocevski/278205/ft2_4FGL_J1309.4+4305_daily_bin506.fits outfile=/scratch/kocevski/278205/cmap_HighResolution_370483201_370742401_4FGL_J1309.4+4305_daily_bin506.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.68
user 0.39
sys 0.17

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

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 '    .10001E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     5 'norm      '    2.5576       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10009E-03   1.0000         .10000E-03   10000.    
     7 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    16.700       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .11270E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    22.636       1.0000         .10000E-03   10000.    
    11 'norm      '    .10012E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    11.930       1.0000         .10000E-03   10000.    
    14 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    5.4685       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10011E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .11927E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    18.106       1.0000         .10000E-03   10000.    
    22 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    24 'norm      '    13.177       1.0000         .10000E-03   10000.    
    25 'norm      '    40.633       1.0000         .10000E-03   10000.    
    26 'Normalizat'    1.2210       1.0000         .10000E-01   10.000    
    27 'Prefactor '    .62907       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=   2935.580     FROM MIGRAD    STATUS=CONVERGED    665 CALLS     3320 TOTAL
                     EDM=   .64E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .3%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    10.857       -.25656E-05** at limit **
   2  Prefactor     .10000E-03    17.083        .11347E-04** at limit **
   3  Prefactor     .10000E-03    17.559       -.95360E-05** at limit **
   4  Prefactor     .10000E-03    14.486       -.74614E-06** at limit **
   5  norm          2.5575        2.3271       -.23049E-06   -.72780E-04
   6  Prefactor     .10000E-03    6.8338       -.89106E-07** at limit **
   7  norm          .10000E-03    3.7299       -.11444E-08** at limit **
   8  Prefactor     16.643        82.415       -.70197E-04    .61448E-05
   9  Prefactor     .10000E-03    326.01        .16631E-04** at limit **
  10  Prefactor     22.638        27.045       -.95719E-06   -.26451E-04
  11  norm          .10000E-03    6.4996       -.16449E-07** at limit **
  12  norm          .10000E-03    10.068        .67601E-06** at limit **
  13  norm          11.932        8.9621       -.12194E-05   -.12785E-02
  14  norm          .10000E-03    11.831        .29241E-05** at limit **
  15  norm          5.4679        5.5547        .97470E-06    .46111E-04
  16  Prefactor     .10000E-03    3.6010       -.42787E-07** at limit **
  17  Prefactor     .10000E-03    39.338        .79315E-06** at limit **
  18  Prefactor     .10004E-03    348.44       -.96457E-05** at limit **
  19  Prefactor     .10000E-03    162.38        .22457E-05** at limit **
  20  Prefactor     .10000E-03    14.352       -.24871E-05** at limit **
  21  Prefactor     18.065        50.332       -.13448E-04    .31015E-04
  22  norm          .10000E-03    1.8046       -.76310E-07** at limit **
  23  Prefactor     .10000E-03    60.397       -.85839E-06** at limit **
  24  norm          13.177        3.9440        .37951E-07    .83350E-04
  25  norm          40.632        36.224       -.16021E-05    .61204E-06
  26  Normalizat    1.2210        .24866        .18381E-05    .29551E-04
  27  Prefactor     .62910        .29318        .55175E-05    .13325E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 2.55749
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 16.6434
  Prefactor  = 0.0001
  Prefactor  = 22.638
  norm       = 0.0001
  norm       = 0.0001
  norm       = 11.932
  norm       = 0.0001
  norm       = 5.46791
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000100044
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 18.0645
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 13.1766
  norm       = 40.632
  Normalizat = 1.22104
  Prefactor  = 0.629105
 **********
 **   18 **HESSE 
 **********

 FCN=   2935.580     FROM HESSE     STATUS=OK           478 CALLS     3798 TOTAL
                     EDM=   .13E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    11.086        .17437E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    17.082        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    17.670        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    14.493        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          2.5575        2.3195        .76405E-04   -1.5388    
   6  Prefactor     .10000E-03    6.8467        .13823E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          .10000E-03    3.7322        .10218E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     16.643        82.172        .98008E-04   -1.4892    
   9  Prefactor     .10000E-03    331.09        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     22.638        26.992        .84189E-04   -1.4756    
  11  norm          .10000E-03    6.5069        .13474E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          .10000E-03    10.078        .16796E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          11.932        9.0173        .57989E-03   -1.5017    
  14  norm          .10000E-03    11.860        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          5.4679        5.5462        .12306E-03   -1.5240    
  16  Prefactor     .10000E-03    3.6147        .10032E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    39.529        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10004E-03    351.38        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    162.62        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    14.399        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     18.065        50.000        .94126E-04   -1.4858    
  22  norm          .10000E-03    1.8075        .71073E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     .10000E-03    60.407        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  norm          13.177        3.9499        .55407E-04   -1.4982    
  25  norm          40.632        36.233        .62884E-04   -1.4432    
  26  Normalizat    1.2210        .28286        .21365E-03   -.85955    
  27  Prefactor     .62910        .33015        .34230E-03   -1.0637    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.28452e-09
Minuit parameter uncertainties:
  1  8.01102e-05
  2  5.26268e-05
  3  1.16679e-06
  4  7.91112e-06
  5  2.31957
  6  6.26052e-06
  7  3.76335e-07
  8  74.1261
  9  0.000646962
  10  27.0066
  11  6.61821e-07
  12  8.33184e-05
  13  9.0183
  14  2.9051e-05
  15  5.54669
  16  2.05403e-07
  17  7.69129e-06
  18  0.00789298
  19  0.000245044
  20  2.47229e-05
  21  50.1166
  22  5.24815e-07
  23  1.56618e-05
  24  3.94997
  25  36.2527
  26  0.283211
  27  0.331178
Done.

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

Extracting fit parameters...

4FGL J1309.4+4305
   Spectrum: LogParabola
349         norm:  1.000e-04  8.332e-05  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:  6.291e-01  3.312e-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.221e+00  2.832e-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: 5.44e-08 ph cm-2 s-1
Energy Flux Upper Limit: 5.97e-05 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/278205/likelihoodResults_370483201_370742401_4FGL_J1309.4+4305_daily_bin506.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) = 2935.58031082
delta logL = -0.000464704445221

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 2935.57984612
delta logL = -5.40012479178e-09

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10010E-03   1.0000         .10000E-03   10000.    
     2 'alpha     '    1.7702       1.0000          .0000       5.0000    
     3 'Normalizat'    1.2210       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .62909       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=   2935.580     FROM MIGRAD    STATUS=CONVERGED     88 CALLS      239 TOTAL
                     EDM=   .29E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10002E-03    686.99        .16798E-02** at limit **
   2  alpha         1.7847        3.3036        .50000       -.35197E-06
   3  Normalizat    1.2210        .53471E-01    .21365E-03    .13596E-04
   4  Prefactor     .62910        .63638E-01    .34230E-03    .72735E-05
                               ERR DEF=  .500    
Final values: 
  norm       = 0.000100018
  alpha      = 1.78465
  Normalizat = 1.22104
  Prefactor  = 0.629105
 **********
 **   18 **HESSE 
 **********

 FCN=   2935.580     FROM HESSE     STATUS=NOT POSDEF    29 CALLS      268 TOTAL
                     EDM=   .15E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10002E-03    2107.7        .33596E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  alpha         1.7847        3.3804        .50000       -.29020    
   3  Normalizat    1.2210        .17159        .85460E-05   -.85955    
   4  Prefactor     .62910        .20408        .13692E-04   -1.0637    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 1.47243e-09
Minuit parameter uncertainties:
  1  0.0126638
  2  4308.04
  3  0.17167
  4  0.204325
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/278205': 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): 102
logL (Free Index) = 2935.57984612
delta logL = 2.42380338022e-09

Extracting fit parameters...

4FGL J1309.4+4305
   Spectrum: LogParabola
349         norm:  1.000e-04  1.266e-02  1.000e-04  1.000e+04 ( 1.000e-13)
350        alpha:  1.785e+00  4.308e+03  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:  6.291e-01  2.043e-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.221e+00  1.717e-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/278205/cmap_HighResolution_370483201_370742401_4FGL_J1309.4+4305_daily_bin506.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='5.97e-05', job_status='DONE', photon_flux_upper_limit='5.44e-08', time_completed='2021-09-07 01:10:06.034941', job_id='278205', GAL2='0.63', fit_tolerance='1e-08', EG2='1.22', EG='1.22', time_epoch_completed='1631002206.04', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.63', dlogl='2.42e-09', ts2='-0.00', photon_index_error='0.00', photon_index='1.77' WHERE bin_id='506' AND source_name='4FGL J1309.4+4305' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Sep  7 01:10:06 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0008>
Subject: Job 278205: <4FGL_J1309.4+4305_daily_bin506> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1309.4+4305_daily_bin506 197.363 43.085 370483201 370742401 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 :                                   648.26 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             232.57 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   879 sec.
    Turnaround time :                            884 sec.

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

