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


Performing analysis on: 4FGL_J2326.9-4130_daily_bin1095
RA = 351.737, Dec = -41.5089
tmin = 523152001, tmax = 523411201
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='901025', job_status='RUN', time_executed='2021-09-29 19:23:14.579607', time_epoch_executed='1632968594.58' WHERE source_name='4FGL J2326.9-4130' and cadence='daily' and bin_id='1095'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/901025

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/901025/ft1_4FGL_J2326.9-4130_daily_bin1095.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/901025/ft2_4FGL_J2326.9-4130_daily_bin1095.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/901025/ft1_4FGL_J2326.9-4130_daily_bin1095.fits outfile=/scratch/kocevski/901025/ft1_filteredMKT_4FGL_J2326.9-4130_daily_bin1095.fits ra=351.737 dec=-41.5089 rad=12.0 tmin=523152001.0 tmax=523411201.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.22
user 3.99
sys 0.20

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/901025/ft2_4FGL_J2326.9-4130_daily_bin1095.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/901025/ft1_filteredMKT_4FGL_J2326.9-4130_daily_bin1095.fits evtable="EVENTS" outfile="/scratch/kocevski/901025/ft1_filtered_4FGL_J2326.9-4130_daily_bin1095.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.54
user 0.33
sys 0.14

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/901025/ft1_filtered_4FGL_J2326.9-4130_daily_bin1095.fits" evtable="EVENTS" scfile=/scratch/kocevski/901025/ft2_4FGL_J2326.9-4130_daily_bin1095.fits sctable="SC_DATA" outfile=/scratch/kocevski/901025/ltcube_523152001_523411201_4FGL_J2326.9-4130_daily_bin1095.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/901025/ft2_4FGL_J2326.9-4130_daily_bin1095.fits
.....................!
real 11.80
user 11.45
sys 0.32

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/901025/ft1_filtered_4FGL_J2326.9-4130_daily_bin1095.fits evtable="EVENTS" scfile=/scratch/kocevski/901025/ft2_4FGL_J2326.9-4130_daily_bin1095.fits sctable="SC_DATA" expcube=/scratch/kocevski/901025/ltcube_523152001_523411201_4FGL_J2326.9-4130_daily_bin1095.fits outfile=/scratch/kocevski/901025/expmap_523152001_523411201_4FGL_J2326.9-4130_daily_bin1095.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/901025/ltcube_523152001_523411201_4FGL_J2326.9-4130_daily_bin1095.fits
.....................!
real 190.02
user 185.41
sys 4.24

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/901025/ft1_filtered_4FGL_J2326.9-4130_daily_bin1095.fits scfile=/scratch/kocevski/901025/ft2_4FGL_J2326.9-4130_daily_bin1095.fits outfile=/scratch/kocevski/901025/cmap_523152001_523411201_4FGL_J2326.9-4130_daily_bin1095.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.37
sys 0.15

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

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/901025/ft1_filtered_4FGL_J2326.9-4130_daily_bin1095.fits evtable="EVENTS" scfile=/scratch/kocevski/901025/ft2_4FGL_J2326.9-4130_daily_bin1095.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/901025/Model_4FGL_J2326.9-4130_daily_bin1095.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/901025/ft1_filtered_4FGL_J2326.9-4130_daily_bin1095.fits.....................!
real 35.09
user 33.76
sys 1.20

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .11054E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    9.8070       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10188E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10143E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    1.9822       1.0000         .10000E-03   10000.    
     7 'Prefactor '    70.157       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10271E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .37615E-02   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .16640E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    11.008       1.0000         .10000E-03   10000.    
    12 'Prefactor '    4.5516       1.0000         .10000E-03   10000.    
    13 'Prefactor '    3.2535       1.0000         .10000E-03   10000.    
    14 'Prefactor '    56.080       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10131E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    9.5915       1.0000         .10000E-03   10000.    
    17 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    18 'norm      '    .10014E-03   1.0000         .10000E-03   10000.    
    19 'norm      '    .12242E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    85.634       1.0000         .10000E-03   10000.    
    22 'Prefactor '    63.615       1.0000         .10000E-03   10000.    
    23 'norm      '    1.5037       1.0000         .10000E-03   10000.    
    24 'Prefactor '    .10136E-03   1.0000         .10000E-03   10000.    
    25 'norm      '    .66280       1.0000         .10000E-03   10000.    
    26 'norm      '    .10114E-03   1.0000         .10000E-03   10000.    
    27 'Prefactor '    4.0593       1.0000         .10000E-03   10000.    
    28 'Prefactor '    5.4966       1.0000         .10000E-03   10000.    
    29 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    30 'Prefactor '    .10074E-03   1.0000         .10000E-03   10000.    
    31 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
    32 'Normalizat'    1.4236       1.0000         .10000E-01   10.000    
    33 'Prefactor '    .43010       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=   4013.465     FROM MIGRAD    STATUS=CONVERGED   1606 CALLS     5302 TOTAL
                     EDM=   .89E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    24.355        .18142E-02** at limit **
   2  Prefactor     9.8029        13.682        .12796E-03    .42646E-05
   3  Prefactor     .10000E-03    66.037        .18142E-02** at limit **
   4  Prefactor     .10000E-03    20.243        .18142E-02** at limit **
   5  Prefactor     .10000E-03    3.3161        .11240E-02** at limit **
   6  Prefactor     1.9791        4.1317        .17942E-03   -.14475E-03
   7  Prefactor     70.083        48.106        .47925E-04   -.14470E-04
   8  Prefactor     .10000E-03    6.8629        .16133E-02** at limit **
   9  Prefactor     .10000E-03    36.157        .10440    ** at limit **
  10  Prefactor     .10000E-03    68.063        .18142E-02** at limit **
  11  Prefactor     11.015        20.413        .12076E-03   -.11298E-04
  12  Prefactor     4.5523        5.4977        .15879E-03   -.75746E-04
  13  Prefactor     3.4127        189.07        .22453E-03   -.75949E-05
  14  Prefactor     56.075        62.817        .53567E-04   -.42659E-05
  15  Prefactor     .10000E-03    46.677        .36285E-03** at limit **
  16  norm          9.5927        10.440        .12940E-03    .41294E-05
  17  norm          .10000E-03    2.0770        .89167E-03** at limit **
  18  norm          .10000E-03    4.2453        .12657E-02** at limit **
  19  norm          .10000E-03    14.600        .36285E-03** at limit **
  20  Prefactor     .10000E-03    1.8402        .83875E-03** at limit **
  21  Prefactor     85.676        50.259        .43412E-04   -.17624E-04
  22  Prefactor     63.671        64.497        .50313E-04   -.67110E-05
  23  norm          1.4990        5.3368        .23683E-03    .19610E-04
  24  Prefactor     .10000E-03    6.4192        .15629E-02** at limit **
  25  norm          .66262        .93412        .73431E-03    .20930E-02
  26  norm          .10000E-03    2.5184        .97903E-03** at limit **
  27  Prefactor     4.0598        4.5481        .12757E-03   -.69912E-04
  28  Prefactor     5.4961        21.489        .17138E-03   -.23218E-06
  29  Prefactor     .10000E-03    3.3611        .11321E-02** at limit **
  30  Prefactor     .10000E-03    2.0133        .87137E-03** at limit **
  31  Prefactor     .10000E-03    53.845        .18142E-02** at limit **
  32  Normalizat    1.4234        .25705        .19801E-03   -.30767E-03
  33  Prefactor     .43051        .25812        .35544E-03   -.10721E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 9.8029
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 1.97909
  Prefactor  = 70.0827
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 11.0149
  Prefactor  = 4.55227
  Prefactor  = 3.41274
  Prefactor  = 56.0748
  Prefactor  = 0.0001
  norm       = 9.59267
  norm       = 0.0001
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 85.6759
  Prefactor  = 63.6713
  norm       = 1.49897
  Prefactor  = 0.0001
  norm       = 0.662616
  norm       = 0.0001
  Prefactor  = 4.05983
  Prefactor  = 5.49611
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Normalizat = 1.42339
  Prefactor  = 0.430515
 **********
 **   18 **HESSE 
 **********

 FCN=   4013.465     FROM HESSE     STATUS=OK           673 CALLS     5975 TOTAL
                     EDM=   .25E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    24.356        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     9.8029        13.681        .51184E-05   -1.5082    
   3  Prefactor     .10000E-03    66.048        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    20.246        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    3.3163        .22480E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     1.9791        4.1315        .71768E-05   -1.5427    
   7  Prefactor     70.083        48.105        .95851E-05   -1.4032    
   8  Prefactor     .10000E-03    6.8645        .32266E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    34.504        .10803       -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    68.097        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     11.015        20.413        .48302E-05   -1.5044    
  12  Prefactor     4.5523        5.4977        .63518E-05   -1.5281    
  13  Prefactor     3.4127        188.97        .89813E-05   -1.5338    
  14  Prefactor     56.075        62.816        .10713E-04   -1.4209    
  15  Prefactor     .10000E-03    46.679        .72569E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          9.5927        10.440        .51758E-05   -1.5088    
  17  norm          .10000E-03    2.0770        .17833E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          .10000E-03    4.2456        .25313E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  norm          .10000E-03    14.600        .72569E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    1.8402        .16775E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     85.676        50.222        .86825E-05   -1.3854    
  22  Prefactor     63.671        64.497        .10063E-04   -1.4110    
  23  norm          1.4990        5.3315        .94732E-05   -1.5463    
  24  Prefactor     .10000E-03    6.4203        .31258E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  norm          .66262        .93367        .14686E-03   -1.5545    
  26  norm          .10000E-03    2.5185        .19581E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  Prefactor     4.0598        4.5466        .51028E-05   -1.5305    
  28  Prefactor     5.4961        21.483        .68551E-05   -1.5239    
  29  Prefactor     .10000E-03    3.3613        .22641E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  30  Prefactor     .10000E-03    2.0135        .17427E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  31  Prefactor     .10000E-03    53.847        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  32  Normalizat    1.4234        .25718        .39603E-04   -.79955    
  33  Prefactor     .43051        .25824        .14218E-04   -1.1528    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.4757e-10
