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


Performing analysis on: 4FGL_J2326.9-4130_daily_bin1457
RA = 351.737, Dec = -41.5089
tmin = 616982401, tmax = 617241601
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='902828', job_status='RUN', time_executed='2021-09-29 19:27:17.269808', time_epoch_executed='1632968837.27' WHERE source_name='4FGL J2326.9-4130' and cadence='daily' and bin_id='1457'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/902828

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/902828/ft1_4FGL_J2326.9-4130_daily_bin1457.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/902828/ft2_4FGL_J2326.9-4130_daily_bin1457.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/902828/ft1_4FGL_J2326.9-4130_daily_bin1457.fits outfile=/scratch/kocevski/902828/ft1_filteredMKT_4FGL_J2326.9-4130_daily_bin1457.fits ra=351.737 dec=-41.5089 rad=12.0 tmin=616982401.0 tmax=617241601.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.01
user 2.81
sys 0.19

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/902828/ft1_filtered_4FGL_J2326.9-4130_daily_bin1457.fits" evtable="EVENTS" scfile=/scratch/kocevski/902828/ft2_4FGL_J2326.9-4130_daily_bin1457.fits sctable="SC_DATA" outfile=/scratch/kocevski/902828/ltcube_616982401_617241601_4FGL_J2326.9-4130_daily_bin1457.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/902828/ft2_4FGL_J2326.9-4130_daily_bin1457.fits
.....................!
real 12.63
user 12.22
sys 0.35

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/902828/ft1_filtered_4FGL_J2326.9-4130_daily_bin1457.fits evtable="EVENTS" scfile=/scratch/kocevski/902828/ft2_4FGL_J2326.9-4130_daily_bin1457.fits sctable="SC_DATA" expcube=/scratch/kocevski/902828/ltcube_616982401_617241601_4FGL_J2326.9-4130_daily_bin1457.fits outfile=/scratch/kocevski/902828/expmap_616982401_617241601_4FGL_J2326.9-4130_daily_bin1457.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/902828/ltcube_616982401_617241601_4FGL_J2326.9-4130_daily_bin1457.fits
.....................!
real 190.43
user 185.27
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/902828/ft1_filtered_4FGL_J2326.9-4130_daily_bin1457.fits scfile=/scratch/kocevski/902828/ft2_4FGL_J2326.9-4130_daily_bin1457.fits outfile=/scratch/kocevski/902828/cmap_616982401_617241601_4FGL_J2326.9-4130_daily_bin1457.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.55
user 0.36
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/902828/ft1_filtered_4FGL_J2326.9-4130_daily_bin1457.fits scfile=/scratch/kocevski/902828/ft2_4FGL_J2326.9-4130_daily_bin1457.fits outfile=/scratch/kocevski/902828/cmap_HighResolution_616982401_617241601_4FGL_J2326.9-4130_daily_bin1457.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.54
user 0.38
sys 0.15

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/902828/ft1_filtered_4FGL_J2326.9-4130_daily_bin1457.fits evtable="EVENTS" scfile=/scratch/kocevski/902828/ft2_4FGL_J2326.9-4130_daily_bin1457.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/902828/Model_4FGL_J2326.9-4130_daily_bin1457.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/902828/ft1_filtered_4FGL_J2326.9-4130_daily_bin1457.fits.....................!
real 30.06
user 28.71
sys 1.21

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/902828/ft1_filtered_4FGL_J2326.9-4130_daily_bin1457.fits', '/scratch/kocevski/902828/ft2_4FGL_J2326.9-4130_daily_bin1457.fits', expMap='/scratch/kocevski/902828/expmap_616982401_617241601_4FGL_J2326.9-4130_daily_bin1457.fits', expCube='/scratch/kocevski/902828/ltcube_616982401_617241601_4FGL_J2326.9-4130_daily_bin1457.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/902828/Model_4FGL_J2326.9-4130_daily_bin1457.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/902828/ft1_filtered_4FGL_J2326.9-4130_daily_bin1457.fits
Spacecraft file(s): /scratch/kocevski/902828/ft2_4FGL_J2326.9-4130_daily_bin1457.fits
Exposure map: /scratch/kocevski/902828/expmap_616982401_617241601_4FGL_J2326.9-4130_daily_bin1457.fits
Exposure cube: /scratch/kocevski/902828/ltcube_616982401_617241601_4FGL_J2326.9-4130_daily_bin1457.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/902828/Model_4FGL_J2326.9-4130_daily_bin1457.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) = 3196.72181956

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    11.990       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10222E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .13390E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10025E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    13.485       1.0000         .10000E-03   10000.    
     6 'Prefactor '    4.7536       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .11970E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10013E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    37.919       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .89491       1.0000         .10000E-03   10000.    
    11 'Prefactor '    32.012       1.0000         .10000E-03   10000.    
    12 'Prefactor '    18.928       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .52001E-01   1.0000         .10000E-03   10000.    
    15 'Prefactor '    8.5217       1.0000         .10000E-03   10000.    
    16 'norm      '    36.986       1.0000         .10000E-03   10000.    
    17 'norm      '    .10030E-03   1.0000         .10000E-03   10000.    
    18 'norm      '    4.3891       1.0000         .10000E-03   10000.    
    19 'norm      '    .10014E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    14.703       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10032E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    .17787E-03   1.0000         .10000E-03   10000.    
    23 'norm      '    .10007E-03   1.0000         .10000E-03   10000.    
    24 'Prefactor '    .10956E-03   1.0000         .10000E-03   10000.    
    25 'norm      '    .10003E-03   1.0000         .10000E-03   10000.    
    26 'norm      '    .10005E-03   1.0000         .10000E-03   10000.    
    27 'Prefactor '    .10008E-03   1.0000         .10000E-03   10000.    
    28 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    29 'Prefactor '    25.050       1.0000         .10000E-03   10000.    
    30 'Prefactor '    22.829       1.0000         .10000E-03   10000.    
    31 'Prefactor '    64.578       1.0000         .10000E-03   10000.    
    32 'Normalizat'    .88808       1.0000         .10000E-01   10.000    
    33 'Prefactor '    .77647       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=   3196.708     FROM MIGRAD    STATUS=CONVERGED    931 CALLS     4617 TOTAL
                     EDM=   .17E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .6%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     11.891        67.887        .13920E-03    .10262E-04
   2  Prefactor     .10000E-03    21.773       -.21162E-05** at limit **
   3  Prefactor     .10000E-03    31.684        .29098E-06** at limit **
   4  Prefactor     .10000E-03    8.2829        .74278E-08** at limit **
   5  Prefactor     13.484        7.2411       -.80686E-06   -.40267E-04
   6  Prefactor     4.7578        11.062       -.67236E-06   -.23608E-03
   7  Prefactor     .10000E-03    46.054       -.18334E-05** at limit **
   8  Prefactor     .10000E-03    15.720        .79518E-05** at limit **
   9  Prefactor     37.939        57.687       -.19390E-04    .13542E-04
  10  Prefactor     .97655        71.528        .82728E-05    .16281E-03
  11  Prefactor     31.893        41.049       -.12188E-04    .22993E-03
  12  Prefactor     18.939        15.349       -.42971E-05   -.65226E-04
  13  Prefactor     .10000E-03    20.751        .12099E-05** at limit **
  14  Prefactor     .10231E-03    2217.2       -.45472E-03** at limit **
  15  Prefactor     8.5208        17.282       -.18238E-04   -.58944E-04
  16  norm          36.985        19.978       -.68723E-06    .66889E-05
  17  norm          .10000E-03    3.5928        .38466E-06** at limit **
  18  norm          4.3885        4.9622        .69272E-06    .11725E-02
  19  norm          .10000E-03    6.2895        .54526E-07** at limit **
  20  Prefactor     14.705        8.6193        .12624E-05    .39819E-04
  21  Prefactor     .10000E-03    18.808        .13710E-05** at limit **
  22  Prefactor     .10000E-03    130.49       -.38426E-06** at limit **
  23  norm          .10000E-03    2.7756       -.54785E-07** at limit **
  24  Prefactor     .10000E-03    12.941       -.18385E-06** at limit **
  25  norm          .10000E-03    .48421        .18451E-06** at limit **
  26  norm          .10000E-03    3.5874       -.12284E-06** at limit **
  27  Prefactor     .10000E-03    1.3305        .73590E-07** at limit **
  28  Prefactor     .10000E-03    16.007       -.83680E-05** at limit **
  29  Prefactor     25.062        12.305       -.22275E-05   -.17376E-04
  30  Prefactor     22.828        7.8411        .63336E-06    .60696E-04
  31  Prefactor     64.452        98.840       -.54563E-05    .32339E-06
  32  Normalizat    .88755        .24977        .11823E-05    .19672E-03
  33  Prefactor     .77713        .25718       -.38144E-05    .32088E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 11.8907
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 13.4838
  Prefactor  = 4.7578
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 37.9392
  Prefactor  = 0.976546
  Prefactor  = 31.8934
  Prefactor  = 18.9387
  Prefactor  = 0.0001
  Prefactor  = 0.000102315
  Prefactor  = 8.52078
  norm       = 36.9851
  norm       = 0.0001
  norm       = 4.38854
  norm       = 0.0001
  Prefactor  = 14.7046
  Prefactor  = 0.0001
  Prefactor  = 0.000100001
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 25.062
  Prefactor  = 22.8277
  Prefactor  = 64.4525
  Normalizat = 0.887551
  Prefactor  = 0.777132
 **********
 **   18 **HESSE 
 **********

 FCN=   3196.708     FROM HESSE     STATUS=OK           685 CALLS     5302 TOTAL
                     EDM=   .13E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     11.891        67.864        .11569E-03   -1.5018    
   2  Prefactor     .10000E-03    21.821        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    31.727        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    8.2850        .15893E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     13.484        7.2450        .10795E-03   -1.4973    
   6  Prefactor     4.7578        11.064        .18454E-03   -1.5272    
   7  Prefactor     .10000E-03    46.059        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    15.825        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     37.939        58.713        .65087E-04   -1.4475    
  10  Prefactor     .97655        791.97        .87319E-02   -1.5510    
  11  Prefactor     31.893        41.089        .70820E-04   -1.4578    
  12  Prefactor     18.939        15.380        .92061E-04   -1.4837    
  13  Prefactor     .10000E-03    20.753        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10231E-03    2242.0        .37119E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     8.5208        17.301        .13732E-03   -1.5124    
  16  norm          36.985        19.978        .65900E-04   -1.4491    
  17  norm          .10000E-03    3.5946        .10463E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          4.3885        4.9655        .65318E-03   -1.5289    
  19  norm          .10000E-03    6.2995        .13847E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     14.705        8.6186        .10445E-03   -1.4941    
  21  Prefactor     .10000E-03    18.822        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     .10000E-03    130.91        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  norm          .10000E-03    2.7918        .91941E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     .10000E-03    13.007        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  norm          .10000E-03    .49002        .38359E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  norm          .10000E-03    3.6281        .10453E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  Prefactor     .10000E-03    1.3358        .63674E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  28  Prefactor     .10000E-03    16.039        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  29  Prefactor     25.062        12.357        .80037E-04   -1.4706    
  30  Prefactor     22.828        7.8950        .83834E-04   -1.4752    
  31  Prefactor     64.452        98.898        .49939E-04   -1.4101    
  32  Normalizat    .88755        .30504        .24480E-03   -.96899    
  33  Prefactor     .77713        .31098        .28284E-03   -1.0058    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.27864e-08
