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


Performing analysis on: 4FGL_J2326.2+0113_daily_bin370
RA = 351.575, Dec = 1.2216
tmin = 335232001, tmax = 335491201
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='890179', job_status='RUN', time_executed='2021-09-29 18:48:28.839803', time_epoch_executed='1632966508.84' WHERE source_name='4FGL J2326.2+0113' and cadence='daily' and bin_id='370'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/890179

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/890179/ft1_4FGL_J2326.2+0113_daily_bin370.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/890179/ft2_4FGL_J2326.2+0113_daily_bin370.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/890179/ft1_4FGL_J2326.2+0113_daily_bin370.fits outfile=/scratch/kocevski/890179/ft1_filteredMKT_4FGL_J2326.2+0113_daily_bin370.fits ra=351.575 dec=1.2216 rad=12.0 tmin=335232001.0 tmax=335491201.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.71
user 3.47
sys 0.21

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

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

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/890179/ft1_filtered_4FGL_J2326.2+0113_daily_bin370.fits evtable="EVENTS" scfile=/scratch/kocevski/890179/ft2_4FGL_J2326.2+0113_daily_bin370.fits sctable="SC_DATA" expcube=/scratch/kocevski/890179/ltcube_335232001_335491201_4FGL_J2326.2+0113_daily_bin370.fits outfile=/scratch/kocevski/890179/expmap_335232001_335491201_4FGL_J2326.2+0113_daily_bin370.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/890179/ltcube_335232001_335491201_4FGL_J2326.2+0113_daily_bin370.fits
.....................!
real 189.59
user 185.15
sys 4.09

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/890179/ft1_filtered_4FGL_J2326.2+0113_daily_bin370.fits scfile=/scratch/kocevski/890179/ft2_4FGL_J2326.2+0113_daily_bin370.fits outfile=/scratch/kocevski/890179/cmap_335232001_335491201_4FGL_J2326.2+0113_daily_bin370.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.53
user 0.37
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/890179/ft1_filtered_4FGL_J2326.2+0113_daily_bin370.fits scfile=/scratch/kocevski/890179/ft2_4FGL_J2326.2+0113_daily_bin370.fits outfile=/scratch/kocevski/890179/cmap_HighResolution_335232001_335491201_4FGL_J2326.2+0113_daily_bin370.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/890179/ft1_filtered_4FGL_J2326.2+0113_daily_bin370.fits evtable="EVENTS" scfile=/scratch/kocevski/890179/ft2_4FGL_J2326.2+0113_daily_bin370.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/890179/Model_4FGL_J2326.2+0113_daily_bin370.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/890179/ft1_filtered_4FGL_J2326.2+0113_daily_bin370.fits....................!
real 57.07
user 55.75
sys 1.13

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    2.0280       1.0000         .10000E-03   10000.    
     2 'norm      '    .16120E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10020E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10142E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    2.3927       1.0000         .10000E-03   10000.    
     8 'norm      '    6.5973       1.0000         .10000E-03   10000.    
     9 'norm      '    .10135E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    1.9569       1.0000         .10000E-03   10000.    
    11 'Prefactor '    61.636       1.0000         .10000E-03   10000.    
    12 'norm      '    .10049E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    4.5694       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .11460E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    6.1759       1.0000         .10000E-03   10000.    
    16 'Prefactor '    34.182       1.0000         .10000E-03   10000.    
    17 'norm      '    .18294E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    21.744       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10024E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10011E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    9.2920       1.0000         .10000E-03   10000.    
    23 'Normalizat'    1.0386       1.0000         .10000E-01   10.000    
    24 'Prefactor '    .82210       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=   5446.267     FROM MIGRAD    STATUS=CONVERGED    563 CALLS     2754 TOTAL
                     EDM=   .16E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  3.8%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     2.0263        30.970        .36960E-06   -.14279E-04
   2  norm          .10000E-03    9.1762       -.14272E-07** at limit **
   3  Prefactor     .10000E-03    9.4039        .80053E-07** at limit **
   4  Prefactor     .10000E-03    3.1282        .38064E-08** at limit **
   5  Prefactor     .10000E-03    7.6016       -.88998E-08** at limit **
   6  Prefactor     .10000E-03    20.214        .68665E-06** at limit **
   7  Prefactor     2.3888        6.7907        .14133E-06    .14005E-03
   8  norm          6.5974        1.6967        .40887E-07    .35155E-03
   9  norm          .10001E-03    11.804       -.59565E-05** at limit **
  10  Prefactor     1.9493        11.826        .60510E-05   -.34954E-03
  11  Prefactor     61.627        53.280       -.32096E-06   -.17967E-03
  12  norm          .10000E-03    6.0082        .19205E-07** at limit **
  13  Prefactor     4.5700        8.0765       -.25393E-06   -.53071E-04
  14  Prefactor     .10006E-03    118.04        .34603E-05** at limit **
  15  Prefactor     6.1670        13.630       -.29345E-05   -.82287E-03
  16  Prefactor     34.201        29.470       -.88363E-06    .94195E-04
  17  norm          .10001E-03    155.75       -.56681E-06** at limit **
  18  Prefactor     .10000E-03    76.745       -.69841E-06** at limit **
  19  Prefactor     21.741        7.8688       -.15660E-06   -.16566E-02
  20  Prefactor     .10000E-03    14.610        .74884E-07** at limit **
  21  Prefactor     .10000E-03    9.9424       -.45997E-07** at limit **
  22  Prefactor     9.2919        14.020        .98627E-07   -.32687E-04
  23  Normalizat    1.0387        .22096        .97163E-08   -.69674E-04
  24  Prefactor     .82208        .14398       -.40871E-06   -.10294E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 2.02629
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000100003
  Prefactor  = 2.38883
  norm       = 6.59738
  norm       = 0.000100005
  Prefactor  = 1.94934
  Prefactor  = 61.627
  norm       = 0.0001
  Prefactor  = 4.57
  Prefactor  = 0.000100061
  Prefactor  = 6.16705
  Prefactor  = 34.2015
  norm       = 0.00010001
  Prefactor  = 0.000100002
  Prefactor  = 21.7409
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 9.29188
  Normalizat = 1.03869
  Prefactor  = 0.822077
 **********
 **   18 **HESSE 
 **********

 FCN=   5446.267     FROM HESSE     STATUS=OK           397 CALLS     3151 TOTAL
                     EDM=   .41E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     2.0263        31.071        .29052E-03   -1.5423    
   2  norm          .10000E-03    47.072        .42815E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    9.4118        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    3.1301        .12748E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    7.6162        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    20.467        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     2.3888        6.5820        .26476E-03   -1.5399    
   8  norm          6.5974        1.6892        .45712E-04   -1.5194    
   9  norm          .10001E-03    19.602        .31360E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     1.9493        21.290        .14829E-02   -1.5429    
  11  Prefactor     61.627        53.439        .51109E-04   -1.4136    
  12  norm          .10000E-03    6.0578        .17601E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     4.5700        8.0447        .18831E-03   -1.5280    
  14  Prefactor     .10006E-03    121.99        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     6.1670        14.283        .16154E-03   -1.5211    
  16  Prefactor     34.201        30.257        .68542E-04   -1.4538    
  17  norm          .10001E-03    160.20        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    77.408        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     21.741        7.8637        .85898E-04   -1.4775    
  20  Prefactor     .10000E-03    14.626        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10000E-03    9.9749        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     9.2919        14.018        .13147E-03   -1.5098    
  23  Normalizat    1.0387        .26128        .28620E-03   -.91745    
  24  Prefactor     .82208        .17035        .21523E-03   -.98920    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.13333e-09
