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


Performing analysis on: 4FGL_J2327.5-3259_daily_bin381
RA = 351.883, Dec = -32.9869
tmin = 338083201, tmax = 338342401
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='914094', job_status='RUN', time_executed='2021-09-29 20:03:35.184941', time_epoch_executed='1632971015.18' WHERE source_name='4FGL J2327.5-3259' and cadence='daily' and bin_id='381'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/914094

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

Retrieving the FT1 file...

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

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

Retrieving 52 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/914094/ft1_4FGL_J2327.5-3259_daily_bin381.fits


Retrieving the FT1 file...

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

Retrieving 52 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/914094/ft2_4FGL_J2327.5-3259_daily_bin381.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/914094/ft1_4FGL_J2327.5-3259_daily_bin381.fits outfile=/scratch/kocevski/914094/ft1_filteredMKT_4FGL_J2327.5-3259_daily_bin381.fits ra=351.883 dec=-32.9869 rad=12.0 tmin=338083201.0 tmax=338342401.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.71
user 6.41
sys 0.26

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/914094/ft1_filtered_4FGL_J2327.5-3259_daily_bin381.fits" evtable="EVENTS" scfile=/scratch/kocevski/914094/ft2_4FGL_J2327.5-3259_daily_bin381.fits sctable="SC_DATA" outfile=/scratch/kocevski/914094/ltcube_338083201_338342401_4FGL_J2327.5-3259_daily_bin381.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/914094/ft2_4FGL_J2327.5-3259_daily_bin381.fits
.....................!
real 11.42
user 11.06
sys 0.33

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/914094/ft1_filtered_4FGL_J2327.5-3259_daily_bin381.fits evtable="EVENTS" scfile=/scratch/kocevski/914094/ft2_4FGL_J2327.5-3259_daily_bin381.fits sctable="SC_DATA" expcube=/scratch/kocevski/914094/ltcube_338083201_338342401_4FGL_J2327.5-3259_daily_bin381.fits outfile=/scratch/kocevski/914094/expmap_338083201_338342401_4FGL_J2327.5-3259_daily_bin381.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/914094/ltcube_338083201_338342401_4FGL_J2327.5-3259_daily_bin381.fits
.....................!
real 190.76
user 185.36
sys 5.01

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/914094/ft1_filtered_4FGL_J2327.5-3259_daily_bin381.fits scfile=/scratch/kocevski/914094/ft2_4FGL_J2327.5-3259_daily_bin381.fits outfile=/scratch/kocevski/914094/cmap_338083201_338342401_4FGL_J2327.5-3259_daily_bin381.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.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/914094/ft1_filtered_4FGL_J2327.5-3259_daily_bin381.fits scfile=/scratch/kocevski/914094/ft2_4FGL_J2327.5-3259_daily_bin381.fits outfile=/scratch/kocevski/914094/cmap_HighResolution_338083201_338342401_4FGL_J2327.5-3259_daily_bin381.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.57
user 0.38
sys 0.17

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    10.973       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10060E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    29.223       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10247E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10321E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    2.6229       1.0000         .10000E-03   10000.    
     8 'norm      '    3.3106       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    8.3577       1.0000         .10000E-03   10000.    
    11 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10010E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    5.9897       1.0000         .10000E-03   10000.    
    14 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    8.4423       1.0000         .10000E-03   10000.    
    16 'Prefactor '    94.388       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10017E-03   1.0000         .10000E-03   10000.    
    18 'norm      '    .79332       1.0000         .10000E-03   10000.    
    19 'norm      '    .10186E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    43.213       1.0000         .10000E-03   10000.    
    21 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    29.880       1.0000         .10000E-03   10000.    
    23 'Prefactor '    91.848       1.0000         .10000E-03   10000.    
    24 'Prefactor '    6.4508       1.0000         .10000E-03   10000.    
    25 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    26 'Normalizat'    .84499       1.0000         .10000E-01   10.000    
    27 'Prefactor '    .93395       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=   5405.620     FROM MIGRAD    STATUS=CONVERGED    633 CALLS     3310 TOTAL
                     EDM=   .16E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.3%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    21.168       -.40445E-07** at limit **
   2  Prefactor     10.972        5.2643        .24709E-06    .91671E-04
   3  Prefactor     .10000E-03    30.968        .14940E-05** at limit **
   4  Prefactor     29.220        17.177       -.23068E-07   -.40504E-05
   5  Prefactor     .10000E-03    44.128       -.80609E-06** at limit **
   6  Prefactor     .10000E-03    14.746        .22664E-06** at limit **
   7  Prefactor     2.6226        6.2177        .57150E-06   -.62397E-04
   8  norm          3.3109        3.5320        .14796E-05   -.41242E-03
   9  Prefactor     .10000E-03    6.8242       -.14644E-06** at limit **
  10  Prefactor     8.3550        9.5418       -.53520E-06    .73489E-04
  11  norm          .10000E-03    .21431       -.91945E-07** at limit **
  12  Prefactor     .10000E-03    21.637       -.22535E-07** at limit **
  13  Prefactor     5.9913        10.862        .46031E-06    .43740E-04
  14  norm          .10000E-03    2.5141       -.21737E-06** at limit **
  15  norm          8.4423        6.7596        .71000E-08   -.41474E-04
  16  Prefactor     94.391        44.397       -.19663E-05   -.14035E-03
  17  Prefactor     .10000E-03    22.462       -.16785E-07** at limit **
  18  norm          .79207        3.8221        .26337E-05    .51397E-04
  19  norm          .10000E-03    1.7230       -.15858E-07** at limit **
  20  Prefactor     43.214        30.412        .96948E-07   -.12820E-04
  21  norm          .10000E-03    3.3745        .18033E-06** at limit **
  22  Prefactor     29.806        85.331       -.16091E-05   -.75138E-04
  23  Prefactor     91.844        56.729        .27485E-07   -.20727E-04
  24  Prefactor     6.4501        5.3874        .14193E-06    .11749E-04
  25  Prefactor     .10000E-03    12.425        .72331E-07** at limit **
  26  Normalizat    .84519        .18010       -.16939E-06   -.75378E-04
  27  Prefactor     .93368        .18887       -.41214E-06   -.45726E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 10.972
  Prefactor  = 0.0001
  Prefactor  = 29.2198
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 2.62257
  norm       = 3.31093
  Prefactor  = 0.0001
  Prefactor  = 8.355
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 5.99131
  norm       = 0.0001
  norm       = 8.44225
  Prefactor  = 94.3911
  Prefactor  = 0.0001
  norm       = 0.792074
  norm       = 0.0001
  Prefactor  = 43.2135
  norm       = 0.0001
  Prefactor  = 29.806
  Prefactor  = 91.8442
  Prefactor  = 6.45007
  Prefactor  = 0.0001
  Normalizat = 0.845193
  Prefactor  = 0.933679
 **********
 **   18 **HESSE 
 **********

 FCN=   5405.620     FROM HESSE     STATUS=OK           486 CALLS     3796 TOTAL
                     EDM=   .30E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    21.206        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     10.972        5.2642        .11074E-03   -1.5045    
   3  Prefactor     .10000E-03    31.023        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     29.220        17.178        .74114E-04   -1.4626    
   5  Prefactor     .10000E-03    45.746        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    14.936        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     2.6226        6.1986        .25182E-03   -1.5384    
   8  norm          3.3109        3.4551        .64560E-03   -1.5344    
   9  Prefactor     .10000E-03    6.8330        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     8.3550        9.2842        .13867E-03   -1.5130    
  11  norm          .10000E-03    .23231        .62744E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    21.669        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     5.9913        10.714        .16407E-03   -1.5218    
  14  norm          .10000E-03    2.5322        .11387E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          8.4423        6.7591        .13797E-03   -1.5127    
  16  Prefactor     94.391        43.555        .41368E-04   -1.3762    
  17  Prefactor     .10000E-03    22.505        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          .79207        3.6462        .24234E-03   -1.5530    
  19  norm          .10000E-03    1.7753        .18833E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     43.214        30.416        .60985E-04   -1.4392    
  21  norm          .10000E-03    3.4346        .13152E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     29.806        85.952        .73296E-04   -1.4616    
  23  Prefactor     91.844        56.746        .41931E-04   -1.3788    
  24  Prefactor     6.4501        5.3894        .14929E-03   -1.5200    
  25  Prefactor     .10000E-03    12.428        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  Normalizat    .84519        .21401        .23852E-03   -.98414    
  27  Prefactor     .93368        .22336        .24980E-03   -.94974    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.9657e-10
