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


Performing analysis on: 4FGL_J2327.5-3259_daily_bin897
RA = 351.883, Dec = -32.9869
tmin = 471830401, tmax = 472089601
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='915993', job_status='RUN', time_executed='2021-09-29 20:09:51.097346', time_epoch_executed='1632971391.1' WHERE source_name='4FGL J2327.5-3259' and cadence='daily' and bin_id='897'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/915993

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/915993/ft1_4FGL_J2327.5-3259_daily_bin897.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/915993/ft2_4FGL_J2327.5-3259_daily_bin897.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/915993/ft1_4FGL_J2327.5-3259_daily_bin897.fits outfile=/scratch/kocevski/915993/ft1_filteredMKT_4FGL_J2327.5-3259_daily_bin897.fits ra=351.883 dec=-32.9869 rad=12.0 tmin=471830401.0 tmax=472089601.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.59
user 3.35
sys 0.21

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/915993/ft1_filtered_4FGL_J2327.5-3259_daily_bin897.fits" evtable="EVENTS" scfile=/scratch/kocevski/915993/ft2_4FGL_J2327.5-3259_daily_bin897.fits sctable="SC_DATA" outfile=/scratch/kocevski/915993/ltcube_471830401_472089601_4FGL_J2327.5-3259_daily_bin897.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/915993/ft2_4FGL_J2327.5-3259_daily_bin897.fits
.....................!
real 11.71
user 11.38
sys 0.30

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/915993/ft1_filtered_4FGL_J2327.5-3259_daily_bin897.fits evtable="EVENTS" scfile=/scratch/kocevski/915993/ft2_4FGL_J2327.5-3259_daily_bin897.fits sctable="SC_DATA" expcube=/scratch/kocevski/915993/ltcube_471830401_472089601_4FGL_J2327.5-3259_daily_bin897.fits outfile=/scratch/kocevski/915993/expmap_471830401_472089601_4FGL_J2327.5-3259_daily_bin897.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/915993/ltcube_471830401_472089601_4FGL_J2327.5-3259_daily_bin897.fits
.....................!
real 191.08
user 185.90
sys 4.83

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

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

