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


Performing analysis on: 4FGL_J2326.2+0113_daily_bin203
RA = 351.575, Dec = 1.2216
tmin = 291945601, tmax = 292204801
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='889932', job_status='RUN', time_executed='2021-09-29 18:47:33.538718', time_epoch_executed='1632966453.54' WHERE source_name='4FGL J2326.2+0113' and cadence='daily' and bin_id='203'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/889932

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

Retrieving the FT1 file...

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

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

Retrieving 45 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/889932/ft1_4FGL_J2326.2+0113_daily_bin203.fits


Retrieving the FT1 file...

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

Retrieving 45 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/889932/ft2_4FGL_J2326.2+0113_daily_bin203.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/889932/ft1_4FGL_J2326.2+0113_daily_bin203.fits outfile=/scratch/kocevski/889932/ft1_filteredMKT_4FGL_J2326.2+0113_daily_bin203.fits ra=351.575 dec=1.2216 rad=12.0 tmin=291945601.0 tmax=292204801.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.77
user 3.54
sys 0.21

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/889932/ft2_4FGL_J2326.2+0113_daily_bin203.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/889932/ft1_filteredMKT_4FGL_J2326.2+0113_daily_bin203.fits evtable="EVENTS" outfile="/scratch/kocevski/889932/ft1_filtered_4FGL_J2326.2+0113_daily_bin203.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.50
user 0.33
sys 0.15

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/889932/ft1_filtered_4FGL_J2326.2+0113_daily_bin203.fits" evtable="EVENTS" scfile=/scratch/kocevski/889932/ft2_4FGL_J2326.2+0113_daily_bin203.fits sctable="SC_DATA" outfile=/scratch/kocevski/889932/ltcube_291945601_292204801_4FGL_J2326.2+0113_daily_bin203.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/889932/ft2_4FGL_J2326.2+0113_daily_bin203.fits
.....................!
real 11.71
user 11.35
sys 0.33

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/889932/ft1_filtered_4FGL_J2326.2+0113_daily_bin203.fits evtable="EVENTS" scfile=/scratch/kocevski/889932/ft2_4FGL_J2326.2+0113_daily_bin203.fits sctable="SC_DATA" expcube=/scratch/kocevski/889932/ltcube_291945601_292204801_4FGL_J2326.2+0113_daily_bin203.fits outfile=/scratch/kocevski/889932/expmap_291945601_292204801_4FGL_J2326.2+0113_daily_bin203.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/889932/ltcube_291945601_292204801_4FGL_J2326.2+0113_daily_bin203.fits
.....................!
real 189.24
user 184.22
sys 4.72

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/889932/ft1_filtered_4FGL_J2326.2+0113_daily_bin203.fits scfile=/scratch/kocevski/889932/ft2_4FGL_J2326.2+0113_daily_bin203.fits outfile=/scratch/kocevski/889932/cmap_291945601_292204801_4FGL_J2326.2+0113_daily_bin203.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.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/889932/ft1_filtered_4FGL_J2326.2+0113_daily_bin203.fits scfile=/scratch/kocevski/889932/ft2_4FGL_J2326.2+0113_daily_bin203.fits outfile=/scratch/kocevski/889932/cmap_HighResolution_291945601_292204801_4FGL_J2326.2+0113_daily_bin203.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/889932/ft1_filtered_4FGL_J2326.2+0113_daily_bin203.fits evtable="EVENTS" scfile=/scratch/kocevski/889932/ft2_4FGL_J2326.2+0113_daily_bin203.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/889932/Model_4FGL_J2326.2+0113_daily_bin203.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/889932/ft1_filtered_4FGL_J2326.2+0113_daily_bin203.fits.....................!
real 74.37
user 72.93
sys 1.24

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     2 'norm      '    2.8262       1.0000         .10000E-03   10000.    
     3 'Prefactor '    50.335       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10015E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    3.2137       1.0000         .10000E-03   10000.    
     8 'norm      '    .49733       1.0000         .10000E-03   10000.    
     9 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    10.057       1.0000         .10000E-03   10000.    
    11 'Prefactor '    53.796       1.0000         .10000E-03   10000.    
    12 'norm      '    .56565       1.0000         .10000E-03   10000.    
    13 'Prefactor '    10.913       1.0000         .10000E-03   10000.    
    14 'Prefactor '    57.184       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    12.303       1.0000         .10000E-03   10000.    
    17 'norm      '    .10004E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    12.537       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10008E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    24.731       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    23 'Normalizat'    1.1457       1.0000         .10000E-01   10.000    
    24 'Prefactor '    .95263       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=   7288.738     FROM MIGRAD    STATUS=CONVERGED    525 CALLS     3079 TOTAL
                     EDM=   .24E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  4.7%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    5.5999       -.18287E-06** at limit **
   2  norm          2.8256        11.295        .46407E-05   -.89429E-04
   3  Prefactor     50.339        42.934       -.18843E-06   -.20453E-04
   4  Prefactor     .10000E-03    7.0931       -.17926E-07** at limit **
   5  Prefactor     .10000E-03    19.358        .27875E-07** at limit **
   6  Prefactor     .10000E-03    54.783        .47865E-07** at limit **
   7  Prefactor     3.2125        6.0845        .11437E-06   -.14950E-04
   8  norm          .49724        .84793        .50723E-06   -.55558E-04
   9  norm          .10000E-03    1.9576        .21271E-07** at limit **
  10  Prefactor     10.055        10.615       -.38457E-06   -.15692E-03
  11  Prefactor     53.798        46.258       -.16634E-06   -.11692E-04
  12  norm          .57942        12.195       -.15796E-05    .13714E-03
  13  Prefactor     10.908        9.5365       -.36212E-06   -.26221E-03
  14  Prefactor     57.248        187.94       -.11780E-04   -.19515E-04
  15  Prefactor     .10000E-03    5.4464        .57725E-06** at limit **
  16  Prefactor     12.300        15.317       -.11743E-06   -.46196E-04
  17  norm          .10000E-03    8.1039        .20641E-06** at limit **
  18  Prefactor     12.537        47.814        .51239E-06   -.59168E-06
  19  Prefactor     .10000E-03    2.4725        .37669E-06** at limit **
  20  Prefactor     24.721        38.202        .18590E-05    .10622E-04
  21  Prefactor     .10000E-03    19.620       -.40123E-06** at limit **
  22  Prefactor     .10000E-03    6.1688        .48374E-08** at limit **
  23  Normalizat    1.1457        .19143       -.35228E-06   -.83154E-04
  24  Prefactor     .95265        .12832       -.42234E-06   -.13100E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  norm       = 2.82565
  Prefactor  = 50.3387
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 3.21251
  norm       = 0.497243
  norm       = 0.0001
  Prefactor  = 10.0548
  Prefactor  = 53.7978
  norm       = 0.579417
  Prefactor  = 10.9081
  Prefactor  = 57.248
  Prefactor  = 0.0001
  Prefactor  = 12.3002
  norm       = 0.0001
  Prefactor  = 12.5369
  Prefactor  = 0.0001
  Prefactor  = 24.7211
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Normalizat = 1.14566
  Prefactor  = 0.952655
 **********
 **   18 **HESSE 
 **********

 FCN=   7288.738     FROM HESSE     STATUS=OK           399 CALLS     3478 TOTAL
                     EDM=   .13E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    5.6044        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          2.8256        11.890        .12096E-02   -1.5372    
   3  Prefactor     50.339        42.993        .56525E-04   -1.4288    
   4  Prefactor     .10000E-03    7.1109        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    19.740        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    54.898        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     3.2125        6.0602        .22599E-03   -1.5349    
   8  norm          .49724        .84712        .22520E-03   -1.5567    
   9  norm          .10000E-03    1.9782        .11654E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     10.055        10.458        .12635E-03   -1.5074    
  11  Prefactor     53.798        46.263        .54686E-04   -1.4240    
  12  norm          .57942        38.960        .41375E-02   -1.5556    
  13  Prefactor     10.908        9.5560        .12128E-03   -1.5047    
  14  Prefactor     57.248        187.28        .53050E-04   -1.4193    
  15  Prefactor     .10000E-03    5.5151        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     12.300        15.281        .11420E-03   -1.5006    
  17  norm          .10000E-03    8.1188        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     12.537        47.845        .11313E-03   -1.5000    
  19  Prefactor     .10000E-03    2.5345        .13130E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     24.721        38.174        .80550E-04   -1.4713    
  21  Prefactor     .10000E-03    19.765        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     .10000E-03    6.1806        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Normalizat    1.1457        .22283        .28797E-03   -.88299    
  24  Prefactor     .95265        .14910        .21359E-03   -.94325    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.31867e-09
