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


Performing analysis on: 4FGL_J2327.5+0939_daily_bin35
RA = 351.896, Dec = 9.6543
tmin = 248400001, tmax = 248659201
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='904739', job_status='RUN', time_executed='2021-09-29 19:31:26.679194', time_epoch_executed='1632969086.68' WHERE source_name='4FGL J2327.5+0939' and cadence='daily' and bin_id='35'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/904739

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/904739/ft1_4FGL_J2327.5+0939_daily_bin35.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/904739/ft2_4FGL_J2327.5+0939_daily_bin35.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/904739/ft1_4FGL_J2327.5+0939_daily_bin35.fits outfile=/scratch/kocevski/904739/ft1_filteredMKT_4FGL_J2327.5+0939_daily_bin35.fits ra=351.896 dec=9.6543 rad=12.0 tmin=248400001.0 tmax=248659201.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.44
user 1.24
sys 0.18

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/904739/ft1_filtered_4FGL_J2327.5+0939_daily_bin35.fits" evtable="EVENTS" scfile=/scratch/kocevski/904739/ft2_4FGL_J2327.5+0939_daily_bin35.fits sctable="SC_DATA" outfile=/scratch/kocevski/904739/ltcube_248400001_248659201_4FGL_J2327.5+0939_daily_bin35.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/904739/ft2_4FGL_J2327.5+0939_daily_bin35.fits
.....................!
real 13.36
user 12.94
sys 0.37

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/904739/ft1_filtered_4FGL_J2327.5+0939_daily_bin35.fits evtable="EVENTS" scfile=/scratch/kocevski/904739/ft2_4FGL_J2327.5+0939_daily_bin35.fits sctable="SC_DATA" expcube=/scratch/kocevski/904739/ltcube_248400001_248659201_4FGL_J2327.5+0939_daily_bin35.fits outfile=/scratch/kocevski/904739/expmap_248400001_248659201_4FGL_J2327.5+0939_daily_bin35.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/904739/ltcube_248400001_248659201_4FGL_J2327.5+0939_daily_bin35.fits
.....................!
real 191.29
user 185.55
sys 5.33

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/904739/ft1_filtered_4FGL_J2327.5+0939_daily_bin35.fits scfile=/scratch/kocevski/904739/ft2_4FGL_J2327.5+0939_daily_bin35.fits outfile=/scratch/kocevski/904739/cmap_248400001_248659201_4FGL_J2327.5+0939_daily_bin35.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.54
user 0.36
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/904739/ft1_filtered_4FGL_J2327.5+0939_daily_bin35.fits scfile=/scratch/kocevski/904739/ft2_4FGL_J2327.5+0939_daily_bin35.fits outfile=/scratch/kocevski/904739/cmap_HighResolution_248400001_248659201_4FGL_J2327.5+0939_daily_bin35.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/904739/ft1_filtered_4FGL_J2327.5+0939_daily_bin35.fits evtable="EVENTS" scfile=/scratch/kocevski/904739/ft2_4FGL_J2327.5+0939_daily_bin35.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/904739/Model_4FGL_J2327.5+0939_daily_bin35.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/904739/ft1_filtered_4FGL_J2327.5+0939_daily_bin35.fits.....................!
real 136.40
user 134.81
sys 1.29

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    42.634       1.0000         .10000E-03   10000.    
     2 'Prefactor '    12.661       1.0000         .10000E-03   10000.    
     3 'Prefactor '    4.4050       1.0000         .10000E-03   10000.    
     4 'Prefactor '    7.8868       1.0000         .10000E-03   10000.    
     5 'Prefactor '    7.0791       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .26524E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    12.212       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10123E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    3.1821       1.0000         .10000E-03   10000.    
    10 'Prefactor '    25.687       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    116.35       1.0000         .10000E-03   10000.    
    13 'Prefactor '    18.790       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    9.7681       1.0000         .10000E-03   10000.    
    16 'norm      '    6.9782       1.0000         .10000E-03   10000.    
    17 'norm      '    2.1668       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    2.1598       1.0000         .10000E-03   10000.    
    20 'Prefactor '    4.9534       1.0000         .10000E-03   10000.    
    21 'Normalizat'    .78199       1.0000         .10000E-01   10.000    
    22 'Prefactor '    .98388       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=   13122.36     FROM MIGRAD    STATUS=CONVERGED    450 CALLS     2341 TOTAL
                     EDM=   .26E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  5.6%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     42.629        41.169        .31035E-05    .12290E-03
   2  Prefactor     12.658        19.426        .14088E-05    .78028E-04
   3  Prefactor     4.4051        .31444       -.25302E-07    .11116E-02
   4  Prefactor     7.8871        14.104       -.10612E-05    .25327E-03
   5  Prefactor     7.0780        6.7109        .31108E-06    .12522E-03
   6  Prefactor     .10000E-03    16.701        .61483E-05** at limit **
   7  Prefactor     12.212        9.3952        .34822E-09    .26880E-05
   8  Prefactor     .10000E-03    3.6762        .21237E-06** at limit **
   9  Prefactor     3.1823        5.6276        .56590E-07    .11174E-03
  10  Prefactor     25.683        16.788        .62903E-06    .87426E-04
  11  Prefactor     .10000E-03    33.870       -.25451E-06** at limit **
  12  norm          116.34        16.465        .30182E-06    .14611E-03
  13  Prefactor     18.790        9.5158       -.16599E-06    .80330E-05
  14  Prefactor     .10000E-03    4.6496        .69162E-07** at limit **
  15  Prefactor     9.7704        24.827       -.22390E-05   -.50632E-04
  16  norm          6.9783        6.8634       -.30798E-07   -.31848E-04
  17  norm          2.1694        9.7167        .19018E-05    .16636E-03
  18  Prefactor     .10000E-03    11.388       -.50377E-06** at limit **
  19  Prefactor     2.1613        16.094        .10189E-06    .70974E-04
  20  Prefactor     4.9540        5.5823       -.69701E-07    .10970E-03
  21  Normalizat    .78192        .17483        .19200E-06    .12046E-04
  22  Prefactor     .98388        .10532        .27435E-08    .33269E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 42.6286
  Prefactor  = 12.658
  Prefactor  = 4.40511
  Prefactor  = 7.88712
  Prefactor  = 7.07801
  Prefactor  = 0.000100002
  Prefactor  = 12.2118
  Prefactor  = 0.0001
  Prefactor  = 3.18226
  Prefactor  = 25.6832
  Prefactor  = 0.0001
  norm       = 116.345
  Prefactor  = 18.7904
  Prefactor  = 0.0001
  Prefactor  = 9.77043
  norm       = 6.97831
  norm       = 2.16943
  Prefactor  = 0.0001
  Prefactor  = 2.16133
  Prefactor  = 4.95402
  Normalizat = 0.781918
  Prefactor  = 0.983881
 **********
 **   18 **HESSE 
 **********

 FCN=   13122.36     FROM HESSE     STATUS=OK           352 CALLS     2693 TOTAL
                     EDM=   .60E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     42.629        41.731        .61396E-04   -1.4401    
   2  Prefactor     12.658        19.511        .11258E-03   -1.4996    
   3  Prefactor     4.4051        .31564        .15844E-04   -1.5288    
   4  Prefactor     7.8871        14.806        .71389E-03   -1.5146    
   5  Prefactor     7.0780        6.7263        .15077E-03   -1.5176    
   6  Prefactor     .10000E-03    17.261        .40465E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     12.212        9.3976        .11463E-03   -1.5009    
   8  Prefactor     .10000E-03    3.7225        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     3.1823        5.6179        .22717E-03   -1.5351    
  10  Prefactor     25.683        16.821        .79040E-04   -1.4694    
  11  Prefactor     .10000E-03    34.026        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          116.34        16.447        .37302E-04   -1.3546    
  13  Prefactor     18.790        9.5118        .92397E-04   -1.4841    
  14  Prefactor     .10000E-03    4.6879        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     9.7704        24.837        .12822E-03   -1.5083    
  16  norm          6.9783        6.8670        .15187E-03   -1.5180    
  17  norm          2.1694        10.213        .27978E-03   -1.5413    
  18  Prefactor     .10000E-03    11.424        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     2.1613        16.319        .28030E-03   -1.5414    
  20  Prefactor     4.9540        5.6019        .18070E-03   -1.5263    
  21  Normalizat    .78192        .19932        .40284E-03   -1.0074    
  22  Prefactor     .98388        .12121        .22759E-03   -.93269    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 6.03353e-10
