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


Performing analysis on: 4FGL_J2327.5+0939_daily_bin740
RA = 351.896, Dec = 9.6543
tmin = 431136001, tmax = 431395201
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='907887', job_status='RUN', time_executed='2021-09-29 19:43:38.690674', time_epoch_executed='1632969818.69' WHERE source_name='4FGL J2327.5+0939' and cadence='daily' and bin_id='740'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/907887

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/907887/ft1_4FGL_J2327.5+0939_daily_bin740.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/907887/ft2_4FGL_J2327.5+0939_daily_bin740.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/907887/ft1_4FGL_J2327.5+0939_daily_bin740.fits outfile=/scratch/kocevski/907887/ft1_filteredMKT_4FGL_J2327.5+0939_daily_bin740.fits ra=351.896 dec=9.6543 rad=12.0 tmin=431136001.0 tmax=431395201.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 5.56
user 5.28
sys 0.24

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/907887/ft1_filtered_4FGL_J2327.5+0939_daily_bin740.fits" evtable="EVENTS" scfile=/scratch/kocevski/907887/ft2_4FGL_J2327.5+0939_daily_bin740.fits sctable="SC_DATA" outfile=/scratch/kocevski/907887/ltcube_431136001_431395201_4FGL_J2327.5+0939_daily_bin740.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/907887/ft2_4FGL_J2327.5+0939_daily_bin740.fits
.....................!
real 12.18
user 11.82
sys 0.32

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/907887/ft1_filtered_4FGL_J2327.5+0939_daily_bin740.fits evtable="EVENTS" scfile=/scratch/kocevski/907887/ft2_4FGL_J2327.5+0939_daily_bin740.fits sctable="SC_DATA" expcube=/scratch/kocevski/907887/ltcube_431136001_431395201_4FGL_J2327.5+0939_daily_bin740.fits outfile=/scratch/kocevski/907887/expmap_431136001_431395201_4FGL_J2327.5+0939_daily_bin740.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/907887/ltcube_431136001_431395201_4FGL_J2327.5+0939_daily_bin740.fits
.....................!
real 190.40
user 185.09
sys 4.93

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

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

This is gtbin version HEAD
real 0.53
user 0.37
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/907887/ft1_filtered_4FGL_J2327.5+0939_daily_bin740.fits scfile=/scratch/kocevski/907887/ft2_4FGL_J2327.5+0939_daily_bin740.fits outfile=/scratch/kocevski/907887/cmap_HighResolution_431136001_431395201_4FGL_J2327.5+0939_daily_bin740.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.39
sys 0.14

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

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 '    18.639       1.0000         .10000E-03   10000.    
     3 'Prefactor '    4.8645       1.0000         .10000E-03   10000.    
     4 'Prefactor '    48.464       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10151E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10105E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    5.5293       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    5.6233       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .15521E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10023E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    53.289       1.0000         .10000E-03   10000.    
    16 'norm      '    12.771       1.0000         .10000E-03   10000.    
    17 'norm      '    40.275       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10023E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10025E-03   1.0000         .10000E-03   10000.    
    21 'Normalizat'    .74267       1.0000         .10000E-01   10.000    
    22 'Prefactor '    1.0952       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=   4169.520     FROM MIGRAD    STATUS=CONVERGED    473 CALLS     2333 TOTAL
                     EDM=   .58E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .4%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    20.158       -.42032E-05** at limit **
   2  Prefactor     18.641        30.591       -.96419E-06   -.37640E-05
   3  Prefactor     4.8643        .50454       -.33438E-08    .18527E-03
   4  Prefactor     48.457        62.009       -.63829E-05    .48628E-05
   5  Prefactor     .10000E-03    13.583       -.12958E-06** at limit **
   6  Prefactor     .10000E-03    6.0989        .26014E-07** at limit **
   7  Prefactor     .10000E-03    28.998       -.51350E-05** at limit **
   8  Prefactor     .10000E-03    6.9051       -.13952E-06** at limit **
   9  Prefactor     .10000E-03    8.9231        .18650E-06** at limit **
  10  Prefactor     5.5181        39.379        .57532E-05   -.16188E-04
  11  Prefactor     .10000E-03    38.959        .17218E-05** at limit **
  12  norm          5.6276        17.916       -.27105E-05   -.87372E-04
  13  Prefactor     .10000E-03    21.313        .21135E-05** at limit **
  14  Prefactor     .10000E-03    15.562        .58887E-06** at limit **
  15  Prefactor     53.284        58.656       -.40992E-05   -.13259E-04
  16  norm          12.772        34.882       -.12166E-05   -.11435E-04
  17  norm          40.259        47.451       -.79241E-05   -.84020E-06
  18  Prefactor     .10000E-03    250.70       -.23574E-05** at limit **
  19  Prefactor     .10000E-03    23.538        .55216E-05** at limit **
  20  Prefactor     .10000E-03    8.3327        .96063E-08** at limit **
  21  Normalizat    .74285        .34507        .15862E-05   -.21010E-04
  22  Prefactor     1.0950        .20399        .66903E-06   -.16829E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 18.6408
  Prefactor  = 4.86434
  Prefactor  = 48.4574
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 5.51809
  Prefactor  = 0.0001
  norm       = 5.62757
  Prefactor  = 0.000100001
  Prefactor  = 0.0001
  Prefactor  = 53.2844
  norm       = 12.7718
  norm       = 40.2589
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Normalizat = 0.742854
  Prefactor  = 1.09503
 **********
 **   18 **HESSE 
 **********

 FCN=   4169.520     FROM HESSE     STATUS=OK           336 CALLS     2669 TOTAL
                     EDM=   .11E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    20.145        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     18.641        30.656        .92771E-04   -1.4844    
   3  Prefactor     4.8643        .50574        .13873E-04   -1.5267    
   4  Prefactor     48.457        61.950        .57601E-04   -1.4315    
   5  Prefactor     .10000E-03    13.676        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    6.1008        .15575E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    29.128        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    6.9544        .16551E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    8.9315        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     5.5181        39.096        .17086E-03   -1.5238    
  11  Prefactor     .10000E-03    38.969        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          5.6276        17.859        .16941E-03   -1.5233    
  13  Prefactor     .10000E-03    21.708        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    15.605        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     53.284        58.256        .54944E-04   -1.4247    
  16  norm          12.772        34.899        .11209E-03   -1.4993    
  17  norm          40.259        47.365        .63162E-04   -1.4438    
  18  Prefactor     .10000E-03    253.01        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    23.554        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    8.3654        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Normalizat    .74285        .38648        .44800E-03   -1.0222    
  22  Prefactor     1.0950        .23095        .23013E-03   -.89626    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.07696e-10