Minuit parameter uncertainties:
  1  6.13578e-06
  2  11.5964
  3  43.0192
  4  4.64251e-06
  5  7.79652e-07
  6  9.30325e-06
  7  6.06133
  8  0.847142
  9  1.10393e-06
  10  10.4598
  11  46.2935
  12  9.50812
  13  9.55738
  14  189.261
  15  5.79645e-05
  16  15.2859
  17  3.13178e-05
  18  47.9923
  19  3.08343e-05
  20  38.2114
  21  8.01704e-05
  22  4.3926e-06
  23  0.223014
  24  0.14916
Done.

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

Extracting fit parameters...

4FGL J2326.2+0113
   Spectrum: PowerLaw
406    Prefactor:  5.380e+01  4.629e+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:  9.527e-01  1.492e-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.146e+00  2.230e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 2.41
Ra Dec: 351.575 1.222
Photon Index (Fixed Index): 2.12 +/- 0.00
Photon Flux (Fixed Index): 3.27e-08 +/- 2.81e-08
Energy Flux (Fixed Index): 1.72e-05 +/- 1.48e-05

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

Saving results to:
/scratch/kocevski/889932/likelihoodResults_291945601_292204801_4FGL_J2326.2+0113_daily_bin203.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) = 7288.73387318
delta logL = 0.00424202406975

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 7288.73025972
delta logL = 0.00785548161366

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    59.111       1.0000         .10000E-03   10000.    
     2 'Index     '    2.0479       1.0000          .0000       10.000    
     3 'Normalizat'    1.1478       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .95175       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=   7288.730     FROM MIGRAD    STATUS=CONVERGED     91 CALLS      273 TOTAL
                     EDM=   .38E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     59.113        68.651        .52183E-04   -.87842E-04
   2  Index         2.0478        .59355        .74578E-02   -.24954E-04
   3  Normalizat    1.1481        .21578        .28771E-03   -.30940E-04
   4  Prefactor     .95156        .14803        .21369E-03   -.16865E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 59.1131
  Index      = 2.04785
  Normalizat = 1.14808
  Prefactor  = 0.951563
 **********
 **   18 **HESSE 
 **********

 FCN=   7288.730     FROM HESSE     STATUS=OK            25 CALLS      298 TOTAL
                     EDM=   .36E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     59.113        64.934        .10437E-04   -1.4169    
   2  Index         2.0478        .56146        .29831E-03   -.63159    
   3  Normalizat    1.1481        .21581        .11508E-04   -.88223    
   4  Prefactor     .95156        .14809        .85478E-05   -.94362    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.6324e-11
