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


Performing analysis on: 4FGL_J2326.2+0113_daily_bin578
RA = 351.575, Dec = 1.2216
tmin = 389145601, tmax = 389404801
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='891553', job_status='RUN', time_executed='2021-09-29 18:53:47.460631', time_epoch_executed='1632966827.46' WHERE source_name='4FGL J2326.2+0113' and cadence='daily' and bin_id='578'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/891553

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/891553/ft1_4FGL_J2326.2+0113_daily_bin578.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/891553/ft2_4FGL_J2326.2+0113_daily_bin578.fits


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

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

Done.
real 5.52
user 5.28
sys 0.21

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/891553/ft1_filtered_4FGL_J2326.2+0113_daily_bin578.fits" evtable="EVENTS" scfile=/scratch/kocevski/891553/ft2_4FGL_J2326.2+0113_daily_bin578.fits sctable="SC_DATA" outfile=/scratch/kocevski/891553/ltcube_389145601_389404801_4FGL_J2326.2+0113_daily_bin578.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/891553/ft2_4FGL_J2326.2+0113_daily_bin578.fits
.....................!
real 11.88
user 11.52
sys 0.32

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/891553/ft1_filtered_4FGL_J2326.2+0113_daily_bin578.fits evtable="EVENTS" scfile=/scratch/kocevski/891553/ft2_4FGL_J2326.2+0113_daily_bin578.fits sctable="SC_DATA" expcube=/scratch/kocevski/891553/ltcube_389145601_389404801_4FGL_J2326.2+0113_daily_bin578.fits outfile=/scratch/kocevski/891553/expmap_389145601_389404801_4FGL_J2326.2+0113_daily_bin578.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/891553/ltcube_389145601_389404801_4FGL_J2326.2+0113_daily_bin578.fits
.....................!
real 190.40
user 185.08
sys 4.97

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/891553/ft1_filtered_4FGL_J2326.2+0113_daily_bin578.fits scfile=/scratch/kocevski/891553/ft2_4FGL_J2326.2+0113_daily_bin578.fits outfile=/scratch/kocevski/891553/cmap_389145601_389404801_4FGL_J2326.2+0113_daily_bin578.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.36
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/891553/ft1_filtered_4FGL_J2326.2+0113_daily_bin578.fits scfile=/scratch/kocevski/891553/ft2_4FGL_J2326.2+0113_daily_bin578.fits outfile=/scratch/kocevski/891553/cmap_HighResolution_389145601_389404801_4FGL_J2326.2+0113_daily_bin578.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.37
sys 0.16

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    37.719       1.0000         .10000E-03   10000.    
     2 'norm      '    23.632       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10012E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    49.261       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10043E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    6.9902       1.0000         .10000E-03   10000.    
     9 'norm      '    16.500       1.0000         .10000E-03   10000.    
    10 'Prefactor '    1.4586       1.0000         .10000E-03   10000.    
    11 'Prefactor '    48.775       1.0000         .10000E-03   10000.    
    12 'norm      '    17.461       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10029E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .12757E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    .10558E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10008E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    5.9302       1.0000         .10000E-03   10000.    
    20 'Prefactor '    22.667       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10092E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    2.2714       1.0000         .10000E-03   10000.    
    23 'Normalizat'    .74234       1.0000         .10000E-01   10.000    
    24 'Prefactor '    .86952       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=   6100.071     FROM MIGRAD    STATUS=CONVERGED    543 CALLS     2333 TOTAL
                     EDM=   .17E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     37.722        20.035        .16315E-02    .47857E-03
   2  norm          23.634        14.301        .20600E-02    .29362E-03
   3  Prefactor     .10000E-03    12.045        .90712E-02** at limit **
   4  Prefactor     .10000E-03    4.8306        .90712E-02** at limit **
   5  Prefactor     49.263        22.741        .14284E-02    .20431E-03
   6  Prefactor     .10024E-03    31.599        .90712E-02** at limit **
   7  Prefactor     .10000E-03    3.8670        .90712E-02** at limit **
   8  norm          6.9905        1.5888        .37934E-02   -.64839E-04
   9  norm          16.500        7.4773        .24650E-02    .30900E-04
  10  Prefactor     1.4583        4.5579        .89088E-02    .73792E-03
  11  Prefactor     48.774        46.866        .14354E-02    .10125E-03
  12  norm          17.470        9.2587        .23962E-02   -.30044E-03
  13  Prefactor     .10000E-03    16.554        .90712E-02** at limit **
  14  Prefactor     .10001E-03    157.30        .90712E-02** at limit **
  15  Prefactor     .10002E-03    21.298        .90712E-02** at limit **
  16  Prefactor     .10000E-03    10.417        .90712E-02** at limit **
  17  norm          .10008E-03    27.247        .90712E-02** at limit **
  18  Prefactor     .10001E-03    49.086        .90712E-02** at limit **
  19  Prefactor     5.9333        4.9160        .41225E-02    .20766E-03
  20  Prefactor     22.660        34.755        .21033E-02    .58050E-03
  21  Prefactor     .10005E-03    27.547        .90712E-02** at limit **
  22  Prefactor     2.2717        14.829        .68122E-02    .18523E-03
  23  Normalizat    .74206        .20265        .72154E-01    .44570E-04
  24  Prefactor     .86969        .13096        .44615E-01    .53483E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 37.7225
  norm       = 23.6344
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 49.2627
  Prefactor  = 0.000100236
  Prefactor  = 0.0001
  norm       = 6.99053
  norm       = 16.4999
  Prefactor  = 1.45834
  Prefactor  = 48.7739
  norm       = 17.4697
  Prefactor  = 0.000100001
  Prefactor  = 0.000100009
  Prefactor  = 0.000100024
  Prefactor  = 0.0001
  norm       = 0.00010008
  Prefactor  = 0.000100014
  Prefactor  = 5.93332
  Prefactor  = 22.6601
  Prefactor  = 0.000100052
  Prefactor  = 2.27167
  Normalizat = 0.742064
  Prefactor  = 0.869694
 **********
 **   18 **HESSE 
 **********

 FCN=   6100.071     FROM HESSE     STATUS=OK           391 CALLS     2724 TOTAL
                     EDM=   .16E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     37.722        20.049        .65259E-04   -1.4479    
   2  norm          23.634        14.308        .41199E-03   -1.4735    
   3  Prefactor     .10000E-03    12.064        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    4.8598        .16764E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     49.263        22.749        .57135E-04   -1.4303    
   6  Prefactor     .10024E-03    31.659        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    3.8750        .14995E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          6.9905        1.5887        .44044E-04   -1.5179    
   9  norm          16.500        7.4785        .98601E-04   -1.4895    
  10  Prefactor     1.4583        4.4931        .28357E-03   -1.5466    
  11  Prefactor     48.774        46.857        .57418E-04   -1.4310    
  12  norm          17.470        9.1581        .95847E-04   -1.4872    
  13  Prefactor     .10000E-03    16.945        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10001E-03    157.35        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10002E-03    21.558        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    10.439        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          .10008E-03    27.355        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10001E-03    49.174        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     5.9333        4.8977        .14698E-03   -1.5221    
  20  Prefactor     22.660        34.782        .84132E-04   -1.4756    
  21  Prefactor     .10005E-03    27.794        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     2.2717        14.765        .27249E-03   -1.5407    
  23  Normalizat    .74206        .23409        .31934E-03   -1.0226    
  24  Prefactor     .86969        .15182        .20289E-03   -.97208    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.58712e-08
