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


Performing analysis on: 4FGL_J2326.2+0113_daily_bin245
RA = 351.575, Dec = 1.2216
tmin = 302832001, tmax = 303091201
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='889994', job_status='RUN', time_executed='2021-09-29 18:45:56.474766', time_epoch_executed='1632966356.47' WHERE source_name='4FGL J2326.2+0113' and cadence='daily' and bin_id='245'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/889994

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/889994/ft1_4FGL_J2326.2+0113_daily_bin245.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/889994/ft2_4FGL_J2326.2+0113_daily_bin245.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/889994/ft1_4FGL_J2326.2+0113_daily_bin245.fits outfile=/scratch/kocevski/889994/ft1_filteredMKT_4FGL_J2326.2+0113_daily_bin245.fits ra=351.575 dec=1.2216 rad=12.0 tmin=302832001.0 tmax=303091201.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.50
user 3.25
sys 0.22

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/889994/ft1_filtered_4FGL_J2326.2+0113_daily_bin245.fits" evtable="EVENTS" scfile=/scratch/kocevski/889994/ft2_4FGL_J2326.2+0113_daily_bin245.fits sctable="SC_DATA" outfile=/scratch/kocevski/889994/ltcube_302832001_303091201_4FGL_J2326.2+0113_daily_bin245.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/889994/ft2_4FGL_J2326.2+0113_daily_bin245.fits
.....................!
real 12.13
user 11.81
sys 0.29

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/889994/ft1_filtered_4FGL_J2326.2+0113_daily_bin245.fits evtable="EVENTS" scfile=/scratch/kocevski/889994/ft2_4FGL_J2326.2+0113_daily_bin245.fits sctable="SC_DATA" expcube=/scratch/kocevski/889994/ltcube_302832001_303091201_4FGL_J2326.2+0113_daily_bin245.fits outfile=/scratch/kocevski/889994/expmap_302832001_303091201_4FGL_J2326.2+0113_daily_bin245.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/889994/ltcube_302832001_303091201_4FGL_J2326.2+0113_daily_bin245.fits
.....................!
real 190.71
user 185.54
sys 4.82

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/889994/ft1_filtered_4FGL_J2326.2+0113_daily_bin245.fits scfile=/scratch/kocevski/889994/ft2_4FGL_J2326.2+0113_daily_bin245.fits outfile=/scratch/kocevski/889994/cmap_302832001_303091201_4FGL_J2326.2+0113_daily_bin245.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.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/889994/ft1_filtered_4FGL_J2326.2+0113_daily_bin245.fits scfile=/scratch/kocevski/889994/ft2_4FGL_J2326.2+0113_daily_bin245.fits outfile=/scratch/kocevski/889994/cmap_HighResolution_302832001_303091201_4FGL_J2326.2+0113_daily_bin245.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.38
sys 0.15

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
     2 'norm      '    12.030       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10009E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10263E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    13.911       1.0000         .10000E-03   10000.    
     8 'norm      '    2.7000       1.0000         .10000E-03   10000.    
     9 'norm      '    .25591E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    9.6875       1.0000         .10000E-03   10000.    
    11 'Prefactor '    14.386       1.0000         .10000E-03   10000.    
    12 'norm      '    6.1730       1.0000         .10000E-03   10000.    
    13 'Prefactor '    12.967       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .55906E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10376E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .11396E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    .10003E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    5.5243       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10089E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    51.634       1.0000         .10000E-03   10000.    
    22 'Prefactor '    3.2176       1.0000         .10000E-03   10000.    
    23 'Normalizat'    .57199       1.0000         .10000E-01   10.000    
    24 'Prefactor '    1.0491       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=   4885.632     FROM MIGRAD    STATUS=CONVERGED    538 CALLS     2712 TOTAL
                     EDM=   .67E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .4%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    7.5430        .20097E-06** at limit **
   2  norm          12.028        14.016       -.24127E-06   -.12953E-04
   3  Prefactor     .10000E-03    20.186       -.13694E-04** at limit **
   4  Prefactor     .10000E-03    3.2406       -.44965E-06** at limit **
   5  Prefactor     .10000E-03    6.8328        .17849E-07** at limit **
   6  Prefactor     .10000E-03    121.16       -.62829E-04** at limit **
   7  Prefactor     13.933        12.505        .16704E-05    .55273E-03
   8  norm          2.6993        1.3991        .48516E-07    .35429E-03
   9  norm          .10001E-03    5.3838       -.32834E-06** at limit **
  10  Prefactor     9.6893        8.7740       -.68207E-07   -.36122E-03
  11  Prefactor     14.386        66.522       -.31094E-06   -.36215E-04
  12  norm          6.1751        9.1884       -.72233E-06   -.50036E-03
  13  Prefactor     12.967        9.5096       -.22631E-06   -.49055E-03
  14  Prefactor     .10002E-03    876.92       -.28834E-03** at limit **
  15  Prefactor     .10000E-03    24.702        .13801E-04** at limit **
  16  Prefactor     .10001E-03    87.075        .49283E-04** at limit **
  17  norm          .10000E-03    9.2313        .58250E-06** at limit **
  18  Prefactor     .10000E-03    27.993       -.21838E-04** at limit **
  19  Prefactor     5.5193        5.2943       -.57446E-06   -.66685E-03
  20  Prefactor     .10000E-03    21.672        .17561E-04** at limit **
  21  Prefactor     51.632        30.183       -.70170E-06   -.25411E-03
  22  Prefactor     3.2174        8.0342       -.58546E-06   -.18728E-03
  23  Normalizat    .57229        .23407        .14561E-05   -.15136E-03
  24  Prefactor     1.0490        .14877       -.30836E-06   -.76328E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  norm       = 12.0278
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 13.9326
  norm       = 2.69932
  norm       = 0.000100014
  Prefactor  = 9.68935
  Prefactor  = 14.3859
  norm       = 6.17506
  Prefactor  = 12.9672
  Prefactor  = 0.00010002
  Prefactor  = 0.0001
  Prefactor  = 0.00010001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 5.5193
  Prefactor  = 0.0001
  Prefactor  = 51.6317
  Prefactor  = 3.21735
  Normalizat = 0.572285
  Prefactor  = 1.04897
 **********
 **   18 **HESSE 
 **********

 FCN=   4885.632     FROM HESSE     STATUS=OK           393 CALLS     3105 TOTAL
                     EDM=   .16E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    7.5639        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          12.028        14.015        .11550E-03   -1.5014    
   3  Prefactor     .10000E-03    20.224        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    3.2425        .12289E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    6.8389        .17844E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    121.83        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     13.933        11.954        .10739E-03   -1.4961    
   8  norm          2.6993        1.3909        .55417E-04   -1.5379    
   9  norm          .10001E-03    33.445        .29856E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     9.6893        8.7594        .12875E-03   -1.5085    
  11  Prefactor     14.386        66.542        .10560E-03   -1.4949    
  12  norm          6.1751        9.1334        .16158E-03   -1.5211    
  13  Prefactor     12.967        9.4712        .11124E-03   -1.4988    
  14  Prefactor     .10002E-03    879.39        .21101E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    25.058        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10001E-03    89.745        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          .10000E-03    9.2352        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    28.015        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     5.5193        5.2805        .14479E-03   -1.5238    
  20  Prefactor     .10000E-03    21.713        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     51.632        30.218        .55813E-04   -1.4270    
  22  Prefactor     3.2174        8.0121        .22585E-03   -1.5349    
  23  Normalizat    .57229        .26141        .34755E-03   -1.0917    
  24  Prefactor     1.0490        .16791        .18377E-03   -.91114    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.64361e-09
