/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 101 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 = 7182
number of fields = 27
No RA_SUN column yet. Adding RA_SUN/DEC_SUN columns.
Done.


Performing analysis on: 4FGL_J1309.4+4305_daily_bin314
RA = 197.363, Dec = 43.085
tmin = 320716801, tmax = 320976001
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='276736', job_status='RUN', time_executed='2021-09-07 00:52:36.716939', time_epoch_executed='1631001156.72' WHERE source_name='4FGL J1309.4+4305' and cadence='daily' and bin_id='314'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/276736

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

Retrieving the FT1 file...

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

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

Retrieving 44 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/276736/ft1_4FGL_J1309.4+4305_daily_bin314.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/276736/ft2_4FGL_J1309.4+4305_daily_bin314.fits


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

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

Done.
real 3.45
user 3.21
sys 0.22

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/276736/ft2_4FGL_J1309.4+4305_daily_bin314.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/276736/ft1_filteredMKT_4FGL_J1309.4+4305_daily_bin314.fits evtable="EVENTS" outfile="/scratch/kocevski/276736/ft1_filtered_4FGL_J1309.4+4305_daily_bin314.fits" apply_filter=yes overwrite=yes header_obstimes=yes tstart=0.0 tstop=0.0 gtifile="default" chatter=3 clobber=yes debug=no gui=no mode="ql"

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

