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


Performing analysis on: 4FGL_J2327.5+0939_daily_bin631
RA = 351.896, Dec = 9.6543
tmin = 402883201, tmax = 403142401
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='907703', job_status='RUN', time_executed='2021-09-29 19:43:17.287680', time_epoch_executed='1632969797.29' WHERE source_name='4FGL J2327.5+0939' and cadence='daily' and bin_id='631'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/907703

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/907703/ft1_4FGL_J2327.5+0939_daily_bin631.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/907703/ft2_4FGL_J2327.5+0939_daily_bin631.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/907703/ft1_4FGL_J2327.5+0939_daily_bin631.fits outfile=/scratch/kocevski/907703/ft1_filteredMKT_4FGL_J2327.5+0939_daily_bin631.fits ra=351.896 dec=9.6543 rad=12.0 tmin=402883201.0 tmax=403142401.0 emin=100.0 emax=100000.0 zmin=0.0 zmax=90.0 evclass=128 evtype="INDEF" convtype=-1 phasemin=0.0 phasemax=1.0 evtable="EVENTS" chatter=2 clobber=yes debug=no gui=no mode="ql"

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

Done.
real 4.61
user 4.37
sys 0.23

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/907703/ft1_filtered_4FGL_J2327.5+0939_daily_bin631.fits" evtable="EVENTS" scfile=/scratch/kocevski/907703/ft2_4FGL_J2327.5+0939_daily_bin631.fits sctable="SC_DATA" outfile=/scratch/kocevski/907703/ltcube_402883201_403142401_4FGL_J2327.5+0939_daily_bin631.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/907703/ft2_4FGL_J2327.5+0939_daily_bin631.fits
.....................!
real 11.92
user 11.55
sys 0.35

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/907703/ft1_filtered_4FGL_J2327.5+0939_daily_bin631.fits evtable="EVENTS" scfile=/scratch/kocevski/907703/ft2_4FGL_J2327.5+0939_daily_bin631.fits sctable="SC_DATA" expcube=/scratch/kocevski/907703/ltcube_402883201_403142401_4FGL_J2327.5+0939_daily_bin631.fits outfile=/scratch/kocevski/907703/expmap_402883201_403142401_4FGL_J2327.5+0939_daily_bin631.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/907703/ltcube_402883201_403142401_4FGL_J2327.5+0939_daily_bin631.fits
.....................!
real 191.22
user 186.16
sys 4.59

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/907703/ft1_filtered_4FGL_J2327.5+0939_daily_bin631.fits scfile=/scratch/kocevski/907703/ft2_4FGL_J2327.5+0939_daily_bin631.fits outfile=/scratch/kocevski/907703/cmap_402883201_403142401_4FGL_J2327.5+0939_daily_bin631.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.38
sys 0.14

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

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    33.765       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10485E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    2.3631       1.0000         .10000E-03   10000.    
     4 'Prefactor '    25.491       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .14938E-02   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10087E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    14.649       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .96512       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10132E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    1.7357       1.0000         .10000E-03   10000.    
    12 'norm      '    10.893       1.0000         .10000E-03   10000.    
    13 'Prefactor '    5.6220       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10058E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10063E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    19.124       1.0000         .10000E-03   10000.    
    17 'norm      '    68.593       1.0000         .10000E-03   10000.    
    18 'Prefactor '    21.693       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10103E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    5.2301       1.0000         .10000E-03   10000.    
    21 'Normalizat'    1.2846       1.0000         .10000E-01   10.000    
    22 'Prefactor '    .64083       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.
 MACHINE ACCURACY LIMITS FURTHER IMPROVEMENT.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   6500.020     FROM MIGRAD    STATUS=CONVERGED    485 CALLS     2338 TOTAL
                     EDM=   .21E-05    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     33.777        41.860         .0000       -.74531E-03
   2  Prefactor     .10000E-03    9.5542         .0000    ** at limit **
   3  Prefactor     2.3629        .29106         .0000       -.13656E-02
   4  Prefactor     25.496        29.489         .0000        .10572E-02
   5  Prefactor     .10026E-03    4.3183         .0000    ** at limit **
   6  Prefactor     .10000E-03    6.2357         .0000    ** at limit **
   7  Prefactor     .10000E-03    4.7618         .0000    ** at limit **
   8  Prefactor     14.648        7.9188         .0000        .71067E-03
   9  Prefactor     .98211        15.493         .0000        .24786E-01
  10  Prefactor     .10000E-03    24.314         .0000    ** at limit **
  11  Prefactor     1.6471        226.61         .0000        .22182E-03
  12  norm          10.880        11.482         .0000       -.65586E-02
  13  Prefactor     5.6290        10.388         .0000        .14353E-02
  14  Prefactor     .10001E-03    10.855         .0000    ** at limit **
  15  Prefactor     .10001E-03    18.963         .0000    ** at limit **
  16  norm          19.123        16.454         .0000        .55788E-04
  17  norm          68.600        33.026         .0000       -.97232E-03
  18  Prefactor     21.694        26.893         .0000       -.40411E-03
  19  Prefactor     .10000E-03    5.6868         .0000    ** at limit **
  20  Prefactor     5.2303        5.7209         .0000       -.15148E-02
  21  Normalizat    1.2847        .21657         .0000       -.24432E-04
  22  Prefactor     .64065        .12605         .0000       -.51332E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 33.7769
  Prefactor  = 0.000100004
  Prefactor  = 2.3629
  Prefactor  = 25.4963
  Prefactor  = 0.000100261
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 14.6483
  Prefactor  = 0.982107
  Prefactor  = 0.000100003
  Prefactor  = 1.64711
  norm       = 10.8795
  Prefactor  = 5.62896
  Prefactor  = 0.000100015
  Prefactor  = 0.000100014
  norm       = 19.1233
  norm       = 68.6
  Prefactor  = 21.6941
  Prefactor  = 0.0001
  Prefactor  = 5.23028
  Normalizat = 1.28471
  Prefactor  = 0.640651
 **********
 **   18 **HESSE 
 **********

 FCN=   6500.020     FROM HESSE     STATUS=OK           338 CALLS     2676 TOTAL
                     EDM=   .10E-06    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     33.777        41.956        .68962E-04   -1.4545    
   2  Prefactor     .10000E-03    9.5678        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     2.3629        .29118        .14428E-04   -1.5401    
   4  Prefactor     25.496        29.507        .79343E-04   -1.4698    
   5  Prefactor     .10026E-03    19.184        .32340E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    6.2574        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    4.7636        .17183E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     14.648        7.9221        .10465E-03   -1.4942    
   9  Prefactor     .98211        15.520        .26084E-02   -1.5510    
  10  Prefactor     .10000E-03    24.457        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     1.6471        229.63        .31854E-03   -1.5451    
  12  norm          10.880        11.234        .12139E-03   -1.5048    
  13  Prefactor     5.6290        10.287        .16943E-03   -1.5233    
  14  Prefactor     .10001E-03    10.895        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10001E-03    19.056        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          19.123        16.453        .91589E-04   -1.4833    
  17  norm          68.600        32.980        .48465E-04   -1.4050    
  18  Prefactor     21.694        26.910        .85998E-04   -1.4776    
  19  Prefactor     .10000E-03    5.6890        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     5.2303        5.7251        .17577E-03   -1.5251    
  21  Normalizat    1.2847        .25320        .28921E-03   -.84024    
  22  Prefactor     .64065        .14607        .23639E-03   -1.0590    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.03159e-07
