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


Performing analysis on: 4FGL_J2327.5-3259_daily_bin246
RA = 351.883, Dec = -32.9869
tmin = 303091201, tmax = 303350401
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='912815', job_status='RUN', time_executed='2021-09-29 19:59:25.480068', time_epoch_executed='1632970765.48' WHERE source_name='4FGL J2327.5-3259' and cadence='daily' and bin_id='246'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/912815

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/912815/ft1_4FGL_J2327.5-3259_daily_bin246.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/912815/ft2_4FGL_J2327.5-3259_daily_bin246.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/912815/ft1_4FGL_J2327.5-3259_daily_bin246.fits outfile=/scratch/kocevski/912815/ft1_filteredMKT_4FGL_J2327.5-3259_daily_bin246.fits ra=351.883 dec=-32.9869 rad=12.0 tmin=303091201.0 tmax=303350401.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.49
user 3.26
sys 0.21

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/912815/ft1_filtered_4FGL_J2327.5-3259_daily_bin246.fits" evtable="EVENTS" scfile=/scratch/kocevski/912815/ft2_4FGL_J2327.5-3259_daily_bin246.fits sctable="SC_DATA" outfile=/scratch/kocevski/912815/ltcube_303091201_303350401_4FGL_J2327.5-3259_daily_bin246.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/912815/ft2_4FGL_J2327.5-3259_daily_bin246.fits
.....................!
real 13.40
user 13.03
sys 0.33

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/912815/ft1_filtered_4FGL_J2327.5-3259_daily_bin246.fits evtable="EVENTS" scfile=/scratch/kocevski/912815/ft2_4FGL_J2327.5-3259_daily_bin246.fits sctable="SC_DATA" expcube=/scratch/kocevski/912815/ltcube_303091201_303350401_4FGL_J2327.5-3259_daily_bin246.fits outfile=/scratch/kocevski/912815/expmap_303091201_303350401_4FGL_J2327.5-3259_daily_bin246.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/912815/ltcube_303091201_303350401_4FGL_J2327.5-3259_daily_bin246.fits
.....................!
real 190.79
user 185.18
sys 5.21

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/912815/ft1_filtered_4FGL_J2327.5-3259_daily_bin246.fits scfile=/scratch/kocevski/912815/ft2_4FGL_J2327.5-3259_daily_bin246.fits outfile=/scratch/kocevski/912815/cmap_303091201_303350401_4FGL_J2327.5-3259_daily_bin246.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.36
sys 0.15

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

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/912815/ft1_filtered_4FGL_J2327.5-3259_daily_bin246.fits evtable="EVENTS" scfile=/scratch/kocevski/912815/ft2_4FGL_J2327.5-3259_daily_bin246.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/912815/Model_4FGL_J2327.5-3259_daily_bin246.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/912815/ft1_filtered_4FGL_J2327.5-3259_daily_bin246.fits.....................!
real 34.90
user 33.65
sys 1.18

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    30.116       1.0000         .10000E-03   10000.    
     2 'Prefactor '    5.6138       1.0000         .10000E-03   10000.    
     3 'Prefactor '    6.1545       1.0000         .10000E-03   10000.    
     4 'Prefactor '    45.055       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10112E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10009E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    21.812       1.0000         .10000E-03   10000.    
     8 'norm      '    14.031       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10032E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    9.4387       1.0000         .10000E-03   10000.    
    11 'norm      '    .10159E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10151E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10022E-03   1.0000         .10000E-03   10000.    
    14 'norm      '    8.9463       1.0000         .10000E-03   10000.    
    15 'norm      '    5.9508       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10123E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    7.4902       1.0000         .10000E-03   10000.    
    18 'norm      '    .10108E-03   1.0000         .10000E-03   10000.    
    19 'norm      '    .10098E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    49.170       1.0000         .10000E-03   10000.    
    21 'norm      '    24.073       1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10180E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    24 'Prefactor '    8.3355       1.0000         .10000E-03   10000.    
    25 'Prefactor '    .10020E-03   1.0000         .10000E-03   10000.    
    26 'Normalizat'    .95556       1.0000         .10000E-01   10.000    
    27 'Prefactor '    .79475       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=   3970.567     FROM MIGRAD    STATUS=CONVERGED    641 CALLS     3265 TOTAL
                     EDM=   .39E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .2%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     30.113        43.205       -.24198E-05    .18927E-05
   2  Prefactor     5.6104        6.3487        .20369E-05   -.38986E-04
   3  Prefactor     6.1561        19.632        .39311E-06   -.16389E-04
   4  Prefactor     45.055        33.117       -.83716E-06   -.24564E-04
   5  Prefactor     .10000E-03    37.747        .23084E-05** at limit **
   6  Prefactor     .10000E-03    7.1263       -.28565E-06** at limit **
   7  Prefactor     21.812        16.551       -.59463E-06   -.33593E-04
   8  norm          14.032        7.6928        .83885E-07    .57038E-04
   9  Prefactor     .10000E-03    10.436       -.33304E-06** at limit **
  10  Prefactor     9.4408        11.721       -.17957E-06    .29544E-04
  11  norm          .10000E-03    .39144       -.83685E-07** at limit **
  12  Prefactor     .10000E-03    103.50        .38715E-04** at limit **
  13  Prefactor     .10000E-03    5.8460        .43887E-07** at limit **
  14  norm          8.9464        5.9527       -.64860E-06    .82017E-04
  15  norm          5.9507        6.6601       -.96082E-07   -.61856E-04
  16  Prefactor     .10000E-03    30.092       -.43082E-06** at limit **
  17  Prefactor     7.4852        63.520       -.83258E-05   -.34489E-05
  18  norm          .10000E-03    3.6419       -.32659E-06** at limit **
  19  norm          .10000E-03    1.4982        .88102E-07** at limit **
  20  Prefactor     49.149        49.304       -.13896E-04    .22005E-04
  21  norm          24.072        8.1760        .33084E-06    .28369E-04
  22  Prefactor     .10000E-03    78.799       -.31585E-04** at limit **
  23  Prefactor     .10000E-03    97.165        .28093E-04** at limit **
  24  Prefactor     8.3323        7.5299       -.92472E-06    .15086E-04
  25  Prefactor     .10000E-03    162.62       -.35073E-04** at limit **
  26  Normalizat    .95586        .22623        .87913E-06    .20616E-04
  27  Prefactor     .79448        .22008        .15414E-05   -.29425E-06
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 30.113
  Prefactor  = 5.61041
  Prefactor  = 6.15615
  Prefactor  = 45.0546
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 21.8121
  norm       = 14.0315
  Prefactor  = 0.0001
  Prefactor  = 9.44079
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 8.94637
  norm       = 5.95071
  Prefactor  = 0.0001
  Prefactor  = 7.48515
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 49.1492
  norm       = 24.0721
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 8.33232
  Prefactor  = 0.000100001
  Normalizat = 0.955865
  Prefactor  = 0.79448
 **********
 **   18 **HESSE 
 **********

 FCN=   3970.567     FROM HESSE     STATUS=OK           492 CALLS     3757 TOTAL
                     EDM=   .79E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     30.113        43.221        .73009E-04   -1.4610    
   2  Prefactor     5.6104        6.3927        .14555E-03   -1.5234    
   3  Prefactor     6.1561        19.575        .16183E-03   -1.5212    
   4  Prefactor     45.055        33.143        .59731E-04   -1.4365    
   5  Prefactor     .10000E-03    37.831        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    7.1432        .16427E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     21.812        16.562        .85763E-04   -1.4774    
   8  norm          14.032        7.6876        .10693E-03   -1.4959    
   9  Prefactor     .10000E-03    10.446        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     9.4408        11.165        .13044E-03   -1.5093    
  11  norm          .10000E-03    .44495        .71438E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    103.68        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    5.8628        .14872E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          8.9464        5.9515        .12205E-03   -1.5110    
  15  norm          5.9507        6.6550        .16461E-03   -1.5220    
  16  Prefactor     .10000E-03    30.140        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     7.4852        63.584        .14654E-03   -1.5161    
  18  norm          .10000E-03    3.6679        .11722E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  norm          .10000E-03    1.5030        .75282E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     49.149        49.560        .57188E-04   -1.4305    
  21  norm          24.072        8.1823        .81641E-04   -1.4726    
  22  Prefactor     .10000E-03    78.664        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     .10000E-03    97.461        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     8.3323        7.5770        .13886E-03   -1.5131    
  25  Prefactor     .10000E-03    164.27        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  Normalizat    .95586        .26762        .24055E-03   -.94524    
  27  Prefactor     .79448        .25702        .27279E-03   -.99932    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 7.93073e-11
