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


Performing analysis on: 4FGL_J2327.5-3259_daily_bin140
RA = 351.883, Dec = -32.9869
tmin = 275616001, tmax = 275875201
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='912657', job_status='RUN', time_executed='2021-09-29 19:58:59.450729', time_epoch_executed='1632970739.45' WHERE source_name='4FGL J2327.5-3259' and cadence='daily' and bin_id='140'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/912657

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/912657/ft1_4FGL_J2327.5-3259_daily_bin140.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/912657/ft2_4FGL_J2327.5-3259_daily_bin140.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/912657/ft1_4FGL_J2327.5-3259_daily_bin140.fits outfile=/scratch/kocevski/912657/ft1_filteredMKT_4FGL_J2327.5-3259_daily_bin140.fits ra=351.883 dec=-32.9869 rad=12.0 tmin=275616001.0 tmax=275875201.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 4.19
user 3.94
sys 0.22

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/912657/ft1_filtered_4FGL_J2327.5-3259_daily_bin140.fits" evtable="EVENTS" scfile=/scratch/kocevski/912657/ft2_4FGL_J2327.5-3259_daily_bin140.fits sctable="SC_DATA" outfile=/scratch/kocevski/912657/ltcube_275616001_275875201_4FGL_J2327.5-3259_daily_bin140.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/912657/ft2_4FGL_J2327.5-3259_daily_bin140.fits
.....................!
real 11.74
user 11.40
sys 0.31

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/912657/ft1_filtered_4FGL_J2327.5-3259_daily_bin140.fits evtable="EVENTS" scfile=/scratch/kocevski/912657/ft2_4FGL_J2327.5-3259_daily_bin140.fits sctable="SC_DATA" expcube=/scratch/kocevski/912657/ltcube_275616001_275875201_4FGL_J2327.5-3259_daily_bin140.fits outfile=/scratch/kocevski/912657/expmap_275616001_275875201_4FGL_J2327.5-3259_daily_bin140.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/912657/ltcube_275616001_275875201_4FGL_J2327.5-3259_daily_bin140.fits
.....................!
real 190.79
user 185.69
sys 4.74

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/912657/ft1_filtered_4FGL_J2327.5-3259_daily_bin140.fits scfile=/scratch/kocevski/912657/ft2_4FGL_J2327.5-3259_daily_bin140.fits outfile=/scratch/kocevski/912657/cmap_275616001_275875201_4FGL_J2327.5-3259_daily_bin140.fits algorithm="CMAP" ebinalg="LOG" emin=30.0 emax=200000.0 ebinfile=NONE tbinalg="LIN" tbinfile=NONE nxpix=160 nypix=160 binsz=0.25 coordsys="CEL" xref=351.883 yref=-32.9869 axisrot=0.0 rafield="RA" decfield="DEC" proj="AIT" hpx_ordering_scheme="RING" hpx_order=3 hpx_ebin=yes hpx_region="" evtable="EVENTS" sctable="SC_DATA" efield="ENERGY" tfield="TIME" chatter=2 clobber=yes debug=no gui=no mode="ql"

WARNING: version mismatch between CFITSIO header (v3.43) and linked library (v3.41).

