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


Performing analysis on: 4FGL_J2327.5-3259_daily_bin737
RA = 351.883, Dec = -32.9869
tmin = 430358401, tmax = 430617601
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='915749', job_status='RUN', time_executed='2021-09-29 20:08:36.312570', time_epoch_executed='1632971316.31' WHERE source_name='4FGL J2327.5-3259' and cadence='daily' and bin_id='737'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/915749

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/915749/ft1_4FGL_J2327.5-3259_daily_bin737.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/915749/ft2_4FGL_J2327.5-3259_daily_bin737.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/915749/ft1_4FGL_J2327.5-3259_daily_bin737.fits outfile=/scratch/kocevski/915749/ft1_filteredMKT_4FGL_J2327.5-3259_daily_bin737.fits ra=351.883 dec=-32.9869 rad=12.0 tmin=430358401.0 tmax=430617601.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 6.00
user 5.73
sys 0.23

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/915749/ft1_filtered_4FGL_J2327.5-3259_daily_bin737.fits" evtable="EVENTS" scfile=/scratch/kocevski/915749/ft2_4FGL_J2327.5-3259_daily_bin737.fits sctable="SC_DATA" outfile=/scratch/kocevski/915749/ltcube_430358401_430617601_4FGL_J2327.5-3259_daily_bin737.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/915749/ft2_4FGL_J2327.5-3259_daily_bin737.fits
.....................!
real 11.80
user 11.44
sys 0.33

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/915749/ft1_filtered_4FGL_J2327.5-3259_daily_bin737.fits evtable="EVENTS" scfile=/scratch/kocevski/915749/ft2_4FGL_J2327.5-3259_daily_bin737.fits sctable="SC_DATA" expcube=/scratch/kocevski/915749/ltcube_430358401_430617601_4FGL_J2327.5-3259_daily_bin737.fits outfile=/scratch/kocevski/915749/expmap_430358401_430617601_4FGL_J2327.5-3259_daily_bin737.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/915749/ltcube_430358401_430617601_4FGL_J2327.5-3259_daily_bin737.fits
.....................!
real 189.21
user 184.72
sys 4.18

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/915749/ft1_filtered_4FGL_J2327.5-3259_daily_bin737.fits scfile=/scratch/kocevski/915749/ft2_4FGL_J2327.5-3259_daily_bin737.fits outfile=/scratch/kocevski/915749/cmap_430358401_430617601_4FGL_J2327.5-3259_daily_bin737.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/915749/ft1_filtered_4FGL_J2327.5-3259_daily_bin737.fits scfile=/scratch/kocevski/915749/ft2_4FGL_J2327.5-3259_daily_bin737.fits outfile=/scratch/kocevski/915749/cmap_HighResolution_430358401_430617601_4FGL_J2327.5-3259_daily_bin737.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/915749/ft1_filtered_4FGL_J2327.5-3259_daily_bin737.fits evtable="EVENTS" scfile=/scratch/kocevski/915749/ft2_4FGL_J2327.5-3259_daily_bin737.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/915749/Model_4FGL_J2327.5-3259_daily_bin737.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/915749/ft1_filtered_4FGL_J2327.5-3259_daily_bin737.fits......................!
real 27.50
user 26.32
sys 1.12

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/915749/ft1_filtered_4FGL_J2327.5-3259_daily_bin737.fits', '/scratch/kocevski/915749/ft2_4FGL_J2327.5-3259_daily_bin737.fits', expMap='/scratch/kocevski/915749/expmap_430358401_430617601_4FGL_J2327.5-3259_daily_bin737.fits', expCube='/scratch/kocevski/915749/ltcube_430358401_430617601_4FGL_J2327.5-3259_daily_bin737.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/915749/Model_4FGL_J2327.5-3259_daily_bin737.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/915749/ft1_filtered_4FGL_J2327.5-3259_daily_bin737.fits
Spacecraft file(s): /scratch/kocevski/915749/ft2_4FGL_J2327.5-3259_daily_bin737.fits
Exposure map: /scratch/kocevski/915749/expmap_430358401_430617601_4FGL_J2327.5-3259_daily_bin737.fits
Exposure cube: /scratch/kocevski/915749/ltcube_430358401_430617601_4FGL_J2327.5-3259_daily_bin737.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/915749/Model_4FGL_J2327.5-3259_daily_bin737.xml
Optimizer: MINUIT
Statistic: UNBINNED

Performing an iterative likelihood fit...

Fit tolerance = 1

Performing likelihood fit...
Done.

