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


Performing analysis on: 4FGL_J2327.5-3259_daily_bin971
RA = 351.883, Dec = -32.9869
tmin = 491011201, tmax = 491270401
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='917140', job_status='RUN', time_executed='2021-09-29 20:13:15.744466', time_epoch_executed='1632971595.74' WHERE source_name='4FGL J2327.5-3259' and cadence='daily' and bin_id='971'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/917140

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/917140/ft1_4FGL_J2327.5-3259_daily_bin971.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/917140/ft2_4FGL_J2327.5-3259_daily_bin971.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/917140/ft1_4FGL_J2327.5-3259_daily_bin971.fits outfile=/scratch/kocevski/917140/ft1_filteredMKT_4FGL_J2327.5-3259_daily_bin971.fits ra=351.883 dec=-32.9869 rad=12.0 tmin=491011201.0 tmax=491270401.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.35
sys 0.20

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/917140/ft1_filtered_4FGL_J2327.5-3259_daily_bin971.fits" evtable="EVENTS" scfile=/scratch/kocevski/917140/ft2_4FGL_J2327.5-3259_daily_bin971.fits sctable="SC_DATA" outfile=/scratch/kocevski/917140/ltcube_491011201_491270401_4FGL_J2327.5-3259_daily_bin971.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/917140/ft2_4FGL_J2327.5-3259_daily_bin971.fits
.....................!
real 12.02
user 11.68
sys 0.30

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/917140/ft1_filtered_4FGL_J2327.5-3259_daily_bin971.fits evtable="EVENTS" scfile=/scratch/kocevski/917140/ft2_4FGL_J2327.5-3259_daily_bin971.fits sctable="SC_DATA" expcube=/scratch/kocevski/917140/ltcube_491011201_491270401_4FGL_J2327.5-3259_daily_bin971.fits outfile=/scratch/kocevski/917140/expmap_491011201_491270401_4FGL_J2327.5-3259_daily_bin971.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/917140/ltcube_491011201_491270401_4FGL_J2327.5-3259_daily_bin971.fits
.....................!
real 190.66
user 184.98
sys 5.23

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/917140/ft1_filtered_4FGL_J2327.5-3259_daily_bin971.fits scfile=/scratch/kocevski/917140/ft2_4FGL_J2327.5-3259_daily_bin971.fits outfile=/scratch/kocevski/917140/cmap_491011201_491270401_4FGL_J2327.5-3259_daily_bin971.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.38
sys 0.13

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/917140/ft1_filtered_4FGL_J2327.5-3259_daily_bin971.fits scfile=/scratch/kocevski/917140/ft2_4FGL_J2327.5-3259_daily_bin971.fits outfile=/scratch/kocevski/917140/cmap_HighResolution_491011201_491270401_4FGL_J2327.5-3259_daily_bin971.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.38
sys 0.14

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/917140/ft1_filtered_4FGL_J2327.5-3259_daily_bin971.fits evtable="EVENTS" scfile=/scratch/kocevski/917140/ft2_4FGL_J2327.5-3259_daily_bin971.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/917140/Model_4FGL_J2327.5-3259_daily_bin971.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/917140/ft1_filtered_4FGL_J2327.5-3259_daily_bin971.fits.....................!
real 36.53
user 35.22
sys 1.17

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/917140/ft1_filtered_4FGL_J2327.5-3259_daily_bin971.fits', '/scratch/kocevski/917140/ft2_4FGL_J2327.5-3259_daily_bin971.fits', expMap='/scratch/kocevski/917140/expmap_491011201_491270401_4FGL_J2327.5-3259_daily_bin971.fits', expCube='/scratch/kocevski/917140/ltcube_491011201_491270401_4FGL_J2327.5-3259_daily_bin971.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/917140/Model_4FGL_J2327.5-3259_daily_bin971.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/917140/ft1_filtered_4FGL_J2327.5-3259_daily_bin971.fits
Spacecraft file(s): /scratch/kocevski/917140/ft2_4FGL_J2327.5-3259_daily_bin971.fits
Exposure map: /scratch/kocevski/917140/expmap_491011201_491270401_4FGL_J2327.5-3259_daily_bin971.fits
Exposure cube: /scratch/kocevski/917140/ltcube_491011201_491270401_4FGL_J2327.5-3259_daily_bin971.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/917140/Model_4FGL_J2327.5-3259_daily_bin971.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) = 4256.08993108

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10017E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    17.555       1.0000         .10000E-03   10000.    
     5 'Prefactor '    12.139       1.0000         .10000E-03   10000.    
     6 'Prefactor '    6.1730       1.0000         .10000E-03   10000.    
     7 'Prefactor '    2.1933       1.0000         .10000E-03   10000.    
     8 'norm      '    .10098E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    4.9564       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    .10003E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    24.088       1.0000         .10000E-03   10000.    
    14 'norm      '    4.3589       1.0000         .10000E-03   10000.    
    15 'norm      '    11.578       1.0000         .10000E-03   10000.    
    16 'Prefactor '    25.956       1.0000         .10000E-03   10000.    
    17 'Prefactor '    126.75       1.0000         .10000E-03   10000.    
    18 'norm      '    12.335       1.0000         .10000E-03   10000.    
    19 'norm      '    .10652E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    21 'norm      '    .18107E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    28.825       1.0000         .10000E-03   10000.    
    24 'Prefactor '    .10020E-03   1.0000         .10000E-03   10000.    
    25 'Prefactor '    .10130E-03   1.0000         .10000E-03   10000.    
    26 'Normalizat'    1.0836       1.0000         .10000E-01   10.000    
    27 'Prefactor '    .87507       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=   4256.075     FROM MIGRAD    STATUS=CONVERGED    636 CALLS     3287 TOTAL
                     EDM=   .52E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .8%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    25.276        .90372E-07** at limit **
   2  Prefactor     .10000E-03    2.5287        .17946E-06** at limit **
   3  Prefactor     .10000E-03    8.5802        .54347E-07** at limit **
   4  Prefactor     17.557        18.309       -.20924E-06   -.98196E-06
   5  Prefactor     12.140        40.508       -.50683E-06   -.15381E-05
   6  Prefactor     6.1732        15.741        .48316E-05   -.47293E-04
   7  Prefactor     2.1930        9.7611        .94816E-06   -.10717E-04
   8  norm          .10000E-03    3.4101       -.52550E-07** at limit **
   9  Prefactor     4.9424        14.594        .32038E-06   -.19937E-04
  10  Prefactor     .10000E-03    4.2534        .50841E-07** at limit **
  11  norm          .10000E-03    .57116        .47835E-07** at limit **
  12  Prefactor     .10000E-03    33.827        .36306E-07** at limit **
  13  Prefactor     24.081        16.142       -.30937E-06   -.43021E-04
  14  norm          4.3593        8.0527       -.38018E-06    .10447E-04
  15  norm          11.578        9.6613        .38118E-07    .33634E-05
  16  Prefactor     25.865        69.679        .24495E-05   -.22439E-04
  17  Prefactor     126.77        74.031       -.24515E-06    .32878E-04
  18  norm          12.339        9.3234        .68708E-06    .13138E-03
  19  norm          .10000E-03    1.6039        .15144E-06** at limit **
  20  Prefactor     .10000E-03    17.519        .15751E-07** at limit **
  21  norm          .10000E-03    4.7367       -.73523E-06** at limit **
  22  Prefactor     .10000E-03    38.952        .38379E-07** at limit **
  23  Prefactor     28.822        38.997        .19906E-07   -.30100E-05
  24  Prefactor     .10000E-03    4.5154        .28903E-06** at limit **
  25  Prefactor     .10000E-03    37.813        .24504E-06** at limit **
  26  Normalizat    1.0830        .22539        .15557E-05   -.49199E-04
  27  Prefactor     .87566        .23045       -.22703E-05    .52316E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 17.5565
  Prefactor  = 12.14
  Prefactor  = 6.17315
  Prefactor  = 2.19302
  norm       = 0.0001
  Prefactor  = 4.94244
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 24.0811
  norm       = 4.35934
  norm       = 11.578
  Prefactor  = 25.8645
  Prefactor  = 126.773
  norm       = 12.3394
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 28.8223
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Normalizat = 1.08302
  Prefactor  = 0.875663
 **********
 **   18 **HESSE 
 **********

 FCN=   4256.075     FROM HESSE     STATUS=OK           494 CALLS     3781 TOTAL
                     EDM=   .13E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    25.276        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    2.5629        .10124E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    8.5819        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     17.557        18.307        .95592E-04   -1.4870    
   5  Prefactor     12.140        40.471        .11498E-03   -1.5011    
   6  Prefactor     6.1732        15.773        .80790E-03   -1.5211    
   7  Prefactor     2.1930        9.7144        .27788E-03   -1.5412    
   8  norm          .10000E-03    3.4865        .23458E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     4.9424        14.391        .18065E-03   -1.5263    
  10  Prefactor     .10000E-03    4.2600        .13123E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          .10000E-03    1.8051        .88023E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    33.831        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     24.081        15.294        .81617E-04   -1.4726    
  14  norm          4.3593        8.0511        .19292E-03   -1.5290    
  15  norm          11.578        9.6572        .11773E-03   -1.5027    
  16  Prefactor     25.865        69.375        .78630E-04   -1.4690    
  17  Prefactor     126.77        74.283        .17879E-03   -1.3451    
  18  norm          12.339        9.2774        .11406E-03   -1.5005    
  19  norm          .10000E-03    2.6132        .16082E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    17.554        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  norm          .10000E-03    13.343        .26783E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     .10000E-03    38.953        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     28.822        38.995        .74623E-04   -1.4634    
  24  Prefactor     .10000E-03    4.5520        .13529E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Prefactor     .10000E-03    37.895        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  Normalizat    1.0830        .25846        .23817E-03   -.90299    
  27  Prefactor     .87566        .26153        .27504E-03   -.96997    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.34842e-10
