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


Performing analysis on: 4FGL_J2326.9-4130_daily_bin1568
RA = 351.737, Dec = -41.5089
tmin = 645753601, tmax = 646012801
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='904628', job_status='RUN', time_executed='2021-09-29 19:33:35.389796', time_epoch_executed='1632969215.39' WHERE source_name='4FGL J2326.9-4130' and cadence='daily' and bin_id='1568'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/904628

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/904628/ft1_4FGL_J2326.9-4130_daily_bin1568.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/904628/ft2_4FGL_J2326.9-4130_daily_bin1568.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/904628/ft1_4FGL_J2326.9-4130_daily_bin1568.fits outfile=/scratch/kocevski/904628/ft1_filteredMKT_4FGL_J2326.9-4130_daily_bin1568.fits ra=351.737 dec=-41.5089 rad=12.0 tmin=645753601.0 tmax=646012801.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.34
user 2.09
sys 0.19

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/904628/ft1_filtered_4FGL_J2326.9-4130_daily_bin1568.fits" evtable="EVENTS" scfile=/scratch/kocevski/904628/ft2_4FGL_J2326.9-4130_daily_bin1568.fits sctable="SC_DATA" outfile=/scratch/kocevski/904628/ltcube_645753601_646012801_4FGL_J2326.9-4130_daily_bin1568.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/904628/ft2_4FGL_J2326.9-4130_daily_bin1568.fits
.....................!
real 13.03
user 12.57
sys 0.30

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/904628/ft1_filtered_4FGL_J2326.9-4130_daily_bin1568.fits evtable="EVENTS" scfile=/scratch/kocevski/904628/ft2_4FGL_J2326.9-4130_daily_bin1568.fits sctable="SC_DATA" expcube=/scratch/kocevski/904628/ltcube_645753601_646012801_4FGL_J2326.9-4130_daily_bin1568.fits outfile=/scratch/kocevski/904628/expmap_645753601_646012801_4FGL_J2326.9-4130_daily_bin1568.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/904628/ltcube_645753601_646012801_4FGL_J2326.9-4130_daily_bin1568.fits
.....................!
real 190.70
user 185.92
sys 4.30

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/904628/ft1_filtered_4FGL_J2326.9-4130_daily_bin1568.fits scfile=/scratch/kocevski/904628/ft2_4FGL_J2326.9-4130_daily_bin1568.fits outfile=/scratch/kocevski/904628/cmap_645753601_646012801_4FGL_J2326.9-4130_daily_bin1568.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.54
user 0.37
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/904628/ft1_filtered_4FGL_J2326.9-4130_daily_bin1568.fits scfile=/scratch/kocevski/904628/ft2_4FGL_J2326.9-4130_daily_bin1568.fits outfile=/scratch/kocevski/904628/cmap_HighResolution_645753601_646012801_4FGL_J2326.9-4130_daily_bin1568.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.39
sys 0.14

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/904628/ft1_filtered_4FGL_J2326.9-4130_daily_bin1568.fits evtable="EVENTS" scfile=/scratch/kocevski/904628/ft2_4FGL_J2326.9-4130_daily_bin1568.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/904628/Model_4FGL_J2326.9-4130_daily_bin1568.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/904628/ft1_filtered_4FGL_J2326.9-4130_daily_bin1568.fits.....................!
real 36.76
user 35.46
sys 1.12

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10061E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    37.166       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10722E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    6.8120       1.0000         .10000E-03   10000.    
     6 'Prefactor '    2.8345       1.0000         .10000E-03   10000.    
     7 'Prefactor '    9.1382       1.0000         .10000E-03   10000.    
     8 'Prefactor '    8.7943       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .47746E-01   1.0000         .10000E-03   10000.    
    10 'Prefactor '    12.006       1.0000         .10000E-03   10000.    
    11 'Prefactor '    6.2964       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10018E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    2.1118       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10035E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    47.538       1.0000         .10000E-03   10000.    
    16 'norm      '    .10085E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    .13887E-01   1.0000         .10000E-03   10000.    
    18 'norm      '    .10026E-03   1.0000         .10000E-03   10000.    
    19 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    99.811       1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10241E-03   1.0000         .10000E-03   10000.    
    23 'norm      '    .11339E-03   1.0000         .10000E-03   10000.    
    24 'Prefactor '    .10154E-03   1.0000         .10000E-03   10000.    
    25 'norm      '    3.8014       1.0000         .10000E-03   10000.    
    26 'norm      '    .10395E-03   1.0000         .10000E-03   10000.    
    27 'Prefactor '    .30111       1.0000         .10000E-03   10000.    
    28 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    29 'Prefactor '    14.108       1.0000         .10000E-03   10000.    
    30 'Prefactor '    3.3945       1.0000         .10000E-03   10000.    
    31 'Prefactor '    .10031E-03   1.0000         .10000E-03   10000.    
    32 'Normalizat'    1.4608       1.0000         .10000E-01   10.000    
    33 'Prefactor '    .61223       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=   4305.930     FROM MIGRAD    STATUS=CONVERGED    947 CALLS     4712 TOTAL
                     EDM=   .34E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  5.7%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    21.977       -.10581E-06** at limit **
   2  Prefactor     37.161        31.469       -.15130E-05   -.36932E-04
   3  Prefactor     .10000E-03    38.829        .20656E-06** at limit **
   4  Prefactor     .10000E-03    27.633       -.17148E-05** at limit **
   5  Prefactor     6.8140        9.6703       -.34128E-06    .67289E-04
   6  Prefactor     2.8313        6.3833       -.64199E-06    .35564E-05
   7  Prefactor     9.1462        58.087       -.12383E-08    .97475E-05
   8  Prefactor     8.7944        11.832       -.77429E-06   -.32803E-04
   9  Prefactor     .10979E-03    89.943       -.49042E-05** at limit **
  10  Prefactor     11.999        24.970       -.28246E-06    .37413E-04
  11  Prefactor     6.3165        21.061       -.47806E-06    .47066E-04
  12  Prefactor     .10000E-03    2.5095       -.12064E-07** at limit **
  13  Prefactor     1.9447        506.09       -.38285E-05   -.25502E-05
  14  Prefactor     .10000E-03    45.877       -.59096E-06** at limit **
  15  Prefactor     47.548        33.627       -.11084E-05   -.37018E-04
  16  norm          .10000E-03    8.3616       -.10163E-06** at limit **
  17  norm          .10014E-03    135.43       -.38017E-05** at limit **
  18  norm          .10000E-03    1.8814        .37255E-08** at limit **
  19  norm          .10000E-03    12.810        .59444E-07** at limit **
  20  Prefactor     .10000E-03    3.1503       -.25271E-07** at limit **
  21  Prefactor     99.774        52.628       -.87502E-06    .46300E-04
  22  Prefactor     .10000E-03    195.62        .20678E-05** at limit **
  23  norm          .10000E-03    2.4886        .54356E-07** at limit **
  24  Prefactor     .10000E-03    10.018       -.75814E-07** at limit **
  25  norm          3.8031        2.0606       -.16312E-06   -.15564E-03
  26  norm          .10000E-03    2.0938       -.80186E-08** at limit **
  27  Prefactor     .29782        2.9749       -.34956E-06    .17542E-03
  28  Prefactor     .10000E-03    27.019       -.56525E-08** at limit **
  29  Prefactor     14.105        7.9705        .52099E-07    .20329E-03
  30  Prefactor     3.3925        5.4941       -.24734E-06   -.13862E-04
  31  Prefactor     .10000E-03    30.169       -.97273E-07** at limit **
  32  Normalizat    1.4608        .28631        .43060E-05    .22373E-03
  33  Prefactor     .61231        .26535       -.25261E-05    .24783E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 37.1606
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 6.81403
  Prefactor  = 2.83132
  Prefactor  = 9.1462
  Prefactor  = 8.79442
  Prefactor  = 0.000109789
  Prefactor  = 11.999
  Prefactor  = 6.31645
  Prefactor  = 0.0001
  Prefactor  = 1.94467
  Prefactor  = 0.0001
  Prefactor  = 47.5484
  norm       = 0.0001
  norm       = 0.000100138
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 99.774
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 3.80312
  norm       = 0.0001
  Prefactor  = 0.297817
  Prefactor  = 0.0001
  Prefactor  = 14.1051
  Prefactor  = 3.39251
  Prefactor  = 0.0001
  Normalizat = 1.46082
  Prefactor  = 0.612314
 **********
 **   18 **HESSE 
 **********

 FCN=   4305.930     FROM HESSE     STATUS=OK           711 CALLS     5423 TOTAL
                     EDM=   .96E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    21.992        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     37.161        31.440        .65740E-04   -1.4488    
   3  Prefactor     .10000E-03    38.869        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    27.819        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     6.8140        9.6567        .15373E-03   -1.5186    
   6  Prefactor     2.8313        6.3545        .23198E-03   -1.5371    
   7  Prefactor     9.1462        57.841        .13258E-03   -1.5103    
   8  Prefactor     8.7944        11.766        .13516E-03   -1.5115    
   9  Prefactor     .10979E-03    22.185        .98267E-01   -1.5707    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     11.999        24.941        .11561E-03   -1.5015    
  11  Prefactor     6.3165        21.137        .15997E-03   -1.5205    
  12  Prefactor     .10000E-03    2.5103        .10152E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     1.9447        510.74        .28388E-03   -1.5429    
  14  Prefactor     .10000E-03    45.931        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     47.548        33.567        .58157E-04   -1.4328    
  16  norm          .10000E-03    8.3832        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          .10014E-03    6.6273        .57270E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          .10000E-03    1.8816        .87898E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  norm          .10000E-03    12.938        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    3.1558        .11372E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     99.774        52.785        .40240E-04   -1.3707    
  22  Prefactor     .10000E-03    196.11        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  norm          .10000E-03    2.4939        .10088E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     .10000E-03    10.055        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  norm          3.8031        2.0433        .61314E-04   -1.5318    
  26  norm          .10000E-03    2.1096        .92673E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  Prefactor     .29782        10.668        .20888E-02   -1.5599    
  28  Prefactor     .10000E-03    27.087        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  29  Prefactor     14.105        8.0077        .10664E-03   -1.4957    
  30  Prefactor     3.3925        5.4992        .90952E-03   -1.5340    
  31  Prefactor     .10000E-03    30.182        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  32  Normalizat    1.4608        .30959        .22465E-03   -.78885    
  33  Prefactor     .61231        .30006        .34896E-03   -1.0707    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 9.58459e-10
