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


Performing analysis on: 4FGL_J2326.9-4130_daily_bin1567
RA = 351.737, Dec = -41.5089
tmin = 645494401, tmax = 645753601
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='904627', job_status='RUN', time_executed='2021-09-29 19:31:45.083618', time_epoch_executed='1632969105.08' WHERE source_name='4FGL J2326.9-4130' and cadence='daily' and bin_id='1567'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/904627

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

Retrieving the FT1 file...

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

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

Retrieving 48 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/904627/ft1_4FGL_J2326.9-4130_daily_bin1567.fits


Retrieving the FT1 file...

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

Retrieving 48 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/904627/ft2_4FGL_J2326.9-4130_daily_bin1567.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/904627/ft1_4FGL_J2326.9-4130_daily_bin1567.fits outfile=/scratch/kocevski/904627/ft1_filteredMKT_4FGL_J2326.9-4130_daily_bin1567.fits ra=351.737 dec=-41.5089 rad=12.0 tmin=645494401.0 tmax=645753601.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 2.57
user 2.35
sys 0.20

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/904627/ft2_4FGL_J2326.9-4130_daily_bin1567.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/904627/ft2_4FGL_J2326.9-4130_daily_bin1567.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/904627/ft1_filteredMKT_4FGL_J2326.9-4130_daily_bin1567.fits evtable="EVENTS" outfile="/scratch/kocevski/904627/ft1_filtered_4FGL_J2326.9-4130_daily_bin1567.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.32
sys 0.15

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/904627/ft1_filtered_4FGL_J2326.9-4130_daily_bin1567.fits" evtable="EVENTS" scfile=/scratch/kocevski/904627/ft2_4FGL_J2326.9-4130_daily_bin1567.fits sctable="SC_DATA" outfile=/scratch/kocevski/904627/ltcube_645494401_645753601_4FGL_J2326.9-4130_daily_bin1567.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/904627/ft2_4FGL_J2326.9-4130_daily_bin1567.fits
.....................!
real 13.29
user 12.96
sys 0.30

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/904627/ft1_filtered_4FGL_J2326.9-4130_daily_bin1567.fits evtable="EVENTS" scfile=/scratch/kocevski/904627/ft2_4FGL_J2326.9-4130_daily_bin1567.fits sctable="SC_DATA" expcube=/scratch/kocevski/904627/ltcube_645494401_645753601_4FGL_J2326.9-4130_daily_bin1567.fits outfile=/scratch/kocevski/904627/expmap_645494401_645753601_4FGL_J2326.9-4130_daily_bin1567.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/904627/ltcube_645494401_645753601_4FGL_J2326.9-4130_daily_bin1567.fits
.....................!
real 191.72
user 186.47
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 183 point sources and 0 extended sources

Setting source of interest to:
4FGL J2326.9-4130 @ 351.737 -41.5089

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/904627/ft1_filtered_4FGL_J2326.9-4130_daily_bin1567.fits scfile=/scratch/kocevski/904627/ft2_4FGL_J2326.9-4130_daily_bin1567.fits outfile=/scratch/kocevski/904627/cmap_645494401_645753601_4FGL_J2326.9-4130_daily_bin1567.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.737 yref=-41.5089 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.56
user 0.39
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/904627/ft1_filtered_4FGL_J2326.9-4130_daily_bin1567.fits scfile=/scratch/kocevski/904627/ft2_4FGL_J2326.9-4130_daily_bin1567.fits outfile=/scratch/kocevski/904627/cmap_HighResolution_645494401_645753601_4FGL_J2326.9-4130_daily_bin1567.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.737 yref=-41.5089 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.56
user 0.38
sys 0.16

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/904627/ft1_filtered_4FGL_J2326.9-4130_daily_bin1567.fits evtable="EVENTS" scfile=/scratch/kocevski/904627/ft2_4FGL_J2326.9-4130_daily_bin1567.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/904627/Model_4FGL_J2326.9-4130_daily_bin1567.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/904627/ft1_filtered_4FGL_J2326.9-4130_daily_bin1567.fits.....................!
real 41.12
user 39.86
sys 1.17

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/904627/ft1_filtered_4FGL_J2326.9-4130_daily_bin1567.fits', '/scratch/kocevski/904627/ft2_4FGL_J2326.9-4130_daily_bin1567.fits', expMap='/scratch/kocevski/904627/expmap_645494401_645753601_4FGL_J2326.9-4130_daily_bin1567.fits', expCube='/scratch/kocevski/904627/ltcube_645494401_645753601_4FGL_J2326.9-4130_daily_bin1567.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/904627/Model_4FGL_J2326.9-4130_daily_bin1567.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J2326.9-4130'

