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


Performing analysis on: 4FGL_J2326.2+0113_daily_bin633
RA = 351.575, Dec = 1.2216
tmin = 403401601, tmax = 403660801
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='891640', job_status='RUN', time_executed='2021-09-29 18:53:56.719321', time_epoch_executed='1632966836.72' WHERE source_name='4FGL J2326.2+0113' and cadence='daily' and bin_id='633'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/891640

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/891640/ft1_4FGL_J2326.2+0113_daily_bin633.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/891640/ft2_4FGL_J2326.2+0113_daily_bin633.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/891640/ft1_4FGL_J2326.2+0113_daily_bin633.fits outfile=/scratch/kocevski/891640/ft1_filteredMKT_4FGL_J2326.2+0113_daily_bin633.fits ra=351.575 dec=1.2216 rad=12.0 tmin=403401601.0 tmax=403660801.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.96
user 3.71
sys 0.23

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/891640/ft2_4FGL_J2326.2+0113_daily_bin633.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/891640/ft1_filteredMKT_4FGL_J2326.2+0113_daily_bin633.fits evtable="EVENTS" outfile="/scratch/kocevski/891640/ft1_filtered_4FGL_J2326.2+0113_daily_bin633.fits" apply_filter=yes overwrite=yes header_obstimes=yes tstart=0.0 tstop=0.0 gtifile="default" chatter=3 clobber=yes debug=no gui=no mode="ql"

WARNING: version mismatch between CFITSIO header (v3.43) and linked library (v3.41).

This is gtmktime version HEAD
Applying GTI filter:
IN_SAA!=T && LIVETIME>0 && gtifilter('/nfs/farm/g/glast/g/LCRepository/Likelihood/GTIs/nogrb.gti',(START+STOP)/2) && (angsep(RA_SUN,DEC_SUN,RA_ZENITH,DEC_ZENITH)>115 || gtifilter('/nfs/farm/g/glast/g/LCRepository/Likelihood/GTIs/nosolarflares.gti',(START+STOP)/2))
real 0.49
user 0.34
sys 0.14

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/891640/ft1_filtered_4FGL_J2326.2+0113_daily_bin633.fits" evtable="EVENTS" scfile=/scratch/kocevski/891640/ft2_4FGL_J2326.2+0113_daily_bin633.fits sctable="SC_DATA" outfile=/scratch/kocevski/891640/ltcube_403401601_403660801_4FGL_J2326.2+0113_daily_bin633.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/891640/ft2_4FGL_J2326.2+0113_daily_bin633.fits
.....................!
real 12.47
user 11.75
sys 0.68

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/891640/ft1_filtered_4FGL_J2326.2+0113_daily_bin633.fits evtable="EVENTS" scfile=/scratch/kocevski/891640/ft2_4FGL_J2326.2+0113_daily_bin633.fits sctable="SC_DATA" expcube=/scratch/kocevski/891640/ltcube_403401601_403660801_4FGL_J2326.2+0113_daily_bin633.fits outfile=/scratch/kocevski/891640/expmap_403401601_403660801_4FGL_J2326.2+0113_daily_bin633.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/891640/ltcube_403401601_403660801_4FGL_J2326.2+0113_daily_bin633.fits
.....................!
real 189.34
user 184.72
sys 4.24

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/891640/ft1_filtered_4FGL_J2326.2+0113_daily_bin633.fits scfile=/scratch/kocevski/891640/ft2_4FGL_J2326.2+0113_daily_bin633.fits outfile=/scratch/kocevski/891640/cmap_403401601_403660801_4FGL_J2326.2+0113_daily_bin633.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.55
user 0.37
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/891640/ft1_filtered_4FGL_J2326.2+0113_daily_bin633.fits scfile=/scratch/kocevski/891640/ft2_4FGL_J2326.2+0113_daily_bin633.fits outfile=/scratch/kocevski/891640/cmap_HighResolution_403401601_403660801_4FGL_J2326.2+0113_daily_bin633.fits algorithm="CMAP" ebinalg="LOG" emin=30.0 emax=200000.0 ebinfile=NONE tbinalg="LIN" tbinfile=NONE nxpix=500 nypix=500 binsz=0.1 coordsys="CEL" xref=351.575 yref=1.2216 axisrot=0.0 rafield="RA" decfield="DEC" proj="AIT" hpx_ordering_scheme="RING" hpx_order=3 hpx_ebin=yes hpx_region="" evtable="EVENTS" sctable="SC_DATA" efield="ENERGY" tfield="TIME" chatter=2 clobber=yes debug=no gui=no mode="ql"

WARNING: version mismatch between CFITSIO header (v3.43) and linked library (v3.41).

