/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 160 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 = 7445
number of fields = 22
No RA_SUN column yet. Adding RA_SUN/DEC_SUN columns.
Done.


Performing analysis on: 4FGL_J1309.4+4305_daily_bin112
RA = 197.363, Dec = 43.085
tmin = 268358401, tmax = 268617601
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='275306', job_status='RUN', time_executed='2021-09-07 00:48:33.223153', time_epoch_executed='1631000913.22' WHERE source_name='4FGL J1309.4+4305' and cadence='daily' and bin_id='112'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/275306

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/275306/ft1_4FGL_J1309.4+4305_daily_bin112.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/275306/ft2_4FGL_J1309.4+4305_daily_bin112.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/275306/ft1_4FGL_J1309.4+4305_daily_bin112.fits outfile=/scratch/kocevski/275306/ft1_filteredMKT_4FGL_J1309.4+4305_daily_bin112.fits ra=197.363 dec=43.085 rad=12.0 tmin=268358401.0 tmax=268617601.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 1.20
user 1.04
sys 0.15

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/275306/ft2_4FGL_J1309.4+4305_daily_bin112.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/275306/ft1_filteredMKT_4FGL_J1309.4+4305_daily_bin112.fits evtable="EVENTS" outfile="/scratch/kocevski/275306/ft1_filtered_4FGL_J1309.4+4305_daily_bin112.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.43
user 0.28
sys 0.14

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/275306/ft1_filtered_4FGL_J1309.4+4305_daily_bin112.fits" evtable="EVENTS" scfile=/scratch/kocevski/275306/ft2_4FGL_J1309.4+4305_daily_bin112.fits sctable="SC_DATA" outfile=/scratch/kocevski/275306/ltcube_268358401_268617601_4FGL_J1309.4+4305_daily_bin112.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/275306/ft2_4FGL_J1309.4+4305_daily_bin112.fits
.....................!
real 11.94
user 11.64
sys 0.26

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/275306/ft1_filtered_4FGL_J1309.4+4305_daily_bin112.fits evtable="EVENTS" scfile=/scratch/kocevski/275306/ft2_4FGL_J1309.4+4305_daily_bin112.fits sctable="SC_DATA" expcube=/scratch/kocevski/275306/ltcube_268358401_268617601_4FGL_J1309.4+4305_daily_bin112.fits outfile=/scratch/kocevski/275306/expmap_268358401_268617601_4FGL_J1309.4+4305_daily_bin112.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/275306/ltcube_268358401_268617601_4FGL_J1309.4+4305_daily_bin112.fits
.....................!
real 155.46
user 151.57
sys 3.47

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/275306/ft1_filtered_4FGL_J1309.4+4305_daily_bin112.fits scfile=/scratch/kocevski/275306/ft2_4FGL_J1309.4+4305_daily_bin112.fits outfile=/scratch/kocevski/275306/cmap_268358401_268617601_4FGL_J1309.4+4305_daily_bin112.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.47
user 0.31
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/275306/ft1_filtered_4FGL_J1309.4+4305_daily_bin112.fits scfile=/scratch/kocevski/275306/ft2_4FGL_J1309.4+4305_daily_bin112.fits outfile=/scratch/kocevski/275306/cmap_HighResolution_268358401_268617601_4FGL_J1309.4+4305_daily_bin112.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.48
user 0.33
sys 0.14

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10007E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    4.6674       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10173E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     5 'norm      '    .91457       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .90010       1.0000         .10000E-03   10000.    
     7 'norm      '    4.3390       1.0000         .10000E-03   10000.    
     8 'Prefactor '    26.674       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .16398E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10218E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    4.4260       1.0000         .10000E-03   10000.    
    12 'norm      '    18.654       1.0000         .10000E-03   10000.    
    13 'norm      '    5.5815       1.0000         .10000E-03   10000.    
    14 'norm      '    .10022E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    2.0172       1.0000         .10000E-03   10000.    
    16 'Prefactor '    4.8602       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .62234       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10017E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10075E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    32.488       1.0000         .10000E-03   10000.    
    22 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
    24 'norm      '    2.9979       1.0000         .10000E-03   10000.    
    25 'norm      '    .10102E-03   1.0000         .10000E-03   10000.    
    26 'Normalizat'    .90713       1.0000         .10000E-01   10.000    
    27 'Prefactor '    1.3377       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=   6154.532     FROM MIGRAD    STATUS=CONVERGED    652 CALLS     3272 TOTAL
                     EDM=   .18E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  9.1%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    4.3535       -.13807E-06** at limit **
   2  Prefactor     4.6659        34.484        .34446E-06    .45374E-04
   3  Prefactor     .10000E-03    9.5762        .15859E-05** at limit **
   4  Prefactor     .10000E-03    6.7425       -.16297E-06** at limit **
   5  norm          .91411        1.8240       -.11470E-05   -.15838E-02
   6  Prefactor     .89956        5.9005       -.11180E-05    .75839E-03
   7  norm          4.3406        4.1630        .77065E-07   -.21875E-03
   8  Prefactor     26.684        51.577       -.33033E-05   -.69872E-04
   9  Prefactor     .10000E-03    133.84        .41825E-05** at limit **
  10  Prefactor     .10000E-03    14.180        .16348E-05** at limit **
  11  norm          4.4266        4.7906        .19971E-06    .64315E-04
  12  norm          18.652        13.182       -.67627E-07   -.44655E-04
  13  norm          5.5829        4.0457       -.15424E-06   -.36773E-03
  14  norm          .10000E-03    2.4915       -.22543E-07** at limit **
  15  norm          2.0170        3.2570       -.16975E-06    .33964E-03
  16  Prefactor     4.8599        3.3150        .41222E-07   -.10479E-03
  17  Prefactor     .10000E-03    4.6970        .85999E-07** at limit **
  18  Prefactor     .59587        142.45        .44365E-04   -.72040E-04
  19  Prefactor     .10000E-03    15.452        .35066E-05** at limit **
  20  Prefactor     .10000E-03    12.030       -.44827E-05** at limit **
  21  Prefactor     32.490        28.110       -.23293E-05   -.23392E-03
  22  norm          .10000E-03    1.3452       -.21457E-07** at limit **
  23  Prefactor     .10000E-03    20.346       -.21109E-05** at limit **
  24  norm          2.9979        1.5656       -.67883E-08    .12813E-03
  25  norm          .10000E-03    14.434        .70074E-06** at limit **
  26  Normalizat    .90711        .17467        .55623E-06    .12108E-03
  27  Prefactor     1.3378        .21820        .73568E-06    .25859E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  Prefactor  = 4.66593
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.914111
  Prefactor  = 0.899563
  norm       = 4.34059
  Prefactor  = 26.6841
  Prefactor  = 0.000100004
  Prefactor  = 0.0001
  norm       = 4.42658
  norm       = 18.652
  norm       = 5.58294
  norm       = 0.0001
  norm       = 2.017
  Prefactor  = 4.85994
  Prefactor  = 0.0001
  Prefactor  = 0.595872
  Prefactor  = 0.000100001
  Prefactor  = 0.000100001
  Prefactor  = 32.4899
  norm       = 0.0001
  Prefactor  = 0.000100001
  norm       = 2.99785
  norm       = 0.0001
  Normalizat = 0.907111
  Prefactor  = 1.33779
 **********
 **   18 **HESSE 
 **********

 FCN=   6154.532     FROM HESSE     STATUS=OK           488 CALLS     3760 TOTAL
                     EDM=   .48E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    4.3709        .15967E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     4.6659        34.479        .18628E-03   -1.5276    
   3  Prefactor     .10000E-03    9.6160        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    6.7480        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          .91411        1.6815        .15177E-02   -1.5517    
   6  Prefactor     .89956        6.3218        .37509E-03   -1.5518    
   7  norm          4.3406        4.1487        .15044E-03   -1.5291    
   8  Prefactor     26.684        51.727        .77566E-04   -1.4674    
   9  Prefactor     .10000E-03    136.24        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    14.352        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          4.4266        4.7660        .16937E-03   -1.5287    
  12  norm          18.652        13.180        .92733E-04   -1.4844    
  13  norm          5.5829        4.0323        .12594E-03   -1.5235    
  14  norm          .10000E-03    2.4963        .12072E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          2.0170        3.2334        .17286E-03   -1.5424    
  16  Prefactor     4.8599        3.3058        .11034E-03   -1.5267    
  17  Prefactor     .10000E-03    4.7020        .16600E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .59587        141.63        .64550E-02   -1.5554    
  19  Prefactor     .10000E-03    15.597        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    12.379        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     32.490        27.951        .70300E-04   -1.4567    
  22  norm          .10000E-03    1.3545        .88841E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     .10000E-03    20.426        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  norm          2.9979        1.5632        .67496E-04   -1.5362    
  25  norm          .10000E-03    14.570        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  Normalizat    .90711        .20984        .24781E-03   -.96211    
  27  Prefactor     1.3378        .26414        .26997E-03   -.82190    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.77536e-08
