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


Performing analysis on: 4FGL_J2327.5-3259_daily_bin377
RA = 351.883, Dec = -32.9869
tmin = 337046401, tmax = 337305601
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='914086', job_status='RUN', time_executed='2021-09-29 20:03:10.184686', time_epoch_executed='1632970990.18' WHERE source_name='4FGL J2327.5-3259' and cadence='daily' and bin_id='377'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/914086

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/914086/ft1_4FGL_J2327.5-3259_daily_bin377.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/914086/ft2_4FGL_J2327.5-3259_daily_bin377.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/914086/ft1_4FGL_J2327.5-3259_daily_bin377.fits outfile=/scratch/kocevski/914086/ft1_filteredMKT_4FGL_J2327.5-3259_daily_bin377.fits ra=351.883 dec=-32.9869 rad=12.0 tmin=337046401.0 tmax=337305601.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 10.85
user 10.51
sys 0.32

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/914086/ft1_filtered_4FGL_J2327.5-3259_daily_bin377.fits" evtable="EVENTS" scfile=/scratch/kocevski/914086/ft2_4FGL_J2327.5-3259_daily_bin377.fits sctable="SC_DATA" outfile=/scratch/kocevski/914086/ltcube_337046401_337305601_4FGL_J2327.5-3259_daily_bin377.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/914086/ft2_4FGL_J2327.5-3259_daily_bin377.fits
.....................!
real 11.17
user 10.81
sys 0.34

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/914086/ft1_filtered_4FGL_J2327.5-3259_daily_bin377.fits evtable="EVENTS" scfile=/scratch/kocevski/914086/ft2_4FGL_J2327.5-3259_daily_bin377.fits sctable="SC_DATA" expcube=/scratch/kocevski/914086/ltcube_337046401_337305601_4FGL_J2327.5-3259_daily_bin377.fits outfile=/scratch/kocevski/914086/expmap_337046401_337305601_4FGL_J2327.5-3259_daily_bin377.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/914086/ltcube_337046401_337305601_4FGL_J2327.5-3259_daily_bin377.fits
.....................!
real 190.71
user 185.50
sys 4.89

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/914086/ft1_filtered_4FGL_J2327.5-3259_daily_bin377.fits scfile=/scratch/kocevski/914086/ft2_4FGL_J2327.5-3259_daily_bin377.fits outfile=/scratch/kocevski/914086/cmap_337046401_337305601_4FGL_J2327.5-3259_daily_bin377.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/914086/ft1_filtered_4FGL_J2327.5-3259_daily_bin377.fits scfile=/scratch/kocevski/914086/ft2_4FGL_J2327.5-3259_daily_bin377.fits outfile=/scratch/kocevski/914086/cmap_HighResolution_337046401_337305601_4FGL_J2327.5-3259_daily_bin377.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/914086/ft1_filtered_4FGL_J2327.5-3259_daily_bin377.fits evtable="EVENTS" scfile=/scratch/kocevski/914086/ft2_4FGL_J2327.5-3259_daily_bin377.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/914086/Model_4FGL_J2327.5-3259_daily_bin377.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/914086/ft1_filtered_4FGL_J2327.5-3259_daily_bin377.fits.....................!
real 26.09
user 24.82
sys 1.22

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    62.143       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .34202       1.0000         .10000E-03   10000.    
     3 'Prefactor '    19.102       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    19.799       1.0000         .10000E-03   10000.    
     7 'Prefactor '    8.0785       1.0000         .10000E-03   10000.    
     8 'norm      '    23.381       1.0000         .10000E-03   10000.    
     9 'Prefactor '    30.106       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10090E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    65.210       1.0000         .10000E-03   10000.    
    13 'Prefactor '    7.0894       1.0000         .10000E-03   10000.    
    14 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    49.300       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10014E-03   1.0000         .10000E-03   10000.    
    18 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    19 'norm      '    .75218       1.0000         .10000E-03   10000.    
    20 'Prefactor '    101.15       1.0000         .10000E-03   10000.    
    21 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    58.469       1.0000         .10000E-03   10000.    
    23 'Prefactor '    96.891       1.0000         .10000E-03   10000.    
    24 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    25 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    26 'Normalizat'    1.0603       1.0000         .10000E-01   10.000    
    27 'Prefactor '    .31786       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=   2438.284     FROM MIGRAD    STATUS=CONVERGED    636 CALLS     3265 TOTAL
                     EDM=   .13E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.3%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     62.151        68.274       -.47294E-06   -.99751E-05
   2  Prefactor     .34483        9.5960        .33275E-05   -.15114E-03
   3  Prefactor     19.093        29.906       -.10205E-05   -.37935E-04
   4  Prefactor     .10000E-03    13.849        .87535E-07** at limit **
   5  Prefactor     .10000E-03    53.611       -.18562E-06** at limit **
   6  Prefactor     19.794        15.045       -.10203E-06   -.25060E-04
   7  Prefactor     8.0768        10.114       -.73827E-08   -.30800E-05
   8  norm          23.379        9.6410       -.14998E-06   -.15838E-03
   9  Prefactor     30.076        24.927       -.12519E-05   -.13011E-03
  10  Prefactor     .10000E-03    11.578        .24225E-06** at limit **
  11  norm          .10000E-03    .46194        .25140E-07** at limit **
  12  Prefactor     65.184        59.995        .11093E-05    .20979E-04
  13  Prefactor     7.0830        10.429       -.35531E-06    .11254E-03
  14  norm          .10000E-03    2.3699       -.28329E-07** at limit **
  15  norm          .10000E-03    4.5083       -.80302E-08** at limit **
  16  Prefactor     49.267        51.826        .10625E-05    .28349E-04
  17  Prefactor     .10000E-03    54.422        .12007E-06** at limit **
  18  norm          .10000E-03    2.1262       -.14835E-06** at limit **
  19  norm          .75473        2.5667       -.16952E-07    .12094E-05
  20  Prefactor     101.13        49.284        .42094E-06    .10412E-04
  21  norm          .10000E-03    3.7701       -.23691E-06** at limit **
  22  Prefactor     58.506        76.525       -.19394E-05   -.23956E-04
  23  Prefactor     96.878        80.447        .45812E-06   -.83601E-05
  24  Prefactor     .10000E-03    2.9574        .48575E-07** at limit **
  25  Prefactor     .10000E-03    25.980        .63882E-07** at limit **
  26  Normalizat    1.0607        .26039        .10141E-05   -.27917E-04
  27  Prefactor     .31741        .27268       -.26359E-05   -.66035E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 62.1507
  Prefactor  = 0.344828
  Prefactor  = 19.0928
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 19.7943
  Prefactor  = 8.07684
  norm       = 23.3793
  Prefactor  = 30.0764
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 65.1836
  Prefactor  = 7.08304
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 49.2669
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 0.754726
  Prefactor  = 101.134
  norm       = 0.0001
  Prefactor  = 58.5059
  Prefactor  = 96.8777
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Normalizat = 1.06073
  Prefactor  = 0.317415
 **********
 **   18 **HESSE 
 **********

 FCN=   2438.284     FROM HESSE     STATUS=OK           480 CALLS     3745 TOTAL
                     EDM=   .24E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     62.151        68.278        .50902E-04   -1.4130    
   2  Prefactor     .34483        10.897        .19814E-02   -1.5591    
   3  Prefactor     19.093        30.086        .91640E-04   -1.4834    
   4  Prefactor     .10000E-03    13.870        .17951E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    53.768        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     19.794        15.055        .90014E-04   -1.4818    
   7  Prefactor     8.0768        10.109        .14106E-03   -1.5139    
   8  norm          23.379        9.6599        .82839E-04   -1.4741    
   9  Prefactor     30.076        25.459        .73021E-04   -1.4611    
  10  Prefactor     .10000E-03    11.769        .16409E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          .10000E-03    .61169        .63484E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     65.184        60.060        .24849E-03   -1.4091    
  13  Prefactor     7.0830        10.500        .75330E-03   -1.5176    
  14  norm          .10000E-03    2.3704        .74248E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          .10000E-03    4.5183        .10240E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     49.267        52.284        .57113E-04   -1.4303    
  17  Prefactor     .10000E-03    54.635        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          .10000E-03    2.1387        .70411E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  norm          .75473        2.2490        .14068E-02   -1.5534    
  20  Prefactor     101.13        48.943        .39976E-04   -1.3693    
  21  norm          .10000E-03    3.8178        .93782E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     58.506        76.566        .26233E-03   -1.4177    
  23  Prefactor     96.878        80.465        .40835E-04   -1.3736    
  24  Prefactor     .10000E-03    2.9682        .82920E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Prefactor     .10000E-03    26.006        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  Normalizat    1.0607        .29069        .19098E-03   -.91023    
  27  Prefactor     .31741        .29873        .35899E-03   -1.2126    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.42381e-10
