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


Performing analysis on: 4FGL_J2327.5-3259_daily_bin1038
RA = 351.883, Dec = -32.9869
tmin = 508377601, tmax = 508636801
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='917246', job_status='RUN', time_executed='2021-09-29 20:13:33.953340', time_epoch_executed='1632971613.95' WHERE source_name='4FGL J2327.5-3259' and cadence='daily' and bin_id='1038'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/917246

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/917246/ft1_4FGL_J2327.5-3259_daily_bin1038.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/917246/ft2_4FGL_J2327.5-3259_daily_bin1038.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/917246/ft1_4FGL_J2327.5-3259_daily_bin1038.fits outfile=/scratch/kocevski/917246/ft1_filteredMKT_4FGL_J2327.5-3259_daily_bin1038.fits ra=351.883 dec=-32.9869 rad=12.0 tmin=508377601.0 tmax=508636801.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.64
user 3.42
sys 0.18

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/917246/ft1_filtered_4FGL_J2327.5-3259_daily_bin1038.fits" evtable="EVENTS" scfile=/scratch/kocevski/917246/ft2_4FGL_J2327.5-3259_daily_bin1038.fits sctable="SC_DATA" outfile=/scratch/kocevski/917246/ltcube_508377601_508636801_4FGL_J2327.5-3259_daily_bin1038.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/917246/ft2_4FGL_J2327.5-3259_daily_bin1038.fits
.....................!
real 12.68
user 12.32
sys 0.32

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/917246/ft1_filtered_4FGL_J2327.5-3259_daily_bin1038.fits evtable="EVENTS" scfile=/scratch/kocevski/917246/ft2_4FGL_J2327.5-3259_daily_bin1038.fits sctable="SC_DATA" expcube=/scratch/kocevski/917246/ltcube_508377601_508636801_4FGL_J2327.5-3259_daily_bin1038.fits outfile=/scratch/kocevski/917246/expmap_508377601_508636801_4FGL_J2327.5-3259_daily_bin1038.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/917246/ltcube_508377601_508636801_4FGL_J2327.5-3259_daily_bin1038.fits
.....................!
real 190.94
user 185.46
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/917246/ft1_filtered_4FGL_J2327.5-3259_daily_bin1038.fits scfile=/scratch/kocevski/917246/ft2_4FGL_J2327.5-3259_daily_bin1038.fits outfile=/scratch/kocevski/917246/cmap_508377601_508636801_4FGL_J2327.5-3259_daily_bin1038.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/917246/ft1_filtered_4FGL_J2327.5-3259_daily_bin1038.fits scfile=/scratch/kocevski/917246/ft2_4FGL_J2327.5-3259_daily_bin1038.fits outfile=/scratch/kocevski/917246/cmap_HighResolution_508377601_508636801_4FGL_J2327.5-3259_daily_bin1038.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/917246/ft1_filtered_4FGL_J2327.5-3259_daily_bin1038.fits evtable="EVENTS" scfile=/scratch/kocevski/917246/ft2_4FGL_J2327.5-3259_daily_bin1038.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/917246/Model_4FGL_J2327.5-3259_daily_bin1038.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/917246/ft1_filtered_4FGL_J2327.5-3259_daily_bin1038.fits.....................!
real 39.17
user 37.88
sys 1.17

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10025E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    8.5074       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10010E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    72.626       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10008E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10093E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    6.5610       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10011E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    26.377       1.0000         .10000E-03   10000.    
    11 'norm      '    .65098       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10187E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10041E-03   1.0000         .10000E-03   10000.    
    14 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    .10003E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    43.557       1.0000         .10000E-03   10000.    
    17 'Prefactor '    52.771       1.0000         .10000E-03   10000.    
    18 'norm      '    .10055E-03   1.0000         .10000E-03   10000.    
    19 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    21 'norm      '    .47354       1.0000         .10000E-03   10000.    
    22 'Prefactor '    25.954       1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10325E-03   1.0000         .10000E-03   10000.    
    24 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
    25 'Prefactor '    48.484       1.0000         .10000E-03   10000.    
    26 'Normalizat'    1.1412       1.0000         .10000E-01   10.000    
    27 'Prefactor '    .96048       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=   4600.374     FROM MIGRAD    STATUS=CONVERGED    664 CALLS     3288 TOTAL
                     EDM=   .16E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.9%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    22.951       -.17341E-06** at limit **
   2  Prefactor     8.5085        5.3600        .21182E-06    .71326E-04
   3  Prefactor     .10000E-03    9.6321       -.23554E-07** at limit **
   4  Prefactor     72.632        39.290        .36868E-06    .41693E-05
   5  Prefactor     .10000E-03    14.872       -.10293E-06** at limit **
   6  Prefactor     .10000E-03    12.044       -.17633E-06** at limit **
   7  Prefactor     .10000E-03    2.8574       -.12815E-07** at limit **
   8  norm          6.5617        5.2859       -.66376E-07   -.12371E-04
   9  Prefactor     .10000E-03    8.9399       -.24448E-07** at limit **
  10  Prefactor     26.378        22.211        .14089E-07    .22579E-05
  11  norm          .65066        1.4139        .23364E-06    .58818E-03
  12  Prefactor     .10000E-03    41.791       -.13139E-06** at limit **
  13  Prefactor     .10000E-03    8.7037       -.30260E-07** at limit **
  14  norm          .10000E-03    1.8715        .13374E-06** at limit **
  15  norm          .10000E-03    4.4069        .61708E-07** at limit **
  16  Prefactor     43.603        43.393       -.32069E-05   -.15505E-03
  17  Prefactor     52.789        55.626        .86085E-06    .21146E-04
  18  norm          .10000E-03    3.6574        .15820E-05** at limit **
  19  norm          .10000E-03    3.9274       -.11315E-06** at limit **
  20  Prefactor     .10000E-03    19.372        .28933E-06** at limit **
  21  norm          .45951        5.0350       -.16582E-05    .97717E-03
  22  Prefactor     26.032        87.707        .27002E-05    .58657E-04
  23  Prefactor     .10000E-03    218.64        .12116E-05** at limit **
  24  Prefactor     .10000E-03    3.2151       -.13187E-06** at limit **
  25  Prefactor     48.476        44.257        .33073E-06   -.86745E-05
  26  Normalizat    1.1411        .25057       -.41493E-05   -.16574E-03
  27  Prefactor     .96057        .25003        .32434E-05   -.19145E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 8.5085
  Prefactor  = 0.0001
  Prefactor  = 72.6317
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 6.56169
  Prefactor  = 0.0001
  Prefactor  = 26.3783
  norm       = 0.650663
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 43.6031
  Prefactor  = 52.7889
  norm       = 0.000100001
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 0.459515
  Prefactor  = 26.0324
  Prefactor  = 0.000100001
  Prefactor  = 0.0001
  Prefactor  = 48.4756
  Normalizat = 1.14106
  Prefactor  = 0.960568
 **********
 **   18 **HESSE 
 **********

 FCN=   4600.374     FROM HESSE     STATUS=OK           478 CALLS     3766 TOTAL
                     EDM=   .13E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    22.955        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     8.5085        5.3646        .11823E-03   -1.5124    
   3  Prefactor     .10000E-03    9.6349        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     72.632        39.332        .47109E-04   -1.4001    
   5  Prefactor     .10000E-03    14.876        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    12.145        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    2.8592        .11197E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          6.5617        5.2733        .13018E-03   -1.5196    
   9  Prefactor     .10000E-03    8.9426        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     26.378        21.291        .78001E-04   -1.4680    
  11  norm          .65066        1.3073        .70418E-04   -1.5547    
  12  Prefactor     .10000E-03    41.819        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    8.7150        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          .10000E-03    1.8732        .90642E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          .10000E-03    4.4217        .13905E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     43.603        52.143        .60745E-04   -1.4386    
  17  Prefactor     52.789        55.735        .55212E-04   -1.4254    
  18  norm          .10000E-03    3.8523        .12882E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  norm          .10000E-03    4.0232        .26228E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    19.401        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  norm          .45951        25.949        .23531E-02   -1.5572    
  22  Prefactor     26.032        87.818        .78633E-04   -1.4687    
  23  Prefactor     .10000E-03    224.52        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     .10000E-03    3.2404        .11871E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Prefactor     48.476        44.280        .57589E-04   -1.4314    
  26  Normalizat    1.1411        .29140        .24753E-03   -.88444    
  27  Prefactor     .96057        .29143        .28227E-03   -.94056    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.33724e-08
