/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 3 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 = 7399
number of fields = 22
No RA_SUN column yet. Adding RA_SUN/DEC_SUN columns.
Done.


Performing analysis on: 4FGL_J2326.2+0113_daily_bin58
RA = 351.575, Dec = 1.2216
tmin = 254361601, tmax = 254620801
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='888695', job_status='RUN', time_executed='2021-09-29 18:40:58.254302', time_epoch_executed='1632966058.25' WHERE source_name='4FGL J2326.2+0113' and cadence='daily' and bin_id='58'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/888695

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/888695/ft1_4FGL_J2326.2+0113_daily_bin58.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/888695/ft2_4FGL_J2326.2+0113_daily_bin58.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/888695/ft1_4FGL_J2326.2+0113_daily_bin58.fits outfile=/scratch/kocevski/888695/ft1_filteredMKT_4FGL_J2326.2+0113_daily_bin58.fits ra=351.575 dec=1.2216 rad=12.0 tmin=254361601.0 tmax=254620801.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 1.42
user 1.25
sys 0.16

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

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

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/888695/ft1_filtered_4FGL_J2326.2+0113_daily_bin58.fits evtable="EVENTS" scfile=/scratch/kocevski/888695/ft2_4FGL_J2326.2+0113_daily_bin58.fits sctable="SC_DATA" expcube=/scratch/kocevski/888695/ltcube_254361601_254620801_4FGL_J2326.2+0113_daily_bin58.fits outfile=/scratch/kocevski/888695/expmap_254361601_254620801_4FGL_J2326.2+0113_daily_bin58.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/888695/ltcube_254361601_254620801_4FGL_J2326.2+0113_daily_bin58.fits
.....................!
real 190.48
user 185.10
sys 5.02

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/888695/ft1_filtered_4FGL_J2326.2+0113_daily_bin58.fits scfile=/scratch/kocevski/888695/ft2_4FGL_J2326.2+0113_daily_bin58.fits outfile=/scratch/kocevski/888695/cmap_254361601_254620801_4FGL_J2326.2+0113_daily_bin58.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/888695/ft1_filtered_4FGL_J2326.2+0113_daily_bin58.fits scfile=/scratch/kocevski/888695/ft2_4FGL_J2326.2+0113_daily_bin58.fits outfile=/scratch/kocevski/888695/cmap_HighResolution_254361601_254620801_4FGL_J2326.2+0113_daily_bin58.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.36
sys 0.17

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    23.410       1.0000         .10000E-03   10000.    
     2 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    5.1829       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10024E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    21.690       1.0000         .10000E-03   10000.    
     6 'Prefactor '    7.2124       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    1.0222       1.0000         .10000E-03   10000.    
     9 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10189E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    22.072       1.0000         .10000E-03   10000.    
    13 'Prefactor '    3.4562       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10029E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10989E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    59.639       1.0000         .10000E-03   10000.    
    17 'norm      '    .10012E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    2.1019       1.0000         .10000E-03   10000.    
    20 'Prefactor '    30.067       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10242E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    11.926       1.0000         .10000E-03   10000.    
    23 'Normalizat'    .75167       1.0000         .10000E-01   10.000    
    24 'Prefactor '    .96296       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=   8996.844     FROM MIGRAD    STATUS=CONVERGED    522 CALLS     2326 TOTAL
                     EDM=   .21E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .3%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     23.408        15.118        .19692E-07   -.12304E-04
   2  norm          .10000E-03    2.4193        .14565E-07** at limit **
   3  Prefactor     5.1889        43.034        .10824E-04    .17791E-04
   4  Prefactor     .10000E-03    14.387        .35661E-05** at limit **
   5  Prefactor     21.691        13.547       -.33007E-06   -.46954E-04
   6  Prefactor     7.2114        27.492       -.16731E-05   -.37025E-04
   7  Prefactor     .10000E-03    2.3322        .55438E-07** at limit **
   8  norm          1.0223        .66182        .57734E-07    .42997E-03
   9  norm          .10000E-03    1.0154        .11286E-07** at limit **
  10  Prefactor     .10000E-03    4.7167       -.15522E-06** at limit **
  11  Prefactor     .10000E-03    31.383        .80030E-05** at limit **
  12  norm          22.074        9.7108        .17374E-05    .29106E-03
  13  Prefactor     3.4570        5.9744        .55741E-05   -.12587E-05
  14  Prefactor     .10000E-03    47.658        .13994E-05** at limit **
  15  Prefactor     .10000E-03    15.246       -.10268E-04** at limit **
  16  Prefactor     59.629        24.567       -.41357E-05   -.22512E-03
  17  norm          .10000E-03    13.019       -.38813E-05** at limit **
  18  Prefactor     .10000E-03    13.866        .90317E-05** at limit **
  19  Prefactor     2.1021        2.0368        .21154E-06    .72111E-03
  20  Prefactor     30.068        27.344        .17309E-05    .97744E-04
  21  Prefactor     .10000E-03    47.863       -.80992E-05** at limit **
  22  Prefactor     11.925        15.499       -.18174E-06   -.28020E-04
  23  Normalizat    .75188        .16444       -.10813E-05    .88951E-04
  24  Prefactor     .96276        .10811       -.44741E-06    .17291E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 23.4082
  norm       = 0.0001
  Prefactor  = 5.18887
  Prefactor  = 0.0001
  Prefactor  = 21.6906
  Prefactor  = 7.21139
  Prefactor  = 0.0001
  norm       = 1.02225
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000100001
  norm       = 22.0742
  Prefactor  = 3.45701
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 59.6292
  norm       = 0.0001
  Prefactor  = 0.000100001
  Prefactor  = 2.10206
  Prefactor  = 30.0675
  Prefactor  = 0.0001
  Prefactor  = 11.925
  Normalizat = 0.751883
  Prefactor  = 0.962762
 **********
 **   18 **HESSE 
 **********

 FCN=   8996.844     FROM HESSE     STATUS=OK           395 CALLS     2721 TOTAL
                     EDM=   .41E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     23.408        15.140        .82788E-04   -1.4740    
   2  norm          .10000E-03    2.4248        .14407E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     5.1889        42.697        .17658E-03   -1.5252    
   4  Prefactor     .10000E-03    14.772        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     21.691        13.552        .86004E-04   -1.4776    
   6  Prefactor     7.2114        27.518        .14936E-03   -1.5171    
   7  Prefactor     .10000E-03    2.3379        .14109E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          1.0223        .63816        .59315E-03   -1.5506    
   9  norm          .10000E-03    1.0179        .93323E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    4.7379        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    31.595        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          22.074        9.6465        .85257E-04   -1.4768    
  13  Prefactor     3.4570        5.8039        .21754E-03   -1.5336    
  14  Prefactor     .10000E-03    47.665        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    15.711        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     59.629        24.625        .51953E-04   -1.4162    
  17  norm          .10000E-03    13.081        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    13.953        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     2.1021        2.0391        .12832E-03   -1.5418    
  20  Prefactor     30.068        27.378        .73069E-04   -1.4611    
  21  Prefactor     .10000E-03    49.302        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     11.925        15.609        .11600E-03   -1.5017    
  23  Normalizat    .75188        .19251        .30608E-03   -1.0188    
  24  Prefactor     .96276        .12737        .19287E-03   -.93981    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.07847e-10
