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


Performing analysis on: 4FGL_J2326.2+0113_daily_bin950
RA = 351.575, Dec = 1.2216
tmin = 485568001, tmax = 485827201
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='893162', job_status='RUN', time_executed='2021-09-29 18:57:35.830154', time_epoch_executed='1632967055.83' WHERE source_name='4FGL J2326.2+0113' and cadence='daily' and bin_id='950'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/893162

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/893162/ft1_4FGL_J2326.2+0113_daily_bin950.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/893162/ft2_4FGL_J2326.2+0113_daily_bin950.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/893162/ft1_4FGL_J2326.2+0113_daily_bin950.fits outfile=/scratch/kocevski/893162/ft1_filteredMKT_4FGL_J2326.2+0113_daily_bin950.fits ra=351.575 dec=1.2216 rad=12.0 tmin=485568001.0 tmax=485827201.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 4.02
user 3.71
sys 0.20

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

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

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/893162/ft1_filtered_4FGL_J2326.2+0113_daily_bin950.fits evtable="EVENTS" scfile=/scratch/kocevski/893162/ft2_4FGL_J2326.2+0113_daily_bin950.fits sctable="SC_DATA" expcube=/scratch/kocevski/893162/ltcube_485568001_485827201_4FGL_J2326.2+0113_daily_bin950.fits outfile=/scratch/kocevski/893162/expmap_485568001_485827201_4FGL_J2326.2+0113_daily_bin950.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/893162/ltcube_485568001_485827201_4FGL_J2326.2+0113_daily_bin950.fits
.....................!
real 194.71
user 189.43
sys 4.49

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/893162/ft1_filtered_4FGL_J2326.2+0113_daily_bin950.fits scfile=/scratch/kocevski/893162/ft2_4FGL_J2326.2+0113_daily_bin950.fits outfile=/scratch/kocevski/893162/cmap_485568001_485827201_4FGL_J2326.2+0113_daily_bin950.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/893162/ft1_filtered_4FGL_J2326.2+0113_daily_bin950.fits scfile=/scratch/kocevski/893162/ft2_4FGL_J2326.2+0113_daily_bin950.fits outfile=/scratch/kocevski/893162/cmap_HighResolution_485568001_485827201_4FGL_J2326.2+0113_daily_bin950.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/893162/ft1_filtered_4FGL_J2326.2+0113_daily_bin950.fits evtable="EVENTS" scfile=/scratch/kocevski/893162/ft2_4FGL_J2326.2+0113_daily_bin950.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/893162/Model_4FGL_J2326.2+0113_daily_bin950.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/893162/ft1_filtered_4FGL_J2326.2+0113_daily_bin950.fits.....................!
real 62.25
user 60.86
sys 1.12

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     2 'norm      '    38.602       1.0000         .10000E-03   10000.    
     3 'Prefactor '    22.304       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    5.8981       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10008E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    1.5286       1.0000         .10000E-03   10000.    
     9 'norm      '    5.1478       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    18.285       1.0000         .10000E-03   10000.    
    12 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10615E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10012E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    3.2767       1.0000         .10000E-03   10000.    
    20 'Prefactor '    11.665       1.0000         .10000E-03   10000.    
    21 'Prefactor '    59.684       1.0000         .10000E-03   10000.    
    22 'Prefactor '    11.352       1.0000         .10000E-03   10000.    
    23 'Normalizat'    .87917       1.0000         .10000E-01   10.000    
    24 'Prefactor '    .90285       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=   5931.556     FROM MIGRAD    STATUS=CONVERGED    549 CALLS     2723 TOTAL
                     EDM=   .32E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.6%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    7.0193        .10348E-06** at limit **
   2  norm          38.603        15.361        .91341E-07   -.51217E-04
   3  Prefactor     22.294        37.585        .13128E-05   -.66249E-06
   4  Prefactor     .10000E-03    4.3972        .57556E-07** at limit **
   5  Prefactor     5.8980        19.350        .49041E-06   -.15409E-04
   6  Prefactor     .10000E-03    102.13        .40760E-06** at limit **
   7  Prefactor     .10000E-03    7.6709        .43663E-06** at limit **
   8  norm          1.5285        .90723       -.11128E-06   -.11773E-03
   9  norm          5.1483        4.9537        .71507E-08    .19661E-04
  10  Prefactor     .10000E-03    2.5373        .27766E-07** at limit **
  11  Prefactor     18.291        46.936       -.26983E-05   -.51804E-04
  12  norm          .10000E-03    1.7774        .53843E-07** at limit **
  13  Prefactor     .10000E-03    1.6230        .78195E-07** at limit **
  14  Prefactor     .10000E-03    76.131       -.57471E-06** at limit **
  15  Prefactor     .10006E-03    15.472       -.66950E-05** at limit **
  16  Prefactor     .10000E-03    10.581        .55854E-07** at limit **
  17  norm          .10000E-03    9.4165       -.38928E-08** at limit **
  18  Prefactor     .10000E-03    30.544        .18334E-06** at limit **
  19  Prefactor     3.2809        4.7709        .31903E-05    .10947E-03
  20  Prefactor     11.629        39.890        .35728E-05    .46044E-04
  21  Prefactor     59.691        28.556       -.32478E-06   -.13830E-03
  22  Prefactor     11.354        19.161       -.54702E-06   -.49617E-04
  23  Normalizat    .87886        .20535       -.66904E-06    .18746E-04
  24  Prefactor     .90306        .12699       -.91541E-06   -.39648E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  norm       = 38.6032
  Prefactor  = 22.2944
  Prefactor  = 0.0001
  Prefactor  = 5.89799
  Prefactor  = 0.000100001
  Prefactor  = 0.0001
  norm       = 1.52854
  norm       = 5.14828
  Prefactor  = 0.0001
  Prefactor  = 18.2908
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.00010006
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 3.28086
  Prefactor  = 11.6294
  Prefactor  = 59.691
  Prefactor  = 11.3541
  Normalizat = 0.878857
  Prefactor  = 0.903059
 **********
 **   18 **HESSE 
 **********

 FCN=   5931.556     FROM HESSE     STATUS=OK           395 CALLS     3118 TOTAL
                     EDM=   .14E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    7.0330        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          38.603        15.378        .64511E-04   -1.4465    
   3  Prefactor     22.294        37.618        .84813E-04   -1.4763    
   4  Prefactor     .10000E-03    4.4071        .15773E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     5.8980        19.336        .16535E-03   -1.5222    
   6  Prefactor     .10000E-03    102.68        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    7.7431        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          1.5285        .89614        .53492E-04   -1.5461    
   9  norm          5.1483        4.9514        .16163E-03   -1.5254    
  10  Prefactor     .10000E-03    2.5430        .11981E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     18.291        46.774        .93665E-04   -1.4852    
  12  norm          .10000E-03    1.7809        .10027E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    1.6272        .95828E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    76.128        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10006E-03    70.660        .42765E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    10.628        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          .10000E-03    9.4222        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    30.572        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     3.2809        5.1047        .98710E-03   -1.5346    
  20  Prefactor     11.629        39.831        .11729E-03   -1.5026    
  21  Prefactor     59.691        28.639        .51933E-04   -1.4161    
  22  Prefactor     11.354        19.248        .11891E-03   -1.5034    
  23  Normalizat    .87886        .23788        .29274E-03   -.97207    
  24  Prefactor     .90306        .14913        .19935E-03   -.96034    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.4438e-09
