/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 128 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 = 7464
number of fields = 27
No RA_SUN column yet. Adding RA_SUN/DEC_SUN columns.
Done.


Performing analysis on: 4FGL_J2327.5-3259_daily_bin144
RA = 351.883, Dec = -32.9869
tmin = 276652801, tmax = 276912001
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='912663', job_status='RUN', time_executed='2021-09-29 19:57:45.502518', time_epoch_executed='1632970665.5' WHERE source_name='4FGL J2327.5-3259' and cadence='daily' and bin_id='144'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/912663

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/912663/ft1_4FGL_J2327.5-3259_daily_bin144.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/912663/ft2_4FGL_J2327.5-3259_daily_bin144.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/912663/ft1_4FGL_J2327.5-3259_daily_bin144.fits outfile=/scratch/kocevski/912663/ft1_filteredMKT_4FGL_J2327.5-3259_daily_bin144.fits ra=351.883 dec=-32.9869 rad=12.0 tmin=276652801.0 tmax=276912001.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.61
user 4.37
sys 0.21

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/912663/ft1_filtered_4FGL_J2327.5-3259_daily_bin144.fits" evtable="EVENTS" scfile=/scratch/kocevski/912663/ft2_4FGL_J2327.5-3259_daily_bin144.fits sctable="SC_DATA" outfile=/scratch/kocevski/912663/ltcube_276652801_276912001_4FGL_J2327.5-3259_daily_bin144.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/912663/ft2_4FGL_J2327.5-3259_daily_bin144.fits
.....................!
real 11.99
user 11.65
sys 0.30

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/912663/ft1_filtered_4FGL_J2327.5-3259_daily_bin144.fits evtable="EVENTS" scfile=/scratch/kocevski/912663/ft2_4FGL_J2327.5-3259_daily_bin144.fits sctable="SC_DATA" expcube=/scratch/kocevski/912663/ltcube_276652801_276912001_4FGL_J2327.5-3259_daily_bin144.fits outfile=/scratch/kocevski/912663/expmap_276652801_276912001_4FGL_J2327.5-3259_daily_bin144.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/912663/ltcube_276652801_276912001_4FGL_J2327.5-3259_daily_bin144.fits
.....................!
real 190.97
user 185.85
sys 4.77

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/912663/ft1_filtered_4FGL_J2327.5-3259_daily_bin144.fits scfile=/scratch/kocevski/912663/ft2_4FGL_J2327.5-3259_daily_bin144.fits outfile=/scratch/kocevski/912663/cmap_276652801_276912001_4FGL_J2327.5-3259_daily_bin144.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.37
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/912663/ft1_filtered_4FGL_J2327.5-3259_daily_bin144.fits scfile=/scratch/kocevski/912663/ft2_4FGL_J2327.5-3259_daily_bin144.fits outfile=/scratch/kocevski/912663/cmap_HighResolution_276652801_276912001_4FGL_J2327.5-3259_daily_bin144.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.40
sys 0.13

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/912663/ft1_filtered_4FGL_J2327.5-3259_daily_bin144.fits evtable="EVENTS" scfile=/scratch/kocevski/912663/ft2_4FGL_J2327.5-3259_daily_bin144.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/912663/Model_4FGL_J2327.5-3259_daily_bin144.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/912663/ft1_filtered_4FGL_J2327.5-3259_daily_bin144.fits.....................!
real 47.85
user 46.50
sys 1.22

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10068E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    3.8465       1.0000         .10000E-03   10000.    
     4 'Prefactor '    11.217       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .14406E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .77087E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    10.634       1.0000         .10000E-03   10000.    
     8 'norm      '    3.0833       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10022E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    2.9462       1.0000         .10000E-03   10000.    
    11 'norm      '    1.2108       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10094E-03   1.0000         .10000E-03   10000.    
    14 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    15.679       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10010E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    33.116       1.0000         .10000E-03   10000.    
    18 'norm      '    1.4913       1.0000         .10000E-03   10000.    
    19 'norm      '    2.0313       1.0000         .10000E-03   10000.    
    20 'Prefactor '    21.896       1.0000         .10000E-03   10000.    
    21 'norm      '    .28275E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    50.173       1.0000         .10000E-03   10000.    
    23 'Prefactor '    6.5601       1.0000         .10000E-03   10000.    
    24 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    25 'Prefactor '    .10076E-03   1.0000         .10000E-03   10000.    
    26 'Normalizat'    1.1321       1.0000         .10000E-01   10.000    
    27 'Prefactor '    .60492       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=   6583.040     FROM MIGRAD    STATUS=CONVERGED    659 CALLS     3317 TOTAL
                     EDM=   .12E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  4.3%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10001E-03    14.849        .46137E-05** at limit **
   2  Prefactor     .10000E-03    1.4102       -.44706E-06** at limit **
   3  Prefactor     3.8519        12.297        .59414E-05   -.54198E-03
   4  Prefactor     11.209        13.682        .11263E-07   -.28547E-04
   5  Prefactor     .10000E-03    68.485       -.40880E-05** at limit **
   6  Prefactor     .10002E-03    6.4576        .98952E-06** at limit **
   7  Prefactor     10.632        7.7189       -.59228E-07   -.60713E-04
   8  norm          3.0838        2.8957       -.13553E-07   -.13680E-03
   9  Prefactor     .10000E-03    4.6459       -.10219E-06** at limit **
  10  Prefactor     2.9430        7.3649        .55124E-06   -.21625E-03
  11  norm          1.2107        .57339       -.26459E-07   -.24645E-03
  12  Prefactor     .10000E-03    14.062       -.36149E-05** at limit **
  13  Prefactor     .10000E-03    4.2169       -.80145E-07** at limit **
  14  norm          .10000E-03    1.0906       -.95508E-08** at limit **
  15  norm          15.679        8.1514        .13012E-06   -.25003E-04
  16  Prefactor     .10000E-03    24.165       -.31298E-05** at limit **
  17  Prefactor     33.109        33.677       -.15056E-05   -.18524E-03
  18  norm          1.4919        2.2459        .65290E-07   -.20021E-03
  19  norm          2.0311        2.4583        .85628E-07   -.16195E-03
  20  Prefactor     21.900        23.394        .26795E-06    .37296E-04
  21  norm          .10003E-03    1.5230        .45674E-06** at limit **
  22  Prefactor     50.177        53.188        .12281E-05    .70650E-04
  23  Prefactor     6.5570        29.873       -.70928E-06   -.41987E-04
  24  Prefactor     .10000E-03    4.4400        .31966E-07** at limit **
  25  Prefactor     .10001E-03    42.334        .44696E-05** at limit **
  26  Normalizat    1.1322        .15084       -.95425E-07   -.27614E-03
  27  Prefactor     .60465        .15821       -.47122E-06   -.15001E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100007
  Prefactor  = 0.0001
  Prefactor  = 3.85188
  Prefactor  = 11.2086
  Prefactor  = 0.000100004
  Prefactor  = 0.000100023
  Prefactor  = 10.6317
  norm       = 3.08382
  Prefactor  = 0.0001
  Prefactor  = 2.94298
  norm       = 1.21074
  Prefactor  = 0.000100004
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 15.6794
  Prefactor  = 0.000100003
  Prefactor  = 33.1093
  norm       = 1.49187
  norm       = 2.0311
  Prefactor  = 21.8999
  norm       = 0.000100035
  Prefactor  = 50.1772
  Prefactor  = 6.55701
  Prefactor  = 0.0001
  Prefactor  = 0.000100006
  Normalizat = 1.1322
  Prefactor  = 0.604653
 **********
 **   18 **HESSE 
 **********

 FCN=   6583.040     FROM HESSE     STATUS=OK           490 CALLS     3807 TOTAL
                     EDM=   .59E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10001E-03    15.780        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    1.4610        .94600E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     3.8519        13.884        .10288E-02   -1.5315    
   4  Prefactor     11.209        13.674        .11962E-03   -1.5038    
   5  Prefactor     .10000E-03    71.369        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10002E-03    27.805        .38924E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     10.632        7.7196        .12286E-03   -1.5056    
   8  norm          3.0838        2.8701        .12385E-03   -1.5357    
   9  Prefactor     .10000E-03    4.6482        .17063E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     2.9430        7.4516        .23662E-03   -1.5365    
  11  norm          1.2107        .58069        .34677E-04   -1.5488    
  12  Prefactor     .10000E-03    14.632        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    4.2324        .16229E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          .10000E-03    1.0908        .82730E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          15.679        8.1578        .10115E-03   -1.4916    
  16  Prefactor     .10000E-03    24.673        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     33.109        34.001        .69632E-04   -1.4557    
  18  norm          1.4919        2.1892        .14226E-03   -1.5464    
  19  norm          2.0311        2.4374        .13165E-03   -1.5423    
  20  Prefactor     21.900        23.329        .85599E-04   -1.4772    
  21  norm          .10003E-03    14.287        .18927E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     50.177        53.260        .56616E-04   -1.4290    
  23  Prefactor     6.5570        29.945        .15668E-03   -1.5196    
  24  Prefactor     .10000E-03    4.5938        .33342E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Prefactor     .10001E-03    43.561        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  Normalizat    1.1322        .17503        .19791E-03   -.88725    
  27  Prefactor     .60465        .18403        .28475E-03   -1.0739    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.90109e-09