Minuit parameter uncertainties:
  1  1.87022e-06
  2  14.0188
  3  1.82427e-06
  4  1.78472e-07
  5  2.11655e-06
  6  0.000382999
  7  11.9556
  8  1.39089
  9  0.00138918
  10  8.76052
  11  61.9927
  12  9.13546
  13  9.47231
  14  0.00853274
  15  3.02582e-06
  16  0.0018971
  17  3.77086e-06
  18  2.22144e-06
  19  5.28098
  20  2.44882e-05
  21  30.2268
  22  8.0148
  23  0.261978
  24  0.167998
Done.

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

Extracting fit parameters...

4FGL J2326.2+0113
   Spectrum: PowerLaw
406    Prefactor:  1.439e+01  6.199e+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.049e+00  1.680e-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.723e-01  2.620e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 0.06
Ra Dec: 351.575 1.222
Photon Flux Upper Limit: 9.93e-08 ph cm-2 s-1
Energy Flux Upper Limit: 7.52e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/889994/likelihoodResults_302832001_303091201_4FGL_J2326.2+0113_daily_bin245.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) = 4884.98423612
delta logL = 0.647850513601

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 4884.97133457
delta logL = 0.660752064397

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    4.0278       1.0000         .10000E-03   10000.    
     2 'Index     '    3.4409       1.0000          .0000       10.000    
     3 'Normalizat'    .50517       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0726       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=   4884.971     FROM MIGRAD    STATUS=CONVERGED     59 CALLS      248 TOTAL
                     EDM=   .20E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     4.0130        98.720        .50232E-02    .32601E-03
   2  Index         3.4423        2.9807        .86676E-01    .16183E-03
   3  Normalizat    .50511        .74151E-01    .83225E-01    .33118E-04
   4  Prefactor     1.0726        .48190E-01    .38737E-01   -.28683E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 4.01304
  Index      = 3.44231
  Normalizat = 0.505111
  Prefactor  = 1.07255
 **********
 **   18 **HESSE 
 **********

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

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     4.0130        171.43        .12605E-03   -1.5307    
   2  Index         3.4423        6.6792        .42814E-02   -.31681    
   3  Normalizat    .50511        .23526        .36862E-03   -1.1218    
   4  Prefactor     1.0726        .16179        .18185E-03   -.90349    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 8.00975e-10
