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


Performing analysis on: 4FGL_J1303.0+2434_daily_bin1104
RA = 195.757, Dec = 24.5821
tmin = 525484801, tmax = 525744001
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='162119', job_status='RUN', time_executed='2021-09-06 18:20:15.596207', time_epoch_executed='1630977615.6' WHERE source_name='4FGL J1303.0+2434' and cadence='daily' and bin_id='1104'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/162119

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/162119/ft1_4FGL_J1303.0+2434_daily_bin1104.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/162119/ft2_4FGL_J1303.0+2434_daily_bin1104.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/162119/ft1_4FGL_J1303.0+2434_daily_bin1104.fits outfile=/scratch/kocevski/162119/ft1_filteredMKT_4FGL_J1303.0+2434_daily_bin1104.fits ra=195.757 dec=24.5821 rad=12.0 tmin=525484801.0 tmax=525744001.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.68
user 3.45
sys 0.20

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/162119/ft1_filtered_4FGL_J1303.0+2434_daily_bin1104.fits" evtable="EVENTS" scfile=/scratch/kocevski/162119/ft2_4FGL_J1303.0+2434_daily_bin1104.fits sctable="SC_DATA" outfile=/scratch/kocevski/162119/ltcube_525484801_525744001_4FGL_J1303.0+2434_daily_bin1104.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/162119/ft2_4FGL_J1303.0+2434_daily_bin1104.fits
.....................!
real 16.93
user 16.48
sys 0.36

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/162119/ft1_filtered_4FGL_J1303.0+2434_daily_bin1104.fits evtable="EVENTS" scfile=/scratch/kocevski/162119/ft2_4FGL_J1303.0+2434_daily_bin1104.fits sctable="SC_DATA" expcube=/scratch/kocevski/162119/ltcube_525484801_525744001_4FGL_J1303.0+2434_daily_bin1104.fits outfile=/scratch/kocevski/162119/expmap_525484801_525744001_4FGL_J1303.0+2434_daily_bin1104.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/162119/ltcube_525484801_525744001_4FGL_J1303.0+2434_daily_bin1104.fits
.....................!
real 192.16
user 186.74
sys 4.86

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/162119/ft1_filtered_4FGL_J1303.0+2434_daily_bin1104.fits scfile=/scratch/kocevski/162119/ft2_4FGL_J1303.0+2434_daily_bin1104.fits outfile=/scratch/kocevski/162119/cmap_525484801_525744001_4FGL_J1303.0+2434_daily_bin1104.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.56
user 0.38
sys 0.17

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/162119/ft1_filtered_4FGL_J1303.0+2434_daily_bin1104.fits scfile=/scratch/kocevski/162119/ft2_4FGL_J1303.0+2434_daily_bin1104.fits outfile=/scratch/kocevski/162119/cmap_HighResolution_525484801_525744001_4FGL_J1303.0+2434_daily_bin1104.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.41
sys 0.16

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    14.509       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .72088       1.0000         .10000E-03   10000.    
     4 'Prefactor '    7.8721       1.0000         .10000E-03   10000.    
     5 'norm      '    .22437       1.0000         .10000E-03   10000.    
     6 'norm      '    3.8275       1.0000         .10000E-03   10000.    
     7 'Prefactor '    5.2563       1.0000         .10000E-03   10000.    
     8 'Prefactor '    67.796       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10018E-03   1.0000         .10000E-03   10000.    
    10 'norm      '    2.9059       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10023E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10142E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    4.7921       1.0000         .10000E-03   10000.    
    14 'norm      '    .54601       1.0000         .10000E-03   10000.    
    15 'norm      '    1.0450       1.0000         .10000E-03   10000.    
    16 'norm      '    .10681E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    2.3277       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    20 'norm      '    11.992       1.0000         .10000E-03   10000.    
    21 'Prefactor '    16.815       1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    23 'norm      '    11.320       1.0000         .10000E-03   10000.    
    24 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    25 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    26 'Normalizat'    .97324       1.0000         .10000E-01   10.000    
    27 'Prefactor '    1.0895       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=   5867.588     FROM MIGRAD    STATUS=CONVERGED    682 CALLS     3358 TOTAL
                     EDM=   .11E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.5%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          14.510        4.2403        .75965E-08    .51294E-04
   2  Prefactor     .10000E-03    .86336       -.13200E-06** at limit **
   3  Prefactor     .71984        .36333        .53016E-07   -.14615E-02
   4  Prefactor     7.8720        6.6351       -.11788E-07   -.40686E-04
   5  norm          .22432        .30069       -.18095E-06   -.46410E-03
   6  norm          3.8270        3.5722        .52537E-07    .45310E-04
   7  Prefactor     5.2570        8.9929       -.27141E-06    .81487E-05
   8  Prefactor     67.789        63.256       -.66109E-05    .12336E-04
   9  Prefactor     .10000E-03    4.0454        .17834E-06** at limit **
  10  norm          2.9042        3.3928        .27189E-06    .11300E-03
  11  Prefactor     .10000E-03    4.8114        .29749E-06** at limit **
  12  Prefactor     .10000E-03    28.376       -.13207E-04** at limit **
  13  norm          4.7927        3.0525        .57525E-07    .79396E-04
  14  norm          .54488        5.3847        .26674E-06   -.66621E-04
  15  norm          1.0456        2.8459       -.12145E-05   -.19863E-02
  16  norm          .10015E-03    6.7948        .29154E-05** at limit **
  17  norm          .10005E-03    17.103       -.11501E-05** at limit **
  18  Prefactor     2.3274        2.0745       -.55753E-07   -.17075E-03
  19  Prefactor     .10000E-03    7.1658        .56832E-06** at limit **
  20  norm          11.996        8.7142       -.26038E-06    .14321E-03
  21  Prefactor     16.810        29.996       -.22737E-05    .16582E-05
  22  Prefactor     .10000E-03    43.060        .12297E-05** at limit **
  23  norm          11.318        9.0166        .18960E-06    .44324E-04
  24  Prefactor     .10000E-03    8.5614        .12903E-05** at limit **
  25  Prefactor     .10000E-03    8.8999       -.77195E-06** at limit **
  26  Normalizat    .97326        .17725        .72980E-06    .44247E-04
  27  Prefactor     1.0895        .19096        .11147E-05   -.62412E-05
                               ERR DEF=  .500    