MINUIT Return Code (Fixed Index): 102
logL (Fixed Index) = 2659.61403794

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    184.06       1.0000         .10000E-03   10000.    
     2 'Prefactor '    8.9716       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10013E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    15.281       1.0000         .10000E-03   10000.    
     5 'Prefactor '    20.477       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .26995E-02   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    .74521       1.0000         .10000E-03   10000.    
     9 'Prefactor '    60.521       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .30249E-01   1.0000         .10000E-03   10000.    
    11 'norm      '    .10005E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10551E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    14 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    33.319       1.0000         .10000E-03   10000.    
    16 'Prefactor '    43.334       1.0000         .10000E-03   10000.    
    17 'Prefactor '    133.77       1.0000         .10000E-03   10000.    
    18 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
    19 'norm      '    .10015E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    79.245       1.0000         .10000E-03   10000.    
    21 'norm      '    5.6651       1.0000         .10000E-03   10000.    
    22 'Prefactor '    .32097E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    39.486       1.0000         .10000E-03   10000.    
    24 'Prefactor '    1.0407       1.0000         .10000E-03   10000.    
    25 'Prefactor '    45.529       1.0000         .10000E-03   10000.    
    26 'Normalizat'    .43032       1.0000         .10000E-01   10.000    
    27 'Prefactor '    1.3620       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=   2659.336     FROM MIGRAD    STATUS=CONVERGED    659 CALLS     3497 TOTAL
                     EDM=   .97E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.3%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     183.97        124.75       -.36745E-05    .51325E-04
   2  Prefactor     8.9707        6.9255       -.32904E-07    .30849E-03
   3  Prefactor     .10000E-03    42.414        .37356E-06** at limit **
   4  Prefactor     15.279        23.688        .16358E-06   -.15395E-04
   5  Prefactor     20.471        51.433        .15208E-06    .91889E-05
   6  Prefactor     .10004E-03    13.435        .10317E-06** at limit **
   7  Prefactor     .10000E-03    5.0441        .17122E-06** at limit **
   8  norm          .75451        10.492        .85503E-06    .28066E-03
   9  Prefactor     60.584        27.984       -.63369E-05    .11488E-03
  10  Prefactor     .10223E-03    19.316        .86667E-05** at limit **
  11  norm          .10000E-03    .31141        .17045E-06** at limit **
  12  Prefactor     .10000E-03    238.73        .10745E-04** at limit **
  13  Prefactor     .10000E-03    4.5290        .92106E-07** at limit **
  14  norm          .10000E-03    2.7964       -.21745E-07** at limit **
  15  norm          33.317        18.661        .21254E-06    .87457E-04
  16  Prefactor     43.319        48.256       -.10244E-06    .20842E-04
  17  Prefactor     133.74        99.042       -.13810E-05    .90063E-04
  18  norm          .10000E-03    2.0452       -.69536E-08** at limit **
  19  norm          .10000E-03    2.2173       -.20991E-06** at limit **
  20  Prefactor     79.150        72.036       -.48089E-05    .45477E-04
  21  norm          5.6650        5.9515        .13757E-06    .38849E-04
  22  Prefactor     .10004E-03    520.77       -.76929E-05** at limit **
  23  Prefactor     39.467        88.757       -.16572E-05    .52370E-04
  24  Prefactor     1.0048        12.358       -.40531E-07    .46390E-03
  25  Prefactor     45.555        79.279        .12771E-05    .15705E-03
  26  Normalizat    .43083        .30814       -.34404E-05    .39777E-03
  27  Prefactor     1.3616        .30959        .52160E-06    .46226E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 183.974
  Prefactor  = 8.97066
  Prefactor  = 0.0001
  Prefactor  = 15.2793
  Prefactor  = 20.4712
  Prefactor  = 0.000100037
  Prefactor  = 0.0001
  norm       = 0.754514
  Prefactor  = 60.5842
  Prefactor  = 0.000102229
  norm       = 0.0001
  Prefactor  = 0.000100004
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 33.3174
  Prefactor  = 43.3193
  Prefactor  = 133.741
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 79.15
  norm       = 5.66496
  Prefactor  = 0.000100044
  Prefactor  = 39.4665
  Prefactor  = 1.00478
  Prefactor  = 45.5551
  Normalizat = 0.430828
  Prefactor  = 1.36161
 **********
 **   18 **HESSE 
 **********

 FCN=   2659.336     FROM HESSE     STATUS=OK           494 CALLS     3991 TOTAL
                     EDM=   .53E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     183.97        124.77        .14880E-03   -1.2987    
   2  Prefactor     8.9707        6.9137        .11202E-03   -1.5109    
   3  Prefactor     .10000E-03    42.448        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     15.279        23.669        .51230E-03   -1.4926    
   5  Prefactor     20.471        51.431        .88512E-04   -1.4803    
   6  Prefactor     .10004E-03    84.167        .35607E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    5.0523        .11311E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          .75451        17.896        .26678E-02   -1.5534    
   9  Prefactor     60.584        37.086        .25788E-03   -1.4150    
  10  Prefactor     .10223E-03    36.043        .50143E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          .10000E-03    .31473        .27936E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    238.70        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    4.5312        .10717E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          .10000E-03    2.7969        .84218E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          33.317        18.653        .34710E-03   -1.4553    
  16  Prefactor     43.319        48.220        .60900E-04   -1.4391    
  17  Prefactor     133.74        98.888        .17409E-03   -1.3390    
  18  norm          .10000E-03    2.0463        .71980E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  norm          .10000E-03    2.2209        .74953E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     79.150        72.201        .22557E-03   -1.3926    
  21  norm          5.6650        5.9420        .12053E-03   -1.5232    
  22  Prefactor     .10004E-03    522.72        .21361E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     39.467        88.728        .63787E-04   -1.4451    
  24  Prefactor     1.0048        46.383        .29761E-02   -1.5507    
  25  Prefactor     45.555        79.392        .59420E-04   -1.4357    
  26  Normalizat    .43083        .34420        .35162E-03   -1.1574    
  27  Prefactor     1.3616        .35372        .23063E-03   -.81493    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.25102e-09
