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


Performing analysis on: 4FGL_J2327.5-3259_daily_bin356
RA = 351.883, Dec = -32.9869
tmin = 331603201, tmax = 331862401
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='914054', job_status='RUN', time_executed='2021-09-29 20:03:55.948498', time_epoch_executed='1632971035.95' WHERE source_name='4FGL J2327.5-3259' and cadence='daily' and bin_id='356'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/914054

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/914054/ft1_4FGL_J2327.5-3259_daily_bin356.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/914054/ft2_4FGL_J2327.5-3259_daily_bin356.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/914054/ft1_4FGL_J2327.5-3259_daily_bin356.fits outfile=/scratch/kocevski/914054/ft1_filteredMKT_4FGL_J2327.5-3259_daily_bin356.fits ra=351.883 dec=-32.9869 rad=12.0 tmin=331603201.0 tmax=331862401.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.27
user 3.07
sys 0.19

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/914054/ft1_filtered_4FGL_J2327.5-3259_daily_bin356.fits" evtable="EVENTS" scfile=/scratch/kocevski/914054/ft2_4FGL_J2327.5-3259_daily_bin356.fits sctable="SC_DATA" outfile=/scratch/kocevski/914054/ltcube_331603201_331862401_4FGL_J2327.5-3259_daily_bin356.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/914054/ft2_4FGL_J2327.5-3259_daily_bin356.fits
.....................!
real 11.84
user 11.47
sys 0.32

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/914054/ft1_filtered_4FGL_J2327.5-3259_daily_bin356.fits evtable="EVENTS" scfile=/scratch/kocevski/914054/ft2_4FGL_J2327.5-3259_daily_bin356.fits sctable="SC_DATA" expcube=/scratch/kocevski/914054/ltcube_331603201_331862401_4FGL_J2327.5-3259_daily_bin356.fits outfile=/scratch/kocevski/914054/expmap_331603201_331862401_4FGL_J2327.5-3259_daily_bin356.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/914054/ltcube_331603201_331862401_4FGL_J2327.5-3259_daily_bin356.fits
.....................!
real 192.22
user 187.47
sys 4.37

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/914054/ft1_filtered_4FGL_J2327.5-3259_daily_bin356.fits scfile=/scratch/kocevski/914054/ft2_4FGL_J2327.5-3259_daily_bin356.fits outfile=/scratch/kocevski/914054/cmap_331603201_331862401_4FGL_J2327.5-3259_daily_bin356.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.36
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/914054/ft1_filtered_4FGL_J2327.5-3259_daily_bin356.fits scfile=/scratch/kocevski/914054/ft2_4FGL_J2327.5-3259_daily_bin356.fits outfile=/scratch/kocevski/914054/cmap_HighResolution_331603201_331862401_4FGL_J2327.5-3259_daily_bin356.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.54
user 0.37
sys 0.15

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/914054/ft1_filtered_4FGL_J2327.5-3259_daily_bin356.fits evtable="EVENTS" scfile=/scratch/kocevski/914054/ft2_4FGL_J2327.5-3259_daily_bin356.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/914054/Model_4FGL_J2327.5-3259_daily_bin356.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/914054/ft1_filtered_4FGL_J2327.5-3259_daily_bin356.fits.....................!
real 44.52
user 42.84
sys 1.53

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    2.6648       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    7.6271       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    11.511       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .52515E-02   1.0000         .10000E-03   10000.    
    11 'norm      '    .37581       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    6.1950       1.0000         .10000E-03   10000.    
    14 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    .65230       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10276E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    49.703       1.0000         .10000E-03   10000.    
    18 'norm      '    26.196       1.0000         .10000E-03   10000.    
    19 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    28.938       1.0000         .10000E-03   10000.    
    21 'norm      '    10.659       1.0000         .10000E-03   10000.    
    22 'Prefactor '    34.863       1.0000         .10000E-03   10000.    
    23 'Prefactor '    31.101       1.0000         .10000E-03   10000.    
    24 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    25 'Prefactor '    44.593       1.0000         .10000E-03   10000.    
    26 'Normalizat'    1.0199       1.0000         .10000E-01   10.000    
    27 'Prefactor '    .68255       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=   5796.550     FROM MIGRAD    STATUS=CONVERGED    652 CALLS     3316 TOTAL
                     EDM=   .18E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    11.290        .90712E-02** at limit **
   2  Prefactor     2.6650        2.5471        .62419E-02    .30169E-04
   3  Prefactor     .10000E-03    5.5134        .90712E-02** at limit **
   4  Prefactor     .10000E-03    44.939        .90712E-02** at limit **
   5  Prefactor     .10000E-03    18.617        .90712E-02** at limit **
   6  Prefactor     7.6317        12.599        .36302E-02    .20018E-02
   7  Prefactor     .10000E-03    4.0639        .90712E-02** at limit **
   8  norm          11.514        5.0566        .29519E-02    .98561E-03
   9  Prefactor     .10000E-03    11.834        .90712E-02** at limit **
  10  Prefactor     .10000E-03    12.352        .60127E-01** at limit **
  11  norm          .37670        .68749        .10753E-01    .89910E-03
  12  Prefactor     .10000E-03    32.771        .90712E-02** at limit **
  13  Prefactor     6.1981        7.3578        .40322E-02   -.22674E-03
  14  norm          .10000E-03    2.5809        .90712E-02** at limit **
  15  norm          .65239        4.8379        .55015E-01    .90798E-03
  16  Prefactor     .10000E-03    105.33        .90712E-02** at limit **
  17  Prefactor     49.705        39.737        .14221E-02   -.90237E-03
  18  norm          26.195        7.0291        .19567E-02   -.33220E-03
  19  norm          .10000E-03    .81470        .90712E-02** at limit **
  20  Prefactor     28.940        25.914        .18619E-02   -.11301E-03
  21  norm          10.659        5.7887        .30680E-02   -.21455E-03
  22  Prefactor     34.863        69.598        .16968E-02   -.65441E-04
  23  Prefactor     31.099        43.990        .17962E-02    .75310E-03
  24  Prefactor     .10000E-03    2.7402        .90712E-02** at limit **
  25  Prefactor     44.593        39.467        .15010E-02   -.37172E-03
  26  Normalizat    1.0198        .16762        .43364E-01   -.57024E-04
  27  Prefactor     .68272        .17064        .63047E-01   -.37306E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 2.66503
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 7.6317
  Prefactor  = 0.0001
  norm       = 11.5135
  Prefactor  = 0.0001
  Prefactor  = 0.000100004
  norm       = 0.376705
  Prefactor  = 0.0001
  Prefactor  = 6.19806
  norm       = 0.0001
  norm       = 0.652392
  Prefactor  = 0.000100002
  Prefactor  = 49.7055
  norm       = 26.1953
  norm       = 0.0001
  Prefactor  = 28.9398
  norm       = 10.6585
  Prefactor  = 34.8628
  Prefactor  = 31.0989
  Prefactor  = 0.0001
  Prefactor  = 44.5935
  Normalizat = 1.01977
  Prefactor  = 0.682715
 **********
 **   18 **HESSE 
 **********

 FCN=   5796.550     FROM HESSE     STATUS=OK           492 CALLS     3808 TOTAL
                     EDM=   .81E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    11.294        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     2.6650        2.5475        .11367E-03   -1.5381    
   3  Prefactor     .10000E-03    5.5163        .17459E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    45.744        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    18.649        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     7.6317        12.646        .72604E-03   -1.5155    
   7  Prefactor     .10000E-03    4.0823        .14988E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          11.514        5.0493        .10061E-03   -1.5029    
   9  Prefactor     .10000E-03    11.903        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    16.419        .50218E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          .37670        .62325        .61001E-03   -1.5585    
  12  Prefactor     .10000E-03    32.802        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     6.1981        7.2772        .16129E-03   -1.5210    
  14  norm          .10000E-03    2.5935        .11936E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          .65239        10.080        .31998E-02   -1.5546    
  16  Prefactor     .10000E-03    105.93        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     49.705        39.725        .56882E-04   -1.4297    
  18  norm          26.195        7.0260        .78270E-04   -1.4684    
  19  norm          .10000E-03    .81902        .67074E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     28.940        25.929        .74477E-04   -1.4632    
  21  norm          10.659        5.7913        .12188E-03   -1.5055    
  22  Prefactor     34.863        69.636        .67871E-04   -1.4526    
  23  Prefactor     31.099        43.990        .71846E-04   -1.4592    
  24  Prefactor     .10000E-03    2.7671        .12292E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Prefactor     44.593        39.578        .60038E-04   -1.4371    
  26  Normalizat    1.0198        .20103        .21670E-03   -.92371    
  27  Prefactor     .68272        .20202        .27891E-03   -1.0421    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 8.05466e-09
