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


Performing analysis on: 4FGL_J2326.2+0113_daily_bin148
RA = 351.575, Dec = 1.2216
tmin = 277689601, tmax = 277948801
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='889853', job_status='RUN', time_executed='2021-09-29 18:47:02.666063', time_epoch_executed='1632966422.67' WHERE source_name='4FGL J2326.2+0113' and cadence='daily' and bin_id='148'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/889853

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/889853/ft1_4FGL_J2326.2+0113_daily_bin148.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/889853/ft2_4FGL_J2326.2+0113_daily_bin148.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/889853/ft1_4FGL_J2326.2+0113_daily_bin148.fits outfile=/scratch/kocevski/889853/ft1_filteredMKT_4FGL_J2326.2+0113_daily_bin148.fits ra=351.575 dec=1.2216 rad=12.0 tmin=277689601.0 tmax=277948801.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.62
user 3.39
sys 0.20

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/889853/ft2_4FGL_J2326.2+0113_daily_bin148.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/889853/ft1_filteredMKT_4FGL_J2326.2+0113_daily_bin148.fits evtable="EVENTS" outfile="/scratch/kocevski/889853/ft1_filtered_4FGL_J2326.2+0113_daily_bin148.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/889853/ft1_filtered_4FGL_J2326.2+0113_daily_bin148.fits" evtable="EVENTS" scfile=/scratch/kocevski/889853/ft2_4FGL_J2326.2+0113_daily_bin148.fits sctable="SC_DATA" outfile=/scratch/kocevski/889853/ltcube_277689601_277948801_4FGL_J2326.2+0113_daily_bin148.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/889853/ft2_4FGL_J2326.2+0113_daily_bin148.fits
.....................!
real 11.86
user 11.49
sys 0.34

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/889853/ft1_filtered_4FGL_J2326.2+0113_daily_bin148.fits evtable="EVENTS" scfile=/scratch/kocevski/889853/ft2_4FGL_J2326.2+0113_daily_bin148.fits sctable="SC_DATA" expcube=/scratch/kocevski/889853/ltcube_277689601_277948801_4FGL_J2326.2+0113_daily_bin148.fits outfile=/scratch/kocevski/889853/expmap_277689601_277948801_4FGL_J2326.2+0113_daily_bin148.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/889853/ltcube_277689601_277948801_4FGL_J2326.2+0113_daily_bin148.fits
.....................!
real 191.73
user 187.12
sys 4.27

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/889853/ft1_filtered_4FGL_J2326.2+0113_daily_bin148.fits scfile=/scratch/kocevski/889853/ft2_4FGL_J2326.2+0113_daily_bin148.fits outfile=/scratch/kocevski/889853/cmap_277689601_277948801_4FGL_J2326.2+0113_daily_bin148.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/889853/ft1_filtered_4FGL_J2326.2+0113_daily_bin148.fits scfile=/scratch/kocevski/889853/ft2_4FGL_J2326.2+0113_daily_bin148.fits outfile=/scratch/kocevski/889853/cmap_HighResolution_277689601_277948801_4FGL_J2326.2+0113_daily_bin148.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.38
sys 0.15

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     2 'norm      '    .10184E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    23.703       1.0000         .10000E-03   10000.    
     4 'Prefactor '    8.5513       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10025E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    35.760       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10043E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    .10061E-03   1.0000         .10000E-03   10000.    
     9 'norm      '    .10008E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    6.5250       1.0000         .10000E-03   10000.    
    11 'Prefactor '    40.275       1.0000         .10000E-03   10000.    
    12 'norm      '    1.7620       1.0000         .10000E-03   10000.    
    13 'Prefactor '    21.332       1.0000         .10000E-03   10000.    
    14 'Prefactor '    7.8601       1.0000         .10000E-03   10000.    
    15 'Prefactor '    7.2203       1.0000         .10000E-03   10000.    
    16 'Prefactor '    14.336       1.0000         .10000E-03   10000.    
    17 'norm      '    .10050E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    3.4102       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .13452E-01   1.0000         .10000E-03   10000.    
    21 'Prefactor '    34.012       1.0000         .10000E-03   10000.    
    22 'Prefactor '    20.363       1.0000         .10000E-03   10000.    
    23 'Normalizat'    .44448       1.0000         .10000E-01   10.000    
    24 'Prefactor '    1.0876       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=   6564.806     FROM MIGRAD    STATUS=CONVERGED    571 CALLS     2771 TOTAL
                     EDM=   .12E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .3%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    8.0385        .19472E-06** at limit **
   2  norm          .10000E-03    12.091       -.14215E-05** at limit **
   3  Prefactor     23.718        31.736       -.12590E-04    .41792E-04
   4  Prefactor     8.5531        10.657       -.26452E-05    .87359E-05
   5  Prefactor     .10000E-03    6.5292        .48090E-07** at limit **
   6  Prefactor     35.768        30.865       -.57993E-05    .63196E-06
   7  Prefactor     .10000E-03    2.5387        .19390E-06** at limit **
   8  norm          .10000E-03    .32742        .48356E-07** at limit **
   9  norm          .10000E-03    2.1824        .13884E-06** at limit **
  10  Prefactor     6.5275        8.8350       -.71693E-06    .11631E-03
  11  Prefactor     40.231        50.682       -.41429E-05    .11903E-03
  12  norm          1.7546        7.1580       -.57245E-05   -.52894E-03
  13  Prefactor     21.341        10.780        .29100E-05    .42424E-03
  14  Prefactor     7.8179        625.33       -.12822E-03   -.48634E-05
  15  Prefactor     7.2102        11.354        .88943E-05    .22637E-03
  16  Prefactor     14.333        17.477       -.19544E-04    .14463E-03
  17  norm          .10000E-03    10.955        .14149E-05** at limit **
  18  Prefactor     .10000E-03    9.1265       -.76327E-06** at limit **
  19  Prefactor     3.4104        3.4672       -.77009E-06   -.57749E-04
  20  Prefactor     .10593E-03    32.885       -.74871E-05** at limit **
  21  Prefactor     33.980        25.669        .11076E-04    .36127E-03
  22  Prefactor     20.365        16.479        .63682E-05    .84907E-04
  23  Normalizat    .44424        .19858       -.25092E-05    .44496E-03
  24  Prefactor     1.0876        .12990        .17313E-05    .58647E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 23.7183
  Prefactor  = 8.55315
  Prefactor  = 0.0001
  Prefactor  = 35.7677
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 6.52749
  Prefactor  = 40.2314
  norm       = 1.75465
  Prefactor  = 21.3412
  Prefactor  = 7.81792
  Prefactor  = 7.21017
  Prefactor  = 14.3329
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 3.4104
  Prefactor  = 0.00010593
  Prefactor  = 33.9801
  Prefactor  = 20.3653
  Normalizat = 0.444243
  Prefactor  = 1.0876
 **********
 **   18 **HESSE 
 **********

 FCN=   6564.806     FROM HESSE     STATUS=OK           409 CALLS     3180 TOTAL
                     EDM=   .24E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    8.0656        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          .10000E-03    12.298        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     23.718        31.670        .82276E-04   -1.4734    
   4  Prefactor     8.5531        10.656        .13708E-03   -1.5123    
   5  Prefactor     .10000E-03    6.5428        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     35.768        30.843        .67017E-04   -1.4511    
   7  Prefactor     .10000E-03    2.5448        .12597E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          .10000E-03    .48792        .88094E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          .10000E-03    2.2417        .23365E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     6.5275        8.7731        .15711E-03   -1.5197    
  11  Prefactor     40.231        50.645        .63161E-04   -1.4439    
  12  norm          1.7546        6.9483        .31564E-03   -1.5443    
  13  Prefactor     21.341        10.623        .86722E-04   -1.4784    
  14  Prefactor     7.8179        618.43        .14302E-03   -1.5149    
  15  Prefactor     7.2102        11.180        .14928E-03   -1.5171    
  16  Prefactor     14.333        17.331        .10579E-03   -1.4951    
  17  norm          .10000E-03    10.960        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    9.1272        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     3.4104        3.4394        .13578E-03   -1.5339    
  20  Prefactor     .10593E-03    33.755        .12244       -1.5707    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     33.980        25.678        .68712E-04   -1.4541    
  22  Prefactor     20.365        16.432        .88758E-04   -1.4805    
  23  Normalizat    .44424        .21190        .37265E-03   -1.1507    
  24  Prefactor     1.0876        .14282        .17482E-03   -.89864    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.35336e-09
