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


Performing analysis on: 4FGL_J2327.5-3259_daily_bin135
RA = 351.883, Dec = -32.9869
tmin = 274320001, tmax = 274579201
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='912650', job_status='RUN', time_executed='2021-09-29 19:58:07.041807', time_epoch_executed='1632970687.04' WHERE source_name='4FGL J2327.5-3259' and cadence='daily' and bin_id='135'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/912650

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

Retrieving the FT1 file...

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

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

Retrieving 48 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/912650/ft1_4FGL_J2327.5-3259_daily_bin135.fits


Retrieving the FT1 file...

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

Retrieving 48 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/912650/ft2_4FGL_J2327.5-3259_daily_bin135.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/912650/ft1_4FGL_J2327.5-3259_daily_bin135.fits outfile=/scratch/kocevski/912650/ft1_filteredMKT_4FGL_J2327.5-3259_daily_bin135.fits ra=351.883 dec=-32.9869 rad=12.0 tmin=274320001.0 tmax=274579201.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.61
user 3.40
sys 0.19

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/912650/ft1_filtered_4FGL_J2327.5-3259_daily_bin135.fits" evtable="EVENTS" scfile=/scratch/kocevski/912650/ft2_4FGL_J2327.5-3259_daily_bin135.fits sctable="SC_DATA" outfile=/scratch/kocevski/912650/ltcube_274320001_274579201_4FGL_J2327.5-3259_daily_bin135.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/912650/ft2_4FGL_J2327.5-3259_daily_bin135.fits
.....................!
real 12.07
user 11.71
sys 0.31

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/912650/ft1_filtered_4FGL_J2327.5-3259_daily_bin135.fits evtable="EVENTS" scfile=/scratch/kocevski/912650/ft2_4FGL_J2327.5-3259_daily_bin135.fits sctable="SC_DATA" expcube=/scratch/kocevski/912650/ltcube_274320001_274579201_4FGL_J2327.5-3259_daily_bin135.fits outfile=/scratch/kocevski/912650/expmap_274320001_274579201_4FGL_J2327.5-3259_daily_bin135.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/912650/ltcube_274320001_274579201_4FGL_J2327.5-3259_daily_bin135.fits
.....................!
real 190.15
user 185.10
sys 4.38

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/912650/ft1_filtered_4FGL_J2327.5-3259_daily_bin135.fits scfile=/scratch/kocevski/912650/ft2_4FGL_J2327.5-3259_daily_bin135.fits outfile=/scratch/kocevski/912650/cmap_274320001_274579201_4FGL_J2327.5-3259_daily_bin135.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.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/912650/ft1_filtered_4FGL_J2327.5-3259_daily_bin135.fits scfile=/scratch/kocevski/912650/ft2_4FGL_J2327.5-3259_daily_bin135.fits outfile=/scratch/kocevski/912650/cmap_HighResolution_274320001_274579201_4FGL_J2327.5-3259_daily_bin135.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.55
user 0.38
sys 0.15

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    95.656       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    17.579       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    3.8662       1.0000         .10000E-03   10000.    
     7 'Prefactor '    21.909       1.0000         .10000E-03   10000.    
     8 'norm      '    3.3579       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10008E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    14.076       1.0000         .10000E-03   10000.    
    11 'norm      '    2.1749       1.0000         .10000E-03   10000.    
    12 'Prefactor '    38.637       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .12011E-03   1.0000         .10000E-03   10000.    
    14 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    12.788       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    39.482       1.0000         .10000E-03   10000.    
    18 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    19 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    21 'norm      '    2.1025       1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    .18920E-03   1.0000         .10000E-03   10000.    
    24 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    25 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
    26 'Normalizat'    .92658       1.0000         .10000E-01   10.000    
    27 'Prefactor '    .93905       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=   3819.858     FROM MIGRAD    STATUS=CONVERGED    642 CALLS     3231 TOTAL
                     EDM=   .74E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  3.7%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     95.666        68.258        .12826E-05    .87760E-04
   2  Prefactor     .10000E-03    2.0641        .58944E-07** at limit **
   3  Prefactor     .10000E-03    19.645       -.19925E-05** at limit **
   4  Prefactor     17.583        22.619       -.52639E-06   -.22015E-04
   5  Prefactor     .10000E-03    27.594       -.21198E-05** at limit **
   6  Prefactor     3.8717        16.581        .10521E-04   -.25175E-03
   7  Prefactor     21.912        12.978        .11248E-06    .36919E-04
   8  norm          3.3592        4.2037       -.74010E-07   -.11230E-03
   9  Prefactor     .10000E-03    12.600        .11421E-06** at limit **
  10  Prefactor     14.058        19.181        .36149E-06   -.16814E-03
  11  norm          2.1749        1.2804       -.35818E-08   -.96383E-03
  12  Prefactor     38.649        66.563        .97719E-06    .59678E-04
  13  Prefactor     .10000E-03    63.549        .43213E-05** at limit **
  14  norm          .10000E-03    2.1106        .24511E-07** at limit **
  15  norm          12.790        11.324        .81669E-06   -.11707E-03
  16  Prefactor     .10001E-03    55.396       -.50990E-05** at limit **
  17  Prefactor     39.476        62.112       -.71564E-06   -.50155E-04
  18  norm          .10000E-03    1.6030        .26890E-07** at limit **
  19  norm          .10000E-03    2.6377        .12941E-06** at limit **
  20  Prefactor     .10000E-03    11.511       -.93670E-07** at limit **
  21  norm          2.1026        3.1781        .66806E-07    .22259E-04
  22  Prefactor     .10001E-03    64.922        .47037E-05** at limit **
  23  Prefactor     .10001E-03    156.44       -.48492E-05** at limit **
  24  Prefactor     .10000E-03    4.9058        .10255E-06** at limit **
  25  Prefactor     .10001E-03    21.815        .37370E-05** at limit **
  26  Normalizat    .92655        .22775       -.16995E-05   -.32857E-04
  27  Prefactor     .93885        .23140       -.23016E-06   -.74240E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 95.6661
  Prefactor  = 0.0001
  Prefactor  = 0.000100002
  Prefactor  = 17.5834
  Prefactor  = 0.000100002
  Prefactor  = 3.87174
  Prefactor  = 21.912
  norm       = 3.35917
  Prefactor  = 0.0001
  Prefactor  = 14.0584
  norm       = 2.17493
  Prefactor  = 38.649
  Prefactor  = 0.000100004
  norm       = 0.0001
  norm       = 12.7902
  Prefactor  = 0.000100012
  Prefactor  = 39.4764
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 2.10264
  Prefactor  = 0.000100012
  Prefactor  = 0.000100011
  Prefactor  = 0.0001
  Prefactor  = 0.000100007
  Normalizat = 0.92655
  Prefactor  = 0.938853
 **********
 **   18 **HESSE 
 **********

 FCN=   3819.858     FROM HESSE     STATUS=OK           480 CALLS     3711 TOTAL
                     EDM=   .16E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     95.666        68.399        .41096E-04   -1.3749    
   2  Prefactor     .10000E-03    2.0765        .86703E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    19.919        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     17.583        22.619        .95525E-04   -1.4869    
   5  Prefactor     .10000E-03    27.901        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     3.8717        17.530        .10261E-02   -1.5314    
   7  Prefactor     21.912        12.980        .85573E-04   -1.4771    
   8  norm          3.3592        4.1833        .13069E-03   -1.5341    
   9  Prefactor     .10000E-03    12.610        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     14.058        19.736        .10676E-03   -1.4958    
  11  norm          2.1749        1.3200        .39830E-04   -1.5413    
  12  Prefactor     38.649        66.797        .64481E-04   -1.4464    
  13  Prefactor     .10000E-03    65.461        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          .10000E-03    2.1119        .87692E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          12.790        11.329        .56006E-03   -1.4993    
  16  Prefactor     .10001E-03    57.171        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     39.476        62.427        .63790E-04   -1.4451    
  18  norm          .10000E-03    1.6086        .76401E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  norm          .10000E-03    2.6752        .98019E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    11.516        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  norm          2.1026        3.1571        .13137E-03   -1.5418    
  22  Prefactor     .10001E-03    66.306        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     .10001E-03    158.37        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     .10000E-03    4.9564        .13365E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Prefactor     .10001E-03    22.683        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  Normalizat    .92655        .27130        .24499E-03   -.95533    
  27  Prefactor     .93885        .27546        .25799E-03   -.94796    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.63294e-09
