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


Performing analysis on: 4FGL_J2327.5-3259_daily_bin184
RA = 351.883, Dec = -32.9869
tmin = 287020801, tmax = 287280001
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='912723', job_status='RUN', time_executed='2021-09-29 19:58:09.380929', time_epoch_executed='1632970689.38' WHERE source_name='4FGL J2327.5-3259' and cadence='daily' and bin_id='184'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/912723

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/912723/ft1_4FGL_J2327.5-3259_daily_bin184.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/912723/ft2_4FGL_J2327.5-3259_daily_bin184.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/912723/ft1_4FGL_J2327.5-3259_daily_bin184.fits outfile=/scratch/kocevski/912723/ft1_filteredMKT_4FGL_J2327.5-3259_daily_bin184.fits ra=351.883 dec=-32.9869 rad=12.0 tmin=287020801.0 tmax=287280001.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 4.65
user 4.41
sys 0.21

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/912723/ft1_filtered_4FGL_J2327.5-3259_daily_bin184.fits" evtable="EVENTS" scfile=/scratch/kocevski/912723/ft2_4FGL_J2327.5-3259_daily_bin184.fits sctable="SC_DATA" outfile=/scratch/kocevski/912723/ltcube_287020801_287280001_4FGL_J2327.5-3259_daily_bin184.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/912723/ft2_4FGL_J2327.5-3259_daily_bin184.fits
.....................!
real 11.50
user 11.13
sys 0.34

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/912723/ft1_filtered_4FGL_J2327.5-3259_daily_bin184.fits evtable="EVENTS" scfile=/scratch/kocevski/912723/ft2_4FGL_J2327.5-3259_daily_bin184.fits sctable="SC_DATA" expcube=/scratch/kocevski/912723/ltcube_287020801_287280001_4FGL_J2327.5-3259_daily_bin184.fits outfile=/scratch/kocevski/912723/expmap_287020801_287280001_4FGL_J2327.5-3259_daily_bin184.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/912723/ltcube_287020801_287280001_4FGL_J2327.5-3259_daily_bin184.fits
.....................!
real 190.93
user 185.87
sys 4.71

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/912723/ft1_filtered_4FGL_J2327.5-3259_daily_bin184.fits scfile=/scratch/kocevski/912723/ft2_4FGL_J2327.5-3259_daily_bin184.fits outfile=/scratch/kocevski/912723/cmap_287020801_287280001_4FGL_J2327.5-3259_daily_bin184.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.37
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/912723/ft1_filtered_4FGL_J2327.5-3259_daily_bin184.fits scfile=/scratch/kocevski/912723/ft2_4FGL_J2327.5-3259_daily_bin184.fits outfile=/scratch/kocevski/912723/cmap_HighResolution_287020801_287280001_4FGL_J2327.5-3259_daily_bin184.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/912723/ft1_filtered_4FGL_J2327.5-3259_daily_bin184.fits evtable="EVENTS" scfile=/scratch/kocevski/912723/ft2_4FGL_J2327.5-3259_daily_bin184.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/912723/Model_4FGL_J2327.5-3259_daily_bin184.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/912723/ft1_filtered_4FGL_J2327.5-3259_daily_bin184.fits.....................!
real 47.02
user 45.75
sys 1.14

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10602E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    7.3412       1.0000         .10000E-03   10000.    
     5 'Prefactor '    22.319       1.0000         .10000E-03   10000.    
     6 'Prefactor '    9.7322       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    .44295       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10296E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    10.332       1.0000         .10000E-03   10000.    
    11 'norm      '    1.9938       1.0000         .10000E-03   10000.    
    12 'Prefactor '    23.548       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
    14 'norm      '    3.3948       1.0000         .10000E-03   10000.    
    15 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    27.066       1.0000         .10000E-03   10000.    
    17 'Prefactor '    34.118       1.0000         .10000E-03   10000.    
    18 'norm      '    14.268       1.0000         .10000E-03   10000.    
    19 'norm      '    .10015E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    23.495       1.0000         .10000E-03   10000.    
    21 'norm      '    .13463E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    26.892       1.0000         .10000E-03   10000.    
    24 'Prefactor '    1.2634       1.0000         .10000E-03   10000.    
    25 'Prefactor '    .10020E-03   1.0000         .10000E-03   10000.    
    26 'Normalizat'    .85651       1.0000         .10000E-01   10.000    
    27 'Prefactor '    .99185       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=   6120.596     FROM MIGRAD    STATUS=CONVERGED    655 CALLS     3310 TOTAL
                     EDM=   .16E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .6%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    22.749        .15995E-05** at limit **
   2  Prefactor     .10000E-03    1.5508       -.19156E-08** at limit **
   3  Prefactor     .10000E-03    10.947        .15899E-06** at limit **
   4  Prefactor     7.3412        14.343        .27147E-06   -.54636E-04
   5  Prefactor     22.319        29.411        .11221E-06   -.12344E-05
   6  Prefactor     9.7331        9.8899        .41246E-07   -.16579E-04
   7  Prefactor     .10000E-03    3.1983       -.79162E-07** at limit **
   8  norm          .44177        2.6072       -.33130E-06   -.22897E-03
   9  Prefactor     .10000E-03    15.804        .56768E-05** at limit **
  10  Prefactor     10.324        10.052       -.12940E-06   -.24321E-03
  11  norm          1.9945        .82589        .31588E-07   -.90122E-03
  12  Prefactor     23.544        37.497       -.44362E-05   -.18851E-05
  13  Prefactor     .10000E-03    2.3143       -.69742E-07** at limit **
  14  norm          3.3949        3.7272       -.70375E-06   -.16974E-05
  15  norm          .10000E-03    5.1182        .91238E-07** at limit **
  16  Prefactor     27.072        41.411        .73279E-05    .80610E-04
  17  Prefactor     34.120        36.229        .13697E-05    .22614E-06
  18  norm          14.270        6.5599        .53130E-06    .36810E-03
  19  norm          .10000E-03    1.8965       -.13859E-06** at limit **
  20  Prefactor     23.498        29.897        .22593E-05    .43086E-05
  21  norm          .10000E-03    2.0839       -.76066E-06** at limit **
  22  Prefactor     .10000E-03    94.400       -.20053E-05** at limit **
  23  Prefactor     26.892        26.413        .15657E-06    .86747E-05
  24  Prefactor     1.2621        .54783        .31271E-07   -.14573E-02
  25  Prefactor     .10000E-03    16.918       -.70014E-05** at limit **
  26  Normalizat    .85638        .16964       -.12726E-05    .12197E-03
  27  Prefactor     .99204        .17747        .15786E-06    .14094E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 7.34123
  Prefactor  = 22.3191
  Prefactor  = 9.73309
  Prefactor  = 0.0001
  norm       = 0.441773
  Prefactor  = 0.0001
  Prefactor  = 10.3241
  norm       = 1.99453
  Prefactor  = 23.5443
  Prefactor  = 0.0001
  norm       = 3.3949
  norm       = 0.0001
  Prefactor  = 27.0721
  Prefactor  = 34.1197
  norm       = 14.2701
  norm       = 0.0001
  Prefactor  = 23.4983
  norm       = 0.000100001
  Prefactor  = 0.0001
  Prefactor  = 26.8919
  Prefactor  = 1.26215
  Prefactor  = 0.0001
  Normalizat = 0.856376
  Prefactor  = 0.992039
 **********
 **   18 **HESSE 
 **********

 FCN=   6120.596     FROM HESSE     STATUS=OK           496 CALLS     3806 TOTAL
                     EDM=   .26E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    22.767        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    2.7680        .18865E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    10.985        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     7.3412        14.369        .74015E-03   -1.5166    
   5  Prefactor     22.319        29.425        .84784E-04   -1.4763    
   6  Prefactor     9.7331        9.9040        .12845E-03   -1.5084    
   7  Prefactor     .10000E-03    3.2112        .13663E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          .44177        2.5030        .23825E-03   -1.5575    
   9  Prefactor     .10000E-03    15.846        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     10.324        10.661        .12465E-03   -1.5065    
  11  norm          1.9945        .87948        .34975E-04   -1.5426    
  12  Prefactor     23.544        37.483        .82545E-04   -1.4737    
  13  Prefactor     .10000E-03    2.3161        .11619E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          3.3949        3.7300        .15196E-03   -1.5339    
  15  norm          .10000E-03    5.1589        .17278E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     27.072        41.551        .77004E-04   -1.4667    
  17  Prefactor     34.120        36.265        .68605E-04   -1.4539    
  18  norm          14.270        6.5645        .10485E-03   -1.4952    
  19  norm          .10000E-03    1.9357        .20990E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     23.498        29.958        .82638E-04   -1.4738    
  21  norm          .10000E-03    3.7997        .21782E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     .10000E-03    94.652        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     26.892        26.421        .77252E-04   -1.4670    
  24  Prefactor     1.2621        3.6365        .12229E-02   -1.5483    
  25  Prefactor     .10000E-03    16.821        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  Normalizat    .85638        .20223        .23873E-03   -.98010    
  27  Prefactor     .99204        .21079        .24688E-03   -.92995    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.62782e-09
