/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 22 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 = 7480
number of fields = 27
No RA_SUN column yet. Adding RA_SUN/DEC_SUN columns.
Done.


Performing analysis on: 4FGL_J2327.5-3259_daily_bin238
RA = 351.883, Dec = -32.9869
tmin = 301017601, tmax = 301276801
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='912803', job_status='RUN', time_executed='2021-09-29 19:56:09.601280', time_epoch_executed='1632970569.6' WHERE source_name='4FGL J2327.5-3259' and cadence='daily' and bin_id='238'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/912803

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/912803/ft1_4FGL_J2327.5-3259_daily_bin238.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/912803/ft2_4FGL_J2327.5-3259_daily_bin238.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/912803/ft1_4FGL_J2327.5-3259_daily_bin238.fits outfile=/scratch/kocevski/912803/ft1_filteredMKT_4FGL_J2327.5-3259_daily_bin238.fits ra=351.883 dec=-32.9869 rad=12.0 tmin=301017601.0 tmax=301276801.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.57
user 3.33
sys 0.23

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/912803/ft2_4FGL_J2327.5-3259_daily_bin238.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/912803/ft2_4FGL_J2327.5-3259_daily_bin238.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/912803/ft1_filteredMKT_4FGL_J2327.5-3259_daily_bin238.fits evtable="EVENTS" outfile="/scratch/kocevski/912803/ft1_filtered_4FGL_J2327.5-3259_daily_bin238.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.50
user 0.33
sys 0.16

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/912803/ft1_filtered_4FGL_J2327.5-3259_daily_bin238.fits" evtable="EVENTS" scfile=/scratch/kocevski/912803/ft2_4FGL_J2327.5-3259_daily_bin238.fits sctable="SC_DATA" outfile=/scratch/kocevski/912803/ltcube_301017601_301276801_4FGL_J2327.5-3259_daily_bin238.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/912803/ft2_4FGL_J2327.5-3259_daily_bin238.fits
.....................!
real 13.85
user 13.43
sys 0.35

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/912803/ft1_filtered_4FGL_J2327.5-3259_daily_bin238.fits evtable="EVENTS" scfile=/scratch/kocevski/912803/ft2_4FGL_J2327.5-3259_daily_bin238.fits sctable="SC_DATA" expcube=/scratch/kocevski/912803/ltcube_301017601_301276801_4FGL_J2327.5-3259_daily_bin238.fits outfile=/scratch/kocevski/912803/expmap_301017601_301276801_4FGL_J2327.5-3259_daily_bin238.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/912803/ltcube_301017601_301276801_4FGL_J2327.5-3259_daily_bin238.fits
.....................!
real 192.02
user 186.33
sys 5.31

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 190 point sources and 0 extended sources

Setting source of interest to:
4FGL J2327.5-3259 @ 351.883 -32.9869

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/912803/ft1_filtered_4FGL_J2327.5-3259_daily_bin238.fits scfile=/scratch/kocevski/912803/ft2_4FGL_J2327.5-3259_daily_bin238.fits outfile=/scratch/kocevski/912803/cmap_301017601_301276801_4FGL_J2327.5-3259_daily_bin238.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.883 yref=-32.9869 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.36
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/912803/ft1_filtered_4FGL_J2327.5-3259_daily_bin238.fits scfile=/scratch/kocevski/912803/ft2_4FGL_J2327.5-3259_daily_bin238.fits outfile=/scratch/kocevski/912803/cmap_HighResolution_301017601_301276801_4FGL_J2327.5-3259_daily_bin238.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.883 yref=-32.9869 axisrot=0.0 rafield="RA" decfield="DEC" proj="AIT" hpx_ordering_scheme="RING" hpx_order=3 hpx_ebin=yes hpx_region="" evtable="EVENTS" sctable="SC_DATA" efield="ENERGY" tfield="TIME" chatter=2 clobber=yes debug=no gui=no mode="ql"

WARNING: version mismatch between CFITSIO header (v3.43) and linked library (v3.41).

