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


Performing analysis on: 4FGL_J2326.2+0113_daily_bin136
RA = 351.575, Dec = 1.2216
tmin = 274579201, tmax = 274838401
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='888816', job_status='RUN', time_executed='2021-09-29 18:45:00.060513', time_epoch_executed='1632966300.06' WHERE source_name='4FGL J2326.2+0113' and cadence='daily' and bin_id='136'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/888816

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/888816/ft1_4FGL_J2326.2+0113_daily_bin136.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/888816/ft2_4FGL_J2326.2+0113_daily_bin136.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/888816/ft1_4FGL_J2326.2+0113_daily_bin136.fits outfile=/scratch/kocevski/888816/ft1_filteredMKT_4FGL_J2326.2+0113_daily_bin136.fits ra=351.575 dec=1.2216 rad=12.0 tmin=274579201.0 tmax=274838401.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.69
user 3.47
sys 0.18

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/888816/ft1_filtered_4FGL_J2326.2+0113_daily_bin136.fits" evtable="EVENTS" scfile=/scratch/kocevski/888816/ft2_4FGL_J2326.2+0113_daily_bin136.fits sctable="SC_DATA" outfile=/scratch/kocevski/888816/ltcube_274579201_274838401_4FGL_J2326.2+0113_daily_bin136.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/888816/ft2_4FGL_J2326.2+0113_daily_bin136.fits
.....................!
real 11.54
user 11.17
sys 0.34

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/888816/ft1_filtered_4FGL_J2326.2+0113_daily_bin136.fits evtable="EVENTS" scfile=/scratch/kocevski/888816/ft2_4FGL_J2326.2+0113_daily_bin136.fits sctable="SC_DATA" expcube=/scratch/kocevski/888816/ltcube_274579201_274838401_4FGL_J2326.2+0113_daily_bin136.fits outfile=/scratch/kocevski/888816/expmap_274579201_274838401_4FGL_J2326.2+0113_daily_bin136.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/888816/ltcube_274579201_274838401_4FGL_J2326.2+0113_daily_bin136.fits
.....................!
real 190.13
user 184.93
sys 4.86

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/888816/ft1_filtered_4FGL_J2326.2+0113_daily_bin136.fits scfile=/scratch/kocevski/888816/ft2_4FGL_J2326.2+0113_daily_bin136.fits outfile=/scratch/kocevski/888816/cmap_274579201_274838401_4FGL_J2326.2+0113_daily_bin136.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/888816/ft1_filtered_4FGL_J2326.2+0113_daily_bin136.fits scfile=/scratch/kocevski/888816/ft2_4FGL_J2326.2+0113_daily_bin136.fits outfile=/scratch/kocevski/888816/cmap_HighResolution_274579201_274838401_4FGL_J2326.2+0113_daily_bin136.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/888816/ft1_filtered_4FGL_J2326.2+0113_daily_bin136.fits evtable="EVENTS" scfile=/scratch/kocevski/888816/ft2_4FGL_J2326.2+0113_daily_bin136.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/888816/Model_4FGL_J2326.2+0113_daily_bin136.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/888816/ft1_filtered_4FGL_J2326.2+0113_daily_bin136.fits.....................!
real 54.84
user 53.40
sys 1.27

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

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      '    .10539E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10013E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    17.286       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10019E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10011E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    .10055E-03   1.0000         .10000E-03   10000.    
     9 'norm      '    .10008E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    24.389       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .12370E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    3.1817       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .12527E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10129E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    9.1891       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10225E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    12.514       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10133E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10059E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    17.068       1.0000         .10000E-03   10000.    
    21 'Prefactor '    6.7210       1.0000         .10000E-03   10000.    
    22 'Prefactor '    .13752E-02   1.0000         .10000E-03   10000.    
    23 'Normalizat'    1.0069       1.0000         .10000E-01   10.000    
    24 'Prefactor '    .94341       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=   5003.193     FROM MIGRAD    STATUS=CONVERGED    546 CALLS     2700 TOTAL
                     EDM=   .20E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  5.3%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    5.1941       -.14633E-07** at limit **
   2  norm          .10000E-03    14.979       -.56042E-06** at limit **
   3  Prefactor     .10000E-03    17.793        .16579E-06** at limit **
   4  Prefactor     .10000E-03    12.359        .19129E-06** at limit **
   5  Prefactor     17.279        19.702        .17423E-06   -.21809E-04
   6  Prefactor     .10000E-03    31.219       -.50301E-06** at limit **
   7  Prefactor     .10000E-03    3.3464        .13575E-07** at limit **
   8  norm          .10000E-03    .40461        .15320E-07** at limit **
   9  norm          .10000E-03    1.8835        .85699E-08** at limit **
  10  Prefactor     24.400        13.334       -.13457E-05   -.12693E-03
  11  Prefactor     .10000E-03    190.05        .80596E-05** at limit **
  12  norm          3.1642        9.2207        .62099E-05    .74621E-03
  13  Prefactor     .10000E-03    6.4980        .11145E-05** at limit **
  14  Prefactor     .10001E-03    104.15       -.12982E-04** at limit **
  15  Prefactor     9.1845        15.271       -.30023E-06    .35061E-04
  16  Prefactor     .10000E-03    15.453        .69822E-06** at limit **
  17  norm          12.504        25.733        .10006E-06    .19670E-04
  18  Prefactor     .10000E-03    71.018        .36670E-05** at limit **
  19  Prefactor     .10000E-03    3.5470        .14257E-07** at limit **
  20  Prefactor     16.991        39.726        .60066E-05    .95907E-04
  21  Prefactor     6.7321        22.921       -.84746E-06   -.97739E-05
  22  Prefactor     .10095E-03    26.925       -.94390E-05** at limit **
  23  Normalizat    1.0069        .22146       -.85704E-06    .22962E-03
  24  Prefactor     .94347        .14653       -.56157E-06    .99830E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 17.2794
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 24.4004
  Prefactor  = 0.0001
  norm       = 3.16423
  Prefactor  = 0.0001
  Prefactor  = 0.000100008
  Prefactor  = 9.1845
  Prefactor  = 0.0001
  norm       = 12.504
  Prefactor  = 0.000100001
  Prefactor  = 0.0001
  Prefactor  = 16.991
  Prefactor  = 6.73213
  Prefactor  = 0.000100948
  Normalizat = 1.00691
  Prefactor  = 0.943467
 **********
 **   18 **HESSE 
 **********

 FCN=   5003.193     FROM HESSE     STATUS=OK           389 CALLS     3089 TOTAL
                     EDM=   .14E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    5.1980        .15744E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          .10000E-03    15.146        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    17.834        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    12.459        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     17.279        19.694        .96333E-04   -1.4876    
   6  Prefactor     .10000E-03    31.265        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    3.3520        .12636E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          .10000E-03    .41564        .87700E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          .10000E-03    1.8866        .94800E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     24.400        13.451        .81112E-04   -1.4720    
  11  Prefactor     .10000E-03    192.21        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          3.1642        9.6064        .11359E-02   -1.5352    
  13  Prefactor     .10000E-03    6.6832        .17645E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10001E-03    105.07        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     9.1845        15.278        .13221E-03   -1.5102    
  16  Prefactor     .10000E-03    15.530        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          12.504        25.728        .11323E-03   -1.5001    
  18  Prefactor     .10000E-03    71.326        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    3.6233        .25927E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     16.991        39.898        .96946E-04   -1.4883    
  21  Prefactor     6.7321        22.912        .15478E-03   -1.5189    
  22  Prefactor     .10095E-03    77.261        .51009E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Normalizat    1.0069        .25383        .27816E-03   -.92799    
  24  Prefactor     .94347        .17045        .19928E-03   -.94638    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.3898e-08
