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


Performing analysis on: 4FGL_J2331.0-2147_daily_bin1050
RA = 352.763, Dec = -21.7953
tmin = 511488001, tmax = 511747201
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='7550', job_status='RUN', time_executed='2021-09-29 22:56:01.682681', time_epoch_executed='1632981361.68' WHERE source_name='4FGL J2331.0-2147' and cadence='daily' and bin_id='1050'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/7550

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/7550/ft1_4FGL_J2331.0-2147_daily_bin1050.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/7550/ft2_4FGL_J2331.0-2147_daily_bin1050.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/7550/ft1_4FGL_J2331.0-2147_daily_bin1050.fits outfile=/scratch/kocevski/7550/ft1_filteredMKT_4FGL_J2331.0-2147_daily_bin1050.fits ra=352.763 dec=-21.7953 rad=12.0 tmin=511488001.0 tmax=511747201.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.51
user 3.29
sys 0.19

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/7550/ft2_4FGL_J2331.0-2147_daily_bin1050.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/7550/ft1_filteredMKT_4FGL_J2331.0-2147_daily_bin1050.fits evtable="EVENTS" outfile="/scratch/kocevski/7550/ft1_filtered_4FGL_J2331.0-2147_daily_bin1050.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.59
user 0.35
sys 0.13

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/7550/ft1_filtered_4FGL_J2331.0-2147_daily_bin1050.fits" evtable="EVENTS" scfile=/scratch/kocevski/7550/ft2_4FGL_J2331.0-2147_daily_bin1050.fits sctable="SC_DATA" outfile=/scratch/kocevski/7550/ltcube_511488001_511747201_4FGL_J2331.0-2147_daily_bin1050.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/7550/ft2_4FGL_J2331.0-2147_daily_bin1050.fits
.....................!
real 11.60
user 11.18
sys 0.35

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/7550/ft1_filtered_4FGL_J2331.0-2147_daily_bin1050.fits evtable="EVENTS" scfile=/scratch/kocevski/7550/ft2_4FGL_J2331.0-2147_daily_bin1050.fits sctable="SC_DATA" expcube=/scratch/kocevski/7550/ltcube_511488001_511747201_4FGL_J2331.0-2147_daily_bin1050.fits outfile=/scratch/kocevski/7550/expmap_511488001_511747201_4FGL_J2331.0-2147_daily_bin1050.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/7550/ltcube_511488001_511747201_4FGL_J2331.0-2147_daily_bin1050.fits
.....................!
real 191.08
user 186.33
sys 4.33

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/7550/ft1_filtered_4FGL_J2331.0-2147_daily_bin1050.fits scfile=/scratch/kocevski/7550/ft2_4FGL_J2331.0-2147_daily_bin1050.fits outfile=/scratch/kocevski/7550/cmap_511488001_511747201_4FGL_J2331.0-2147_daily_bin1050.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.54
user 0.37
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/7550/ft1_filtered_4FGL_J2331.0-2147_daily_bin1050.fits scfile=/scratch/kocevski/7550/ft2_4FGL_J2331.0-2147_daily_bin1050.fits outfile=/scratch/kocevski/7550/cmap_HighResolution_511488001_511747201_4FGL_J2331.0-2147_daily_bin1050.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/7550/ft1_filtered_4FGL_J2331.0-2147_daily_bin1050.fits evtable="EVENTS" scfile=/scratch/kocevski/7550/ft2_4FGL_J2331.0-2147_daily_bin1050.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/7550/Model_4FGL_J2331.0-2147_daily_bin1050.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/7550/ft1_filtered_4FGL_J2331.0-2147_daily_bin1050.fits.....................!
real 52.03
user 50.70
sys 1.18

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/7550/ft1_filtered_4FGL_J2331.0-2147_daily_bin1050.fits', '/scratch/kocevski/7550/ft2_4FGL_J2331.0-2147_daily_bin1050.fits', expMap='/scratch/kocevski/7550/expmap_511488001_511747201_4FGL_J2331.0-2147_daily_bin1050.fits', expCube='/scratch/kocevski/7550/ltcube_511488001_511747201_4FGL_J2331.0-2147_daily_bin1050.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/7550/Model_4FGL_J2331.0-2147_daily_bin1050.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/7550/ft1_filtered_4FGL_J2331.0-2147_daily_bin1050.fits
Spacecraft file(s): /scratch/kocevski/7550/ft2_4FGL_J2331.0-2147_daily_bin1050.fits
Exposure map: /scratch/kocevski/7550/expmap_511488001_511747201_4FGL_J2331.0-2147_daily_bin1050.fits
Exposure cube: /scratch/kocevski/7550/ltcube_511488001_511747201_4FGL_J2331.0-2147_daily_bin1050.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/7550/Model_4FGL_J2331.0-2147_daily_bin1050.xml
Optimizer: MINUIT
Statistic: UNBINNED

