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


Performing analysis on: 4FGL_J2326.2+0113_daily_bin672
RA = 351.575, Dec = 1.2216
tmin = 413510401, tmax = 413769601
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='891700', job_status='RUN', time_executed='2021-09-29 18:51:12.012439', time_epoch_executed='1632966672.01' WHERE source_name='4FGL J2326.2+0113' and cadence='daily' and bin_id='672'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/891700

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/891700/ft1_4FGL_J2326.2+0113_daily_bin672.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/891700/ft2_4FGL_J2326.2+0113_daily_bin672.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/891700/ft1_4FGL_J2326.2+0113_daily_bin672.fits outfile=/scratch/kocevski/891700/ft1_filteredMKT_4FGL_J2326.2+0113_daily_bin672.fits ra=351.575 dec=1.2216 rad=12.0 tmin=413510401.0 tmax=413769601.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.50
user 5.22
sys 0.22

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/891700/ft1_filtered_4FGL_J2326.2+0113_daily_bin672.fits" evtable="EVENTS" scfile=/scratch/kocevski/891700/ft2_4FGL_J2326.2+0113_daily_bin672.fits sctable="SC_DATA" outfile=/scratch/kocevski/891700/ltcube_413510401_413769601_4FGL_J2326.2+0113_daily_bin672.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/891700/ft2_4FGL_J2326.2+0113_daily_bin672.fits
.....................!
real 12.28
user 11.94
sys 0.31

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/891700/ft1_filtered_4FGL_J2326.2+0113_daily_bin672.fits evtable="EVENTS" scfile=/scratch/kocevski/891700/ft2_4FGL_J2326.2+0113_daily_bin672.fits sctable="SC_DATA" expcube=/scratch/kocevski/891700/ltcube_413510401_413769601_4FGL_J2326.2+0113_daily_bin672.fits outfile=/scratch/kocevski/891700/expmap_413510401_413769601_4FGL_J2326.2+0113_daily_bin672.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/891700/ltcube_413510401_413769601_4FGL_J2326.2+0113_daily_bin672.fits
.....................!
real 192.93
user 187.39
sys 5.15

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/891700/ft1_filtered_4FGL_J2326.2+0113_daily_bin672.fits scfile=/scratch/kocevski/891700/ft2_4FGL_J2326.2+0113_daily_bin672.fits outfile=/scratch/kocevski/891700/cmap_413510401_413769601_4FGL_J2326.2+0113_daily_bin672.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.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/891700/ft1_filtered_4FGL_J2326.2+0113_daily_bin672.fits scfile=/scratch/kocevski/891700/ft2_4FGL_J2326.2+0113_daily_bin672.fits outfile=/scratch/kocevski/891700/cmap_HighResolution_413510401_413769601_4FGL_J2326.2+0113_daily_bin672.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.53
user 0.36
sys 0.17

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    20.250       1.0000         .10000E-03   10000.    
     2 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    30.477       1.0000         .10000E-03   10000.    
     4 'Prefactor '    26.984       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10028E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10010E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    13.076       1.0000         .10000E-03   10000.    
     8 'norm      '    .10962E-03   1.0000         .10000E-03   10000.    
     9 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10024E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    26.515       1.0000         .10000E-03   10000.    
    12 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    22.729       1.0000         .10000E-03   10000.    
    14 'Prefactor '    302.22       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .12426E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .11325E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    .10056E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10040E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10046E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    113.88       1.0000         .10000E-03   10000.    
    21 'Prefactor '    20.025       1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10029E-03   1.0000         .10000E-03   10000.    
    23 'Normalizat'    1.3237       1.0000         .10000E-01   10.000    
    24 'Prefactor '    .68049       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=   2516.278     FROM MIGRAD    STATUS=CONVERGED    541 CALLS     2700 TOTAL
                     EDM=   .18E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .5%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     20.249        25.678        .15087E-05   -.14406E-04
   2  norm          .10000E-03    13.258        .90476E-07** at limit **
   3  Prefactor     30.472        67.964       -.38221E-05   -.10553E-04
   4  Prefactor     26.976        26.822        .34570E-05   -.15446E-04
   5  Prefactor     .10000E-03    17.507       -.93701E-06** at limit **
   6  Prefactor     .10000E-03    83.477        .21719E-04** at limit **
   7  Prefactor     13.078        12.308       -.17315E-06   -.59614E-06
   8  norm          .10000E-03    1.0184       -.12531E-05** at limit **
   9  norm          .10000E-03    3.4767       -.40874E-07** at limit **
  10  Prefactor     .10000E-03    18.726        .35333E-06** at limit **
  11  Prefactor     26.562        104.78        .73607E-04    .15160E-04
  12  norm          .10000E-03    11.477        .11529E-06** at limit **
  13  Prefactor     22.725        13.681        .70604E-06   -.37053E-04
  14  Prefactor     302.42        356.92        .11639E-03    .43392E-04
  15  Prefactor     .10002E-03    22.542       -.35925E-05** at limit **
  16  Prefactor     .10001E-03    251.53       -.22289E-05** at limit **
  17  norm          .10000E-03    18.456        .41164E-06** at limit **
  18  Prefactor     .10000E-03    78.015       -.20560E-04** at limit **
  19  Prefactor     .10000E-03    4.2651       -.69880E-06** at limit **
  20  Prefactor     113.87        76.663       -.50061E-05   -.61886E-06
  21  Prefactor     20.016        30.792        .43565E-05   -.12072E-04
  22  Prefactor     .10000E-03    37.881        .12253E-05** at limit **
  23  Normalizat    1.3237        .34372       -.63711E-05    .21835E-03
  24  Prefactor     .68064        .21549       -.29650E-05    .72692E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 20.2493
  norm       = 0.0001
  Prefactor  = 30.4721
  Prefactor  = 26.9764
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 13.0777
  norm       = 0.000100004
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 26.5625
  norm       = 0.0001
  Prefactor  = 22.7246
  Prefactor  = 302.424
  Prefactor  = 0.000100022
  Prefactor  = 0.000100006
  norm       = 0.000100001
  Prefactor  = 0.0001
  Prefactor  = 0.000100001
  Prefactor  = 113.873
  Prefactor  = 20.0157
  Prefactor  = 0.0001
  Normalizat = 1.3237
  Prefactor  = 0.680642
 **********
 **   18 **HESSE 
 **********

 FCN=   2516.278     FROM HESSE     STATUS=OK           389 CALLS     3089 TOTAL
                     EDM=   .43E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     20.249        25.718        .89005E-04   -1.4808    
   2  norm          .10000E-03    13.279        .17841E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     30.472        68.143        .72577E-04   -1.4603    
   4  Prefactor     26.976        26.803        .77120E-04   -1.4669    
   5  Prefactor     .10000E-03    17.531        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    83.650        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     13.078        12.313        .11077E-03   -1.4985    
   8  norm          .10000E-03    1.5890        .98096E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          .10000E-03    3.4785        .91349E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    18.811        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     26.562        104.61        .77798E-04   -1.4677    
  12  norm          .10000E-03    11.549        .16586E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     22.725        13.703        .84018E-04   -1.4754    
  14  Prefactor     302.42        357.58        .11682E-03   -1.2212    
  15  Prefactor     .10002E-03    22.811        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10001E-03    257.30        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          .10000E-03    18.458        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    77.992        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    4.2927        .10119E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     113.87        76.742        .37699E-04   -1.3570    
  21  Prefactor     20.016        30.790        .89505E-04   -1.4813    
  22  Prefactor     .10000E-03    38.093        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Normalizat    1.3237        .40466        .27083E-03   -.82862    
  24  Prefactor     .68064        .25252        .23743E-03   -1.0429    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.28293e-09
