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


Performing analysis on: 4FGL_J1309.4+4305_daily_bin92
RA = 197.363, Dec = 43.085
tmin = 263174401, tmax = 263433601
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='275276', job_status='RUN', time_executed='2021-09-07 00:45:43.844766', time_epoch_executed='1631000743.84' WHERE source_name='4FGL J1309.4+4305' and cadence='daily' and bin_id='92'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/275276

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

Retrieving the FT1 file...

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

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

Retrieving 42 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/275276/ft1_4FGL_J1309.4+4305_daily_bin92.fits


Retrieving the FT1 file...

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

Retrieving 42 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/275276/ft2_4FGL_J1309.4+4305_daily_bin92.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/275276/ft1_4FGL_J1309.4+4305_daily_bin92.fits outfile=/scratch/kocevski/275276/ft1_filteredMKT_4FGL_J1309.4+4305_daily_bin92.fits ra=197.363 dec=43.085 rad=12.0 tmin=263174401.0 tmax=263433601.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.36
user 1.20
sys 0.16

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/275276/ft1_filtered_4FGL_J1309.4+4305_daily_bin92.fits" evtable="EVENTS" scfile=/scratch/kocevski/275276/ft2_4FGL_J1309.4+4305_daily_bin92.fits sctable="SC_DATA" outfile=/scratch/kocevski/275276/ltcube_263174401_263433601_4FGL_J1309.4+4305_daily_bin92.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/275276/ft2_4FGL_J1309.4+4305_daily_bin92.fits
.....................!
real 14.29
user 13.91
sys 0.32

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/275276/ft1_filtered_4FGL_J1309.4+4305_daily_bin92.fits evtable="EVENTS" scfile=/scratch/kocevski/275276/ft2_4FGL_J1309.4+4305_daily_bin92.fits sctable="SC_DATA" expcube=/scratch/kocevski/275276/ltcube_263174401_263433601_4FGL_J1309.4+4305_daily_bin92.fits outfile=/scratch/kocevski/275276/expmap_263174401_263433601_4FGL_J1309.4+4305_daily_bin92.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/275276/ltcube_263174401_263433601_4FGL_J1309.4+4305_daily_bin92.fits
.....................!
real 190.58
user 185.89
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/275276/ft1_filtered_4FGL_J1309.4+4305_daily_bin92.fits scfile=/scratch/kocevski/275276/ft2_4FGL_J1309.4+4305_daily_bin92.fits outfile=/scratch/kocevski/275276/cmap_263174401_263433601_4FGL_J1309.4+4305_daily_bin92.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.54
user 0.36
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/275276/ft1_filtered_4FGL_J1309.4+4305_daily_bin92.fits scfile=/scratch/kocevski/275276/ft2_4FGL_J1309.4+4305_daily_bin92.fits outfile=/scratch/kocevski/275276/cmap_HighResolution_263174401_263433601_4FGL_J1309.4+4305_daily_bin92.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.54
user 0.39
sys 0.14

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    12.898       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     5 'norm      '    2.0056       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     7 'norm      '    .10011E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10093E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    .10396E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    8.5330       1.0000         .10000E-03   10000.    
    14 'norm      '    .10049E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    44.299       1.0000         .10000E-03   10000.    
    16 'Prefactor '    2.7592       1.0000         .10000E-03   10000.    
    17 'Prefactor '    6.3471       1.0000         .10000E-03   10000.    
    18 'Prefactor '    72.316       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .53285E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .11088E-03   1.0000         .10000E-03   10000.    
    22 'norm      '    4.7467       1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10020E-03   1.0000         .10000E-03   10000.    
    24 'norm      '    .10004E-03   1.0000         .10000E-03   10000.    
    25 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
    26 'Normalizat'    .98133       1.0000         .10000E-01   10.000    
    27 'Prefactor '    .93875       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=   4371.294     FROM MIGRAD    STATUS=CONVERGED    644 CALLS     3272 TOTAL
                     EDM=   .12E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  5.6%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          12.897        10.060        .51648E-06    .13468E-04
   2  Prefactor     .10000E-03    11.494        .78526E-06** at limit **
   3  Prefactor     .10000E-03    22.642        .11872E-05** at limit **
   4  Prefactor     .10000E-03    8.3667       -.31165E-06** at limit **
   5  norm          2.0056        2.3272        .58377E-07   -.12861E-04
   6  Prefactor     .10000E-03    3.0833        .13264E-07** at limit **
   7  norm          .10000E-03    6.6748       -.21285E-07** at limit **
   8  Prefactor     .10000E-03    45.900       -.19497E-05** at limit **
   9  Prefactor     .10000E-03    50.495       -.70877E-06** at limit **
  10  Prefactor     .10000E-03    12.247       -.52585E-07** at limit **
  11  norm          .10006E-03    5.9031        .22659E-05** at limit **
  12  norm          .10000E-03    4.5182        .17452E-07** at limit **
  13  norm          8.5344        5.6415       -.15556E-06   -.54299E-03
  14  norm          .10000E-03    6.8258        .57314E-07** at limit **
  15  norm          44.298        10.205        .49074E-06   -.24043E-03
  16  Prefactor     2.7541        6.3981        .53034E-05   -.79729E-03
  17  Prefactor     6.3418        22.675       -.99688E-05   -.37812E-03
  18  Prefactor     72.368        57.559       -.59443E-05   -.12969E-03
  19  Prefactor     .10007E-03    1020.1        .38211E-04** at limit **
  20  Prefactor     .10000E-03    24.075        .16725E-05** at limit **
  21  Prefactor     .10001E-03    59.929        .87486E-05** at limit **
  22  norm          4.7469        5.2616        .48107E-06   -.12308E-03
  23  Prefactor     .10000E-03    42.837       -.22528E-05** at limit **
  24  norm          .10000E-03    .71656        .57329E-06** at limit **
  25  norm          .10000E-03    5.0414       -.47259E-07** at limit **
  26  Normalizat    .98140        .19941       -.37315E-05   -.67178E-03
  27  Prefactor     .93865        .23306        .25913E-05   -.51155E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 12.8971
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 2.00561
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.000100064
  norm       = 0.0001
  norm       = 8.53439
  norm       = 0.0001
  norm       = 44.2983
  Prefactor  = 2.75414
  Prefactor  = 6.34184
  Prefactor  = 72.3682
  Prefactor  = 0.000100071
  Prefactor  = 0.0001
  Prefactor  = 0.000100008
  norm       = 4.74691
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 0.0001
  Normalizat = 0.981399
  Prefactor  = 0.93865
 **********
 **   18 **HESSE 
 **********

 FCN=   4371.294     FROM HESSE     STATUS=OK           476 CALLS     3748 TOTAL
                     EDM=   .49E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          12.897        10.054        .55767E-03   -1.4990    
   2  Prefactor     .10000E-03    11.499        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    22.705        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    8.3708        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          2.0056        2.3205        .10545E-03   -1.5425    
   6  Prefactor     .10000E-03    3.0940        .11336E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          .10000E-03    6.8812        .33315E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    46.018        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    50.812        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    12.286        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          .10006E-03    16.790        .28985E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          .10000E-03    4.5193        .13726E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          8.5344        5.5939        .11426E-03   -1.5124    
  14  norm          .10000E-03    6.8526        .16792E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          44.298        10.210        .60236E-04   -1.4376    
  16  Prefactor     2.7541        6.4739        .88487E-03   -1.5376    
  17  Prefactor     6.3418        22.741        .15932E-03   -1.5204    
  18  Prefactor     72.368        57.987        .47209E-04   -1.4005    
  19  Prefactor     .10007E-03    1038.3        .42251E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    24.210        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10001E-03    61.269        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  norm          4.7469        5.2493        .15174E-03   -1.5272    
  23  Prefactor     .10000E-03    42.836        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  norm          .10000E-03    1.1535        .10791E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  norm          .10000E-03    5.0459        .14498E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  Normalizat    .98140        .22976        .22837E-03   -.93656    
  27  Prefactor     .93865        .26861        .28603E-03   -.94803    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.9335e-09
