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


Performing analysis on: 4FGL_J2327.5+0939_daily_bin707
RA = 351.896, Dec = 9.6543
tmin = 422582401, tmax = 422841601
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='907827', job_status='RUN', time_executed='2021-09-29 19:44:27.340955', time_epoch_executed='1632969867.34' WHERE source_name='4FGL J2327.5+0939' and cadence='daily' and bin_id='707'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/907827

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/907827/ft1_4FGL_J2327.5+0939_daily_bin707.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/907827/ft2_4FGL_J2327.5+0939_daily_bin707.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/907827/ft1_4FGL_J2327.5+0939_daily_bin707.fits outfile=/scratch/kocevski/907827/ft1_filteredMKT_4FGL_J2327.5+0939_daily_bin707.fits ra=351.896 dec=9.6543 rad=12.0 tmin=422582401.0 tmax=422841601.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.50
user 3.29
sys 0.19

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/907827/ft1_filtered_4FGL_J2327.5+0939_daily_bin707.fits" evtable="EVENTS" scfile=/scratch/kocevski/907827/ft2_4FGL_J2327.5+0939_daily_bin707.fits sctable="SC_DATA" outfile=/scratch/kocevski/907827/ltcube_422582401_422841601_4FGL_J2327.5+0939_daily_bin707.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/907827/ft2_4FGL_J2327.5+0939_daily_bin707.fits
.....................!
real 12.01
user 11.69
sys 0.29

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/907827/ft1_filtered_4FGL_J2327.5+0939_daily_bin707.fits evtable="EVENTS" scfile=/scratch/kocevski/907827/ft2_4FGL_J2327.5+0939_daily_bin707.fits sctable="SC_DATA" expcube=/scratch/kocevski/907827/ltcube_422582401_422841601_4FGL_J2327.5+0939_daily_bin707.fits outfile=/scratch/kocevski/907827/expmap_422582401_422841601_4FGL_J2327.5+0939_daily_bin707.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/907827/ltcube_422582401_422841601_4FGL_J2327.5+0939_daily_bin707.fits
.....................!
real 190.19
user 185.58
sys 4.29

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/907827/ft1_filtered_4FGL_J2327.5+0939_daily_bin707.fits scfile=/scratch/kocevski/907827/ft2_4FGL_J2327.5+0939_daily_bin707.fits outfile=/scratch/kocevski/907827/cmap_422582401_422841601_4FGL_J2327.5+0939_daily_bin707.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/907827/ft1_filtered_4FGL_J2327.5+0939_daily_bin707.fits scfile=/scratch/kocevski/907827/ft2_4FGL_J2327.5+0939_daily_bin707.fits outfile=/scratch/kocevski/907827/cmap_HighResolution_422582401_422841601_4FGL_J2327.5+0939_daily_bin707.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.53
user 0.38
sys 0.15

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    21.305       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    5.5107       1.0000         .10000E-03   10000.    
     4 'Prefactor '    53.312       1.0000         .10000E-03   10000.    
     5 'Prefactor '    4.6908       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10015E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10057E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    7.5960       1.0000         .10000E-03   10000.    
     9 'Prefactor '    3.5432       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10074E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    12.920       1.0000         .10000E-03   10000.    
    13 'Prefactor '    22.685       1.0000         .10000E-03   10000.    
    14 'Prefactor '    24.928       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    15.031       1.0000         .10000E-03   10000.    
    17 'norm      '    .10341E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10162E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10008E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    6.8970       1.0000         .10000E-03   10000.    
    21 'Normalizat'    .89859       1.0000         .10000E-01   10.000    
    22 'Prefactor '    .89024       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=   8673.087     FROM MIGRAD    STATUS=CONVERGED    457 CALLS     2318 TOTAL
                     EDM=   .11E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .3%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     21.305        22.372        .14205E-06    .91670E-05
   2  Prefactor     .10000E-03    10.568       -.52825E-05** at limit **
   3  Prefactor     5.5108        .37254        .19964E-07    .10158E-02
   4  Prefactor     53.316        35.864        .29703E-05   -.34544E-04
   5  Prefactor     4.6909        4.5049       -.23548E-05    .10283E-03
   6  Prefactor     .10000E-03    21.369       -.31250E-05** at limit **
   7  Prefactor     .10000E-03    24.664        .21096E-04** at limit **
   8  Prefactor     7.5981        6.2275       -.10540E-06   -.89940E-04
   9  Prefactor     3.5434        7.0942       -.40598E-06   -.29324E-03
  10  Prefactor     .10000E-03    15.211       -.47912E-05** at limit **
  11  Prefactor     .10000E-03    13.160        .69362E-05** at limit **
  12  norm          12.921        9.5380       -.74727E-07   -.90399E-04
  13  Prefactor     22.687        9.8910        .11273E-07   -.78746E-04
  14  Prefactor     24.930        15.435        .16293E-06    .25295E-03
  15  Prefactor     .10000E-03    13.264        .64680E-05** at limit **
  16  norm          15.032        15.432        .91086E-07   -.90431E-05
  17  norm          .10000E-03    19.227       -.16746E-04** at limit **
  18  Prefactor     .10000E-03    59.531       -.96722E-05** at limit **
  19  Prefactor     .10000E-03    8.3248        .78558E-06** at limit **
  20  Prefactor     6.8974        5.3896        .25985E-05    .66310E-05
  21  Normalizat    .89843        .20185       -.11692E-05   -.30490E-04
  22  Prefactor     .89033        .12108        .18389E-06   -.10923E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 21.3052
  Prefactor  = 0.0001
  Prefactor  = 5.51078
  Prefactor  = 53.3158
  Prefactor  = 4.69089
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 7.5981
  Prefactor  = 3.54343
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 12.9209
  Prefactor  = 22.6866
  Prefactor  = 24.93
  Prefactor  = 0.0001
  norm       = 15.0318
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 6.89741
  Normalizat = 0.89843
  Prefactor  = 0.89033
 **********
 **   18 **HESSE 
 **********

 FCN=   8673.087     FROM HESSE     STATUS=OK           344 CALLS     2662 TOTAL
                     EDM=   .22E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     21.305        22.379        .86777E-04   -1.4784    
   2  Prefactor     .10000E-03    10.583        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     5.5108        .37291        .14209E-04   -1.5238    
   4  Prefactor     53.316        35.881        .54932E-04   -1.4246    
   5  Prefactor     4.6909        4.5009        .18580E-03   -1.5275    
   6  Prefactor     .10000E-03    22.053        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    24.919        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     7.5981        6.2287        .14551E-03   -1.5157    
   9  Prefactor     3.5434        7.0767        .21473E-03   -1.5331    
  10  Prefactor     .10000E-03    15.274        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    13.168        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          12.921        9.5186        .11144E-03   -1.4989    
  13  Prefactor     22.687        9.9154        .84099E-04   -1.4755    
  14  Prefactor     24.930        15.486        .80232E-04   -1.4709    
  15  Prefactor     .10000E-03    13.326        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          15.032        15.436        .10331E-03   -1.4932    
  17  norm          .10000E-03    19.276        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    60.224        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    8.3519        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     6.8974        5.3973        .15277E-03   -1.5183    
  21  Normalizat    .89843        .23371        .36436E-03   -.96515    
  22  Prefactor     .89033        .14040        .22868E-03   -.96480    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.20001e-10