Minuit parameter uncertainties:
  1  41.9923
  2  0.000410664
  3  0.291176
  4  29.5241
  5  0.00447401
  6  5.11897e-05
  7  2.65982e-05
  8  7.92264
  9  7.81041
  10  0.000565247
  11  39.0485
  12  11.2364
  13  10.2898
  14  0.000796354
  15  0.0010402
  16  16.4572
  17  32.9884
  18  26.9254
  19  7.36919e-05
  20  5.72565
  21  0.253447
  22  0.146158
Done.

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

Extracting fit parameters...

4FGL J2327.5+0939
   Spectrum: LogParabola
409         norm:  1.088e+01  1.124e+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:  6.407e-01  1.462e-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.285e+00  2.534e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 2.19
Ra Dec: 351.896 9.654
Photon Index (Fixed Index): 2.68 +/- 0.00
Photon Flux (Fixed Index): 5.90e-08 +/- 6.09e-08
Energy Flux (Fixed Index): 1.47e-05 +/- 1.51e-05

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

Saving results to:
/scratch/kocevski/907703/likelihoodResults_402883201_403142401_4FGL_J2327.5+0939_daily_bin631.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) = 6499.99783595
delta logL = 0.0219472401313

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6499.99022533
delta logL = 0.029557859104

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    9.6907       1.0000         .10000E-03   10000.    
     2 'alpha     '    2.8759       1.0000          .0000       5.0000    
     3 'Normalizat'    1.2768       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .64401       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=   6499.990     FROM MIGRAD    STATUS=CONVERGED     56 CALLS      212 TOTAL
                     EDM=   .45E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          9.6867        217.16        .32182E-02    .13256E-03
   2  alpha         2.8771        3.4397        .41755        .39952E-04
   3  Normalizat    1.2769        .86017E-01    .65543E-01   -.32578E-04
   4  Prefactor     .64392        .51126E-01    .41651E-01    .27885E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 9.68672
  alpha      = 2.87714
  Normalizat = 1.27691
  Prefactor  = 0.643925
 **********
 **   18 **HESSE 
 **********

 FCN=   6499.990     FROM HESSE     STATUS=OK            33 CALLS      245 TOTAL
                     EDM=   .20E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          9.6867        10.493        .12873E-03   -1.5085    
   2  alpha         2.8771        .84836        .17626E-01    .15144    
   3  Normalizat    1.2769        .24641        .28993E-03   -.84258    
   4  Prefactor     .64392        .14619        .23585E-03   -1.0577    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.03177e-11
