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


Performing analysis on: 4FGL_J1309.4+4305_daily_bin277
RA = 197.363, Dec = 43.085
tmin = 311126401, tmax = 311385601
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='276676', job_status='RUN', time_executed='2021-09-07 00:54:06.058789', time_epoch_executed='1631001246.06' WHERE source_name='4FGL J1309.4+4305' and cadence='daily' and bin_id='277'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/276676

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/276676/ft1_4FGL_J1309.4+4305_daily_bin277.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/276676/ft2_4FGL_J1309.4+4305_daily_bin277.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/276676/ft1_4FGL_J1309.4+4305_daily_bin277.fits outfile=/scratch/kocevski/276676/ft1_filteredMKT_4FGL_J1309.4+4305_daily_bin277.fits ra=197.363 dec=43.085 rad=12.0 tmin=311126401.0 tmax=311385601.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.52
user 3.31
sys 0.19

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

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

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/276676/ft1_filtered_4FGL_J1309.4+4305_daily_bin277.fits evtable="EVENTS" scfile=/scratch/kocevski/276676/ft2_4FGL_J1309.4+4305_daily_bin277.fits sctable="SC_DATA" expcube=/scratch/kocevski/276676/ltcube_311126401_311385601_4FGL_J1309.4+4305_daily_bin277.fits outfile=/scratch/kocevski/276676/expmap_311126401_311385601_4FGL_J1309.4+4305_daily_bin277.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/276676/ltcube_311126401_311385601_4FGL_J1309.4+4305_daily_bin277.fits
.....................!
real 190.52
user 185.26
sys 4.49

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/276676/ft1_filtered_4FGL_J1309.4+4305_daily_bin277.fits scfile=/scratch/kocevski/276676/ft2_4FGL_J1309.4+4305_daily_bin277.fits outfile=/scratch/kocevski/276676/cmap_311126401_311385601_4FGL_J1309.4+4305_daily_bin277.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.55
user 0.38
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/276676/ft1_filtered_4FGL_J1309.4+4305_daily_bin277.fits scfile=/scratch/kocevski/276676/ft2_4FGL_J1309.4+4305_daily_bin277.fits outfile=/scratch/kocevski/276676/cmap_HighResolution_311126401_311385601_4FGL_J1309.4+4305_daily_bin277.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.38
sys 0.16

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .12146E-02   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10043E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    20.950       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
     5 'norm      '    5.6854       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .60102E-03   1.0000         .10000E-03   10000.    
     7 'norm      '    15.739       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .43020E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    5.4032       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    .10035E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    22.148       1.0000         .10000E-03   10000.    
    13 'norm      '    .10004E-03   1.0000         .10000E-03   10000.    
    14 'norm      '    5.4974       1.0000         .10000E-03   10000.    
    15 'norm      '    .10571E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    1.9612       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .18859E-01   1.0000         .10000E-03   10000.    
    18 'Prefactor '    12.083       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10072E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10067E-03   1.0000         .10000E-03   10000.    
    22 'norm      '    1.1605       1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10013E-03   1.0000         .10000E-03   10000.    
    24 'norm      '    2.1321       1.0000         .10000E-03   10000.    
    25 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
    26 'Normalizat'    1.1002       1.0000         .10000E-01   10.000    
    27 'Prefactor '    1.0428       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=   5937.781     FROM MIGRAD    STATUS=CONVERGED    674 CALLS     3348 TOTAL
                     EDM=   .27E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.9%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    24.234       -.44218E-05** at limit **
   2  Prefactor     .10000E-03    9.8926       -.44406E-06** at limit **
   3  Prefactor     20.942        23.300       -.34878E-06    .24847E-04
   4  Prefactor     .10000E-03    10.568        .36061E-07** at limit **
   5  norm          5.6857        2.6357       -.70201E-08    .68283E-04
   6  Prefactor     .10012E-03    5.8045       -.11946E-05** at limit **
   7  norm          15.744        7.3679        .14359E-07    .18916E-03
   8  Prefactor     .10000E-03    258.42       -.15303E-05** at limit **
   9  Prefactor     5.3662        35.281       -.87466E-06   -.17815E-04
  10  Prefactor     .10000E-03    7.8601       -.18848E-06** at limit **
  11  norm          .10000E-03    2.2276       -.14120E-06** at limit **
  12  norm          22.136        16.287       -.31797E-07    .59553E-04
  13  norm          .10000E-03    1.3581       -.83380E-07** at limit **
  14  norm          5.4975        4.1857        .59496E-07   -.10191E-03
  15  norm          .10000E-03    4.0802       -.71116E-09** at limit **
  16  Prefactor     1.9615        2.7689       -.22773E-06    .56438E-03
  17  Prefactor     .10035E-03    12.702       -.11440E-05** at limit **
  18  Prefactor     12.076        30.890        .52166E-06    .12312E-04
  19  Prefactor     .10000E-03    17.182       -.29085E-06** at limit **
  20  Prefactor     .10000E-03    8.3201        .32463E-06** at limit **
  21  Prefactor     .10000E-03    10.946        .29678E-06** at limit **
  22  norm          1.1648        1.9098       -.10816E-05   -.49692E-03
  23  Prefactor     .10000E-03    57.733       -.24309E-06** at limit **
  24  norm          2.1325        1.7118       -.78967E-07    .61812E-03
  25  norm          .10000E-03    3.6004        .36708E-09** at limit **
  26  Normalizat    1.1001        .17933        .22842E-06    .40571E-04
  27  Prefactor     1.0427        .21726        .76147E-07    .55020E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 0.000100001
  Prefactor  = 0.0001
  Prefactor  = 20.9419
  Prefactor  = 0.0001
  norm       = 5.68566
  Prefactor  = 0.00010012
  norm       = 15.7435
  Prefactor  = 0.0001
  Prefactor  = 5.36618
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 22.1364
  norm       = 0.0001
  norm       = 5.49754
  norm       = 0.0001
  Prefactor  = 1.96152
  Prefactor  = 0.000100348
  Prefactor  = 12.0758
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 1.16479
  Prefactor  = 0.0001
  norm       = 2.1325
  norm       = 0.0001
  Normalizat = 1.1001
  Prefactor  = 1.04267
 **********
 **   18 **HESSE 
 **********

 FCN=   5937.781     FROM HESSE     STATUS=OK           506 CALLS     3854 TOTAL
                     EDM=   .49E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    24.327        .34279E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    9.8926        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     20.942        23.278        .87508E-04   -1.4792    
   4  Prefactor     .10000E-03    10.603        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          5.6857        2.6357        .82403E-04   -1.5231    
   6  Prefactor     .10012E-03    4.4078        .53584E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          15.744        7.3511        .10096E-03   -1.4914    
   8  Prefactor     .10000E-03    261.04        .21230E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     5.3662        35.139        .17288E-03   -1.5245    
  10  Prefactor     .10000E-03    7.8653        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          .10000E-03    2.2421        .11230E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          22.136        16.292        .85111E-04   -1.4767    
  13  norm          .10000E-03    1.3608        .87456E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          5.4975        4.1775        .13335E-03   -1.5239    
  15  norm          .10000E-03    4.1992        .30324E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     1.9615        2.7505        .13910E-03   -1.5428    
  17  Prefactor     .10035E-03    14.339        .75415E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     12.076        30.898        .11524E-03   -1.5013    
  19  Prefactor     .10000E-03    17.184        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    8.3651        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10000E-03    10.943        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  norm          1.1648        1.9040        .16619E-02   -1.5492    
  23  Prefactor     .10000E-03    57.930        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  norm          2.1325        1.7014        .85378E-04   -1.5416    
  25  norm          .10000E-03    3.6014        .14280E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  Normalizat    1.1001        .21385        .22944E-03   -.89749    
  27  Prefactor     1.0427        .25959        .29115E-03   -.91320    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.91779e-10
