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


Performing analysis on: 4FGL_J2326.9-4130_daily_bin1536
RA = 351.737, Dec = -41.5089
tmin = 637459201, tmax = 637718401
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='904576', job_status='RUN', time_executed='2021-09-29 19:31:27.762586', time_epoch_executed='1632969087.76' WHERE source_name='4FGL J2326.9-4130' and cadence='daily' and bin_id='1536'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/904576

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/904576/ft1_4FGL_J2326.9-4130_daily_bin1536.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/904576/ft2_4FGL_J2326.9-4130_daily_bin1536.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/904576/ft1_4FGL_J2326.9-4130_daily_bin1536.fits outfile=/scratch/kocevski/904576/ft1_filteredMKT_4FGL_J2326.9-4130_daily_bin1536.fits ra=351.737 dec=-41.5089 rad=12.0 tmin=637459201.0 tmax=637718401.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 5.52
user 5.24
sys 0.25

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/904576/ft1_filtered_4FGL_J2326.9-4130_daily_bin1536.fits" evtable="EVENTS" scfile=/scratch/kocevski/904576/ft2_4FGL_J2326.9-4130_daily_bin1536.fits sctable="SC_DATA" outfile=/scratch/kocevski/904576/ltcube_637459201_637718401_4FGL_J2326.9-4130_daily_bin1536.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/904576/ft2_4FGL_J2326.9-4130_daily_bin1536.fits
.....................!
real 13.61
user 13.23
sys 0.33

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/904576/ft1_filtered_4FGL_J2326.9-4130_daily_bin1536.fits evtable="EVENTS" scfile=/scratch/kocevski/904576/ft2_4FGL_J2326.9-4130_daily_bin1536.fits sctable="SC_DATA" expcube=/scratch/kocevski/904576/ltcube_637459201_637718401_4FGL_J2326.9-4130_daily_bin1536.fits outfile=/scratch/kocevski/904576/expmap_637459201_637718401_4FGL_J2326.9-4130_daily_bin1536.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/904576/ltcube_637459201_637718401_4FGL_J2326.9-4130_daily_bin1536.fits
.....................!
real 190.62
user 185.79
sys 4.21

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/904576/ft1_filtered_4FGL_J2326.9-4130_daily_bin1536.fits scfile=/scratch/kocevski/904576/ft2_4FGL_J2326.9-4130_daily_bin1536.fits outfile=/scratch/kocevski/904576/cmap_637459201_637718401_4FGL_J2326.9-4130_daily_bin1536.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.51
user 0.37
sys 0.12

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/904576/ft1_filtered_4FGL_J2326.9-4130_daily_bin1536.fits scfile=/scratch/kocevski/904576/ft2_4FGL_J2326.9-4130_daily_bin1536.fits outfile=/scratch/kocevski/904576/cmap_HighResolution_637459201_637718401_4FGL_J2326.9-4130_daily_bin1536.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.37
sys 0.17

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/904576/ft1_filtered_4FGL_J2326.9-4130_daily_bin1536.fits evtable="EVENTS" scfile=/scratch/kocevski/904576/ft2_4FGL_J2326.9-4130_daily_bin1536.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/904576/Model_4FGL_J2326.9-4130_daily_bin1536.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/904576/ft1_filtered_4FGL_J2326.9-4130_daily_bin1536.fits.....................!
real 35.52
user 34.16
sys 1.14

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    48.030       1.0000         .10000E-03   10000.    
     2 'Prefactor '    36.465       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    31.080       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .75801E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10049E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10116E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    3.5197       1.0000         .10000E-03   10000.    
     9 'Prefactor '    21.526       1.0000         .10000E-03   10000.    
    10 'Prefactor '    44.471       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10097E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10081E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    23.575       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10335E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .61001       1.0000         .10000E-03   10000.    
    16 'norm      '    .10008E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    18 'norm      '    .10011E-03   1.0000         .10000E-03   10000.    
    19 'norm      '    1.5867       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    71.742       1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10293E-03   1.0000         .10000E-03   10000.    
    23 'norm      '    .86112E-03   1.0000         .10000E-03   10000.    
    24 'Prefactor '    .10014E-03   1.0000         .10000E-03   10000.    
    25 'norm      '    3.0589       1.0000         .10000E-03   10000.    
    26 'norm      '    1.4547       1.0000         .10000E-03   10000.    
    27 'Prefactor '    .49109       1.0000         .10000E-03   10000.    
    28 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    29 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    30 'Prefactor '    1.4545       1.0000         .10000E-03   10000.    
    31 'Prefactor '    4.0468       1.0000         .10000E-03   10000.    
    32 'Normalizat'    1.2967       1.0000         .10000E-01   10.000    
    33 'Prefactor '    .87407       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=   4170.142     FROM MIGRAD    STATUS=CONVERGED   1599 CALLS     5297 TOTAL
                     EDM=   .89E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     48.051        51.052        .28930E-03    .33206E-04
   2  Prefactor     36.472        27.457        .66367E-04    .94215E-05
   3  Prefactor     .10000E-03    20.375        .18142E-02** at limit **
   4  Prefactor     31.156        36.520        .71871E-04    .25028E-03
   5  Prefactor     .10015E-03    28.200        .37028E-02** at limit **
   6  Prefactor     .10000E-03    7.2930        .33513E-03** at limit **
   7  Prefactor     .10000E-03    29.338        .18142E-02** at limit **
   8  Prefactor     3.5198        7.1064        .10774E-02   -.27393E-04
   9  Prefactor     21.535        24.103        .86330E-04   -.80330E-05
  10  Prefactor     44.452        36.626        .60119E-04   -.22692E-04
  11  Prefactor     .10000E-03    23.762        .18142E-02** at limit **
  12  Prefactor     .10000E-03    21.644        .36285E-03** at limit **
  13  Prefactor     23.569        45.643        .82498E-04   -.27423E-04
  14  Prefactor     .10000E-03    34.254        .18142E-02** at limit **
  15  Prefactor     .49095        278.36        .50557E-02   -.12911E-03
  16  norm          .10000E-03    4.8048        .13824E-02** at limit **
  17  norm          .10000E-03    5.8799        .15185E-02** at limit **
  18  norm          .10000E-03    2.4219        .98114E-03** at limit **
  19  norm          1.5824        16.111        .33698E-03    .22874E-04
  20  Prefactor     .10000E-03    1.8905        .86693E-03** at limit **
  21  Prefactor     71.787        54.663        .47397E-04    .18273E-03
  22  Prefactor     .10000E-03    36.575        .18142E-02** at limit **
  23  norm          .10002E-03    30.333        .23532E-02** at limit **
  24  Prefactor     .10000E-03    4.1082        .12781E-02** at limit **
  25  norm          3.0616        1.8338        .59051E-04   -.71927E-03
  26  norm          1.4532        5.2013        .25015E-03    .10344E-03
  27  Prefactor     .48971        11.057        .21161E-02    .34832E-03
  28  Prefactor     .10000E-03    12.973        .18142E-02** at limit **
  29  Prefactor     .10000E-03    4.0339        .12639E-02** at limit **
  30  Prefactor     1.4534        3.6513        .18857E-03    .76145E-04
  31  Prefactor     4.1697        305.69        .20044E-03    .40440E-04
  32  Normalizat    1.2968        .29959        .23438E-03   -.12948E-03
  33  Prefactor     .87435        .30586        .30186E-03    .47266E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 48.051
  Prefactor  = 36.4719
  Prefactor  = 0.0001
  Prefactor  = 31.1563
  Prefactor  = 0.000100154
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 3.5198
  Prefactor  = 21.5347
  Prefactor  = 44.4524
  Prefactor  = 0.0001
  Prefactor  = 0.000100001
  Prefactor  = 23.5691
  Prefactor  = 0.0001
  Prefactor  = 0.490954
  norm       = 0.0001
  norm       = 0.0001
  norm       = 0.0001
  norm       = 1.58242
  Prefactor  = 0.0001
  Prefactor  = 71.7869
  Prefactor  = 0.0001
  norm       = 0.000100016
  Prefactor  = 0.0001
  norm       = 3.06162
  norm       = 1.45316
  Prefactor  = 0.489711
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 1.45338
  Prefactor  = 4.16971
  Normalizat = 1.29675
  Prefactor  = 0.874346
 **********
 **   18 **HESSE 
 **********

 FCN=   4170.142     FROM HESSE     STATUS=OK           667 CALLS     5964 TOTAL
                     EDM=   .92E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     48.051        51.040        .11572E-04   -1.4320    
   2  Prefactor     36.472        27.443        .26547E-05   -1.4499    
   3  Prefactor     .10000E-03    20.376        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     31.156        36.454        .14374E-04   -1.4591    
   5  Prefactor     .10015E-03    28.374        .74056E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    7.2933        .67027E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    29.339        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     3.5198        7.1034        .43096E-04   -1.5333    
   9  Prefactor     21.535        24.101        .34532E-05   -1.4780    
  10  Prefactor     44.452        36.593        .24048E-05   -1.4374    
  11  Prefactor     .10000E-03    23.770        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    21.646        .72569E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     23.569        45.614        .32999E-05   -1.4737    
  14  Prefactor     .10000E-03    34.254        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .49095        266.26        .20223E-03   -1.5568    
  16  norm          .10000E-03    4.8049        .27648E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          .10000E-03    5.8820        .30370E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          .10000E-03    2.4219        .19623E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  norm          1.5824        16.086        .13479E-04   -1.5456    
  20  Prefactor     .10000E-03    1.8905        .17339E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     71.787        54.470        .94793E-05   -1.4011    
  22  Prefactor     .10000E-03    36.577        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  norm          .10002E-03    30.452        .47064E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     .10000E-03    4.1082        .25562E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  norm          3.0616        1.7923        .23620E-05   -1.5358    
  26  norm          1.4532        5.1970        .10006E-04   -1.5467    
  27  Prefactor     .48971        10.955        .84643E-04   -1.5568    
  28  Prefactor     .10000E-03    12.973        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  29  Prefactor     .10000E-03    4.0341        .25278E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  30  Prefactor     1.4534        3.6502        .75428E-05   -1.5467    
  31  Prefactor     4.1697        305.60        .80177E-05   -1.5300    
  32  Normalizat    1.2968        .29856        .46876E-04   -.83663    
  33  Prefactor     .87435        .30618        .12074E-04   -.97043    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 9.23138e-09
