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


Performing analysis on: 4FGL_J2326.2+0113_daily_bin863
RA = 351.575, Dec = 1.2216
tmin = 463017601, tmax = 463276801
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='893009', job_status='RUN', time_executed='2021-09-29 18:57:44.894164', time_epoch_executed='1632967064.89' WHERE source_name='4FGL J2326.2+0113' and cadence='daily' and bin_id='863'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/893009

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/893009/ft1_4FGL_J2326.2+0113_daily_bin863.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/893009/ft2_4FGL_J2326.2+0113_daily_bin863.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/893009/ft1_4FGL_J2326.2+0113_daily_bin863.fits outfile=/scratch/kocevski/893009/ft1_filteredMKT_4FGL_J2326.2+0113_daily_bin863.fits ra=351.575 dec=1.2216 rad=12.0 tmin=463017601.0 tmax=463276801.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.64
user 3.42
sys 0.21

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/893009/ft2_4FGL_J2326.2+0113_daily_bin863.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/893009/ft1_filteredMKT_4FGL_J2326.2+0113_daily_bin863.fits evtable="EVENTS" outfile="/scratch/kocevski/893009/ft1_filtered_4FGL_J2326.2+0113_daily_bin863.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.52
user 0.32
sys 0.15

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/893009/ft1_filtered_4FGL_J2326.2+0113_daily_bin863.fits" evtable="EVENTS" scfile=/scratch/kocevski/893009/ft2_4FGL_J2326.2+0113_daily_bin863.fits sctable="SC_DATA" outfile=/scratch/kocevski/893009/ltcube_463017601_463276801_4FGL_J2326.2+0113_daily_bin863.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/893009/ft2_4FGL_J2326.2+0113_daily_bin863.fits
.....................!
real 15.53
user 15.16
sys 0.33

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/893009/ft1_filtered_4FGL_J2326.2+0113_daily_bin863.fits evtable="EVENTS" scfile=/scratch/kocevski/893009/ft2_4FGL_J2326.2+0113_daily_bin863.fits sctable="SC_DATA" expcube=/scratch/kocevski/893009/ltcube_463017601_463276801_4FGL_J2326.2+0113_daily_bin863.fits outfile=/scratch/kocevski/893009/expmap_463017601_463276801_4FGL_J2326.2+0113_daily_bin863.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/893009/ltcube_463017601_463276801_4FGL_J2326.2+0113_daily_bin863.fits
.....................!
real 191.28
user 186.03
sys 4.79

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/893009/ft1_filtered_4FGL_J2326.2+0113_daily_bin863.fits scfile=/scratch/kocevski/893009/ft2_4FGL_J2326.2+0113_daily_bin863.fits outfile=/scratch/kocevski/893009/cmap_463017601_463276801_4FGL_J2326.2+0113_daily_bin863.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/893009/ft1_filtered_4FGL_J2326.2+0113_daily_bin863.fits scfile=/scratch/kocevski/893009/ft2_4FGL_J2326.2+0113_daily_bin863.fits outfile=/scratch/kocevski/893009/cmap_HighResolution_463017601_463276801_4FGL_J2326.2+0113_daily_bin863.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.55
user 0.38
sys 0.15

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10049E-03   1.0000         .10000E-03   10000.    
     2 'norm      '    5.3383       1.0000         .10000E-03   10000.    
     3 'Prefactor '    37.887       1.0000         .10000E-03   10000.    
     4 'Prefactor '    13.553       1.0000         .10000E-03   10000.    
     5 'Prefactor '    7.6893       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10849E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10068E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    7.0932       1.0000         .10000E-03   10000.    
     9 'norm      '    .10022E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    16.786       1.0000         .10000E-03   10000.    
    11 'Prefactor '    40.425       1.0000         .10000E-03   10000.    
    12 'norm      '    9.6079       1.0000         .10000E-03   10000.    
    13 'Prefactor '    5.0360       1.0000         .10000E-03   10000.    
    14 'Prefactor '    158.47       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .11825E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    67.128       1.0000         .10000E-03   10000.    
    17 'norm      '    .10948E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10031E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .31158E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    78.960       1.0000         .10000E-03   10000.    
    21 'Prefactor '    6.6646       1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10048E-03   1.0000         .10000E-03   10000.    
    23 'Normalizat'    .42586       1.0000         .10000E-01   10.000    
    24 'Prefactor '    1.1615       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=   5311.597     FROM MIGRAD    STATUS=CONVERGED    529 CALLS     3200 TOTAL
                     EDM=   .43E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .5%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    8.3781        .29544E-06** at limit **
   2  norm          5.3272        15.114       -.46006E-05   -.91146E-04
   3  Prefactor     37.870        38.554       -.20487E-04   -.16407E-04
   4  Prefactor     13.550        13.287       -.33133E-06   -.41343E-04
   5  Prefactor     7.6892        10.263        .46405E-07   -.11380E-04
   6  Prefactor     .10000E-03    39.827        .49839E-06** at limit **
   7  Prefactor     .10000E-03    3.7886       -.13079E-06** at limit **
   8  norm          7.0926        1.7962        .19570E-06   -.66592E-03
   9  norm          .10000E-03    2.7288       -.18455E-06** at limit **
  10  Prefactor     16.785        11.909        .10759E-05   -.32669E-04
  11  Prefactor     40.420        44.790       -.56502E-05   -.10920E-04
  12  norm          9.6072        9.5654        .44727E-06   -.79792E-04
  13  Prefactor     5.0345        7.2044       -.67368E-06   -.26816E-03
  14  Prefactor     158.42        290.98       -.43723E-04   -.23146E-04
  15  Prefactor     .10000E-03    10.379       -.43043E-05** at limit **
  16  Prefactor     67.117        33.157       -.77613E-05   -.35595E-04
  17  norm          .10000E-03    14.614       -.20192E-05** at limit **
  18  Prefactor     .10000E-03    28.250        .46014E-06** at limit **
  19  Prefactor     .10000E-03    3.3601        .12453E-05** at limit **
  20  Prefactor     78.944        46.067       -.14500E-04   -.47746E-04
  21  Prefactor     6.6644        15.022       -.28807E-06   -.41154E-04
  22  Prefactor     .10000E-03    11.219        .61970E-05** at limit **
  23  Normalizat    .42645        .24288        .11213E-04    .11685E-04
  24  Prefactor     1.1611        .16633        .13980E-05   -.22732E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  norm       = 5.32717
  Prefactor  = 37.8696
  Prefactor  = 13.5503
  Prefactor  = 7.68919
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 7.09257
  norm       = 0.0001
  Prefactor  = 16.785
  Prefactor  = 40.4199
  norm       = 9.60722
  Prefactor  = 5.03452
  Prefactor  = 158.417
  Prefactor  = 0.000100001
  Prefactor  = 67.1172
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000100004
  Prefactor  = 78.9437
  Prefactor  = 6.66437
  Prefactor  = 0.0001
  Normalizat = 0.426452
  Prefactor  = 1.16112
 **********
 **   18 **HESSE 
 **********

 FCN=   5311.597     FROM HESSE     STATUS=OK           393 CALLS     3593 TOTAL
                     EDM=   .11E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    8.3942        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          5.3272        15.053        .17394E-03   -1.5246    
   3  Prefactor     37.870        38.451        .65114E-04   -1.4476    
   4  Prefactor     13.550        13.281        .10880E-03   -1.4972    
   5  Prefactor     7.6892        10.257        .14461E-03   -1.5153    
   6  Prefactor     .10000E-03    39.905        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    3.7996        .13853E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          7.0926        1.7956        .44879E-04   -1.5175    
   9  norm          .10000E-03    2.7502        .11756E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     16.785        11.890        .97757E-04   -1.4888    
  11  Prefactor     40.420        44.779        .63045E-04   -1.4436    
  12  norm          9.6072        9.5165        .12928E-03   -1.5088    
  13  Prefactor     5.0345        7.1663        .17919E-03   -1.5259    
  14  Prefactor     158.42        285.71        .16015E-03   -1.3184    
  15  Prefactor     .10000E-03    10.422        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     67.117        33.088        .48987E-04   -1.4068    
  17  norm          .10000E-03    14.648        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    28.277        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    5.8257        .24841E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     78.944        46.080        .45195E-04   -1.3929    
  21  Prefactor     6.6644        15.010        .15544E-03   -1.5192    
  22  Prefactor     .10000E-03    11.276        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Normalizat    .42645        .24795        .42019E-03   -1.1596    
  24  Prefactor     1.1611        .17531        .19005E-03   -.87536    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.14573e-09
