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


Performing analysis on: 4FGL_J2326.9-4130_daily_bin1579
RA = 351.737, Dec = -41.5089
tmin = 648604801, tmax = 648864001
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='904646', job_status='RUN', time_executed='2021-09-29 19:31:53.195496', time_epoch_executed='1632969113.2' WHERE source_name='4FGL J2326.9-4130' and cadence='daily' and bin_id='1579'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/904646

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/904646/ft1_4FGL_J2326.9-4130_daily_bin1579.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/904646/ft2_4FGL_J2326.9-4130_daily_bin1579.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/904646/ft1_4FGL_J2326.9-4130_daily_bin1579.fits outfile=/scratch/kocevski/904646/ft1_filteredMKT_4FGL_J2326.9-4130_daily_bin1579.fits ra=351.737 dec=-41.5089 rad=12.0 tmin=648604801.0 tmax=648864001.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.95
user 2.72
sys 0.20

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/904646/ft2_4FGL_J2326.9-4130_daily_bin1579.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/904646/ft1_filteredMKT_4FGL_J2326.9-4130_daily_bin1579.fits evtable="EVENTS" outfile="/scratch/kocevski/904646/ft1_filtered_4FGL_J2326.9-4130_daily_bin1579.fits" apply_filter=yes overwrite=yes header_obstimes=yes tstart=0.0 tstop=0.0 gtifile="default" chatter=3 clobber=yes debug=no gui=no mode="ql"

WARNING: version mismatch between CFITSIO header (v3.43) and linked library (v3.41).