Minuit parameter uncertainties:
  1  8.8737e-08
  2  30.682
  3  0.505738
  4  62.033
  5  9.85316e-06
  6  3.46323e-06
  7  3.13114e-05
  8  4.48183e-05
  9  3.15042e-05
  10  29.403
  11  1.9984e-05
  12  17.8761
  13  0.000280684
  14  7.50115e-05
  15  58.3186
  16  34.955
  17  47.4095
  18  0.000531275
  19  6.79473e-06
  20  1.11866e-05
  21  0.387914
  22  0.231157
Done.

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

Extracting fit parameters...

4FGL J2327.5+0939
   Spectrum: LogParabola
409         norm:  5.628e+00  1.788e+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:  1.095e+00  2.312e-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.429e-01  3.879e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/907887/likelihoodResults_431136001_431395201_4FGL_J2327.5+0939_daily_bin740.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) = 4168.9947971
delta logL = 0.524907434347

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 4168.97659923
delta logL = 0.543105303694

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .92859       1.0000         .10000E-03   10000.    
     2 'alpha     '    5.0000       1.0000          .0000       5.0000    
     3 'Normalizat'    .64528       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.1365       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=   4168.977     FROM MIGRAD    STATUS=CONVERGED     52 CALLS      309 TOTAL
                     EDM=   .46E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .92875        47.723        .12911E-01    .50242E-03
   2  alpha         5.0000        4.9094        .46412    ** at limit **
   3  Normalizat    .64523        .19905        .10755        .20714E-04
   4  Prefactor     1.1366        .10928        .36339E-01   -.50623E-05
                               ERR DEF=  .500    
Final values: 
  norm       = 0.928749
  alpha      = 5
  Normalizat = 0.645233
  Prefactor  = 1.1366
 **********
 **   18 **HESSE 
 **********

 FCN=   4168.977     FROM HESSE     STATUS=OK            35 CALLS      344 TOTAL
                     EDM=   .50E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .92875        1.0045        .64015E-03   -1.5515    
   2  alpha         5.0000        3.9692        .71399E-01    1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Normalizat    .64523        .38258        .47706E-03   -1.0610    
   4  Prefactor     1.1366        .23271        .22619E-03   -.88305    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.01802e-10
Minuit parameter uncertainties:
  1  1.00454
  2  6.71761e-07
  3  0.384164
  4  0.232918
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/907887': 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) = 4168.97659912
delta logL = 0.543105416525

Extracting fit parameters...

4FGL J2327.5+0939
   Spectrum: LogParabola
409         norm:  9.287e-01  1.005e+00  1.000e-04  1.000e+04 ( 1.000e-12)
410        alpha:  5.000e+00  6.718e-07  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:  1.137e+00  2.329e-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:  6.452e-01  3.842e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 1.34
Ra Dec: 351.896 9.654
Photon Index (Free Index): 5.00 +/- 0.00
Photon Flux (Free Index): 1.16e-07 +/- 1.25e-07
Energy Flux (Free Index): 1.58e-05 +/- 1.71e-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/907887/cmap_HighResolution_431136001_431395201_4FGL_J2327.5+0939_daily_bin740.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='6.07e-05', comment='SUCCESS', energy_flux2='1.58e-05', dlogl='5.43e-01', photon_flux2='1.16e-07', job_status='DONE', time_completed='2021-09-29 19:52:34.292499', photon_index_error2='0.00', photon_index2='5.00', ts='0.13', fit_tolerance='1e-08', GAL='1.10', photon_index_error='0.00', photon_flux_upper_limit='2.44e-07', energy_flux_error2='1.71e-05', EG='0.74', time_epoch_completed='1632970354.29', return_code='0', job_id='907887', GAL2='1.14', EG2='0.65', return_code2='0', photon_flux_error2='1.25e-07', ts2='1.34', photon_index='2.68' WHERE bin_id='740' AND source_name='4FGL J2327.5+0939' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep 29 19:52:34 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0275>
Subject: Job 907887: <4FGL_J2327.5+0939_daily_bin740> in cluster <slac> Done

Job <4FGL_J2327.5+0939_daily_bin740> was submitted from host <rhel6-64d> by user <kocevski> in cluster <slac> at Wed Sep 29 19:40:41 2021
Job was executed on host(s) <bullet0275>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Sep 29 19:40:43 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Wed Sep 29 19:40:43 2021
Terminated at Wed Sep 29 19:52:35 2021
Results reported at Wed Sep 29 19:52:35 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2327.5+0939_daily_bin740 351.896 9.6543 431136001 431395201 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 :                                   531.14 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             278.59 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   711 sec.
    Turnaround time :                            714 sec.

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

