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


Performing analysis on: 4FGL_J1303.0+2434_daily_bin1094
RA = 195.757, Dec = 24.5821
tmin = 522892801, tmax = 523152001
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='162104', job_status='RUN', time_executed='2021-09-06 18:20:21.832731', time_epoch_executed='1630977621.83' WHERE source_name='4FGL J1303.0+2434' and cadence='daily' and bin_id='1094'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/162104

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/162104/ft1_4FGL_J1303.0+2434_daily_bin1094.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/162104/ft2_4FGL_J1303.0+2434_daily_bin1094.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/162104/ft1_4FGL_J1303.0+2434_daily_bin1094.fits outfile=/scratch/kocevski/162104/ft1_filteredMKT_4FGL_J1303.0+2434_daily_bin1094.fits ra=195.757 dec=24.5821 rad=12.0 tmin=522892801.0 tmax=523152001.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.77
user 3.56
sys 0.20

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/162104/ft1_filtered_4FGL_J1303.0+2434_daily_bin1094.fits" evtable="EVENTS" scfile=/scratch/kocevski/162104/ft2_4FGL_J1303.0+2434_daily_bin1094.fits sctable="SC_DATA" outfile=/scratch/kocevski/162104/ltcube_522892801_523152001_4FGL_J1303.0+2434_daily_bin1094.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/162104/ft2_4FGL_J1303.0+2434_daily_bin1094.fits
.....................!
real 14.01
user 13.68
sys 0.29

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/162104/ft1_filtered_4FGL_J1303.0+2434_daily_bin1094.fits evtable="EVENTS" scfile=/scratch/kocevski/162104/ft2_4FGL_J1303.0+2434_daily_bin1094.fits sctable="SC_DATA" expcube=/scratch/kocevski/162104/ltcube_522892801_523152001_4FGL_J1303.0+2434_daily_bin1094.fits outfile=/scratch/kocevski/162104/expmap_522892801_523152001_4FGL_J1303.0+2434_daily_bin1094.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/162104/ltcube_522892801_523152001_4FGL_J1303.0+2434_daily_bin1094.fits
.....................!
real 191.48
user 187.02
sys 4.02

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/162104/ft1_filtered_4FGL_J1303.0+2434_daily_bin1094.fits scfile=/scratch/kocevski/162104/ft2_4FGL_J1303.0+2434_daily_bin1094.fits outfile=/scratch/kocevski/162104/cmap_522892801_523152001_4FGL_J1303.0+2434_daily_bin1094.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.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/162104/ft1_filtered_4FGL_J1303.0+2434_daily_bin1094.fits scfile=/scratch/kocevski/162104/ft2_4FGL_J1303.0+2434_daily_bin1094.fits outfile=/scratch/kocevski/162104/cmap_HighResolution_522892801_523152001_4FGL_J1303.0+2434_daily_bin1094.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.55
user 0.40
sys 0.14

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    16.557       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .66536       1.0000         .10000E-03   10000.    
     3 'Prefactor '    3.0787       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     5 'norm      '    .46935       1.0000         .10000E-03   10000.    
     6 'norm      '    8.5350       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .54011E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    12.145       1.0000         .10000E-03   10000.    
    10 'norm      '    .10315E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    4.0162       1.0000         .10000E-03   10000.    
    14 'norm      '    4.2899       1.0000         .10000E-03   10000.    
    15 'norm      '    .91457       1.0000         .10000E-03   10000.    
    16 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    11.531       1.0000         .10000E-03   10000.    
    19 'Prefactor '    22.197       1.0000         .10000E-03   10000.    
    20 'norm      '    12.546       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10050E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
    23 'norm      '    10.574       1.0000         .10000E-03   10000.    
    24 'Prefactor '    .38901E-03   1.0000         .10000E-03   10000.    
    25 'Prefactor '    .10027E-03   1.0000         .10000E-03   10000.    
    26 'Normalizat'    1.2055       1.0000         .10000E-01   10.000    
    27 'Prefactor '    .97399       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=   6569.767     FROM MIGRAD    STATUS=CONVERGED    657 CALLS     2845 TOTAL
                     EDM=   .12E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  7.2%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          16.557        5.3124        .23123E-06   -.32870E-03
   2  Prefactor     .66480        1.9584       -.12758E-05    .51914E-03
   3  Prefactor     3.0780        2.2795        .84315E-07   -.30963E-03
   4  Prefactor     .10000E-03    1.6822       -.34321E-07** at limit **
   5  norm          .46933        .25278       -.96313E-10    .25017E-03
   6  norm          8.5342        4.9206        .32215E-07   -.14822E-03
   7  Prefactor     .10003E-03    8.4483       -.10598E-05** at limit **
   8  Prefactor     .10000E-03    28.769        .63999E-06** at limit **
   9  Prefactor     12.145        8.1863        .83464E-08   -.16506E-04
  10  norm          .10000E-03    2.7880        .11972E-06** at limit **
  11  Prefactor     .10000E-03    11.563       -.93933E-06** at limit **
  12  Prefactor     .10000E-03    8.6505       -.25359E-06** at limit **
  13  norm          4.0162        3.4009        .37702E-07   -.68793E-05
  14  norm          4.2900        5.6287        .45435E-06    .44532E-03
  15  norm          .91627        2.3777       -.13143E-05   -.51690E-03
  16  norm          .10000E-03    2.8985        .33084E-06** at limit **
  17  norm          .10000E-03    8.0672        .59909E-06** at limit **
  18  Prefactor     11.530        5.2240        .88185E-06    .11168E-02
  19  Prefactor     22.196        18.195        .36309E-06    .25537E-03
  20  norm          12.546        8.7203       -.23107E-07   -.69726E-05
  21  Prefactor     .10000E-03    40.634       -.28212E-05** at limit **
  22  Prefactor     .10000E-03    28.151        .26254E-05** at limit **
  23  norm          10.575        10.352       -.70031E-07    .47594E-05
  24  Prefactor     .10011E-03    101.80       -.13969E-04** at limit **
  25  Prefactor     .10000E-03    30.169       -.39209E-05** at limit **
  26  Normalizat    1.2054        .19205       -.10054E-05    .48096E-04
  27  Prefactor     .97405        .18898        .60701E-06   -.17903E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 16.5566
  Prefactor  = 0.6648
  Prefactor  = 3.07802
  Prefactor  = 0.0001
  norm       = 0.469329
  norm       = 8.53424
  Prefactor  = 0.000100035
  Prefactor  = 0.0001
  Prefactor  = 12.145
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 4.01621
  norm       = 4.29003
  norm       = 0.916274
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 11.5304
  Prefactor  = 22.196
  norm       = 12.5462
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 10.5746
  Prefactor  = 0.000100108
  Prefactor  = 0.000100001
  Normalizat = 1.20543
  Prefactor  = 0.974054
 **********
 **   18 **HESSE 
 **********

 FCN=   6569.767     FROM HESSE     STATUS=OK           498 CALLS     3343 TOTAL
                     EDM=   .36E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          16.557        5.2949        .94396E-04   -1.4894    
   2  Prefactor     .66480        1.9396        .17954E-03   -1.5545    
   3  Prefactor     3.0780        2.2656        .99707E-04   -1.5357    
   4  Prefactor     .10000E-03    1.6834        .10265E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          .46933        .24924        .28664E-04   -1.5571    
   6  norm          8.5342        4.9105        .13129E-03   -1.5124    
   7  Prefactor     .10003E-03    19.615        .39610E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    28.785        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     12.145        8.1822        .11495E-03   -1.5011    
  10  norm          .10000E-03    6.3473        .26080E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    11.620        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    8.6599        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          4.0162        3.4027        .13286E-03   -1.5307    
  14  norm          4.2900        5.6593        .19451E-03   -1.5294    
  15  norm          .91627        2.2264        .20056E-02   -1.5517    
  16  norm          .10000E-03    2.9345        .13474E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          .10000E-03    8.0822        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     11.530        5.2903        .11012E-03   -1.5029    
  19  Prefactor     22.196        18.154        .85016E-04   -1.4765    
  20  norm          12.546        8.7132        .11309E-03   -1.4999    
  21  Prefactor     .10000E-03    40.946        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     .10000E-03    28.160        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  norm          10.575        10.345        .12321E-03   -1.5057    
  24  Prefactor     .10011E-03    113.70        .62433E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Prefactor     .10000E-03    30.298        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  Normalizat    1.2054        .22134        .25899E-03   -.86435    
  27  Prefactor     .97405        .22217        .29426E-03   -.93599    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.62275e-09
