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


Performing analysis on: 4FGL_J2326.2+0113_daily_bin611
RA = 351.575, Dec = 1.2216
tmin = 397699201, tmax = 397958401
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='891606', job_status='RUN', time_executed='2021-09-29 18:52:45.870432', time_epoch_executed='1632966765.87' WHERE source_name='4FGL J2326.2+0113' and cadence='daily' and bin_id='611'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/891606

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

Retrieving the FT1 file...

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

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

Retrieving 49 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/891606/ft1_4FGL_J2326.2+0113_daily_bin611.fits


Retrieving the FT1 file...

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

Retrieving 49 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/891606/ft2_4FGL_J2326.2+0113_daily_bin611.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/891606/ft1_4FGL_J2326.2+0113_daily_bin611.fits outfile=/scratch/kocevski/891606/ft1_filteredMKT_4FGL_J2326.2+0113_daily_bin611.fits ra=351.575 dec=1.2216 rad=12.0 tmin=397699201.0 tmax=397958401.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.67
user 3.43
sys 0.22

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/891606/ft2_4FGL_J2326.2+0113_daily_bin611.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/891606/ft1_filteredMKT_4FGL_J2326.2+0113_daily_bin611.fits evtable="EVENTS" outfile="/scratch/kocevski/891606/ft1_filtered_4FGL_J2326.2+0113_daily_bin611.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/891606/ft1_filtered_4FGL_J2326.2+0113_daily_bin611.fits" evtable="EVENTS" scfile=/scratch/kocevski/891606/ft2_4FGL_J2326.2+0113_daily_bin611.fits sctable="SC_DATA" outfile=/scratch/kocevski/891606/ltcube_397699201_397958401_4FGL_J2326.2+0113_daily_bin611.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/891606/ft2_4FGL_J2326.2+0113_daily_bin611.fits
.....................!
real 12.24
user 11.88
sys 0.33

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/891606/ft1_filtered_4FGL_J2326.2+0113_daily_bin611.fits evtable="EVENTS" scfile=/scratch/kocevski/891606/ft2_4FGL_J2326.2+0113_daily_bin611.fits sctable="SC_DATA" expcube=/scratch/kocevski/891606/ltcube_397699201_397958401_4FGL_J2326.2+0113_daily_bin611.fits outfile=/scratch/kocevski/891606/expmap_397699201_397958401_4FGL_J2326.2+0113_daily_bin611.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/891606/ltcube_397699201_397958401_4FGL_J2326.2+0113_daily_bin611.fits
.....................!
real 189.99
user 184.92
sys 4.65

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/891606/ft1_filtered_4FGL_J2326.2+0113_daily_bin611.fits scfile=/scratch/kocevski/891606/ft2_4FGL_J2326.2+0113_daily_bin611.fits outfile=/scratch/kocevski/891606/cmap_397699201_397958401_4FGL_J2326.2+0113_daily_bin611.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.55
user 0.38
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/891606/ft1_filtered_4FGL_J2326.2+0113_daily_bin611.fits scfile=/scratch/kocevski/891606/ft2_4FGL_J2326.2+0113_daily_bin611.fits outfile=/scratch/kocevski/891606/cmap_HighResolution_397699201_397958401_4FGL_J2326.2+0113_daily_bin611.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/891606/ft1_filtered_4FGL_J2326.2+0113_daily_bin611.fits evtable="EVENTS" scfile=/scratch/kocevski/891606/ft2_4FGL_J2326.2+0113_daily_bin611.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/891606/Model_4FGL_J2326.2+0113_daily_bin611.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/891606/ft1_filtered_4FGL_J2326.2+0113_daily_bin611.fits.....................!
real 68.07
user 66.67
sys 1.23

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    7.8804       1.0000         .10000E-03   10000.    
     2 'norm      '    .10066E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    42.216       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    77.127       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10108E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    2.7763       1.0000         .10000E-03   10000.    
     9 'norm      '    3.3408       1.0000         .10000E-03   10000.    
    10 'Prefactor '    2.2149       1.0000         .10000E-03   10000.    
    11 'Prefactor '    15.630       1.0000         .10000E-03   10000.    
    12 'norm      '    30.603       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10045E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    25.314       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10009E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    .26441E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    4.3825       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .13750E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    31.116       1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    23 'Normalizat'    .79295       1.0000         .10000E-01   10.000    
    24 'Prefactor '    1.0552       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=   6812.668     FROM MIGRAD    STATUS=CONVERGED    526 CALLS     2699 TOTAL
                     EDM=   .31E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .3%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     7.8811        16.756       -.17095E-05   -.27056E-04
   2  norm          .10000E-03    9.5734        .31877E-05** at limit **
   3  Prefactor     42.182        39.193       -.27831E-04    .36571E-04
   4  Prefactor     .10000E-03    11.455       -.12377E-04** at limit **
   5  Prefactor     .10000E-03    19.586       -.18429E-06** at limit **
   6  Prefactor     77.137        54.566        .73866E-05    .29264E-04
   7  Prefactor     .10000E-03    3.9371       -.24074E-06** at limit **
   8  norm          2.7764        1.0550       -.12405E-06    .33516E-04
   9  norm          3.3412        3.6315       -.45376E-06    .62416E-06
  10  Prefactor     2.2124        13.012       -.19134E-05   -.22189E-03
  11  Prefactor     15.603        42.388       -.38408E-04    .21585E-04
  12  norm          30.606        11.972        .29584E-06    .12533E-03
  13  Prefactor     .10000E-03    7.4455       -.61387E-06** at limit **
  14  Prefactor     .10000E-03    55.950        .49620E-04** at limit **
  15  Prefactor     25.284        14.667        .77619E-06   -.86365E-04
  16  Prefactor     .10000E-03    12.718        .11104E-04** at limit **
  17  norm          .10000E-03    83.090        .59838E-05** at limit **
  18  Prefactor     .10000E-03    39.832       -.20551E-04** at limit **
  19  Prefactor     4.3808        4.7920       -.32699E-07   -.42428E-03
  20  Prefactor     .10000E-03    85.156       -.34426E-04** at limit **
  21  Prefactor     31.124        26.481        .15831E-05    .81031E-04
  22  Prefactor     .10000E-03    4.4322       -.36203E-07** at limit **
  23  Normalizat    .79287        .20791        .31340E-05    .17733E-03
  24  Prefactor     1.0553        .13581        .16931E-05    .19173E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 7.88108
  norm       = 0.0001
  Prefactor  = 42.1816
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 77.137
  Prefactor  = 0.0001
  norm       = 2.77644
  norm       = 3.34122
  Prefactor  = 2.21235
  Prefactor  = 15.6028
  norm       = 30.6058
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 25.2839
  Prefactor  = 0.0001
  norm       = 0.000100001
  Prefactor  = 0.0001
  Prefactor  = 4.38076
  Prefactor  = 0.000100001
  Prefactor  = 31.1239
  Prefactor  = 0.0001
  Normalizat = 0.792872
  Prefactor  = 1.05528
 **********
 **   18 **HESSE 
 **********

 FCN=   6812.668     FROM HESSE     STATUS=OK           395 CALLS     3094 TOTAL
                     EDM=   .61E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     7.8811        16.792        .14284E-03   -1.5146    
   2  norm          .10000E-03    9.6631        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     42.182        39.224        .61698E-04   -1.4408    
   4  Prefactor     .10000E-03    11.576        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    19.834        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     77.137        54.681        .45724E-04   -1.3949    
   7  Prefactor     .10000E-03    3.9406        .15978E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          2.7764        1.0549        .24424E-04   -1.5375    
   9  norm          3.3412        3.6277        .15801E-03   -1.5342    
  10  Prefactor     2.2124        12.801        .27635E-03   -1.5410    
  11  Prefactor     15.603        42.380        .10131E-03   -1.4918    
  12  norm          30.606        11.839        .72428E-04   -1.4601    
  13  Prefactor     .10000E-03    7.5492        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    55.959        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     25.284        14.517        .79619E-04   -1.4702    
  16  Prefactor     .10000E-03    12.742        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          .10000E-03    84.331        .42884E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    39.933        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     4.3808        4.7645        .16514E-03   -1.5289    
  20  Prefactor     .10000E-03    85.812        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     31.124        26.515        .71830E-04   -1.4592    
  22  Prefactor     .10000E-03    4.4366        .16970E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Normalizat    .79287        .23735        .33515E-03   -1.0033    
  24  Prefactor     1.0553        .15552        .20242E-03   -.90909    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 6.05617e-10
