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


Performing analysis on: 4FGL_J1303.0+2434_daily_bin1274
RA = 195.757, Dec = 24.5821
tmin = 569548801, tmax = 569808001
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='163463', job_status='RUN', time_executed='2021-09-06 18:20:51.712855', time_epoch_executed='1630977651.71' WHERE source_name='4FGL J1303.0+2434' and cadence='daily' and bin_id='1274'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/163463

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/163463/ft1_4FGL_J1303.0+2434_daily_bin1274.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/163463/ft2_4FGL_J1303.0+2434_daily_bin1274.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/163463/ft1_4FGL_J1303.0+2434_daily_bin1274.fits outfile=/scratch/kocevski/163463/ft1_filteredMKT_4FGL_J1303.0+2434_daily_bin1274.fits ra=195.757 dec=24.5821 rad=12.0 tmin=569548801.0 tmax=569808001.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.67
user 3.44
sys 0.21

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/163463/ft2_4FGL_J1303.0+2434_daily_bin1274.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/163463/ft2_4FGL_J1303.0+2434_daily_bin1274.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/163463/ft1_filteredMKT_4FGL_J1303.0+2434_daily_bin1274.fits evtable="EVENTS" outfile="/scratch/kocevski/163463/ft1_filtered_4FGL_J1303.0+2434_daily_bin1274.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.52
user 0.35
sys 0.15

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/163463/ft1_filtered_4FGL_J1303.0+2434_daily_bin1274.fits" evtable="EVENTS" scfile=/scratch/kocevski/163463/ft2_4FGL_J1303.0+2434_daily_bin1274.fits sctable="SC_DATA" outfile=/scratch/kocevski/163463/ltcube_569548801_569808001_4FGL_J1303.0+2434_daily_bin1274.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/163463/ft2_4FGL_J1303.0+2434_daily_bin1274.fits
.....................!
real 16.41
user 16.03
sys 0.32

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/163463/ft1_filtered_4FGL_J1303.0+2434_daily_bin1274.fits evtable="EVENTS" scfile=/scratch/kocevski/163463/ft2_4FGL_J1303.0+2434_daily_bin1274.fits sctable="SC_DATA" expcube=/scratch/kocevski/163463/ltcube_569548801_569808001_4FGL_J1303.0+2434_daily_bin1274.fits outfile=/scratch/kocevski/163463/expmap_569548801_569808001_4FGL_J1303.0+2434_daily_bin1274.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/163463/ltcube_569548801_569808001_4FGL_J1303.0+2434_daily_bin1274.fits
.....................!
real 191.43
user 186.72
sys 4.25

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 177 point sources and 0 extended sources

Setting source of interest to:
4FGL J1303.0+2434 @ 195.757 24.5821

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/163463/ft1_filtered_4FGL_J1303.0+2434_daily_bin1274.fits scfile=/scratch/kocevski/163463/ft2_4FGL_J1303.0+2434_daily_bin1274.fits outfile=/scratch/kocevski/163463/cmap_569548801_569808001_4FGL_J1303.0+2434_daily_bin1274.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=195.757 yref=24.5821 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.40
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/163463/ft1_filtered_4FGL_J1303.0+2434_daily_bin1274.fits scfile=/scratch/kocevski/163463/ft2_4FGL_J1303.0+2434_daily_bin1274.fits outfile=/scratch/kocevski/163463/cmap_HighResolution_569548801_569808001_4FGL_J1303.0+2434_daily_bin1274.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=195.757 yref=24.5821 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.42
sys 0.14

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/163463/ft1_filtered_4FGL_J1303.0+2434_daily_bin1274.fits evtable="EVENTS" scfile=/scratch/kocevski/163463/ft2_4FGL_J1303.0+2434_daily_bin1274.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/163463/Model_4FGL_J1303.0+2434_daily_bin1274.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/163463/ft1_filtered_4FGL_J1303.0+2434_daily_bin1274.fits.....................!
real 49.51
user 48.22
sys 1.15

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/163463/ft1_filtered_4FGL_J1303.0+2434_daily_bin1274.fits', '/scratch/kocevski/163463/ft2_4FGL_J1303.0+2434_daily_bin1274.fits', expMap='/scratch/kocevski/163463/expmap_569548801_569808001_4FGL_J1303.0+2434_daily_bin1274.fits', expCube='/scratch/kocevski/163463/ltcube_569548801_569808001_4FGL_J1303.0+2434_daily_bin1274.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/163463/Model_4FGL_J1303.0+2434_daily_bin1274.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J1303.0+2434'

