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


Performing analysis on: 4FGL_J2327.5-3259_daily_bin1653
RA = 351.883, Dec = -32.9869
tmin = 667785601, tmax = 668044801
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='889539', job_status='RUN', time_executed='2022-03-04 01:18:35.008111', time_epoch_executed='1646385515.01' WHERE source_name='4FGL J2327.5-3259' and cadence='daily' and bin_id='1653'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/889539

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/889539/ft1_4FGL_J2327.5-3259_daily_bin1653.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/889539/ft2_4FGL_J2327.5-3259_daily_bin1653.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/889539/ft1_4FGL_J2327.5-3259_daily_bin1653.fits outfile=/scratch/kocevski/889539/ft1_filteredMKT_4FGL_J2327.5-3259_daily_bin1653.fits ra=351.883 dec=-32.9869 rad=12.0 tmin=667785601.0 tmax=668044801.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.27
user 4.05
sys 0.20

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/889539/ft2_4FGL_J2327.5-3259_daily_bin1653.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/889539/ft1_filteredMKT_4FGL_J2327.5-3259_daily_bin1653.fits evtable="EVENTS" outfile="/scratch/kocevski/889539/ft1_filtered_4FGL_J2327.5-3259_daily_bin1653.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.49
user 0.33
sys 0.15
Number of photons that survived the gtmktime cut: 513

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/889539/ft1_filtered_4FGL_J2327.5-3259_daily_bin1653.fits" evtable="EVENTS" scfile=/scratch/kocevski/889539/ft2_4FGL_J2327.5-3259_daily_bin1653.fits sctable="SC_DATA" outfile=/scratch/kocevski/889539/ltcube_667785601_668044801_4FGL_J2327.5-3259_daily_bin1653.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/889539/ft2_4FGL_J2327.5-3259_daily_bin1653.fits
.....................!
real 12.28
user 11.87
sys 0.36

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/889539/ft1_filtered_4FGL_J2327.5-3259_daily_bin1653.fits evtable="EVENTS" scfile=/scratch/kocevski/889539/ft2_4FGL_J2327.5-3259_daily_bin1653.fits sctable="SC_DATA" expcube=/scratch/kocevski/889539/ltcube_667785601_668044801_4FGL_J2327.5-3259_daily_bin1653.fits outfile=/scratch/kocevski/889539/expmap_667785601_668044801_4FGL_J2327.5-3259_daily_bin1653.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/889539/ltcube_667785601_668044801_4FGL_J2327.5-3259_daily_bin1653.fits
.....................!
real 190.90
user 185.12
sys 5.13

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/889539/ft1_filtered_4FGL_J2327.5-3259_daily_bin1653.fits scfile=/scratch/kocevski/889539/ft2_4FGL_J2327.5-3259_daily_bin1653.fits outfile=/scratch/kocevski/889539/cmap_667785601_668044801_4FGL_J2327.5-3259_daily_bin1653.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.37
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/889539/ft1_filtered_4FGL_J2327.5-3259_daily_bin1653.fits scfile=/scratch/kocevski/889539/ft2_4FGL_J2327.5-3259_daily_bin1653.fits outfile=/scratch/kocevski/889539/cmap_HighResolution_667785601_668044801_4FGL_J2327.5-3259_daily_bin1653.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.17

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/889539/ft1_filtered_4FGL_J2327.5-3259_daily_bin1653.fits evtable="EVENTS" scfile=/scratch/kocevski/889539/ft2_4FGL_J2327.5-3259_daily_bin1653.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/889539/Model_4FGL_J2327.5-3259_daily_bin1653.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/889539/ft1_filtered_4FGL_J2327.5-3259_daily_bin1653.fits.....................!
real 44.37
user 43.05
sys 1.18

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .32019E-02   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .25202E-02   1.0000         .10000E-03   10000.    
     3 'Prefactor '    36.409       1.0000         .10000E-03   10000.    
     4 'Prefactor '    43.231       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10057E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    5.2672       1.0000         .10000E-03   10000.    
     7 'Prefactor '    4.3280       1.0000         .10000E-03   10000.    
     8 'norm      '    6.9999       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10451E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    11.327       1.0000         .10000E-03   10000.    
    11 'norm      '    .10006E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10443E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10013E-03   1.0000         .10000E-03   10000.    
    14 'norm      '    2.8712       1.0000         .10000E-03   10000.    
    15 'norm      '    .80240E-01   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10023E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    40.426       1.0000         .10000E-03   10000.    
    18 'norm      '    7.6430       1.0000         .10000E-03   10000.    
    19 'norm      '    .10104E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10014E-03   1.0000         .10000E-03   10000.    
    21 'norm      '    .10004E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10295E-03   1.0000         .10000E-03   10000.    
    24 'Prefactor '    13.647       1.0000         .10000E-03   10000.    
    25 'Prefactor '    .10013E-03   1.0000         .10000E-03   10000.    
    26 'Normalizat'    1.0347       1.0000         .10000E-01   10.000    
    27 'Prefactor '    1.0033       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=   5583.080     FROM MIGRAD    STATUS=CONVERGED    700 CALLS     3368 TOTAL
                     EDM=   .54E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.1%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    570.55        .13467E-04** at limit **
   2  Prefactor     .10022E-03    3.4087       -.19929E-05** at limit **
   3  Prefactor     36.441        30.987        .17753E-05    .32785E-03
   4  Prefactor     43.241        21.295       -.71114E-06   -.33816E-04
   5  Prefactor     .10000E-03    8.6538       -.45172E-07** at limit **
   6  Prefactor     5.2666        7.7450       -.19674E-06    .78397E-05
   7  Prefactor     4.3261        6.2984       -.38593E-06   -.41975E-04
   8  norm          6.9955        4.9321        .22765E-07   -.65890E-04
   9  Prefactor     .10000E-03    22.349        .17000E-05** at limit **
  10  Prefactor     11.323        10.065       -.25758E-06   -.19427E-04
  11  norm          .10000E-03    .23092        .57878E-08** at limit **
  12  Prefactor     .10000E-03    43.012       -.27811E-05** at limit **
  13  Prefactor     .10000E-03    12.650       -.74610E-07** at limit **
  14  norm          2.8733        3.4554       -.32647E-07    .14789E-04
  15  norm          .13170E-02    7.3943       -.14480E-05** at limit **
  16  Prefactor     .10000E-03    11.926        .95698E-07** at limit **
  17  Prefactor     40.500        47.349        .27612E-05    .13894E-03
  18  norm          7.6435        4.3643       -.14448E-06    .13811E-03
  19  norm          .10000E-03    2.2557       -.46937E-07** at limit **
  20  Prefactor     .10000E-03    31.243        .28909E-05** at limit **
  21  norm          .10000E-03    1.3796       -.16473E-07** at limit **
  22  Prefactor     .10000E-03    62.236       -.63748E-08** at limit **
  23  Prefactor     .10000E-03    25.834       -.35218E-05** at limit **
  24  Prefactor     13.642        7.6627        .48094E-06    .39024E-03
  25  Prefactor     .10000E-03    39.320        .11866E-05** at limit **
  26  Normalizat    1.0349        .19917        .25215E-05    .47621E-03
  27  Prefactor     1.0033        .20655       -.61477E-06    .45314E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100002
  Prefactor  = 0.000100224
  Prefactor  = 36.4408
  Prefactor  = 43.2414
  Prefactor  = 0.0001
  Prefactor  = 5.26661
  Prefactor  = 4.32609
  norm       = 6.99549
  Prefactor  = 0.0001
  Prefactor  = 11.3231
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 2.87327
  norm       = 0.00131699
  Prefactor  = 0.0001
  Prefactor  = 40.5004
  norm       = 7.64354
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 13.6423
  Prefactor  = 0.0001
  Normalizat = 1.03487
  Prefactor  = 1.00329
 **********
 **   18 **HESSE 
 **********

 FCN=   5583.080     FROM HESSE     STATUS=OK           488 CALLS     3856 TOTAL
                     EDM=   .84E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    584.95        .39513E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10022E-03    28.150        .22919E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     36.441        31.371        .66419E-04   -1.4500    
   4  Prefactor     43.241        21.297        .60973E-04   -1.4392    
   5  Prefactor     .10000E-03    8.6596        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     5.2666        7.7367        .17513E-03   -1.5249    
   7  Prefactor     4.3261        6.2989        .19363E-03   -1.5292    
   8  norm          6.9955        4.9250        .12375E-03   -1.5179    
   9  Prefactor     .10000E-03    22.762        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     11.323        9.9783        .11903E-03   -1.5035    
  11  norm          .10000E-03    .23555        .69208E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    43.145        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    12.740        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          2.8733        3.4525        .14710E-03   -1.5369    
  15  norm          .13170E-02    10.165        .56525E-01   -1.5701    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    11.932        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     40.500        47.770        .63044E-04   -1.4434    
  18  norm          7.6435        4.3626        .11183E-03   -1.5155    
  19  norm          .10000E-03    5.3728        .21816E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    31.305        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  norm          .10000E-03    1.3906        .85672E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     .10000E-03    62.292        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     .10000E-03    25.902        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     13.642        7.6904        .10843E-03   -1.4969    
  25  Prefactor     .10000E-03    39.393        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  Normalizat    1.0349        .23358        .23922E-03   -.91871    
  27  Prefactor     1.0033        .24329        .26477E-03   -.92620    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 8.37646e-09
