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


Performing analysis on: 4FGL_J2327.5-3259_daily_bin1077
RA = 351.883, Dec = -32.9869
tmin = 518486401, tmax = 518745601
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='917307', job_status='RUN', time_executed='2021-09-29 20:13:54.429798', time_epoch_executed='1632971634.43' WHERE source_name='4FGL J2327.5-3259' and cadence='daily' and bin_id='1077'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/917307

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/917307/ft1_4FGL_J2327.5-3259_daily_bin1077.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/917307/ft2_4FGL_J2327.5-3259_daily_bin1077.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/917307/ft1_4FGL_J2327.5-3259_daily_bin1077.fits outfile=/scratch/kocevski/917307/ft1_filteredMKT_4FGL_J2327.5-3259_daily_bin1077.fits ra=351.883 dec=-32.9869 rad=12.0 tmin=518486401.0 tmax=518745601.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 6.81
user 6.53
sys 0.26

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/917307/ft1_filtered_4FGL_J2327.5-3259_daily_bin1077.fits" evtable="EVENTS" scfile=/scratch/kocevski/917307/ft2_4FGL_J2327.5-3259_daily_bin1077.fits sctable="SC_DATA" outfile=/scratch/kocevski/917307/ltcube_518486401_518745601_4FGL_J2327.5-3259_daily_bin1077.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/917307/ft2_4FGL_J2327.5-3259_daily_bin1077.fits
.....................!
real 12.80
user 12.40
sys 0.37

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/917307/ft1_filtered_4FGL_J2327.5-3259_daily_bin1077.fits evtable="EVENTS" scfile=/scratch/kocevski/917307/ft2_4FGL_J2327.5-3259_daily_bin1077.fits sctable="SC_DATA" expcube=/scratch/kocevski/917307/ltcube_518486401_518745601_4FGL_J2327.5-3259_daily_bin1077.fits outfile=/scratch/kocevski/917307/expmap_518486401_518745601_4FGL_J2327.5-3259_daily_bin1077.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/917307/ltcube_518486401_518745601_4FGL_J2327.5-3259_daily_bin1077.fits
.....................!
real 190.74
user 185.27
sys 5.10

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/917307/ft1_filtered_4FGL_J2327.5-3259_daily_bin1077.fits scfile=/scratch/kocevski/917307/ft2_4FGL_J2327.5-3259_daily_bin1077.fits outfile=/scratch/kocevski/917307/cmap_518486401_518745601_4FGL_J2327.5-3259_daily_bin1077.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/917307/ft1_filtered_4FGL_J2327.5-3259_daily_bin1077.fits scfile=/scratch/kocevski/917307/ft2_4FGL_J2327.5-3259_daily_bin1077.fits outfile=/scratch/kocevski/917307/cmap_HighResolution_518486401_518745601_4FGL_J2327.5-3259_daily_bin1077.fits algorithm="CMAP" ebinalg="LOG" emin=30.0 emax=200000.0 ebinfile=NONE tbinalg="LIN" tbinfile=NONE nxpix=500 nypix=500 binsz=0.1 coordsys="CEL" xref=351.883 yref=-32.9869 axisrot=0.0 rafield="RA" decfield="DEC" proj="AIT" hpx_ordering_scheme="RING" hpx_order=3 hpx_ebin=yes hpx_region="" evtable="EVENTS" sctable="SC_DATA" efield="ENERGY" tfield="TIME" chatter=2 clobber=yes debug=no gui=no mode="ql"

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