This is gtbin version HEAD
real 0.53
user 0.37
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/915993/ft1_filtered_4FGL_J2327.5-3259_daily_bin897.fits scfile=/scratch/kocevski/915993/ft2_4FGL_J2327.5-3259_daily_bin897.fits outfile=/scratch/kocevski/915993/cmap_HighResolution_471830401_472089601_4FGL_J2327.5-3259_daily_bin897.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.37
sys 0.16

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/915993/ft1_filtered_4FGL_J2327.5-3259_daily_bin897.fits evtable="EVENTS" scfile=/scratch/kocevski/915993/ft2_4FGL_J2327.5-3259_daily_bin897.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/915993/Model_4FGL_J2327.5-3259_daily_bin897.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/915993/ft1_filtered_4FGL_J2327.5-3259_daily_bin897.fits.....................!
real 35.36
user 34.03
sys 1.16

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    25.211       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .27668E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    1.8635       1.0000         .10000E-03   10000.    
     4 'Prefactor '    42.110       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10140E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    22.950       1.0000         .10000E-03   10000.    
     7 'Prefactor '    9.5000       1.0000         .10000E-03   10000.    
     8 'norm      '    .10024E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    39.496       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10101E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    .10012E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    14 'norm      '    5.3730       1.0000         .10000E-03   10000.    
    15 'norm      '    2.9189       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    23.575       1.0000         .10000E-03   10000.    
    18 'norm      '    1.1513       1.0000         .10000E-03   10000.    
    19 'norm      '    .10186E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    32.142       1.0000         .10000E-03   10000.    
    21 'norm      '    1.5036       1.0000         .10000E-03   10000.    
    22 'Prefactor '    150.90       1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
    24 'Prefactor '    .76499       1.0000         .10000E-03   10000.    
    25 'Prefactor '    .12314E-01   1.0000         .10000E-03   10000.    
    26 'Normalizat'    .99307       1.0000         .10000E-01   10.000    
    27 'Prefactor '    .81800       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=   4024.468     FROM MIGRAD    STATUS=CONVERGED   1170 CALLS     4336 TOTAL
                     EDM=   .67E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     25.209        34.498        .79781E-04    .27730E-04
   2  Prefactor     .10007E-03    18.439        .21777E-02** at limit **
   3  Prefactor     1.8422        87.865        .30521E-03    .72299E-04
   4  Prefactor     42.114        30.389        .61775E-04   -.98108E-04
   5  Prefactor     .10000E-03    38.214        .18142E-02** at limit **
   6  Prefactor     22.953        16.552        .83613E-04   -.34060E-04
   7  Prefactor     9.4997        7.4162        .13002E-03   -.46342E-05
   8  norm          .10000E-03    3.4135        .11377E-02** at limit **
   9  Prefactor     39.504        19.107        .63779E-04   -.27058E-03
  10  Prefactor     .10000E-03    18.730        .36285E-03** at limit **
  11  norm          .10000E-03    .40239        .69133E-03** at limit **
  12  Prefactor     .10000E-03    15.309        .18142E-02** at limit **
  13  Prefactor     .10000E-03    4.4885        .13114E-02** at limit **
  14  norm          5.3733        5.6601        .14337E-03    .53683E-04
  15  norm          2.9190        9.4599        .23779E-03   -.95357E-04
  16  Prefactor     .10000E-03    18.079        .18142E-02** at limit **
  17  Prefactor     23.577        64.942        .82498E-04    .21360E-05
  18  norm          1.1510        4.4803        .23080E-03   -.28777E-03
  19  norm          .10000E-03    4.6468        .18706E-02** at limit **
  20  Prefactor     32.142        36.642        .70677E-04    .58696E-04
  21  norm          1.5036        3.7037        .17924E-03   -.72307E-04
  22  Prefactor     150.93        122.24        .16405E-03   -.13399E-03
  23  Prefactor     .10000E-03    26.220        .18142E-02** at limit **
  24  Prefactor     .76295        31.795        .27148E-02   -.19478E-03
  25  Prefactor     .10000E-03    99.447        .14258    ** at limit **
  26  Normalizat    .99279        .26395        .22797E-03    .37360E-03
  27  Prefactor     .81838        .25750        .26408E-03    .58095E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 25.2093
  Prefactor  = 0.000100069
  Prefactor  = 1.84224
  Prefactor  = 42.1144
  Prefactor  = 0.000100002
  Prefactor  = 22.9534
  Prefactor  = 9.49967
  norm       = 0.0001
  Prefactor  = 39.5042
  Prefactor  = 0.000100002
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 5.37326
  norm       = 2.91898
  Prefactor  = 0.0001
  Prefactor  = 23.5766
  norm       = 1.15096
  norm       = 0.0001
  Prefactor  = 32.142
  norm       = 1.50361
  Prefactor  = 150.934
  Prefactor  = 0.000100001
  Prefactor  = 0.762951
  Prefactor  = 0.000100002
  Normalizat = 0.992785
  Prefactor  = 0.818377
 **********
 **   18 **HESSE 
 **********

 FCN=   4024.468     FROM HESSE     STATUS=OK           472 CALLS     4808 TOTAL
                     EDM=   .70E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     25.209        34.498        .15956E-04   -1.4703    
   2  Prefactor     .10007E-03    18.491        .43554E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     1.8422        87.668        .12208E-04   -1.5437    
   4  Prefactor     42.114        30.385        .12355E-04   -1.4409    
   5  Prefactor     .10000E-03    38.223        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     22.953        16.545        .33445E-05   -1.4749    
   7  Prefactor     9.4997        7.4159        .52008E-05   -1.5091    
   8  norm          .10000E-03    3.4139        .22753E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     39.504        19.101        .12756E-04   -1.4450    
  10  Prefactor     .10000E-03    18.731        .72569E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          .10000E-03    .40250        .13827E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    15.309        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    4.4886        .26228E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          5.3733        5.6584        .57348E-05   -1.5244    
  15  norm          2.9190        9.4576        .95116E-05   -1.5366    
  16  Prefactor     .10000E-03    18.079        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     23.577        64.913        .32999E-05   -1.4736    
  18  norm          1.1510        4.4756        .92318E-05   -1.5493    
  19  norm          .10000E-03    4.6655        .37411E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     32.142        36.633        .14135E-04   -1.4573    
  21  norm          1.5036        3.7016        .71696E-05   -1.5463    
  22  Prefactor     150.93        122.23        .32811E-04   -1.3245    
  23  Prefactor     .10000E-03    26.221        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     .76295        30.329        .10859E-03   -1.5533    
  25  Prefactor     .10000E-03    102.05        .13757       -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  Normalizat    .99279        .26341        .45593E-04   -.93273    
  27  Prefactor     .81838        .25767        .10563E-04   -.99054    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 6.98029e-09
