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


Performing analysis on: 4FGL_J2327.5+0939_daily_bin465
RA = 351.896, Dec = 9.6543
tmin = 359856001, tmax = 360115201
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='906396', job_status='RUN', time_executed='2021-09-29 19:39:40.375186', time_epoch_executed='1632969580.38' WHERE source_name='4FGL J2327.5+0939' and cadence='daily' and bin_id='465'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/906396

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

Retrieving the FT1 file...

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

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

Retrieving 45 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/906396/ft1_4FGL_J2327.5+0939_daily_bin465.fits


Retrieving the FT1 file...

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

Retrieving 45 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/906396/ft2_4FGL_J2327.5+0939_daily_bin465.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/906396/ft1_4FGL_J2327.5+0939_daily_bin465.fits outfile=/scratch/kocevski/906396/ft1_filteredMKT_4FGL_J2327.5+0939_daily_bin465.fits ra=351.896 dec=9.6543 rad=12.0 tmin=359856001.0 tmax=360115201.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.25
user 3.00
sys 0.21

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/906396/ft1_filtered_4FGL_J2327.5+0939_daily_bin465.fits" evtable="EVENTS" scfile=/scratch/kocevski/906396/ft2_4FGL_J2327.5+0939_daily_bin465.fits sctable="SC_DATA" outfile=/scratch/kocevski/906396/ltcube_359856001_360115201_4FGL_J2327.5+0939_daily_bin465.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/906396/ft2_4FGL_J2327.5+0939_daily_bin465.fits
.....................!
real 11.94
user 11.61
sys 0.30

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/906396/ft1_filtered_4FGL_J2327.5+0939_daily_bin465.fits evtable="EVENTS" scfile=/scratch/kocevski/906396/ft2_4FGL_J2327.5+0939_daily_bin465.fits sctable="SC_DATA" expcube=/scratch/kocevski/906396/ltcube_359856001_360115201_4FGL_J2327.5+0939_daily_bin465.fits outfile=/scratch/kocevski/906396/expmap_359856001_360115201_4FGL_J2327.5+0939_daily_bin465.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/906396/ltcube_359856001_360115201_4FGL_J2327.5+0939_daily_bin465.fits
.....................!
real 189.88
user 184.52
sys 5.00

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/906396/ft1_filtered_4FGL_J2327.5+0939_daily_bin465.fits scfile=/scratch/kocevski/906396/ft2_4FGL_J2327.5+0939_daily_bin465.fits outfile=/scratch/kocevski/906396/cmap_359856001_360115201_4FGL_J2327.5+0939_daily_bin465.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/906396/ft1_filtered_4FGL_J2327.5+0939_daily_bin465.fits scfile=/scratch/kocevski/906396/ft2_4FGL_J2327.5+0939_daily_bin465.fits outfile=/scratch/kocevski/906396/cmap_HighResolution_359856001_360115201_4FGL_J2327.5+0939_daily_bin465.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.57
user 0.38
sys 0.15

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    18.544       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .73210E-01   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .12810E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    2.0060       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    9.7617       1.0000         .10000E-03   10000.    
     8 'Prefactor '    19.004       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10293E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    1.0881       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    4.5505       1.0000         .10000E-03   10000.    
    16 'norm      '    11.905       1.0000         .10000E-03   10000.    
    17 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    21.337       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10020E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    5.0350       1.0000         .10000E-03   10000.    
    21 'Normalizat'    .76873       1.0000         .10000E-01   10.000    
    22 'Prefactor '    1.1311       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.
 MACHINE ACCURACY LIMITS FURTHER IMPROVEMENT.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   8737.281     FROM MIGRAD    STATUS=CONVERGED    479 CALLS     2044 TOTAL
                     EDM=   .16E-05    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10028E-03    14.193         .0000    ** at limit **
   2  Prefactor     18.542        15.278         .0000        .80098E-04
   3  Prefactor     .73274E-01    .82197E-01     .0000        .26706E-02
   4  Prefactor     .10024E-03    53.835         .0000    ** at limit **
   5  Prefactor     2.0057        5.2404         .0000        .10243E-02
   6  Prefactor     .10000E-03    3.2437         .0000    ** at limit **
   7  Prefactor     9.7628        10.879         .0000        .55169E-04
   8  Prefactor     18.999        7.6290         .0000       -.26335E-02
   9  Prefactor     .10000E-03    2.8840         .0000    ** at limit **
  10  Prefactor     .10022E-03    41.694         .0000    ** at limit **
  11  Prefactor     .10032E-03    14.893         .0000    ** at limit **
  12  norm          .10000E-03    2.7212         .0000    ** at limit **
  13  Prefactor     1.0878        5.0400         .0000        .39123E-01
  14  Prefactor     .10000E-03    5.3773         .0000    ** at limit **
  15  Prefactor     4.5525        18.152         .0000        .12711E-02
  16  norm          11.905        11.904         .0000       -.64941E-04
  17  norm          .10000E-03    7.5723         .0000    ** at limit **
  18  Prefactor     21.329        26.001         .0000        .24789E-02
  19  Prefactor     .10000E-03    6.1028         .0000    ** at limit **
  20  Prefactor     5.0350        6.0133         .0000        .27684E-03
  21  Normalizat    .76863        .17768         .0000        .51682E-04
  22  Prefactor     1.1312        .11290         .0000        .20211E-06
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100279
  Prefactor  = 18.5418
  Prefactor  = 0.0732745
  Prefactor  = 0.00010024
  Prefactor  = 2.0057
  Prefactor  = 0.0001
  Prefactor  = 9.76277
  Prefactor  = 18.9991
  Prefactor  = 0.0001
  Prefactor  = 0.000100217
  Prefactor  = 0.00010032
  norm       = 0.0001
  Prefactor  = 1.08776
  Prefactor  = 0.0001
  Prefactor  = 4.55249
  norm       = 11.905
  norm       = 0.000100001
  Prefactor  = 21.3292
  Prefactor  = 0.000100001
  Prefactor  = 5.03501
  Normalizat = 0.768632
  Prefactor  = 1.1312
 **********
 **   18 **HESSE 
 **********

 FCN=   8737.281     FROM HESSE     STATUS=OK           340 CALLS     2384 TOTAL
                     EDM=   .81E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10028E-03    14.207        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     18.542        15.201        .93007E-04   -1.4846    
   3  Prefactor     .73274E-01    .73927E-01    .27091E-03   -1.5654    
   4  Prefactor     .10024E-03    54.997        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     2.0057        5.2207        .29235E-03   -1.5425    
   6  Prefactor     .10000E-03    3.2551        .16440E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     9.7628        10.879        .12826E-03   -1.5083    
   8  Prefactor     18.999        7.6193        .91875E-04   -1.4836    
   9  Prefactor     .10000E-03    2.8931        .15498E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10022E-03    42.684        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10032E-03    14.902        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          .10000E-03    2.7341        .15043E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     1.0878        5.0126        .19732E-02   -1.5499    
  14  Prefactor     .10000E-03    5.4191        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     4.5525        18.114        .94357E-03   -1.5281    
  16  norm          11.905        11.901        .11610E-03   -1.5018    
  17  norm          .10000E-03    7.5823        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     21.329        26.035        .86712E-04   -1.4784    
  19  Prefactor     .10000E-03    6.1152        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     5.0350        6.0082        .17920E-03   -1.5259    
  21  Normalizat    .76863        .20081        .33856E-03   -1.0124    
  22  Prefactor     1.1312        .12873        .18450E-03   -.88475    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 8.09314e-08