Minuit parameter uncertainties:
  1  2.06032e-05
  2  31.4542
  3  6.34936e-05
  4  0.000162809
  5  9.65891
  6  6.35602
  7  46.0667
  8  11.7686
  9  0.0294848
  10  24.9622
  11  21.1618
  12  1.57837e-06
  13  63.5845
  14  3.82251e-05
  15  33.5806
  16  7.94206e-06
  17  0.00191577
  18  1.4884e-07
  19  4.04923e-05
  20  6.88668e-07
  21  52.8102
  22  0.000360962
  23  9.19949e-07
  24  6.50647e-06
  25  2.04333
  26  3.04226e-06
  27  3.56505
  28  3.04219e-05
  29  8.00831
  30  5.50004
  31  2.1435e-05
  32  0.309995
  33  0.30085
Done.

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

Extracting fit parameters...

4FGL J2326.9-4130
   Spectrum: PowerLaw
435    Prefactor:  9.977e+01  5.281e+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:  6.123e-01  3.009e-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.461e+00  3.100e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 6.63
Ra Dec: 351.737 -41.509
Photon Index (Fixed Index): 2.78 +/- 0.00
Photon Flux (Fixed Index): 1.31e-07 +/- 6.91e-08
Energy Flux (Fixed Index): 2.97e-05 +/- 1.57e-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) = 4304.05216678
delta logL = 1.87751486149

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 4304.03177406
delta logL = 1.89790758747

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    16.247       1.0000         .10000E-03   10000.    
     2 'Index     '    4.2919       1.0000          .0000       10.000    
     3 'Normalizat'    1.3338       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .71678       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=   4304.032     FROM MIGRAD    STATUS=CONVERGED     89 CALLS      303 TOTAL
                     EDM=   .72E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     16.230        125.08        .99321E-04   -.40463E-03
   2  Index         4.2924        3.1166        .29062E-02   -.94397E-04
   3  Normalizat    1.3338        .28849        .23259E-03    .32847E-04
   4  Prefactor     .71679        .30592        .32492E-03   -.48285E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 16.2304
  Index      = 4.29245
  Normalizat = 1.33383
  Prefactor  = 0.716789
 **********
 **   18 **HESSE 
 **********

 FCN=   4304.032     FROM HESSE     STATUS=OK            25 CALLS      328 TOTAL
                     EDM=   .15E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     16.230        29.398        .39728E-05   -1.4902    
   2  Index         4.2924        1.0883        .11625E-03   -.14199    
   3  Normalizat    1.3338        .29060        .93034E-05   -.82562    
   4  Prefactor     .71679        .30190        .12997E-04   -1.0287    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.459e-10
