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


Performing analysis on: 4FGL_J2326.2+0113_daily_bin19
RA = 351.575, Dec = 1.2216
tmin = 244252801, tmax = 244512001
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='888631', job_status='RUN', time_executed='2021-09-29 18:44:32.677641', time_epoch_executed='1632966272.68' WHERE source_name='4FGL J2326.2+0113' and cadence='daily' and bin_id='19'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/888631

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/888631/ft1_4FGL_J2326.2+0113_daily_bin19.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/888631/ft2_4FGL_J2326.2+0113_daily_bin19.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/888631/ft1_4FGL_J2326.2+0113_daily_bin19.fits outfile=/scratch/kocevski/888631/ft1_filteredMKT_4FGL_J2326.2+0113_daily_bin19.fits ra=351.575 dec=1.2216 rad=12.0 tmin=244252801.0 tmax=244512001.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 2.41
user 2.21
sys 0.19

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/888631/ft1_filtered_4FGL_J2326.2+0113_daily_bin19.fits" evtable="EVENTS" scfile=/scratch/kocevski/888631/ft2_4FGL_J2326.2+0113_daily_bin19.fits sctable="SC_DATA" outfile=/scratch/kocevski/888631/ltcube_244252801_244512001_4FGL_J2326.2+0113_daily_bin19.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/888631/ft2_4FGL_J2326.2+0113_daily_bin19.fits
.....................!
real 12.52
user 12.18
sys 0.29

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/888631/ft1_filtered_4FGL_J2326.2+0113_daily_bin19.fits evtable="EVENTS" scfile=/scratch/kocevski/888631/ft2_4FGL_J2326.2+0113_daily_bin19.fits sctable="SC_DATA" expcube=/scratch/kocevski/888631/ltcube_244252801_244512001_4FGL_J2326.2+0113_daily_bin19.fits outfile=/scratch/kocevski/888631/expmap_244252801_244512001_4FGL_J2326.2+0113_daily_bin19.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/888631/ltcube_244252801_244512001_4FGL_J2326.2+0113_daily_bin19.fits
.....................!
real 190.07
user 184.67
sys 5.00

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/888631/ft1_filtered_4FGL_J2326.2+0113_daily_bin19.fits scfile=/scratch/kocevski/888631/ft2_4FGL_J2326.2+0113_daily_bin19.fits outfile=/scratch/kocevski/888631/cmap_244252801_244512001_4FGL_J2326.2+0113_daily_bin19.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/888631/ft1_filtered_4FGL_J2326.2+0113_daily_bin19.fits scfile=/scratch/kocevski/888631/ft2_4FGL_J2326.2+0113_daily_bin19.fits outfile=/scratch/kocevski/888631/cmap_HighResolution_244252801_244512001_4FGL_J2326.2+0113_daily_bin19.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.38
sys 0.15

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    3.3195       1.0000         .10000E-03   10000.    
     2 'norm      '    1.4157       1.0000         .10000E-03   10000.    
     3 'Prefactor '    2.4374       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    16.479       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .55359       1.0000         .10000E-03   10000.    
     8 'norm      '    .76490       1.0000         .10000E-03   10000.    
     9 'norm      '    .10007E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10037E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    17.499       1.0000         .10000E-03   10000.    
    12 'norm      '    22.292       1.0000         .10000E-03   10000.    
    13 'Prefactor '    4.0302       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .14456       1.0000         .10000E-03   10000.    
    16 'Prefactor '    39.334       1.0000         .10000E-03   10000.    
    17 'norm      '    8.2081       1.0000         .10000E-03   10000.    
    18 'Prefactor '    37.331       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10054E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    15.050       1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10011E-03   1.0000         .10000E-03   10000.    
    23 'Normalizat'    1.0212       1.0000         .10000E-01   10.000    
    24 'Prefactor '    .83321       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=   8414.377     FROM MIGRAD    STATUS=CONVERGED    590 CALLS     2459 TOTAL
                     EDM=   .30E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .7%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     3.3133        13.103       -.88894E-05   -.12113E-04
   2  norm          1.4136        2.4733        .96118E-07   -.15382E-02
   3  Prefactor     2.4259        74.823        .15097E-04   -.10567E-05
   4  Prefactor     .10000E-03    2.0965        .26155E-07** at limit **
   5  Prefactor     16.477        15.417       -.49727E-05   -.24243E-04
   6  Prefactor     .10000E-03    7.9100        .14019E-06** at limit **
   7  Prefactor     .55215        4.7876       -.49537E-06   -.21243E-03
   8  norm          .76573        .77269       -.16546E-07    .41030E-05
   9  norm          .10000E-03    1.4331        .14439E-06** at limit **
  10  Prefactor     .10000E-03    2.1954        .58002E-07** at limit **
  11  Prefactor     17.515        28.633       -.88610E-05   -.11497E-05
  12  norm          22.287        9.5641       -.79620E-06   -.31725E-04
  13  Prefactor     4.0318        6.3202        .76777E-06   -.70077E-03
  14  Prefactor     .10000E-03    84.679        .33635E-05** at limit **
  15  Prefactor     .12404E-03    7.7249       -.13269E-06** at limit **
  16  Prefactor     39.330        21.572       -.10722E-05    .27217E-05
  17  norm          8.3771        18.918       -.37120E-07   -.17430E-04
  18  Prefactor     37.327        36.476        .50441E-05    .18748E-04
  19  Prefactor     .10000E-03    3.4210       -.24902E-06** at limit **
  20  Prefactor     .10000E-03    14.795        .91486E-06** at limit **
  21  Prefactor     15.048        17.315       -.73547E-05   -.55615E-05
  22  Prefactor     .10000E-03    13.989       -.83779E-07** at limit **
  23  Normalizat    1.0217        .16557        .24270E-05   -.12547E-04
  24  Prefactor     .83297        .10821        .21866E-06    .93985E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 3.31332
  norm       = 1.41364
  Prefactor  = 2.42593
  Prefactor  = 0.0001
  Prefactor  = 16.4768
  Prefactor  = 0.0001
  Prefactor  = 0.552154
  norm       = 0.765728
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 17.5147
  norm       = 22.2871
  Prefactor  = 4.03177
  Prefactor  = 0.0001
  Prefactor  = 0.000124038
  Prefactor  = 39.3298
  norm       = 8.37713
  Prefactor  = 37.3271
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 15.0478
  Prefactor  = 0.0001
  Normalizat = 1.02168
  Prefactor  = 0.832969
 **********
 **   18 **HESSE 
 **********

 FCN=   8414.377     FROM HESSE     STATUS=OK           413 CALLS     2872 TOTAL
                     EDM=   .70E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     3.3133        13.134        .22218E-03   -1.5344    
   2  norm          1.4136        6.8847        .18193E-02   -1.5470    
   3  Prefactor     2.4259        74.685        .26208E-03   -1.5396    
   4  Prefactor     .10000E-03    2.0987        .12971E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     16.477        15.429        .98663E-04   -1.4896    
   6  Prefactor     .10000E-03    7.9106        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .55215        4.8190        .39031E-03   -1.5559    
   8  norm          .76573        .73946        .75499E-03   -1.5533    
   9  norm          .10000E-03    1.4439        .10717E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    2.1977        .13270E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     17.515        28.632        .95745E-04   -1.4871    
  12  norm          22.287        9.5508        .84835E-04   -1.4763    
  13  Prefactor     4.0318        6.5478        .10043E-02   -1.5306    
  14  Prefactor     .10000E-03    84.687        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .12404E-03    21.973        .58572E-01   -1.5707    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     39.330        21.568        .63910E-04   -1.4453    
  17  norm          8.3771        21.155        .69968E-03   -1.5129    
  18  Prefactor     37.327        36.510        .65596E-04   -1.4485    
  19  Prefactor     .10000E-03    3.5140        .32908E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    14.835        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     15.048        17.320        .10324E-03   -1.4932    
  22  Prefactor     .10000E-03    14.284        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Normalizat    1.0217        .18917        .27018E-03   -.92307    
  24  Prefactor     .83297        .12431        .20489E-03   -.98524    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 6.99393e-09