Minuit parameter uncertainties:
  1  52.6194
  2  5.08603
  3  0.235721
  4  0.161863
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/889994': 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) = 4884.97133367
delta logL = 0.660752967358

Extracting fit parameters...

4FGL J2326.2+0113
   Spectrum: PowerLaw
406    Prefactor:  4.013e+00  5.262e+01  1.000e-04  1.000e+04 ( 1.000e-14)
407        Index:  3.442e+00  5.086e+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.073e+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:  5.051e-01  2.357e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 1.46
Ra Dec: 351.575 1.222
Photon Index (Free Index): 3.44 +/- 5.09
Photon Flux (Free Index): 6.57e-08 +/- 7.04e-08
Energy Flux (Free Index): 1.11e-05 +/- 1.50e-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/889994/cmap_HighResolution_302832001_303091201_4FGL_J2326.2+0113_daily_bin245.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='7.52e-03', comment='SUCCESS', energy_flux2='1.11e-05', dlogl='6.61e-01', photon_flux2='6.57e-08', job_status='DONE', time_completed='2021-09-29 18:55:34.035967', photon_index_error2='5.09', photon_index2='3.44', ts='0.06', fit_tolerance='1e-08', GAL='1.05', photon_index_error='0.00', photon_flux_upper_limit='9.93e-08', energy_flux_error2='1.50e-05', EG='0.57', time_epoch_completed='1632966934.04', return_code='0', job_id='889994', GAL2='1.07', EG2='0.51', return_code2='102', photon_flux_error2='7.04e-08', ts2='1.46', photon_index='2.12' WHERE bin_id='245' AND source_name='4FGL J2326.2+0113' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep 29 18:55:34 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0034>
Subject: Job 889994: <4FGL_J2326.2+0113_daily_bin245> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2326.2+0113_daily_bin245 351.575 1.2216 302832001 303091201 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 :                                   572.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             326.14 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   611 sec.
    Turnaround time :                            613 sec.

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

