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


Performing analysis on: 4FGL_J1309.4+4305_daily_bin540
RA = 197.363, Dec = 43.085
tmin = 379296001, tmax = 379555201
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='278253', job_status='RUN', time_executed='2021-09-07 00:59:21.757703', time_epoch_executed='1631001561.76' WHERE source_name='4FGL J1309.4+4305' and cadence='daily' and bin_id='540'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/278253

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/278253/ft1_4FGL_J1309.4+4305_daily_bin540.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/278253/ft2_4FGL_J1309.4+4305_daily_bin540.fits


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

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

Done.
real 4.66
user 4.40
sys 0.24

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/278253/ft2_4FGL_J1309.4+4305_daily_bin540.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/278253/ft1_filteredMKT_4FGL_J1309.4+4305_daily_bin540.fits evtable="EVENTS" outfile="/scratch/kocevski/278253/ft1_filtered_4FGL_J1309.4+4305_daily_bin540.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/278253/ft1_filtered_4FGL_J1309.4+4305_daily_bin540.fits" evtable="EVENTS" scfile=/scratch/kocevski/278253/ft2_4FGL_J1309.4+4305_daily_bin540.fits sctable="SC_DATA" outfile=/scratch/kocevski/278253/ltcube_379296001_379555201_4FGL_J1309.4+4305_daily_bin540.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/278253/ft2_4FGL_J1309.4+4305_daily_bin540.fits
.....................!
real 14.70
user 14.29
sys 0.32

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/278253/ft1_filtered_4FGL_J1309.4+4305_daily_bin540.fits evtable="EVENTS" scfile=/scratch/kocevski/278253/ft2_4FGL_J1309.4+4305_daily_bin540.fits sctable="SC_DATA" expcube=/scratch/kocevski/278253/ltcube_379296001_379555201_4FGL_J1309.4+4305_daily_bin540.fits outfile=/scratch/kocevski/278253/expmap_379296001_379555201_4FGL_J1309.4+4305_daily_bin540.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/278253/ltcube_379296001_379555201_4FGL_J1309.4+4305_daily_bin540.fits
.....................!
real 192.39
user 186.50
sys 5.27

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/278253/ft1_filtered_4FGL_J1309.4+4305_daily_bin540.fits scfile=/scratch/kocevski/278253/ft2_4FGL_J1309.4+4305_daily_bin540.fits outfile=/scratch/kocevski/278253/cmap_379296001_379555201_4FGL_J1309.4+4305_daily_bin540.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.64
user 0.37
sys 0.17

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/278253/ft1_filtered_4FGL_J1309.4+4305_daily_bin540.fits scfile=/scratch/kocevski/278253/ft2_4FGL_J1309.4+4305_daily_bin540.fits outfile=/scratch/kocevski/278253/cmap_HighResolution_379296001_379555201_4FGL_J1309.4+4305_daily_bin540.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.40
sys 0.15

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .11938E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    22.684       1.0000         .10000E-03   10000.    
     3 'Prefactor '    24.065       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     5 'norm      '    .10181E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     7 'norm      '    .16099E-02   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10020E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    16.412       1.0000         .10000E-03   10000.    
    13 'norm      '    5.2193       1.0000         .10000E-03   10000.    
    14 'norm      '    .11525E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    .10080E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    24.152       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    3.8772       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .11953E-03   1.0000         .10000E-03   10000.    
    22 'norm      '    .10020E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    23.104       1.0000         .10000E-03   10000.    
    24 'norm      '    13.452       1.0000         .10000E-03   10000.    
    25 'norm      '    1.0888       1.0000         .10000E-03   10000.    
    26 'Normalizat'    .93071       1.0000         .10000E-01   10.000    
    27 'Prefactor '    1.0580       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=   6341.886     FROM MIGRAD    STATUS=CONVERGED    650 CALLS     3285 TOTAL
                     EDM=   .10E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.4%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    8.1656        .28299E-06** at limit **
   2  Prefactor     22.688        23.591        .73348E-06    .11220E-03
   3  Prefactor     24.049        27.767       -.22313E-05   -.34205E-03
   4  Prefactor     .10000E-03    5.1307       -.11929E-06** at limit **
   5  norm          .10000E-03    .77652        .52959E-08** at limit **
   6  Prefactor     .10000E-03    2.0301        .55555E-07** at limit **
   7  norm          .10000E-03    2.0254       -.79728E-07** at limit **
   8  Prefactor     .10000E-03    46.100        .12149E-05** at limit **
   9  Prefactor     .10000E-03    8.2583       -.72637E-07** at limit **
  10  Prefactor     .10000E-03    3.2218        .63035E-07** at limit **
  11  norm          .10000E-03    1.1122        .28573E-07** at limit **
  12  norm          16.411        14.047        .10150E-06    .53616E-05
  13  norm          5.2259        3.0653       -.64912E-08   -.73557E-04
  14  norm          .10000E-03    8.6745        .14852E-06** at limit **
  15  norm          .10000E-03    1.4608       -.30474E-06** at limit **
  16  Prefactor     .10000E-03    1.1068        .78937E-07** at limit **
  17  Prefactor     .10000E-03    5.0764        .22932E-06** at limit **
  18  Prefactor     24.125        38.123       -.64433E-05   -.43172E-03
  19  Prefactor     .10000E-03    26.377       -.96634E-07** at limit **
  20  Prefactor     3.8762        10.471        .68611E-05   -.43315E-03
  21  Prefactor     .10000E-03    48.128       -.25427E-05** at limit **
  22  norm          .10000E-03    3.2304       -.79973E-06** at limit **
  23  Prefactor     23.104        52.954       -.36551E-06    .14997E-04
  24  norm          13.451        2.4609        .19939E-07    .76264E-04
  25  norm          1.0878        15.317        .34439E-05   -.13832E-03
  26  Normalizat    .93067        .16681        .20519E-05   -.15352E-03
  27  Prefactor     1.0582        .19871       -.23145E-05    .13399E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  Prefactor  = 22.688
  Prefactor  = 24.0492
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.000100001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 16.4109
  norm       = 5.22586
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 24.1245
  Prefactor  = 0.0001
  Prefactor  = 3.8762
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 23.1043
  norm       = 13.4514
  norm       = 1.08775
  Normalizat = 0.930674
  Prefactor  = 1.05815
 **********
 **   18 **HESSE 
 **********

 FCN=   6341.886     FROM HESSE     STATUS=OK           482 CALLS     3767 TOTAL
                     EDM=   .24E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    8.3485        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     22.688        23.641        .84101E-04   -1.4755    
   3  Prefactor     24.049        28.314        .81655E-04   -1.4727    
   4  Prefactor     .10000E-03    5.1342        .17620E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          .10000E-03    2.0125        .13676E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    2.0555        .11080E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          .10000E-03    11.942        .21867E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    46.326        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    8.2762        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    3.2239        .13960E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          .10000E-03    1.1134        .82014E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          16.411        14.047        .98864E-04   -1.4898    
  13  norm          5.2259        3.0016        .10134E-03   -1.5251    
  14  norm          .10000E-03    8.7945        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          .10000E-03    1.4640        .93854E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    1.1229        .81760E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    5.0924        .17523E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     24.125        39.911        .81508E-04   -1.4725    
  19  Prefactor     .10000E-03    26.399        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     3.8762        10.844        .10246E-02   -1.5314    
  21  Prefactor     .10000E-03    48.120        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  norm          .10000E-03    3.3157        .13997E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     23.104        53.118        .83333E-04   -1.4746    
  24  norm          13.451        2.4643        .50695E-04   -1.4974    
  25  norm          1.0878        15.739        .45896E-03   -1.5499    
  26  Normalizat    .93067        .19834        .23233E-03   -.95391    
  27  Prefactor     1.0582        .23521        .27714E-03   -.90815    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.43253e-09
