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


Performing analysis on: 4FGL_J2327.5-3259_daily_bin1514
RA = 351.883, Dec = -32.9869
tmin = 631756801, tmax = 632016001
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='918917', job_status='RUN', time_executed='2021-09-29 20:17:58.259315', time_epoch_executed='1632971878.26' WHERE source_name='4FGL J2327.5-3259' and cadence='daily' and bin_id='1514'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/918917

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/918917/ft1_4FGL_J2327.5-3259_daily_bin1514.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/918917/ft2_4FGL_J2327.5-3259_daily_bin1514.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/918917/ft1_4FGL_J2327.5-3259_daily_bin1514.fits outfile=/scratch/kocevski/918917/ft1_filteredMKT_4FGL_J2327.5-3259_daily_bin1514.fits ra=351.883 dec=-32.9869 rad=12.0 tmin=631756801.0 tmax=632016001.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 2.42
user 2.19
sys 0.19

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/918917/ft2_4FGL_J2327.5-3259_daily_bin1514.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/918917/ft1_filteredMKT_4FGL_J2327.5-3259_daily_bin1514.fits evtable="EVENTS" outfile="/scratch/kocevski/918917/ft1_filtered_4FGL_J2327.5-3259_daily_bin1514.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/918917/ft1_filtered_4FGL_J2327.5-3259_daily_bin1514.fits" evtable="EVENTS" scfile=/scratch/kocevski/918917/ft2_4FGL_J2327.5-3259_daily_bin1514.fits sctable="SC_DATA" outfile=/scratch/kocevski/918917/ltcube_631756801_632016001_4FGL_J2327.5-3259_daily_bin1514.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/918917/ft2_4FGL_J2327.5-3259_daily_bin1514.fits
.....................!
real 12.56
user 12.21
sys 0.32

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/918917/ft1_filtered_4FGL_J2327.5-3259_daily_bin1514.fits evtable="EVENTS" scfile=/scratch/kocevski/918917/ft2_4FGL_J2327.5-3259_daily_bin1514.fits sctable="SC_DATA" expcube=/scratch/kocevski/918917/ltcube_631756801_632016001_4FGL_J2327.5-3259_daily_bin1514.fits outfile=/scratch/kocevski/918917/expmap_631756801_632016001_4FGL_J2327.5-3259_daily_bin1514.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/918917/ltcube_631756801_632016001_4FGL_J2327.5-3259_daily_bin1514.fits
.....................!
real 190.40
user 185.27
sys 4.76

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/918917/ft1_filtered_4FGL_J2327.5-3259_daily_bin1514.fits scfile=/scratch/kocevski/918917/ft2_4FGL_J2327.5-3259_daily_bin1514.fits outfile=/scratch/kocevski/918917/cmap_631756801_632016001_4FGL_J2327.5-3259_daily_bin1514.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.56
user 0.37
sys 0.17

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/918917/ft1_filtered_4FGL_J2327.5-3259_daily_bin1514.fits scfile=/scratch/kocevski/918917/ft2_4FGL_J2327.5-3259_daily_bin1514.fits outfile=/scratch/kocevski/918917/cmap_HighResolution_631756801_632016001_4FGL_J2327.5-3259_daily_bin1514.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.38
sys 0.16

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/918917/ft1_filtered_4FGL_J2327.5-3259_daily_bin1514.fits evtable="EVENTS" scfile=/scratch/kocevski/918917/ft2_4FGL_J2327.5-3259_daily_bin1514.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/918917/Model_4FGL_J2327.5-3259_daily_bin1514.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/918917/ft1_filtered_4FGL_J2327.5-3259_daily_bin1514.fits.....................!
real 41.75
user 40.40
sys 1.16

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10114E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    2.9600       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .11932E-01   1.0000         .10000E-03   10000.    
     4 'Prefactor '    18.192       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .36402E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .14585E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    3.8038       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10386E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10353E-02   1.0000         .10000E-03   10000.    
    11 'norm      '    1.2319       1.0000         .10000E-03   10000.    
    12 'Prefactor '    60.645       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10034E-03   1.0000         .10000E-03   10000.    
    14 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    .10028E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10024E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10026E-03   1.0000         .10000E-03   10000.    
    18 'norm      '    1.6849       1.0000         .10000E-03   10000.    
    19 'norm      '    2.9596       1.0000         .10000E-03   10000.    
    20 'Prefactor '    66.147       1.0000         .10000E-03   10000.    
    21 'norm      '    2.8920       1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10018E-03   1.0000         .10000E-03   10000.    
    24 'Prefactor '    .10169E-03   1.0000         .10000E-03   10000.    
    25 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    26 'Normalizat'    1.0884       1.0000         .10000E-01   10.000    
    27 'Prefactor '    1.0952       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=   5186.593     FROM MIGRAD    STATUS=CONVERGED    668 CALLS     3323 TOTAL
                     EDM=   .20E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .5%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    65.817        .25169E-05** at limit **
   2  Prefactor     2.9572        3.7441       -.10607E-05   -.71487E-03
   3  Prefactor     .10172E-03    13.889        .24349E-05** at limit **
   4  Prefactor     18.116        42.992       -.71076E-04    .33329E-04
   5  Prefactor     .10011E-03    142.79        .11175E-04** at limit **
   6  Prefactor     .10003E-03    56.283       -.13526E-04** at limit **
   7  Prefactor     .10000E-03    6.7920        .10550E-06** at limit **
   8  norm          3.8071        4.8494       -.21144E-06    .18630E-03
   9  Prefactor     .10000E-03    22.409       -.11827E-04** at limit **
  10  Prefactor     .10016E-03    14.214        .33834E-06** at limit **
  11  norm          1.2330        .89071       -.11416E-06    .87524E-03
  12  Prefactor     60.628        78.947       -.14360E-04    .42395E-04
  13  Prefactor     .10000E-03    12.308       -.63309E-06** at limit **
  14  norm          .10000E-03    1.8534        .43634E-07** at limit **
  15  norm          .10000E-03    5.7487        .22524E-07** at limit **
  16  Prefactor     .10000E-03    29.587        .64954E-05** at limit **
  17  Prefactor     .10000E-03    26.895        .55579E-05** at limit **
  18  norm          1.6854        2.8591       -.40027E-06   -.32747E-03
  19  norm          2.9590        3.9461       -.81926E-06   -.46778E-03
  20  Prefactor     66.146        36.141       -.17749E-05    .30604E-04
  21  norm          2.8918        3.7671       -.64599E-06   -.31164E-03
  22  Prefactor     .10000E-03    26.600        .49888E-05** at limit **
  23  Prefactor     .10000E-03    34.598       -.65496E-05** at limit **
  24  Prefactor     .10000E-03    7.0460       -.27171E-06** at limit **
  25  Prefactor     .10000E-03    17.121        .25264E-05** at limit **
  26  Normalizat    1.0884        .20157        .39553E-05    .44187E-04
  27  Prefactor     1.0952        .21858        .45110E-05    .49989E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 2.95715
  Prefactor  = 0.000101725
  Prefactor  = 18.1158
  Prefactor  = 0.000100113
  Prefactor  = 0.000100027
  Prefactor  = 0.0001
  norm       = 3.80712
  Prefactor  = 0.0001
  Prefactor  = 0.000100164
  norm       = 1.23296
  Prefactor  = 60.6279
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 1.68535
  norm       = 2.95902
  Prefactor  = 66.1463
  norm       = 2.89182
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000100001
  Prefactor  = 0.0001
  Normalizat = 1.0884
  Prefactor  = 1.09519
 **********
 **   18 **HESSE 
 **********

 FCN=   5186.593     FROM HESSE     STATUS=OK           490 CALLS     3813 TOTAL
                     EDM=   .18E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    65.893        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     2.9572        3.6407        .14620E-03   -1.5364    
   3  Prefactor     .10172E-03    104.25        .50483E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     18.116        43.052        .93903E-04   -1.4856    
   5  Prefactor     .10011E-03    144.87        .21306E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10003E-03    57.954        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    6.8102        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          3.8071        4.8185        .15937E-03   -1.5318    
   9  Prefactor     .10000E-03    22.580        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10016E-03    22.842        .57100E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          1.2330        .92229        .46017E-04   -1.5486    
  12  Prefactor     60.628        78.939        .51523E-04   -1.4149    
  13  Prefactor     .10000E-03    12.455        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          .10000E-03    1.8543        .95739E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          .10000E-03    5.8025        .16861E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    29.646        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    26.930        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          1.6854        2.8223        .15245E-03   -1.5448    
  19  norm          2.9590        3.9316        .15506E-03   -1.5364    
  20  Prefactor     66.146        36.066        .49347E-04   -1.4080    
  21  norm          2.8918        3.7481        .15295E-03   -1.5368    
  22  Prefactor     .10000E-03    26.601        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     .10000E-03    34.662        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     .10000E-03    7.3043        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Prefactor     .10000E-03    17.128        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  Normalizat    1.0884        .25003        .24729E-03   -.90125    
  27  Prefactor     1.0952        .27105        .26920E-03   -.89620    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.81644e-08
