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


Performing analysis on: 4FGL_J2326.2+0113_daily_bin982
RA = 351.575, Dec = 1.2216
tmin = 493862401, tmax = 494121601
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='893211', job_status='RUN', time_executed='2021-09-29 18:59:53.873802', time_epoch_executed='1632967193.87' WHERE source_name='4FGL J2326.2+0113' and cadence='daily' and bin_id='982'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/893211

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/893211/ft1_4FGL_J2326.2+0113_daily_bin982.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/893211/ft2_4FGL_J2326.2+0113_daily_bin982.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/893211/ft1_4FGL_J2326.2+0113_daily_bin982.fits outfile=/scratch/kocevski/893211/ft1_filteredMKT_4FGL_J2326.2+0113_daily_bin982.fits ra=351.575 dec=1.2216 rad=12.0 tmin=493862401.0 tmax=494121601.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.60
user 3.37
sys 0.20

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/893211/ft2_4FGL_J2326.2+0113_daily_bin982.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/893211/ft1_filteredMKT_4FGL_J2326.2+0113_daily_bin982.fits evtable="EVENTS" outfile="/scratch/kocevski/893211/ft1_filtered_4FGL_J2326.2+0113_daily_bin982.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/893211/ft1_filtered_4FGL_J2326.2+0113_daily_bin982.fits" evtable="EVENTS" scfile=/scratch/kocevski/893211/ft2_4FGL_J2326.2+0113_daily_bin982.fits sctable="SC_DATA" outfile=/scratch/kocevski/893211/ltcube_493862401_494121601_4FGL_J2326.2+0113_daily_bin982.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/893211/ft2_4FGL_J2326.2+0113_daily_bin982.fits
.....................!
real 11.70
user 11.35
sys 0.32

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/893211/ft1_filtered_4FGL_J2326.2+0113_daily_bin982.fits evtable="EVENTS" scfile=/scratch/kocevski/893211/ft2_4FGL_J2326.2+0113_daily_bin982.fits sctable="SC_DATA" expcube=/scratch/kocevski/893211/ltcube_493862401_494121601_4FGL_J2326.2+0113_daily_bin982.fits outfile=/scratch/kocevski/893211/expmap_493862401_494121601_4FGL_J2326.2+0113_daily_bin982.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/893211/ltcube_493862401_494121601_4FGL_J2326.2+0113_daily_bin982.fits
.....................!
real 189.83
user 184.82
sys 4.62

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/893211/ft1_filtered_4FGL_J2326.2+0113_daily_bin982.fits scfile=/scratch/kocevski/893211/ft2_4FGL_J2326.2+0113_daily_bin982.fits outfile=/scratch/kocevski/893211/cmap_493862401_494121601_4FGL_J2326.2+0113_daily_bin982.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.54
user 0.38
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/893211/ft1_filtered_4FGL_J2326.2+0113_daily_bin982.fits scfile=/scratch/kocevski/893211/ft2_4FGL_J2326.2+0113_daily_bin982.fits outfile=/scratch/kocevski/893211/cmap_HighResolution_493862401_494121601_4FGL_J2326.2+0113_daily_bin982.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/893211/ft1_filtered_4FGL_J2326.2+0113_daily_bin982.fits evtable="EVENTS" scfile=/scratch/kocevski/893211/ft2_4FGL_J2326.2+0113_daily_bin982.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/893211/Model_4FGL_J2326.2+0113_daily_bin982.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/893211/ft1_filtered_4FGL_J2326.2+0113_daily_bin982.fits.....................!
real 64.71
user 63.29
sys 1.18

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    17.422       1.0000         .10000E-03   10000.    
     2 'norm      '    30.349       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    32.104       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    .71750       1.0000         .10000E-03   10000.    
     9 'norm      '    5.5544       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    11.126       1.0000         .10000E-03   10000.    
    13 'Prefactor '    7.3140       1.0000         .10000E-03   10000.    
    14 'Prefactor '    78.957       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    74.130       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .12038E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    23 'Normalizat'    .97886       1.0000         .10000E-01   10.000    
    24 'Prefactor '    .82974       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=   6366.060     FROM MIGRAD    STATUS=CONVERGED    550 CALLS     3076 TOTAL
                     EDM=   .19E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.5%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     17.422        14.589       -.25125E-06    .12359E-04
   2  norm          30.351        14.676       -.49000E-06    .58331E-04
   3  Prefactor     .10000E-03    21.955        .98088E-06** at limit **
   4  Prefactor     .10000E-03    6.6184       -.18286E-07** at limit **
   5  Prefactor     32.106        17.107       -.10459E-05    .15686E-03
   6  Prefactor     .10000E-03    24.751        .62943E-07** at limit **
   7  Prefactor     .10000E-03    2.7176       -.26699E-08** at limit **
   8  norm          .71770        .72608        .20928E-06   -.31419E-04
   9  norm          5.5540        4.1956       -.55298E-08    .38445E-05
  10  Prefactor     .10000E-03    6.1372        .74102E-07** at limit **
  11  Prefactor     .10000E-03    14.112       -.13788E-07** at limit **
  12  norm          11.126        9.3008       -.59630E-06   -.13579E-02
  13  Prefactor     7.3135        6.7663       -.12870E-05   -.21188E-02
  14  Prefactor     78.930        173.17       -.28149E-04    .11617E-03
  15  Prefactor     .10000E-03    5.0424        .17544E-06** at limit **
  16  Prefactor     .10000E-03    22.315       -.29922E-06** at limit **
  17  norm          .10000E-03    5.6489        .57682E-07** at limit **
  18  Prefactor     .10000E-03    22.528       -.74185E-06** at limit **
  19  Prefactor     .10000E-03    1.8348        .13159E-06** at limit **
  20  Prefactor     74.123        41.374       -.12336E-05    .77466E-04
  21  Prefactor     .10000E-03    20.135       -.95860E-07** at limit **
  22  Prefactor     .10000E-03    8.3994       -.74757E-08** at limit **
  23  Normalizat    .97890        .19447        .10762E-05   -.22682E-04
  24  Prefactor     .82967        .12650        .47226E-06    .10769E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 17.4222
  norm       = 30.3508
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 32.106
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.717702
  norm       = 5.55405
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 11.1262
  Prefactor  = 7.31349
  Prefactor  = 78.9305
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 74.1233
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Normalizat = 0.978897
  Prefactor  = 0.829673
 **********
 **   18 **HESSE 
 **********

 FCN=   6366.060     FROM HESSE     STATUS=OK           395 CALLS     3471 TOTAL
                     EDM=   .39E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     17.422        14.601        .95956E-04   -1.4873    
   2  norm          30.351        14.678        .72729E-04   -1.4606    
   3  Prefactor     .10000E-03    21.980        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    6.6363        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     32.106        17.054        .70718E-04   -1.4574    
   6  Prefactor     .10000E-03    24.791        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    2.7236        .12843E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          .71770        .69252        .63906E-03   -1.5539    
   9  norm          5.5540        4.1913        .13710E-03   -1.5237    
  10  Prefactor     .10000E-03    6.1683        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    14.115        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          11.126        9.4170        .60054E-03   -1.5041    
  13  Prefactor     7.3135        7.3978        .74154E-03   -1.5167    
  14  Prefactor     78.930        162.25        .45195E-04   -1.3929    
  15  Prefactor     .10000E-03    5.0675        .17494E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    22.397        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          .10000E-03    5.6523        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    22.536        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    1.8660        .10548E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     74.123        41.178        .46633E-04   -1.3984    
  21  Prefactor     .10000E-03    208.32        .67152E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     .10000E-03    8.4418        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Normalizat    .97890        .22101        .28188E-03   -.93741    
  24  Prefactor     .82967        .14528        .20592E-03   -.98644    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.88312e-09
