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


Performing analysis on: 4FGL_J2326.2+0113_daily_bin53
RA = 351.575, Dec = 1.2216
tmin = 253065601, tmax = 253324801
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='889847', job_status='RUN', time_executed='2021-09-29 18:45:56.789934', time_epoch_executed='1632966356.79' WHERE source_name='4FGL J2326.2+0113' and cadence='daily' and bin_id='53'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/889847

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/889847/ft1_4FGL_J2326.2+0113_daily_bin53.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/889847/ft2_4FGL_J2326.2+0113_daily_bin53.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/889847/ft1_4FGL_J2326.2+0113_daily_bin53.fits outfile=/scratch/kocevski/889847/ft1_filteredMKT_4FGL_J2326.2+0113_daily_bin53.fits ra=351.575 dec=1.2216 rad=12.0 tmin=253065601.0 tmax=253324801.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.41
user 1.21
sys 0.19

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

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

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/889847/ft1_filtered_4FGL_J2326.2+0113_daily_bin53.fits evtable="EVENTS" scfile=/scratch/kocevski/889847/ft2_4FGL_J2326.2+0113_daily_bin53.fits sctable="SC_DATA" expcube=/scratch/kocevski/889847/ltcube_253065601_253324801_4FGL_J2326.2+0113_daily_bin53.fits outfile=/scratch/kocevski/889847/expmap_253065601_253324801_4FGL_J2326.2+0113_daily_bin53.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/889847/ltcube_253065601_253324801_4FGL_J2326.2+0113_daily_bin53.fits
.....................!
real 191.05
user 185.21
sys 5.38

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/889847/ft1_filtered_4FGL_J2326.2+0113_daily_bin53.fits scfile=/scratch/kocevski/889847/ft2_4FGL_J2326.2+0113_daily_bin53.fits outfile=/scratch/kocevski/889847/cmap_253065601_253324801_4FGL_J2326.2+0113_daily_bin53.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.35
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/889847/ft1_filtered_4FGL_J2326.2+0113_daily_bin53.fits scfile=/scratch/kocevski/889847/ft2_4FGL_J2326.2+0113_daily_bin53.fits outfile=/scratch/kocevski/889847/cmap_HighResolution_253065601_253324801_4FGL_J2326.2+0113_daily_bin53.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.37
sys 0.16

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

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      '    .13090E-01   1.0000         .10000E-03   10000.    
     3 'Prefactor '    13.040       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .12078E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    3.2779       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10032E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10331E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    .31193       1.0000         .10000E-03   10000.    
     9 'norm      '    .10006E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10011E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    40.952       1.0000         .10000E-03   10000.    
    12 'norm      '    30.856       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10453E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    6.6637       1.0000         .10000E-03   10000.    
    16 'Prefactor '    45.516       1.0000         .10000E-03   10000.    
    17 'norm      '    .10039E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    17.843       1.0000         .10000E-03   10000.    
    19 'Prefactor '    1.8976       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .13994E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    40.128       1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    23 'Normalizat'    .77026       1.0000         .10000E-01   10.000    
    24 'Prefactor '    1.0492       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=   9061.780     FROM MIGRAD    STATUS=CONVERGED    969 CALLS     3180 TOTAL
                     EDM=   .64E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    3.7417        .17973E-02** at limit **
   2  norm          .15636E-02    6.7981        .65797E-01** at limit **
   3  Prefactor     13.013        24.855        .11093E-03   -.99620E-04
   4  Prefactor     .10000E-03    20.860        .36285E-03** at limit **
   5  Prefactor     3.2772        15.551        .11183E-02   -.39222E-04
   6  Prefactor     .10000E-03    28.724        .18142E-02** at limit **
   7  Prefactor     .10000E-03    7.5940        .36285E-03** at limit **
   8  norm          .31206        .68974        .11171E-03    .83145E-03
   9  norm          .10000E-03    2.1285        .13466E-02** at limit **
  10  Prefactor     .10000E-03    2.6213        .15034E-02** at limit **
  11  Prefactor     40.947        33.022        .62639E-04   -.76083E-04
  12  norm          30.852        9.6316        .72130E-04   -.18220E-03
  13  Prefactor     .10000E-03    4.4102        .18142E-02** at limit **
  14  Prefactor     .10000E-03    67.696        .18142E-02** at limit **
  15  Prefactor     6.6585        9.5644        .77723E-03   -.11757E-03
  16  Prefactor     45.511        23.238        .59428E-04   -.82259E-04
  17  norm          .10000E-03    16.496        .18142E-02** at limit **
  18  Prefactor     17.846        40.980        .94816E-04    .24940E-04
  19  Prefactor     1.8996        3.2875        .19768E-03    .27490E-04
  20  Prefactor     .10000E-03    51.463        .18142E-02** at limit **
  21  Prefactor     40.122        20.034        .63276E-04   -.17320E-03
  22  Prefactor     .10000E-03    9.8160        .18142E-02** at limit **
  23  Normalizat    .77023        .18815        .31280E-03   -.32914E-03
  24  Prefactor     1.0493        .12654        .19270E-03   -.80452E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  norm       = 0.00156364
  Prefactor  = 13.0131
  Prefactor  = 0.0001
  Prefactor  = 3.27716
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.31206
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 40.9467
  norm       = 30.8516
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 6.65851
  Prefactor  = 45.5112
  norm       = 0.0001
  Prefactor  = 17.8457
  Prefactor  = 1.89961
  Prefactor  = 0.0001
  Prefactor  = 40.1223
  Prefactor  = 0.0001
  Normalizat = 0.770229
  Prefactor  = 1.04931
 **********
 **   18 **HESSE 
 **********

 FCN=   9061.780     FROM HESSE     STATUS=OK           385 CALLS     3565 TOTAL
                     EDM=   .63E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    3.7418        .35946E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          .15636E-02    6.1542        .70838E-01   -1.5700    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     13.013        24.855        .44370E-05   -1.4986    
   4  Prefactor     .10000E-03    20.861        .72569E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     3.2772        15.527        .44731E-04   -1.5346    
   6  Prefactor     .10000E-03    28.728        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    7.5946        .72569E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          .31206        .68951        .44685E-05   -1.5596    
   9  norm          .10000E-03    2.1291        .26931E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    2.6214        .30067E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     40.947        33.020        .12528E-04   -1.4427    
  12  norm          30.852        9.6313        .28852E-05   -1.4597    
  13  Prefactor     .10000E-03    4.4116        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    67.696        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     6.6585        9.5478        .31089E-04   -1.5192    
  16  Prefactor     45.511        23.237        .23771E-05   -1.4358    
  17  norm          .10000E-03    16.497        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     17.846        40.997        .37926E-05   -1.4863    
  19  Prefactor     1.8996        3.2831        .79073E-05   -1.5432    
  20  Prefactor     .10000E-03    51.501        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     40.122        20.034        .12655E-04   -1.4440    
  22  Prefactor     .10000E-03    9.8198        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Normalizat    .77023        .18824        .12512E-04   -1.0118    
  24  Prefactor     1.0493        .12663        .38540E-04   -.91104    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 6.31103e-10