Minuit parameter uncertainties:
  1  1.91691e-05
  2  15.3793
  3  37.6579
  4  8.63895e-06
  5  19.3562
  6  0.000732776
  7  8.10871e-05
  8  0.89615
  9  4.95176
  10  3.4217e-06
  11  46.8682
  12  5.04763e-06
  13  6.82047e-06
  14  5.29911e-05
  15  0.00410655
  16  1.41746e-05
  17  9.00045e-06
  18  7.4726e-05
  19  5.10539
  20  39.922
  21  28.6453
  22  19.2586
  23  0.238168
  24  0.1492
Done.

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

Extracting fit parameters...

4FGL J2326.2+0113
   Spectrum: PowerLaw
406    Prefactor:  1.829e+01  4.687e+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:  9.031e-01  1.492e-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.789e-01  2.382e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/893162/likelihoodResults_485568001_485827201_4FGL_J2326.2+0113_daily_bin950.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) = 5930.72844945
delta logL = 0.827819246858

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 5930.50072919
delta logL = 1.05553950429

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .59389E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    6.6643       1.0000          .0000       10.000    
     3 'Normalizat'    .78203       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .94895       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=   5930.501     FROM MIGRAD    STATUS=CONVERGED     61 CALLS      442 TOTAL
                     EDM=   .57E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .55651E-03    .75515E-02    .34493E-03** at limit **
   2  Index         6.6861        1.7864        .90815E-01    .25013E-04
   3  Normalizat    .78230        .45852E-01    .69668E-01   -.58074E-04
   4  Prefactor     .94887        .31827E-01    .45626E-01   -.40884E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000556507
  Index      = 6.68615
  Normalizat = 0.782303
  Prefactor  = 0.948871
 **********
 **   18 **HESSE 
 **********

 FCN=   5930.501     FROM HESSE     STATUS=NOT POSDEF    35 CALLS      477 TOTAL
                     EDM=   .16E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .55651E-03    .19786E-01    .15296E-04   -1.5704    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         6.6861        3.3035        .34259E-02    .34397    
   3  Normalizat    .78230        .16881        .30828E-03   -1.0073    
   4  Prefactor     .94887        .11494        .19499E-03   -.94454    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 1.58055e-10
