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


Performing analysis on: 4FGL_J1309.4+4305_daily_bin996
RA = 197.363, Dec = 43.085
tmin = 497491201, tmax = 497750401
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='282965', job_status='RUN', time_executed='2021-09-07 01:11:35.232472', time_epoch_executed='1631002295.23' WHERE source_name='4FGL J1309.4+4305' and cadence='daily' and bin_id='996'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/282965

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/282965/ft1_4FGL_J1309.4+4305_daily_bin996.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/282965/ft2_4FGL_J1309.4+4305_daily_bin996.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/282965/ft1_4FGL_J1309.4+4305_daily_bin996.fits outfile=/scratch/kocevski/282965/ft1_filteredMKT_4FGL_J1309.4+4305_daily_bin996.fits ra=197.363 dec=43.085 rad=12.0 tmin=497491201.0 tmax=497750401.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.96
user 3.71
sys 0.20

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

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

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/282965/ft1_filtered_4FGL_J1309.4+4305_daily_bin996.fits evtable="EVENTS" scfile=/scratch/kocevski/282965/ft2_4FGL_J1309.4+4305_daily_bin996.fits sctable="SC_DATA" expcube=/scratch/kocevski/282965/ltcube_497491201_497750401_4FGL_J1309.4+4305_daily_bin996.fits outfile=/scratch/kocevski/282965/expmap_497491201_497750401_4FGL_J1309.4+4305_daily_bin996.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/282965/ltcube_497491201_497750401_4FGL_J1309.4+4305_daily_bin996.fits
.....................!
real 192.23
user 186.61
sys 5.13

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/282965/ft1_filtered_4FGL_J1309.4+4305_daily_bin996.fits scfile=/scratch/kocevski/282965/ft2_4FGL_J1309.4+4305_daily_bin996.fits outfile=/scratch/kocevski/282965/cmap_497491201_497750401_4FGL_J1309.4+4305_daily_bin996.fits algorithm="CMAP" ebinalg="LOG" emin=30.0 emax=200000.0 ebinfile=NONE tbinalg="LIN" tbinfile=NONE nxpix=160 nypix=160 binsz=0.25 coordsys="CEL" xref=197.363 yref=43.085 axisrot=0.0 rafield="RA" decfield="DEC" proj="AIT" hpx_ordering_scheme="RING" hpx_order=3 hpx_ebin=yes hpx_region="" evtable="EVENTS" sctable="SC_DATA" efield="ENERGY" tfield="TIME" chatter=2 clobber=yes debug=no gui=no mode="ql"

WARNING: version mismatch between CFITSIO header (v3.43) and linked library (v3.41).

