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


Performing analysis on: 4FGL_J1309.4+4305_daily_bin630
RA = 197.363, Dec = 43.085
tmin = 402624001, tmax = 402883201
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='278385', job_status='RUN', time_executed='2021-09-07 00:58:04.058564', time_epoch_executed='1631001484.06' WHERE source_name='4FGL J1309.4+4305' and cadence='daily' and bin_id='630'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/278385

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

Retrieving the FT1 file...

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

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

Retrieving 51 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/278385/ft1_4FGL_J1309.4+4305_daily_bin630.fits


Retrieving the FT1 file...

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

Retrieving 51 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/278385/ft2_4FGL_J1309.4+4305_daily_bin630.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/278385/ft1_4FGL_J1309.4+4305_daily_bin630.fits outfile=/scratch/kocevski/278385/ft1_filteredMKT_4FGL_J1309.4+4305_daily_bin630.fits ra=197.363 dec=43.085 rad=12.0 tmin=402624001.0 tmax=402883201.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 3.64
user 3.39
sys 0.23

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

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

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/278385/ft1_filtered_4FGL_J1309.4+4305_daily_bin630.fits evtable="EVENTS" scfile=/scratch/kocevski/278385/ft2_4FGL_J1309.4+4305_daily_bin630.fits sctable="SC_DATA" expcube=/scratch/kocevski/278385/ltcube_402624001_402883201_4FGL_J1309.4+4305_daily_bin630.fits outfile=/scratch/kocevski/278385/expmap_402624001_402883201_4FGL_J1309.4+4305_daily_bin630.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/278385/ltcube_402624001_402883201_4FGL_J1309.4+4305_daily_bin630.fits
.....................!
real 191.38
user 185.47
sys 5.10

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/278385/ft1_filtered_4FGL_J1309.4+4305_daily_bin630.fits scfile=/scratch/kocevski/278385/ft2_4FGL_J1309.4+4305_daily_bin630.fits outfile=/scratch/kocevski/278385/cmap_402624001_402883201_4FGL_J1309.4+4305_daily_bin630.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.76
user 0.37
sys 0.17

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/278385/ft1_filtered_4FGL_J1309.4+4305_daily_bin630.fits scfile=/scratch/kocevski/278385/ft2_4FGL_J1309.4+4305_daily_bin630.fits outfile=/scratch/kocevski/278385/cmap_HighResolution_402624001_402883201_4FGL_J1309.4+4305_daily_bin630.fits algorithm="CMAP" ebinalg="LOG" emin=30.0 emax=200000.0 ebinfile=NONE tbinalg="LIN" tbinfile=NONE nxpix=500 nypix=500 binsz=0.1 coordsys="CEL" xref=197.363 yref=43.085 axisrot=0.0 rafield="RA" decfield="DEC" proj="AIT" hpx_ordering_scheme="RING" hpx_order=3 hpx_ebin=yes hpx_region="" evtable="EVENTS" sctable="SC_DATA" efield="ENERGY" tfield="TIME" chatter=2 clobber=yes debug=no gui=no mode="ql"

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

