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


Performing analysis on: 4FGL_J2326.2+0113_daily_bin804
RA = 351.575, Dec = 1.2216
tmin = 447724801, tmax = 447984001
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='892918', job_status='RUN', time_executed='2021-09-29 18:59:14.143525', time_epoch_executed='1632967154.14' WHERE source_name='4FGL J2326.2+0113' and cadence='daily' and bin_id='804'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/892918

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/892918/ft1_4FGL_J2326.2+0113_daily_bin804.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/892918/ft2_4FGL_J2326.2+0113_daily_bin804.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/892918/ft1_4FGL_J2326.2+0113_daily_bin804.fits outfile=/scratch/kocevski/892918/ft1_filteredMKT_4FGL_J2326.2+0113_daily_bin804.fits ra=351.575 dec=1.2216 rad=12.0 tmin=447724801.0 tmax=447984001.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.45
user 3.23
sys 0.21

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/892918/ft2_4FGL_J2326.2+0113_daily_bin804.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/892918/ft2_4FGL_J2326.2+0113_daily_bin804.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/892918/ft1_filteredMKT_4FGL_J2326.2+0113_daily_bin804.fits evtable="EVENTS" outfile="/scratch/kocevski/892918/ft1_filtered_4FGL_J2326.2+0113_daily_bin804.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.48
user 0.32
sys 0.15

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/892918/ft1_filtered_4FGL_J2326.2+0113_daily_bin804.fits" evtable="EVENTS" scfile=/scratch/kocevski/892918/ft2_4FGL_J2326.2+0113_daily_bin804.fits sctable="SC_DATA" outfile=/scratch/kocevski/892918/ltcube_447724801_447984001_4FGL_J2326.2+0113_daily_bin804.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/892918/ft2_4FGL_J2326.2+0113_daily_bin804.fits
.....................!
real 11.85
user 11.50
sys 0.33

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/892918/ft1_filtered_4FGL_J2326.2+0113_daily_bin804.fits evtable="EVENTS" scfile=/scratch/kocevski/892918/ft2_4FGL_J2326.2+0113_daily_bin804.fits sctable="SC_DATA" expcube=/scratch/kocevski/892918/ltcube_447724801_447984001_4FGL_J2326.2+0113_daily_bin804.fits outfile=/scratch/kocevski/892918/expmap_447724801_447984001_4FGL_J2326.2+0113_daily_bin804.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/892918/ltcube_447724801_447984001_4FGL_J2326.2+0113_daily_bin804.fits
.....................!
real 190.47
user 184.95
sys 5.13

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

Setting source of interest to:
4FGL J2326.2+0113 @ 351.575 1.2216

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/892918/ft1_filtered_4FGL_J2326.2+0113_daily_bin804.fits scfile=/scratch/kocevski/892918/ft2_4FGL_J2326.2+0113_daily_bin804.fits outfile=/scratch/kocevski/892918/cmap_447724801_447984001_4FGL_J2326.2+0113_daily_bin804.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=351.575 yref=1.2216 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.52
user 0.37
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/892918/ft1_filtered_4FGL_J2326.2+0113_daily_bin804.fits scfile=/scratch/kocevski/892918/ft2_4FGL_J2326.2+0113_daily_bin804.fits outfile=/scratch/kocevski/892918/cmap_HighResolution_447724801_447984001_4FGL_J2326.2+0113_daily_bin804.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=351.575 yref=1.2216 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.54
user 0.37
sys 0.16

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/892918/ft1_filtered_4FGL_J2326.2+0113_daily_bin804.fits evtable="EVENTS" scfile=/scratch/kocevski/892918/ft2_4FGL_J2326.2+0113_daily_bin804.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/892918/Model_4FGL_J2326.2+0113_daily_bin804.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/892918/ft1_filtered_4FGL_J2326.2+0113_daily_bin804.fits.....................!
real 77.42
user 76.01
sys 1.24

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/892918/ft1_filtered_4FGL_J2326.2+0113_daily_bin804.fits', '/scratch/kocevski/892918/ft2_4FGL_J2326.2+0113_daily_bin804.fits', expMap='/scratch/kocevski/892918/expmap_447724801_447984001_4FGL_J2326.2+0113_daily_bin804.fits', expCube='/scratch/kocevski/892918/ltcube_447724801_447984001_4FGL_J2326.2+0113_daily_bin804.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/892918/Model_4FGL_J2326.2+0113_daily_bin804.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J2326.2+0113'

