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


Performing analysis on: 4FGL_J2331.0-2147_daily_bin1644
RA = 352.763, Dec = -21.7953
tmin = 665452801, tmax = 665712001
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='576001', job_status='RUN', time_executed='2022-02-05 00:55:59.703780', time_epoch_executed='1644051359.7' WHERE source_name='4FGL J2331.0-2147' and cadence='daily' and bin_id='1644'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/576001

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/576001/ft1_4FGL_J2331.0-2147_daily_bin1644.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/576001/ft2_4FGL_J2331.0-2147_daily_bin1644.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/576001/ft1_4FGL_J2331.0-2147_daily_bin1644.fits outfile=/scratch/kocevski/576001/ft1_filteredMKT_4FGL_J2331.0-2147_daily_bin1644.fits ra=352.763 dec=-21.7953 rad=12.0 tmin=665452801.0 tmax=665712001.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.08
user 2.82
sys 0.20

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/576001/ft2_4FGL_J2331.0-2147_daily_bin1644.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/576001/ft1_filteredMKT_4FGL_J2331.0-2147_daily_bin1644.fits evtable="EVENTS" outfile="/scratch/kocevski/576001/ft1_filtered_4FGL_J2331.0-2147_daily_bin1644.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.45
user 0.29
sys 0.14

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/576001/ft1_filtered_4FGL_J2331.0-2147_daily_bin1644.fits" evtable="EVENTS" scfile=/scratch/kocevski/576001/ft2_4FGL_J2331.0-2147_daily_bin1644.fits sctable="SC_DATA" outfile=/scratch/kocevski/576001/ltcube_665452801_665712001_4FGL_J2331.0-2147_daily_bin1644.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/576001/ft2_4FGL_J2331.0-2147_daily_bin1644.fits
.....................!
real 9.96
user 9.66
sys 0.28

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/576001/ft1_filtered_4FGL_J2331.0-2147_daily_bin1644.fits evtable="EVENTS" scfile=/scratch/kocevski/576001/ft2_4FGL_J2331.0-2147_daily_bin1644.fits sctable="SC_DATA" expcube=/scratch/kocevski/576001/ltcube_665452801_665712001_4FGL_J2331.0-2147_daily_bin1644.fits outfile=/scratch/kocevski/576001/expmap_665452801_665712001_4FGL_J2331.0-2147_daily_bin1644.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/576001/ltcube_665452801_665712001_4FGL_J2331.0-2147_daily_bin1644.fits
.....................!
real 155.35
user 151.09
sys 3.93

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/576001/ft1_filtered_4FGL_J2331.0-2147_daily_bin1644.fits scfile=/scratch/kocevski/576001/ft2_4FGL_J2331.0-2147_daily_bin1644.fits outfile=/scratch/kocevski/576001/cmap_665452801_665712001_4FGL_J2331.0-2147_daily_bin1644.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.46
user 0.32
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/576001/ft1_filtered_4FGL_J2331.0-2147_daily_bin1644.fits scfile=/scratch/kocevski/576001/ft2_4FGL_J2331.0-2147_daily_bin1644.fits outfile=/scratch/kocevski/576001/cmap_HighResolution_665452801_665712001_4FGL_J2331.0-2147_daily_bin1644.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.47
user 0.33
sys 0.14

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/576001/ft1_filtered_4FGL_J2331.0-2147_daily_bin1644.fits evtable="EVENTS" scfile=/scratch/kocevski/576001/ft2_4FGL_J2331.0-2147_daily_bin1644.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/576001/Model_4FGL_J2331.0-2147_daily_bin1644.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/576001/ft1_filtered_4FGL_J2331.0-2147_daily_bin1644.fits.....................!
real 36.52
user 35.43
sys 1.01

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/576001/ft1_filtered_4FGL_J2331.0-2147_daily_bin1644.fits', '/scratch/kocevski/576001/ft2_4FGL_J2331.0-2147_daily_bin1644.fits', expMap='/scratch/kocevski/576001/expmap_665452801_665712001_4FGL_J2331.0-2147_daily_bin1644.fits', expCube='/scratch/kocevski/576001/ltcube_665452801_665712001_4FGL_J2331.0-2147_daily_bin1644.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/576001/Model_4FGL_J2331.0-2147_daily_bin1644.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/576001/ft1_filtered_4FGL_J2331.0-2147_daily_bin1644.fits
Spacecraft file(s): /scratch/kocevski/576001/ft2_4FGL_J2331.0-2147_daily_bin1644.fits
Exposure map: /scratch/kocevski/576001/expmap_665452801_665712001_4FGL_J2331.0-2147_daily_bin1644.fits
Exposure cube: /scratch/kocevski/576001/ltcube_665452801_665712001_4FGL_J2331.0-2147_daily_bin1644.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/576001/Model_4FGL_J2331.0-2147_daily_bin1644.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) = 5157.77844544

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10004E-03   1.0000         .10000E-03   10000.    
     2 'norm      '    .13653E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    17.152       1.0000         .10000E-03   10000.    
     4 'norm      '    .10011E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10120E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    10.927       1.0000         .10000E-03   10000.    
     7 'norm      '    .99325       1.0000         .10000E-03   10000.    
     8 'Prefactor '    13.716       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10008E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    10.531       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    .10092E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    4.9083       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    16.100       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    .46082       1.0000         .10000E-03   10000.    
    18 'norm      '    .23183E-02   1.0000         .10000E-03   10000.    
    19 'Prefactor '    9.6944       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10017E-03   1.0000         .10000E-03   10000.    
    21 'Normalizat'    1.0863       1.0000         .10000E-01   10.000    
    22 'Prefactor '    1.0327       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=   5157.756     FROM MIGRAD    STATUS=CONVERGED    477 CALLS     2360 TOTAL
                     EDM=   .12E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .4%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    19.280        .30730E-06** at limit **
   2  norm          .10000E-03    4.4005       -.91882E-05** at limit **
   3  Prefactor     17.025        71.521        .51244E-05    .48618E-04
   4  norm          .10000E-03    3.4647       -.10842E-05** at limit **
   5  Prefactor     .10000E-03    13.159       -.57825E-06** at limit **
   6  Prefactor     10.942        10.966        .13164E-05    .26478E-03
   7  norm          .99163        .80210       -.48944E-06    .91922E-03
   8  Prefactor     13.715        14.615        .96204E-06    .97883E-05
   9  Prefactor     .10000E-03    4.6334       -.25447E-06** at limit **
  10  Prefactor     10.525        17.401        .74247E-06    .35575E-06
  11  Prefactor     .10000E-03    20.089        .13847E-06** at limit **
  12  norm          .10000E-03    2.0443        .14400E-06** at limit **
  13  Prefactor     4.9065        49.323       -.32390E-06   -.50206E-05
  14  Prefactor     .10000E-03    6.0469        .76721E-07** at limit **
  15  Prefactor     16.096        32.618       -.25437E-06   -.63427E-05
  16  Prefactor     .10000E-03    62.035        .49568E-06** at limit **
  17  norm          .46137        .62774        .47400E-07   -.21557E-03
  18  norm          .10003E-03    2.9837        .12797E-06** at limit **
  19  Prefactor     9.6895        29.880       -.46979E-07   -.10979E-04
  20  Prefactor     .10000E-03    26.434        .92316E-07** at limit **
  21  Normalizat    1.0863        .20432        .35107E-06    .20500E-03
  22  Prefactor     1.0327        .20216       -.50052E-06    .25777E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 17.0252
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 10.9423
  norm       = 0.991634
  Prefactor  = 13.7151
  Prefactor  = 0.0001
  Prefactor  = 10.5246
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 4.90651
  Prefactor  = 0.0001
  Prefactor  = 16.0964
  Prefactor  = 0.0001
  norm       = 0.461372
  norm       = 0.000100025
  Prefactor  = 9.68953
  Prefactor  = 0.0001
  Normalizat = 1.08631
  Prefactor  = 1.03268
 **********
 **   18 **HESSE 
 **********

 FCN=   5157.756     FROM HESSE     STATUS=OK           340 CALLS     2700 TOTAL
                     EDM=   .18E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    19.307        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          .10000E-03    4.4249        .28863E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     17.025        72.258        .96707E-04   -1.4882    
   4  norm          .10000E-03    3.5088        .13021E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    13.174        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     10.942        11.440        .12120E-03   -1.5046    
   7  norm          .99163        .81497        .46207E-04   -1.5509    
   8  Prefactor     13.715        14.610        .54075E-03   -1.4967    
   9  Prefactor     .10000E-03    4.6447        .15089E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     10.525        17.397        .61732E-03   -1.5059    
  11  Prefactor     .10000E-03    20.106        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          .10000E-03    2.0746        .99995E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     4.9065        49.163        .18155E-03   -1.5265    
  14  Prefactor     .10000E-03    6.0532        .17245E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     16.096        32.663        .99817E-04   -1.4905    
  16  Prefactor     .10000E-03    62.135        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          .46137        .51442        .54516E-03   -1.5572    
  18  norm          .10003E-03    34.601        .20489E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     9.6895        29.873        .12870E-03   -1.5085    
  20  Prefactor     .10000E-03    26.459        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Normalizat    1.0863        .23861        .24189E-03   -.90193    
  22  Prefactor     1.0327        .23662        .24828E-03   -.91648    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.84564e-09