Minuit parameter uncertainties:
  1  20.0528
  2  14.3104
  3  1.15801e-05
  4  1.34674e-05
  5  22.7534
  6  0.00546444
  7  1.07765e-05
  8  1.58868
  9  7.47891
  10  4.49414
  11  46.8921
  12  9.15884
  13  0.000243086
  14  0.00237617
  15  0.00145353
  16  3.08498e-05
  17  0.00295685
  18  0.00168462
  19  4.89802
  20  34.813
  21  0.00239796
  22  11.587
  23  0.234406
  24  0.151895
Done.

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

Extracting fit parameters...

4FGL J2326.2+0113
   Spectrum: PowerLaw
406    Prefactor:  4.877e+01  4.689e+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:  8.697e-01  1.519e-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:  7.421e-01  2.344e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 2.37
Ra Dec: 351.575 1.222
Photon Index (Fixed Index): 2.12 +/- 0.00
Photon Flux (Fixed Index): 2.96e-08 +/- 2.85e-08
Energy Flux (Fixed Index): 1.56e-05 +/- 1.50e-05

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

Saving results to:
/scratch/kocevski/891553/likelihoodResults_389145601_389404801_4FGL_J2326.2+0113_daily_bin578.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) = 6099.86355149
delta logL = 0.207902818813

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6099.85830817
delta logL = 0.213146135834

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    25.026       1.0000         .10000E-03   10000.    
     2 'Index     '    2.6616       1.0000          .0000       10.000    
     3 'Normalizat'    .71480       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .88011       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=   6099.858     FROM MIGRAD    STATUS=CONVERGED     94 CALLS      309 TOTAL
                     EDM=   .22E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     25.022        59.434        .80075E-04   -.23741E-03
   2  Index         2.6619        1.1900        .55431E-02   -.12834E-03
   3  Normalizat    .71478        .22875        .32465E-03   -.11549E-03
   4  Prefactor     .88012        .15374        .20173E-03   -.28877E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 25.0216
  Index      = 2.66186
  Normalizat = 0.714785
  Prefactor  = 0.880124
 **********
 **   18 **HESSE 
 **********

 FCN=   6099.858     FROM HESSE     STATUS=OK            25 CALLS      334 TOTAL
                     EDM=   .30E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     25.022        42.659        .16015E-04   -1.4707    
   2  Index         2.6619        .85715        .22173E-03   -.48661    
   3  Normalizat    .71478        .22550        .12986E-04   -1.0331    
   4  Prefactor     .88012        .15258        .40346E-04   -.96839    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.04537e-10