Minuit parameter uncertainties:
  1  2.10137e-05
  2  13.6856
  3  0.000201636
  4  3.46978e-05
  5  7.13039e-06
  6  4.13205
  7  48.1314
  8  8.14698e-05
  9  0.000150878
  10  8.00541e-06
  11  20.4254
  12  5.49829
  13  50.959
  14  62.8906
  15  0.000276431
  16  10.4416
  17  2.82395e-07
  18  4.84074e-05
  19  3.89636e-05
  20  1.31033e-07
  21  50.2467
  22  64.5674
  23  5.33318
  24  3.6435e-06
  25  0.933688
  26  5.52928e-06
  27  4.547
  28  21.5136
  29  2.32686e-06
  30  5.49885e-06
  31  0.00015567
  32  0.257416
  33  0.258944
Done.

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

Extracting fit parameters...

4FGL J2326.9-4130
   Spectrum: PowerLaw
435    Prefactor:  8.568e+01  5.025e+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:  4.305e-01  2.589e-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.423e+00  2.574e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 7.53
Ra Dec: 351.737 -41.509
Photon Index (Fixed Index): 2.78 +/- 0.00
Photon Flux (Fixed Index): 1.12e-07 +/- 6.57e-08
Energy Flux (Fixed Index): 2.55e-05 +/- 1.50e-05

