/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 151 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 = 7475
number of fields = 27
No RA_SUN column yet. Adding RA_SUN/DEC_SUN columns.
Done.


Performing analysis on: 4FGL_J2326.2+0113_daily_bin318
RA = 351.575, Dec = 1.2216
tmin = 321753601, tmax = 322012801
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='890102', job_status='RUN', time_executed='2021-09-29 18:48:11.184464', time_epoch_executed='1632966491.18' WHERE source_name='4FGL J2326.2+0113' and cadence='daily' and bin_id='318'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/890102

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/890102/ft1_4FGL_J2326.2+0113_daily_bin318.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/890102/ft2_4FGL_J2326.2+0113_daily_bin318.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/890102/ft1_4FGL_J2326.2+0113_daily_bin318.fits outfile=/scratch/kocevski/890102/ft1_filteredMKT_4FGL_J2326.2+0113_daily_bin318.fits ra=351.575 dec=1.2216 rad=12.0 tmin=321753601.0 tmax=322012801.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.43
user 3.21
sys 0.20

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/890102/ft2_4FGL_J2326.2+0113_daily_bin318.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/890102/ft1_filteredMKT_4FGL_J2326.2+0113_daily_bin318.fits evtable="EVENTS" outfile="/scratch/kocevski/890102/ft1_filtered_4FGL_J2326.2+0113_daily_bin318.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.49
user 0.34
sys 0.14

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/890102/ft1_filtered_4FGL_J2326.2+0113_daily_bin318.fits" evtable="EVENTS" scfile=/scratch/kocevski/890102/ft2_4FGL_J2326.2+0113_daily_bin318.fits sctable="SC_DATA" outfile=/scratch/kocevski/890102/ltcube_321753601_322012801_4FGL_J2326.2+0113_daily_bin318.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/890102/ft2_4FGL_J2326.2+0113_daily_bin318.fits
.....................!
real 11.95
user 11.61
sys 0.30

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/890102/ft1_filtered_4FGL_J2326.2+0113_daily_bin318.fits evtable="EVENTS" scfile=/scratch/kocevski/890102/ft2_4FGL_J2326.2+0113_daily_bin318.fits sctable="SC_DATA" expcube=/scratch/kocevski/890102/ltcube_321753601_322012801_4FGL_J2326.2+0113_daily_bin318.fits outfile=/scratch/kocevski/890102/expmap_321753601_322012801_4FGL_J2326.2+0113_daily_bin318.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/890102/ltcube_321753601_322012801_4FGL_J2326.2+0113_daily_bin318.fits
.....................!
real 190.40
user 185.57
sys 4.45

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/890102/ft1_filtered_4FGL_J2326.2+0113_daily_bin318.fits scfile=/scratch/kocevski/890102/ft2_4FGL_J2326.2+0113_daily_bin318.fits outfile=/scratch/kocevski/890102/cmap_321753601_322012801_4FGL_J2326.2+0113_daily_bin318.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.53
user 0.37
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/890102/ft1_filtered_4FGL_J2326.2+0113_daily_bin318.fits scfile=/scratch/kocevski/890102/ft2_4FGL_J2326.2+0113_daily_bin318.fits outfile=/scratch/kocevski/890102/cmap_HighResolution_321753601_322012801_4FGL_J2326.2+0113_daily_bin318.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.55
user 0.39
sys 0.14

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

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/890102/ft1_filtered_4FGL_J2326.2+0113_daily_bin318.fits', '/scratch/kocevski/890102/ft2_4FGL_J2326.2+0113_daily_bin318.fits', expMap='/scratch/kocevski/890102/expmap_321753601_322012801_4FGL_J2326.2+0113_daily_bin318.fits', expCube='/scratch/kocevski/890102/ltcube_321753601_322012801_4FGL_J2326.2+0113_daily_bin318.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/890102/Model_4FGL_J2326.2+0113_daily_bin318.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/890102/ft1_filtered_4FGL_J2326.2+0113_daily_bin318.fits
Spacecraft file(s): /scratch/kocevski/890102/ft2_4FGL_J2326.2+0113_daily_bin318.fits
Exposure map: /scratch/kocevski/890102/expmap_321753601_322012801_4FGL_J2326.2+0113_daily_bin318.fits
Exposure cube: /scratch/kocevski/890102/ltcube_321753601_322012801_4FGL_J2326.2+0113_daily_bin318.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/890102/Model_4FGL_J2326.2+0113_daily_bin318.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) = 6262.04110667

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10104E-03   1.0000         .10000E-03   10000.    
     2 'norm      '    9.5659       1.0000         .10000E-03   10000.    
     3 'Prefactor '    21.022       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10044E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    21.403       1.0000         .10000E-03   10000.    
     6 'Prefactor '    6.7968       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10526E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    1.3703       1.0000         .10000E-03   10000.    
     9 'norm      '    .10003E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    19.148       1.0000         .10000E-03   10000.    
    11 'Prefactor '    52.680       1.0000         .10000E-03   10000.    
    12 'norm      '    4.3558       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .84353       1.0000         .10000E-03   10000.    
    14 'Prefactor '    224.25       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10907E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    12.790       1.0000         .10000E-03   10000.    
    17 'norm      '    74.123       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    15.598       1.0000         .10000E-03   10000.    
    20 'Prefactor '    41.940       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10192E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    7.8320       1.0000         .10000E-03   10000.    
    23 'Normalizat'    .58807       1.0000         .10000E-01   10.000    
    24 'Prefactor '    1.3336       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=   6262.031     FROM MIGRAD    STATUS=CONVERGED    513 CALLS     2691 TOTAL
                     EDM=   .18E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.7%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    30.104        .58368E-06** at limit **
   2  norm          9.5683        11.407        .26403E-05    .72696E-03
   3  Prefactor     21.023        32.885        .45738E-06    .11056E-04
   4  Prefactor     .10000E-03    9.6862        .69603E-06** at limit **
   5  Prefactor     21.404        26.670        .32822E-06    .10656E-04
   6  Prefactor     6.7713        63.271        .20823E-05    .28426E-04
   7  Prefactor     .10000E-03    6.4251       -.31873E-05** at limit **
   8  norm          1.3704        1.1259        .59915E-07    .10542E-03
   9  norm          .10000E-03    2.4026       -.40668E-06** at limit **
  10  Prefactor     19.148        13.011       -.12037E-06   -.79251E-04
  11  Prefactor     52.687        50.265        .21419E-06    .61497E-05
  12  norm          4.3565        9.0803        .36403E-06    .94470E-04
  13  Prefactor     .87051        10.314       -.49339E-05    .87028E-03
  14  Prefactor     223.98        282.35       -.10309E-05   -.34205E-04
  15  Prefactor     .10000E-03    17.017       -.30301E-06** at limit **
  16  Prefactor     12.796        37.301       -.16568E-05   -.58090E-04
  17  norm          74.148        49.442        .23018E-06    .25859E-05
  18  Prefactor     .10000E-03    20.858        .68442E-07** at limit **
  19  Prefactor     15.600        10.643        .22065E-09   -.13055E-03
  20  Prefactor     41.876        52.891       -.77987E-08   -.98279E-04
  21  Prefactor     .10000E-03    9.6549       -.47274E-06** at limit **
  22  Prefactor     7.8165        25.985        .13540E-05    .42527E-05
  23  Normalizat    .58847        .25993       -.16632E-05   -.13361E-03
  24  Prefactor     1.3333        .16667       -.42408E-06   -.29999E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  norm       = 9.56832
  Prefactor  = 21.0233
  Prefactor  = 0.0001
  Prefactor  = 21.4044
  Prefactor  = 6.77126
  Prefactor  = 0.000100005
  norm       = 1.3704
  norm       = 0.0001
  Prefactor  = 19.1483
  Prefactor  = 52.6875
  norm       = 4.3565
  Prefactor  = 0.870506
  Prefactor  = 223.977
  Prefactor  = 0.0001
  Prefactor  = 12.7964
  norm       = 74.1479
  Prefactor  = 0.0001
  Prefactor  = 15.5997
  Prefactor  = 41.8756
  Prefactor  = 0.0001
  Prefactor  = 7.81649
  Normalizat = 0.588467
  Prefactor  = 1.33332
 **********
 **   18 **HESSE 
 **********

 FCN=   6262.031     FROM HESSE     STATUS=OK           399 CALLS     3090 TOTAL
                     EDM=   .77E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    30.493        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          9.5683        11.837        .64785E-03   -1.5089    
   3  Prefactor     21.023        32.896        .87358E-04   -1.4791    
   4  Prefactor     .10000E-03    9.7620        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     21.404        26.651        .86578E-04   -1.4782    
   6  Prefactor     6.7713        63.754        .15390E-03   -1.5187    
   7  Prefactor     .10000E-03    6.7827        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          1.3704        1.1255        .37247E-04   -1.5474    
   9  norm          .10000E-03    2.4119        .11984E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     19.148        12.970        .91531E-04   -1.4833    
  11  Prefactor     52.687        50.278        .55259E-04   -1.4255    
  12  norm          4.3565        8.9054        .19299E-03   -1.5290    
  13  Prefactor     .87051        15.720        .31034E-02   -1.5521    
  14  Prefactor     223.98        282.57        .13508E-03   -1.2704    
  15  Prefactor     .10000E-03    17.062        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     12.796        36.947        .11200E-03   -1.4992    
  17  norm          74.148        49.473        .46635E-04   -1.3984    
  18  Prefactor     .10000E-03    20.862        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     15.600        10.643        .10141E-03   -1.4918    
  20  Prefactor     41.876        52.899        .61900E-04   -1.4413    
  21  Prefactor     .10000E-03    9.6696        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     7.8165        25.980        .14328E-03   -1.5149    
  23  Normalizat    .58847        .28234        .41920E-03   -1.0848    
  24  Prefactor     1.3333        .18714        .20402E-03   -.82322    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 7.6963e-09
