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


Performing analysis on: 4FGL_J2331.0-2147_daily_bin1131
RA = 352.763, Dec = -21.7953
tmin = 532483201, tmax = 532742401
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='7679', job_status='RUN', time_executed='2021-09-29 22:58:21.531960', time_epoch_executed='1632981501.53' WHERE source_name='4FGL J2331.0-2147' and cadence='daily' and bin_id='1131'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/7679

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/7679/ft1_4FGL_J2331.0-2147_daily_bin1131.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/7679/ft2_4FGL_J2331.0-2147_daily_bin1131.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/7679/ft1_4FGL_J2331.0-2147_daily_bin1131.fits outfile=/scratch/kocevski/7679/ft1_filteredMKT_4FGL_J2331.0-2147_daily_bin1131.fits ra=352.763 dec=-21.7953 rad=12.0 tmin=532483201.0 tmax=532742401.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.49
user 3.25
sys 0.20

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/7679/ft2_4FGL_J2331.0-2147_daily_bin1131.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/7679/ft1_filteredMKT_4FGL_J2331.0-2147_daily_bin1131.fits evtable="EVENTS" outfile="/scratch/kocevski/7679/ft1_filtered_4FGL_J2331.0-2147_daily_bin1131.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.54
user 0.32
sys 0.15

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/7679/ft1_filtered_4FGL_J2331.0-2147_daily_bin1131.fits" evtable="EVENTS" scfile=/scratch/kocevski/7679/ft2_4FGL_J2331.0-2147_daily_bin1131.fits sctable="SC_DATA" outfile=/scratch/kocevski/7679/ltcube_532483201_532742401_4FGL_J2331.0-2147_daily_bin1131.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/7679/ft2_4FGL_J2331.0-2147_daily_bin1131.fits
.....................!
real 12.10
user 11.71
sys 0.36

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/7679/ft1_filtered_4FGL_J2331.0-2147_daily_bin1131.fits evtable="EVENTS" scfile=/scratch/kocevski/7679/ft2_4FGL_J2331.0-2147_daily_bin1131.fits sctable="SC_DATA" expcube=/scratch/kocevski/7679/ltcube_532483201_532742401_4FGL_J2331.0-2147_daily_bin1131.fits outfile=/scratch/kocevski/7679/expmap_532483201_532742401_4FGL_J2331.0-2147_daily_bin1131.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/7679/ltcube_532483201_532742401_4FGL_J2331.0-2147_daily_bin1131.fits
.....................!
real 190.37
user 185.09
sys 4.72

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/7679/ft1_filtered_4FGL_J2331.0-2147_daily_bin1131.fits scfile=/scratch/kocevski/7679/ft2_4FGL_J2331.0-2147_daily_bin1131.fits outfile=/scratch/kocevski/7679/cmap_532483201_532742401_4FGL_J2331.0-2147_daily_bin1131.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.52
user 0.37
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/7679/ft1_filtered_4FGL_J2331.0-2147_daily_bin1131.fits scfile=/scratch/kocevski/7679/ft2_4FGL_J2331.0-2147_daily_bin1131.fits outfile=/scratch/kocevski/7679/cmap_HighResolution_532483201_532742401_4FGL_J2331.0-2147_daily_bin1131.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/7679/ft1_filtered_4FGL_J2331.0-2147_daily_bin1131.fits evtable="EVENTS" scfile=/scratch/kocevski/7679/ft2_4FGL_J2331.0-2147_daily_bin1131.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/7679/Model_4FGL_J2331.0-2147_daily_bin1131.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/7679/ft1_filtered_4FGL_J2331.0-2147_daily_bin1131.fits.....................!
real 42.94
user 41.59
sys 1.20

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .39365E-03   1.0000         .10000E-03   10000.    
     2 'norm      '    1.9793       1.0000         .10000E-03   10000.    
     3 'Prefactor '    26.104       1.0000         .10000E-03   10000.    
     4 'norm      '    1.3985       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10040E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    30.945       1.0000         .10000E-03   10000.    
     7 'norm      '    5.5593       1.0000         .10000E-03   10000.    
     8 'Prefactor '    7.7637       1.0000         .10000E-03   10000.    
     9 'Prefactor '    1.4924       1.0000         .10000E-03   10000.    
    10 'Prefactor '    6.6224       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10629E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    1.1175       1.0000         .10000E-03   10000.    
    13 'Prefactor '    25.458       1.0000         .10000E-03   10000.    
    14 'Prefactor '    21.106       1.0000         .10000E-03   10000.    
    15 'Prefactor '    4.6938       1.0000         .10000E-03   10000.    
    16 'Prefactor '    30.960       1.0000         .10000E-03   10000.    
    17 'norm      '    .10026E-03   1.0000         .10000E-03   10000.    
    18 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    26.649       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .17925E-03   1.0000         .10000E-03   10000.    
    21 'Normalizat'    1.3460       1.0000         .10000E-01   10.000    
    22 'Prefactor '    .90617       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=   4735.696     FROM MIGRAD    STATUS=CONVERGED    458 CALLS     2388 TOTAL
                     EDM=   .10E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.7%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    117.29       -.10540E-05** at limit **
   2  norm          1.9800        3.2213        .38759E-05   -.31517E-03
   3  Prefactor     26.124        80.166       -.79161E-05   -.28154E-04
   4  norm          1.3985        4.3821        .11006E-05   -.75907E-04
   5  Prefactor     .10000E-03    8.4003        .32549E-07** at limit **
   6  Prefactor     30.952        27.864       -.22426E-05   -.44582E-03
   7  norm          5.5587        1.7479       -.21501E-06   -.16103E-02
   8  Prefactor     7.7581        21.414        .12577E-05   -.26742E-04
   9  Prefactor     1.4873        101.03        .16602E-04    .22894E-04
  10  Prefactor     6.6116        25.674        .70956E-06   -.25274E-04
  11  Prefactor     .10000E-03    28.516       -.66292E-07** at limit **
  12  norm          1.1170        3.8287        .41271E-05    .56577E-04
  13  Prefactor     25.724        148.93       -.13925E-04    .32149E-04
  14  Prefactor     21.033        46.073        .59122E-05   -.83201E-04
  15  Prefactor     4.7212        92.459       -.78635E-05   -.39285E-04
  16  Prefactor     30.867        62.891       -.43666E-06   -.96754E-04
  17  norm          .10000E-03    .26759        .96483E-07** at limit **
  18  norm          .10000E-03    2.7115        .40624E-06** at limit **
  19  Prefactor     26.653        65.152        .21291E-05   -.10946E-04
  20  Prefactor     .10000E-03    45.603        .35857E-07** at limit **
  21  Normalizat    1.3450        .25000       -.64987E-05    .23915E-06
  22  Prefactor     .90702        .22616        .43040E-05   -.40135E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  norm       = 1.97996
  Prefactor  = 26.1244
  norm       = 1.39849
  Prefactor  = 0.0001
  Prefactor  = 30.9525
  norm       = 5.55873
  Prefactor  = 7.75812
  Prefactor  = 1.48732
  Prefactor  = 6.61157
  Prefactor  = 0.0001
  norm       = 1.117
  Prefactor  = 25.7236
  Prefactor  = 21.0333
  Prefactor  = 4.72119
  Prefactor  = 30.8674
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 26.6535
  Prefactor  = 0.0001
  Normalizat = 1.34501
  Prefactor  = 0.907025
 **********
 **   18 **HESSE 
 **********

 FCN=   4735.696     FROM HESSE     STATUS=OK           344 CALLS     2732 TOTAL
                     EDM=   .25E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    118.47        .21271E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          1.9800        3.1609        .71332E-03   -1.5427    
   3  Prefactor     26.124        79.759        .78407E-04   -1.4685    
   4  norm          1.3985        4.3157        .24195E-03   -1.5471    
   5  Prefactor     .10000E-03    8.4015        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     30.952        27.369        .72027E-04   -1.4595    
   7  norm          5.5587        1.7870        .38255E-04   -1.5236    
   8  Prefactor     7.7581        21.407        .14391E-03   -1.5151    
   9  Prefactor     1.4873        89.259        .35085E-03   -1.5464    
  10  Prefactor     6.6116        25.667        .15594E-03   -1.5194    
  11  Prefactor     .10000E-03    28.534        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          1.1170        3.7446        .22549E-03   -1.5497    
  13  Prefactor     25.724        142.46        .79394E-04   -1.4693    
  14  Prefactor     21.033        45.243        .87184E-04   -1.4790    
  15  Prefactor     4.7212        89.798        .18574E-03   -1.5273    
  16  Prefactor     30.867        62.752        .36005E-03   -1.4596    
  17  norm          .10000E-03    .34329        .68675E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          .10000E-03    2.7301        .11058E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     26.653        65.231        .77603E-04   -1.4675    
  20  Prefactor     .10000E-03    45.646        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Normalizat    1.3450        .29659        .25868E-03   -.82233    
  22  Prefactor     .90702        .26905        .29326E-03   -.95896    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.47458e-09
