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


Performing analysis on: 4FGL_J2327.5-3259_daily_bin289
RA = 351.883, Dec = -32.9869
tmin = 314236801, tmax = 314496001
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='912877', job_status='RUN', time_executed='2021-09-29 19:58:49.625116', time_epoch_executed='1632970729.63' WHERE source_name='4FGL J2327.5-3259' and cadence='daily' and bin_id='289'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/912877

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/912877/ft1_4FGL_J2327.5-3259_daily_bin289.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/912877/ft2_4FGL_J2327.5-3259_daily_bin289.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/912877/ft1_4FGL_J2327.5-3259_daily_bin289.fits outfile=/scratch/kocevski/912877/ft1_filteredMKT_4FGL_J2327.5-3259_daily_bin289.fits ra=351.883 dec=-32.9869 rad=12.0 tmin=314236801.0 tmax=314496001.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.36
user 3.15
sys 0.18

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/912877/ft2_4FGL_J2327.5-3259_daily_bin289.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/912877/ft1_filteredMKT_4FGL_J2327.5-3259_daily_bin289.fits evtable="EVENTS" outfile="/scratch/kocevski/912877/ft1_filtered_4FGL_J2327.5-3259_daily_bin289.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.56
user 0.32
sys 0.16

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/912877/ft1_filtered_4FGL_J2327.5-3259_daily_bin289.fits" evtable="EVENTS" scfile=/scratch/kocevski/912877/ft2_4FGL_J2327.5-3259_daily_bin289.fits sctable="SC_DATA" outfile=/scratch/kocevski/912877/ltcube_314236801_314496001_4FGL_J2327.5-3259_daily_bin289.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/912877/ft2_4FGL_J2327.5-3259_daily_bin289.fits
.....................!
real 11.96
user 11.52
sys 0.33

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/912877/ft1_filtered_4FGL_J2327.5-3259_daily_bin289.fits evtable="EVENTS" scfile=/scratch/kocevski/912877/ft2_4FGL_J2327.5-3259_daily_bin289.fits sctable="SC_DATA" expcube=/scratch/kocevski/912877/ltcube_314236801_314496001_4FGL_J2327.5-3259_daily_bin289.fits outfile=/scratch/kocevski/912877/expmap_314236801_314496001_4FGL_J2327.5-3259_daily_bin289.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/912877/ltcube_314236801_314496001_4FGL_J2327.5-3259_daily_bin289.fits
.....................!
real 190.45
user 184.59
sys 4.64

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/912877/ft1_filtered_4FGL_J2327.5-3259_daily_bin289.fits scfile=/scratch/kocevski/912877/ft2_4FGL_J2327.5-3259_daily_bin289.fits outfile=/scratch/kocevski/912877/cmap_314236801_314496001_4FGL_J2327.5-3259_daily_bin289.fits algorithm="CMAP" ebinalg="LOG" emin=30.0 emax=200000.0 ebinfile=NONE tbinalg="LIN" tbinfile=NONE nxpix=160 nypix=160 binsz=0.25 coordsys="CEL" xref=351.883 yref=-32.9869 axisrot=0.0 rafield="RA" decfield="DEC" proj="AIT" hpx_ordering_scheme="RING" hpx_order=3 hpx_ebin=yes hpx_region="" evtable="EVENTS" sctable="SC_DATA" efield="ENERGY" tfield="TIME" chatter=2 clobber=yes debug=no gui=no mode="ql"

WARNING: version mismatch between CFITSIO header (v3.43) and linked library (v3.41).