Minuit parameter uncertainties:
  1  14.6037
  2  14.6795
  3  7.79134e-05
  4  1.36187e-07
  5  17.0564
  6  2.08277e-05
  7  1.67085e-06
  8  0.692528
  9  4.19148
  10  1.20138e-05
  11  5.56346e-06
  12  9.4183
  13  7.39872
  14  163.169
  15  3.8957e-05
  16  5.68351e-05
  17  1.51707e-05
  18  4.94009e-05
  19  1.7943e-05
  20  41.1938
  21  0.000398625
  22  6.62407e-06
  23  0.221212
  24  0.145348
Done.

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

Extracting fit parameters...

4FGL J2326.2+0113
   Spectrum: PowerLaw
406    Prefactor:  1.000e-04  5.563e-06  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.297e-01  1.453e-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:  9.789e-01  2.212e-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.51e-08 ph cm-2 s-1
Energy Flux Upper Limit: 3.41e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/893211/likelihoodResults_493862401_494121601_4FGL_J2326.2+0113_daily_bin982.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) = 6366.06081042
delta logL = -0.000337147293067

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 6366.06047331
delta logL = -3.64607330994e-08

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 'Index     '    2.0986       1.0000          .0000       10.000    
     3 'Normalizat'    .97891       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .82963       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=   6366.060     FROM MIGRAD    STATUS=CONVERGED     89 CALLS      240 TOTAL
                     EDM=   .67E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10371E-03    7.5705        .18142E-01** at limit **
   2  Index         1.9768        5.9754        .50000        .92602E-05
   3  Normalizat    .97890        .33105E-02    .28188E-03    .66547E-05
   4  Prefactor     .82967        .22565E-02    .20592E-03    .68460E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000103711
  Index      = 1.97678
  Normalizat = 0.978897
  Prefactor  = 0.829673
 **********
 **   18 **HESSE 
 **********

 FCN=   6366.060     FROM HESSE     STATUS=NOT POSDEF    29 CALLS      269 TOTAL
                     EDM=   .12E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10371E-03    139.76        .30946E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         1.9768        6.4203        .50000       -.64932    
   3  Normalizat    .97890        .14374E-01    .11275E-04   -.93741    
   4  Prefactor     .82967        .97980E-02    .82368E-05   -.98644    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 1.24751e-08
