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


Performing analysis on: 4FGL_J2326.2+0113_daily_bin798
RA = 351.575, Dec = 1.2216
tmin = 446169601, tmax = 446428801
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='892908', job_status='RUN', time_executed='2021-09-29 18:57:38.125866', time_epoch_executed='1632967058.13' WHERE source_name='4FGL J2326.2+0113' and cadence='daily' and bin_id='798'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/892908

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/892908/ft1_4FGL_J2326.2+0113_daily_bin798.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/892908/ft2_4FGL_J2326.2+0113_daily_bin798.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/892908/ft1_4FGL_J2326.2+0113_daily_bin798.fits outfile=/scratch/kocevski/892908/ft1_filteredMKT_4FGL_J2326.2+0113_daily_bin798.fits ra=351.575 dec=1.2216 rad=12.0 tmin=446169601.0 tmax=446428801.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.20
sys 0.20

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/892908/ft2_4FGL_J2326.2+0113_daily_bin798.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/892908/ft1_filteredMKT_4FGL_J2326.2+0113_daily_bin798.fits evtable="EVENTS" outfile="/scratch/kocevski/892908/ft1_filtered_4FGL_J2326.2+0113_daily_bin798.fits" apply_filter=yes overwrite=yes header_obstimes=yes tstart=0.0 tstop=0.0 gtifile="default" chatter=3 clobber=yes debug=no gui=no mode="ql"

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

