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


Performing analysis on: 4FGL_J2327.5+0939_daily_bin658
RA = 351.896, Dec = 9.6543
tmin = 409881601, tmax = 410140801
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='907747', job_status='RUN', time_executed='2021-09-29 19:44:29.533611', time_epoch_executed='1632969869.53' WHERE source_name='4FGL J2327.5+0939' and cadence='daily' and bin_id='658'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/907747

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/907747/ft1_4FGL_J2327.5+0939_daily_bin658.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/907747/ft2_4FGL_J2327.5+0939_daily_bin658.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/907747/ft1_4FGL_J2327.5+0939_daily_bin658.fits outfile=/scratch/kocevski/907747/ft1_filteredMKT_4FGL_J2327.5+0939_daily_bin658.fits ra=351.896 dec=9.6543 rad=12.0 tmin=409881601.0 tmax=410140801.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.22
user 5.94
sys 0.27

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/907747/ft2_4FGL_J2327.5+0939_daily_bin658.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/907747/ft2_4FGL_J2327.5+0939_daily_bin658.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/907747/ft1_filteredMKT_4FGL_J2327.5+0939_daily_bin658.fits evtable="EVENTS" outfile="/scratch/kocevski/907747/ft1_filtered_4FGL_J2327.5+0939_daily_bin658.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.32
sys 0.16

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/907747/ft1_filtered_4FGL_J2327.5+0939_daily_bin658.fits" evtable="EVENTS" scfile=/scratch/kocevski/907747/ft2_4FGL_J2327.5+0939_daily_bin658.fits sctable="SC_DATA" outfile=/scratch/kocevski/907747/ltcube_409881601_410140801_4FGL_J2327.5+0939_daily_bin658.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/907747/ft2_4FGL_J2327.5+0939_daily_bin658.fits
.....................!
real 12.58
user 12.19
sys 0.33

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/907747/ft1_filtered_4FGL_J2327.5+0939_daily_bin658.fits evtable="EVENTS" scfile=/scratch/kocevski/907747/ft2_4FGL_J2327.5+0939_daily_bin658.fits sctable="SC_DATA" expcube=/scratch/kocevski/907747/ltcube_409881601_410140801_4FGL_J2327.5+0939_daily_bin658.fits outfile=/scratch/kocevski/907747/expmap_409881601_410140801_4FGL_J2327.5+0939_daily_bin658.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/907747/ltcube_409881601_410140801_4FGL_J2327.5+0939_daily_bin658.fits
.....................!
real 191.30
user 186.09
sys 4.83

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 155 point sources and 0 extended sources

Setting source of interest to:
4FGL J2327.5+0939 @ 351.896 9.6543

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/907747/ft1_filtered_4FGL_J2327.5+0939_daily_bin658.fits scfile=/scratch/kocevski/907747/ft2_4FGL_J2327.5+0939_daily_bin658.fits outfile=/scratch/kocevski/907747/cmap_409881601_410140801_4FGL_J2327.5+0939_daily_bin658.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.896 yref=9.6543 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.36
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/907747/ft1_filtered_4FGL_J2327.5+0939_daily_bin658.fits scfile=/scratch/kocevski/907747/ft2_4FGL_J2327.5+0939_daily_bin658.fits outfile=/scratch/kocevski/907747/cmap_HighResolution_409881601_410140801_4FGL_J2327.5+0939_daily_bin658.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.896 yref=9.6543 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.38
sys 0.15

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/907747/ft1_filtered_4FGL_J2327.5+0939_daily_bin658.fits evtable="EVENTS" scfile=/scratch/kocevski/907747/ft2_4FGL_J2327.5+0939_daily_bin658.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/907747/Model_4FGL_J2327.5+0939_daily_bin658.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/907747/ft1_filtered_4FGL_J2327.5+0939_daily_bin658.fits.....................!
real 45.96
user 44.58
sys 1.24

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/907747/ft1_filtered_4FGL_J2327.5+0939_daily_bin658.fits', '/scratch/kocevski/907747/ft2_4FGL_J2327.5+0939_daily_bin658.fits', expMap='/scratch/kocevski/907747/expmap_409881601_410140801_4FGL_J2327.5+0939_daily_bin658.fits', expCube='/scratch/kocevski/907747/ltcube_409881601_410140801_4FGL_J2327.5+0939_daily_bin658.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/907747/Model_4FGL_J2327.5+0939_daily_bin658.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J2327.5+0939'

4FGL J2327.5+0939
   Spectrum: LogParabola