Minuit parameter uncertainties:
  1  25.7324
  2  2.82497e-05
  3  68.3175
  4  26.8149
  5  3.69851e-05
  6  3.79083e-05
  7  12.3153
  8  0.000156682
  9  5.91905e-06
  10  8.34881e-05
  11  105.34
  12  4.62938e-05
  13  13.705
  14  360.227
  15  0.00141085
  16  0.00244079
  17  0.000296303
  18  1.32602e-05
  19  0.000143337
  20  76.8094
  21  30.8139
  22  0.000149291
  23  0.405632
  24  0.252947
Done.

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

Extracting fit parameters...

4FGL J2326.2+0113
   Spectrum: PowerLaw
406    Prefactor:  2.656e+01  1.053e+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:  6.806e-01  2.529e-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.324e+00  4.056e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/891700/likelihoodResults_413510401_413769601_4FGL_J2326.2+0113_daily_bin672.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) = 2515.89788703
delta logL = 0.380217913924

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 2515.72700459
delta logL = 0.551100362291

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    91.162       1.0000         .10000E-03   10000.    
     2 'Index     '    1.1963       1.0000          .0000       10.000    
     3 'Normalizat'    1.3233       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .67701       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=   2515.727     FROM MIGRAD    STATUS=CONVERGED     52 CALLS      219 TOTAL
                     EDM=   .33E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY= 15.7%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     91.234        140.56        .31747E-04   -.43122E-04
   2  Index         1.1974        .73885        .75354E-04    .42587E-05
   3  Normalizat    1.3232        .32713       -.13400E-05   -.40217E-03
   4  Prefactor     .67715        .21444       -.13118E-05   -.40197E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 91.2338
  Index      = 1.19743
  Normalizat = 1.32321
  Prefactor  = 0.677147
 **********
 **   18 **HESSE 
 **********

 FCN=   2515.727     FROM HESSE     STATUS=OK            27 CALLS      246 TOTAL
                     EDM=   .78E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     91.234        137.46        .21043E-03   -1.3795    
   2  Index         1.1974        .72288        .89412E-02   -.86411    
   3  Normalizat    1.3232        .38410        .27050E-03   -.82876    
   4  Prefactor     .67715        .25170        .23775E-03   -1.0443    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 7.82952e-10