Minuit parameter uncertainties:
  1  0.000170593
  2  11.8396
  3  32.9248
  4  0.00011749
  5  26.6656
  6  41.6127
  7  0.000351942
  8  1.12554
  9  2.59023e-05
  10  12.972
  11  50.3181
  12  8.90807
  13  7.40039
  14  284.321
  15  4.26055e-05
  16  37.0134
  17  49.5005
  18  1.83973e-05
  19  10.6443
  20  52.9584
  21  5.48273e-05
  22  26.0178
  23  0.283038
  24  0.187238
Done.

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

Extracting fit parameters...

4FGL J2326.2+0113
   Spectrum: PowerLaw
406    Prefactor:  5.269e+01  5.032e+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.333e+00  1.872e-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:  5.885e-01  2.830e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 2.09
Ra Dec: 351.575 1.222
Photon Index (Fixed Index): 2.12 +/- 0.00
Photon Flux (Fixed Index): 3.20e-08 +/- 3.06e-08
Energy Flux (Fixed Index): 1.69e-05 +/- 1.61e-05

TS (Fixed Index): 2.09
Ra Dec: 351.575 1.222
Photon Flux Upper Limit: 1.11e-07 ph cm-2 s-1
Energy Flux Upper Limit: 8.38e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/890102/likelihoodResults_321753601_322012801_4FGL_J2326.2+0113_daily_bin318.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) = 6261.59391766
delta logL = 0.437420264282

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6261.59290281
delta logL = 0.438435117541

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    95.266       1.0000         .10000E-03   10000.    
     2 'Index     '    1.6333       1.0000          .0000       10.000    
     3 'Normalizat'    .60347       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.3245       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=   6261.593     FROM MIGRAD    STATUS=CONVERGED     96 CALLS      305 TOTAL
                     EDM=   .92E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     95.059        82.964        .41179E-04    .12192E-03
   2  Index         1.6315        .46372        .77241E-02    .64950E-04
   3  Normalizat    .60368        .25738        .41418E-03   -.49603E-03
   4  Prefactor     1.3244        .18340        .20452E-03   -.96752E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 95.0587
  Index      = 1.63152
  Normalizat = 0.60368
  Prefactor  = 1.32443
 **********
 **   18 **HESSE 
 **********

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

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     95.059        82.328        .82358E-05   -1.3755    
   2  Index         1.6315        .46022        .30896E-03   -.73920    
   3  Normalizat    .60368        .25748        .16567E-04   -1.0783    
   4  Prefactor     1.3244        .18348        .40903E-04   -.82583    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 9.17052e-10
