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


Performing analysis on: 4FGL_J2327.5+0939_daily_bin912
RA = 351.896, Dec = 9.6543
tmin = 475718401, tmax = 475977601
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='909262', job_status='RUN', time_executed='2021-09-29 19:45:37.990287', time_epoch_executed='1632969937.99' WHERE source_name='4FGL J2327.5+0939' and cadence='daily' and bin_id='912'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/909262

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/909262/ft1_4FGL_J2327.5+0939_daily_bin912.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/909262/ft2_4FGL_J2327.5+0939_daily_bin912.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/909262/ft1_4FGL_J2327.5+0939_daily_bin912.fits outfile=/scratch/kocevski/909262/ft1_filteredMKT_4FGL_J2327.5+0939_daily_bin912.fits ra=351.896 dec=9.6543 rad=12.0 tmin=475718401.0 tmax=475977601.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.57
user 3.34
sys 0.21

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/909262/ft2_4FGL_J2327.5+0939_daily_bin912.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/909262/ft1_filteredMKT_4FGL_J2327.5+0939_daily_bin912.fits evtable="EVENTS" outfile="/scratch/kocevski/909262/ft1_filtered_4FGL_J2327.5+0939_daily_bin912.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/909262/ft1_filtered_4FGL_J2327.5+0939_daily_bin912.fits" evtable="EVENTS" scfile=/scratch/kocevski/909262/ft2_4FGL_J2327.5+0939_daily_bin912.fits sctable="SC_DATA" outfile=/scratch/kocevski/909262/ltcube_475718401_475977601_4FGL_J2327.5+0939_daily_bin912.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/909262/ft2_4FGL_J2327.5+0939_daily_bin912.fits
.....................!
real 11.76
user 11.41
sys 0.30

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/909262/ft1_filtered_4FGL_J2327.5+0939_daily_bin912.fits evtable="EVENTS" scfile=/scratch/kocevski/909262/ft2_4FGL_J2327.5+0939_daily_bin912.fits sctable="SC_DATA" expcube=/scratch/kocevski/909262/ltcube_475718401_475977601_4FGL_J2327.5+0939_daily_bin912.fits outfile=/scratch/kocevski/909262/expmap_475718401_475977601_4FGL_J2327.5+0939_daily_bin912.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/909262/ltcube_475718401_475977601_4FGL_J2327.5+0939_daily_bin912.fits
.....................!
real 190.80
user 185.93
sys 4.54

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

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/909262/ft1_filtered_4FGL_J2327.5+0939_daily_bin912.fits scfile=/scratch/kocevski/909262/ft2_4FGL_J2327.5+0939_daily_bin912.fits outfile=/scratch/kocevski/909262/cmap_HighResolution_475718401_475977601_4FGL_J2327.5+0939_daily_bin912.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/909262/ft1_filtered_4FGL_J2327.5+0939_daily_bin912.fits evtable="EVENTS" scfile=/scratch/kocevski/909262/ft2_4FGL_J2327.5+0939_daily_bin912.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/909262/Model_4FGL_J2327.5+0939_daily_bin912.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/909262/ft1_filtered_4FGL_J2327.5+0939_daily_bin912.fits.....................!
real 112.12
user 110.72
sys 1.21

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

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 '    8.1852       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    11.107       1.0000         .10000E-03   10000.    
     6 'Prefactor '    1.5315       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10025E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    10.811       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10069E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    8.6155       1.0000         .10000E-03   10000.    
    17 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10104E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    21 'Normalizat'    1.2336       1.0000         .10000E-01   10.000    
    22 'Prefactor '    .81176       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=   9538.251     FROM MIGRAD    STATUS=CONVERGED    454 CALLS     1952 TOTAL
                     EDM=   .72E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.1%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    26.874        .11228E-04** at limit **
   2  Prefactor     .10000E-03    8.5053       -.42803E-05** at limit **
   3  Prefactor     8.1853        .49496       -.10913E-08    .30407E-03
   4  Prefactor     .10000E-03    21.499       -.94108E-05** at limit **
   5  Prefactor     11.107        9.3601        .39252E-07   -.12868E-04
   6  Prefactor     1.5333        21.427       -.20534E-05   -.24291E-03
   7  Prefactor     .10000E-03    7.1329        .22974E-05** at limit **
   8  Prefactor     .10000E-03    3.7490       -.43578E-07** at limit **
   9  Prefactor     .10000E-03    4.0526       -.10578E-07** at limit **
  10  Prefactor     .10000E-03    8.7335       -.29276E-05** at limit **
  11  Prefactor     .10000E-03    25.793        .81654E-05** at limit **
  12  norm          10.813        8.0437       -.67683E-06   -.12006E-02
  13  Prefactor     .10000E-03    4.7299       -.17499E-06** at limit **
  14  Prefactor     .10000E-03    9.1052        .30576E-07** at limit **
  15  Prefactor     .10000E-03    10.597        .57089E-05** at limit **
  16  norm          8.6160        10.674       -.12130E-07   -.75316E-05
  17  norm          .10000E-03    11.094        .55154E-05** at limit **
  18  Prefactor     .10000E-03    13.760       -.75563E-05** at limit **
  19  Prefactor     .10000E-03    38.926       -.11169E-04** at limit **
  20  Prefactor     .10000E-03    3.2375       -.57275E-07** at limit **
  21  Normalizat    1.2336        .20814        .41241E-07    .79498E-04
  22  Prefactor     .81176        .12547        .11174E-06    .89091E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 8.18525
  Prefactor  = 0.0001
  Prefactor  = 11.1072
  Prefactor  = 1.53326
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 10.8128
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 8.61597
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Normalizat = 1.23358
  Prefactor  = 0.811755
 **********
 **   18 **HESSE 
 **********

 FCN=   9538.251     FROM HESSE     STATUS=OK           334 CALLS     2286 TOTAL
                     EDM=   .14E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    26.736        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    8.4870        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     8.1853        .49557        .16090E-04   -1.5136    
   4  Prefactor     .10000E-03    21.419        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     11.107        9.3553        .12021E-03   -1.5041    
   6  Prefactor     1.5333        21.899        .34485E-03   -1.5460    
   7  Prefactor     .10000E-03    7.1375        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    3.7756        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    4.0731        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    8.7414        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    25.733        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          10.813        8.1713        .60924E-03   -1.5050    
  13  Prefactor     .10000E-03    4.7977        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    9.2097        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    10.596        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          8.6160        10.672        .13657E-03   -1.5121    
  17  norm          .10000E-03    11.075        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    13.707        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    39.238        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    3.2597        .17160E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Normalizat    1.2336        .24497        .35934E-03   -.85571    
  22  Prefactor     .81176        .14782        .25982E-03   -.99296    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.4356e-09