Minuit parameter uncertainties:
  1  56.9118
  2  5.57569e-05
  3  1.12759e-06
  4  7.68158e-06
  5  7.24552
  6  11.0688
  7  7.47275e-05
  8  0.000104797
  9  58.8026
  10  56.3816
  11  41.125
  12  15.3829
  13  2.65002e-05
  14  0.150086
  15  17.3113
  16  19.9819
  17  6.62268e-05
  18  4.96595
  19  2.40085e-05
  20  8.61931
  21  9.44816e-06
  22  0.000680652
  23  5.12288e-06
  24  1.59031e-05
  25  1.33501e-05
  26  3.09506e-05
  27  4.19064e-06
  28  1.96475e-05
  29  12.3586
  30  7.89537
  31  99.1511
  32  0.305634
  33  0.311686
Done.

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

Extracting fit parameters...

4FGL J2326.9-4130
   Spectrum: PowerLaw
435    Prefactor:  1.000e-04  9.448e-06  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:  7.771e-01  3.117e-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:  8.876e-01  3.056e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): -0.00
Ra Dec: 351.737 -41.509
Photon Flux Upper Limit: 1.05e-07 ph cm-2 s-1
Energy Flux Upper Limit: 8.34e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/902828/likelihoodResults_616982401_617241601_4FGL_J2326.9-4130_daily_bin1457.txt

