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


Performing analysis on: 4FGL_J2327.5+0939_daily_bin152
RA = 351.896, Dec = 9.6543
tmin = 278726401, tmax = 278985601
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='904925', job_status='RUN', time_executed='2021-09-29 19:32:56.241071', time_epoch_executed='1632969176.24' WHERE source_name='4FGL J2327.5+0939' and cadence='daily' and bin_id='152'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/904925

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/904925/ft1_4FGL_J2327.5+0939_daily_bin152.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/904925/ft2_4FGL_J2327.5+0939_daily_bin152.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/904925/ft1_4FGL_J2327.5+0939_daily_bin152.fits outfile=/scratch/kocevski/904925/ft1_filteredMKT_4FGL_J2327.5+0939_daily_bin152.fits ra=351.896 dec=9.6543 rad=12.0 tmin=278726401.0 tmax=278985601.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.83
user 3.56
sys 0.21

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/904925/ft1_filtered_4FGL_J2327.5+0939_daily_bin152.fits" evtable="EVENTS" scfile=/scratch/kocevski/904925/ft2_4FGL_J2327.5+0939_daily_bin152.fits sctable="SC_DATA" outfile=/scratch/kocevski/904925/ltcube_278726401_278985601_4FGL_J2327.5+0939_daily_bin152.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/904925/ft2_4FGL_J2327.5+0939_daily_bin152.fits
.....................!
real 13.02
user 12.63
sys 0.34

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/904925/ft1_filtered_4FGL_J2327.5+0939_daily_bin152.fits evtable="EVENTS" scfile=/scratch/kocevski/904925/ft2_4FGL_J2327.5+0939_daily_bin152.fits sctable="SC_DATA" expcube=/scratch/kocevski/904925/ltcube_278726401_278985601_4FGL_J2327.5+0939_daily_bin152.fits outfile=/scratch/kocevski/904925/expmap_278726401_278985601_4FGL_J2327.5+0939_daily_bin152.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/904925/ltcube_278726401_278985601_4FGL_J2327.5+0939_daily_bin152.fits
.....................!
real 191.59
user 185.15
sys 5.73

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

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/904925/ft1_filtered_4FGL_J2327.5+0939_daily_bin152.fits scfile=/scratch/kocevski/904925/ft2_4FGL_J2327.5+0939_daily_bin152.fits outfile=/scratch/kocevski/904925/cmap_HighResolution_278726401_278985601_4FGL_J2327.5+0939_daily_bin152.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.56
user 0.39
sys 0.16

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

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.2603       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    4.6701       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    23.943       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10017E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10058E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    1.6182       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10008E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    6.2529       1.0000         .10000E-03   10000.    
    13 'Prefactor '    1.3265       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .11386E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    38.323       1.0000         .10000E-03   10000.    
    16 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    12.488       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10084E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .79274       1.0000         .10000E-03   10000.    
    21 'Normalizat'    1.7684       1.0000         .10000E-01   10.000    
    22 'Prefactor '    .58217       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=   8502.989     FROM MIGRAD    STATUS=CONVERGED    468 CALLS     2015 TOTAL
                     EDM=   .40E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.4%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    24.289        .54882E-05** at limit **
   2  Prefactor     .10000E-03    6.1683        .22268E-05** at limit **
   3  Prefactor     5.2603        .37804       -.41863E-08   -.38480E-03
   4  Prefactor     .10000E-03    14.714       -.77803E-05** at limit **
   5  Prefactor     4.6701        6.5566        .29219E-08   -.70308E-04
   6  Prefactor     .10000E-03    5.7181       -.11890E-05** at limit **
   7  Prefactor     23.942        20.217       -.42193E-06    .49605E-05
   8  Prefactor     .10000E-03    4.0118       -.19939E-06** at limit **
   9  Prefactor     .10000E-03    8.4489       -.40198E-05** at limit **
  10  Prefactor     1.6241        34.175        .23989E-05   -.55991E-04
  11  Prefactor     .10000E-03    22.772        .15293E-05** at limit **
  12  norm          6.2517        9.1866        .73218E-07    .59988E-04
  13  Prefactor     1.3302        3.2159       -.49783E-06   -.27771E-03
  14  Prefactor     .10000E-03    10.262        .46583E-05** at limit **
  15  Prefactor     38.325        24.278        .13813E-05    .58238E-04
  16  norm          .10000E-03    4.4665        .15056E-06** at limit **
  17  norm          12.495        17.943        .32671E-05   -.91275E-04
  18  Prefactor     .10000E-03    12.303        .26183E-05** at limit **
  19  Prefactor     .10000E-03    33.547       -.52973E-05** at limit **
  20  Prefactor     .79332        3.4739        .40261E-06   -.15048E-04
  21  Normalizat    1.7684        .21459       -.75915E-07    .72960E-04
  22  Prefactor     .58216        .12599       -.10655E-06    .65464E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 5.26032
  Prefactor  = 0.0001
  Prefactor  = 4.67011
  Prefactor  = 0.0001
  Prefactor  = 23.9417
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 1.62412
  Prefactor  = 0.0001
  norm       = 6.25169
  Prefactor  = 1.33016
  Prefactor  = 0.0001
  Prefactor  = 38.3246
  norm       = 0.0001
  norm       = 12.4945
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.793321
  Normalizat = 1.76841
  Prefactor  = 0.582159
 **********
 **   18 **HESSE 
 **********

 FCN=   8502.989     FROM HESSE     STATUS=OK           338 CALLS     2353 TOTAL
                     EDM=   .58E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    24.332        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    6.1755        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     5.2603        .37856        .14580E-04   -1.5249    
   4  Prefactor     .10000E-03    14.781        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     4.6701        6.5796        .93112E-03   -1.5276    
   6  Prefactor     .10000E-03    5.7395        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     23.942        20.261        .81863E-04   -1.4729    
   8  Prefactor     .10000E-03    4.0666        .18011E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    8.5628        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     1.6241        38.084        .16638E-02   -1.5453    
  11  Prefactor     .10000E-03    22.782        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          6.2517        10.000        .80266E-03   -1.5208    
  13  Prefactor     1.3302        15.612        .19080E-02   -1.5477    
  14  Prefactor     .10000E-03    10.140        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     38.325        24.315        .64744E-04   -1.4469    
  16  norm          .10000E-03    4.4691        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          12.495        17.784        .11335E-03   -1.5001    
  18  Prefactor     .10000E-03    12.313        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    33.888        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .79332        3.3375        .33448E-03   -1.5530    
  21  Normalizat    1.7684        .25788        .29784E-03   -.70491    
  22  Prefactor     .58216        .14856        .28795E-03   -1.0834    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.82022e-10
