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


Performing analysis on: 4FGL_J1309.4+4305_daily_bin713
RA = 197.363, Dec = 43.085
tmin = 424137601, tmax = 424396801
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='279690', job_status='RUN', time_executed='2021-09-07 01:05:34.679452', time_epoch_executed='1631001934.68' WHERE source_name='4FGL J1309.4+4305' and cadence='daily' and bin_id='713'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/279690

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/279690/ft1_4FGL_J1309.4+4305_daily_bin713.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/279690/ft2_4FGL_J1309.4+4305_daily_bin713.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/279690/ft1_4FGL_J1309.4+4305_daily_bin713.fits outfile=/scratch/kocevski/279690/ft1_filteredMKT_4FGL_J1309.4+4305_daily_bin713.fits ra=197.363 dec=43.085 rad=12.0 tmin=424137601.0 tmax=424396801.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.51
user 4.90
sys 0.27

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

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

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/279690/ft1_filtered_4FGL_J1309.4+4305_daily_bin713.fits evtable="EVENTS" scfile=/scratch/kocevski/279690/ft2_4FGL_J1309.4+4305_daily_bin713.fits sctable="SC_DATA" expcube=/scratch/kocevski/279690/ltcube_424137601_424396801_4FGL_J1309.4+4305_daily_bin713.fits outfile=/scratch/kocevski/279690/expmap_424137601_424396801_4FGL_J1309.4+4305_daily_bin713.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/279690/ltcube_424137601_424396801_4FGL_J1309.4+4305_daily_bin713.fits
.....................!
real 194.47
user 188.25
sys 4.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/279690/ft1_filtered_4FGL_J1309.4+4305_daily_bin713.fits scfile=/scratch/kocevski/279690/ft2_4FGL_J1309.4+4305_daily_bin713.fits outfile=/scratch/kocevski/279690/cmap_424137601_424396801_4FGL_J1309.4+4305_daily_bin713.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.72
user 0.40
sys 0.16

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

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10792E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    15.738       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .24221E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    28.521       1.0000         .10000E-03   10000.    
     5 'norm      '    15.796       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .19893E-03   1.0000         .10000E-03   10000.    
     7 'norm      '    .10014E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10751E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10114E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10117E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    .10005E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    .10016E-03   1.0000         .10000E-03   10000.    
    14 'norm      '    17.623       1.0000         .10000E-03   10000.    
    15 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    32.193       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10898E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .32704E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10041E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10087E-03   1.0000         .10000E-03   10000.    
    22 'norm      '    3.4714       1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10488E-03   1.0000         .10000E-03   10000.    
    24 'norm      '    2.5651       1.0000         .10000E-03   10000.    
    25 'norm      '    .10007E-03   1.0000         .10000E-03   10000.    
    26 'Normalizat'    .65405       1.0000         .10000E-01   10.000    
    27 'Prefactor '    1.2355       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=   943.6895     FROM MIGRAD    STATUS=CONVERGED    648 CALLS     3831 TOTAL
                     EDM=   .20E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.0%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    11.619       -.38233E-05** at limit **
   2  Prefactor     15.612        59.552       -.19433E-05   -.15518E-04
   3  Prefactor     .10000E-03    221.87       -.83646E-05** at limit **
   4  Prefactor     28.576        76.867        .27316E-06    .27754E-05
   5  norm          15.797        9.1448        .32018E-07    .10821E-04
   6  Prefactor     .10001E-03    65.149        .87717E-05** at limit **
   7  norm          .10000E-03    6.3373        .14228E-06** at limit **
   8  Prefactor     .10000E-03    94.092        .49932E-07** at limit **
   9  Prefactor     .10000E-03    26.662        .25196E-07** at limit **
  10  Prefactor     .10000E-03    23.785        .52031E-06** at limit **
  11  norm          .10000E-03    7.2752        .15180E-06** at limit **
  12  norm          .10000E-03    28.423        .16499E-06** at limit **
  13  norm          .10000E-03    7.2665        .84029E-08** at limit **
  14  norm          17.619        18.005        .49698E-07   -.65775E-06
  15  norm          .10000E-03    9.5946        .73146E-07** at limit **
  16  Prefactor     .10000E-03    8.3738       -.69299E-06** at limit **
  17  Prefactor     32.158        49.586       -.79508E-06   -.16251E-04
  18  Prefactor     .10000E-03    91.790        .18282E-06** at limit **
  19  Prefactor     .10000E-03    332.67       -.24525E-06** at limit **
  20  Prefactor     .10000E-03    86.152       -.23964E-07** at limit **
  21  Prefactor     .10000E-03    68.797        .35907E-06** at limit **
  22  norm          3.4745        14.193        .11246E-05   -.52608E-06
  23  Prefactor     .10000E-03    76.768       -.78414E-07** at limit **
  24  norm          2.5656        3.3370        .39390E-07   -.25690E-04
  25  norm          .10000E-03    16.120        .15693E-06** at limit **
  26  Normalizat    .65526        .45573        .14608E-04   -.29900E-04
  27  Prefactor     1.2340        .57444       -.13739E-04    .61237E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 0.000100001
  Prefactor  = 15.6119
  Prefactor  = 0.000100002
  Prefactor  = 28.5765
  norm       = 15.7967
  Prefactor  = 0.000100007
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 0.0001
  norm       = 0.0001
  norm       = 17.6191
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 32.1584
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 3.47455
  Prefactor  = 0.0001
  norm       = 2.56555
  norm       = 0.0001
  Normalizat = 0.65526
  Prefactor  = 1.23403
 **********
 **   18 **HESSE 
 **********

 FCN=   943.6895     FROM HESSE     STATUS=OK           476 CALLS     4307 TOTAL
                     EDM=   .50E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    12.103        .10417E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     15.612        59.894        .10096E-03   -1.4918    
   3  Prefactor     .10000E-03    226.09        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     28.576        76.571        .75018E-04   -1.4638    
   5  norm          15.797        9.1457        .68852E-04   -1.4913    
   6  Prefactor     .10001E-03    68.326        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          .10000E-03    6.3381        .75549E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    94.094        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    26.664        .15502E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    23.790        .14641E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          .10000E-03    7.2760        .80948E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          .10000E-03    28.424        .16006E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          .10000E-03    7.2684        .80797E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          17.619        17.986        .95408E-04   -1.4868    
  15  norm          .10000E-03    9.6052        .92954E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    8.3953        .86741E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     32.158        49.490        .70621E-04   -1.4573    
  18  Prefactor     .10000E-03    91.828        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    333.03        .21353E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    86.300        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10000E-03    68.822        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  norm          3.4745        14.149        .21704E-03   -1.5335    
  23  Prefactor     .10000E-03    76.772        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  norm          2.5656        3.3290        .61793E-04   -1.5388    
  25  norm          .10000E-03    16.128        .12051E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  Normalizat    .65526        .47769        .25031E-03   -1.0569    
  27  Prefactor     1.2340        .60355        .24520E-03   -.85291    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.95921e-10