Minuit parameter uncertainties:
  1  0.000275419
  2  3.641
  3  0.0268664
  4  43.1263
  5  0.00812359
  6  0.00249435
  7  2.18942e-05
  8  4.81904
  9  7.85425e-06
  10  0.00387059
  11  0.922304
  12  79.0759
  13  7.85207e-05
  14  1.82617e-06
  15  3.54851e-05
  16  9.67376e-05
  17  9.33902e-05
  18  2.82248
  19  3.93196
  20  36.0783
  21  3.74837
  22  2.64291e-05
  23  0.000116486
  24  0.000123871
  25  4.62091e-05
  26  0.2503
  27  0.271387
Done.

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

Extracting fit parameters...

4FGL J2327.5-3259
   Spectrum: PowerLaw
454    Prefactor:  1.000e-04  9.339e-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:  1.095e+00  2.714e-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.088e+00  2.503e-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: 7.11e-08 ph cm-2 s-1
Energy Flux Upper Limit: 5.55e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/918917/likelihoodResults_631756801_632016001_4FGL_J2327.5-3259_daily_bin1514.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) = 5186.59288572
delta logL = -0.000176846227077

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 5186.59271079
delta logL = -1.91545677808e-06

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .12286E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.9806       1.0000          .0000       10.000    
     3 'Normalizat'    1.0884       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0952       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=   5186.593     FROM MIGRAD    STATUS=CONVERGED    116 CALLS      301 TOTAL
                     EDM=   .26E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10001E-03    69.855        .18142E-01** at limit **
   2  Index         2.1797        5.3766        .50000        .40086E-07
   3  Normalizat    1.0884        .72110E-02    .24728E-03   -.26067E-04
   4  Prefactor     1.0952        .79068E-02    .26920E-03   -.23016E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100006
  Index      = 2.17966
  Normalizat = 1.0884
  Prefactor  = 1.09519
 **********
 **   18 **HESSE 
 **********

 FCN=   5186.593     FROM HESSE     STATUS=NOT POSDEF    29 CALLS      330 TOTAL
                     EDM=   .13E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10001E-03    353.00        .36285E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.1797        8.8570        .50000       -.59930    
   3  Normalizat    1.0884        .16402E-01    .98914E-05   -.90125    
   4  Prefactor     1.0952        .17984E-01    .10768E-04   -.89620    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 1.31945e-09
