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


Performing analysis on: 4FGL_J2326.2+0113_daily_bin868
RA = 351.575, Dec = 1.2216
tmin = 464313601, tmax = 464572801
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='893016', job_status='RUN', time_executed='2021-09-29 18:58:00.680975', time_epoch_executed='1632967080.68' WHERE source_name='4FGL J2326.2+0113' and cadence='daily' and bin_id='868'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/893016

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/893016/ft1_4FGL_J2326.2+0113_daily_bin868.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/893016/ft2_4FGL_J2326.2+0113_daily_bin868.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/893016/ft1_4FGL_J2326.2+0113_daily_bin868.fits outfile=/scratch/kocevski/893016/ft1_filteredMKT_4FGL_J2326.2+0113_daily_bin868.fits ra=351.575 dec=1.2216 rad=12.0 tmin=464313601.0 tmax=464572801.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.38
user 3.15
sys 0.20

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

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

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/893016/ft1_filtered_4FGL_J2326.2+0113_daily_bin868.fits evtable="EVENTS" scfile=/scratch/kocevski/893016/ft2_4FGL_J2326.2+0113_daily_bin868.fits sctable="SC_DATA" expcube=/scratch/kocevski/893016/ltcube_464313601_464572801_4FGL_J2326.2+0113_daily_bin868.fits outfile=/scratch/kocevski/893016/expmap_464313601_464572801_4FGL_J2326.2+0113_daily_bin868.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/893016/ltcube_464313601_464572801_4FGL_J2326.2+0113_daily_bin868.fits
.....................!
real 191.39
user 186.70
sys 4.34

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/893016/ft1_filtered_4FGL_J2326.2+0113_daily_bin868.fits scfile=/scratch/kocevski/893016/ft2_4FGL_J2326.2+0113_daily_bin868.fits outfile=/scratch/kocevski/893016/cmap_464313601_464572801_4FGL_J2326.2+0113_daily_bin868.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/893016/ft1_filtered_4FGL_J2326.2+0113_daily_bin868.fits scfile=/scratch/kocevski/893016/ft2_4FGL_J2326.2+0113_daily_bin868.fits outfile=/scratch/kocevski/893016/cmap_HighResolution_464313601_464572801_4FGL_J2326.2+0113_daily_bin868.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.37
sys 0.15

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    1.2232       1.0000         .10000E-03   10000.    
     2 'norm      '    48.671       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10068E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    15.324       1.0000         .10000E-03   10000.    
     5 'Prefactor '    12.859       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10027E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10048E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    1.8057       1.0000         .10000E-03   10000.    
     9 'norm      '    .10023E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10030E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10008E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    50.271       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10703E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    5.2906       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10139E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    .10102E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10193E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    11.213       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10060E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    47.761       1.0000         .10000E-03   10000.    
    22 'Prefactor '    21.328       1.0000         .10000E-03   10000.    
    23 'Normalizat'    .33010       1.0000         .10000E-01   10.000    
    24 'Prefactor '    1.0466       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=   5310.643     FROM MIGRAD    STATUS=CONVERGED    535 CALLS     2689 TOTAL
                     EDM=   .77E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.2%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     1.2225        4.1290        .14100E-05   -.10786E-02
   2  norm          48.679        18.374       -.15122E-06    .10504E-04
   3  Prefactor     .10000E-03    24.842       -.13494E-06** at limit **
   4  Prefactor     15.327        13.398        .29035E-06    .27786E-04
   5  Prefactor     12.865        15.702        .28231E-07    .78430E-05
   6  Prefactor     .10000E-03    19.388        .36413E-05** at limit **
   7  Prefactor     .10000E-03    3.4834       -.40471E-07** at limit **
   8  norm          1.8060        1.0323        .30882E-07    .14491E-03
   9  norm          .10000E-03    2.2178       -.31658E-07** at limit **
  10  Prefactor     .10000E-03    4.7589       -.93708E-08** at limit **
  11  Prefactor     .10000E-03    42.016       -.18484E-04** at limit **
  12  norm          50.281        13.696        .19304E-06    .12854E-03
  13  Prefactor     .10000E-03    11.497       -.62769E-05** at limit **
  14  Prefactor     .10000E-03    105.01       -.16554E-04** at limit **
  15  Prefactor     5.2945        11.107        .35922E-06   -.24028E-03
  16  Prefactor     .10000E-03    53.828        .26909E-04** at limit **
  17  norm          .10000E-03    14.329       -.42281E-05** at limit **
  18  Prefactor     .10000E-03    46.932        .18893E-06** at limit **
  19  Prefactor     11.216        6.5390       -.49377E-08    .86309E-04
  20  Prefactor     .10000E-03    11.954        .89358E-05** at limit **
  21  Prefactor     47.770        28.635        .20193E-05   -.55378E-04
  22  Prefactor     21.338        18.179       -.55278E-06   -.68061E-05
  23  Normalizat    .32942        .24436       -.16211E-05   -.40761E-04
  24  Prefactor     1.0469        .15467        .25592E-06   -.31204E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 1.22247
  norm       = 48.6794
  Prefactor  = 0.0001
  Prefactor  = 15.3272
  Prefactor  = 12.8649
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 1.80605
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 50.2809
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 5.29455
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 11.2159
  Prefactor  = 0.0001
  Prefactor  = 47.7699
  Prefactor  = 21.3378
  Normalizat = 0.329424
  Prefactor  = 1.04695
 **********
 **   18 **HESSE 
 **********

 FCN=   5310.643     FROM HESSE     STATUS=OK           395 CALLS     3084 TOTAL
                     EDM=   .11E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     1.2225        24.617        .20374E-02   -1.5487    
   2  norm          48.679        18.303        .57479E-04   -1.4311    
   3  Prefactor     .10000E-03    24.882        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     15.327        13.397        .10231E-03   -1.4925    
   5  Prefactor     12.865        15.673        .11170E-03   -1.4990    
   6  Prefactor     .10000E-03    19.404        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    3.4932        .13280E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          1.8060        1.0273        .52646E-04   -1.5439    
   9  norm          .10000E-03    2.2261        .10595E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    4.7673        .15519E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    42.184        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          50.281        13.537        .56561E-04   -1.4289    
  13  Prefactor     .10000E-03    11.642        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    105.11        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     5.2945        11.151        .87370E-03   -1.5248    
  16  Prefactor     .10000E-03    54.000        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          .10000E-03    14.345        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    47.028        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     11.216        6.4784        .11964E-03   -1.5038    
  20  Prefactor     .10000E-03    11.976        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     47.770        28.403        .58021E-04   -1.4325    
  22  Prefactor     21.338        18.087        .86729E-04   -1.4784    
  23  Normalizat    .32942        .23753        .44576E-03   -1.2112    
  24  Prefactor     1.0469        .15600        .18022E-03   -.91181    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.13074e-08
