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


Performing analysis on: 4FGL_J2331.0-2147_daily_bin1594
RA = 352.763, Dec = -21.7953
tmin = 652492801, tmax = 652752001
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='9297', job_status='RUN', time_executed='2021-09-29 23:02:15.069232', time_epoch_executed='1632981735.07' WHERE source_name='4FGL J2331.0-2147' and cadence='daily' and bin_id='1594'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/9297

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/9297/ft1_4FGL_J2331.0-2147_daily_bin1594.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/9297/ft2_4FGL_J2331.0-2147_daily_bin1594.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/9297/ft1_4FGL_J2331.0-2147_daily_bin1594.fits outfile=/scratch/kocevski/9297/ft1_filteredMKT_4FGL_J2331.0-2147_daily_bin1594.fits ra=352.763 dec=-21.7953 rad=12.0 tmin=652492801.0 tmax=652752001.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.41
user 4.19
sys 0.21

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/9297/ft2_4FGL_J2331.0-2147_daily_bin1594.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/9297/ft1_filteredMKT_4FGL_J2331.0-2147_daily_bin1594.fits evtable="EVENTS" outfile="/scratch/kocevski/9297/ft1_filtered_4FGL_J2331.0-2147_daily_bin1594.fits" apply_filter=yes overwrite=yes header_obstimes=yes tstart=0.0 tstop=0.0 gtifile="default" chatter=3 clobber=yes debug=no gui=no mode="ql"

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

This is gtmktime version HEAD
Applying GTI filter:
IN_SAA!=T && LIVETIME>0 && gtifilter('/nfs/farm/g/glast/g/LCRepository/Likelihood/GTIs/nogrb.gti',(START+STOP)/2) && (angsep(RA_SUN,DEC_SUN,RA_ZENITH,DEC_ZENITH)>115 || gtifilter('/nfs/farm/g/glast/g/LCRepository/Likelihood/GTIs/nosolarflares.gti',(START+STOP)/2))
real 0.49
user 0.33
sys 0.15

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/9297/ft1_filtered_4FGL_J2331.0-2147_daily_bin1594.fits" evtable="EVENTS" scfile=/scratch/kocevski/9297/ft2_4FGL_J2331.0-2147_daily_bin1594.fits sctable="SC_DATA" outfile=/scratch/kocevski/9297/ltcube_652492801_652752001_4FGL_J2331.0-2147_daily_bin1594.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/9297/ft2_4FGL_J2331.0-2147_daily_bin1594.fits
.....................!
real 11.66
user 11.29
sys 0.34

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/9297/ft1_filtered_4FGL_J2331.0-2147_daily_bin1594.fits evtable="EVENTS" scfile=/scratch/kocevski/9297/ft2_4FGL_J2331.0-2147_daily_bin1594.fits sctable="SC_DATA" expcube=/scratch/kocevski/9297/ltcube_652492801_652752001_4FGL_J2331.0-2147_daily_bin1594.fits outfile=/scratch/kocevski/9297/expmap_652492801_652752001_4FGL_J2331.0-2147_daily_bin1594.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/9297/ltcube_652492801_652752001_4FGL_J2331.0-2147_daily_bin1594.fits
.....................!
real 191.05
user 186.05
sys 4.69

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/9297/ft1_filtered_4FGL_J2331.0-2147_daily_bin1594.fits scfile=/scratch/kocevski/9297/ft2_4FGL_J2331.0-2147_daily_bin1594.fits outfile=/scratch/kocevski/9297/cmap_652492801_652752001_4FGL_J2331.0-2147_daily_bin1594.fits algorithm="CMAP" ebinalg="LOG" emin=30.0 emax=200000.0 ebinfile=NONE tbinalg="LIN" tbinfile=NONE nxpix=160 nypix=160 binsz=0.25 coordsys="CEL" xref=352.763 yref=-21.7953 axisrot=0.0 rafield="RA" decfield="DEC" proj="AIT" hpx_ordering_scheme="RING" hpx_order=3 hpx_ebin=yes hpx_region="" evtable="EVENTS" sctable="SC_DATA" efield="ENERGY" tfield="TIME" chatter=2 clobber=yes debug=no gui=no mode="ql"

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