Performing an iterative likelihood fit...

Fit tolerance = 1

Performing likelihood fit...
Done.

MINUIT Return Code (Fixed Index): 102
logL (Fixed Index) = 6695.78381528

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10568E-03   1.0000         .10000E-03   10000.    
     2 'norm      '    .39991E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    30.761       1.0000         .10000E-03   10000.    
     4 'norm      '    4.0180       1.0000         .10000E-03   10000.    
     5 'Prefactor '    14.944       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .37383       1.0000         .10000E-03   10000.    
     7 'norm      '    .10013E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    13.304       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .15981E-01   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    .10013E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    30.067       1.0000         .10000E-03   10000.    
    14 'Prefactor '    2.1053       1.0000         .10000E-03   10000.    
    15 'Prefactor '    35.627       1.0000         .10000E-03   10000.    
    16 'Prefactor '    112.33       1.0000         .10000E-03   10000.    
    17 'norm      '    1.9676       1.0000         .10000E-03   10000.    
    18 'norm      '    3.1119       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10019E-03   1.0000         .10000E-03   10000.    
    21 'Normalizat'    .73429       1.0000         .10000E-01   10.000    
    22 'Prefactor '    .98423       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.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   6695.762     FROM MIGRAD    STATUS=CONVERGED    876 CALLS     3237 TOTAL
                     EDM=   .63E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    92.022        .36285E-03** at limit **
   2  norm          .10000E-03    12.227        .15440E-02** at limit **
   3  Prefactor     30.706        34.435        .72241E-04   -.97035E-04
   4  norm          4.0159        3.8248        .13924E-03   -.27776E-03
   5  Prefactor     14.931        12.047        .10361E-03   -.25292E-03
   6  Prefactor     .39399        27.648        .24533E-02   -.16546E-03
   7  norm          .10000E-03    .26916        .63138E-03** at limit **
   8  Prefactor     13.303        9.4160        .54908E-03   -.35343E-04
   9  Prefactor     .10000E-03    4.0596        .15999E-02** at limit **
  10  Prefactor     .10024E-03    15.636        .94240E-01** at limit **
  11  Prefactor     .10000E-03    8.1588        .18142E-02** at limit **
  12  norm          .10000E-03    .67017        .65161E-03** at limit **
  13  Prefactor     30.117        82.231        .73069E-04    .87286E-04
  14  Prefactor     2.0614        102.01        .28438E-03   -.86352E-05
  15  Prefactor     35.632        22.877        .67141E-04   -.41823E-04
  16  Prefactor     112.32        86.720        .37955E-04   -.49602E-04
  17  norm          1.9676        .64431        .32515E-04   -.89859E-04
  18  norm          3.1121        3.4151        .69290E-03   -.42105E-03
  19  Prefactor     .10000E-03    24.777        .18142E-02** at limit **
  20  Prefactor     .10000E-03    52.459        .18142E-02** at limit **
  21  Normalizat    .73388        .18042        .24231E-03   -.12396E-03
  22  Prefactor     .98465        .18087        .22113E-03   -.28180E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 30.7058
  norm       = 4.01591
  Prefactor  = 14.9314
  Prefactor  = 0.393986
  norm       = 0.0001
  Prefactor  = 13.3028
  Prefactor  = 0.0001
  Prefactor  = 0.000100243
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 30.1166
  Prefactor  = 2.06145
  Prefactor  = 35.6316
  Prefactor  = 112.323
  norm       = 1.96756
  norm       = 3.1121
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Normalizat = 0.733883
  Prefactor  = 0.984654
 **********
 **   18 **HESSE 
 **********

 FCN=   6695.762     FROM HESSE     STATUS=OK           332 CALLS     3569 TOTAL
                     EDM=   .80E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    92.027        .72569E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          .10000E-03    12.427        .61762E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     30.706        34.143        .14448E-04   -1.4599    
   4  norm          4.0159        3.7962        .55698E-05   -1.5307    
   5  Prefactor     14.931        11.589        .20722E-04   -1.4935    
   6  Prefactor     .39399        24.733        .98134E-04   -1.5582    
   7  norm          .10000E-03    .26927        .12628E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     13.303        9.4154        .21963E-04   -1.4978    
   9  Prefactor     .10000E-03    4.0608        .31999E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10024E-03    14.533        .10015       -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    8.1589        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          .10000E-03    .67019        .13032E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     30.117        81.129        .14614E-04   -1.4610    
  14  Prefactor     2.0614        99.204        .11375E-04   -1.5421    
  15  Prefactor     35.632        22.873        .26856E-05   -1.4513    
  16  Prefactor     112.32        86.715        .75911E-05   -1.3584    
  17  norm          1.9676        .64408        .13006E-05   -1.5427    
  18  norm          3.1121        3.4133        .27716E-04   -1.5355    
  19  Prefactor     .10000E-03    24.779        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    52.504        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Normalizat    .73388        .17978        .96922E-05   -1.0257    
  22  Prefactor     .98465        .18071        .44226E-04   -.93243    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 7.98593e-10
