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


Performing analysis on: 4FGL_J1309.4+4305_daily_bin508
RA = 197.363, Dec = 43.085
tmin = 371001601, tmax = 371260801
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='278208', job_status='RUN', time_executed='2021-09-07 00:58:09.058455', time_epoch_executed='1631001489.06' WHERE source_name='4FGL J1309.4+4305' and cadence='daily' and bin_id='508'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/278208

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

Retrieving the FT1 file...

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

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

Retrieving 50 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/278208/ft1_4FGL_J1309.4+4305_daily_bin508.fits


Retrieving the FT1 file...

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

Retrieving 50 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/278208/ft2_4FGL_J1309.4+4305_daily_bin508.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/278208/ft1_4FGL_J1309.4+4305_daily_bin508.fits outfile=/scratch/kocevski/278208/ft1_filteredMKT_4FGL_J1309.4+4305_daily_bin508.fits ra=197.363 dec=43.085 rad=12.0 tmin=371001601.0 tmax=371260801.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 6.46
user 6.12
sys 0.29

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

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

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/278208/ft1_filtered_4FGL_J1309.4+4305_daily_bin508.fits evtable="EVENTS" scfile=/scratch/kocevski/278208/ft2_4FGL_J1309.4+4305_daily_bin508.fits sctable="SC_DATA" expcube=/scratch/kocevski/278208/ltcube_371001601_371260801_4FGL_J1309.4+4305_daily_bin508.fits outfile=/scratch/kocevski/278208/expmap_371001601_371260801_4FGL_J1309.4+4305_daily_bin508.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/278208/ltcube_371001601_371260801_4FGL_J1309.4+4305_daily_bin508.fits
.....................!
real 193.32
user 186.26
sys 5.56

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/278208/ft1_filtered_4FGL_J1309.4+4305_daily_bin508.fits scfile=/scratch/kocevski/278208/ft2_4FGL_J1309.4+4305_daily_bin508.fits outfile=/scratch/kocevski/278208/cmap_371001601_371260801_4FGL_J1309.4+4305_daily_bin508.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.37
sys 0.15

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

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    4.4033       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10077E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    10.598       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10525E-03   1.0000         .10000E-03   10000.    
     5 'norm      '    6.9752       1.0000         .10000E-03   10000.    
     6 'Prefactor '    9.2414       1.0000         .10000E-03   10000.    
     7 'norm      '    .41635       1.0000         .10000E-03   10000.    
     8 'Prefactor '    82.247       1.0000         .10000E-03   10000.    
     9 'Prefactor '    8.4491       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10032E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    .12588E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    15.701       1.0000         .10000E-03   10000.    
    14 'norm      '    .14829E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    1.5443       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10009E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .11466E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    8.4168       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .75823E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    52.186       1.0000         .10000E-03   10000.    
    22 'norm      '    .10113E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    .11189E-03   1.0000         .10000E-03   10000.    
    24 'norm      '    8.9415       1.0000         .10000E-03   10000.    
    25 'norm      '    .10028E-03   1.0000         .10000E-03   10000.    
    26 'Normalizat'    .91641       1.0000         .10000E-01   10.000    
    27 'Prefactor '    .86562       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=   5311.190     FROM MIGRAD    STATUS=CONVERGED    688 CALLS     3333 TOTAL
                     EDM=   .97E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .6%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          4.4002        5.5397        .80592E-06   -.29704E-03
   2  Prefactor     .10000E-03    12.157        .25288E-06** at limit **
   3  Prefactor     10.594        21.367       -.21790E-05    .11572E-04
   4  Prefactor     .10000E-03    19.868        .58044E-05** at limit **
   5  norm          6.9758        2.6542        .58465E-07    .10159E-04
   6  Prefactor     9.2423        7.5148       -.60275E-06   -.59034E-05
   7  norm          .41418        5.2954       -.16468E-05   -.48529E-03
   8  Prefactor     82.458        58.089        .30433E-05   -.35634E-04
   9  Prefactor     8.4640        23.630        .74454E-05    .58848E-04
  10  Prefactor     .10000E-03    7.2580        .22264E-06** at limit **
  11  norm          .10000E-03    1.6582       -.54908E-07** at limit **
  12  norm          .10000E-03    6.7768       -.12684E-06** at limit **
  13  norm          15.686        5.7638       -.15899E-06    .11140E-02
  14  norm          .10000E-03    19.437       -.49498E-05** at limit **
  15  norm          1.5472        3.9988       -.11060E-05   -.76405E-03
  16  Prefactor     .10000E-03    2.6968       -.23515E-06** at limit **
  17  Prefactor     .10000E-03    4.5367       -.16769E-06** at limit **
  18  Prefactor     .10000E-03    17.520        .49680E-06** at limit **
  19  Prefactor     8.4177        27.123        .47717E-06   -.63193E-05
  20  Prefactor     .10000E-03    9.3830       -.31630E-06** at limit **
  21  Prefactor     52.165        39.773        .11491E-04   -.19737E-03
  22  norm          .10000E-03    1.7796       -.69461E-07** at limit **
  23  Prefactor     .10000E-03    121.79        .21906E-06** at limit **
  24  norm          8.9422        2.3806       -.30701E-06   -.11114E-04
  25  norm          .10000E-03    5.1906       -.13021E-06** at limit **
  26  Normalizat    .91640        .17259       -.13245E-05    .17572E-03
  27  Prefactor     .86568        .20489       -.77712E-08    .54412E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 4.40015
  Prefactor  = 0.0001
  Prefactor  = 10.594
  Prefactor  = 0.0001
  norm       = 6.97575
  Prefactor  = 9.24227
  norm       = 0.414178
  Prefactor  = 82.4582
  Prefactor  = 8.46395
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 0.0001
  norm       = 15.6862
  norm       = 0.000100001
  norm       = 1.54717
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 8.41771
  Prefactor  = 0.000100001
  Prefactor  = 52.1655
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 8.9422
  norm       = 0.0001
  Normalizat = 0.916398
  Prefactor  = 0.86568
 **********
 **   18 **HESSE 
 **********

 FCN=   5311.190     FROM HESSE     STATUS=OK           486 CALLS     3819 TOTAL
                     EDM=   .21E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          4.4002        5.5105        .18525E-03   -1.5288    
   2  Prefactor     .10000E-03    12.185        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     10.594        21.377        .12307E-03   -1.5057    
   4  Prefactor     .10000E-03    19.863        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          6.9758        2.6540        .70988E-04   -1.5180    
   6  Prefactor     9.2423        7.5158        .13184E-03   -1.5100    
   7  norm          .41418        12.542        .29798E-02   -1.5579    
   8  Prefactor     82.458        58.042        .44290E-04   -1.3889    
   9  Prefactor     8.4640        23.625        .13791E-03   -1.5126    
  10  Prefactor     .10000E-03    7.2685        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          .10000E-03    1.6620        .91635E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          .10000E-03    6.7855        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          15.686        5.6425        .97660E-04   -1.4916    
  14  norm          .10000E-03    19.575        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          1.5472        4.0313        .22564E-03   -1.5459    
  16  Prefactor     .10000E-03    2.7888        .23330E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    4.5405        .15159E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    17.525        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     8.4177        27.115        .13818E-03   -1.5128    
  20  Prefactor     .10000E-03    53.380        .42828E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     52.165        39.206        .55519E-04   -1.4262    
  22  norm          .10000E-03    1.8047        .94784E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     .10000E-03    122.70        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  norm          8.9422        2.3833        .54410E-04   -1.5110    
  25  norm          .10000E-03    5.2008        .16216E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  Normalizat    .91640        .20267        .23102E-03   -.95886    
  27  Prefactor     .86568        .24144        .28972E-03   -.97351    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.11403e-09