Minuit parameter uncertainties:
  1  0.000432321
  2  3.16119
  3  80.0872
  4  4.31667
  5  2.55085e-06
  6  27.3802
  7  1.78699
  8  21.4278
  9  23.0794
  10  25.7098
  11  6.21186e-06
  12  3.74541
  13  121.518
  14  45.3169
  15  41.2515
  16  62.8867
  17  6.41761e-07
  18  5.20389e-06
  19  65.4063
  20  0.000132035
  21  0.296967
  22  0.269446
Done.

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

Extracting fit parameters...

4FGL J2331.0-2147
   Spectrum: LogParabola
418         norm:  1.117e+00  3.745e+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

GAL_V02
   Spectrum: PowerLaw
534    Prefactor:  9.070e-01  2.694e-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.345e+00  2.970e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 0.12
Ra Dec: 352.763 -21.795
Photon Flux Upper Limit: 1.17e-07 ph cm-2 s-1
Energy Flux Upper Limit: 3.89e-05 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/7679/likelihoodResults_532483201_532742401_4FGL_J2331.0-2147_daily_bin1131.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) = 4735.67038966
delta logL = 0.0252846172016

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 4735.66983448
delta logL = 0.0258397909347

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    1.1172       1.0000         .10000E-03   10000.    
     2 'alpha     '    1.7417       1.0000          .0000       5.0000    
     3 'Normalizat'    1.3538       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .90223       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=   4735.670     FROM MIGRAD    STATUS=CONVERGED     56 CALLS      210 TOTAL
                     EDM=   .11E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          1.1350        3.5021        .11129E-01    .48664E-03
   2  alpha         1.7411        1.6926        .43844       -.30249E-04
   3  Normalizat    1.3541        .22908        .58330E-01    .47653E-05
   4  Prefactor     .90197        .21880        .66454E-01    .12743E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 1.13495
  alpha      = 1.74113
  Normalizat = 1.35408
  Prefactor  = 0.901967
 **********
 **   18 **HESSE 
 **********

 FCN=   4735.670     FROM HESSE     STATUS=OK            33 CALLS      243 TOTAL
                     EDM=   .15E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          1.1350        3.3327        .20551E-03   -1.5495    
   2  alpha         1.7411        1.8907        .49243E-01   -.30841    
   3  Normalizat    1.3541        .27583        .25794E-03   -.81966    
   4  Prefactor     .90197        .26381        .29395E-03   -.96072    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.5375e-08