4FGL J2326.2+0113
   Spectrum: PowerLaw
406    Prefactor:  4.628e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-14)
407        Index:  2.119e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
408        Scale:  2.170e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/892918/ft1_filtered_4FGL_J2326.2+0113_daily_bin804.fits
Spacecraft file(s): /scratch/kocevski/892918/ft2_4FGL_J2326.2+0113_daily_bin804.fits
Exposure map: /scratch/kocevski/892918/expmap_447724801_447984001_4FGL_J2326.2+0113_daily_bin804.fits
Exposure cube: /scratch/kocevski/892918/ltcube_447724801_447984001_4FGL_J2326.2+0113_daily_bin804.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/892918/Model_4FGL_J2326.2+0113_daily_bin804.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) = 7928.86761938

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     2 'norm      '    13.527       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .12405E-01   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .18560E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    45.328       1.0000         .10000E-03   10000.    
     6 'Prefactor '    73.051       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .12136E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    4.2054       1.0000         .10000E-03   10000.    
     9 'norm      '    2.1859       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    93.944       1.0000         .10000E-03   10000.    
    12 'norm      '    7.3170       1.0000         .10000E-03   10000.    
    13 'Prefactor '    1.9539       1.0000         .10000E-03   10000.    
    14 'Prefactor '    1338.9       1.0000         .10000E-03   10000.    
    15 'Prefactor '    2.0840       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    24.766       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10467E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .11669E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    13.405       1.0000         .10000E-03   10000.    
    21 'Prefactor '    10.553       1.0000         .10000E-03   10000.    
    22 'Prefactor '    20.751       1.0000         .10000E-03   10000.    
    23 'Normalizat'    .87308       1.0000         .10000E-01   10.000    
    24 'Prefactor '    1.0945       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5260E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   7928.841     FROM MIGRAD    STATUS=CONVERGED    558 CALLS     2829 TOTAL
                     EDM=   .48E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  6.6%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    11.390       -.16049E-06** at limit **
   2  norm          13.529        12.092       -.40868E-06    .48742E-04
   3  Prefactor     .10001E-03    135.26        .34226E-05** at limit **
   4  Prefactor     .10000E-03    72.929        .31982E-04** at limit **
   5  Prefactor     45.334        23.430       -.81071E-07    .39941E-04
   6  Prefactor     73.027        50.500        .13670E-05   -.93999E-04
   7  Prefactor     .10000E-03    7.5047        .21185E-05** at limit **
   8  norm          4.2052        1.3103        .66280E-07    .78342E-03
   9  norm          2.1848        4.1690       -.14008E-05   -.75453E-04
  10  Prefactor     .10000E-03    2.2572       -.26386E-07** at limit **
  11  Prefactor     93.955        67.933       -.12990E-05    .23170E-04
  12  norm          7.3170        6.7554       -.20687E-06    .14442E-03
  13  Prefactor     1.9542        4.0241       -.11855E-05    .21905E-03
  14  Prefactor     1339.0        373.45        .18380E-05    .73900E-04
  15  Prefactor     2.0874        10.254       -.43038E-05    .62535E-04
  16  Prefactor     .10000E-03    25.003       -.55606E-06** at limit **
  17  norm          24.757        24.716        .33771E-05    .32062E-03
  18  Prefactor     .10000E-03    59.005        .76097E-05** at limit **
  19  Prefactor     .10001E-03    2.9201        .10508E-05** at limit **
  20  Prefactor     13.475        31.974       -.53609E-05   -.44514E-04
  21  Prefactor     10.548        22.091        .35058E-07    .71455E-04
  22  Prefactor     20.747        14.281        .22642E-06    .11969E-03
  23  Normalizat    .87322        .20469        .16177E-05    .20782E-03
  24  Prefactor     1.0945        .13743        .81120E-06    .25627E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  norm       = 13.5286
  Prefactor  = 0.000100005
  Prefactor  = 0.000100004
  Prefactor  = 45.334
  Prefactor  = 73.0266
  Prefactor  = 0.000100002
  norm       = 4.20518
  norm       = 2.18483
  Prefactor  = 0.0001
  Prefactor  = 93.955
  norm       = 7.317
  Prefactor  = 1.95421
  Prefactor  = 1338.97
  Prefactor  = 2.08739
  Prefactor  = 0.0001
  norm       = 24.7567
  Prefactor  = 0.000100001
  Prefactor  = 0.000100006
  Prefactor  = 13.475
  Prefactor  = 10.5482
  Prefactor  = 20.7472
  Normalizat = 0.873221
  Prefactor  = 1.09445
 **********
 **   18 **HESSE 
 **********

 FCN=   7928.841     FROM HESSE     STATUS=OK           401 CALLS     3230 TOTAL
                     EDM=   .14E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    11.456        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          13.529        12.094        .10891E-03   -1.4972    
   3  Prefactor     .10001E-03    140.46        .36340E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    71.981        .50789E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     45.334        23.438        .59551E-04   -1.4360    
   6  Prefactor     73.027        50.434        .46973E-04   -1.3997    
   7  Prefactor     .10000E-03    7.4709        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          4.2052        1.3093        .52831E-04   -1.5298    
   9  norm          2.1848        4.1540        .23928E-03   -1.5412    
  10  Prefactor     .10000E-03    2.2585        .13064E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     93.955        67.900        .41465E-04   -1.3766    
  12  norm          7.3170        6.7281        .14828E-03   -1.5167    
  13  Prefactor     1.9542        3.9970        .24571E-03   -1.5428    
  14  Prefactor     1339.0        372.41        .58731E-04   -.82156    
  15  Prefactor     2.0874        9.9222        .28603E-03   -1.5419    
  16  Prefactor     .10000E-03    25.199        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          24.757        24.513        .80493E-04   -1.4712    
  18  Prefactor     .10000E-03    59.407        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10001E-03    7.9750        .27544E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     13.475        32.223        .10940E-03   -1.4974    
  21  Prefactor     10.548        22.111        .12334E-03   -1.5058    
  22  Prefactor     20.747        14.317        .87927E-04   -1.4797    
  23  Normalizat    .87322        .23261        .34066E-03   -.97408    
  24  Prefactor     1.0945        .15608        .21648E-03   -.89644    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.41672e-09