Minuit parameter uncertainties:
  1  41.7596
  2  19.5205
  3  0.315636
  4  14.8127
  5  6.727
  6  0.000361052
  7  9.3987
  8  1.1992e-05
  9  5.61879
  10  16.8245
  11  3.0335e-05
  12  16.4481
  13  9.51261
  14  3.27806e-05
  15  24.8636
  16  6.86781
  17  9.41637
  18  2.78061e-05
  19  11.882
  20  5.60252
  21  0.199508
  22  0.121239
Done.

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

Extracting fit parameters...

4FGL J2327.5+0939
   Spectrum: LogParabola
409         norm:  1.163e+02  1.645e+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.839e-01  1.212e-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:  7.819e-01  1.995e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 181.32
Ra Dec: 351.896 9.654
Photon Index (Fixed Index): 2.68 +/- 0.00
Photon Flux (Fixed Index): 6.31e-07 +/- 8.91e-08
Energy Flux (Fixed Index): 1.57e-04 +/- 2.22e-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) = 13120.7301474
delta logL = 1.62637921452

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 13120.7252643
delta logL = 1.63126229619

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    137.60       1.0000         .10000E-03   10000.    
     2 'alpha     '    2.4019       1.0000          .0000       5.0000    
     3 'Normalizat'    .86369       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .94749       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=   13120.73     FROM MIGRAD    STATUS=CONVERGED     51 CALLS      263 TOTAL
                     EDM=   .40E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          137.60        31.118        .85841E-03    .42420E-03
   2  alpha         2.4018        .23552        .12655        .90418E-04
   3  Normalizat    .86374        .17327        .87233E-01    .59227E-04
   4  Prefactor     .94743        .10557        .45607E-01    .60447E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 137.604
  alpha      = 2.40184
  Normalizat = 0.863743
  Prefactor  = 0.947434
 **********
 **   18 **HESSE 
 **********

 FCN=   13120.73     FROM HESSE     STATUS=OK            29 CALLS      292 TOTAL
                     EDM=   .52E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          137.60        19.657        .34337E-04   -1.3356    
   2  alpha         2.4018        .15140        .55019E-03   -.39274E-01
   3  Normalizat    .86374        .19730        .38634E-03   -.97746    
   4  Prefactor     .94743        .12086        .23145E-03   -.94503    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.18076e-11
