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


Performing analysis on: 4FGL_J2327.5-3259_daily_bin610
RA = 351.883, Dec = -32.9869
tmin = 397440001, tmax = 397699201
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='915550', job_status='RUN', time_executed='2021-09-29 20:05:28.991308', time_epoch_executed='1632971128.99' WHERE source_name='4FGL J2327.5-3259' and cadence='daily' and bin_id='610'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/915550

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/915550/ft1_4FGL_J2327.5-3259_daily_bin610.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/915550/ft2_4FGL_J2327.5-3259_daily_bin610.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/915550/ft1_4FGL_J2327.5-3259_daily_bin610.fits outfile=/scratch/kocevski/915550/ft1_filteredMKT_4FGL_J2327.5-3259_daily_bin610.fits ra=351.883 dec=-32.9869 rad=12.0 tmin=397440001.0 tmax=397699201.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.58
user 4.29
sys 0.24

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/915550/ft1_filtered_4FGL_J2327.5-3259_daily_bin610.fits" evtable="EVENTS" scfile=/scratch/kocevski/915550/ft2_4FGL_J2327.5-3259_daily_bin610.fits sctable="SC_DATA" outfile=/scratch/kocevski/915550/ltcube_397440001_397699201_4FGL_J2327.5-3259_daily_bin610.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/915550/ft2_4FGL_J2327.5-3259_daily_bin610.fits
.....................!
real 11.87
user 11.51
sys 0.31

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/915550/ft1_filtered_4FGL_J2327.5-3259_daily_bin610.fits evtable="EVENTS" scfile=/scratch/kocevski/915550/ft2_4FGL_J2327.5-3259_daily_bin610.fits sctable="SC_DATA" expcube=/scratch/kocevski/915550/ltcube_397440001_397699201_4FGL_J2327.5-3259_daily_bin610.fits outfile=/scratch/kocevski/915550/expmap_397440001_397699201_4FGL_J2327.5-3259_daily_bin610.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/915550/ltcube_397440001_397699201_4FGL_J2327.5-3259_daily_bin610.fits
.....................!
real 190.84
user 185.53
sys 4.99

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/915550/ft1_filtered_4FGL_J2327.5-3259_daily_bin610.fits scfile=/scratch/kocevski/915550/ft2_4FGL_J2327.5-3259_daily_bin610.fits outfile=/scratch/kocevski/915550/cmap_397440001_397699201_4FGL_J2327.5-3259_daily_bin610.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.54
user 0.38
sys 0.14

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

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/915550/ft1_filtered_4FGL_J2327.5-3259_daily_bin610.fits evtable="EVENTS" scfile=/scratch/kocevski/915550/ft2_4FGL_J2327.5-3259_daily_bin610.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/915550/Model_4FGL_J2327.5-3259_daily_bin610.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/915550/ft1_filtered_4FGL_J2327.5-3259_daily_bin610.fits.....................!
real 45.23
user 43.90
sys 1.13

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    9.4420       1.0000         .10000E-03   10000.    
     2 'Prefactor '    2.5623       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10013E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    6.2192       1.0000         .10000E-03   10000.    
     8 'norm      '    3.1840       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10144E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    4.7616       1.0000         .10000E-03   10000.    
    11 'norm      '    .10157E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    49.741       1.0000         .10000E-03   10000.    
    13 'Prefactor '    21.199       1.0000         .10000E-03   10000.    
    14 'norm      '    .16384       1.0000         .10000E-03   10000.    
    15 'norm      '    8.6287       1.0000         .10000E-03   10000.    
    16 'Prefactor '    18.426       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    18 'norm      '    .10759E-03   1.0000         .10000E-03   10000.    
    19 'norm      '    .10004E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10617E-03   1.0000         .10000E-03   10000.    
    21 'norm      '    .26625E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    33.977       1.0000         .10000E-03   10000.    
    24 'Prefactor '    .79991       1.0000         .10000E-03   10000.    
    25 'Prefactor '    .10063E-03   1.0000         .10000E-03   10000.    
    26 'Normalizat'    .99549       1.0000         .10000E-01   10.000    
    27 'Prefactor '    .82170       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=   6135.787     FROM MIGRAD    STATUS=CONVERGED    667 CALLS     3319 TOTAL
                     EDM=   .23E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  3.9%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     9.4466        42.339       -.16423E-05    .21508E-05
   2  Prefactor     2.5624        3.8631       -.33934E-06    .34560E-03
   3  Prefactor     .10000E-03    7.5658       -.53560E-06** at limit **
   4  Prefactor     .10000E-03    7.7514       -.18378E-06** at limit **
   5  Prefactor     .10000E-03    8.5186        .68422E-06** at limit **
   6  Prefactor     .10000E-03    5.8374       -.19010E-06** at limit **
   7  Prefactor     6.2217        9.8642        .45093E-07    .64855E-04
   8  norm          3.1835        3.8616       -.11557E-06   -.14463E-03
   9  Prefactor     .10000E-03    6.5578        .61293E-06** at limit **
  10  Prefactor     4.7535        9.3147       -.12552E-05   -.32180E-03
  11  norm          .10000E-03    .25722        .21508E-06** at limit **
  12  Prefactor     49.754        60.757       -.28709E-05   -.77177E-05
  13  Prefactor     21.197        11.717       -.12045E-07   -.46776E-03
  14  norm          .15284        12.754        .37348E-05   -.75793E-04
  15  norm          8.6297        6.9774       -.41347E-08    .14578E-04
  16  Prefactor     18.429        24.605        .27664E-06   -.27602E-04
  17  Prefactor     .10000E-03    33.220        .30001E-06** at limit **
  18  norm          .10000E-03    3.6052       -.64054E-07** at limit **
  19  norm          .10000E-03    1.4002       -.53289E-07** at limit **
  20  Prefactor     .10000E-03    81.193        .30122E-05** at limit **
  21  norm          .10000E-03    2.5991       -.26323E-06** at limit **
  22  Prefactor     .10000E-03    67.655       -.28142E-05** at limit **
  23  Prefactor     33.978        43.282       -.14834E-06    .36699E-05
  24  Prefactor     .80213        4.0910        .35411E-06    .17372E-03
  25  Prefactor     .10000E-03    52.799       -.16777E-06** at limit **
  26  Normalizat    .99540        .16542        .75350E-06   -.21914E-03
  27  Prefactor     .82167        .17450        .16472E-06   -.10097E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 9.44662
  Prefactor  = 2.56241
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 6.22167
  norm       = 3.18347
  Prefactor  = 0.0001
  Prefactor  = 4.75349
  norm       = 0.0001
  Prefactor  = 49.7543
  Prefactor  = 21.1967
  norm       = 0.152837
  norm       = 8.62968
  Prefactor  = 18.4285
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 0.000100001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 33.9782
  Prefactor  = 0.802134
  Prefactor  = 0.0001
  Normalizat = 0.995404
  Prefactor  = 0.821665
 **********
 **   18 **HESSE 
 **********

 FCN=   6135.787     FROM HESSE     STATUS=OK           494 CALLS     3813 TOTAL
                     EDM=   .56E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     9.4466        42.100        .13042E-03   -1.5093    
   2  Prefactor     2.5624        3.8465        .17570E-03   -1.5388    
   3  Prefactor     .10000E-03    7.5670        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    7.7778        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    8.5156        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    5.8879        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     6.2217        9.8928        .16097E-03   -1.5209    
   8  norm          3.1835        3.8189        .14627E-03   -1.5351    
   9  Prefactor     .10000E-03    6.6042        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     4.7535        9.1844        .18439E-03   -1.5272    
  11  norm          .10000E-03    .46037        .70569E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     49.754        60.099        .56860E-04   -1.4296    
  13  Prefactor     21.197        11.521        .86993E-04   -1.4787    
  14  norm          .15284        13.150        .26504E-02   -1.5630    
  15  norm          8.6297        6.9802        .13646E-03   -1.5120    
  16  Prefactor     18.429        23.890        .93304E-04   -1.4849    
  17  Prefactor     .10000E-03    33.271        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          .10000E-03    3.6889        .28705E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  norm          .10000E-03    1.4366        .18100E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    81.448        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  norm          .10000E-03    5.5519        .23857E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     .10000E-03    67.750        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     33.978        43.246        .68747E-04   -1.4541    
  24  Prefactor     .80213        7.4244        .28668E-02   -1.5529    
  25  Prefactor     .10000E-03    53.287        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  Normalizat    .99540        .19918        .21245E-03   -.93185    
  27  Prefactor     .82167        .21147        .25611E-03   -.98935    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.55818e-08
