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


Performing analysis on: 4FGL_J2327.5+0939_daily_bin581
RA = 351.896, Dec = 9.6543
tmin = 389923201, tmax = 390182401
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='906587', job_status='RUN', time_executed='2021-09-29 19:38:01.753437', time_epoch_executed='1632969481.75' WHERE source_name='4FGL J2327.5+0939' and cadence='daily' and bin_id='581'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/906587

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/906587/ft1_4FGL_J2327.5+0939_daily_bin581.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/906587/ft2_4FGL_J2327.5+0939_daily_bin581.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/906587/ft1_4FGL_J2327.5+0939_daily_bin581.fits outfile=/scratch/kocevski/906587/ft1_filteredMKT_4FGL_J2327.5+0939_daily_bin581.fits ra=351.896 dec=9.6543 rad=12.0 tmin=389923201.0 tmax=390182401.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.48
user 3.22
sys 0.24

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/906587/ft1_filtered_4FGL_J2327.5+0939_daily_bin581.fits" evtable="EVENTS" scfile=/scratch/kocevski/906587/ft2_4FGL_J2327.5+0939_daily_bin581.fits sctable="SC_DATA" outfile=/scratch/kocevski/906587/ltcube_389923201_390182401_4FGL_J2327.5+0939_daily_bin581.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/906587/ft2_4FGL_J2327.5+0939_daily_bin581.fits
.....................!
real 12.19
user 11.83
sys 0.33

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/906587/ft1_filtered_4FGL_J2327.5+0939_daily_bin581.fits evtable="EVENTS" scfile=/scratch/kocevski/906587/ft2_4FGL_J2327.5+0939_daily_bin581.fits sctable="SC_DATA" expcube=/scratch/kocevski/906587/ltcube_389923201_390182401_4FGL_J2327.5+0939_daily_bin581.fits outfile=/scratch/kocevski/906587/expmap_389923201_390182401_4FGL_J2327.5+0939_daily_bin581.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/906587/ltcube_389923201_390182401_4FGL_J2327.5+0939_daily_bin581.fits
.....................!
real 190.72
user 185.49
sys 4.90

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/906587/ft1_filtered_4FGL_J2327.5+0939_daily_bin581.fits scfile=/scratch/kocevski/906587/ft2_4FGL_J2327.5+0939_daily_bin581.fits outfile=/scratch/kocevski/906587/cmap_389923201_390182401_4FGL_J2327.5+0939_daily_bin581.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.37
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/906587/ft1_filtered_4FGL_J2327.5+0939_daily_bin581.fits scfile=/scratch/kocevski/906587/ft2_4FGL_J2327.5+0939_daily_bin581.fits outfile=/scratch/kocevski/906587/cmap_HighResolution_389923201_390182401_4FGL_J2327.5+0939_daily_bin581.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.15

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10077E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    12.484       1.0000         .10000E-03   10000.    
     3 'Prefactor '    1.0208       1.0000         .10000E-03   10000.    
     4 'Prefactor '    6.0057       1.0000         .10000E-03   10000.    
     5 'Prefactor '    3.6219       1.0000         .10000E-03   10000.    
     6 'Prefactor '    8.0003       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .99762       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .26107E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10124E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    18.648       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10051E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    33.965       1.0000         .10000E-03   10000.    
    13 'Prefactor '    2.1892       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10517E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    29.741       1.0000         .10000E-03   10000.    
    16 'norm      '    8.1312       1.0000         .10000E-03   10000.    
    17 'norm      '    .10021E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    17.731       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .75889       1.0000         .10000E-03   10000.    
    20 'Prefactor '    3.7537       1.0000         .10000E-03   10000.    
    21 'Normalizat'    1.2288       1.0000         .10000E-01   10.000    
    22 'Prefactor '    .67172       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=   6071.980     FROM MIGRAD    STATUS=CONVERGED    487 CALLS     2402 TOTAL
                     EDM=   .11E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  8.6%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    17.952       -.82610E-07** at limit **
   2  Prefactor     12.491        17.728        .77823E-06    .40101E-04
   3  Prefactor     1.0209        .20030        .12100E-08    .64368E-03
   4  Prefactor     6.0068        33.107       -.39807E-06   -.26086E-04
   5  Prefactor     3.6221        5.9634        .39964E-06    .65576E-04
   6  Prefactor     7.9999        9.4181       -.79533E-06   -.36245E-03
   7  Prefactor     .99506        12.800        .19613E-05    .54032E-04
   8  Prefactor     .10004E-03    8.0964        .10621E-05** at limit **
   9  Prefactor     .10000E-03    4.6060        .11010E-06** at limit **
  10  Prefactor     18.656        21.578        .32542E-06    .19084E-03
  11  Prefactor     .10000E-03    157.24        .51971E-06** at limit **
  12  norm          33.970        14.079        .96040E-07   -.19269E-03
  13  Prefactor     2.1835        9.2708       -.27828E-06   -.11551E-03
  14  Prefactor     .10000E-03    7.7244        .35211E-06** at limit **
  15  Prefactor     29.717        23.832        .26463E-06   -.10706E-03
  16  norm          8.1317        8.7581       -.19566E-06   -.39342E-04
  17  norm          .10000E-03    8.9555        .52863E-07** at limit **
  18  Prefactor     17.676        41.785       -.46955E-05   -.18436E-03
  19  Prefactor     .66991        157.19        .14137E-04   -.19849E-03
  20  Prefactor     3.7536        6.3882       -.30141E-07   -.82509E-04
  21  Normalizat    1.2286        .22238       -.26534E-05   -.36054E-03
  22  Prefactor     .67183        .12743        .10067E-05   -.39929E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 12.4908
  Prefactor  = 1.02086
  Prefactor  = 6.00679
  Prefactor  = 3.62208
  Prefactor  = 7.99985
  Prefactor  = 0.995064
  Prefactor  = 0.000100042
  Prefactor  = 0.0001
  Prefactor  = 18.6564
  Prefactor  = 0.000100002
  norm       = 33.9703
  Prefactor  = 2.18349
  Prefactor  = 0.0001
  Prefactor  = 29.7165
  norm       = 8.13168
  norm       = 0.0001
  Prefactor  = 17.6762
  Prefactor  = 0.669908
  Prefactor  = 3.75364
  Normalizat = 1.22865
  Prefactor  = 0.671832
 **********
 **   18 **HESSE 
 **********

 FCN=   6071.980     FROM HESSE     STATUS=OK           350 CALLS     2752 TOTAL
                     EDM=   .62E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    17.962        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     12.491        17.742        .11337E-03   -1.5001    
   3  Prefactor     1.0209        .20041        .14618E-04   -1.5506    
   4  Prefactor     6.0068        33.093        .16384E-03   -1.5218    
   5  Prefactor     3.6221        5.9461        .21229E-03   -1.5327    
   6  Prefactor     7.9999        9.4976        .70877E-03   -1.5142    
   7  Prefactor     .99506        54.490        .47091E-02   -1.5508    
   8  Prefactor     .10004E-03    12.976        .28414E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    4.6209        .16332E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     18.656        20.451        .92748E-04   -1.4844    
  11  Prefactor     .10000E-03    158.85        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          33.970        13.838        .68759E-04   -1.4542    
  13  Prefactor     2.1835        9.0801        .27817E-03   -1.5412    
  14  Prefactor     .10000E-03    7.7879        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     29.717        23.790        .73466E-04   -1.4617    
  16  norm          8.1317        8.7538        .14060E-03   -1.5138    
  17  norm          .10000E-03    8.9657        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     17.676        42.462        .95116E-04   -1.4867    
  19  Prefactor     .66991        241.99        .66125E-02   -1.5544    
  20  Prefactor     3.7536        6.3990        .20839E-03   -1.5320    
  21  Normalizat    1.2286        .24833        .27231E-03   -.85722    
  22  Prefactor     .67183        .14219        .21895E-03   -1.0464    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 6.22908e-09
