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


Performing analysis on: 4FGL_J2331.0-2147_daily_bin1113
RA = 352.763, Dec = -21.7953
tmin = 527817601, tmax = 528076801
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='7650', job_status='RUN', time_executed='2021-09-29 22:57:59.823733', time_epoch_executed='1632981479.82' WHERE source_name='4FGL J2331.0-2147' and cadence='daily' and bin_id='1113'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/7650

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/7650/ft1_4FGL_J2331.0-2147_daily_bin1113.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/7650/ft2_4FGL_J2331.0-2147_daily_bin1113.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/7650/ft1_4FGL_J2331.0-2147_daily_bin1113.fits outfile=/scratch/kocevski/7650/ft1_filteredMKT_4FGL_J2331.0-2147_daily_bin1113.fits ra=352.763 dec=-21.7953 rad=12.0 tmin=527817601.0 tmax=528076801.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.48
user 3.27
sys 0.20

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/7650/ft2_4FGL_J2331.0-2147_daily_bin1113.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/7650/ft2_4FGL_J2331.0-2147_daily_bin1113.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/7650/ft1_filteredMKT_4FGL_J2331.0-2147_daily_bin1113.fits evtable="EVENTS" outfile="/scratch/kocevski/7650/ft1_filtered_4FGL_J2331.0-2147_daily_bin1113.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/7650/ft1_filtered_4FGL_J2331.0-2147_daily_bin1113.fits" evtable="EVENTS" scfile=/scratch/kocevski/7650/ft2_4FGL_J2331.0-2147_daily_bin1113.fits sctable="SC_DATA" outfile=/scratch/kocevski/7650/ltcube_527817601_528076801_4FGL_J2331.0-2147_daily_bin1113.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/7650/ft2_4FGL_J2331.0-2147_daily_bin1113.fits
.....................!
real 13.13
user 12.73
sys 0.36

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/7650/ft1_filtered_4FGL_J2331.0-2147_daily_bin1113.fits evtable="EVENTS" scfile=/scratch/kocevski/7650/ft2_4FGL_J2331.0-2147_daily_bin1113.fits sctable="SC_DATA" expcube=/scratch/kocevski/7650/ltcube_527817601_528076801_4FGL_J2331.0-2147_daily_bin1113.fits outfile=/scratch/kocevski/7650/expmap_527817601_528076801_4FGL_J2331.0-2147_daily_bin1113.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/7650/ltcube_527817601_528076801_4FGL_J2331.0-2147_daily_bin1113.fits
.....................!
real 190.67
user 184.91
sys 5.35

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 166 point sources and 0 extended sources

Setting source of interest to:
4FGL J2331.0-2147 @ 352.763 -21.7953

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/7650/ft1_filtered_4FGL_J2331.0-2147_daily_bin1113.fits scfile=/scratch/kocevski/7650/ft2_4FGL_J2331.0-2147_daily_bin1113.fits outfile=/scratch/kocevski/7650/cmap_527817601_528076801_4FGL_J2331.0-2147_daily_bin1113.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=352.763 yref=-21.7953 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.36
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/7650/ft1_filtered_4FGL_J2331.0-2147_daily_bin1113.fits scfile=/scratch/kocevski/7650/ft2_4FGL_J2331.0-2147_daily_bin1113.fits outfile=/scratch/kocevski/7650/cmap_HighResolution_527817601_528076801_4FGL_J2331.0-2147_daily_bin1113.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=352.763 yref=-21.7953 axisrot=0.0 rafield="RA" decfield="DEC" proj="AIT" hpx_ordering_scheme="RING" hpx_order=3 hpx_ebin=yes hpx_region="" evtable="EVENTS" sctable="SC_DATA" efield="ENERGY" tfield="TIME" chatter=2 clobber=yes debug=no gui=no mode="ql"

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

This is gtbin version HEAD
real 0.54
user 0.37
sys 0.16

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/7650/ft1_filtered_4FGL_J2331.0-2147_daily_bin1113.fits evtable="EVENTS" scfile=/scratch/kocevski/7650/ft2_4FGL_J2331.0-2147_daily_bin1113.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/7650/Model_4FGL_J2331.0-2147_daily_bin1113.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/7650/ft1_filtered_4FGL_J2331.0-2147_daily_bin1113.fits.....................!
real 36.48
user 35.14
sys 1.19

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/7650/ft1_filtered_4FGL_J2331.0-2147_daily_bin1113.fits', '/scratch/kocevski/7650/ft2_4FGL_J2331.0-2147_daily_bin1113.fits', expMap='/scratch/kocevski/7650/expmap_527817601_528076801_4FGL_J2331.0-2147_daily_bin1113.fits', expCube='/scratch/kocevski/7650/ltcube_527817601_528076801_4FGL_J2331.0-2147_daily_bin1113.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/7650/Model_4FGL_J2331.0-2147_daily_bin1113.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J2331.0-2147'

4FGL J2331.0-2147
   Spectrum: LogParabola
