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


Performing analysis on: 4FGL_J2327.5-3259_daily_bin373
RA = 351.883, Dec = -32.9869
tmin = 336009601, tmax = 336268801
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='914080', job_status='RUN', time_executed='2021-09-29 20:02:51.599421', time_epoch_executed='1632970971.6' WHERE source_name='4FGL J2327.5-3259' and cadence='daily' and bin_id='373'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/914080

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/914080/ft1_4FGL_J2327.5-3259_daily_bin373.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/914080/ft2_4FGL_J2327.5-3259_daily_bin373.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/914080/ft1_4FGL_J2327.5-3259_daily_bin373.fits outfile=/scratch/kocevski/914080/ft1_filteredMKT_4FGL_J2327.5-3259_daily_bin373.fits ra=351.883 dec=-32.9869 rad=12.0 tmin=336009601.0 tmax=336268801.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.30
user 3.07
sys 0.20

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/914080/ft1_filtered_4FGL_J2327.5-3259_daily_bin373.fits" evtable="EVENTS" scfile=/scratch/kocevski/914080/ft2_4FGL_J2327.5-3259_daily_bin373.fits sctable="SC_DATA" outfile=/scratch/kocevski/914080/ltcube_336009601_336268801_4FGL_J2327.5-3259_daily_bin373.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/914080/ft2_4FGL_J2327.5-3259_daily_bin373.fits
.....................!
real 11.67
user 11.29
sys 0.34

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/914080/ft1_filtered_4FGL_J2327.5-3259_daily_bin373.fits evtable="EVENTS" scfile=/scratch/kocevski/914080/ft2_4FGL_J2327.5-3259_daily_bin373.fits sctable="SC_DATA" expcube=/scratch/kocevski/914080/ltcube_336009601_336268801_4FGL_J2327.5-3259_daily_bin373.fits outfile=/scratch/kocevski/914080/expmap_336009601_336268801_4FGL_J2327.5-3259_daily_bin373.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/914080/ltcube_336009601_336268801_4FGL_J2327.5-3259_daily_bin373.fits
.....................!
real 189.97
user 185.26
sys 4.26

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/914080/ft1_filtered_4FGL_J2327.5-3259_daily_bin373.fits scfile=/scratch/kocevski/914080/ft2_4FGL_J2327.5-3259_daily_bin373.fits outfile=/scratch/kocevski/914080/cmap_336009601_336268801_4FGL_J2327.5-3259_daily_bin373.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.56
user 0.38
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/914080/ft1_filtered_4FGL_J2327.5-3259_daily_bin373.fits scfile=/scratch/kocevski/914080/ft2_4FGL_J2327.5-3259_daily_bin373.fits outfile=/scratch/kocevski/914080/cmap_HighResolution_336009601_336268801_4FGL_J2327.5-3259_daily_bin373.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.56
user 0.38
sys 0.16

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/914080/ft1_filtered_4FGL_J2327.5-3259_daily_bin373.fits evtable="EVENTS" scfile=/scratch/kocevski/914080/ft2_4FGL_J2327.5-3259_daily_bin373.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/914080/Model_4FGL_J2327.5-3259_daily_bin373.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/914080/ft1_filtered_4FGL_J2327.5-3259_daily_bin373.fits.....................!
real 40.96
user 39.62
sys 1.18

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    10.137       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10028E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    39.577       1.0000         .10000E-03   10000.    
     6 'Prefactor '    12.511       1.0000         .10000E-03   10000.    
     7 'Prefactor '    8.5450       1.0000         .10000E-03   10000.    
     8 'norm      '    16.645       1.0000         .10000E-03   10000.    
     9 'Prefactor '    16.579       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .25584E-01   1.0000         .10000E-03   10000.    
    11 'norm      '    .40168       1.0000         .10000E-03   10000.    
    12 'Prefactor '    69.770       1.0000         .10000E-03   10000.    
    13 'Prefactor '    1.4524       1.0000         .10000E-03   10000.    
    14 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    2.5299       1.0000         .10000E-03   10000.    
    16 'Prefactor '    16.705       1.0000         .10000E-03   10000.    
    17 'Prefactor '    22.063       1.0000         .10000E-03   10000.    
    18 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    19 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    41.039       1.0000         .10000E-03   10000.    
    21 'norm      '    2.0939       1.0000         .10000E-03   10000.    
    22 'Prefactor '    48.351       1.0000         .10000E-03   10000.    
    23 'Prefactor '    2.8999       1.0000         .10000E-03   10000.    
    24 'Prefactor '    .10019E-03   1.0000         .10000E-03   10000.    
    25 'Prefactor '    1.5085       1.0000         .10000E-03   10000.    
    26 'Normalizat'    1.0142       1.0000         .10000E-01   10.000    
    27 'Prefactor '    .76853       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6080E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   5255.627     FROM MIGRAD    STATUS=CONVERGED     95 CALLS     2773 TOTAL
                     EDM=   .14E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  4.0%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    11.683        .24253E-05** at limit **
   2  Prefactor     .10000E-03    .77089       -.82388E-06** at limit **
   3  Prefactor     10.137        2.3084       -.82797E-06   -.21527E-02
   4  Prefactor     .10000E-03    18.051       -.10616E-05** at limit **
   5  Prefactor     39.576        1.5614       -.19343E-06    .49383E-03
   6  Prefactor     12.510        1.1592        .28960E-06   -.51733E-03
   7  Prefactor     8.5437        1.4748       -.42581E-06   -.52450E-02
   8  norm          16.646        6.1349        .33500E-05   -.70620E-03
   9  Prefactor     16.594        13.741        .32258E-05    .91445E-02
  10  Prefactor     .13904E-03    380.64        .15282E-04** at limit **
  11  norm          .40223        .73037        .10319E-05    .69688E-03
  12  Prefactor     69.770        1.2073       -.94453E-07    .80455E-03
  13  Prefactor     1.4655        27.171        .61085E-05   -.27779E-03
  14  norm          .10000E-03    2.0697       -.17344E-06** at limit **
  15  norm          2.5280        2.1112       -.14154E-05   -.44891E-02
  16  Prefactor     16.697        2.3214       -.37078E-06    .34753E-03
  17  Prefactor     22.062        1.0747       -.68811E-07   -.20011E-03
  18  norm          .10000E-03    1.7278        .20971E-06** at limit **
  19  norm          .10000E-03    .97378       -.40304E-06** at limit **
  20  Prefactor     41.034        1.7617       -.17763E-06    .77881E-03
  21  norm          2.0940        2.8823       -.54444E-06   -.40039E-04
  22  Prefactor     48.349        1.1339       -.69357E-07    .84123E-03
  23  Prefactor     2.9011        5.8151        .32177E-05   -.20920E-03
  24  Prefactor     .10000E-03    2.1119        .39798E-06** at limit **
  25  Prefactor     1.4101        78.297        .20344E-04   -.22788E-02
  26  Normalizat    1.0144        .19400        .28435E-06    .81622E-04
  27  Prefactor     .76837        .21217       -.53245E-06    .51844E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 10.1369
  Prefactor  = 0.0001
  Prefactor  = 39.5759
  Prefactor  = 12.5098
  Prefactor  = 8.54365
  norm       = 16.6461
  Prefactor  = 16.5944
  Prefactor  = 0.000139039
  norm       = 0.402227
  Prefactor  = 69.7703
  Prefactor  = 1.46554
  norm       = 0.0001
  norm       = 2.52796
  Prefactor  = 16.6967
  Prefactor  = 22.0616
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 41.0343
  norm       = 2.09396
  Prefactor  = 48.3493
  Prefactor  = 2.90112
  Prefactor  = 0.0001
  Prefactor  = 1.4101
  Normalizat = 1.0144
  Prefactor  = 0.768374
 **********
 **   18 **HESSE 
 **********

 FCN=   5255.627     FROM HESSE     STATUS=OK           554 CALLS     3327 TOTAL
                     EDM=   .16E-05    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    11.678        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    .76923        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     10.137        10.588        .31463E-02   -1.5071    
   4  Prefactor     .10000E-03    17.988        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     39.576        32.435        .15928E-02   -1.4449    
   6  Prefactor     12.510        11.239        .28313E-02   -1.5000    
   7  Prefactor     8.5437        7.8263        .34283E-02   -1.5123    
   8  norm          16.646        6.3384        .24542E-02   -1.4892    
   9  Prefactor     16.594        19.356        .24592E-02   -1.4893    
  10  Prefactor     .13904E-03    17.880        .70337E-01   -1.5707    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          .40223        .93567        .10863E-01   -1.5581    
  12  Prefactor     69.770        58.799        .12014E-02   -1.4035    
  13  Prefactor     1.4655        43.773        .89350E-02   -1.5466    
  14  norm          .10000E-03    2.0627        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          2.5280        8.2220        .64201E-02   -1.5390    
  16  Prefactor     16.697        31.827        .24498E-02   -1.4891    
  17  Prefactor     22.062        29.530        .21319E-02   -1.4768    
  18  norm          .10000E-03    1.7230        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  norm          .10000E-03    .97135        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     41.034        31.709        .15643E-02   -1.4426    
  21  norm          2.0940        2.9974        .71314E-02   -1.5419    
  22  Prefactor     48.349        91.503        .14417E-02   -1.4316    
  23  Prefactor     2.9011        68.039        .59655E-02   -1.5367    
  24  Prefactor     .10000E-03    2.0939        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Prefactor     1.4101        189.36        .87083E-02   -1.5470    
  26  Normalizat    1.0144        .17806        .44386E-01   -.92550    
  27  Prefactor     .76837        .18492        .43306E-01   -1.0090    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.56357e-06