This is gtbin version HEAD
real 0.54
user 0.37
sys 0.16

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/917307/ft1_filtered_4FGL_J2327.5-3259_daily_bin1077.fits evtable="EVENTS" scfile=/scratch/kocevski/917307/ft2_4FGL_J2327.5-3259_daily_bin1077.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/917307/Model_4FGL_J2327.5-3259_daily_bin1077.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/917307/ft1_filtered_4FGL_J2327.5-3259_daily_bin1077.fits.....................!
real 27.34
user 25.98
sys 1.25

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    84.443       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .53856       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .32236E-01   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .12955E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .26945E-02   1.0000         .10000E-03   10000.    
     6 'Prefactor '    16.843       1.0000         .10000E-03   10000.    
     7 'Prefactor '    7.1336       1.0000         .10000E-03   10000.    
     8 'norm      '    .10032E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10402E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .60435E-02   1.0000         .10000E-03   10000.    
    11 'norm      '    2.9950       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .22483E-02   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10903E-03   1.0000         .10000E-03   10000.    
    14 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    21.628       1.0000         .10000E-03   10000.    
    16 'Prefactor '    135.87       1.0000         .10000E-03   10000.    
    17 'Prefactor '    43.950       1.0000         .10000E-03   10000.    
    18 'norm      '    .14626E-02   1.0000         .10000E-03   10000.    
    19 'norm      '    20.129       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .11522E-02   1.0000         .10000E-03   10000.    
    21 'norm      '    .16707E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    111.21       1.0000         .10000E-03   10000.    
    23 'Prefactor '    8.4870       1.0000         .10000E-03   10000.    
    24 'Prefactor '    11.883       1.0000         .10000E-03   10000.    
    25 'Prefactor '    49.924       1.0000         .10000E-03   10000.    
    26 'Normalizat'    .31199       1.0000         .10000E-01   10.000    
    27 'Prefactor '    1.2169       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=   2620.751     FROM MIGRAD    STATUS=CONVERGED    740 CALLS     3073 TOTAL
                     EDM=   .17E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.8%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     84.782        68.030       -.78005E-06   -.21201E-04
   2  Prefactor     .53498        6.2033        .68917E-06   -.58564E-03
   3  Prefactor     .10000E-03    151.67       -.32228E-05** at limit **
   4  Prefactor     .10000E-03    10.526       -.16622E-06** at limit **
   5  Prefactor     .10000E-03    24.134       -.50556E-06** at limit **
   6  Prefactor     16.348        19.515       -.11508E-05    .80332E-04
   7  Prefactor     7.1575        12.552       -.65796E-06   -.22716E-05
   8  norm          .10000E-03    4.9993       -.24819E-06** at limit **
   9  Prefactor     .10000E-03    11.116       -.20083E-06** at limit **
  10  Prefactor     .10000E-03    39.005       -.29110E-05** at limit **
  11  norm          2.9967        1.1659       -.62554E-07    .68526E-03
  12  Prefactor     .10000E-03    27.823       -.24344E-06** at limit **
  13  Prefactor     .10000E-03    14.703       -.81344E-06** at limit **
  14  norm          .10000E-03    3.2288        .70586E-07** at limit **
  15  norm          21.424        18.046       -.86391E-06   -.60135E-04
  16  Prefactor     135.26        65.423       -.77732E-05   -.59160E-03
  17  Prefactor     43.085        68.759       -.18608E-05    .25118E-04
  18  norm          .10000E-03    9.8218        .58882E-05** at limit **
  19  norm          20.094        7.8082       -.34398E-06    .15243E-03
  20  Prefactor     .10000E-03    27.378        .12483E-05** at limit **
  21  norm          .10000E-03    13.271        .47391E-06** at limit **
  22  Prefactor     111.97        150.18       -.24843E-05    .75815E-04
  23  Prefactor     8.9773        92.399       -.15642E-05   -.23817E-05
  24  Prefactor     11.900        11.054       -.57022E-06   -.85846E-04
  25  Prefactor     49.831        66.817       -.10512E-05   -.60649E-04
  26  Normalizat    .31358        .31587        .11840E-04   -.34521E-03
  27  Prefactor     1.2170        .29850       -.40031E-05   -.25880E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 84.7823
  Prefactor  = 0.534976
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 16.3481
  Prefactor  = 7.15753
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000100003
  norm       = 2.99668
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 21.424
  Prefactor  = 135.263
  Prefactor  = 43.0852
  norm       = 0.000100001
  norm       = 20.0944
  Prefactor  = 0.000100001
  norm       = 0.0001
  Prefactor  = 111.968
  Prefactor  = 8.97734
  Prefactor  = 11.8998
  Prefactor  = 49.8307
  Normalizat = 0.313576
  Prefactor  = 1.21704
 **********
 **   18 **HESSE 
 **********

 FCN=   2620.751     FROM HESSE     STATUS=OK           484 CALLS     3557 TOTAL
                     EDM=   .32E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     84.782        67.945        .21857E-03   -1.3864    
   2  Prefactor     .53498        9.9324        .22120E-02   -1.5562    
   3  Prefactor     .10000E-03    152.97        .18366E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    10.528        .16223E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    24.147        .19942E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     16.348        19.361        .97592E-04   -1.4899    
   7  Prefactor     7.1575        12.499        .15019E-03   -1.5173    
   8  norm          .10000E-03    5.0504        .11155E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    11.123        .16666E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    39.728        .37858E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          2.9967        1.1526        .32272E-04   -1.5362    
  12  Prefactor     .10000E-03    27.825        .20121E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    14.766        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          .10000E-03    3.2298        .89840E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          21.424        18.012        .86126E-04   -1.4782    
  16  Prefactor     135.26        70.676        .34551E-04   -1.3377    
  17  Prefactor     43.085        68.430        .60474E-04   -1.4394    
  18  norm          .10000E-03    16.689        .28941E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  norm          20.094        7.7721        .84493E-04   -1.4811    
  20  Prefactor     .10000E-03    27.329        .20666E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  norm          .10000E-03    13.636        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     111.97        148.76        .19072E-03   -1.3588    
  23  Prefactor     8.9773        91.807        .13760E-03   -1.5109    
  24  Prefactor     11.900        11.005        .11621E-03   -1.5018    
  25  Prefactor     49.831        65.423        .56756E-04   -1.4295    
  26  Normalizat    .31358        .31384        .37909E-03   -1.2204    
  27  Prefactor     1.2170        .31411        .22024E-03   -.85809    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.21864e-09
