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


Performing analysis on: 4FGL_J2326.2+0113_daily_bin666
RA = 351.575, Dec = 1.2216
tmin = 411955201, tmax = 412214401
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='891691', job_status='RUN', time_executed='2021-09-29 18:54:33.937103', time_epoch_executed='1632966873.94' WHERE source_name='4FGL J2326.2+0113' and cadence='daily' and bin_id='666'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/891691

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/891691/ft1_4FGL_J2326.2+0113_daily_bin666.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/891691/ft2_4FGL_J2326.2+0113_daily_bin666.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/891691/ft1_4FGL_J2326.2+0113_daily_bin666.fits outfile=/scratch/kocevski/891691/ft1_filteredMKT_4FGL_J2326.2+0113_daily_bin666.fits ra=351.575 dec=1.2216 rad=12.0 tmin=411955201.0 tmax=412214401.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 5.55
user 5.30
sys 0.24

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

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

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

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

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/891691/ft1_filtered_4FGL_J2326.2+0113_daily_bin666.fits evtable="EVENTS" scfile=/scratch/kocevski/891691/ft2_4FGL_J2326.2+0113_daily_bin666.fits sctable="SC_DATA" expcube=/scratch/kocevski/891691/ltcube_411955201_412214401_4FGL_J2326.2+0113_daily_bin666.fits outfile=/scratch/kocevski/891691/expmap_411955201_412214401_4FGL_J2326.2+0113_daily_bin666.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/891691/ltcube_411955201_412214401_4FGL_J2326.2+0113_daily_bin666.fits
.....................!
real 190.22
user 185.07
sys 4.82

Generating the xml model:
radLim = 0.001
maxRad = 12
normsOnly = True
freeVariableSources = True
Fixing all sources to their catalog values, except variable sources
Creating file and adding sources from 4FGL
Added 160 point sources and 0 extended sources