Minuit parameter uncertainties:
  1  15.1426
  2  2.75093e-06
  3  29.7978
  4  3.16075e-06
  5  13.554
  6  27.5661
  7  9.15418e-06
  8  0.638169
  9  1.69171e-06
  10  3.066e-05
  11  0.000349052
  12  9.64713
  13  5.80489
  14  9.24291e-05
  15  7.61064e-05
  16  24.6291
  17  3.99029e-05
  18  0.00025156
  19  2.03919
  20  27.3889
  21  2.90444e-05
  22  15.614
  23  0.192686
  24  0.127411
Done.

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

Extracting fit parameters...

4FGL J2326.2+0113
   Spectrum: PowerLaw
406    Prefactor:  1.000e-04  3.491e-04  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:  9.628e-01  1.274e-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.519e-01  1.927e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/888695/likelihoodResults_254361601_254620801_4FGL_J2326.2+0113_daily_bin58.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): 102
logL (Free Index) = 8996.84413331
delta logL = -0.000150763979036

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 8996.84398263
delta logL = -8.74897523317e-08

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10073E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.2448       1.0000          .0000       10.000    
     3 'Normalizat'    .75188       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .96276       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5260E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   8996.844     FROM MIGRAD    STATUS=CONVERGED     55 CALLS      238 TOTAL
                     EDM=   .15E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    13.227        .90712E-02** at limit **
   2  Index         2.2286        7.4349        .50000        .40929E-05
   3  Normalizat    .75188        .25581E-02    .69170E-01    .16099E-04
   4  Prefactor     .96276        .18153E-02    .45800E-01   -.19805E-06
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Index      = 2.22863
  Normalizat = 0.751883
  Prefactor  = 0.962762
 **********
 **   18 **HESSE 
 **********

 FCN=   8996.844     FROM HESSE     STATUS=NOT POSDEF    33 CALLS      271 TOTAL
                     EDM=   .97E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    83.984        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.2286        8.7492        .50000       -.58749    
   3  Normalizat    .75188        .64330E-02    .30608E-03   -1.0188    
   4  Prefactor     .96276        .45717E-02    .19287E-03   -.93981    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 9.67288e-09