Minuit parameter uncertainties:
  1  2.7526e-05
  2  4.50616e-07
  3  10.5903
  4  3.27095e-05
  5  32.449
  6  11.2405
  7  7.8272
  8  6.33868
  9  19.3634
  10  0.0528556
  11  0.935708
  12  58.848
  13  16.0313
  14  3.81367e-07
  15  8.22563
  16  31.8598
  17  29.5497
  18  1.54327e-07
  19  1.82042e-07
  20  31.7219
  21  2.99763
  22  91.7706
  23  28.1345
  24  2.81086e-07
  25  32.7864
  26  0.178161
  27  0.185071
Done.

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

Extracting fit parameters...

4FGL J2327.5-3259
   Spectrum: PowerLaw
454    Prefactor:  2.206e+01  2.955e+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:  7.684e-01  1.851e-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.014e+00  1.782e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/914080/likelihoodResults_336009601_336268801_4FGL_J2327.5-3259_daily_bin373.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) = 5255.53270579
delta logL = 0.0939971731777

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5255.52688323
delta logL = 0.0998197336658

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    27.097       1.0000         .10000E-03   10000.    
     2 'Index     '    2.0962       1.0000          .0000       10.000    
     3 'Normalizat'    1.0223       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .76200       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=   5255.527     FROM MIGRAD    STATUS=CONVERGED     80 CALLS      286 TOTAL
                     EDM=   .13E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     27.098        34.146        .76960E-04   -.44317E-05
   2  Index         2.0962        .91485        .12995E-01    .97554E-05
   3  Normalizat    1.0223        .19298        .21687E-03    .90375E-04
   4  Prefactor     .76198        .21120        .27037E-03    .52014E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 27.0979
  Index      = 2.09622
  Normalizat = 1.02233
  Prefactor  = 0.761977
 **********
 **   18 **HESSE 
 **********

 FCN=   5255.527     FROM HESSE     STATUS=OK            25 CALLS      311 TOTAL
                     EDM=   .15E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     27.098        34.085        .30784E-05   -1.4666    
   2  Index         2.0962        .91329        .51980E-03   -.61966    
   3  Normalizat    1.0223        .19314        .86748E-05   -.92286    
   4  Prefactor     .76198        .21138        .10815E-04   -1.0115    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.48782e-11
