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


Performing analysis on: 4FGL_J1309.4+4305_daily_bin650
RA = 197.363, Dec = 43.085
tmin = 407808001, tmax = 408067201
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='278414', job_status='RUN', time_executed='2021-09-07 00:58:54.206834', time_epoch_executed='1631001534.21' WHERE source_name='4FGL J1309.4+4305' and cadence='daily' and bin_id='650'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/278414

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/278414/ft1_4FGL_J1309.4+4305_daily_bin650.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/278414/ft2_4FGL_J1309.4+4305_daily_bin650.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/278414/ft1_4FGL_J1309.4+4305_daily_bin650.fits outfile=/scratch/kocevski/278414/ft1_filteredMKT_4FGL_J1309.4+4305_daily_bin650.fits ra=197.363 dec=43.085 rad=12.0 tmin=407808001.0 tmax=408067201.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 4.29
user 4.04
sys 0.22

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

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

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/278414/ft1_filtered_4FGL_J1309.4+4305_daily_bin650.fits evtable="EVENTS" scfile=/scratch/kocevski/278414/ft2_4FGL_J1309.4+4305_daily_bin650.fits sctable="SC_DATA" expcube=/scratch/kocevski/278414/ltcube_407808001_408067201_4FGL_J1309.4+4305_daily_bin650.fits outfile=/scratch/kocevski/278414/expmap_407808001_408067201_4FGL_J1309.4+4305_daily_bin650.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/278414/ltcube_407808001_408067201_4FGL_J1309.4+4305_daily_bin650.fits
.....................!
real 192.96
user 187.41
sys 4.65

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/278414/ft1_filtered_4FGL_J1309.4+4305_daily_bin650.fits scfile=/scratch/kocevski/278414/ft2_4FGL_J1309.4+4305_daily_bin650.fits outfile=/scratch/kocevski/278414/cmap_407808001_408067201_4FGL_J1309.4+4305_daily_bin650.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.40
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/278414/ft1_filtered_4FGL_J1309.4+4305_daily_bin650.fits scfile=/scratch/kocevski/278414/ft2_4FGL_J1309.4+4305_daily_bin650.fits outfile=/scratch/kocevski/278414/cmap_HighResolution_407808001_408067201_4FGL_J1309.4+4305_daily_bin650.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.71
user 0.42
sys 0.16

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    16.019       1.0000         .10000E-03   10000.    
     3 'Prefactor '    19.032       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     5 'norm      '    2.9244       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     7 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    68.681       1.0000         .10000E-03   10000.    
    10 'Prefactor '    23.867       1.0000         .10000E-03   10000.    
    11 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    23.917       1.0000         .10000E-03   10000.    
    13 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    14 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    .67100E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10927E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    16.540       1.0000         .10000E-03   10000.    
    18 'Prefactor '    5.3126       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10051E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .30230E-01   1.0000         .10000E-03   10000.    
    21 'Prefactor '    55.039       1.0000         .10000E-03   10000.    
    22 'norm      '    .10003E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    27.791       1.0000         .10000E-03   10000.    
    24 'norm      '    15.325       1.0000         .10000E-03   10000.    
    25 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    26 'Normalizat'    1.1484       1.0000         .10000E-01   10.000    
    27 'Prefactor '    .81797       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6660E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   4607.162     FROM MIGRAD    STATUS=CONVERGED   1194 CALLS     4335 TOTAL
                     EDM=   .83E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    3.5494        .12459E-02** at limit **
   2  Prefactor     16.018        21.430        .10007E-03    .48056E-04
   3  Prefactor     19.075        38.184        .91808E-04   -.50771E-04
   4  Prefactor     .10000E-03    9.2610        .18142E-02** at limit **
   5  norm          2.9245        2.6159        .10046E-03    .32094E-03
   6  Prefactor     .10000E-03    3.4020        .12211E-02** at limit **
   7  norm          .10000E-03    2.5503        .10566E-02** at limit **
   8  Prefactor     .10000E-03    31.229        .18142E-02** at limit **
   9  Prefactor     68.681        40.654        .48434E-04   -.46523E-04
  10  Prefactor     23.866        21.652        .81993E-04   -.53659E-04
  11  norm          .10000E-03    3.6966        .12691E-02** at limit **
  12  norm          23.916        18.509        .81907E-04   -.10965E-04
  13  norm          .10000E-03    1.3510        .76852E-03** at limit **
  14  norm          .10000E-03    2.0179        .94078E-03** at limit **
  15  norm          .10000E-03    39.078        .24813E-02** at limit **
  16  Prefactor     .10000E-03    4.9661        .21299E-02** at limit **
  17  Prefactor     16.536        16.304        .98480E-04   -.17709E-03
  18  Prefactor     5.2257        216.97        .17437E-03   -.37815E-05
  19  Prefactor     .10000E-03    44.063        .18142E-02** at limit **
  20  Prefactor     .10001E-03    21.805        .85579E-01** at limit **
  21  Prefactor     55.078        63.253        .54068E-04   -.47100E-04
  22  norm          .10000E-03    4.8189        .14400E-02** at limit **
  23  Prefactor     27.794        49.098        .75995E-04   -.12566E-04
  24  norm          15.325        3.3119        .54234E-04   -.25280E-03
  25  norm          .10000E-03    6.7574        .17226E-02** at limit **
  26  Normalizat    1.1482        .25498        .23741E-03   -.25995E-03
  27  Prefactor     .81823        .28406        .32968E-03   -.21349E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  Prefactor  = 16.0179
  Prefactor  = 19.0752
  Prefactor  = 0.0001
  norm       = 2.92448
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 68.6807
  Prefactor  = 23.8659
  norm       = 0.0001
  norm       = 23.9157
  norm       = 0.0001
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 0.000100002
  Prefactor  = 16.5363
  Prefactor  = 5.22569
  Prefactor  = 0.0001
  Prefactor  = 0.000100008
  Prefactor  = 55.0775
  norm       = 0.0001
  Prefactor  = 27.7944
  norm       = 15.3249
  norm       = 0.0001
  Normalizat = 1.14819
  Prefactor  = 0.818228
 **********
 **   18 **HESSE 
 **********

 FCN=   4607.162     FROM HESSE     STATUS=OK           470 CALLS     4805 TOTAL
                     EDM=   .85E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    3.5496        .24918E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     16.018        21.432        .40028E-05   -1.4907    
   3  Prefactor     19.075        38.183        .36723E-05   -1.4834    
   4  Prefactor     .10000E-03    9.2612        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          2.9245        2.6159        .40184E-05   -1.5366    
   6  Prefactor     .10000E-03    3.4020        .24422E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          .10000E-03    2.5503        .21132E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    31.230        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     68.681        40.653        .96868E-05   -1.4049    
  10  Prefactor     23.866        21.649        .32797E-05   -1.4731    
  11  norm          .10000E-03    3.6970        .25383E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          23.916        18.508        .32763E-05   -1.4730    
  13  norm          .10000E-03    1.3510        .15370E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          .10000E-03    2.0180        .18816E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          .10000E-03    39.714        .49626E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    4.9737        .42597E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     16.536        16.291        .39392E-05   -1.4894    
  18  Prefactor     5.2257        215.48        .69748E-05   -1.5251    
  19  Prefactor     .10000E-03    44.066        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10001E-03    19.579        .93048E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     55.078        63.184        .10814E-04   -1.4222    
  22  norm          .10000E-03    4.8203        .28799E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     27.794        49.093        .30398E-05   -1.4653    
  24  norm          15.325        3.3119        .10847E-04   -1.4925    
  25  norm          .10000E-03    6.7576        .34452E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  Normalizat    1.1482        .25521        .47482E-04   -.88219    
  27  Prefactor     .81823        .28428        .13187E-04   -.99060    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 8.46241e-10
