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


Performing analysis on: 4FGL_J1309.4+4305_daily_bin762
RA = 197.363, Dec = 43.085
tmin = 436838401, tmax = 437097601
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='279761', job_status='RUN', time_executed='2021-09-07 01:04:12.282677', time_epoch_executed='1631001852.28' WHERE source_name='4FGL J1309.4+4305' and cadence='daily' and bin_id='762'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/279761

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/279761/ft1_4FGL_J1309.4+4305_daily_bin762.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/279761/ft2_4FGL_J1309.4+4305_daily_bin762.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/279761/ft1_4FGL_J1309.4+4305_daily_bin762.fits outfile=/scratch/kocevski/279761/ft1_filteredMKT_4FGL_J1309.4+4305_daily_bin762.fits ra=197.363 dec=43.085 rad=12.0 tmin=436838401.0 tmax=437097601.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 7.13
user 4.78
sys 0.25

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/279761/ft1_filtered_4FGL_J1309.4+4305_daily_bin762.fits" evtable="EVENTS" scfile=/scratch/kocevski/279761/ft2_4FGL_J1309.4+4305_daily_bin762.fits sctable="SC_DATA" outfile=/scratch/kocevski/279761/ltcube_436838401_437097601_4FGL_J1309.4+4305_daily_bin762.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/279761/ft2_4FGL_J1309.4+4305_daily_bin762.fits
.....................!
real 18.74
user 17.08
sys 0.37

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/279761/ft1_filtered_4FGL_J1309.4+4305_daily_bin762.fits evtable="EVENTS" scfile=/scratch/kocevski/279761/ft2_4FGL_J1309.4+4305_daily_bin762.fits sctable="SC_DATA" expcube=/scratch/kocevski/279761/ltcube_436838401_437097601_4FGL_J1309.4+4305_daily_bin762.fits outfile=/scratch/kocevski/279761/expmap_436838401_437097601_4FGL_J1309.4+4305_daily_bin762.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/279761/ltcube_436838401_437097601_4FGL_J1309.4+4305_daily_bin762.fits
.....................!
real 207.24
user 187.64
sys 4.74

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/279761/ft1_filtered_4FGL_J1309.4+4305_daily_bin762.fits scfile=/scratch/kocevski/279761/ft2_4FGL_J1309.4+4305_daily_bin762.fits outfile=/scratch/kocevski/279761/cmap_436838401_437097601_4FGL_J1309.4+4305_daily_bin762.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.62
user 0.39
sys 0.16

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

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    6.6874       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10115E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    22.277       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10049E-03   1.0000         .10000E-03   10000.    
     5 'norm      '    6.0993       1.0000         .10000E-03   10000.    
     6 'Prefactor '    6.9315       1.0000         .10000E-03   10000.    
     7 'norm      '    3.0521       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10050E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    9.1621       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    .79757       1.0000         .10000E-03   10000.    
    12 'norm      '    9.3509       1.0000         .10000E-03   10000.    
    13 'norm      '    .11429E-03   1.0000         .10000E-03   10000.    
    14 'norm      '    .10015E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .55620       1.0000         .10000E-03   10000.    
    17 'Prefactor '    23.307       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10022E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10012E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    13.972       1.0000         .10000E-03   10000.    
    22 'norm      '    7.1869       1.0000         .10000E-03   10000.    
    23 'Prefactor '    92.828       1.0000         .10000E-03   10000.    
    24 'norm      '    .10048E-03   1.0000         .10000E-03   10000.    
    25 'norm      '    19.657       1.0000         .10000E-03   10000.    
    26 'Normalizat'    .73818       1.0000         .10000E-01   10.000    
    27 'Prefactor '    1.2803       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=   4831.151     FROM MIGRAD    STATUS=CONVERGED    635 CALLS     3295 TOTAL
                     EDM=   .45E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.2%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          6.6878        5.5674        .22808E-08    .11722E-03
   2  Prefactor     .10000E-03    33.103       -.45008E-05** at limit **
   3  Prefactor     22.270        24.479       -.10015E-05   -.50028E-04
   4  Prefactor     .10000E-03    11.751       -.57854E-07** at limit **
   5  norm          6.0993        2.5608        .34828E-07    .20064E-04
   6  Prefactor     6.9297        8.5859       -.22057E-06   -.10654E-03
   7  norm          3.0532        4.2648       -.56301E-06   -.39249E-03
   8  Prefactor     .10000E-03    14.403       -.12565E-05** at limit **
   9  Prefactor     9.1817        29.474        .43941E-06   -.11179E-03
  10  Prefactor     .10000E-03    16.074        .68497E-06** at limit **
  11  norm          .79782        4.2754        .77709E-06   -.83121E-04
  12  norm          9.3498        11.153        .69132E-07    .13020E-05
  13  norm          .10001E-03    3.6243        .24738E-05** at limit **
  14  norm          .10000E-03    4.1509        .12822E-06** at limit **
  15  norm          .10000E-03    1.8815        .29347E-07** at limit **
  16  Prefactor     .55270        4.0796        .12912E-06   -.12108E-04
  17  Prefactor     23.326        19.479       -.21257E-05   -.26954E-03
  18  Prefactor     .10000E-03    14.184       -.13249E-05** at limit **
  19  Prefactor     .10000E-03    27.402        .52381E-05** at limit **
  20  Prefactor     .10000E-03    11.130        .12784E-05** at limit **
  21  Prefactor     13.974        27.951        .11049E-05    .13661E-04
  22  norm          7.1865        4.4770        .22762E-06    .69576E-05
  23  Prefactor     92.809        82.497       -.38164E-05   -.84302E-04
  24  norm          .10000E-03    .83728        .72952E-07** at limit **
  25  norm          19.656        20.882        .33469E-06   -.23022E-04
  26  Normalizat    .73800        .19382       -.20717E-05   -.18606E-03
  27  Prefactor     1.2805        .23653        .82644E-06   -.26669E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 6.68781
  Prefactor  = 0.0001
  Prefactor  = 22.27
  Prefactor  = 0.0001
  norm       = 6.09932
  Prefactor  = 6.92972
  norm       = 3.05323
  Prefactor  = 0.0001
  Prefactor  = 9.18173
  Prefactor  = 0.0001
  norm       = 0.79782
  norm       = 9.34977
  norm       = 0.000100006
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 0.552699
  Prefactor  = 23.3258
  Prefactor  = 0.0001
  Prefactor  = 0.000100002
  Prefactor  = 0.0001
  Prefactor  = 13.9739
  norm       = 7.18655
  Prefactor  = 92.8089
  norm       = 0.0001
  norm       = 19.656
  Normalizat = 0.738002
  Prefactor  = 1.28054
 **********
 **   18 **HESSE 
 **********

 FCN=   4831.151     FROM HESSE     STATUS=OK           492 CALLS     3787 TOTAL
                     EDM=   .28E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          6.6878        5.5620        .14489E-03   -1.5191    
   2  Prefactor     .10000E-03    33.434        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     22.270        24.483        .84865E-04   -1.4764    
   4  Prefactor     .10000E-03    11.757        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          6.0993        2.5609        .69925E-04   -1.5214    
   6  Prefactor     6.9297        8.5553        .15238E-03   -1.5181    
   7  norm          3.0532        4.2510        .15714E-03   -1.5358    
   8  Prefactor     .10000E-03    14.417        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     9.1817        29.459        .13241E-03   -1.5102    
  10  Prefactor     .10000E-03    16.177        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          .79782        4.0464        .27177E-03   -1.5529    
  12  norm          9.3498        11.155        .13106E-03   -1.5096    
  13  norm          .10001E-03    6.2864        .23346E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          .10000E-03    4.1791        .13811E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          .10000E-03    1.9044        .93080E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .55270        6.1989        .21813E-02   -1.5559    
  17  Prefactor     23.326        19.772        .82970E-04   -1.4742    
  18  Prefactor     .10000E-03    14.218        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    27.840        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    11.179        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     13.974        27.919        .10715E-03   -1.4960    
  22  norm          7.1865        4.4723        .11117E-03   -1.5172    
  23  Prefactor     92.809        83.180        .41711E-04   -1.3778    
  24  norm          .10000E-03    1.3171        .12233E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  norm          19.656        20.904        .90339E-04   -1.4821    
  26  Normalizat    .73800        .23225        .25073E-03   -1.0241    
  27  Prefactor     1.2805        .28645        .25510E-03   -.83888    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.78372e-08
