/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 68 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 = 7475
number of fields = 22
No RA_SUN column yet. Adding RA_SUN/DEC_SUN columns.
Done.


Performing analysis on: 4FGL_J2327.5+0939_daily_bin51
RA = 351.896, Dec = 9.6543
tmin = 252547201, tmax = 252806401
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='904764', job_status='RUN', time_executed='2021-09-29 19:31:53.931358', time_epoch_executed='1632969113.93' WHERE source_name='4FGL J2327.5+0939' and cadence='daily' and bin_id='51'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/904764

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/904764/ft1_4FGL_J2327.5+0939_daily_bin51.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/904764/ft2_4FGL_J2327.5+0939_daily_bin51.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/904764/ft1_4FGL_J2327.5+0939_daily_bin51.fits outfile=/scratch/kocevski/904764/ft1_filteredMKT_4FGL_J2327.5+0939_daily_bin51.fits ra=351.896 dec=9.6543 rad=12.0 tmin=252547201.0 tmax=252806401.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 1.40
user 1.20
sys 0.18

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/904764/ft1_filtered_4FGL_J2327.5+0939_daily_bin51.fits" evtable="EVENTS" scfile=/scratch/kocevski/904764/ft2_4FGL_J2327.5+0939_daily_bin51.fits sctable="SC_DATA" outfile=/scratch/kocevski/904764/ltcube_252547201_252806401_4FGL_J2327.5+0939_daily_bin51.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/904764/ft2_4FGL_J2327.5+0939_daily_bin51.fits
.....................!
real 14.33
user 13.93
sys 0.36

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/904764/ft1_filtered_4FGL_J2327.5+0939_daily_bin51.fits evtable="EVENTS" scfile=/scratch/kocevski/904764/ft2_4FGL_J2327.5+0939_daily_bin51.fits sctable="SC_DATA" expcube=/scratch/kocevski/904764/ltcube_252547201_252806401_4FGL_J2327.5+0939_daily_bin51.fits outfile=/scratch/kocevski/904764/expmap_252547201_252806401_4FGL_J2327.5+0939_daily_bin51.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/904764/ltcube_252547201_252806401_4FGL_J2327.5+0939_daily_bin51.fits
.....................!
real 193.44
user 188.01
sys 5.07

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/904764/ft1_filtered_4FGL_J2327.5+0939_daily_bin51.fits scfile=/scratch/kocevski/904764/ft2_4FGL_J2327.5+0939_daily_bin51.fits outfile=/scratch/kocevski/904764/cmap_252547201_252806401_4FGL_J2327.5+0939_daily_bin51.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.55
user 0.36
sys 0.15

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

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    1.9079       1.0000         .10000E-03   10000.    
     4 'Prefactor '    26.112       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10014E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    1.5669       1.0000         .10000E-03   10000.    
     7 'Prefactor '    1.7370       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .47828E-01   1.0000         .10000E-03   10000.    
    11 'Prefactor '    32.442       1.0000         .10000E-03   10000.    
    12 'norm      '    21.329       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10344E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    4.3692       1.0000         .10000E-03   10000.    
    15 'Prefactor '    6.9132       1.0000         .10000E-03   10000.    
    16 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    .10027E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    33.568       1.0000         .10000E-03   10000.    
    19 'Prefactor '    16.199       1.0000         .10000E-03   10000.    
    20 'Prefactor '    2.3059       1.0000         .10000E-03   10000.    
    21 'Normalizat'    1.0446       1.0000         .10000E-01   10.000    
    22 'Prefactor '    .99657       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=   9495.703     FROM MIGRAD    STATUS=CONVERGED    507 CALLS     2496 TOTAL
                     EDM=   .15E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  3.5%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    15.932        .37191E-06** at limit **
   2  Prefactor     .10000E-03    9.7564       -.57324E-07** at limit **
   3  Prefactor     1.9080        .23348        .70579E-08    .52290E-03
   4  Prefactor     26.129        25.795       -.54904E-06    .61609E-05
   5  Prefactor     .10000E-03    6.1863       -.23454E-06** at limit **
   6  Prefactor     1.5822        26.157        .13971E-05    .10003E-05
   7  Prefactor     1.7480        28.668        .62462E-05    .18613E-04
   8  Prefactor     .10000E-03    1.8755       -.10129E-06** at limit **
   9  Prefactor     .10000E-03    3.1726       -.40038E-07** at limit **
  10  Prefactor     .35239        8.4641        .70370E-06   -.14815E-03
  11  Prefactor     32.544        66.235       -.14229E-04    .12807E-04
  12  norm          21.320        10.814        .60446E-06    .60552E-03
  13  Prefactor     .10000E-03    4.6508       -.73043E-06** at limit **
  14  Prefactor     4.3762        10.602        .28031E-05    .75976E-04
  15  Prefactor     6.9226        17.975        .13013E-05    .41731E-04
  16  norm          .10000E-03    3.3941       -.52001E-07** at limit **
  17  norm          .10000E-03    14.407       -.58522E-06** at limit **
  18  Prefactor     33.603        37.921       -.19285E-05    .32414E-04
  19  Prefactor     16.212        17.070        .19353E-05   -.27567E-05
  20  Prefactor     2.3093        5.5226        .58392E-05   -.60307E-04
  21  Normalizat    1.0437        .19423       -.18432E-05    .61513E-04
  22  Prefactor     .99667        .11407        .72512E-06    .94698E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 1.90799
  Prefactor  = 26.1285
  Prefactor  = 0.0001
  Prefactor  = 1.5822
  Prefactor  = 1.74804
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.352395
  Prefactor  = 32.5439
  norm       = 21.3204
  Prefactor  = 0.0001
  Prefactor  = 4.37625
  Prefactor  = 6.92257
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 33.6028
  Prefactor  = 16.2121
  Prefactor  = 2.30934
  Normalizat = 1.04374
  Prefactor  = 0.996673
 **********
 **   18 **HESSE 
 **********

 FCN=   9495.703     FROM HESSE     STATUS=OK           352 CALLS     2848 TOTAL
                     EDM=   .34E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    15.941        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    9.7690        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     1.9080        .23360        .15833E-04   -1.5432    
   4  Prefactor     26.129        25.803        .78394E-04   -1.4685    
   5  Prefactor     .10000E-03    6.2688        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     1.5822        26.224        .33972E-03   -1.5456    
   7  Prefactor     1.7480        28.862        .31840E-03   -1.5444    
   8  Prefactor     .10000E-03    1.8890        .13026E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    3.1768        .16942E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .35239        68.795        .54304E-02   -1.5589    
  11  Prefactor     32.544        66.251        .70350E-04   -1.4566    
  12  norm          21.320        9.7351        .86729E-04   -1.4784    
  13  Prefactor     .10000E-03    21.441        .35683E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     4.3762        10.597        .19269E-03   -1.5290    
  15  Prefactor     6.9226        17.926        .15259E-03   -1.5182    
  16  norm          .10000E-03    3.3962        .17533E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          .10000E-03    14.427        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     33.603        38.032        .69163E-04   -1.4548    
  19  Prefactor     16.212        17.072        .99512E-04   -1.4902    
  20  Prefactor     2.3093        5.5281        .13511E-02   -1.5404    
  21  Normalizat    1.0437        .22532        .32602E-03   -.91579    
  22  Prefactor     .99667        .13361        .21130E-03   -.92841    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.39759e-10