Minuit parameter uncertainties:
  1  34.1091
  2  0.921128
  3  0.193269
  4  0.211601
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/914080': 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) = 5255.52688322
delta logL = 0.0998197448389

Extracting fit parameters...

4FGL J2327.5-3259
   Spectrum: PowerLaw
454    Prefactor:  2.710e+01  3.411e+01  1.000e-04  1.000e+04 ( 1.000e-13)
455        Index:  2.096e+00  9.211e-01  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.620e-01  2.116e-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.022e+00  1.933e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 1.12
Ra Dec: 351.883 -32.987
Photon Index (Free Index): 2.10 +/- 0.92
Photon Flux (Free Index): 1.29e-08 +/- 1.97e-08
Energy Flux (Free Index): 7.14e-06 +/- 1.21e-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/914080/cmap_HighResolution_336009601_336268801_4FGL_J2327.5-3259_daily_bin373.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='6.50e-03', comment='SUCCESS', energy_flux2='7.14e-06', dlogl='9.98e-02', photon_flux2='1.29e-08', job_status='DONE', time_completed='2021-09-29 20:14:03.498750', photon_index_error2='0.92', photon_index2='2.10', ts='0.92', fit_tolerance='1e-08', GAL='0.77', photon_index_error='0.00', photon_flux_upper_limit='8.33e-08', energy_flux_error2='1.21e-05', EG='1.01', time_epoch_completed='1632971643.5', return_code='0', job_id='914080', GAL2='0.76', EG2='1.02', return_code2='0', photon_flux_error2='1.97e-08', ts2='1.12', photon_index='2.56' WHERE bin_id='373' AND source_name='4FGL J2327.5-3259' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep 29 20:14:03 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0075>
Subject: Job 914080: <4FGL_J2327.5-3259_daily_bin373> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2327.5-3259_daily_bin373 351.883 -32.9869 336009601 336268801 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 :                                   669.01 sec.
    Max Memory :                                 1095 MB
    Average Memory :                             274.81 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   816 sec.
    Turnaround time :                            820 sec.

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

