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


Performing analysis on: 4FGL_J2326.9-4130_daily_bin1197
RA = 351.737, Dec = -41.5089
tmin = 549590401, tmax = 549849601
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='901203', job_status='RUN', time_executed='2021-09-29 19:21:54.546890', time_epoch_executed='1632968514.55' WHERE source_name='4FGL J2326.9-4130' and cadence='daily' and bin_id='1197'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/901203

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/901203/ft1_4FGL_J2326.9-4130_daily_bin1197.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/901203/ft2_4FGL_J2326.9-4130_daily_bin1197.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/901203/ft1_4FGL_J2326.9-4130_daily_bin1197.fits outfile=/scratch/kocevski/901203/ft1_filteredMKT_4FGL_J2326.9-4130_daily_bin1197.fits ra=351.737 dec=-41.5089 rad=12.0 tmin=549590401.0 tmax=549849601.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.72
user 2.50
sys 0.20

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/901203/ft1_filtered_4FGL_J2326.9-4130_daily_bin1197.fits" evtable="EVENTS" scfile=/scratch/kocevski/901203/ft2_4FGL_J2326.9-4130_daily_bin1197.fits sctable="SC_DATA" outfile=/scratch/kocevski/901203/ltcube_549590401_549849601_4FGL_J2326.9-4130_daily_bin1197.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/901203/ft2_4FGL_J2326.9-4130_daily_bin1197.fits
.....................!
real 12.29
user 11.90
sys 0.34

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/901203/ft1_filtered_4FGL_J2326.9-4130_daily_bin1197.fits evtable="EVENTS" scfile=/scratch/kocevski/901203/ft2_4FGL_J2326.9-4130_daily_bin1197.fits sctable="SC_DATA" expcube=/scratch/kocevski/901203/ltcube_549590401_549849601_4FGL_J2326.9-4130_daily_bin1197.fits outfile=/scratch/kocevski/901203/expmap_549590401_549849601_4FGL_J2326.9-4130_daily_bin1197.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/901203/ltcube_549590401_549849601_4FGL_J2326.9-4130_daily_bin1197.fits
.....................!
real 190.46
user 184.99
sys 5.16

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/901203/ft1_filtered_4FGL_J2326.9-4130_daily_bin1197.fits scfile=/scratch/kocevski/901203/ft2_4FGL_J2326.9-4130_daily_bin1197.fits outfile=/scratch/kocevski/901203/cmap_549590401_549849601_4FGL_J2326.9-4130_daily_bin1197.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.64
user 0.38
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/901203/ft1_filtered_4FGL_J2326.9-4130_daily_bin1197.fits scfile=/scratch/kocevski/901203/ft2_4FGL_J2326.9-4130_daily_bin1197.fits outfile=/scratch/kocevski/901203/cmap_HighResolution_549590401_549849601_4FGL_J2326.9-4130_daily_bin1197.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.57
user 0.37
sys 0.17

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/901203/ft1_filtered_4FGL_J2326.9-4130_daily_bin1197.fits evtable="EVENTS" scfile=/scratch/kocevski/901203/ft2_4FGL_J2326.9-4130_daily_bin1197.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/901203/Model_4FGL_J2326.9-4130_daily_bin1197.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/901203/ft1_filtered_4FGL_J2326.9-4130_daily_bin1197.fits.....................!
real 43.41
user 42.11
sys 1.21

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    49.044       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10012E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    16.135       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    7.7277       1.0000         .10000E-03   10000.    
     6 'Prefactor '    5.7394       1.0000         .10000E-03   10000.    
     7 'Prefactor '    3.2824       1.0000         .10000E-03   10000.    
     8 'Prefactor '    9.0144       1.0000         .10000E-03   10000.    
     9 'Prefactor '    7.0523       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .20287E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    1.4072       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10021E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    12.226       1.0000         .10000E-03   10000.    
    16 'norm      '    .11048E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    3.2038       1.0000         .10000E-03   10000.    
    18 'norm      '    .48182E-01   1.0000         .10000E-03   10000.    
    19 'norm      '    8.7889       1.0000         .10000E-03   10000.    
    20 'Prefactor '    3.3891       1.0000         .10000E-03   10000.    
    21 'Prefactor '    45.776       1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10013E-03   1.0000         .10000E-03   10000.    
    23 'norm      '    3.2334       1.0000         .10000E-03   10000.    
    24 'Prefactor '    .10045E-03   1.0000         .10000E-03   10000.    
    25 'norm      '    .82911       1.0000         .10000E-03   10000.    
    26 'norm      '    .10031E-03   1.0000         .10000E-03   10000.    
    27 'Prefactor '    .10456E-03   1.0000         .10000E-03   10000.    
    28 'Prefactor '    14.317       1.0000         .10000E-03   10000.    
    29 'Prefactor '    .10116E-03   1.0000         .10000E-03   10000.    
    30 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    31 'Prefactor '    71.617       1.0000         .10000E-03   10000.    
    32 'Normalizat'    1.1396       1.0000         .10000E-01   10.000    
    33 'Prefactor '    .78481       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=   5736.564     FROM MIGRAD    STATUS=CONVERGED    888 CALLS     4625 TOTAL
                     EDM=   .12E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  4.8%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     49.045        43.649       -.11095E-06   -.62647E-05
   2  Prefactor     .10000E-03    14.507       -.15023E-06** at limit **
   3  Prefactor     16.134        37.605       -.66963E-07   -.76033E-06
   4  Prefactor     .10000E-03    21.363       -.12610E-06** at limit **
   5  Prefactor     7.7284        7.7723       -.10217E-06   -.37412E-05
   6  Prefactor     5.7395        3.9853       -.26204E-06   -.29682E-04
   7  Prefactor     3.2209        177.45       -.63968E-05   -.96410E-05
   8  Prefactor     9.0144        7.1628        .86806E-07    .32024E-05
   9  Prefactor     7.0519        12.430        .20325E-07   -.16465E-04
  10  Prefactor     .10000E-03    5.0162       -.31894E-06** at limit **
  11  Prefactor     .10005E-03    15.103        .58615E-06** at limit **
  12  Prefactor     1.4063        4.7715       -.75168E-06   -.16586E-04
  13  Prefactor     .10000E-03    16.721        .39583E-06** at limit **
  14  Prefactor     .10000E-03    78.074        .12251E-05** at limit **
  15  Prefactor     12.222        13.290        .80058E-07   -.20201E-05
  16  norm          .10000E-03    24.435        .34357E-06** at limit **
  17  norm          3.2039        3.2049        .10486E-07    .69139E-05
  18  norm          .69124E-01    79.528        .38774E-05   -.41045E-04
  19  norm          8.7895        9.0427        .99764E-07   -.39803E-04
  20  Prefactor     3.3893        3.3904        .39359E-07    .48050E-05
  21  Prefactor     45.818        37.339        .11095E-06   -.24386E-04
  22  Prefactor     .10000E-03    21.641        .58478E-08** at limit **
  23  norm          3.2157        6.9690       -.77434E-06   -.18957E-03
  24  Prefactor     .10000E-03    5.5408        .29340E-06** at limit **
  25  norm          .82996        .88950        .18795E-07   -.95319E-05
  26  norm          .10000E-03    2.5008        .15853E-05** at limit **
  27  Prefactor     .10000E-03    2.2889       -.17698E-06** at limit **
  28  Prefactor     14.301        21.282        .17972E-06    .29329E-05
  29  Prefactor     .10000E-03    3.7990        .26608E-06** at limit **
  30  Prefactor     .10000E-03    1.1577        .11475E-06** at limit **
  31  Prefactor     71.622        57.303        .45337E-07   -.25647E-05
  32  Normalizat    1.1394        .19506        .12835E-05   -.27925E-03
  33  Prefactor     .78511        .20116       -.24276E-05   -.10815E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 49.0451
  Prefactor  = 0.0001
  Prefactor  = 16.1336
  Prefactor  = 0.0001
  Prefactor  = 7.72839
  Prefactor  = 5.73955
  Prefactor  = 3.22094
  Prefactor  = 9.01442
  Prefactor  = 7.05188
  Prefactor  = 0.0001
  Prefactor  = 0.000100047
  Prefactor  = 1.40626
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 12.2223
  norm       = 0.0001
  norm       = 3.2039
  norm       = 0.0691241
  norm       = 8.78954
  Prefactor  = 3.38927
  Prefactor  = 45.8185
  Prefactor  = 0.0001
  norm       = 3.21566
  Prefactor  = 0.0001
  norm       = 0.82996
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 14.3009
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 71.6222
  Normalizat = 1.13938
  Prefactor  = 0.785114
 **********
 **   18 **HESSE 
 **********

 FCN=   5736.564     FROM HESSE     STATUS=OK           709 CALLS     5334 TOTAL
                     EDM=   .15E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     49.045        43.672        .57261E-04   -1.4306    
   2  Prefactor     .10000E-03    14.551        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     16.134        37.581        .99710E-04   -1.4904    
   4  Prefactor     .10000E-03    21.445        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     7.7284        7.7811        .14425E-03   -1.5152    
   6  Prefactor     5.7395        3.9612        .11775E-03   -1.5229    
   7  Prefactor     3.2209        178.43        .22349E-03   -1.5349    
   8  Prefactor     9.0144        7.1655        .13349E-03   -1.5107    
   9  Prefactor     7.0519        12.418        .15106E-03   -1.5177    
  10  Prefactor     .10000E-03    5.0138        .16560E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10005E-03    80.921        .53617E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     1.4063        4.6982        .29195E-03   -1.5471    
  13  Prefactor     .10000E-03    16.742        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    78.451        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     12.222        13.222        .11456E-03   -1.5009    
  16  norm          .10000E-03    25.383        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          3.2039        3.2158        .13224E-03   -1.5350    
  18  norm          .69124E-01    4.5293        .49150E-01   -1.5655    
  19  norm          8.7895        9.0207        .67602E-03   -1.5115    
  20  Prefactor     3.3893        3.3924        .13518E-03   -1.5340    
  21  Prefactor     45.818        36.112        .59260E-04   -1.4353    
  22  Prefactor     .10000E-03    21.667        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  norm          3.2157        5.4456        .86881E-03   -1.5349    
  24  Prefactor     .10000E-03    5.5576        .17410E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  norm          .82996        .84003        .69062E-03   -1.5526    
  26  norm          .10000E-03    2.5590        .11753E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  Prefactor     .10000E-03    2.3325        .22283E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  28  Prefactor     14.301        21.172        .10586E-03   -1.4951    
  29  Prefactor     .10000E-03    3.8684        .14410E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  30  Prefactor     .10000E-03    1.1640        .79582E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  31  Prefactor     71.622        57.340        .47438E-04   -1.4013    
  32  Normalizat    1.1394        .21815        .21776E-03   -.88497    
  33  Prefactor     .78511        .22545        .28210E-03   -1.0028    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.53116e-09