Minuit parameter uncertainties:
  1  4.22483e-05
  2  7.15109e-07
  3  70.2933
  4  1.11676e-05
  5  1.60964e-05
  6  11.4423
  7  0.814981
  8  14.6141
  9  4.1712e-06
  10  17.4058
  11  1.54105e-05
  12  7.25234e-07
  13  31.0953
  14  1.24677e-06
  15  32.699
  16  0.000153055
  17  0.514428
  18  0.001879
  19  29.9195
  20  5.3593e-05
  21  0.238843
  22  0.236855
Done.

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

Extracting fit parameters...

4FGL J2331.0-2147
   Spectrum: LogParabola
418         norm:  1.000e-04  7.252e-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:  1.033e+00  2.369e-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.086e+00  2.388e-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: 7.35e-08 ph cm-2 s-1
Energy Flux Upper Limit: 2.44e-05 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/576001/likelihoodResults_665452801_665712001_4FGL_J2331.0-2147_daily_bin1644.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) = 5157.75838985
delta logL = -0.00229299995772

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5157.75609679
delta logL = 6.02221916779e-08

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10008E-03   1.0000         .10000E-03   10000.    
     2 'alpha     '    2.4475       1.0000          .0000       5.0000    
     3 'Normalizat'    1.0863       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0327       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=   5157.756     FROM MIGRAD    STATUS=CONVERGED     47 CALLS      190 TOTAL
                     EDM=   .17E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    2.4904        .90712E-02** at limit **
   2  alpha         2.4624        3.6024        .41163       -.36641E-04
   3  Normalizat    1.0863        .19763        .38585E-01   -.69345E-04
   4  Prefactor     1.0327        .19922        .41051E-01   -.24950E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  alpha      = 2.46236
  Normalizat = 1.08631
  Prefactor  = 1.03268
 **********
 **   18 **HESSE 
 **********

 FCN=   5157.756     FROM HESSE     STATUS=OK            33 CALLS      223 TOTAL
                     EDM=   .14E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    2.1273        .10078E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  alpha         2.4624        3.5458        .50000       -.15055E-01
   3  Normalizat    1.0863        .23060        .24189E-03   -.90193    
   4  Prefactor     1.0327        .23250        .24828E-03   -.91648    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.39548e-09