418         norm:  2.017e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-12)
419        alpha:  2.433e+00  0.000e+00  0.000e+00  5.000e+00 ( 1.000e+00) fixed
420         beta:  1.305e-01  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
421           Eb:  9.116e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/7650/ft1_filtered_4FGL_J2331.0-2147_daily_bin1113.fits
Spacecraft file(s): /scratch/kocevski/7650/ft2_4FGL_J2331.0-2147_daily_bin1113.fits
Exposure map: /scratch/kocevski/7650/expmap_527817601_528076801_4FGL_J2331.0-2147_daily_bin1113.fits
Exposure cube: /scratch/kocevski/7650/ltcube_527817601_528076801_4FGL_J2331.0-2147_daily_bin1113.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/7650/Model_4FGL_J2331.0-2147_daily_bin1113.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) = 3956.51226966

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10231E-03   1.0000         .10000E-03   10000.    
     2 'norm      '    5.2111       1.0000         .10000E-03   10000.    
     3 'Prefactor '    10.999       1.0000         .10000E-03   10000.    
     4 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    39.613       1.0000         .10000E-03   10000.    
     6 'Prefactor '    5.3293       1.0000         .10000E-03   10000.    
     7 'norm      '    .10006E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10019E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    10.285       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10213E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .71127       1.0000         .10000E-03   10000.    
    12 'norm      '    .10193E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    123.24       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .16216E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    98.772       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10450E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    18 'norm      '    5.5724       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10356E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    6.1635       1.0000         .10000E-03   10000.    
    21 'Normalizat'    1.0763       1.0000         .10000E-01   10.000    
    22 'Prefactor '    .80881       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5370E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   3956.486     FROM MIGRAD    STATUS=CONVERGED    520 CALLS     2450 TOTAL
                     EDM=   .37E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  3.0%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    24.333        .15403E-07** at limit **
   2  norm          5.2167        5.1725        .80462E-06   -.59467E-05
   3  Prefactor     10.946        265.20       -.13339E-04   -.12161E-04
   4  norm          .10000E-03    1.6032       -.16458E-06** at limit **
   5  Prefactor     39.592        30.098       -.17725E-05    .86092E-04
   6  Prefactor     5.3417        16.905        .40409E-05    .15520E-03
   7  norm          .10000E-03    .25510       -.28021E-06** at limit **
   8  Prefactor     .10000E-03    4.7113        .46816E-07** at limit **
   9  Prefactor     10.277        14.147       -.11447E-05    .13763E-04
  10  Prefactor     .10000E-03    11.569        .61480E-07** at limit **
  11  Prefactor     .33480        103.18       -.53043E-05    .13240E-03
  12  norm          .10000E-03    1.9021       -.18198E-06** at limit **
  13  Prefactor     123.31        80.298       -.16790E-06    .33119E-06
  14  Prefactor     .10000E-03    24.083        .59669E-06** at limit **
  15  Prefactor     98.776        50.252       -.32287E-06   -.25044E-04
  16  Prefactor     .10000E-03    94.017       -.15857E-06** at limit **
  17  norm          .10000E-03    .75642        .90365E-07** at limit **
  18  norm          5.5779        6.2449       -.35894E-07   -.11320E-03
  19  Prefactor     .10000E-03    70.623       -.19161E-06** at limit **
  20  Prefactor     6.3021        179.32       -.99195E-06    .20552E-05
  21  Normalizat    1.0769        .24720        .21399E-05    .27238E-04
  22  Prefactor     .80833        .22091       -.25107E-05    .60477E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  norm       = 5.21673
  Prefactor  = 10.9462
  norm       = 0.0001
  Prefactor  = 39.5918
  Prefactor  = 5.3417
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 10.2767
  Prefactor  = 0.0001
  Prefactor  = 0.334801
  norm       = 0.0001
  Prefactor  = 123.308
  Prefactor  = 0.0001
  Prefactor  = 98.776
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 5.57787
  Prefactor  = 0.0001
  Prefactor  = 6.30214
  Normalizat = 1.07692
  Prefactor  = 0.808334
 **********
 **   18 **HESSE 
 **********

 FCN=   3956.486     FROM HESSE     STATUS=OK           348 CALLS     2798 TOTAL
                     EDM=   .13E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    24.368        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          5.2167        5.2568        .97328E-04   -1.5251    
   3  Prefactor     10.946        272.55        .12080E-03   -1.5046    
   4  norm          .10000E-03    1.6055        .77793E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     39.592        29.893        .63686E-04   -1.4449    
   6  Prefactor     5.3417        17.339        .17409E-03   -1.5246    
   7  norm          .10000E-03    .26312        .62091E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    4.7157        .13334E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     10.277        14.089        .12494E-03   -1.5067    
  10  Prefactor     .10000E-03    11.573        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .33480        87.843        .15287       -1.5592    
  12  norm          .10000E-03    1.9096        .84585E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     123.31        80.470        .36256E-04   -1.3482    
  14  Prefactor     .10000E-03    24.111        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     98.776        50.265        .40449E-04   -1.3717    
  16  Prefactor     .10000E-03    94.187        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          .10000E-03    1.5820        .94176E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          5.5779        5.6288        .14124E-03   -1.5236    
  19  Prefactor     .10000E-03    70.858        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     6.3021        180.36        .16171E-03   -1.5206    
  21  Normalizat    1.0769        .27592        .24231E-03   -.90496    
  22  Prefactor     .80833        .24435        .26223E-03   -.99422    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.27997e-09