Minuit parameter uncertainties:
  1  68.3639
  2  3.8771
  3  30.1098
  4  7.24473e-06
  5  4.48995e-06
  6  15.0576
  7  10.1107
  8  9.66056
  9  25.4681
  10  1.59186e-05
  11  1.72196e-07
  12  60.1163
  13  10.5026
  14  3.86537e-06
  15  5.18859e-07
  16  52.3329
  17  5.67247e-05
  18  2.07615e-05
  19  2.24924
  20  48.9627
  21  4.52533e-05
  22  76.6952
  23  80.5558
  24  2.19198e-06
  25  3.11304e-06
  26  0.291124
  27  0.300199
Done.

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

Extracting fit parameters...

4FGL J2327.5-3259
   Spectrum: PowerLaw
454    Prefactor:  1.000e-04  5.672e-05  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:  3.174e-01  3.002e-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.061e+00  2.911e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/914086/likelihoodResults_337046401_337305601_4FGL_J2327.5-3259_daily_bin377.txt

Performing a free index iterative likelihood fit...

Freezing all point sources, except source of interest...

Done.

Freeing candidate source...
Done.

Fit tolerance = 1

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 2438.28437009
delta logL = -8.71061456564e-05

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 2438.28428467
delta logL = -1.68487531482e-06

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .15063E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.9249       1.0000          .0000       10.000    
     3 'Normalizat'    1.0607       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .31742       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=   2438.284     FROM MIGRAD    STATUS=CONVERGED     92 CALLS      278 TOTAL
                     EDM=   .57E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .11856E-03    41.244        .18142E-01** at limit **
   2  Index         2.7038        8.2739        .50000        .10738E-04
   3  Normalizat    1.0607        .53841E-02    .19098E-03    .22818E-04
   4  Prefactor     .31742        .57738E-02    .35900E-03    .11052E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000118562
  Index      = 2.70381
  Normalizat = 1.06073
  Prefactor  = 0.317418
 **********
 **   18 **HESSE 
 **********

 FCN=   2438.284     FROM HESSE     STATUS=NOT POSDEF    29 CALLS      307 TOTAL
                     EDM=   .41E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .11856E-03    269.68        .31238E-02   -1.5707    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.7038        7.1045        .50000       -.47714    
   3  Normalizat    1.0607        .13785E-01    .38195E-04   -.91023    
   4  Prefactor     .31742        .14782E-01    .14360E-04   -1.2126    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 4.14715e-08