Minuit parameter uncertainties:
  1  43.7002
  2  1.48523e-06
  3  37.6362
  4  4.65982e-06
  5  7.78208
  6  3.96135
  7  48.0969
  8  7.16618
  9  12.4227
  10  1.23191e-06
  11  0.0039194
  12  4.69946
  13  2.67236e-05
  14  0.000143821
  15  13.2251
  16  5.24011e-05
  17  3.21602
  18  1.11835
  19  9.02206
  20  3.3926
  21  36.1293
  22  3.87915e-06
  23  5.44639
  24  3.6421e-06
  25  0.840045
  26  9.38683e-06
  27  9.21012e-07
  28  21.183
  29  3.95804e-06
  30  8.79914e-07
  31  57.3846
  32  0.218319
  33  0.22572
Done.

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

Extracting fit parameters...

4FGL J2326.9-4130
   Spectrum: PowerLaw
435    Prefactor:  4.582e+01  3.613e+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.851e-01  2.257e-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.139e+00  2.183e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 3.74
Ra Dec: 351.737 -41.509
Photon Index (Fixed Index): 2.78 +/- 0.00
Photon Flux (Fixed Index): 6.00e-08 +/- 4.73e-08
Energy Flux (Fixed Index): 1.36e-05 +/- 1.08e-05

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

