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


Performing analysis on: 4FGL_J2326.2+0113_daily_bin559
RA = 351.575, Dec = 1.2216
tmin = 384220801, tmax = 384480001
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='891523', job_status='RUN', time_executed='2021-09-29 18:53:20.324074', time_epoch_executed='1632966800.32' WHERE source_name='4FGL J2326.2+0113' and cadence='daily' and bin_id='559'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/891523

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/891523/ft1_4FGL_J2326.2+0113_daily_bin559.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/891523/ft2_4FGL_J2326.2+0113_daily_bin559.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/891523/ft1_4FGL_J2326.2+0113_daily_bin559.fits outfile=/scratch/kocevski/891523/ft1_filteredMKT_4FGL_J2326.2+0113_daily_bin559.fits ra=351.575 dec=1.2216 rad=12.0 tmin=384220801.0 tmax=384480001.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 13.85
user 13.38
sys 0.38

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

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

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/891523/ft1_filtered_4FGL_J2326.2+0113_daily_bin559.fits evtable="EVENTS" scfile=/scratch/kocevski/891523/ft2_4FGL_J2326.2+0113_daily_bin559.fits sctable="SC_DATA" expcube=/scratch/kocevski/891523/ltcube_384220801_384480001_4FGL_J2326.2+0113_daily_bin559.fits outfile=/scratch/kocevski/891523/expmap_384220801_384480001_4FGL_J2326.2+0113_daily_bin559.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/891523/ltcube_384220801_384480001_4FGL_J2326.2+0113_daily_bin559.fits
.....................!
real 190.14
user 185.37
sys 4.39

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/891523/ft1_filtered_4FGL_J2326.2+0113_daily_bin559.fits scfile=/scratch/kocevski/891523/ft2_4FGL_J2326.2+0113_daily_bin559.fits outfile=/scratch/kocevski/891523/cmap_384220801_384480001_4FGL_J2326.2+0113_daily_bin559.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.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/891523/ft1_filtered_4FGL_J2326.2+0113_daily_bin559.fits scfile=/scratch/kocevski/891523/ft2_4FGL_J2326.2+0113_daily_bin559.fits outfile=/scratch/kocevski/891523/cmap_HighResolution_384220801_384480001_4FGL_J2326.2+0113_daily_bin559.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.39
sys 0.15

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

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/891523/ft1_filtered_4FGL_J2326.2+0113_daily_bin559.fits', '/scratch/kocevski/891523/ft2_4FGL_J2326.2+0113_daily_bin559.fits', expMap='/scratch/kocevski/891523/expmap_384220801_384480001_4FGL_J2326.2+0113_daily_bin559.fits', expCube='/scratch/kocevski/891523/ltcube_384220801_384480001_4FGL_J2326.2+0113_daily_bin559.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/891523/Model_4FGL_J2326.2+0113_daily_bin559.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/891523/ft1_filtered_4FGL_J2326.2+0113_daily_bin559.fits
Spacecraft file(s): /scratch/kocevski/891523/ft2_4FGL_J2326.2+0113_daily_bin559.fits
Exposure map: /scratch/kocevski/891523/expmap_384220801_384480001_4FGL_J2326.2+0113_daily_bin559.fits
Exposure cube: /scratch/kocevski/891523/ltcube_384220801_384480001_4FGL_J2326.2+0113_daily_bin559.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/891523/Model_4FGL_J2326.2+0113_daily_bin559.xml
Optimizer: MINUIT
Statistic: UNBINNED

Performing an iterative likelihood fit...

Fit tolerance = 1

Performing likelihood fit...
Done.