This is gtmktime version HEAD
Applying GTI filter:
IN_SAA!=T && LIVETIME>0 && gtifilter('/nfs/farm/g/glast/g/LCRepository/Likelihood/GTIs/nogrb.gti',(START+STOP)/2) && (angsep(RA_SUN,DEC_SUN,RA_ZENITH,DEC_ZENITH)>115 || gtifilter('/nfs/farm/g/glast/g/LCRepository/Likelihood/GTIs/nosolarflares.gti',(START+STOP)/2))
real 0.48
user 0.32
sys 0.15

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/892908/ft1_filtered_4FGL_J2326.2+0113_daily_bin798.fits" evtable="EVENTS" scfile=/scratch/kocevski/892908/ft2_4FGL_J2326.2+0113_daily_bin798.fits sctable="SC_DATA" outfile=/scratch/kocevski/892908/ltcube_446169601_446428801_4FGL_J2326.2+0113_daily_bin798.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/892908/ft2_4FGL_J2326.2+0113_daily_bin798.fits
.....................!
real 11.88
user 11.53
sys 0.31

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/892908/ft1_filtered_4FGL_J2326.2+0113_daily_bin798.fits evtable="EVENTS" scfile=/scratch/kocevski/892908/ft2_4FGL_J2326.2+0113_daily_bin798.fits sctable="SC_DATA" expcube=/scratch/kocevski/892908/ltcube_446169601_446428801_4FGL_J2326.2+0113_daily_bin798.fits outfile=/scratch/kocevski/892908/expmap_446169601_446428801_4FGL_J2326.2+0113_daily_bin798.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/892908/ltcube_446169601_446428801_4FGL_J2326.2+0113_daily_bin798.fits
.....................!
real 190.48
user 186.16
sys 4.01

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/892908/ft1_filtered_4FGL_J2326.2+0113_daily_bin798.fits scfile=/scratch/kocevski/892908/ft2_4FGL_J2326.2+0113_daily_bin798.fits outfile=/scratch/kocevski/892908/cmap_446169601_446428801_4FGL_J2326.2+0113_daily_bin798.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.38
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/892908/ft1_filtered_4FGL_J2326.2+0113_daily_bin798.fits scfile=/scratch/kocevski/892908/ft2_4FGL_J2326.2+0113_daily_bin798.fits outfile=/scratch/kocevski/892908/cmap_HighResolution_446169601_446428801_4FGL_J2326.2+0113_daily_bin798.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/892908/ft1_filtered_4FGL_J2326.2+0113_daily_bin798.fits evtable="EVENTS" scfile=/scratch/kocevski/892908/ft2_4FGL_J2326.2+0113_daily_bin798.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/892908/Model_4FGL_J2326.2+0113_daily_bin798.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/892908/ft1_filtered_4FGL_J2326.2+0113_daily_bin798.fits.....................!
real 64.07
user 62.82
sys 1.13

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    39.047       1.0000         .10000E-03   10000.    
     2 'norm      '    23.416       1.0000         .10000E-03   10000.    
     3 'Prefactor '    25.959       1.0000         .10000E-03   10000.    
     4 'Prefactor '    7.1611       1.0000         .10000E-03   10000.    
     5 'Prefactor '    25.848       1.0000         .10000E-03   10000.    
     6 'Prefactor '    67.062       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10831E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    2.2287       1.0000         .10000E-03   10000.    
     9 'norm      '    .10103E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    1.5854       1.0000         .10000E-03   10000.    
    11 'Prefactor '    65.515       1.0000         .10000E-03   10000.    
    12 'norm      '    4.5252       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10038E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    10.008       1.0000         .10000E-03   10000.    
    16 'Prefactor '    16.867       1.0000         .10000E-03   10000.    
    17 'norm      '    .10025E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    57.529       1.0000         .10000E-03   10000.    
    19 'Prefactor '    1.1362       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    4.3402       1.0000         .10000E-03   10000.    
    22 'Prefactor '    .29308       1.0000         .10000E-03   10000.    
    23 'Normalizat'    1.1868       1.0000         .10000E-01   10.000    
    24 'Prefactor '    .83724       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=   6228.479     FROM MIGRAD    STATUS=CONVERGED    956 CALLS     3152 TOTAL
                     EDM=   .55E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     39.041        24.995        .64143E-04    .20737E-04
   2  norm          23.411        14.952        .82778E-04    .14558E-04
   3  Prefactor     25.872        43.699        .78626E-04    .80567E-04
   4  Prefactor     7.1595        13.963        .74949E-03   -.63678E-04
   5  Prefactor     25.845        21.492        .78793E-04    .12264E-04
   6  Prefactor     67.062        58.381        .49011E-04   -.61238E-05
   7  Prefactor     .10000E-03    7.1904        .18142E-02** at limit **
   8  norm          2.2283        1.1675        .58601E-04    .17208E-03
   9  norm          .10000E-03    4.2445        .15747E-02** at limit **
  10  Prefactor     1.5581        46.036        .33716E-03    .57996E-04
  11  Prefactor     65.494        56.594        .49583E-04    .38933E-04
  12  norm          4.5333        9.7792        .18925E-03   -.12855E-04
  13  Prefactor     .10000E-03    3.4602        .14305E-02** at limit **
  14  Prefactor     .10000E-03    72.455        .18142E-02** at limit **
  15  Prefactor     10.003        9.7959        .12666E-03    .62201E-04
  16  Prefactor     16.888        32.940        .97523E-04    .12590E-04
  17  norm          .10000E-03    10.623        .18142E-02** at limit **
  18  Prefactor     57.495        62.675        .52891E-04    .44665E-04
  19  Prefactor     1.1369        3.1497        .22351E-03   -.12518E-03
  20  Prefactor     .10000E-03    29.596        .18142E-02** at limit **
  21  Prefactor     4.3174        38.732        .19335E-03    .61150E-05
  22  Prefactor     .25275        15.705        .86420E-01    .24124E-03
  23  Normalizat    1.1868        .26554        .29164E-03    .81004E-04
  24  Prefactor     .83733        .16293        .22687E-03   -.15184E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 39.0409
  norm       = 23.4115
  Prefactor  = 25.8723
  Prefactor  = 7.15955
  Prefactor  = 25.8447
  Prefactor  = 67.0622
  Prefactor  = 0.0001
  norm       = 2.22827
  norm       = 0.0001
  Prefactor  = 1.5581
  Prefactor  = 65.4939
  norm       = 4.53332
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 10.0028
  Prefactor  = 16.8885
  norm       = 0.0001
  Prefactor  = 57.4947
  Prefactor  = 1.13688
  Prefactor  = 0.0001
  Prefactor  = 4.31742
  Prefactor  = 0.252745
  Normalizat = 1.18682
  Prefactor  = 0.837326
 **********
 **   18 **HESSE 
 **********

 FCN=   6228.479     FROM HESSE     STATUS=OK           383 CALLS     3535 TOTAL
                     EDM=   .50E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     39.041        24.992        .25657E-05   -1.4457    
   2  norm          23.411        14.952        .33111E-05   -1.4740    
   3  Prefactor     25.872        43.696        .15725E-04   -1.4690    
   4  Prefactor     7.1595        13.961        .29980E-04   -1.5173    
   5  Prefactor     25.845        21.489        .31517E-05   -1.4691    
   6  Prefactor     67.062        58.374        .98022E-05   -1.4068    
   7  Prefactor     .10000E-03    7.1916        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          2.2283        1.1675        .23441E-05   -1.5409    
   9  norm          .10000E-03    4.2464        .31495E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     1.5581        45.731        .13486E-04   -1.5458    
  11  Prefactor     65.494        56.591        .99165E-05   -1.4088    
  12  norm          4.5333        9.7612        .75702E-05   -1.5282    
  13  Prefactor     .10000E-03    3.4604        .28610E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    72.455        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     10.003        9.7938        .50665E-05   -1.5075    
  16  Prefactor     16.888        32.903        .39009E-05   -1.4886    
  17  norm          .10000E-03    10.623        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     57.495        62.676        .10578E-04   -1.4190    
  19  Prefactor     1.1369        3.1488        .89403E-05   -1.5495    
  20  Prefactor     .10000E-03    29.599        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     4.3174        38.707        .77340E-05   -1.5292    
  22  Prefactor     .25275        14.949        .89776E-01   -1.5607    
  23  Normalizat    1.1868        .26568        .11666E-04   -.87011    
  24  Prefactor     .83733        .16306        .90746E-05   -.98367    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.03199e-10
