/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 119 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 = 7656
number of fields = 30
RA_SUN column already exists. File will not be modified.
Done.


Performing analysis on: 4FGL_J1309.4+4305_daily_bin702
RA = 197.363, Dec = 43.085
tmin = 421286401, tmax = 421545601
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='279673', job_status='RUN', time_executed='2021-09-07 01:02:52.609454', time_epoch_executed='1631001772.61' WHERE source_name='4FGL J1309.4+4305' and cadence='daily' and bin_id='702'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/279673

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

Retrieving the FT1 file...

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

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

Retrieving 48 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/279673/ft1_4FGL_J1309.4+4305_daily_bin702.fits


Retrieving the FT1 file...

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

Retrieving 48 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/279673/ft2_4FGL_J1309.4+4305_daily_bin702.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/279673/ft1_4FGL_J1309.4+4305_daily_bin702.fits outfile=/scratch/kocevski/279673/ft1_filteredMKT_4FGL_J1309.4+4305_daily_bin702.fits ra=197.363 dec=43.085 rad=12.0 tmin=421286401.0 tmax=421545601.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.87
user 3.43
sys 0.25

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/279673/ft2_4FGL_J1309.4+4305_daily_bin702.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/279673/ft1_filteredMKT_4FGL_J1309.4+4305_daily_bin702.fits evtable="EVENTS" outfile="/scratch/kocevski/279673/ft1_filtered_4FGL_J1309.4+4305_daily_bin702.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.74
user 0.36
sys 0.17

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/279673/ft1_filtered_4FGL_J1309.4+4305_daily_bin702.fits" evtable="EVENTS" scfile=/scratch/kocevski/279673/ft2_4FGL_J1309.4+4305_daily_bin702.fits sctable="SC_DATA" outfile=/scratch/kocevski/279673/ltcube_421286401_421545601_4FGL_J1309.4+4305_daily_bin702.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/279673/ft2_4FGL_J1309.4+4305_daily_bin702.fits
.....................!
real 15.39
user 14.05
sys 0.36

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/279673/ft1_filtered_4FGL_J1309.4+4305_daily_bin702.fits evtable="EVENTS" scfile=/scratch/kocevski/279673/ft2_4FGL_J1309.4+4305_daily_bin702.fits sctable="SC_DATA" expcube=/scratch/kocevski/279673/ltcube_421286401_421545601_4FGL_J1309.4+4305_daily_bin702.fits outfile=/scratch/kocevski/279673/expmap_421286401_421545601_4FGL_J1309.4+4305_daily_bin702.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/279673/ltcube_421286401_421545601_4FGL_J1309.4+4305_daily_bin702.fits
.....................!
real 200.06
user 186.00
sys 4.57

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/279673/ft1_filtered_4FGL_J1309.4+4305_daily_bin702.fits scfile=/scratch/kocevski/279673/ft2_4FGL_J1309.4+4305_daily_bin702.fits outfile=/scratch/kocevski/279673/cmap_421286401_421545601_4FGL_J1309.4+4305_daily_bin702.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.65
user 0.39
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/279673/ft1_filtered_4FGL_J1309.4+4305_daily_bin702.fits scfile=/scratch/kocevski/279673/ft2_4FGL_J1309.4+4305_daily_bin702.fits outfile=/scratch/kocevski/279673/cmap_HighResolution_421286401_421545601_4FGL_J1309.4+4305_daily_bin702.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.68
user 0.41
sys 0.15

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    10.216       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10100E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .12119E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
     5 'norm      '    4.0146       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     7 'norm      '    1.2717       1.0000         .10000E-03   10000.    
     8 'Prefactor '    62.038       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10242E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    3.5161       1.0000         .10000E-03   10000.    
    12 'norm      '    6.6553       1.0000         .10000E-03   10000.    
    13 'norm      '    18.599       1.0000         .10000E-03   10000.    
    14 'norm      '    .10057E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    .10013E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    6.1815       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10072E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .12960E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10021E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    13.859       1.0000         .10000E-03   10000.    
    21 'Prefactor '    2.5242       1.0000         .10000E-03   10000.    
    22 'norm      '    .10292E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    24 'norm      '    7.2980       1.0000         .10000E-03   10000.    
    25 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    26 'Normalizat'    1.0240       1.0000         .10000E-01   10.000    
    27 'Prefactor '    .90196       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=   5972.291     FROM MIGRAD    STATUS=CONVERGED    662 CALLS     3340 TOTAL
                     EDM=   .51E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.4%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          10.213        8.2482        .11685E-05   -.62526E-04
   2  Prefactor     .10000E-03    39.482       -.12440E-05** at limit **
   3  Prefactor     .10000E-03    103.93       -.14976E-05** at limit **
   4  Prefactor     .10000E-03    12.876        .16520E-07** at limit **
   5  norm          4.0144        2.1509       -.13942E-07    .24427E-04
   6  Prefactor     .10000E-03    4.6384       -.49684E-07** at limit **
   7  norm          1.2698        3.6808        .14876E-05   -.57694E-04
   8  Prefactor     62.023        57.506       -.23788E-06   -.52944E-04
   9  Prefactor     .10000E-03    57.903        .13145E-05** at limit **
  10  Prefactor     .10000E-03    8.2382       -.95234E-07** at limit **
  11  norm          3.5164        5.3840        .32941E-06   -.15495E-03
  12  norm          6.6553        9.2250        .61204E-07    .38164E-06
  13  norm          18.602        6.2005        .14797E-06   -.11207E-03
  14  norm          .10000E-03    12.333        .37743E-06** at limit **
  15  norm          .10000E-03    1.5383       -.25456E-07** at limit **
  16  Prefactor     6.1789        4.9823        .28579E-06   -.78227E-04
  17  Prefactor     .10000E-03    24.169        .54368E-06** at limit **
  18  Prefactor     .10000E-03    38.648       -.10691E-05** at limit **
  19  Prefactor     .10000E-03    49.005        .36154E-06** at limit **
  20  Prefactor     13.853        18.292        .11534E-06    .47825E-05
  21  Prefactor     2.4704        62.404        .11791E-06   -.11238E-04
  22  norm          .10000E-03    3.7869        .90983E-07** at limit **
  23  Prefactor     .10000E-03    15.449       -.65476E-07** at limit **
  24  norm          7.2980        1.9756        .98460E-08    .50153E-05
  25  norm          .10000E-03    4.5152        .35063E-07** at limit **
  26  Normalizat    1.0241        .17319       -.44652E-06    .38972E-05
  27  Prefactor     .90174        .20689       -.64061E-06   -.10204E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 10.2132
  Prefactor  = 0.000100001
  Prefactor  = 0.000100001
  Prefactor  = 0.0001
  norm       = 4.01439
  Prefactor  = 0.0001
  norm       = 1.26984
  Prefactor  = 62.0228
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 3.51643
  norm       = 6.65529
  norm       = 18.6022
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 6.17887
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 13.8528
  Prefactor  = 2.47041
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 7.29798
  norm       = 0.0001
  Normalizat = 1.02409
  Prefactor  = 0.901742
 **********
 **   18 **HESSE 
 **********

 FCN=   5972.291     FROM HESSE     STATUS=OK           484 CALLS     3824 TOTAL
                     EDM=   .10E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          10.213        8.3210        .62681E-03   -1.5069    
   2  Prefactor     .10000E-03    40.202        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    106.89        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    12.943        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          4.0144        2.1504        .80463E-04   -1.5307    
   6  Prefactor     .10000E-03    4.7042        .16247E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          1.2698        3.6508        .24348E-03   -1.5483    
   8  Prefactor     62.023        57.600        .50944E-04   -1.4131    
   9  Prefactor     .10000E-03    58.854        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    8.2556        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          3.5164        5.3586        .20865E-03   -1.5333    
  12  norm          6.6553        9.2195        .15555E-03   -1.5192    
  13  norm          18.602        6.1190        .92871E-04   -1.4845    
  14  norm          .10000E-03    12.405        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          .10000E-03    1.5487        .93565E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     6.1789        4.9591        .13669E-03   -1.5211    
  17  Prefactor     .10000E-03    24.228        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    38.886        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    49.056        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     13.853        18.242        .10759E-03   -1.4963    
  21  Prefactor     2.4704        62.470        .25712E-03   -1.5394    
  22  norm          .10000E-03    3.8789        .29224E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     .10000E-03    15.453        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  norm          7.2980        1.9764        .53883E-04   -1.5168    
  25  norm          .10000E-03    4.5229        .16038E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  Normalizat    1.0241        .20837        .22774E-03   -.92228    
  27  Prefactor     .90174        .24809        .29686E-03   -.96080    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.04904e-10
