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


Performing analysis on: 4FGL_J2327.5-3259_daily_bin277
RA = 351.883, Dec = -32.9869
tmin = 311126401, tmax = 311385601
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='912859', job_status='RUN', time_executed='2021-09-29 19:58:29.670975', time_epoch_executed='1632970709.67' WHERE source_name='4FGL J2327.5-3259' and cadence='daily' and bin_id='277'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/912859

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/912859/ft1_4FGL_J2327.5-3259_daily_bin277.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/912859/ft2_4FGL_J2327.5-3259_daily_bin277.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/912859/ft1_4FGL_J2327.5-3259_daily_bin277.fits outfile=/scratch/kocevski/912859/ft1_filteredMKT_4FGL_J2327.5-3259_daily_bin277.fits ra=351.883 dec=-32.9869 rad=12.0 tmin=311126401.0 tmax=311385601.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.58
user 3.34
sys 0.20

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/912859/ft1_filtered_4FGL_J2327.5-3259_daily_bin277.fits" evtable="EVENTS" scfile=/scratch/kocevski/912859/ft2_4FGL_J2327.5-3259_daily_bin277.fits sctable="SC_DATA" outfile=/scratch/kocevski/912859/ltcube_311126401_311385601_4FGL_J2327.5-3259_daily_bin277.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/912859/ft2_4FGL_J2327.5-3259_daily_bin277.fits
.....................!
real 11.80
user 11.45
sys 0.31

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/912859/ft1_filtered_4FGL_J2327.5-3259_daily_bin277.fits evtable="EVENTS" scfile=/scratch/kocevski/912859/ft2_4FGL_J2327.5-3259_daily_bin277.fits sctable="SC_DATA" expcube=/scratch/kocevski/912859/ltcube_311126401_311385601_4FGL_J2327.5-3259_daily_bin277.fits outfile=/scratch/kocevski/912859/expmap_311126401_311385601_4FGL_J2327.5-3259_daily_bin277.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/912859/ltcube_311126401_311385601_4FGL_J2327.5-3259_daily_bin277.fits
.....................!
real 190.88
user 185.81
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 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/912859/ft1_filtered_4FGL_J2327.5-3259_daily_bin277.fits scfile=/scratch/kocevski/912859/ft2_4FGL_J2327.5-3259_daily_bin277.fits outfile=/scratch/kocevski/912859/cmap_311126401_311385601_4FGL_J2327.5-3259_daily_bin277.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/912859/ft1_filtered_4FGL_J2327.5-3259_daily_bin277.fits scfile=/scratch/kocevski/912859/ft2_4FGL_J2327.5-3259_daily_bin277.fits outfile=/scratch/kocevski/912859/cmap_HighResolution_311126401_311385601_4FGL_J2327.5-3259_daily_bin277.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.53
user 0.36
sys 0.16

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/912859/ft1_filtered_4FGL_J2327.5-3259_daily_bin277.fits evtable="EVENTS" scfile=/scratch/kocevski/912859/ft2_4FGL_J2327.5-3259_daily_bin277.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/912859/Model_4FGL_J2327.5-3259_daily_bin277.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/912859/ft1_filtered_4FGL_J2327.5-3259_daily_bin277.fits.....................!
real 38.58
user 37.18
sys 1.27

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10730E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    11.422       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .11543E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10158E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10011E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    10.969       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10159E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    13.824       1.0000         .10000E-03   10000.    
    11 'norm      '    2.0927       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10151E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10008E-03   1.0000         .10000E-03   10000.    
    14 'norm      '    .10027E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    4.5195       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .41354E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    18 'norm      '    .91438       1.0000         .10000E-03   10000.    
    19 'norm      '    .10006E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10933E-03   1.0000         .10000E-03   10000.    
    21 'norm      '    4.4251       1.0000         .10000E-03   10000.    
    22 'Prefactor '    49.881       1.0000         .10000E-03   10000.    
    23 'Prefactor '    .53226E-02   1.0000         .10000E-03   10000.    
    24 'Prefactor '    1.6750       1.0000         .10000E-03   10000.    
    25 'Prefactor '    3.7891       1.0000         .10000E-03   10000.    
    26 'Normalizat'    1.2981       1.0000         .10000E-01   10.000    
    27 'Prefactor '    .61980       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=   4487.580     FROM MIGRAD    STATUS=CONVERGED    678 CALLS     3309 TOTAL
                     EDM=   .13E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .5%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    57.597       -.41914E-05** at limit **
   2  Prefactor     .10000E-03    1.5234        .87978E-07** at limit **
   3  Prefactor     .10000E-03    7.8755        .39130E-08** at limit **
   4  Prefactor     11.429        20.756        .14048E-05   -.13343E-04
   5  Prefactor     .10000E-03    30.737        .61757E-05** at limit **
   6  Prefactor     .10000E-03    18.099       -.38942E-05** at limit **
   7  Prefactor     .10000E-03    5.7824       -.15708E-07** at limit **
   8  norm          10.973        7.1993        .18357E-05   -.33699E-03
   9  Prefactor     .10000E-03    20.013        .12238E-04** at limit **
  10  Prefactor     13.822        15.797       -.12316E-06   -.36527E-03
  11  norm          2.0922        1.1312       -.17852E-06   -.12153E-02
  12  Prefactor     .10000E-03    23.475       -.10818E-04** at limit **
  13  Prefactor     .10000E-03    4.1558       -.22423E-07** at limit **
  14  norm          .10000E-03    2.7707        .12143E-06** at limit **
  15  norm          4.5177        7.2104        .91137E-05   -.82399E-04
  16  Prefactor     .10001E-03    131.37       -.16986E-04** at limit **
  17  Prefactor     .10000E-03    18.499       -.18288E-05** at limit **
  18  norm          .91857        5.9404       -.18455E-05   -.75505E-03
  19  norm          .10000E-03    1.3119        .20248E-07** at limit **
  20  Prefactor     .10000E-03    115.12        .12442E-04** at limit **
  21  norm          4.4272        4.1751        .32751E-06    .26097E-03
  22  Prefactor     49.911        71.493        .19144E-04   -.24529E-05
  23  Prefactor     .10001E-03    450.93       -.32812E-04** at limit **
  24  Prefactor     1.6740        5.6839       -.61456E-06   -.51989E-03
  25  Prefactor     3.7757        174.75       -.67294E-05    .95403E-05
  26  Normalizat    1.2982        .19844       -.30635E-06    .13451E-03
  27  Prefactor     .61983        .19942       -.27619E-05    .68686E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 11.4288
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 10.9733
  Prefactor  = 0.0001
  Prefactor  = 13.8223
  norm       = 2.0922
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 4.51772
  Prefactor  = 0.000100006
  Prefactor  = 0.0001
  norm       = 0.91857
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 4.4272
  Prefactor  = 49.9108
  Prefactor  = 0.000100012
  Prefactor  = 1.67398
  Prefactor  = 3.7757
  Normalizat = 1.29815
  Prefactor  = 0.619828
 **********
 **   18 **HESSE 
 **********

 FCN=   4487.580     FROM HESSE     STATUS=OK           480 CALLS     3789 TOTAL
                     EDM=   .25E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    57.655        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    1.5289        .80716E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    7.8788        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     11.429        20.744        .11854E-03   -1.5032    
   5  Prefactor     .10000E-03    30.832        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    18.274        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    5.8173        .15731E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          10.973        7.1686        .12097E-03   -1.5045    
   9  Prefactor     .10000E-03    19.991        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     13.822        16.430        .10773E-03   -1.4964    
  11  norm          2.0922        1.1722        .39320E-04   -1.5419    
  12  Prefactor     .10000E-03    23.467        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    4.1617        .13332E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          .10000E-03    2.7749        .10859E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          4.5177        7.1509        .18938E-03   -1.5283    
  16  Prefactor     .10001E-03    132.20        .42497E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    18.508        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          .91857        5.8981        .29713E-03   -1.5516    
  19  norm          .10000E-03    1.3175        .74922E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    117.08        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  norm          4.4272        4.1271        .12390E-03   -1.5287    
  22  Prefactor     49.911        71.263        .56781E-04   -1.4294    
  23  Prefactor     .10001E-03    466.66        .38230E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     1.6740        5.6197        .27405E-03   -1.5449    
  25  Prefactor     3.7757        172.77        .20738E-03   -1.5319    
  26  Normalizat    1.2982        .23559        .21169E-03   -.83622    
  27  Prefactor     .61983        .23484        .30495E-03   -1.0676    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.46329e-09
