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


Performing analysis on: 4FGL_J2327.5-3259_daily_bin1609
RA = 351.883, Dec = -32.9869
tmin = 656380801, tmax = 656640001
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='501332', job_status='RUN', time_executed='2021-12-08 09:31:46.104184', time_epoch_executed='1638984706.1' WHERE source_name='4FGL J2327.5-3259' and cadence='daily' and bin_id='1609'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/501332

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/501332/ft1_4FGL_J2327.5-3259_daily_bin1609.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/501332/ft2_4FGL_J2327.5-3259_daily_bin1609.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/501332/ft1_4FGL_J2327.5-3259_daily_bin1609.fits outfile=/scratch/kocevski/501332/ft1_filteredMKT_4FGL_J2327.5-3259_daily_bin1609.fits ra=351.883 dec=-32.9869 rad=12.0 tmin=656380801.0 tmax=656640001.0 emin=100.0 emax=100000.0 zmin=0.0 zmax=90.0 evclass=128 evtype="INDEF" convtype=-1 phasemin=0.0 phasemax=1.0 evtable="EVENTS" chatter=2 clobber=yes debug=no gui=no mode="ql"

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

Done.
real 3.53
user 3.27
sys 0.22

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/501332/ft2_4FGL_J2327.5-3259_daily_bin1609.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/501332/ft1_filteredMKT_4FGL_J2327.5-3259_daily_bin1609.fits evtable="EVENTS" outfile="/scratch/kocevski/501332/ft1_filtered_4FGL_J2327.5-3259_daily_bin1609.fits" apply_filter=yes overwrite=yes header_obstimes=yes tstart=0.0 tstop=0.0 gtifile="default" chatter=3 clobber=yes debug=no gui=no mode="ql"

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

