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


Performing analysis on: 4FGL_J2327.5+0939_daily_bin797
RA = 351.896, Dec = 9.6543
tmin = 445910401, tmax = 446169601
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='907979', job_status='RUN', time_executed='2021-09-29 19:44:41.621397', time_epoch_executed='1632969881.62' WHERE source_name='4FGL J2327.5+0939' and cadence='daily' and bin_id='797'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/907979

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/907979/ft1_4FGL_J2327.5+0939_daily_bin797.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/907979/ft2_4FGL_J2327.5+0939_daily_bin797.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/907979/ft1_4FGL_J2327.5+0939_daily_bin797.fits outfile=/scratch/kocevski/907979/ft1_filteredMKT_4FGL_J2327.5+0939_daily_bin797.fits ra=351.896 dec=9.6543 rad=12.0 tmin=445910401.0 tmax=446169601.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.96
user 3.72
sys 0.22

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/907979/ft2_4FGL_J2327.5+0939_daily_bin797.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/907979/ft1_filteredMKT_4FGL_J2327.5+0939_daily_bin797.fits evtable="EVENTS" outfile="/scratch/kocevski/907979/ft1_filtered_4FGL_J2327.5+0939_daily_bin797.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/907979/ft1_filtered_4FGL_J2327.5+0939_daily_bin797.fits" evtable="EVENTS" scfile=/scratch/kocevski/907979/ft2_4FGL_J2327.5+0939_daily_bin797.fits sctable="SC_DATA" outfile=/scratch/kocevski/907979/ltcube_445910401_446169601_4FGL_J2327.5+0939_daily_bin797.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/907979/ft2_4FGL_J2327.5+0939_daily_bin797.fits
.....................!
real 11.81
user 11.45
sys 0.33

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/907979/ft1_filtered_4FGL_J2327.5+0939_daily_bin797.fits evtable="EVENTS" scfile=/scratch/kocevski/907979/ft2_4FGL_J2327.5+0939_daily_bin797.fits sctable="SC_DATA" expcube=/scratch/kocevski/907979/ltcube_445910401_446169601_4FGL_J2327.5+0939_daily_bin797.fits outfile=/scratch/kocevski/907979/expmap_445910401_446169601_4FGL_J2327.5+0939_daily_bin797.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/907979/ltcube_445910401_446169601_4FGL_J2327.5+0939_daily_bin797.fits
.....................!
real 190.91
user 185.59
sys 4.97

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/907979/ft1_filtered_4FGL_J2327.5+0939_daily_bin797.fits scfile=/scratch/kocevski/907979/ft2_4FGL_J2327.5+0939_daily_bin797.fits outfile=/scratch/kocevski/907979/cmap_445910401_446169601_4FGL_J2327.5+0939_daily_bin797.fits algorithm="CMAP" ebinalg="LOG" emin=30.0 emax=200000.0 ebinfile=NONE tbinalg="LIN" tbinfile=NONE nxpix=160 nypix=160 binsz=0.25 coordsys="CEL" xref=351.896 yref=9.6543 axisrot=0.0 rafield="RA" decfield="DEC" proj="AIT" hpx_ordering_scheme="RING" hpx_order=3 hpx_ebin=yes hpx_region="" evtable="EVENTS" sctable="SC_DATA" efield="ENERGY" tfield="TIME" chatter=2 clobber=yes debug=no gui=no mode="ql"

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

