/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 178 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 = 7436
number of fields = 22
No RA_SUN column yet. Adding RA_SUN/DEC_SUN columns.
Done.


Performing analysis on: 4FGL_J1303.0+2434_daily_bin72
RA = 195.757, Dec = 24.5821
tmin = 257990401, tmax = 258249601
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='152164', job_status='RUN', time_executed='2021-09-06 17:43:58.390621', time_epoch_executed='1630975438.39' WHERE source_name='4FGL J1303.0+2434' and cadence='daily' and bin_id='72'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/152164

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/152164/ft1_4FGL_J1303.0+2434_daily_bin72.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/152164/ft2_4FGL_J1303.0+2434_daily_bin72.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/152164/ft1_4FGL_J1303.0+2434_daily_bin72.fits outfile=/scratch/kocevski/152164/ft1_filteredMKT_4FGL_J1303.0+2434_daily_bin72.fits ra=195.757 dec=24.5821 rad=12.0 tmin=257990401.0 tmax=258249601.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 1.47
user 1.24
sys 0.18

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/152164/ft2_4FGL_J1303.0+2434_daily_bin72.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/152164/ft1_filteredMKT_4FGL_J1303.0+2434_daily_bin72.fits evtable="EVENTS" outfile="/scratch/kocevski/152164/ft1_filtered_4FGL_J1303.0+2434_daily_bin72.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.54
user 0.34
sys 0.17

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/152164/ft1_filtered_4FGL_J1303.0+2434_daily_bin72.fits evtable="EVENTS" scfile=/scratch/kocevski/152164/ft2_4FGL_J1303.0+2434_daily_bin72.fits sctable="SC_DATA" expcube=/scratch/kocevski/152164/ltcube_257990401_258249601_4FGL_J1303.0+2434_daily_bin72.fits outfile=/scratch/kocevski/152164/expmap_257990401_258249601_4FGL_J1303.0+2434_daily_bin72.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/152164/ltcube_257990401_258249601_4FGL_J1303.0+2434_daily_bin72.fits
.....................!
real 192.32
user 186.58
sys 5.21

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/152164/ft1_filtered_4FGL_J1303.0+2434_daily_bin72.fits scfile=/scratch/kocevski/152164/ft2_4FGL_J1303.0+2434_daily_bin72.fits outfile=/scratch/kocevski/152164/cmap_257990401_258249601_4FGL_J1303.0+2434_daily_bin72.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/152164/ft1_filtered_4FGL_J1303.0+2434_daily_bin72.fits scfile=/scratch/kocevski/152164/ft2_4FGL_J1303.0+2434_daily_bin72.fits outfile=/scratch/kocevski/152164/cmap_HighResolution_257990401_258249601_4FGL_J1303.0+2434_daily_bin72.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.58
user 0.40
sys 0.16

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

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/152164/ft1_filtered_4FGL_J1303.0+2434_daily_bin72.fits', '/scratch/kocevski/152164/ft2_4FGL_J1303.0+2434_daily_bin72.fits', expMap='/scratch/kocevski/152164/expmap_257990401_258249601_4FGL_J1303.0+2434_daily_bin72.fits', expCube='/scratch/kocevski/152164/ltcube_257990401_258249601_4FGL_J1303.0+2434_daily_bin72.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/152164/Model_4FGL_J1303.0+2434_daily_bin72.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/152164/ft1_filtered_4FGL_J1303.0+2434_daily_bin72.fits
Spacecraft file(s): /scratch/kocevski/152164/ft2_4FGL_J1303.0+2434_daily_bin72.fits
Exposure map: /scratch/kocevski/152164/expmap_257990401_258249601_4FGL_J1303.0+2434_daily_bin72.fits
Exposure cube: /scratch/kocevski/152164/ltcube_257990401_258249601_4FGL_J1303.0+2434_daily_bin72.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/152164/Model_4FGL_J1303.0+2434_daily_bin72.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) = 5205.06977565

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    2.7664       1.0000         .10000E-03   10000.    
     2 'Prefactor '    2.1776       1.0000         .10000E-03   10000.    
     3 'Prefactor '    3.2831       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .12214E-03   1.0000         .10000E-03   10000.    
     5 'norm      '    .52316       1.0000         .10000E-03   10000.    
     6 'norm      '    .32950E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10687E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .17275E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    12.340       1.0000         .10000E-03   10000.    
    10 'norm      '    3.9712       1.0000         .10000E-03   10000.    
    11 'Prefactor '    21.981       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .13540E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    5.1319       1.0000         .10000E-03   10000.    
    14 'norm      '    3.4480       1.0000         .10000E-03   10000.    
    15 'norm      '    2.9550       1.0000         .10000E-03   10000.    
    16 'norm      '    4.4125       1.0000         .10000E-03   10000.    
    17 'norm      '    21.485       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10009E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10045E-03   1.0000         .10000E-03   10000.    
    20 'norm      '    .19649E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    12.563       1.0000         .10000E-03   10000.    
    22 'Prefactor '    .20853E-03   1.0000         .10000E-03   10000.    
    23 'norm      '    2.4398       1.0000         .10000E-03   10000.    
    24 'Prefactor '    .13045E-03   1.0000         .10000E-03   10000.    
    25 'Prefactor '    16.958       1.0000         .10000E-03   10000.    
    26 'Normalizat'    .77393       1.0000         .10000E-01   10.000    
    27 'Prefactor '    1.2583       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=   5204.953     FROM MIGRAD    STATUS=CONVERGED    693 CALLS     3324 TOTAL
                     EDM=   .30E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .5%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          2.7761        2.9499       -.11238E-06   -.19663E-03
   2  Prefactor     2.1742        2.1511       -.35573E-07   -.11676E-03
   3  Prefactor     3.2818        1.9693       -.63698E-07    .67332E-04
   4  Prefactor     .10000E-03    2.6573       -.13122E-07** at limit **
   5  norm          .52399        .29164       -.79116E-07   -.39378E-03
   6  norm          .10000E-03    2.5927       -.61380E-06** at limit **
   7  Prefactor     .10000E-03    2.4787       -.94199E-08** at limit **
   8  Prefactor     .10000E-03    36.037       -.43185E-05** at limit **
   9  Prefactor     12.350        8.5932       -.13098E-06   -.96209E-05
  10  norm          3.9819        4.5654        .21682E-06   -.10084E-03
  11  Prefactor     22.049        16.501       -.64035E-07   -.25776E-04
  12  Prefactor     .10000E-03    15.901       -.13947E-05** at limit **
  13  norm          5.1346        3.7915       -.17135E-06    .39684E-04
  14  norm          3.4460        4.1621       -.59054E-06    .80776E-04
  15  norm          2.9941        6.2841       -.25687E-05   -.24681E-03
  16  norm          4.3634        8.7363        .26710E-05   -.36225E-03
  17  norm          21.541        17.109       -.19454E-05    .16874E-03
  18  Prefactor     .10000E-03    3.1781        .81801E-07** at limit **
  19  Prefactor     .10000E-03    6.8593        .17017E-06** at limit **
  20  norm          .10000E-03    10.246        .35831E-06** at limit **
  21  Prefactor     12.439        38.793       -.33497E-05    .14350E-04
  22  Prefactor     .10000E-03    35.323        .15220E-05** at limit **
  23  norm          2.4656        7.5355       -.97355E-05   -.57210E-04
  24  Prefactor     .10000E-03    4.9675        .13190E-06** at limit **
  25  Prefactor     16.978        16.014       -.30384E-06    .39868E-04
  26  Normalizat    .77340        .19406        .25229E-05    .12334E-03
  27  Prefactor     1.2583        .20745        .55103E-06    .16879E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 2.77614
  Prefactor  = 2.1742
  Prefactor  = 3.28178
  Prefactor  = 0.0001
  norm       = 0.523987
  norm       = 0.000100001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 12.3502
  norm       = 3.98193
  Prefactor  = 22.0487
  Prefactor  = 0.0001
  norm       = 5.13463
  norm       = 3.44597
  norm       = 2.99412
  norm       = 4.36344
  norm       = 21.5414
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.000100003
  Prefactor  = 12.4393
  Prefactor  = 0.0001
  norm       = 2.46559
  Prefactor  = 0.0001
  Prefactor  = 16.9778
  Normalizat = 0.773404
  Prefactor  = 1.25834
 **********
 **   18 **HESSE 
 **********

 FCN=   5204.953     FROM HESSE     STATUS=OK           492 CALLS     3816 TOTAL
                     EDM=   .72E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          2.7761        2.9669        .11394E-03   -1.5375    
   2  Prefactor     2.1742        2.1644        .94076E-04   -1.5413    
   3  Prefactor     3.2818        1.9653        .75297E-04   -1.5346    
   4  Prefactor     .10000E-03    2.6855        .11481E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          .52399        .28773        .27246E-04   -1.5563    
   6  norm          .10000E-03    7.3272        .22477E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    2.4804        .11093E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    35.988        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     12.350        8.5945        .11403E-03   -1.5005    
  10  norm          3.9819        4.5495        .15619E-03   -1.5309    
  11  Prefactor     22.049        16.525        .85432E-04   -1.4768    
  12  Prefactor     .10000E-03    15.918        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          5.1346        3.7919        .11627E-03   -1.5255    
  14  norm          3.4460        4.1537        .15708E-03   -1.5337    
  15  norm          2.9941        6.6738        .16002E-03   -1.5362    
  16  norm          4.3634        9.2340        .18975E-03   -1.5290    
  17  norm          21.541        17.047        .86413E-04   -1.4779    
  18  Prefactor     .10000E-03    3.2961        .25037E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    6.8806        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  norm          .10000E-03    10.679        .36285E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     12.439        38.867        .11301E-03   -1.5002    
  22  Prefactor     .10000E-03    35.336        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  norm          2.4656        7.8703        .26194E-03   -1.5394    
  24  Prefactor     .10000E-03    4.9737        .15703E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Prefactor     16.978        16.019        .97260E-04   -1.4884    
  26  Normalizat    .77340        .22928        .26778E-03   -1.0106    
  27  Prefactor     1.2583        .24643        .24199E-03   -.84555    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 7.22377e-10