Minuit parameter uncertainties:
  1  5.40139e-05
  2  2.54763
  3  1.09881e-05
  4  6.98956e-06
  5  0.000103524
  6  12.6507
  7  4.75035e-06
  8  5.04951
  9  4.10564e-05
  10  0.00049186
  11  0.623265
  12  3.25324e-05
  13  7.2782
  14  3.15866e-06
  15  5.12953
  16  0.000950991
  17  39.7459
  18  7.02624
  19  1.56151e-06
  20  25.9388
  21  5.79159
  22  69.799
  23  44.0363
  24  8.31147e-07
  25  39.6018
  26  0.201177
  27  0.202232
Done.

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

Extracting fit parameters...

4FGL J2327.5-3259
   Spectrum: PowerLaw
454    Prefactor:  4.971e+01  3.975e+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:  6.827e-01  2.022e-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:  1.020e+00  2.012e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 2.48
Ra Dec: 351.883 -32.987
Photon Index (Fixed Index): 2.56 +/- 0.00
Photon Flux (Fixed Index): 3.98e-08 +/- 3.18e-08
Energy Flux (Fixed Index): 1.09e-05 +/- 8.71e-06

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

Saving results to:
/scratch/kocevski/914054/likelihoodResults_331603201_331862401_4FGL_J2327.5-3259_daily_bin356.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) = 5796.34391108
delta logL = 0.205786049058

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5796.29532973
delta logL = 0.254367399009

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    64.221       1.0000         .10000E-03   10000.    
     2 'Index     '    2.1010       1.0000          .0000       10.000    
     3 'Normalizat'    1.0375       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .66711       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=   5796.295     FROM MIGRAD    STATUS=CONVERGED     83 CALLS      269 TOTAL
                     EDM=   .17E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     64.223        50.375        .50076E-04   -.41419E-03
   2  Index         2.1010        .57719        .81687E-02   -.23152E-03
   3  Normalizat    1.0371        .18650        .21504E-03    .11160E-03
   4  Prefactor     .66750        .19951        .28165E-03    .42060E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 64.2234
  Index      = 2.10104
  Normalizat = 1.03713
  Prefactor  = 0.667499
 **********
 **   18 **HESSE 
 **********

 FCN=   5796.295     FROM HESSE     STATUS=OK            23 CALLS      292 TOTAL
                     EDM=   .17E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     64.223        50.264        .10015E-04   -1.4103    
   2  Index         2.1010        .57583        .32675E-03   -.61847    
   3  Normalizat    1.0371        .18666        .86016E-05   -.91797    
   4  Prefactor     .66750        .19968        .11266E-04   -1.0481    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.73622e-09