Minuit parameter uncertainties:
  1  34.5248
  2  0.00226053
  3  25.4559
  4  30.3963
  5  0.000614246
  6  16.5484
  7  7.41664
  8  4.16621e-05
  9  19.104
  10  0.000370551
  11  1.66209e-05
  12  2.40126e-05
  13  1.04872e-05
  14  5.65895
  15  9.46247
  16  3.85664e-05
  17  65.1082
  18  4.47695
  19  9.39075e-06
  20  36.6588
  21  3.70216
  22  122.432
  23  0.000234678
  24  9.62529
  25  0.00101185
  26  0.263759
  27  0.258051
Done.

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

Extracting fit parameters...

4FGL J2327.5-3259
   Spectrum: PowerLaw
454    Prefactor:  2.358e+01  6.511e+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:  8.184e-01  2.581e-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.928e-01  2.638e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/915993/likelihoodResults_471830401_472089601_4FGL_J2327.5-3259_daily_bin897.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) = 4024.37123357
delta logL = 0.0969126443847

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 4024.35915454
delta logL = 0.108991673078

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    16.941       1.0000         .10000E-03   10000.    
     2 'Index     '    3.3118       1.0000          .0000       10.000    
     3 'Normalizat'    .96750       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .83559       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=   4024.359     FROM MIGRAD    STATUS=CONVERGED     91 CALLS      273 TOTAL
                     EDM=   .88E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     16.939        59.194        .97309E-04   -.65425E-04
   2  Index         3.3110        2.1416        .92065E-02   -.28395E-04
   3  Normalizat    .96802        .24869        .23056E-03   -.18949E-03
   4  Prefactor     .83507        .25766        .26168E-03   -.10952E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 16.9387
  Index      = 3.31103
  Normalizat = 0.968019
  Prefactor  = 0.835068
 **********
 **   18 **HESSE 
 **********

 FCN=   4024.359     FROM HESSE     STATUS=OK            25 CALLS      298 TOTAL
                     EDM=   .12E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     16.939        47.354        .38924E-05   -1.4885    
   2  Index         3.3110        1.7303        .36826E-03   -.34457    
   3  Normalizat    .96802        .24907        .46112E-04   -.94110    
   4  Prefactor     .83507        .25759        .10467E-04   -.98448    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.15472e-10
Minuit parameter uncertainties:
  1  47.4595
  2  1.77192
  3  0.249372
  4  0.257962
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/915993': 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) = 4024.35915226
delta logL = 0.108993950227

Extracting fit parameters...

4FGL J2327.5-3259
   Spectrum: PowerLaw
454    Prefactor:  1.694e+01  4.746e+01  1.000e-04  1.000e+04 ( 1.000e-13)
455        Index:  3.311e+00  1.772e+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:  8.351e-01  2.580e-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.680e-01  2.494e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 0.16
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/915993/cmap_HighResolution_471830401_472089601_4FGL_J2327.5-3259_daily_bin897.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.05e-02', job_status='DONE', photon_flux_upper_limit='1.35e-07', time_completed='2021-09-29 20:20:53.178388', job_id='915993', GAL2='0.84', fit_tolerance='1e-08', EG2='0.97', EG='0.99', time_epoch_completed='1632972053.18', return_code2='0', ts='0.16', comment='SUCCESS', return_code='0', GAL='0.82', dlogl='1.09e-01', ts2='0.39', photon_index_error='0.00', photon_index='2.56' WHERE bin_id='897' AND source_name='4FGL J2327.5-3259' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep 29 20:20:53 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0276>
Subject: Job 915993: <4FGL_J2327.5-3259_daily_bin897> in cluster <slac> Done

Job <4FGL_J2327.5-3259_daily_bin897> was submitted from host <rhel6-64p> by user <kocevski> in cluster <slac> at Wed Sep 29 20:05:59 2021
Job was executed on host(s) <bullet0276>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Sep 29 20:06:01 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:06:01 2021
Terminated at Wed Sep 29 20:20:53 2021
Results reported at Wed Sep 29 20:20:53 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2327.5-3259_daily_bin897 351.883 -32.9869 471830401 472089601 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 :                                   660.34 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             228.03 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   892 sec.
    Turnaround time :                            894 sec.

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