Minuit parameter uncertainties:
  1  2.96707
  2  2.16446
  3  1.96533
  4  2.87046e-06
  5  0.28773
  6  0.000196912
  7  1.66776e-06
  8  0.000197991
  9  8.59534
  10  4.5499
  11  16.5282
  12  6.57369e-05
  13  3.79206
  14  4.15402
  15  6.67546
  16  9.23699
  17  17.0506
  18  1.24326e-05
  19  9.937e-06
  20  0.000367784
  21  38.946
  22  7.64975e-05
  23  7.87364
  24  2.96354e-06
  25  16.0226
  26  0.229569
  27  0.246657
Done.

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

Extracting fit parameters...

4FGL J1303.0+2434
   Spectrum: LogParabola
290         norm:  5.135e+00  3.792e+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.258e+00  2.467e-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:  7.734e-01  2.296e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 6.49
Ra Dec: 195.757 24.582
Photon Index (Fixed Index): 2.07 +/- 0.00
Photon Flux (Fixed Index): 3.48e-08 +/- 2.57e-08
Energy Flux (Fixed Index): 1.81e-05 +/- 1.33e-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) = 5204.95250434
delta logL = 3.84471231882e-05

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5204.95250345
delta logL = 3.93396585423e-05

Fit tolerance = 1e-08

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

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

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   5204.953     FROM MIGRAD    STATUS=CONVERGED     94 CALLS      261 TOTAL
                     EDM=   .54E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          5.1302        3.8266        .58030E-03   -.35754E-04
   2  alpha         2.0713        .59281        .13619E-01    .13388E-04
   3  Normalizat    .77320        .21611        .26781E-03    .99930E-04
   4  Prefactor     1.2584        .24248        .24198E-03    .20155E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 5.13022
  alpha      = 2.07132
  Normalizat = 0.773198
  Prefactor  = 1.25845
 **********
 **   18 **HESSE 
 **********

 FCN=   5204.953     FROM HESSE     STATUS=OK            27 CALLS      288 TOTAL
                     EDM=   .51E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          5.1302        3.8030        .23212E-04   -1.5255    
   2  alpha         2.0713        .58910        .54474E-03   -.17232    
   3  Normalizat    .77320        .21631        .10712E-04   -1.0107    
   4  Prefactor     1.2584        .24272        .96792E-05   -.84551    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.14867e-11