Minuit parameter uncertainties:
  1  3.88142e-05
  2  5.36486
  3  5.67197e-06
  4  39.3458
  5  3.08538e-05
  6  1.39801e-05
  7  1.26161e-06
  8  5.27372
  9  1.14166e-05
  10  21.2975
  11  1.30734
  12  3.99287e-06
  13  2.90677e-07
  14  7.84428e-06
  15  8.64745e-06
  16  52.1972
  17  55.7902
  18  0.000133792
  19  2.37589e-06
  20  8.20932e-05
  21  6.90856
  22  88.2585
  23  0.000776719
  24  2.04362e-06
  25  44.3096
  26  0.291811
  27  0.291908
Done.

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

Extracting fit parameters...

4FGL J2327.5-3259
   Spectrum: PowerLaw
454    Prefactor:  5.279e+01  5.579e+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:  9.606e-01  2.919e-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.141e+00  2.918e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 1.33
Ra Dec: 351.883 -32.987
Photon Index (Fixed Index): 2.56 +/- 0.00
Photon Flux (Fixed Index): 4.23e-08 +/- 4.47e-08
Energy Flux (Fixed Index): 1.16e-05 +/- 1.22e-05

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

Saving results to:
/scratch/kocevski/917246/likelihoodResults_508377601_508636801_4FGL_J2327.5-3259_daily_bin1038.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) = 4600.37084882
delta logL = 0.0032752227371

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 4600.37011096
delta logL = 0.00401308044911

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    54.853       1.0000         .10000E-03   10000.    
     2 'Index     '    2.4777       1.0000          .0000       10.000    
     3 'Normalizat'    1.1449       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .95753       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=   4600.370     FROM MIGRAD    STATUS=CONVERGED     83 CALLS      263 TOTAL
                     EDM=   .46E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     54.856        62.408        .54159E-04   -.14618E-03
   2  Index         2.4778        .88725        .90315E-02   -.99853E-04
   3  Normalizat    1.1447        .27073        .24719E-03    .12163E-03
   4  Prefactor     .95782        .28382        .28261E-03    .12104E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 54.8561
  Index      = 2.47782
  Normalizat = 1.14466
  Prefactor  = 0.957821
 **********
 **   18 **HESSE 
 **********

 FCN=   4600.370     FROM HESSE     STATUS=OK            23 CALLS      286 TOTAL
                     EDM=   .50E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     54.856        61.307        .10832E-04   -1.4225    
   2  Index         2.4778        .87130        .36126E-03   -.52873    
   3  Normalizat    1.1447        .27099        .49438E-04   -.88330    
   4  Prefactor     .95782        .28405        .11304E-04   -.94149    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.99863e-10