Minuit parameter uncertainties:
  1  8.32194
  2  0.000429483
  3  0.000505132
  4  5.14194e-06
  5  2.15042
  6  3.20803e-06
  7  3.65144
  8  57.6516
  9  0.000265546
  10  5.51995e-06
  11  5.35932
  12  9.22146
  13  6.11925
  14  4.88621e-05
  15  2.28149e-06
  16  4.95939
  17  4.48803e-05
  18  0.000235904
  19  0.000149416
  20  18.2491
  21  24.8742
  22  5.74616e-06
  23  3.42551e-05
  24  1.97639
  25  8.58384e-07
  26  0.208539
  27  0.248401
Done.

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

Extracting fit parameters...

4FGL J1309.4+4305
   Spectrum: LogParabola
349         norm:  6.655e+00  9.221e+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

GAL_V02
   Spectrum: PowerLaw
663    Prefactor:  9.017e-01  2.484e-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.024e+00  2.085e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 1.06
Ra Dec: 197.363 43.085
Photon Index (Fixed Index): 1.77 +/- 0.00
Photon Flux (Fixed Index): 6.97e-09 +/- 9.66e-09
Energy Flux (Fixed Index): 7.66e-06 +/- 1.06e-05

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

Saving results to:
/scratch/kocevski/279673/likelihoodResults_421286401_421545601_4FGL_J1309.4+4305_daily_bin702.txt

