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


Performing analysis on: 4FGL_J1303.0+2434_daily_bin80
RA = 195.757, Dec = 24.5821
tmin = 260064001, tmax = 260323201
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='152172', job_status='RUN', time_executed='2021-09-06 17:44:18.823452', time_epoch_executed='1630975458.82' WHERE source_name='4FGL J1303.0+2434' and cadence='daily' and bin_id='80'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/152172

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/152172/ft1_4FGL_J1303.0+2434_daily_bin80.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/152172/ft2_4FGL_J1303.0+2434_daily_bin80.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/152172/ft1_4FGL_J1303.0+2434_daily_bin80.fits outfile=/scratch/kocevski/152172/ft1_filteredMKT_4FGL_J1303.0+2434_daily_bin80.fits ra=195.757 dec=24.5821 rad=12.0 tmin=260064001.0 tmax=260323201.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.52
user 1.33
sys 0.18

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/152172/ft2_4FGL_J1303.0+2434_daily_bin80.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/152172/ft1_filteredMKT_4FGL_J1303.0+2434_daily_bin80.fits evtable="EVENTS" outfile="/scratch/kocevski/152172/ft1_filtered_4FGL_J1303.0+2434_daily_bin80.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.34
sys 0.16

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/152172/ft1_filtered_4FGL_J1303.0+2434_daily_bin80.fits" evtable="EVENTS" scfile=/scratch/kocevski/152172/ft2_4FGL_J1303.0+2434_daily_bin80.fits sctable="SC_DATA" outfile=/scratch/kocevski/152172/ltcube_260064001_260323201_4FGL_J1303.0+2434_daily_bin80.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/152172/ft2_4FGL_J1303.0+2434_daily_bin80.fits
.....................!
real 17.03
user 16.58
sys 0.37

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/152172/ft1_filtered_4FGL_J1303.0+2434_daily_bin80.fits evtable="EVENTS" scfile=/scratch/kocevski/152172/ft2_4FGL_J1303.0+2434_daily_bin80.fits sctable="SC_DATA" expcube=/scratch/kocevski/152172/ltcube_260064001_260323201_4FGL_J1303.0+2434_daily_bin80.fits outfile=/scratch/kocevski/152172/expmap_260064001_260323201_4FGL_J1303.0+2434_daily_bin80.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/152172/ltcube_260064001_260323201_4FGL_J1303.0+2434_daily_bin80.fits
.....................!
real 192.78
user 186.81
sys 5.39

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/152172/ft1_filtered_4FGL_J1303.0+2434_daily_bin80.fits scfile=/scratch/kocevski/152172/ft2_4FGL_J1303.0+2434_daily_bin80.fits outfile=/scratch/kocevski/152172/cmap_260064001_260323201_4FGL_J1303.0+2434_daily_bin80.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.55
user 0.38
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/152172/ft1_filtered_4FGL_J1303.0+2434_daily_bin80.fits scfile=/scratch/kocevski/152172/ft2_4FGL_J1303.0+2434_daily_bin80.fits outfile=/scratch/kocevski/152172/cmap_HighResolution_260064001_260323201_4FGL_J1303.0+2434_daily_bin80.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.56
user 0.39
sys 0.15

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    7.6509       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    2.1416       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     5 'norm      '    .95583E-01   1.0000         .10000E-03   10000.    
     6 'norm      '    7.9790       1.0000         .10000E-03   10000.    
     7 'Prefactor '    7.1490       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    4.2174       1.0000         .10000E-03   10000.    
    10 'norm      '    3.0691       1.0000         .10000E-03   10000.    
    11 'Prefactor '    18.062       1.0000         .10000E-03   10000.    
    12 'Prefactor '    26.580       1.0000         .10000E-03   10000.    
    13 'norm      '    11.354       1.0000         .10000E-03   10000.    
    14 'norm      '    15.654       1.0000         .10000E-03   10000.    
    15 'norm      '    .85162       1.0000         .10000E-03   10000.    
    16 'norm      '    5.5200       1.0000         .10000E-03   10000.    
    17 'norm      '    28.130       1.0000         .10000E-03   10000.    
    18 'Prefactor '    2.7316       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10000E-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 '    .10000E-03   1.0000         .10000E-03   10000.    
    23 'norm      '    14.351       1.0000         .10000E-03   10000.    
    24 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    25 'Prefactor '    .10328E-03   1.0000         .10000E-03   10000.    
    26 'Normalizat'    1.1350       1.0000         .10000E-01   10.000    
    27 'Prefactor '    .91730       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=   8825.675     FROM MIGRAD    STATUS=CONVERGED    637 CALLS     2823 TOTAL
                     EDM=   .18E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          7.6514        3.0925        .36245E-02    .89021E-04
   2  Prefactor     .10000E-03    .88139        .33943E-01** at limit **
   3  Prefactor     2.1418        2.0637        .70408E-02    .84272E-03
   4  Prefactor     .10000E-03    2.2829        .90712E-02** at limit **
   5  norm          .95584E-01    .15078        .87932E-02    .37001E-02
   6  norm          7.9798        4.2294        .35486E-02    .23819E-02
   7  Prefactor     7.1494        6.4776        .37506E-02    .12976E-02
   8  Prefactor     .10001E-03    26.771        .90712E-02** at limit **
   9  Prefactor     4.2174        6.1566        .49056E-02    .61691E-03
  10  norm          3.0698        2.9198        .57886E-02   -.14403E-02
  11  Prefactor     18.062        12.867        .23560E-02    .39635E-04
  12  Prefactor     26.577        22.319        .19426E-02    .18265E-02
  13  norm          11.355        4.0102        .29723E-02    .43494E-02
  14  norm          15.654        6.4229        .25307E-02   -.15695E-03
  15  norm          .85543        5.0082        .12631E-01    .17141E-02
  16  norm          5.5144        7.5540        .42752E-02    .26269E-03
  17  norm          28.130        15.825        .18884E-02   -.57794E-04
  18  Prefactor     2.7316        2.4710        .61593E-02    .32613E-03
  19  Prefactor     .10000E-03    3.9656        .90712E-02** at limit **
  20  norm          .10000E-03    1.8325        .90712E-02** at limit **
  21  Prefactor     .10000E-03    12.085        .90712E-02** at limit **
  22  Prefactor     .10000E-03    20.380        .90712E-02** at limit **
  23  norm          14.352        8.2823        .26433E-02    .14312E-02
  24  Prefactor     .10000E-03    9.2826        .90712E-02** at limit **
  25  Prefactor     .10001E-03    27.291        .90712E-02** at limit **
  26  Normalizat    1.1349        .15557        .55165E-01    .72922E-04
  27  Prefactor     .91744        .16034        .45225E-01    .49132E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 7.65144
  Prefactor  = 0.0001
  Prefactor  = 2.14184
  Prefactor  = 0.0001
  norm       = 0.0955838
  norm       = 7.97979
  Prefactor  = 7.1494
  Prefactor  = 0.000100006
  Prefactor  = 4.21738
  norm       = 3.06975
  Prefactor  = 18.0621
  Prefactor  = 26.5773
  norm       = 11.3547
  norm       = 15.6544
  norm       = 0.855433
  norm       = 5.51438
  norm       = 28.1302
  Prefactor  = 2.73158
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 14.352
  Prefactor  = 0.0001
  Prefactor  = 0.000100007
  Normalizat = 1.13489
  Prefactor  = 0.917439
 **********
 **   18 **HESSE 
 **********

 FCN=   8825.675     FROM HESSE     STATUS=OK           490 CALLS     3313 TOTAL
                     EDM=   .16E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          7.6514        3.0129        .97722E-04   -1.5155    
   2  Prefactor     .10000E-03    1.4979        .16688E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     2.1418        2.0454        .12327E-03   -1.5415    
   4  Prefactor     .10000E-03    2.2959        .13847E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          .95584E-01    .13294        .43329E-03   -1.5646    
   6  norm          7.9798        4.2152        .13400E-03   -1.5143    
   7  Prefactor     7.1494        6.4705        .75013E-03   -1.5173    
   8  Prefactor     .10001E-03    26.806        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     4.2174        6.1457        .19622E-03   -1.5297    
  10  norm          3.0698        2.9146        .14831E-03   -1.5358    
  11  Prefactor     18.062        12.871        .94241E-04   -1.4858    
  12  Prefactor     26.577        22.054        .77703E-04   -1.4676    
  13  norm          11.355        4.0108        .10694E-03   -1.5034    
  14  norm          15.654        6.4163        .10123E-03   -1.4916    
  15  norm          .85543        4.4026        .24548E-03   -1.5523    
  16  norm          5.5144        7.2887        .17101E-03   -1.5238    
  17  norm          28.130        15.823        .75537E-04   -1.4647    
  18  Prefactor     2.7316        2.4558        .13351E-03   -1.5377    
  19  Prefactor     .10000E-03    3.9719        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  norm          .10000E-03    1.8401        .12411E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10000E-03    12.093        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     .10000E-03    20.387        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  norm          14.352        8.2875        .52865E-03   -1.4950    
  24  Prefactor     .10000E-03    9.3297        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Prefactor     .10001E-03    27.672        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  Normalizat    1.1349        .18208        .24393E-03   -.88639    
  27  Prefactor     .91744        .18765        .28472E-03   -.95534    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.62568e-08
