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


Performing analysis on: 4FGL_J2326.2+0113_daily_bin799
RA = 351.575, Dec = 1.2216
tmin = 446428801, tmax = 446688001
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='892910', job_status='RUN', time_executed='2021-09-29 18:58:11.148470', time_epoch_executed='1632967091.15' WHERE source_name='4FGL J2326.2+0113' and cadence='daily' and bin_id='799'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/892910

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/892910/ft1_4FGL_J2326.2+0113_daily_bin799.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/892910/ft2_4FGL_J2326.2+0113_daily_bin799.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/892910/ft1_4FGL_J2326.2+0113_daily_bin799.fits outfile=/scratch/kocevski/892910/ft1_filteredMKT_4FGL_J2326.2+0113_daily_bin799.fits ra=351.575 dec=1.2216 rad=12.0 tmin=446428801.0 tmax=446688001.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.46
user 3.24
sys 0.21

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/892910/ft2_4FGL_J2326.2+0113_daily_bin799.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/892910/ft1_filteredMKT_4FGL_J2326.2+0113_daily_bin799.fits evtable="EVENTS" outfile="/scratch/kocevski/892910/ft1_filtered_4FGL_J2326.2+0113_daily_bin799.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/892910/ft1_filtered_4FGL_J2326.2+0113_daily_bin799.fits" evtable="EVENTS" scfile=/scratch/kocevski/892910/ft2_4FGL_J2326.2+0113_daily_bin799.fits sctable="SC_DATA" outfile=/scratch/kocevski/892910/ltcube_446428801_446688001_4FGL_J2326.2+0113_daily_bin799.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/892910/ft2_4FGL_J2326.2+0113_daily_bin799.fits
.....................!
real 11.87
user 11.54
sys 0.29

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/892910/ft1_filtered_4FGL_J2326.2+0113_daily_bin799.fits evtable="EVENTS" scfile=/scratch/kocevski/892910/ft2_4FGL_J2326.2+0113_daily_bin799.fits sctable="SC_DATA" expcube=/scratch/kocevski/892910/ltcube_446428801_446688001_4FGL_J2326.2+0113_daily_bin799.fits outfile=/scratch/kocevski/892910/expmap_446428801_446688001_4FGL_J2326.2+0113_daily_bin799.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/892910/ltcube_446428801_446688001_4FGL_J2326.2+0113_daily_bin799.fits
.....................!
real 190.71
user 185.79
sys 4.57

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/892910/ft1_filtered_4FGL_J2326.2+0113_daily_bin799.fits scfile=/scratch/kocevski/892910/ft2_4FGL_J2326.2+0113_daily_bin799.fits outfile=/scratch/kocevski/892910/cmap_446428801_446688001_4FGL_J2326.2+0113_daily_bin799.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/892910/ft1_filtered_4FGL_J2326.2+0113_daily_bin799.fits scfile=/scratch/kocevski/892910/ft2_4FGL_J2326.2+0113_daily_bin799.fits outfile=/scratch/kocevski/892910/cmap_HighResolution_446428801_446688001_4FGL_J2326.2+0113_daily_bin799.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.14

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
     2 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    11.212       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10012E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    49.827       1.0000         .10000E-03   10000.    
     6 'Prefactor '    2.7079       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10237E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    .33369       1.0000         .10000E-03   10000.    
     9 'norm      '    .10014E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10200E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    2.9779       1.0000         .10000E-03   10000.    
    13 'Prefactor '    5.3654       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10023E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10278E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    23.630       1.0000         .10000E-03   10000.    
    17 'norm      '    30.942       1.0000         .10000E-03   10000.    
    18 'Prefactor '    56.743       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10119E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10350E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    23 'Normalizat'    1.0743       1.0000         .10000E-01   10.000    
    24 'Prefactor '    1.0375       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=   6798.062     FROM MIGRAD    STATUS=CONVERGED    522 CALLS     2689 TOTAL
                     EDM=   .17E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .6%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    9.6296       -.76212E-05** at limit **
   2  norm          .10000E-03    4.4243        .24598E-05** at limit **
   3  Prefactor     11.205        40.085       -.15566E-04   -.80810E-05
   4  Prefactor     .10000E-03    11.662        .84646E-05** at limit **
   5  Prefactor     49.826        22.058       -.58281E-06    .53718E-04
   6  Prefactor     2.6600        126.79       -.17216E-03    .13425E-04
   7  Prefactor     .10001E-03    4.1496        .13954E-05** at limit **
   8  norm          .33404        .92292       -.10214E-06   -.14006E-02
   9  norm          .10000E-03    1.8843        .44842E-06** at limit **
  10  Prefactor     .10000E-03    8.2826        .21948E-05** at limit **
  11  Prefactor     .10000E-03    16.369       -.95581E-05** at limit **
  12  norm          2.9552        17.839       -.45604E-05   -.35517E-03
  13  Prefactor     5.3830        13.654       -.11938E-05   -.14215E-03
  14  Prefactor     .10000E-03    55.459        .61566E-05** at limit **
  15  Prefactor     .10000E-03    4.4687       -.23995E-05** at limit **
  16  Prefactor     23.638        32.393        .91159E-05    .26121E-04
  17  norm          30.928        20.398       -.33088E-05    .97650E-04
  18  Prefactor     56.743        59.671        .90567E-06    .10931E-03
  19  Prefactor     .10000E-03    1.4645        .59125E-07** at limit **
  20  Prefactor     .10000E-03    14.386        .28834E-05** at limit **
  21  Prefactor     .10000E-03    24.355        .27553E-05** at limit **
  22  Prefactor     .10000E-03    4.9881       -.21037E-06** at limit **
  23  Normalizat    1.0742        .20724        .82151E-05    .56876E-04
  24  Prefactor     1.0375        .13580       -.10574E-05    .61059E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 11.2053
  Prefactor  = 0.0001
  Prefactor  = 49.8261
  Prefactor  = 2.66003
  Prefactor  = 0.000100005
  norm       = 0.334044
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 2.95518
  Prefactor  = 5.38303
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 23.6375
  norm       = 30.9277
  Prefactor  = 56.7428
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000100001
  Prefactor  = 0.0001
  Normalizat = 1.07419
  Prefactor  = 1.03751
 **********
 **   18 **HESSE 
 **********

 FCN=   6798.062     FROM HESSE     STATUS=OK           387 CALLS     3076 TOTAL
                     EDM=   .36E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    9.6699        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          .10000E-03    4.4295        .16935E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     11.205        40.102        .11964E-03   -1.5038    
   4  Prefactor     .10000E-03    11.789        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     49.826        22.068        .56811E-04   -1.4295    
   6  Prefactor     2.6600        128.03        .24753E-03   -1.5382    
   7  Prefactor     .10001E-03    4.1789        .16426E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          .33404        .91522        .12271E-03   -1.5592    
   9  norm          .10000E-03    1.8891        .11053E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    8.3208        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    16.378        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          2.9552        14.886        .23527E-03   -1.5364    
  13  Prefactor     5.3830        12.554        .17350E-03   -1.5244    
  14  Prefactor     .10000E-03    55.461        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    4.4726        .17000E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     23.638        32.119        .82402E-04   -1.4735    
  17  norm          30.928        20.337        .72030E-04   -1.4595    
  18  Prefactor     56.743        59.802        .53255E-04   -1.4200    
  19  Prefactor     .10000E-03    1.4699        .97319E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    14.400        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10000E-03    24.495        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     .10000E-03    4.9954        .17984E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Normalizat    1.0742        .23858        .30131E-03   -.90585    
  24  Prefactor     1.0375        .15750        .20966E-03   -.91490    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.55654e-09