This is gtbin version HEAD
real 0.54
user 0.38
sys 0.15

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .16975E-01   1.0000         .10000E-03   10000.    
     2 'norm      '    .10039E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    1.3927       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    26.148       1.0000         .10000E-03   10000.    
     6 'Prefactor '    81.324       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10121E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    1.2510       1.0000         .10000E-03   10000.    
     9 'norm      '    .10059E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    106.59       1.0000         .10000E-03   10000.    
    12 'norm      '    13.224       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .50684E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10349E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    17.209       1.0000         .10000E-03   10000.    
    18 'Prefactor '    32.873       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    4.1579       1.0000         .10000E-03   10000.    
    21 'Prefactor '    6.7778       1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    23 'Normalizat'    1.1482       1.0000         .10000E-01   10.000    
    24 'Prefactor '    .90624       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=   5147.871     FROM MIGRAD    STATUS=CONVERGED    531 CALLS     2703 TOTAL
                     EDM=   .20E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .5%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    18.545        .10558E-05** at limit **
   2  norm          .10000E-03    14.453        .13858E-05** at limit **
   3  Prefactor     1.3876        199.49       -.34366E-05   -.32914E-04
   4  Prefactor     .10000E-03    2.8979        .72085E-07** at limit **
   5  Prefactor     26.144        23.764        .18435E-05   -.12620E-05
   6  Prefactor     81.340        72.852        .13139E-04    .10178E-04
   7  Prefactor     .10000E-03    5.9226       -.33955E-06** at limit **
   8  norm          1.2511        .99622        .13363E-07    .48921E-03
   9  norm          .10000E-03    3.6452       -.11912E-06** at limit **
  10  Prefactor     .10000E-03    7.4511       -.15533E-05** at limit **
  11  Prefactor     106.61        90.831        .14461E-04    .31034E-04
  12  norm          13.223        8.1292        .95835E-07   -.24703E-04
  13  Prefactor     .10000E-03    1.5343       -.12413E-07** at limit **
  14  Prefactor     .10001E-03    729.38       -.22066E-03** at limit **
  15  Prefactor     .10000E-03    14.874       -.98337E-06** at limit **
  16  Prefactor     .10000E-03    6.8898        .41108E-06** at limit **
  17  norm          17.213        19.071       -.93445E-05    .97558E-04
  18  Prefactor     32.869        44.309       -.40381E-05    .62119E-05
  19  Prefactor     .10000E-03    1.9391        .17561E-06** at limit **
  20  Prefactor     4.1522        99.571       -.14962E-04   -.17549E-04
  21  Prefactor     6.7769        21.841        .34545E-05   -.22602E-04
  22  Prefactor     .10000E-03    7.6253        .11347E-05** at limit **
  23  Normalizat    1.1484        .23839       -.26137E-05    .13507E-03
  24  Prefactor     .90621        .15152        .43991E-06    .13041E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100002
  norm       = 0.0001
  Prefactor  = 1.38758
  Prefactor  = 0.0001
  Prefactor  = 26.144
  Prefactor  = 81.3398
  Prefactor  = 0.0001
  norm       = 1.2511
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 106.608
  norm       = 13.2225
  Prefactor  = 0.0001
  Prefactor  = 0.000100009
  Prefactor  = 0.000100001
  Prefactor  = 0.0001
  norm       = 17.2127
  Prefactor  = 32.8687
  Prefactor  = 0.0001
  Prefactor  = 4.15223
  Prefactor  = 6.77689
  Prefactor  = 0.0001
  Normalizat = 1.14839
  Prefactor  = 0.906208
 **********
 **   18 **HESSE 
 **********

 FCN=   5147.871     FROM HESSE     STATUS=OK           397 CALLS     3100 TOTAL
                     EDM=   .45E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    203.10        .58916E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          .10000E-03    14.562        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     1.3876        201.83        .36811E-03   -1.5472    
   4  Prefactor     .10000E-03    2.9006        .11929E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     26.144        23.762        .78340E-04   -1.4685    
   6  Prefactor     81.340        73.040        .44538E-04   -1.3902    
   7  Prefactor     .10000E-03    5.9293        .17035E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          1.2511        .99689        .61113E-04   -1.5484    
   9  norm          .10000E-03    3.7016        .13370E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    7.4983        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     106.61        90.785        .38952E-04   -1.3639    
  12  norm          13.223        8.1228        .11015E-03   -1.4981    
  13  Prefactor     .10000E-03    1.5356        .86770E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10001E-03    727.42        .21151E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    15.056        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    6.8936        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          17.213        19.008        .48274E-03   -1.4878    
  18  Prefactor     32.869        44.309        .69889E-04   -1.4561    
  19  Prefactor     .10000E-03    1.9476        .97535E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     4.1522        99.803        .19766E-03   -1.5300    
  21  Prefactor     6.7769        21.812        .15412E-03   -1.5187    
  22  Prefactor     .10000E-03    7.6401        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Normalizat    1.1484        .27889        .28097E-03   -.88213    
  24  Prefactor     .90621        .17924        .21251E-03   -.95925    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.54802e-10
