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


Performing analysis on: 4FGL_J2327.5-3259_daily_bin945
RA = 351.883, Dec = -32.9869
tmin = 484272001, tmax = 484531201
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='917101', job_status='RUN', time_executed='2021-09-29 20:14:00.431321', time_epoch_executed='1632971640.43' WHERE source_name='4FGL J2327.5-3259' and cadence='daily' and bin_id='945'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/917101

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/917101/ft1_4FGL_J2327.5-3259_daily_bin945.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/917101/ft2_4FGL_J2327.5-3259_daily_bin945.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/917101/ft1_4FGL_J2327.5-3259_daily_bin945.fits outfile=/scratch/kocevski/917101/ft1_filteredMKT_4FGL_J2327.5-3259_daily_bin945.fits ra=351.883 dec=-32.9869 rad=12.0 tmin=484272001.0 tmax=484531201.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 5.13
user 4.89
sys 0.21

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/917101/ft1_filtered_4FGL_J2327.5-3259_daily_bin945.fits" evtable="EVENTS" scfile=/scratch/kocevski/917101/ft2_4FGL_J2327.5-3259_daily_bin945.fits sctable="SC_DATA" outfile=/scratch/kocevski/917101/ltcube_484272001_484531201_4FGL_J2327.5-3259_daily_bin945.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/917101/ft2_4FGL_J2327.5-3259_daily_bin945.fits
.....................!
real 11.72
user 11.35
sys 0.33

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/917101/ft1_filtered_4FGL_J2327.5-3259_daily_bin945.fits evtable="EVENTS" scfile=/scratch/kocevski/917101/ft2_4FGL_J2327.5-3259_daily_bin945.fits sctable="SC_DATA" expcube=/scratch/kocevski/917101/ltcube_484272001_484531201_4FGL_J2327.5-3259_daily_bin945.fits outfile=/scratch/kocevski/917101/expmap_484272001_484531201_4FGL_J2327.5-3259_daily_bin945.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/917101/ltcube_484272001_484531201_4FGL_J2327.5-3259_daily_bin945.fits
.....................!
real 191.62
user 186.54
sys 4.72

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/917101/ft1_filtered_4FGL_J2327.5-3259_daily_bin945.fits scfile=/scratch/kocevski/917101/ft2_4FGL_J2327.5-3259_daily_bin945.fits outfile=/scratch/kocevski/917101/cmap_484272001_484531201_4FGL_J2327.5-3259_daily_bin945.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.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/917101/ft1_filtered_4FGL_J2327.5-3259_daily_bin945.fits scfile=/scratch/kocevski/917101/ft2_4FGL_J2327.5-3259_daily_bin945.fits outfile=/scratch/kocevski/917101/cmap_HighResolution_484272001_484531201_4FGL_J2327.5-3259_daily_bin945.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.39
sys 0.14

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/917101/ft1_filtered_4FGL_J2327.5-3259_daily_bin945.fits evtable="EVENTS" scfile=/scratch/kocevski/917101/ft2_4FGL_J2327.5-3259_daily_bin945.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/917101/Model_4FGL_J2327.5-3259_daily_bin945.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/917101/ft1_filtered_4FGL_J2327.5-3259_daily_bin945.fits.....................!
real 41.13
user 39.74
sys 1.24

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10015E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    1.3774       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10069E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    3.6379       1.0000         .10000E-03   10000.    
     5 'Prefactor '    20.120       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .59460       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .11848       1.0000         .10000E-03   10000.    
     8 'norm      '    10.679       1.0000         .10000E-03   10000.    
     9 'Prefactor '    15.383       1.0000         .10000E-03   10000.    
    10 'Prefactor '    1.9543       1.0000         .10000E-03   10000.    
    11 'norm      '    .10016E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10008E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    7.1002       1.0000         .10000E-03   10000.    
    14 'norm      '    .10007E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    5.5940       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10104E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10208E-03   1.0000         .10000E-03   10000.    
    18 'norm      '    7.8610       1.0000         .10000E-03   10000.    
    19 'norm      '    2.7642       1.0000         .10000E-03   10000.    
    20 'Prefactor '    19.346       1.0000         .10000E-03   10000.    
    21 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10043E-03   1.0000         .10000E-03   10000.    
    24 'Prefactor '    .10016E-03   1.0000         .10000E-03   10000.    
    25 'Prefactor '    37.517       1.0000         .10000E-03   10000.    
    26 'Normalizat'    .99657       1.0000         .10000E-01   10.000    
    27 'Prefactor '    .59903       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=   5150.854     FROM MIGRAD    STATUS=CONVERGED    635 CALLS     2826 TOTAL
                     EDM=   .31E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  4.0%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    14.290       -.90998E-06** at limit **
   2  Prefactor     1.3769        2.3411        .23454E-06   -.95096E-04
   3  Prefactor     .10000E-03    6.1648       -.44640E-07** at limit **
   4  Prefactor     3.6454        25.291        .37351E-05    .41562E-04
   5  Prefactor     20.116        24.412       -.16125E-05   -.11618E-03
   6  Prefactor     .58994        5.4250       -.27266E-06   -.17597E-04
   7  Prefactor     .11932        8.5086        .12944E-05   -.39135E-03
   8  norm          10.680        4.9313       -.21703E-06    .42762E-04
   9  Prefactor     15.389        17.513       -.87728E-06    .62934E-04
  10  Prefactor     1.9522        11.449        .32046E-05   -.54962E-04
  11  norm          .10000E-03    .17660       -.88591E-07** at limit **
  12  Prefactor     .10000E-03    13.702       -.23332E-06** at limit **
  13  Prefactor     7.1028        9.4653       -.70366E-06   -.48883E-04
  14  norm          .10000E-03    2.6451        .43852E-07** at limit **
  15  norm          5.5945        4.7580       -.24197E-07   -.63266E-05
  16  Prefactor     .10000E-03    27.686       -.22896E-06** at limit **
  17  Prefactor     .10000E-03    15.081       -.12271E-05** at limit **
  18  norm          7.8603        4.5509       -.31722E-07   -.12774E-03
  19  norm          2.7642        2.3794        .32029E-08   -.32485E-04
  20  Prefactor     19.347        20.895        .30284E-06    .13363E-04
  21  norm          .10000E-03    2.4327        .32491E-07** at limit **
  22  Prefactor     .10000E-03    18.732        .15512E-05** at limit **
  23  Prefactor     .10000E-03    12.849        .12734E-05** at limit **
  24  Prefactor     .10000E-03    3.3209        .10164E-06** at limit **
  25  Prefactor     37.512        29.736       -.12817E-05   -.96318E-04
  26  Normalizat    .99660        .15572       -.23552E-06   -.14385E-03
  27  Prefactor     .59902        .16693       -.19885E-06   -.10762E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 1.37686
  Prefactor  = 0.0001
  Prefactor  = 3.64538
  Prefactor  = 20.1159
  Prefactor  = 0.589944
  Prefactor  = 0.119318
  norm       = 10.6804
  Prefactor  = 15.3894
  Prefactor  = 1.95219
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 7.10281
  norm       = 0.0001
  norm       = 5.59449
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 7.86035
  norm       = 2.76424
  Prefactor  = 19.3473
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 37.5116
  Normalizat = 0.996598
  Prefactor  = 0.599018
 **********
 **   18 **HESSE 
 **********

 FCN=   5150.854     FROM HESSE     STATUS=OK           498 CALLS     3324 TOTAL
                     EDM=   .15E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    14.320        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     1.3769        2.3145        .13783E-03   -1.5473    
   3  Prefactor     .10000E-03    6.1676        .17401E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     3.6454        25.481        .21181E-03   -1.5326    
   5  Prefactor     20.116        24.595        .89293E-04   -1.4811    
   6  Prefactor     .58994        28.470        .31219E-02   -1.5554    
   7  Prefactor     .11932        10.635        .58128E-01   -1.5639    
   8  norm          10.680        4.9414        .95910E-04   -1.5054    
   9  Prefactor     15.389        18.126        .10212E-03   -1.4923    
  10  Prefactor     1.9522        13.144        .29681E-03   -1.5429    
  11  norm          .10000E-03    .18115        .58167E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    13.707        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     7.1028        9.3634        .15055E-03   -1.5175    
  14  norm          .10000E-03    2.6593        .11383E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          5.5945        4.7595        .14034E-03   -1.5235    
  16  Prefactor     .10000E-03    27.810        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    15.149        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          7.8603        4.5498        .11050E-03   -1.5147    
  19  norm          2.7642        2.3734        .98217E-04   -1.5375    
  20  Prefactor     19.347        20.871        .91061E-04   -1.4828    
  21  norm          .10000E-03    2.4611        .10917E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     .10000E-03    18.824        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     .10000E-03    12.936        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     .10000E-03    3.3926        .12772E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Prefactor     37.512        29.966        .65434E-04   -1.4482    
  26  Normalizat    .99660        .18958        .19403E-03   -.93144    
  27  Prefactor     .59902        .20116        .26739E-03   -1.0763    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.47122e-08
