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


Performing analysis on: 4FGL_J2327.5+0939_daily_bin755
RA = 351.896, Dec = 9.6543
tmin = 435024001, tmax = 435283201
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='907914', job_status='RUN', time_executed='2021-09-29 19:43:20.505861', time_epoch_executed='1632969800.51' WHERE source_name='4FGL J2327.5+0939' and cadence='daily' and bin_id='755'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/907914

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/907914/ft1_4FGL_J2327.5+0939_daily_bin755.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/907914/ft2_4FGL_J2327.5+0939_daily_bin755.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/907914/ft1_4FGL_J2327.5+0939_daily_bin755.fits outfile=/scratch/kocevski/907914/ft1_filteredMKT_4FGL_J2327.5+0939_daily_bin755.fits ra=351.896 dec=9.6543 rad=12.0 tmin=435024001.0 tmax=435283201.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 5.09
user 4.82
sys 0.24

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/907914/ft1_filtered_4FGL_J2327.5+0939_daily_bin755.fits" evtable="EVENTS" scfile=/scratch/kocevski/907914/ft2_4FGL_J2327.5+0939_daily_bin755.fits sctable="SC_DATA" outfile=/scratch/kocevski/907914/ltcube_435024001_435283201_4FGL_J2327.5+0939_daily_bin755.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/907914/ft2_4FGL_J2327.5+0939_daily_bin755.fits
.....................!
real 12.59
user 11.82
sys 0.73

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/907914/ft1_filtered_4FGL_J2327.5+0939_daily_bin755.fits evtable="EVENTS" scfile=/scratch/kocevski/907914/ft2_4FGL_J2327.5+0939_daily_bin755.fits sctable="SC_DATA" expcube=/scratch/kocevski/907914/ltcube_435024001_435283201_4FGL_J2327.5+0939_daily_bin755.fits outfile=/scratch/kocevski/907914/expmap_435024001_435283201_4FGL_J2327.5+0939_daily_bin755.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/907914/ltcube_435024001_435283201_4FGL_J2327.5+0939_daily_bin755.fits
.....................!
real 191.38
user 185.94
sys 4.96

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/907914/ft1_filtered_4FGL_J2327.5+0939_daily_bin755.fits scfile=/scratch/kocevski/907914/ft2_4FGL_J2327.5+0939_daily_bin755.fits outfile=/scratch/kocevski/907914/cmap_435024001_435283201_4FGL_J2327.5+0939_daily_bin755.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/907914/ft1_filtered_4FGL_J2327.5+0939_daily_bin755.fits scfile=/scratch/kocevski/907914/ft2_4FGL_J2327.5+0939_daily_bin755.fits outfile=/scratch/kocevski/907914/cmap_HighResolution_435024001_435283201_4FGL_J2327.5+0939_daily_bin755.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.16

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

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 '    25.534       1.0000         .10000E-03   10000.    
     3 'Prefactor '    2.5295       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    11.746       1.0000         .10000E-03   10000.    
     6 'Prefactor '    14.334       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10022E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10011E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    10.869       1.0000         .10000E-03   10000.    
    10 'Prefactor '    10.719       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    21.006       1.0000         .10000E-03   10000.    
    13 'Prefactor '    8.7019       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10017E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10019E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    12.492       1.0000         .10000E-03   10000.    
    17 'norm      '    6.2229       1.0000         .10000E-03   10000.    
    18 'Prefactor '    15.280       1.0000         .10000E-03   10000.    
    19 'Prefactor '    35.431       1.0000         .10000E-03   10000.    
    20 'Prefactor '    7.9480       1.0000         .10000E-03   10000.    
    21 'Normalizat'    .85712       1.0000         .10000E-01   10.000    
    22 'Prefactor '    .86891       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=   3519.991     FROM MIGRAD    STATUS=CONVERGED    442 CALLS     2344 TOTAL
                     EDM=   .74E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.2%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    23.287       -.13716E-08** at limit **
   2  Prefactor     25.527        36.053       -.79968E-06   -.15935E-04
   3  Prefactor     2.5295        .38110        .39488E-07    .83641E-03
   4  Prefactor     .10000E-03    23.005       -.14572E-06** at limit **
   5  Prefactor     11.747        11.329       -.14178E-06    .17426E-04
   6  Prefactor     14.333        25.384        .71085E-06    .79378E-05
   7  Prefactor     .10000E-03    18.042       -.33246E-06** at limit **
   8  Prefactor     .10000E-03    10.691        .27542E-06** at limit **
   9  Prefactor     10.871        27.369        .97830E-06    .21865E-04
  10  Prefactor     10.730        36.195        .29538E-05    .13553E-04
  11  Prefactor     .10000E-03    36.426        .50260E-06** at limit **
  12  norm          21.007        22.091        .10738E-06    .18113E-04
  13  Prefactor     8.7086        16.924        .16254E-05    .27638E-04
  14  Prefactor     .10000E-03    35.685        .20364E-05** at limit **
  15  Prefactor     .10000E-03    15.330        .23077E-06** at limit **
  16  norm          12.484        24.869        .18187E-07   -.84149E-05
  17  norm          6.2182        65.878        .18520E-05    .57077E-05
  18  Prefactor     15.384        98.124        .82626E-05    .43819E-04
  19  Prefactor     35.432        40.940        .11630E-05    .31117E-04
  20  Prefactor     7.9568        17.726        .22181E-05    .26847E-04
  21  Normalizat    .85641        .42863       -.18712E-04    .23166E-05
  22  Prefactor     .86928        .22565        .88734E-05   -.75719E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 25.5269
  Prefactor  = 2.52952
  Prefactor  = 0.0001
  Prefactor  = 11.7469
  Prefactor  = 14.333
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 10.8712
  Prefactor  = 10.73
  Prefactor  = 0.0001
  norm       = 21.0072
  Prefactor  = 8.70863
  Prefactor  = 0.000100001
  Prefactor  = 0.0001
  norm       = 12.4843
  norm       = 6.21816
  Prefactor  = 15.3845
  Prefactor  = 35.432
  Prefactor  = 7.9568
  Normalizat = 0.856406
  Prefactor  = 0.869278
 **********
 **   18 **HESSE 
 **********

 FCN=   3519.991     FROM HESSE     STATUS=OK           342 CALLS     2686 TOTAL
                     EDM=   .15E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    23.300        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     25.527        36.195        .79275E-04   -1.4697    
   3  Prefactor     2.5295        .38369        .12927E-04   -1.5390    
   4  Prefactor     .10000E-03    23.016        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     11.747        11.324        .11689E-03   -1.5022    
   6  Prefactor     14.333        25.378        .10579E-03   -1.4951    
   7  Prefactor     .10000E-03    18.070        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    10.758        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     10.871        27.327        .12153E-03   -1.5048    
  10  Prefactor     10.730        36.163        .12238E-03   -1.5053    
  11  Prefactor     .10000E-03    36.436        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          21.007        22.035        .87392E-04   -1.4791    
  13  Prefactor     8.7086        16.888        .13588E-03   -1.5118    
  14  Prefactor     .10000E-03    35.828        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    15.336        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          12.484        24.869        .11334E-03   -1.5001    
  17  norm          6.2182        65.395        .16092E-03   -1.5209    
  18  Prefactor     15.384        99.252        .10246E-03   -1.4923    
  19  Prefactor     35.432        40.966        .67326E-04   -1.4517    
  20  Prefactor     7.9568        17.742        .14222E-03   -1.5144    
  21  Normalizat    .85641        .42838        .40095E-03   -.98009    
  22  Prefactor     .86928        .22573        .23148E-03   -.97223    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.49419e-10