Minuit parameter uncertainties:
  1  0.000342239
  2  1.90536e-05
  3  23.2877
  4  1.61057e-05
  5  2.63572
  6  0.00145565
  7  7.35152
  8  9.03666e-05
  9  27.4869
  10  3.11505e-05
  11  2.60299e-05
  12  16.2952
  13  7.83767e-06
  14  4.17775
  15  1.60525e-06
  16  2.75065
  17  0.00447037
  18  30.9389
  19  2.65289e-05
  20  1.7496e-05
  21  1.5726e-05
  22  1.90409
  23  4.46455e-05
  24  1.70145
  25  6.66868e-07
  26  0.214016
  27  0.259902
Done.

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

Extracting fit parameters...

4FGL J1309.4+4305
   Spectrum: LogParabola
349         norm:  2.214e+01  1.630e+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.043e+00  2.599e-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.100e+00  2.140e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 13.83
Ra Dec: 197.363 43.085
Photon Index (Fixed Index): 1.77 +/- 0.00
Photon Flux (Fixed Index): 2.32e-08 +/- 1.71e-08
Energy Flux (Fixed Index): 2.55e-05 +/- 1.88e-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) = 5937.66498878
delta logL = 0.11581375006

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5937.51135799
delta logL = 0.269444548078

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    11.787       1.0000         .10000E-03   10000.    
     2 'alpha     '    1.0907       1.0000          .0000       5.0000    
     3 'Normalizat'    1.1133       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0420       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=   5937.511     FROM MIGRAD    STATUS=CONVERGED     48 CALLS      212 TOTAL
                     EDM=   .18E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          11.787        10.668        .29171E-02    .44505E-02
   2  alpha         1.0909        .49342        .38406       -.36609E-04
   3  Normalizat    1.1133        .17383        .37482E-01    .64266E-05
   4  Prefactor     1.0420        .21638        .65859E-01    .11028E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 11.7867
  alpha      = 1.09085
  Normalizat = 1.11334
  Prefactor  = 1.04201
 **********
 **   18 **HESSE 
 **********

 FCN=   5937.511     FROM HESSE     STATUS=OK            31 CALLS      243 TOTAL
                     EDM=   .23E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          11.787        14.186        .11668E-03   -1.5021    
   2  alpha         1.0909        .67519        .16349E-01   -.59881    
   3  Normalizat    1.1133        .20801        .22820E-03   -.89325    
   4  Prefactor     1.0420        .25884        .29133E-03   -.91342    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.30299e-08