Minuit parameter uncertainties:
  1  50.2969
  2  0.577768
  3  0.186783
  4  0.199891
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/914054': 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) = 5796.29532752
delta logL = 0.254369604882

Extracting fit parameters...

4FGL J2327.5-3259
   Spectrum: PowerLaw
454    Prefactor:  6.422e+01  5.030e+01  1.000e-04  1.000e+04 ( 1.000e-13)
455        Index:  2.101e+00  5.778e-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:  6.675e-01  1.999e-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:  1.037e+00  1.868e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 2.99
Ra Dec: 351.883 -32.987
Photon Index (Free Index): 2.10 +/- 0.58
Photon Flux (Free Index): 3.08e-08 +/- 2.89e-08
Energy Flux (Free Index): 1.68e-05 +/- 1.79e-05

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/914054/cmap_HighResolution_331603201_331862401_4FGL_J2327.5-3259_daily_bin356.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='8.52e-03', comment='SUCCESS', photon_flux='3.98e-08', energy_flux2='1.68e-05', photon_flux_error='3.18e-08', dlogl='2.54e-01', energy_flux='1.09e-05', photon_flux2='3.08e-08', job_status='DONE', time_completed='2021-09-29 20:16:32.243859', photon_index_error2='0.58', photon_index2='2.10', ts='2.48', fit_tolerance='1e-08', GAL='0.68', photon_index_error='0.00', photon_flux_upper_limit='1.09e-07', energy_flux_error2='1.79e-05', EG='1.02', time_epoch_completed='1632971792.24', return_code='0', job_id='914054', GAL2='0.67', EG2='1.04', return_code2='0', energy_flux_error='8.71e-06', photon_flux_error2='2.89e-08', ts2='2.99', photon_index='2.56' WHERE bin_id='356' AND source_name='4FGL J2327.5-3259' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep 29 20:16:32 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0241>
Subject: Job 914054: <4FGL_J2327.5-3259_daily_bin356> in cluster <slac> Done

Job <4FGL_J2327.5-3259_daily_bin356> was submitted from host <rhel6-64h> by user <kocevski> in cluster <slac> at Wed Sep 29 20:00:22 2021
Job was executed on host(s) <bullet0241>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Sep 29 20:00:23 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:23 2021
Terminated at Wed Sep 29 20:16:32 2021
Results reported at Wed Sep 29 20:16:32 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2327.5-3259_daily_bin356 351.883 -32.9869 331603201 331862401 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 :                                   755.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             314.72 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   969 sec.
    Turnaround time :                            970 sec.

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

