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


Performing analysis on: 4FGL_J2326.2+0113_daily_bin83
RA = 351.575, Dec = 1.2216
tmin = 260841601, tmax = 261100801
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='888733', job_status='RUN', time_executed='2021-09-29 18:41:47.733721', time_epoch_executed='1632966107.73' WHERE source_name='4FGL J2326.2+0113' and cadence='daily' and bin_id='83'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/888733

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/888733/ft1_4FGL_J2326.2+0113_daily_bin83.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/888733/ft2_4FGL_J2326.2+0113_daily_bin83.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/888733/ft1_4FGL_J2326.2+0113_daily_bin83.fits outfile=/scratch/kocevski/888733/ft1_filteredMKT_4FGL_J2326.2+0113_daily_bin83.fits ra=351.575 dec=1.2216 rad=12.0 tmin=260841601.0 tmax=261100801.0 emin=100.0 emax=100000.0 zmin=0.0 zmax=90.0 evclass=128 evtype="INDEF" convtype=-1 phasemin=0.0 phasemax=1.0 evtable="EVENTS" chatter=2 clobber=yes debug=no gui=no mode="ql"

WARNING: version mismatch between CFITSIO header (v3.43) and linked library (v3.41).

Done.
real 1.61
user 1.40
sys 0.17

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/888733/ft2_4FGL_J2326.2+0113_daily_bin83.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/888733/ft1_filteredMKT_4FGL_J2326.2+0113_daily_bin83.fits evtable="EVENTS" outfile="/scratch/kocevski/888733/ft1_filtered_4FGL_J2326.2+0113_daily_bin83.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.31
sys 0.16

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/888733/ft1_filtered_4FGL_J2326.2+0113_daily_bin83.fits" evtable="EVENTS" scfile=/scratch/kocevski/888733/ft2_4FGL_J2326.2+0113_daily_bin83.fits sctable="SC_DATA" outfile=/scratch/kocevski/888733/ltcube_260841601_261100801_4FGL_J2326.2+0113_daily_bin83.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/888733/ft2_4FGL_J2326.2+0113_daily_bin83.fits
.....................!
real 12.27
user 11.91
sys 0.32

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/888733/ft1_filtered_4FGL_J2326.2+0113_daily_bin83.fits evtable="EVENTS" scfile=/scratch/kocevski/888733/ft2_4FGL_J2326.2+0113_daily_bin83.fits sctable="SC_DATA" expcube=/scratch/kocevski/888733/ltcube_260841601_261100801_4FGL_J2326.2+0113_daily_bin83.fits outfile=/scratch/kocevski/888733/expmap_260841601_261100801_4FGL_J2326.2+0113_daily_bin83.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/888733/ltcube_260841601_261100801_4FGL_J2326.2+0113_daily_bin83.fits
.....................!
real 189.91
user 185.12
sys 4.42

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/888733/ft1_filtered_4FGL_J2326.2+0113_daily_bin83.fits scfile=/scratch/kocevski/888733/ft2_4FGL_J2326.2+0113_daily_bin83.fits outfile=/scratch/kocevski/888733/cmap_260841601_261100801_4FGL_J2326.2+0113_daily_bin83.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.55
user 0.37
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/888733/ft1_filtered_4FGL_J2326.2+0113_daily_bin83.fits scfile=/scratch/kocevski/888733/ft2_4FGL_J2326.2+0113_daily_bin83.fits outfile=/scratch/kocevski/888733/cmap_HighResolution_260841601_261100801_4FGL_J2326.2+0113_daily_bin83.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.15

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    31.153       1.0000         .10000E-03   10000.    
     2 'norm      '    9.8003       1.0000         .10000E-03   10000.    
     3 'Prefactor '    12.549       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10035E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    4.1258       1.0000         .10000E-03   10000.    
     8 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     9 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    8.8940       1.0000         .10000E-03   10000.    
    11 'Prefactor '    72.224       1.0000         .10000E-03   10000.    
    12 'norm      '    3.9876       1.0000         .10000E-03   10000.    
    13 'Prefactor '    4.7259       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10012E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    2.5832       1.0000         .10000E-03   10000.    
    16 'Prefactor '    40.958       1.0000         .10000E-03   10000.    
    17 'norm      '    .10007E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    4.6710       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    4.1027       1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    23 'Normalizat'    .85766       1.0000         .10000E-01   10.000    
    24 'Prefactor '    1.1081       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=   6213.079     FROM MIGRAD    STATUS=CONVERGED    532 CALLS     2678 TOTAL
                     EDM=   .12E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.4%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     31.155        19.119       -.50188E-06    .33725E-04
   2  norm          9.8003        10.845       -.16145E-05   -.10736E-02
   3  Prefactor     12.540        32.868       -.77802E-05    .93780E-04
   4  Prefactor     .10000E-03    4.5703        .66941E-08** at limit **
   5  Prefactor     .10000E-03    13.599       -.15922E-06** at limit **
   6  Prefactor     .10000E-03    35.604       -.11921E-04** at limit **
   7  Prefactor     4.1215        8.7824       -.56495E-06   -.10680E-03
   8  norm          .10000E-03    .26535        .30793E-08** at limit **
   9  norm          .10000E-03    3.6694        .15904E-07** at limit **
  10  Prefactor     8.8944        10.707       -.10982E-06    .98556E-06
  11  Prefactor     72.224        65.626        .49409E-06   -.86912E-05
  12  norm          3.9865        10.846       -.96759E-06   -.11526E-03
  13  Prefactor     4.7266        9.2202       -.87290E-06   -.12359E-03
  14  Prefactor     .10000E-03    107.03       -.17914E-05** at limit **
  15  Prefactor     2.5713        18.355       -.30126E-05   -.27577E-03
  16  Prefactor     40.960        26.702        .28374E-06    .66210E-05
  17  norm          .10000E-03    37.656        .12389E-04** at limit **
  18  Prefactor     .10000E-03    21.847        .99547E-06** at limit **
  19  Prefactor     4.6689        5.1595       -.89369E-08   -.48055E-03
  20  Prefactor     .10000E-03    11.141        .41859E-07** at limit **
  21  Prefactor     4.1027        24.454       -.14733E-05   -.37655E-04
  22  Prefactor     .10000E-03    5.3872       -.17425E-07** at limit **
  23  Normalizat    .85758        .21209        .16914E-05   -.35580E-05
  24  Prefactor     1.1082        .14309        .34690E-06    .40666E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 31.1553
  norm       = 9.80033
  Prefactor  = 12.5396
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000100005
  Prefactor  = 4.12145
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 8.89437
  Prefactor  = 72.2242
  norm       = 3.98648
  Prefactor  = 4.72659
  Prefactor  = 0.0001
  Prefactor  = 2.57125
  Prefactor  = 40.96
  norm       = 0.000100003
  Prefactor  = 0.0001
  Prefactor  = 4.66886
  Prefactor  = 0.0001
  Prefactor  = 4.10268
  Prefactor  = 0.0001
  Normalizat = 0.857576
  Prefactor  = 1.10816
 **********
 **   18 **HESSE 
 **********

 FCN=   6213.079     FROM HESSE     STATUS=OK           397 CALLS     3075 TOTAL
                     EDM=   .25E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     31.155        19.161        .71787E-04   -1.4591    
   2  norm          9.8003        11.677        .64002E-03   -1.5082    
   3  Prefactor     12.540        32.640        .11308E-03   -1.5000    
   4  Prefactor     .10000E-03    4.5803        .16457E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    13.696        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    34.073        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     4.1215        8.7740        .19845E-03   -1.5302    
   8  norm          .10000E-03    .27243        .79176E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          .10000E-03    3.6910        .14695E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     8.8944        10.645        .13440E-03   -1.5111    
  11  Prefactor     72.224        65.430        .47239E-04   -1.4006    
  12  norm          3.9865        10.557        .20197E-03   -1.5309    
  13  Prefactor     4.7266        9.0289        .18510E-03   -1.5273    
  14  Prefactor     .10000E-03    107.00        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     2.5713        17.886        .25391E-03   -1.5387    
  16  Prefactor     40.960        26.660        .62635E-04   -1.4427    
  17  norm          .10000E-03    36.804        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    21.840        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     4.6689        5.0250        .15439E-03   -1.5276    
  20  Prefactor     .10000E-03    11.147        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     4.1027        24.545        .19903E-03   -1.5303    
  22  Prefactor     .10000E-03    5.3982        .17867E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Normalizat    .85758        .24374        .31640E-03   -.97967    
  24  Prefactor     1.1082        .16442        .20006E-03   -.89206    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.47421e-09