Minuit parameter uncertainties:
  1  3.013
  2  2.7935e-07
  3  2.04546
  4  1.83986e-06
  5  0.132938
  6  4.21533
  7  6.47118
  8  0.000808962
  9  6.14664
  10  2.91477
  11  12.8733
  12  22.0606
  13  4.01087
  14  6.41661
  15  3.88154
  16  7.28983
  17  15.8257
  18  2.45591
  19  1.88281e-05
  20  1.16334e-05
  21  0.000102962
  22  9.67889e-05
  23  8.28815
  24  1.10286e-05
  25  0.000861203
  26  0.182178
  27  0.18778
Done.

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

Extracting fit parameters...

4FGL J1303.0+2434
   Spectrum: LogParabola
290         norm:  1.135e+01  4.011e+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:  9.174e-01  1.878e-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.135e+00  1.822e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 26.51
Ra Dec: 195.757 24.582
Photon Index (Fixed Index): 2.07 +/- 0.00
Photon Flux (Fixed Index): 7.70e-08 +/- 2.72e-08
Energy Flux (Fixed Index): 3.99e-05 +/- 1.41e-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) = 8825.61071281
delta logL = 0.0647110274404

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 8825.60804661
delta logL = 0.0673772268819

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    11.598       1.0000         .10000E-03   10000.    
     2 'alpha     '    1.9514       1.0000          .0000       5.0000    
     3 'Normalizat'    1.1438       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .91220       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=   8825.608     FROM MIGRAD    STATUS=CONVERGED     55 CALLS      208 TOTAL
                     EDM=   .90E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          11.601        8.3679        .29408E-02    .57210E-03
   2  alpha         1.9513        .56699        .26004        .24483E-04
   3  Normalizat    1.1438        .14990        .54989E-01   -.31569E-05
   4  Prefactor     .91223        .15744        .64595E-01    .40843E-05
                               ERR DEF=  .500    
