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


Performing analysis on: 4FGL_J2327.5+0939_daily_bin780
RA = 351.896, Dec = 9.6543
tmin = 441504001, tmax = 441763201
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='907953', job_status='RUN', time_executed='2021-09-29 19:43:44.977887', time_epoch_executed='1632969824.98' WHERE source_name='4FGL J2327.5+0939' and cadence='daily' and bin_id='780'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/907953

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/907953/ft1_4FGL_J2327.5+0939_daily_bin780.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/907953/ft2_4FGL_J2327.5+0939_daily_bin780.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/907953/ft1_4FGL_J2327.5+0939_daily_bin780.fits outfile=/scratch/kocevski/907953/ft1_filteredMKT_4FGL_J2327.5+0939_daily_bin780.fits ra=351.896 dec=9.6543 rad=12.0 tmin=441504001.0 tmax=441763201.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.39
user 3.19
sys 0.18

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/907953/ft2_4FGL_J2327.5+0939_daily_bin780.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/907953/ft1_filteredMKT_4FGL_J2327.5+0939_daily_bin780.fits evtable="EVENTS" outfile="/scratch/kocevski/907953/ft1_filtered_4FGL_J2327.5+0939_daily_bin780.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.49
user 0.34
sys 0.14

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/907953/ft1_filtered_4FGL_J2327.5+0939_daily_bin780.fits" evtable="EVENTS" scfile=/scratch/kocevski/907953/ft2_4FGL_J2327.5+0939_daily_bin780.fits sctable="SC_DATA" outfile=/scratch/kocevski/907953/ltcube_441504001_441763201_4FGL_J2327.5+0939_daily_bin780.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/907953/ft2_4FGL_J2327.5+0939_daily_bin780.fits
.....................!
real 11.95
user 11.61
sys 0.31

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/907953/ft1_filtered_4FGL_J2327.5+0939_daily_bin780.fits evtable="EVENTS" scfile=/scratch/kocevski/907953/ft2_4FGL_J2327.5+0939_daily_bin780.fits sctable="SC_DATA" expcube=/scratch/kocevski/907953/ltcube_441504001_441763201_4FGL_J2327.5+0939_daily_bin780.fits outfile=/scratch/kocevski/907953/expmap_441504001_441763201_4FGL_J2327.5+0939_daily_bin780.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/907953/ltcube_441504001_441763201_4FGL_J2327.5+0939_daily_bin780.fits
.....................!
real 190.20
user 185.20
sys 4.64

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/907953/ft1_filtered_4FGL_J2327.5+0939_daily_bin780.fits scfile=/scratch/kocevski/907953/ft2_4FGL_J2327.5+0939_daily_bin780.fits outfile=/scratch/kocevski/907953/cmap_441504001_441763201_4FGL_J2327.5+0939_daily_bin780.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.37
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/907953/ft1_filtered_4FGL_J2327.5+0939_daily_bin780.fits scfile=/scratch/kocevski/907953/ft2_4FGL_J2327.5+0939_daily_bin780.fits outfile=/scratch/kocevski/907953/cmap_HighResolution_441504001_441763201_4FGL_J2327.5+0939_daily_bin780.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.37
sys 0.15

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

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/907953/ft1_filtered_4FGL_J2327.5+0939_daily_bin780.fits', '/scratch/kocevski/907953/ft2_4FGL_J2327.5+0939_daily_bin780.fits', expMap='/scratch/kocevski/907953/expmap_441504001_441763201_4FGL_J2327.5+0939_daily_bin780.fits', expCube='/scratch/kocevski/907953/ltcube_441504001_441763201_4FGL_J2327.5+0939_daily_bin780.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/907953/Model_4FGL_J2327.5+0939_daily_bin780.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/907953/ft1_filtered_4FGL_J2327.5+0939_daily_bin780.fits
Spacecraft file(s): /scratch/kocevski/907953/ft2_4FGL_J2327.5+0939_daily_bin780.fits
Exposure map: /scratch/kocevski/907953/expmap_441504001_441763201_4FGL_J2327.5+0939_daily_bin780.fits
Exposure cube: /scratch/kocevski/907953/ltcube_441504001_441763201_4FGL_J2327.5+0939_daily_bin780.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/907953/Model_4FGL_J2327.5+0939_daily_bin780.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) = 8440.95146271

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    10.570       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10361E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    6.2653       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10008E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .23884E-02   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .11090E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10467E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    1.4267       1.0000         .10000E-03   10000.    
    10 'Prefactor '    38.053       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10345E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    3.6883       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    1.5537       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    11.752       1.0000         .10000E-03   10000.    
    17 'norm      '    .10566E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    41.391       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10013E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10752E-02   1.0000         .10000E-03   10000.    
    21 'Normalizat'    1.0813       1.0000         .10000E-01   10.000    
    22 'Prefactor '    .94108       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.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   8440.947     FROM MIGRAD    STATUS=CONVERGED    856 CALLS     2790 TOTAL
                     EDM=   .66E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     10.542        41.990        .12324E-03   -.15867E-04
   2  Prefactor     .10000E-03    45.761        .18142E-02** at limit **
   3  Prefactor     6.2649        .42726        .14901E-04    .44863E-03
   4  Prefactor     .10000E-03    9.7194        .18142E-02** at limit **
   5  Prefactor     .10000E-03    3.9221        .17675E-02** at limit **
   6  Prefactor     .10212E-03    12.772        .82707E-01** at limit **
   7  Prefactor     .10000E-03    34.983        .18142E-02** at limit **
   8  Prefactor     .10000E-03    3.3450        .16322E-02** at limit **
   9  Prefactor     1.4058        24.278        .36188E-03    .15143E-04
  10  Prefactor     38.058        22.715        .64972E-04   -.27296E-04
  11  Prefactor     .10000E-03    50.172        .18142E-02** at limit **
  12  norm          3.7124        9.5185        .10515E-02   -.28911E-04
  13  Prefactor     .10000E-03    15.954        .36285E-03** at limit **
  14  Prefactor     1.5709        22.307        .34161E-03    .32481E-04
  15  Prefactor     .10000E-03    8.8243        .18142E-02** at limit **
  16  norm          11.755        17.958        .11686E-03   -.41833E-04
  17  norm          .10000E-03    11.692        .18142E-02** at limit **
  18  Prefactor     41.395        37.530        .62307E-04    .32843E-05
  19  Prefactor     .10000E-03    15.850        .18142E-02** at limit **
  20  Prefactor     .10026E-03    5.2643        .64143E-01** at limit **
  21  Normalizat    1.0815        .26484        .36171E-03   -.16690E-03
  22  Prefactor     .94092        .15861        .23708E-03   -.93986E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 10.5425
  Prefactor  = 0.0001
  Prefactor  = 6.26487
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000102124
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 1.40577
  Prefactor  = 38.0581
  Prefactor  = 0.0001
  norm       = 3.71241
  Prefactor  = 0.0001
  Prefactor  = 1.57089
  Prefactor  = 0.0001
  norm       = 11.7555
  norm       = 0.0001
  Prefactor  = 41.3946
  Prefactor  = 0.0001
  Prefactor  = 0.000100263
  Normalizat = 1.08147
  Prefactor  = 0.940917
 **********
 **   18 **HESSE 
 **********

 FCN=   8440.947     FROM HESSE     STATUS=OK           342 CALLS     3132 TOTAL
                     EDM=   .63E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     10.542        42.023        .49295E-05   -1.5058    
   2  Prefactor     .10000E-03    45.778        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     6.2649        .42727        .59602E-06   -1.5207    
   4  Prefactor     .10000E-03    9.7195        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    3.9237        .35351E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10212E-03    11.733        .87541E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    34.995        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    3.3460        .32644E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     1.4058        24.151        .14475E-04   -1.5471    
  10  Prefactor     38.058        22.714        .25989E-05   -1.4473    
  11  Prefactor     .10000E-03    50.174        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          3.7124        9.4898        .42060E-04   -1.5323    
  13  Prefactor     .10000E-03    15.955        .72569E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     1.5709        22.297        .13664E-04   -1.5457    
  15  Prefactor     .10000E-03    8.8246        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          11.755        17.960        .46743E-05   -1.5022    
  17  norm          .10000E-03    11.692        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     41.395        37.565        .24923E-05   -1.4420    
  19  Prefactor     .10000E-03    15.853        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10026E-03    5.1535        .65294E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Normalizat    1.0815        .26505        .14468E-04   -.90349    
  22  Prefactor     .94092        .15876        .94834E-05   -.94726    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 6.32553e-10
