/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 189 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 = 7416
number of fields = 27
No RA_SUN column yet. Adding RA_SUN/DEC_SUN columns.
Done.


Performing analysis on: 4FGL_J2327.5+0939_daily_bin229
RA = 351.896, Dec = 9.6543
tmin = 298684801, tmax = 298944001
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='905030', job_status='RUN', time_executed='2021-09-29 19:34:21.040653', time_epoch_executed='1632969261.04' WHERE source_name='4FGL J2327.5+0939' and cadence='daily' and bin_id='229'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/905030

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/905030/ft1_4FGL_J2327.5+0939_daily_bin229.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/905030/ft2_4FGL_J2327.5+0939_daily_bin229.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/905030/ft1_4FGL_J2327.5+0939_daily_bin229.fits outfile=/scratch/kocevski/905030/ft1_filteredMKT_4FGL_J2327.5+0939_daily_bin229.fits ra=351.896 dec=9.6543 rad=12.0 tmin=298684801.0 tmax=298944001.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.51
user 3.24
sys 0.21

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/905030/ft1_filtered_4FGL_J2327.5+0939_daily_bin229.fits" evtable="EVENTS" scfile=/scratch/kocevski/905030/ft2_4FGL_J2327.5+0939_daily_bin229.fits sctable="SC_DATA" outfile=/scratch/kocevski/905030/ltcube_298684801_298944001_4FGL_J2327.5+0939_daily_bin229.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/905030/ft2_4FGL_J2327.5+0939_daily_bin229.fits
.....................!
real 11.87
user 11.53
sys 0.31

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/905030/ft1_filtered_4FGL_J2327.5+0939_daily_bin229.fits evtable="EVENTS" scfile=/scratch/kocevski/905030/ft2_4FGL_J2327.5+0939_daily_bin229.fits sctable="SC_DATA" expcube=/scratch/kocevski/905030/ltcube_298684801_298944001_4FGL_J2327.5+0939_daily_bin229.fits outfile=/scratch/kocevski/905030/expmap_298684801_298944001_4FGL_J2327.5+0939_daily_bin229.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/905030/ltcube_298684801_298944001_4FGL_J2327.5+0939_daily_bin229.fits
.....................!
real 190.59
user 185.11
sys 5.09

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/905030/ft1_filtered_4FGL_J2327.5+0939_daily_bin229.fits scfile=/scratch/kocevski/905030/ft2_4FGL_J2327.5+0939_daily_bin229.fits outfile=/scratch/kocevski/905030/cmap_298684801_298944001_4FGL_J2327.5+0939_daily_bin229.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.38
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/905030/ft1_filtered_4FGL_J2327.5+0939_daily_bin229.fits scfile=/scratch/kocevski/905030/ft2_4FGL_J2327.5+0939_daily_bin229.fits outfile=/scratch/kocevski/905030/cmap_HighResolution_298684801_298944001_4FGL_J2327.5+0939_daily_bin229.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/905030/ft1_filtered_4FGL_J2327.5+0939_daily_bin229.fits evtable="EVENTS" scfile=/scratch/kocevski/905030/ft2_4FGL_J2327.5+0939_daily_bin229.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/905030/Model_4FGL_J2327.5+0939_daily_bin229.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/905030/ft1_filtered_4FGL_J2327.5+0939_daily_bin229.fits.....................!
real 92.59
user 91.13
sys 1.13

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    5.9593       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    4.1272       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10045E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    26.633       1.0000         .10000E-03   10000.    
     8 'Prefactor '    3.3430       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    14.861       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    24.487       1.0000         .10000E-03   10000.    
    13 'Prefactor '    3.6874       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .25556E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    8.5466       1.0000         .10000E-03   10000.    
    17 'norm      '    17.979       1.0000         .10000E-03   10000.    
    18 'Prefactor '    22.078       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    21 'Normalizat'    .84121       1.0000         .10000E-01   10.000    
    22 'Prefactor '    .90645       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=   7968.153     FROM MIGRAD    STATUS=CONVERGED    444 CALLS     2285 TOTAL
                     EDM=   .12E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  3.6%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    18.454       -.91432E-06** at limit **
   2  Prefactor     .10000E-03    10.221       -.56729E-06** at limit **
   3  Prefactor     5.9593        .40189        .18138E-08   -.24901E-04
   4  Prefactor     .10000E-03    9.3462        .37250E-06** at limit **
   5  Prefactor     4.1276        7.2900        .85876E-07   -.15966E-04
   6  Prefactor     .10000E-03    13.442        .12238E-05** at limit **
   7  Prefactor     26.631        17.708        .15679E-06   -.99076E-05
   8  Prefactor     3.3398        6.2283        .35608E-06   -.46999E-04
   9  Prefactor     .10000E-03    10.449       -.38513E-06** at limit **
  10  Prefactor     14.856        18.978        .45196E-06   -.37251E-04
  11  Prefactor     .10000E-03    26.069        .10604E-05** at limit **
  12  norm          24.492        10.848       -.43079E-06    .37433E-04
  13  Prefactor     3.6864        6.8504        .24391E-05   -.10805E-03
  14  Prefactor     .10001E-03    36.376       -.53194E-05** at limit **
  15  Prefactor     .10000E-03    22.168       -.10134E-05** at limit **
  16  norm          8.5454        12.537       -.20964E-07   -.51097E-05
  17  norm          17.955        22.837        .28217E-05   -.40633E-04
  18  Prefactor     22.073        26.292        .63181E-06   -.17559E-04
  19  Prefactor     .10000E-03    11.183        .14328E-06** at limit **
  20  Prefactor     .10000E-03    3.5836        .45205E-07** at limit **
  21  Normalizat    .84139        .20520       -.71081E-06    .24737E-04
  22  Prefactor     .90638        .12508       -.15318E-06   -.64463E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 5.95925
  Prefactor  = 0.0001
  Prefactor  = 4.1276
  Prefactor  = 0.0001
  Prefactor  = 26.6314
  Prefactor  = 3.33985
  Prefactor  = 0.0001
  Prefactor  = 14.8556
  Prefactor  = 0.0001
  norm       = 24.4925
  Prefactor  = 3.68636
  Prefactor  = 0.000100007
  Prefactor  = 0.0001
  norm       = 8.54536
  norm       = 17.9549
  Prefactor  = 22.0731
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Normalizat = 0.841385
  Prefactor  = 0.906383
 **********
 **   18 **HESSE 
 **********

 FCN=   7968.153     FROM HESSE     STATUS=OK           342 CALLS     2627 TOTAL
                     EDM=   .23E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    18.436        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    10.222        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     5.9593        .40207        .14064E-04   -1.5220    
   4  Prefactor     .10000E-03    9.3513        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     4.1276        7.2799        .19842E-03   -1.5302    
   6  Prefactor     .10000E-03    13.600        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     26.631        17.711        .77625E-04   -1.4675    
   8  Prefactor     3.3398        6.1820        .22136E-03   -1.5342    
   9  Prefactor     .10000E-03    10.551        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     14.856        18.891        .10390E-03   -1.4937    
  11  Prefactor     .10000E-03    26.044        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          24.492        10.876        .80950E-04   -1.4718    
  13  Prefactor     3.6864        6.8919        .10516E-02   -1.5324    
  14  Prefactor     .10001E-03    39.121        .42912E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    22.258        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          8.5454        12.536        .13712E-03   -1.5123    
  17  norm          17.955        23.003        .94457E-04   -1.4860    
  18  Prefactor     22.073        26.309        .85245E-04   -1.4768    
  19  Prefactor     .10000E-03    11.227        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    3.6027        .16499E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Normalizat    .84139        .23528        .37360E-03   -.98551    
  22  Prefactor     .90638        .14443        .22524E-03   -.95918    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.31163e-10