Minuit parameter uncertainties:
  1  5.29503
  2  1.93978
  3  2.26569
  4  1.79562e-08
  5  0.24924
  6  4.91069
  7  0.00165198
  8  8.11396e-05
  9  8.18294
  10  6.77339e-05
  11  2.37676e-05
  12  2.37511e-05
  13  3.4029
  14  5.65998
  15  2.22658
  16  1.42783e-05
  17  3.91613e-05
  18  5.29056
  19  18.1584
  20  8.7141
  21  0.000276037
  22  0.000214712
  23  10.3469
  24  0.00702666
  25  0.000294781
  26  0.221517
  27  0.22238
Done.

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

Extracting fit parameters...

4FGL J1303.0+2434
   Spectrum: LogParabola
290         norm:  4.016e+00  3.403e+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.741e-01  2.224e-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.205e+00  2.215e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 7.69
Ra Dec: 195.757 24.582
Photon Index (Fixed Index): 2.07 +/- 0.00
Photon Flux (Fixed Index): 2.72e-08 +/- 2.31e-08
Energy Flux (Fixed Index): 1.41e-05 +/- 1.20e-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) = 6568.96346961
delta logL = 0.803794131713

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6568.86012064
delta logL = 0.907143097559

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    2.3366       1.0000         .10000E-03   10000.    
     2 'alpha     '    1.1476       1.0000          .0000       5.0000    
     3 'Normalizat'    1.2205       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .96997       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=   6568.860     FROM MIGRAD    STATUS=CONVERGED     56 CALLS      220 TOTAL
                     EDM=   .80E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          2.3404        2.2201        .67061E-02   -.15552E-03
   2  alpha         1.1471        .41055        .37311       -.40850E-04
   3  Normalizat    1.2208        .17988        .58246E-01    .88889E-05
   4  Prefactor     .96963        .18699        .66680E-01    .14739E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 2.34039
  alpha      = 1.14709
  Normalizat = 1.22079
  Prefactor  = 0.969629
 **********
 **   18 **HESSE 
 **********

 FCN=   6568.860     FROM HESSE     STATUS=OK            33 CALLS      253 TOTAL
                     EDM=   .38E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          2.3404        3.0523        .11035E-03   -1.5402    
   2  alpha         1.1471        .61516        .14969E-01   -.57182    
   3  Normalizat    1.2208        .21308        .25759E-03   -.85963    
   4  Prefactor     .96963        .22150        .29493E-03   -.93749    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.83552e-12