4FGL J1303.0+2434
   Spectrum: LogParabola
290         norm:  3.013e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-12)
291        alpha:  2.066e+00  0.000e+00  0.000e+00  5.000e+00 ( 1.000e+00) fixed
292         beta:  8.150e-02  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
293           Eb:  8.679e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/163463/ft1_filtered_4FGL_J1303.0+2434_daily_bin1274.fits
Spacecraft file(s): /scratch/kocevski/163463/ft2_4FGL_J1303.0+2434_daily_bin1274.fits
Exposure map: /scratch/kocevski/163463/expmap_569548801_569808001_4FGL_J1303.0+2434_daily_bin1274.fits
Exposure cube: /scratch/kocevski/163463/ltcube_569548801_569808001_4FGL_J1303.0+2434_daily_bin1274.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/163463/Model_4FGL_J1303.0+2434_daily_bin1274.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) = 5997.13571058

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    7.6095       1.0000         .10000E-03   10000.    
     2 'Prefactor '    1.2345       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     5 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
     6 'norm      '    10.537       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    81.621       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    10 'norm      '    .21693       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .41722E-02   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    5.8368       1.0000         .10000E-03   10000.    
    14 'norm      '    5.2016       1.0000         .10000E-03   10000.    
    15 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    11.114       1.0000         .10000E-03   10000.    
    18 'Prefactor '    1.4887       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10009E-03   1.0000         .10000E-03   10000.    
    20 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    45.078       1.0000         .10000E-03   10000.    
    23 'norm      '    3.8705       1.0000         .10000E-03   10000.    
    24 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    25 'Prefactor '    .10065E-03   1.0000         .10000E-03   10000.    
    26 'Normalizat'    1.0076       1.0000         .10000E-01   10.000    
    27 'Prefactor '    1.0381       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5620E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   5997.134     FROM MIGRAD    STATUS=CONVERGED    642 CALLS     3328 TOTAL
                     EDM=   .55E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  5.6%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          7.6097        3.4300       -.80437E-08    .98778E-04
   2  Prefactor     1.2346        2.2307        .94757E-07   -.14488E-03
   3  Prefactor     .10000E-03    .49136        .39091E-07** at limit **
   4  Prefactor     .10000E-03    1.9296        .35116E-07** at limit **
   5  norm          .10000E-03    .84420E-01    .10946E-06** at limit **
   6  norm          10.539        5.1072       -.18913E-07   -.23676E-03
   7  Prefactor     .10000E-03    3.5373        .70102E-07** at limit **
   8  Prefactor     81.699        98.057        .15937E-05    .19758E-04
   9  Prefactor     .10000E-03    1.4389        .68265E-07** at limit **
  10  norm          .21178        24.593       -.28031E-05    .14707E-04
  11  Prefactor     .10000E-03    6.4690        .31769E-06** at limit **
  12  Prefactor     .10000E-03    15.603        .16877E-06** at limit **
  13  norm          5.8375        3.5903       -.21158E-07   -.23425E-04
  14  norm          5.2017        4.1466       -.32479E-07    .96052E-04
  15  norm          .10000E-03    1.3915        .15108E-06** at limit **
  16  norm          .10000E-03    1.4195        .36466E-07** at limit **
  17  norm          11.115        11.462       -.52912E-08   -.14448E-05
  18  Prefactor     1.4900        3.2177        .70985E-07    .32912E-04
  19  Prefactor     .10000E-03    7.1984        .18128E-06** at limit **
  20  norm          .10000E-03    2.0521        .16804E-06** at limit **
  21  Prefactor     .10000E-03    19.016        .26671E-06** at limit **
  22  Prefactor     45.073        55.779       -.41716E-06    .21380E-04
  23  norm          3.8711        4.9140        .26689E-07   -.46895E-04
  24  Prefactor     .10000E-03    7.2672        .41328E-06** at limit **
  25  Prefactor     .10000E-03    28.360        .12107E-05** at limit **
  26  Normalizat    1.0074        .19389        .28384E-05   -.15455E-03
  27  Prefactor     1.0381        .20566       -.40780E-05   -.11953E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 7.60974
  Prefactor  = 1.23455
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 10.5391
  Prefactor  = 0.0001
  Prefactor  = 81.699
  Prefactor  = 0.0001
  norm       = 0.211784
  Prefactor  = 0.000100001
  Prefactor  = 0.0001
  norm       = 5.8375
  norm       = 5.20167
  norm       = 0.0001
  norm       = 0.0001
  norm       = 11.1149
  Prefactor  = 1.49004
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 45.0729
  norm       = 3.87107
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Normalizat = 1.00736
  Prefactor  = 1.03811
 **********
 **   18 **HESSE 
 **********

 FCN=   5997.134     FROM HESSE     STATUS=OK           490 CALLS     3818 TOTAL
                     EDM=   .17E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          7.6097        3.4386        .83845E-04   -1.5156    
   2  Prefactor     1.2346        2.2068        .13554E-03   -1.5486    
   3  Prefactor     .10000E-03    .49371        .53011E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    1.9340        .10504E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          .10000E-03    .15053        .42975E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          10.539        5.1012        .11719E-03   -1.5059    
   7  Prefactor     .10000E-03    3.5482        .14225E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     81.699        101.32        .22229E-03   -1.3898    
   9  Prefactor     .10000E-03    1.4411        .90745E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          .21178        26.141        .22661E-02   -1.5616    
  11  Prefactor     .10000E-03    32.005        .37651E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    15.663        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          5.8375        3.5892        .11109E-03   -1.5225    
  14  norm          5.2017        4.1414        .13605E-03   -1.5252    
  15  norm          .10000E-03    1.4154        .89106E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          .10000E-03    1.4216        .90101E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          11.115        11.463        .12017E-03   -1.5041    
  18  Prefactor     1.4900        3.1757        .18445E-03   -1.5464    
  19  Prefactor     .10000E-03    7.2093        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  norm          .10000E-03    2.0630        .10839E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10000E-03    19.046        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     45.073        55.463        .59715E-04   -1.4364    
  23  norm          3.8711        4.9082        .18717E-03   -1.5314    
  24  Prefactor     .10000E-03    7.2994        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Prefactor     .10000E-03    28.721        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  Normalizat    1.0074        .19466        .23315E-03   -.92784    
  27  Prefactor     1.0381        .20797        .25322E-03   -.91470    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.67623e-10