Minuit parameter uncertainties:
  1  61.3778
  2  0.877325
  3  0.271318
  4  0.28449
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/917246': 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) = 4600.37011041
delta logL = 0.00401362954653

Extracting fit parameters...

4FGL J2327.5-3259
   Spectrum: PowerLaw
454    Prefactor:  5.486e+01  6.138e+01  1.000e-04  1.000e+04 ( 1.000e-13)
455        Index:  2.478e+00  8.773e-01  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:  9.578e-01  2.845e-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.145e+00  2.713e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 1.33
Ra Dec: 351.883 -32.987
Photon Index (Free Index): 2.48 +/- 0.88
Photon Flux (Free Index): 3.99e-08 +/- 5.10e-08
Energy Flux (Free Index): 1.19e-05 +/- 1.31e-05

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/917246/cmap_HighResolution_508377601_508636801_4FGL_J2327.5-3259_daily_bin1038.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.13e-02', comment='SUCCESS', photon_flux='4.23e-08', energy_flux2='1.19e-05', photon_flux_error='4.47e-08', dlogl='4.01e-03', energy_flux='1.16e-05', photon_flux2='3.99e-08', job_status='DONE', time_completed='2021-09-29 20:26:58.408311', photon_index_error2='0.88', photon_index2='2.48', ts='1.33', fit_tolerance='1e-08', GAL='0.96', photon_index_error='0.00', photon_flux_upper_limit='1.45e-07', energy_flux_error2='1.31e-05', EG='1.14', time_epoch_completed='1632972418.41', return_code='0', job_id='917246', GAL2='0.96', EG2='1.14', return_code2='0', energy_flux_error='1.22e-05', photon_flux_error2='5.10e-08', ts2='1.33', photon_index='2.56' WHERE bin_id='1038' AND source_name='4FGL J2327.5-3259' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep 29 20:26:58 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0218>
Subject: Job 917246: <4FGL_J2327.5-3259_daily_bin1038> in cluster <slac> Done

Job <4FGL_J2327.5-3259_daily_bin1038> was submitted from host <rhel6-64h> by user <kocevski> in cluster <slac> at Wed Sep 29 20:10:32 2021
Job was executed on host(s) <bullet0218>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Sep 29 20:10:33 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:33 2021
Terminated at Wed Sep 29 20:26:59 2021
Results reported at Wed Sep 29 20:26:59 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2327.5-3259_daily_bin1038 351.883 -32.9869 508377601 508636801 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 :                                   655.00 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             264.16 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   985 sec.
    Turnaround time :                            987 sec.

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

