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


Performing analysis on: 4FGL_J2331.0-2147_daily_bin1383
RA = 352.763, Dec = -21.7953
tmin = 597801601, tmax = 598060801
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='8096', job_status='RUN', time_executed='2021-09-29 22:59:56.746831', time_epoch_executed='1632981596.75' WHERE source_name='4FGL J2331.0-2147' and cadence='daily' and bin_id='1383'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/8096

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/8096/ft1_4FGL_J2331.0-2147_daily_bin1383.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/8096/ft2_4FGL_J2331.0-2147_daily_bin1383.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/8096/ft1_4FGL_J2331.0-2147_daily_bin1383.fits outfile=/scratch/kocevski/8096/ft1_filteredMKT_4FGL_J2331.0-2147_daily_bin1383.fits ra=352.763 dec=-21.7953 rad=12.0 tmin=597801601.0 tmax=598060801.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.64
user 3.41
sys 0.21

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/8096/ft1_filtered_4FGL_J2331.0-2147_daily_bin1383.fits" evtable="EVENTS" scfile=/scratch/kocevski/8096/ft2_4FGL_J2331.0-2147_daily_bin1383.fits sctable="SC_DATA" outfile=/scratch/kocevski/8096/ltcube_597801601_598060801_4FGL_J2331.0-2147_daily_bin1383.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/8096/ft2_4FGL_J2331.0-2147_daily_bin1383.fits
.....................!
real 11.64
user 11.30
sys 0.31

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/8096/ft1_filtered_4FGL_J2331.0-2147_daily_bin1383.fits evtable="EVENTS" scfile=/scratch/kocevski/8096/ft2_4FGL_J2331.0-2147_daily_bin1383.fits sctable="SC_DATA" expcube=/scratch/kocevski/8096/ltcube_597801601_598060801_4FGL_J2331.0-2147_daily_bin1383.fits outfile=/scratch/kocevski/8096/expmap_597801601_598060801_4FGL_J2331.0-2147_daily_bin1383.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/8096/ltcube_597801601_598060801_4FGL_J2331.0-2147_daily_bin1383.fits
.....................!
real 189.99
user 184.63
sys 5.06

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/8096/ft1_filtered_4FGL_J2331.0-2147_daily_bin1383.fits scfile=/scratch/kocevski/8096/ft2_4FGL_J2331.0-2147_daily_bin1383.fits outfile=/scratch/kocevski/8096/cmap_597801601_598060801_4FGL_J2331.0-2147_daily_bin1383.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.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/8096/ft1_filtered_4FGL_J2331.0-2147_daily_bin1383.fits scfile=/scratch/kocevski/8096/ft2_4FGL_J2331.0-2147_daily_bin1383.fits outfile=/scratch/kocevski/8096/cmap_HighResolution_597801601_598060801_4FGL_J2331.0-2147_daily_bin1383.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.53
user 0.38
sys 0.15

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/8096/ft1_filtered_4FGL_J2331.0-2147_daily_bin1383.fits evtable="EVENTS" scfile=/scratch/kocevski/8096/ft2_4FGL_J2331.0-2147_daily_bin1383.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/8096/Model_4FGL_J2331.0-2147_daily_bin1383.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/8096/ft1_filtered_4FGL_J2331.0-2147_daily_bin1383.fits.....................!
real 52.38
user 51.08
sys 1.21

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    26.060       1.0000         .10000E-03   10000.    
     2 'norm      '    .10840E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    25.062       1.0000         .10000E-03   10000.    
     4 'norm      '    3.2275       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10079E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    3.9290       1.0000         .10000E-03   10000.    
     7 'norm      '    .10067E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10587E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    4.1261       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    8.3813       1.0000         .10000E-03   10000.    
    12 'norm      '    5.4652       1.0000         .10000E-03   10000.    
    13 'Prefactor '    11.338       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .19629E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    22.156       1.0000         .10000E-03   10000.    
    16 'Prefactor '    2.6138       1.0000         .10000E-03   10000.    
    17 'norm      '    .54535       1.0000         .10000E-03   10000.    
    18 'norm      '    24.536       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .11293E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    8.9109       1.0000         .10000E-03   10000.    
    21 'Normalizat'    .75066       1.0000         .10000E-01   10.000    
    22 'Prefactor '    1.0016       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=   6978.482     FROM MIGRAD    STATUS=CONVERGED    500 CALLS     2393 TOTAL
                     EDM=   .21E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.3%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          26.086        21.947       -.25145E-06   -.13906E-03
   2  norm          .10000E-03    1.6047       -.11873E-05** at limit **
   3  Prefactor     24.971        31.758        .36527E-05    .21698E-03
   4  norm          3.2272        2.6942        .20204E-06   -.27372E-04
   5  Prefactor     .10000E-03    3.4334       -.48478E-07** at limit **
   6  Prefactor     3.9317        6.7087        .27885E-06    .14017E-03
   7  norm          .10000E-03    .28876       -.83219E-07** at limit **
   8  Prefactor     .10000E-03    4.8910       -.10864E-07** at limit **
   9  Prefactor     4.1262        4.8100       -.66356E-07    .74396E-04
  10  Prefactor     .10000E-03    7.0136        .30297E-07** at limit **
  11  Prefactor     8.3807        17.615        .66899E-07   -.37879E-05
  12  norm          5.4650        2.7261        .16475E-07   -.44479E-04
  13  Prefactor     11.310        28.052       -.11562E-07   -.20686E-05
  14  Prefactor     .10000E-03    30.507        .12395E-05** at limit **
  15  Prefactor     22.143        22.269        .15752E-06    .27416E-04
  16  Prefactor     2.6440        235.73        .23874E-05    .12707E-04
  17  norm          .54557        .45279        .27714E-07   -.15252E-03
  18  norm          24.537        5.6323       -.13769E-07    .29352E-04
  19  Prefactor     .10000E-03    40.234       -.61148E-07** at limit **
  20  Prefactor     8.9112        28.385        .76247E-07   -.94019E-05
  21  Normalizat    .75099        .15053       -.44927E-06    .10642E-03
  22  Prefactor     1.0013        .15183        .36628E-06    .61910E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 26.0863
  norm       = 0.000100002
  Prefactor  = 24.9708
  norm       = 3.22719
  Prefactor  = 0.0001
  Prefactor  = 3.9317
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 4.12623
  Prefactor  = 0.0001
  Prefactor  = 8.38072
  norm       = 5.46504
  Prefactor  = 11.3095
  Prefactor  = 0.0001
  Prefactor  = 22.143
  Prefactor  = 2.64397
  norm       = 0.545572
  norm       = 24.537
  Prefactor  = 0.0001
  Prefactor  = 8.91118
  Normalizat = 0.75099
  Prefactor  = 1.00131
 **********
 **   18 **HESSE 
 **********

 FCN=   6978.482     FROM HESSE     STATUS=OK           350 CALLS     2743 TOTAL
                     EDM=   .96E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          26.086        21.840        .78473E-04   -1.4686    
   2  norm          .10000E-03    3.3431        .17692E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     24.971        33.188        .80017E-04   -1.4708    
   4  norm          3.2272        2.6762        .58391E-03   -1.5349    
   5  Prefactor     .10000E-03    3.4357        .15109E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     3.9317        6.0533        .20352E-03   -1.5311    
   7  norm          .10000E-03    .50808        .77927E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    4.9195        .18040E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     4.1262        4.7879        .18600E-03   -1.5302    
  10  Prefactor     .10000E-03    7.0164        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     8.3807        17.608        .13847E-03   -1.5129    
  12  norm          5.4650        2.7228        .91782E-04   -1.5240    
  13  Prefactor     11.310        27.762        .11898E-03   -1.5035    
  14  Prefactor     .10000E-03    30.790        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     22.143        22.244        .85096E-04   -1.4766    
  16  Prefactor     2.6440        232.22        .25229E-03   -1.5383    
  17  norm          .54557        .43950        .45440E-04   -1.5560    
  18  norm          24.537        5.5554        .80869E-04   -1.4717    
  19  Prefactor     .10000E-03    40.514        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     8.9112        28.389        .13427E-03   -1.5111    
  21  Normalizat    .75099        .17682        .24631E-03   -1.0191    
  22  Prefactor     1.0013        .17854        .22555E-03   -.92686    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 9.55126e-10