Minuit parameter uncertainties:
  1  5.01152e-05
  2  2.44288e-05
  3  0.402067
  4  1.23183e-05
  5  7.28147
  6  6.23603e-05
  7  17.715
  8  6.18323
  9  2.44869e-05
  10  18.8989
  11  8.41526e-05
  12  10.8768
  13  6.89333
  14  0.00105237
  15  7.9861e-05
  16  12.5397
  17  23.0142
  18  26.3229
  19  3.00925e-06
  20  2.40492e-06
  21  0.235566
  22  0.144489
Done.

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

Extracting fit parameters...

4FGL J2327.5+0939
   Spectrum: LogParabola
409         norm:  2.449e+01  1.088e+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.064e-01  1.445e-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.414e-01  2.356e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 12.35
Ra Dec: 351.896 9.654
Photon Index (Fixed Index): 2.68 +/- 0.00
Photon Flux (Fixed Index): 1.33e-07 +/- 5.89e-08
Energy Flux (Fixed Index): 3.30e-05 +/- 1.47e-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) = 7967.88074274
delta logL = 0.271976866265

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 7967.88049092
delta logL = 0.272228691163

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    29.369       1.0000         .10000E-03   10000.    
     2 'alpha     '    2.3734       1.0000          .0000       5.0000    
     3 'Normalizat'    .86254       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .89678       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=   7967.880     FROM MIGRAD    STATUS=CONVERGED     58 CALLS      264 TOTAL
                     EDM=   .30E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          29.348        253.66        .18482E-02    .89499E-05
   2  alpha         2.3726        3.5492        .29418        .29487E-04
   3  Normalizat    .86219        .19330        .83472E-01    .34780E-04
   4  Prefactor     .89702        .12251        .44964E-01    .27535E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 29.3475
  alpha      = 2.37261
  Normalizat = 0.862188
  Prefactor  = 0.89702
 **********
 **   18 **HESSE 
 **********

 FCN=   7967.880     FROM HESSE     STATUS=OK            33 CALLS      297 TOTAL
                     EDM=   .42E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          29.348        13.318        .73929E-04   -1.4624    
   2  alpha         2.3726        .40849        .12062E-01   -.50979E-01
   3  Normalizat    .86219        .23094        .36962E-03   -.97802    
   4  Prefactor     .89702        .14394        .22626E-03   -.96245    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.15296e-10
