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


Performing analysis on: 4FGL_J2327.5-3259_daily_bin1277
RA = 351.883, Dec = -32.9869
tmin = 570326401, tmax = 570585601
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='917625', job_status='RUN', time_executed='2021-09-29 20:13:58.311190', time_epoch_executed='1632971638.31' WHERE source_name='4FGL J2327.5-3259' and cadence='daily' and bin_id='1277'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/917625

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/917625/ft1_4FGL_J2327.5-3259_daily_bin1277.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/917625/ft2_4FGL_J2327.5-3259_daily_bin1277.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/917625/ft1_4FGL_J2327.5-3259_daily_bin1277.fits outfile=/scratch/kocevski/917625/ft1_filteredMKT_4FGL_J2327.5-3259_daily_bin1277.fits ra=351.883 dec=-32.9869 rad=12.0 tmin=570326401.0 tmax=570585601.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.46
user 3.24
sys 0.21

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/917625/ft1_filtered_4FGL_J2327.5-3259_daily_bin1277.fits" evtable="EVENTS" scfile=/scratch/kocevski/917625/ft2_4FGL_J2327.5-3259_daily_bin1277.fits sctable="SC_DATA" outfile=/scratch/kocevski/917625/ltcube_570326401_570585601_4FGL_J2327.5-3259_daily_bin1277.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/917625/ft2_4FGL_J2327.5-3259_daily_bin1277.fits
.....................!
real 11.57
user 11.23
sys 0.30

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/917625/ft1_filtered_4FGL_J2327.5-3259_daily_bin1277.fits evtable="EVENTS" scfile=/scratch/kocevski/917625/ft2_4FGL_J2327.5-3259_daily_bin1277.fits sctable="SC_DATA" expcube=/scratch/kocevski/917625/ltcube_570326401_570585601_4FGL_J2327.5-3259_daily_bin1277.fits outfile=/scratch/kocevski/917625/expmap_570326401_570585601_4FGL_J2327.5-3259_daily_bin1277.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/917625/ltcube_570326401_570585601_4FGL_J2327.5-3259_daily_bin1277.fits
.....................!
real 191.38
user 185.34
sys 5.70

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/917625/ft1_filtered_4FGL_J2327.5-3259_daily_bin1277.fits scfile=/scratch/kocevski/917625/ft2_4FGL_J2327.5-3259_daily_bin1277.fits outfile=/scratch/kocevski/917625/cmap_570326401_570585601_4FGL_J2327.5-3259_daily_bin1277.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.37
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/917625/ft1_filtered_4FGL_J2327.5-3259_daily_bin1277.fits scfile=/scratch/kocevski/917625/ft2_4FGL_J2327.5-3259_daily_bin1277.fits outfile=/scratch/kocevski/917625/cmap_HighResolution_570326401_570585601_4FGL_J2327.5-3259_daily_bin1277.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.15

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

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/917625/ft1_filtered_4FGL_J2327.5-3259_daily_bin1277.fits', '/scratch/kocevski/917625/ft2_4FGL_J2327.5-3259_daily_bin1277.fits', expMap='/scratch/kocevski/917625/expmap_570326401_570585601_4FGL_J2327.5-3259_daily_bin1277.fits', expCube='/scratch/kocevski/917625/ltcube_570326401_570585601_4FGL_J2327.5-3259_daily_bin1277.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/917625/Model_4FGL_J2327.5-3259_daily_bin1277.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/917625/ft1_filtered_4FGL_J2327.5-3259_daily_bin1277.fits
Spacecraft file(s): /scratch/kocevski/917625/ft2_4FGL_J2327.5-3259_daily_bin1277.fits
Exposure map: /scratch/kocevski/917625/expmap_570326401_570585601_4FGL_J2327.5-3259_daily_bin1277.fits
Exposure cube: /scratch/kocevski/917625/ltcube_570326401_570585601_4FGL_J2327.5-3259_daily_bin1277.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/917625/Model_4FGL_J2327.5-3259_daily_bin1277.xml
Optimizer: MINUIT
Statistic: UNBINNED

Performing an iterative likelihood fit...

Fit tolerance = 1

Performing likelihood fit...
Done.

