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


Performing analysis on: 4FGL_J2327.5-3259_daily_bin1184
RA = 351.883, Dec = -32.9869
tmin = 546220801, tmax = 546480001
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='917478', job_status='RUN', time_executed='2021-09-29 20:12:22.652067', time_epoch_executed='1632971542.65' WHERE source_name='4FGL J2327.5-3259' and cadence='daily' and bin_id='1184'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/917478

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/917478/ft1_4FGL_J2327.5-3259_daily_bin1184.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/917478/ft2_4FGL_J2327.5-3259_daily_bin1184.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/917478/ft1_4FGL_J2327.5-3259_daily_bin1184.fits outfile=/scratch/kocevski/917478/ft1_filteredMKT_4FGL_J2327.5-3259_daily_bin1184.fits ra=351.883 dec=-32.9869 rad=12.0 tmin=546220801.0 tmax=546480001.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.92
user 3.63
sys 0.24

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/917478/ft1_filtered_4FGL_J2327.5-3259_daily_bin1184.fits" evtable="EVENTS" scfile=/scratch/kocevski/917478/ft2_4FGL_J2327.5-3259_daily_bin1184.fits sctable="SC_DATA" outfile=/scratch/kocevski/917478/ltcube_546220801_546480001_4FGL_J2327.5-3259_daily_bin1184.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/917478/ft2_4FGL_J2327.5-3259_daily_bin1184.fits
.....................!
real 16.81
user 16.43
sys 0.33

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/917478/ft1_filtered_4FGL_J2327.5-3259_daily_bin1184.fits evtable="EVENTS" scfile=/scratch/kocevski/917478/ft2_4FGL_J2327.5-3259_daily_bin1184.fits sctable="SC_DATA" expcube=/scratch/kocevski/917478/ltcube_546220801_546480001_4FGL_J2327.5-3259_daily_bin1184.fits outfile=/scratch/kocevski/917478/expmap_546220801_546480001_4FGL_J2327.5-3259_daily_bin1184.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/917478/ltcube_546220801_546480001_4FGL_J2327.5-3259_daily_bin1184.fits
.....................!
real 190.25
user 184.90
sys 4.94

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/917478/ft1_filtered_4FGL_J2327.5-3259_daily_bin1184.fits scfile=/scratch/kocevski/917478/ft2_4FGL_J2327.5-3259_daily_bin1184.fits outfile=/scratch/kocevski/917478/cmap_546220801_546480001_4FGL_J2327.5-3259_daily_bin1184.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.39
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/917478/ft1_filtered_4FGL_J2327.5-3259_daily_bin1184.fits scfile=/scratch/kocevski/917478/ft2_4FGL_J2327.5-3259_daily_bin1184.fits outfile=/scratch/kocevski/917478/cmap_HighResolution_546220801_546480001_4FGL_J2327.5-3259_daily_bin1184.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.57
user 0.40
sys 0.14

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/917478/ft1_filtered_4FGL_J2327.5-3259_daily_bin1184.fits evtable="EVENTS" scfile=/scratch/kocevski/917478/ft2_4FGL_J2327.5-3259_daily_bin1184.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/917478/Model_4FGL_J2327.5-3259_daily_bin1184.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/917478/ft1_filtered_4FGL_J2327.5-3259_daily_bin1184.fits.....................!
real 47.67
user 46.43
sys 1.14

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    8.8014       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .72290E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    16.955       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    10.664       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10080E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    4.5395       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .12950E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    1.3020       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .13905E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .11756E-01   1.0000         .10000E-03   10000.    
    14 'norm      '    3.9182       1.0000         .10000E-03   10000.    
    15 'norm      '    17.321       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .12267E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .79791E-01   1.0000         .10000E-03   10000.    
    18 'norm      '    3.4024       1.0000         .10000E-03   10000.    
    19 'norm      '    4.4247       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10015E-03   1.0000         .10000E-03   10000.    
    21 'norm      '    4.1897       1.0000         .10000E-03   10000.    
    22 'Prefactor '    198.53       1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10022E-03   1.0000         .10000E-03   10000.    
    24 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    25 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    26 'Normalizat'    1.1963       1.0000         .10000E-01   10.000    
    27 'Prefactor '    .82731       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6080E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   6536.609     FROM MIGRAD    STATUS=CONVERGED    161 CALLS     2895 TOTAL
                     EDM=   .43E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.3%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     8.8033        1.3175       -.87087E-06    .10231E-02
   2  Prefactor     .10000E-03    1.4218       -.46657E-05** at limit **
   3  Prefactor     .10000E-03    12.819        .61065E-05** at limit **
   4  Prefactor     16.952        1.2196        .46988E-06   -.12641E-02
   5  Prefactor     .10000E-03    14.730       -.41717E-05** at limit **
   6  Prefactor     10.664        1.5086        .96519E-06   -.17040E-03
   7  Prefactor     .10000E-03    5.9988       -.28379E-05** at limit **
   8  norm          4.5407        4.8801        .86959E-06    .41690E-04
   9  Prefactor     .10000E-03    11.408       -.12905E-04** at limit **
  10  Prefactor     .10000E-03    25.438        .33357E-05** at limit **
  11  norm          1.3025        .76151       -.13272E-06   -.52498E-04
  12  Prefactor     .10000E-03    249.42       -.20905E-05** at limit **
  13  Prefactor     .10001E-03    63.731        .14088E-05** at limit **
  14  norm          3.9131        5.2390        .12479E-05    .45136E-04
  15  norm          17.320        9.4516        .50110E-05    .23010E-03
  16  Prefactor     .10001E-03    52.837        .88943E-06** at limit **
  17  Prefactor     .10013E-03    2133.7        .29329E-04** at limit **
  18  norm          3.3960        4.4040        .21776E-07    .52792E-04
  19  norm          4.4248        3.2269        .49731E-07   -.13849E-04
  20  Prefactor     .10000E-03    10.938       -.13618E-05** at limit **
  21  norm          4.1884        3.2782        .77697E-06    .73310E-04
  22  Prefactor     198.54        1.7277       -.33622E-07   -.53165E-04
  23  Prefactor     .10000E-03    48.817       -.11059E-05** at limit **
  24  Prefactor     .10000E-03    2.8911        .12245E-05** at limit **
  25  Prefactor     .10000E-03    11.979        .11679E-04** at limit **
  26  Normalizat    1.1961        .20465       -.91755E-05    .14778E-03
  27  Prefactor     .82750        .22211        .49439E-05    .10035E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 8.80331
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 16.952
  Prefactor  = 0.0001
  Prefactor  = 10.6644
  Prefactor  = 0.0001
  norm       = 4.54071
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 1.3025
  Prefactor  = 0.000100003
  Prefactor  = 0.000100006
  norm       = 3.91313
  norm       = 17.3197
  Prefactor  = 0.000100009
  Prefactor  = 0.000100132
  norm       = 3.39602
  norm       = 4.42478
  Prefactor  = 0.0001
  norm       = 4.18839
  Prefactor  = 198.538
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Normalizat = 1.19607
  Prefactor  = 0.827503
 **********
 **   18 **HESSE 
 **********

 FCN=   6536.609     FROM HESSE     STATUS=OK           564 CALLS     3459 TOTAL
                     EDM=   .92E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     8.8033        20.728        .33777E-02   -1.5114    
   2  Prefactor     .10000E-03    1.8409        .73256E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    12.795        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     16.952        20.072        .24317E-02   -1.4884    
   5  Prefactor     .10000E-03    14.712        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     10.664        9.1454        .30672E-02   -1.5055    
   7  Prefactor     .10000E-03    5.8808        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          4.5407        4.8777        .47237E-02   -1.5282    
   9  Prefactor     .10000E-03    12.163        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    24.825        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          1.3025        .81923        .96777E-02   -1.5480    
  12  Prefactor     .10000E-03    246.28        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10001E-03    7.3836        .90817E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          3.9131        5.2575        .50954E-02   -1.5312    
  15  norm          17.320        9.5805        .24059E-02   -1.4875    
  16  Prefactor     .10001E-03    114.04        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10013E-03    43.843        .13461       -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          3.3960        4.4530        .54833E-02   -1.5339    
  19  norm          4.4248        3.2311        .47861E-02   -1.5287    
  20  Prefactor     .10000E-03    10.936        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  norm          4.1884        3.2931        .49222E-02   -1.5299    
  22  Prefactor     198.54        117.27        .71687E-03   -1.2880    
  23  Prefactor     .10000E-03    48.266        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     .10000E-03    2.8421        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Prefactor     .10000E-03    12.025        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  Normalizat    1.1961        .17406        .51036E-01   -.86724    
  27  Prefactor     .82750        .18315        .64840E-01   -.98722    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 9.17917e-09