4FGL J2326.9-4130
   Spectrum: PowerLaw
435    Prefactor:  7.129e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-13)
436        Index:  2.777e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
437        Scale:  7.113e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/904627/ft1_filtered_4FGL_J2326.9-4130_daily_bin1567.fits
Spacecraft file(s): /scratch/kocevski/904627/ft2_4FGL_J2326.9-4130_daily_bin1567.fits
Exposure map: /scratch/kocevski/904627/expmap_645494401_645753601_4FGL_J2326.9-4130_daily_bin1567.fits
Exposure cube: /scratch/kocevski/904627/ltcube_645494401_645753601_4FGL_J2326.9-4130_daily_bin1567.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/904627/Model_4FGL_J2326.9-4130_daily_bin1567.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) = 5192.09513903

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    23.277       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    11.882       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    142.82       1.0000         .10000E-03   10000.    
     8 'Prefactor '    13.557       1.0000         .10000E-03   10000.    
     9 'Prefactor '    8.6565       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    44.022       1.0000         .10000E-03   10000.    
    12 'Prefactor '    5.8301       1.0000         .10000E-03   10000.    
    13 'Prefactor '    22.912       1.0000         .10000E-03   10000.    
    14 'Prefactor '    38.411       1.0000         .10000E-03   10000.    
    15 'Prefactor '    19.853       1.0000         .10000E-03   10000.    
    16 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    18 'norm      '    .10379E-03   1.0000         .10000E-03   10000.    
    19 'norm      '    7.3456       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .16429E-02   1.0000         .10000E-03   10000.    
    21 'Prefactor '    64.693       1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    23 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
    24 'Prefactor '    33.480       1.0000         .10000E-03   10000.    
    25 'norm      '    2.4429       1.0000         .10000E-03   10000.    
    26 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    27 'Prefactor '    3.2393       1.0000         .10000E-03   10000.    
    28 'Prefactor '    5.8806       1.0000         .10000E-03   10000.    
    29 'Prefactor '    .10029E-03   1.0000         .10000E-03   10000.    
    30 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    31 'Prefactor '    37.644       1.0000         .10000E-03   10000.    
    32 'Normalizat'    1.1426       1.0000         .10000E-01   10.000    
    33 'Prefactor '    .92518       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5820E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   5192.063     FROM MIGRAD    STATUS=CONVERGED    868 CALLS     4592 TOTAL
                     EDM=   .11E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.9%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    13.408       -.31209E-05** at limit **
   2  Prefactor     23.278        21.317        .62366E-06   -.34451E-04
   3  Prefactor     .10000E-03    38.482        .86171E-05** at limit **
   4  Prefactor     .10000E-03    10.584        .25111E-05** at limit **
   5  Prefactor     11.883        7.6068        .25550E-06   -.69735E-04
   6  Prefactor     .10000E-03    2.7291        .31261E-07** at limit **
   7  Prefactor     142.81        78.504       -.47768E-06   -.12736E-04
   8  Prefactor     13.558        9.9743        .92481E-07   -.29380E-04
   9  Prefactor     8.6550        16.141        .19371E-06   -.41072E-05
  10  Prefactor     .10000E-03    12.240       -.13116E-05** at limit **
  11  Prefactor     44.023        20.470        .51041E-06    .20549E-05
  12  Prefactor     5.8309        11.938        .88804E-06   -.24529E-04
  13  Prefactor     22.914        58.868        .14425E-05   -.30919E-05
  14  Prefactor     38.406        57.942       -.22747E-05   -.17148E-04
  15  Prefactor     19.866        21.867       -.54499E-06   -.25676E-04
  16  norm          .10000E-03    5.3808        .54655E-06** at limit **
  17  norm          .10000E-03    4.1006       -.20978E-06** at limit **
  18  norm          .10004E-03    4.5111        .10553E-05** at limit **
  19  norm          7.3462        9.3753        .16147E-05   -.43970E-03
  20  Prefactor     .10000E-03    10.894        .44840E-05** at limit **
  21  Prefactor     64.712        40.870        .57334E-05    .41351E-04
  22  Prefactor     .10000E-03    42.262       -.24015E-05** at limit **
  23  norm          .10000E-03    6.9285       -.84129E-06** at limit **
  24  Prefactor     33.531        19.280       -.18553E-05    .14125E-04
  25  norm          2.4437        1.5794       -.83141E-06   -.45286E-03
  26  norm          .10000E-03    2.0915        .89591E-07** at limit **
  27  Prefactor     3.2393        2.9455        .16943E-06   -.30901E-04
  28  Prefactor     5.8800        18.410       -.54589E-06   -.26475E-04
  29  Prefactor     .10000E-03    3.3311       -.26011E-07** at limit **
  30  Prefactor     .10000E-03    1.5086        .10217E-06** at limit **
  31  Prefactor     37.626        69.898       -.78215E-05   -.40363E-04
  32  Normalizat    1.1423        .22034       -.31888E-05   -.29488E-04
  33  Prefactor     .92558        .22895        .60244E-06   -.20337E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 23.2779
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 11.8828
  Prefactor  = 0.0001
  Prefactor  = 142.814
  Prefactor  = 13.5581
  Prefactor  = 8.65503
  Prefactor  = 0.0001
  Prefactor  = 44.0228
  Prefactor  = 5.83086
  Prefactor  = 22.9139
  Prefactor  = 38.4059
  Prefactor  = 19.8664
  norm       = 0.0001
  norm       = 0.0001
  norm       = 0.000100037
  norm       = 7.34616
  Prefactor  = 0.000100002
  Prefactor  = 64.712
  Prefactor  = 0.0001
  norm       = 0.000100002
  Prefactor  = 33.5305
  norm       = 2.4437
  norm       = 0.0001
  Prefactor  = 3.23927
  Prefactor  = 5.88
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 37.626
  Normalizat = 1.14228
  Prefactor  = 0.925578
 **********
 **   18 **HESSE 
 **********

 FCN=   5192.063     FROM HESSE     STATUS=OK           693 CALLS     5285 TOTAL
                     EDM=   .42E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    13.406        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     23.278        21.317        .83024E-04   -1.4743    
   3  Prefactor     .10000E-03    38.642        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    10.593        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     11.883        7.6171        .11622E-03   -1.5018    
   6  Prefactor     .10000E-03    2.7601        .11618E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     142.81        78.406        .33713E-04   -1.3312    
   8  Prefactor     13.558        9.9786        .10878E-03   -1.4971    
   9  Prefactor     8.6550        16.140        .13624E-03   -1.5119    
  10  Prefactor     .10000E-03    12.245        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     44.023        20.480        .60425E-04   -1.4380    
  12  Prefactor     5.8309        11.931        .16633E-03   -1.5225    
  13  Prefactor     22.914        58.843        .83682E-04   -1.4750    
  14  Prefactor     38.406        57.965        .64670E-04   -1.4468    
  15  Prefactor     19.866        21.879        .89890E-04   -1.4816    
  16  norm          .10000E-03    5.3827        .16324E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          .10000E-03    4.1223        .14240E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          .10004E-03    10.936        .29153E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  norm          7.3462        9.3723        .73993E-03   -1.5166    
  20  Prefactor     .10000E-03    57.220        .39816E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     64.712        40.754        .49895E-04   -1.4097    
  22  Prefactor     .10000E-03    42.354        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  norm          .10000E-03    7.2155        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     33.531        19.504        .69254E-04   -1.4549    
  25  norm          2.4437        1.5717        .65862E-04   -1.5395    
  26  norm          .10000E-03    2.1340        .10171E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  Prefactor     3.2393        2.9376        .11249E-03   -1.5348    
  28  Prefactor     5.8800        18.370        .16560E-03   -1.5223    
  29  Prefactor     .10000E-03    3.3542        .12831E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  30  Prefactor     .10000E-03    1.5187        .86397E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  31  Prefactor     37.626        70.933        .65324E-04   -1.4480    
  32  Normalizat    1.1423        .27235        .24761E-03   -.88406    
  33  Prefactor     .92558        .28071        .29899E-03   -.95253    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.24734e-09