MINUIT Return Code (Fixed Index): 102
logL (Fixed Index) = 2725.05235597

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    1.8444       1.0000         .10000E-03   10000.    
     2 'norm      '    3.3452       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10098E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    5.4974       1.0000         .10000E-03   10000.    
     6 'Prefactor '    51.988       1.0000         .10000E-03   10000.    
     7 'Prefactor '    20.359       1.0000         .10000E-03   10000.    
     8 'norm      '    5.9918       1.0000         .10000E-03   10000.    
     9 'norm      '    2.7837       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .13422E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    190.04       1.0000         .10000E-03   10000.    
    12 'norm      '    .10241E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .66029E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    131.66       1.0000         .10000E-03   10000.    
    16 'Prefactor '    79.644       1.0000         .10000E-03   10000.    
    17 'norm      '    .16255E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10118E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10542E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    68.712       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10812E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    10.420       1.0000         .10000E-03   10000.    
    23 'Normalizat'    .92877       1.0000         .10000E-01   10.000    
    24 'Prefactor '    1.0174       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=   2725.031     FROM MIGRAD    STATUS=CONVERGED    534 CALLS     3122 TOTAL
                     EDM=   .14E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  3.7%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     1.8458        64.391        .48717E-05    .10625E-03
   2  norm          3.3490        99.623       -.78276E-06   -.46158E-05
   3  Prefactor     .10000E-03    54.108       -.64958E-06** at limit **
   4  Prefactor     .10000E-03    5.2401       -.14836E-07** at limit **
   5  Prefactor     5.5008        53.697       -.11421E-06    .14263E-05
   6  Prefactor     51.743        298.01        .15400E-04    .22355E-04
   7  Prefactor     20.430        68.717       -.65571E-05   -.72552E-04
   8  norm          5.9935        4.4711       -.21275E-06   -.73069E-05
   9  norm          2.7184        139.48        .76919E-05    .21806E-04
  10  Prefactor     .10138E-03    49.140        .60450E-05** at limit **
  11  Prefactor     189.99        151.81        .17783E-05    .42822E-04
  12  norm          .10000E-03    8.1355       -.92685E-07** at limit **
  13  Prefactor     .10000E-03    3.5556       -.51891E-07** at limit **
  14  Prefactor     .10000E-03    199.13       -.50473E-06** at limit **
  15  Prefactor     131.67        45.813       -.17352E-06   -.33008E-04
  16  Prefactor     79.612        53.640        .25652E-05    .15291E-03
  17  norm          .10000E-03    36.974        .16170E-06** at limit **
  18  Prefactor     .10000E-03    69.033        .91053E-06** at limit **
  19  Prefactor     .10000E-03    11.881        .78892E-07** at limit **
  20  Prefactor     68.772        73.468       -.30150E-05   -.11315E-03
  21  Prefactor     .10000E-03    170.80        .30173E-05** at limit **
  22  Prefactor     10.427        40.907       -.87877E-08    .15664E-04
  23  Normalizat    .92902        .38931        .99055E-06    .74362E-04
  24  Prefactor     1.0172        .24063       -.15070E-06    .99053E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 1.84583
  norm       = 3.349
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 5.50082
  Prefactor  = 51.7427
  Prefactor  = 20.4298
  norm       = 5.99353
  norm       = 2.71844
  Prefactor  = 0.000101382
  Prefactor  = 189.987
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 131.671
  Prefactor  = 79.6117
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 68.7718
  Prefactor  = 0.000100003
  Prefactor  = 10.4274
  Normalizat = 0.929016
  Prefactor  = 1.01717
 **********
 **   18 **HESSE 
 **********

 FCN=   2725.031     FROM HESSE     STATUS=OK           395 CALLS     3517 TOTAL
                     EDM=   .11E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     1.8458        64.619        .15354E-02   -1.5436    
   2  norm          3.3490        99.330        .22128E-03   -1.5342    
   3  Prefactor     .10000E-03    54.207        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    5.2412        .11672E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     5.5008        53.884        .17137E-03   -1.5239    
   6  Prefactor     51.743        295.62        .55624E-04   -1.4268    
   7  Prefactor     20.430        66.207        .88769E-04   -1.4804    
   8  norm          5.9935        4.3963        .78038E-04   -1.5218    
   9  norm          2.7184        127.68        .24389E-03   -1.5378    
  10  Prefactor     .10138E-03    141.60        .43409E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     189.99        151.72        .14648E-03   -1.2942    
  12  norm          .10000E-03    8.1770        .14528E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    3.5609        .96131E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    199.13        .21012E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     131.67        45.828        .17546E-03   -1.3408    
  16  Prefactor     79.612        51.701        .45002E-04   -1.3921    
  17  norm          .10000E-03    36.982        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    69.014        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    11.959        .17546E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     68.772        73.592        .24211E-03   -1.4047    
  21  Prefactor     .10000E-03    173.56        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     10.427        40.945        .12412E-03   -1.5062    
  23  Normalizat    .92902        .44419        .36781E-03   -.95448    
  24  Prefactor     1.0172        .27645        .22841E-03   -.92159    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.05719e-08
Minuit parameter uncertainties:
  1  21.8677
  2  36.544
  3  0.000199536
  4  3.36001e-06
  5  34.4732
  6  249.253
  7  66.4464
  8  4.39649
  9  37.3447
  10  0.0280455
  11  152.033
  12  5.60341e-05
  13  1.15209e-05
  14  0.000248469
  15  45.8399
  16  51.7299
  17  4.8407e-05
  18  0.000232538
  19  1.31827e-05
  20  73.69
  21  0.00150343
  22  41.0554
  23  0.445965
  24  0.27684