Minuit parameter uncertainties:
  1  5.5624
  2  0.000185428
  3  24.4944
  4  4.91609e-06
  5  2.56096
  6  8.55682
  7  4.2514
  8  5.91374e-05
  9  29.5059
  10  6.29249e-05
  11  3.59366
  12  11.1574
  13  0.000399099
  14  1.7513e-05
  15  3.5993e-06
  16  3.7021
  17  19.7777
  18  7.088e-05
  19  0.000409848
  20  5.10782e-05
  21  27.9449
  22  4.47248
  23  83.2845
  24  1.34842e-05
  25  20.9114
  26  0.232558
  27  0.286805
Done.

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

Extracting fit parameters...

4FGL J1309.4+4305
   Spectrum: LogParabola
349         norm:  9.350e+00  1.116e+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.281e+00  2.868e-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:  7.380e-01  2.326e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 1.62
Ra Dec: 197.363 43.085
Photon Index (Fixed Index): 1.77 +/- 0.00
Photon Flux (Fixed Index): 9.80e-09 +/- 1.17e-08
Energy Flux (Fixed Index): 1.08e-05 +/- 1.28e-05

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

Saving results to:
/scratch/kocevski/279761/likelihoodResults_436838401_437097601_4FGL_J1309.4+4305_daily_bin762.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) = 4831.14928796
delta logL = 0.00184877183256

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 4831.1492679
delta logL = 0.00186883037168

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    9.3976       1.0000         .10000E-03   10000.    
     2 'alpha     '    1.7135       1.0000          .0000       5.0000    
     3 'Normalizat'    .73855       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.2804       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=   4831.149     FROM MIGRAD    STATUS=CONVERGED     54 CALLS      220 TOTAL
                     EDM=   .83E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          9.4197        599.85        .32682E-02   -.61399E-04
   2  alpha         1.7156        3.9372        .44078        .90959E-05
   3  Normalizat    .73854        .11597        .42803E-01   -.76331E-03
   4  Prefactor     1.2803        .11215        .57691E-01   -.76268E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 9.41973
  alpha      = 1.71556
  Normalizat = 0.738537
  Prefactor  = 1.28032
 **********
 **   18 **HESSE 
 **********

 FCN=   4831.149     FROM HESSE     STATUS=OK            29 CALLS      249 TOTAL
                     EDM=   .89E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          9.4197        11.327        .13073E-03   -1.5094    
   2  alpha         1.7156        .85159        .19073E-01   -.31917    
   3  Normalizat    .73854        .21667        .25065E-03   -1.0239    
   4  Prefactor     1.2803        .28370        .25511E-03   -.83894    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 8.86559e-10