409         norm:  8.298e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-12)
410        alpha:  2.682e+00  0.000e+00  0.000e+00  5.000e+00 ( 1.000e+00) fixed
411         beta:  1.276e-01  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
412           Eb:  5.819e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/907747/ft1_filtered_4FGL_J2327.5+0939_daily_bin658.fits
Spacecraft file(s): /scratch/kocevski/907747/ft2_4FGL_J2327.5+0939_daily_bin658.fits
Exposure map: /scratch/kocevski/907747/expmap_409881601_410140801_4FGL_J2327.5+0939_daily_bin658.fits
Exposure cube: /scratch/kocevski/907747/ltcube_409881601_410140801_4FGL_J2327.5+0939_daily_bin658.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/907747/Model_4FGL_J2327.5+0939_daily_bin658.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) = 3420.10962264

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    36.285       1.0000         .10000E-03   10000.    
     2 'Prefactor '    13.182       1.0000         .10000E-03   10000.    
     3 'Prefactor '    1.6223       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10319E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10010E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    15.666       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10138E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10023E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    15.403       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10008E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10029E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    61.273       1.0000         .10000E-03   10000.    
    18 'Prefactor '    24.098       1.0000         .10000E-03   10000.    
    19 'Prefactor '    9.2847       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
    21 'Normalizat'    1.1731       1.0000         .10000E-01   10.000    
    22 'Prefactor '    .94525       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5060E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   3420.021     FROM MIGRAD    STATUS=CONVERGED    450 CALLS     2337 TOTAL
                     EDM=   .12E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.2%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     36.263        65.730       -.14610E-05   -.23731E-04
   2  Prefactor     13.137        40.799       -.20001E-05   -.38053E-04
   3  Prefactor     1.6224        .43644        .12017E-06    .23148E-02
   4  Prefactor     .10000E-03    15.249        .13598E-07** at limit **
   5  Prefactor     .10000E-03    27.016       -.14938E-05** at limit **
   6  Prefactor     .10000E-03    17.283       -.61378E-06** at limit **
   7  Prefactor     .10000E-03    20.578       -.79887E-07** at limit **
   8  Prefactor     15.668        14.915        .61142E-06    .64946E-04
   9  Prefactor     .10000E-03    7.1065        .68873E-07** at limit **
  10  Prefactor     .10000E-03    38.891       -.34250E-06** at limit **
  11  Prefactor     .10000E-03    44.008        .78682E-06** at limit **
  12  norm          15.410        13.677        .52796E-06    .36518E-04
  13  Prefactor     .10000E-03    8.5585       -.24682E-06** at limit **
  14  Prefactor     .10000E-03    18.731        .13576E-05** at limit **
  15  Prefactor     .10000E-03    13.337        .23648E-06** at limit **
  16  norm          .10000E-03    17.380       -.26713E-06** at limit **
  17  norm          61.272        44.669       -.10525E-06   -.35079E-04
  18  Prefactor     24.195        69.985        .27272E-05    .24042E-04
  19  Prefactor     9.2814        40.589        .20021E-05    .30396E-04
  20  Prefactor     .10000E-03    12.680       -.74021E-06** at limit **
  21  Normalizat    1.1720        .40538       -.11399E-04    .24934E-04
  22  Prefactor     .94589        .23486        .66245E-05   -.70948E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 36.2626
  Prefactor  = 13.1369
  Prefactor  = 1.62241
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 15.6679
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 15.41
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 61.2723
  Prefactor  = 24.1947
  Prefactor  = 9.28144
  Prefactor  = 0.0001
  Normalizat = 1.17197
  Prefactor  = 0.94589
 **********
 **   18 **HESSE 
 **********

 FCN=   3420.021     FROM HESSE     STATUS=OK           332 CALLS     2669 TOTAL
                     EDM=   .26E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     36.263        65.883        .66532E-04   -1.4503    
   2  Prefactor     13.137        41.140        .11032E-03   -1.4983    
   3  Prefactor     1.6224        .44491        .18591E-04   -1.5453    
   4  Prefactor     .10000E-03    15.253        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    27.569        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    17.387        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    20.623        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     15.668        14.926        .10119E-03   -1.4916    
   9  Prefactor     .10000E-03    7.1130        .15225E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    38.999        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    44.064        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          15.410        13.675        .10205E-03   -1.4923    
  13  Prefactor     .10000E-03    8.5973        .16697E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    18.911        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    13.344        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          .10000E-03    17.408        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          61.272        44.624        .51260E-04   -1.4141    
  18  Prefactor     24.195        70.047        .81600E-04   -1.4724    
  19  Prefactor     9.2814        40.798        .13153E-03   -1.5099    
  20  Prefactor     .10000E-03    12.823        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Normalizat    1.1720        .40610        .33222E-03   -.87473    
  22  Prefactor     .94589        .23737        .22077E-03   -.94556    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.58905e-10
Minuit parameter uncertainties:
  1  66.0156
  2  41.2291
  3  0.44491
  4  2.03357e-05
  5  0.000201013
  6  5.45021e-05
  7  1.07438e-05
  8  14.9294
  9  8.3499e-06
  10  3.06199e-05
  11  0.000139251
  12  13.6779
  13  9.69578e-06
  14  0.000174571
  15  2.97734e-05
  16  2.18951e-05
  17  44.6485
  18  70.2869
  19  38.9633
  20  5.61434e-05
  21  0.407193
  22  0.237632
Done.

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

Extracting fit parameters...

4FGL J2327.5+0939
   Spectrum: LogParabola