Minuit parameter uncertainties:
  1  10.4954
  2  0.865968
  3  0.246633
  4  0.146272
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/907703': 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) = 6499.99022372
delta logL = 0.0295594704503

Extracting fit parameters...

4FGL J2327.5+0939
   Spectrum: LogParabola
409         norm:  9.687e+00  1.050e+01  1.000e-04  1.000e+04 ( 1.000e-12)
410        alpha:  2.877e+00  8.660e-01  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:  6.439e-01  1.463e-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.277e+00  2.466e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 2.24
Ra Dec: 351.896 9.654
Photon Index (Free Index): 2.88 +/- 0.87
Photon Flux (Free Index): 6.57e-08 +/- 5.82e-08
Energy Flux (Free Index): 1.46e-05 +/- 1.22e-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/907703/cmap_HighResolution_402883201_403142401_4FGL_J2327.5+0939_daily_bin631.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='4.14e-05', comment='SUCCESS', photon_flux='5.90e-08', energy_flux2='1.46e-05', photon_flux_error='6.09e-08', dlogl='2.96e-02', energy_flux='1.47e-05', photon_flux2='6.57e-08', job_status='DONE', time_completed='2021-09-29 19:53:53.542090', photon_index_error2='0.87', photon_index2='2.88', ts='2.19', fit_tolerance='1e-08', GAL='0.64', photon_index_error='0.00', photon_flux_upper_limit='1.67e-07', energy_flux_error2='1.22e-05', EG='1.28', time_epoch_completed='1632970433.54', return_code='0', job_id='907703', GAL2='0.64', EG2='1.28', return_code2='0', energy_flux_error='1.51e-05', photon_flux_error2='5.82e-08', ts2='2.24', photon_index='2.68' WHERE bin_id='631' AND source_name='4FGL J2327.5+0939' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep 29 19:53:53 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0205>
Subject: Job 907703: <4FGL_J2327.5+0939_daily_bin631> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2327.5+0939_daily_bin631 351.896 9.6543 402883201 403142401 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 :                                   631.09 sec.
    Max Memory :                                 1093 MB
    Average Memory :                             291.95 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   808 sec.
    Turnaround time :                            811 sec.

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

