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


Performing analysis on: 4FGL_J2327.5-3259_daily_bin902
RA = 351.883, Dec = -32.9869
tmin = 473126401, tmax = 473385601
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='916000', job_status='RUN', time_executed='2021-09-29 20:09:20.518503', time_epoch_executed='1632971360.52' WHERE source_name='4FGL J2327.5-3259' and cadence='daily' and bin_id='902'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/916000

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/916000/ft1_4FGL_J2327.5-3259_daily_bin902.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/916000/ft2_4FGL_J2327.5-3259_daily_bin902.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/916000/ft1_4FGL_J2327.5-3259_daily_bin902.fits outfile=/scratch/kocevski/916000/ft1_filteredMKT_4FGL_J2327.5-3259_daily_bin902.fits ra=351.883 dec=-32.9869 rad=12.0 tmin=473126401.0 tmax=473385601.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.48
user 3.25
sys 0.20

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/916000/ft1_filtered_4FGL_J2327.5-3259_daily_bin902.fits" evtable="EVENTS" scfile=/scratch/kocevski/916000/ft2_4FGL_J2327.5-3259_daily_bin902.fits sctable="SC_DATA" outfile=/scratch/kocevski/916000/ltcube_473126401_473385601_4FGL_J2327.5-3259_daily_bin902.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/916000/ft2_4FGL_J2327.5-3259_daily_bin902.fits
.....................!
real 11.80
user 11.44
sys 0.33

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/916000/ft1_filtered_4FGL_J2327.5-3259_daily_bin902.fits evtable="EVENTS" scfile=/scratch/kocevski/916000/ft2_4FGL_J2327.5-3259_daily_bin902.fits sctable="SC_DATA" expcube=/scratch/kocevski/916000/ltcube_473126401_473385601_4FGL_J2327.5-3259_daily_bin902.fits outfile=/scratch/kocevski/916000/expmap_473126401_473385601_4FGL_J2327.5-3259_daily_bin902.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/916000/ltcube_473126401_473385601_4FGL_J2327.5-3259_daily_bin902.fits
.....................!
real 193.17
user 188.04
sys 4.68

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/916000/ft1_filtered_4FGL_J2327.5-3259_daily_bin902.fits scfile=/scratch/kocevski/916000/ft2_4FGL_J2327.5-3259_daily_bin902.fits outfile=/scratch/kocevski/916000/cmap_473126401_473385601_4FGL_J2327.5-3259_daily_bin902.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.54
user 0.37
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/916000/ft1_filtered_4FGL_J2327.5-3259_daily_bin902.fits scfile=/scratch/kocevski/916000/ft2_4FGL_J2327.5-3259_daily_bin902.fits outfile=/scratch/kocevski/916000/cmap_HighResolution_473126401_473385601_4FGL_J2327.5-3259_daily_bin902.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.16

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/916000/ft1_filtered_4FGL_J2327.5-3259_daily_bin902.fits evtable="EVENTS" scfile=/scratch/kocevski/916000/ft2_4FGL_J2327.5-3259_daily_bin902.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/916000/Model_4FGL_J2327.5-3259_daily_bin902.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/916000/ft1_filtered_4FGL_J2327.5-3259_daily_bin902.fits......................!
real 35.37
user 33.95
sys 1.26

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10997E-02   1.0000         .10000E-03   10000.    
     2 'Prefactor '    2.8305       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .14908E-01   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .74184E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    14.143       1.0000         .10000E-03   10000.    
     6 'Prefactor '    17.523       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .12898E-02   1.0000         .10000E-03   10000.    
     8 'norm      '    .10411E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .72719E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    12.375       1.0000         .10000E-03   10000.    
    11 'norm      '    .10038E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    31.630       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .53680E-03   1.0000         .10000E-03   10000.    
    14 'norm      '    .10011E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    5.0047       1.0000         .10000E-03   10000.    
    16 'Prefactor '    25.263       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .31386E-03   1.0000         .10000E-03   10000.    
    18 'norm      '    1.9862       1.0000         .10000E-03   10000.    
    19 'norm      '    .67566       1.0000         .10000E-03   10000.    
    20 'Prefactor '    24.100       1.0000         .10000E-03   10000.    
    21 'norm      '    .10015E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    .35329E-02   1.0000         .10000E-03   10000.    
    23 'Prefactor '    .56208E-03   1.0000         .10000E-03   10000.    
    24 'Prefactor '    2.2987       1.0000         .10000E-03   10000.    
    25 'Prefactor '    .45247E-01   1.0000         .10000E-03   10000.    
    26 'Normalizat'    .68983       1.0000         .10000E-01   10.000    
    27 'Prefactor '    1.3451       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=   4114.372     FROM MIGRAD    STATUS=CONVERGED    732 CALLS     2932 TOTAL
                     EDM=   .49E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  4.7%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    23.659        .38447E-07** at limit **
   2  Prefactor     2.8441        5.4366       -.19329E-05    .90261E-04
   3  Prefactor     .10000E-03    60.167        .10867E-05** at limit **
   4  Prefactor     .10000E-03    15.544        .76347E-06** at limit **
   5  Prefactor     13.872        28.293        .46807E-06    .41264E-04
   6  Prefactor     18.156        16.711        .89878E-08   -.92395E-04
   7  Prefactor     .10000E-03    11.749        .24762E-05** at limit **
   8  norm          .10000E-03    2.7300        .57095E-07** at limit **
   9  Prefactor     .10000E-03    22.589        .11387E-05** at limit **
  10  Prefactor     12.187        10.396       -.11540E-05   -.49337E-03
  11  norm          .10000E-03    .33798        .31941E-06** at limit **
  12  Prefactor     31.763        38.535        .15443E-06    .10355E-04
  13  Prefactor     .10000E-03    7.0597        .25906E-06** at limit **
  14  norm          .10000E-03    2.2761        .30827E-07** at limit **
  15  norm          4.9331        12.186        .29134E-07   -.13489E-04
  16  Prefactor     34.740        78.751       -.10089E-04   -.33160E-04
  17  Prefactor     .10000E-03    25.917       -.29812E-08** at limit **
  18  norm          1.1014        15.838        .66548E-05   -.99504E-04
  19  norm          .70676        4.7533       -.12502E-05    .30710E-05
  20  Prefactor     22.896        32.150        .92651E-06    .24213E-04
  21  norm          .10000E-03    2.6387        .15207E-06** at limit **
  22  Prefactor     .10000E-03    54.442       -.77474E-06** at limit **
  23  Prefactor     .10000E-03    28.314       -.43366E-07** at limit **
  24  Prefactor     2.2939        8.6928       -.64943E-07   -.18933E-04
  25  Prefactor     .10000E-03    116.62        .19337E-05** at limit **
  26  Normalizat    .68322        .23210        .18826E-05   -.17745E-03
  27  Prefactor     1.3499        .23441       -.13981E-05    .52279E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 2.84407
  Prefactor  = 0.000100002
  Prefactor  = 0.0001
  Prefactor  = 13.872
  Prefactor  = 18.1556
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 12.1868
  norm       = 0.0001
  Prefactor  = 31.7634
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 4.93314
  Prefactor  = 34.7404
  Prefactor  = 0.0001
  norm       = 1.1014
  norm       = 0.706759
  Prefactor  = 22.8955
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 2.29391
  Prefactor  = 0.000100002
  Normalizat = 0.683224
  Prefactor  = 1.34987
 **********
 **   18 **HESSE 
 **********

 FCN=   4114.372     FROM HESSE     STATUS=OK           486 CALLS     3418 TOTAL
                     EDM=   .15E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    23.668        .20699E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     2.8441        5.3284        .18797E-03   -1.5371    
   3  Prefactor     .10000E-03    60.815        .18195E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    15.576        .20946E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     13.872        28.286        .10651E-03   -1.4963    
   6  Prefactor     18.156        16.717        .95678E-04   -1.4856    
   7  Prefactor     .10000E-03    11.750        .20586E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          .10000E-03    2.7443        .10338E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    22.981        .20958E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     12.187        10.154        .11387E-03   -1.5010    
  11  norm          .10000E-03    .40565        .69955E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     31.763        38.534        .35622E-03   -1.4580    
  13  Prefactor     .10000E-03    7.1009        .16633E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          .10000E-03    2.2779        .94487E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          4.9331        12.175        .17976E-03   -1.5264    
  16  Prefactor     34.740        82.071        .79699E-04   -1.4528    
  17  Prefactor     .10000E-03    25.942        .21371E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          1.1014        17.321        .13207E-02   -1.5498    
  19  norm          .70676        4.6898        .25987E-03   -1.5540    
  20  Prefactor     22.896        31.939        .81597E-04   -1.4751    
  21  norm          .10000E-03    2.6502        .10159E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     .10000E-03    54.448        .19644E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     .10000E-03    28.341        .21098E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     2.2939        8.5017        .13534E-02   -1.5405    
  25  Prefactor     .10000E-03    117.81        .18494E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  Normalizat    .68322        .27513        .28108E-03   -1.0456    
  27  Prefactor     1.3499        .28084        .22785E-03   -.81836    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.48901e-09