Minuit parameter uncertainties:
  1  20.7454
  2  9.44402e-06
  3  2.97509e-05
  4  20.0801
  5  3.5918e-05
  6  9.14662
  7  1.60888e-05
  8  4.87813
  9  4.4635e-05
  10  2.39055e-05
  11  0.819236
  12  0.00167326
  13  0.00042889
  14  5.25816
  15  9.58137
  16  0.00203122
  17  0.00480857
  18  4.45344
  19  3.23123
  20  1.07365e-05
  21  3.29321
  22  117.409
  23  3.78268e-05
  24  2.62952e-06
  25  5.09728e-05
  26  0.174142
  27  0.18329
Done.

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

Extracting fit parameters...

4FGL J2327.5-3259
   Spectrum: PowerLaw
454    Prefactor:  1.001e-04  4.809e-03  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:  8.275e-01  1.833e-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.196e+00  1.741e-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.05e-08 ph cm-2 s-1
Energy Flux Upper Limit: 6.28e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/917478/likelihoodResults_546220801_546480001_4FGL_J2327.5-3259_daily_bin1184.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) = 6536.60942588
delta logL = -2.08292021853e-06

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 6536.60942588
delta logL = -2.08114761335e-06

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .96366E-02   1.0000         .10000E-03   10000.    
     2 'Index     '    2.5571       1.0000          .0000       10.000    
     3 'Normalizat'    1.1961       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .82751       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.
 MACHINE ACCURACY LIMITS FURTHER IMPROVEMENT.

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.
 MIGRAD TERMINATED WITHOUT CONVERGENCE.

 FCN=   6536.530     FROM MIGRAD    STATUS=FAILED       183 CALLS      371 TOTAL
                     EDM=   .35E-07    STRATEGY= 1      ERR MATRIX APPROXIMATE

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     5.5044        76.296        .18142E-02    .31140E-03
   2  Index         3.5162        3.6071        .14379E-01    .27696E-03
   3  Normalizat    1.1761        .20884        .22729E-03   -.43716E-04
   4  Prefactor     .83897        .22128        .28502E-03   -.23294E-04
                               ERR DEF=  .500    
 START SIMPLEX MINIMIZATION.    CONVERGENCE WHEN EDM .LT.   .20E-04
 SIMPLEX MINIMIZATION HAS CONVERGED.

 FCN=   6536.530     FROM SIMPLEX   STATUS=UNCHANGED     86 CALLS      457 TOTAL
                     EDM=   .10E-04    STRATEGY= 1      ERR MATRIX APPROXIMATE

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     5.5044        76.296        .25007E-03   -1.5239    
   2  Index         3.5162        3.6071        .12969E-02   -.30130    
   3  Normalizat    1.1761        .20884        .27991E-03   -.87346    
   4  Prefactor     .83897        .22128        .26879E-03   -.98308    
                               ERR DEF=  .500    

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   6536.530     FROM MIGRAD    STATUS=CONVERGED     40 CALLS      497 TOTAL
                     EDM=   .12E-12    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     5.5044        22.134        .36285E-03    .12219E-05
   2  Index         3.5162        2.1249        .28758E-02   -.54555E-06
   3  Normalizat    1.1761        .20900        .90917E-05   -.25009E-06
   4  Prefactor     .83896        .22165        .11401E-04   -.19944E-06
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 5.50438
  Index      = 3.51619
  Normalizat = 1.17606
  Prefactor  = 0.838965
 **********
 **   18 **HESSE 
 **********

 FCN=   6536.530     FROM HESSE     STATUS=OK            23 CALLS      520 TOTAL
                     EDM=   .22E-12    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     5.5044        20.691        .14514E-04   -1.5239    
   2  Index         3.5162        2.0010        .11503E-03   -.30130    
   3  Normalizat    1.1761        .20955        .18183E-05   -.87346    
   4  Prefactor     .83896        .22219        .22801E-05   -.98308    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.21943e-13