Minuit parameter uncertainties:
  1  3.43869
  2  2.20698
  3  1.66907e-07
  4  1.03644e-08
  5  1.29718e-06
  6  5.10139
  7  2.27378e-06
  8  101.536
  9  2.77491e-06
  10  4.7068
  11  0.000334028
  12  5.7451e-06
  13  3.58934
  14  4.14164
  15  1.08703e-06
  16  4.36028e-07
  17  11.4649
  18  3.17604
  19  2.567e-05
  20  5.88649e-06
  21  2.47957e-05
  22  55.5271
  23  4.90872
  24  4.85374e-06
  25  0.00018776
  26  0.1948
  27  0.208127
Done.

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

Extracting fit parameters...

4FGL J1303.0+2434
   Spectrum: LogParabola
290         norm:  5.838e+00  3.589e+00  1.000e-04  1.000e+04 ( 1.000e-12)
291        alpha:  2.066e+00  0.000e+00  0.000e+00  5.000e+00 ( 1.000e+00) fixed
292         beta:  8.150e-02  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
293           Eb:  8.679e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
559    Prefactor:  1.038e+00  2.081e-01  0.000e+00  1.000e+01 ( 1.000e+00)
560        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
561        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
558   Normalization:  1.007e+00  1.948e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 6.00
Ra Dec: 195.757 24.582
Photon Index (Fixed Index): 2.07 +/- 0.00
Photon Flux (Fixed Index): 3.96e-08 +/- 2.43e-08
Energy Flux (Fixed Index): 2.05e-05 +/- 1.26e-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) = 5996.49680812
delta logL = 0.636908996787

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5996.49468412
delta logL = 0.639032997427

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    5.8989       1.0000         .10000E-03   10000.    
     2 'alpha     '    1.4449       1.0000          .0000       5.0000    
     3 'Normalizat'    1.0233       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0291       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5620E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   5996.495     FROM MIGRAD    STATUS=CONVERGED     46 CALLS      198 TOTAL
                     EDM=   .97E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          5.8989        3.5097        .41336E-02    .38938E-03
   2  alpha         1.4449        .37773        .31449       -.44638E-04
   3  Normalizat    1.0233        .16223        .42904E-01    .83505E-05
   4  Prefactor     1.0291        .17934        .41332E-01    .88026E-05
                               ERR DEF=  .500    