Minuit parameter uncertainties:
  1  0.000151286
  2  7.39543e-06
  3  34.1642
  4  3.79644
  5  11.591
  6  6.24513
  7  2.49292e-07
  8  9.41642
  9  4.36993e-06
  10  0.00376143
  11  3.22127e-06
  12  5.57533e-07
  13  81.4288
  14  28.6508
  15  22.8788
  16  86.8128
  17  0.644083
  18  3.41356
  19  1.90521e-05
  20  9.1681e-05
  21  0.179922
  22  0.180822
Done.

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

Extracting fit parameters...

4FGL J2331.0-2147
   Spectrum: LogParabola
418         norm:  1.000e-04  5.575e-07  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:  9.847e-01  1.808e-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:  7.339e-01  1.799e-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: 3.64e-08 ph cm-2 s-1
Energy Flux Upper Limit: 1.21e-05 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/7550/likelihoodResults_511488001_511747201_4FGL_J2331.0-2147_daily_bin1050.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) = 6695.76893158
delta logL = -0.00697976358515

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6695.76195172
delta logL = 9.59780663834e-08

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     2 'alpha     '    2.4274       1.0000          .0000       5.0000    
     3 'Normalizat'    .73388       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .98466       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=   6695.762     FROM MIGRAD    STATUS=CONVERGED     45 CALLS      189 TOTAL
                     EDM=   .18E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    .67459        .90712E-02** at limit **
   2  alpha         2.4216        3.5369        .41174        .42436E-04
   3  Normalizat    .73388        .14238        .42741E-01    .80000E-04
   4  Prefactor     .98466        .14949        .46075E-01    .98977E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  alpha      = 2.42163
  Normalizat = 0.733882
  Prefactor  = 0.984656
 **********
 **   18 **HESSE 
 **********

 FCN=   6695.762     FROM HESSE     STATUS=OK            33 CALLS      222 TOTAL
                     EDM=   .18E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    .67209        .65254E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  alpha         2.4216        3.5335        .50000       -.31353E-01
   3  Normalizat    .73388        .16746        .24231E-03   -1.0257    
   4  Prefactor     .98466        .17587        .22113E-03   -.93243    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.81888e-09
Minuit parameter uncertainties:
  1  3.63879e-06
  2  2.49944
  3  0.167575
  4  0.175977
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/7550': 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) = 6695.76195163
delta logL = 1.93840605789e-07

Extracting fit parameters...

4FGL J2331.0-2147
   Spectrum: LogParabola
418         norm:  1.000e-04  3.639e-06  1.000e-04  1.000e+04 ( 1.000e-12)
419        alpha:  2.422e+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:  9.847e-01  1.760e-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:  7.339e-01  1.676e-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 -2.500e-04 [aplpy.core]
INFO: Auto-setting vmax to  2.775e-03 [aplpy.core]
Saving /scratch/kocevski/7550/cmap_HighResolution_511488001_511747201_4FGL_J2331.0-2147_daily_bin1050.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.21e-05', job_status='DONE', photon_flux_upper_limit='3.64e-08', time_completed='2021-09-29 23:07:49.109626', job_id='7550', GAL2='0.98', fit_tolerance='1e-08', EG2='0.73', EG='0.73', time_epoch_completed='1632982069.11', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.98', dlogl='1.94e-07', ts2='-0.00', photon_index_error='0.00', photon_index='2.43' WHERE bin_id='1050' AND source_name='4FGL J2331.0-2147' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep 29 23:07:49 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0258>
Subject: Job 7550: <4FGL_J2331.0-2147_daily_bin1050> in cluster <slac> Done

Job <4FGL_J2331.0-2147_daily_bin1050> was submitted from host <rhel6-64d> by user <kocevski> in cluster <slac> at Wed Sep 29 22:55:41 2021
Job was executed on host(s) <bullet0258>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Sep 29 22:55:42 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:42 2021
Terminated at Wed Sep 29 23:07:49 2021
Results reported at Wed Sep 29 23:07:49 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2331.0-2147_daily_bin1050 352.763 -21.7953 511488001 511747201 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 :                                   702.37 sec.
    Max Memory :                                 1109 MB
    Average Memory :                             301.21 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   727 sec.
    Turnaround time :                            728 sec.

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