Minuit parameter uncertainties:
  1  0.000670565
  2  1.92915e-05
  3  13.8958
  4  13.6777
  5  0.00103518
  6  0.00159058
  7  7.72033
  8  2.87021
  9  7.15467e-06
  10  7.45398
  11  0.580693
  12  0.000507594
  13  4.60333e-06
  14  4.29523e-07
  15  8.15834
  16  0.000576053
  17  34.0213
  18  2.18936
  19  2.43753
  20  23.3385
  21  0.00141213
  22  53.3109
  23  28.048
  24  1.93142e-06
  25  0.0010578
  26  0.175118
  27  0.184215
Done.

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

Extracting fit parameters...

4FGL J2327.5-3259
   Spectrum: PowerLaw
454    Prefactor:  3.311e+01  3.402e+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:  6.047e-01  1.842e-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.132e+00  1.751e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 1.40
Ra Dec: 351.883 -32.987
Photon Index (Fixed Index): 2.56 +/- 0.00
Photon Flux (Fixed Index): 2.65e-08 +/- 2.72e-08
Energy Flux (Fixed Index): 7.25e-06 +/- 7.45e-06

TS (Fixed Index): 1.40
Ra Dec: 351.883 -32.987
Photon Flux Upper Limit: 8.79e-08 ph cm-2 s-1
Energy Flux Upper Limit: 6.86e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/912663/likelihoodResults_276652801_276912001_4FGL_J2327.5-3259_daily_bin144.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) = 6582.956157
delta logL = 0.08367166485

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 6582.58187303
delta logL = 0.457955632134

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .46875E-01   1.0000         .10000E-03   10000.    
     2 'Index     '    7.1541       1.0000          .0000       10.000    
     3 'Normalizat'    1.0727       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .66098       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=   6582.582     FROM MIGRAD    STATUS=CONVERGED     53 CALLS      370 TOTAL
                     EDM=   .10E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .46924E-01    .50942        .28816E-02    .36253E-02
   2  Index         7.1522        2.8431        .16649        .12126E-03
   3  Normalizat    1.0728        .33351E-01    .39238E-01   -.49490E-03
   4  Prefactor     .66090        .36288E-01    .61851E-01   -.30465E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0469241
  Index      = 7.15217
  Normalizat = 1.0728
  Prefactor  = 0.660904
 **********
 **   18 **HESSE 
 **********

 FCN=   6582.582     FROM HESSE     STATUS=NOT POSDEF    33 CALLS      403 TOTAL
                     EDM=   .97E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .46924E-01    1.3438        .13135E-03   -1.5665    
   2  Index         7.1522        8.0375        .62701E-02    .44497    
   3  Normalizat    1.0728        .12823        .20250E-03   -.90630    
   4  Prefactor     .66090        .13684        .27361E-03   -1.0508    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 9.67336e-08