Minuit parameter uncertainties:
  1  21.8462
  2  0.000178855
  3  33.212
  4  2.67631
  5  3.69284e-06
  6  6.05427
  7  5.26542e-06
  8  6.69353e-07
  9  4.78834
  10  1.89032e-06
  11  17.6185
  12  2.72287
  13  27.7932
  14  0.000145407
  15  22.2527
  16  49.7571
  17  0.4395
  18  5.5555
  19  2.70126e-05
  20  28.4321
  21  0.176957
  22  0.17865
Done.

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

Extracting fit parameters...

4FGL J2331.0-2147
   Spectrum: LogParabola
418         norm:  5.465e+00  2.723e+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:  1.001e+00  1.786e-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.510e-01  1.770e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 9.36
Ra Dec: 352.763 -21.795
Photon Index (Fixed Index): 2.43 +/- 0.00
Photon Flux (Fixed Index): 5.86e-08 +/- 2.92e-08
Energy Flux (Fixed Index): 1.95e-05 +/- 9.70e-06

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) = 6978.4126388
delta logL = 0.069102402349

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6978.40163458
delta logL = 0.0801066211206

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    6.3877       1.0000         .10000E-03   10000.    
     2 'alpha     '    2.2300       1.0000          .0000       5.0000    
     3 'Normalizat'    .76103       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .99374       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=   6978.402     FROM MIGRAD    STATUS=CONVERGED     52 CALLS      228 TOTAL
                     EDM=   .38E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          6.3861        62.925        .39702E-02    .10623E-03
   2  alpha         2.2310        3.5325        .30174        .43236E-04
   3  Normalizat    .76110        .91422E-01    .43100E-01    .18783E-04
   4  Prefactor     .99373        .68933E-01    .46189E-01    .68200E-05
                               ERR DEF=  .500    
