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


Performing analysis on: 4FGL_J2331.0-2147_daily_bin1095
RA = 352.763, Dec = -21.7953
tmin = 523152001, tmax = 523411201
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='7621', job_status='RUN', time_executed='2021-09-29 22:59:50.020305', time_epoch_executed='1632981590.02' WHERE source_name='4FGL J2331.0-2147' and cadence='daily' and bin_id='1095'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/7621

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/7621/ft1_4FGL_J2331.0-2147_daily_bin1095.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/7621/ft2_4FGL_J2331.0-2147_daily_bin1095.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/7621/ft1_4FGL_J2331.0-2147_daily_bin1095.fits outfile=/scratch/kocevski/7621/ft1_filteredMKT_4FGL_J2331.0-2147_daily_bin1095.fits ra=352.763 dec=-21.7953 rad=12.0 tmin=523152001.0 tmax=523411201.0 emin=100.0 emax=100000.0 zmin=0.0 zmax=90.0 evclass=128 evtype="INDEF" convtype=-1 phasemin=0.0 phasemax=1.0 evtable="EVENTS" chatter=2 clobber=yes debug=no gui=no mode="ql"

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

Done.
real 4.24
user 4.00
sys 0.22

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/7621/ft2_4FGL_J2331.0-2147_daily_bin1095.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/7621/ft1_filteredMKT_4FGL_J2331.0-2147_daily_bin1095.fits evtable="EVENTS" outfile="/scratch/kocevski/7621/ft1_filtered_4FGL_J2331.0-2147_daily_bin1095.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.50
user 0.33
sys 0.16

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/7621/ft1_filtered_4FGL_J2331.0-2147_daily_bin1095.fits" evtable="EVENTS" scfile=/scratch/kocevski/7621/ft2_4FGL_J2331.0-2147_daily_bin1095.fits sctable="SC_DATA" outfile=/scratch/kocevski/7621/ltcube_523152001_523411201_4FGL_J2331.0-2147_daily_bin1095.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/7621/ft2_4FGL_J2331.0-2147_daily_bin1095.fits
.....................!
real 12.61
user 12.17
sys 0.34

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/7621/ft1_filtered_4FGL_J2331.0-2147_daily_bin1095.fits evtable="EVENTS" scfile=/scratch/kocevski/7621/ft2_4FGL_J2331.0-2147_daily_bin1095.fits sctable="SC_DATA" expcube=/scratch/kocevski/7621/ltcube_523152001_523411201_4FGL_J2331.0-2147_daily_bin1095.fits outfile=/scratch/kocevski/7621/expmap_523152001_523411201_4FGL_J2331.0-2147_daily_bin1095.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/7621/ltcube_523152001_523411201_4FGL_J2331.0-2147_daily_bin1095.fits
.....................!
real 190.91
user 185.41
sys 5.12

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/7621/ft1_filtered_4FGL_J2331.0-2147_daily_bin1095.fits scfile=/scratch/kocevski/7621/ft2_4FGL_J2331.0-2147_daily_bin1095.fits outfile=/scratch/kocevski/7621/cmap_523152001_523411201_4FGL_J2331.0-2147_daily_bin1095.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.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/7621/ft1_filtered_4FGL_J2331.0-2147_daily_bin1095.fits scfile=/scratch/kocevski/7621/ft2_4FGL_J2331.0-2147_daily_bin1095.fits outfile=/scratch/kocevski/7621/cmap_HighResolution_523152001_523411201_4FGL_J2331.0-2147_daily_bin1095.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.55
user 0.38
sys 0.16

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10017E-03   1.0000         .10000E-03   10000.    
     2 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    46.026       1.0000         .10000E-03   10000.    
     4 'norm      '    5.7274       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10021E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    20.965       1.0000         .10000E-03   10000.    
     7 'norm      '    1.7652       1.0000         .10000E-03   10000.    
     8 'Prefactor '    8.2535       1.0000         .10000E-03   10000.    
     9 'Prefactor '    4.1995       1.0000         .10000E-03   10000.    
    10 'Prefactor '    54.850       1.0000         .10000E-03   10000.    
    11 'Prefactor '    71.767       1.0000         .10000E-03   10000.    
    12 'norm      '    1.3163       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10100E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    39.950       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10048E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    18 'norm      '    28.620       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .84077       1.0000         .10000E-03   10000.    
    20 'Prefactor '    16.198       1.0000         .10000E-03   10000.    
    21 'Normalizat'    1.2242       1.0000         .10000E-01   10.000    
    22 'Prefactor '    .51742       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=   4377.840     FROM MIGRAD    STATUS=CONVERGED    516 CALLS     2438 TOTAL
                     EDM=   .48E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  3.8%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    33.524       -.20674E-07** at limit **
   2  norm          .10000E-03    2.8878       -.62937E-06** at limit **
   3  Prefactor     46.118        72.285        .21676E-05    .86522E-04
   4  norm          5.7281        5.6418        .75212E-07    .52639E-04
   5  Prefactor     .10000E-03    12.112       -.17548E-07** at limit **
   6  Prefactor     20.960        21.914        .13553E-06    .72360E-05
   7  norm          1.7658        1.4165       -.10029E-07    .15264E-03
   8  Prefactor     8.2526        14.016        .64661E-06    .62372E-07
   9  Prefactor     4.1946        15.968        .10094E-05    .35285E-04
  10  Prefactor     54.850        34.787       -.91830E-07   -.57840E-04
  11  Prefactor     71.775        68.868        .57013E-06   -.30306E-04
  12  norm          1.3164        4.8419        .20734E-05    .98072E-04
  13  Prefactor     .10000E-03    94.722       -.44458E-06** at limit **
  14  Prefactor     .10000E-03    10.664       -.68857E-07** at limit **
  15  Prefactor     39.942        35.049        .12962E-06   -.88222E-05
  16  Prefactor     .10000E-03    49.438        .69353E-07** at limit **
  17  norm          .10000E-03    .28836        .10211E-07** at limit **
  18  norm          28.619        7.5099        .15746E-06   -.11265E-03
  19  Prefactor     .55818        97.131        .63774E-05   -.14370E-03
  20  Prefactor     16.349        57.553        .22649E-05   -.72722E-05
  21  Normalizat    1.2244        .23016       -.34149E-05   -.26529E-03
  22  Prefactor     .51737        .19737        .14069E-05   -.25768E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 46.1177
  norm       = 5.72809
  Prefactor  = 0.0001
  Prefactor  = 20.9603
  norm       = 1.76575
  Prefactor  = 8.25261
  Prefactor  = 4.19464
  Prefactor  = 54.8497
  Prefactor  = 71.7745
  norm       = 1.31637
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 39.9424
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 28.6186
  Prefactor  = 0.558179
  Prefactor  = 16.3491
  Normalizat = 1.22437
  Prefactor  = 0.517371
 **********
 **   18 **HESSE 
 **********

 FCN=   4377.840     FROM HESSE     STATUS=OK           350 CALLS     2788 TOTAL
                     EDM=   .53E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    33.684        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          .10000E-03    4.3727        .19747E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     46.118        67.629        .59100E-04   -1.4349    
   4  norm          5.7281        5.6287        .14349E-03   -1.5229    
   5  Prefactor     .10000E-03    12.120        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     20.960        22.829        .87476E-04   -1.4792    
   7  norm          1.7658        1.4893        .46906E-04   -1.5442    
   8  Prefactor     8.2526        14.018        .13955E-03   -1.5133    
   9  Prefactor     4.1946        15.686        .19665E-03   -1.5298    
  10  Prefactor     54.850        34.810        .54161E-04   -1.4225    
  11  Prefactor     71.775        68.933        .47389E-04   -1.4012    
  12  norm          1.3164        4.8597        .24631E-03   -1.5479    
  13  Prefactor     .10000E-03    95.064        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    10.686        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     39.942        34.759        .63417E-04   -1.4443    
  16  Prefactor     .10000E-03    49.448        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          .10000E-03    .33677        .66920E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          28.619        7.2654        .74889E-04   -1.4638    
  19  Prefactor     .55818        93.226        .15348       -1.5559    
  20  Prefactor     16.349        59.881        .99516E-04   -1.4899    
  21  Normalizat    1.2244        .25241        .22553E-03   -.85853    
  22  Prefactor     .51737        .22443        .31129E-03   -1.1119    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.313e-10