Minuit parameter uncertainties:
  1  16.8017
  2  4.87365e-05
  3  39.2484
  4  6.87789e-05
  5  0.000198273
  6  54.7162
  7  5.46305e-05
  8  1.05494
  9  3.62792
  10  10.6467
  11  42.4618
  12  11.8396
  13  3.10705e-05
  14  1.38834e-05
  15  14.5187
  16  2.14588e-05
  17  0.000676122
  18  0.000104629
  19  4.76487
  20  0.00057274
  21  26.525
  22  8.27107e-06
  23  0.237658
  24  0.155586
Done.

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

Extracting fit parameters...

4FGL J2326.2+0113
   Spectrum: PowerLaw
406    Prefactor:  1.560e+01  4.246e+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:  1.055e+00  1.556e-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.929e-01  2.377e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/891606/likelihoodResults_397699201_397958401_4FGL_J2326.2+0113_daily_bin611.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) = 6812.36080523
delta logL = 0.30687914689

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6812.35267837
delta logL = 0.315006011003

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    7.7182       1.0000         .10000E-03   10000.    
     2 'Index     '    2.9925       1.0000          .0000       10.000    
     3 'Normalizat'    .76720       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0621       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.
 MACHINE ACCURACY LIMITS FURTHER IMPROVEMENT.

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.
 MIGRAD TERMINATED WITHOUT CONVERGENCE.

 FCN=   6812.353     FROM MIGRAD    STATUS=FAILED       107 CALLS      342 TOTAL
                     EDM=   .11E-06    STRATEGY= 1      ERR MATRIX APPROXIMATE

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     7.7501        63.867        .72171E-03   -.29174E-04
   2  Index         2.9919        2.2499        .65552E-02    .62988E-03
   3  Normalizat    .76710        .22562        .34005E-03   -.10531E-04
   4  Prefactor     1.0622        .15412        .20174E-03   -.14088E-05
                               ERR DEF=  .500    
 START SIMPLEX MINIMIZATION.    CONVERGENCE WHEN EDM .LT.   .20E-04
 SIMPLEX MINIMIZATION HAS CONVERGED.

 FCN=   6812.353     FROM SIMPLEX   STATUS=UNCHANGED     78 CALLS      420 TOTAL
                     EDM=   .12E-04    STRATEGY= 1      ERR MATRIX APPROXIMATE

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     7.7501        63.867        .33268E-03   -1.5151    
   2  Index         2.9919        2.2499        .96679E-03   -.41330    
   3  Normalizat    .76710        .22562        .31782E-03   -1.0130    
   4  Prefactor     1.0622        .15412        .17033E-03   -.90685    
                               ERR DEF=  .500    

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   6812.353     FROM MIGRAD    STATUS=CONVERGED     30 CALLS      450 TOTAL
                     EDM=   .31E-12    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     7.7501        20.891        .28868E-04    .39381E-05
   2  Index         2.9919        1.0924        .13110E-02   -.11620E-05
   3  Normalizat    .76710        .22439        .13602E-04    .16716E-06
   4  Prefactor     1.0622        .15329        .80696E-05    .28176E-06
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 7.75012
  Index      = 2.99185
  Normalizat = 0.7671
  Prefactor  = 1.06216
 **********
 **   18 **HESSE 
 **********

 FCN=   6812.353     FROM HESSE     STATUS=OK            23 CALLS      473 TOTAL
                     EDM=   .54E-12    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     7.7501        19.645        .11547E-05   -1.5151    
   2  Index         2.9919        1.0274        .52442E-04   -.41330    
   3  Normalizat    .76710        .22452        .27204E-05   -1.0130    
   4  Prefactor     1.0622        .15340        .16139E-05   -.90685    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.37603e-13