Minuit parameter uncertainties:
  1  0.00601079
  2  3.66178
  3  0.168922
  4  0.114966
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/893162': 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) = 5930.50072025
delta logL = 1.05554844872

Extracting fit parameters...

4FGL J2326.2+0113
   Spectrum: PowerLaw
406    Prefactor:  5.565e-04  6.011e-03  1.000e-04  1.000e+04 ( 1.000e-14)
407        Index:  6.686e+00  3.662e+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:  9.489e-01  1.150e-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.823e-01  1.689e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 2.49
Ra Dec: 351.575 1.222
Photon Index (Free Index): 6.69 +/- 3.66
Photon Flux (Free Index): 8.56e-08 +/- 6.34e-08
Energy Flux (Free Index): 1.03e-05 +/- 8.09e-06

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/893162/cmap_HighResolution_485568001_485827201_4FGL_J2326.2+0113_daily_bin950.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='6.53e-03', comment='SUCCESS', energy_flux2='1.03e-05', dlogl='1.06e+00', photon_flux2='8.56e-08', job_status='DONE', time_completed='2021-09-29 19:08:29.733307', photon_index_error2='3.66', photon_index2='6.69', ts='0.19', fit_tolerance='1e-08', GAL='0.90', photon_index_error='0.00', photon_flux_upper_limit='8.63e-08', energy_flux_error2='8.09e-06', EG='0.88', time_epoch_completed='1632967709.73', return_code='0', job_id='893162', GAL2='0.95', EG2='0.78', return_code2='102', photon_flux_error2='6.34e-08', ts2='2.49', photon_index='2.12' WHERE bin_id='950' AND source_name='4FGL J2326.2+0113' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep 29 19:08:29 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0038>
Subject: Job 893162: <4FGL_J2326.2+0113_daily_bin950> in cluster <slac> Done

Job <4FGL_J2326.2+0113_daily_bin950> was submitted from host <rhel6-64d> by user <kocevski> in cluster <slac> at Wed Sep 29 18:55:46 2021
Job was executed on host(s) <bullet0038>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Sep 29 18:55:48 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:48 2021
Terminated at Wed Sep 29 19:08:30 2021
Results reported at Wed Sep 29 19:08:30 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2326.2+0113_daily_bin950 351.575 1.2216 485568001 485827201 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 :                                   648.20 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             295.74 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   761 sec.
    Turnaround time :                            764 sec.

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