Minuit parameter uncertainties:
  1  0.000180698
  2  96.9935
  3  0.006433
  4  0.00457173
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/888695': 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): 102
logL (Free Index) = 8996.8439826
delta logL = -5.89643605053e-08

Extracting fit parameters...

4FGL J2326.2+0113
   Spectrum: PowerLaw
406    Prefactor:  1.000e-04  1.807e-04  1.000e-04  1.000e+04 ( 1.000e-14)
407        Index:  2.229e+00  9.699e+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:  9.628e-01  4.572e-03  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.519e-01  6.433e-03  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
Ra Dec: 351.575 1.222

Creating a high resolution counts map...
INFO: Auto-setting vmin to -1.000e-01 [aplpy.core]
INFO: Auto-setting vmax to  1.110e+00 [aplpy.core]
Saving /scratch/kocevski/888695/cmap_HighResolution_254361601_254620801_4FGL_J2326.2+0113_daily_bin58.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='3.46e-03', job_status='DONE', photon_flux_upper_limit='4.56e-08', time_completed='2021-09-29 18:53:41.202351', job_id='888695', GAL2='0.96', fit_tolerance='1e-08', EG2='0.75', EG='0.75', time_epoch_completed='1632966821.2', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.96', dlogl='-5.90e-08', ts2='-0.00', photon_index_error='0.00', photon_index='2.12' WHERE bin_id='58' AND source_name='4FGL J2326.2+0113' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep 29 18:53:41 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0213>
Subject: Job 888695: <4FGL_J2326.2+0113_daily_bin58> in cluster <slac> Done

Job <4FGL_J2326.2+0113_daily_bin58> was submitted from host <rhel6-64p> by user <kocevski> in cluster <slac> at Wed Sep 29 18:40:47 2021
Job was executed on host(s) <bullet0213>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Sep 29 18:40: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:40:49 2021
Terminated at Wed Sep 29 18:53:44 2021
Results reported at Wed Sep 29 18:53:44 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2326.2+0113_daily_bin58 351.575 1.2216 254361601 254620801 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 :                                   761.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             307.33 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   772 sec.
    Turnaround time :                            777 sec.

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

