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


Performing analysis on: 4FGL_J2326.9-4130_daily_bin1014
RA = 351.737, Dec = -41.5089
tmin = 502156801, tmax = 502416001
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='900898', job_status='RUN', time_executed='2021-09-29 19:21:05.216278', time_epoch_executed='1632968465.22' WHERE source_name='4FGL J2326.9-4130' and cadence='daily' and bin_id='1014'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/900898

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/900898/ft1_4FGL_J2326.9-4130_daily_bin1014.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/900898/ft2_4FGL_J2326.9-4130_daily_bin1014.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/900898/ft1_4FGL_J2326.9-4130_daily_bin1014.fits outfile=/scratch/kocevski/900898/ft1_filteredMKT_4FGL_J2326.9-4130_daily_bin1014.fits ra=351.737 dec=-41.5089 rad=12.0 tmin=502156801.0 tmax=502416001.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 4.03
user 3.81
sys 0.21

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/900898/ft1_filtered_4FGL_J2326.9-4130_daily_bin1014.fits" evtable="EVENTS" scfile=/scratch/kocevski/900898/ft2_4FGL_J2326.9-4130_daily_bin1014.fits sctable="SC_DATA" outfile=/scratch/kocevski/900898/ltcube_502156801_502416001_4FGL_J2326.9-4130_daily_bin1014.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/900898/ft2_4FGL_J2326.9-4130_daily_bin1014.fits
.....................!
real 11.93
user 11.53
sys 0.37

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/900898/ft1_filtered_4FGL_J2326.9-4130_daily_bin1014.fits evtable="EVENTS" scfile=/scratch/kocevski/900898/ft2_4FGL_J2326.9-4130_daily_bin1014.fits sctable="SC_DATA" expcube=/scratch/kocevski/900898/ltcube_502156801_502416001_4FGL_J2326.9-4130_daily_bin1014.fits outfile=/scratch/kocevski/900898/expmap_502156801_502416001_4FGL_J2326.9-4130_daily_bin1014.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/900898/ltcube_502156801_502416001_4FGL_J2326.9-4130_daily_bin1014.fits
.....................!
real 190.25
user 185.21
sys 4.74

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/900898/ft1_filtered_4FGL_J2326.9-4130_daily_bin1014.fits scfile=/scratch/kocevski/900898/ft2_4FGL_J2326.9-4130_daily_bin1014.fits outfile=/scratch/kocevski/900898/cmap_502156801_502416001_4FGL_J2326.9-4130_daily_bin1014.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.52
user 0.38
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/900898/ft1_filtered_4FGL_J2326.9-4130_daily_bin1014.fits scfile=/scratch/kocevski/900898/ft2_4FGL_J2326.9-4130_daily_bin1014.fits outfile=/scratch/kocevski/900898/cmap_HighResolution_502156801_502416001_4FGL_J2326.9-4130_daily_bin1014.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/900898/ft1_filtered_4FGL_J2326.9-4130_daily_bin1014.fits evtable="EVENTS" scfile=/scratch/kocevski/900898/ft2_4FGL_J2326.9-4130_daily_bin1014.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/900898/Model_4FGL_J2326.9-4130_daily_bin1014.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/900898/ft1_filtered_4FGL_J2326.9-4130_daily_bin1014.fits.....................!
real 44.52
user 43.28
sys 1.15

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    20.430       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10014E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    24.475       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10029E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    3.5807       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10014E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .14529       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    7.8796       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    6.9913       1.0000         .10000E-03   10000.    
    13 'Prefactor '    8.4336       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .15596E-02   1.0000         .10000E-03   10000.    
    16 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    3.5599       1.0000         .10000E-03   10000.    
    18 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    19 'norm      '    2.0108       1.0000         .10000E-03   10000.    
    20 'Prefactor '    4.3469       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    23 'norm      '    2.6328       1.0000         .10000E-03   10000.    
    24 'Prefactor '    .10586E-03   1.0000         .10000E-03   10000.    
    25 'norm      '    .98229       1.0000         .10000E-03   10000.    
    26 'norm      '    .49928       1.0000         .10000E-03   10000.    
    27 'Prefactor '    .50694E-01   1.0000         .10000E-03   10000.    
    28 'Prefactor '    11.451       1.0000         .10000E-03   10000.    
    29 'Prefactor '    1.5135       1.0000         .10000E-03   10000.    
    30 'Prefactor '    1.9633       1.0000         .10000E-03   10000.    
    31 'Prefactor '    .14032E-03   1.0000         .10000E-03   10000.    
    32 'Normalizat'    .86122       1.0000         .10000E-01   10.000    
    33 'Prefactor '    .78866       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=   6326.655     FROM MIGRAD    STATUS=CONVERGED    910 CALLS     3991 TOTAL
                     EDM=   .18E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.0%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    52.496        .47001E-05** at limit **
   2  Prefactor     20.430        20.258       -.44868E-06    .36518E-04
   3  Prefactor     .10000E-03    11.805       -.20423E-05** at limit **
   4  Prefactor     24.486        18.986       -.12476E-05    .11845E-05
   5  Prefactor     .10000E-03    2.1571        .33791E-07** at limit **
   6  Prefactor     3.5802        2.8655       -.10789E-06   -.35041E-03
   7  Prefactor     .10000E-03    19.663        .74587E-05** at limit **
   8  Prefactor     .17215        2.8833        .73519E-06   -.10073E-02
   9  Prefactor     .10000E-03    8.2393       -.26045E-05** at limit **
  10  Prefactor     7.8869        20.426       -.24445E-05   -.36622E-04
  11  Prefactor     .10000E-03    4.5367       -.13280E-07** at limit **
  12  Prefactor     6.9922        6.3118       -.14928E-06   -.17886E-03
  13  Prefactor     8.4215        23.734        .48393E-06   -.39775E-04
  14  Prefactor     .10000E-03    22.850       -.17428E-06** at limit **
  15  Prefactor     .10000E-03    5.8786        .30811E-07** at limit **
  16  norm          .10000E-03    2.7116        .40929E-08** at limit **
  17  norm          3.5598        3.7095        .10315E-06    .16438E-03
  18  norm          .10000E-03    1.7047        .93785E-08** at limit **
  19  norm          2.0116        4.0824       -.72020E-06   -.67270E-03
  20  Prefactor     4.3428        3.9614       -.10440E-06    .28898E-03
  21  Prefactor     .10000E-03    8.0799        .23073E-05** at limit **
  22  Prefactor     .10000E-03    11.416        .27831E-05** at limit **
  23  norm          2.6332        2.7220       -.45127E-07   -.16702E-03
  24  Prefactor     .10000E-03    16.558       -.53638E-05** at limit **
  25  norm          .98166        .78284       -.26972E-07    .37048E-04
  26  norm          .50235        2.2078       -.73777E-06   -.68844E-03
  27  Prefactor     .53903E-01    1.1204       -.36140E-06    .17660E-04
  28  Prefactor     11.454        13.447        .25501E-06    .10243E-03
  29  Prefactor     1.5120        4.0562       -.84497E-06   -.97023E-03
  30  Prefactor     1.9641        2.4503       -.40227E-07   -.11268E-03
  31  Prefactor     .10000E-03    110.69       -.46236E-05** at limit **
  32  Normalizat    .86113        .14040        .72957E-06    .12030E-03
  33  Prefactor     .78860        .15534        .12690E-06    .10915E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 20.4298
  Prefactor  = 0.0001
  Prefactor  = 24.486
  Prefactor  = 0.0001
  Prefactor  = 3.58021
  Prefactor  = 0.0001
  Prefactor  = 0.172151
  Prefactor  = 0.0001
  Prefactor  = 7.88688
  Prefactor  = 0.0001
  Prefactor  = 6.99217
  Prefactor  = 8.42146
  Prefactor  = 0.0001
  Prefactor  = 0.000100001
  norm       = 0.0001
  norm       = 3.55979
  norm       = 0.0001
  norm       = 2.01165
  Prefactor  = 4.34278
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 2.63319
  Prefactor  = 0.0001
  norm       = 0.981655
  norm       = 0.502347
  Prefactor  = 0.053903
  Prefactor  = 11.4535
  Prefactor  = 1.51204
  Prefactor  = 1.96409
  Prefactor  = 0.0001
  Normalizat = 0.861133
  Prefactor  = 0.788598
 **********
 **   18 **HESSE 
 **********

 FCN=   6326.655     FROM HESSE     STATUS=OK           705 CALLS     4696 TOTAL
                     EDM=   .15E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    52.366        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     20.430        20.192        .88614E-04   -1.4804    
   3  Prefactor     .10000E-03    11.750        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     24.486        18.982        .80969E-04   -1.4718    
   5  Prefactor     .10000E-03    2.1647        .11398E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     3.5802        2.8618        .11564E-03   -1.5330    
   7  Prefactor     .10000E-03    18.862        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .17215        32.455        .25535E-02   -1.5625    
   9  Prefactor     .10000E-03    8.1575        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     7.8869        20.528        .14284E-03   -1.5146    
  11  Prefactor     .10000E-03    4.5573        .16545E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     6.9922        6.3181        .15172E-03   -1.5179    
  13  Prefactor     8.4215        23.764        .13804E-03   -1.5127    
  14  Prefactor     .10000E-03    22.873        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    28.137        .37103E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          .10000E-03    2.7127        .12792E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          3.5598        3.7204        .15152E-03   -1.5331    
  18  norm          .10000E-03    1.7139        .10129E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  norm          2.0116        4.1662        .22612E-03   -1.5424    
  20  Prefactor     4.3428        3.9421        .14438E-03   -1.5291    
  21  Prefactor     .10000E-03    8.0167        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     .10000E-03    11.310        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  norm          2.6332        2.6771        .12182E-03   -1.5383    
  24  Prefactor     .10000E-03    16.442        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  norm          .98166        .75847        .59167E-04   -1.5510    
  26  norm          .50235        4.0403        .21891E-02   -1.5566    
  27  Prefactor     .53903E-01    10.059        .15938E-02   -1.5662    
  28  Prefactor     11.454        13.333        .11839E-03   -1.5031    
  29  Prefactor     1.5120        4.2798        .25936E-03   -1.5462    
  30  Prefactor     1.9641        2.4301        .13057E-03   -1.5428    
  31  Prefactor     .10000E-03    113.48        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  32  Normalizat    .86113        .16932        .20350E-03   -.97840    
  33  Prefactor     .78860        .18718        .24006E-03   -1.0015    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.4874e-08