Minuit parameter uncertainties:
  1  124.955
  2  6.91428
  3  6.966e-05
  4  23.6836
  5  51.543
  6  0.00352722
  7  1.51572e-05
  8  7.35116
  9  37.1006
  10  0.0179382
  11  3.33638e-06
  12  0.00188923
  13  4.90429e-06
  14  2.92928e-06
  15  18.6565
  16  48.2637
  17  99.0103
  18  5.06531e-06
  19  4.35054e-05
  20  72.2811
  21  5.94258
  22  0.00965485
  23  89.0273
  24  13.6642
  25  79.5767
  26  0.345913
  27  0.354354
Done.

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

Extracting fit parameters...

4FGL J2327.5-3259
   Spectrum: PowerLaw
454    Prefactor:  1.337e+02  9.901e+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.362e+00  3.544e-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:  4.308e-01  3.459e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 3.22
Ra Dec: 351.883 -32.987
Photon Index (Fixed Index): 2.56 +/- 0.00
Photon Flux (Fixed Index): 1.07e-07 +/- 7.93e-08
Energy Flux (Fixed Index): 2.93e-05 +/- 2.17e-05

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

Saving results to:
/scratch/kocevski/915749/likelihoodResults_430358401_430617601_4FGL_J2327.5-3259_daily_bin737.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) = 2659.33546169
delta logL = 0.000694215334988

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 2659.33503396
delta logL = 0.00112194980511

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    136.97       1.0000         .10000E-03   10000.    
     2 'Index     '    2.5266       1.0000          .0000       10.000    
     3 'Normalizat'    .43309       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.3596       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=   2659.335     FROM MIGRAD    STATUS=CONVERGED     81 CALLS      257 TOTAL
                     EDM=   .38E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     136.99        122.14        .17207E-03   -.55959E-03
   2  Index         2.5265        .65382        .53882E-02   -.44502E-03
   3  Normalizat    .43300        .31024        .35073E-03    .14612E-03
   4  Prefactor     1.3597        .34437        .23076E-03    .29052E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 136.989
  Index      = 2.52654
  Normalizat = 0.432999
  Prefactor  = 1.35971
 **********
 **   18 **HESSE 
 **********

 FCN=   2659.335     FROM HESSE     STATUS=OK            23 CALLS      280 TOTAL
                     EDM=   .39E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     136.99        119.26        .34414E-04   -1.3362    
   2  Index         2.5265        .63795        .21553E-03   -.51748    
   3  Normalizat    .43300        .31026        .14029E-04   -1.1563    
   4  Prefactor     1.3597        .34435        .46153E-04   -.81549    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.86236e-09
Minuit parameter uncertainties:
  1  119.467
  2  0.640266
  3  0.311502
  4  0.344932
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/915749': 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) = 2659.33503387
delta logL = 0.00112203735989

Extracting fit parameters...

4FGL J2327.5-3259
   Spectrum: PowerLaw
454    Prefactor:  1.370e+02  1.195e+02  1.000e-04  1.000e+04 ( 1.000e-13)
455        Index:  2.527e+00  6.403e-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:  1.360e+00  3.449e-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:  4.330e-01  3.115e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 3.21
Ra Dec: 351.883 -32.987
Photon Index (Free Index): 2.53 +/- 0.64
Photon Flux (Free Index): 1.06e-07 +/- 8.24e-08
Energy Flux (Free Index): 2.98e-05 +/- 2.43e-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/915749/cmap_HighResolution_430358401_430617601_4FGL_J2327.5-3259_daily_bin737.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='2.12e-02', comment='SUCCESS', photon_flux='1.07e-07', energy_flux2='2.98e-05', photon_flux_error='7.93e-08', dlogl='1.12e-03', energy_flux='2.93e-05', photon_flux2='1.06e-07', job_status='DONE', time_completed='2021-09-29 20:17:26.508838', photon_index_error2='0.64', photon_index2='2.53', ts='3.22', fit_tolerance='1e-08', GAL='1.36', photon_index_error='0.00', photon_flux_upper_limit='2.72e-07', energy_flux_error2='2.43e-05', EG='0.43', time_epoch_completed='1632971846.51', return_code='0', job_id='915749', GAL2='1.36', EG2='0.43', return_code2='0', energy_flux_error='2.17e-05', photon_flux_error2='8.24e-08', ts2='3.21', photon_index='2.56' WHERE bin_id='737' AND source_name='4FGL J2327.5-3259' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep 29 20:17:26 PDT 2021


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

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2327.5-3259_daily_bin737 351.883 -32.9869 430358401 430617601 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 :                                   529.00 sec.
    Max Memory :                                 1095 MB
    Average Memory :                             255.17 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   707 sec.
    Turnaround time :                            710 sec.

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