Minuit parameter uncertainties:
  1  68.4551
  2  5.29331e-06
  3  0.000397308
  4  22.6305
  5  0.000518177
  6  16.4848
  7  12.9819
  8  4.1837
  9  3.66359e-06
  10  19.7451
  11  1.32005
  12  66.9269
  13  0.0010392
  14  2.65681e-06
  15  11.3306
  16  0.00162751
  17  62.5306
  18  3.96666e-06
  19  1.01338e-05
  20  1.41718e-05
  21  3.15732
  22  0.00176513
  23  0.00264122
  24  1.31577e-05
  25  0.000822204
  26  0.271705
  27  0.275872
Done.

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

Extracting fit parameters...

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

GAL_V02
   Spectrum: PowerLaw
605    Prefactor:  9.389e-01  2.759e-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:  9.265e-01  2.717e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/912650/likelihoodResults_274320001_274579201_4FGL_J2327.5-3259_daily_bin135.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) = 3819.60833989
delta logL = 0.249234808578

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 3819.59885054
delta logL = 0.258724155666

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    21.153       1.0000         .10000E-03   10000.    
     2 'Index     '    3.4901       1.0000          .0000       10.000    
     3 'Normalizat'    .88775       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .96694       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=   3819.599     FROM MIGRAD    STATUS=CONVERGED     89 CALLS      303 TOTAL
                     EDM=   .57E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     21.177        61.107        .87088E-04    .30939E-04
   2  Index         3.4901        1.8969        .76319E-02    .60999E-04
   3  Normalizat    .88818        .26652        .24962E-03    .77811E-04
   4  Prefactor     .96643        .27713        .25467E-03   -.81134E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 21.1769
  Index      = 3.49013
  Normalizat = 0.888183
  Prefactor  = 0.966435
 **********
 **   18 **HESSE 
 **********

 FCN=   3819.599     FROM HESSE     STATUS=OK            25 CALLS      328 TOTAL
                     EDM=   .33E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     21.177        46.351        .34835E-05   -1.4787    
   2  Index         3.4901        1.4517        .30528E-03   -.30676    
   3  Normalizat    .88818        .26655        .99849E-05   -.96877    
   4  Prefactor     .96643        .27679        .10187E-04   -.93857    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.26318e-10