Minuit parameter uncertainties:
  1  3.68678e-05
  2  36.2259
  3  0.383686
  4  2.09779e-05
  5  11.3261
  6  25.3967
  7  8.77041e-05
  8  1.80489e-05
  9  27.3582
  10  36.2366
  11  6.35942e-05
  12  22.0437
  13  16.8969
  14  0.000294629
  15  4.68753e-05
  16  24.8896
  17  40.3869
  18  78.3424
  19  40.9986
  20  17.7541
  21  0.430093
  22  0.225967
Done.

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

Extracting fit parameters...

4FGL J2327.5+0939
   Spectrum: LogParabola
409         norm:  2.101e+01  2.204e+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:  8.693e-01  2.260e-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:  8.564e-01  4.301e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 2.66
Ra Dec: 351.896 9.654
Photon Index (Fixed Index): 2.68 +/- 0.00
Photon Flux (Fixed Index): 1.14e-07 +/- 1.19e-07
Energy Flux (Fixed Index): 2.83e-05 +/- 2.97e-05

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

Saving results to:
/scratch/kocevski/907914/likelihoodResults_435024001_435283201_4FGL_J2327.5+0939_daily_bin755.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) = 3519.9729252
delta logL = 0.0181059435449

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 3519.96819452
delta logL = 0.0228366292426

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    19.301       1.0000         .10000E-03   10000.    
     2 'alpha     '    2.8725       1.0000          .0000       5.0000    
     3 'Normalizat'    .84466       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .87332       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=   3519.968     FROM MIGRAD    STATUS=CONVERGED     81 CALLS      230 TOTAL
                     EDM=   .28E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          19.303        19.905        .91166E-04   -.10379E-02
   2  alpha         2.8732        .89886        .15409E-01   -.15417E-03
   3  Normalizat    .84457        .37951        .40341E-03    .11127E-03
   4  Prefactor     .87335        .21916        .23096E-03    .22132E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 19.3034
  alpha      = 2.87318
  Normalizat = 0.844566
  Prefactor  = 0.87335
 **********
 **   18 **HESSE 
 **********

 FCN=   3519.968     FROM HESSE     STATUS=OK            23 CALLS      253 TOTAL
                     EDM=   .30E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          19.303        19.380        .18233E-04   -1.4829    
   2  alpha         2.8732        .87557        .61637E-03    .14983    
   3  Normalizat    .84457        .37972        .16137E-04   -.98436    
   4  Prefactor     .87335        .21927        .46191E-04   -.97079    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.96309e-09