Final values: 
  norm       = 14.5099
  Prefactor  = 0.0001
  Prefactor  = 0.719844
  Prefactor  = 7.87202
  norm       = 0.224315
  norm       = 3.82704
  Prefactor  = 5.25703
  Prefactor  = 67.7886
  Prefactor  = 0.0001
  norm       = 2.90424
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 4.79269
  norm       = 0.544876
  norm       = 1.04562
  norm       = 0.000100146
  norm       = 0.000100047
  Prefactor  = 2.32743
  Prefactor  = 0.0001
  norm       = 11.9958
  Prefactor  = 16.8105
  Prefactor  = 0.0001
  norm       = 11.3181
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Normalizat = 0.973259
  Prefactor  = 1.08949
 **********
 **   18 **HESSE 
 **********

 FCN=   5867.588     FROM HESSE     STATUS=OK           498 CALLS     3856 TOTAL
                     EDM=   .85E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          14.510        4.3069        .82569E-04   -1.4946    
   2  Prefactor     .10000E-03    .86966        .69454E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .71984        2.1492        .89639E-03   -1.5538    
   4  Prefactor     7.8720        6.5931        .71456E-03   -1.5147    
   5  norm          .22432        .29396        .43844E-04   -1.5613    
   6  norm          3.8270        3.5766        .13346E-03   -1.5317    
   7  Prefactor     5.2570        9.0578        .17532E-03   -1.5249    
   8  Prefactor     67.789        62.673        .48747E-04   -1.4059    
   9  Prefactor     .10000E-03    4.1689        .30081E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          2.9042        3.3858        .14584E-03   -1.5367    
  11  Prefactor     .10000E-03    4.8322        .16406E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    27.221        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          4.7927        3.0482        .10353E-03   -1.5270    
  14  norm          .54488        5.4894        .34415E-03   -1.5560    
  15  norm          1.0456        2.3550        .17011E-03   -1.5503    
  16  norm          .10015E-03    25.748        .30216E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          .10005E-03    108.05        .59868E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     2.3274        2.0675        .10042E-03   -1.5403    
  19  Prefactor     .10000E-03    7.2458        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  norm          11.996        8.5527        .11568E-03   -1.5015    
  21  Prefactor     16.810        29.987        .97673E-04   -1.4888    
  22  Prefactor     .10000E-03    43.147        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  norm          11.318        9.0071        .11907E-03   -1.5035    
  24  Prefactor     .10000E-03    8.6269        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Prefactor     .10000E-03    8.9506        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  Normalizat    .97326        .20959        .24578E-03   -.93932    
  27  Prefactor     1.0895        .22379        .26092E-03   -.89803    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 8.4994e-09