Minuit parameter uncertainties:
  1  0.501705
  2  6.07904
  3  0.128272
  4  0.136907
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/912663': 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) = 6582.58186803
delta logL = 0.457960637597

Extracting fit parameters...

4FGL J2327.5-3259
   Spectrum: PowerLaw
454    Prefactor:  4.692e-02  5.017e-01  1.000e-04  1.000e+04 ( 1.000e-13)
455        Index:  7.152e+00  6.079e+00  0.000e+00  1.000e+01 (-1.000e+00)
456        Scale:  6.601e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
605    Prefactor:  6.609e-01  1.369e-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.073e+00  1.283e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 2.46
Ra Dec: 351.883 -32.987
Photon Index (Free Index): 7.15 +/- 6.08
Photon Flux (Free Index): 5.64e-08 +/- 4.15e-08
Energy Flux (Free Index): 6.70e-06 +/- 5.41e-06

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/912663/cmap_HighResolution_276652801_276912001_4FGL_J2327.5-3259_daily_bin144.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='6.86e-03', comment='SUCCESS', photon_flux='2.65e-08', energy_flux2='6.70e-06', photon_flux_error='2.72e-08', dlogl='4.58e-01', energy_flux='7.25e-06', photon_flux2='5.64e-08', job_status='DONE', time_completed='2021-09-29 20:11:34.629043', photon_index_error2='6.08', photon_index2='7.15', ts='1.40', fit_tolerance='1e-08', GAL='0.60', photon_index_error='0.00', photon_flux_upper_limit='8.79e-08', energy_flux_error2='5.41e-06', EG='1.13', time_epoch_completed='1632971494.63', return_code='0', job_id='912663', GAL2='0.66', EG2='1.07', return_code2='102', energy_flux_error='7.45e-06', photon_flux_error2='4.15e-08', ts2='2.46', photon_index='2.56' WHERE bin_id='144' AND source_name='4FGL J2327.5-3259' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep 29 20:11:34 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0280>
Subject: Job 912663: <4FGL_J2327.5-3259_daily_bin144> in cluster <slac> Done

Job <4FGL_J2327.5-3259_daily_bin144> was submitted from host <rhel6-64p> by user <kocevski> in cluster <slac> at Wed Sep 29 19:55:27 2021
Job was executed on host(s) <bullet0280>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Sep 29 19:55:29 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Wed Sep 29 19:55:29 2021
Terminated at Wed Sep 29 20:11:35 2021
Results reported at Wed Sep 29 20:11:35 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2327.5-3259_daily_bin144 351.883 -32.9869 276652801 276912001 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 :                                   826.24 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             297.43 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   965 sec.
    Turnaround time :                            968 sec.

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