Setting source of interest to:
4FGL J2326.2+0113 @ 351.575 1.2216

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/891691/ft1_filtered_4FGL_J2326.2+0113_daily_bin666.fits scfile=/scratch/kocevski/891691/ft2_4FGL_J2326.2+0113_daily_bin666.fits outfile=/scratch/kocevski/891691/cmap_411955201_412214401_4FGL_J2326.2+0113_daily_bin666.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.52
user 0.37
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/891691/ft1_filtered_4FGL_J2326.2+0113_daily_bin666.fits scfile=/scratch/kocevski/891691/ft2_4FGL_J2326.2+0113_daily_bin666.fits outfile=/scratch/kocevski/891691/cmap_HighResolution_411955201_412214401_4FGL_J2326.2+0113_daily_bin666.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.53
user 0.38
sys 0.15

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    24.008       1.0000         .10000E-03   10000.    
     2 'norm      '    20.829       1.0000         .10000E-03   10000.    
     3 'Prefactor '    41.072       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    74.213       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     9 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    69.550       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 '    .10073E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    5.9485       1.0000         .10000E-03   10000.    
    16 'Prefactor '    42.947       1.0000         .10000E-03   10000.    
    17 'norm      '    .10011E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    154.93       1.0000         .10000E-03   10000.    
    19 'Prefactor '    12.646       1.0000         .10000E-03   10000.    
    20 'Prefactor '    130.13       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
    23 'Normalizat'    .50723E-01   1.0000         .10000E-01   10.000    
    24 'Prefactor '    1.1743       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=   1709.008     FROM MIGRAD    STATUS=CONVERGED    942 CALLS     3535 TOTAL
                     EDM=   .19E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     24.013        41.658        .81753E-04   -.22493E-04
   2  norm          20.832        37.291        .87761E-04   -.13731E-04
   3  Prefactor     41.080        68.611        .62548E-04   -.99513E-05
   4  Prefactor     .10000E-03    8.0930        .11486E-02** at limit **
   5  Prefactor     74.210        51.085        .46607E-04   -.11538E-04
   6  Prefactor     .10000E-03    86.486        .18142E-02** at limit **
   7  Prefactor     .10000E-03    10.931        .13339E-02** at limit **
   8  norm          .10000E-03    .82578        .36536E-03** at limit **
   9  norm          .10000E-03    4.9885        .90152E-03** at limit **
  10  Prefactor     .10000E-03    17.517        .16877E-02** at limit **
  11  Prefactor     69.550        115.61        .48133E-04   -.57159E-05
  12  norm          .10000E-03    36.083        .36285E-03** at limit **
  13  Prefactor     .10000E-03    18.437        .17219E-02** at limit **
  14  Prefactor     .10000E-03    373.44        .18142E-02** at limit **
  15  Prefactor     5.9694        43.478        .16464E-03   -.10150E-04
  16  Prefactor     42.953        57.565        .61173E-04   -.18166E-04
  17  norm          .10000E-03    28.288        .18142E-02** at limit **
  18  Prefactor     154.96        176.06        .16194E-03   -.63183E-05
  19  Prefactor     12.640        15.344        .11264E-03   -.48571E-04
  20  Prefactor     130.14        88.752        .35295E-04   -.17619E-04
  21  Prefactor     .10000E-03    73.360        .18142E-02** at limit **
  22  Prefactor     .10000E-03    38.333        .18142E-02** at limit **
  23  Normalizat    .50693E-01    1.5916        .99443E-02    .15779E-03
  24  Prefactor     1.1743        .31852        .16861E-03   -.50565E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 24.0132
  norm       = 20.8325
  Prefactor  = 41.0798
  Prefactor  = 0.0001
  Prefactor  = 74.2101
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 69.55
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 5.96944
  Prefactor  = 42.9526
  norm       = 0.0001
  Prefactor  = 154.964
  Prefactor  = 12.6404
  Prefactor  = 130.138
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Normalizat = 0.0506929
  Prefactor  = 1.1743
 **********
 **   18 **HESSE 
 **********

 FCN=   1709.008     FROM HESSE     STATUS=OK           375 CALLS     3910 TOTAL
                     EDM=   .12E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     24.013        40.664        .32701E-05   -1.4728    
   2  norm          20.832        37.050        .35105E-05   -1.4795    
   3  Prefactor     41.080        68.393        .25019E-05   -1.4425    
   4  Prefactor     .10000E-03    8.0931        .22973E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     74.210        50.974        .93213E-05   -1.3983    
   6  Prefactor     .10000E-03    86.489        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    10.932        .26677E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          .10000E-03    .82579        .73071E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          .10000E-03    4.9885        .18030E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    17.518        .33754E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     69.550        115.44        .96265E-05   -1.4038    
  12  norm          .10000E-03    36.085        .72569E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    18.445        .34438E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    373.44        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     5.9694        43.411        .65857E-05   -1.5219    
  16  Prefactor     42.953        57.335        .24469E-05   -1.4396    
  17  norm          .10000E-03    28.288        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     154.96        175.57        .64776E-05   -1.3212    
  19  Prefactor     12.640        15.143        .45057E-05   -1.4997    
  20  Prefactor     130.14        88.305        .70590E-05   -1.3421    
  21  Prefactor     .10000E-03    73.381        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     .10000E-03    38.337        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Normalizat    .50693E-01    1.2004        .19889E-02   -1.4431    
  24  Prefactor     1.1743        .28131        .33723E-04   -.87126    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.1539e-11
Minuit parameter uncertainties:
  1  40.711
  2  37.0909
  3  68.5235
  4  1.39767e-08
  5  51.0042
  6  7.68918e-05
  7  1.45127e-06
  8  1.0717e-06
  9  3.20071e-07
  10  2.83404e-06
  11  115.818
  12  8.12604e-06
  13  1.47684e-06
  14  0.000115147
  15  32.2283
  16  57.409
  17  1.27523e-05
  18  176.164
  19  15.1478
  20  88.3951
  21  9.84661e-06
  22  1.74703e-05
  23  0.452411
  24  0.28167
Done.

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

Extracting fit parameters...

4FGL J2326.2+0113
   Spectrum: PowerLaw