Minuit parameter uncertainties:
  1  10.0557
  2  5.82817e-06
  3  3.16709e-06
  4  1.95954e-07
  5  2.32061
  6  3.46263e-06
  7  5.81681e-06
  8  5.72957e-05
  9  4.9286e-05
  10  2.26996e-05
  11  0.00208013
  12  1.50483e-06
  13  5.59424
  14  3.11019e-06
  15  10.2107
  16  6.47555
  17  22.772
  18  58.0321
  19  0.017502
  20  3.72292e-05
  21  0.00137244
  22  5.24979
  23  2.65931e-05
  24  1.20924e-05
  25  1.51137e-06
  26  0.229994
  27  0.268993
Done.

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

Extracting fit parameters...

4FGL J1309.4+4305
   Spectrum: LogParabola
349         norm:  1.000e-04  1.505e-06  1.000e-04  1.000e+04 ( 1.000e-13)
350        alpha:  1.769e+00  0.000e+00  0.000e+00  5.000e+00 ( 1.000e+00) fixed
351         beta:  8.354e-02  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
352           Eb:  1.387e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
663    Prefactor:  9.386e-01  2.690e-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.814e-01  2.300e-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: 2.72e-08 ph cm-2 s-1
Energy Flux Upper Limit: 2.98e-05 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/275276/likelihoodResults_263174401_263433601_4FGL_J1309.4+4305_daily_bin92.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) = 4371.29417393
delta logL = -0.000609775368503

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 4371.29356437
delta logL = -2.13548446482e-07

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
     2 'alpha     '    1.7594       1.0000          .0000       5.0000    
     3 'Normalizat'    .98135       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .93862       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=   4371.294     FROM MIGRAD    STATUS=CONVERGED     97 CALLS      243 TOTAL
                     EDM=   .13E-11    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    45.587        .13804E-01** at limit **
   2  alpha         1.4854        3.1598        .50000        .10914E-08
   3  Normalizat    .98140        .14437E-01    .22837E-03    .13989E-04
   4  Prefactor     .93865        .17817E-01    .28603E-03    .10175E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  alpha      = 1.48541
  Normalizat = 0.981401
  Prefactor  = 0.938651
 **********
 **   18 **HESSE 
 **********

 FCN=   4371.294     FROM HESSE     STATUS=NOT POSDEF    29 CALLS      272 TOTAL
                     EDM=   .11E-10    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    376.55        .14262E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  alpha         1.4854        3.5481        .50000       -.41789    
   3  Normalizat    .98140        .45574E-01    .91347E-05   -.93656    
   4  Prefactor     .93865        .56243E-01    .11441E-04   -.94803    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 1.0548e-11