Minuit parameter uncertainties:
  1  1.64236e-05
  2  5.25723
  3  109.803
  4  4.12841e-06
  5  29.9038
  6  17.3551
  7  2.98511e-06
  8  1.80224e-06
  9  14.0933
  10  4.13549e-06
  11  10.8607
  12  2.77022e-06
  13  80.5411
  14  6.26363e-05
  15  50.2864
  16  3.12459e-05
  17  5.5952e-06
  18  5.62932
  19  3.29864e-06
  20  67.6543
  21  0.276286
  22  0.244683
Done.

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

Extracting fit parameters...

4FGL J2331.0-2147
   Spectrum: LogParabola
418         norm:  1.000e-04  2.770e-06  1.000e-04  1.000e+04 ( 1.000e-12)
419        alpha:  2.433e+00  0.000e+00  0.000e+00  5.000e+00 ( 1.000e+00) fixed
420         beta:  1.305e-01  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
421           Eb:  9.116e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
534    Prefactor:  8.083e-01  2.447e-01  0.000e+00  1.000e+01 ( 1.000e+00)
535        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
536        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
533   Normalization:  1.077e+00  2.763e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): -0.00
Ra Dec: 352.763 -21.795
Photon Flux Upper Limit: 8.89e-08 ph cm-2 s-1
Energy Flux Upper Limit: 2.96e-05 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/7650/likelihoodResults_527817601_528076801_4FGL_J2331.0-2147_daily_bin1113.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) = 3956.48830755
delta logL = -0.00247158244474

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 3956.48583602
delta logL = -5.19989953318e-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.4299       1.0000          .0000       5.0000    
     3 'Normalizat'    1.0769       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .80836       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5370E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   3956.486     FROM MIGRAD    STATUS=CONVERGED     49 CALLS      192 TOTAL
                     EDM=   .65E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    1.8981        .90712E-02** at limit **
   2  alpha         2.4269        3.5347        .41172        .80063E-05
   3  Normalizat    1.0769        .21822        .39027E-01    .90685E-05
   4  Prefactor     .80833        .20857        .43826E-01    .14750E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  alpha      = 2.42692
  Normalizat = 1.07692
  Prefactor  = 0.808333
 **********
 **   18 **HESSE 
 **********

 FCN=   3956.486     FROM HESSE     STATUS=OK            33 CALLS      225 TOTAL
                     EDM=   .64E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    1.9101        .84622E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  alpha         2.4269        3.5347        .50000       -.29235E-01
   3  Normalizat    1.0769        .25028        .24230E-03   -.90496    
   4  Prefactor     .80833        .23915        .26223E-03   -.99422    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 6.39902e-11
Minuit parameter uncertainties:
  1  1.12454e-06
  2  2.4993
  3  0.25056
  4  0.239459
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/7650': 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) = 3956.48583595
delta logL = 1.94318090507e-08

Extracting fit parameters...

4FGL J2331.0-2147
   Spectrum: LogParabola
418         norm:  1.000e-04  1.125e-06  1.000e-04  1.000e+04 ( 1.000e-12)
419        alpha:  2.427e+00  2.499e+00  0.000e+00  5.000e+00 ( 1.000e+00)
420         beta:  1.305e-01  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
421           Eb:  9.116e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
534    Prefactor:  8.083e-01  2.395e-01  0.000e+00  1.000e+01 ( 1.000e+00)
535        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
536        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
533   Normalization:  1.077e+00  2.506e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
Ra Dec: 352.763 -21.795

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/7650/cmap_HighResolution_527817601_528076801_4FGL_J2331.0-2147_daily_bin1113.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='2.96e-05', job_status='DONE', photon_flux_upper_limit='8.89e-08', time_completed='2021-09-29 23:06:24.260471', job_id='7650', GAL2='0.81', fit_tolerance='1e-08', EG2='1.08', EG='1.08', time_epoch_completed='1632981984.26', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.81', dlogl='1.94e-08', ts2='-0.00', photon_index_error='0.00', photon_index='2.43' WHERE bin_id='1113' AND source_name='4FGL J2331.0-2147' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep 29 23:06:24 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0047>
Subject: Job 7650: <4FGL_J2331.0-2147_daily_bin1113> in cluster <slac> Done

Job <4FGL_J2331.0-2147_daily_bin1113> was submitted from host <rhel6-64d> by user <kocevski> in cluster <slac> at Wed Sep 29 22:55:52 2021
Job was executed on host(s) <bullet0047>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Sep 29 22:55:54 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Wed Sep 29 22:55:54 2021
Terminated at Wed Sep 29 23:06:24 2021
Results reported at Wed Sep 29 23:06:24 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2331.0-2147_daily_bin1113 352.763 -21.7953 527817601 528076801 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J2331.0-2147 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   495.57 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             331.15 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   630 sec.
    Turnaround time :                            632 sec.

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