Minuit parameter uncertainties:
  1  10.9763
  2  18.3046
  3  3.80535e-06
  4  13.4001
  5  15.6781
  6  3.2691e-05
  7  1.50382e-06
  8  1.02735
  9  1.08653e-06
  10  5.71627e-06
  11  0.000176426
  12  13.5374
  13  3.13712e-05
  14  0.000294133
  15  11.1558
  16  6.82613e-05
  17  2.72783e-05
  18  1.75741e-05
  19  6.47879
  20  4.59959e-05
  21  28.4111
  22  18.0915
  23  0.23826
  24  0.15607
Done.

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

Extracting fit parameters...

4FGL J2326.2+0113
   Spectrum: PowerLaw
406    Prefactor:  1.000e-04  1.764e-04  1.000e-04  1.000e+04 ( 1.000e-14)
407        Index:  2.119e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
408        Scale:  2.170e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
523    Prefactor:  1.047e+00  1.561e-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:  3.294e-01  2.383e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/893016/likelihoodResults_464313601_464572801_4FGL_J2326.2+0113_daily_bin868.txt

Performing a free index iterative likelihood fit...

Freezing all point sources, except source of interest...

Done.

Freeing candidate source...
Done.

Fit tolerance = 1

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 5310.6430894
delta logL = -0.000112871482997

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 5310.64297826
delta logL = -1.73758871824e-06

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .17985E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.2555       1.0000          .0000       10.000    
     3 'Normalizat'    .32942       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0469       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=   5310.643     FROM MIGRAD    STATUS=CONVERGED     90 CALLS      273 TOTAL
                     EDM=   .14E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10263E-03    9.7134        .18142E-01** at limit **
   2  Index         2.1727        8.4589        .50000        .13192E-04
   3  Normalizat    .32942        .25151E-02    .44576E-03   -.21497E-03
   4  Prefactor     1.0469        .17757E-02    .18022E-03   -.59811E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.00010263
  Index      = 2.17268
  Normalizat = 0.329424
  Prefactor  = 1.04695
 **********
 **   18 **HESSE 
 **********

 FCN=   5310.643     FROM HESSE     STATUS=NOT POSDEF    29 CALLS      302 TOTAL
                     EDM=   .93E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10263E-03    71.108        .36285E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.1727        8.7180        .50000       -.60099    
   3  Normalizat    .32942        .67844E-02    .17830E-04   -1.2112    
   4  Prefactor     1.0469        .47899E-02    .36044E-04   -.91181    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 9.25756e-10