406    Prefactor:  6.955e+01  1.158e+02  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.174e+00  2.817e-01  0.000e+00  1.000e+01 ( 1.000e+00)
524        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
525        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
522   Normalization:  5.069e-02  4.524e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 0.52
Ra Dec: 351.575 1.222
Photon Flux Upper Limit: 2.37e-07 ph cm-2 s-1
Energy Flux Upper Limit: 1.80e-02 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/891691/likelihoodResults_411955201_412214401_4FGL_J2326.2+0113_daily_bin666.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) = 1708.58000182
delta logL = 0.427929226352

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 1708.57238381
delta logL = 0.435547243405

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    3.0041       1.0000         .10000E-03   10000.    
     2 'Index     '    3.8056       1.0000          .0000       10.000    
     3 'Normalizat'    .10001E-01   1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.1864       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=   1708.572     FROM MIGRAD    STATUS=CONVERGED     59 CALLS      348 TOTAL
                     EDM=   .12E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     3.0143        107.37        .58546E-02    .46173E-04
   2  Index         3.8045        3.6636        .76805E-01    .50934E-04
   3  Normalizat    .10000E-01    .12376        .21795    ** at limit **
   4  Prefactor     1.1864        .84187E-01    .34960E-01    .12006E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 3.01425
  Index      = 3.80452
  Normalizat = 0.01
  Prefactor  = 1.18639
 **********
 **   18 **HESSE 
 **********

 FCN=   1708.572     FROM HESSE     STATUS=NOT POSDEF    33 CALLS      381 TOTAL
                     EDM=   .91E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     3.0143        199.34        .73868E-04   -1.5361    
   2  Index         3.8045        6.9021        .30323E-02   -.24143    
   3  Normalizat    .10000E-01    1.4097        .13203E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     1.1864        .13577        .16723E-03   -.86751    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 9.08138e-08
Minuit parameter uncertainties:
  1  49.1964
  2  6.40032
  3  9.98203e-06
  4  0.135809
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/891691': 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) = 1708.5723832
delta logL = 0.435547846804

Extracting fit parameters...

4FGL J2326.2+0113
   Spectrum: PowerLaw
406    Prefactor:  3.014e+00  4.920e+01  1.000e-04  1.000e+04 ( 1.000e-14)
407        Index:  3.805e+00  6.400e+00  0.000e+00  1.000e+01 (-1.000e+00)
408        Scale:  2.170e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
523    Prefactor:  1.186e+00  1.358e-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.000e-02  9.982e-06  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 1.42
Ra Dec: 351.575 1.222
Photon Index (Free Index): 3.80 +/- 6.40
Photon Flux (Free Index): 1.31e-07 +/- 2.02e-07
Energy Flux (Free Index): 2.03e-05 +/- 2.17e-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/891691/cmap_HighResolution_411955201_412214401_4FGL_J2326.2+0113_daily_bin666.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.80e-02', comment='SUCCESS', energy_flux2='2.03e-05', dlogl='4.36e-01', photon_flux2='1.31e-07', job_status='DONE', time_completed='2021-09-29 19:01:50.226177', photon_index_error2='6.40', photon_index2='3.80', ts='0.52', fit_tolerance='1e-08', GAL='1.17', photon_index_error='0.00', photon_flux_upper_limit='2.37e-07', energy_flux_error2='2.17e-05', EG='0.05', time_epoch_completed='1632967310.23', return_code='0', job_id='891691', GAL2='1.19', EG2='0.01', return_code2='102', photon_flux_error2='2.02e-07', ts2='1.42', photon_index='2.12' WHERE bin_id='666' AND source_name='4FGL J2326.2+0113' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep 29 19:01:50 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0236>
Subject: Job 891691: <4FGL_J2326.2+0113_daily_bin666> in cluster <slac> Done

Job <4FGL_J2326.2+0113_daily_bin666> was submitted from host <rhel6-64h> by user <kocevski> in cluster <slac> at Wed Sep 29 18:50:57 2021
Job was executed on host(s) <bullet0236>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Sep 29 18:50:58 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:50:58 2021
Terminated at Wed Sep 29 19:01:50 2021
Results reported at Wed Sep 29 19:01:50 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2326.2+0113_daily_bin666 351.575 1.2216 411955201 412214401 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 :                                   435.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             251.09 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   652 sec.
    Turnaround time :                            653 sec.

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