This is gtbin version HEAD
real 0.63
user 0.39
sys 0.16

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    6.3328       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10022E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10042E-03   1.0000         .10000E-03   10000.    
     5 'norm      '    1.2565       1.0000         .10000E-03   10000.    
     6 'Prefactor '    1.2286       1.0000         .10000E-03   10000.    
     7 'norm      '    .10076E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    5.8481       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10544       1.0000         .10000E-03   10000.    
    11 'norm      '    8.8976       1.0000         .10000E-03   10000.    
    12 'norm      '    15.732       1.0000         .10000E-03   10000.    
    13 'norm      '    2.6075       1.0000         .10000E-03   10000.    
    14 'norm      '    4.6199       1.0000         .10000E-03   10000.    
    15 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10067E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    44.517       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10094E-03   1.0000         .10000E-03   10000.    
    22 'norm      '    .52167E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10829E-02   1.0000         .10000E-03   10000.    
    24 'norm      '    7.0307       1.0000         .10000E-03   10000.    
    25 'norm      '    .10036E-03   1.0000         .10000E-03   10000.    
    26 'Normalizat'    1.0070       1.0000         .10000E-01   10.000    
    27 'Prefactor '    1.1611       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=   6409.463     FROM MIGRAD    STATUS=CONVERGED    746 CALLS     3416 TOTAL
                     EDM=   .78E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  4.1%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          6.3289        5.4489        .14945E-07    .40405E-04
   2  Prefactor     .10000E-03    65.354       -.51222E-06** at limit **
   3  Prefactor     .10000E-03    23.793       -.47905E-06** at limit **
   4  Prefactor     .10000E-03    27.379       -.10420E-06** at limit **
   5  norm          1.2564        1.1822       -.78751E-08    .59254E-05
   6  Prefactor     1.2353        3.2212        .18525E-05   -.11690E-02
   7  norm          .10000E-03    6.9499        .39114E-05** at limit **
   8  Prefactor     .10000E-03    26.871        .93715E-07** at limit **
   9  Prefactor     5.8014        51.578        .24550E-05    .74586E-04
  10  Prefactor     .13239E-03    20.580       -.37925E-05** at limit **
  11  norm          8.8993        6.4340        .31887E-06    .80775E-03
  12  norm          15.732        14.014       -.33527E-07    .14806E-04
  13  norm          2.6136        8.5269        .88471E-06    .49892E-03
  14  norm          4.6116        9.1195       -.16171E-06    .54759E-03
  15  norm          .10000E-03    .90220       -.25855E-07** at limit **
  16  Prefactor     .10000E-03    2.0366       -.84332E-06** at limit **
  17  Prefactor     .10000E-03    6.5325       -.24490E-06** at limit **
  18  Prefactor     .10000E-03    8.9983       -.42270E-07** at limit **
  19  Prefactor     .10000E-03    19.351       -.13800E-06** at limit **
  20  Prefactor     44.515        17.959        .11835E-06    .10087E-03
  21  Prefactor     .10000E-03    21.659        .76302E-07** at limit **
  22  norm          .10000E-03    1.6449       -.20156E-06** at limit **
  23  Prefactor     .10002E-03    282.29        .39928E-05** at limit **
  24  norm          7.0312        2.0403       -.24011E-07   -.17769E-03
  25  norm          .10000E-03    5.5696       -.65797E-07** at limit **
  26  Normalizat    1.0073        .16881       -.65025E-06    .28325E-03
  27  Prefactor     1.1610        .20625        .10688E-05    .31093E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 6.32895
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 1.25637
  Prefactor  = 1.23533
  norm       = 0.000100003
  Prefactor  = 0.0001
  Prefactor  = 5.80144
  Prefactor  = 0.00013239
  norm       = 8.89931
  norm       = 15.7316
  norm       = 2.61358
  norm       = 4.61155
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 44.5154
  Prefactor  = 0.0001
  norm       = 0.000100001
  Prefactor  = 0.000100018
  norm       = 7.03123
  norm       = 0.0001
  Normalizat = 1.00725
  Prefactor  = 1.16097
 **********
 **   18 **HESSE 
 **********

 FCN=   6409.463     FROM HESSE     STATUS=OK           498 CALLS     3914 TOTAL
                     EDM=   .91E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          6.3289        5.4248        .15950E-03   -1.5205    
   2  Prefactor     .10000E-03    67.486        .36285E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    24.018        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    27.538        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          1.2564        1.2020        .82261E-04   -1.5484    
   6  Prefactor     1.2353        14.166        .20298E-02   -1.5486    
   7  norm          .10000E-03    7.6611        .28787E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    26.894        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     5.8014        53.259        .16607E-03   -1.5226    
  10  Prefactor     .13239E-03    40.742        .83220E-01   -1.5707    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          8.8993        6.5794        .13437E-03   -1.5111    
  12  norm          15.732        14.018        .10098E-03   -1.4914    
  13  norm          2.6136        8.6621        .21351E-03   -1.5385    
  14  norm          4.6116        9.4075        .18726E-03   -1.5278    
  15  norm          .10000E-03    .90513        .74263E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    4.8521        .21649E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    6.5602        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    9.0053        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    19.358        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     44.515        17.625        .60089E-04   -1.4373    
  21  Prefactor     .10000E-03    21.746        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  norm          .10000E-03    20.785        .19479E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     .10002E-03    278.59        .20709E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  norm          7.0312        2.0443        .58746E-04   -1.5178    
  25  norm          .10000E-03    5.5774        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  Normalizat    1.0073        .20125        .23717E-03   -.92788    
  27  Prefactor     1.1610        .24759        .28207E-03   -.87541    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 9.07141e-09
Minuit parameter uncertainties:
  1  5.42526
  2  0.000249147
  3  5.33672e-05
  4  1.23459e-05
  5  1.20203
  6  8.36861
  7  0.000284673
  8  3.91371e-05
  9  35.1967
  10  0.0727028
  11  6.57992
  12  14.0208
  13  8.66626
  14  9.41052
  15  1.59936e-06
  16  8.18518e-05
  17  4.54185e-05
  18  9.50579e-06
  19  1.638e-05
  20  17.6273
  21  5.52666e-05
  22  0.000256545
  23  0.0045376
  24  2.04434
  25  1.0599e-05
  26  0.201402
  27  0.24784