Minuit parameter uncertainties:
  1  22.388
  2  4.31211e-06
  3  0.372908
  4  35.8951
  5  4.50125
  6  9.58761e-05
  7  0.000208904
  8  6.22923
  9  7.07833
  10  2.90675e-05
  11  4.1281e-08
  12  9.51973
  13  9.91607
  14  15.4886
  15  3.39753e-07
  16  15.44
  17  1.88944e-05
  18  0.000143543
  19  4.09344e-06
  20  5.39766
  21  0.233973
  22  0.140461
Done.

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

Extracting fit parameters...

4FGL J2327.5+0939
   Spectrum: LogParabola
409         norm:  1.292e+01  9.520e+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:  8.903e-01  1.405e-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.984e-01  2.340e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 4.38
Ra Dec: 351.896 9.654
Photon Index (Fixed Index): 2.68 +/- 0.00
Photon Flux (Fixed Index): 7.01e-08 +/- 5.16e-08
Energy Flux (Fixed Index): 1.74e-05 +/- 1.28e-05

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) = 8672.53830232
delta logL = 0.549062158181

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 8672.5084204
delta logL = 0.578944075263

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    15.479       1.0000         .10000E-03   10000.    
     2 'alpha     '    1.9952       1.0000          .0000       5.0000    
     3 'Normalizat'    .92700       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .87898       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=   8672.508     FROM MIGRAD    STATUS=CONVERGED     81 CALLS      238 TOTAL
                     EDM=   .62E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          15.482        10.848        .10180E-03   -.22496E-03
   2  alpha         1.9955        .61227        .18879E-01   -.22861E-04
   3  Normalizat    .92700        .22183        .35955E-03   -.61607E-03
   4  Prefactor     .87898        .13899        .23001E-03   -.84652E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 15.4816
  alpha      = 1.99552
  Normalizat = 0.926995
  Prefactor  = 0.878979
 **********
 **   18 **HESSE 
 **********

 FCN=   8672.508     FROM HESSE     STATUS=OK            25 CALLS      263 TOTAL
                     EDM=   .61E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          15.482        10.927        .20361E-04   -1.4921    
   2  alpha         1.9955        .61665        .75515E-03   -.20319    
   3  Normalizat    .92700        .22198        .71910E-04   -.95518    
   4  Prefactor     .87898        .13908        .46002E-04   -.96880    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 6.14346e-10
