/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 166 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 = 7458
number of fields = 29
RA_SUN column already exists. File will not be modified.
Done.


Performing analysis on: 4FGL_J2326.2+0113_daily_bin628
RA = 351.575, Dec = 1.2216
tmin = 402105601, tmax = 402364801
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='891633', job_status='RUN', time_executed='2021-09-29 18:53:47.885903', time_epoch_executed='1632966827.89' WHERE source_name='4FGL J2326.2+0113' and cadence='daily' and bin_id='628'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/891633

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

Retrieving the FT1 file...

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

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

Retrieving 48 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/891633/ft1_4FGL_J2326.2+0113_daily_bin628.fits


Retrieving the FT1 file...

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

Retrieving 48 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/891633/ft2_4FGL_J2326.2+0113_daily_bin628.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/891633/ft1_4FGL_J2326.2+0113_daily_bin628.fits outfile=/scratch/kocevski/891633/ft1_filteredMKT_4FGL_J2326.2+0113_daily_bin628.fits ra=351.575 dec=1.2216 rad=12.0 tmin=402105601.0 tmax=402364801.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.46
user 3.24
sys 0.21

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/891633/ft2_4FGL_J2326.2+0113_daily_bin628.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/891633/ft1_filteredMKT_4FGL_J2326.2+0113_daily_bin628.fits evtable="EVENTS" outfile="/scratch/kocevski/891633/ft1_filtered_4FGL_J2326.2+0113_daily_bin628.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/891633/ft1_filtered_4FGL_J2326.2+0113_daily_bin628.fits" evtable="EVENTS" scfile=/scratch/kocevski/891633/ft2_4FGL_J2326.2+0113_daily_bin628.fits sctable="SC_DATA" outfile=/scratch/kocevski/891633/ltcube_402105601_402364801_4FGL_J2326.2+0113_daily_bin628.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/891633/ft2_4FGL_J2326.2+0113_daily_bin628.fits
.....................!
real 11.71
user 11.35
sys 0.32

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/891633/ft1_filtered_4FGL_J2326.2+0113_daily_bin628.fits evtable="EVENTS" scfile=/scratch/kocevski/891633/ft2_4FGL_J2326.2+0113_daily_bin628.fits sctable="SC_DATA" expcube=/scratch/kocevski/891633/ltcube_402105601_402364801_4FGL_J2326.2+0113_daily_bin628.fits outfile=/scratch/kocevski/891633/expmap_402105601_402364801_4FGL_J2326.2+0113_daily_bin628.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/891633/ltcube_402105601_402364801_4FGL_J2326.2+0113_daily_bin628.fits
.....................!
real 189.71
user 185.11
sys 4.29

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/891633/ft1_filtered_4FGL_J2326.2+0113_daily_bin628.fits scfile=/scratch/kocevski/891633/ft2_4FGL_J2326.2+0113_daily_bin628.fits outfile=/scratch/kocevski/891633/cmap_402105601_402364801_4FGL_J2326.2+0113_daily_bin628.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/891633/ft1_filtered_4FGL_J2326.2+0113_daily_bin628.fits scfile=/scratch/kocevski/891633/ft2_4FGL_J2326.2+0113_daily_bin628.fits outfile=/scratch/kocevski/891633/cmap_HighResolution_402105601_402364801_4FGL_J2326.2+0113_daily_bin628.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/891633/ft1_filtered_4FGL_J2326.2+0113_daily_bin628.fits evtable="EVENTS" scfile=/scratch/kocevski/891633/ft2_4FGL_J2326.2+0113_daily_bin628.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/891633/Model_4FGL_J2326.2+0113_daily_bin628.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/891633/ft1_filtered_4FGL_J2326.2+0113_daily_bin628.fits.....................!
real 60.58
user 59.30
sys 1.17

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10024E-03   1.0000         .10000E-03   10000.    
     2 'norm      '    .10062E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    41.298       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10010E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10064E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .23741E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    1.0122       1.0000         .10000E-03   10000.    
     8 'norm      '    1.3545       1.0000         .10000E-03   10000.    
     9 'norm      '    9.4680       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10012E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    23.225       1.0000         .10000E-03   10000.    
    12 'norm      '    11.569       1.0000         .10000E-03   10000.    
    13 'Prefactor '    11.192       1.0000         .10000E-03   10000.    
    14 'Prefactor '    299.16       1.0000         .10000E-03   10000.    
    15 'Prefactor '    3.8966       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    14.026       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    1.2256       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10038E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .13499E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    23 'Normalizat'    .75246       1.0000         .10000E-01   10.000    
    24 'Prefactor '    .85262       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=   6070.730     FROM MIGRAD    STATUS=CONVERGED    547 CALLS     2754 TOTAL
                     EDM=   .86E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.1%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    13.462       -.45870E-05** at limit **
   2  norm          .10000E-03    7.7371       -.30834E-06** at limit **
   3  Prefactor     41.275        39.599       -.17348E-04   -.15920E-04
   4  Prefactor     .10000E-03    4.6207        .16216E-06** at limit **
   5  Prefactor     .10000E-03    18.372        .59911E-05** at limit **
   6  Prefactor     .10000E-03    68.315        .13140E-04** at limit **
   7  Prefactor     .99889        1.8142        .10751E-05   -.21047E-02
   8  norm          1.3538        .81835       -.26955E-06    .45382E-03
   9  norm          9.4740        5.6148       -.14997E-05   -.49330E-04
  10  Prefactor     .10000E-03    4.5317        .23553E-06** at limit **
  11  Prefactor     23.208        37.651       -.15864E-04    .11519E-04
  12  norm          11.567        9.5814        .19063E-06    .41149E-04
  13  Prefactor     11.191        9.1518       -.21286E-06   -.11047E-03
  14  Prefactor     299.24        227.65        .42159E-04    .60765E-04
  15  Prefactor     3.8950        14.598       -.26874E-05   -.12302E-03
  16  Prefactor     .10000E-03    9.3106       -.15366E-06** at limit **
  17  norm          14.018        18.052        .43257E-06    .12496E-03
  18  Prefactor     .10000E-03    44.252       -.19740E-05** at limit **
  19  Prefactor     1.2116        5.3146       -.34731E-05   -.31868E-03
  20  Prefactor     .10000E-03    12.100        .32141E-05** at limit **
  21  Prefactor     .10000E-03    76.472       -.10981E-04** at limit **
  22  Prefactor     .10000E-03    22.258       -.44520E-05** at limit **
  23  Normalizat    .75284        .17762        .39640E-05    .17494E-03
  24  Prefactor     .85242        .11858        .39047E-06    .31762E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 41.2747
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.998888
  norm       = 1.35384
  norm       = 9.47395
  Prefactor  = 0.0001
  Prefactor  = 23.2078
  norm       = 11.5672
  Prefactor  = 11.1907
  Prefactor  = 299.241
  Prefactor  = 3.89497
  Prefactor  = 0.0001
  norm       = 14.0179
  Prefactor  = 0.0001
  Prefactor  = 1.21163
  Prefactor  = 0.0001
  Prefactor  = 0.000100001
  Prefactor  = 0.0001
  Normalizat = 0.752835
  Prefactor  = 0.852422
 **********
 **   18 **HESSE 
 **********

 FCN=   6070.730     FROM HESSE     STATUS=OK           393 CALLS     3147 TOTAL
                     EDM=   .17E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    13.513        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          .10000E-03    7.8202        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     41.275        39.663        .62378E-04   -1.4422    
   4  Prefactor     .10000E-03    4.6274        .16357E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    18.857        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    68.967        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .99889        9.6690        .22307E-02   -1.5508    
   8  norm          1.3538        .81100        .51407E-04   -1.5475    
   9  norm          9.4740        5.7780        .13024E-03   -1.5092    
  10  Prefactor     .10000E-03    4.5431        .16192E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     23.208        37.602        .83117E-04   -1.4744    
  12  norm          11.567        9.5594        .11778E-03   -1.5028    
  13  Prefactor     11.191        9.1468        .59876E-03   -1.5039    
  14  Prefactor     299.24        227.23        .11740E-03   -1.2231    
  15  Prefactor     3.8950        13.791        .10220E-02   -1.5313    
  16  Prefactor     .10000E-03    9.3237        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          14.018        17.952        .10695E-03   -1.4959    
  18  Prefactor     .10000E-03    44.330        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     1.2116        4.7077        .26474E-03   -1.5488    
  20  Prefactor     .10000E-03    12.111        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10000E-03    78.978        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     .10000E-03    22.599        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Normalizat    .75284        .20799        .28721E-03   -1.0184    
  24  Prefactor     .85242        .13920        .18750E-03   -.97824    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.71704e-08