Saving results to:
/scratch/kocevski/901203/likelihoodResults_549590401_549849601_4FGL_J2326.9-4130_daily_bin1197.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) = 5736.45608255
delta logL = 0.107713495184

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5736.44842412
delta logL = 0.115371922725

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    31.633       1.0000         .10000E-03   10000.    
     2 'Index     '    3.1959       1.0000          .0000       10.000    
     3 'Normalizat'    1.1169       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .80236       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=   5736.448     FROM MIGRAD    STATUS=CONVERGED     90 CALLS      295 TOTAL
                     EDM=   .49E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     31.613        45.903        .71241E-04   -.91918E-04
   2  Index         3.1977        1.1007        .57247E-02    .17704E-04
   3  Normalizat    1.1164        .21151        .21964E-03    .11764E-03
   4  Prefactor     .80275        .22615        .27931E-03   -.16053E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 31.6127
  Index      = 3.1977
  Normalizat = 1.11635
  Prefactor  = 0.802753
 **********
 **   18 **HESSE 
 **********

 FCN=   5736.448     FROM HESSE     STATUS=OK            25 CALLS      320 TOTAL
                     EDM=   .45E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     31.613        38.597        .28497E-05   -1.4583    
   2  Index         3.1977        .92621        .22899E-03   -.36876    
   3  Normalizat    1.1164        .21046        .43928E-04   -.89229    
   4  Prefactor     .80275        .22538        .11172E-04   -.99627    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.49006e-10
