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


Performing analysis on: 4FGL_J2327.5-3259_daily_bin554
RA = 351.883, Dec = -32.9869
tmin = 382924801, tmax = 383184001
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='914366', job_status='RUN', time_executed='2021-09-29 20:03:37.248057', time_epoch_executed='1632971017.25' WHERE source_name='4FGL J2327.5-3259' and cadence='daily' and bin_id='554'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/914366

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/914366/ft1_4FGL_J2327.5-3259_daily_bin554.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/914366/ft2_4FGL_J2327.5-3259_daily_bin554.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/914366/ft1_4FGL_J2327.5-3259_daily_bin554.fits outfile=/scratch/kocevski/914366/ft1_filteredMKT_4FGL_J2327.5-3259_daily_bin554.fits ra=351.883 dec=-32.9869 rad=12.0 tmin=382924801.0 tmax=383184001.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.45
user 4.20
sys 0.20

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/914366/ft2_4FGL_J2327.5-3259_daily_bin554.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/914366/ft1_filteredMKT_4FGL_J2327.5-3259_daily_bin554.fits evtable="EVENTS" outfile="/scratch/kocevski/914366/ft1_filtered_4FGL_J2327.5-3259_daily_bin554.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.48
user 0.31
sys 0.16

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/914366/ft1_filtered_4FGL_J2327.5-3259_daily_bin554.fits" evtable="EVENTS" scfile=/scratch/kocevski/914366/ft2_4FGL_J2327.5-3259_daily_bin554.fits sctable="SC_DATA" outfile=/scratch/kocevski/914366/ltcube_382924801_383184001_4FGL_J2327.5-3259_daily_bin554.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/914366/ft2_4FGL_J2327.5-3259_daily_bin554.fits
.....................!
real 11.77
user 11.42
sys 0.32

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/914366/ft1_filtered_4FGL_J2327.5-3259_daily_bin554.fits evtable="EVENTS" scfile=/scratch/kocevski/914366/ft2_4FGL_J2327.5-3259_daily_bin554.fits sctable="SC_DATA" expcube=/scratch/kocevski/914366/ltcube_382924801_383184001_4FGL_J2327.5-3259_daily_bin554.fits outfile=/scratch/kocevski/914366/expmap_382924801_383184001_4FGL_J2327.5-3259_daily_bin554.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/914366/ltcube_382924801_383184001_4FGL_J2327.5-3259_daily_bin554.fits
.....................!
real 189.52
user 184.64
sys 4.57

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/914366/ft1_filtered_4FGL_J2327.5-3259_daily_bin554.fits scfile=/scratch/kocevski/914366/ft2_4FGL_J2327.5-3259_daily_bin554.fits outfile=/scratch/kocevski/914366/cmap_382924801_383184001_4FGL_J2327.5-3259_daily_bin554.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.38
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/914366/ft1_filtered_4FGL_J2327.5-3259_daily_bin554.fits scfile=/scratch/kocevski/914366/ft2_4FGL_J2327.5-3259_daily_bin554.fits outfile=/scratch/kocevski/914366/cmap_HighResolution_382924801_383184001_4FGL_J2327.5-3259_daily_bin554.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/914366/ft1_filtered_4FGL_J2327.5-3259_daily_bin554.fits evtable="EVENTS" scfile=/scratch/kocevski/914366/ft2_4FGL_J2327.5-3259_daily_bin554.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/914366/Model_4FGL_J2327.5-3259_daily_bin554.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/914366/ft1_filtered_4FGL_J2327.5-3259_daily_bin554.fits.....................!
real 44.23
user 42.91
sys 1.21

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    14.776       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10061E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    7.9124       1.0000         .10000E-03   10000.    
     6 'Prefactor '    13.918       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .68971E-02   1.0000         .10000E-03   10000.    
     8 'norm      '    7.1851       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10051E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    7.4521       1.0000         .10000E-03   10000.    
    11 'norm      '    .82279       1.0000         .10000E-03   10000.    
    12 'Prefactor '    17.860       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    14 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    1.4315       1.0000         .10000E-03   10000.    
    16 'Prefactor '    15.035       1.0000         .10000E-03   10000.    
    17 'Prefactor '    30.705       1.0000         .10000E-03   10000.    
    18 'norm      '    1.9112       1.0000         .10000E-03   10000.    
    19 'norm      '    3.3772       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    21 'norm      '    1.9448       1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10008E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    24 'Prefactor '    .33157       1.0000         .10000E-03   10000.    
    25 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    26 'Normalizat'    .77035       1.0000         .10000E-01   10.000    
    27 'Prefactor '    .86669       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=   5973.737     FROM MIGRAD    STATUS=CONVERGED    642 CALLS     3283 TOTAL
                     EDM=   .18E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .7%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     14.772        23.986       -.46135E-05    .70501E-04
   2  Prefactor     .10000E-03    1.2650       -.89105E-07** at limit **
   3  Prefactor     .10000E-03    5.4797        .70393E-07** at limit **
   4  Prefactor     .10000E-03    19.216       -.47192E-05** at limit **
   5  Prefactor     7.9034        31.151       -.16132E-04    .84822E-04
   6  Prefactor     13.919        11.415       -.12233E-06   -.98733E-05
   7  Prefactor     .10015E-03    5.2199       -.99750E-08** at limit **
   8  norm          7.1849        3.9483        .59614E-07   -.13206E-03
   9  Prefactor     .10000E-03    21.187        .18018E-05** at limit **
  10  Prefactor     7.4506        8.8103       -.43595E-06   -.29768E-03
  11  norm          .82263        .62393       -.10162E-07   -.10106E-02
  12  Prefactor     17.860        40.654        .30504E-06    .13953E-04
  13  Prefactor     .10000E-03    5.0443       -.67077E-07** at limit **
  14  norm          .10000E-03    1.8797        .64445E-07** at limit **
  15  norm          1.4268        8.9220       -.68697E-05   -.77020E-03
  16  Prefactor     15.019        22.456       -.11566E-04    .18929E-03
  17  Prefactor     30.724        41.345        .24657E-04   -.19506E-03
  18  norm          1.9137        2.9756        .13424E-05   -.80715E-04
  19  norm          3.3774        2.3759       -.50659E-07   -.16100E-03
  20  Prefactor     .10000E-03    11.412       -.24055E-05** at limit **
  21  norm          1.9453        2.5225        .34644E-06   -.12597E-03
  22  Prefactor     .10000E-03    36.275        .95898E-05** at limit **
  23  Prefactor     .10000E-03    13.139        .21364E-05** at limit **
  24  Prefactor     .33248        2.2067       -.67063E-06   -.31676E-03
  25  Prefactor     .10000E-03    12.306        .20488E-05** at limit **
  26  Normalizat    .77027        .14901       -.24127E-06    .28731E-03
  27  Prefactor     .86679        .15668        .39824E-06    .17410E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 14.7716
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000100001
  Prefactor  = 7.90339
  Prefactor  = 13.9192
  Prefactor  = 0.000100155
  norm       = 7.18486
  Prefactor  = 0.0001
  Prefactor  = 7.45061
  norm       = 0.822631
  Prefactor  = 17.8605
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 1.42681
  Prefactor  = 15.0194
  Prefactor  = 30.7244
  norm       = 1.91375
  norm       = 3.37736
  Prefactor  = 0.0001
  norm       = 1.94526
  Prefactor  = 0.000100001
  Prefactor  = 0.0001
  Prefactor  = 0.33248
  Prefactor  = 0.0001
  Normalizat = 0.770268
  Prefactor  = 0.86679
 **********
 **   18 **HESSE 
 **********

 FCN=   5973.737     FROM HESSE     STATUS=OK           494 CALLS     3777 TOTAL
                     EDM=   .69E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     14.772        23.989        .10419E-03   -1.4939    
   2  Prefactor     .10000E-03    1.2852        .84823E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    5.4861        .17670E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    19.302        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     7.9034        31.063        .14255E-03   -1.5146    
   6  Prefactor     13.919        11.447        .10736E-03   -1.4962    
   7  Prefactor     .10015E-03    41.205        .34053E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          7.1849        3.9397        .10356E-03   -1.5172    
   9  Prefactor     .10000E-03    21.597        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     7.4506        9.0159        .14692E-03   -1.5162    
  11  norm          .82263        .62218        .42179E-04   -1.5527    
  12  Prefactor     17.860        40.655        .94771E-04   -1.4862    
  13  Prefactor     .10000E-03    5.0630        .16913E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          .10000E-03    1.8841        .10342E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          1.4268        9.4613        .36102E-03   -1.5469    
  16  Prefactor     15.019        22.261        .10329E-03   -1.4933    
  17  Prefactor     30.724        41.513        .72307E-04   -1.4599    
  18  norm          1.9137        2.9221        .14999E-03   -1.5431    
  19  norm          3.3774        2.3711        .96695E-04   -1.5340    
  20  Prefactor     .10000E-03    11.443        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  norm          1.9453        2.4965        .13305E-03   -1.5429    
  22  Prefactor     .10000E-03    36.233        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     .10000E-03    13.143        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     .33248        10.809        .21514E-02   -1.5593    
  25  Prefactor     .10000E-03    12.312        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  Normalizat    .77027        .17909        .21554E-03   -1.0118    
  27  Prefactor     .86679        .18702        .22909E-03   -.97311    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 6.90686e-09