Minuit parameter uncertainties:
  1  2.57201e-05
  2  23.6506
  3  28.3296
  4  1.90654e-05
  5  8.19685e-06
  6  2.13287e-06
  7  7.80189e-05
  8  0.000471599
  9  2.23673e-05
  10  8.61425e-07
  11  4.4239e-07
  12  14.0497
  13  3.00167
  14  3.80892e-05
  15  1.29769e-05
  16  2.08931e-06
  17  1.58587e-05
  18  39.9553
  19  6.86597e-05
  20  10.8492
  21  0.000171305
  22  2.02198e-05
  23  53.2267
  24  2.46432
  25  8.27755
  26  0.198498
  27  0.235435
Done.

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

Extracting fit parameters...

4FGL J1309.4+4305
   Spectrum: LogParabola
349         norm:  1.641e+01  1.405e+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.058e+00  2.354e-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.307e-01  1.985e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 4.10
Ra Dec: 197.363 43.085
Photon Index (Fixed Index): 1.77 +/- 0.00
Photon Flux (Fixed Index): 1.72e-08 +/- 1.47e-08
Energy Flux (Fixed Index): 1.89e-05 +/- 1.62e-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) = 6341.43557703
delta logL = 0.450074416585

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6341.42443654
delta logL = 0.461214904004

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    13.428       1.0000         .10000E-03   10000.    
     2 'alpha     '    2.5787       1.0000          .0000       5.0000    
     3 'Normalizat'    .88970       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0803       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.

 FCN=   6341.424     FROM MIGRAD    STATUS=CONVERGED     65 CALLS      277 TOTAL
                     EDM=   .18E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          13.424        177.10        .27327E-02    .50114E-04
   2  alpha         2.5787        3.7685        .22011        .82682E-04
   3  Normalizat    .88923        .96541E-01    .44770E-01    .13861E-04
   4  Prefactor     1.0809        .79522E-01    .62037E-01    .95648E-05
                               ERR DEF=  .500    