Minuit parameter uncertainties:
  1  0.000248894
  2  60.1261
  3  0.00129661
  4  76.8357
  5  9.14651
  6  0.00142389
  7  4.60435e-06
  8  3.9069e-05
  9  5.77692e-05
  10  5.82665e-05
  11  4.92959e-06
  12  4.70412e-05
  13  1.30073e-06
  14  17.9912
  15  3.60569e-06
  16  4.20402e-05
  17  49.5531
  18  5.76121e-05
  19  0.000220834
  20  0.000202854
  21  0.000114534
  22  14.0284
  23  0.000138277
  24  3.32928
  25  3.48001e-06
  26  0.480752
  27  0.606989
Done.

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

Extracting fit parameters...

4FGL J1309.4+4305
   Spectrum: LogParabola
349         norm:  1.000e-04  4.704e-05  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.234e+00  6.070e-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:  6.553e-01  4.808e-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: 1.71e-07 ph cm-2 s-1
Energy Flux Upper Limit: 1.88e-04 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/279690/likelihoodResults_424137601_424396801_4FGL_J1309.4+4305_daily_bin713.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): 102
logL (Free Index) = 943.689649935
delta logL = -0.00015289355872

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 943.689499554
delta logL = -2.51302185461e-06

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10474E-03   1.0000         .10000E-03   10000.    
     2 'alpha     '    2.7244       1.0000          .0000       5.0000    
     3 'Normalizat'    .65503       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.2343       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=   943.6895     FROM MIGRAD    STATUS=CONVERGED    101 CALLS      275 TOTAL
                     EDM=   .18E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10005E-03    1342.9        .10873E-01** at limit **
   2  alpha         1.5057        3.3642        .16545        .78736E-07
   3  Normalizat    .65527        .65943E-01    .25028E-03   -.95265E-04
   4  Prefactor     1.2340        .86543E-01    .24521E-03   -.11460E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 0.000100048
  alpha      = 1.50571
  Normalizat = 0.655267
  Prefactor  = 1.23401
 **********
 **   18 **HESSE 
 **********

 FCN=   943.6895     FROM HESSE     STATUS=OK            23 CALLS      298 TOTAL
                     EDM=   .19E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10005E-03    30.779        .16464E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  alpha         1.5057        2.5593        .66181E-02   -.40903    
   3  Normalizat    .65527        .44478        .50056E-04   -1.0569    
   4  Prefactor     1.2340        .58385        .49042E-04   -.85291    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.92273e-09
Minuit parameter uncertainties:
  1  0.00244001
  2  619.844
  3  0.44725
  4  0.586963
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/279690': 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) = 943.689496946
delta logL = 9.56938492891e-08

Extracting fit parameters...

4FGL J1309.4+4305
   Spectrum: LogParabola
349         norm:  1.000e-04  2.440e-03  1.000e-04  1.000e+04 ( 1.000e-13)
350        alpha:  1.506e+00  6.198e+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:  1.234e+00  5.870e-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:  6.553e-01  4.473e-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/279690/cmap_HighResolution_424137601_424396801_4FGL_J1309.4+4305_daily_bin713.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.88e-04', job_status='DONE', photon_flux_upper_limit='1.71e-07', time_completed='2021-09-07 01:13:14.947226', job_id='279690', GAL2='1.23', fit_tolerance='1e-08', EG2='0.66', EG='0.66', time_epoch_completed='1631002394.95', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.23', dlogl='9.57e-08', ts2='-0.00', photon_index_error='0.00', photon_index='1.77' WHERE bin_id='713' AND source_name='4FGL J1309.4+4305' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Sep  7 01:13:14 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0041>
Subject: Job 279690: <4FGL_J1309.4+4305_daily_bin713> in cluster <slac> Done

Job <4FGL_J1309.4+4305_daily_bin713> was submitted from host <rhel6-64e> by user <kocevski> in cluster <slac> at Tue Sep  7 01:00:23 2021
Job was executed on host(s) <bullet0041>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Sep  7 01:00: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 01:00:29 2021
Terminated at Tue Sep  7 01:13:15 2021
Results reported at Tue Sep  7 01:13:15 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1309.4+4305_daily_bin713 197.363 43.085 424137601 424396801 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 :                                   431.07 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             178.04 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   766 sec.
    Turnaround time :                            772 sec.

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