This is gtbin version HEAD
real 0.56
user 0.38
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/282965/ft1_filtered_4FGL_J1309.4+4305_daily_bin996.fits scfile=/scratch/kocevski/282965/ft2_4FGL_J1309.4+4305_daily_bin996.fits outfile=/scratch/kocevski/282965/cmap_HighResolution_497491201_497750401_4FGL_J1309.4+4305_daily_bin996.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.41
sys 0.15

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .48461E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    4.3856       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10269E-03   1.0000         .10000E-03   10000.    
     5 'norm      '    2.4998       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10025E-03   1.0000         .10000E-03   10000.    
     7 'norm      '    15.035       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10525E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    17.805       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10008E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    .10142E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    .10103E-03   1.0000         .10000E-03   10000.    
    14 'norm      '    .10049E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    .40568       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .85290       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    13.389       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .13951E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10031E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    35.512       1.0000         .10000E-03   10000.    
    22 'norm      '    .10005E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10191E-03   1.0000         .10000E-03   10000.    
    24 'norm      '    2.4464       1.0000         .10000E-03   10000.    
    25 'norm      '    .10009E-03   1.0000         .10000E-03   10000.    
    26 'Normalizat'    .89840       1.0000         .10000E-01   10.000    
    27 'Prefactor '    1.1909       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=   4942.149     FROM MIGRAD    STATUS=CONVERGED    660 CALLS     3303 TOTAL
                     EDM=   .16E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .4%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10001E-03    11.378       -.16224E-05** at limit **
   2  Prefactor     4.3781        32.809        .46415E-05    .10816E-03
   3  Prefactor     .10000E-03    7.8560       -.19997E-05** at limit **
   4  Prefactor     .10000E-03    26.700        .30974E-04** at limit **
   5  norm          2.5008        2.7786        .91899E-08   -.32509E-03
   6  Prefactor     .10000E-03    2.1645        .68807E-08** at limit **
   7  norm          15.028        7.1473       -.66517E-06   -.84006E-05
   8  Prefactor     .10000E-03    68.362        .42875E-04** at limit **
   9  Prefactor     17.873        26.612        .56109E-05    .13474E-04
  10  Prefactor     .10000E-03    17.038       -.57841E-05** at limit **
  11  norm          .10000E-03    3.6009        .11527E-06** at limit **
  12  norm          .10000E-03    7.4231        .15552E-05** at limit **
  13  norm          .10000E-03    1.3071       -.18333E-08** at limit **
  14  norm          .10000E-03    1.9383        .63149E-07** at limit **
  15  norm          .40646        2.6533       -.58682E-06   -.13033E-02
  16  Prefactor     .86089        3.1405       -.96589E-06   -.86742E-03
  17  Prefactor     .10000E-03    10.952        .19499E-05** at limit **
  18  Prefactor     13.362        32.641       -.29967E-04   -.40812E-04
  19  Prefactor     .10000E-03    138.12       -.33788E-04** at limit **
  20  Prefactor     .10000E-03    5.4294       -.13536E-06** at limit **
  21  Prefactor     35.549        41.269        .31583E-04    .42892E-04
  22  norm          .10000E-03    1.9102       -.17599E-06** at limit **
  23  Prefactor     .10000E-03    34.127       -.42303E-04** at limit **
  24  norm          2.4463        1.5215       -.32562E-06   -.27818E-03
  25  norm          .10000E-03    4.1321       -.38397E-07** at limit **
  26  Normalizat    .89875        .17449       -.10767E-05    .21346E-03
  27  Prefactor     1.1904        .22030       -.81969E-06    .69556E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 0.000100011
  Prefactor  = 4.37815
  Prefactor  = 0.0001
  Prefactor  = 0.000100001
  norm       = 2.50083
  Prefactor  = 0.0001
  norm       = 15.0279
  Prefactor  = 0.0001
  Prefactor  = 17.873
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 0.0001
  norm       = 0.0001
  norm       = 0.0001
  norm       = 0.406461
  Prefactor  = 0.860892
  Prefactor  = 0.0001
  Prefactor  = 13.3617
  Prefactor  = 0.000100001
  Prefactor  = 0.0001
  Prefactor  = 35.5493
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 2.4463
  norm       = 0.0001
  Normalizat = 0.898746
  Prefactor  = 1.19039
 **********
 **   18 **HESSE 
 **********

 FCN=   4942.149     FROM HESSE     STATUS=OK           482 CALLS     3785 TOTAL
                     EDM=   .33E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10001E-03    42.481        .39740E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     4.3781        25.182        .19232E-03   -1.5289    
   3  Prefactor     .10000E-03    7.8669        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    27.094        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          2.5008        2.7678        .11888E-03   -1.5392    
   6  Prefactor     .10000E-03    2.1685        .10100E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          15.028        7.1497        .10329E-03   -1.4932    
   8  Prefactor     .10000E-03    68.553        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     17.873        26.571        .94917E-04   -1.4862    
  10  Prefactor     .10000E-03    17.192        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          .10000E-03    3.6677        .13014E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          .10000E-03    7.4445        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          .10000E-03    1.3180        .78429E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          .10000E-03    1.9428        .95576E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          .40646        2.5748        .22086E-03   -1.5580    
  16  Prefactor     .86089        3.1398        .22132E-03   -1.5522    
  17  Prefactor     .10000E-03    11.047        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     13.362        32.430        .10947E-03   -1.4977    
  19  Prefactor     .10000E-03    138.76        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    5.4363        .15998E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     35.549        41.132        .67249E-04   -1.4515    
  22  norm          .10000E-03    1.9346        .94847E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     .10000E-03    34.066        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  norm          2.4463        1.5171        .65016E-04   -1.5395    
  25  norm          .10000E-03    4.1368        .13956E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  Normalizat    .89875        .20825        .22801E-03   -.96504    
  27  Prefactor     1.1904        .26412        .26120E-03   -.86627    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.30841e-09