Minuit parameter uncertainties:
  1  2.12603e-05
  2  5.32933
  3  0.000756931
  4  1.69349e-05
  5  28.3129
  6  16.7217
  7  8.18933e-05
  8  1.19494e-05
  9  0.000160869
  10  10.1553
  11  9.30356e-06
  12  38.5637
  13  2.78921e-05
  14  7.92558e-07
  15  12.1813
  16  82.339
  17  3.15144e-06
  18  8.73822
  19  3.64136
  20  31.9633
  21  1.93484e-06
  22  0.000168845
  23  1.42242e-05
  24  8.50614
  25  0.000928162
  26  0.275682
  27  0.281159
Done.

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

Extracting fit parameters...

4FGL J2327.5-3259
   Spectrum: PowerLaw
454    Prefactor:  1.000e-04  3.151e-06  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:  1.350e+00  2.812e-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:  6.832e-01  2.757e-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: 8.41e-08 ph cm-2 s-1
Energy Flux Upper Limit: 6.57e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/916000/likelihoodResults_473126401_473385601_4FGL_J2327.5-3259_daily_bin902.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) = 4114.37259794
delta logL = -0.00018346421075

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 4114.37241621
delta logL = -1.73747321242e-06

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    3.3184       1.0000          .0000       10.000    
     3 'Normalizat'    .68322       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.3499       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=   4114.372     FROM MIGRAD    STATUS=CONVERGED    106 CALLS      294 TOTAL
                     EDM=   .13E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10002E-03    143.95        .18142E-01** at limit **
   2  Index         2.1543        6.0750        .50000        .15089E-06
   3  Normalizat    .68324        .11167E-01    .28108E-03    .16199E-02
   4  Prefactor     1.3499        .12367E-01    .22785E-03    .18823E-02
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100022
  Index      = 2.1543
  Normalizat = 0.683235
  Prefactor  = 1.34987
 **********
 **   18 **HESSE 
 **********

 FCN=   4114.372     FROM HESSE     STATUS=NOT POSDEF    29 CALLS      323 TOTAL
                     EDM=   .77E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10002E-03    816.48        .33986E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.1543        5.9974        .50000       -.60546    
   3  Normalizat    .68324        .27579E-01    .56217E-04   -1.0456    
   4  Prefactor     1.3499        .30543E-01    .45570E-04   -.81836    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 7.68898e-09
