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


Performing analysis on: 4FGL_J2327.5-3259_daily_bin391
RA = 351.883, Dec = -32.9869
tmin = 340675201, tmax = 340934401
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='914109', job_status='RUN', time_executed='2021-09-29 20:02:41.280502', time_epoch_executed='1632970961.28' WHERE source_name='4FGL J2327.5-3259' and cadence='daily' and bin_id='391'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/914109

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

Retrieving the FT1 file...

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

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

Retrieving 49 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/914109/ft1_4FGL_J2327.5-3259_daily_bin391.fits


Retrieving the FT1 file...

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

Retrieving 51 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/914109/ft2_4FGL_J2327.5-3259_daily_bin391.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/914109/ft1_4FGL_J2327.5-3259_daily_bin391.fits outfile=/scratch/kocevski/914109/ft1_filteredMKT_4FGL_J2327.5-3259_daily_bin391.fits ra=351.883 dec=-32.9869 rad=12.0 tmin=340675201.0 tmax=340934401.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 6.12
user 5.84
sys 0.24

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/914109/ft2_4FGL_J2327.5-3259_daily_bin391.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/914109/ft1_filteredMKT_4FGL_J2327.5-3259_daily_bin391.fits evtable="EVENTS" outfile="/scratch/kocevski/914109/ft1_filtered_4FGL_J2327.5-3259_daily_bin391.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/914109/ft1_filtered_4FGL_J2327.5-3259_daily_bin391.fits" evtable="EVENTS" scfile=/scratch/kocevski/914109/ft2_4FGL_J2327.5-3259_daily_bin391.fits sctable="SC_DATA" outfile=/scratch/kocevski/914109/ltcube_340675201_340934401_4FGL_J2327.5-3259_daily_bin391.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/914109/ft2_4FGL_J2327.5-3259_daily_bin391.fits
.....................!
real 10.46
user 10.12
sys 0.31

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/914109/ft1_filtered_4FGL_J2327.5-3259_daily_bin391.fits evtable="EVENTS" scfile=/scratch/kocevski/914109/ft2_4FGL_J2327.5-3259_daily_bin391.fits sctable="SC_DATA" expcube=/scratch/kocevski/914109/ltcube_340675201_340934401_4FGL_J2327.5-3259_daily_bin391.fits outfile=/scratch/kocevski/914109/expmap_340675201_340934401_4FGL_J2327.5-3259_daily_bin391.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/914109/ltcube_340675201_340934401_4FGL_J2327.5-3259_daily_bin391.fits
.....................!
real 190.46
user 184.96
sys 5.15

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/914109/ft1_filtered_4FGL_J2327.5-3259_daily_bin391.fits scfile=/scratch/kocevski/914109/ft2_4FGL_J2327.5-3259_daily_bin391.fits outfile=/scratch/kocevski/914109/cmap_340675201_340934401_4FGL_J2327.5-3259_daily_bin391.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/914109/ft1_filtered_4FGL_J2327.5-3259_daily_bin391.fits scfile=/scratch/kocevski/914109/ft2_4FGL_J2327.5-3259_daily_bin391.fits outfile=/scratch/kocevski/914109/cmap_HighResolution_340675201_340934401_4FGL_J2327.5-3259_daily_bin391.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.37
sys 0.16

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    2.0947       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    17.954       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10172E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    2.8223       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    9.9038       1.0000         .10000E-03   10000.    
    11 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    28.395       1.0000         .10000E-03   10000.    
    13 'Prefactor '    7.1000       1.0000         .10000E-03   10000.    
    14 'norm      '    2.6970       1.0000         .10000E-03   10000.    
    15 'norm      '    8.2819       1.0000         .10000E-03   10000.    
    16 'Prefactor '    46.950       1.0000         .10000E-03   10000.    
    17 'Prefactor '    17.465       1.0000         .10000E-03   10000.    
    18 'norm      '    .10155E-03   1.0000         .10000E-03   10000.    
    19 'norm      '    .10079E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    15.147       1.0000         .10000E-03   10000.    
    21 'norm      '    3.6694       1.0000         .10000E-03   10000.    
    22 'Prefactor '    84.333       1.0000         .10000E-03   10000.    
    23 'Prefactor '    3.0114       1.0000         .10000E-03   10000.    
    24 'Prefactor '    5.9663       1.0000         .10000E-03   10000.    
    25 'Prefactor '    .10062E-03   1.0000         .10000E-03   10000.    
    26 'Normalizat'    .80805       1.0000         .10000E-01   10.000    
    27 'Prefactor '    .67795       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=   4113.020     FROM MIGRAD    STATUS=CONVERGED    646 CALLS     3873 TOTAL
                     EDM=   .20E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.7%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     2.1140        134.34        .14368E-04    .63475E-04
   2  Prefactor     .10000E-03    .68768       -.32168E-07** at limit **
   3  Prefactor     17.954        14.192       -.80684E-07   -.45081E-05
   4  Prefactor     .10000E-03    6.8185       -.33669E-06** at limit **
   5  Prefactor     .10000E-03    10.149        .88553E-06** at limit **
   6  Prefactor     .10000E-03    22.542        .25754E-05** at limit **
   7  Prefactor     .10000E-03    2.4137       -.17440E-07** at limit **
   8  norm          2.8225        2.9081       -.15281E-06    .27395E-03
   9  Prefactor     .10000E-03    6.0480       -.95274E-07** at limit **
  10  Prefactor     9.9017        10.162        .19649E-05    .22913E-03
  11  norm          .10000E-03    .31955       -.59322E-06** at limit **
  12  Prefactor     28.394        44.554        .24660E-06   -.16634E-04
  13  Prefactor     7.1007        10.684        .16936E-05   -.29708E-04
  14  norm          2.6990        3.7087        .12152E-05    .99753E-03
  15  norm          8.2809        8.3999       -.14296E-06    .14359E-04
  16  Prefactor     46.935        39.650        .11059E-05    .23185E-03
  17  Prefactor     17.502        47.279        .10293E-04    .22999E-03
  18  norm          .10008E-03    3.1417       -.20460E-05** at limit **
  19  norm          .10005E-03    1.9994       -.53372E-06** at limit **
  20  Prefactor     15.143        28.940        .17505E-06    .34764E-04
  21  norm          3.6696        4.4061        .61587E-06    .46768E-03
  22  Prefactor     84.338        96.184        .11785E-05    .22708E-04
  23  Prefactor     3.0057        76.348       -.31544E-05   -.33195E-04
  24  Prefactor     5.9642        6.1364        .26203E-05   -.10170E-02
  25  Prefactor     .10000E-03    28.860       -.21775E-05** at limit **
  26  Normalizat    .80842        .17801       -.31736E-05    .53568E-03
  27  Prefactor     .67757        .17798        .14330E-05    .15389E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 2.11396
  Prefactor  = 0.0001
  Prefactor  = 17.9538
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000100001
  Prefactor  = 0.0001
  norm       = 2.82246
  Prefactor  = 0.0001
  Prefactor  = 9.90171
  norm       = 0.0001
  Prefactor  = 28.3943
  Prefactor  = 7.10067
  norm       = 2.69895
  norm       = 8.28088
  Prefactor  = 46.935
  Prefactor  = 17.5015
  norm       = 0.000100083
  norm       = 0.00010005
  Prefactor  = 15.1432
  norm       = 3.66959
  Prefactor  = 84.3381
  Prefactor  = 3.00571
  Prefactor  = 5.96418
  Prefactor  = 0.000100001
  Normalizat = 0.808422
  Prefactor  = 0.677569
 **********
 **   18 **HESSE 
 **********

 FCN=   4113.020     FROM HESSE     STATUS=OK           492 CALLS     4365 TOTAL
                     EDM=   .12E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     2.1140        135.37        .28519E-03   -1.5417    
   2  Prefactor     .10000E-03    .68868        .51933E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     17.954        14.193        .94523E-04   -1.4860    
   4  Prefactor     .10000E-03    6.8241        .16358E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    10.169        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    23.431        .36285E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    2.4219        .97307E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          2.8225        2.9033        .10528E-03   -1.5372    
   9  Prefactor     .10000E-03    6.0545        .15398E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     9.9017        9.9596        .63665E-03   -1.5079    
  11  norm          .10000E-03    .49204        .66647E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     28.394        44.569        .75183E-04   -1.4642    
  13  Prefactor     7.1007        10.661        .75274E-03   -1.5175    
  14  norm          2.6990        3.5619        .13318E-03   -1.5379    
  15  norm          8.2809        8.4029        .13931E-03   -1.5132    
  16  Prefactor     46.935        37.956        .58518E-04   -1.4337    
  17  Prefactor     17.502        48.491        .95836E-04   -1.4871    
  18  norm          .10008E-03    14.622        .18415E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  norm          .10005E-03    12.555        .16874E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     15.143        28.052        .10291E-03   -1.4929    
  21  norm          3.6696        4.3722        .13135E-03   -1.5325    
  22  Prefactor     84.338        96.376        .43743E-04   -1.3869    
  23  Prefactor     3.0057        76.649        .23388E-03   -1.5361    
  24  Prefactor     5.9642        6.1476        .74963E-03   -1.5219    
  25  Prefactor     .10000E-03    29.028        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  Normalizat    .80842        .21062        .20345E-03   -.99757    
  27  Prefactor     .67757        .21076        .24008E-03   -1.0441    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.23744e-08