Minuit parameter uncertainties:
  1  65.0123
  2  0.563283
  3  0.215978
  4  0.148153
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/889932': 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) = 7288.73025886
delta logL = 0.0078563419811

Extracting fit parameters...

4FGL J2326.2+0113
   Spectrum: PowerLaw
406    Prefactor:  5.911e+01  6.501e+01  1.000e-04  1.000e+04 ( 1.000e-14)
407        Index:  2.048e+00  5.633e-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.516e-01  1.482e-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.148e+00  2.160e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 2.43
Ra Dec: 351.575 1.222
Photon Index (Free Index): 2.05 +/- 0.56
Photon Flux (Free Index): 3.08e-08 +/- 3.07e-08
Energy Flux (Free Index): 1.90e-05 +/- 2.22e-05

Creating a high resolution counts map...
INFO: Auto-setting vmin to -1.000e-01 [aplpy.core]
INFO: Auto-setting vmax to  1.110e+00 [aplpy.core]
Saving /scratch/kocevski/889932/cmap_HighResolution_291945601_292204801_4FGL_J2326.2+0113_daily_bin203.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='7.49e-03', comment='SUCCESS', photon_flux='3.27e-08', energy_flux2='1.90e-05', photon_flux_error='2.81e-08', dlogl='7.86e-03', energy_flux='1.72e-05', photon_flux2='3.08e-08', job_status='DONE', time_completed='2021-09-29 18:59:48.271872', photon_index_error2='0.56', photon_index2='2.05', ts='2.41', fit_tolerance='1e-08', GAL='0.95', photon_index_error='0.00', photon_flux_upper_limit='9.89e-08', energy_flux_error2='2.22e-05', EG='1.15', time_epoch_completed='1632967188.27', return_code='0', job_id='889932', GAL2='0.95', EG2='1.15', return_code2='0', energy_flux_error='1.48e-05', photon_flux_error2='3.07e-08', ts2='2.43', photon_index='2.12' WHERE bin_id='203' AND source_name='4FGL J2326.2+0113' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep 29 18:59:48 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0264>
Subject: Job 889932: <4FGL_J2326.2+0113_daily_bin203> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2326.2+0113_daily_bin203 351.575 1.2216 291945601 292204801 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 :                                   733.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             347.00 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   869 sec.
    Turnaround time :                            872 sec.

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