Minuit parameter uncertainties:
  1  137.941
  2  0.728994
  3  0.384931
  4  0.252124
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/891700': 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) = 2515.72700325
delta logL = 0.551101701142

Extracting fit parameters...

4FGL J2326.2+0113
   Spectrum: PowerLaw
406    Prefactor:  9.123e+01  1.379e+02  1.000e-04  1.000e+04 ( 1.000e-14)
407        Index:  1.197e+00  7.290e-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:  6.771e-01  2.521e-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.323e+00  3.849e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 1.18
Ra Dec: 351.575 1.222
Photon Index (Free Index): 1.20 +/- 0.73
Photon Flux (Free Index): 1.37e-08 +/- 2.28e-08
Energy Flux (Free Index): 1.15e-04 +/- 2.03e-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/891700/cmap_HighResolution_413510401_413769601_4FGL_J2326.2+0113_daily_bin672.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.40e-02', comment='SUCCESS', energy_flux2='1.15e-04', dlogl='5.51e-01', photon_flux2='1.37e-08', job_status='DONE', time_completed='2021-09-29 18:59:03.795180', photon_index_error2='0.73', photon_index2='1.20', ts='0.08', fit_tolerance='1e-08', GAL='0.68', photon_index_error='0.00', photon_flux_upper_limit='1.85e-07', energy_flux_error2='2.03e-04', EG='1.32', time_epoch_completed='1632967143.8', return_code='0', job_id='891700', GAL2='0.68', EG2='1.32', return_code2='0', photon_flux_error2='2.28e-08', ts2='1.18', photon_index='2.12' WHERE bin_id='672' AND source_name='4FGL J2326.2+0113' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep 29 18:59:03 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0231>
Subject: Job 891700: <4FGL_J2326.2+0113_daily_bin672> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2326.2+0113_daily_bin672 351.575 1.2216 413510401 413769601 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 :                                   462.12 sec.
    Max Memory :                                 1209 MB
    Average Memory :                             339.53 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   485 sec.
    Turnaround time :                            487 sec.

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

