/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 24 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 = 7009
number of fields = 22
No RA_SUN column yet. Adding RA_SUN/DEC_SUN columns.
Done.


Performing analysis on: 4FGL_J1309.4+4305_daily_bin43
RA = 197.363, Dec = 43.085
tmin = 250473601, tmax = 250732801
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='274109', job_status='RUN', time_executed='2021-09-07 00:41:52.141390', time_epoch_executed='1631000512.14' WHERE source_name='4FGL J1309.4+4305' and cadence='daily' and bin_id='43'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/274109

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

Retrieving the FT1 file...

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

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

Retrieving 42 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/274109/ft1_4FGL_J1309.4+4305_daily_bin43.fits


Retrieving the FT1 file...

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

Retrieving 44 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/274109/ft2_4FGL_J1309.4+4305_daily_bin43.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/274109/ft1_4FGL_J1309.4+4305_daily_bin43.fits outfile=/scratch/kocevski/274109/ft1_filteredMKT_4FGL_J1309.4+4305_daily_bin43.fits ra=197.363 dec=43.085 rad=12.0 tmin=250473601.0 tmax=250732801.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 1.35
user 1.19
sys 0.15

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/274109/ft1_filtered_4FGL_J1309.4+4305_daily_bin43.fits" evtable="EVENTS" scfile=/scratch/kocevski/274109/ft2_4FGL_J1309.4+4305_daily_bin43.fits sctable="SC_DATA" outfile=/scratch/kocevski/274109/ltcube_250473601_250732801_4FGL_J1309.4+4305_daily_bin43.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/274109/ft2_4FGL_J1309.4+4305_daily_bin43.fits
.....................!
real 14.63
user 14.11
sys 0.36

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/274109/ft1_filtered_4FGL_J1309.4+4305_daily_bin43.fits evtable="EVENTS" scfile=/scratch/kocevski/274109/ft2_4FGL_J1309.4+4305_daily_bin43.fits sctable="SC_DATA" expcube=/scratch/kocevski/274109/ltcube_250473601_250732801_4FGL_J1309.4+4305_daily_bin43.fits outfile=/scratch/kocevski/274109/expmap_250473601_250732801_4FGL_J1309.4+4305_daily_bin43.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/274109/ltcube_250473601_250732801_4FGL_J1309.4+4305_daily_bin43.fits
.....................!
real 192.09
user 185.95
sys 5.71

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/274109/ft1_filtered_4FGL_J1309.4+4305_daily_bin43.fits scfile=/scratch/kocevski/274109/ft2_4FGL_J1309.4+4305_daily_bin43.fits outfile=/scratch/kocevski/274109/cmap_250473601_250732801_4FGL_J1309.4+4305_daily_bin43.fits algorithm="CMAP" ebinalg="LOG" emin=30.0 emax=200000.0 ebinfile=NONE tbinalg="LIN" tbinfile=NONE nxpix=160 nypix=160 binsz=0.25 coordsys="CEL" xref=197.363 yref=43.085 axisrot=0.0 rafield="RA" decfield="DEC" proj="AIT" hpx_ordering_scheme="RING" hpx_order=3 hpx_ebin=yes hpx_region="" evtable="EVENTS" sctable="SC_DATA" efield="ENERGY" tfield="TIME" chatter=2 clobber=yes debug=no gui=no mode="ql"

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

