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


Performing analysis on: 4FGL_J2327.5-3259_daily_bin1071
RA = 351.883, Dec = -32.9869
tmin = 516931201, tmax = 517190401
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='917297', job_status='RUN', time_executed='2021-09-29 20:12:18.416946', time_epoch_executed='1632971538.42' WHERE source_name='4FGL J2327.5-3259' and cadence='daily' and bin_id='1071'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/917297

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/917297/ft1_4FGL_J2327.5-3259_daily_bin1071.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/917297/ft2_4FGL_J2327.5-3259_daily_bin1071.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/917297/ft1_4FGL_J2327.5-3259_daily_bin1071.fits outfile=/scratch/kocevski/917297/ft1_filteredMKT_4FGL_J2327.5-3259_daily_bin1071.fits ra=351.883 dec=-32.9869 rad=12.0 tmin=516931201.0 tmax=517190401.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.92
user 3.68
sys 0.22

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/917297/ft2_4FGL_J2327.5-3259_daily_bin1071.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/917297/ft1_filteredMKT_4FGL_J2327.5-3259_daily_bin1071.fits evtable="EVENTS" outfile="/scratch/kocevski/917297/ft1_filtered_4FGL_J2327.5-3259_daily_bin1071.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/917297/ft1_filtered_4FGL_J2327.5-3259_daily_bin1071.fits" evtable="EVENTS" scfile=/scratch/kocevski/917297/ft2_4FGL_J2327.5-3259_daily_bin1071.fits sctable="SC_DATA" outfile=/scratch/kocevski/917297/ltcube_516931201_517190401_4FGL_J2327.5-3259_daily_bin1071.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/917297/ft2_4FGL_J2327.5-3259_daily_bin1071.fits
.....................!
real 15.94
user 15.58
sys 0.33

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/917297/ft1_filtered_4FGL_J2327.5-3259_daily_bin1071.fits evtable="EVENTS" scfile=/scratch/kocevski/917297/ft2_4FGL_J2327.5-3259_daily_bin1071.fits sctable="SC_DATA" expcube=/scratch/kocevski/917297/ltcube_516931201_517190401_4FGL_J2327.5-3259_daily_bin1071.fits outfile=/scratch/kocevski/917297/expmap_516931201_517190401_4FGL_J2327.5-3259_daily_bin1071.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/917297/ltcube_516931201_517190401_4FGL_J2327.5-3259_daily_bin1071.fits
.....................!
real 190.32
user 185.30
sys 4.63

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/917297/ft1_filtered_4FGL_J2327.5-3259_daily_bin1071.fits scfile=/scratch/kocevski/917297/ft2_4FGL_J2327.5-3259_daily_bin1071.fits outfile=/scratch/kocevski/917297/cmap_516931201_517190401_4FGL_J2327.5-3259_daily_bin1071.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.52
user 0.39
sys 0.12

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/917297/ft1_filtered_4FGL_J2327.5-3259_daily_bin1071.fits scfile=/scratch/kocevski/917297/ft2_4FGL_J2327.5-3259_daily_bin1071.fits outfile=/scratch/kocevski/917297/cmap_HighResolution_516931201_517190401_4FGL_J2327.5-3259_daily_bin1071.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.16

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/917297/ft1_filtered_4FGL_J2327.5-3259_daily_bin1071.fits evtable="EVENTS" scfile=/scratch/kocevski/917297/ft2_4FGL_J2327.5-3259_daily_bin1071.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/917297/Model_4FGL_J2327.5-3259_daily_bin1071.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/917297/ft1_filtered_4FGL_J2327.5-3259_daily_bin1071.fits.....................!
real 40.28
user 38.98
sys 1.20

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    5.2053       1.0000         .10000E-03   10000.    
     3 'Prefactor '    1.1937       1.0000         .10000E-03   10000.    
     4 'Prefactor '    15.607       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10011E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    10.609       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    7.5509       1.0000         .10000E-03   10000.    
     9 'Prefactor '    17.352       1.0000         .10000E-03   10000.    
    10 'Prefactor '    29.418       1.0000         .10000E-03   10000.    
    11 'norm      '    1.4770       1.0000         .10000E-03   10000.    
    12 'Prefactor '    6.7443       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    14 'norm      '    .10007E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    5.4790       1.0000         .10000E-03   10000.    
    16 'Prefactor '    48.938       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    18 'norm      '    1.3094       1.0000         .10000E-03   10000.    
    19 'norm      '    .29774E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    39.182       1.0000         .10000E-03   10000.    
    21 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10142E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    51.779       1.0000         .10000E-03   10000.    
    24 'Prefactor '    4.2350       1.0000         .10000E-03   10000.    
    25 'Prefactor '    15.464       1.0000         .10000E-03   10000.    
    26 'Normalizat'    .60194       1.0000         .10000E-01   10.000    
    27 'Prefactor '    .99664       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=   5085.924     FROM MIGRAD    STATUS=CONVERGED    652 CALLS     3360 TOTAL
                     EDM=   .15E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  4.1%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    13.433        .23827E-05** at limit **
   2  Prefactor     5.2024        5.5941       -.31589E-06   -.49827E-03
   3  Prefactor     1.2272        111.16        .79463E-05    .18604E-04
   4  Prefactor     15.607        13.325        .45556E-07    .14334E-04
   5  Prefactor     .10000E-03    11.781       -.16031E-05** at limit **
   6  Prefactor     10.610        9.3891        .83918E-07    .63453E-05
   7  Prefactor     .10000E-03    3.8340        .14993E-06** at limit **
   8  norm          7.5507        3.8236        .13590E-07    .67556E-04
   9  Prefactor     17.355        18.699        .14275E-06    .53458E-04
  10  Prefactor     29.418        13.892       -.14638E-06    .12400E-03
  11  norm          1.4768        .97011        .15805E-07    .19544E-03
  12  Prefactor     6.7397        29.935       -.20023E-05   -.68990E-04
  13  Prefactor     .10000E-03    20.261       -.23281E-05** at limit **
  14  norm          .10000E-03    5.8698       -.15465E-06** at limit **
  15  norm          5.4779        6.7406        .21905E-05   -.14041E-02
  16  Prefactor     48.934        47.162       -.20328E-05   -.16652E-03
  17  Prefactor     .10000E-03    27.743        .15973E-05** at limit **
  18  norm          1.3102        5.1079        .11547E-05   -.17908E-03
  19  norm          .10010E-03    1.4076        .51825E-06** at limit **
  20  Prefactor     39.192        29.568        .21863E-05    .28463E-03
  21  norm          .10000E-03    1.9088        .64391E-07** at limit **
  22  Prefactor     .10000E-03    64.963       -.88918E-07** at limit **
  23  Prefactor     51.772        51.707       -.22135E-05   -.21681E-03
  24  Prefactor     4.2365        6.0818        .20669E-06   -.23614E-03
  25  Prefactor     15.456        47.216       -.44183E-05   -.16792E-03
  26  Normalizat    .60159        .17604        .60690E-06   -.14245E-03
  27  Prefactor     .99703        .18371       -.86579E-06   -.54605E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100002
  Prefactor  = 5.20237
  Prefactor  = 1.22717
  Prefactor  = 15.6066
  Prefactor  = 0.000100001
  Prefactor  = 10.6101
  Prefactor  = 0.0001
  norm       = 7.55074
  Prefactor  = 17.3547
  Prefactor  = 29.4182
  norm       = 1.47682
  Prefactor  = 6.73975
  Prefactor  = 0.000100001
  norm       = 0.0001
  norm       = 5.47785
  Prefactor  = 48.9339
  Prefactor  = 0.000100001
  norm       = 1.3102
  norm       = 0.000100097
  Prefactor  = 39.1917
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 51.7722
  Prefactor  = 4.23646
  Prefactor  = 15.4564
  Normalizat = 0.601589
  Prefactor  = 0.997031
 **********
 **   18 **HESSE 
 **********

 FCN=   5085.924     FROM HESSE     STATUS=OK           492 CALLS     3852 TOTAL
                     EDM=   .11E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    13.641        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     5.2024        5.3233        .13210E-03   -1.5252    
   3  Prefactor     1.2272        103.83        .41644E-03   -1.5486    
   4  Prefactor     15.607        13.326        .10138E-03   -1.4918    
   5  Prefactor     .10000E-03    11.893        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     10.610        9.3996        .12301E-03   -1.5056    
   7  Prefactor     .10000E-03    3.8562        .13637E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          7.5507        3.8212        .94311E-04   -1.5158    
   9  Prefactor     17.355        18.705        .96150E-04   -1.4875    
  10  Prefactor     29.418        13.975        .73868E-04   -1.4623    
  11  norm          1.4768        .96049        .42902E-04   -1.5465    
  12  Prefactor     6.7397        30.169        .15451E-03   -1.5189    
  13  Prefactor     .10000E-03    20.973        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          .10000E-03    5.9092        .33389E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          5.4779        8.0552        .85829E-03   -1.5240    
  16  Prefactor     48.934        44.733        .57323E-04   -1.4308    
  17  Prefactor     .10000E-03    27.894        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          1.3102        4.7465        .21366E-03   -1.5479    
  19  norm          .10010E-03    12.786        .16018E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     39.192        29.720        .64033E-04   -1.4455    
  21  norm          .10000E-03    1.9331        .96109E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     .10000E-03    65.012        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     51.772        52.072        .55735E-04   -1.4268    
  24  Prefactor     4.2365        6.0504        .19221E-03   -1.5296    
  25  Prefactor     15.456        47.483        .10185E-03   -1.4921    
  26  Normalizat    .60159        .21197        .26249E-03   -1.0792    
  27  Prefactor     .99703        .22069        .22906E-03   -.92829    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.07254e-08
