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


Performing analysis on: 4FGL_J2326.2+0113_daily_bin277
RA = 351.575, Dec = 1.2216
tmin = 311126401, tmax = 311385601
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='890041', job_status='RUN', time_executed='2021-09-29 18:48:18.804190', time_epoch_executed='1632966498.8' WHERE source_name='4FGL J2326.2+0113' and cadence='daily' and bin_id='277'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/890041

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/890041/ft1_4FGL_J2326.2+0113_daily_bin277.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/890041/ft2_4FGL_J2326.2+0113_daily_bin277.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/890041/ft1_4FGL_J2326.2+0113_daily_bin277.fits outfile=/scratch/kocevski/890041/ft1_filteredMKT_4FGL_J2326.2+0113_daily_bin277.fits ra=351.575 dec=1.2216 rad=12.0 tmin=311126401.0 tmax=311385601.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.53
user 3.33
sys 0.19

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/890041/ft1_filtered_4FGL_J2326.2+0113_daily_bin277.fits" evtable="EVENTS" scfile=/scratch/kocevski/890041/ft2_4FGL_J2326.2+0113_daily_bin277.fits sctable="SC_DATA" outfile=/scratch/kocevski/890041/ltcube_311126401_311385601_4FGL_J2326.2+0113_daily_bin277.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/890041/ft2_4FGL_J2326.2+0113_daily_bin277.fits
.....................!
real 11.99
user 11.61
sys 0.35

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/890041/ft1_filtered_4FGL_J2326.2+0113_daily_bin277.fits evtable="EVENTS" scfile=/scratch/kocevski/890041/ft2_4FGL_J2326.2+0113_daily_bin277.fits sctable="SC_DATA" expcube=/scratch/kocevski/890041/ltcube_311126401_311385601_4FGL_J2326.2+0113_daily_bin277.fits outfile=/scratch/kocevski/890041/expmap_311126401_311385601_4FGL_J2326.2+0113_daily_bin277.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/890041/ltcube_311126401_311385601_4FGL_J2326.2+0113_daily_bin277.fits
.....................!
real 190.57
user 185.69
sys 4.53

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/890041/ft1_filtered_4FGL_J2326.2+0113_daily_bin277.fits scfile=/scratch/kocevski/890041/ft2_4FGL_J2326.2+0113_daily_bin277.fits outfile=/scratch/kocevski/890041/cmap_311126401_311385601_4FGL_J2326.2+0113_daily_bin277.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.38
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/890041/ft1_filtered_4FGL_J2326.2+0113_daily_bin277.fits scfile=/scratch/kocevski/890041/ft2_4FGL_J2326.2+0113_daily_bin277.fits outfile=/scratch/kocevski/890041/cmap_HighResolution_311126401_311385601_4FGL_J2326.2+0113_daily_bin277.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.14

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    31.876       1.0000         .10000E-03   10000.    
     2 'norm      '    .10004E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    53.428       1.0000         .10000E-03   10000.    
     4 'Prefactor '    12.442       1.0000         .10000E-03   10000.    
     5 'Prefactor '    1.0630       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10010E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10011E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    1.1456       1.0000         .10000E-03   10000.    
     9 'norm      '    .10005E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    24.604       1.0000         .10000E-03   10000.    
    11 'Prefactor '    86.595       1.0000         .10000E-03   10000.    
    12 'norm      '    7.4866       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10673E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10031E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .12086E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    .10061E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    65.443       1.0000         .10000E-03   10000.    
    19 'Prefactor '    4.4778       1.0000         .10000E-03   10000.    
    20 'Prefactor '    11.901       1.0000         .10000E-03   10000.    
    21 'Prefactor '    32.152       1.0000         .10000E-03   10000.    
    22 'Prefactor '    1.3604       1.0000         .10000E-03   10000.    
    23 'Normalizat'    1.0251       1.0000         .10000E-01   10.000    
    24 'Prefactor '    .90138       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=   6277.857     FROM MIGRAD    STATUS=CONVERGED    517 CALLS     2664 TOTAL
                     EDM=   .62E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.1%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     31.875        19.698       -.53039E-06    .47404E-04
   2  norm          .10000E-03    6.3760        .27794E-05** at limit **
   3  Prefactor     53.423        48.912       -.51283E-05    .16691E-04
   4  Prefactor     12.443        14.415       -.98539E-06   -.32561E-04
   5  Prefactor     1.0491        12.923        .21089E-06   -.28849E-03
   6  Prefactor     .10000E-03    18.822        .73056E-05** at limit **
   7  Prefactor     .10000E-03    2.2215       -.11078E-06** at limit **
   8  norm          1.1455        .77392        .36292E-07    .19548E-03
   9  norm          .10000E-03    1.2802        .47596E-07** at limit **
  10  Prefactor     24.605        15.564        .40395E-06    .13506E-03
  11  Prefactor     86.594        52.339       -.10125E-05    .68600E-04
  12  norm          7.4794        10.785       -.10720E-05   -.16048E-03
  13  Prefactor     .10000E-03    6.9892        .56200E-05** at limit **
  14  Prefactor     .10000E-03    55.264        .17201E-04** at limit **
  15  Prefactor     .10000E-03    6.7606       -.83711E-05** at limit **
  16  Prefactor     .10000E-03    57.940       -.20724E-04** at limit **
  17  norm          .10000E-03    17.443       -.67220E-05** at limit **
  18  Prefactor     65.439        58.410       -.40770E-05    .18630E-04
  19  Prefactor     4.4790        4.2582       -.55823E-07    .36672E-03
  20  Prefactor     11.890        36.962       -.20978E-04    .45273E-04
  21  Prefactor     32.152        19.640        .50055E-06    .85844E-04
  22  Prefactor     1.3602        55.005       -.59241E-05   -.12352E-03
  23  Normalizat    1.0251        .21113        .44481E-05    .62586E-04
  24  Prefactor     .90135        .13338        .20036E-06    .30807E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 31.8753
  norm       = 0.0001
  Prefactor  = 53.423
  Prefactor  = 12.4431
  Prefactor  = 1.04915
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 1.1455
  norm       = 0.0001
  Prefactor  = 24.6049
  Prefactor  = 86.5938
  norm       = 7.47942
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 65.4393
  Prefactor  = 4.47898
  Prefactor  = 11.8903
  Prefactor  = 32.1521
  Prefactor  = 1.36024
  Normalizat = 1.02514
  Prefactor  = 0.901349
 **********
 **   18 **HESSE 
 **********

 FCN=   6277.857     FROM HESSE     STATUS=OK           397 CALLS     3061 TOTAL
                     EDM=   .28E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     31.875        19.701        .70971E-04   -1.4578    
   2  norm          .10000E-03    6.4165        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     53.423        48.864        .54873E-04   -1.4245    
   4  Prefactor     12.443        14.416        .11356E-03   -1.5002    
   5  Prefactor     1.0491        73.356        .53377E-02   -1.5503    
   6  Prefactor     .10000E-03    18.831        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    2.2240        .11533E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          1.1455        .76050        .55254E-04   -1.5494    
   9  norm          .10000E-03    1.2815        .87546E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     24.605        15.514        .80758E-04   -1.4715    
  11  Prefactor     86.594        52.293        .43173E-04   -1.3844    
  12  norm          7.4794        10.737        .14657E-03   -1.5161    
  13  Prefactor     .10000E-03    7.0469        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    55.255        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    6.7513        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    58.526        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          .10000E-03    17.451        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     65.439        58.653        .49610E-04   -1.4088    
  19  Prefactor     4.4790        4.2475        .15083E-03   -1.5285    
  20  Prefactor     11.890        36.911        .11612E-03   -1.5018    
  21  Prefactor     32.152        19.650        .70666E-04   -1.4573    
  22  Prefactor     1.3602        56.456        .37446E-03   -1.5475    
  23  Normalizat    1.0251        .24304        .29445E-03   -.92193    
  24  Prefactor     .90135        .15435        .21311E-03   -.96094    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.76405e-09
