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


Performing analysis on: 4FGL_J2326.9-4130_daily_bin999
RA = 351.737, Dec = -41.5089
tmin = 498268801, tmax = 498528001
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='900874', job_status='RUN', time_executed='2021-09-29 19:20:39.672376', time_epoch_executed='1632968439.67' WHERE source_name='4FGL J2326.9-4130' and cadence='daily' and bin_id='999'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/900874

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

Retrieving the FT1 file...

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

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

Retrieving 48 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/900874/ft1_4FGL_J2326.9-4130_daily_bin999.fits


Retrieving the FT1 file...

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

Retrieving 48 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/900874/ft2_4FGL_J2326.9-4130_daily_bin999.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/900874/ft1_4FGL_J2326.9-4130_daily_bin999.fits outfile=/scratch/kocevski/900874/ft1_filteredMKT_4FGL_J2326.9-4130_daily_bin999.fits ra=351.737 dec=-41.5089 rad=12.0 tmin=498268801.0 tmax=498528001.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.83
user 4.60
sys 0.21

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

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

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/900874/ft1_filtered_4FGL_J2326.9-4130_daily_bin999.fits evtable="EVENTS" scfile=/scratch/kocevski/900874/ft2_4FGL_J2326.9-4130_daily_bin999.fits sctable="SC_DATA" expcube=/scratch/kocevski/900874/ltcube_498268801_498528001_4FGL_J2326.9-4130_daily_bin999.fits outfile=/scratch/kocevski/900874/expmap_498268801_498528001_4FGL_J2326.9-4130_daily_bin999.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/900874/ltcube_498268801_498528001_4FGL_J2326.9-4130_daily_bin999.fits
.....................!
real 191.36
user 185.24
sys 5.43

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/900874/ft1_filtered_4FGL_J2326.9-4130_daily_bin999.fits scfile=/scratch/kocevski/900874/ft2_4FGL_J2326.9-4130_daily_bin999.fits outfile=/scratch/kocevski/900874/cmap_498268801_498528001_4FGL_J2326.9-4130_daily_bin999.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.53
user 0.37
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/900874/ft1_filtered_4FGL_J2326.9-4130_daily_bin999.fits scfile=/scratch/kocevski/900874/ft2_4FGL_J2326.9-4130_daily_bin999.fits outfile=/scratch/kocevski/900874/cmap_HighResolution_498268801_498528001_4FGL_J2326.9-4130_daily_bin999.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.55
user 0.38
sys 0.15

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/900874/ft1_filtered_4FGL_J2326.9-4130_daily_bin999.fits evtable="EVENTS" scfile=/scratch/kocevski/900874/ft2_4FGL_J2326.9-4130_daily_bin999.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/900874/Model_4FGL_J2326.9-4130_daily_bin999.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/900874/ft1_filtered_4FGL_J2326.9-4130_daily_bin999.fits......................!
real 33.09
user 31.75
sys 1.23

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .74811E-02   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .34756E-01   1.0000         .10000E-03   10000.    
     3 'Prefactor '    3.6285       1.0000         .10000E-03   10000.    
     4 'Prefactor '    26.918       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    31.641       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    15.253       1.0000         .10000E-03   10000.    
    11 'Prefactor '    24.573       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10034E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    37.823       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10162E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    6.4779       1.0000         .10000E-03   10000.    
    16 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    6.4334       1.0000         .10000E-03   10000.    
    18 'norm      '    5.0429       1.0000         .10000E-03   10000.    
    19 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .12185E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    62.143       1.0000         .10000E-03   10000.    
    22 'Prefactor '    15.247       1.0000         .10000E-03   10000.    
    23 'norm      '    .10379E-03   1.0000         .10000E-03   10000.    
    24 'Prefactor '    25.229       1.0000         .10000E-03   10000.    
    25 'norm      '    .10530E-03   1.0000         .10000E-03   10000.    
    26 'norm      '    7.0039       1.0000         .10000E-03   10000.    
    27 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    28 'Prefactor '    8.1226       1.0000         .10000E-03   10000.    
    29 'Prefactor '    1.6947       1.0000         .10000E-03   10000.    
    30 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    31 'Prefactor '    .77377       1.0000         .10000E-03   10000.    
    32 'Normalizat'    1.0287       1.0000         .10000E-01   10.000    
    33 'Prefactor '    .61710       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=   3895.767     FROM MIGRAD    STATUS=CONVERGED   1677 CALLS     5463 TOTAL
                     EDM=   .44E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    291.03        .37181E-03** at limit **
   2  Prefactor     .14548        18.164        .80127E-01    .65699E-04
   3  Prefactor     3.6189        77.254        .21209E-03   -.15009E-05
   4  Prefactor     26.922        26.390        .77214E-04    .14208E-04
   5  Prefactor     .10000E-03    2.8458        .10268E-02** at limit **
   6  Prefactor     .10000E-03    1.3378        .70279E-03** at limit **
   7  Prefactor     31.652        55.055        .71232E-04   -.14603E-04
   8  Prefactor     .10000E-03    13.296        .28720E-02** at limit **
   9  Prefactor     .10000E-03    14.577        .18142E-02** at limit **
  10  Prefactor     15.260        23.609        .10255E-03   -.83142E-05
  11  Prefactor     24.579        17.040        .80808E-04    .28138E-06
  12  Prefactor     .10000E-03    4.8707        .13379E-02** at limit **
  13  Prefactor     37.834        39.935        .65169E-04    .39007E-04
  14  Prefactor     .10000E-03    138.40        .18142E-02** at limit **
  15  Prefactor     6.4854        19.390        .15769E-03   -.47188E-04
  16  norm          .10000E-03    4.9191        .13515E-02** at limit **
  17  norm          6.4339        8.0497        .15824E-03   -.10691E-03
  18  norm          5.0432        6.5855        .17242E-03    .95540E-04
  19  norm          .10000E-03    2.8347        .10253E-02** at limit **
  20  Prefactor     .10000E-03    23.821        .32827E-02** at limit **
  21  Prefactor     62.167        41.164        .50901E-04    .11283E-03
  22  Prefactor     15.279        35.532        .10257E-03    .23608E-04
  23  norm          .10000E-03    12.491        .21855E-02** at limit **
  24  Prefactor     25.237        17.761        .79752E-04   -.20892E-03
  25  norm          .10001E-03    4.1226        .11043E-02** at limit **
  26  norm          7.0044        4.4145        .99315E-04    .14533E-03
  27  Prefactor     .10000E-03    1.5140        .74728E-03** at limit **
  28  Prefactor     8.1239        20.228        .14068E-03   -.13698E-04
  29  Prefactor     1.6977        4.9171        .21647E-03    .29899E-03
  30  Prefactor     .10000E-03    1.1642        .65683E-03** at limit **
  31  Prefactor     .75893        67.640        .14043        .15331E-03
  32  Normalizat    1.0283        .22830        .20004E-03   -.53509E-04
  33  Prefactor     .61751        .23690        .27649E-03    .25207E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100001
  Prefactor  = 0.145482
  Prefactor  = 3.6189
  Prefactor  = 26.9221
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 31.6522
  Prefactor  = 0.000100001
  Prefactor  = 0.0001
  Prefactor  = 15.26
  Prefactor  = 24.5789
  Prefactor  = 0.0001
  Prefactor  = 37.8341
  Prefactor  = 0.0001
  Prefactor  = 6.48542
  norm       = 0.0001
  norm       = 6.4339
  norm       = 5.04322
  norm       = 0.0001
  Prefactor  = 0.000100001
  Prefactor  = 62.1673
  Prefactor  = 15.2785
  norm       = 0.0001
  Prefactor  = 25.2372
  norm       = 0.000100011
  norm       = 7.0044
  Prefactor  = 0.0001
  Prefactor  = 8.12389
  Prefactor  = 1.69773
  Prefactor  = 0.0001
  Prefactor  = 0.758935
  Normalizat = 1.02826
  Prefactor  = 0.617507
 **********
 **   18 **HESSE 
 **********

 FCN=   3895.767     FROM HESSE     STATUS=OK           681 CALLS     6144 TOTAL
                     EDM=   .44E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    291.04        .74362E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .14548        17.629        .82035E-01   -1.5632    
   3  Prefactor     3.6189        77.237        .84837E-05   -1.5327    
   4  Prefactor     26.922        26.391        .30886E-05   -1.4670    
   5  Prefactor     .10000E-03    2.8459        .20535E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    1.3379        .14056E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     31.652        55.023        .28493E-05   -1.4582    
   8  Prefactor     .10000E-03    13.372        .57439E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    14.579        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     15.260        23.606        .41022E-05   -1.4926    
  11  Prefactor     24.579        17.039        .32323E-05   -1.4716    
  12  Prefactor     .10000E-03    4.8717        .26758E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     37.834        39.934        .13034E-04   -1.4477    
  14  Prefactor     .10000E-03    138.45        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     6.4854        19.385        .63074E-05   -1.5199    
  16  norm          .10000E-03    4.9192        .27030E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          6.4339        8.0486        .63295E-05   -1.5201    
  18  norm          5.0432        6.5837        .68969E-05   -1.5259    
  19  norm          .10000E-03    2.8348        .20505E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    23.897        .65653E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     62.167        41.142        .10180E-04   -1.4129    
  22  Prefactor     15.279        35.529        .41030E-05   -1.4926    
  23  norm          .10000E-03    12.515        .43710E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     25.237        17.714        .15950E-04   -1.4703    
  25  norm          .10001E-03    4.1425        .22086E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  norm          7.0044        4.4143        .19863E-04   -1.5179    
  27  Prefactor     .10000E-03    1.5140        .14946E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  28  Prefactor     8.1239        20.224        .56270E-05   -1.5138    
  29  Prefactor     1.6977        4.9127        .86587E-05   -1.5447    
  30  Prefactor     .10000E-03    1.1642        .13137E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  31  Prefactor     .75893        65.361        .14386       -1.5534    
  32  Normalizat    1.0283        .22852        .80014E-05   -.92090    
  33  Prefactor     .61751        .23712        .11060E-04   -1.0685    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.37727e-09