Minuit parameter uncertainties:
  1  3.97224e-05
  2  1.99936e-05
  3  31.6928
  4  10.6587
  5  2.45378e-05
  6  30.8568
  7  2.43274e-05
  8  4.08559e-06
  9  1.31101e-05
  10  8.77487
  11  50.6996
  12  6.95147
  13  10.6242
  14  140.598
  15  11.1836
  16  17.3368
  17  8.27937e-05
  18  1.40665e-06
  19  3.43961
  20  0.0283119
  21  25.6861
  22  16.4355
  23  0.212279
  24  0.142869
Done.

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

Extracting fit parameters...

4FGL J2326.2+0113
   Spectrum: PowerLaw
406    Prefactor:  4.023e+01  5.070e+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.088e+00  1.429e-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:  4.442e-01  2.123e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/889853/likelihoodResults_277689601_277948801_4FGL_J2326.2+0113_daily_bin148.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) = 6564.7701163
delta logL = 0.0358496460567

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6564.74863995
delta logL = 0.0573259872062

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    29.072       1.0000         .10000E-03   10000.    
     2 'Index     '    2.3793       1.0000          .0000       10.000    
     3 'Normalizat'    .43574       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0907       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=   6564.749     FROM MIGRAD    STATUS=CONVERGED     87 CALLS      258 TOTAL
                     EDM=   .24E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     29.058        59.446        .74305E-04   -.11224E-03
   2  Index         2.3803        .92790        .71410E-02   -.97001E-04
   3  Normalizat    .43571        .19910        .37618E-03   -.89997E-03
   4  Prefactor     1.0908        .14191        .17458E-03   -.21966E-02
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 29.0575
  Index      = 2.38029
  Normalizat = 0.435705
  Prefactor  = 1.09081
 **********
 **   18 **HESSE 
 **********

 FCN=   6564.749     FROM HESSE     STATUS=OK            25 CALLS      283 TOTAL
                     EDM=   .25E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     29.058        51.170        .14861E-04   -1.4629    
   2  Index         2.3803        .79885        .28564E-03   -.55147    
   3  Normalizat    .43571        .19858        .15047E-04   -1.1549    
   4  Prefactor     1.0908        .14163        .34917E-04   -.89761    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.49268e-09