Minuit parameter uncertainties:
  1  2.5826e-05
  2  20.1985
  3  1.49946e-06
  4  18.987
  5  4.51439e-06
  6  2.86196
  7  4.82284e-06
  8  4.72866
  9  7.06698e-06
  10  20.5467
  11  1.98689e-06
  12  6.31866
  13  23.7907
  14  3.13447e-06
  15  0.000279259
  16  1.51179e-07
  17  3.72061
  18  8.72291e-07
  19  4.16682
  20  3.94232
  21  5.42436e-06
  22  3.01866e-06
  23  2.6772
  24  5.66256e-05
  25  0.758482
  26  2.84927
  27  1.47157
  28  13.3367
  29  4.28068
  30  2.4302
  31  0.000279904
  32  0.169429
  33  0.187335
Done.

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

Extracting fit parameters...

4FGL J2326.9-4130
   Spectrum: PowerLaw
435    Prefactor:  1.000e-04  5.424e-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.886e-01  1.873e-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.611e-01  1.694e-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: 4.70e-08 ph cm-2 s-1
Energy Flux Upper Limit: 3.72e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/900898/likelihoodResults_502156801_502416001_4FGL_J2326.9-4130_daily_bin1014.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) = 6326.65571888
delta logL = -0.000594302721765

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 6326.65512865
delta logL = -4.07589413953e-06

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10749E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.7552       1.0000          .0000       10.000    
     3 'Normalizat'    .86081       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .78877       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=   6326.655     FROM MIGRAD    STATUS=CONVERGED    102 CALLS      250 TOTAL
                     EDM=   .78E-10    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    42.249        .18142E-01** at limit **
   2  Index         2.0498        7.3449        .50000        .88903E-08
   3  Normalizat    .86113        .62660E-02    .20350E-03   -.25988E-02
   4  Prefactor     .78860        .71433E-02    .24006E-03   -.22084E-02
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Index      = 2.04982
  Normalizat = 0.861131
  Prefactor  = 0.788595
 **********
 **   18 **HESSE 
 **********

 FCN=   6326.655     FROM HESSE     STATUS=NOT POSDEF    29 CALLS      279 TOTAL
                     EDM=   .56E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    299.16        .26404E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.0498        8.8597        .50000       -.63110    
   3  Normalizat    .86113        .17143E-01    .40700E-04   -.97840    
   4  Prefactor     .78860        .19543E-01    .48012E-04   -1.0015    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 5.60542e-10