Minuit parameter uncertainties:
  1  13.1451
  2  6.24031
  3  26.9571
  4  2.43594e-06
  5  15.4327
  6  4.90656e-06
  7  3.26246
  8  0.739472
  9  4.72089e-06
  10  2.18891e-06
  11  28.6545
  12  9.55143
  13  6.54892
  14  1.45176e-05
  15  0.0459807
  16  21.5718
  17  21.1737
  18  36.5316
  19  1.61326e-05
  20  4.87911e-05
  21  17.3256
  22  9.24116e-06
  23  0.189296
  24  0.124349
Done.

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

Extracting fit parameters...

4FGL J2326.2+0113
   Spectrum: PowerLaw
406    Prefactor:  1.751e+01  2.865e+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.330e-01  1.243e-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.022e+00  1.893e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/888631/likelihoodResults_244252801_244512001_4FGL_J2326.2+0113_daily_bin19.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) = 8414.26997623
delta logL = 0.107017461425

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 8414.26145331
delta logL = 0.115540381328

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    3.7204       1.0000         .10000E-03   10000.    
     2 'Index     '    3.1293       1.0000          .0000       10.000    
     3 'Normalizat'    1.0020       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .84115       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=   8414.261     FROM MIGRAD    STATUS=FAILED       107 CALLS      329 TOTAL
                     EDM=   .21E-05    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     3.6904        309.92        .10468E-02   -.51762E-04
   2  Index         3.1328        6.0957        .80463E-02    .78817E-03
   3  Normalizat    1.0008        .16258        .27266E-03    .15177E-04
   4  Prefactor     .84191        .97465E-01    .20390E-03    .16281E-04
                               ERR DEF=  .500    
 START SIMPLEX MINIMIZATION.    CONVERGENCE WHEN EDM .LT.   .20E-04
 SIMPLEX MINIMIZATION HAS CONVERGED.

 FCN=   8414.261     FROM SIMPLEX   STATUS=UNCHANGED     87 CALLS      416 TOTAL
                     EDM=   .11E-04    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     3.6904        309.92        .37646E-03   -.51762E-04
   2  Index         3.1328        6.0957        .16548E-02    .78817E-03
   3  Normalizat    1.0008        .16258        .16873E-03    .15177E-04
   4  Prefactor     .84191        .97465E-01    .64764E-04    .16281E-04
                               ERR DEF=  .500    

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   8414.261     FROM MIGRAD    STATUS=CONVERGED     34 CALLS      450 TOTAL
                     EDM=   .11E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     3.6904        88.243        .41871E-04   -.72224E-04
   2  Index         3.1328        3.8237        .16093E-02   -.11063E-04
   3  Normalizat    1.0008        .19636        .10906E-04    .15427E-04
   4  Prefactor     .84191        .12925        .81559E-05    .16169E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 3.69042
  Index      = 3.13285
  Normalizat = 1.0008
  Prefactor  = 0.841912
 **********
 **   18 **HESSE 
 **********

 FCN=   8414.261     FROM HESSE     STATUS=OK            25 CALLS      475 TOTAL
                     EDM=   .43E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     3.6904        24.853        .16748E-05   -1.5324    
   2  Index         3.1328        2.2787        .64371E-04   -.38270    
   3  Normalizat    1.0008        .18362        .21813E-05   -.93004    
   4  Prefactor     .84191        .12410        .16312E-05   -.98201    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.29578e-12