Minuit parameter uncertainties:
  1  5.25759e-05
  2  2.31466
  3  1.41369e-06
  4  19.287
  5  24.6077
  6  8.19993
  7  2.2524
  8  4.94158
  9  18.1325
  10  10.1339
  11  1.09006e-06
  12  1.40489e-05
  13  9.36529
  14  3.67066e-06
  15  4.75987
  16  3.34925e-06
  17  7.02484e-05
  18  4.55005
  19  2.37343
  20  20.8787
  21  3.5766e-06
  22  0.000105952
  23  7.61316e-05
  24  1.38403e-05
  25  29.9779
  26  0.189705
  27  0.201397
Done.

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

Extracting fit parameters...

4FGL J2327.5-3259
   Spectrum: PowerLaw
454    Prefactor:  1.000e-04  7.025e-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:  5.990e-01  2.014e-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.966e-01  1.897e-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: 4.68e-08 ph cm-2 s-1
Energy Flux Upper Limit: 3.65e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/917101/likelihoodResults_484272001_484531201_4FGL_J2327.5-3259_daily_bin945.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) = 5150.8542145
delta logL = -0.000314477721986

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 5150.85390226
delta logL = -2.24264840654e-06

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10276E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    3.0705       1.0000          .0000       10.000    
     3 'Normalizat'    .99660       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .59902       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=   5150.854     FROM MIGRAD    STATUS=CONVERGED    107 CALLS      292 TOTAL
                     EDM=   .36E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    42.296        .18142E-01** at limit **
   2  Index         2.1791        5.2028        .50000        .22585E-06
   3  Normalizat    .99661        .58019E-02    .19403E-03    .68764E-02
   4  Prefactor     .59903        .63588E-02    .26739E-03    .49958E-02
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100002
  Index      = 2.17913
  Normalizat = 0.996607
  Prefactor  = 0.599027
 **********
 **   18 **HESSE 
 **********

 FCN=   5150.854     FROM HESSE     STATUS=NOT POSDEF    29 CALLS      321 TOTAL
                     EDM=   .24E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    277.79        .29040E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.1791        5.8978        .50000       -.59943    
   3  Normalizat    .99661        .15117E-01    .38806E-04   -.93144    
   4  Prefactor     .59903        .16568E-01    .53478E-04   -1.0763    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 2.3662e-09