Minuit parameter uncertainties:
  1  2.06523e-06
  2  1.06692e-06
  3  1.71944e-05
  4  2.28301e-05
  5  19.701
  6  2.1963e-05
  7  2.69754e-06
  8  1.43181e-06
  9  1.5115e-06
  10  13.4528
  11  0.000410376
  12  9.61103
  13  4.821e-05
  14  0.0017851
  15  15.2846
  16  3.35721e-05
  17  25.7505
  18  0.000437764
  19  1.32676e-05
  20  39.9607
  21  22.9415
  22  0.0171376
  23  0.254136
  24  0.170544
Done.

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

Extracting fit parameters...

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

GAL_V02
   Spectrum: PowerLaw
523    Prefactor:  9.435e-01  1.705e-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.007e+00  2.541e-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: 8.70e-08 ph cm-2 s-1
Energy Flux Upper Limit: 6.59e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/888816/likelihoodResults_274579201_274838401_4FGL_J2326.2+0113_daily_bin136.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) = 5003.19291809
delta logL = -2.46513736784e-05

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 5003.19289347
delta logL = -3.76967363991e-08

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10025E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.0892       1.0000          .0000       10.000    
     3 'Normalizat'    1.0069       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .94347       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=   5003.193     FROM MIGRAD    STATUS=CONVERGED     61 CALLS      244 TOTAL
                     EDM=   .12E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10016E-03    6819.8        .90712E-02** at limit **
   2  Index         2.1890        8.8945        .50000       -.58368E-05
   3  Normalizat    1.0069        .22021E-01    .46254E-01    .22628E-04
   4  Prefactor     .94347        .15408E-01    .45557E-01    .45479E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100163
  Index      = 2.18897
  Normalizat = 1.00691
  Prefactor  = 0.943469
 **********
 **   18 **HESSE 
 **********

 FCN=   5003.193     FROM HESSE     STATUS=NOT POSDEF    33 CALLS      277 TOTAL
                     EDM=   .10E-06    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10016E-03    9587.4        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.1890        7.7489        .50000       -.59705    
   3  Normalizat    1.0069        .74805E-01    .27815E-03   -.92799    
   4  Prefactor     .94347        .52350E-01    .19928E-03   -.94638    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 1.01272e-07
