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


Performing analysis on: 4FGL_J2327.5-3259_daily_bin543
RA = 351.883, Dec = -32.9869
tmin = 380073601, tmax = 380332801
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='914349', job_status='RUN', time_executed='2021-09-29 20:02:49.858411', time_epoch_executed='1632970969.86' WHERE source_name='4FGL J2327.5-3259' and cadence='daily' and bin_id='543'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/914349

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/914349/ft1_4FGL_J2327.5-3259_daily_bin543.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/914349/ft2_4FGL_J2327.5-3259_daily_bin543.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/914349/ft1_4FGL_J2327.5-3259_daily_bin543.fits outfile=/scratch/kocevski/914349/ft1_filteredMKT_4FGL_J2327.5-3259_daily_bin543.fits ra=351.883 dec=-32.9869 rad=12.0 tmin=380073601.0 tmax=380332801.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 4.49
user 4.23
sys 0.23

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/914349/ft2_4FGL_J2327.5-3259_daily_bin543.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/914349/ft1_filteredMKT_4FGL_J2327.5-3259_daily_bin543.fits evtable="EVENTS" outfile="/scratch/kocevski/914349/ft1_filtered_4FGL_J2327.5-3259_daily_bin543.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.15

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/914349/ft1_filtered_4FGL_J2327.5-3259_daily_bin543.fits" evtable="EVENTS" scfile=/scratch/kocevski/914349/ft2_4FGL_J2327.5-3259_daily_bin543.fits sctable="SC_DATA" outfile=/scratch/kocevski/914349/ltcube_380073601_380332801_4FGL_J2327.5-3259_daily_bin543.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/914349/ft2_4FGL_J2327.5-3259_daily_bin543.fits
.....................!
real 11.92
user 11.59
sys 0.30

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/914349/ft1_filtered_4FGL_J2327.5-3259_daily_bin543.fits evtable="EVENTS" scfile=/scratch/kocevski/914349/ft2_4FGL_J2327.5-3259_daily_bin543.fits sctable="SC_DATA" expcube=/scratch/kocevski/914349/ltcube_380073601_380332801_4FGL_J2327.5-3259_daily_bin543.fits outfile=/scratch/kocevski/914349/expmap_380073601_380332801_4FGL_J2327.5-3259_daily_bin543.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/914349/ltcube_380073601_380332801_4FGL_J2327.5-3259_daily_bin543.fits
.....................!
real 190.90
user 185.71
sys 4.86

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/914349/ft1_filtered_4FGL_J2327.5-3259_daily_bin543.fits scfile=/scratch/kocevski/914349/ft2_4FGL_J2327.5-3259_daily_bin543.fits outfile=/scratch/kocevski/914349/cmap_380073601_380332801_4FGL_J2327.5-3259_daily_bin543.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.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/914349/ft1_filtered_4FGL_J2327.5-3259_daily_bin543.fits scfile=/scratch/kocevski/914349/ft2_4FGL_J2327.5-3259_daily_bin543.fits outfile=/scratch/kocevski/914349/cmap_HighResolution_380073601_380332801_4FGL_J2327.5-3259_daily_bin543.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/914349/ft1_filtered_4FGL_J2327.5-3259_daily_bin543.fits evtable="EVENTS" scfile=/scratch/kocevski/914349/ft2_4FGL_J2327.5-3259_daily_bin543.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/914349/Model_4FGL_J2327.5-3259_daily_bin543.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/914349/ft1_filtered_4FGL_J2327.5-3259_daily_bin543.fits.....................!
real 37.55
user 36.14
sys 1.27

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10845E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10019E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10036E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    16.264       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10022E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    50.633       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    10.706       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10039E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    13.010       1.0000         .10000E-03   10000.    
    11 'norm      '    .72008E-01   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .86966       1.0000         .10000E-03   10000.    
    13 'Prefactor '    10.108       1.0000         .10000E-03   10000.    
    14 'norm      '    5.3584       1.0000         .10000E-03   10000.    
    15 'norm      '    19.172       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    15.773       1.0000         .10000E-03   10000.    
    18 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    19 'norm      '    1.8267       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    21 'norm      '    6.9604       1.0000         .10000E-03   10000.    
    22 'Prefactor '    .11192E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10059E-03   1.0000         .10000E-03   10000.    
    24 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    25 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
    26 'Normalizat'    1.2605       1.0000         .10000E-01   10.000    
    27 'Prefactor '    .80074       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.249     FROM MIGRAD    STATUS=CONVERGED    670 CALLS     3281 TOTAL
                     EDM=   .12E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .4%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    127.87        .24400E-04** at limit **
   2  Prefactor     .10000E-03    3.8452        .24677E-08** at limit **
   3  Prefactor     .10000E-03    20.797       -.63397E-05** at limit **
   4  Prefactor     16.265        17.481        .72308E-06   -.49938E-04
   5  Prefactor     .10000E-03    31.393        .36189E-04** at limit **
   6  Prefactor     50.636        20.261        .19742E-06    .16375E-04
   7  Prefactor     .10000E-03    2.8125        .24647E-07** at limit **
   8  norm          10.711        6.9127       -.60636E-07    .34923E-03
   9  Prefactor     .10000E-03    15.313       -.71920E-05** at limit **
  10  Prefactor     13.015        15.852       -.34342E-06    .43031E-03
  11  norm          .71371E-01    1.6185       -.50376E-06   -.12958E-03
  12  Prefactor     .78817        43.006        .53552E-06   -.14054E-03
  13  Prefactor     10.112        16.135        .86384E-06    .30987E-03
  14  norm          5.3583        4.9297       -.17312E-06   -.57465E-04
  15  norm          19.171        12.582       -.81250E-06   -.50271E-04
  16  Prefactor     .10000E-03    16.039        .12860E-04** at limit **
  17  Prefactor     15.795        61.267        .24727E-04    .38160E-05
  18  norm          .10000E-03    2.2933       -.43075E-07** at limit **
  19  norm          1.8258        2.4390       -.60606E-06   -.20395E-02
  20  Prefactor     .10000E-03    17.817       -.39017E-05** at limit **
  21  norm          6.9602        5.6002        .65941E-06   -.22369E-03
  22  Prefactor     .10000E-03    278.53       -.52525E-04** at limit **
  23  Prefactor     .10000E-03    33.947       -.35064E-04** at limit **
  24  Prefactor     .10000E-03    2.8372       -.11022E-06** at limit **
  25  Prefactor     .10000E-03    15.436       -.17205E-05** at limit **
  26  Normalizat    1.2605        .22638       -.14916E-05    .13109E-03
  27  Prefactor     .80076        .23662        .25236E-06    .10979E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 16.2654
  Prefactor  = 0.0001
  Prefactor  = 50.6362
  Prefactor  = 0.0001
  norm       = 10.7107
  Prefactor  = 0.0001
  Prefactor  = 13.0148
  norm       = 0.0713709
  Prefactor  = 0.788174
  Prefactor  = 10.1118
  norm       = 5.35831
  norm       = 19.171
  Prefactor  = 0.0001
  Prefactor  = 15.7947
  norm       = 0.0001
  norm       = 1.82577
  Prefactor  = 0.0001
  norm       = 6.96018
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Normalizat = 1.26051
  Prefactor  = 0.80076
 **********
 **   18 **HESSE 
 **********

 FCN=   4256.249     FROM HESSE     STATUS=OK           490 CALLS     3771 TOTAL
                     EDM=   .38E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    128.85        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    3.9027        .12486E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    20.829        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     16.265        17.476        .99313E-04   -1.4901    
   5  Prefactor     .10000E-03    31.327        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     50.636        20.285        .56359E-04   -1.4284    
   7  Prefactor     .10000E-03    2.8136        .10685E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          10.711        6.8562        .12245E-03   -1.5053    
   9  Prefactor     .10000E-03    15.316        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     13.015        15.155        .11105E-03   -1.4986    
  11  norm          .71371E-01    3.0447        .10393E-02   -1.5655    
  12  Prefactor     .78817        447.85        .82684E-02   -1.5530    
  13  Prefactor     10.112        15.522        .12603E-03   -1.5072    
  14  norm          5.3583        4.9244        .13522E-03   -1.5245    
  15  norm          19.171        12.578        .91474E-04   -1.4832    
  16  Prefactor     .10000E-03    16.034        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     15.795        61.434        .10085E-03   -1.4913    
  18  norm          .10000E-03    2.3111        .96348E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  norm          1.8258        2.4400        .57712E-03   -1.5438    
  20  Prefactor     .10000E-03    17.826        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  norm          6.9602        5.5939        .13283E-03   -1.5180    
  22  Prefactor     .10000E-03    278.64        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     .10000E-03    33.868        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     .10000E-03    2.8513        .10731E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Prefactor     .10000E-03    15.437        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  Normalizat    1.2605        .27919        .23516E-03   -.84753    
  27  Prefactor     .80076        .29123        .30276E-03   -.99700    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.76632e-08