This is gtbin version HEAD
real 0.52
user 0.38
sys 0.13

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/912877/ft1_filtered_4FGL_J2327.5-3259_daily_bin289.fits scfile=/scratch/kocevski/912877/ft2_4FGL_J2327.5-3259_daily_bin289.fits outfile=/scratch/kocevski/912877/cmap_HighResolution_314236801_314496001_4FGL_J2327.5-3259_daily_bin289.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.56
user 0.38
sys 0.14

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/912877/ft1_filtered_4FGL_J2327.5-3259_daily_bin289.fits evtable="EVENTS" scfile=/scratch/kocevski/912877/ft2_4FGL_J2327.5-3259_daily_bin289.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/912877/Model_4FGL_J2327.5-3259_daily_bin289.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/912877/ft1_filtered_4FGL_J2327.5-3259_daily_bin289.fits.....................!
real 49.67
user 48.15
sys 1.13

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    12.286       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .15288E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    .83762       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10160E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    3.7002       1.0000         .10000E-03   10000.    
    11 'norm      '    2.3678       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10033E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10040E-03   1.0000         .10000E-03   10000.    
    14 'norm      '    2.3397       1.0000         .10000E-03   10000.    
    15 'norm      '    .10118E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    26.792       1.0000         .10000E-03   10000.    
    18 'norm      '    1.9011       1.0000         .10000E-03   10000.    
    19 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10035E-03   1.0000         .10000E-03   10000.    
    21 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    24 'Prefactor '    2.3554       1.0000         .10000E-03   10000.    
    25 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    26 'Normalizat'    .89963       1.0000         .10000E-01   10.000    
    27 'Prefactor '    .91464       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=   7008.051     FROM MIGRAD    STATUS=CONVERGED    641 CALLS     2799 TOTAL
                     EDM=   .63E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .7%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    16.805        .22151E-05** at limit **
   2  Prefactor     .10000E-03    1.7350       -.76074E-07** at limit **
   3  Prefactor     12.285        12.521       -.70360E-07   -.41861E-05
   4  Prefactor     .10000E-03    50.578       -.64643E-05** at limit **
   5  Prefactor     .10000E-03    9.5667       -.68125E-07** at limit **
   6  Prefactor     .10000E-03    2.3572       -.18150E-07** at limit **
   7  Prefactor     .10000E-03    2.2812        .11952E-07** at limit **
   8  norm          .83738        2.1925       -.56167E-06   -.13070E-02
   9  Prefactor     .10000E-03    15.536       -.49005E-05** at limit **
  10  Prefactor     3.6866        9.1617       -.78222E-06   -.25024E-03
  11  norm          2.3680        .79151        .87933E-07    .49647E-03
  12  Prefactor     .10000E-03    36.138        .13604E-04** at limit **
  13  Prefactor     .10000E-03    17.185        .34465E-05** at limit **
  14  norm          2.3397        2.3203        .88593E-07    .30904E-03
  15  norm          .10000E-03    3.4072        .75010E-07** at limit **
  16  Prefactor     .10000E-03    16.462        .10851E-05** at limit **
  17  Prefactor     26.781        25.041       -.64409E-05    .16862E-05
  18  norm          1.9000        2.4868       -.21863E-06   -.63871E-03
  19  norm          .10000E-03    .81718        .12514E-07** at limit **
  20  Prefactor     .10000E-03    18.436        .25150E-05** at limit **
  21  norm          .10000E-03    1.3154       -.34881E-07** at limit **
  22  Prefactor     .10000E-03    24.482       -.97801E-05** at limit **
  23  Prefactor     .10000E-03    29.726       -.16270E-05** at limit **
  24  Prefactor     2.3544        2.4957       -.38773E-07    .11567E-03
  25  Prefactor     .10000E-03    16.282        .49045E-07** at limit **
  26  Normalizat    .89999        .13905        .77321E-06   -.39926E-04
  27  Prefactor     .91429        .15201       -.31077E-06    .62966E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 12.2846
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.83738
  Prefactor  = 0.0001
  Prefactor  = 3.68657
  norm       = 2.36805
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 2.33971
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 26.7806
  norm       = 1.9
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 2.35444
  Prefactor  = 0.0001
  Normalizat = 0.899986
  Prefactor  = 0.914292
 **********
 **   18 **HESSE 
 **********

 FCN=   7008.051     FROM HESSE     STATUS=OK           482 CALLS     3281 TOTAL
                     EDM=   .91E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    16.809        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    1.7922        .21492E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     12.285        12.506        .11428E-03   -1.5007    
   4  Prefactor     .10000E-03    52.639        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    9.5763        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    2.3644        .12551E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    2.2877        .12348E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          .83738        1.9066        .18478E-02   -1.5525    
   9  Prefactor     .10000E-03    15.650        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     3.6866        9.2241        .20995E-03   -1.5324    
  11  norm          2.3680        .82456        .32046E-04   -1.5400    
  12  Prefactor     .10000E-03    35.854        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    17.656        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          2.3397        2.3358        .12280E-03   -1.5402    
  15  norm          .10000E-03    3.4711        .15088E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    16.509        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     26.781        24.933        .77395E-04   -1.4673    
  18  norm          1.9000        2.4736        .14478E-03   -1.5432    
  19  norm          .10000E-03    .83895        .14777E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    18.546        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  norm          .10000E-03    1.3422        .93687E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     .10000E-03    24.318        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     .10000E-03    29.791        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     2.3544        2.5008        .13205E-03   -1.5401    
  25  Prefactor     .10000E-03    16.311        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  Normalizat    .89999        .16632        .21615E-03   -.96461    
  27  Prefactor     .91429        .18198        .23857E-03   -.95643    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 9.07137e-10