Minuit parameter uncertainties:
  1  4.04972e-05
  2  8.41534e-06
  3  40.199
  4  5.94986e-05
  5  22.0716
  6  36.9926
  7  0.000301418
  8  0.915261
  9  4.71228e-05
  10  5.95522e-05
  11  1.17426e-05
  12  13.27
  13  12.5598
  14  2.27059e-05
  15  2.73241e-05
  16  32.1422
  17  20.3413
  18  59.8653
  19  8.85272e-06
  20  5.43474e-05
  21  0.000284041
  22  1.53257e-05
  23  0.238814
  24  0.157571
Done.

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

Extracting fit parameters...

4FGL J2326.2+0113
   Spectrum: PowerLaw
406    Prefactor:  1.000e-04  1.174e-05  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.038e+00  1.576e-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.074e+00  2.388e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/892910/likelihoodResults_446428801_446688001_4FGL_J2326.2+0113_daily_bin799.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) = 6798.06201353
delta logL = -0.000290781727927

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 6798.06172562
delta logL = -2.87074908556e-06

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .14162E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.3229       1.0000          .0000       10.000    
     3 'Normalizat'    1.0742       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0375       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=   6798.062     FROM MIGRAD    STATUS=CONVERGED     87 CALLS      272 TOTAL
                     EDM=   .35E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10229E-03    4.8228        .18142E-01** at limit **
   2  Index         2.2515        8.8543        .50000        .25475E-04
   3  Normalizat    1.0742        .30880E-02    .30130E-03   -.54186E-03
   4  Prefactor     1.0375        .21285E-02    .20966E-03   -.98762E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000102286
  Index      = 2.25151
  Normalizat = 1.0742
  Prefactor  = 1.0375
 **********
 **   18 **HESSE 
 **********

 FCN=   6798.062     FROM HESSE     STATUS=NOT POSDEF    29 CALLS      301 TOTAL
                     EDM=   .30E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10229E-03    41.843        .29477E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.2515        7.6882        .50000       -.58200    
   3  Normalizat    1.0742        .91149E-02    .60261E-04   -.90585    
   4  Prefactor     1.0375        .62827E-02    .41933E-04   -.91490    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 2.99405e-09