Minuit parameter uncertainties:
  1  0.0456534
  2  660.369
  3  0.0143745
  4  0.00979802
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/893211': 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) = 6366.06047301
delta logL = 2.54995029536e-07

Extracting fit parameters...

4FGL J2326.2+0113
   Spectrum: PowerLaw
406    Prefactor:  1.037e-04  4.565e-02  1.000e-04  1.000e+04 ( 1.000e-14)
407        Index:  1.977e+00  6.604e+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:  8.297e-01  9.798e-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:  9.789e-01  1.437e-02  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/893211/cmap_HighResolution_493862401_494121601_4FGL_J2326.2+0113_daily_bin982.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='3.41e-03', job_status='DONE', photon_flux_upper_limit='4.51e-08', time_completed='2021-09-29 19:11:05.557964', job_id='893211', GAL2='0.83', fit_tolerance='1e-08', EG2='0.98', EG='0.98', time_epoch_completed='1632967865.56', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.83', dlogl='2.55e-07', ts2='-0.00', photon_index_error='0.00', photon_index='2.12' WHERE bin_id='982' AND source_name='4FGL J2326.2+0113' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep 29 19:11:05 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0262>
Subject: Job 893211: <4FGL_J2326.2+0113_daily_bin982> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2326.2+0113_daily_bin982 351.575 1.2216 493862401 494121601 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 :                                   667.05 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             253.32 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   911 sec.
    Turnaround time :                            915 sec.

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