Minuit parameter uncertainties:
  1  3.57818e-07
  2  2.41427e-07
  3  0.378556
  4  4.61143e-06
  5  6.58062
  6  2.1393e-06
  7  20.2673
  8  7.30243e-06
  9  6.8295e-06
  10  15.74
  11  6.99342e-06
  12  10.0027
  13  9.11678
  14  9.27858e-05
  15  24.3214
  16  5.96957e-08
  17  17.7915
  18  3.89587e-06
  19  6.98728e-06
  20  3.25447
  21  0.258079
  22  0.148661
Done.

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

Extracting fit parameters...

4FGL J2327.5+0939
   Spectrum: LogParabola
409         norm:  6.252e+00  1.000e+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:  5.822e-01  1.487e-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.768e+00  2.581e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/904925/likelihoodResults_278726401_278985601_4FGL_J2327.5+0939_daily_bin152.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) = 8502.8537487
delta logL = 0.135561572879

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 8502.84931549
delta logL = 0.139994783791

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    3.8311       1.0000         .10000E-03   10000.    
     2 'alpha     '    3.4202       1.0000          .0000       5.0000    
     3 'Normalizat'    1.7452       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .59197       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=   8502.849     FROM MIGRAD    STATUS=CONVERGED     88 CALLS      299 TOTAL
                     EDM=   .15E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          3.8302        11.451        .19031E-03    .10884E-03
   2  alpha         3.4192        1.9398        .27843E-01    .16236E-04
   3  Normalizat    1.7454        .25629        .29927E-03   -.17129E-03
   4  Prefactor     .59199        .15017        .28572E-03   -.18518E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 3.83024
  alpha      = 3.41916
  Normalizat = 1.74542
  Prefactor  = 0.59199
 **********
 **   18 **HESSE 
 **********

 FCN=   8502.849     FROM HESSE     STATUS=OK            25 CALLS      324 TOTAL
                     EDM=   .49E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          3.8302        7.5401        .76122E-05   -1.5317    
   2  alpha         3.4192        1.4049        .11137E-02    .37650    
   3  Normalizat    1.7454        .25581        .59855E-04   -.71097    
   4  Prefactor     .59199        .14951        .11429E-04   -1.0792    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.94795e-11
Minuit parameter uncertainties:
  1  7.54199
  2  1.50853
  3  0.256007
  4  0.149611
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/904925': 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) = 8502.84931361
delta logL = 0.13999665819

Extracting fit parameters...

4FGL J2327.5+0939
   Spectrum: LogParabola
409         norm:  3.830e+00  7.542e+00  1.000e-04  1.000e+04 ( 1.000e-12)
410        alpha:  3.419e+00  1.509e+00  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:  5.920e-01  1.496e-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.745e+00  2.560e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 1.05
Ra Dec: 351.896 9.654
Photon Index (Free Index): 3.42 +/- 1.51
Photon Flux (Free Index): 5.10e-08 +/- 5.96e-08
Energy Flux (Free Index): 9.14e-06 +/- 1.02e-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/904925/cmap_HighResolution_278726401_278985601_4FGL_J2327.5+0939_daily_bin152.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='3.36e-05', comment='SUCCESS', energy_flux2='9.14e-06', dlogl='1.40e-01', photon_flux2='5.10e-08', job_status='DONE', time_completed='2021-09-29 19:45:12.206870', photon_index_error2='1.51', photon_index2='3.42', ts='0.75', fit_tolerance='1e-08', GAL='0.58', photon_index_error='0.00', photon_flux_upper_limit='1.35e-07', energy_flux_error2='1.02e-05', EG='1.77', time_epoch_completed='1632969912.21', return_code='0', job_id='904925', GAL2='0.59', EG2='1.75', return_code2='0', photon_flux_error2='5.96e-08', ts2='1.05', photon_index='2.68' WHERE bin_id='152' AND source_name='4FGL J2327.5+0939' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep 29 19:45:12 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0217>
Subject: Job 904925: <4FGL_J2327.5+0939_daily_bin152> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2327.5+0939_daily_bin152 351.896 9.6543 278726401 278985601 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 :                                   734.20 sec.
    Max Memory :                                 1093 MB
    Average Memory :                             299.70 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   860 sec.
    Turnaround time :                            863 sec.

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

