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


Performing analysis on: 4FGL_J2326.9-4130_daily_bin1588
RA = 351.737, Dec = -41.5089
tmin = 650937601, tmax = 651196801
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='904660', job_status='RUN', time_executed='2021-09-29 19:33:35.139771', time_epoch_executed='1632969215.14' WHERE source_name='4FGL J2326.9-4130' and cadence='daily' and bin_id='1588'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/904660

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/904660/ft1_4FGL_J2326.9-4130_daily_bin1588.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/904660/ft2_4FGL_J2326.9-4130_daily_bin1588.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/904660/ft1_4FGL_J2326.9-4130_daily_bin1588.fits outfile=/scratch/kocevski/904660/ft1_filteredMKT_4FGL_J2326.9-4130_daily_bin1588.fits ra=351.737 dec=-41.5089 rad=12.0 tmin=650937601.0 tmax=651196801.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 3.70
user 3.44
sys 0.22

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/904660/ft1_filtered_4FGL_J2326.9-4130_daily_bin1588.fits" evtable="EVENTS" scfile=/scratch/kocevski/904660/ft2_4FGL_J2326.9-4130_daily_bin1588.fits sctable="SC_DATA" outfile=/scratch/kocevski/904660/ltcube_650937601_651196801_4FGL_J2326.9-4130_daily_bin1588.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/904660/ft2_4FGL_J2326.9-4130_daily_bin1588.fits
.....................!
real 12.08
user 11.74
sys 0.31

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/904660/ft1_filtered_4FGL_J2326.9-4130_daily_bin1588.fits evtable="EVENTS" scfile=/scratch/kocevski/904660/ft2_4FGL_J2326.9-4130_daily_bin1588.fits sctable="SC_DATA" expcube=/scratch/kocevski/904660/ltcube_650937601_651196801_4FGL_J2326.9-4130_daily_bin1588.fits outfile=/scratch/kocevski/904660/expmap_650937601_651196801_4FGL_J2326.9-4130_daily_bin1588.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/904660/ltcube_650937601_651196801_4FGL_J2326.9-4130_daily_bin1588.fits
.....................!
real 191.27
user 186.22
sys 4.72

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/904660/ft1_filtered_4FGL_J2326.9-4130_daily_bin1588.fits scfile=/scratch/kocevski/904660/ft2_4FGL_J2326.9-4130_daily_bin1588.fits outfile=/scratch/kocevski/904660/cmap_650937601_651196801_4FGL_J2326.9-4130_daily_bin1588.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.38
sys 0.14

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

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    18.297       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10128E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10015E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    1.2978       1.0000         .10000E-03   10000.    
     5 'Prefactor '    14.076       1.0000         .10000E-03   10000.    
     6 'Prefactor '    1.7630       1.0000         .10000E-03   10000.    
     7 'Prefactor '    3.5011       1.0000         .10000E-03   10000.    
     8 'Prefactor '    5.6402       1.0000         .10000E-03   10000.    
     9 'Prefactor '    21.307       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10264E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    22.288       1.0000         .10000E-03   10000.    
    12 'Prefactor '    8.8327       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10103E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    15.337       1.0000         .10000E-03   10000.    
    16 'norm      '    .10042E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    .10006E-03   1.0000         .10000E-03   10000.    
    18 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    19 'norm      '    13.893       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    3.5935       1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10853E-03   1.0000         .10000E-03   10000.    
    23 'norm      '    .52043E-03   1.0000         .10000E-03   10000.    
    24 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
    25 'norm      '    1.8382       1.0000         .10000E-03   10000.    
    26 'norm      '    .10011E-03   1.0000         .10000E-03   10000.    
    27 'Prefactor '    .10013E-03   1.0000         .10000E-03   10000.    
    28 'Prefactor '    68.898       1.0000         .10000E-03   10000.    
    29 'Prefactor '    21.463       1.0000         .10000E-03   10000.    
    30 'Prefactor '    .10015E-03   1.0000         .10000E-03   10000.    
    31 'Prefactor '    .10109E-03   1.0000         .10000E-03   10000.    
    32 'Normalizat'    .91720       1.0000         .10000E-01   10.000    
    33 'Prefactor '    .93777       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=   3771.270     FROM MIGRAD    STATUS=CONVERGED    883 CALLS     4592 TOTAL
                     EDM=   .11E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.8%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     18.303        42.449        .11719E-05    .79656E-05
   2  Prefactor     .10000E-03    11.008       -.26359E-06** at limit **
   3  Prefactor     .10000E-03    24.169        .21080E-05** at limit **
   4  Prefactor     1.2923        185.94        .46752E-05   -.34886E-05
   5  Prefactor     14.077        10.954       -.33382E-07   -.81395E-04
   6  Prefactor     1.7628        4.6171        .41216E-06   -.11595E-03
   7  Prefactor     3.5079        202.83        .30709E-05    .39626E-05
   8  Prefactor     5.6402        9.0341        .22993E-06   -.28611E-04
   9  Prefactor     21.309        21.018        .94489E-07   -.54531E-05
  10  Prefactor     .10000E-03    14.059        .73880E-06** at limit **
  11  Prefactor     22.291        20.568        .26830E-06   -.91767E-05
  12  Prefactor     8.8332        10.396        .14423E-05   -.28231E-03
  13  Prefactor     .10000E-03    19.187       -.26897E-05** at limit **
  14  Prefactor     .10000E-03    29.557       -.54549E-08** at limit **
  15  Prefactor     15.347        21.649        .14402E-06   -.37606E-04
  16  norm          .10000E-03    39.189       -.37512E-05** at limit **
  17  norm          .10000E-03    2.6702        .16710E-08** at limit **
  18  norm          .10000E-03    2.8311        .45292E-06** at limit **
  19  norm          13.893        13.025        .75696E-07   -.14629E-03
  20  Prefactor     .10000E-03    2.6840        .12297E-07** at limit **
  21  Prefactor     3.6825        78.833       -.12664E-04   -.18864E-03
  22  Prefactor     .10000E-03    51.041        .66210E-05** at limit **
  23  norm          .10009E-03    4.2684        .31925E-05** at limit **
  24  Prefactor     .10000E-03    23.947        .22712E-05** at limit **
  25  norm          1.8382        1.6361        .10993E-06   -.17883E-03
  26  norm          .10000E-03    3.5769        .62804E-06** at limit **
  27  Prefactor     .10000E-03    2.5016       -.51690E-07** at limit **
  28  Prefactor     68.885        38.878        .12474E-06   -.78347E-04
  29  Prefactor     21.461        10.779        .12196E-06   -.43879E-04
  30  Prefactor     .10000E-03    3.3318        .10627E-07** at limit **
  31  Prefactor     .10000E-03    38.490       -.37846E-05** at limit **
  32  Normalizat    .91716        .24008       -.75762E-06   -.33314E-03
  33  Prefactor     .93782        .24656       -.86475E-06   -.30218E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 18.303
  Prefactor  = 0.0001
  Prefactor  = 0.000100001
  Prefactor  = 1.2923
  Prefactor  = 14.077
  Prefactor  = 1.76276
  Prefactor  = 3.50787
  Prefactor  = 5.64021
  Prefactor  = 21.3088
  Prefactor  = 0.0001
  Prefactor  = 22.291
  Prefactor  = 8.83324
  Prefactor  = 0.000100001
  Prefactor  = 0.0001
  Prefactor  = 15.3469
  norm       = 0.000100001
  norm       = 0.0001
  norm       = 0.0001
  norm       = 13.8932
  Prefactor  = 0.0001
  Prefactor  = 3.68245
  Prefactor  = 0.000100005
  norm       = 0.000100085
  Prefactor  = 0.000100001
  norm       = 1.83816
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 68.885
  Prefactor  = 21.4607
  Prefactor  = 0.0001
  Prefactor  = 0.000100002
  Normalizat = 0.917162
  Prefactor  = 0.937815
 **********
 **   18 **HESSE 
 **********

 FCN=   3771.270     FROM HESSE     STATUS=OK           691 CALLS     5283 TOTAL
                     EDM=   .75E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     18.303        42.445        .93635E-04   -1.4852    
   2  Prefactor     .10000E-03    11.015        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    24.268        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     1.2923        180.74        .38810E-03   -1.5481    
   5  Prefactor     14.077        10.731        .10676E-03   -1.4957    
   6  Prefactor     1.7628        4.5789        .20066E-03   -1.5442    
   7  Prefactor     3.5079        201.73        .21608E-03   -1.5333    
   8  Prefactor     5.6402        9.0495        .16915E-03   -1.5233    
   9  Prefactor     21.309        21.021        .86772E-04   -1.4784    
  10  Prefactor     .10000E-03    14.078        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     22.291        20.571        .84844E-04   -1.4763    
  12  Prefactor     8.8332        10.330        .67433E-03   -1.5113    
  13  Prefactor     .10000E-03    19.287        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    29.567        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     15.347        21.659        .10227E-03   -1.4924    
  16  norm          .10000E-03    39.959        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          .10000E-03    2.6706        .98003E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          .10000E-03    2.8440        .10098E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  norm          13.893        13.025        .10746E-03   -1.4962    
  20  Prefactor     .10000E-03    2.6866        .98241E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     3.6825        81.995        .21317E-03   -1.5324    
  22  Prefactor     .10000E-03    51.916        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  norm          .10009E-03    13.053        .20322E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     .10000E-03    24.304        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  norm          1.8382        1.6135        .67937E-04   -1.5437    
  26  norm          .10000E-03    3.6208        .11358E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  Prefactor     .10000E-03    2.5199        .94693E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  28  Prefactor     68.885        38.958        .48358E-04   -1.4046    
  29  Prefactor     21.461        10.835        .86458E-04   -1.4781    
  30  Prefactor     .10000E-03    3.3738        .10936E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  31  Prefactor     .10000E-03    38.704        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  32  Normalizat    .91716        .28701        .24680E-03   -.95860    
  33  Prefactor     .93782        .29318        .26400E-03   -.94832    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 7.50232e-09