Minuit parameter uncertainties:
  1  4.02695e-06
  2  2.97329e-05
  3  8.20739e-06
  4  14.3759
  5  29.4438
  6  9.90562
  7  7.73184e-07
  8  2.103
  9  8.5767e-06
  10  10.6625
  11  0.879489
  12  37.5205
  13  1.0624e-06
  14  3.73024
  15  3.90404e-06
  16  41.5953
  17  36.2884
  18  6.56487
  19  6.34206e-06
  20  29.977
  21  0.000112199
  22  1.2429e-05
  23  26.4328
  24  3.63709
  25  1.35859e-05
  26  0.202404
  27  0.210963
Done.

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

Extracting fit parameters...

4FGL J2327.5-3259
   Spectrum: PowerLaw
454    Prefactor:  3.412e+01  3.629e+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.920e-01  2.110e-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.564e-01  2.024e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 1.63
Ra Dec: 351.883 -32.987
Photon Index (Fixed Index): 2.56 +/- 0.00
Photon Flux (Fixed Index): 2.73e-08 +/- 2.91e-08
Energy Flux (Fixed Index): 7.47e-06 +/- 7.95e-06

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

Saving results to:
/scratch/kocevski/912723/likelihoodResults_287020801_287280001_4FGL_J2327.5-3259_daily_bin184.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) = 6120.59185549
delta logL = 0.00407520957197

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6120.59121431
delta logL = 0.00471639408988

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    35.251       1.0000         .10000E-03   10000.    
     2 'Index     '    2.4705       1.0000          .0000       10.000    
     3 'Normalizat'    .85920       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .99007       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=   6120.591     FROM MIGRAD    STATUS=CONVERGED     83 CALLS      257 TOTAL
                     EDM=   .11E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     35.252        39.404        .67497E-04   -.72257E-04
   2  Index         2.4706        .89004        .11123E-01   -.48693E-04
   3  Normalizat    .85897        .18938        .23840E-03    .44254E-04
   4  Prefactor     .99031        .20784        .24706E-03    .14955E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 35.2516
  Index      = 2.4706
  Normalizat = 0.858973
  Prefactor  = 0.990308
 **********
 **   18 **HESSE 
 **********

 FCN=   6120.591     FROM HESSE     STATUS=OK            25 CALLS      282 TOTAL
                     EDM=   .13E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     35.252        38.891        .13499E-04   -1.4520    
   2  Index         2.4706        .87783        .44494E-03   -.53040    
   3  Normalizat    .85897        .18952        .95360E-05   -.97917    
   4  Prefactor     .99031        .20802        .98825E-05   -.93053    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.32216e-10