Minuit parameter uncertainties:
  1  1.20038e-05
  2  2.50999
  3  0.23081
  4  0.232727
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/576001': 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) = 5157.75609643
delta logL = 4.2501687858e-07

Extracting fit parameters...

4FGL J2331.0-2147
   Spectrum: LogParabola
418         norm:  1.000e-04  1.200e-05  1.000e-04  1.000e+04 ( 1.000e-12)
419        alpha:  2.462e+00  2.510e+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:  1.033e+00  2.327e-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.086e+00  2.308e-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/576001/cmap_HighResolution_665452801_665712001_4FGL_J2331.0-2147_daily_bin1644.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='2.44e-05', job_status='DONE', photon_flux_upper_limit='7.35e-08', time_completed='2022-02-05 01:03:29.015321', job_id='576001', GAL2='1.03', fit_tolerance='1e-08', EG2='1.09', EG='1.09', time_epoch_completed='1644051809.02', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.03', dlogl='4.25e-07', ts2='-0.00', photon_index_error='0.00', photon_index='2.43' WHERE bin_id='1644' AND source_name='4FGL J2331.0-2147' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Feb  5 01:03:29 PST 2022


------------------------------------------------------------
Sender: LSF System <lsf@bullet0189>
Subject: Job 576001: <4FGL_J2331.0-2147_daily_bin1644> in cluster <slac> Done

Job <4FGL_J2331.0-2147_daily_bin1644> was submitted from host <rhel6-64n> by user <kocevski> in cluster <slac> at Sat Feb  5 00:55:34 2022
Job was executed on host(s) <bullet0189>, in queue <medium>, as user <kocevski> in cluster <slac> at Sat Feb  5 00:55:45 2022
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Sat Feb  5 00:55:45 2022
Terminated at Sat Feb  5 01:03:29 2022
Results reported at Sat Feb  5 01:03:29 2022

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2331.0-2147_daily_bin1644 352.763 -21.7953 665452801 665712001 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 :                                   451.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             362.41 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   464 sec.
    Turnaround time :                            475 sec.

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