This is gtbin version HEAD
real 0.54
user 0.37
sys 0.16

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/912803/ft1_filtered_4FGL_J2327.5-3259_daily_bin238.fits evtable="EVENTS" scfile=/scratch/kocevski/912803/ft2_4FGL_J2327.5-3259_daily_bin238.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/912803/Model_4FGL_J2327.5-3259_daily_bin238.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/912803/ft1_filtered_4FGL_J2327.5-3259_daily_bin238.fits.....................!
real 49.50
user 48.13
sys 1.23

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/912803/ft1_filtered_4FGL_J2327.5-3259_daily_bin238.fits', '/scratch/kocevski/912803/ft2_4FGL_J2327.5-3259_daily_bin238.fits', expMap='/scratch/kocevski/912803/expmap_301017601_301276801_4FGL_J2327.5-3259_daily_bin238.fits', expCube='/scratch/kocevski/912803/ltcube_301017601_301276801_4FGL_J2327.5-3259_daily_bin238.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/912803/Model_4FGL_J2327.5-3259_daily_bin238.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J2327.5-3259'

4FGL J2327.5-3259
   Spectrum: PowerLaw
454    Prefactor:  7.111e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-13)
455        Index:  2.557e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
456        Scale:  6.601e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/912803/ft1_filtered_4FGL_J2327.5-3259_daily_bin238.fits
Spacecraft file(s): /scratch/kocevski/912803/ft2_4FGL_J2327.5-3259_daily_bin238.fits
Exposure map: /scratch/kocevski/912803/expmap_301017601_301276801_4FGL_J2327.5-3259_daily_bin238.fits
Exposure cube: /scratch/kocevski/912803/ltcube_301017601_301276801_4FGL_J2327.5-3259_daily_bin238.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/912803/Model_4FGL_J2327.5-3259_daily_bin238.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) = 6547.49616201

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    33.753       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    8.9207       1.0000         .10000E-03   10000.    
     5 'Prefactor '    5.0716       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .12346E-01   1.0000         .10000E-03   10000.    
     7 'Prefactor '    9.9481       1.0000         .10000E-03   10000.    
     8 'norm      '    19.671       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10037E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    8.6308       1.0000         .10000E-03   10000.    
    11 'norm      '    .10066E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    82.768       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10028E-03   1.0000         .10000E-03   10000.    
    14 'norm      '    2.9967       1.0000         .10000E-03   10000.    
    15 'norm      '    .10134E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .15565E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10012E-03   1.0000         .10000E-03   10000.    
    18 'norm      '    .19316E-03   1.0000         .10000E-03   10000.    
    19 'norm      '    3.5885       1.0000         .10000E-03   10000.    
    20 'Prefactor '    5.8057       1.0000         .10000E-03   10000.    
    21 'norm      '    31.231       1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    12.870       1.0000         .10000E-03   10000.    
    24 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    25 'Prefactor '    5.8918       1.0000         .10000E-03   10000.    
    26 'Normalizat'    .91281       1.0000         .10000E-01   10.000    
    27 'Prefactor '    .99613       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6080E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   6547.491     FROM MIGRAD    STATUS=CONVERGED    646 CALLS     3252 TOTAL
                     EDM=   .15E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .3%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     33.750        44.496       -.42870E-05    .39834E-05
   2  Prefactor     .10000E-03    1.7661       -.66317E-07** at limit **
   3  Prefactor     .10000E-03    9.4558        .17835E-05** at limit **
   4  Prefactor     8.9185        18.107        .10304E-05   -.33294E-04
   5  Prefactor     5.0692        30.751       -.23041E-05   -.23301E-04
   6  Prefactor     .10002E-03    5.3225        .59272E-06** at limit **
   7  Prefactor     9.9475        7.7413       -.99754E-07    .18659E-04
   8  norm          19.671        5.5398       -.22277E-06   -.17609E-03
   9  Prefactor     .10000E-03    7.8945       -.16855E-05** at limit **
  10  Prefactor     8.6212        8.1390       -.51565E-06   -.36353E-03
  11  norm          .10000E-03    .32899        .12118E-06** at limit **
  12  Prefactor     82.756        56.583       -.10543E-04   -.32883E-05
  13  Prefactor     .10000E-03    4.1016        .21332E-07** at limit **
  14  norm          2.9950        3.1158        .11062E-06    .32236E-03
  15  norm          .10000E-03    5.7108        .66499E-06** at limit **
  16  Prefactor     .10000E-03    67.303       -.13728E-04** at limit **
  17  Prefactor     .10000E-03    27.574       -.25105E-04** at limit **
  18  norm          .10000E-03    2.6474       -.16693E-06** at limit **
  19  norm          3.5883        2.5705        .32332E-08    .18425E-04
  20  Prefactor     5.8064        33.744       -.17703E-05   -.32957E-04
  21  norm          31.225        6.9770        .43012E-07    .43039E-03
  22  Prefactor     .10000E-03    30.941        .31567E-04** at limit **
  23  Prefactor     12.867        28.609       -.41790E-05   -.11436E-04
  24  Prefactor     .10000E-03    1.5021        .23373E-07** at limit **
  25  Prefactor     5.8964        50.307        .82188E-05   -.11842E-04
  26  Normalizat    .91280        .16947        .11094E-05    .43504E-05
  27  Prefactor     .99611        .18053        .47034E-06    .37242E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 33.7501
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 8.91854
  Prefactor  = 5.06915
  Prefactor  = 0.000100022
  Prefactor  = 9.94748
  norm       = 19.6709
  Prefactor  = 0.0001
  Prefactor  = 8.62116
  norm       = 0.0001
  Prefactor  = 82.7563
  Prefactor  = 0.0001
  norm       = 2.99504
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 3.58833
  Prefactor  = 5.80638
  norm       = 31.225
  Prefactor  = 0.0001
  Prefactor  = 12.8672
  Prefactor  = 0.0001
  Prefactor  = 5.89637
  Normalizat = 0.912798
  Prefactor  = 0.996105
 **********
 **   18 **HESSE 
 **********

 FCN=   6547.491     FROM HESSE     STATUS=OK           494 CALLS     3746 TOTAL
                     EDM=   .57E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     33.750        44.511        .68974E-04   -1.4545    
   2  Prefactor     .10000E-03    1.7886        .10489E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    9.4633        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     8.9185        18.064        .13420E-03   -1.5111    
   5  Prefactor     5.0692        30.625        .17854E-03   -1.5258    
   6  Prefactor     .10002E-03    64.972        .35427E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     9.9475        7.7398        .12705E-03   -1.5077    
   8  norm          19.671        5.5282        .90306E-04   -1.4821    
   9  Prefactor     .10000E-03    7.9497        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     8.6212        7.5431        .13644E-03   -1.5121    
  11  norm          .10000E-03    .50155        .81645E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     82.756        56.559        .44151E-04   -1.3886    
  13  Prefactor     .10000E-03    4.1132        .15973E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          2.9950        3.1013        .14109E-03   -1.5362    
  15  norm          .10000E-03    5.8908        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    68.059        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    27.613        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          .10000E-03    4.9878        .24645E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  norm          3.5883        2.5629        .10370E-03   -1.5329    
  20  Prefactor     5.8064        33.474        .16668E-03   -1.5226    
  21  norm          31.225        6.8140        .71697E-04   -1.4590    
  22  Prefactor     .10000E-03    30.904        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     12.867        28.596        .11166E-03   -1.4990    
  24  Prefactor     .10000E-03    1.5066        .96817E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Prefactor     5.8964        50.055        .16544E-03   -1.5222    
  26  Normalizat    .91280        .19814        .24287E-03   -.96012    
  27  Prefactor     .99611        .21226        .25905E-03   -.92859    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.7169e-10