Minuit parameter uncertainties:
  1  38.9192
  2  0.884002
  3  0.189666
  4  0.208187
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/912723': 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) = 6120.59121357
delta logL = 0.00471712847138

Extracting fit parameters...

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

GAL_V02
   Spectrum: PowerLaw
605    Prefactor:  9.903e-01  2.082e-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.590e-01  1.897e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 1.63
Ra Dec: 351.883 -32.987
Photon Index (Free Index): 2.47 +/- 0.88
Photon Flux (Free Index): 2.54e-08 +/- 3.40e-08
Energy Flux (Free Index): 7.63e-06 +/- 8.36e-06

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/912723/cmap_HighResolution_287020801_287280001_4FGL_J2327.5-3259_daily_bin184.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='7.62e-03', comment='SUCCESS', photon_flux='2.73e-08', energy_flux2='7.63e-06', photon_flux_error='2.91e-08', dlogl='4.72e-03', energy_flux='7.47e-06', photon_flux2='2.54e-08', job_status='DONE', time_completed='2021-09-29 20:11:05.096786', photon_index_error2='0.88', photon_index2='2.47', ts='1.63', fit_tolerance='1e-08', GAL='0.99', photon_index_error='0.00', photon_flux_upper_limit='9.76e-08', energy_flux_error2='8.36e-06', EG='0.86', time_epoch_completed='1632971465.1', return_code='0', job_id='912723', GAL2='0.99', EG2='0.86', return_code2='0', energy_flux_error='7.95e-06', photon_flux_error2='3.40e-08', ts2='1.63', photon_index='2.56' WHERE bin_id='184' AND source_name='4FGL J2327.5-3259' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep 29 20:11:05 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0209>
Subject: Job 912723: <4FGL_J2327.5-3259_daily_bin184> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2327.5-3259_daily_bin184 351.883 -32.9869 287020801 287280001 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 :                                   773.00 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             311.00 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   931 sec.
    Turnaround time :                            933 sec.

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