Minuit parameter uncertainties:
  1  0.0195723
  2  126.476
  3  0.00911492
  4  0.00628266
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/892910': 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) = 6798.06172351
delta logL = -7.54876964493e-07

Extracting fit parameters...

4FGL J2326.2+0113
   Spectrum: PowerLaw
406    Prefactor:  1.023e-04  1.957e-02  1.000e-04  1.000e+04 ( 1.000e-14)
407        Index:  2.252e+00  1.265e+02  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.037e+00  6.283e-03  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.074e+00  9.115e-03  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
Ra Dec: 351.575 1.222

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/892910/cmap_HighResolution_446428801_446688001_4FGL_J2326.2+0113_daily_bin799.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='3.63e-03', job_status='DONE', photon_flux_upper_limit='4.79e-08', time_completed='2021-09-29 19:09:28.254616', job_id='892910', GAL2='1.04', fit_tolerance='1e-08', EG2='1.07', EG='1.07', time_epoch_completed='1632967768.25', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.04', dlogl='-7.55e-07', ts2='-0.00', photon_index_error='0.00', photon_index='2.12' WHERE bin_id='799' AND source_name='4FGL J2326.2+0113' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep 29 19:09:28 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0083>
Subject: Job 892910: <4FGL_J2326.2+0113_daily_bin799> in cluster <slac> Done

Job <4FGL_J2326.2+0113_daily_bin799> 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) <bullet0083>, 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:09:29 2021
Results reported at Wed Sep 29 19:09:29 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2326.2+0113_daily_bin799 351.575 1.2216 446428801 446688001 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 :                                   674.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             299.71 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   842 sec.
    Turnaround time :                            845 sec.

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