Minuit parameter uncertainties:
  1  3.05249
  2  0.6243
  3  0.21323
  4  0.221706
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/162104': 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) = 6568.86011607
delta logL = 0.907147672571

Extracting fit parameters...

4FGL J1303.0+2434
   Spectrum: LogParabola
290         norm:  2.340e+00  3.052e+00  1.000e-04  1.000e+04 ( 1.000e-12)
291        alpha:  1.147e+00  6.243e-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.696e-01  2.217e-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.221e+00  2.132e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 9.50
Ra Dec: 195.757 24.582
Photon Index (Free Index): 1.15 +/- 0.62
Photon Flux (Free Index): 9.20e-09 +/- 1.10e-08
Energy Flux (Free Index): 4.29e-05 +/- 5.57e-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/162104/cmap_HighResolution_522892801_523152001_4FGL_J1303.0+2434_daily_bin1094.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='2.72e-08', energy_flux2='4.29e-05', photon_flux_error='2.31e-08', dlogl='9.07e-01', energy_flux='1.41e-05', photon_flux2='9.20e-09', job_status='DONE', time_completed='2021-09-06 18:31:19.664517', photon_index_error2='0.62', photon_index2='1.15', ts='7.69', fit_tolerance='1e-08', GAL='0.97', photon_index_error='0.00', energy_flux_error2='5.57e-05', EG='1.21', time_epoch_completed='1630978279.66', return_code='0', job_id='162104', GAL2='0.97', EG2='1.22', return_code2='0', energy_flux_error='1.20e-05', photon_flux_error2='1.10e-08', ts2='9.50', photon_index='2.07' WHERE bin_id='1094' AND source_name='4FGL J1303.0+2434' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Mon Sep  6 18:31:19 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0249>
Subject: Job 162104: <4FGL_J1303.0+2434_daily_bin1094> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1303.0+2434_daily_bin1094 195.757 24.5821 522892801 523152001 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 :                                   650.00 sec.
    Max Memory :                                 1082 MB
    Average Memory :                             263.54 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   902 sec.
    Turnaround time :                            944 sec.

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