Minuit parameter uncertainties:
  1  19.7053
  2  2.861e-05
  3  48.9007
  4  14.4202
  5  17.5671
  6  2.56884e-05
  7  2.77967e-06
  8  0.760506
  9  1.30599e-06
  10  15.5165
  11  52.3208
  12  10.7395
  13  2.33837e-05
  14  2.91717e-06
  15  3.17656e-05
  16  0.000231258
  17  4.92709e-05
  18  58.7045
  19  4.24774
  20  36.9819
  21  19.6536
  22  17.5434
  23  0.243305
  24  0.154426
Done.

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

Extracting fit parameters...

4FGL J2326.2+0113
   Spectrum: PowerLaw
406    Prefactor:  8.659e+01  5.232e+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:  9.013e-01  1.544e-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.025e+00  2.433e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 8.45
Ra Dec: 351.575 1.222
Photon Index (Fixed Index): 2.12 +/- 0.00
Photon Flux (Fixed Index): 5.26e-08 +/- 3.18e-08
Energy Flux (Fixed Index): 2.77e-05 +/- 1.67e-05

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) = 6277.14051308
delta logL = 0.716170472761

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6277.08432656
delta logL = 0.772356984613

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    110.14       1.0000         .10000E-03   10000.    
     2 'Index     '    1.4782       1.0000          .0000       10.000    
     3 'Normalizat'    1.0572       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .89301       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=   6277.084     FROM MIGRAD    STATUS=CONVERGED     86 CALLS      253 TOTAL
                     EDM=   .10E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     110.23        74.569        .19163E-03    .11272E-05
   2  Index         1.4783        .47510        .85677E-02   -.18473E-04
   3  Normalizat    1.0573        .22228        .29046E-03   -.50883E-06
   4  Prefactor     .89303        .15262        .21407E-03    .58728E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 110.231
  Index      = 1.47834
  Normalizat = 1.05726
  Prefactor  = 0.893032
 **********
 **   18 **HESSE 
 **********

 FCN=   6277.084     FROM HESSE     STATUS=OK            25 CALLS      278 TOTAL
                     EDM=   .10E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     110.23        74.976        .76653E-05   -1.3604    
   2  Index         1.4783        .47764        .34271E-03   -.78148    
   3  Normalizat    1.0573        .22242        .11618E-04   -.91136    
   4  Prefactor     .89303        .15273        .42814E-04   -.96385    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 9.95455e-10