This is gtmktime version HEAD
Applying GTI filter:
IN_SAA!=T && LIVETIME>0 && gtifilter('/nfs/farm/g/glast/g/LCRepository/Likelihood/GTIs/nogrb.gti',(START+STOP)/2) && (angsep(RA_SUN,DEC_SUN,RA_ZENITH,DEC_ZENITH)>115 || gtifilter('/nfs/farm/g/glast/g/LCRepository/Likelihood/GTIs/nosolarflares.gti',(START+STOP)/2))
real 0.50
user 0.33
sys 0.15

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/904646/ft1_filtered_4FGL_J2326.9-4130_daily_bin1579.fits" evtable="EVENTS" scfile=/scratch/kocevski/904646/ft2_4FGL_J2326.9-4130_daily_bin1579.fits sctable="SC_DATA" outfile=/scratch/kocevski/904646/ltcube_648604801_648864001_4FGL_J2326.9-4130_daily_bin1579.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/904646/ft2_4FGL_J2326.9-4130_daily_bin1579.fits
.....................!
real 12.89
user 12.48
sys 0.37

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/904646/ft1_filtered_4FGL_J2326.9-4130_daily_bin1579.fits evtable="EVENTS" scfile=/scratch/kocevski/904646/ft2_4FGL_J2326.9-4130_daily_bin1579.fits sctable="SC_DATA" expcube=/scratch/kocevski/904646/ltcube_648604801_648864001_4FGL_J2326.9-4130_daily_bin1579.fits outfile=/scratch/kocevski/904646/expmap_648604801_648864001_4FGL_J2326.9-4130_daily_bin1579.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/904646/ltcube_648604801_648864001_4FGL_J2326.9-4130_daily_bin1579.fits
.....................!
real 190.87
user 185.08
sys 5.41

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/904646/ft1_filtered_4FGL_J2326.9-4130_daily_bin1579.fits scfile=/scratch/kocevski/904646/ft2_4FGL_J2326.9-4130_daily_bin1579.fits outfile=/scratch/kocevski/904646/cmap_648604801_648864001_4FGL_J2326.9-4130_daily_bin1579.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.36
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/904646/ft1_filtered_4FGL_J2326.9-4130_daily_bin1579.fits scfile=/scratch/kocevski/904646/ft2_4FGL_J2326.9-4130_daily_bin1579.fits outfile=/scratch/kocevski/904646/cmap_HighResolution_648604801_648864001_4FGL_J2326.9-4130_daily_bin1579.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.53
user 0.38
sys 0.14

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/904646/ft1_filtered_4FGL_J2326.9-4130_daily_bin1579.fits evtable="EVENTS" scfile=/scratch/kocevski/904646/ft2_4FGL_J2326.9-4130_daily_bin1579.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/904646/Model_4FGL_J2326.9-4130_daily_bin1579.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/904646/ft1_filtered_4FGL_J2326.9-4130_daily_bin1579.fits.....................!
real 31.07
user 29.82
sys 1.19

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    57.911       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10261E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .23153E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    2.5833       1.0000         .10000E-03   10000.    
     6 'Prefactor '    41.749       1.0000         .10000E-03   10000.    
     7 'Prefactor '    42.074       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10012E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    68.023       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    9.7986       1.0000         .10000E-03   10000.    
    12 'Prefactor '    2.2730       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10077E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10016E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    4.8942       1.0000         .10000E-03   10000.    
    18 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    19 'norm      '    .10005E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10390E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    16.677       1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    23 'norm      '    .10005E-03   1.0000         .10000E-03   10000.    
    24 'Prefactor '    .10859E-03   1.0000         .10000E-03   10000.    
    25 'norm      '    1.4426       1.0000         .10000E-03   10000.    
    26 'norm      '    1.2283       1.0000         .10000E-03   10000.    
    27 'Prefactor '    .10035E-03   1.0000         .10000E-03   10000.    
    28 'Prefactor '    .10560E-03   1.0000         .10000E-03   10000.    
    29 'Prefactor '    9.4570       1.0000         .10000E-03   10000.    
    30 'Prefactor '    .10014E-03   1.0000         .10000E-03   10000.    
    31 'Prefactor '    24.424       1.0000         .10000E-03   10000.    
    32 'Normalizat'    1.0691       1.0000         .10000E-01   10.000    
    33 'Prefactor '    .77667       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=   3295.476     FROM MIGRAD    STATUS=CONVERGED    870 CALLS     4565 TOTAL
                     EDM=   .11E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .5%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     57.947        69.619        .35020E-04    .39160E-05
   2  Prefactor     .10000E-03    23.826        .12095E-04** at limit **
   3  Prefactor     .10000E-03    116.48       -.30367E-04** at limit **
   4  Prefactor     .10000E-03    6.9036        .14410E-05** at limit **
   5  Prefactor     2.5853        4.4793       -.38907E-05   -.34369E-03
   6  Prefactor     41.751        23.646        .31520E-05    .99731E-05
   7  Prefactor     42.039        163.47       -.52311E-04    .55755E-05
   8  Prefactor     .10000E-03    9.6301        .11044E-05** at limit **
   9  Prefactor     68.029        68.583        .72357E-05    .75781E-05
  10  Prefactor     .10000E-03    41.690       -.15435E-04** at limit **
  11  Prefactor     9.7763        34.840       -.20189E-04   -.21141E-04
  12  Prefactor     2.2718        10.555        .38417E-06   -.20622E-03
  13  Prefactor     .10000E-03    40.423       -.18127E-04** at limit **
  14  Prefactor     .10000E-03    58.276        .42113E-04** at limit **
  15  Prefactor     .10000E-03    22.060        .76512E-05** at limit **
  16  norm          .10000E-03    5.4735       -.10029E-06** at limit **
  17  norm          4.8933        6.9431        .95473E-07    .18660E-04
  18  norm          .10000E-03    3.3756       -.23912E-06** at limit **
  19  norm          .10000E-03    7.4787       -.17709E-05** at limit **
  20  Prefactor     .10000E-03    19.447       -.13828E-04** at limit **
  21  Prefactor     16.708        33.048        .19544E-04    .48783E-04
  22  Prefactor     .10000E-03    26.070        .91207E-05** at limit **
  23  norm          .10000E-03    3.7446       -.68842E-06** at limit **
  24  Prefactor     .10000E-03    51.724        .21551E-04** at limit **
  25  norm          1.4404        1.5731        .98557E-07    .16096E-03
  26  norm          1.2316        4.4375       -.36175E-05   -.75126E-03
  27  Prefactor     .10000E-03    2.3646        .63326E-07** at limit **
  28  Prefactor     .10000E-03    36.029       -.20491E-04** at limit **
  29  Prefactor     9.4628        8.5598        .24005E-05   -.96374E-04
  30  Prefactor     .10000E-03    2.4751       -.79884E-07** at limit **
  31  Prefactor     24.411        72.617       -.21383E-04   -.77060E-05
  32  Normalizat    1.0684        .23715       -.40402E-05    .31828E-03
  33  Prefactor     .77705        .25646        .21862E-05    .24353E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 57.9468
  Prefactor  = 0.0001
  Prefactor  = 0.000100001
  Prefactor  = 0.0001
  Prefactor  = 2.58534
  Prefactor  = 41.7513
  Prefactor  = 42.0389
  Prefactor  = 0.0001
  Prefactor  = 68.029
  Prefactor  = 0.0001
  Prefactor  = 9.77626
  Prefactor  = 2.27184
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 4.89331
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 16.7084
  Prefactor  = 0.0001
  norm       = 0.000100001
  Prefactor  = 0.0001
  norm       = 1.4404
  norm       = 1.23164
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 9.46284
  Prefactor  = 0.0001
  Prefactor  = 24.4106
  Normalizat = 1.06839
  Prefactor  = 0.777054
 **********
 **   18 **HESSE 
 **********

 FCN=   3295.476     FROM HESSE     STATUS=OK           685 CALLS     5250 TOTAL
                     EDM=   .23E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     57.947        69.594        .52718E-04   -1.4184    
   2  Prefactor     .10000E-03    23.902        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    117.32        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    6.9050        .14732E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     2.5853        4.4786        .15469E-03   -1.5386    
   6  Prefactor     41.751        23.644        .62041E-04   -1.4415    
   7  Prefactor     42.039        163.64        .61801E-04   -1.4410    
   8  Prefactor     .10000E-03    9.6341        .17400E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     68.029        68.551        .48666E-04   -1.4056    
  10  Prefactor     .10000E-03    41.675        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     9.7763        34.948        .12802E-03   -1.5083    
  12  Prefactor     2.2718        10.501        .27239E-03   -1.5407    
  13  Prefactor     .10000E-03    40.424        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    58.257        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    22.206        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          .10000E-03    5.4738        .13118E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          4.8933        6.9319        .17404E-03   -1.5266    
  18  norm          .10000E-03    3.3785        .10298E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  norm          .10000E-03    7.5399        .15329E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    19.802        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     16.708        32.916        .98074E-04   -1.4890    
  22  Prefactor     .10000E-03    26.085        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  norm          .10000E-03    3.7675        .10802E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     .10000E-03    52.531        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  norm          1.4404        1.5479        .70255E-04   -1.5468    
  26  norm          1.2316        4.3875        .21346E-03   -1.5486    
  27  Prefactor     .10000E-03    2.4001        .86121E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  28  Prefactor     .10000E-03    36.236        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  29  Prefactor     9.4628        8.5449        .13032E-03   -1.5093    
  30  Prefactor     .10000E-03    2.4972        .88136E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  31  Prefactor     24.411        72.520        .81054E-04   -1.4719    
  32  Normalizat    1.0684        .28857        .21946E-03   -.90773    
  33  Prefactor     .77705        .31065        .28131E-03   -1.0058    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.3242e-09