This is gtbin version HEAD
real 0.55
user 0.36
sys 0.17

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/274109/ft1_filtered_4FGL_J1309.4+4305_daily_bin43.fits scfile=/scratch/kocevski/274109/ft2_4FGL_J1309.4+4305_daily_bin43.fits outfile=/scratch/kocevski/274109/cmap_HighResolution_250473601_250732801_4FGL_J1309.4+4305_daily_bin43.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.55
user 0.38
sys 0.16

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10041E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    10.019       1.0000         .10000E-03   10000.    
     3 'Prefactor '    1.5515       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     5 'norm      '    1.5126       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     7 'norm      '    2.0622       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .66496E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    6.5409       1.0000         .10000E-03   10000.    
    11 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    5.0779       1.0000         .10000E-03   10000.    
    13 'norm      '    8.2749       1.0000         .10000E-03   10000.    
    14 'norm      '    .10111E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    .43283E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    61.111       1.0000         .10000E-03   10000.    
    19 'Prefactor '    26.910       1.0000         .10000E-03   10000.    
    20 'Prefactor '    12.086       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10044E-03   1.0000         .10000E-03   10000.    
    22 'norm      '    8.3661       1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    24 'norm      '    3.2529       1.0000         .10000E-03   10000.    
    25 'norm      '    2.7092       1.0000         .10000E-03   10000.    
    26 'Normalizat'    1.0930       1.0000         .10000E-01   10.000    
    27 'Prefactor '    .60651       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=   5797.066     FROM MIGRAD    STATUS=CONVERGED   1163 CALLS     3800 TOTAL
                     EDM=   .19E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    4.3545        .15407E-02** at limit **
   2  Prefactor     10.021        17.758        .12659E-03    .14369E-04
   3  Prefactor     1.5540        23.209        .34192E-03   -.19916E-04
   4  Prefactor     .10000E-03    5.9982        .18142E-02** at limit **
   5  norm          1.5127        1.6265        .98812E-04   -.49358E-04
   6  Prefactor     .10000E-03    1.8599        .10121E-02** at limit **
   7  norm          2.0620        3.0391        .15623E-03   -.12619E-03
   8  Prefactor     .10001E-03    60.604        .15427    ** at limit **
   9  Prefactor     .10000E-03    10.865        .18142E-02** at limit **
  10  Prefactor     6.5399        10.606        .78458E-03    .38399E-05
  11  norm          .10000E-03    2.0518        .10599E-02** at limit **
  12  norm          5.0779        10.334        .89216E-03    .15016E-03
  13  norm          8.2805        3.7350        .94323E-04   -.70859E-03
  14  norm          .10000E-03    10.008        .29403E-02** at limit **
  15  norm          .10002E-03    14.647        .20963E-02** at limit **
  16  Prefactor     .10000E-03    1.2405        .81882E-03** at limit **
  17  Prefactor     .10000E-03    4.7683        .16212E-02** at limit **
  18  Prefactor     61.153        38.826        .51327E-04    .11659E-03
  19  Prefactor     26.915        31.959        .77226E-04    .40955E-04
  20  Prefactor     12.088        17.942        .11523E-03   -.23285E-04
  21  Prefactor     .10000E-03    24.909        .18142E-02** at limit **
  22  norm          8.3657        5.0987        .11752E-03   -.75550E-04
  23  Prefactor     .10000E-03    30.475        .18142E-02** at limit **
  24  norm          3.2528        1.3816        .55959E-04    .17573E-03
  25  norm          2.7092        7.2013        .12373E-02   -.43331E-04
  26  Normalizat    1.0930        .18128        .19642E-03    .20429E-03
  27  Prefactor     .60653        .21290        .31276E-03    .18360E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  Prefactor  = 10.0209
  Prefactor  = 1.55397
  Prefactor  = 0.0001
  norm       = 1.51273
  Prefactor  = 0.0001
  norm       = 2.06196
  Prefactor  = 0.000100012
  Prefactor  = 0.0001
  Prefactor  = 6.53994
  norm       = 0.0001
  norm       = 5.07789
  norm       = 8.28046
  norm       = 0.0001
  norm       = 0.000100022
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 61.1532
  Prefactor  = 26.9152
  Prefactor  = 12.0881
  Prefactor  = 0.000100002
  norm       = 8.36573
  Prefactor  = 0.0001
  norm       = 3.25283
  norm       = 2.70918
  Normalizat = 1.09297
  Prefactor  = 0.606525
 **********
 **   18 **HESSE 
 **********

 FCN=   5797.066     FROM HESSE     STATUS=OK           474 CALLS     4274 TOTAL
                     EDM=   .19E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    4.3554        .30814E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     10.021        17.757        .50638E-05   -1.5075    
   3  Prefactor     1.5540        23.203        .13677E-04   -1.5459    
   4  Prefactor     .10000E-03    5.9984        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          1.5127        1.6265        .39525E-05   -1.5462    
   6  Prefactor     .10000E-03    1.8599        .20243E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          2.0620        3.0390        .62490E-05   -1.5421    
   8  Prefactor     .10001E-03    61.673        .15248       -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    10.867        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     6.5399        10.604        .31383E-04   -1.5196    
  11  norm          .10000E-03    2.0520        .21198E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          5.0779        10.332        .35686E-04   -1.5257    
  13  norm          8.2805        3.7269        .37729E-05   -1.5132    
  14  norm          .10000E-03    10.033        .58806E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          .10002E-03    14.779        .41927E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    1.2407        .16376E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    4.7687        .32423E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     61.153        38.806        .10265E-04   -1.4142    
  19  Prefactor     26.915        31.958        .15445E-04   -1.4670    
  20  Prefactor     12.088        17.941        .46091E-05   -1.5012    
  21  Prefactor     .10000E-03    24.910        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  norm          8.3657        5.0985        .47010E-05   -1.5129    
  23  Prefactor     .10000E-03    30.477        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  norm          3.2528        1.3816        .22384E-05   -1.5347    
  25  norm          2.7092        7.1998        .49493E-04   -1.5379    
  26  Normalizat    1.0930        .18140        .39283E-04   -.89978    
  27  Prefactor     .60653        .21307        .12510E-04   -1.0731    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.89512e-09