Minuit parameter uncertainties:
  1  44.555
  2  1.3139e-05
  3  2.10642e-05
  4  18.0748
  5  24.938
  6  0.00241307
  7  7.74061
  8  5.52831
  9  2.29088e-05
  10  7.54398
  11  6.49672e-06
  12  56.5953
  13  6.36315e-06
  14  3.10149
  15  7.62353e-06
  16  9.33294e-05
  17  9.39984e-06
  18  4.01704e-05
  19  2.56296
  20  27.9061
  21  6.81413
  22  1.4156e-05
  23  28.6259
  24  5.02765e-06
  25  34.398
  26  0.198299
  27  0.212436
Done.

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

Extracting fit parameters...

4FGL J2327.5-3259
   Spectrum: PowerLaw
454    Prefactor:  1.000e-04  9.400e-06  1.000e-04  1.000e+04 ( 1.000e-13)
455        Index:  2.557e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
456        Scale:  6.601e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
605    Prefactor:  9.961e-01  2.124e-01  0.000e+00  1.000e+01 ( 1.000e+00)
606        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
607        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
604   Normalization:  9.128e-01  1.983e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): -0.00
Ra Dec: 351.883 -32.987
Photon Flux Upper Limit: 6.29e-08 ph cm-2 s-1
Energy Flux Upper Limit: 4.91e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/912803/likelihoodResults_301017601_301276801_4FGL_J2327.5-3259_daily_bin238.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): 102
logL (Free Index) = 6547.4909454
delta logL = -0.000172514375663

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 6547.49077332
delta logL = -4.28784005635e-07

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10645E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    3.0243       1.0000          .0000       10.000    
     3 'Normalizat'    .91280       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .99611       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6080E+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=   6547.491     FROM MIGRAD    STATUS=CONVERGED     87 CALLS      266 TOTAL
                     EDM=   .13E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10150E-03    228.28        .18142E-02** at limit **
   2  Index         2.9615        8.5059        .50000        .61324E-05
   3  Normalizat    .91280        .12068E-01    .24287E-03    .48213E-04
   4  Prefactor     .99610        .13459E-01    .25905E-03    .31159E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001015
  Index      = 2.96146
  Normalizat = 0.912799
  Prefactor  = 0.996105
 **********
 **   18 **HESSE 
 **********

 FCN=   6547.491     FROM HESSE     STATUS=NOT POSDEF    29 CALLS      295 TOTAL
                     EDM=   .59E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10150E-03    950.98        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.9615        8.4786        .50000       -.41994    
   3  Normalizat    .91280        .25814E-01    .97150E-05   -.96012    
   4  Prefactor     .99610        .28791E-01    .10362E-04   -.92859    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 5.89403e-09