This is gtbin version HEAD
real 0.53
user 0.37
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/907979/ft1_filtered_4FGL_J2327.5+0939_daily_bin797.fits scfile=/scratch/kocevski/907979/ft2_4FGL_J2327.5+0939_daily_bin797.fits outfile=/scratch/kocevski/907979/cmap_HighResolution_445910401_446169601_4FGL_J2327.5+0939_daily_bin797.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.55
user 0.38
sys 0.16

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .12173E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10149E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    5.3931       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10538E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    2.4226       1.0000         .10000E-03   10000.    
     7 'Prefactor '    26.087       1.0000         .10000E-03   10000.    
     8 'Prefactor '    3.7892       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10170E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    64.807       1.0000         .10000E-03   10000.    
    11 'Prefactor '    60.839       1.0000         .10000E-03   10000.    
    12 'norm      '    23.635       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10008E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10382E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    8.2113       1.0000         .10000E-03   10000.    
    16 'norm      '    .10061E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    22.651       1.0000         .10000E-03   10000.    
    18 'Prefactor '    62.378       1.0000         .10000E-03   10000.    
    19 'Prefactor '    10.347       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
    21 'Normalizat'    .92168       1.0000         .10000E-01   10.000    
    22 'Prefactor '    .92022       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=   7912.037     FROM MIGRAD    STATUS=CONVERGED    488 CALLS     2735 TOTAL
                     EDM=   .12E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.5%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    21.532        .34269E-07** at limit **
   2  Prefactor     .10000E-03    11.060        .81260E-08** at limit **
   3  Prefactor     5.3930        .39132        .58160E-08   -.30227E-03
   4  Prefactor     .10000E-03    26.555       -.57325E-07** at limit **
   5  Prefactor     .10000E-03    6.2578       -.43381E-07** at limit **
   6  Prefactor     2.4226        5.4315        .30488E-06   -.17222E-03
   7  Prefactor     26.081        23.509       -.12282E-06   -.66924E-04
   8  Prefactor     3.7905        5.2241        .20059E-06   -.13927E-03
   9  Prefactor     .10000E-03    6.4538        .32106E-07** at limit **
  10  Prefactor     64.804        25.426        .11309E-06   -.98410E-05
  11  Prefactor     60.983        84.917       -.28557E-05    .98983E-04
  12  norm          23.632        11.293        .74079E-07   -.17496E-04
  13  Prefactor     .10000E-03    11.602       -.10428E-06** at limit **
  14  Prefactor     .10292E-03    19.393        .12456E-04** at limit **
  15  Prefactor     8.2343        30.224        .40103E-06   -.10078E-04
  16  norm          .10000E-03    4.4154       -.11916E-07** at limit **
  17  norm          22.623        33.442       -.13901E-04   -.40277E-03
  18  Prefactor     62.306        51.795       -.21916E-05   -.34769E-03
  19  Prefactor     10.356        23.584        .20749E-06   -.35801E-04
  20  Prefactor     .10000E-03    2.4882       -.22742E-07** at limit **
  21  Normalizat    .92216        .23372       -.20600E-05   -.20411E-03
  22  Prefactor     .91998        .13652        .64241E-06   -.37463E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 5.39299
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 2.42262
  Prefactor  = 26.0811
  Prefactor  = 3.79051
  Prefactor  = 0.0001
  Prefactor  = 64.8043
  Prefactor  = 60.9831
  norm       = 23.6318
  Prefactor  = 0.0001
  Prefactor  = 0.000102921
  Prefactor  = 8.23434
  norm       = 0.0001
  norm       = 22.6233
  Prefactor  = 62.3059
  Prefactor  = 10.3556
  Prefactor  = 0.0001
  Normalizat = 0.922164
  Prefactor  = 0.919975
 **********
 **   18 **HESSE 
 **********

 FCN=   7912.037     FROM HESSE     STATUS=OK           350 CALLS     3085 TOTAL
                     EDM=   .25E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    21.539        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    11.079        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     5.3930        .39161        .14414E-04   -1.5243    
   4  Prefactor     .10000E-03    26.610        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    6.3779        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     2.4226        5.4018        .26295E-03   -1.5397    
   7  Prefactor     26.081        23.521        .78432E-04   -1.4686    
   8  Prefactor     3.7905        5.2050        .20737E-03   -1.5319    
   9  Prefactor     .10000E-03    6.4757        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     64.804        25.418        .49851E-04   -1.4096    
  11  Prefactor     60.983        86.117        .25720E-03   -1.4145    
  12  norm          23.632        11.231        .82394E-04   -1.4735    
  13  Prefactor     .10000E-03    11.965        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10292E-03    30.028        .94105E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     8.2343        30.120        .13991E-03   -1.5134    
  16  norm          .10000E-03    4.4176        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          22.623        43.724        .84163E-04   -1.4756    
  18  Prefactor     62.306        52.070        .50806E-04   -1.4128    
  19  Prefactor     10.356        23.583        .12456E-03   -1.5064    
  20  Prefactor     .10000E-03    2.4979        .13701E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Normalizat    .92216        .27355        .38057E-03   -.95686    
  22  Prefactor     .91998        .15973        .23448E-03   -.95447    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.54811e-09