Minuit parameter uncertainties:
  1  3.0846e-05
  2  3.64489e-06
  3  67.7415
  4  5.62923
  5  8.15021e-06
  6  22.8389
  7  1.48936
  8  14.0235
  9  15.7016
  10  34.8229
  11  69.0099
  12  4.86112
  13  5.15279e-05
  14  9.69804e-06
  15  34.7771
  16  1.24015e-05
  17  8.29862e-07
  18  7.26561
  19  14.4489
  20  60.1026
  21  0.252661
  22  0.224815
Done.

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

Extracting fit parameters...

4FGL J2331.0-2147
   Spectrum: LogParabola
418         norm:  1.316e+00  4.861e+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:  5.174e-01  2.248e-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.224e+00  2.527e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/7621/likelihoodResults_523152001_523411201_4FGL_J2331.0-2147_daily_bin1095.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) = 4377.82797444
delta logL = 0.0117311515605

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 4377.82642094
delta logL = 0.0132846449342

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    1.0892       1.0000         .10000E-03   10000.    
     2 'alpha     '    2.7850       1.0000          .0000       5.0000    
     3 'Normalizat'    1.2174       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .52164       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=   4377.826     FROM MIGRAD    STATUS=CONVERGED     86 CALLS      252 TOTAL
                     EDM=   .14E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          1.0890        6.8459        .19380E-03   -.36077E-04
   2  alpha         2.7848        3.7369        .32065E-01    .99185E-04
   3  Normalizat    1.2174        .24156        .22607E-03   -.74156E-04
   4  Prefactor     .52165        .22338        .31006E-03   -.63468E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 1.08899
  alpha      = 2.7848
  Normalizat = 1.21742
  Prefactor  = 0.521651
 **********
 **   18 **HESSE 
 **********

 FCN=   4377.826     FROM HESSE     STATUS=OK            25 CALLS      277 TOTAL
                     EDM=   .11E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          1.0890        4.4340        .77521E-05   -1.5499    
   2  alpha         2.7848        2.0185        .64130E-02    .11417    
   3  Normalizat    1.2174        .24072        .45214E-04   -.86066    
   4  Prefactor     .52165        .22163        .12403E-04   -1.1099    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.06072e-11