Minuit parameter uncertainties:
  1  24.9986
  2  14.9541
  3  43.7501
  4  13.967
  5  21.4954
  6  58.4237
  7  8.20585e-06
  8  1.16749
  9  2.82045e-06
  10  16.896
  11  56.6373
  12  9.7646
  13  9.13445e-06
  14  8.3546e-06
  15  9.79537
  16  32.9387
  17  1.14455e-05
  18  62.7481
  19  3.14926
  20  1.8169e-05
  21  25.8767
  22  3.88786
  23  0.265985
  24  0.163153
Done.

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

Extracting fit parameters...

4FGL J2326.2+0113
   Spectrum: PowerLaw
406    Prefactor:  6.549e+01  5.664e+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:  8.373e-01  1.632e-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:  1.187e+00  2.660e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 2.72
Ra Dec: 351.575 1.222
Photon Index (Fixed Index): 2.12 +/- 0.00
Photon Flux (Fixed Index): 3.98e-08 +/- 3.44e-08
Energy Flux (Fixed Index): 2.10e-05 +/- 1.81e-05

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

Saving results to:
/scratch/kocevski/892908/likelihoodResults_446169601_446428801_4FGL_J2326.2+0113_daily_bin798.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) = 6228.38952996
delta logL = 0.0894971523512

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6228.38596814
delta logL = 0.0930589806449

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    81.558       1.0000         .10000E-03   10000.    
     2 'Index     '    1.8428       1.0000          .0000       10.000    
     3 'Normalizat'    1.1995       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .83312       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=   6228.386     FROM MIGRAD    STATUS=CONVERGED     70 CALLS      281 TOTAL
                     EDM=   .11E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     81.782        1893.0        .11119E-02    .13190E-05
   2  Index         1.8457        5.8396        .21620        .30743E-04
   3  Normalizat    1.1994        .12237        .65631E-01    .11948E-04
   4  Prefactor     .83293        .53096E-01    .44147E-01   -.13740E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 81.7818
  Index      = 1.84573
  Normalizat = 1.19942
  Prefactor  = 0.832932
 **********
 **   18 **HESSE 
 **********

 FCN=   6228.386     FROM HESSE     STATUS=OK            31 CALLS      312 TOTAL
                     EDM=   .45E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     81.782        76.870        .44475E-04   -1.3897    
   2  Index         1.8457        .61218        .77335E-02   -.68265    
   3  Normalizat    1.1994        .24044        .29034E-03   -.86621    
   4  Prefactor     .83293        .16052        .22740E-03   -.98526    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.53824e-10
Minuit parameter uncertainties:
  1  76.9635
  2  0.614753
  3  0.24066
  4  0.16061
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/892908': 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) = 6228.38594485
delta logL = 0.0930822655546

Extracting fit parameters...

4FGL J2326.2+0113
   Spectrum: PowerLaw
406    Prefactor:  8.178e+01  7.696e+01  1.000e-04  1.000e+04 ( 1.000e-14)
407        Index:  1.846e+00  6.148e-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:  8.329e-01  1.606e-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:  1.199e+00  2.407e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 2.90
Ra Dec: 351.575 1.222
Photon Index (Free Index): 1.85 +/- 0.61
Photon Flux (Free Index): 2.83e-08 +/- 3.51e-08
Energy Flux (Free Index): 2.96e-05 +/- 3.76e-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/892908/cmap_HighResolution_446169601_446428801_4FGL_J2326.2+0113_daily_bin798.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='9.20e-03', comment='SUCCESS', photon_flux='3.98e-08', energy_flux2='2.96e-05', photon_flux_error='3.44e-08', dlogl='9.31e-02', energy_flux='2.10e-05', photon_flux2='2.83e-08', job_status='DONE', time_completed='2021-09-29 19:08:47.101641', photon_index_error2='0.61', photon_index2='1.85', ts='2.72', fit_tolerance='1e-08', GAL='0.84', photon_index_error='0.00', photon_flux_upper_limit='1.21e-07', energy_flux_error2='3.76e-05', EG='1.19', time_epoch_completed='1632967727.1', return_code='0', job_id='892908', GAL2='0.83', EG2='1.20', return_code2='0', energy_flux_error='1.81e-05', photon_flux_error2='3.51e-08', ts2='2.90', photon_index='2.12' WHERE bin_id='798' AND source_name='4FGL J2326.2+0113' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep 29 19:08:47 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0234>
Subject: Job 892908: <4FGL_J2326.2+0113_daily_bin798> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2326.2+0113_daily_bin798 351.575 1.2216 446169601 446428801 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 :                                   668.00 sec.
    Max Memory :                                 1093 MB
    Average Memory :                             296.08 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   801 sec.
    Turnaround time :                            803 sec.

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