409         norm:  1.541e+01  1.368e+01  1.000e-04  1.000e+04 ( 1.000e-12)
410        alpha:  2.682e+00  0.000e+00  0.000e+00  5.000e+00 ( 1.000e+00) fixed
411         beta:  1.276e-01  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
412           Eb:  5.819e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
503    Prefactor:  9.459e-01  2.376e-01  0.000e+00  1.000e+01 ( 1.000e+00)
504        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
505        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
502   Normalization:  1.172e+00  4.072e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 2.60
Ra Dec: 351.896 9.654
Photon Index (Fixed Index): 2.68 +/- 0.00
Photon Flux (Fixed Index): 8.36e-08 +/- 7.41e-08
Energy Flux (Fixed Index): 2.08e-05 +/- 1.84e-05

TS (Fixed Index): 2.60
Ra Dec: 351.896 9.654
Photon Flux Upper Limit: 2.61e-07 ph cm-2 s-1
Energy Flux Upper Limit: 6.50e-05 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/907747/likelihoodResults_409881601_410140801_4FGL_J2327.5+0939_daily_bin658.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) = 3419.97664592
delta logL = 0.0447628500838

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 3419.97423638
delta logL = 0.0471723960563

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    16.870       1.0000         .10000E-03   10000.    
     2 'alpha     '    2.3591       1.0000          .0000       5.0000    
     3 'Normalizat'    1.1924       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .93825       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5060E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   3419.974     FROM MIGRAD    STATUS=CONVERGED     55 CALLS      226 TOTAL
                     EDM=   .66E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          16.844        15.804        .24378E-02    .17015E-03
   2  alpha         2.3643        1.0375        .41235E-01    .19182E-03
   3  Normalizat    1.1919        .32768        .74526E-01    .56620E-05
   4  Prefactor     .93847        .19673        .45491E-01    .19777E-05
                               ERR DEF=  .500    
Final values: 
  norm       = 16.8443
  alpha      = 2.36434
  Normalizat = 1.1919
  Prefactor  = 0.938469
 **********
 **   18 **HESSE 
 **********

 FCN=   3419.974     FROM HESSE     STATUS=OK            31 CALLS      257 TOTAL
                     EDM=   .93E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          16.844        15.581        .48757E-03   -1.4887    
   2  alpha         2.3643        1.0278        .82469E-02   -.54289E-01
   3  Normalizat    1.1919        .39296        .32982E-03   -.86853    
   4  Prefactor     .93847        .23591        .22155E-03   -.94810    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 9.33946e-12
Minuit parameter uncertainties:
  1  15.5848
  2  1.0593
  3  0.393937
  4  0.236163
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/907747': 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) = 3419.97422334
delta logL = 0.047185432159

Extracting fit parameters...

4FGL J2327.5+0939
   Spectrum: LogParabola
409         norm:  1.684e+01  1.558e+01  1.000e-04  1.000e+04 ( 1.000e-12)
410        alpha:  2.364e+00  1.059e+00  0.000e+00  5.000e+00 ( 1.000e+00)
411         beta:  1.276e-01  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
412           Eb:  5.819e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
503    Prefactor:  9.385e-01  2.362e-01  0.000e+00  1.000e+01 ( 1.000e+00)
504        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
505        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
502   Normalization:  1.192e+00  3.939e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 2.68
Ra Dec: 351.896 9.654
Photon Index (Free Index): 2.36 +/- 1.06
Photon Flux (Free Index): 6.54e-08 +/- 8.46e-08
Energy Flux (Free Index): 2.08e-05 +/- 1.91e-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/907747/cmap_HighResolution_409881601_410140801_4FGL_J2327.5+0939_daily_bin658.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='6.50e-05', comment='SUCCESS', photon_flux='8.36e-08', energy_flux2='2.08e-05', photon_flux_error='7.41e-08', dlogl='4.72e-02', energy_flux='2.08e-05', photon_flux2='6.54e-08', job_status='DONE', time_completed='2021-09-29 19:52:38.090815', photon_index_error2='1.06', photon_index2='2.36', ts='2.60', fit_tolerance='1e-08', GAL='0.95', photon_index_error='0.00', photon_flux_upper_limit='2.61e-07', energy_flux_error2='1.91e-05', EG='1.17', time_epoch_completed='1632970358.09', return_code='0', job_id='907747', GAL2='0.94', EG2='1.19', return_code2='0', energy_flux_error='1.84e-05', photon_flux_error2='8.46e-08', ts2='2.68', photon_index='2.68' WHERE bin_id='658' AND source_name='4FGL J2327.5+0939' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep 29 19:52:38 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0223>
Subject: Job 907747: <4FGL_J2327.5+0939_daily_bin658> in cluster <slac> Done

Job <4FGL_J2327.5+0939_daily_bin658> was submitted from host <rhel6-64d> by user <kocevski> in cluster <slac> at Wed Sep 29 19:40:28 2021
Job was executed on host(s) <bullet0223>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Sep 29 19:40:30 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Wed Sep 29 19:40:30 2021
Terminated at Wed Sep 29 19:52:38 2021
Results reported at Wed Sep 29 19:52:38 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2327.5+0939_daily_bin658 351.896 9.6543 409881601 410140801 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J2327.5+0939 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   488.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             214.17 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   728 sec.
    Turnaround time :                            730 sec.

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