Minuit parameter uncertainties:
  1  4.60252e-05
  2  12.096
  3  0.00168802
  4  0.00110984
  5  23.4423
  6  50.464
  7  0.000226162
  8  1.30929
  9  4.15455
  10  2.09485e-06
  11  67.9565
  12  6.72884
  13  3.99751
  14  373.156
  15  9.10421
  16  2.29198e-05
  17  24.5231
  18  0.000346403
  19  0.000420848
  20  32.2642
  21  22.1281
  22  14.319
  23  0.232877
  24  0.156149
Done.

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

Extracting fit parameters...

4FGL J2326.2+0113
   Spectrum: PowerLaw
406    Prefactor:  9.396e+01  6.796e+01  1.000e-04  1.000e+04 ( 1.000e-14)
407        Index:  2.119e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
408        Scale:  2.170e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
523    Prefactor:  1.094e+00  1.561e-01  0.000e+00  1.000e+01 ( 1.000e+00)
524        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
525        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
522   Normalization:  8.732e-01  2.329e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 2.71
Ra Dec: 351.575 1.222
Photon Index (Fixed Index): 2.12 +/- 0.00
Photon Flux (Fixed Index): 5.71e-08 +/- 4.13e-08
Energy Flux (Fixed Index): 3.01e-05 +/- 2.17e-05