Minuit parameter uncertainties:
  1  9.56268e-07
  2  8.66111e-07
  3  0.495575
  4  8.66031e-06
  5  9.35655
  6  11.5939
  7  9.63125e-07
  8  7.65687e-07
  9  6.03261e-06
  10  1.74796e-06
  11  4.98547e-06
  12  8.17212
  13  1.26084e-05
  14  7.8314e-06
  15  3.13262e-06
  16  10.6747
  17  4.17543e-06
  18  3.58016e-06
  19  0.000101625
  20  1.77572e-07
  21  0.245202
  22  0.147897
Done.

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

Extracting fit parameters...

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

GAL_V02
   Spectrum: PowerLaw
503    Prefactor:  8.118e-01  1.479e-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.234e+00  2.452e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 3.50
Ra Dec: 351.896 9.654
Photon Index (Fixed Index): 2.68 +/- 0.00
Photon Flux (Fixed Index): 5.86e-08 +/- 4.43e-08
Energy Flux (Fixed Index): 1.46e-05 +/- 1.10e-05

TS (Fixed Index): 3.50
Ra Dec: 351.896 9.654
Photon Flux Upper Limit: 1.58e-07 ph cm-2 s-1
Energy Flux Upper Limit: 3.94e-05 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/909262/likelihoodResults_475718401_475977601_4FGL_J2327.5+0939_daily_bin912.txt

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) = 9535.7261268
delta logL = 2.52519274273

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 9535.66787545
delta logL = 2.58344409005

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    14.024       1.0000         .10000E-03   10000.    
     2 'alpha     '    1.4739       1.0000          .0000       5.0000    
     3 'Normalizat'    1.2794       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .78855       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=   9535.668     FROM MIGRAD    STATUS=CONVERGED     54 CALLS      214 TOTAL
                     EDM=   .73E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          14.038        8.4614        .26739E-02    .33928E-04
   2  alpha         1.4743        .35378        .36889       -.53562E-04
   3  Normalizat    1.2795        .20661        .79878E-01   -.39754E-04
   4  Prefactor     .78849        .12459        .43568E-01   -.69727E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 14.0381
  alpha      = 1.47425
  Normalizat = 1.27953
  Prefactor  = 0.788487
 **********
 **   18 **HESSE 
 **********

 FCN=   9535.668     FROM HESSE     STATUS=OK            33 CALLS      247 TOTAL
                     EDM=   .12E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          14.038        9.8556        .53479E-03   -1.4958    
   2  alpha         1.4743        .45199        .14835E-01   -.42278    
   3  Normalizat    1.2795        .24369        .35356E-03   -.84179    
   4  Prefactor     .78849        .14717        .26280E-03   -1.0015    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.17842e-11