This is gtmktime version HEAD
Applying GTI filter:
IN_SAA!=T && LIVETIME>0 && gtifilter('/nfs/farm/g/glast/g/LCRepository/Likelihood/GTIs/nogrb.gti',(START+STOP)/2) && (angsep(RA_SUN,DEC_SUN,RA_ZENITH,DEC_ZENITH)>115 || gtifilter('/nfs/farm/g/glast/g/LCRepository/Likelihood/GTIs/nosolarflares.gti',(START+STOP)/2))
real 0.51
user 0.35
sys 0.16

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/276736/ft1_filtered_4FGL_J1309.4+4305_daily_bin314.fits evtable="EVENTS" scfile=/scratch/kocevski/276736/ft2_4FGL_J1309.4+4305_daily_bin314.fits sctable="SC_DATA" expcube=/scratch/kocevski/276736/ltcube_320716801_320976001_4FGL_J1309.4+4305_daily_bin314.fits outfile=/scratch/kocevski/276736/expmap_320716801_320976001_4FGL_J1309.4+4305_daily_bin314.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/276736/ltcube_320716801_320976001_4FGL_J1309.4+4305_daily_bin314.fits
.....................!
real 191.51
user 186.20
sys 4.92

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/276736/ft1_filtered_4FGL_J1309.4+4305_daily_bin314.fits scfile=/scratch/kocevski/276736/ft2_4FGL_J1309.4+4305_daily_bin314.fits outfile=/scratch/kocevski/276736/cmap_320716801_320976001_4FGL_J1309.4+4305_daily_bin314.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.57
user 0.40
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/276736/ft1_filtered_4FGL_J1309.4+4305_daily_bin314.fits scfile=/scratch/kocevski/276736/ft2_4FGL_J1309.4+4305_daily_bin314.fits outfile=/scratch/kocevski/276736/cmap_HighResolution_320716801_320976001_4FGL_J1309.4+4305_daily_bin314.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/276736/ft1_filtered_4FGL_J1309.4+4305_daily_bin314.fits evtable="EVENTS" scfile=/scratch/kocevski/276736/ft2_4FGL_J1309.4+4305_daily_bin314.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/276736/Model_4FGL_J1309.4+4305_daily_bin314.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/276736/ft1_filtered_4FGL_J1309.4+4305_daily_bin314.fits.....................!
real 45.93
user 44.54
sys 1.29

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    5.4720       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10015E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     5 'norm      '    2.2868       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .58263E-03   1.0000         .10000E-03   10000.    
     7 'norm      '    7.9007       1.0000         .10000E-03   10000.    
     8 'Prefactor '    6.3389       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .32751E-01   1.0000         .10000E-03   10000.    
    10 'Prefactor '    42.303       1.0000         .10000E-03   10000.    
    11 'norm      '    .10004E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    3.9201       1.0000         .10000E-03   10000.    
    13 'norm      '    2.2038       1.0000         .10000E-03   10000.    
    14 'norm      '    .10331E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    3.3064       1.0000         .10000E-03   10000.    
    16 'Prefactor '    2.1415       1.0000         .10000E-03   10000.    
    17 'Prefactor '    4.9784       1.0000         .10000E-03   10000.    
    18 'Prefactor '    1.5062       1.0000         .10000E-03   10000.    
    19 'Prefactor '    71.425       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10170E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    41.162       1.0000         .10000E-03   10000.    
    22 'norm      '    .10047E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10045E-03   1.0000         .10000E-03   10000.    
    24 'norm      '    2.8488       1.0000         .10000E-03   10000.    
    25 'norm      '    11.620       1.0000         .10000E-03   10000.    
    26 'Normalizat'    1.0167       1.0000         .10000E-01   10.000    
    27 'Prefactor '    .98682       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=   5325.256     FROM MIGRAD    STATUS=CONVERGED    676 CALLS     3405 TOTAL
                     EDM=   .19E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .9%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          5.4721        7.4838        .66118E-07   -.19029E-04
   2  Prefactor     .10000E-03    7.4285       -.24086E-07** at limit **
   3  Prefactor     .10000E-03    8.7629       -.72219E-07** at limit **
   4  Prefactor     .10000E-03    11.378       -.39349E-07** at limit **
   5  norm          2.2868        1.8804       -.68762E-08   -.18958E-04
   6  Prefactor     .10006E-03    8.2593       -.20028E-05** at limit **
   7  norm          7.8993        5.6089        .30275E-06    .10331E-03
   8  Prefactor     6.2827        175.89       -.15356E-05   -.10387E-04
   9  Prefactor     .10061E-03    24.456       -.94462E-06** at limit **
  10  Prefactor     42.282        21.446        .17146E-05    .19913E-03
  11  norm          .10000E-03    1.6741       -.16050E-06** at limit **
  12  norm          3.9221        14.644       -.65031E-07    .22157E-05
  13  norm          2.2012        4.1138        .49170E-06    .17710E-04
  14  norm          .10000E-03    5.0496       -.18520E-06** at limit **
  15  norm          3.3066        4.6523        .21227E-06   -.60364E-04
  16  Prefactor     2.1359        5.5732        .12337E-05    .73663E-05
  17  Prefactor     4.9781        31.560       -.27448E-05   -.15320E-04
  18  Prefactor     1.4994        182.66        .52866E-07   -.25923E-05
  19  Prefactor     71.515        70.620       -.28705E-06    .65610E-04
  20  Prefactor     .10000E-03    12.994        .29647E-07** at limit **
  21  Prefactor     41.140        49.477        .47360E-07   -.58541E-05
  22  norm          .10000E-03    2.3761        .25114E-07** at limit **
  23  Prefactor     .10000E-03    119.92        .62335E-06** at limit **
  24  norm          2.8485        1.8584       -.67917E-08   -.46082E-04
  25  norm          11.617        11.677       -.80297E-08    .50878E-04
  26  Normalizat    1.0173        .19379        .12034E-05    .65931E-04
  27  Prefactor     .98616        .22715       -.81120E-06    .14103E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 5.47209
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 2.28682
  Prefactor  = 0.000100064
  norm       = 7.89925
  Prefactor  = 6.28265
  Prefactor  = 0.000100614
  Prefactor  = 42.2822
  norm       = 0.0001
  norm       = 3.92213
  norm       = 2.20122
  norm       = 0.0001
  norm       = 3.30656
  Prefactor  = 2.1359
  Prefactor  = 4.97813
  Prefactor  = 1.49944
  Prefactor  = 71.5145
  Prefactor  = 0.0001
  Prefactor  = 41.1397
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 2.84852
  norm       = 11.6174
  Normalizat = 1.01729
  Prefactor  = 0.986159
 **********
 **   18 **HESSE 
 **********

 FCN=   5325.256     FROM HESSE     STATUS=OK           506 CALLS     3911 TOTAL
                     EDM=   .14E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          5.4721        7.4796        .17177E-03   -1.5240    
   2  Prefactor     .10000E-03    7.4345        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    8.7776        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    11.396        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          2.2868        1.8765        .88044E-04   -1.5406    
   6  Prefactor     .10006E-03    51.666        .36614E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          7.8993        5.6628        .13706E-03   -1.5146    
   8  Prefactor     6.2827        175.39        .15943E-03   -1.5207    
   9  Prefactor     .10061E-03    30.371        .10207       -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     42.282        21.323        .61635E-04   -1.4407    
  11  norm          .10000E-03    1.6781        .92264E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          3.9221        14.585        .20376E-03   -1.5312    
  13  norm          2.2012        4.0531        .18246E-03   -1.5411    
  14  norm          .10000E-03    5.0785        .15946E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          3.3066        4.6010        .17391E-03   -1.5344    
  16  Prefactor     2.1359        5.2406        .18286E-03   -1.5416    
  17  Prefactor     4.9781        28.248        .18024E-03   -1.5262    
  18  Prefactor     1.4994        169.44        .34868E-03   -1.5463    
  19  Prefactor     71.515        69.946        .23751E-03   -1.4015    
  20  Prefactor     .10000E-03    13.092        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     41.140        47.962        .62480E-04   -1.4424    
  22  norm          .10000E-03    2.4162        .10978E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     .10000E-03    120.30        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  norm          2.8485        1.8508        .74750E-04   -1.5370    
  25  norm          11.617        11.672        .11752E-03   -1.5026    
  26  Normalizat    1.0173        .22814        .23084E-03   -.92453    
  27  Prefactor     .98616        .26617        .28706E-03   -.93192    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.41436e-09