Minuit parameter uncertainties:
  1  5.83203e-05
  2  4.41712e-06
  3  6.23903e-06
  4  20.7574
  5  9.4808e-06
  6  1.9231e-05
  7  8.7716e-06
  8  7.16913
  9  8.87305e-05
  10  16.4356
  11  1.17219
  12  5.97805e-06
  13  1.48682e-06
  14  1.9778e-05
  15  7.15225
  16  0.00180259
  17  1.84081e-05
  18  4.65566
  19  4.80973e-07
  20  0.00048063
  21  4.12736
  22  71.3845
  23  0.00473876
  24  5.6215
  25  51.239
  26  0.235785
  27  0.235215
Done.

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

Extracting fit parameters...

4FGL J2327.5-3259
   Spectrum: PowerLaw
454    Prefactor:  1.000e-04  1.841e-05  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:  6.198e-01  2.352e-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.298e+00  2.358e-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: 7.06e-08 ph cm-2 s-1
Energy Flux Upper Limit: 5.51e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/912859/likelihoodResults_311126401_311385601_4FGL_J2327.5-3259_daily_bin277.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) = 4487.57980681
delta logL = -0.000257055957263

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 4487.57955365
delta logL = -3.89658089262e-06

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10577E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    3.3002       1.0000          .0000       10.000    
     3 'Normalizat'    1.2981       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .61983       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=   4486.713     FROM MIGRAD    STATUS=CONVERGED    198 CALLS      391 TOTAL
                     EDM=   .47E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .29680        .61688        .99125E-02    .19004E-02
   2  Index         .71407E-09    1.0246        .50000    ** at limit **
   3  Normalizat    1.2805        .22370        .21169E-03    .28748E-03
   4  Prefactor     .63438        .23179        .30495E-03    .31349E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.296796
  Index      = 7.14068e-10
  Normalizat = 1.28045
  Prefactor  = 0.634375
 **********
 **   18 **HESSE 
 **********

 FCN=   4486.713     FROM HESSE     STATUS=OK            31 CALLS      422 TOTAL
                     EDM=   .89E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .29680        .36953        .47726E-03   -1.5599    
   2  Index         .71407E-09    1.2533        .27427E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Normalizat    1.2805        .22341        .42339E-04   -.84152    
   4  Prefactor     .63438        .23166        .12198E-04   -1.0616    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 8.92128e-10