Minuit parameter uncertainties:
  1  69.6924
  2  4.26502e-05
  3  0.000595525
  4  8.42756e-06
  5  4.47919
  6  23.6493
  7  165.435
  8  3.86422e-06
  9  68.6308
  10  0.000158534
  11  35.0212
  12  9.77139
  13  9.9083e-06
  14  8.66203e-05
  15  1.02322e-05
  16  4.24915e-07
  17  6.933
  18  3.50382e-05
  19  1.24516e-05
  20  6.04161e-05
  21  32.9514
  22  3.5687e-05
  23  0.000106266
  24  7.37506e-05
  25  1.54791
  26  4.3886
  27  1.41948e-05
  28  0.000162675
  29  8.54603
  30  2.91389e-06
  31  72.7834
  32  0.288997
  33  0.311356
Done.

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

Extracting fit parameters...

4FGL J2326.9-4130
   Spectrum: PowerLaw
435    Prefactor:  1.671e+01  3.295e+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:  7.771e-01  3.114e-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.068e+00  2.890e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/904646/likelihoodResults_648604801_648864001_4FGL_J2326.9-4130_daily_bin1579.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) = 3295.3088385
delta logL = 0.167366350485

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 3295.24247911
delta logL = 0.233725737569

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    39.097       1.0000         .10000E-03   10000.    
     2 'Index     '    1.6084       1.0000          .0000       10.000    
     3 'Normalizat'    1.0793       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .76336       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=   3295.242     FROM MIGRAD    STATUS=CONVERGED     56 CALLS      237 TOTAL
                     EDM=   .53E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY= 17.8%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     39.042        66.640       -.41188E-04   -.15037E-03
   2  Index         1.6067        .95439       -.14332E-03    .60199E-04
   3  Normalizat    1.0799        .22662        .22292E-05    .61145E-03
   4  Prefactor     .76293        .25282        .20598E-05    .46720E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 39.0419
  Index      = 1.60671
  Normalizat = 1.07987
  Prefactor  = 0.762925
 **********
 **   18 **HESSE 
 **********

 FCN=   3295.242     FROM HESSE     STATUS=OK            27 CALLS      264 TOTAL
                     EDM=   .85E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     39.042        63.431        .64103E-04   -1.4457    
   2  Index         1.6067        .90781        .95172E-02   -.74594    
   3  Normalizat    1.0799        .27319        .21830E-03   -.90401    
   4  Prefactor     .76293        .30428        .28350E-03   -1.0111    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 8.46047e-10