Minuit parameter uncertainties:
  1  0.142148
  2  610.095
  3  0.0137846
  4  0.0147823
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/914086': 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): 102
logL (Free Index) = 2438.28428346
delta logL = -4.7618186727e-07

Extracting fit parameters...

4FGL J2327.5-3259
   Spectrum: PowerLaw
454    Prefactor:  1.186e-04  1.421e-01  1.000e-04  1.000e+04 ( 1.000e-13)
455        Index:  2.704e+00  6.101e+02  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:  3.174e-01  1.478e-02  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.061e+00  1.378e-02  1.000e-02  1.000e+01 ( 1.000e+00)


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

Creating a high resolution counts map...
INFO: Auto-setting vmin to  0.000e+00 [aplpy.core]
INFO: Auto-setting vmax to  0.000e+00 [aplpy.core]
Saving /scratch/kocevski/914086/cmap_HighResolution_337046401_337305601_4FGL_J2327.5-3259_daily_bin377.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='7.18e-03', job_status='DONE', photon_flux_upper_limit='9.19e-08', time_completed='2021-09-29 20:12:09.573146', job_id='914086', GAL2='0.32', fit_tolerance='1e-08', EG2='1.06', EG='1.06', time_epoch_completed='1632971529.57', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.32', dlogl='-4.76e-07', ts2='-0.00', photon_index_error='0.00', photon_index='2.56' WHERE bin_id='377' AND source_name='4FGL J2327.5-3259' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep 29 20:12:09 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0239>
Subject: Job 914086: <4FGL_J2327.5-3259_daily_bin377> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2327.5-3259_daily_bin377 351.883 -32.9869 337046401 337305601 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 :                                   535.04 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             233.64 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   702 sec.
    Turnaround time :                            705 sec.

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

