/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 111 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 = 7401
number of fields = 27
No RA_SUN column yet. Adding RA_SUN/DEC_SUN columns.
Done.


Performing analysis on: 4FGL_J2326.2+0113_daily_bin402
RA = 351.575, Dec = 1.2216
tmin = 343526401, tmax = 343785601
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='891277', job_status='RUN', time_executed='2021-09-29 18:52:18.808346', time_epoch_executed='1632966738.81' WHERE source_name='4FGL J2326.2+0113' and cadence='daily' and bin_id='402'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/891277

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/891277/ft1_4FGL_J2326.2+0113_daily_bin402.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/891277/ft2_4FGL_J2326.2+0113_daily_bin402.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/891277/ft1_4FGL_J2326.2+0113_daily_bin402.fits outfile=/scratch/kocevski/891277/ft1_filteredMKT_4FGL_J2326.2+0113_daily_bin402.fits ra=351.575 dec=1.2216 rad=12.0 tmin=343526401.0 tmax=343785601.0 emin=100.0 emax=100000.0 zmin=0.0 zmax=90.0 evclass=128 evtype="INDEF" convtype=-1 phasemin=0.0 phasemax=1.0 evtable="EVENTS" chatter=2 clobber=yes debug=no gui=no mode="ql"

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

Done.
real 3.43
user 3.22
sys 0.19

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/891277/ft2_4FGL_J2326.2+0113_daily_bin402.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/891277/ft1_filteredMKT_4FGL_J2326.2+0113_daily_bin402.fits evtable="EVENTS" outfile="/scratch/kocevski/891277/ft1_filtered_4FGL_J2326.2+0113_daily_bin402.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/891277/ft1_filtered_4FGL_J2326.2+0113_daily_bin402.fits" evtable="EVENTS" scfile=/scratch/kocevski/891277/ft2_4FGL_J2326.2+0113_daily_bin402.fits sctable="SC_DATA" outfile=/scratch/kocevski/891277/ltcube_343526401_343785601_4FGL_J2326.2+0113_daily_bin402.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/891277/ft2_4FGL_J2326.2+0113_daily_bin402.fits
.....................!
real 12.07
user 11.66
sys 0.36

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/891277/ft1_filtered_4FGL_J2326.2+0113_daily_bin402.fits evtable="EVENTS" scfile=/scratch/kocevski/891277/ft2_4FGL_J2326.2+0113_daily_bin402.fits sctable="SC_DATA" expcube=/scratch/kocevski/891277/ltcube_343526401_343785601_4FGL_J2326.2+0113_daily_bin402.fits outfile=/scratch/kocevski/891277/expmap_343526401_343785601_4FGL_J2326.2+0113_daily_bin402.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/891277/ltcube_343526401_343785601_4FGL_J2326.2+0113_daily_bin402.fits
.....................!
real 190.54
user 185.02
sys 5.17

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/891277/ft1_filtered_4FGL_J2326.2+0113_daily_bin402.fits scfile=/scratch/kocevski/891277/ft2_4FGL_J2326.2+0113_daily_bin402.fits outfile=/scratch/kocevski/891277/cmap_343526401_343785601_4FGL_J2326.2+0113_daily_bin402.fits algorithm="CMAP" ebinalg="LOG" emin=30.0 emax=200000.0 ebinfile=NONE tbinalg="LIN" tbinfile=NONE nxpix=160 nypix=160 binsz=0.25 coordsys="CEL" xref=351.575 yref=1.2216 axisrot=0.0 rafield="RA" decfield="DEC" proj="AIT" hpx_ordering_scheme="RING" hpx_order=3 hpx_ebin=yes hpx_region="" evtable="EVENTS" sctable="SC_DATA" efield="ENERGY" tfield="TIME" chatter=2 clobber=yes debug=no gui=no mode="ql"

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