Minuit parameter uncertainties:
  1  39.9315
  2  3.84688
  3  3.36698e-06
  4  2.9107e-08
  5  5.25307e-06
  6  3.55954e-06
  7  9.89542
  8  3.81919
  9  2.35793e-05
  10  9.18713
  11  3.30138e-06
  12  60.1723
  13  11.522
  14  2.83503
  15  6.98086
  16  23.9023
  17  4.38507e-05
  18  2.16224e-05
  19  6.50047e-06
  20  0.0005078
  21  5.31126e-05
  22  0.000130782
  23  43.2856
  24  4.88121
  25  5.77438e-05
  26  0.199328
  27  0.211684
Done.

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

Extracting fit parameters...

4FGL J2327.5-3259
   Spectrum: PowerLaw
454    Prefactor:  1.000e-04  4.385e-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:  8.217e-01  2.117e-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:  9.954e-01  1.993e-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.11e-08 ph cm-2 s-1
Energy Flux Upper Limit: 5.55e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/915550/likelihoodResults_397440001_397699201_4FGL_J2327.5-3259_daily_bin610.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) = 6135.78696257
delta logL = -0.0001431579376

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 6135.78681952
delta logL = -1.11640474643e-07

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10012E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.9686       1.0000          .0000       10.000    
     3 'Normalizat'    .99540       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .82167       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=   6135.787     FROM MIGRAD    STATUS=CONVERGED     88 CALLS      269 TOTAL
                     EDM=   .55E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10080E-03    251.41        .18142E-02** at limit **
   2  Index         2.9242        8.1155        .50000        .41537E-05
   3  Normalizat    .99540        .10497E-01    .21245E-03    .18301E-04
   4  Prefactor     .82166        .11665E-01    .25611E-03    .96771E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100804
  Index      = 2.92419
  Normalizat = 0.995405
  Prefactor  = 0.821664
 **********
 **   18 **HESSE 
 **********

 FCN=   6135.787     FROM HESSE     STATUS=NOT POSDEF    29 CALLS      298 TOTAL
                     EDM=   .25E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10080E-03    1074.1        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.9242        6.8617        .50000       -.42812    
   3  Normalizat    .99540        .22686E-01    .84981E-05   -.93185    
   4  Prefactor     .82166        .25211E-01    .10244E-04   -.98935    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 2.53336e-09
