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


Performing analysis on: 4FGL_J1309.4+4305_daily_bin302
RA = 197.363, Dec = 43.085
tmin = 317606401, tmax = 317865601
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='276716', job_status='RUN', time_executed='2021-09-07 00:54:19.477842', time_epoch_executed='1631001259.48' WHERE source_name='4FGL J1309.4+4305' and cadence='daily' and bin_id='302'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/276716

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/276716/ft1_4FGL_J1309.4+4305_daily_bin302.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/276716/ft2_4FGL_J1309.4+4305_daily_bin302.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/276716/ft1_4FGL_J1309.4+4305_daily_bin302.fits outfile=/scratch/kocevski/276716/ft1_filteredMKT_4FGL_J1309.4+4305_daily_bin302.fits ra=197.363 dec=43.085 rad=12.0 tmin=317606401.0 tmax=317865601.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.41
user 3.16
sys 0.22

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/276716/ft1_filtered_4FGL_J1309.4+4305_daily_bin302.fits" evtable="EVENTS" scfile=/scratch/kocevski/276716/ft2_4FGL_J1309.4+4305_daily_bin302.fits sctable="SC_DATA" outfile=/scratch/kocevski/276716/ltcube_317606401_317865601_4FGL_J1309.4+4305_daily_bin302.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/276716/ft2_4FGL_J1309.4+4305_daily_bin302.fits
.....................!
real 15.91
user 15.52
sys 0.33

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/276716/ft1_filtered_4FGL_J1309.4+4305_daily_bin302.fits evtable="EVENTS" scfile=/scratch/kocevski/276716/ft2_4FGL_J1309.4+4305_daily_bin302.fits sctable="SC_DATA" expcube=/scratch/kocevski/276716/ltcube_317606401_317865601_4FGL_J1309.4+4305_daily_bin302.fits outfile=/scratch/kocevski/276716/expmap_317606401_317865601_4FGL_J1309.4+4305_daily_bin302.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/276716/ltcube_317606401_317865601_4FGL_J1309.4+4305_daily_bin302.fits
.....................!
real 192.20
user 186.59
sys 4.68

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/276716/ft1_filtered_4FGL_J1309.4+4305_daily_bin302.fits scfile=/scratch/kocevski/276716/ft2_4FGL_J1309.4+4305_daily_bin302.fits outfile=/scratch/kocevski/276716/cmap_317606401_317865601_4FGL_J1309.4+4305_daily_bin302.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.56
user 0.37
sys 0.17

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/276716/ft1_filtered_4FGL_J1309.4+4305_daily_bin302.fits scfile=/scratch/kocevski/276716/ft2_4FGL_J1309.4+4305_daily_bin302.fits outfile=/scratch/kocevski/276716/cmap_HighResolution_317606401_317865601_4FGL_J1309.4+4305_daily_bin302.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.57
user 0.40
sys 0.16

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    3.9901       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    9.0737       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     5 'norm      '    .10126E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     7 'norm      '    .10004E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10018E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    27.070       1.0000         .10000E-03   10000.    
    13 'norm      '    5.0009       1.0000         .10000E-03   10000.    
    14 'norm      '    .10016E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    .10066E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    2.1545       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10011E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    12.006       1.0000         .10000E-03   10000.    
    19 'Prefactor '    7.1182       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10062E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    35.259       1.0000         .10000E-03   10000.    
    22 'norm      '    2.3236       1.0000         .10000E-03   10000.    
    23 'Prefactor '    6.4334       1.0000         .10000E-03   10000.    
    24 'norm      '    3.3488       1.0000         .10000E-03   10000.    
    25 'norm      '    12.633       1.0000         .10000E-03   10000.    
    26 'Normalizat'    1.0749       1.0000         .10000E-01   10.000    
    27 'Prefactor '    .97759       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=   6368.723     FROM MIGRAD    STATUS=CONVERGED    636 CALLS     3257 TOTAL
                     EDM=   .11E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .6%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          3.9897        4.9383       -.59312E-06   -.30754E-03
   2  Prefactor     .10000E-03    3.9596       -.12803E-06** at limit **
   3  Prefactor     9.0722        11.480       -.15035E-05   -.67030E-03
   4  Prefactor     .10000E-03    6.4596       -.14264E-05** at limit **
   5  norm          .10000E-03    1.1484       -.41179E-06** at limit **
   6  Prefactor     .10000E-03    1.1398        .39342E-07** at limit **
   7  norm          .10000E-03    1.8159       -.45878E-06** at limit **
   8  Prefactor     .10000E-03    41.926        .55456E-06** at limit **
   9  Prefactor     .10000E-03    6.6275        .90346E-06** at limit **
  10  Prefactor     .10000E-03    4.3830        .27632E-06** at limit **
  11  norm          .10000E-03    1.5716        .23717E-06** at limit **
  12  norm          27.069        18.225       -.65400E-06    .15485E-04
  13  norm          4.9996        3.0192        .25467E-06    .63780E-04
  14  norm          .10000E-03    3.3270       -.17399E-06** at limit **
  15  norm          .10000E-03    2.8768       -.22988E-06** at limit **
  16  Prefactor     2.1551        3.1962       -.61903E-06   -.65637E-03
  17  Prefactor     .10000E-03    12.196        .37526E-06** at limit **
  18  Prefactor     12.008        22.442        .81833E-05    .34510E-04
  19  Prefactor     7.1123        48.650       -.15164E-04   -.71001E-07
  20  Prefactor     .10000E-03    20.221       -.96792E-06** at limit **
  21  Prefactor     35.238        33.814       -.21618E-04    .98600E-05
  22  norm          2.3234        4.2802       -.15732E-06   -.63863E-03
  23  Prefactor     6.4165        104.69       -.55546E-04    .17023E-05
  24  norm          3.3485        1.4451        .12544E-06    .16962E-03
  25  norm          12.630        13.245       -.77045E-06   -.65515E-03
  26  Normalizat    1.0751        .16374        .36287E-05    .49722E-04
  27  Prefactor     .97740        .20334        .11391E-05    .21389E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 3.98974
  Prefactor  = 0.0001
  Prefactor  = 9.07222
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 27.0688
  norm       = 4.99962
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 2.1551
  Prefactor  = 0.0001
  Prefactor  = 12.0076
  Prefactor  = 7.1123
  Prefactor  = 0.0001
  Prefactor  = 35.2383
  norm       = 2.32344
  Prefactor  = 6.41646
  norm       = 3.34853
  norm       = 12.6296
  Normalizat = 1.07515
  Prefactor  = 0.977402
 **********
 **   18 **HESSE 
 **********

 FCN=   6368.723     FROM HESSE     STATUS=OK           490 CALLS     3747 TOTAL
                     EDM=   .22E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          3.9897        4.9355        .19115E-03   -1.5308    
   2  Prefactor     .10000E-03    3.9611        .15508E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     9.0722        11.550        .66527E-03   -1.5105    
   4  Prefactor     .10000E-03    6.4961        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          .10000E-03    2.4372        .16609E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    1.1407        .83203E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          .10000E-03    1.8458        .10501E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    42.010        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    6.6377        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    4.3948        .16316E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          .10000E-03    1.5764        .97638E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          27.069        18.231        .76998E-04   -1.4667    
  13  norm          4.9996        3.0008        .10237E-03   -1.5261    
  14  norm          .10000E-03    3.3550        .14160E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          .10000E-03    2.9705        .26415E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     2.1551        3.1637        .15680E-03   -1.5414    
  17  Prefactor     .10000E-03    12.332        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     12.008        22.402        .11561E-03   -1.5015    
  19  Prefactor     7.1123        48.105        .15035E-03   -1.5175    
  20  Prefactor     .10000E-03    20.353        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     35.238        33.569        .67489E-04   -1.4520    
  22  norm          2.3234        4.2527        .21085E-03   -1.5403    
  23  Prefactor     6.4165        105.08        .15824E-03   -1.5201    
  24  norm          3.3485        1.4434        .60388E-04   -1.5342    
  25  norm          12.630        13.299        .56351E-03   -1.4997    
  26  Normalizat    1.0751        .19061        .21654E-03   -.90554    
  27  Prefactor     .97740        .23662        .28780E-03   -.93487    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.23686e-09