Final values: 
  norm       = 13.4243
  alpha      = 2.57874
  Normalizat = 0.889227
  Prefactor  = 1.08087
 **********
 **   18 **HESSE 
 **********

 FCN=   6341.424     FROM HESSE     STATUS=OK            33 CALLS      310 TOTAL
                     EDM=   .13E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          13.424        15.016        .10931E-03   -1.4975    
   2  alpha         2.5787        .85140        .11537E-01    .31503E-01
   3  Normalizat    .88923        .19321        .23703E-03   -.96840    
   4  Prefactor     1.0809        .23625        .27437E-03   -.90080    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.32234e-08
Minuit parameter uncertainties:
  1  15.0201
  2  0.868803
  3  0.193364
  4  0.236481
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/278253': 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) = 6341.424433
delta logL = 0.461218441467

Extracting fit parameters...

4FGL J1309.4+4305
   Spectrum: LogParabola
349         norm:  1.342e+01  1.502e+01  1.000e-04  1.000e+04 ( 1.000e-13)
350        alpha:  2.579e+00  8.688e-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.081e+00  2.365e-01  0.000e+00  1.000e+01 ( 1.000e+00)
664        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
665        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
662   Normalization:  8.892e-01  1.934e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 5.01
Ra Dec: 197.363 43.085
Photon Index (Free Index): 2.58 +/- 0.87
Photon Flux (Free Index): 5.27e-08 +/- 5.05e-08
Energy Flux (Free Index): 1.58e-05 +/- 1.00e-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/278253/cmap_HighResolution_379296001_379555201_4FGL_J1309.4+4305_daily_bin540.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='1.72e-08', energy_flux2='1.58e-05', photon_flux_error='1.47e-08', dlogl='4.61e-01', energy_flux='1.89e-05', photon_flux2='5.27e-08', job_status='DONE', time_completed='2021-09-07 01:12:03.270569', photon_index_error2='0.87', photon_index2='2.58', ts='4.10', fit_tolerance='1e-08', GAL='1.06', photon_index_error='0.00', energy_flux_error2='1.00e-05', EG='0.93', time_epoch_completed='1631002323.27', return_code='0', job_id='278253', GAL2='1.08', EG2='0.89', return_code2='0', energy_flux_error='1.62e-05', photon_flux_error2='5.05e-08', ts2='5.01', photon_index='1.77' WHERE bin_id='540' AND source_name='4FGL J1309.4+4305' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Sep  7 01:12:03 PDT 2021


------------------------------------------------------------
Sender: LSF System <scs@bullet0142>
Subject: Job 278253: <4FGL_J1309.4+4305_daily_bin540> in cluster <slac> Done

Job <4FGL_J1309.4+4305_daily_bin540> was submitted from host <rhel6-64k> by user <kocevski> in cluster <slac> at Tue Sep  7 00:55:27 2021
Job was executed on host(s) <bullet0142>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Sep  7 00:55:33 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:33 2021
Terminated at Tue Sep  7 01:12:04 2021
Results reported at Tue Sep  7 01:12:04 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1309.4+4305_daily_bin540 197.363 43.085 379296001 379555201 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 :                                   756.00 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             244.29 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   990 sec.
    Turnaround time :                            997 sec.

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