Minuit parameter uncertainties:
  1  19.1651
  2  11.6794
  3  32.6867
  4  1.2369e-06
  5  7.09966e-06
  6  0.000805604
  7  8.77676
  8  2.19078e-07
  9  3.53171e-06
  10  10.6475
  11  65.4949
  12  10.5624
  13  9.03147
  14  0.00023884
  15  13.5687
  16  26.6677
  17  0.000701974
  18  6.07079e-05
  19  5.02544
  20  3.15349e-06
  21  20.082
  22  3.34133e-06
  23  0.24405
  24  0.164493
Done.

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

Extracting fit parameters...

4FGL J2326.2+0113
   Spectrum: PowerLaw
406    Prefactor:  7.222e+01  6.549e+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.108e+00  1.645e-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.576e-01  2.441e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 1.80
Ra Dec: 351.575 1.222
Photon Index (Fixed Index): 2.12 +/- 0.00
Photon Flux (Fixed Index): 4.39e-08 +/- 3.98e-08
Energy Flux (Fixed Index): 2.31e-05 +/- 2.10e-05

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

Saving results to:
/scratch/kocevski/888733/likelihoodResults_260841601_261100801_4FGL_J2326.2+0113_daily_bin83.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): 102
logL (Free Index) = 6211.04964938
delta logL = 2.02956463803

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 6210.98711717
delta logL = 2.09209685081

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    5.6038       1.0000         .10000E-03   10000.    
     2 'Index     '    3.6009       1.0000          .0000       10.000    
     3 'Normalizat'    .73552       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.1614       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.

 FCN=   6210.987     FROM MIGRAD    STATUS=CONVERGED     60 CALLS      248 TOTAL
                     EDM=   .36E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     5.5859        44.854        .42426E-02    .25743E-03
   2  Index         3.6023        1.9218        .65153E-01    .23095E-03
   3  Normalizat    .73552        .84253E-01    .76465E-01    .27534E-04
   4  Prefactor     1.1612        .56817E-01    .35615E-01    .10452E-06
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 5.58593
  Index      = 3.60232
  Normalizat = 0.735522
  Prefactor  = 1.16125
 **********
 **   18 **HESSE 
 **********

 FCN=   6210.987     FROM HESSE     STATUS=NOT POSDEF    33 CALLS      281 TOTAL
                     EDM=   .39E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     5.5859        64.334        .86474E-04   -1.5235    
   2  Index         3.6023        2.4819        .26486E-02   -.28331    
   3  Normalizat    .73552        .23112        .33849E-03   -1.0251    
   4  Prefactor     1.1612        .16188        .19578E-03   -.87532    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 3.86722e-10