Minuit parameter uncertainties:
  1  0.369535
  2  6.11575e-05
  3  0.223576
  4  0.232009
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/912859': 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) = 4486.71349749
delta logL = 0.866052266569

Extracting fit parameters...

4FGL J2327.5-3259
   Spectrum: PowerLaw
454    Prefactor:  2.968e-01  3.695e-01  1.000e-04  1.000e+04 ( 1.000e-13)
455        Index:  7.141e-10  6.116e-05  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:  6.344e-01  2.320e-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.280e+00  2.236e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 1.74
Ra Dec: 351.883 -32.987
Photon Index (Free Index): 0.00 +/- 0.00
Photon Flux (Free Index): 2.97e-09 +/- 3.69e-09
Energy Flux (Free Index): 1.49e-04 +/- 1.85e-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/912859/cmap_HighResolution_311126401_311385601_4FGL_J2327.5-3259_daily_bin277.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='5.51e-03', comment='SUCCESS', energy_flux2='1.49e-04', dlogl='8.66e-01', photon_flux2='2.97e-09', job_status='DONE', time_completed='2021-09-29 20:09:18.314359', photon_index_error2='0.00', photon_index2='0.00', ts='-0.00', fit_tolerance='1e-08', GAL='0.62', photon_index_error='0.00', photon_flux_upper_limit='7.06e-08', energy_flux_error2='1.85e-04', EG='1.30', time_epoch_completed='1632971358.31', return_code='0', job_id='912859', GAL2='0.63', EG2='1.28', return_code2='0', photon_flux_error2='3.69e-09', ts2='1.74', photon_index='2.56' WHERE bin_id='277' AND source_name='4FGL J2327.5-3259' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep 29 20:09:18 PDT 2021


------------------------------------------------------------
Sender: LSF System <scs@bullet0256>
Subject: Job 912859: <4FGL_J2327.5-3259_daily_bin277> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2327.5-3259_daily_bin277 351.883 -32.9869 311126401 311385601 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 :                                   646.25 sec.
    Max Memory :                                 1140 MB
    Average Memory :                             277.92 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   814 sec.
    Turnaround time :                            817 sec.

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