MINUIT Return Code (Fixed Index): 102
logL (Fixed Index) = 100.985810525

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .11941E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .11869E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    18.798       1.0000         .10000E-03   10000.    
     4 'Prefactor '    9995.5       1.0000         .10000E-03   10000.    
     5 'Prefactor '    9996.7       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .22811E-02   1.0000         .10000E-03   10000.    
     7 'Prefactor '   10000.0       1.0000         .10000E-03   10000.    
     8 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10132E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10009E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    .10243E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .21595E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10097E-03   1.0000         .10000E-03   10000.    
    14 'norm      '    .10538E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    .10290E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .11741E-01   1.0000         .10000E-03   10000.    
    17 'Prefactor '    524.16       1.0000         .10000E-03   10000.    
    18 'norm      '    32.431       1.0000         .10000E-03   10000.    
    19 'norm      '    .10018E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .11697E-03   1.0000         .10000E-03   10000.    
    21 'norm      '    .10766E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    .15392E-03   1.0000         .10000E-03   10000.    
    24 'Prefactor '    .28329E-03   1.0000         .10000E-03   10000.    
    25 'Prefactor '    .13063E-03   1.0000         .10000E-03   10000.    
    26 'Normalizat'    .10001E-01   1.0000         .10000E-01   10.000    
    27 'Prefactor '    1.0531       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=   100.0659     FROM MIGRAD    STATUS=CONVERGED    620 CALLS     3764 TOTAL
                     EDM=   .98E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .0%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    209.94        .92284E-07** at limit **
   2  Prefactor     .10000E-03    49.121       -.10701E-04** at limit **
   3  Prefactor     18.662        183.03        .60048E-05    .47330E-04
   4  Prefactor    10000.0        8341.2       -.91276E-05** at limit **
   5  Prefactor    10000.0        9001.5       -.40305E-05** at limit **
   6  Prefactor     .10000E-03    1838.7        .73696E-06** at limit **
   7  Prefactor    10000.0        8073.4       -.56567E-06** at limit **
   8  norm          .10000E-03    134.14        .58036E-07** at limit **
   9  Prefactor     .10000E-03    320.82        .69848E-07** at limit **
  10  Prefactor     .10000E-03    155.23        .15211E-06** at limit **
  11  norm          .10000E-03    10.735        .72195E-07** at limit **
  12  Prefactor     .10000E-03    7668.6        .49682E-06** at limit **
  13  Prefactor     .10000E-03    163.16        .10288E-06** at limit **
  14  norm          .10000E-03    144.08        .55913E-07** at limit **
  15  norm          .10000E-03    77.974        .44706E-06** at limit **
  16  Prefactor     .10000E-03    1385.2        .66026E-06** at limit **
  17  Prefactor     525.08        527.43        .20346E-05   -.36187E-05
  18  norm          32.372        78.711        .35165E-05   -.77987E-06
  19  norm          .10000E-03    11.816        .32894E-07** at limit **
  20  Prefactor     .10000E-03    89.450        .65474E-07** at limit **
  21  norm          .10000E-03    39.290        .89286E-07** at limit **
  22  Prefactor     .10000E-03    300.15        .18454E-06** at limit **
  23  Prefactor     .10000E-03    189.75        .56173E-06** at limit **
  24  Prefactor     .10000E-03    205.73        .13114E-04** at limit **
  25  Prefactor     .10000E-03    201.47        .78838E-06** at limit **
  26  Normalizat    .10000E-01    .34760       -.11743E-05** at limit **
  27  Prefactor     1.0531        .54823        .10843E-05    .14862E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 18.6619
  Prefactor  = 10000
  Prefactor  = 10000
  Prefactor  = 0.0001
  Prefactor  = 10000
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 525.078
  norm       = 32.3721
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000100001
  Prefactor  = 0.0001
  Normalizat = 0.01
  Prefactor  = 1.05312
 **********
 **   18 **HESSE 
 **********

 FCN=   100.0659     FROM HESSE     STATUS=OK           462 CALLS     4226 TOTAL
                     EDM=   .18E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    209.93        .14240E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    51.209        .13776E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     18.662        194.77        .92379E-04   -1.4844    
   4  Prefactor    10000.0        8344.0        .95417E-03    1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor    10000.0        9002.9        .11215E-02    1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    1838.4        .20107E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor    10000.0        8073.8        .18711E-02    1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          .10000E-03    134.14        .11368E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    320.82        .17636E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    155.22        .12233E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          .10000E-03    10.735        .32092E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    7668.3        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    163.16        .12544E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          .10000E-03    144.08        .11783E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          .10000E-03    77.957        .86584E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    1384.9        .18163E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     525.08        526.86        .89740E-04   -1.1084    
  18  norm          32.372        78.537        .70362E-04   -1.4569    
  19  norm          .10000E-03    11.816        .33670E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    89.448        .92761E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  norm          .10000E-03    39.288        .61421E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     .10000E-03    300.14        .17053E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     .10000E-03    189.72        .13533E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     .10000E-03    201.63        .13799E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Prefactor     .10000E-03    201.41        .13945E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  Normalizat    .10000E-01    .34934        .18284E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  Prefactor     1.0531        .55007        .16196E-03   -.90979    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.75819e-10