Minuit parameter uncertainties:
  1  7.48084
  2  3.49805e-06
  3  4.05054e-06
  4  4.9514e-06
  5  1.87657
  6  0.00363484
  7  5.66318
  8  66.6069
  9  0.00864044
  10  21.3273
  11  2.35673e-06
  12  14.5987
  13  4.05362
  14  2.47508e-05
  15  4.60153
  16  5.24173
  17  23.7339
  18  31.9708
  19  70.027
  20  1.80287e-05
  21  48.007
  22  4.43968e-06
  23  0.000133124
  24  1.85083
  25  11.6738
  26  0.228362
  27  0.266523
Done.

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

Extracting fit parameters...

4FGL J1309.4+4305
   Spectrum: LogParabola
349         norm:  3.922e+00  1.460e+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:  9.862e-01  2.665e-01  0.000e+00  1.000e+01 ( 1.000e+00)
664        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
665        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
662   Normalization:  1.017e+00  2.284e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 0.09
Ra Dec: 197.363 43.085
Photon Flux Upper Limit: 4.81e-08 ph cm-2 s-1
Energy Flux Upper Limit: 5.28e-05 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/276736/likelihoodResults_320716801_320976001_4FGL_J1309.4+4305_daily_bin314.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) = 5323.98573686
delta logL = 1.27005894871

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5323.82018394
delta logL = 1.43561186503

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .12005       1.0000         .10000E-03   10000.    
     2 'alpha     '    5.0000       1.0000          .0000       5.0000    
     3 'Normalizat'    .88865       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0920       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=   5323.820     FROM MIGRAD    STATUS=CONVERGED     54 CALLS      399 TOTAL
                     EDM=   .37E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .12006        2.4830        .36523E-02    .14480E-02
   2  alpha         5.0000        3.9850        .46408    ** at limit **
   3  Normalizat    .88865        .10253        .44756E-01   -.25733E-05
   4  Prefactor     1.0920        .12471        .62100E-01   -.34935E-06
                               ERR DEF=  .500    
Final values: 
  norm       = 0.120058
  alpha      = 5
  Normalizat = 0.888646
  Prefactor  = 1.092
 **********
 **   18 **HESSE 
 **********

 FCN=   5323.820     FROM HESSE     STATUS=OK            35 CALLS      434 TOTAL
                     EDM=   .15E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .12006        .10427        .16468E-04   -1.5639    
   2  alpha         5.0000        .80597        .42191        1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Normalizat    .88865        .22813        .24493E-03   -.96860    
   4  Prefactor     1.0920        .27178        .27466E-03   -.89723    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.47792e-12
Minuit parameter uncertainties:
  1  0.104271
  2  1.44513e-05
  3  0.228381
  4  0.272129
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/276736': 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) = 5323.82018382
delta logL = 1.43561198437

Extracting fit parameters...

4FGL J1309.4+4305
   Spectrum: LogParabola
349         norm:  1.201e-01  1.043e-01  1.000e-04  1.000e+04 ( 1.000e-13)
350        alpha:  5.000e+00  1.445e-05  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.092e+00  2.721e-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.886e-01  2.284e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 3.22
Ra Dec: 197.363 43.085
Photon Index (Free Index): 5.00 +/- 0.00
Photon Flux (Free Index): 9.65e-08 +/- 8.34e-08
Energy Flux (Free Index): 1.32e-05 +/- 1.15e-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/276736/cmap_HighResolution_320716801_320976001_4FGL_J1309.4+4305_daily_bin314.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='5.28e-05', comment='SUCCESS', energy_flux2='1.32e-05', dlogl='1.44e+00', photon_flux2='9.65e-08', job_status='DONE', time_completed='2021-09-07 01:06:52.427240', photon_index_error2='0.00', photon_index2='5.00', ts='0.09', fit_tolerance='1e-08', GAL='0.99', photon_index_error='0.00', photon_flux_upper_limit='4.81e-08', energy_flux_error2='1.15e-05', EG='1.02', time_epoch_completed='1631002012.43', return_code='0', job_id='276736', GAL2='1.09', EG2='0.89', return_code2='0', photon_flux_error2='8.34e-08', ts2='3.22', photon_index='1.77' WHERE bin_id='314' AND source_name='4FGL J1309.4+4305' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Sep  7 01:06:52 PDT 2021


------------------------------------------------------------
Sender: LSF System <scs@bullet0131>
Subject: Job 276736: <4FGL_J1309.4+4305_daily_bin314> in cluster <slac> Done

Job <4FGL_J1309.4+4305_daily_bin314> was submitted from host <rhel6-64m> by user <kocevski> in cluster <slac> at Tue Sep  7 00:50:31 2021
Job was executed on host(s) <bullet0131>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Sep  7 00:50:45 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:50:45 2021
Terminated at Tue Sep  7 01:06:53 2021
Results reported at Tue Sep  7 01:06:53 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1309.4+4305_daily_bin314 197.363 43.085 320716801 320976001 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 :                                   781.00 sec.
    Max Memory :                                 1095 MB
    Average Memory :                             288.52 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   967 sec.
    Turnaround time :                            982 sec.

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