Minuit parameter uncertainties:
  1  19.165
  2  2.38199
  3  0.183739
  4  0.124142
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/888631': 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) = 8414.26143038
delta logL = 0.115563311514

Extracting fit parameters...

4FGL J2326.2+0113
   Spectrum: PowerLaw
406    Prefactor:  3.690e+00  1.917e+01  1.000e-04  1.000e+04 ( 1.000e-14)
407        Index:  3.133e+00  2.382e+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:  8.419e-01  1.241e-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.001e+00  1.837e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 0.53
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/888631/cmap_HighResolution_244252801_244512001_4FGL_J2326.2+0113_daily_bin19.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='4.44e-03', job_status='DONE', photon_flux_upper_limit='5.87e-08', time_completed='2021-09-29 18:57:06.162430', job_id='888631', GAL2='0.84', fit_tolerance='1e-08', EG2='1.00', EG='1.02', time_epoch_completed='1632967026.16', return_code2='0', ts='0.53', comment='SUCCESS', return_code='0', GAL='0.83', dlogl='1.16e-01', ts2='0.77', photon_index_error='0.00', photon_index='2.12' WHERE bin_id='19' AND source_name='4FGL J2326.2+0113' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep 29 18:57:06 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0211>
Subject: Job 888631: <4FGL_J2326.2+0113_daily_bin19> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2326.2+0113_daily_bin19 351.575 1.2216 244252801 244512001 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 :                                   753.42 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             251.88 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   983 sec.
    Turnaround time :                            985 sec.

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