Minuit parameter uncertainties:
  1  0.0273835
  2  122.242
  3  0.00678446
  4  0.0047899
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/893016': No such file or directory
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 5310.64297671
delta logL = -1.87568730325e-07

Extracting fit parameters...

4FGL J2326.2+0113
   Spectrum: PowerLaw
406    Prefactor:  1.026e-04  2.738e-02  1.000e-04  1.000e+04 ( 1.000e-14)
407        Index:  2.173e+00  1.222e+02  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.047e+00  4.790e-03  0.000e+00  1.000e+01 ( 1.000e+00)
524        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
525        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
522   Normalization:  3.294e-01  6.784e-03  1.000e-02  1.000e+01 ( 1.000e+00)


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

Creating a high resolution counts map...
INFO: Auto-setting vmin to  0.000e+00 [aplpy.core]
INFO: Auto-setting vmax to  0.000e+00 [aplpy.core]
Saving /scratch/kocevski/893016/cmap_HighResolution_464313601_464572801_4FGL_J2326.2+0113_daily_bin868.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='5.05e-03', job_status='DONE', photon_flux_upper_limit='6.67e-08', time_completed='2021-09-29 19:07:55.358678', job_id='893016', GAL2='1.05', fit_tolerance='1e-08', EG2='0.33', EG='0.33', time_epoch_completed='1632967675.36', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.05', dlogl='-1.88e-07', ts2='-0.00', photon_index_error='0.00', photon_index='2.12' WHERE bin_id='868' AND source_name='4FGL J2326.2+0113' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep 29 19:07:55 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0072>
Subject: Job 893016: <4FGL_J2326.2+0113_daily_bin868> in cluster <slac> Done

Job <4FGL_J2326.2+0113_daily_bin868> was submitted from host <rhel6-64d> by user <kocevski> in cluster <slac> at Wed Sep 29 18:55:34 2021
Job was executed on host(s) <bullet0072>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Sep 29 18:55:36 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:55:36 2021
Terminated at Wed Sep 29 19:07:56 2021
Results reported at Wed Sep 29 19:07:56 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2326.2+0113_daily_bin868 351.575 1.2216 464313601 464572801 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 :                                   591.38 sec.
    Max Memory :                                 1093 MB
    Average Memory :                             296.22 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   739 sec.
    Turnaround time :                            742 sec.

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

