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


Performing analysis on: 4FGL_J2326.2+0113_daily_bin588
RA = 351.575, Dec = 1.2216
tmin = 391737601, tmax = 391996801
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='891569', job_status='RUN', time_executed='2021-09-29 18:52:45.991566', time_epoch_executed='1632966765.99' WHERE source_name='4FGL J2326.2+0113' and cadence='daily' and bin_id='588'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/891569

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/891569/ft1_4FGL_J2326.2+0113_daily_bin588.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/891569/ft2_4FGL_J2326.2+0113_daily_bin588.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/891569/ft1_4FGL_J2326.2+0113_daily_bin588.fits outfile=/scratch/kocevski/891569/ft1_filteredMKT_4FGL_J2326.2+0113_daily_bin588.fits ra=351.575 dec=1.2216 rad=12.0 tmin=391737601.0 tmax=391996801.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.30
user 3.08
sys 0.19

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/891569/ft2_4FGL_J2326.2+0113_daily_bin588.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/891569/ft1_filteredMKT_4FGL_J2326.2+0113_daily_bin588.fits evtable="EVENTS" outfile="/scratch/kocevski/891569/ft1_filtered_4FGL_J2326.2+0113_daily_bin588.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.50
user 0.34
sys 0.13

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/891569/ft1_filtered_4FGL_J2326.2+0113_daily_bin588.fits" evtable="EVENTS" scfile=/scratch/kocevski/891569/ft2_4FGL_J2326.2+0113_daily_bin588.fits sctable="SC_DATA" outfile=/scratch/kocevski/891569/ltcube_391737601_391996801_4FGL_J2326.2+0113_daily_bin588.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/891569/ft2_4FGL_J2326.2+0113_daily_bin588.fits
.....................!
real 14.77
user 14.41
sys 0.32

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/891569/ft1_filtered_4FGL_J2326.2+0113_daily_bin588.fits evtable="EVENTS" scfile=/scratch/kocevski/891569/ft2_4FGL_J2326.2+0113_daily_bin588.fits sctable="SC_DATA" expcube=/scratch/kocevski/891569/ltcube_391737601_391996801_4FGL_J2326.2+0113_daily_bin588.fits outfile=/scratch/kocevski/891569/expmap_391737601_391996801_4FGL_J2326.2+0113_daily_bin588.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/891569/ltcube_391737601_391996801_4FGL_J2326.2+0113_daily_bin588.fits
.....................!
real 191.74
user 187.40
sys 4.02

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/891569/ft1_filtered_4FGL_J2326.2+0113_daily_bin588.fits scfile=/scratch/kocevski/891569/ft2_4FGL_J2326.2+0113_daily_bin588.fits outfile=/scratch/kocevski/891569/cmap_391737601_391996801_4FGL_J2326.2+0113_daily_bin588.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.38
sys 0.13

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/891569/ft1_filtered_4FGL_J2326.2+0113_daily_bin588.fits scfile=/scratch/kocevski/891569/ft2_4FGL_J2326.2+0113_daily_bin588.fits outfile=/scratch/kocevski/891569/cmap_HighResolution_391737601_391996801_4FGL_J2326.2+0113_daily_bin588.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.40
sys 0.13

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10016E-03   1.0000         .10000E-03   10000.    
     2 'norm      '    8.1793       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10012E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    16.588       1.0000         .10000E-03   10000.    
     6 'Prefactor '    23.044       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10011E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    3.9972       1.0000         .10000E-03   10000.    
     9 'norm      '    .11429E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    29.724       1.0000         .10000E-03   10000.    
    11 'Prefactor '    36.224       1.0000         .10000E-03   10000.    
    12 'norm      '    .79178       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10086E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10458E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    31.970       1.0000         .10000E-03   10000.    
    17 'norm      '    42.816       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10055E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    24.693       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10845E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    7.9673       1.0000         .10000E-03   10000.    
    23 'Normalizat'    1.3344       1.0000         .10000E-01   10.000    
    24 'Prefactor '    .60940       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=   6797.345     FROM MIGRAD    STATUS=CONVERGED    542 CALLS     2685 TOTAL
                     EDM=   .74E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  3.5%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    9.2494        .21330E-06** at limit **
   2  norm          8.1806        8.6634        .57289E-07    .20189E-04
   3  Prefactor     .10000E-03    15.480        .12224E-07** at limit **
   4  Prefactor     .10000E-03    7.3333       -.30998E-06** at limit **
   5  Prefactor     16.592        21.907        .14815E-06   -.49117E-05
   6  Prefactor     23.051        27.213       -.13996E-06   -.29754E-04
   7  Prefactor     .10000E-03    2.5979       -.10987E-06** at limit **
   8  norm          3.9976        1.1002        .17699E-07   -.59838E-03
   9  norm          .10000E-03    19.707       -.74077E-05** at limit **
  10  Prefactor     29.686        16.299       -.16435E-05   -.81247E-04
  11  Prefactor     36.215        43.012        .54048E-06   -.87913E-05
  12  norm          .82066        8.8807        .43350E-05    .71825E-04
  13  Prefactor     .10000E-03    4.7393        .22682E-06** at limit **
  14  Prefactor     .10000E-03    53.378        .26469E-06** at limit **
  15  Prefactor     .10000E-03    7.1079        .44587E-07** at limit **
  16  Prefactor     31.937        33.723       -.60504E-06    .40355E-04
  17  norm          42.818        21.088        .32511E-06   -.18734E-03
  18  Prefactor     .10000E-03    12.581       -.21037E-06** at limit **
  19  Prefactor     .10000E-03    2.5792       -.11717E-06** at limit **
  20  Prefactor     24.704        37.671       -.41479E-06    .63011E-05
  21  Prefactor     .10000E-03    30.551       -.17705E-06** at limit **
  22  Prefactor     7.9725        13.572        .17202E-06    .27864E-04
  23  Normalizat    1.3340        .18963       -.76113E-06   -.78112E-04
  24  Prefactor     .60966        .12312       -.60464E-07    .12626E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  norm       = 8.1806
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 16.5915
  Prefactor  = 23.0508
  Prefactor  = 0.0001
  norm       = 3.99757
  norm       = 0.0001
  Prefactor  = 29.6863
  Prefactor  = 36.2154
  norm       = 0.820665
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 31.937
  norm       = 42.818
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 24.7043
  Prefactor  = 0.0001
  Prefactor  = 7.97245
  Normalizat = 1.33396
  Prefactor  = 0.609664
 **********
 **   18 **HESSE 
 **********

 FCN=   6797.345     FROM HESSE     STATUS=OK           401 CALLS     3086 TOTAL
                     EDM=   .37E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    9.2999        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          8.1806        8.6643        .14018E-03   -1.5136    
   3  Prefactor     .10000E-03    15.506        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    7.3446        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     16.592        21.913        .98339E-04   -1.4893    
   6  Prefactor     23.051        27.151        .83441E-04   -1.4747    
   7  Prefactor     .10000E-03    2.5993        .12965E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          3.9976        1.0970        .43364E-04   -1.5308    
   9  norm          .10000E-03    21.181        .28706E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     29.686        17.183        .73488E-04   -1.4618    
  11  Prefactor     36.215        42.989        .66588E-04   -1.4504    
  12  norm          .82066        30.608        .33585E-02   -1.5527    
  13  Prefactor     .10000E-03    4.7847        .17468E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    53.379        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    7.1551        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     31.937        33.854        .70866E-04   -1.4577    
  17  norm          42.818        21.006        .61266E-04   -1.4398    
  18  Prefactor     .10000E-03    12.581        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    2.6405        .25795E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     24.704        37.743        .80612E-04   -1.4713    
  21  Prefactor     .10000E-03    30.879        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     7.9725        13.591        .14205E-03   -1.5143    
  23  Normalizat    1.3340        .22038        .25161E-03   -.82558    
  24  Prefactor     .60966        .14159        .23818E-03   -1.0718    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.73351e-10