Minuit parameter uncertainties:
  1  51.0865
  2  27.4526
  3  9.27973e-07
  4  36.4805
  5  0.0041818
  6  5.2828e-05
  7  3.12713e-05
  8  7.10506
  9  24.1118
  10  36.6112
  11  0.000101576
  12  0.000215616
  13  45.6814
  14  1.57539e-05
  15  22.9678
  16  2.94145e-06
  17  1.67589e-06
  18  4.99297e-07
  19  10.0936
  20  5.79437e-07
  21  54.5082
  22  6.55461e-06
  23  0.00138855
  24  1.61718e-06
  25  1.79238
  26  5.19865
  27  4.63292
  28  1.97988e-05
  29  5.24048e-05
  30  3.65073
  31  71.7768
  32  0.298961
  33  0.306782
Done.

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

Extracting fit parameters...

4FGL J2326.9-4130
   Spectrum: PowerLaw
435    Prefactor:  7.179e+01  5.451e+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:  8.743e-01  3.068e-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.297e+00  2.990e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 2.90
Ra Dec: 351.737 -41.509
Photon Index (Fixed Index): 2.78 +/- 0.00
Photon Flux (Fixed Index): 9.40e-08 +/- 7.13e-08
Energy Flux (Fixed Index): 2.14e-05 +/- 1.62e-05