Minuit parameter uncertainties:
  1  4.307
  2  7.50069e-07
  3  2.14944
  4  6.59371
  5  0.293963
  6  3.57682
  7  9.06018
  8  62.7338
  9  8.67735e-06
  10  3.386
  11  5.36669e-06
  12  6.77704e-05
  13  3.04825
  14  3.45901
  15  2.35526
  16  0.00387393
  17  0.00451358
  18  2.06752
  19  1.00394e-05
  20  8.55357
  21  30.0136
  22  2.08921e-05
  23  9.00823
  24  1.44374e-05
  25  7.85864e-06
  26  0.209764
  27  0.223985
Done.

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

Extracting fit parameters...

4FGL J1303.0+2434
   Spectrum: LogParabola
290         norm:  4.793e+00  3.048e+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.089e+00  2.240e-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:  9.733e-01  2.098e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 6.12
Ra Dec: 195.757 24.582
Photon Index (Fixed Index): 2.07 +/- 0.00
Photon Flux (Fixed Index): 3.25e-08 +/- 2.07e-08
Energy Flux (Fixed Index): 1.69e-05 +/- 1.07e-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) = 5867.51712498
delta logL = 0.0711493886383

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5867.51502804
delta logL = 0.0732463254717

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    5.1054       1.0000         .10000E-03   10000.    
     2 'alpha     '    1.8540       1.0000          .0000       5.0000    
     3 'Normalizat'    .98027       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0844       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.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   5867.515     FROM MIGRAD    STATUS=CONVERGED     80 CALLS      259 TOTAL
                     EDM=   .18E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          5.1056        3.2777        .10719E-03   -.20058E-02
   2  alpha         1.8540        .53487        .14061E-01   -.15150E-03
   3  Normalizat    .98020        .19896        .24500E-03    .86635E-04
   4  Prefactor     1.0845        .22247        .26141E-03    .83935E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 5.10559
  alpha      = 1.85396
  Normalizat = 0.980202
  Prefactor  = 1.08448
 **********
 **   18 **HESSE 
 **********

 FCN=   5867.515     FROM HESSE     STATUS=OK            23 CALLS      282 TOTAL
                     EDM=   .18E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          5.1056        3.2679        .21438E-04   -1.5256    
   2  alpha         1.8540        .53327        .56245E-03   -.26138    
   3  Normalizat    .98020        .19913        .97999E-05   -.93697    
   4  Prefactor     1.0845        .22268        .10456E-04   -.89964    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.80482e-09
Minuit parameter uncertainties:
  1  3.26799
  2  0.537699
  3  0.199282
  4  0.222868
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/162119': 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) = 5867.51502799
delta logL = 0.0732463795157

Extracting fit parameters...

4FGL J1303.0+2434
   Spectrum: LogParabola
290         norm:  5.106e+00  3.268e+00  1.000e-04  1.000e+04 ( 1.000e-12)
291        alpha:  1.854e+00  5.377e-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.084e+00  2.229e-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:  9.802e-01  1.993e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 6.26
Ra Dec: 195.757 24.582
Photon Index (Free Index): 1.85 +/- 0.54
Photon Flux (Free Index): 2.76e-08 +/- 2.15e-08
Energy Flux (Free Index): 2.12e-05 +/- 1.94e-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/162119/cmap_HighResolution_525484801_525744001_4FGL_J1303.0+2434_daily_bin1104.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='3.25e-08', energy_flux2='2.12e-05', photon_flux_error='2.07e-08', dlogl='7.32e-02', energy_flux='1.69e-05', photon_flux2='2.76e-08', job_status='DONE', time_completed='2021-09-06 18:31:32.895975', photon_index_error2='0.54', photon_index2='1.85', ts='6.12', fit_tolerance='1e-08', GAL='1.09', photon_index_error='0.00', energy_flux_error2='1.94e-05', EG='0.97', time_epoch_completed='1630978292.9', return_code='0', job_id='162119', GAL2='1.08', EG2='0.98', return_code2='0', energy_flux_error='1.07e-05', photon_flux_error2='2.15e-08', ts2='6.26', photon_index='2.07' WHERE bin_id='1104' AND source_name='4FGL J1303.0+2434' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Mon Sep  6 18:31:32 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0117>
Subject: Job 162119: <4FGL_J1303.0+2434_daily_bin1104> in cluster <slac> Done

Job <4FGL_J1303.0+2434_daily_bin1104> was submitted from host <rhel6-64h> by user <kocevski> in cluster <slac> at Mon Sep  6 18:15:38 2021
Job was executed on host(s) <bullet0117>, in queue <medium>, as user <kocevski> in cluster <slac> at Mon Sep  6 18:16:23 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:16:23 2021
Terminated at Mon Sep  6 18:31:33 2021
Results reported at Mon Sep  6 18:31:33 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1303.0+2434_daily_bin1104 195.757 24.5821 525484801 525744001 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 :                                   671.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             292.21 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   910 sec.
    Turnaround time :                            955 sec.

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