This is gtbin version HEAD
real 0.53
user 0.37
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/912657/ft1_filtered_4FGL_J2327.5-3259_daily_bin140.fits scfile=/scratch/kocevski/912657/ft2_4FGL_J2327.5-3259_daily_bin140.fits outfile=/scratch/kocevski/912657/cmap_HighResolution_275616001_275875201_4FGL_J2327.5-3259_daily_bin140.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/912657/ft1_filtered_4FGL_J2327.5-3259_daily_bin140.fits evtable="EVENTS" scfile=/scratch/kocevski/912657/ft2_4FGL_J2327.5-3259_daily_bin140.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/912657/Model_4FGL_J2327.5-3259_daily_bin140.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/912657/ft1_filtered_4FGL_J2327.5-3259_daily_bin140.fits.....................!
real 37.82
user 36.58
sys 1.11

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10218E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10022E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10022E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    2.6290       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10018E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    9.5002       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    12.813       1.0000         .10000E-03   10000.    
    11 'norm      '    .49133       1.0000         .10000E-03   10000.    
    12 'Prefactor '    32.516       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    14 'norm      '    3.2758       1.0000         .10000E-03   10000.    
    15 'norm      '    14.852       1.0000         .10000E-03   10000.    
    16 'Prefactor '    36.186       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .14816E-02   1.0000         .10000E-03   10000.    
    18 'norm      '    6.8263       1.0000         .10000E-03   10000.    
    19 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10288E-03   1.0000         .10000E-03   10000.    
    21 'norm      '    14.001       1.0000         .10000E-03   10000.    
    22 'Prefactor '    268.11       1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10163E-03   1.0000         .10000E-03   10000.    
    24 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    25 'Prefactor '    4.5409       1.0000         .10000E-03   10000.    
    26 'Normalizat'    1.3785       1.0000         .10000E-01   10.000    
    27 'Prefactor '    .25464       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=   4608.284     FROM MIGRAD    STATUS=CONVERGED   1152 CALLS     3819 TOTAL
                     EDM=   .18E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    165.58        .18142E-02** at limit **
   2  Prefactor     .10000E-03    2.4005        .16454E-02** at limit **
   3  Prefactor     .10000E-03    15.596        .18142E-02** at limit **
   4  Prefactor     .10000E-03    7.0785        .17634E-02** at limit **
   5  Prefactor     2.6385        100.46        .25150E-03    .79376E-04
   6  Prefactor     .10000E-03    20.915        .18142E-02** at limit **
   7  Prefactor     .10000E-03    5.2577        .15158E-02** at limit **
   8  norm          9.5007        6.1255        .11571E-03    .36413E-03
   9  Prefactor     .10001E-03    18.714        .18142E-02** at limit **
  10  Prefactor     12.820        14.103        .11190E-03    .16296E-03
  11  norm          .49158        .57818        .48424E-03    .45680E-03
  12  Prefactor     32.527        51.856        .70270E-04    .65588E-04
  13  Prefactor     .10000E-03    3.8736        .13036E-02** at limit **
  14  norm          3.2755        7.7465        .22373E-03    .28873E-03
  15  norm          14.853        10.555        .10393E-03    .25520E-03
  16  Prefactor     36.165        61.031        .66622E-04    .26402E-03
  17  Prefactor     .10001E-03    58.202        .13500    ** at limit **
  18  norm          6.8293        9.6502        .14370E-03    .59994E-03
  19  norm          .10000E-03    .94696        .64330E-03** at limit **
  20  Prefactor     .10001E-03    43.113        .18142E-02** at limit **
  21  norm          14.003        6.4103        .10502E-03    .73547E-03
  22  Prefactor     268.16        130.50        .12382E-03   -.68662E-04
  23  Prefactor     .10000E-03    28.738        .18142E-02** at limit **
  24  Prefactor     .10000E-03    2.9533        .11329E-02** at limit **
  25  Prefactor     4.5458        60.148        .18892E-03    .66376E-04
  26  Normalizat    1.3785        .23833        .18984E-03    .21257E-03
  27  Prefactor     .25447        .22725        .42361E-03    .45972E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 2.63848
  Prefactor  = 0.000100001
  Prefactor  = 0.0001
  norm       = 9.50067
  Prefactor  = 0.000100006
  Prefactor  = 12.8196
  norm       = 0.491584
  Prefactor  = 32.5272
  Prefactor  = 0.0001
  norm       = 3.27548
  norm       = 14.8528
  Prefactor  = 36.1652
  Prefactor  = 0.000100009
  norm       = 6.82931
  norm       = 0.0001
  Prefactor  = 0.00010001
  norm       = 14.0032
  Prefactor  = 268.157
  Prefactor  = 0.000100002
  Prefactor  = 0.0001
  Prefactor  = 4.54583
  Normalizat = 1.37849
  Prefactor  = 0.254474
 **********
 **   18 **HESSE 
 **********

 FCN=   4608.284     FROM HESSE     STATUS=OK           472 CALLS     4291 TOTAL
                     EDM=   .18E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    165.65        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    2.4046        .32908E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    15.600        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    7.0787        .35269E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     2.6385        100.42        .10060E-04   -1.5383    
   6  Prefactor     .10000E-03    20.931        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    5.2585        .30317E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          9.5007        6.1254        .46283E-05   -1.5091    
   9  Prefactor     .10001E-03    18.718        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     12.820        14.122        .44761E-05   -1.4992    
  11  norm          .49158        .57874        .19370E-04   -1.5568    
  12  Prefactor     32.527        51.854        .14054E-04   -1.4567    
  13  Prefactor     .10000E-03    3.8737        .26071E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          3.2755        7.7465        .89492E-05   -1.5346    
  15  norm          14.853        10.555        .41572E-05   -1.4937    
  16  Prefactor     36.165        61.037        .13324E-04   -1.4504    
  17  Prefactor     .10001E-03    57.316        .13642       -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          6.8293        9.6518        .57479E-05   -1.5185    
  19  norm          .10000E-03    .94698        .12866E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10001E-03    43.144        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  norm          14.003        6.4101        .42008E-05   -1.4959    
  22  Prefactor     268.16        130.50        .24763E-04   -1.2418    
  23  Prefactor     .10000E-03    28.740        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     .10000E-03    2.9538        .22659E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Prefactor     4.5458        60.141        .75567E-05   -1.5282    
  26  Normalizat    1.3785        .23834        .37968E-04   -.81253    
  27  Prefactor     .25447        .22723        .16945E-04   -1.2504    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.83462e-09