Minuit parameter uncertainties:
  1  75.0407
  2  0.479096
  3  0.222621
  4  0.152803
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/890041': 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) = 6277.08432548
delta logL = 0.772358066172

Extracting fit parameters...

4FGL J2326.2+0113
   Spectrum: PowerLaw
406    Prefactor:  1.102e+02  7.504e+01  1.000e-04  1.000e+04 ( 1.000e-14)
407        Index:  1.478e+00  4.791e-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.930e-01  1.528e-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.057e+00  2.226e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 9.97
Ra Dec: 351.575 1.222
Photon Index (Free Index): 1.48 +/- 0.48
Photon Flux (Free Index): 2.10e-08 +/- 2.10e-08
Energy Flux (Free Index): 7.14e-05 +/- 7.74e-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/890041/cmap_HighResolution_311126401_311385601_4FGL_J2326.2+0113_daily_bin277.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='5.26e-08', energy_flux2='7.14e-05', photon_flux_error='3.18e-08', dlogl='7.72e-01', energy_flux='2.77e-05', photon_flux2='2.10e-08', job_status='DONE', time_completed='2021-09-29 18:58:05.486158', photon_index_error2='0.48', photon_index2='1.48', ts='8.45', fit_tolerance='1e-08', GAL='0.90', photon_index_error='0.00', energy_flux_error2='7.74e-05', EG='1.03', time_epoch_completed='1632967085.49', return_code='0', job_id='890041', GAL2='0.89', EG2='1.06', return_code2='0', energy_flux_error='1.67e-05', photon_flux_error2='2.10e-08', ts2='9.97', photon_index='2.12' WHERE bin_id='277' AND source_name='4FGL J2326.2+0113' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep 29 18:58:05 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0295>
Subject: Job 890041: <4FGL_J2326.2+0113_daily_bin277> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2326.2+0113_daily_bin277 351.575 1.2216 311126401 311385601 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 :                                   585.41 sec.
    Max Memory :                                 1093 MB
    Average Memory :                             274.58 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   758 sec.
    Turnaround time :                            760 sec.

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