Minuit parameter uncertainties:
  1  0.0767953
  2  1167.87
  3  0.0258148
  4  0.0287915
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/912803': 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): 102
logL (Free Index) = 6547.49077312
delta logL = -2.30946170632e-07

Extracting fit parameters...

4FGL J2327.5-3259
   Spectrum: PowerLaw
454    Prefactor:  1.015e-04  7.680e-02  1.000e-04  1.000e+04 ( 1.000e-13)
455        Index:  2.961e+00  1.168e+03  0.000e+00  1.000e+01 (-1.000e+00)
456        Scale:  6.601e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
605    Prefactor:  9.961e-01  2.879e-02  0.000e+00  1.000e+01 ( 1.000e+00)
606        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
607        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
604   Normalization:  9.128e-01  2.581e-02  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
Ra Dec: 351.883 -32.987

Creating a high resolution counts map...
INFO: Auto-setting vmin to -2.500e-04 [aplpy.core]
INFO: Auto-setting vmax to  2.775e-03 [aplpy.core]
Saving /scratch/kocevski/912803/cmap_HighResolution_301017601_301276801_4FGL_J2327.5-3259_daily_bin238.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='4.91e-03', job_status='DONE', photon_flux_upper_limit='6.29e-08', time_completed='2021-09-29 20:09:36.108355', job_id='912803', GAL2='1.00', fit_tolerance='1e-08', EG2='0.91', EG='0.91', time_epoch_completed='1632971376.11', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.00', dlogl='-2.31e-07', ts2='-0.00', photon_index_error='0.00', photon_index='2.56' WHERE bin_id='238' AND source_name='4FGL J2327.5-3259' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep 29 20:09:36 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0088>
Subject: Job 912803: <4FGL_J2327.5-3259_daily_bin238> in cluster <slac> Done

Job <4FGL_J2327.5-3259_daily_bin238> was submitted from host <rhel6-64p> by user <kocevski> in cluster <slac> at Wed Sep 29 19:55:38 2021
Job was executed on host(s) <bullet0088>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Sep 29 19:55:39 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:55:39 2021
Terminated at Wed Sep 29 20:09:36 2021
Results reported at Wed Sep 29 20:09:36 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2327.5-3259_daily_bin238 351.883 -32.9869 301017601 301276801 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J2327.5-3259 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   802.46 sec.
    Max Memory :                                 1095 MB
    Average Memory :                             322.72 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   837 sec.
    Turnaround time :                            838 sec.

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