This is gtbin version HEAD
real 0.53
user 0.37
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/9297/ft1_filtered_4FGL_J2331.0-2147_daily_bin1594.fits scfile=/scratch/kocevski/9297/ft2_4FGL_J2331.0-2147_daily_bin1594.fits outfile=/scratch/kocevski/9297/cmap_HighResolution_652492801_652752001_4FGL_J2331.0-2147_daily_bin1594.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.37
sys 0.16

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/9297/ft1_filtered_4FGL_J2331.0-2147_daily_bin1594.fits evtable="EVENTS" scfile=/scratch/kocevski/9297/ft2_4FGL_J2331.0-2147_daily_bin1594.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/9297/Model_4FGL_J2331.0-2147_daily_bin1594.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/9297/ft1_filtered_4FGL_J2331.0-2147_daily_bin1594.fits.....................!
real 33.21
user 31.93
sys 1.18

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

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 'norm      '    .10023E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    22.548       1.0000         .10000E-03   10000.    
     4 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    5.1102       1.0000         .10000E-03   10000.    
     7 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10037E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .97011E-01   1.0000         .10000E-03   10000.    
    11 'Prefactor '    22.396       1.0000         .10000E-03   10000.    
    12 'norm      '    6.3272       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10110E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    18 'norm      '    6.4574       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    12.490       1.0000         .10000E-03   10000.    
    21 'Normalizat'    .70849       1.0000         .10000E-01   10.000    
    22 'Prefactor '    .89014       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=   3603.913     FROM MIGRAD    STATUS=CONVERGED    505 CALLS     2398 TOTAL
                     EDM=   .23E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .2%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    21.011       -.83727E-05** at limit **
   2  norm          .10000E-03    .89445        .24990E-07** at limit **
   3  Prefactor     22.538        37.528       -.13944E-05    .22954E-04
   4  norm          .10000E-03    .93263        .48804E-08** at limit **
   5  Prefactor     .10000E-03    13.325       -.76671E-05** at limit **
   6  Prefactor     5.1108        5.1114        .44079E-06    .94889E-03
   7  norm          .10000E-03    .14157        .68640E-08** at limit **
   8  Prefactor     .10000E-03    7.9409        .81790E-05** at limit **
   9  Prefactor     .10000E-03    7.6484       -.66340E-05** at limit **
  10  Prefactor     .10000E-03    18.332       -.17614E-06** at limit **
  11  Prefactor     22.378        39.963       -.26200E-05    .75421E-06
  12  norm          6.3267        3.6421       -.85380E-08   -.18173E-04
  13  Prefactor     .10000E-03    100.99        .26288E-05** at limit **
  14  Prefactor     .10000E-03    6.8260        .26180E-06** at limit **
  15  Prefactor     .10000E-03    9.6507       -.50380E-05** at limit **
  16  Prefactor     .10000E-03    19.220        .10914E-04** at limit **
  17  norm          .10000E-03    .24569        .61581E-08** at limit **
  18  norm          6.4553        4.5100       -.70835E-07   -.85828E-04
  19  Prefactor     .10000E-03    11.537        .82994E-05** at limit **
  20  Prefactor     12.481        42.551       -.52160E-05   -.10105E-04
  21  Normalizat    .70846        .17679        .77578E-06    .43258E-04
  22  Prefactor     .89027        .18071       -.33027E-06    .82588E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 22.538
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 5.11078
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000100001
  Prefactor  = 22.3782
  norm       = 6.32668
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 6.45529
  Prefactor  = 0.0001
  Prefactor  = 12.4809
  Normalizat = 0.708463
  Prefactor  = 0.890272
 **********
 **   18 **HESSE 
 **********

 FCN=   3603.913     FROM HESSE     STATUS=OK           342 CALLS     2740 TOTAL
                     EDM=   .47E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    21.036        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          .10000E-03    .89510        .55325E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     22.538        37.444        .84354E-04   -1.4758    
   4  norm          .10000E-03    .93297        .56614E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    13.559        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     5.1108        5.0597        .12899E-03   -1.5256    
   7  norm          .10000E-03    .14353        .21967E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    7.9630        .16480E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    7.7458        .16180E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    363.76        .49732E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     22.378        40.004        .84639E-04   -1.4762    
  12  norm          6.3267        3.6414        .83126E-04   -1.5205    
  13  Prefactor     .10000E-03    101.89        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    6.8355        .15317E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    9.6544        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    19.208        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          .10000E-03    .26444        .55720E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          6.4553        4.3422        .97966E-04   -1.5200    
  19  Prefactor     .10000E-03    11.537        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     12.481        42.660        .11334E-03   -1.5001    
  21  Normalizat    .70846        .21066        .21998E-03   -1.0356    
  22  Prefactor     .89027        .21487        .20664E-03   -.96482    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.66406e-10