Minuit parameter uncertainties:
  1  0.000248132
  2  979.095
  3  0.0171428
  4  0.019543
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/900898': 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) = 6326.65512266
delta logL = 1.91279377759e-06

Extracting fit parameters...

4FGL J2326.9-4130
   Spectrum: PowerLaw
435    Prefactor:  1.000e-04  2.481e-04  1.000e-04  1.000e+04 ( 1.000e-13)
436        Index:  2.050e+00  9.791e+02  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.886e-01  1.954e-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.611e-01  1.714e-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/900898/cmap_HighResolution_502156801_502416001_4FGL_J2326.9-4130_daily_bin1014.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='3.72e-03', job_status='DONE', photon_flux_upper_limit='4.70e-08', time_completed='2021-09-29 19:36:17.479321', job_id='900898', GAL2='0.79', fit_tolerance='1e-08', EG2='0.86', EG='0.86', time_epoch_completed='1632969377.48', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.79', dlogl='1.91e-06', ts2='-0.00', photon_index_error='0.00', photon_index='2.78' WHERE bin_id='1014' AND source_name='4FGL J2326.9-4130' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep 29 19:36:17 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0211>
Subject: Job 900898: <4FGL_J2326.9-4130_daily_bin1014> in cluster <slac> Done

Job <4FGL_J2326.9-4130_daily_bin1014> was submitted from host <rhel6-64d> by user <kocevski> in cluster <slac> at Wed Sep 29 19:20:27 2021
Job was executed on host(s) <bullet0211>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Sep 29 19:20:28 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:20:28 2021
Terminated at Wed Sep 29 19:36:18 2021
Results reported at Wed Sep 29 19:36:18 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2326.9-4130_daily_bin1014 351.737 -41.5089 502156801 502416001 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 :                                   903.24 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             295.64 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   949 sec.
    Turnaround time :                            951 sec.

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