Minuit parameter uncertainties:
  1  43.2657
  2  6.39344
  3  19.5953
  4  33.1568
  5  9.92642e-06
  6  6.44735e-06
  7  16.5658
  8  7.6881
  9  1.43954e-06
  10  11.1679
  11  2.49374e-07
  12  0.00025509
  13  2.91998e-07
  14  5.95187
  15  6.6558
  16  3.38784e-05
  17  43.6943
  18  1.05734e-05
  19  2.16998e-05
  20  49.6017
  21  8.18273
  22  0.000197518
  23  0.000124029
  24  7.57789
  25  0.000648259
  26  0.26799
  27  0.257406
Done.

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

Extracting fit parameters...

4FGL J2327.5-3259
   Spectrum: PowerLaw
454    Prefactor:  7.485e+00  4.369e+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:  7.945e-01  2.574e-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.559e-01  2.680e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 0.03
Ra Dec: 351.883 -32.987
Photon Flux Upper Limit: 1.03e-07 ph cm-2 s-1
Energy Flux Upper Limit: 8.05e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/912815/likelihoodResults_303091201_303350401_4FGL_J2327.5-3259_daily_bin246.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) = 3970.32911911
delta logL = 0.238332075839

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 3970.22202075
delta logL = 0.34543043993

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    23.503       1.0000         .10000E-03   10000.    
     2 'Index     '    1.5479       1.0000          .0000       10.000    
     3 'Normalizat'    .96953       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .77464       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=   3970.222     FROM MIGRAD    STATUS=CONVERGED     54 CALLS      225 TOTAL
                     EDM=   .12E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY= 17.2%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     23.525        43.084        .17200E-04   -.13328E-03
   2  Index         1.5460        .83233        .73935E-04    .26803E-04
   3  Normalizat    .96935        .20291       -.27166E-06   -.24577E-03
   4  Prefactor     .77493        .21303       -.10619E-05   -.24008E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 23.5245
  Index      = 1.54603
  Normalizat = 0.969354
  Prefactor  = 0.774933
 **********
 **   18 **HESSE 
 **********

 FCN=   3970.222     FROM HESSE     STATUS=OK            27 CALLS      252 TOTAL
                     EDM=   .20E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     23.525        41.742        .82625E-04   -1.4738    
   2  Index         1.5460        .80703        .92781E-02   -.76259    
   3  Normalizat    .96935        .23848        .23896E-03   -.94064    
   4  Prefactor     .77493        .25007        .27583E-03   -1.0066    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.96746e-10