Minuit parameter uncertainties:
  1  3.33326
  2  2.18416
  3  0.276136
  4  0.264184
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/7679': 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) = 4735.66981807
delta logL = 0.0258562017989

Extracting fit parameters...

4FGL J2331.0-2147
   Spectrum: LogParabola
418         norm:  1.135e+00  3.333e+00  1.000e-04  1.000e+04 ( 1.000e-12)
419        alpha:  1.741e+00  2.184e+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.020e-01  2.642e-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.354e+00  2.761e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 0.12
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/7679/cmap_HighResolution_532483201_532742401_4FGL_J2331.0-2147_daily_bin1131.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='3.89e-05', job_status='DONE', photon_flux_upper_limit='1.17e-07', time_completed='2021-09-29 23:07:26.137268', job_id='7679', GAL2='0.90', fit_tolerance='1e-08', EG2='1.35', EG='1.35', time_epoch_completed='1632982046.14', return_code2='0', ts='0.12', comment='SUCCESS', return_code='0', GAL='0.91', dlogl='2.59e-02', ts2='0.17', photon_index_error='0.00', photon_index='2.43' WHERE bin_id='1131' AND source_name='4FGL J2331.0-2147' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep 29 23:07:26 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0241>
Subject: Job 7679: <4FGL_J2331.0-2147_daily_bin1131> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2331.0-2147_daily_bin1131 352.763 -21.7953 532483201 532742401 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 :                                   536.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             246.91 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   690 sec.
    Turnaround time :                            691 sec.

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