Minuit parameter uncertainties:
  1  14.1904
  2  0.687838
  3  0.20816
  4  0.259152
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/276676': 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) = 5937.51135794
delta logL = 0.269444588625

Extracting fit parameters...

4FGL J1309.4+4305
   Spectrum: LogParabola
349         norm:  1.179e+01  1.419e+01  1.000e-04  1.000e+04 ( 1.000e-13)
350        alpha:  1.091e+00  6.878e-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.042e+00  2.592e-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.113e+00  2.082e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 14.36
Ra Dec: 197.363 43.085
Photon Index (Free Index): 1.09 +/- 0.69
Photon Flux (Free Index): 8.00e-09 +/- 9.05e-09
Energy Flux (Free Index): 5.23e-05 +/- 6.64e-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/276676/cmap_HighResolution_311126401_311385601_4FGL_J1309.4+4305_daily_bin277.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='2.32e-08', energy_flux2='5.23e-05', photon_flux_error='1.71e-08', dlogl='2.69e-01', energy_flux='2.55e-05', photon_flux2='8.00e-09', job_status='DONE', time_completed='2021-09-07 01:06:08.952359', photon_index_error2='0.69', photon_index2='1.09', ts='13.83', fit_tolerance='1e-08', GAL='1.04', photon_index_error='0.00', energy_flux_error2='6.64e-05', EG='1.10', time_epoch_completed='1631001968.95', return_code='0', job_id='276676', GAL2='1.04', EG2='1.11', return_code2='0', energy_flux_error='1.88e-05', photon_flux_error2='9.05e-09', ts2='14.36', photon_index='1.77' WHERE bin_id='277' AND source_name='4FGL J1309.4+4305' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Sep  7 01:06:08 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0252>
Subject: Job 276676: <4FGL_J1309.4+4305_daily_bin277> in cluster <slac> Done

Job <4FGL_J1309.4+4305_daily_bin277> was submitted from host <rhel6-64m> by user <kocevski> in cluster <slac> at Tue Sep  7 00:50:26 2021
Job was executed on host(s) <bullet0252>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Sep  7 00:50:29 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Tue Sep  7 00:50:29 2021
Terminated at Tue Sep  7 01:06:09 2021
Results reported at Tue Sep  7 01:06:09 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1309.4+4305_daily_bin277 197.363 43.085 311126401 311385601 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 :                                   706.06 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             262.53 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              7
    Max Threads :                                21
    Run time :                                   940 sec.
    Turnaround time :                            943 sec.

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