Minuit parameter uncertainties:
  1  4.94828e-05
  2  21.4419
  3  38.232
  4  1.21052e-05
  5  2.61599
  6  8.21204e-06
  7  3.9768e-06
  8  0.00019531
  9  40.6694
  10  21.6562
  11  5.70036e-06
  12  18.5123
  13  5.113e-07
  14  1.04371e-06
  15  5.43944e-05
  16  0.000215773
  17  16.2955
  18  67.3728
  19  1.37871e-05
  20  0.000800926
  21  63.2613
  22  9.81304e-05
  23  49.1648
  24  3.31192
  25  1.6263e-05
  26  0.25549
  27  0.284793
Done.

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

Extracting fit parameters...

4FGL J1309.4+4305
   Spectrum: LogParabola
349         norm:  2.392e+01  1.851e+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:  8.182e-01  2.848e-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.148e+00  2.555e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 5.18
Ra Dec: 197.363 43.085
Photon Index (Fixed Index): 1.77 +/- 0.00
Photon Flux (Fixed Index): 2.51e-08 +/- 1.94e-08
Energy Flux (Fixed Index): 2.75e-05 +/- 2.13e-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) = 4605.41188001
delta logL = 1.75058611613

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 4605.20383725
delta logL = 1.95862886742

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    9.5602       1.0000         .10000E-03   10000.    
     2 'alpha     '    .68325       1.0000          .0000       5.0000    
     3 'Normalizat'    1.1460       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .83625       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=   4605.204     FROM MIGRAD    STATUS=CONVERGED     61 CALLS      226 TOTAL
                     EDM=   .17E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          9.5165        9.6593        .32402E-02   -.28553E-04
   2  alpha         .68171        .37765        .28319       -.15646E-04
   3  Normalizat    1.1460        .19859        .53726E-01    .30303E-05
   4  Prefactor     .83641        .23862        .73815E-01    .13981E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 9.51651
  alpha      = 0.681706
  Normalizat = 1.14596
  Prefactor  = 0.83641
 **********
 **   18 **HESSE 
 **********

 FCN=   4605.204     FROM HESSE     STATUS=OK            31 CALLS      257 TOTAL
                     EDM=   .82E-13    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          9.5165        19.040        .12961E-03   -1.5091    
   2  alpha         .68171        .71435        .12735E-02   -.81441    
   3  Normalizat    1.1460        .23620        .23755E-03   -.88290    
   4  Prefactor     .83641        .28465        .32667E-03   -.98400    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 8.17925e-14