Minuit parameter uncertainties:
  1  3.37661e-06
  2  1.30865e-06
  3  12.5083
  4  0.000164271
  5  5.94704e-07
  6  4.59113e-07
  7  6.62874e-07
  8  1.90674
  9  0.000101749
  10  9.22763
  11  0.82456
  12  2.35079e-05
  13  7.15572e-06
  14  2.33588
  15  9.23099e-06
  16  8.93735e-06
  17  24.9425
  18  2.47371
  19  5.36014e-07
  20  1.40083e-05
  21  5.63421e-07
  22  1.06212e-06
  23  5.4987e-06
  24  2.50087
  25  5.77768e-07
  26  0.166416
  27  0.182096
Done.

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

Extracting fit parameters...

4FGL J2327.5-3259
   Spectrum: PowerLaw
454    Prefactor:  2.678e+01  2.494e+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.143e-01  1.821e-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.000e-01  1.664e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 3.09
Ra Dec: 351.883 -32.987
Photon Index (Fixed Index): 2.56 +/- 0.00
Photon Flux (Fixed Index): 2.15e-08 +/- 2.00e-08
Energy Flux (Fixed Index): 5.87e-06 +/- 5.46e-06

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

Saving results to:
/scratch/kocevski/912877/likelihoodResults_314236801_314496001_4FGL_J2327.5-3259_daily_bin289.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) = 7007.89641403
delta logL = 0.154988814205

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 7007.89100074
delta logL = 0.160402097878

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    24.277       1.0000         .10000E-03   10000.    
     2 'Index     '    1.9580       1.0000          .0000       10.000    
     3 'Normalizat'    .91520       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .90493       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=   7007.891     FROM MIGRAD    STATUS=CONVERGED     78 CALLS      253 TOTAL
                     EDM=   .10E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     24.270        28.715        .81299E-04   -.16823E-03
   2  Index         1.9578        .98606        .13615E-01    .70421E-04
   3  Normalizat    .91500        .16181        .21454E-03    .10937E-02
   4  Prefactor     .90519        .17966        .23963E-03    .83740E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 24.2697
  Index      = 1.95779
  Normalizat = 0.915002
  Prefactor  = 0.905193
 **********
 **   18 **HESSE 
 **********

 FCN=   7007.891     FROM HESSE     STATUS=OK            25 CALLS      278 TOTAL
                     EDM=   .11E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     24.270        29.425        .16260E-04   -1.4722    
   2  Index         1.9578        1.0104        .54461E-03   -.65410    
   3  Normalizat    .91500        .16198        .42908E-04   -.95935    
   4  Prefactor     .90519        .17983        .47926E-04   -.95960    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.05425e-09
Minuit parameter uncertainties:
  1  29.443
  2  1.0216
  3  0.162069
  4  0.179944
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/912877': 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) = 7007.89099961
delta logL = 0.160403229092

Extracting fit parameters...

4FGL J2327.5-3259
   Spectrum: PowerLaw
454    Prefactor:  2.427e+01  2.944e+01  1.000e-04  1.000e+04 ( 1.000e-13)
455        Index:  1.958e+00  1.022e+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.052e-01  1.799e-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.150e-01  1.621e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 3.41
Ra Dec: 351.883 -32.987
Photon Index (Free Index): 1.96 +/- 1.02
Photon Flux (Free Index): 1.02e-08 +/- 1.86e-08
Energy Flux (Free Index): 7.83e-06 +/- 1.20e-05

Creating a high resolution counts map...
INFO: Auto-setting vmin to -1.000e-01 [aplpy.core]
INFO: Auto-setting vmax to  1.110e+00 [aplpy.core]
Saving /scratch/kocevski/912877/cmap_HighResolution_314236801_314496001_4FGL_J2327.5-3259_daily_bin289.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='5.70e-03', comment='SUCCESS', photon_flux='2.15e-08', energy_flux2='7.83e-06', photon_flux_error='2.00e-08', dlogl='1.60e-01', energy_flux='5.87e-06', photon_flux2='1.02e-08', job_status='DONE', time_completed='2021-09-29 20:11:59.028354', photon_index_error2='1.02', photon_index2='1.96', ts='3.09', fit_tolerance='1e-08', GAL='0.91', photon_index_error='0.00', photon_flux_upper_limit='7.30e-08', energy_flux_error2='1.20e-05', EG='0.90', time_epoch_completed='1632971519.03', return_code='0', job_id='912877', GAL2='0.91', EG2='0.92', return_code2='0', energy_flux_error='5.46e-06', photon_flux_error2='1.86e-08', ts2='3.41', photon_index='2.56' WHERE bin_id='289' AND source_name='4FGL J2327.5-3259' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep 29 20:11:59 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0304>
Subject: Job 912877: <4FGL_J2327.5-3259_daily_bin289> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2327.5-3259_daily_bin289 351.883 -32.9869 314236801 314496001 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 :                                   783.00 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             315.28 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   974 sec.
    Turnaround time :                            975 sec.

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