Minuit parameter uncertainties:
  1  4.9595e-05
  2  2.93068e-05
  3  39.6884
  4  1.04829e-05
  5  2.28648e-06
  6  0.000296175
  7  6.21654
  8  0.811004
  9  5.7783
  10  8.9463e-06
  11  37.6403
  12  9.56067
  13  9.14791
  14  227.906
  15  13.8027
  16  5.96212e-06
  17  17.9586
  18  9.8671e-05
  19  4.70917
  20  1.10944e-05
  21  0.000437922
  22  0.000112255
  23  0.20821
  24  0.139258
Done.

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

Extracting fit parameters...

4FGL J2326.2+0113
   Spectrum: PowerLaw
406    Prefactor:  2.321e+01  3.764e+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.524e-01  1.393e-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.528e-01  2.082e-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: 7.47e-08 ph cm-2 s-1
Energy Flux Upper Limit: 5.66e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/891633/likelihoodResults_402105601_402364801_4FGL_J2326.2+0113_daily_bin628.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) = 6070.53773173
delta logL = 0.192628736411

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6070.52971522
delta logL = 0.20064524623

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    11.384       1.0000         .10000E-03   10000.    
     2 'Index     '    2.7102       1.0000          .0000       10.000    
     3 'Normalizat'    .73975       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .85656       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=   6070.530     FROM MIGRAD    STATUS=CONVERGED     99 CALLS      297 TOTAL
                     EDM=   .12E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     11.401        32.673        .11874E-03   -.28820E-04
   2  Index         2.7100        1.2071        .57189E-02    .37855E-03
   3  Normalizat    .73972        .20040        .28946E-03   -.13538E-03
   4  Prefactor     .85655        .13843        .18704E-03   -.95428E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 11.4007
  Index      = 2.70995
  Normalizat = 0.739717
  Prefactor  = 0.856549
 **********
 **   18 **HESSE 
 **********

 FCN=   6070.530     FROM HESSE     STATUS=OK            25 CALLS      322 TOTAL
                     EDM=   .99E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     11.401        26.510        .47494E-05   -1.5033    
   2  Index         2.7100        .98285        .11438E-02   -.47575    
   3  Normalizat    .73972        .20033        .11578E-04   -1.0235    
   4  Prefactor     .85655        .13841        .74816E-05   -.97676    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 9.8865e-11
