/nfs/farm/g/glast/g/LCRepository/bin/miniconda2/envs/fermitools_v1.0.5/lib/python2.7/site-packages/pyfits/__init__.py:22: PyFITSDeprecationWarning: PyFITS is deprecated, please use astropy.io.fits
  PyFITSDeprecationWarning)  # noqa

Likelihood Analysis Tool
Support Contact: Daniel Kocevski (daniel.kocevski@nasa.gov)


Waiting 191 seconds before starting...
Proceeding.

Importing modules...
This is make3FGLxml version 01r0.
The default diffuse model files and names are for pass 8 and assume you have v10r00p05 of the Fermi Science Tools or higher.
This is make4FGLxml version 01r04.
The default diffuse model files and names are for pass 8 and 4FGL and assume you have v11r5p3 of the Fermi Science Tools or higher.

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

/nfs/farm/g/glast/g/LCRepository/bin/miniconda2/envs/fermitools_v1.0.5/lib/python2.7/site-packages/matplotlib/cbook/deprecation.py:106: MatplotlibDeprecationWarning: The mpl_toolkits.axes_grid module was deprecated in version 2.1. Use mpl_toolkits.axes_grid1 and mpl_toolkits.axisartist provies the same functionality instead.
  warnings.warn(message, mplDeprecation, stacklevel=1)

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

number of points = 7452
number of fields = 30
RA_SUN column already exists. File will not be modified.
Done.


Performing analysis on: 4FGL_J2327.5-3259_daily_bin712
RA = 351.883, Dec = -32.9869
tmin = 423878401, tmax = 424137601
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='915711', job_status='RUN', time_executed='2021-09-29 20:08:54.095982', time_epoch_executed='1632971334.1' WHERE source_name='4FGL J2327.5-3259' and cadence='daily' and bin_id='712'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/915711

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/915711/ft1_4FGL_J2327.5-3259_daily_bin712.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/915711/ft2_4FGL_J2327.5-3259_daily_bin712.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/915711/ft1_4FGL_J2327.5-3259_daily_bin712.fits outfile=/scratch/kocevski/915711/ft1_filteredMKT_4FGL_J2327.5-3259_daily_bin712.fits ra=351.883 dec=-32.9869 rad=12.0 tmin=423878401.0 tmax=424137601.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.46
user 5.10
sys 0.22

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/915711/ft1_filtered_4FGL_J2327.5-3259_daily_bin712.fits" evtable="EVENTS" scfile=/scratch/kocevski/915711/ft2_4FGL_J2327.5-3259_daily_bin712.fits sctable="SC_DATA" outfile=/scratch/kocevski/915711/ltcube_423878401_424137601_4FGL_J2327.5-3259_daily_bin712.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/915711/ft2_4FGL_J2327.5-3259_daily_bin712.fits
.....................!
real 11.88
user 11.45
sys 0.34

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/915711/ft1_filtered_4FGL_J2327.5-3259_daily_bin712.fits evtable="EVENTS" scfile=/scratch/kocevski/915711/ft2_4FGL_J2327.5-3259_daily_bin712.fits sctable="SC_DATA" expcube=/scratch/kocevski/915711/ltcube_423878401_424137601_4FGL_J2327.5-3259_daily_bin712.fits outfile=/scratch/kocevski/915711/expmap_423878401_424137601_4FGL_J2327.5-3259_daily_bin712.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/915711/ltcube_423878401_424137601_4FGL_J2327.5-3259_daily_bin712.fits
.....................!
real 189.84
user 184.99
sys 4.28

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

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