Minuit parameter uncertainties:
  1  2.71063e-05
  2  25.3876
  3  9.3308e-05
  4  8.62139e-06
  5  1.68161
  6  4.76988
  7  4.14896
  8  51.8137
  9  0.00147949
  10  0.000156952
  11  4.76636
  12  13.1822
  13  4.03247
  14  1.24095e-06
  15  3.23364
  16  3.30593
  17  1.06386e-05
  18  18.4156
  19  0.000298387
  20  0.000230158
  21  27.9622
  22  3.70495e-06
  23  0.000249424
  24  1.56323
  25  4.47631e-05
  26  0.210025
  27  0.264406
Done.

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

Extracting fit parameters...

4FGL J1309.4+4305
   Spectrum: LogParabola
349         norm:  1.865e+01  1.318e+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.338e+00  2.644e-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.071e-01  2.100e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 12.79
Ra Dec: 197.363 43.085
Photon Index (Fixed Index): 1.77 +/- 0.00
Photon Flux (Fixed Index): 1.95e-08 +/- 1.38e-08
Energy Flux (Fixed Index): 2.15e-05 +/- 1.52e-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) = 6154.07430898
delta logL = 0.457599505269

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6154.05575106
delta logL = 0.476157420608

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    16.350       1.0000         .10000E-03   10000.    
     2 'alpha     '    1.2503       1.0000          .0000       5.0000    
     3 'Normalizat'    .91360       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.3364       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=   6154.056     FROM MIGRAD    STATUS=CONVERGED     55 CALLS      214 TOTAL
                     EDM=   .12E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          16.342        11.768        .24763E-02   -.24798E-03
   2  alpha         1.2501        .41542        .35929        .27242E-04
   3  Normalizat    .91353        .16748        .45075E-01   -.13972E-03
   4  Prefactor     1.3366        .21739        .61072E-01   -.17071E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 16.3418
  alpha      = 1.25013
  Normalizat = 0.913532
  Prefactor  = 1.33657
 **********
 **   18 **HESSE 
 **********

 FCN=   6154.056     FROM HESSE     STATUS=OK            31 CALLS      245 TOTAL
                     EDM=   .15E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          16.342        13.268        .99052E-04   -1.4899    
   2  alpha         1.2501        .50242        .14759E-01   -.52354    
   3  Normalizat    .91353        .20212        .24703E-03   -.95986    
   4  Prefactor     1.3366        .26248        .27010E-03   -.82226    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.51125e-10