Minuit parameter uncertainties:
  1  37.965
  2  2.60833
  3  0.23143
  4  0.161948
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/888733': 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): 102
logL (Free Index) = 6210.98711442
delta logL = 2.09209960498

Extracting fit parameters...

4FGL J2326.2+0113
   Spectrum: PowerLaw
406    Prefactor:  5.586e+00  3.796e+01  1.000e-04  1.000e+04 ( 1.000e-14)
407        Index:  3.602e+00  2.608e+00  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.161e+00  1.619e-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:  7.355e-01  2.314e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 6.33
Ra Dec: 351.575 1.222
Photon Index (Free Index): 3.60 +/- 2.61
Photon Flux (Free Index): 1.40e-07 +/- 7.71e-08
Energy Flux (Free Index): 2.28e-05 +/- 1.41e-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/888733/cmap_HighResolution_260841601_261100801_4FGL_J2326.2+0113_daily_bin83.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='9.66e-03', comment='SUCCESS', photon_flux='4.39e-08', energy_flux2='2.28e-05', photon_flux_error='3.98e-08', dlogl='2.09e+00', energy_flux='2.31e-05', photon_flux2='1.40e-07', job_status='DONE', time_completed='2021-09-29 18:52:15.908637', photon_index_error2='2.61', photon_index2='3.60', ts='1.80', fit_tolerance='1e-08', GAL='1.11', photon_index_error='0.00', photon_flux_upper_limit='1.28e-07', energy_flux_error2='1.41e-05', EG='0.86', time_epoch_completed='1632966735.91', return_code='0', job_id='888733', GAL2='1.16', EG2='0.74', return_code2='102', energy_flux_error='2.10e-05', photon_flux_error2='7.71e-08', ts2='6.33', photon_index='2.12' WHERE bin_id='83' AND source_name='4FGL J2326.2+0113' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep 29 18:52:15 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0220>
Subject: Job 888733: <4FGL_J2326.2+0113_daily_bin83> in cluster <slac> Done

Job <4FGL_J2326.2+0113_daily_bin83> was submitted from host <rhel6-64p> by user <kocevski> in cluster <slac> at Wed Sep 29 18:40:51 2021
Job was executed on host(s) <bullet0220>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Sep 29 18:40:53 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:40:53 2021
Terminated at Wed Sep 29 18:52:16 2021
Results reported at Wed Sep 29 18:52:16 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2326.2+0113_daily_bin83 351.575 1.2216 260841601 261100801 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 :                                   626.32 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             278.00 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   683 sec.
    Turnaround time :                            685 sec.

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