Final values: 
  norm       = 6.38608
  alpha      = 2.23099
  Normalizat = 0.761104
  Prefactor  = 0.99373
 **********
 **   18 **HESSE 
 **********

 FCN=   6978.402     FROM HESSE     STATUS=OK            33 CALLS      261 TOTAL
                     EDM=   .21E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          6.3861        3.8128        .10053E-03   -1.5202    
   2  alpha         2.2310        .49953        .11500E-01   -.10781    
   3  Normalizat    .76110        .17107        .24485E-03   -1.0153    
   4  Prefactor     .99373        .17843        .22631E-03   -.92939    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.11287e-12
Minuit parameter uncertainties:
  1  3.81299
  2  0.502959
  3  0.171189
  4  0.17854
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/8096': 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) = 6978.40163183
delta logL = 0.0801093753071

Extracting fit parameters...

4FGL J2331.0-2147
   Spectrum: LogParabola
418         norm:  6.386e+00  3.813e+00  1.000e-04  1.000e+04 ( 1.000e-12)
419        alpha:  2.231e+00  5.030e-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:  9.937e-01  1.785e-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.611e-01  1.712e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 9.51
Ra Dec: 352.763 -21.795
Photon Index (Free Index): 2.23 +/- 0.50
Photon Flux (Free Index): 5.22e-08 +/- 3.04e-08
Energy Flux (Free Index): 2.16e-05 +/- 1.25e-05

Creating a high resolution counts map...
INFO: Auto-setting vmin to -1.000e-01 [aplpy.core]
INFO: Auto-setting vmax to  1.110e+00 [aplpy.core]
Saving /scratch/kocevski/8096/cmap_HighResolution_597801601_598060801_4FGL_J2331.0-2147_daily_bin1383.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='5.86e-08', energy_flux2='2.16e-05', photon_flux_error='2.92e-08', dlogl='8.01e-02', energy_flux='1.95e-05', photon_flux2='5.22e-08', job_status='DONE', time_completed='2021-09-29 23:09:45.228958', photon_index_error2='0.50', photon_index2='2.23', ts='9.36', fit_tolerance='1e-08', GAL='1.00', photon_index_error='0.00', energy_flux_error2='1.25e-05', EG='0.75', time_epoch_completed='1632982185.23', return_code='0', job_id='8096', GAL2='0.99', EG2='0.76', return_code2='0', energy_flux_error='9.70e-06', photon_flux_error2='3.04e-08', ts2='9.51', photon_index='2.43' WHERE bin_id='1383' AND source_name='4FGL J2331.0-2147' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep 29 23:09:45 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0246>
Subject: Job 8096: <4FGL_J2331.0-2147_daily_bin1383> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2331.0-2147_daily_bin1383 352.763 -21.7953 597801601 598060801 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 :                                   584.30 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             235.50 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   788 sec.
    Turnaround time :                            790 sec.

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