Minuit parameter uncertainties:
  1  68.0074
  2  4.6107
  3  0.000367201
  4  2.15762e-05
  5  9.66325e-05
  6  19.368
  7  12.5032
  8  3.08762e-05
  9  3.12308e-05
  10  0.000734271
  11  1.15257
  12  4.96523e-05
  13  0.000120265
  14  4.10845e-07
  15  18.0165
  16  70.7205
  17  68.5552
  18  0.000258761
  19  7.77245
  20  0.000313458
  21  0.000109311
  22  149.265
  23  57.5309
  24  11.0064
  25  65.5177
  26  0.315621
  27  0.314598
Done.

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

Extracting fit parameters...

4FGL J2327.5-3259
   Spectrum: PowerLaw
454    Prefactor:  4.309e+01  6.856e+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:  1.217e+00  3.146e-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:  3.136e-01  3.156e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/917307/likelihoodResults_518486401_518745601_4FGL_J2327.5-3259_daily_bin1077.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): 0
logL (Free Index) = 2620.7417969
delta logL = 0.00958470717615

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 2620.73516269
delta logL = 0.0162189207258

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    34.138       1.0000         .10000E-03   10000.    
     2 'Index     '    2.8231       1.0000          .0000       10.000    
     3 'Normalizat'    .30724       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.2228       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=   2620.735     FROM MIGRAD    STATUS=CONVERGED     82 CALLS      259 TOTAL
                     EDM=   .88E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     34.176        77.588        .68585E-04   -.33981E-05
   2  Index         2.8207        1.5494        .90178E-03   -.40027E-05
   3  Normalizat    .30715        .28132        .38311E-03   -.31158E-04
   4  Prefactor     1.2229        .30949        .21978E-03   -.31668E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 34.1764
  Index      = 2.82066
  Normalizat = 0.307148
  Prefactor  = 1.22292
 **********
 **   18 **HESSE 
 **********

 FCN=   2620.735     FROM HESSE     STATUS=OK            23 CALLS      282 TOTAL
                     EDM=   .89E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     34.176        76.862        .27434E-05   -1.4538    
   2  Index         2.8207        1.5349        .36071E-04   -.45100    
   3  Normalizat    .30715        .28131        .15324E-04   -1.2241    
   4  Prefactor     1.2229        .30946        .43956E-04   -.85629    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 8.8903e-12
Minuit parameter uncertainties:
  1  77.0859
  2  1.56637
  3  0.28261
  4  0.309918
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/917307': 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) = 2620.73516079
delta logL = 0.0162208151564

Extracting fit parameters...

4FGL J2327.5-3259
   Spectrum: PowerLaw
454    Prefactor:  3.418e+01  7.709e+01  1.000e-04  1.000e+04 ( 1.000e-13)
455        Index:  2.821e+00  1.566e+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.223e+00  3.099e-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:  3.071e-01  2.826e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 0.58
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/917307/cmap_HighResolution_518486401_518745601_4FGL_J2327.5-3259_daily_bin1077.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.35e-02', job_status='DONE', photon_flux_upper_limit='1.73e-07', time_completed='2021-09-29 20:24:50.766620', job_id='917307', GAL2='1.22', fit_tolerance='1e-08', EG2='0.31', EG='0.31', time_epoch_completed='1632972290.77', return_code2='0', ts='0.58', comment='SUCCESS', return_code='0', GAL='1.22', dlogl='1.62e-02', ts2='0.61', photon_index_error='0.00', photon_index='2.56' WHERE bin_id='1077' AND source_name='4FGL J2327.5-3259' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep 29 20:24:50 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0225>
Subject: Job 917307: <4FGL_J2327.5-3259_daily_bin1077> in cluster <slac> Done

Job <4FGL_J2327.5-3259_daily_bin1077> was submitted from host <rhel6-64h> by user <kocevski> in cluster <slac> at Wed Sep 29 20:10:37 2021
Job was executed on host(s) <bullet0225>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Sep 29 20:10:38 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:38 2021
Terminated at Wed Sep 29 20:24:51 2021
Results reported at Wed Sep 29 20:24:51 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2327.5-3259_daily_bin1077 351.883 -32.9869 518486401 518745601 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 :                                   517.00 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             215.00 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   853 sec.
    Turnaround time :                            854 sec.

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