Minuit parameter uncertainties:
  1  10.9281
  2  0.623358
  3  0.222202
  4  0.139138
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/907827': 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) = 8672.50842024
delta logL = 0.578944230638

Extracting fit parameters...

4FGL J2327.5+0939
   Spectrum: LogParabola
409         norm:  1.548e+01  1.093e+01  1.000e-04  1.000e+04 ( 1.000e-12)
410        alpha:  1.996e+00  6.234e-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.790e-01  1.391e-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:  9.270e-01  2.222e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 5.53
Ra Dec: 351.896 9.654
Photon Index (Free Index): 2.00 +/- 0.62
Photon Flux (Free Index): 4.36e-08 +/- 4.07e-08
Energy Flux (Free Index): 2.11e-05 +/- 1.53e-05

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/907827/cmap_HighResolution_422582401_422841601_4FGL_J2327.5+0939_daily_bin707.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='7.01e-08', energy_flux2='2.11e-05', photon_flux_error='5.16e-08', dlogl='5.79e-01', energy_flux='1.74e-05', photon_flux2='4.36e-08', job_status='DONE', time_completed='2021-09-29 19:55:57.389391', photon_index_error2='0.62', photon_index2='2.00', ts='4.38', fit_tolerance='1e-08', GAL='0.89', photon_index_error='0.00', energy_flux_error2='1.53e-05', EG='0.90', time_epoch_completed='1632970557.39', return_code='0', job_id='907827', GAL2='0.88', EG2='0.93', return_code2='0', energy_flux_error='1.28e-05', photon_flux_error2='4.07e-08', ts2='5.53', photon_index='2.68' WHERE bin_id='707' AND source_name='4FGL J2327.5+0939' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep 29 19:55:57 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0101>
Subject: Job 907827: <4FGL_J2327.5+0939_daily_bin707> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2327.5+0939_daily_bin707 351.896 9.6543 422582401 422841601 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 :                                   688.43 sec.
    Max Memory :                                 1106 MB
    Average Memory :                             246.75 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              7
    Max Threads :                                21
    Run time :                                   920 sec.
    Turnaround time :                            923 sec.

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