Minuit parameter uncertainties:
  1  0.00284869
  2  820.3
  3  0.0164016
  4  0.017984
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/918917': 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) = 5186.59270857
delta logL = 3.00450665236e-07

Extracting fit parameters...

4FGL J2327.5-3259
   Spectrum: PowerLaw
454    Prefactor:  1.000e-04  2.849e-03  1.000e-04  1.000e+04 ( 1.000e-13)
455        Index:  2.180e+00  8.203e+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:  1.095e+00  1.798e-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.088e+00  1.640e-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/918917/cmap_HighResolution_631756801_632016001_4FGL_J2327.5-3259_daily_bin1514.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='5.55e-03', job_status='DONE', photon_flux_upper_limit='7.11e-08', time_completed='2021-09-29 20:30:12.395350', job_id='918917', GAL2='1.10', fit_tolerance='1e-08', EG2='1.09', EG='1.09', time_epoch_completed='1632972612.4', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.10', dlogl='3.00e-07', ts2='-0.00', photon_index_error='0.00', photon_index='2.56' WHERE bin_id='1514' AND source_name='4FGL J2327.5-3259' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep 29 20:30:12 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0218>
Subject: Job 918917: <4FGL_J2327.5-3259_daily_bin1514> in cluster <slac> Done

Job <4FGL_J2327.5-3259_daily_bin1514> was submitted from host <rhel6-64p> by user <kocevski> in cluster <slac> at Wed Sep 29 20:15:29 2021
Job was executed on host(s) <bullet0218>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Sep 29 20:15:31 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:15:31 2021
Terminated at Wed Sep 29 20:30:12 2021
Results reported at Wed Sep 29 20:30:12 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2327.5-3259_daily_bin1514 351.883 -32.9869 631756801 632016001 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 :                                   683.00 sec.
    Max Memory :                                 1229 MB
    Average Memory :                             253.89 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   881 sec.
    Turnaround time :                            883 sec.

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