Minuit parameter uncertainties:
  1  2.54033e-05
  2  0.00024361
  3  121.086
  4  0.035047
  5  0.0265888
  6  9.42967e-05
  7  0.00115208
  8  5.25182e-06
  9  1.91101e-05
  10  4.22568e-06
  11  9.09693e-07
  12  0.000846281
  13  8.43481e-06
  14  5.96254e-05
  15  1.89955e-05
  16  0.00121183
  17  531.889
  18  78.7896
  19  5.92936e-07
  20  5.09454e-06
  21  2.44909e-05
  22  7.61233e-06
  23  3.8263e-05
  24  0.000934106
  25  0.000102935
  26  1.7737e-06
  27  0.553058
Done.

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

Extracting fit parameters...

4FGL J2327.5-3259
   Spectrum: PowerLaw
454    Prefactor:  5.251e+02  5.319e+02  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:  1.053e+00  5.531e-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.000e-02  1.774e-06  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 4.09
Ra Dec: 351.883 -32.987
Photon Index (Fixed Index): 2.56 +/- 0.00
Photon Flux (Fixed Index): 4.21e-07 +/- 4.26e-07
Energy Flux (Fixed Index): 1.15e-04 +/- 1.17e-04

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) = 100.065023651
delta logL = 0.000839150310583

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 100.063947764
delta logL = 0.00191503797551

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    488.59       1.0000         .10000E-03   10000.    
     2 'Index     '    2.6371       1.0000          .0000       10.000    
     3 'Normalizat'    .10000E-01   1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0530       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=   100.0639     FROM MIGRAD    STATUS=CONVERGED     46 CALLS      200 TOTAL
                     EDM=   .17E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY= 35.8%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     488.77        751.23        .84776E-04   -.23626E-03
   2  Index         2.6368        1.2757       -.65177E-04   -.30800E-03
   3  Normalizat    .10000E-01    .34655        .27354E-06** at limit **
   4  Prefactor     1.0529        .50943       -.10017E-05    .12138E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 488.77
  Index      = 2.63675
  Normalizat = 0.01
  Prefactor  = 1.0529
 **********
 **   18 **HESSE 
 **********

 FCN=   100.0639     FROM HESSE     STATUS=OK            23 CALLS      223 TOTAL
                     EDM=   .37E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     488.77        754.48        .92776E-04   -1.1250    
   2  Index         2.6368        1.2889        .18437E-03   -.49229    
   3  Normalizat    .10000E-01    .34786        .18246E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     1.0529        .50699        .16185E-03   -.90986    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.65047e-09
Minuit parameter uncertainties:
  1  770.79
  2  1.30799
  3  6.64835e-07
  4  0.509322
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/917625': 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) = 100.063947715
delta logL = 0.00191508644451

Extracting fit parameters...

4FGL J2327.5-3259
   Spectrum: PowerLaw
454    Prefactor:  4.888e+02  7.708e+02  1.000e-04  1.000e+04 ( 1.000e-13)
455        Index:  2.637e+00  1.308e+00  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:  1.053e+00  5.093e-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.000e-02  6.648e-07  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 4.09
Ra Dec: 351.883 -32.987
Photon Index (Free Index): 2.64 +/- 1.31
Photon Flux (Free Index): 4.33e-07 +/- 4.80e-07
Energy Flux (Free Index): 1.10e-04 +/- 1.34e-04

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/917625/cmap_HighResolution_570326401_570585601_4FGL_J2327.5-3259_daily_bin1277.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='4.21e-07', energy_flux2='1.10e-04', photon_flux_error='4.26e-07', dlogl='1.92e-03', energy_flux='1.15e-04', photon_flux2='4.33e-07', job_status='DONE', time_completed='2021-09-29 20:19:37.792445', photon_index_error2='1.31', photon_index2='2.64', ts='4.09', fit_tolerance='1e-08', GAL='1.05', photon_index_error='0.00', energy_flux_error2='1.34e-04', EG='0.01', time_epoch_completed='1632971977.79', return_code='0', job_id='917625', GAL2='1.05', EG2='0.01', return_code2='0', energy_flux_error='1.17e-04', photon_flux_error2='4.80e-07', ts2='4.09', photon_index='2.56' WHERE bin_id='1277' AND source_name='4FGL J2327.5-3259' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep 29 20:19:37 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0215>
Subject: Job 917625: <4FGL_J2327.5-3259_daily_bin1277> in cluster <slac> Done

Job <4FGL_J2327.5-3259_daily_bin1277> was submitted from host <rhel6-64h> by user <kocevski> in cluster <slac> at Wed Sep 29 20:11:05 2021
Job was executed on host(s) <bullet0215>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Sep 29 20:11:06 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:11:06 2021
Terminated at Wed Sep 29 20:19:38 2021
Results reported at Wed Sep 29 20:19:38 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2327.5-3259_daily_bin1277 351.883 -32.9869 570326401 570585601 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 :                                   331.32 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             423.06 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   512 sec.
    Turnaround time :                            513 sec.

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