Minuit parameter uncertainties:
  1  20.7183
  2  2.06479
  3  0.209704
  4  0.222432
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/917478': No such file or directory
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6536.53010783
delta logL = 0.0793159686455

Extracting fit parameters...

4FGL J2327.5-3259
   Spectrum: PowerLaw
454    Prefactor:  5.504e+00  2.072e+01  1.000e-04  1.000e+04 ( 1.000e-13)
455        Index:  3.516e+00  2.065e+00  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:  8.390e-01  2.224e-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.176e+00  2.097e-01  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/917478/cmap_HighResolution_546220801_546480001_4FGL_J2327.5-3259_daily_bin1184.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='6.28e-03', job_status='DONE', photon_flux_upper_limit='8.05e-08', time_completed='2021-09-29 20:26:42.818970', job_id='917478', GAL2='0.84', fit_tolerance='1e-08', EG2='1.18', EG='1.20', time_epoch_completed='1632972402.82', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.83', dlogl='7.93e-02', ts2='0.17', photon_index_error='0.00', photon_index='2.56' WHERE bin_id='1184' AND source_name='4FGL J2327.5-3259' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep 29 20:26:42 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0282>
Subject: Job 917478: <4FGL_J2327.5-3259_daily_bin1184> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2327.5-3259_daily_bin1184 351.883 -32.9869 546220801 546480001 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 :                                   806.00 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             318.63 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   949 sec.
    Turnaround time :                            951 sec.

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