Minuit parameter uncertainties:
  1  42.5155
  2  1.15228e-05
  3  0.0002293
  4  30.6595
  5  10.7322
  6  4.57978
  7  53.3926
  8  9.05171
  9  21.0284
  10  5.00985e-05
  11  20.5773
  12  10.3324
  13  0.000242638
  14  6.42357e-06
  15  21.6699
  16  0.000292241
  17  1.1008e-07
  18  1.18886e-06
  19  13.0275
  20  1.13536e-06
  21  34.8065
  22  0.000990779
  23  0.00210897
  24  0.000244757
  25  1.61357
  26  1.50181e-06
  27  3.66676e-06
  28  38.972
  29  10.8362
  30  6.89779e-06
  31  0.000486606
  32  0.287491
  33  0.293674
Done.

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

Extracting fit parameters...

4FGL J2326.9-4130
   Spectrum: PowerLaw
435    Prefactor:  3.682e+00  3.481e+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:  9.378e-01  2.937e-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:  9.172e-01  2.875e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/904660/likelihoodResults_650937601_651196801_4FGL_J2326.9-4130_daily_bin1588.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) = 3771.24014214
delta logL = 0.0301075982657

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 3771.23867914
delta logL = 0.0315706019728

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    12.401       1.0000         .10000E-03   10000.    
     2 'Index     '    2.1917       1.0000          .0000       10.000    
     3 'Normalizat'    .91978       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .93190       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=   3771.239     FROM MIGRAD    STATUS=CONVERGED     99 CALLS      307 TOTAL
                     EDM=   .50E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     12.474        49.310        .11375E-03   -.52870E-04
   2  Index         2.1960        1.6445        .12847E-01    .34754E-04
   3  Normalizat    .91975        .26236        .24648E-03   -.79658E-04
   4  Prefactor     .93179        .28536        .26471E-03    .64184E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 12.4743
  Index      = 2.19604
  Normalizat = 0.919755
  Prefactor  = 0.931791
 **********
 **   18 **HESSE 
 **********

 FCN=   3771.239     FROM HESSE     STATUS=OK            23 CALLS      330 TOTAL
                     EDM=   .47E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     12.474        48.855        .45500E-05   -1.5001    
   2  Index         2.1960        1.6300        .51388E-03   -.59534    
   3  Normalizat    .91975        .26263        .98590E-05   -.95769    
   4  Prefactor     .93179        .28562        .10589E-04   -.95039    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.74492e-10