Minuit parameter uncertainties:
  1  2.9642e-05
  2  2.04949e-06
  3  2.43415e-06
  4  18.3132
  5  40.5627
  6  15.7832
  7  9.23354
  8  6.54689e-07
  9  14.4009
  10  6.03602e-06
  11  1.16924e-05
  12  2.05977e-05
  13  15.2961
  14  8.05306
  15  9.6585
  16  69.5923
  17  74.3377
  18  9.27843
  19  1.2767e-05
  20  3.4606e-05
  21  3.67072e-07
  22  3.91e-05
  23  39.0297
  24  4.25631e-06
  25  2.52554e-05
  26  0.258763
  27  0.261905
Done.

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

Extracting fit parameters...

4FGL J2327.5-3259
   Spectrum: PowerLaw
454    Prefactor:  1.268e+02  7.434e+01  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:  8.757e-01  2.619e-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:  1.083e+00  2.588e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 5.96
Ra Dec: 351.883 -32.987
Photon Index (Fixed Index): 2.56 +/- 0.00
Photon Flux (Fixed Index): 1.02e-07 +/- 5.95e-08
Energy Flux (Fixed Index): 2.78e-05 +/- 1.63e-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) = 4255.94464506
delta logL = 0.130776493461

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 4255.93414358
delta logL = 0.141277968511

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    101.67       1.0000         .10000E-03   10000.    
     2 'Index     '    2.9470       1.0000          .0000       10.000    
     3 'Normalizat'    1.0386       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .90788       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=   4255.934     FROM MIGRAD    STATUS=CONVERGED     77 CALLS      276 TOTAL
                     EDM=   .71E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     101.68        90.174        .39874E-04   -.14535E-03
   2  Index         2.9471        .82808        .52383E-02   -.97312E-04
   3  Normalizat    1.0387        .26141        .24231E-03    .32073E-03
   4  Prefactor     .90768        .26478        .27069E-03    .49345E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 101.682
  Index      = 2.9471
  Normalizat = 1.03871
  Prefactor  = 0.907682
 **********
 **   18 **HESSE 
 **********

 FCN=   4255.934     FROM HESSE     STATUS=OK            25 CALLS      301 TOTAL
                     EDM=   .74E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     101.68        83.107        .79749E-05   -1.3688    
   2  Index         2.9471        .76230        .20953E-03   -.42309    
   3  Normalizat    1.0387        .26023        .48461E-04   -.91745    
   4  Prefactor     .90768        .26396        .54137E-04   -.95873    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 7.41048e-10