Done.

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

Extracting fit parameters...

4FGL J1309.4+4305
   Spectrum: LogParabola
349         norm:  1.573e+01  1.402e+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.161e+00  2.478e-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.007e+00  2.014e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 5.45
Ra Dec: 197.363 43.085
Photon Index (Fixed Index): 1.77 +/- 0.00
Photon Flux (Fixed Index): 1.65e-08 +/- 1.47e-08
Energy Flux (Fixed Index): 1.81e-05 +/- 1.61e-05

Performing a free index iterative likelihood fit...

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

Done.

Freeing candidate source...
Done.

Fit tolerance = 1

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6409.22678069
delta logL = 0.236244483811

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6409.21694491
delta logL = 0.246080258652

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    14.933       1.0000         .10000E-03   10000.    
     2 'alpha     '    2.2529       1.0000          .0000       5.0000    
     3 'Normalizat'    .99393       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.1639       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=   6409.217     FROM MIGRAD    STATUS=CONVERGED     86 CALLS      246 TOTAL
                     EDM=   .16E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          14.933        13.400        .10365E-03    .27814E-03
   2  alpha         2.2531        .66574        .14323E-01    .50693E-04
   3  Normalizat    .99396        .19460        .23855E-03   -.62622E-04
   4  Prefactor     1.1639        .24536        .28166E-03   -.70071E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 14.9326
  alpha      = 2.25307
  Normalizat = 0.993962
  Prefactor  = 1.16392
 **********
 **   18 **HESSE 
 **********

 FCN=   6409.217     FROM HESSE     STATUS=OK            25 CALLS      271 TOTAL
                     EDM=   .12E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          14.933        12.959        .20729E-04   -1.4935    
   2  alpha         2.2531        .64379        .57290E-03   -.98932E-01
   3  Normalizat    .99396        .19461        .95419E-05   -.93233    
   4  Prefactor     1.1639        .24552        .11266E-04   -.87449    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.23265e-10
Minuit parameter uncertainties:
  1  12.961
  2  0.651203
  3  0.194754
  4  0.245762
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/278385': 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) = 6409.21694482
delta logL = 0.246080350105

Extracting fit parameters...

4FGL J1309.4+4305
   Spectrum: LogParabola
349         norm:  1.493e+01  1.296e+01  1.000e-04  1.000e+04 ( 1.000e-13)
350        alpha:  2.253e+00  6.512e-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:  1.164e+00  2.458e-01  0.000e+00  1.000e+01 ( 1.000e+00)
664        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
665        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
662   Normalization:  9.940e-01  1.948e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 5.93
Ra Dec: 197.363 43.085
Photon Index (Free Index): 2.25 +/- 0.65
Photon Flux (Free Index): 3.25e-08 +/- 3.34e-08
Energy Flux (Free Index): 1.42e-05 +/- 1.13e-05

Creating a high resolution counts map...
INFO: Auto-setting vmin to  0.000e+00 [aplpy.core]
INFO: Auto-setting vmax to  0.000e+00 [aplpy.core]
Saving /scratch/kocevski/278385/cmap_HighResolution_402624001_402883201_4FGL_J1309.4+4305_daily_bin630.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='1.65e-08', energy_flux2='1.42e-05', photon_flux_error='1.47e-08', dlogl='2.46e-01', energy_flux='1.81e-05', photon_flux2='3.25e-08', job_status='DONE', time_completed='2021-09-07 01:10:57.510756', photon_index_error2='0.65', photon_index2='2.25', ts='5.45', fit_tolerance='1e-08', GAL='1.16', photon_index_error='0.00', energy_flux_error2='1.13e-05', EG='1.01', time_epoch_completed='1631002257.51', return_code='0', job_id='278385', GAL2='1.16', EG2='0.99', return_code2='0', energy_flux_error='1.61e-05', photon_flux_error2='3.34e-08', ts2='5.93', photon_index='1.77' WHERE bin_id='630' AND source_name='4FGL J1309.4+4305' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Sep  7 01:10:57 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0246>
Subject: Job 278385: <4FGL_J1309.4+4305_daily_bin630> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1309.4+4305_daily_bin630 197.363 43.085 402624001 402883201 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 :                                   763.20 sec.
    Max Memory :                                 1171 MB
    Average Memory :                             303.93 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   904 sec.
    Turnaround time :                            921 sec.

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