Minuit parameter uncertainties:
  1  51.2473
  2  0.803609
  3  0.198907
  4  0.141682
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/889853': 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) = 6564.74863779
delta logL = 0.0573281529978

Extracting fit parameters...

4FGL J2326.2+0113
   Spectrum: PowerLaw
406    Prefactor:  2.906e+01  5.125e+01  1.000e-04  1.000e+04 ( 1.000e-14)
407        Index:  2.380e+00  8.036e-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:  1.091e+00  1.417e-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:  4.357e-01  1.989e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

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/889853/cmap_HighResolution_277689601_277948801_4FGL_J2326.2+0113_daily_bin148.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='7.14e-03', job_status='DONE', photon_flux_upper_limit='9.42e-08', time_completed='2021-09-29 18:58:04.481379', job_id='889853', GAL2='1.09', fit_tolerance='1e-08', EG2='0.44', EG='0.44', time_epoch_completed='1632967084.48', return_code2='0', ts='0.86', comment='SUCCESS', return_code='0', GAL='1.09', dlogl='5.73e-02', ts2='0.98', photon_index_error='0.00', photon_index='2.12' WHERE bin_id='148' AND source_name='4FGL J2326.2+0113' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep 29 18:58:04 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0067>
Subject: Job 889853: <4FGL_J2326.2+0113_daily_bin148> in cluster <slac> Done

Job <4FGL_J2326.2+0113_daily_bin148> was submitted from host <rhel6-64f> by user <kocevski> in cluster <slac> at Wed Sep 29 18:45:12 2021
Job was executed on host(s) <bullet0067>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Sep 29 18:45:13 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:13 2021
Terminated at Wed Sep 29 18:58:05 2021
Results reported at Wed Sep 29 18:58:05 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2326.2+0113_daily_bin148 351.575 1.2216 277689601 277948801 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 :                                   659.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             333.16 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   771 sec.
    Turnaround time :                            773 sec.

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