Minuit parameter uncertainties:
  1  33.9119
  2  1.13013e-07
  3  14.1955
  4  2.22015e-05
  5  8.6993e-05
  6  0.000272458
  7  1.28222e-06
  8  2.90341
  9  1.76378e-05
  10  9.9613
  11  1.77649e-05
  12  44.6217
  13  10.6639
  14  3.5622
  15  8.40407
  16  37.9753
  17  48.6
  18  0.0022037
  19  0.00157715
  20  28.0767
  21  4.37263
  22  96.5554
  23  30.3998
  24  6.14828
  25  0.00032431
  26  0.210838
  27  0.211008
Done.

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

Extracting fit parameters...

4FGL J2327.5-3259
   Spectrum: PowerLaw
454    Prefactor:  1.750e+01  4.860e+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:  6.776e-01  2.110e-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:  8.084e-01  2.108e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/914109/likelihoodResults_340675201_340934401_4FGL_J2327.5-3259_daily_bin391.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) = 4112.39519467
delta logL = 0.624327147518

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 4112.35337258
delta logL = 0.666149239413

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    3.2531       1.0000         .10000E-03   10000.    
     2 'Index     '    4.5815       1.0000          .0000       10.000    
     3 'Normalizat'    .75545       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .71555       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=   4112.353     FROM MIGRAD    STATUS=CONVERGED     53 CALLS      256 TOTAL
                     EDM=   .52E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     3.2110        69.743        .56137E-02   -.11970E-02
   2  Index         4.5889        3.9238        .15323       -.14348E-03
   3  Normalizat    .75554        .47457E-01    .43026E-01   -.54017E-03
   4  Prefactor     .71546        .51679E-01    .42608E-01   -.47545E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 3.21097
  Index      = 4.58895
  Normalizat = 0.755535
  Prefactor  = 0.715461
 **********
 **   18 **HESSE 
 **********

 FCN=   4112.353     FROM HESSE     STATUS=NOT POSDEF    29 CALLS      285 TOTAL
                     EDM=   .87E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     3.2110        137.55        .10201E-03   -1.5350    
   2  Index         4.5889        7.2876        .55272E-02   -.82303E-01
   3  Normalizat    .75554        .16779        .20960E-03   -1.0174    
   4  Prefactor     .71546        .17986        .23414E-03   -1.0292    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 8.68241e-10