Minuit parameter uncertainties:
  1  13.319
  2  0.410334
  3  0.2312
  4  0.144002
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/905030': 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) = 7967.88048381
delta logL = 0.272235796773

Extracting fit parameters...

4FGL J2327.5+0939
   Spectrum: LogParabola
409         norm:  2.935e+01  1.332e+01  1.000e-04  1.000e+04 ( 1.000e-12)
410        alpha:  2.373e+00  4.103e-01  0.000e+00  5.000e+00 ( 1.000e+00)
411         beta:  1.276e-01  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
412           Eb:  5.819e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
503    Prefactor:  8.970e-01  1.440e-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.622e-01  2.312e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 12.67
Ra Dec: 351.896 9.654
Photon Index (Free Index): 2.37 +/- 0.41
Photon Flux (Free Index): 1.15e-07 +/- 5.51e-08
Energy Flux (Free Index): 3.62e-05 +/- 1.61e-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/905030/cmap_HighResolution_298684801_298944001_4FGL_J2327.5+0939_daily_bin229.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='1.33e-07', energy_flux2='3.62e-05', photon_flux_error='5.89e-08', dlogl='2.72e-01', energy_flux='3.30e-05', photon_flux2='1.15e-07', job_status='DONE', time_completed='2021-09-29 19:45:33.660910', photon_index_error2='0.41', photon_index2='2.37', ts='12.35', fit_tolerance='1e-08', GAL='0.91', photon_index_error='0.00', energy_flux_error2='1.61e-05', EG='0.84', time_epoch_completed='1632969933.66', return_code='0', job_id='905030', GAL2='0.90', EG2='0.86', return_code2='0', energy_flux_error='1.47e-05', photon_flux_error2='5.51e-08', ts2='12.67', photon_index='2.68' WHERE bin_id='229' AND source_name='4FGL J2327.5+0939' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep 29 19:45:33 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0088>
Subject: Job 905030: <4FGL_J2327.5+0939_daily_bin229> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2327.5+0939_daily_bin229 351.896 9.6543 298684801 298944001 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 :                                   671.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             260.96 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   871 sec.
    Turnaround time :                            874 sec.

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