Minuit parameter uncertainties:
  1  4.93599
  2  3.92664e-06
  3  11.553
  4  8.56681e-06
  5  1.51858e-05
  6  1.57298e-06
  7  8.10342e-06
  8  6.91803e-05
  9  1.07419e-05
  10  6.26689e-06
  11  1.07245e-07
  12  18.235
  13  3.00091
  14  1.26202e-05
  15  3.52963e-07
  16  3.16394
  17  6.1714e-05
  18  22.4173
  19  37.0366
  20  7.23989e-06
  21  33.587
  22  4.25326
  23  52.0399
  24  1.44345
  25  13.3022
  26  0.190733
  27  0.236873
Done.

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

Extracting fit parameters...

4FGL J1309.4+4305
   Spectrum: LogParabola
349         norm:  2.707e+01  1.824e+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.774e-01  2.369e-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.075e+00  1.907e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 4.71
Ra Dec: 197.363 43.085
Photon Index (Fixed Index): 1.77 +/- 0.00
Photon Flux (Fixed Index): 2.84e-08 +/- 1.91e-08
Energy Flux (Fixed Index): 3.12e-05 +/- 2.10e-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) = 6368.66100889
delta logL = 0.0621961595443

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6368.66069775
delta logL = 0.0625072984913

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    25.249       1.0000         .10000E-03   10000.    
     2 'alpha     '    1.9565       1.0000          .0000       5.0000    
     3 'Normalizat'    1.0710       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .97806       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=   6368.661     FROM MIGRAD    STATUS=CONVERGED     57 CALLS      257 TOTAL
                     EDM=   .97E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          25.292        446.74        .19930E-02   -.47390E-04
   2  alpha         1.9581        3.1059        .25645        .36581E-04
   3  Normalizat    1.0710        .98089E-01    .39325E-01    .96322E-05
   4  Prefactor     .97784        .97266E-01    .45992E-01    .68233E-05
                               ERR DEF=  .500    