Done.

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

Extracting fit parameters...

4FGL J2326.2+0113
   Spectrum: PowerLaw
406    Prefactor:  1.900e+02  1.520e+02  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.017e+00  2.768e-01  0.000e+00  1.000e+01 ( 1.000e+00)
524        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
525        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
522   Normalization:  9.290e-01  4.460e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 2.53
Ra Dec: 351.575 1.222
Photon Index (Fixed Index): 2.12 +/- 0.00
Photon Flux (Fixed Index): 1.15e-07 +/- 9.24e-08
Energy Flux (Fixed Index): 6.08e-05 +/- 4.86e-05

TS (Fixed Index): 2.53
Ra Dec: 351.575 1.222
Photon Flux Upper Limit: 3.14e-07 ph cm-2 s-1
Energy Flux Upper Limit: 2.38e-02 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/891523/likelihoodResults_384220801_384480001_4FGL_J2326.2+0113_daily_bin559.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) = 2724.89885802
delta logL = 0.132624596178

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 2724.89867318
delta logL = 0.13280942782

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    259.33       1.0000         .10000E-03   10000.    
     2 'Index     '    1.8617       1.0000          .0000       10.000    
     3 'Normalizat'    .94831       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0085       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=   2724.899     FROM MIGRAD    STATUS=CONVERGED     92 CALLS      300 TOTAL
                     EDM=   .64E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     259.78        226.91        .12584E-03    .45660E-04
   2  Index         1.8629        .48315        .47683E-02   -.19236E-04
   3  Normalizat    .94834        .41267        .36467E-03    .77938E-05
   4  Prefactor     1.0082        .26961        .22926E-03    .34141E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 259.779
  Index      = 1.86293
  Normalizat = 0.948339
  Prefactor  = 1.00823
 **********
 **   18 **HESSE 
 **********

 FCN=   2724.899     FROM HESSE     STATUS=OK            25 CALLS      325 TOTAL
                     EDM=   .70E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     259.78        223.38        .25168E-04   -1.2470    
   2  Index         1.8629        .47550        .19073E-03   -.67823    
   3  Normalizat    .94834        .41290        .14587E-04   -.94782    
   4  Prefactor     1.0082        .26980        .91706E-05   -.92456    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 6.98494e-11
Minuit parameter uncertainties:
  1  224.124
  2  0.476693
  3  0.414297
  4  0.270165
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/891523': 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) = 2724.89866397
delta logL = 0.132818642288

Extracting fit parameters...

4FGL J2326.2+0113
   Spectrum: PowerLaw
406    Prefactor:  2.598e+02  2.241e+02  1.000e-04  1.000e+04 ( 1.000e-14)
407        Index:  1.863e+00  4.767e-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.008e+00  2.702e-01  0.000e+00  1.000e+01 ( 1.000e+00)
524        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
525        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
522   Normalization:  9.483e-01  4.143e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 2.84
Ra Dec: 351.575 1.222
Photon Index (Free Index): 1.86 +/- 0.48
Photon Flux (Free Index): 9.28e-08 +/- 8.84e-08
Energy Flux (Free Index): 9.24e-05 +/- 1.04e-04

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/891523/cmap_HighResolution_384220801_384480001_4FGL_J2326.2+0113_daily_bin559.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='2.38e-02', comment='SUCCESS', photon_flux='1.15e-07', energy_flux2='9.24e-05', photon_flux_error='9.24e-08', dlogl='1.33e-01', energy_flux='6.08e-05', photon_flux2='9.28e-08', job_status='DONE', time_completed='2021-09-29 19:01:58.406899', photon_index_error2='0.48', photon_index2='1.86', ts='2.53', fit_tolerance='1e-08', GAL='1.02', photon_index_error='0.00', photon_flux_upper_limit='3.14e-07', energy_flux_error2='1.04e-04', EG='0.93', time_epoch_completed='1632967318.41', return_code='0', job_id='891523', GAL2='1.01', EG2='0.95', return_code2='0', energy_flux_error='4.86e-05', photon_flux_error2='8.84e-08', ts2='2.84', photon_index='2.12' WHERE bin_id='559' AND source_name='4FGL J2326.2+0113' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep 29 19:01:58 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0070>
Subject: Job 891523: <4FGL_J2326.2+0113_daily_bin559> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2326.2+0113_daily_bin559 351.575 1.2216 384220801 384480001 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 :                                   515.00 sec.
    Max Memory :                                 1255 MB
    Average Memory :                             272.00 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   677 sec.
    Turnaround time :                            680 sec.

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