Minuit parameter uncertainties:
  1  0.000163699
  2  1.09973e-05
  3  1.90716e-05
  4  17.4819
  5  4.07601e-05
  6  20.2876
  7  3.94846e-08
  8  6.8567
  9  5.34323e-05
  10  15.1592
  11  0.931712
  12  37.861
  13  15.5284
  14  4.92479
  15  12.5802
  16  6.22891e-06
  17  61.6817
  18  2.9794e-06
  19  2.44014
  20  1.85312e-05
  21  5.59429
  22  0.000322448
  23  2.11564e-05
  24  2.78582e-07
  25  2.77609e-06
  26  0.27952
  27  0.29179
Done.

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

Extracting fit parameters...

4FGL J2327.5-3259
   Spectrum: PowerLaw
454    Prefactor:  1.579e+01  6.168e+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.008e-01  2.918e-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.261e+00  2.795e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 0.08
Ra Dec: 351.883 -32.987
Photon Flux Upper Limit: 1.35e-07 ph cm-2 s-1
Energy Flux Upper Limit: 1.06e-02 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/914349/likelihoodResults_380073601_380332801_4FGL_J2327.5-3259_daily_bin543.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) = 4255.97325287
delta logL = 0.275262825917

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 4255.90629394
delta logL = 0.342221750557

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    6.5291       1.0000         .10000E-03   10000.    
     2 'Index     '    4.3740       1.0000          .0000       10.000    
     3 'Normalizat'    1.1855       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .85182       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.
 MACHINE ACCURACY LIMITS FURTHER IMPROVEMENT.

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.
 MIGRAD TERMINATED WITHOUT CONVERGENCE.

 FCN=   4255.906     FROM MIGRAD    STATUS=FAILED       104 CALLS      282 TOTAL
                     EDM=   .56E-06    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     6.5014        401.61        .78529E-03   -.11021E-03
   2  Index         4.3767        6.6865        .75028E-02    .33636E-03
   3  Normalizat    1.1855        .22565        .24123E-03   -.65413E-04
   4  Prefactor     .85186        .23275        .29434E-03   -.35843E-04
                               ERR DEF=  .500    
 START SIMPLEX MINIMIZATION.    CONVERGENCE WHEN EDM .LT.   .20E-04
 SIMPLEX MINIMIZATION HAS CONVERGED.

 FCN=   4255.906     FROM SIMPLEX   STATUS=UNCHANGED     93 CALLS      375 TOTAL
                     EDM=   .14E-04    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     6.5014        401.61        .65182E-03   -.11021E-03
   2  Index         4.3767        6.6865        .32368E-02    .33636E-03
   3  Normalizat    1.1855        .22565        .24776E-03   -.65413E-04
   4  Prefactor     .85186        .23275        .14284E-03   -.35843E-04
                               ERR DEF=  .500    

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   4255.906     FROM MIGRAD    STATUS=CONVERGED     31 CALLS      406 TOTAL
                     EDM=   .12E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     6.5014        55.741        .31412E-04   -.69489E-04
   2  Index         4.3767        3.4763        .15006E-02   -.97128E-05
   3  Normalizat    1.1855        .28512        .96493E-05   -.33225E-04
   4  Prefactor     .85186        .29032        .11774E-04   -.17381E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 6.50136
  Index      = 4.37668
  Normalizat = 1.18549
  Prefactor  = 0.851856
 **********
 **   18 **HESSE 
 **********

 FCN=   4255.906     FROM HESSE     STATUS=OK            23 CALLS      429 TOTAL
                     EDM=   .75E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     6.5014        30.647        .12565E-05   -1.5198    
   2  Index         4.3767        2.6975        .60022E-04   -.12499    
   3  Normalizat    1.1855        .28317        .19299E-05   -.87052    
   4  Prefactor     .85186        .28800        .23547E-05   -.97844    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 7.51189e-12
