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


Performing analysis on: 4FGL_J1309.4+4305_daily_bin509
RA = 197.363, Dec = 43.085
tmin = 371260801, tmax = 371520001
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='278209', job_status='RUN', time_executed='2021-09-07 00:57:58.814347', time_epoch_executed='1631001478.81' WHERE source_name='4FGL J1309.4+4305' and cadence='daily' and bin_id='509'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/278209

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

Retrieving the FT1 file...

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

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

Retrieving 50 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/278209/ft1_4FGL_J1309.4+4305_daily_bin509.fits


Retrieving the FT1 file...

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

Retrieving 50 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/278209/ft2_4FGL_J1309.4+4305_daily_bin509.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/278209/ft1_4FGL_J1309.4+4305_daily_bin509.fits outfile=/scratch/kocevski/278209/ft1_filteredMKT_4FGL_J1309.4+4305_daily_bin509.fits ra=197.363 dec=43.085 rad=12.0 tmin=371260801.0 tmax=371520001.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 5.36
user 5.06
sys 0.24

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

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

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/278209/ft1_filtered_4FGL_J1309.4+4305_daily_bin509.fits evtable="EVENTS" scfile=/scratch/kocevski/278209/ft2_4FGL_J1309.4+4305_daily_bin509.fits sctable="SC_DATA" expcube=/scratch/kocevski/278209/ltcube_371260801_371520001_4FGL_J1309.4+4305_daily_bin509.fits outfile=/scratch/kocevski/278209/expmap_371260801_371520001_4FGL_J1309.4+4305_daily_bin509.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/278209/ltcube_371260801_371520001_4FGL_J1309.4+4305_daily_bin509.fits
.....................!
real 190.74
user 185.90
sys 4.31

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/278209/ft1_filtered_4FGL_J1309.4+4305_daily_bin509.fits scfile=/scratch/kocevski/278209/ft2_4FGL_J1309.4+4305_daily_bin509.fits outfile=/scratch/kocevski/278209/cmap_371260801_371520001_4FGL_J1309.4+4305_daily_bin509.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.68
user 0.38
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/278209/ft1_filtered_4FGL_J1309.4+4305_daily_bin509.fits scfile=/scratch/kocevski/278209/ft2_4FGL_J1309.4+4305_daily_bin509.fits outfile=/scratch/kocevski/278209/cmap_HighResolution_371260801_371520001_4FGL_J1309.4+4305_daily_bin509.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.72
user 0.39
sys 0.16

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .11995E-01   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10036E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    4.3763       1.0000         .10000E-03   10000.    
     5 'norm      '    2.4427       1.0000         .10000E-03   10000.    
     6 'Prefactor '    14.849       1.0000         .10000E-03   10000.    
     7 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10057E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10012E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10042E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    .10003E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    26.309       1.0000         .10000E-03   10000.    
    13 'norm      '    26.750       1.0000         .10000E-03   10000.    
    14 'norm      '    6.5901       1.0000         .10000E-03   10000.    
    15 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10468E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10726E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10044E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    22 'norm      '    .66605       1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10049E-03   1.0000         .10000E-03   10000.    
    24 'norm      '    14.289       1.0000         .10000E-03   10000.    
    25 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    26 'Normalizat'    .93738       1.0000         .10000E-01   10.000    
    27 'Prefactor '    1.2201       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=   6226.922     FROM MIGRAD    STATUS=CONVERGED    675 CALLS     2884 TOTAL
                     EDM=   .15E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .7%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10166E-03    3.9443        .82040E-06** at limit **
   2  Prefactor     .10000E-03    5.6106       -.14425E-06** at limit **
   3  Prefactor     .10000E-03    24.951        .15870E-04** at limit **
   4  Prefactor     4.3756        16.801       -.70948E-06   -.17007E-04
   5  norm          2.4424        2.6757       -.14299E-06   -.56432E-03
   6  Prefactor     14.846        8.2511        .37023E-06    .63554E-03
   7  norm          .10000E-03    1.6345       -.63644E-08** at limit **
   8  Prefactor     .10000E-03    33.714       -.15922E-04** at limit **
   9  Prefactor     .10000E-03    9.6409        .14152E-05** at limit **
  10  Prefactor     .10000E-03    18.752       -.26742E-04** at limit **
  11  norm          .10000E-03    2.5159        .93516E-09** at limit **
  12  norm          26.310        17.393        .19145E-06    .68459E-04
  13  norm          26.754        7.6054        .11641E-05    .38089E-03
  14  norm          6.5896        8.2577        .14474E-05    .12635E-04
  15  norm          .10000E-03    2.4281        .45851E-07** at limit **
  16  Prefactor     .10000E-03    2.2975       -.51729E-06** at limit **
  17  Prefactor     .10000E-03    7.8483        .72290E-07** at limit **
  18  Prefactor     .10001E-03    205.25       -.70444E-04** at limit **
  19  Prefactor     .10000E-03    16.236        .15134E-04** at limit **
  20  Prefactor     .10000E-03    11.075       -.24826E-05** at limit **
  21  Prefactor     .10000E-03    24.210        .90244E-05** at limit **
  22  norm          .66667        2.7527       -.13244E-05   -.12209E-02
  23  Prefactor     .10000E-03    161.91        .21798E-04** at limit **
  24  norm          14.289        2.7958        .43623E-07    .70164E-03
  25  norm          .10000E-03    6.0081        .10356E-06** at limit **
  26  Normalizat    .93733        .17885        .37131E-06    .41092E-03
  27  Prefactor     1.2203        .22099       -.28355E-06    .28413E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 0.000101657
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 4.37561
  norm       = 2.44241
  Prefactor  = 14.8463
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 26.3102
  norm       = 26.7543
  norm       = 6.58964
  norm       = 0.0001
  Prefactor  = 0.000100001
  Prefactor  = 0.0001
  Prefactor  = 0.000100014
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.666669
  Prefactor  = 0.0001
  norm       = 14.2894
  norm       = 0.0001
  Normalizat = 0.937334
  Prefactor  = 1.22031
 **********
 **   18 **HESSE 
 **********

 FCN=   6226.922     FROM HESSE     STATUS=OK           480 CALLS     3364 TOTAL
                     EDM=   .30E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10166E-03    4.1022        .51393E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    5.6132        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    25.041        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     4.3756        16.766        .19253E-03   -1.5290    
   5  norm          2.4424        2.6657        .12956E-03   -1.5395    
   6  Prefactor     14.846        8.2398        .10394E-03   -1.4937    
   7  norm          .10000E-03    1.6429        .98516E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    33.722        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    9.6527        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    18.841        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          .10000E-03    2.5402        .12219E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          26.310        17.397        .78101E-04   -1.4682    
  13  norm          26.754        7.5486        .77456E-04   -1.4673    
  14  norm          6.5896        8.2598        .15632E-03   -1.5195    
  15  norm          .10000E-03    2.4606        .12003E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    5.0447        .22920E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    7.8651        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10001E-03    208.29        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    16.215        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    11.125        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10000E-03    24.251        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  norm          .66667        2.7116        .25441E-03   -1.5545    
  23  Prefactor     .10000E-03    163.84        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  norm          14.289        2.7977        .55362E-04   -1.4952    
  25  norm          .10000E-03    6.0273        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  Normalizat    .93733        .21263        .26106E-03   -.95160    
  27  Prefactor     1.2203        .26375        .28959E-03   -.85708    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.99901e-09