Minuit parameter uncertainties:
  1  3.94616e-05
  2  21.3236
  3  0.000257228
  4  3.71479e-05
  5  7.61774
  6  7.76965e-06
  7  78.4631
  8  9.97978
  9  16.1477
  10  5.03229e-06
  11  20.4837
  12  11.9355
  13  58.9927
  14  58.0499
  15  21.8881
  16  3.96045e-06
  17  1.91303e-05
  18  0.00127048
  19  9.37415
  20  0.000688839
  21  40.7718
  22  1.3445e-05
  23  0.000214544
  24  19.508
  25  1.57168
  26  1.21193e-05
  27  2.93772
  28  18.3881
  29  4.55954e-05
  30  2.80136e-06
  31  71.0928
  32  0.272685
  33  0.281155
Done.

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

Extracting fit parameters...

4FGL J2326.9-4130
   Spectrum: PowerLaw
435    Prefactor:  6.471e+01  4.077e+01  1.000e-04  1.000e+04 ( 1.000e-13)
436        Index:  2.777e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
437        Scale:  7.113e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
579    Prefactor:  9.256e-01  2.812e-01  0.000e+00  1.000e+01 ( 1.000e+00)
580        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
581        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
578   Normalization:  1.142e+00  2.727e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 4.97
Ra Dec: 351.737 -41.509
Photon Index (Fixed Index): 2.78 +/- 0.00
Photon Flux (Fixed Index): 8.47e-08 +/- 5.33e-08
Energy Flux (Fixed Index): 1.93e-05 +/- 1.21e-05

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) = 5191.69012432
delta logL = 0.372801676719

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5191.68969526
delta logL = 0.37323073781

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    92.575       1.0000         .10000E-03   10000.    
     2 'Index     '    2.2121       1.0000          .0000       10.000    
     3 'Normalizat'    1.1879       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .88695       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5820E+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=   5191.690     FROM MIGRAD    STATUS=CONVERGED     96 CALLS      311 TOTAL
                     EDM=   .15E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     92.637        62.053        .20884E-03    .32118E-05
   2  Index         2.2129        .60424        .82530E-02    .84168E-04
   3  Normalizat    1.1878        .25545        .24347E-03    .14475E-05
   4  Prefactor     .88697        .27730        .30455E-03    .29864E-06
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 92.6372
  Index      = 2.21286
  Normalizat = 1.18785
  Prefactor  = 0.886973
 **********
 **   18 **HESSE 
 **********

 FCN=   5191.690     FROM HESSE     STATUS=OK            25 CALLS      336 TOTAL
                     EDM=   .75E-13    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     92.637        61.753        .83535E-05   -1.3780    
   2  Index         2.2129        .60096        .16506E-02   -.59129    
   3  Normalizat    1.1878        .25565        .97389E-05   -.86979    
   4  Prefactor     .88697        .27753        .12182E-04   -.96598    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 7.52308e-14