TS (Fixed Index): 2.90
Ra Dec: 351.737 -41.509
Photon Flux Upper Limit: 2.26e-07 ph cm-2 s-1
Energy Flux Upper Limit: 1.79e-02 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/904576/likelihoodResults_637459201_637718401_4FGL_J2326.9-4130_daily_bin1536.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) = 4169.7149792
delta logL = 0.427460762289

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 4169.70027835
delta logL = 0.442161608132

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    24.397       1.0000         .10000E-03   10000.    
     2 'Index     '    3.7074       1.0000          .0000       10.000    
     3 'Normalizat'    1.2414       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .92295       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=   4169.700     FROM MIGRAD    STATUS=CONVERGED     93 CALLS      314 TOTAL
                     EDM=   .52E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     24.462        206.56        .81098E-04   -.38624E-03
   2  Index         3.7065        3.3712        .43666E-02   -.11844E-03
   3  Normalizat    1.2401        .30521        .23874E-03   -.19944E-03
   4  Prefactor     .92429        .33148        .29463E-03    .40322E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 24.462
  Index      = 3.70653
  Normalizat = 1.24009
  Prefactor  = 0.924287
 **********
 **   18 **HESSE 
 **********

 FCN=   4169.700     FROM HESSE     STATUS=OK            25 CALLS      339 TOTAL
                     EDM=   .35E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     24.462        50.403        .16220E-04   -1.4718    
   2  Index         3.7065        1.3014        .17466E-03   -.26167    
   3  Normalizat    1.2401        .29337        .47747E-04   -.85373    
   4  Prefactor     .92429        .31227        .58927E-04   -.95298    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.51729e-09