Minuit parameter uncertainties:
  1  3.89838e-05
  2  1586.43
  3  0.0455754
  4  0.0562465
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/275276': 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): 102
logL (Free Index) = 4371.29356333
delta logL = 8.17864020064e-07

Extracting fit parameters...

4FGL J1309.4+4305
   Spectrum: LogParabola
349         norm:  1.000e-04  3.898e-05  1.000e-04  1.000e+04 ( 1.000e-13)
350        alpha:  1.485e+00  1.586e+03  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:  9.387e-01  5.625e-02  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.814e-01  4.558e-02  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/275276/cmap_HighResolution_263174401_263433601_4FGL_J1309.4+4305_daily_bin92.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='2.98e-05', job_status='DONE', photon_flux_upper_limit='2.72e-08', time_completed='2021-09-07 00:57:00.782893', job_id='275276', GAL2='0.94', fit_tolerance='1e-08', EG2='0.98', EG='0.98', time_epoch_completed='1631001420.78', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.94', dlogl='8.18e-07', ts2='-0.00', photon_index_error='0.00', photon_index='1.77' WHERE bin_id='92' AND source_name='4FGL J1309.4+4305' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Sep  7 00:57:00 PDT 2021


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

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1309.4+4305_daily_bin92 197.363 43.085 263174401 263433601 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 :                                   676.05 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             340.22 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   694 sec.
    Turnaround time :                            703 sec.

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