Minuit parameter uncertainties:
  1  49.0128
  2  1.67537
  3  0.263
  4  0.286077
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/904660': 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) = 3771.23867403
delta logL = 0.0315757130725

Extracting fit parameters...

4FGL J2326.9-4130
   Spectrum: PowerLaw
435    Prefactor:  1.247e+01  4.901e+01  1.000e-04  1.000e+04 ( 1.000e-13)
436        Index:  2.196e+00  1.675e+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:  9.318e-01  2.861e-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:  9.198e-01  2.630e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 0.01
Ra Dec: 351.737 -41.509

Creating a high resolution counts map...
INFO: Auto-setting vmin to  0.000e+00 [aplpy.core]
INFO: Auto-setting vmax to  0.000e+00 [aplpy.core]
Saving /scratch/kocevski/904660/cmap_HighResolution_650937601_651196801_4FGL_J2326.9-4130_daily_bin1588.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.01e-02', job_status='DONE', photon_flux_upper_limit='1.28e-07', time_completed='2021-09-29 19:45:09.728879', job_id='904660', GAL2='0.93', fit_tolerance='1e-08', EG2='0.92', EG='0.92', time_epoch_completed='1632969909.73', return_code2='0', ts='0.01', comment='SUCCESS', return_code='0', GAL='0.94', dlogl='3.16e-02', ts2='0.08', photon_index_error='0.00', photon_index='2.78' WHERE bin_id='1588' AND source_name='4FGL J2326.9-4130' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep 29 19:45:09 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0094>
Subject: Job 904660: <4FGL_J2326.9-4130_daily_bin1588> in cluster <slac> Done

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

Your job looked like:

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

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