Minuit parameter uncertainties:
  1  83.2028
  2  0.7659
  3  0.260554
  4  0.264332
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/917140': 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) = 4255.93414297
delta logL = 0.141278580488

Extracting fit parameters...

4FGL J2327.5-3259
   Spectrum: PowerLaw
454    Prefactor:  1.017e+02  8.320e+01  1.000e-04  1.000e+04 ( 1.000e-13)
455        Index:  2.947e+00  7.659e-01  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.077e-01  2.643e-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:  1.039e+00  2.606e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 6.31
Ra Dec: 351.883 -32.987
Photon Index (Free Index): 2.95 +/- 0.77
Photon Flux (Free Index): 1.36e-07 +/- 9.18e-08
Energy Flux (Free Index): 2.79e-05 +/- 1.47e-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/917140/cmap_HighResolution_491011201_491270401_4FGL_J2327.5-3259_daily_bin971.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='1.02e-07', energy_flux2='2.79e-05', photon_flux_error='5.95e-08', dlogl='1.41e-01', energy_flux='2.78e-05', photon_flux2='1.36e-07', job_status='DONE', time_completed='2021-09-29 20:22:40.469527', photon_index_error2='0.77', photon_index2='2.95', ts='5.96', fit_tolerance='1e-08', GAL='0.88', photon_index_error='0.00', energy_flux_error2='1.47e-05', EG='1.08', time_epoch_completed='1632972160.47', return_code='0', job_id='917140', GAL2='0.91', EG2='1.04', return_code2='0', energy_flux_error='1.63e-05', photon_flux_error2='9.18e-08', ts2='6.31', photon_index='2.56' WHERE bin_id='971' AND source_name='4FGL J2327.5-3259' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep 29 20:22:40 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0209>
Subject: Job 917140: <4FGL_J2327.5-3259_daily_bin971> in cluster <slac> Done

Job <4FGL_J2327.5-3259_daily_bin971> was submitted from host <rhel6-64h> by user <kocevski> in cluster <slac> at Wed Sep 29 20:10:22 2021
Job was executed on host(s) <bullet0209>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Sep 29 20:10:24 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Wed Sep 29 20:10:24 2021
Terminated at Wed Sep 29 20:22:40 2021
Results reported at Wed Sep 29 20:22:40 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2327.5-3259_daily_bin971 351.883 -32.9869 491011201 491270401 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 :                                   559.21 sec.
    Max Memory :                                 1095 MB
    Average Memory :                             285.83 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   736 sec.
    Turnaround time :                            738 sec.

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