Final values: 
  norm       = 11.6012
  alpha      = 1.95135
  Normalizat = 1.14382
  Prefactor  = 0.912232
 **********
 **   18 **HESSE 
 **********

 FCN=   8825.608     FROM HESSE     STATUS=OK            33 CALLS      241 TOTAL
                     EDM=   .11E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          11.601        4.1730        .55326E-03   -1.5027    
   2  alpha         1.9513        .31206        .10413E-01   -.22126    
   3  Normalizat    1.1438        .17571        .24315E-03   -.88357    
   4  Prefactor     .91223        .18571        .28570E-03   -.95715    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.11858e-12
Minuit parameter uncertainties:
  1  4.17309
  2  0.312914
  3  0.175797
  4  0.185842
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/152172': 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) = 8825.60804614
delta logL = 0.0673776959229

Extracting fit parameters...

4FGL J1303.0+2434
   Spectrum: LogParabola
290         norm:  1.160e+01  4.173e+00  1.000e-04  1.000e+04 ( 1.000e-12)
291        alpha:  1.951e+00  3.129e-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:  9.122e-01  1.858e-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.144e+00  1.758e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 26.59
Ra Dec: 195.757 24.582
Photon Index (Free Index): 1.95 +/- 0.31
Photon Flux (Free Index): 6.92e-08 +/- 3.23e-08
Energy Flux (Free Index): 4.39e-05 +/- 2.01e-05

Creating a high resolution counts map...
INFO: Auto-setting vmin to -1.000e-01 [aplpy.core]
INFO: Auto-setting vmax to  1.110e+00 [aplpy.core]
Saving /scratch/kocevski/152172/cmap_HighResolution_260064001_260323201_4FGL_J1303.0+2434_daily_bin80.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='7.70e-08', energy_flux2='4.39e-05', photon_flux_error='2.72e-08', dlogl='6.74e-02', energy_flux='3.99e-05', photon_flux2='6.92e-08', job_status='DONE', time_completed='2021-09-06 17:57:04.284071', photon_index_error2='0.31', photon_index2='1.95', ts='26.51', fit_tolerance='1e-08', GAL='0.92', photon_index_error='0.00', energy_flux_error2='2.01e-05', EG='1.13', time_epoch_completed='1630976224.28', return_code='0', job_id='152172', GAL2='0.91', EG2='1.14', return_code2='0', energy_flux_error='1.41e-05', photon_flux_error2='3.23e-08', ts2='26.59', photon_index='2.07' WHERE bin_id='80' AND source_name='4FGL J1303.0+2434' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Mon Sep  6 17:57:04 PDT 2021


------------------------------------------------------------
Sender: LSF System <scs@bullet0130>
Subject: Job 152172: <4FGL_J1303.0+2434_daily_bin80> in cluster <slac> Done

Job <4FGL_J1303.0+2434_daily_bin80> was submitted from host <rhel6-64j> by user <kocevski> in cluster <slac> at Mon Sep  6 17:40:46 2021
Job was executed on host(s) <bullet0130>, 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:57:04 2021
Results reported at Mon Sep  6 17:57:04 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1303.0+2434_daily_bin80 195.757 24.5821 260064001 260323201 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 :                                   762.33 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             314.32 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   973 sec.
    Turnaround time :                            978 sec.

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