Minuit parameter uncertainties:
  1  0.000315421
  2  5.32383
  3  22.6155
  4  13.3286
  5  0.000198678
  6  9.40087
  7  9.64375e-06
  8  3.82133
  9  18.7114
  10  13.9765
  11  0.960498
  12  28.5427
  13  0.000314816
  14  2.16421e-05
  15  8.05681
  16  44.764
  17  0.000303899
  18  4.74791
  19  0.00222603
  20  29.7307
  21  6.86736e-06
  22  8.48548e-05
  23  52.1177
  24  6.05131
  25  47.5996
  26  0.212252
  27  0.220886
Done.

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

Extracting fit parameters...

4FGL J2327.5-3259
   Spectrum: PowerLaw
454    Prefactor:  1.000e-04  3.039e-04  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.970e-01  2.209e-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:  6.016e-01  2.123e-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: 6.76e-08 ph cm-2 s-1
Energy Flux Upper Limit: 5.27e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/917297/likelihoodResults_516931201_517190401_4FGL_J2327.5-3259_daily_bin1071.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) = 5085.92392057
delta logL = -0.000170776198502

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 5085.9237516
delta logL = -1.81168616109e-06

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .11637E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    3.0363       1.0000          .0000       10.000    
     3 'Normalizat'    .60159       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .99703       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=   5085.924     FROM MIGRAD    STATUS=CONVERGED    112 CALLS      293 TOTAL
                     EDM=   .17E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10003E-03    90.549        .18142E-01** at limit **
   2  Index         2.1523        5.8654        .50000        .31127E-07
   3  Normalizat    .60159        .65204E-02    .26248E-03    .49419E-04
   4  Prefactor     .99703        .72385E-02    .22906E-03    .62933E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100026
  Index      = 2.15225
  Normalizat = 0.601591
  Prefactor  = 0.99703
 **********
 **   18 **HESSE 
 **********

 FCN=   5085.924     FROM HESSE     STATUS=NOT POSDEF    29 CALLS      322 TOTAL
                     EDM=   .95E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10003E-03    488.39        .36285E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.1523        7.6770        .50000       -.60596    
   3  Normalizat    .60159        .15395E-01    .10499E-04   -1.0792    
   4  Prefactor     .99703        .17090E-01    .91625E-05   -.92829    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 9.50532e-09