Minuit parameter uncertainties:
  1  1.24959e-06
  2  0.189835
  3  24.8752
  4  0.000188813
  5  14.2727
  6  0.000128912
  7  1.30798e-06
  8  0.68953
  9  6.99288e-06
  10  9.52137e-06
  11  33.0352
  12  9.6318
  13  7.79193e-06
  14  3.18579e-05
  15  9.54999
  16  23.2417
  17  0.00015725
  18  41.062
  19  3.28346
  20  8.74616e-05
  21  20.0371
  22  8.81171e-06
  23  0.1884
  24  0.126664
Done.

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

Extracting fit parameters...

4FGL J2326.2+0113
   Spectrum: PowerLaw
406    Prefactor:  4.095e+01  3.304e+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.267e-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.702e-01  1.884e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 3.06
Ra Dec: 351.575 1.222
Photon Index (Fixed Index): 2.12 +/- 0.00
Photon Flux (Fixed Index): 2.49e-08 +/- 2.01e-08
Energy Flux (Fixed Index): 1.31e-05 +/- 1.06e-05

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

Saving results to:
/scratch/kocevski/889847/likelihoodResults_253065601_253324801_4FGL_J2326.2+0113_daily_bin53.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) = 9061.77940432
delta logL = 0.000322481597323

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 9061.77915531
delta logL = 0.000571489415961

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    41.896       1.0000         .10000E-03   10000.    
     2 'Index     '    2.0966       1.0000          .0000       10.000    
     3 'Normalizat'    .77093       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0492       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=   9061.779     FROM MIGRAD    STATUS=CONVERGED     98 CALLS      278 TOTAL
                     EDM=   .90E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     41.939        47.505        .30966E-03    .22028E-04
   2  Index         2.0979        .67322        .82100E-02    .23128E-04
   3  Normalizat    .77086        .17745        .31268E-03   -.68573E-04
   4  Prefactor     1.0491        .12595        .19272E-03    .10911E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 41.9391
  Index      = 2.09793
  Normalizat = 0.770863
  Prefactor  = 1.04908
 **********
 **   18 **HESSE 
 **********

 FCN=   9061.779     FROM HESSE     STATUS=OK            25 CALLS      303 TOTAL
                     EDM=   .78E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     41.939        44.417        .12386E-04   -1.4412    
   2  Index         2.0979        .62948        .32840E-03   -.61924    
   3  Normalizat    .77086        .17736        .12507E-04   -1.0116    
   4  Prefactor     1.0491        .12598        .38544E-04   -.91111    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 7.8173e-11