Minuit parameter uncertainties:
  1  15.8787
  2  0.000302627
  3  3.31034e-05
  4  5.26344e-07
  5  7.10709e-07
  6  0.000511751
  7  6.58397
  8  1.68918
  9  0.000637655
  10  12.8897
  11  53.4802
  12  1.10352e-06
  13  8.04657
  14  0.00544611
  15  14.2906
  16  30.2702
  17  0.00250568
  18  0.000750761
  19  7.86404
  20  3.99313e-05
  21  2.89493e-05
  22  14.0234
  23  0.261607
  24  0.17046
Done.

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

Extracting fit parameters...

4FGL J2326.2+0113
   Spectrum: PowerLaw
406    Prefactor:  6.163e+01  5.348e+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.221e-01  1.705e-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.039e+00  2.616e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 2.26
Ra Dec: 351.575 1.222
Photon Index (Fixed Index): 2.12 +/- 0.00
Photon Flux (Fixed Index): 3.75e-08 +/- 3.25e-08
Energy Flux (Fixed Index): 1.97e-05 +/- 1.71e-05

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

Saving results to:
/scratch/kocevski/890179/likelihoodResults_335232001_335491201_4FGL_J2326.2+0113_daily_bin370.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) = 5446.22893578
delta logL = 0.0377472640621

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5446.22842884
delta logL = 0.0382541975741

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    49.595       1.0000         .10000E-03   10000.    
     2 'Index     '    2.2868       1.0000          .0000       10.000    
     3 'Normalizat'    1.0325       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .82430       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=   5446.228     FROM MIGRAD    STATUS=CONVERGED     81 CALLS      287 TOTAL
                     EDM=   .17E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     49.582        67.213        .56944E-04    .48103E-03
   2  Index         2.2865        .66594        .59661E-02    .30364E-03
   3  Normalizat    1.0326        .25031        .28691E-03   -.47798E-03
   4  Prefactor     .82432        .16970        .21495E-03   -.75741E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 49.5818
  Index      = 2.28645
  Normalizat = 1.03258
  Prefactor  = 0.824323
 **********
 **   18 **HESSE 
 **********

 FCN=   5446.228     FROM HESSE     STATUS=OK            25 CALLS      312 TOTAL
                     EDM=   .17E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     49.582        62.129        .11389E-04   -1.4299    
   2  Index         2.2865        .61553        .23864E-03   -.57366    
   3  Normalizat    1.0326        .25030        .57383E-04   -.91947    
   4  Prefactor     .82432        .16974        .42990E-04   -.98838    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.68097e-09