Minuit parameter uncertainties:
  1  0.00521456
  2  3.16236e-06
  3  3.77899e-05
  4  16.7844
  5  2.66581
  6  8.24048
  7  4.06765e-06
  8  8.70778e-06
  9  2.1113e-05
  10  8.67932e-05
  11  1.12112e-06
  12  17.4001
  13  7.54884
  14  8.2612
  15  1.11763e-05
  16  0.000117803
  17  2.40815e-05
  18  0.00343061
  19  5.30147e-06
  20  5.32392e-05
  21  5.45926e-05
  22  2.68906
  23  0.000392668
  24  2.79775
  25  1.44206e-06
  26  0.212823
  27  0.264037
Done.

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

Extracting fit parameters...

4FGL J1309.4+4305
   Spectrum: LogParabola
349         norm:  2.631e+01  1.740e+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.220e+00  2.640e-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.373e-01  2.128e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 5.88
Ra Dec: 197.363 43.085
Photon Index (Fixed Index): 1.77 +/- 0.00
Photon Flux (Fixed Index): 2.76e-08 +/- 1.82e-08
Energy Flux (Fixed Index): 3.03e-05 +/- 2.00e-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) = 6226.19077113
delta logL = 0.73162949281

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6226.18678103
delta logL = 0.735619593008

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    18.554       1.0000         .10000E-03   10000.    
     2 'alpha     '    2.5177       1.0000          .0000       5.0000    
     3 'Normalizat'    .89556       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.2457       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=   6226.187     FROM MIGRAD    STATUS=CONVERGED     57 CALLS      264 TOTAL
                     EDM=   .81E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          18.562        192.27        .23245E-02   -.40656E-04
   2  alpha         2.5175        3.7552        .27613        .50520E-04
   3  Normalizat    .89559        .10251        .44845E-01   -.91515E-04
   4  Prefactor     1.2453        .85340E-01    .64864E-01   -.83469E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 18.5621
  alpha      = 2.51752
  Normalizat = 0.895593
  Prefactor  = 1.24529
 **********
 **   18 **HESSE 
 **********

 FCN=   6226.187     FROM HESSE     STATUS=OK            33 CALLS      297 TOTAL
                     EDM=   .43E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          18.562        17.478        .92982E-04   -1.4846    
   2  alpha         2.5175        .69308        .97459E-02    .70100E-02
   3  Normalizat    .89559        .21765        .26637E-03   -.96615    
   4  Prefactor     1.2453        .26646        .28691E-03   -.84949    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.26729e-09