Minuit parameter uncertainties:
  1  0.15038
  2  47.1471
  3  0.0748124
  4  0.0523523
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/888816': 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) = 5003.19289334
delta logL = 9.07157300389e-08

Extracting fit parameters...

4FGL J2326.2+0113
   Spectrum: PowerLaw
406    Prefactor:  1.002e-04  1.504e-01  1.000e-04  1.000e+04 ( 1.000e-14)
407        Index:  2.189e+00  4.715e+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:  9.435e-01  5.235e-02  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.007e+00  7.481e-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/888816/cmap_HighResolution_274579201_274838401_4FGL_J2326.2+0113_daily_bin136.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='6.59e-03', job_status='DONE', photon_flux_upper_limit='8.70e-08', time_completed='2021-09-29 18:54:40.559340', job_id='888816', GAL2='0.94', fit_tolerance='1e-08', EG2='1.01', EG='1.01', time_epoch_completed='1632966880.56', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.94', dlogl='9.07e-08', ts2='-0.00', photon_index_error='0.00', photon_index='2.12' WHERE bin_id='136' AND source_name='4FGL J2326.2+0113' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep 29 18:54:40 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0240>
Subject: Job 888816: <4FGL_J2326.2+0113_daily_bin136> in cluster <slac> Done

Job <4FGL_J2326.2+0113_daily_bin136> was submitted from host <rhel6-64p> by user <kocevski> in cluster <slac> at Wed Sep 29 18:40:57 2021
Job was executed on host(s) <bullet0240>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Sep 29 18:40:59 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:40:59 2021
Terminated at Wed Sep 29 18:54:41 2021
Results reported at Wed Sep 29 18:54:41 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2326.2+0113_daily_bin136 351.575 1.2216 274579201 274838401 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 :                                   579.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             260.26 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   821 sec.
    Turnaround time :                            824 sec.

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

