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


Performing analysis on: 4FGL_J2327.5+0939_daily_bin585
RA = 351.896, Dec = 9.6543
tmin = 390960001, tmax = 391219201
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='906594', job_status='RUN', time_executed='2021-09-29 19:36:16.155738', time_epoch_executed='1632969376.16' WHERE source_name='4FGL J2327.5+0939' and cadence='daily' and bin_id='585'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/906594

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/906594/ft1_4FGL_J2327.5+0939_daily_bin585.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/906594/ft2_4FGL_J2327.5+0939_daily_bin585.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/906594/ft1_4FGL_J2327.5+0939_daily_bin585.fits outfile=/scratch/kocevski/906594/ft1_filteredMKT_4FGL_J2327.5+0939_daily_bin585.fits ra=351.896 dec=9.6543 rad=12.0 tmin=390960001.0 tmax=391219201.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 4.49
user 4.21
sys 0.26

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

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

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/906594/ft1_filtered_4FGL_J2327.5+0939_daily_bin585.fits evtable="EVENTS" scfile=/scratch/kocevski/906594/ft2_4FGL_J2327.5+0939_daily_bin585.fits sctable="SC_DATA" expcube=/scratch/kocevski/906594/ltcube_390960001_391219201_4FGL_J2327.5+0939_daily_bin585.fits outfile=/scratch/kocevski/906594/expmap_390960001_391219201_4FGL_J2327.5+0939_daily_bin585.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/906594/ltcube_390960001_391219201_4FGL_J2327.5+0939_daily_bin585.fits
.....................!
real 190.34
user 185.66
sys 4.37

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/906594/ft1_filtered_4FGL_J2327.5+0939_daily_bin585.fits scfile=/scratch/kocevski/906594/ft2_4FGL_J2327.5+0939_daily_bin585.fits outfile=/scratch/kocevski/906594/cmap_390960001_391219201_4FGL_J2327.5+0939_daily_bin585.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.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/906594/ft1_filtered_4FGL_J2327.5+0939_daily_bin585.fits scfile=/scratch/kocevski/906594/ft2_4FGL_J2327.5+0939_daily_bin585.fits outfile=/scratch/kocevski/906594/cmap_HighResolution_390960001_391219201_4FGL_J2327.5+0939_daily_bin585.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.38
sys 0.16

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .72975       1.0000         .10000E-03   10000.    
     2 'Prefactor '    18.067       1.0000         .10000E-03   10000.    
     3 'Prefactor '    1.2967       1.0000         .10000E-03   10000.    
     4 'Prefactor '    17.045       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10056E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10008E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10088E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    3.3793       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .13104E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    11.606       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10020E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    .10145E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    7.4015       1.0000         .10000E-03   10000.    
    14 'Prefactor '    14.096       1.0000         .10000E-03   10000.    
    15 'Prefactor '    8.1463       1.0000         .10000E-03   10000.    
    16 'norm      '    .10013E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    .10004E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10051E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    4.4394       1.0000         .10000E-03   10000.    
    21 'Normalizat'    .87503       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=   6485.989     FROM MIGRAD    STATUS=CONVERGED    464 CALLS     2388 TOTAL
                     EDM=   .20E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .9%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .75424        18.546        .24223E-05   -.56978E-03
   2  Prefactor     18.073        23.011        .11602E-05   -.12107E-03
   3  Prefactor     1.2967        .24125       -.52734E-07   -.14418E-02
   4  Prefactor     17.039        41.400       -.11150E-04   -.19588E-04
   5  Prefactor     .10000E-03    10.832       -.26041E-06** at limit **
   6  Prefactor     .10000E-03    5.9124        .57772E-07** at limit **
   7  Prefactor     .10000E-03    31.823        .14671E-05** at limit **
   8  Prefactor     3.3810        8.9017       -.16247E-05   -.29081E-03
   9  Prefactor     .10000E-03    8.0464        .79519E-05** at limit **
  10  Prefactor     11.604        22.092       -.22037E-05    .22893E-04
  11  Prefactor     .10000E-03    18.492        .16146E-05** at limit **
  12  norm          .10000E-03    6.4689        .38336E-06** at limit **
  13  Prefactor     7.3990        7.0558        .20146E-05   -.91946E-03
  14  Prefactor     14.094        11.766       -.39327E-06   -.23491E-04
  15  Prefactor     8.1104        28.702       -.47085E-04   -.12968E-03
  16  norm          .10000E-03    11.747       -.82444E-06** at limit **
  17  norm          .10000E-03    11.092       -.26129E-07** at limit **
  18  Prefactor     .10000E-03    30.134       -.64645E-05** at limit **
  19  Prefactor     .10000E-03    51.214        .47279E-05** at limit **
  20  Prefactor     4.4400        6.6652       -.17990E-05   -.10457E-03
  21  Normalizat    .87555        .23285        .56691E-05   -.71155E-03
  22  Prefactor     1.0948        .13762        .36312E-06   -.85606E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.754243
  Prefactor  = 18.073
  Prefactor  = 1.29672
  Prefactor  = 17.0388
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 3.38096
  Prefactor  = 0.000100001
  Prefactor  = 11.6041
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 7.39904
  Prefactor  = 14.0942
  Prefactor  = 8.11037
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 0.000100001
  Prefactor  = 0.0001
  Prefactor  = 4.44002
  Normalizat = 0.87555
  Prefactor  = 1.0948
 **********
 **   18 **HESSE 
 **********

 FCN=   6485.989     FROM HESSE     STATUS=OK           342 CALLS     2730 TOTAL
                     EDM=   .19E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .75424        156.27        .66996E-02   -1.5534    
   2  Prefactor     18.073        23.040        .94226E-04   -1.4857    
   3  Prefactor     1.2967        .24080        .15952E-04   -1.5480    
   4  Prefactor     17.039        41.496        .97010E-04   -1.4882    
   5  Prefactor     .10000E-03    11.105        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    5.9279        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    32.252        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     3.3810        8.8042        .22011E-03   -1.5340    
   9  Prefactor     .10000E-03    50.493        .42075E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     11.604        21.866        .11759E-03   -1.5027    
  11  Prefactor     .10000E-03    18.494        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          .10000E-03    6.5105        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     7.3990        7.0050        .14742E-03   -1.5164    
  14  Prefactor     14.094        11.769        .10668E-03   -1.4957    
  15  Prefactor     8.1104        28.933        .14047E-03   -1.5138    
  16  norm          .10000E-03    11.876        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          .10000E-03    11.098        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    30.176        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    51.789        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     4.4400        6.6601        .19112E-03   -1.5287    
  21  Normalizat    .87555        .26587        .34780E-03   -.97325    
  22  Prefactor     1.0948        .15860        .19751E-03   -.89633    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.92507e-08