Minuit parameter uncertainties:
  1  4.66628e-05
  2  5.26444
  3  0.000140831
  4  17.1809
  5  0.000135856
  6  3.26906e-06
  7  6.2001
  8  3.4553
  9  1.24745e-05
  10  9.28576
  11  7.59906e-07
  12  3.54668e-05
  13  10.7172
  14  1.71841e-05
  15  6.75969
  16  43.5702
  17  8.15043e-06
  18  3.39901
  19  1.77085e-06
  20  30.4267
  21  3.88618e-06
  22  86.312
  23  56.7791
  24  5.38985
  25  1.84354e-06
  26  0.214222
  27  0.223579
Done.

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

Extracting fit parameters...

4FGL J2327.5-3259
   Spectrum: PowerLaw
454    Prefactor:  1.000e-04  8.150e-06  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.337e-01  2.236e-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.452e-01  2.142e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/914094/likelihoodResults_338083201_338342401_4FGL_J2327.5-3259_daily_bin381.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): 102
logL (Free Index) = 5405.62035249
delta logL = -0.000211687848605

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5405.62014353
delta logL = -2.72983015748e-06

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    3.4623       1.0000          .0000       10.000    
     3 'Normalizat'    .84519       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .93368       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=   5405.620     FROM MIGRAD    STATUS=CONVERGED     50 CALLS      232 TOTAL
                     EDM=   .10E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    1009.7        .90712E-02** at limit **
   2  Index         3.4409        7.9278        .50000        .20681E-04
   3  Normalizat    .84519        .48117E-01    .44197E-01    .10472E-03
   4  Prefactor     .93368        .52783E-01    .45433E-01    .58583E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100001
  Index      = 3.44095
  Normalizat = 0.845194
  Prefactor  = 0.933679
 **********
 **   18 **HESSE 
 **********

 FCN=   5405.620     FROM HESSE     STATUS=OK            33 CALLS      265 TOTAL
                     EDM=   .59E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    10.290        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         3.4409        6.6415        .50000       -.31710    
   3  Normalizat    .84519        .19818        .23851E-03   -.98414    
   4  Prefactor     .93368        .21838        .24980E-03   -.94974    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.85754e-10