Performing a free index iterative likelihood fit...

Freezing all point sources, except source of interest...

Done.

Freeing candidate source...
Done.

Fit tolerance = 1

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5972.02144902
delta logL = 0.26942559705

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5972.01730188
delta logL = 0.273572741418

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    4.9918       1.0000         .10000E-03   10000.    
     2 'alpha     '    2.5812       1.0000          .0000       5.0000    
     3 'Normalizat'    1.0116       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .90762       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.
 MACHINE ACCURACY LIMITS FURTHER IMPROVEMENT.

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   5972.017     FROM MIGRAD    STATUS=CONVERGED     96 CALLS      300 TOTAL
                     EDM=   .42E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          4.9894        8.7865        .89997E-03   -.28271E-04
   2  alpha         2.5817        1.1728        .16336E-01    .12468E-03
   3  Normalizat    1.0116        .20124        .22899E-03   -.35918E-03
   4  Prefactor     .90787        .24641        .29585E-03   -.21896E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 4.98939
  alpha      = 2.58168
  Normalizat = 1.01157
  Prefactor  = 0.907875
 **********
 **   18 **HESSE 
 **********

 FCN=   5972.017     FROM HESSE     STATUS=OK            27 CALLS      327 TOTAL
                     EDM=   .13E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          4.9894        8.0128        .35999E-04   -1.5261    
   2  alpha         2.5817        1.0762        .32672E-02    .32677E-01
   3  Normalizat    1.0116        .20110        .45798E-04   -.92644    
   4  Prefactor     .90787        .24645        .11834E-04   -.95866    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.25626e-10
Minuit parameter uncertainties:
  1  8.01451
  2  1.11264
  3  0.201248
  4  0.24675
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/279673': 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) = 5972.01729998
delta logL = 0.273574641291

Extracting fit parameters...

4FGL J1309.4+4305
   Spectrum: LogParabola
349         norm:  4.989e+00  8.015e+00  1.000e-04  1.000e+04 ( 1.000e-13)
350        alpha:  2.582e+00  1.113e+00  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.079e-01  2.468e-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.012e+00  2.012e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 1.61
Ra Dec: 197.363 43.085
Photon Index (Free Index): 2.58 +/- 1.11
Photon Flux (Free Index): 1.97e-08 +/- 3.03e-08
Energy Flux (Free Index): 5.89e-06 +/- 6.86e-06

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/279673/cmap_HighResolution_421286401_421545601_4FGL_J1309.4+4305_daily_bin702.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='4.37e-05', comment='SUCCESS', photon_flux='6.97e-09', energy_flux2='5.89e-06', photon_flux_error='9.66e-09', dlogl='2.74e-01', energy_flux='7.66e-06', photon_flux2='1.97e-08', job_status='DONE', time_completed='2021-09-07 01:16:57.550927', photon_index_error2='1.11', photon_index2='2.58', ts='1.06', fit_tolerance='1e-08', GAL='0.90', photon_index_error='0.00', photon_flux_upper_limit='3.98e-08', energy_flux_error2='6.86e-06', EG='1.02', time_epoch_completed='1631002617.55', return_code='0', job_id='279673', GAL2='0.91', EG2='1.01', return_code2='0', energy_flux_error='1.06e-05', photon_flux_error2='3.03e-08', ts2='1.61', photon_index='1.77' WHERE bin_id='702' AND source_name='4FGL J1309.4+4305' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Sep  7 01:16:57 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0115>
Subject: Job 279673: <4FGL_J1309.4+4305_daily_bin702> in cluster <slac> Done

Job <4FGL_J1309.4+4305_daily_bin702> was submitted from host <rhel6-64e> by user <kocevski> in cluster <slac> at Tue Sep  7 01:00:22 2021
Job was executed on host(s) <bullet0115>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Sep  7 01:00:25 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Tue Sep  7 01:00:25 2021
Terminated at Tue Sep  7 01:16:58 2021
Results reported at Tue Sep  7 01:16:58 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1309.4+4305_daily_bin702 197.363 43.085 421286401 421545601 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 :                                   818.00 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             290.26 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   992 sec.
    Turnaround time :                            996 sec.

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