Minuit parameter uncertainties:
  1  42.7111
  2  0.862615
  3  0.225796
  4  0.152658
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/891553': 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) = 6099.85830807
delta logL = 0.213146240304

Extracting fit parameters...

4FGL J2326.2+0113
   Spectrum: PowerLaw
406    Prefactor:  2.502e+01  4.271e+01  1.000e-04  1.000e+04 ( 1.000e-14)
407        Index:  2.662e+00  8.626e-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:  8.801e-01  1.527e-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:  7.148e-01  2.258e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 2.80
Ra Dec: 351.575 1.222
Photon Index (Free Index): 2.66 +/- 0.86
Photon Flux (Free Index): 5.44e-08 +/- 5.63e-08
Energy Flux (Free Index): 1.35e-05 +/- 1.11e-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/891553/cmap_HighResolution_389145601_389404801_4FGL_J2326.2+0113_daily_bin578.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='7.68e-03', comment='SUCCESS', photon_flux='2.96e-08', energy_flux2='1.35e-05', photon_flux_error='2.85e-08', dlogl='2.13e-01', energy_flux='1.56e-05', photon_flux2='5.44e-08', job_status='DONE', time_completed='2021-09-29 19:04:13.521805', photon_index_error2='0.86', photon_index2='2.66', ts='2.37', fit_tolerance='1e-08', GAL='0.87', photon_index_error='0.00', photon_flux_upper_limit='1.01e-07', energy_flux_error2='1.11e-05', EG='0.74', time_epoch_completed='1632967453.52', return_code='0', job_id='891553', GAL2='0.88', EG2='0.71', return_code2='0', energy_flux_error='1.50e-05', photon_flux_error2='5.63e-08', ts2='2.80', photon_index='2.12' WHERE bin_id='578' AND source_name='4FGL J2326.2+0113' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep 29 19:04:13 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0089>
Subject: Job 891553: <4FGL_J2326.2+0113_daily_bin578> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2326.2+0113_daily_bin578 351.575 1.2216 389145601 389404801 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 :                                   624.31 sec.
    Max Memory :                                 1224 MB
    Average Memory :                             294.17 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   810 sec.
    Turnaround time :                            812 sec.

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