Minuit parameter uncertainties:
  1  46.4297
  2  1.4751
  3  0.266949
  4  0.277196
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/912650': 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) = 3819.59884794
delta logL = 0.258726757209

Extracting fit parameters...

4FGL J2327.5-3259
   Spectrum: PowerLaw
454    Prefactor:  2.118e+01  4.643e+01  1.000e-04  1.000e+04 ( 1.000e-13)
455        Index:  3.490e+00  1.475e+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:  9.664e-01  2.772e-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:  8.882e-01  2.669e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 1.11
Ra Dec: 351.883 -32.987
Photon Index (Free Index): 3.49 +/- 1.48
Photon Flux (Free Index): 6.18e-08 +/- 7.31e-08
Energy Flux (Free Index): 1.03e-05 +/- 1.18e-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/912650/cmap_HighResolution_274320001_274579201_4FGL_J2327.5-3259_daily_bin135.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.18e-02', comment='SUCCESS', energy_flux2='1.03e-05', dlogl='2.59e-01', photon_flux2='6.18e-08', job_status='DONE', time_completed='2021-09-29 20:07:55.331673', photon_index_error2='1.48', photon_index2='3.49', ts='0.56', fit_tolerance='1e-08', GAL='0.94', photon_index_error='0.00', photon_flux_upper_limit='1.51e-07', energy_flux_error2='1.18e-05', EG='0.93', time_epoch_completed='1632971275.33', return_code='0', job_id='912650', GAL2='0.97', EG2='0.89', return_code2='0', photon_flux_error2='7.31e-08', ts2='1.11', photon_index='2.56' WHERE bin_id='135' AND source_name='4FGL J2327.5-3259' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep 29 20:07:55 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0054>
Subject: Job 912650: <4FGL_J2327.5-3259_daily_bin135> in cluster <slac> Done

Job <4FGL_J2327.5-3259_daily_bin135> was submitted from host <rhel6-64p> by user <kocevski> in cluster <slac> at Wed Sep 29 19:55:25 2021
Job was executed on host(s) <bullet0054>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Sep 29 19:55:28 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:28 2021
Terminated at Wed Sep 29 20:07:55 2021
Results reported at Wed Sep 29 20:07:55 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2327.5-3259_daily_bin135 351.883 -32.9869 274320001 274579201 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 :                                   585.05 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             277.29 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   747 sec.
    Turnaround time :                            750 sec.

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