Minuit parameter uncertainties:
  1  5.51115
  2  7.08728e-06
  3  21.3928
  4  0.000114725
  5  2.65401
  6  7.51661
  7  4.55886
  8  58.0816
  9  23.6515
  10  2.93252e-06
  11  1.53977e-07
  12  3.76299e-06
  13  5.64266
  14  0.000277888
  15  4.03205
  16  4.37367e-06
  17  3.38426e-06
  18  0.000148313
  19  27.1549
  20  0.000390401
  21  39.2257
  22  6.32664e-06
  23  0.000100866
  24  2.38328
  25  4.77904e-06
  26  0.202834
  27  0.241739
Done.

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

Extracting fit parameters...

4FGL J1309.4+4305
   Spectrum: LogParabola
349         norm:  1.000e-04  3.763e-06  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:  8.657e-01  2.417e-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.164e-01  2.028e-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: 3.38e-08 ph cm-2 s-1
Energy Flux Upper Limit: 3.72e-05 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/278208/likelihoodResults_371001601_371260801_4FGL_J1309.4+4305_daily_bin508.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) = 5311.19044997
delta logL = -0.000700457440871

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5311.1897495
delta logL = 8.43647285365e-09

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
     2 'alpha     '    1.7751       1.0000          .0000       5.0000    
     3 'Normalizat'    .91640       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .86568       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=   5311.190     FROM MIGRAD    STATUS=CONVERGED     97 CALLS      241 TOTAL
                     EDM=   .98E-10    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    1389.4        .18142E-02** at limit **
   2  alpha         1.9734        3.9825        .17434        .42778E-07
   3  Normalizat    .91640        .10213        .23102E-03    .59349E-04
   4  Prefactor     .86568        .12541        .28972E-03    .98219E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  alpha      = 1.97336
  Normalizat = 0.916396
  Prefactor  = 0.865683
 **********
 **   18 **HESSE 
 **********

 FCN=   5311.190     FROM HESSE     STATUS=OK            23 CALLS      264 TOTAL
                     EDM=   .95E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    6.9538        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  alpha         1.9734        3.0950        .69736E-02   -.21224    
   3  Normalizat    .91640        .19541        .92407E-05   -.95886    
   4  Prefactor     .86568        .23986        .11589E-04   -.97351    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 9.48439e-11