Minuit parameter uncertainties:
  1  0.00126682
  2  2.70448e-06
  3  33.5842
  4  1.38577e-06
  5  23.7707
  6  73.1206
  7  8.64411e-05
  8  0.996901
  9  2.89169e-05
  10  1.00733e-05
  11  90.9038
  12  8.12344
  13  9.58176e-07
  14  0.00511023
  15  0.00022755
  16  2.80866e-06
  17  19.0143
  18  44.3535
  19  1.81389e-05
  20  40.79
  21  21.8381
  22  1.07375e-05
  23  0.279249
  24  0.179354
Done.

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

Extracting fit parameters...

4FGL J2326.2+0113
   Spectrum: PowerLaw
406    Prefactor:  1.066e+02  9.090e+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.062e-01  1.794e-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.148e+00  2.792e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 1.93
Ra Dec: 351.575 1.222
Photon Index (Fixed Index): 2.12 +/- 0.00
Photon Flux (Fixed Index): 6.48e-08 +/- 5.52e-08
Energy Flux (Fixed Index): 3.41e-05 +/- 2.91e-05

TS (Fixed Index): 1.93
Ra Dec: 351.575 1.222
Photon Flux Upper Limit: 1.75e-07 ph cm-2 s-1
Energy Flux Upper Limit: 1.32e-02 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/891640/likelihoodResults_403401601_403660801_4FGL_J2326.2+0113_daily_bin633.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) = 5146.95249809
delta logL = 0.918731236018

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5146.92534971
delta logL = 0.945879612828

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    27.838       1.0000         .10000E-03   10000.    
     2 'Index     '    2.9644       1.0000          .0000       10.000    
     3 'Normalizat'    1.0661       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .94121       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.

 FCN=   5146.925     FROM MIGRAD    STATUS=CONVERGED     61 CALLS      290 TOTAL
                     EDM=   .16E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     27.777        309.40        .18983E-02    .34406E-03
   2  Index         2.9653        2.2685        .79021E-01    .15909E-03
   3  Normalizat    1.0645        .95912E-01    .65560E-01    .11622E-04
   4  Prefactor     .94234        .59788E-01    .45528E-01   -.58773E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 27.7768
  Index      = 2.96532
  Normalizat = 1.06448
  Prefactor  = 0.942337
 **********
 **   18 **HESSE 
 **********

 FCN=   5146.925     FROM HESSE     STATUS=OK            33 CALLS      323 TOTAL
                     EDM=   .64E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     27.777        118.20        .37965E-03   -1.4653    
   2  Index         2.9653        1.6474        .30789E-02   -.41910    
   3  Normalizat    1.0645        .28066        .29002E-03   -.90901    
   4  Prefactor     .94234        .18819        .20868E-03   -.94677    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 6.44663e-08
Minuit parameter uncertainties:
  1  114.989
  2  1.68544
  3  0.281052
  4  0.188318
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/891640': 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) = 5146.92532863
delta logL = 0.945900699949

Extracting fit parameters...

4FGL J2326.2+0113
   Spectrum: PowerLaw
406    Prefactor:  2.778e+01  1.150e+02  1.000e-04  1.000e+04 ( 1.000e-14)
407        Index:  2.965e+00  1.685e+00  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:  9.423e-01  1.883e-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.064e+00  2.811e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 3.96
Ra Dec: 351.575 1.222
Photon Index (Free Index): 2.97 +/- 1.69
Photon Flux (Free Index): 1.30e-07 +/- 8.41e-08
Energy Flux (Free Index): 2.64e-05 +/- 2.32e-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/891640/cmap_HighResolution_403401601_403660801_4FGL_J2326.2+0113_daily_bin633.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.32e-02', comment='SUCCESS', photon_flux='6.48e-08', energy_flux2='2.64e-05', photon_flux_error='5.52e-08', dlogl='9.46e-01', energy_flux='3.41e-05', photon_flux2='1.30e-07', job_status='DONE', time_completed='2021-09-29 19:03:57.266610', photon_index_error2='1.69', photon_index2='2.97', ts='1.93', fit_tolerance='1e-08', GAL='0.91', photon_index_error='0.00', photon_flux_upper_limit='1.75e-07', energy_flux_error2='2.32e-05', EG='1.15', time_epoch_completed='1632967437.27', return_code='0', job_id='891640', GAL2='0.94', EG2='1.06', return_code2='0', energy_flux_error='2.91e-05', photon_flux_error2='8.41e-08', ts2='3.96', photon_index='2.12' WHERE bin_id='633' AND source_name='4FGL J2326.2+0113' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep 29 19:03:57 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0076>
Subject: Job 891640: <4FGL_J2326.2+0113_daily_bin633> in cluster <slac> Done

Job <4FGL_J2326.2+0113_daily_bin633> was submitted from host <rhel6-64h> by user <kocevski> in cluster <slac> at Wed Sep 29 18:50:52 2021
Job was executed on host(s) <bullet0076>, 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:03:57 2021
Results reported at Wed Sep 29 19:03:57 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2326.2+0113_daily_bin633 351.575 1.2216 403401601 403660801 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 :                                   599.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             327.48 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   784 sec.
    Turnaround time :                            785 sec.

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