Minuit parameter uncertainties:
  1  38.6271
  2  0.932406
  3  0.210619
  4  0.225638
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/901203': 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) = 5736.44841744
delta logL = 0.115378606948

Extracting fit parameters...

4FGL J2326.9-4130
   Spectrum: PowerLaw
435    Prefactor:  3.161e+01  3.863e+01  1.000e-04  1.000e+04 ( 1.000e-13)
436        Index:  3.198e+00  9.324e-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:  8.028e-01  2.256e-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.116e+00  2.106e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 4.02
Ra Dec: 351.737 -41.509
Photon Index (Free Index): 3.20 +/- 0.93
Photon Flux (Free Index): 7.64e-08 +/- 5.68e-08
Energy Flux (Free Index): 1.40e-05 +/- 9.05e-06

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/901203/cmap_HighResolution_549590401_549849601_4FGL_J2326.9-4130_daily_bin1197.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.18e-02', comment='SUCCESS', photon_flux='6.00e-08', energy_flux2='1.40e-05', photon_flux_error='4.73e-08', dlogl='1.15e-01', energy_flux='1.36e-05', photon_flux2='7.64e-08', job_status='DONE', time_completed='2021-09-29 19:37:24.028083', photon_index_error2='0.93', photon_index2='3.20', ts='3.74', fit_tolerance='1e-08', GAL='0.79', photon_index_error='0.00', photon_flux_upper_limit='1.50e-07', energy_flux_error2='9.05e-06', EG='1.14', time_epoch_completed='1632969444.03', return_code='0', job_id='901203', GAL2='0.80', EG2='1.12', return_code2='0', energy_flux_error='1.08e-05', photon_flux_error2='5.68e-08', ts2='4.02', photon_index='2.78' WHERE bin_id='1197' AND source_name='4FGL J2326.9-4130' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep 29 19:37:24 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0049>
Subject: Job 901203: <4FGL_J2326.9-4130_daily_bin1197> in cluster <slac> Done

Job <4FGL_J2326.9-4130_daily_bin1197> was submitted from host <rhel6-64d> by user <kocevski> in cluster <slac> at Wed Sep 29 19:20:54 2021
Job was executed on host(s) <bullet0049>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Sep 29 19:20:55 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:55 2021
Terminated at Wed Sep 29 19:37:24 2021
Results reported at Wed Sep 29 19:37:24 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2326.9-4130_daily_bin1197 351.737 -41.5089 549590401 549849601 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 :                                   909.00 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             285.91 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   989 sec.
    Turnaround time :                            990 sec.

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