This is gtbin version HEAD
real 0.53
user 0.38
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/891277/ft1_filtered_4FGL_J2326.2+0113_daily_bin402.fits scfile=/scratch/kocevski/891277/ft2_4FGL_J2326.2+0113_daily_bin402.fits outfile=/scratch/kocevski/891277/cmap_HighResolution_343526401_343785601_4FGL_J2326.2+0113_daily_bin402.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.55
user 0.37
sys 0.16

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

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      '    .10001E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .28993E-02   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    1.5853       1.0000         .10000E-03   10000.    
     9 'norm      '    .13953E-02   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    86.576       1.0000         .10000E-03   10000.    
    12 'norm      '    .10006E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    3.2326       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10042E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    13.243       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    31.745       1.0000         .10000E-03   10000.    
    21 'Prefactor '    18.059       1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    23 'Normalizat'    .81632       1.0000         .10000E-01   10.000    
    24 'Prefactor '    1.0160       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=   4988.528     FROM MIGRAD    STATUS=CONVERGED    529 CALLS     2687 TOTAL
                     EDM=   .18E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.2%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    7.7012        .45222E-06** at limit **
   2  norm          .10000E-03    5.9426        .57855E-06** at limit **
   3  Prefactor     .10000E-03    14.556        .61536E-05** at limit **
   4  Prefactor     .10000E-03    2.7296       -.68859E-08** at limit **
   5  Prefactor     .10092E-03    15.091       -.36849E-05** at limit **
   6  Prefactor     .10000E-03    28.435        .92166E-05** at limit **
   7  Prefactor     .10000E-03    15.669        .30231E-05** at limit **
   8  norm          1.5851        1.0371        .31410E-07   -.61082E-03
   9  norm          .10071E-03    4.5234        .14372E-05** at limit **
  10  Prefactor     .10000E-03    2.8501        .33963E-07** at limit **
  11  Prefactor     86.572        57.603       -.40882E-05    .64146E-04
  12  norm          .10000E-03    2.3016        .27852E-07** at limit **
  13  Prefactor     3.2325        5.1178        .26656E-05   -.29856E-03
  14  Prefactor     .10000E-03    56.907       -.40148E-05** at limit **
  15  Prefactor     .10000E-03    12.325       -.73831E-05** at limit **
  16  Prefactor     .10000E-03    13.364        .85223E-06** at limit **
  17  norm          13.261        19.356        .56520E-05    .21549E-03
  18  Prefactor     .10000E-03    20.202       -.16186E-04** at limit **
  19  Prefactor     .10000E-03    2.6145       -.21652E-06** at limit **
  20  Prefactor     31.747        35.881        .19866E-05    .12705E-04
  21  Prefactor     18.062        27.181        .19086E-05   -.15349E-04
  22  Prefactor     .10000E-03    13.871        .47457E-05** at limit **
  23  Normalizat    .81634        .20956       -.11845E-05   -.20158E-04
  24  Prefactor     1.0160        .14221       -.41296E-06    .30653E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.00010092
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 1.58508
  norm       = 0.000100714
  Prefactor  = 0.0001
  Prefactor  = 86.5718
  norm       = 0.0001
  Prefactor  = 3.2325
  Prefactor  = 0.0001
  Prefactor  = 0.000100001
  Prefactor  = 0.0001
  norm       = 13.2612
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 31.7473
  Prefactor  = 18.0622
  Prefactor  = 0.0001
  Normalizat = 0.816337
  Prefactor  = 1.01598
 **********
 **   18 **HESSE 
 **********

 FCN=   4988.528     FROM HESSE     STATUS=OK           389 CALLS     3076 TOTAL
                     EDM=   .25E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    7.7408        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          .10000E-03    5.9680        .16816E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    14.569        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    2.7313        .11396E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10092E-03    73.671        .51993E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    28.422        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    15.844        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          1.5851        1.0223        .55172E-04   -1.5456    
   9  norm          .10071E-03    55.451        .28157E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    2.8536        .11644E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     86.572        57.498        .43177E-04   -1.3844    
  12  norm          .10000E-03    2.3063        .10461E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     3.2325        5.0567        .19196E-03   -1.5348    
  14  Prefactor     .10000E-03    56.905        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    12.756        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    13.400        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          13.261        19.497        .11007E-03   -1.4979    
  18  Prefactor     .10000E-03    20.105        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    2.6456        .11134E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     31.747        35.872        .71116E-04   -1.4580    
  21  Prefactor     18.062        27.197        .94247E-04   -1.4858    
  22  Prefactor     .10000E-03    13.986        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Normalizat    .81634        .24210        .29660E-03   -.99466    
  24  Prefactor     1.0160        .16626        .18827E-03   -.92199    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.47855e-08