Minuit parameter uncertainties:
  1  11.3292
  2  0.871003
  3  0.21692
  4  0.284043
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/279761': 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) = 4831.14926288
delta logL = 0.00187385598565

Extracting fit parameters...

4FGL J1309.4+4305
   Spectrum: LogParabola
349         norm:  9.420e+00  1.133e+01  1.000e-04  1.000e+04 ( 1.000e-13)
350        alpha:  1.716e+00  8.710e-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.280e+00  2.840e-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:  7.385e-01  2.169e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 1.62
Ra Dec: 197.363 43.085
Photon Index (Free Index): 1.72 +/- 0.87
Photon Flux (Free Index): 9.25e-09 +/- 1.39e-08
Energy Flux (Free Index): 1.15e-05 +/- 1.97e-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/279761/cmap_HighResolution_436838401_437097601_4FGL_J1309.4+4305_daily_bin762.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='5.13e-05', comment='SUCCESS', photon_flux='9.80e-09', energy_flux2='1.15e-05', photon_flux_error='1.17e-08', dlogl='1.87e-03', energy_flux='1.08e-05', photon_flux2='9.25e-09', job_status='DONE', time_completed='2021-09-07 01:16:59.581534', photon_index_error2='0.87', photon_index2='1.72', ts='1.62', fit_tolerance='1e-08', GAL='1.28', photon_index_error='0.00', photon_flux_upper_limit='4.67e-08', energy_flux_error2='1.97e-05', EG='0.74', time_epoch_completed='1631002619.58', return_code='0', job_id='279761', GAL2='1.28', EG2='0.74', return_code2='0', energy_flux_error='1.28e-05', photon_flux_error2='1.39e-08', ts2='1.62', photon_index='1.77' WHERE bin_id='762' AND source_name='4FGL J1309.4+4305' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Sep  7 01:16:59 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0274>
Subject: Job 279761: <4FGL_J1309.4+4305_daily_bin762> in cluster <slac> Done

Job <4FGL_J1309.4+4305_daily_bin762> was submitted from host <rhel6-64e> by user <kocevski> in cluster <slac> at Tue Sep  7 01:00:28 2021
Job was executed on host(s) <bullet0274>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Sep  7 01:01:00 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:01:00 2021
Terminated at Tue Sep  7 01:17:02 2021
Results reported at Tue Sep  7 01:17:02 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1309.4+4305_daily_bin762 197.363 43.085 436838401 437097601 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 :                                   739.00 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             259.63 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   959 sec.
    Turnaround time :                            994 sec.

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