Minuit parameter uncertainties:
  1  50.4911
  2  1.31771
  3  0.293757
  4  0.31288
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/904576': 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) = 4169.70026695
delta logL = 0.442173005948

Extracting fit parameters...

4FGL J2326.9-4130
   Spectrum: PowerLaw
435    Prefactor:  2.446e+01  5.049e+01  1.000e-04  1.000e+04 ( 1.000e-13)
436        Index:  3.707e+00  1.318e+00  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:  9.243e-01  3.129e-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.240e+00  2.938e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 3.89
Ra Dec: 351.737 -41.509
Photon Index (Free Index): 3.71 +/- 1.32
Photon Flux (Free Index): 1.30e-07 +/- 8.24e-08
Energy Flux (Free Index): 2.07e-05 +/- 1.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/904576/cmap_HighResolution_637459201_637718401_4FGL_J2326.9-4130_daily_bin1536.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.79e-02', comment='SUCCESS', photon_flux='9.40e-08', energy_flux2='2.07e-05', photon_flux_error='7.13e-08', dlogl='4.42e-01', energy_flux='2.14e-05', photon_flux2='1.30e-07', job_status='DONE', time_completed='2021-09-29 19:45:35.539657', photon_index_error2='1.32', photon_index2='3.71', ts='2.90', fit_tolerance='1e-08', GAL='0.87', photon_index_error='0.00', photon_flux_upper_limit='2.26e-07', energy_flux_error2='1.32e-05', EG='1.30', time_epoch_completed='1632969935.54', return_code='0', job_id='904576', GAL2='0.92', EG2='1.24', return_code2='0', energy_flux_error='1.62e-05', photon_flux_error2='8.24e-08', ts2='3.89', photon_index='2.78' WHERE bin_id='1536' AND source_name='4FGL J2326.9-4130' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep 29 19:45:35 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0089>
Subject: Job 904576: <4FGL_J2326.9-4130_daily_bin1536> in cluster <slac> Done

Job <4FGL_J2326.9-4130_daily_bin1536> was submitted from host <rhel6-64d> by user <kocevski> in cluster <slac> at Wed Sep 29 19:30:20 2021
Job was executed on host(s) <bullet0089>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Sep 29 19:30:22 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:22 2021
Terminated at Wed Sep 29 19:45:35 2021
Results reported at Wed Sep 29 19:45:35 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2326.9-4130_daily_bin1536 351.737 -41.5089 637459201 637718401 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 :                                   781.36 sec.
    Max Memory :                                 1052 MB
    Average Memory :                             301.78 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   913 sec.
    Turnaround time :                            915 sec.

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