Minuit parameter uncertainties:
  1  21.7693
  2  23.0517
  3  0.240805
  4  41.5668
  5  6.54969e-05
  6  1.46469e-05
  7  0.000171205
  8  8.80752
  9  0.000483144
  10  21.8806
  11  7.3285e-05
  12  8.87434e-05
  13  7.00574
  14  11.7714
  15  28.9833
  16  4.35374e-06
  17  2.03085e-07
  18  0.000383736
  19  3.47612e-05
  20  6.66119
  21  0.266269
  22  0.158665
Done.

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

Extracting fit parameters...

4FGL J2327.5+0939
   Spectrum: LogParabola
409         norm:  1.000e-04  8.874e-05  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  1.587e-01  0.000e+00  1.000e+01 ( 1.000e+00)
504        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
505        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
502   Normalization:  8.755e-01  2.663e-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: 1.03e-07 ph cm-2 s-1
Energy Flux Upper Limit: 2.57e-05 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/906594/likelihoodResults_390960001_391219201_4FGL_J2327.5+0939_daily_bin585.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) = 6485.9901984
delta logL = -0.000732163682187

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 6485.98946661
delta logL = -3.8155940274e-07

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10382E-03   1.0000         .10000E-03   10000.    
     2 'alpha     '    2.6692       1.0000          .0000       5.0000    
     3 'Normalizat'    .87544       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0949       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=   6485.989     FROM MIGRAD    STATUS=CONVERGED     95 CALLS      236 TOTAL
                     EDM=   .12E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    204.59        .18142E-01** at limit **
   2  alpha         2.2686        3.5803        .16509       -.41870E-07
   3  Normalizat    .87556        .30897E-01    .34780E-03    .48314E-03
   4  Prefactor     1.0948        .19532E-01    .19751E-03    .80691E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  alpha      = 2.26856
  Normalizat = 0.875558
  Prefactor  = 1.09479
 **********
 **   18 **HESSE 
 **********

 FCN=   6485.989     FROM HESSE     STATUS=OK            23 CALLS      259 TOTAL
                     EDM=   .49E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    7.2965        .41830E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  alpha         2.2686        3.8266        .66034E-02   -.92709E-01
   3  Normalizat    .87556        .25001        .69560E-04   -.97324    
   4  Prefactor     1.0948        .15821        .39501E-04   -.89633    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.93965e-10
Minuit parameter uncertainties:
  1  2.0138e-05
  2  309.293
  3  0.250346
  4  0.158276
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/906594': 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) = 6485.98946541
delta logL = 8.24964445201e-07

Extracting fit parameters...

4FGL J2327.5+0939
   Spectrum: LogParabola
409         norm:  1.000e-04  2.014e-05  1.000e-04  1.000e+04 ( 1.000e-12)
410        alpha:  2.269e+00  3.093e+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.095e+00  1.583e-01  0.000e+00  1.000e+01 ( 1.000e+00)
504        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
505        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
502   Normalization:  8.756e-01  2.503e-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  0.000e+00 [aplpy.core]
INFO: Auto-setting vmax to  0.000e+00 [aplpy.core]
Saving /scratch/kocevski/906594/cmap_HighResolution_390960001_391219201_4FGL_J2327.5+0939_daily_bin585.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='2.57e-05', job_status='DONE', photon_flux_upper_limit='1.03e-07', time_completed='2021-09-29 19:46:55.514969', job_id='906594', GAL2='1.09', fit_tolerance='1e-08', EG2='0.88', EG='0.88', time_epoch_completed='1632970015.52', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.09', dlogl='8.25e-07', ts2='-0.00', photon_index_error='0.00', photon_index='2.68' WHERE bin_id='585' AND source_name='4FGL J2327.5+0939' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep 29 19:46:55 PDT 2021


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

Job <4FGL_J2327.5+0939_daily_bin585> was submitted from host <rhel6-64p> by user <kocevski> in cluster <slac> at Wed Sep 29 19:35:57 2021
Job was executed on host(s) <bullet0080>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Sep 29 19:35:59 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:59 2021
Terminated at Wed Sep 29 19:46:56 2021
Results reported at Wed Sep 29 19:46:56 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2327.5+0939_daily_bin585 351.896 9.6543 390960001 391219201 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 :                                   633.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             347.45 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   656 sec.
    Turnaround time :                            659 sec.

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