Minuit parameter uncertainties:
  1  29.4243
  2  1.09725
  3  0.290954
  4  0.302597
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/904628': 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) = 4304.03177385
delta logL = 1.89790780137

Extracting fit parameters...

4FGL J2326.9-4130
   Spectrum: PowerLaw
435    Prefactor:  1.623e+01  2.942e+01  1.000e-04  1.000e+04 ( 1.000e-13)
436        Index:  4.292e+00  1.097e+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:  7.168e-01  3.026e-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.334e+00  2.910e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 10.85
Ra Dec: 351.737 -41.509
Photon Index (Free Index): 4.29 +/- 1.10
Photon Flux (Free Index): 2.25e-07 +/- 9.16e-08
Energy Flux (Free Index): 3.22e-05 +/- 1.34e-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/904628/cmap_HighResolution_645753601_646012801_4FGL_J2326.9-4130_daily_bin1568.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='1.31e-07', energy_flux2='3.22e-05', photon_flux_error='6.91e-08', dlogl='1.90e+00', energy_flux='2.97e-05', photon_flux2='2.25e-07', job_status='DONE', time_completed='2021-09-29 19:44:56.949436', photon_index_error2='1.10', photon_index2='4.29', ts='6.63', fit_tolerance='1e-08', GAL='0.61', photon_index_error='0.00', energy_flux_error2='1.34e-05', EG='1.46', time_epoch_completed='1632969896.95', return_code='0', job_id='904628', GAL2='0.72', EG2='1.33', return_code2='0', energy_flux_error='1.57e-05', photon_flux_error2='9.16e-08', ts2='10.85', photon_index='2.78' WHERE bin_id='1568' AND source_name='4FGL J2326.9-4130' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep 29 19:44:56 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0209>
Subject: Job 904628: <4FGL_J2326.9-4130_daily_bin1568> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2326.9-4130_daily_bin1568 351.737 -41.5089 645753601 646012801 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 :                                   676.00 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             281.04 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              7
    Max Threads :                                21
    Run time :                                   871 sec.
    Turnaround time :                            872 sec.

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