Minuit parameter uncertainties:
  1  0.00199454
  2  0.00502612
  3  31.3856
  4  21.3005
  5  2.35456e-06
  6  7.7382
  7  6.29983
  8  4.92524
  9  1.67409e-05
  10  9.97972
  11  1.05426e-06
  12  0.000207479
  13  3.78814e-05
  14  3.45271
  15  0.222491
  16  6.57503e-06
  17  47.8149
  18  4.36275
  19  6.31114e-05
  20  7.5111e-05
  21  2.03491e-06
  22  5.32111e-05
  23  0.000179827
  24  7.69097
  25  3.50423e-05
  26  0.23381
  27  0.243557
Done.

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

Extracting fit parameters...

4FGL J2327.5-3259
   Spectrum: PowerLaw
454    Prefactor:  4.050e+01  4.781e+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.003e+00  2.436e-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.035e+00  2.338e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 0.94
Ra Dec: 351.883 -32.987
Photon Flux Upper Limit: 1.17e-07 ph cm-2 s-1
Energy Flux Upper Limit: 9.10e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/889539/likelihoodResults_667785601_668044801_4FGL_J2327.5-3259_daily_bin1653.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) = 5583.04284018
delta logL = 0.0374018197508

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5583.03960254
delta logL = 0.0406394500524

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    47.410       1.0000         .10000E-03   10000.    
     2 'Index     '    2.3309       1.0000          .0000       10.000    
     3 'Normalizat'    1.0417       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .99715       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.

 FCN=   5583.040     FROM MIGRAD    STATUS=CONVERGED     49 CALLS      255 TOTAL
                     EDM=   .13E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     47.410        2031.5        .14559E-02    .16184E-03
   2  Index         2.3310        5.7369        .24179        .23135E-04
   3  Normalizat    1.0415        .75644E-01    .41150E-01    .87393E-05
   4  Prefactor     .99739        .84365E-01    .46231E-01    .10165E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 47.4097
  Index      = 2.33102
  Normalizat = 1.04146
  Prefactor  = 0.997386
 **********
 **   18 **HESSE 
 **********

 FCN=   5583.040     FROM HESSE     STATUS=OK            31 CALLS      286 TOTAL
                     EDM=   .33E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     47.410        56.709        .58235E-04   -1.4330    
   2  Index         2.3310        .76020        .95953E-02   -.56308    
   3  Normalizat    1.0415        .22100        .23853E-03   -.91654    
   4  Prefactor     .99739        .24082        .26543E-03   -.92817    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.25076e-10