Minuit parameter uncertainties:
  1  2.08028e-05
  2  1.10271e-05
  3  0.391609
  4  5.18323e-06
  5  1.4877e-05
  6  5.40284
  7  23.5291
  8  5.20566
  9  1.48926e-06
  10  25.4219
  11  86.2936
  12  11.2322
  13  5.46422e-05
  14  0.0187408
  15  30.1761
  16  3.786e-06
  17  43.7863
  18  52.1078
  19  23.6037
  20  6.29121e-06
  21  0.273961
  22  0.159811
Done.

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

Extracting fit parameters...

4FGL J2327.5+0939
   Spectrum: LogParabola
409         norm:  2.363e+01  1.123e+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:  9.200e-01  1.598e-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.222e-01  2.740e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 10.54
Ra Dec: 351.896 9.654
Photon Index (Fixed Index): 2.68 +/- 0.00
Photon Flux (Fixed Index): 1.28e-07 +/- 6.09e-08
Energy Flux (Fixed Index): 3.19e-05 +/- 1.51e-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) = 7911.8693617
delta logL = 0.167430911537

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 7911.86859561
delta logL = 0.168196992983

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    27.529       1.0000         .10000E-03   10000.    
     2 'alpha     '    2.3647       1.0000          .0000       5.0000    
     3 'Normalizat'    .95329       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .90617       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=   7911.869     FROM MIGRAD    STATUS=CONVERGED     91 CALLS      303 TOTAL
                     EDM=   .60E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          27.532        13.599        .76355E-04    .28141E-04
   2  alpha         2.3647        .53383        .14068E-01    .11316E-03
   3  Normalizat    .95315        .26166        .37504E-03   -.17703E-04
   4  Prefactor     .90626        .15912        .23600E-03   -.91526E-06
                               ERR DEF=  .500    
Final values: 
  norm       = 27.5319
  alpha      = 2.36466
  Normalizat = 0.953154
  Prefactor  = 0.906261
 **********
 **   18 **HESSE 
 **********

 FCN=   7911.869     FROM HESSE     STATUS=OK            25 CALLS      328 TOTAL
                     EDM=   .31E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          27.532        13.461        .30542E-05   -1.4658    
   2  alpha         2.3647        .52810        .28137E-02   -.54163E-01
   3  Normalizat    .95315        .26182        .15002E-04   -.94617    
   4  Prefactor     .90626        .15922        .94402E-05   -.95923    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.11583e-12
Minuit parameter uncertainties:
  1  13.462
  2  0.532123
  3  0.262167
  4  0.159297
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/907979': 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) = 7911.86859541
delta logL = 0.168197196165

Extracting fit parameters...

4FGL J2327.5+0939
   Spectrum: LogParabola
409         norm:  2.753e+01  1.346e+01  1.000e-04  1.000e+04 ( 1.000e-12)
410        alpha:  2.365e+00  5.321e-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:  9.063e-01  1.593e-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.532e-01  2.622e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 10.62
Ra Dec: 351.896 9.654
Photon Index (Free Index): 2.36 +/- 0.53
Photon Flux (Free Index): 1.07e-07 +/- 6.39e-08
Energy Flux (Free Index): 3.40e-05 +/- 1.63e-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/907979/cmap_HighResolution_445910401_446169601_4FGL_J2327.5+0939_daily_bin797.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='1.28e-07', energy_flux2='3.40e-05', photon_flux_error='6.09e-08', dlogl='1.68e-01', energy_flux='3.19e-05', photon_flux2='1.07e-07', job_status='DONE', time_completed='2021-09-29 19:56:24.935638', photon_index_error2='0.53', photon_index2='2.36', ts='10.54', fit_tolerance='1e-08', GAL='0.92', photon_index_error='0.00', energy_flux_error2='1.63e-05', EG='0.92', time_epoch_completed='1632970584.94', return_code='0', job_id='907979', GAL2='0.91', EG2='0.95', return_code2='0', energy_flux_error='1.51e-05', photon_flux_error2='6.39e-08', ts2='10.62', photon_index='2.68' WHERE bin_id='797' AND source_name='4FGL J2327.5+0939' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep 29 19:56:24 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0076>
Subject: Job 907979: <4FGL_J2327.5+0939_daily_bin797> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2327.5+0939_daily_bin797 351.896 9.6543 445910401 446169601 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 :                                   702.19 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             254.78 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   934 sec.
    Turnaround time :                            936 sec.

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