Minuit parameter uncertainties:
  1  0.00398104
  2  15.2046
  3  0.0739272
  4  0.00728002
  5  5.2219
  6  2.88847e-05
  7  10.8808
  8  7.61973
  9  1.47996e-05
  10  0.00608485
  11  0.00436599
  12  8.83703e-06
  13  4.67053
  14  5.91533e-05
  15  18.1358
  16  11.9035
  17  0.000168244
  18  26.0486
  19  0.000158968
  20  6.00894
  21  0.201001
  22  0.128765
Done.

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

Extracting fit parameters...

4FGL J2327.5+0939
   Spectrum: LogParabola
409         norm:  1.000e-04  8.837e-06  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.131e+00  1.288e-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.686e-01  2.010e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): -0.00
Ra Dec: 351.896 9.654
Photon Flux Upper Limit: 6.02e-08 ph cm-2 s-1
Energy Flux Upper Limit: 1.50e-05 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/906396/likelihoodResults_359856001_360115201_4FGL_J2327.5+0939_daily_bin465.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): 102
logL (Free Index) = 8737.28308602
delta logL = -0.00174156467074

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 8737.28134439
delta logL = 6.5439962782e-08

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
     2 'alpha     '    2.6691       1.0000          .0000       5.0000    
     3 'Normalizat'    .76863       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.1312       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=   8737.281     FROM MIGRAD    STATUS=CONVERGED     95 CALLS      238 TOTAL
                     EDM=   .94E-10    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    103.03        .15143E-01** at limit **
   2  alpha         2.2494        3.6032        .16508        .77130E-08
   3  Normalizat    .76863        .26549E-01    .33856E-03    .30658E-03
   4  Prefactor     1.1312        .17351E-01    .18450E-03    .62411E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  alpha      = 2.24941
  Normalizat = 0.768633
  Prefactor  = 1.1312
 **********
 **   18 **HESSE 
 **********

 FCN=   8737.281     FROM HESSE     STATUS=OK            23 CALLS      261 TOTAL
                     EDM=   .16E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    3.0733        .15891E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  alpha         2.2494        3.2131        .66034E-02   -.10040    
   3  Normalizat    .76863        .19516        .13543E-04   -1.0124    
   4  Prefactor     1.1312        .12764        .36899E-04   -.88475    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.60866e-10
Minuit parameter uncertainties:
  1  4.62312e-06
  2  224.54
  3  0.195335
  4  0.127674
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/906396': 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) = 8737.28134248
delta logL = 1.97243389266e-06

Extracting fit parameters...

4FGL J2327.5+0939
   Spectrum: LogParabola
409         norm:  1.000e-04  4.623e-06  1.000e-04  1.000e+04 ( 1.000e-12)
410        alpha:  2.249e+00  2.245e+02  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.131e+00  1.277e-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.686e-01  1.953e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
Ra Dec: 351.896 9.654

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/906396/cmap_HighResolution_359856001_360115201_4FGL_J2327.5+0939_daily_bin465.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.50e-05', job_status='DONE', photon_flux_upper_limit='6.02e-08', time_completed='2021-09-29 19:51:11.135582', job_id='906396', GAL2='1.13', fit_tolerance='1e-08', EG2='0.77', EG='0.77', time_epoch_completed='1632970271.14', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.13', dlogl='1.97e-06', ts2='-0.00', photon_index_error='0.00', photon_index='2.68' WHERE bin_id='465' AND source_name='4FGL J2327.5+0939' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep 29 19:51:11 PDT 2021


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

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2327.5+0939_daily_bin465 351.896 9.6543 359856001 360115201 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 :                                   689.00 sec.
    Max Memory :                                 1093 MB
    Average Memory :                             280.45 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   931 sec.
    Turnaround time :                            932 sec.

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