Minuit parameter uncertainties:
  1  0.000222728
  2  4.75906
  3  0.198349
  4  0.218587
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/914094': 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) = 5405.62014343
delta logL = -2.63302354142e-06

Extracting fit parameters...

4FGL J2327.5-3259
   Spectrum: PowerLaw
454    Prefactor:  1.000e-04  2.227e-04  1.000e-04  1.000e+04 ( 1.000e-13)
455        Index:  3.441e+00  4.759e+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.337e-01  2.186e-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.452e-01  1.983e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
Ra Dec: 351.883 -32.987

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/914094/cmap_HighResolution_338083201_338342401_4FGL_J2327.5-3259_daily_bin381.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='4.67e-03', job_status='DONE', photon_flux_upper_limit='5.98e-08', time_completed='2021-09-29 20:15:48.251004', job_id='914094', GAL2='0.93', fit_tolerance='1e-08', EG2='0.85', EG='0.85', time_epoch_completed='1632971748.25', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.93', dlogl='-2.63e-06', ts2='-0.00', photon_index_error='0.00', photon_index='2.56' WHERE bin_id='381' AND source_name='4FGL J2327.5-3259' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep 29 20:15:48 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0263>
Subject: Job 914094: <4FGL_J2327.5-3259_daily_bin381> in cluster <slac> Done

Job <4FGL_J2327.5-3259_daily_bin381> was submitted from host <rhel6-64h> by user <kocevski> in cluster <slac> at Wed Sep 29 20:00:25 2021
Job was executed on host(s) <bullet0263>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Sep 29 20:00: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 20:00:28 2021
Terminated at Wed Sep 29 20:15:48 2021
Results reported at Wed Sep 29 20:15:48 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2327.5-3259_daily_bin381 351.883 -32.9869 338083201 338342401 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 :                                   730.00 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             267.68 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   920 sec.
    Turnaround time :                            923 sec.

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