Performing a free index iterative likelihood fit...

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

Done.

Freeing candidate source...
Done.

Fit tolerance = 1

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 3196.70870325
delta logL = -0.000252991061188

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 3196.70845379
delta logL = -3.52969527739e-06

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10022E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    3.9081       1.0000          .0000       10.000    
     3 'Normalizat'    .88754       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .77713       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=   3196.708     FROM MIGRAD    STATUS=CONVERGED     95 CALLS      285 TOTAL
                     EDM=   .27E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .11925E-03    5.5860        .15733E-01** at limit **
   2  Index         3.4666        8.2112        .50000        .19096E-04
   3  Normalizat    .88755        .39037E-02    .24480E-03   -.32114E-04
   4  Prefactor     .77713        .42663E-02    .28284E-03   -.46063E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000119253
  Index      = 3.46655
  Normalizat = 0.887555
  Prefactor  = 0.777125
 **********
 **   18 **HESSE 
 **********

 FCN=   3196.708     FROM HESSE     STATUS=NOT POSDEF    29 CALLS      314 TOTAL
                     EDM=   .94E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .11925E-03    223.77        .18725E-02   -1.5707    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         3.4666        6.1842        .50000       -.31171    
   3  Normalizat    .88755        .25089E-01    .97920E-05   -.96899    
   4  Prefactor     .77713        .27419E-01    .11314E-04   -1.0058    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 9.36391e-08