Minuit parameter uncertainties:
  1  19.6578
  2  0.151491
  3  0.197464
  4  0.120899
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/904739': 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) = 13120.7252642
delta logL = 1.63126243993

Extracting fit parameters...

4FGL J2327.5+0939
   Spectrum: LogParabola
409         norm:  1.376e+02  1.966e+01  1.000e-04  1.000e+04 ( 1.000e-12)
410        alpha:  2.402e+00  1.515e-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.474e-01  1.209e-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.637e-01  1.975e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 184.46
Ra Dec: 351.896 9.654
Photon Index (Free Index): 2.40 +/- 0.15
Photon Flux (Free Index): 5.55e-07 +/- 8.28e-08
Energy Flux (Free Index): 1.70e-04 +/- 2.30e-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/904739/cmap_HighResolution_248400001_248659201_4FGL_J2327.5+0939_daily_bin35.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='6.31e-07', energy_flux2='1.70e-04', photon_flux_error='8.91e-08', dlogl='1.63e+00', energy_flux='1.57e-04', photon_flux2='5.55e-07', job_status='DONE', time_completed='2021-09-29 19:46:10.752477', photon_index_error2='0.15', photon_index2='2.40', ts='181.32', fit_tolerance='1e-08', GAL='0.98', photon_index_error='0.00', energy_flux_error2='2.30e-05', EG='0.78', time_epoch_completed='1632969970.75', return_code='0', job_id='904739', GAL2='0.95', EG2='0.86', return_code2='0', energy_flux_error='2.22e-05', photon_flux_error2='8.28e-08', ts2='184.46', photon_index='2.68' WHERE bin_id='35' AND source_name='4FGL J2327.5+0939' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep 29 19:46:10 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0221>
Subject: Job 904739: <4FGL_J2327.5+0939_daily_bin35> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2327.5+0939_daily_bin35 351.896 9.6543 248400001 248659201 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 :                                   873.12 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             349.52 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.