Minuit parameter uncertainties:
  1  26.5369
  2  0.991044
  3  0.200534
  4  0.138464
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/891633': 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) = 6070.52971482
delta logL = 0.200645643323

Extracting fit parameters...

4FGL J2326.2+0113
   Spectrum: PowerLaw
406    Prefactor:  1.140e+01  2.654e+01  1.000e-04  1.000e+04 ( 1.000e-14)
407        Index:  2.710e+00  9.910e-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.565e-01  1.385e-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.397e-01  2.005e-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  0.000e+00 [aplpy.core]
INFO: Auto-setting vmax to  0.000e+00 [aplpy.core]
Saving /scratch/kocevski/891633/cmap_HighResolution_402105601_402364801_4FGL_J2326.2+0113_daily_bin628.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='5.66e-03', job_status='DONE', photon_flux_upper_limit='7.47e-08', time_completed='2021-09-29 19:04:21.673126', job_id='891633', GAL2='0.86', fit_tolerance='1e-08', EG2='0.74', EG='0.75', time_epoch_completed='1632967461.67', return_code2='0', ts='0.53', comment='SUCCESS', return_code='0', GAL='0.85', dlogl='2.01e-01', ts2='0.94', photon_index_error='0.00', photon_index='2.12' WHERE bin_id='628' AND source_name='4FGL J2326.2+0113' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep 29 19:04:21 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0204>
Subject: Job 891633: <4FGL_J2326.2+0113_daily_bin628> in cluster <slac> Done

Job <4FGL_J2326.2+0113_daily_bin628> was submitted from host <rhel6-64h> by user <kocevski> in cluster <slac> at Wed Sep 29 18:50:51 2021
Job was executed on host(s) <bullet0204>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Sep 29 18:50:53 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:50:53 2021
Terminated at Wed Sep 29 19:04:22 2021
Results reported at Wed Sep 29 19:04:22 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2326.2+0113_daily_bin628 351.575 1.2216 402105601 402364801 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 :                                   632.41 sec.
    Max Memory :                                 1093 MB
    Average Memory :                             295.42 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   808 sec.
    Turnaround time :                            811 sec.

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