Minuit parameter uncertainties:
  1  1.52137e-05
  2  17.7665
  3  12.0147
  4  1.91355e-05
  5  1.62652
  6  7.48073e-06
  7  3.0392
  8  0.00169991
  9  8.20556e-05
  10  10.6074
  11  1.03326e-05
  12  10.3354
  13  3.72704
  14  6.47405e-05
  15  0.00114867
  16  5.59298e-06
  17  3.19318e-06
  18  38.8217
  19  31.9785
  20  17.9493
  21  0.000473599
  22  5.09873
  23  2.33713e-05
  24  1.38162
  25  7.20207
  26  0.181506
  27  0.213358
Done.

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

Extracting fit parameters...

4FGL J1309.4+4305
   Spectrum: LogParabola
349         norm:  5.078e+00  1.034e+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:  6.065e-01  2.134e-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.093e+00  1.815e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/274109/likelihoodResults_250473601_250732801_4FGL_J1309.4+4305_daily_bin43.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) = 5796.89153511
delta logL = 0.174693289212

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5796.88805384
delta logL = 0.178174561776

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    4.7481       1.0000         .10000E-03   10000.    
     2 'alpha     '    2.3513       1.0000          .0000       5.0000    
     3 'Normalizat'    1.0892       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .60505       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=   5796.888     FROM MIGRAD    STATUS=CONVERGED     83 CALLS      239 TOTAL
                     EDM=   .49E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          4.7484        8.8712        .18465E-03   -.12923E-03
   2  alpha         2.3516        .99444        .17507E-01   -.16346E-04
   3  Normalizat    1.0893        .17299        .19670E-03    .12064E-03
   4  Prefactor     .60501        .21102        .31300E-03    .91276E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 4.74843
  alpha      = 2.35161
  Normalizat = 1.08933
  Prefactor  = 0.605009
 **********
 **   18 **HESSE 
 **********

 FCN=   5796.888     FROM HESSE     STATUS=OK            25 CALLS      264 TOTAL
                     EDM=   .69E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          4.7484        8.3725        .73861E-05   -1.5272    
   2  alpha         2.3516        .94140        .70029E-03   -.59392E-01
   3  Normalizat    1.0893        .17304        .39339E-04   -.90095    
   4  Prefactor     .60501        .21110        .12520E-04   -1.0738    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 6.91588e-11
Minuit parameter uncertainties:
  1  8.37457
  2  0.965294
  3  0.173134
  4  0.211372
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/274109': 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) = 5796.8880534
delta logL = 0.1781750004

Extracting fit parameters...

4FGL J1309.4+4305
   Spectrum: LogParabola
349         norm:  4.748e+00  8.375e+00  1.000e-04  1.000e+04 ( 1.000e-13)
350        alpha:  2.352e+00  9.653e-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:  6.050e-01  2.114e-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.089e+00  1.731e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 0.33
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/274109/cmap_HighResolution_250473601_250732801_4FGL_J1309.4+4305_daily_bin43.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='4.07e-05', job_status='DONE', photon_flux_upper_limit='3.71e-08', time_completed='2021-09-07 00:55:41.437975', job_id='274109', GAL2='0.61', fit_tolerance='1e-08', EG2='1.09', EG='1.09', time_epoch_completed='1631001341.44', return_code2='0', ts='0.33', comment='SUCCESS', return_code='0', GAL='0.61', dlogl='1.78e-01', ts2='0.69', photon_index_error='0.00', photon_index='1.77' WHERE bin_id='43' AND source_name='4FGL J1309.4+4305' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Sep  7 00:55:41 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0034>
Subject: Job 274109: <4FGL_J1309.4+4305_daily_bin43> in cluster <slac> Done

Job <4FGL_J1309.4+4305_daily_bin43> was submitted from host <rhel6-64j> by user <kocevski> in cluster <slac> at Tue Sep  7 00:40:45 2021
Job was executed on host(s) <bullet0034>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Sep  7 00:41:20 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:41:20 2021
Terminated at Tue Sep  7 00:55:42 2021
Results reported at Tue Sep  7 00:55:42 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1309.4+4305_daily_bin43 197.363 43.085 250473601 250732801 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 :                                   825.29 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             331.44 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   861 sec.
    Turnaround time :                            897 sec.

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