Minuit parameter uncertainties:
  1  3.44496e-05
  2  15.0642
  3  38.4765
  4  13.2838
  5  10.2597
  6  0.000180357
  7  1.91983e-05
  8  1.79565
  9  1.17906e-05
  10  11.8913
  11  44.8164
  12  9.51796
  13  7.1675
  14  288.267
  15  0.000217111
  16  33.0969
  17  0.000150186
  18  4.54895e-05
  19  0.000292279
  20  46.1007
  21  15.0183
  22  7.83708e-05
  23  0.248595
  24  0.175395
Done.

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

Extracting fit parameters...

4FGL J2326.2+0113
   Spectrum: PowerLaw
406    Prefactor:  4.042e+01  4.482e+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.161e+00  1.754e-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.265e-01  2.486e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 1.68
Ra Dec: 351.575 1.222
Photon Index (Fixed Index): 2.12 +/- 0.00
Photon Flux (Fixed Index): 2.46e-08 +/- 2.72e-08
Energy Flux (Fixed Index): 1.29e-05 +/- 1.43e-05

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

Saving results to:
/scratch/kocevski/893009/likelihoodResults_463017601_463276801_4FGL_J2326.2+0113_daily_bin863.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) = 5311.56736462
delta logL = 0.0297104249985

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5311.56580223
delta logL = 0.0312728167883

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    48.406       1.0000         .10000E-03   10000.    
     2 'Index     '    1.9194       1.0000          .0000       10.000    
     3 'Normalizat'    .43146       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.1595       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=   5311.566     FROM MIGRAD    STATUS=CONVERGED     92 CALLS      312 TOTAL
                     EDM=   .20E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     48.407        61.504        .57635E-04   -.49313E-05
   2  Index         1.9194        .80793        .96434E-02    .21754E-03
   3  Normalizat    .43150        .23941        .41788E-03   -.29382E-05
   4  Prefactor     1.1595        .17406        .19018E-03    .28096E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 48.4065
  Index      = 1.91942
  Normalizat = 0.431496
  Prefactor  = 1.15949
 **********
 **   18 **HESSE 
 **********

 FCN=   5311.566     FROM HESSE     STATUS=OK            25 CALLS      337 TOTAL
                     EDM=   .65E-12    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     48.407        60.144        .11527E-04   -1.4315    
   2  Index         1.9194        .79041        .19287E-02   -.66380    
   3  Normalizat    .43150        .23940        .16715E-04   -1.1570    
   4  Prefactor     1.1595        .17410        .76072E-05   -.87587    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 6.52924e-13