Minuit parameter uncertainties:
  1  41.7935
  2  0.813883
  3  0.238746
  4  0.250437
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/912815': 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) = 3970.22201497
delta logL = 0.34543621736

Extracting fit parameters...

4FGL J2327.5-3259
   Spectrum: PowerLaw
454    Prefactor:  2.352e+01  4.179e+01  1.000e-04  1.000e+04 ( 1.000e-13)
455        Index:  1.546e+00  8.139e-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:  7.749e-01  2.504e-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.694e-01  2.387e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 0.03
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/912815/cmap_HighResolution_303091201_303350401_4FGL_J2327.5-3259_daily_bin246.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='8.05e-03', job_status='DONE', photon_flux_upper_limit='1.03e-07', time_completed='2021-09-29 20:09:29.295256', job_id='912815', GAL2='0.77', fit_tolerance='1e-08', EG2='0.97', EG='0.96', time_epoch_completed='1632971369.3', return_code2='0', ts='0.03', comment='SUCCESS', return_code='0', GAL='0.79', dlogl='3.45e-01', ts2='0.73', photon_index_error='0.00', photon_index='2.56' WHERE bin_id='246' AND source_name='4FGL J2327.5-3259' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep 29 20:09:29 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0261>
Subject: Job 912815: <4FGL_J2327.5-3259_daily_bin246> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2327.5-3259_daily_bin246 351.883 -32.9869 303091201 303350401 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 :                                   601.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             274.07 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   829 sec.
    Turnaround time :                            831 sec.

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