TS (Fixed Index): 2.71
Ra Dec: 351.575 1.222
Photon Flux Upper Limit: 1.41e-07 ph cm-2 s-1
Energy Flux Upper Limit: 1.07e-02 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/892918/likelihoodResults_447724801_447984001_4FGL_J2326.2+0113_daily_bin804.txt

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) = 7928.51515588
delta logL = 0.325813703274

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 7928.49806912
delta logL = 0.34290046921

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    56.715       1.0000         .10000E-03   10000.    
     2 'Index     '    2.5017       1.0000          .0000       10.000    
     3 'Normalizat'    .85019       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.1018       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5260E+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=   7928.498     FROM MIGRAD    STATUS=CONVERGED     81 CALLS      293 TOTAL
                     EDM=   .98E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     56.717        69.689        .53268E-04    .32782E-03
   2  Index         2.5016        .54502        .42128E-02    .31946E-03
   3  Normalizat    .84986        .21918        .34462E-03    .63290E-03
   4  Prefactor     1.1021        .15359        .21572E-03    .61193E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 56.7174
  Index      = 2.50157
  Normalizat = 0.849861
  Prefactor  = 1.10205
 **********
 **   18 **HESSE 
 **********

 FCN=   7928.498     FROM HESSE     STATUS=OK            25 CALLS      318 TOTAL
                     EDM=   .92E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     56.717        61.471        .10654E-04   -1.4200    
   2  Index         2.5016        .48043        .16851E-03   -.52324    
   3  Normalizat    .84986        .21897        .68923E-04   -.98245    
   4  Prefactor     1.1021        .15348        .43143E-04   -.89401    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 9.18728e-10
Minuit parameter uncertainties:
  1  61.5394
  2  0.481421
  3  0.219201
  4  0.153545
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/892918': 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) = 7928.49806773
delta logL = 0.342901857903

Extracting fit parameters...

4FGL J2326.2+0113
   Spectrum: PowerLaw
406    Prefactor:  5.672e+01  6.154e+01  1.000e-04  1.000e+04 ( 1.000e-14)
407        Index:  2.502e+00  4.814e-01  0.000e+00  1.000e+01 (-1.000e+00)
408        Scale:  2.170e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
523    Prefactor:  1.102e+00  1.535e-01  0.000e+00  1.000e+01 ( 1.000e+00)
524        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
525        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
522   Normalization:  8.499e-01  2.192e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 3.41
Ra Dec: 351.575 1.222
Photon Index (Free Index): 2.50 +/- 0.48
Photon Flux (Free Index): 8.34e-08 +/- 5.77e-08
Energy Flux (Free Index): 2.42e-05 +/- 1.65e-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/892918/cmap_HighResolution_447724801_447984001_4FGL_J2326.2+0113_daily_bin804.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.07e-02', comment='SUCCESS', photon_flux='5.71e-08', energy_flux2='2.42e-05', photon_flux_error='4.13e-08', dlogl='3.43e-01', energy_flux='3.01e-05', photon_flux2='8.34e-08', job_status='DONE', time_completed='2021-09-29 19:11:58.225601', photon_index_error2='0.48', photon_index2='2.50', ts='2.71', fit_tolerance='1e-08', GAL='1.09', photon_index_error='0.00', photon_flux_upper_limit='1.41e-07', energy_flux_error2='1.65e-05', EG='0.87', time_epoch_completed='1632967918.23', return_code='0', job_id='892918', GAL2='1.10', EG2='0.85', return_code2='0', energy_flux_error='2.17e-05', photon_flux_error2='5.77e-08', ts2='3.41', photon_index='2.12' WHERE bin_id='804' AND source_name='4FGL J2326.2+0113' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep 29 19:11:58 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0276>
Subject: Job 892918: <4FGL_J2326.2+0113_daily_bin804> in cluster <slac> Done

Job <4FGL_J2326.2+0113_daily_bin804> was submitted from host <rhel6-64d> by user <kocevski> in cluster <slac> at Wed Sep 29 18:55:25 2021
Job was executed on host(s) <bullet0276>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Sep 29 18:55:27 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Wed Sep 29 18:55:27 2021
Terminated at Wed Sep 29 19:11:58 2021
Results reported at Wed Sep 29 19:11:58 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2326.2+0113_daily_bin804 351.575 1.2216 447724801 447984001 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J2326.2+0113 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   759.29 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             264.03 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   991 sec.
    Turnaround time :                            993 sec.

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