Performing a free index iterative likelihood fit...

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

Done.

Freeing candidate source...
Done.

Fit tolerance = 1

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 4013.25658482
delta logL = 0.208033675727

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 4013.25616526
delta logL = 0.208453236487

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    115.99       1.0000         .10000E-03   10000.    
     2 'Index     '    2.4268       1.0000          .0000       10.000    
     3 'Normalizat'    1.4498       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .40674       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=   4013.256     FROM MIGRAD    STATUS=CONVERGED     85 CALLS      300 TOTAL
                     EDM=   .12E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     115.99        72.810        .37359E-04   -.44582E-03
   2  Index         2.4268        .51638        .54562E-02   -.31478E-03
   3  Normalizat    1.4497        .24919        .19655E-03    .12111E-03
   4  Prefactor     .40686        .25616        .36473E-03    .10651E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 115.993
  Index      = 2.42681
  Normalizat = 1.44967
  Prefactor  = 0.406859
 **********
 **   18 **HESSE 
 **********

 FCN=   4013.256     FROM HESSE     STATUS=OK            23 CALLS      323 TOTAL
                     EDM=   .13E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     115.99        71.434        .74717E-05   -1.3550    
   2  Index         2.4268        .50638        .21825E-03   -.54059    
   3  Normalizat    1.4497        .24917        .39310E-04   -.79202    
   4  Prefactor     .40686        .25613        .14589E-04   -1.1646    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.26962e-09
Minuit parameter uncertainties:
  1  71.4875
  2  0.507564
  3  0.249378
  4  0.256849
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/901025': 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) = 4013.25616514
delta logL = 0.208453350777

Extracting fit parameters...

4FGL J2326.9-4130
   Spectrum: PowerLaw
435    Prefactor:  1.160e+02  7.149e+01  1.000e-04  1.000e+04 ( 1.000e-13)
436        Index:  2.427e+00  5.076e-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:  4.069e-01  2.568e-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.450e+00  2.494e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 7.95
Ra Dec: 351.737 -41.509
Photon Index (Free Index): 2.43 +/- 0.51
Photon Flux (Free Index): 9.51e-08 +/- 5.94e-08
Energy Flux (Free Index): 3.01e-05 +/- 1.85e-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/901025/cmap_HighResolution_523152001_523411201_4FGL_J2326.9-4130_daily_bin1095.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='1.12e-07', energy_flux2='3.01e-05', photon_flux_error='6.57e-08', dlogl='2.08e-01', energy_flux='2.55e-05', photon_flux2='9.51e-08', job_status='DONE', time_completed='2021-09-29 19:35:17.946468', photon_index_error2='0.51', photon_index2='2.43', ts='7.53', fit_tolerance='1e-08', GAL='0.43', photon_index_error='0.00', energy_flux_error2='1.85e-05', EG='1.42', time_epoch_completed='1632969317.95', return_code='0', job_id='901025', GAL2='0.41', EG2='1.45', return_code2='0', energy_flux_error='1.50e-05', photon_flux_error2='5.94e-08', ts2='7.95', photon_index='2.78' WHERE bin_id='1095' AND source_name='4FGL J2326.9-4130' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep 29 19:35:17 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0120>
Subject: Job 901025: <4FGL_J2326.9-4130_daily_bin1095> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2326.9-4130_daily_bin1095 351.737 -41.5089 523152001 523411201 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 :                                   680.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             264.07 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   878 sec.
    Turnaround time :                            879 sec.

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