Minuit parameter uncertainties:
  1  5.33334e-06
  2  17.7495
  3  0.20041
  4  28.2218
  5  5.94706
  6  9.49943
  7  14.7405
  8  0.00147416
  9  6.27623e-06
  10  20.4591
  11  0.000996907
  12  13.8393
  13  8.90745
  14  5.66558e-05
  15  23.7972
  16  8.75519
  17  1.48427e-05
  18  42.5345
  19  25.5676
  20  6.40013
  21  0.248572
  22  0.142262
Done.

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

Extracting fit parameters...

4FGL J2327.5+0939
   Spectrum: LogParabola
409         norm:  3.397e+01  1.384e+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:  6.718e-01  1.423e-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.229e+00  2.486e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 16.90
Ra Dec: 351.896 9.654
Photon Index (Fixed Index): 2.68 +/- 0.00
Photon Flux (Fixed Index): 1.84e-07 +/- 7.50e-08
Energy Flux (Fixed Index): 4.58e-05 +/- 1.87e-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) = 6071.97832442
delta logL = 0.00207984106873

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6071.97626611
delta logL = 0.00413815729098

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    33.028       1.0000         .10000E-03   10000.    
     2 'alpha     '    2.7196       1.0000          .0000       5.0000    
     3 'Normalizat'    1.2253       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .67342       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=   6071.976     FROM MIGRAD    STATUS=CONVERGED     85 CALLS      238 TOTAL
                     EDM=   .24E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          33.028        15.663        .69725E-04   -.67503E-04
   2  alpha         2.7195        .42573        .84921E-02   -.34837E-04
   3  Normalizat    1.2253        .23201        .27260E-03    .89664E-05
   4  Prefactor     .67343        .14098        .21873E-03    .27651E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 33.0283
  alpha      = 2.71954
  Normalizat = 1.22533
  Prefactor  = 0.673431
 **********
 **   18 **HESSE 
 **********

 FCN=   6071.976     FROM HESSE     STATUS=OK            25 CALLS      263 TOTAL
                     EDM=   .36E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          33.028        15.169        .27890E-05   -1.4558    
   2  alpha         2.7195        .41229        .33968E-03    .87928E-01
   3  Normalizat    1.2253        .23211        .10904E-04   -.85824    
   4  Prefactor     .67343        .14102        .87491E-05   -1.0458    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.57838e-11