Minuit parameter uncertainties:
  1  60.2199
  2  0.795812
  3  0.239975
  4  0.174189
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/893009': 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) = 5311.56580222
delta logL = 0.0312728271047

Extracting fit parameters...

4FGL J2326.2+0113
   Spectrum: PowerLaw
406    Prefactor:  4.841e+01  6.022e+01  1.000e-04  1.000e+04 ( 1.000e-14)
407        Index:  1.919e+00  7.958e-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.159e+00  1.742e-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.315e-01  2.400e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 1.74
Ra Dec: 351.575 1.222
Photon Index (Free Index): 1.92 +/- 0.80
Photon Flux (Free Index): 1.93e-08 +/- 3.01e-08
Energy Flux (Free Index): 1.64e-05 +/- 2.56e-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/893009/cmap_HighResolution_463017601_463276801_4FGL_J2326.2+0113_daily_bin863.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='7.43e-03', comment='SUCCESS', photon_flux='2.46e-08', energy_flux2='1.64e-05', photon_flux_error='2.72e-08', dlogl='3.13e-02', energy_flux='1.29e-05', photon_flux2='1.93e-08', job_status='DONE', time_completed='2021-09-29 19:08:31.337875', photon_index_error2='0.80', photon_index2='1.92', ts='1.68', fit_tolerance='1e-08', GAL='1.16', photon_index_error='0.00', photon_flux_upper_limit='9.81e-08', energy_flux_error2='2.56e-05', EG='0.43', time_epoch_completed='1632967711.34', return_code='0', job_id='893009', GAL2='1.16', EG2='0.43', return_code2='0', energy_flux_error='1.43e-05', photon_flux_error2='3.01e-08', ts2='1.74', photon_index='2.12' WHERE bin_id='863' AND source_name='4FGL J2326.2+0113' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep 29 19:08:31 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0241>
Subject: Job 893009: <4FGL_J2326.2+0113_daily_bin863> in cluster <slac> Done

Job <4FGL_J2326.2+0113_daily_bin863> was submitted from host <rhel6-64d> by user <kocevski> in cluster <slac> at Wed Sep 29 18:55:33 2021
Job was executed on host(s) <bullet0241>, 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:08:32 2021
Results reported at Wed Sep 29 19:08:32 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2326.2+0113_daily_bin863 351.575 1.2216 463017601 463276801 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 :                                   643.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             256.20 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   775 sec.
    Turnaround time :                            779 sec.

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