Minuit parameter uncertainties:
  1  8.53756e-06
  2  5.87528e-06
  3  0.233598
  4  25.8137
  5  1.8369e-05
  6  12.8891
  7  14.2135
  8  3.59978e-06
  9  5.11926e-06
  10  9.85751
  11  66.4014
  12  9.73585
  13  7.06717e-05
  14  10.6017
  15  17.9398
  16  1.94792e-06
  17  4.8288e-05
  18  38.0596
  19  17.0768
  20  5.52936
  21  0.225522
  22  0.133652
Done.

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

Extracting fit parameters...

4FGL J2327.5+0939
   Spectrum: LogParabola
409         norm:  2.132e+01  9.736e+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.967e-01  1.337e-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.044e+00  2.255e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 8.01
Ra Dec: 351.896 9.654
Photon Index (Fixed Index): 2.68 +/- 0.00
Photon Flux (Fixed Index): 1.16e-07 +/- 5.28e-08
Energy Flux (Fixed Index): 2.87e-05 +/- 1.31e-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) = 9495.44848757
delta logL = 0.254638408529

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 9495.44230281
delta logL = 0.260823161263

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    15.477       1.0000         .10000E-03   10000.    
     2 'alpha     '    3.0799       1.0000          .0000       5.0000    
     3 'Normalizat'    1.0161       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0102       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=   9495.442     FROM MIGRAD    STATUS=CONVERGED     57 CALLS      266 TOTAL
                     EDM=   .11E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          15.466        99.268        .25452E-02    .25974E-03
   2  alpha         3.0789        4.0065        .28911        .10206E-03
   3  Normalizat    1.0162        .84984E-01    .74524E-01    .18477E-03
   4  Prefactor     1.0104        .53705E-01    .43296E-01   -.56630E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 15.4655
  alpha      = 3.07894
  Normalizat = 1.01616
  Prefactor  = 1.01039
 **********
 **   18 **HESSE 
 **********

 FCN=   9495.442     FROM HESSE     STATUS=OK            33 CALLS      299 TOTAL
                     EDM=   .19E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          15.466        12.223        .10181E-03   -1.4921    
   2  alpha         3.0789        .63277        .11935E-01    .23370    
   3  Normalizat    1.0162        .21380        .32978E-03   -.92491    
   4  Prefactor     1.0104        .13428        .21002E-03   -.92384    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.90219e-10