Minuit parameter uncertainties:
  1  15.1712
  2  0.414195
  3  0.232301
  4  0.14109
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/906587': 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) = 6071.97626609
delta logL = 0.00413817219669

Extracting fit parameters...

4FGL J2327.5+0939
   Spectrum: LogParabola
409         norm:  3.303e+01  1.517e+01  1.000e-04  1.000e+04 ( 1.000e-12)
410        alpha:  2.720e+00  4.142e-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:  6.734e-01  1.411e-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.225e+00  2.323e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 16.95
Ra Dec: 351.896 9.654
Photon Index (Free Index): 2.72 +/- 0.41
Photon Flux (Free Index): 1.87e-07 +/- 6.74e-08
Energy Flux (Free Index): 4.54e-05 +/- 1.58e-05

Creating a high resolution counts map...
INFO: Auto-setting vmin to  0.000e+00 [aplpy.core]
INFO: Auto-setting vmax to  0.000e+00 [aplpy.core]
Saving /scratch/kocevski/906587/cmap_HighResolution_389923201_390182401_4FGL_J2327.5+0939_daily_bin581.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='1.84e-07', energy_flux2='4.54e-05', photon_flux_error='7.50e-08', dlogl='4.14e-03', energy_flux='4.58e-05', photon_flux2='1.87e-07', job_status='DONE', time_completed='2021-09-29 19:47:27.774126', photon_index_error2='0.41', photon_index2='2.72', ts='16.90', fit_tolerance='1e-08', GAL='0.67', photon_index_error='0.00', energy_flux_error2='1.58e-05', EG='1.23', time_epoch_completed='1632970047.77', return_code='0', job_id='906587', GAL2='0.67', EG2='1.23', return_code2='0', energy_flux_error='1.87e-05', photon_flux_error2='6.74e-08', ts2='16.95', photon_index='2.68' WHERE bin_id='581' AND source_name='4FGL J2327.5+0939' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep 29 19:47:27 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0078>
Subject: Job 906587: <4FGL_J2327.5+0939_daily_bin581> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2327.5+0939_daily_bin581 351.896 9.6543 389923201 390182401 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 :                                   562.05 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             308.77 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   690 sec.
    Turnaround time :                            692 sec.

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