Minuit parameter uncertainties:
  1  42.1414
  2  1.99419e-05
  3  0.427271
  4  5.14104e-06
  5  1.14154e-05
  6  0.00998589
  7  0.000145844
  8  1.28487e-05
  9  11.6586
  10  22.7189
  11  0.000274663
  12  9.49366
  13  3.37338e-05
  14  11.8416
  15  4.27679e-06
  16  17.9687
  17  8.54891e-05
  18  37.5868
  19  1.84131e-05
  20  0.00232896
  21  0.265376
  22  0.158843
Done.

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

Extracting fit parameters...

4FGL J2327.5+0939
   Spectrum: LogParabola
409         norm:  3.712e+00  9.494e+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

GAL_V02
   Spectrum: PowerLaw
503    Prefactor:  9.409e-01  1.588e-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.081e+00  2.654e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/907953/likelihoodResults_441504001_441763201_4FGL_J2327.5+0939_daily_bin780.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) = 8440.90259047
delta logL = 0.0443263093584

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 8440.89871879
delta logL = 0.0481979969245

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    3.1405       1.0000         .10000E-03   10000.    
     2 'alpha     '    3.1625       1.0000          .0000       5.0000    
     3 'Normalizat'    1.0693       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .94537       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.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   8440.899     FROM MIGRAD    STATUS=CONVERGED     81 CALLS      239 TOTAL
                     EDM=   .67E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          3.1387        8.9771        .22875E-03    .17467E-02
   2  alpha         3.1614        1.6761        .39635E-01    .13394E-03
   3  Normalizat    1.0695        .26034        .36347E-03   -.61367E-03
   4  Prefactor     .94525        .15854        .23659E-03   -.90251E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 3.13874
  alpha      = 3.1614
  Normalizat = 1.06953
  Prefactor  = 0.945249
 **********
 **   18 **HESSE 
 **********

 FCN=   8440.899     FROM HESSE     STATUS=OK            25 CALLS      264 TOTAL
                     EDM=   .68E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          3.1387        7.5700        .91500E-05   -1.5354    
   2  alpha         3.1614        1.4537        .15854E-02    .26775    
   3  Normalizat    1.0695        .26080        .72694E-04   -.90736    
   4  Prefactor     .94525        .15856        .47317E-04   -.94577    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 6.75474e-09