Minuit parameter uncertainties:
  1  0.0598932
  2  1054.01
  3  0.0226861
  4  0.0252116
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/915550': 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): 102
logL (Free Index) = 6135.78681949
delta logL = -7.78027242632e-08

Extracting fit parameters...

4FGL J2327.5-3259
   Spectrum: PowerLaw
454    Prefactor:  1.008e-04  5.989e-02  1.000e-04  1.000e+04 ( 1.000e-13)
455        Index:  2.924e+00  1.054e+03  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.217e-01  2.521e-02  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:  9.954e-01  2.269e-02  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
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/915550/cmap_HighResolution_397440001_397699201_4FGL_J2327.5-3259_daily_bin610.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='5.55e-03', job_status='DONE', photon_flux_upper_limit='7.11e-08', time_completed='2021-09-29 20:18:31.934502', job_id='915550', GAL2='0.82', fit_tolerance='1e-08', EG2='1.00', EG='1.00', time_epoch_completed='1632971911.93', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.82', dlogl='-7.78e-08', ts2='-0.00', photon_index_error='0.00', photon_index='2.56' WHERE bin_id='610' AND source_name='4FGL J2327.5-3259' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep 29 20:18:31 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0282>
Subject: Job 915550: <4FGL_J2327.5-3259_daily_bin610> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2327.5-3259_daily_bin610 351.883 -32.9869 397440001 397699201 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 :                                   779.00 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             302.04 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   792 sec.
    Turnaround time :                            793 sec.

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