Minuit parameter uncertainties:
  1  63.5413
  2  0.917317
  3  0.273551
  4  0.304948
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/904646': 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) = 3295.24247499
delta logL = 0.23372985766

Extracting fit parameters...

4FGL J2326.9-4130
   Spectrum: PowerLaw
435    Prefactor:  3.904e+01  6.354e+01  1.000e-04  1.000e+04 ( 1.000e-13)
436        Index:  1.607e+00  9.173e-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:  7.629e-01  3.049e-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.080e+00  2.736e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 0.37
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/904646/cmap_HighResolution_648604801_648864001_4FGL_J2326.9-4130_daily_bin1579.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.10e-02', job_status='DONE', photon_flux_upper_limit='1.40e-07', time_completed='2021-09-29 19:42:32.438125', job_id='904646', GAL2='0.76', fit_tolerance='1e-08', EG2='1.08', EG='1.07', time_epoch_completed='1632969752.44', return_code2='0', ts='0.37', comment='SUCCESS', return_code='0', GAL='0.78', dlogl='2.34e-01', ts2='0.84', photon_index_error='0.00', photon_index='2.78' WHERE bin_id='1579' AND source_name='4FGL J2326.9-4130' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep 29 19:42:32 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0123>
Subject: Job 904646: <4FGL_J2326.9-4130_daily_bin1579> in cluster <slac> Done

Job <4FGL_J2326.9-4130_daily_bin1579> was submitted from host <rhel6-64d> by user <kocevski> in cluster <slac> at Wed Sep 29 19:30:26 2021
Job was executed on host(s) <bullet0123>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Sep 29 19:30: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:30:28 2021
Terminated at Wed Sep 29 19:42:33 2021
Results reported at Wed Sep 29 19:42:33 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2326.9-4130_daily_bin1579 351.737 -41.5089 648604801 648864001 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 :                                   630.00 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             291.87 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   724 sec.
    Turnaround time :                            727 sec.

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