Minuit parameter uncertainties:
  1  3.55251e-06
  2  2.03142e-06
  3  37.483
  4  1.22666e-07
  5  3.93538e-05
  6  5.06012
  7  1.96797e-07
  8  2.05513e-05
  9  2.0959e-05
  10  0.00131847
  11  40.0516
  12  3.64155
  13  8.03973e-05
  14  2.65808e-06
  15  1.84092e-07
  16  4.05576e-07
  17  9.37612e-08
  18  4.34246
  19  5.24222e-06
  20  42.7648
  21  0.210898
  22  0.215072
Done.

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

Extracting fit parameters...

4FGL J2331.0-2147
   Spectrum: LogParabola
418         norm:  6.327e+00  3.642e+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:  8.903e-01  2.151e-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.085e-01  2.109e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 7.22
Ra Dec: 352.763 -21.795
Photon Index (Fixed Index): 2.43 +/- 0.00
Photon Flux (Fixed Index): 6.78e-08 +/- 3.90e-08
Energy Flux (Fixed Index): 2.25e-05 +/- 1.30e-05

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) = 3603.38541821
delta logL = 0.527487694555

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 3603.30650165
delta logL = 0.606404251248

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    8.9036       1.0000         .10000E-03   10000.    
     2 'alpha     '    1.8679       1.0000          .0000       5.0000    
     3 'Normalizat'    .73635       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .87113       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=   3603.307     FROM MIGRAD    STATUS=CONVERGED     46 CALLS      228 TOTAL
                     EDM=   .92E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=100.0%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          8.9038        4.7873        .49515E-06   -.66429E-03
   2  alpha         1.8679        .41399       -.50657E-05   -.69558E-04
   3  Normalizat    .73634        .17245        .20713E-06    .42606E-04
   4  Prefactor     .87115        .18031       -.16577E-06    .54413E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 8.90378
  alpha      = 1.86789
  Normalizat = 0.736339
  Prefactor  = 0.871147
 **********
 **   18 **HESSE 
 **********

 FCN=   3603.307     FROM HESSE     STATUS=OK            33 CALLS      261 TOTAL
                     EDM=   .32E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          8.9038        5.3215        .10282E-03   -1.5111    
   2  alpha         1.8679        .49665        .10712E-01   -.25562    
   3  Normalizat    .73634        .20484        .21619E-03   -1.0248    
   4  Prefactor     .87115        .21435        .20858E-03   -.97157    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.2252e-10
Minuit parameter uncertainties:
  1  5.32181
  2  0.500207
  3  0.205057
  4  0.214557
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/9297': 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) = 3603.30650165
delta logL = 0.606404254432

Extracting fit parameters...

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

GAL_V02
   Spectrum: PowerLaw
534    Prefactor:  8.711e-01  2.146e-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.363e-01  2.051e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 8.46
Ra Dec: 352.763 -21.795
Photon Index (Free Index): 1.87 +/- 0.50
Photon Flux (Free Index): 4.80e-08 +/- 3.55e-08
Energy Flux (Free Index): 3.38e-05 +/- 2.49e-05

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/9297/cmap_HighResolution_652492801_652752001_4FGL_J2331.0-2147_daily_bin1594.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='6.78e-08', energy_flux2='3.38e-05', photon_flux_error='3.90e-08', dlogl='6.06e-01', energy_flux='2.25e-05', photon_flux2='4.80e-08', job_status='DONE', time_completed='2021-09-29 23:09:55.662026', photon_index_error2='0.50', photon_index2='1.87', ts='7.22', fit_tolerance='1e-08', GAL='0.89', photon_index_error='0.00', energy_flux_error2='2.49e-05', EG='0.71', time_epoch_completed='1632982195.66', return_code='0', job_id='9297', GAL2='0.87', EG2='0.74', return_code2='0', energy_flux_error='1.30e-05', photon_flux_error2='3.55e-08', ts2='8.46', photon_index='2.43' WHERE bin_id='1594' AND source_name='4FGL J2331.0-2147' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep 29 23:09:55 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0096>
Subject: Job 9297: <4FGL_J2331.0-2147_daily_bin1594> in cluster <slac> Done

Job <4FGL_J2331.0-2147_daily_bin1594> was submitted from host <rhel6-64k> by user <kocevski> in cluster <slac> at Wed Sep 29 23:00:34 2021
Job was executed on host(s) <bullet0096>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Sep 29 23:00:35 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Wed Sep 29 23:00:35 2021
Terminated at Wed Sep 29 23:09:58 2021
Results reported at Wed Sep 29 23:09:58 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2331.0-2147_daily_bin1594 352.763 -21.7953 652492801 652752001 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 :                                   456.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             339.78 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   560 sec.
    Turnaround time :                            564 sec.

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