Minuit parameter uncertainties:
  1  56.7739
  2  0.764359
  3  0.221197
  4  0.241075
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/889539': 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) = 5583.03960201
delta logL = 0.0406399834328

Extracting fit parameters...

4FGL J2327.5-3259
   Spectrum: PowerLaw
454    Prefactor:  4.741e+01  5.677e+01  1.000e-04  1.000e+04 ( 1.000e-13)
455        Index:  2.331e+00  7.644e-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.974e-01  2.411e-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.041e+00  2.212e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 1.02
Ra Dec: 351.883 -32.987
Photon Index (Free Index): 2.33 +/- 0.76
Photon Flux (Free Index): 2.90e-08 +/- 3.64e-08
Energy Flux (Free Index): 1.05e-05 +/- 1.36e-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/889539/cmap_HighResolution_667785601_668044801_4FGL_J2327.5-3259_daily_bin1653.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='9.10e-03', comment='SUCCESS', energy_flux2='1.05e-05', dlogl='4.06e-02', photon_flux2='2.90e-08', job_status='DONE', time_completed='2022-03-04 01:30:58.969281', photon_index_error2='0.76', photon_index2='2.33', ts='0.94', fit_tolerance='1e-08', GAL='1.00', photon_index_error='0.00', photon_flux_upper_limit='1.17e-07', energy_flux_error2='1.36e-05', EG='1.03', time_epoch_completed='1646386258.97', return_code='0', job_id='889539', GAL2='1.00', EG2='1.04', return_code2='0', photon_flux_error2='3.64e-08', ts2='1.02', photon_index='2.56' WHERE bin_id='1653' AND source_name='4FGL J2327.5-3259' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Fri Mar  4 01:30:58 PST 2022


------------------------------------------------------------
Sender: LSF System <lsf@bullet0283>
Subject: Job 889539: <4FGL_J2327.5-3259_daily_bin1653> in cluster <slac> Done

Job <4FGL_J2327.5-3259_daily_bin1653> was submitted from host <rhel6-64j> by user <kocevski> in cluster <slac> at Fri Mar  4 01:15:55 2022
Job was executed on host(s) <bullet0283>, in queue <medium>, as user <kocevski> in cluster <slac> at Fri Mar  4 01:16:55 2022
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Fri Mar  4 01:16:55 2022
Terminated at Fri Mar  4 01:31:02 2022
Results reported at Fri Mar  4 01:31:02 2022

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2327.5-3259_daily_bin1653 351.883 -32.9869 667785601 668044801 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 :                                   745.03 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             308.52 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   844 sec.
    Turnaround time :                            907 sec.

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