Minuit parameter uncertainties:
  1  7.65645e-05
  2  352.001
  3  0.195563
  4  0.240149
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/278208': 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) = 5311.18974933
delta logL = 1.7640832084e-07

Extracting fit parameters...

4FGL J1309.4+4305
   Spectrum: LogParabola
349         norm:  1.000e-04  7.656e-05  1.000e-04  1.000e+04 ( 1.000e-13)
350        alpha:  1.973e+00  3.520e+02  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:  8.657e-01  2.401e-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.164e-01  1.956e-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/278208/cmap_HighResolution_371001601_371260801_4FGL_J1309.4+4305_daily_bin508.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='3.72e-05', job_status='DONE', photon_flux_upper_limit='3.38e-08', time_completed='2021-09-07 01:11:08.704279', job_id='278208', GAL2='0.87', fit_tolerance='1e-08', EG2='0.92', EG='0.92', time_epoch_completed='1631002268.7', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.87', dlogl='1.76e-07', ts2='-0.00', photon_index_error='0.00', photon_index='1.77' WHERE bin_id='508' AND source_name='4FGL J1309.4+4305' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Sep  7 01:11:08 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0070>
Subject: Job 278208: <4FGL_J1309.4+4305_daily_bin508> in cluster <slac> Done

Job <4FGL_J1309.4+4305_daily_bin508> was submitted from host <rhel6-64k> by user <kocevski> in cluster <slac> at Tue Sep  7 00:55:24 2021
Job was executed on host(s) <bullet0070>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Sep  7 00:55:29 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:29 2021
Terminated at Tue Sep  7 01:11:09 2021
Results reported at Tue Sep  7 01:11:09 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1309.4+4305_daily_bin508 197.363 43.085 371001601 371260801 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 :                                   768.27 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             276.71 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   939 sec.
    Turnaround time :                            945 sec.

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