Minuit parameter uncertainties:
  1  61.7963
  2  0.603078
  3  0.255917
  4  0.277974
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/904627': 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) = 5191.68969377
delta logL = 0.37323222855

Extracting fit parameters...

4FGL J2326.9-4130
   Spectrum: PowerLaw
435    Prefactor:  9.264e+01  6.180e+01  1.000e-04  1.000e+04 ( 1.000e-13)
436        Index:  2.213e+00  6.031e-01  0.000e+00  1.000e+01 (-1.000e+00)
437        Scale:  7.113e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
579    Prefactor:  8.870e-01  2.780e-01  0.000e+00  1.000e+01 ( 1.000e+00)
580        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
581        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
578   Normalization:  1.188e+00  2.559e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 5.68
Ra Dec: 351.737 -41.509
Photon Index (Free Index): 2.21 +/- 0.60
Photon Flux (Free Index): 5.87e-08 +/- 5.21e-08
Energy Flux (Free Index): 2.57e-05 +/- 2.13e-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/904627/cmap_HighResolution_645494401_645753601_4FGL_J2326.9-4130_daily_bin1567.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='8.47e-08', energy_flux2='2.57e-05', photon_flux_error='5.33e-08', dlogl='3.73e-01', energy_flux='1.93e-05', photon_flux2='5.87e-08', job_status='DONE', time_completed='2021-09-29 19:44:13.761064', photon_index_error2='0.60', photon_index2='2.21', ts='4.97', fit_tolerance='1e-08', GAL='0.93', photon_index_error='0.00', energy_flux_error2='2.13e-05', EG='1.14', time_epoch_completed='1632969853.76', return_code='0', job_id='904627', GAL2='0.89', EG2='1.19', return_code2='0', energy_flux_error='1.21e-05', photon_flux_error2='5.21e-08', ts2='5.68', photon_index='2.78' WHERE bin_id='1567' AND source_name='4FGL J2326.9-4130' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep 29 19:44:13 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0049>
Subject: Job 904627: <4FGL_J2326.9-4130_daily_bin1567> in cluster <slac> Done

Job <4FGL_J2326.9-4130_daily_bin1567> was submitted from host <rhel6-64d> by user <kocevski> in cluster <slac> at Wed Sep 29 19:30:25 2021
Job was executed on host(s) <bullet0049>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Sep 29 19:30:26 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Wed Sep 29 19:30:26 2021
Terminated at Wed Sep 29 19:44:14 2021
Results reported at Wed Sep 29 19:44:14 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2326.9-4130_daily_bin1567 351.737 -41.5089 645494401 645753601 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J2326.9-4130 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   744.44 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             283.04 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   828 sec.
    Turnaround time :                            829 sec.

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