Minuit parameter uncertainties:
  1  0.131771
  2  1444.5
  3  0.0250898
  4  0.0274191
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/902828': No such file or directory
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 3196.7084527
delta logL = -2.44526790993e-06

Extracting fit parameters...

4FGL J2326.9-4130
   Spectrum: PowerLaw
435    Prefactor:  1.193e-04  1.318e-01  1.000e-04  1.000e+04 ( 1.000e-13)
436        Index:  3.467e+00  1.445e+03  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:  7.771e-01  2.742e-02  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:  8.876e-01  2.509e-02  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
Ra Dec: 351.737 -41.509

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/902828/cmap_HighResolution_616982401_617241601_4FGL_J2326.9-4130_daily_bin1457.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='8.34e-03', job_status='DONE', photon_flux_upper_limit='1.05e-07', time_completed='2021-09-29 19:39:22.407676', job_id='902828', GAL2='0.78', fit_tolerance='1e-08', EG2='0.89', EG='0.89', time_epoch_completed='1632969562.41', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.78', dlogl='-2.45e-06', ts2='-0.00', photon_index_error='0.00', photon_index='2.78' WHERE bin_id='1457' AND source_name='4FGL J2326.9-4130' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep 29 19:39:22 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0208>
Subject: Job 902828: <4FGL_J2326.9-4130_daily_bin1457> in cluster <slac> Done

Job <4FGL_J2326.9-4130_daily_bin1457> was submitted from host <rhel6-64p> by user <kocevski> in cluster <slac> at Wed Sep 29 19:25:47 2021
Job was executed on host(s) <bullet0208>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Sep 29 19:25:48 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:25:48 2021
Terminated at Wed Sep 29 19:39:23 2021
Results reported at Wed Sep 29 19:39:23 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2326.9-4130_daily_bin1457 351.737 -41.5089 616982401 617241601 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 :                                   629.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             275.67 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   814 sec.
    Turnaround time :                            816 sec.

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