Minuit parameter uncertainties:
  1  0.00137932
  2  21.0132
  3  4.98966e-06
  4  0.000326405
  5  2.76793
  6  9.42801e-07
  7  7.15009
  8  8.80034e-05
  9  26.5883
  10  1.70225e-05
  11  7.96075e-06
  12  1.70644e-06
  13  7.53926e-07
  14  1.86213e-07
  15  2.04592
  16  3.14041
  17  4.52628e-05
  18  32.4728
  19  0.000908406
  20  7.55019e-06
  21  41.1645
  22  1.27337e-05
  23  4.70491e-05
  24  1.5171
  25  2.73125e-06
  26  0.208439
  27  0.264413
Done.

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

Extracting fit parameters...

4FGL J1309.4+4305
   Spectrum: LogParabola
349         norm:  1.000e-04  1.706e-06  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.190e+00  2.644e-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:  8.987e-01  2.084e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/282965/likelihoodResults_497491201_497750401_4FGL_J1309.4+4305_daily_bin996.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): 102
logL (Free Index) = 4942.14952467
delta logL = -0.000638412248009

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 4942.14888625
delta logL = -2.0008883439e-10

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     2 'alpha     '    1.7712       1.0000          .0000       5.0000    
     3 'Normalizat'    .89875       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.1904       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=   4942.149     FROM MIGRAD    STATUS=CONVERGED     90 CALLS      238 TOTAL
                     EDM=   .15E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10003E-03    391.08        .18142E-02** at limit **
   2  alpha         1.7877        2.5670        .50000       -.78123E-06
   3  Normalizat    .89874        .32700E-01    .22801E-03    .99720E-06
   4  Prefactor     1.1904        .42644E-01    .26120E-03    .69639E-06
                               ERR DEF=  .500    
Final values: 
  norm       = 0.00010003
  alpha      = 1.78772
  Normalizat = 0.898743
  Prefactor  = 1.1904
 **********
 **   18 **HESSE 
 **********

 FCN=   4942.149     FROM HESSE     STATUS=NOT POSDEF    29 CALLS      267 TOTAL
                     EDM=   .60E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10003E-03    1340.5        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  alpha         1.7877        3.2837        .50000       -.28891    
   3  Normalizat    .89874        .86614E-01    .91205E-05   -.96504    
   4  Prefactor     1.1904        .11295        .10448E-04   -.86627    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 6.04905e-09
Minuit parameter uncertainties:
  1  0.0129022
  2  2834.79
  3  0.086627
  4  0.11297
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/282965': 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): 102
logL (Free Index) = 4942.14888625
delta logL = 6.925802154e-09

Extracting fit parameters...

4FGL J1309.4+4305
   Spectrum: LogParabola
349         norm:  1.000e-04  1.290e-02  1.000e-04  1.000e+04 ( 1.000e-13)
350        alpha:  1.788e+00  2.835e+03  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.190e+00  1.130e-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:  8.987e-01  8.663e-02  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
Ra Dec: 197.363 43.085

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/282965/cmap_HighResolution_497491201_497750401_4FGL_J1309.4+4305_daily_bin996.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='3.60e-05', job_status='DONE', photon_flux_upper_limit='3.28e-08', time_completed='2021-09-07 01:23:59.139594', job_id='282965', GAL2='1.19', fit_tolerance='1e-08', EG2='0.90', EG='0.90', time_epoch_completed='1631003039.14', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.19', dlogl='6.93e-09', ts2='-0.00', photon_index_error='0.00', photon_index='1.77' WHERE bin_id='996' AND source_name='4FGL J1309.4+4305' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Sep  7 01:23:59 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0126>
Subject: Job 282965: <4FGL_J1309.4+4305_daily_bin996> in cluster <slac> Done

Job <4FGL_J1309.4+4305_daily_bin996> was submitted from host <rhel6-64a> by user <kocevski> in cluster <slac> at Tue Sep  7 01:07:32 2021
Job was executed on host(s) <bullet0126>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Sep  7 01:07:41 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:07:41 2021
Terminated at Tue Sep  7 01:23:59 2021
Results reported at Tue Sep  7 01:23:59 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1309.4+4305_daily_bin996 197.363 43.085 497491201 497750401 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 :                                   741.48 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             278.80 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   978 sec.
    Turnaround time :                            987 sec.

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