Minuit parameter uncertainties:
  1  24.0046
  2  2.4691e-07
  3  1.06078e-06
  4  0.000307684
  5  31.1263
  6  11.4486
  7  0.00505442
  8  3.9398
  9  2.02746e-05
  10  9.01757
  11  0.62219
  12  40.7186
  13  4.30297e-06
  14  7.1979e-06
  15  7.34973
  16  22.2728
  17  41.5518
  18  2.92233
  19  2.37119
  20  4.40043e-05
  21  2.49661
  22  0.000373781
  23  6.33027e-05
  24  3.79163
  25  5.33081e-05
  26  0.179231
  27  0.187157
Done.

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

Extracting fit parameters...

4FGL J2327.5-3259
   Spectrum: PowerLaw
454    Prefactor:  3.072e+01  4.155e+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:  8.668e-01  1.872e-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.703e-01  1.792e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/914366/likelihoodResults_382924801_383184001_4FGL_J2327.5-3259_daily_bin554.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) = 5973.25511064
delta logL = 0.481670903418

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 5973.21753466
delta logL = 0.519246889336

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    6.6024       1.0000         .10000E-03   10000.    
     2 'Index     '    4.2065       1.0000          .0000       10.000    
     3 'Normalizat'    .71421       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .91129       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=   5973.218     FROM MIGRAD    STATUS=CONVERGED     86 CALLS      296 TOTAL
                     EDM=   .31E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     6.5968        190.04        .14966E-03   -.30286E-03
   2  Index         4.2070        7.1034        .63075E-02   -.87679E-04
   3  Normalizat    .71421        .15475        .22315E-03    .11727E-02
   4  Prefactor     .91131        .17122        .22403E-03    .10164E-02
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 6.5968
  Index      = 4.20701
  Normalizat = 0.714214
  Prefactor  = 0.911307
 **********
 **   18 **HESSE 
 **********

 FCN=   5973.218     FROM HESSE     STATUS=OK            25 CALLS      321 TOTAL
                     EDM=   .23E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     6.5968        23.874        .59864E-05   -1.5194    
   2  Index         4.2070        2.2482        .25230E-03   -.15927    
   3  Normalizat    .71421        .17543        .44629E-04   -1.0333    
   4  Prefactor     .91131        .19061        .44806E-04   -.95747    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.25395e-09