Minuit parameter uncertainties:
  1  4.39517
  2  2.35646
  3  0.240943
  4  0.222003
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/7621': 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) = 4377.82642093
delta logL = 0.0132846605984

Extracting fit parameters...

4FGL J2331.0-2147
   Spectrum: LogParabola
418         norm:  1.089e+00  4.395e+00  1.000e-04  1.000e+04 ( 1.000e-12)
419        alpha:  2.785e+00  2.356e+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:  5.217e-01  2.220e-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.217e+00  2.409e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 0.09
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/7621/cmap_HighResolution_523152001_523411201_4FGL_J2331.0-2147_daily_bin1095.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='4.20e-05', job_status='DONE', photon_flux_upper_limit='1.26e-07', time_completed='2021-09-29 23:08:38.736414', job_id='7621', GAL2='0.52', fit_tolerance='1e-08', EG2='1.22', EG='1.22', time_epoch_completed='1632982118.74', return_code2='0', ts='0.09', comment='SUCCESS', return_code='0', GAL='0.52', dlogl='1.33e-02', ts2='0.11', photon_index_error='0.00', photon_index='2.43' WHERE bin_id='1095' AND source_name='4FGL J2331.0-2147' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep 29 23:08:38 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0067>
Subject: Job 7621: <4FGL_J2331.0-2147_daily_bin1095> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2331.0-2147_daily_bin1095 352.763 -21.7953 523152001 523411201 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 :                                   525.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             219.44 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   768 sec.
    Turnaround time :                            771 sec.

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