Minuit parameter uncertainties:
  1  0.000292944
  2  6.72686e-05
  3  8.313e-05
  4  1.67791e-05
  5  32.6133
  6  0.000332712
  7  3.4336e-05
  8  6.12576
  9  0.000659401
  10  14.1256
  11  0.578745
  12  51.9261
  13  4.60437e-05
  14  7.74882
  15  10.5563
  16  61.1428
  17  0.0014055
  18  9.65404
  19  9.73211e-06
  20  0.00129019
  21  6.41038
  22  130.641
  23  0.000425482
  24  8.30236e-06
  25  33.1096
  26  0.238533
  27  0.228025
Done.

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

Extracting fit parameters...

4FGL J2327.5-3259
   Spectrum: PowerLaw
454    Prefactor:  1.000e-04  1.406e-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:  2.545e-01  2.280e-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.378e+00  2.385e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/912657/likelihoodResults_275616001_275875201_4FGL_J2327.5-3259_daily_bin140.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) = 4608.28418876
delta logL = -5.74899968342e-06

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 4608.28418876
delta logL = -5.74739533477e-06

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .96358E-02   1.0000         .10000E-03   10000.    
     2 'Index     '    2.5571       1.0000          .0000       10.000    
     3 'Normalizat'    1.3785       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .25448       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.

 FCN=   4608.282     FROM MIGRAD    STATUS=CONVERGED    160 CALLS      346 TOTAL
                     EDM=   .24E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     2.0236        1433.4        .90713E-02    .68934E-04
   2  Index         2.9194        3.7870        .50000        .38767E-04
   3  Normalizat    1.3757        .15240E-01    .31530E-01   -.95983E-04
   4  Prefactor     .25564        .15603E-01    .95421E-01    .22620E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 2.02364
  Index      = 2.91939
  Normalizat = 1.37574
  Prefactor  = 0.255643
 **********
 **   18 **HESSE 
 **********

 FCN=   4608.282     FROM HESSE     STATUS=OK            31 CALLS      377 TOTAL
                     EDM=   .67E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     2.0236        179.59        .36285E-03   -1.5423    
   2  Index         2.9194        3.5794        .19073E-01   -.42918    
   3  Normalizat    1.3757        .22408        .19001E-03   -.81333    
   4  Prefactor     .25564        .22392        .42268E-03   -1.2496    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 6.65735e-10
Minuit parameter uncertainties:
  1  38.2451
  2  4.12098
  3  0.224244
  4  0.22468
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/912657': 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) = 4608.28239124
delta logL = 0.00179177548671

Extracting fit parameters...

4FGL J2327.5-3259
   Spectrum: PowerLaw
454    Prefactor:  2.024e+00  3.825e+01  1.000e-04  1.000e+04 ( 1.000e-13)
455        Index:  2.919e+00  4.121e+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:  2.556e-01  2.247e-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.376e+00  2.242e-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/912657/cmap_HighResolution_275616001_275875201_4FGL_J2327.5-3259_daily_bin140.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='7.54e-03', job_status='DONE', photon_flux_upper_limit='9.66e-08', time_completed='2021-09-29 20:10:29.233062', job_id='912657', GAL2='0.26', fit_tolerance='1e-08', EG2='1.38', EG='1.38', time_epoch_completed='1632971429.23', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.25', dlogl='1.79e-03', ts2='0.00', photon_index_error='0.00', photon_index='2.56' WHERE bin_id='140' AND source_name='4FGL J2327.5-3259' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep 29 20:10:29 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0272>
Subject: Job 912657: <4FGL_J2327.5-3259_daily_bin140> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2327.5-3259_daily_bin140 351.883 -32.9869 275616001 275875201 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 :                                   686.25 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             276.53 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   900 sec.
    Turnaround time :                            905 sec.

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