Final values: 
  norm       = 5.89887
  alpha      = 1.44493
  Normalizat = 1.02332
  Prefactor  = 1.0291
 **********
 **   18 **HESSE 
 **********

 FCN=   5996.495     FROM HESSE     STATUS=OK            31 CALLS      229 TOTAL
                     EDM=   .12E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          5.8989        3.9174        .10834E-03   -1.5222    
   2  alpha         1.4449        .46589        .12558E-01   -.43568    
   3  Normalizat    1.0233        .18691        .23139E-03   -.92253    
   4  Prefactor     1.0291        .20662        .25417E-03   -.91766    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.20501e-09
Minuit parameter uncertainties:
  1  3.91755
  2  0.469233
  3  0.18703
  4  0.206775
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/163463': 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) = 5996.49468411
delta logL = 0.639033009877

Extracting fit parameters...

4FGL J1303.0+2434
   Spectrum: LogParabola
290         norm:  5.899e+00  3.918e+00  1.000e-04  1.000e+04 ( 1.000e-12)
291        alpha:  1.445e+00  4.692e-01  0.000e+00  5.000e+00 ( 1.000e+00)
292         beta:  8.150e-02  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
293           Eb:  8.679e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
559    Prefactor:  1.029e+00  2.068e-01  0.000e+00  1.000e+01 ( 1.000e+00)
560        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
561        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
558   Normalization:  1.023e+00  1.870e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 7.27
Ra Dec: 195.757 24.582
Photon Index (Free Index): 1.44 +/- 0.47
Photon Flux (Free Index): 2.38e-08 +/- 1.82e-08
Energy Flux (Free Index): 4.92e-05 +/- 4.79e-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/163463/cmap_HighResolution_569548801_569808001_4FGL_J1303.0+2434_daily_bin1274.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='3.96e-08', energy_flux2='4.92e-05', photon_flux_error='2.43e-08', dlogl='6.39e-01', energy_flux='2.05e-05', photon_flux2='2.38e-08', job_status='DONE', time_completed='2021-09-06 18:31:56.882165', photon_index_error2='0.47', photon_index2='1.44', ts='6.00', fit_tolerance='1e-08', GAL='1.04', photon_index_error='0.00', energy_flux_error2='4.79e-05', EG='1.01', time_epoch_completed='1630978316.88', return_code='0', job_id='163463', GAL2='1.03', EG2='1.02', return_code2='0', energy_flux_error='1.26e-05', photon_flux_error2='1.82e-08', ts2='7.27', photon_index='2.07' WHERE bin_id='1274' AND source_name='4FGL J1303.0+2434' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Mon Sep  6 18:31:56 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0291>
Subject: Job 163463: <4FGL_J1303.0+2434_daily_bin1274> in cluster <slac> Done

Job <4FGL_J1303.0+2434_daily_bin1274> was submitted from host <rhel6-64a> by user <kocevski> in cluster <slac> at Mon Sep  6 18:20:28 2021
Job was executed on host(s) <bullet0291>, in queue <medium>, as user <kocevski> in cluster <slac> at Mon Sep  6 18:20:33 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Mon Sep  6 18:20:33 2021
Terminated at Mon Sep  6 18:31:57 2021
Results reported at Mon Sep  6 18:31:57 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1303.0+2434_daily_bin1274 195.757 24.5821 569548801 569808001 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J1303.0+2434 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   658.49 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             337.71 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   684 sec.
    Turnaround time :                            689 sec.

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