Minuit parameter uncertainties:
  1  19.3868
  2  0.894992
  3  0.380921
  4  0.219486
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/907914': 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) = 3519.96819404
delta logL = 0.0228371050712

Extracting fit parameters...

4FGL J2327.5+0939
   Spectrum: LogParabola
409         norm:  1.930e+01  1.939e+01  1.000e-04  1.000e+04 ( 1.000e-12)
410        alpha:  2.873e+00  8.950e-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:  8.734e-01  2.195e-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:  8.446e-01  3.809e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 2.70
Ra Dec: 351.896 9.654
Photon Index (Free Index): 2.87 +/- 0.89
Photon Flux (Free Index): 1.30e-07 +/- 1.33e-07
Energy Flux (Free Index): 2.90e-05 +/- 2.53e-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/907914/cmap_HighResolution_435024001_435283201_4FGL_J2327.5+0939_daily_bin755.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='8.91e-05', comment='SUCCESS', photon_flux='1.14e-07', energy_flux2='2.90e-05', photon_flux_error='1.19e-07', dlogl='2.28e-02', energy_flux='2.83e-05', photon_flux2='1.30e-07', job_status='DONE', time_completed='2021-09-29 19:51:33.372646', photon_index_error2='0.89', photon_index2='2.87', ts='2.66', fit_tolerance='1e-08', GAL='0.87', photon_index_error='0.00', photon_flux_upper_limit='3.58e-07', energy_flux_error2='2.53e-05', EG='0.86', time_epoch_completed='1632970293.37', return_code='0', job_id='907914', GAL2='0.87', EG2='0.84', return_code2='0', energy_flux_error='2.97e-05', photon_flux_error2='1.33e-07', ts2='2.70', photon_index='2.68' WHERE bin_id='755' AND source_name='4FGL J2327.5+0939' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep 29 19:51:33 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0064>
Subject: Job 907914: <4FGL_J2327.5+0939_daily_bin755> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2327.5+0939_daily_bin755 351.896 9.6543 435024001 435283201 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 :                                   489.00 sec.
    Max Memory :                                 1093 MB
    Average Memory :                             265.70 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   648 sec.
    Turnaround time :                            650 sec.

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