Minuit parameter uncertainties:
  1  62.2099
  2  0.617753
  3  0.250582
  4  0.169851
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/890179': 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) = 5446.22842818
delta logL = 0.0382548616935

Extracting fit parameters...

4FGL J2326.2+0113
   Spectrum: PowerLaw
406    Prefactor:  4.958e+01  6.221e+01  1.000e-04  1.000e+04 ( 1.000e-14)
407        Index:  2.286e+00  6.178e-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.243e-01  1.699e-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.033e+00  2.506e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 2.34
Ra Dec: 351.575 1.222
Photon Index (Free Index): 2.29 +/- 0.62
Photon Flux (Free Index): 4.39e-08 +/- 4.32e-08
Energy Flux (Free Index): 1.70e-05 +/- 1.67e-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/890179/cmap_HighResolution_335232001_335491201_4FGL_J2326.2+0113_daily_bin370.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='8.76e-03', comment='SUCCESS', photon_flux='3.75e-08', energy_flux2='1.70e-05', photon_flux_error='3.25e-08', dlogl='3.83e-02', energy_flux='1.97e-05', photon_flux2='4.39e-08', job_status='DONE', time_completed='2021-09-29 18:58:39.219733', photon_index_error2='0.62', photon_index2='2.29', ts='2.26', fit_tolerance='1e-08', GAL='0.82', photon_index_error='0.00', photon_flux_upper_limit='1.16e-07', energy_flux_error2='1.67e-05', EG='1.04', time_epoch_completed='1632967119.22', return_code='0', job_id='890179', GAL2='0.82', EG2='1.03', return_code2='0', energy_flux_error='1.71e-05', photon_flux_error2='4.32e-08', ts2='2.34', photon_index='2.12' WHERE bin_id='370' AND source_name='4FGL J2326.2+0113' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep 29 18:58:39 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0244>
Subject: Job 890179: <4FGL_J2326.2+0113_daily_bin370> in cluster <slac> Done

Job <4FGL_J2326.2+0113_daily_bin370> was submitted from host <rhel6-64f> by user <kocevski> in cluster <slac> at Wed Sep 29 18:45:35 2021
Job was executed on host(s) <bullet0244>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Sep 29 18:45:36 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Wed Sep 29 18:45:36 2021
Terminated at Wed Sep 29 18:58:39 2021
Results reported at Wed Sep 29 18:58:39 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2326.2+0113_daily_bin370 351.575 1.2216 335232001 335491201 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 :                                   609.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             239.48 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   783 sec.
    Turnaround time :                            784 sec.

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