Minuit parameter uncertainties:
  1  0.00863053
  2  1688.77
  3  0.0275794
  4  0.0305436
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/916000': 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) = 4114.37241425
delta logL = 2.275355655e-07

Extracting fit parameters...

4FGL J2327.5-3259
   Spectrum: PowerLaw
454    Prefactor:  1.000e-04  8.631e-03  1.000e-04  1.000e+04 ( 1.000e-13)
455        Index:  2.154e+00  1.689e+03  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:  1.350e+00  3.054e-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:  6.832e-01  2.758e-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/916000/cmap_HighResolution_473126401_473385601_4FGL_J2327.5-3259_daily_bin902.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='6.57e-03', job_status='DONE', photon_flux_upper_limit='8.41e-08', time_completed='2021-09-29 20:19:15.196134', job_id='916000', GAL2='1.35', fit_tolerance='1e-08', EG2='0.68', EG='0.68', time_epoch_completed='1632971955.2', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.35', dlogl='2.28e-07', ts2='-0.00', photon_index_error='0.00', photon_index='2.56' WHERE bin_id='902' AND source_name='4FGL J2327.5-3259' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep 29 20:19:15 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0047>
Subject: Job 916000: <4FGL_J2327.5-3259_daily_bin902> in cluster <slac> Done

Job <4FGL_J2327.5-3259_daily_bin902> was submitted from host <rhel6-64p> by user <kocevski> in cluster <slac> at Wed Sep 29 20:06:00 2021
Job was executed on host(s) <bullet0047>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Sep 29 20:06:01 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Wed Sep 29 20:06:01 2021
Terminated at Wed Sep 29 20:19:15 2021
Results reported at Wed Sep 29 20:19:15 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2327.5-3259_daily_bin902 351.883 -32.9869 473126401 473385601 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 :                                   594.00 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             271.58 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   794 sec.
    Turnaround time :                            795 sec.

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