Minuit parameter uncertainties:
  1  1.38019e-05
  2  8.66558
  3  3.20037e-05
  4  2.54736e-05
  5  21.924
  6  27.1657
  7  1.26134e-05
  8  1.09702
  9  0.000203692
  10  17.1861
  11  43.0261
  12  10.0287
  13  2.26181e-05
  14  1.62751e-05
  15  7.122e-06
  16  33.8739
  17  21.0094
  18  4.59692e-06
  19  1.00973e-05
  20  37.7797
  21  5.55507e-05
  22  13.5962
  23  0.22054
  24  0.141672
Done.

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

Extracting fit parameters...

4FGL J2326.2+0113
   Spectrum: PowerLaw
406    Prefactor:  3.622e+01  4.303e+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:  6.097e-01  1.417e-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.334e+00  2.205e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 1.10
Ra Dec: 351.575 1.222
Photon Index (Fixed Index): 2.12 +/- 0.00
Photon Flux (Fixed Index): 2.20e-08 +/- 2.61e-08
Energy Flux (Fixed Index): 1.16e-05 +/- 1.38e-05

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

Saving results to:
/scratch/kocevski/891569/likelihoodResults_391737601_391996801_4FGL_J2326.2+0113_daily_bin588.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) = 6797.34491445
delta logL = 2.09158370126e-05

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6797.34490313
delta logL = 3.22339474224e-05

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    35.975       1.0000         .10000E-03   10000.    
     2 'Index     '    2.1259       1.0000          .0000       10.000    
     3 'Normalizat'    1.3339       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .60962       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=   6797.345     FROM MIGRAD    STATUS=CONVERGED     93 CALLS      268 TOTAL
                     EDM=   .18E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     35.965        56.163        .66816E-04    .13527E-03
   2  Index         2.1256        .80136        .88658E-02    .64300E-04
   3  Normalizat    1.3338        .21030        .25162E-03    .31022E-03
   4  Prefactor     .60972        .14026        .23817E-03    .25290E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 35.9648
  Index      = 2.1256
  Normalizat = 1.33382
  Prefactor  = 0.609716
 **********
 **   18 **HESSE 
 **********

 FCN=   6797.345     FROM HESSE     STATUS=OK            25 CALLS      293 TOTAL
                     EDM=   .17E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     35.965        52.725        .13363E-04   -1.4508    
   2  Index         2.1256        .75270        .35463E-03   -.61246    
   3  Normalizat    1.3338        .21029        .50325E-04   -.82563    
   4  Prefactor     .60972        .14030        .95267E-05   -1.0718    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.66401e-10