Minuit parameter uncertainties:
  1  0.00711984
  2  976.608
  3  0.015395
  4  0.0170906
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/917297': 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) = 5085.92374947
delta logL = 3.17245394399e-07

Extracting fit parameters...

4FGL J2327.5-3259
   Spectrum: PowerLaw
454    Prefactor:  1.000e-04  7.120e-03  1.000e-04  1.000e+04 ( 1.000e-13)
455        Index:  2.152e+00  9.766e+02  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.970e-01  1.709e-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:  6.016e-01  1.540e-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/917297/cmap_HighResolution_516931201_517190401_4FGL_J2327.5-3259_daily_bin1071.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='5.27e-03', job_status='DONE', photon_flux_upper_limit='6.76e-08', time_completed='2021-09-29 20:24:58.458720', job_id='917297', GAL2='1.00', fit_tolerance='1e-08', EG2='0.60', EG='0.60', time_epoch_completed='1632972298.46', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.00', dlogl='3.17e-07', ts2='-0.00', photon_index_error='0.00', photon_index='2.56' WHERE bin_id='1071' AND source_name='4FGL J2327.5-3259' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep 29 20:24:58 PDT 2021


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

Job <4FGL_J2327.5-3259_daily_bin1071> was submitted from host <rhel6-64h> by user <kocevski> in cluster <slac> at Wed Sep 29 20:10:36 2021
Job was executed on host(s) <bullet0282>, 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:59 2021
Results reported at Wed Sep 29 20:24:59 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2327.5-3259_daily_bin1071 351.883 -32.9869 516931201 517190401 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 :                                   704.46 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             270.12 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   860 sec.
    Turnaround time :                            863 sec.

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