Minuit parameter uncertainties:
  1  44.4517
  2  0.63202
  3  0.177496
  4  0.126018
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/889847': 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) = 9061.77914553
delta logL = 0.000581275595323

Extracting fit parameters...

4FGL J2326.2+0113
   Spectrum: PowerLaw
406    Prefactor:  4.194e+01  4.445e+01  1.000e-04  1.000e+04 ( 1.000e-14)
407        Index:  2.098e+00  6.320e-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.049e+00  1.260e-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.709e-01  1.775e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 3.06
Ra Dec: 351.575 1.222
Photon Index (Free Index): 2.10 +/- 0.63
Photon Flux (Free Index): 2.43e-08 +/- 2.57e-08
Energy Flux (Free Index): 1.34e-05 +/- 1.42e-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/889847/cmap_HighResolution_253065601_253324801_4FGL_J2326.2+0113_daily_bin53.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='5.58e-03', comment='SUCCESS', photon_flux='2.49e-08', energy_flux2='1.34e-05', photon_flux_error='2.01e-08', dlogl='5.81e-04', energy_flux='1.31e-05', photon_flux2='2.43e-08', job_status='DONE', time_completed='2021-09-29 19:00:14.796717', photon_index_error2='0.63', photon_index2='2.10', ts='3.06', fit_tolerance='1e-08', GAL='1.05', photon_index_error='0.00', photon_flux_upper_limit='7.37e-08', energy_flux_error2='1.42e-05', EG='0.77', time_epoch_completed='1632967214.8', return_code='0', job_id='889847', GAL2='1.05', EG2='0.77', return_code2='0', energy_flux_error='1.06e-05', photon_flux_error2='2.57e-08', ts2='3.06', photon_index='2.12' WHERE bin_id='53' AND source_name='4FGL J2326.2+0113' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep 29 19:00:14 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0042>
Subject: Job 889847: <4FGL_J2326.2+0113_daily_bin53> in cluster <slac> Done

Job <4FGL_J2326.2+0113_daily_bin53> was submitted from host <rhel6-64f> by user <kocevski> in cluster <slac> at Wed Sep 29 18:45:11 2021
Job was executed on host(s) <bullet0042>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Sep 29 18:45:13 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:13 2021
Terminated at Wed Sep 29 19:00:15 2021
Results reported at Wed Sep 29 19:00:15 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2326.2+0113_daily_bin53 351.575 1.2216 253065601 253324801 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 :                                   855.00 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             335.24 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   902 sec.
    Turnaround time :                            904 sec.

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