Minuit parameter uncertainties:
  1  19.0522
  2  0.736791
  3  0.236422
  4  0.285158
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/278414': 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) = 4605.20383416
delta logL = 1.95863195929

Extracting fit parameters...

4FGL J1309.4+4305
   Spectrum: LogParabola
349         norm:  9.517e+00  1.905e+01  1.000e-04  1.000e+04 ( 1.000e-13)
350        alpha:  6.817e-01  7.368e-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:  8.364e-01  2.852e-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.146e+00  2.364e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 9.08
Ra Dec: 197.363 43.085
Photon Index (Free Index): 0.68 +/- 0.74
Photon Flux (Free Index): 8.79e-09 +/- 1.04e-08
Energy Flux (Free Index): 1.42e-04 +/- 1.48e-04

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/278414/cmap_HighResolution_407808001_408067201_4FGL_J1309.4+4305_daily_bin650.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='2.51e-08', energy_flux2='1.42e-04', photon_flux_error='1.94e-08', dlogl='1.96e+00', energy_flux='2.75e-05', photon_flux2='8.79e-09', job_status='DONE', time_completed='2021-09-07 01:10:51.892686', photon_index_error2='0.74', photon_index2='0.68', ts='5.18', fit_tolerance='1e-08', GAL='0.82', photon_index_error='0.00', energy_flux_error2='1.48e-04', EG='1.15', time_epoch_completed='1631002251.89', return_code='0', job_id='278414', GAL2='0.84', EG2='1.15', return_code2='0', energy_flux_error='2.13e-05', photon_flux_error2='1.04e-08', ts2='9.08', photon_index='1.77' WHERE bin_id='650' AND source_name='4FGL J1309.4+4305' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Sep  7 01:10:51 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0082>
Subject: Job 278414: <4FGL_J1309.4+4305_daily_bin650> in cluster <slac> Done

Job <4FGL_J1309.4+4305_daily_bin650> was submitted from host <rhel6-64k> by user <kocevski> in cluster <slac> at Tue Sep  7 00:55:38 2021
Job was executed on host(s) <bullet0082>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Sep  7 00:56: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 00:56:00 2021
Terminated at Tue Sep  7 01:10:52 2021
Results reported at Tue Sep  7 01:10:52 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1309.4+4305_daily_bin650 197.363 43.085 407808001 408067201 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 :                                   707.00 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             279.14 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   892 sec.
    Turnaround time :                            914 sec.

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