Minuit parameter uncertainties:
  1  42.1355
  2  7.78767
  3  0.167904
  4  0.180006
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/914109': 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) = 4112.35336897
delta logL = 0.666152844112

Extracting fit parameters...

4FGL J2327.5-3259
   Spectrum: PowerLaw
454    Prefactor:  3.211e+00  4.214e+01  1.000e-04  1.000e+04 ( 1.000e-13)
455        Index:  4.589e+00  7.788e+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:  7.155e-01  1.800e-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:  7.555e-01  1.679e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 1.57
Ra Dec: 351.883 -32.987
Photon Index (Free Index): 4.59 +/- 7.79
Photon Flux (Free Index): 5.19e-08 +/- 5.61e-08
Energy Flux (Free Index): 7.18e-06 +/- 1.20e-05

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/914109/cmap_HighResolution_340675201_340934401_4FGL_J2327.5-3259_daily_bin391.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='7.75e-03', comment='SUCCESS', energy_flux2='7.18e-06', dlogl='6.66e-01', photon_flux2='5.19e-08', job_status='DONE', time_completed='2021-09-29 20:13:42.173318', photon_index_error2='7.79', photon_index2='4.59', ts='0.15', fit_tolerance='1e-08', GAL='0.68', photon_index_error='0.00', photon_flux_upper_limit='9.93e-08', energy_flux_error2='1.20e-05', EG='0.81', time_epoch_completed='1632971622.17', return_code='0', job_id='914109', GAL2='0.72', EG2='0.76', return_code2='102', photon_flux_error2='5.61e-08', ts2='1.57', photon_index='2.56' WHERE bin_id='391' AND source_name='4FGL J2327.5-3259' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep 29 20:13:42 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0227>
Subject: Job 914109: <4FGL_J2327.5-3259_daily_bin391> in cluster <slac> Done

Job <4FGL_J2327.5-3259_daily_bin391> was submitted from host <rhel6-64h> by user <kocevski> in cluster <slac> at Wed Sep 29 20:00:27 2021
Job was executed on host(s) <bullet0227>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Sep 29 20:00: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 20:00:29 2021
Terminated at Wed Sep 29 20:13:42 2021
Results reported at Wed Sep 29 20:13:42 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2327.5-3259_daily_bin391 351.883 -32.9869 340675201 340934401 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 :                                   658.00 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             312.68 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   793 sec.
    Turnaround time :                            795 sec.

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