Minuit parameter uncertainties:
  1  0.00163043
  2  887.555
  3  0.0151167
  4  0.0165677
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/917101': 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) = 5150.85389964
delta logL = 3.78259755962e-07

Extracting fit parameters...

4FGL J2327.5-3259
   Spectrum: PowerLaw
454    Prefactor:  1.000e-04  1.630e-03  1.000e-04  1.000e+04 ( 1.000e-13)
455        Index:  2.179e+00  8.876e+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:  5.990e-01  1.657e-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:  9.966e-01  1.512e-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/917101/cmap_HighResolution_484272001_484531201_4FGL_J2327.5-3259_daily_bin945.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='3.65e-03', job_status='DONE', photon_flux_upper_limit='4.68e-08', time_completed='2021-09-29 20:25:40.814123', job_id='917101', GAL2='0.60', fit_tolerance='1e-08', EG2='1.00', EG='1.00', time_epoch_completed='1632972340.81', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.60', dlogl='3.78e-07', ts2='-0.00', photon_index_error='0.00', photon_index='2.56' WHERE bin_id='945' AND source_name='4FGL J2327.5-3259' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep 29 20:25:40 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0034>
Subject: Job 917101: <4FGL_J2327.5-3259_daily_bin945> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2327.5-3259_daily_bin945 351.883 -32.9869 484272001 484531201 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 :                                   697.44 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             299.14 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   921 sec.
    Turnaround time :                            922 sec.

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