Minuit parameter uncertainties:
  1  0.00120632
  2  3.20284
  3  33.4862
  4  26.402
  5  1.25452e-05
  6  2.25413e-06
  7  55.1113
  8  0.000255109
  9  4.67981e-06
  10  23.6207
  11  17.0426
  12  8.00069e-06
  13  39.9618
  14  0.000523687
  15  19.404
  16  1.67246e-06
  17  8.04996
  18  6.58467
  19  6.5252e-06
  20  0.000285063
  21  41.1611
  22  35.578
  23  6.5368e-05
  24  17.7176
  25  0.000429338
  26  4.41447
  27  8.71379e-06
  28  20.2409
  29  4.9139
  30  3.59446e-06
  31  14.1012
  32  0.22874
  33  0.237509
Done.

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

Extracting fit parameters...

4FGL J2326.9-4130
   Spectrum: PowerLaw
435    Prefactor:  6.217e+01  4.116e+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.175e-01  2.375e-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.028e+00  2.287e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 4.28
Ra Dec: 351.737 -41.509
Photon Index (Fixed Index): 2.78 +/- 0.00
Photon Flux (Fixed Index): 8.14e-08 +/- 5.38e-08
Energy Flux (Fixed Index): 1.85e-05 +/- 1.23e-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) = 3895.70146988
delta logL = 0.0659079551278

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 3895.69671597
delta logL = 0.0706618638869

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    43.356       1.0000         .10000E-03   10000.    
     2 'Index     '    3.1009       1.0000          .0000       10.000    
     3 'Normalizat'    1.0126       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .63150       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=   3895.697     FROM MIGRAD    STATUS=CONVERGED     84 CALLS      292 TOTAL
                     EDM=   .26E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     43.346        68.573        .60885E-04   -.42480E-04
   2  Index         3.1012        1.1159        .47900E-02   -.33894E-04
   3  Normalizat    1.0123        .22109        .20139E-03   -.17046E-03
   4  Prefactor     .63184        .23821        .27366E-03   -.25453E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 43.3457
  Index      = 3.10121
  Normalizat = 1.01229
  Prefactor  = 0.631845
 **********
 **   18 **HESSE 
 **********

 FCN=   3895.697     FROM HESSE     STATUS=OK            25 CALLS      317 TOTAL
                     EDM=   .28E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     43.346        57.074        .24354E-05   -1.4390    
   2  Index         3.1012        .93010        .19160E-03   -.38953    
   3  Normalizat    1.0123        .22020        .40277E-04   -.92620    
   4  Prefactor     .63184        .23725        .10946E-04   -1.0626    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.84562e-10