This is gtbin version HEAD
real 0.54
user 0.37
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/915711/ft1_filtered_4FGL_J2327.5-3259_daily_bin712.fits scfile=/scratch/kocevski/915711/ft2_4FGL_J2327.5-3259_daily_bin712.fits outfile=/scratch/kocevski/915711/cmap_HighResolution_423878401_424137601_4FGL_J2327.5-3259_daily_bin712.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.55
user 0.39
sys 0.15

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/915711/ft1_filtered_4FGL_J2327.5-3259_daily_bin712.fits evtable="EVENTS" scfile=/scratch/kocevski/915711/ft2_4FGL_J2327.5-3259_daily_bin712.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/915711/Model_4FGL_J2327.5-3259_daily_bin712.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/915711/ft1_filtered_4FGL_J2327.5-3259_daily_bin712.fits.....................!
real 37.45
user 36.15
sys 1.17

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    20.743       1.0000         .10000E-03   10000.    
     2 'Prefactor '    3.1632       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10038E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    7.8006       1.0000         .10000E-03   10000.    
     5 'Prefactor '    4.2222       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10008E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    7.8693       1.0000         .10000E-03   10000.    
     8 'norm      '    .11093E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .65185E-01   1.0000         .10000E-03   10000.    
    11 'norm      '    .88902E-01   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10245E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    1.5194       1.0000         .10000E-03   10000.    
    14 'norm      '    3.8950       1.0000         .10000E-03   10000.    
    15 'norm      '    3.3913       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10966E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    4.6473       1.0000         .10000E-03   10000.    
    18 'norm      '    2.9900       1.0000         .10000E-03   10000.    
    19 'norm      '    2.1435       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10046E-03   1.0000         .10000E-03   10000.    
    21 'norm      '    17.431       1.0000         .10000E-03   10000.    
    22 'Prefactor '    .37756E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10052E-03   1.0000         .10000E-03   10000.    
    24 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    25 'Prefactor '    .13034E-03   1.0000         .10000E-03   10000.    
    26 'Normalizat'    .63658       1.0000         .10000E-01   10.000    
    27 'Prefactor '    .97217       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=   4785.103     FROM MIGRAD    STATUS=CONVERGED   1213 CALLS     3444 TOTAL
                     EDM=   .83E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     20.783        31.186        .87943E-04   -.52226E-04
   2  Prefactor     3.1654        3.0017        .11060E-03    .30569E-03
   3  Prefactor     .10000E-03    8.0905        .18142E-02** at limit **
   4  Prefactor     7.8021        18.389        .71785E-03    .12099E-04
   5  Prefactor     4.2186        46.163        .19611E-03    .65507E-05
   6  Prefactor     .10000E-03    3.6508        .12874E-02** at limit **
   7  Prefactor     7.8686        7.3766        .14294E-03    .15350E-04
   8  norm          .10000E-03    7.6039        .18129E-02** at limit **
   9  Prefactor     .10000E-03    5.4465        .15739E-02** at limit **
  10  Prefactor     .10000E-03    14.766        .39031E-01** at limit **
  11  norm          .93017E-01    .60631        .66132E-03    .10189E-02
  12  Prefactor     .10000E-03    18.246        .18142E-02** at limit **
  13  Prefactor     1.5360        7.2264        .33268E-03    .25090E-03
  14  norm          3.8956        3.8828        .12915E-03   -.74471E-04
  15  norm          3.3946        7.0321        .21970E-03    .12341E-03
  16  Prefactor     .10000E-03    32.445        .18142E-02** at limit **
  17  Prefactor     4.6363        67.390        .18669E-03    .38182E-04
  18  norm          2.9900        4.1189        .14809E-03   -.28781E-03
  19  norm          2.1380        2.9872        .13577E-03   -.39270E-04
  20  Prefactor     .10000E-03    47.569        .36285E-03** at limit **
  21  norm          17.426        6.2361        .94478E-04   -.20541E-03
  22  Prefactor     .10000E-03    40.777        .14768    ** at limit **
  23  Prefactor     .10000E-03    13.784        .18142E-02** at limit **
  24  Prefactor     .10000E-03    1.2205        .74549E-03** at limit **
  25  Prefactor     .10000E-03    35.190        .18142E-02** at limit **
  26  Normalizat    .63703        .18829        .22628E-03    .48147E-03
  27  Prefactor     .97181        .20953        .21268E-03    .44966E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 20.7827
  Prefactor  = 3.1654
  Prefactor  = 0.0001
  Prefactor  = 7.80211
  Prefactor  = 4.21861
  Prefactor  = 0.0001
  Prefactor  = 7.86855
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000100003
  norm       = 0.0930169
  Prefactor  = 0.0001
  Prefactor  = 1.53604
  norm       = 3.89562
  norm       = 3.39463
  Prefactor  = 0.0001
  Prefactor  = 4.63627
  norm       = 2.98996
  norm       = 2.138
  Prefactor  = 0.0001
  norm       = 17.4261
  Prefactor  = 0.000100001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Normalizat = 0.637029
  Prefactor  = 0.971809
 **********
 **   18 **HESSE 
 **********

 FCN=   4785.103     FROM HESSE     STATUS=OK           482 CALLS     3926 TOTAL
                     EDM=   .67E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     20.783        31.185        .35177E-05   -1.4796    
   2  Prefactor     3.1654        3.0015        .44242E-05   -1.5352    
   3  Prefactor     .10000E-03    8.0909        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     7.8021        18.384        .28714E-04   -1.5149    
   5  Prefactor     4.2186        46.140        .78444E-05   -1.5297    
   6  Prefactor     .10000E-03    3.6511        .25748E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     7.8686        7.3765        .57175E-05   -1.5147    
   8  norm          .10000E-03    7.6564        .36257E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    5.4467        .31477E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    9.4049        .48042E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          .93017E-01    .53550        .26453E-04   -1.5647    
  12  Prefactor     .10000E-03    18.247        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     1.5360        7.1792        .13307E-04   -1.5460    
  14  norm          3.8956        3.8828        .51660E-05   -1.5313    
  15  norm          3.3946        7.0312        .87882E-05   -1.5339    
  16  Prefactor     .10000E-03    32.447        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     4.6363        67.333        .74676E-05   -1.5277    
  18  norm          2.9900        4.1183        .59236E-05   -1.5362    
  19  norm          2.1380        2.9871        .54310E-05   -1.5416    
  20  Prefactor     .10000E-03    47.571        .72569E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  norm          17.426        6.2357        .37791E-05   -1.4873    
  22  Prefactor     .10000E-03    40.451        .14879       -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     .10000E-03    13.784        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     .10000E-03    1.2206        .14910E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Prefactor     .10000E-03    35.196        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  Normalizat    .63703        .18821        .45255E-04   -1.0643    
  27  Prefactor     .97181        .20946        .42535E-04   -.93675    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 6.68161e-10