Minuit parameter uncertainties:
  1  1.78614e-06
  2  8.39952e-06
  3  1.22221e-05
  4  2.29972e-08
  5  0.0164853
  6  2.16276e-05
  7  8.797e-05
  8  1.02233
  9  0.0126001
  10  1.22011e-06
  11  57.5352
  12  9.36183e-06
  13  5.05734
  14  1.22723e-05
  15  0.000217666
  16  1.18839e-05
  17  19.5067
  18  1.9033e-06
  19  2.41023e-05
  20  35.8964
  21  27.2155
  22  6.43553e-06
  23  0.24242
  24  0.166348
Done.

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

Extracting fit parameters...

4FGL J2326.2+0113
   Spectrum: PowerLaw
406    Prefactor:  8.657e+01  5.754e+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:  1.016e+00  1.663e-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.163e-01  2.424e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 5.16
Ra Dec: 351.575 1.222
Photon Index (Fixed Index): 2.12 +/- 0.00
Photon Flux (Fixed Index): 5.26e-08 +/- 3.49e-08
Energy Flux (Fixed Index): 2.77e-05 +/- 1.84e-05

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) = 4988.41284843
delta logL = 0.114651691098

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 4988.40410927
delta logL = 0.123390851408

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    125.80       1.0000         .10000E-03   10000.    
     2 'Index     '    1.8207       1.0000          .0000       10.000    
     3 'Normalizat'    .82597       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0124       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=   4988.404     FROM MIGRAD    STATUS=CONVERGED     88 CALLS      304 TOTAL
                     EDM=   .16E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     125.82        106.42        .17945E-03    .91229E-05
   2  Index         1.8207        .56089        .65049E-02    .28171E-03
   3  Normalizat    .82597        .23549        .29500E-03   -.12718E-04
   4  Prefactor     1.0124        .16570        .18857E-03   -.27238E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 125.82
  Index      = 1.82069
  Normalizat = 0.825974
  Prefactor  = 1.0124
 **********
 **   18 **HESSE 
 **********

 FCN=   4988.404     FROM HESSE     STATUS=OK            25 CALLS      329 TOTAL
                     EDM=   .27E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     125.82        103.20        .71780E-05   -1.3460    
   2  Index         1.8207        .54394        .13010E-02   -.68913    
   3  Normalizat    .82597        .23560        .11800E-04   -.99112    
   4  Prefactor     1.0124        .16581        .37715E-04   -.92317    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.68572e-12
Minuit parameter uncertainties:
  1  103.352
  2  0.545754
  3  0.235897
  4  0.165894
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/891277': No such file or directory
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 4988.40410919
delta logL = 0.123390924638

Extracting fit parameters...

4FGL J2326.2+0113
   Spectrum: PowerLaw
406    Prefactor:  1.258e+02  1.034e+02  1.000e-04  1.000e+04 ( 1.000e-14)
407        Index:  1.821e+00  5.458e-01  0.000e+00  1.000e+01 (-1.000e+00)
408        Scale:  2.170e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
523    Prefactor:  1.012e+00  1.659e-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.260e-01  2.359e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 5.41
Ra Dec: 351.575 1.222
Photon Index (Free Index): 1.82 +/- 0.55
Photon Flux (Free Index): 4.15e-08 +/- 3.53e-08
Energy Flux (Free Index): 4.66e-05 +/- 5.88e-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/891277/cmap_HighResolution_343526401_343785601_4FGL_J2326.2+0113_daily_bin402.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='5.26e-08', energy_flux2='4.66e-05', photon_flux_error='3.49e-08', dlogl='1.23e-01', energy_flux='2.77e-05', photon_flux2='4.15e-08', job_status='DONE', time_completed='2021-09-29 19:01:15.909657', photon_index_error2='0.55', photon_index2='1.82', ts='5.16', fit_tolerance='1e-08', GAL='1.02', photon_index_error='0.00', energy_flux_error2='5.88e-05', EG='0.82', time_epoch_completed='1632967275.91', return_code='0', job_id='891277', GAL2='1.01', EG2='0.83', return_code2='0', energy_flux_error='1.84e-05', photon_flux_error2='3.53e-08', ts2='5.41', photon_index='2.12' WHERE bin_id='402' AND source_name='4FGL J2326.2+0113' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep 29 19:01:15 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0057>
Subject: Job 891277: <4FGL_J2326.2+0113_daily_bin402> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2326.2+0113_daily_bin402 351.575 1.2216 343526401 343785601 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 :                                   535.00 sec.
    Max Memory :                                 1255 MB
    Average Memory :                             253.95 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   658 sec.
    Turnaround time :                            659 sec.

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