Minuit parameter uncertainties:
  1  28.2544
  2  2.85205
  3  0.283535
  4  0.28851
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/914349': 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.90629342
delta logL = 0.342222271041

Extracting fit parameters...

4FGL J2327.5-3259
   Spectrum: PowerLaw
454    Prefactor:  6.501e+00  2.825e+01  1.000e-04  1.000e+04 ( 1.000e-13)
455        Index:  4.377e+00  2.852e+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:  8.519e-01  2.885e-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.185e+00  2.835e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

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/914349/cmap_HighResolution_380073601_380332801_4FGL_J2327.5-3259_daily_bin543.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.06e-02', job_status='DONE', photon_flux_upper_limit='1.35e-07', time_completed='2021-09-29 20:13:29.805594', job_id='914349', GAL2='0.85', fit_tolerance='1e-08', EG2='1.19', EG='1.26', time_epoch_completed='1632971609.81', return_code2='0', ts='0.08', comment='SUCCESS', return_code='0', GAL='0.80', dlogl='3.42e-01', ts2='0.84', photon_index_error='0.00', photon_index='2.56' WHERE bin_id='543' AND source_name='4FGL J2327.5-3259' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep 29 20:13:29 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0255>
Subject: Job 914349: <4FGL_J2327.5-3259_daily_bin543> in cluster <slac> Done

Job <4FGL_J2327.5-3259_daily_bin543> was submitted from host <rhel6-64h> by user <kocevski> in cluster <slac> at Wed Sep 29 20:00:47 2021
Job was executed on host(s) <bullet0255>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Sep 29 20:00:49 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:00:49 2021
Terminated at Wed Sep 29 20:13:30 2021
Results reported at Wed Sep 29 20:13:30 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2327.5-3259_daily_bin543 351.883 -32.9869 380073601 380332801 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 :                                   637.00 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             312.12 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   761 sec.
    Turnaround time :                            763 sec.

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