Minuit parameter uncertainties:
  1  17.483
  2  0.702277
  3  0.217867
  4  0.266755
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/278209': 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) = 6226.18677514
delta logL = 0.735625483215

Extracting fit parameters...

4FGL J1309.4+4305
   Spectrum: LogParabola
349         norm:  1.856e+01  1.748e+01  1.000e-04  1.000e+04 ( 1.000e-13)
350        alpha:  2.518e+00  7.023e-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.245e+00  2.668e-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.956e-01  2.179e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 7.30
Ra Dec: 197.363 43.085
Photon Index (Free Index): 2.52 +/- 0.70
Photon Flux (Free Index): 6.49e-08 +/- 5.12e-08
Energy Flux (Free Index): 2.07e-05 +/- 1.20e-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/278209/cmap_HighResolution_371260801_371520001_4FGL_J1309.4+4305_daily_bin509.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='2.76e-08', energy_flux2='2.07e-05', photon_flux_error='1.82e-08', dlogl='7.36e-01', energy_flux='3.03e-05', photon_flux2='6.49e-08', job_status='DONE', time_completed='2021-09-07 01:09:56.530329', photon_index_error2='0.70', photon_index2='2.52', ts='5.88', fit_tolerance='1e-08', GAL='1.22', photon_index_error='0.00', energy_flux_error2='1.20e-05', EG='0.94', time_epoch_completed='1631002196.53', return_code='0', job_id='278209', GAL2='1.25', EG2='0.90', return_code2='0', energy_flux_error='2.00e-05', photon_flux_error2='5.12e-08', ts2='7.30', photon_index='1.77' WHERE bin_id='509' AND source_name='4FGL J1309.4+4305' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Sep  7 01:09:56 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0080>
Subject: Job 278209: <4FGL_J1309.4+4305_daily_bin509> in cluster <slac> Done

Job <4FGL_J1309.4+4305_daily_bin509> 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) <bullet0080>, 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:09:57 2021
Results reported at Tue Sep  7 01:09:57 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1309.4+4305_daily_bin509 197.363 43.085 371260801 371520001 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 :                                   707.29 sec.
    Max Memory :                                 1095 MB
    Average Memory :                             280.59 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   867 sec.
    Turnaround time :                            873 sec.

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