Minuit parameter uncertainties:
  1  57.1462
  2  0.936488
  3  0.220401
  4  0.237628
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/900874': 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) = 3895.6967147
delta logL = 0.0706631330377

Extracting fit parameters...

4FGL J2326.9-4130
   Spectrum: PowerLaw
435    Prefactor:  4.335e+01  5.715e+01  1.000e-04  1.000e+04 ( 1.000e-13)
436        Index:  3.101e+00  9.365e-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:  6.318e-01  2.376e-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.012e+00  2.204e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 4.48
Ra Dec: 351.737 -41.509
Photon Index (Free Index): 3.10 +/- 0.94
Photon Flux (Free Index): 9.07e-08 +/- 5.90e-08
Energy Flux (Free Index): 1.73e-05 +/- 1.10e-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/900874/cmap_HighResolution_498268801_498528001_4FGL_J2326.9-4130_daily_bin999.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='8.14e-08', energy_flux2='1.73e-05', photon_flux_error='5.38e-08', dlogl='7.07e-02', energy_flux='1.85e-05', photon_flux2='9.07e-08', job_status='DONE', time_completed='2021-09-29 19:32:10.593426', photon_index_error2='0.94', photon_index2='3.10', ts='4.28', fit_tolerance='1e-08', GAL='0.62', photon_index_error='0.00', energy_flux_error2='1.10e-05', EG='1.03', time_epoch_completed='1632969130.59', return_code='0', job_id='900874', GAL2='0.63', EG2='1.01', return_code2='0', energy_flux_error='1.23e-05', photon_flux_error2='5.90e-08', ts2='4.48', photon_index='2.78' WHERE bin_id='999' AND source_name='4FGL J2326.9-4130' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep 29 19:32:10 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0221>
Subject: Job 900874: <4FGL_J2326.9-4130_daily_bin999> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2326.9-4130_daily_bin999 351.737 -41.5089 498268801 498528001 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 :                                   686.27 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             296.95 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   704 sec.
    Turnaround time :                            706 sec.

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