Minuit parameter uncertainties:
  1  13.27
  2  0.507041
  3  0.202285
  4  0.262743
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/275306': 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) = 6154.05575072
delta logL = 0.476157764841

Extracting fit parameters...

4FGL J1309.4+4305
   Spectrum: LogParabola
349         norm:  1.634e+01  1.327e+01  1.000e-04  1.000e+04 ( 1.000e-13)
350        alpha:  1.250e+00  5.070e-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.337e+00  2.627e-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.135e-01  2.023e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 13.74
Ra Dec: 197.363 43.085
Photon Index (Free Index): 1.25 +/- 0.51
Photon Flux (Free Index): 1.12e-08 +/- 9.94e-09
Energy Flux (Free Index): 4.81e-05 +/- 5.37e-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/275306/cmap_HighResolution_268358401_268617601_4FGL_J1309.4+4305_daily_bin112.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='1.95e-08', energy_flux2='4.81e-05', photon_flux_error='1.38e-08', dlogl='4.76e-01', energy_flux='2.15e-05', photon_flux2='1.12e-08', job_status='DONE', time_completed='2021-09-07 00:58:24.892546', photon_index_error2='0.51', photon_index2='1.25', ts='12.79', fit_tolerance='1e-08', GAL='1.34', photon_index_error='0.00', energy_flux_error2='5.37e-05', EG='0.91', time_epoch_completed='1631001504.89', return_code='0', job_id='275306', GAL2='1.34', EG2='0.91', return_code2='0', energy_flux_error='1.52e-05', photon_flux_error2='9.94e-09', ts2='13.74', photon_index='1.77' WHERE bin_id='112' AND source_name='4FGL J1309.4+4305' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Sep  7 00:58:24 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0071>
Subject: Job 275306: <4FGL_J1309.4+4305_daily_bin112> in cluster <slac> Done

Job <4FGL_J1309.4+4305_daily_bin112> was submitted from host <rhel6-64p> by user <kocevski> in cluster <slac> at Tue Sep  7 00:45:20 2021
Job was executed on host(s) <bullet0071>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Sep  7 00:45: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:45:45 2021
Terminated at Tue Sep  7 00:58:25 2021
Results reported at Tue Sep  7 00:58:25 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1309.4+4305_daily_bin112 197.363 43.085 268358401 268617601 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 :                                   590.51 sec.
    Max Memory :                                 1095 MB
    Average Memory :                             255.35 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   760 sec.
    Turnaround time :                            785 sec.

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