Minuit parameter uncertainties:
  1  3.80317
  2  0.594862
  3  0.216555
  4  0.242936
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/152164': 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) = 5204.95250306
delta logL = 3.97298081225e-05

Extracting fit parameters...

4FGL J1303.0+2434
   Spectrum: LogParabola
290         norm:  5.130e+00  3.803e+00  1.000e-04  1.000e+04 ( 1.000e-12)
291        alpha:  2.071e+00  5.949e-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.258e+00  2.429e-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:  7.732e-01  2.166e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 6.48
Ra Dec: 195.757 24.582
Photon Index (Free Index): 2.07 +/- 0.59
Photon Flux (Free Index): 3.50e-08 +/- 3.31e-08
Energy Flux (Free Index): 1.80e-05 +/- 1.49e-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/152164/cmap_HighResolution_257990401_258249601_4FGL_J1303.0+2434_daily_bin72.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='3.48e-08', energy_flux2='1.80e-05', photon_flux_error='2.57e-08', dlogl='3.97e-05', energy_flux='1.81e-05', photon_flux2='3.50e-08', job_status='DONE', time_completed='2021-09-06 17:54:18.879303', photon_index_error2='0.59', photon_index2='2.07', ts='6.49', fit_tolerance='1e-08', GAL='1.26', photon_index_error='0.00', energy_flux_error2='1.49e-05', EG='0.77', time_epoch_completed='1630976058.88', return_code='0', job_id='152164', GAL2='1.26', EG2='0.77', return_code2='0', energy_flux_error='1.33e-05', photon_flux_error2='3.31e-08', ts2='6.48', photon_index='2.07' WHERE bin_id='72' AND source_name='4FGL J1303.0+2434' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Mon Sep  6 17:54:18 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0083>
Subject: Job 152164: <4FGL_J1303.0+2434_daily_bin72> in cluster <slac> Done

Job <4FGL_J1303.0+2434_daily_bin72> was submitted from host <rhel6-64j> by user <kocevski> in cluster <slac> at Mon Sep  6 17:40:45 2021
Job was executed on host(s) <bullet0083>, in queue <medium>, as user <kocevski> in cluster <slac> at Mon Sep  6 17:40:51 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Mon Sep  6 17:40:51 2021
Terminated at Mon Sep  6 17:54:19 2021
Results reported at Mon Sep  6 17:54:19 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1303.0+2434_daily_bin72 195.757 24.5821 257990401 258249601 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 :                                   619.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             279.75 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   808 sec.
    Turnaround time :                            814 sec.

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