Minuit parameter uncertainties:
  1  23.9082
  2  2.3342
  3  0.17557
  4  0.190749
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/914366': 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) = 5973.2175346
delta logL = 0.519246950046

Extracting fit parameters...

4FGL J2327.5-3259
   Spectrum: PowerLaw
454    Prefactor:  6.597e+00  2.391e+01  1.000e-04  1.000e+04 ( 1.000e-13)
455        Index:  4.207e+00  2.334e+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.113e-01  1.907e-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.142e-01  1.756e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 1.88
Ra Dec: 351.883 -32.987
Photon Index (Free Index): 4.21 +/- 2.33
Photon Flux (Free Index): 5.80e-08 +/- 4.94e-08
Energy Flux (Free Index): 8.40e-06 +/- 7.22e-06

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/914366/cmap_HighResolution_382924801_383184001_4FGL_J2327.5-3259_daily_bin554.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='7.33e-03', comment='SUCCESS', energy_flux2='8.40e-06', dlogl='5.19e-01', photon_flux2='5.80e-08', job_status='DONE', time_completed='2021-09-29 20:16:21.666878', photon_index_error2='2.33', photon_index2='4.21', ts='0.69', fit_tolerance='1e-08', GAL='0.87', photon_index_error='0.00', photon_flux_upper_limit='9.39e-08', energy_flux_error2='7.22e-06', EG='0.77', time_epoch_completed='1632971781.67', return_code='0', job_id='914366', GAL2='0.91', EG2='0.71', return_code2='0', photon_flux_error2='4.94e-08', ts2='1.88', photon_index='2.56' WHERE bin_id='554' AND source_name='4FGL J2327.5-3259' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep 29 20:16:21 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0050>
Subject: Job 914366: <4FGL_J2327.5-3259_daily_bin554> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2327.5-3259_daily_bin554 351.883 -32.9869 382924801 383184001 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 :                                   761.07 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             283.70 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   931 sec.
    Turnaround time :                            933 sec.

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