Minuit parameter uncertainties:
  1  12.2252
  2  0.640133
  3  0.213981
  4  0.134327
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/904764': 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) = 9495.44228958
delta logL = 0.260836392012

Extracting fit parameters...

4FGL J2327.5+0939
   Spectrum: LogParabola
409         norm:  1.547e+01  1.223e+01  1.000e-04  1.000e+04 ( 1.000e-12)
410        alpha:  3.079e+00  6.401e-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:  1.010e+00  1.343e-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.016e+00  2.140e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 8.55
Ra Dec: 351.896 9.654
Photon Index (Free Index): 3.08 +/- 0.64
Photon Flux (Free Index): 1.34e-07 +/- 5.87e-08
Energy Flux (Free Index): 2.70e-05 +/- 1.21e-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/904764/cmap_HighResolution_252547201_252806401_4FGL_J2327.5+0939_daily_bin51.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='1.16e-07', energy_flux2='2.70e-05', photon_flux_error='5.28e-08', dlogl='2.61e-01', energy_flux='2.87e-05', photon_flux2='1.34e-07', job_status='DONE', time_completed='2021-09-29 19:44:01.647850', photon_index_error2='0.64', photon_index2='3.08', ts='8.01', fit_tolerance='1e-08', GAL='1.00', photon_index_error='0.00', energy_flux_error2='1.21e-05', EG='1.04', time_epoch_completed='1632969841.65', return_code='0', job_id='904764', GAL2='1.01', EG2='1.02', return_code2='0', energy_flux_error='1.31e-05', photon_flux_error2='5.87e-08', ts2='8.55', photon_index='2.68' WHERE bin_id='51' AND source_name='4FGL J2327.5+0939' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep 29 19:44:01 PDT 2021


------------------------------------------------------------
Sender: LSF System <scs@bullet0256>
Subject: Job 904764: <4FGL_J2327.5+0939_daily_bin51> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2327.5+0939_daily_bin51 351.896 9.6543 252547201 252806401 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 :                                   722.16 sec.
    Max Memory :                                 1255 MB
    Average Memory :                             346.88 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   803 sec.
    Turnaround time :                            805 sec.

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