Final values: 
  norm       = 25.2924
  alpha      = 1.95808
  Normalizat = 1.07104
  Prefactor  = 0.977835
 **********
 **   18 **HESSE 
 **********

 FCN=   6368.661     FROM HESSE     STATUS=OK            33 CALLS      290 TOTAL
                     EDM=   .73E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          25.292        18.642        .79722E-04   -1.4702    
   2  alpha         1.9581        .52871        .12598E-01   -.21850    
   3  Normalizat    1.0710        .18276        .21689E-03   -.90687    
   4  Prefactor     .97784        .23384        .28771E-03   -.93472    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 7.29991e-12
Minuit parameter uncertainties:
  1  18.6466
  2  0.532938
  3  0.182869
  4  0.234078
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/276716': 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) = 6368.6606841
delta logL = 0.0625209512418

Extracting fit parameters...

4FGL J1309.4+4305
   Spectrum: LogParabola
349         norm:  2.529e+01  1.865e+01  1.000e-04  1.000e+04 ( 1.000e-13)
350        alpha:  1.958e+00  5.329e-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:  9.778e-01  2.341e-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.071e+00  1.829e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 4.82
Ra Dec: 197.363 43.085
Photon Index (Free Index): 1.96 +/- 0.53
Photon Flux (Free Index): 3.43e-08 +/- 2.70e-08
Energy Flux (Free Index): 2.49e-05 +/- 2.26e-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/276716/cmap_HighResolution_317606401_317865601_4FGL_J1309.4+4305_daily_bin302.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='2.84e-08', energy_flux2='2.49e-05', photon_flux_error='1.91e-08', dlogl='6.25e-02', energy_flux='3.12e-05', photon_flux2='3.43e-08', job_status='DONE', time_completed='2021-09-07 01:06:57.800806', photon_index_error2='0.53', photon_index2='1.96', ts='4.71', fit_tolerance='1e-08', GAL='0.98', photon_index_error='0.00', energy_flux_error2='2.26e-05', EG='1.08', time_epoch_completed='1631002017.8', return_code='0', job_id='276716', GAL2='0.98', EG2='1.07', return_code2='0', energy_flux_error='2.10e-05', photon_flux_error2='2.70e-08', ts2='4.82', photon_index='1.77' WHERE bin_id='302' AND source_name='4FGL J1309.4+4305' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Sep  7 01:06:57 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0228>
Subject: Job 276716: <4FGL_J1309.4+4305_daily_bin302> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1309.4+4305_daily_bin302 197.363 43.085 317606401 317865601 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 :                                   752.19 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             292.61 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   978 sec.
    Turnaround time :                            990 sec.

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