Minuit parameter uncertainties:
  1  31.2093
  2  3.00168
  3  1.30295e-05
  4  18.3972
  5  27.9302
  6  1.00611e-05
  7  7.37732
  8  1.41838e-05
  9  1.73071e-05
  10  0.000360237
  11  0.44613
  12  7.98921e-06
  13  6.64266
  14  3.88302
  15  7.03293
  16  0.00013965
  17  35.3845
  18  4.11866
  19  2.98734
  20  0.000269393
  21  6.23592
  22  0.00046236
  23  8.55705e-06
  24  2.07716e-06
  25  0.000120009
  26  0.188401
  27  0.209634
Done.

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

Extracting fit parameters...

4FGL J2327.5-3259
   Spectrum: PowerLaw
454    Prefactor:  4.636e+00  3.538e+01  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:  9.718e-01  2.096e-01  0.000e+00  1.000e+01 ( 1.000e+00)
606        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
607        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
604   Normalization:  6.370e-01  1.884e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/915711/likelihoodResults_423878401_424137601_4FGL_J2327.5-3259_daily_bin712.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): 0
logL (Free Index) = 4785.08288819
delta logL = 0.0196942165912

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 4785.07596881
delta logL = 0.0266136016526

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    8.3953       1.0000         .10000E-03   10000.    
     2 'Index     '    1.9157       1.0000          .0000       10.000    
     3 'Normalizat'    .64074       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .96721       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=   4785.076     FROM MIGRAD    STATUS=CONVERGED     63 CALLS      282 TOTAL
                     EDM=   .34E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     8.4647        6621.1        .34589E-02    .11415E-04
   2  Index         1.9169        6.0009        .48425       -.19428E-04
   3  Normalizat    .64086        .50907E-01    .41494E-01    .19383E-04
   4  Prefactor     .96713        .56275E-01    .45856E-01    .11209E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 8.46468
  Index      = 1.91694
  Normalizat = 0.640858
  Prefactor  = 0.967129
 **********
 **   18 **HESSE 
 **********

 FCN=   4785.076     FROM HESSE     STATUS=OK            33 CALLS      315 TOTAL
                     EDM=   .43E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     8.4647        35.491        .13836E-03   -1.5126    
   2  Index         1.9169        1.7573        .13978E-01   -.66443    
   3  Normalizat    .64086        .17915        .22563E-03   -1.0628    
   4  Prefactor     .96713        .20602        .21312E-03   -.93833    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.33988e-12
Minuit parameter uncertainties:
  1  34.7003
  2  1.8216
  3  0.17931
  4  0.206188
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/915711': 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) = 4785.07596638
delta logL = 0.0266160295541

Extracting fit parameters...

4FGL J2327.5-3259
   Spectrum: PowerLaw
454    Prefactor:  8.465e+00  3.470e+01  1.000e-04  1.000e+04 ( 1.000e-13)
455        Index:  1.917e+00  1.822e+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:  9.671e-01  2.062e-01  0.000e+00  1.000e+01 ( 1.000e+00)
606        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
607        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
604   Normalization:  6.409e-01  1.793e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 0.02
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/915711/cmap_HighResolution_423878401_424137601_4FGL_J2327.5-3259_daily_bin712.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='5.92e-03', job_status='DONE', photon_flux_upper_limit='7.59e-08', time_completed='2021-09-29 20:20:27.573193', job_id='915711', GAL2='0.97', fit_tolerance='1e-08', EG2='0.64', EG='0.64', time_epoch_completed='1632972027.57', return_code2='0', ts='0.02', comment='SUCCESS', return_code='0', GAL='0.97', dlogl='2.66e-02', ts2='0.07', photon_index_error='0.00', photon_index='2.56' WHERE bin_id='712' AND source_name='4FGL J2327.5-3259' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep 29 20:20:27 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0215>
Subject: Job 915711: <4FGL_J2327.5-3259_daily_bin712> in cluster <slac> Done

Job <4FGL_J2327.5-3259_daily_bin712> was submitted from host <rhel6-64p> by user <kocevski> in cluster <slac> at Wed Sep 29 20:05:33 2021
Job was executed on host(s) <bullet0215>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Sep 29 20:05:35 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:05:35 2021
Terminated at Wed Sep 29 20:20:28 2021
Results reported at Wed Sep 29 20:20:28 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2327.5-3259_daily_bin712 351.883 -32.9869 423878401 424137601 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 :                                   690.39 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             217.50 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   892 sec.
    Turnaround time :                            895 sec.

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