Minuit parameter uncertainties:
  1  9.85678
  2  0.455001
  3  0.24391
  4  0.147248
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/909262': 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) = 9535.66787429
delta logL = 2.58344525233

Extracting fit parameters...

4FGL J2327.5+0939
   Spectrum: LogParabola
409         norm:  1.404e+01  9.857e+00  1.000e-04  1.000e+04 ( 1.000e-12)
410        alpha:  1.474e+00  4.550e-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:  7.885e-01  1.472e-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.280e+00  2.439e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 8.68
Ra Dec: 351.896 9.654
Photon Index (Free Index): 1.47 +/- 0.46
Photon Flux (Free Index): 3.02e-08 +/- 2.29e-08
Energy Flux (Free Index): 3.70e-05 +/- 2.95e-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/909262/cmap_HighResolution_475718401_475977601_4FGL_J2327.5+0939_daily_bin912.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='3.94e-05', comment='SUCCESS', photon_flux='5.86e-08', energy_flux2='3.70e-05', photon_flux_error='4.43e-08', dlogl='2.58e+00', energy_flux='1.46e-05', photon_flux2='3.02e-08', job_status='DONE', time_completed='2021-09-29 19:58:25.117710', photon_index_error2='0.46', photon_index2='1.47', ts='3.50', fit_tolerance='1e-08', GAL='0.81', photon_index_error='0.00', photon_flux_upper_limit='1.58e-07', energy_flux_error2='2.95e-05', EG='1.23', time_epoch_completed='1632970705.12', return_code='0', job_id='909262', GAL2='0.79', EG2='1.28', return_code2='0', energy_flux_error='1.10e-05', photon_flux_error2='2.29e-08', ts2='8.68', photon_index='2.68' WHERE bin_id='912' AND source_name='4FGL J2327.5+0939' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep 29 19:58:25 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0080>
Subject: Job 909262: <4FGL_J2327.5+0939_daily_bin912> in cluster <slac> Done

Job <4FGL_J2327.5+0939_daily_bin912> was submitted from host <rhel6-64f> by user <kocevski> in cluster <slac> at Wed Sep 29 19:45:23 2021
Job was executed on host(s) <bullet0080>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Sep 29 19:45:24 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:45:24 2021
Terminated at Wed Sep 29 19:58:25 2021
Results reported at Wed Sep 29 19:58:25 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2327.5+0939_daily_bin912 351.896 9.6543 475718401 475977601 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 :                                   765.48 sec.
    Max Memory :                                 1093 MB
    Average Memory :                             304.96 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   781 sec.
    Turnaround time :                            782 sec.

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