Minuit parameter uncertainties:
  1  7.57231
  2  1.5604
  3  0.261117
  4  0.158642
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/907953': 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) = 8440.89871783
delta logL = 0.0481989494019

Extracting fit parameters...

4FGL J2327.5+0939
   Spectrum: LogParabola
409         norm:  3.139e+00  7.572e+00  1.000e-04  1.000e+04 ( 1.000e-12)
410        alpha:  3.161e+00  1.560e+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.452e-01  1.586e-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.070e+00  2.611e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 0.21
Ra Dec: 351.896 9.654

Creating a high resolution counts map...
INFO: Auto-setting vmin to -1.000e-01 [aplpy.core]
INFO: Auto-setting vmax to  1.110e+00 [aplpy.core]
Saving /scratch/kocevski/907953/cmap_HighResolution_441504001_441763201_4FGL_J2327.5+0939_daily_bin780.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='3.27e-05', job_status='DONE', photon_flux_upper_limit='1.31e-07', time_completed='2021-09-29 19:56:59.260042', job_id='907953', GAL2='0.95', fit_tolerance='1e-08', EG2='1.07', EG='1.08', time_epoch_completed='1632970619.26', return_code2='0', ts='0.21', comment='SUCCESS', return_code='0', GAL='0.94', dlogl='4.82e-02', ts2='0.30', photon_index_error='0.00', photon_index='2.68' WHERE bin_id='780' AND source_name='4FGL J2327.5+0939' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep 29 19:56:59 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0046>
Subject: Job 907953: <4FGL_J2327.5+0939_daily_bin780> in cluster <slac> Done

Job <4FGL_J2327.5+0939_daily_bin780> was submitted from host <rhel6-64d> by user <kocevski> in cluster <slac> at Wed Sep 29 19:40:47 2021
Job was executed on host(s) <bullet0046>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Sep 29 19:40:49 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:49 2021
Terminated at Wed Sep 29 19:57:00 2021
Results reported at Wed Sep 29 19:57:00 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2327.5+0939_daily_bin780 351.896 9.6543 441504001 441763201 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 :                                   791.12 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             304.45 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   970 sec.
    Turnaround time :                            973 sec.

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