This is gtmktime version HEAD
Applying GTI filter:
IN_SAA!=T && LIVETIME>0 && gtifilter('/nfs/farm/g/glast/g/LCRepository/Likelihood/GTIs/nogrb.gti',(START+STOP)/2) && (angsep(RA_SUN,DEC_SUN,RA_ZENITH,DEC_ZENITH)>115 || gtifilter('/nfs/farm/g/glast/g/LCRepository/Likelihood/GTIs/nosolarflares.gti',(START+STOP)/2))
real 0.50
user 0.35
sys 0.14

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/501332/ft1_filtered_4FGL_J2327.5-3259_daily_bin1609.fits" evtable="EVENTS" scfile=/scratch/kocevski/501332/ft2_4FGL_J2327.5-3259_daily_bin1609.fits sctable="SC_DATA" outfile=/scratch/kocevski/501332/ltcube_656380801_656640001_4FGL_J2327.5-3259_daily_bin1609.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/501332/ft2_4FGL_J2327.5-3259_daily_bin1609.fits
.....................!
real 14.33
user 13.95
sys 0.34

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/501332/ft1_filtered_4FGL_J2327.5-3259_daily_bin1609.fits evtable="EVENTS" scfile=/scratch/kocevski/501332/ft2_4FGL_J2327.5-3259_daily_bin1609.fits sctable="SC_DATA" expcube=/scratch/kocevski/501332/ltcube_656380801_656640001_4FGL_J2327.5-3259_daily_bin1609.fits outfile=/scratch/kocevski/501332/expmap_656380801_656640001_4FGL_J2327.5-3259_daily_bin1609.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/501332/ltcube_656380801_656640001_4FGL_J2327.5-3259_daily_bin1609.fits
.....................!
real 194.25
user 189.06
sys 4.65

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/501332/ft1_filtered_4FGL_J2327.5-3259_daily_bin1609.fits scfile=/scratch/kocevski/501332/ft2_4FGL_J2327.5-3259_daily_bin1609.fits outfile=/scratch/kocevski/501332/cmap_656380801_656640001_4FGL_J2327.5-3259_daily_bin1609.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.55
user 0.39
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/501332/ft1_filtered_4FGL_J2327.5-3259_daily_bin1609.fits scfile=/scratch/kocevski/501332/ft2_4FGL_J2327.5-3259_daily_bin1609.fits outfile=/scratch/kocevski/501332/cmap_HighResolution_656380801_656640001_4FGL_J2327.5-3259_daily_bin1609.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.38
sys 0.16

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/501332/ft1_filtered_4FGL_J2327.5-3259_daily_bin1609.fits evtable="EVENTS" scfile=/scratch/kocevski/501332/ft2_4FGL_J2327.5-3259_daily_bin1609.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/501332/Model_4FGL_J2327.5-3259_daily_bin1609.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/501332/ft1_filtered_4FGL_J2327.5-3259_daily_bin1609.fits.....................!
real 39.47
user 38.12
sys 1.26

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    1.6821       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    9.0682       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    25.418       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    7.7109       1.0000         .10000E-03   10000.    
    11 'norm      '    .66062       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10051E-03   1.0000         .10000E-03   10000.    
    14 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    24.576       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10202E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    2.6757       1.0000         .10000E-03   10000.    
    18 'norm      '    6.4483       1.0000         .10000E-03   10000.    
    19 'norm      '    5.7268       1.0000         .10000E-03   10000.    
    20 'Prefactor '    23.757       1.0000         .10000E-03   10000.    
    21 'norm      '    .14715E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    90.939       1.0000         .10000E-03   10000.    
    23 'Prefactor '    51.083       1.0000         .10000E-03   10000.    
    24 'Prefactor '    .46894       1.0000         .10000E-03   10000.    
    25 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    26 'Normalizat'    1.2346       1.0000         .10000E-01   10.000    
    27 'Prefactor '    .47837       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=   4765.475     FROM MIGRAD    STATUS=CONVERGED    668 CALLS     3295 TOTAL
                     EDM=   .10E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .4%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    14.778       -.53842E-06** at limit **
   2  Prefactor     1.6821        2.6997       -.34750E-06   -.50878E-03
   3  Prefactor     .10000E-03    5.6126       -.25801E-07** at limit **
   4  Prefactor     9.0673        21.921       -.28853E-05   -.17439E-04
   5  Prefactor     .10000E-03    18.115        .13857E-05** at limit **
   6  Prefactor     25.416        16.853       -.46628E-06    .29580E-05
   7  Prefactor     .10000E-03    2.4539       -.25499E-07** at limit **
   8  norm          .10000E-03    1.6887        .20762E-07** at limit **
   9  Prefactor     .10000E-03    6.8914        .85842E-07** at limit **
  10  Prefactor     7.7100        12.091       -.10010E-05   -.95247E-04
  11  norm          .66084        .65821        .44223E-07   -.14994E-03
  12  Prefactor     .10000E-03    29.156       -.13763E-05** at limit **
  13  Prefactor     .10000E-03    14.648       -.57149E-06** at limit **
  14  norm          .10000E-03    1.8373        .36659E-08** at limit **
  15  norm          24.575        10.626       -.16057E-06   -.26816E-04
  16  Prefactor     .10000E-03    39.562        .11039E-05** at limit **
  17  Prefactor     2.5795        88.790       -.24406E-05   -.29476E-04
  18  norm          6.4415        4.3683       -.27098E-06   -.18823E-03
  19  norm          5.7266        4.2928        .26959E-06   -.10199E-03
  20  Prefactor     23.752        39.035       -.28544E-05    .33402E-05
  21  norm          .10000E-03    1.8033       -.78144E-07** at limit **
  22  Prefactor     90.906        92.565       -.28506E-04   -.47224E-05
  23  Prefactor     51.081        46.410       -.15573E-05   -.20451E-04
  24  Prefactor     .47132        3.5340        .12106E-05   -.12035E-02
  25  Prefactor     .10000E-03    11.272        .33054E-06** at limit **
  26  Normalizat    1.2349        .19535        .20173E-05   -.23067E-03
  27  Prefactor     .47801        .19578        .39106E-06   -.31075E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 1.68208
  Prefactor  = 0.0001
  Prefactor  = 9.06729
  Prefactor  = 0.0001
  Prefactor  = 25.4157
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 7.70999
  norm       = 0.660842
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 24.5754
  Prefactor  = 0.0001
  Prefactor  = 2.5795
  norm       = 6.44145
  norm       = 5.7266
  Prefactor  = 23.7519
  norm       = 0.0001
  Prefactor  = 90.9064
  Prefactor  = 51.081
  Prefactor  = 0.471319
  Prefactor  = 0.0001
  Normalizat = 1.23492
  Prefactor  = 0.478012
 **********
 **   18 **HESSE 
 **********

 FCN=   4765.475     FROM HESSE     STATUS=OK           490 CALLS     3785 TOTAL
                     EDM=   .65E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    14.786        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     1.6821        2.6769        .13824E-03   -1.5449    
   3  Prefactor     .10000E-03    5.6136        .15973E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     9.0673        21.952        .13310E-03   -1.5106    
   5  Prefactor     .10000E-03    18.132        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     25.416        16.863        .79456E-04   -1.4699    
   7  Prefactor     .10000E-03    2.4566        .10561E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          .10000E-03    1.6958        .87431E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    6.9006        .17683E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     7.7100        12.025        .14441E-03   -1.5153    
  11  norm          .66084        .63879        .46550E-04   -1.5545    
  12  Prefactor     .10000E-03    29.192        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    14.792        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          .10000E-03    1.8378        .91348E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          24.575        10.623        .80804E-04   -1.4716    
  16  Prefactor     .10000E-03    39.845        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     2.5795        89.083        .24913E-03   -1.5387    
  18  norm          6.4415        4.3091        .11174E-03   -1.5200    
  19  norm          5.7266        4.2831        .11362E-03   -1.5229    
  20  Prefactor     23.752        39.016        .82182E-04   -1.4733    
  21  norm          .10000E-03    3.4908        .17825E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     90.906        92.583        .21069E-03   -1.3798    
  23  Prefactor     51.081        46.369        .56112E-04   -1.4277    
  24  Prefactor     .47132        12.649        .24037E-02   -1.5571    
  25  Prefactor     .10000E-03    11.275        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  Normalizat    1.2349        .22331        .19865E-03   -.85531    
  27  Prefactor     .47801        .21996        .32238E-03   -1.1300    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 6.46841e-09