Minuit parameter uncertainties:
  1  19.6609
  2  1.03626
  3  0.224792
  4  0.153465
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/891606': 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) = 6812.35267575
delta logL = 0.315008627646

Extracting fit parameters...

4FGL J2326.2+0113
   Spectrum: PowerLaw
406    Prefactor:  7.750e+00  1.966e+01  1.000e-04  1.000e+04 ( 1.000e-14)
407        Index:  2.992e+00  1.036e+00  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.062e+00  1.535e-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.671e-01  2.248e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 0.17
Ra Dec: 351.575 1.222

Creating a high resolution counts map...
INFO: Auto-setting vmin to -2.500e-04 [aplpy.core]
INFO: Auto-setting vmax to  2.775e-03 [aplpy.core]
Saving /scratch/kocevski/891606/cmap_HighResolution_397699201_397958401_4FGL_J2326.2+0113_daily_bin611.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='6.27e-03', job_status='DONE', photon_flux_upper_limit='8.28e-08', time_completed='2021-09-29 19:04:06.217819', job_id='891606', GAL2='1.06', fit_tolerance='1e-08', EG2='0.77', EG='0.79', time_epoch_completed='1632967446.22', return_code2='0', ts='0.17', comment='SUCCESS', return_code='0', GAL='1.06', dlogl='3.15e-01', ts2='0.82', photon_index_error='0.00', photon_index='2.12' WHERE bin_id='611' AND source_name='4FGL J2326.2+0113' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep 29 19:04:06 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0304>
Subject: Job 891606: <4FGL_J2326.2+0113_daily_bin611> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2326.2+0113_daily_bin611 351.575 1.2216 397699201 397958401 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 :                                   677.03 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             272.85 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   797 sec.
    Turnaround time :                            799 sec.

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