Minuit parameter uncertainties:
  1  82.4272
  2  0.461421
  3  0.257995
  4  0.183574
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/890102': 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) = 6261.59288912
delta logL = 0.438448805582

Extracting fit parameters...

4FGL J2326.2+0113
   Spectrum: PowerLaw
406    Prefactor:  9.506e+01  8.243e+01  1.000e-04  1.000e+04 ( 1.000e-14)
407        Index:  1.632e+00  4.614e-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.324e+00  1.836e-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:  6.037e-01  2.580e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 2.97
Ra Dec: 351.575 1.222
Photon Index (Free Index): 1.63 +/- 0.46
Photon Flux (Free Index): 2.25e-08 +/- 2.24e-08
Energy Flux (Free Index): 4.59e-05 +/- 5.97e-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/890102/cmap_HighResolution_321753601_322012801_4FGL_J2326.2+0113_daily_bin318.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='8.38e-03', comment='SUCCESS', photon_flux='3.20e-08', energy_flux2='4.59e-05', photon_flux_error='3.06e-08', dlogl='4.38e-01', energy_flux='1.69e-05', photon_flux2='2.25e-08', job_status='DONE', time_completed='2021-09-29 18:58:56.172872', photon_index_error2='0.46', photon_index2='1.63', ts='2.09', fit_tolerance='1e-08', GAL='1.33', photon_index_error='0.00', photon_flux_upper_limit='1.11e-07', energy_flux_error2='5.97e-05', EG='0.59', time_epoch_completed='1632967136.17', return_code='0', job_id='890102', GAL2='1.32', EG2='0.60', return_code2='0', energy_flux_error='1.61e-05', photon_flux_error2='2.24e-08', ts2='2.97', photon_index='2.12' WHERE bin_id='318' AND source_name='4FGL J2326.2+0113' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep 29 18:58:56 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0208>
Subject: Job 890102: <4FGL_J2326.2+0113_daily_bin318> in cluster <slac> Done

Job <4FGL_J2326.2+0113_daily_bin318> was submitted from host <rhel6-64f> by user <kocevski> in cluster <slac> at Wed Sep 29 18:45:30 2021
Job was executed on host(s) <bullet0208>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Sep 29 18:45:32 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:45:32 2021
Terminated at Wed Sep 29 18:58:56 2021
Results reported at Wed Sep 29 18:58:56 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2326.2+0113_daily_bin318 351.575 1.2216 321753601 322012801 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 :                                   642.35 sec.
    Max Memory :                                 1093 MB
    Average Memory :                             242.48 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   804 sec.
    Turnaround time :                            806 sec.

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