Minuit parameter uncertainties:
  1  52.7931
  2  0.75701
  3  0.210426
  4  0.14038
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/891569': 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) = 6797.34490256
delta logL = 3.28028399963e-05

Extracting fit parameters...

4FGL J2326.2+0113
   Spectrum: PowerLaw
406    Prefactor:  3.596e+01  5.279e+01  1.000e-04  1.000e+04 ( 1.000e-14)
407        Index:  2.126e+00  7.570e-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:  6.097e-01  1.404e-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.334e+00  2.104e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 1.10
Ra Dec: 351.575 1.222
Photon Index (Free Index): 2.13 +/- 0.76
Photon Flux (Free Index): 2.22e-08 +/- 3.14e-08
Energy Flux (Free Index): 1.15e-05 +/- 1.63e-05

Creating a high resolution counts map...
INFO: Auto-setting vmin to -2.500e-04 [aplpy.core]
INFO: Auto-setting vmax to  2.775e-03 [aplpy.core]
Saving /scratch/kocevski/891569/cmap_HighResolution_391737601_391996801_4FGL_J2326.2+0113_daily_bin588.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='6.64e-03', comment='SUCCESS', photon_flux='2.20e-08', energy_flux2='1.15e-05', photon_flux_error='2.61e-08', dlogl='3.28e-05', energy_flux='1.16e-05', photon_flux2='2.22e-08', job_status='DONE', time_completed='2021-09-29 19:04:18.012174', photon_index_error2='0.76', photon_index2='2.13', ts='1.10', fit_tolerance='1e-08', GAL='0.61', photon_index_error='0.00', photon_flux_upper_limit='8.76e-08', energy_flux_error2='1.63e-05', EG='1.33', time_epoch_completed='1632967458.01', return_code='0', job_id='891569', GAL2='0.61', EG2='1.33', return_code2='0', energy_flux_error='1.38e-05', photon_flux_error2='3.14e-08', ts2='1.10', photon_index='2.12' WHERE bin_id='588' AND source_name='4FGL J2326.2+0113' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep 29 19:04:18 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0041>
Subject: Job 891569: <4FGL_J2326.2+0113_daily_bin588> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2326.2+0113_daily_bin588 351.575 1.2216 391737601 391996801 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 :                                   689.11 sec.
    Max Memory :                                 1214 MB
    Average Memory :                             332.68 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   812 sec.
    Turnaround time :                            814 sec.

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