Minuit parameter uncertainties:
  1  9.0669e-06
  2  2.67707
  3  2.06418e-06
  4  21.9713
  5  4.23426e-06
  6  16.8659
  7  1.89718e-06
  8  2.99391e-06
  9  8.07957e-06
  10  12.0284
  11  0.638801
  12  1.74054e-05
  13  1.64157e-05
  14  2.24214e-08
  15  10.6233
  16  1.48858e-05
  17  30.3661
  18  4.30927
  19  4.28334
  20  39.0584
  21  1.38898e-05
  22  92.7302
  23  46.402
  24  4.884
  25  3.10271e-06
  26  0.223485
  27  0.220351
Done.

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

Extracting fit parameters...

4FGL J2327.5-3259
   Spectrum: PowerLaw
454    Prefactor:  2.579e+00  3.037e+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:  4.780e-01  2.204e-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.235e+00  2.235e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/501332/likelihoodResults_656380801_656640001_4FGL_J2327.5-3259_daily_bin1609.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) = 4765.47327398
delta logL = 0.00203853217045

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 4765.47257819
delta logL = 0.00273432437461

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    3.8216       1.0000         .10000E-03   10000.    
     2 'Index     '    2.3290       1.0000          .0000       10.000    
     3 'Normalizat'    1.2349       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .47755       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=   4765.473     FROM MIGRAD    STATUS=CONVERGED     64 CALLS      248 TOTAL
                     EDM=   .80E-10    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     3.8626        2131.1        .51616E-02    .23433E-04
   2  Index         2.3417        5.8374        .50000        .88473E-05
   3  Normalizat    1.2349        .24614E-01    .34086E-01    .26143E-05
   4  Prefactor     .47769        .26098E-01    .72830E-01    .28923E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 3.86258
  Index      = 2.34171
  Normalizat = 1.23487
  Prefactor  = 0.477695
 **********
 **   18 **HESSE 
 **********

 FCN=   4765.473     FROM HESSE     STATUS=OK            31 CALLS      279 TOTAL
                     EDM=   .54E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     3.8626        85.749        .20646E-03   -1.5315    
   2  Index         2.3417        2.5713        .18725E-01   -.56056    
   3  Normalizat    1.2349        .20676        .19865E-03   -.85532    
   4  Prefactor     .47769        .21741        .32247E-03   -1.1301    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.3906e-10
Minuit parameter uncertainties:
  1  36.4574
  2  2.76329
  3  0.2069
  4  0.217788
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/501332': 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) = 4765.47256429
delta logL = 0.00274821851781

Extracting fit parameters...

4FGL J2327.5-3259
   Spectrum: PowerLaw
454    Prefactor:  3.863e+00  3.646e+01  1.000e-04  1.000e+04 ( 1.000e-13)
455        Index:  2.342e+00  2.763e+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:  4.777e-01  2.178e-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.235e+00  2.069e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 0.01
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/501332/cmap_HighResolution_656380801_656640001_4FGL_J2327.5-3259_daily_bin1609.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='5.84e-03', job_status='DONE', photon_flux_upper_limit='7.48e-08', time_completed='2021-12-08 09:43:04.778895', job_id='501332', GAL2='0.48', fit_tolerance='1e-08', EG2='1.23', EG='1.23', time_epoch_completed='1638985384.78', return_code2='0', ts='0.01', comment='SUCCESS', return_code='0', GAL='0.48', dlogl='2.75e-03', ts2='0.01', photon_index_error='0.00', photon_index='2.56' WHERE bin_id='1609' AND source_name='4FGL J2327.5-3259' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Dec  8 09:43:04 PST 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0294>
Subject: Job 501332: <4FGL_J2327.5-3259_daily_bin1609> in cluster <slac> Done

Job <4FGL_J2327.5-3259_daily_bin1609> was submitted from host <rhel6-64j> by user <kocevski> in cluster <slac> at Wed Dec  8 09:30:18 2021
Job was executed on host(s) <bullet0294>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Dec  8 09:31:11 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Wed Dec  8 09:31:11 2021
Terminated at Wed Dec  8 09:43:05 2021
Results reported at Wed Dec  8 09:43:05 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2327.5-3259_daily_bin1609 351.883 -32.9869 656380801 656640001 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 :                                   678.00 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             319.04 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   714 sec.
    Turnaround time :                            767 sec.

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

