/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 144 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 = 7405
number of fields = 27
No RA_SUN column yet. Adding RA_SUN/DEC_SUN columns.
Done.


Performing analysis on: 4FGL_J2331.0-2147_daily_bin431
RA = 352.763, Dec = -21.7953
tmin = 351043201, tmax = 351302401
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='4615', job_status='RUN', time_executed='2021-09-29 22:48:15.981287', time_epoch_executed='1632980895.98' WHERE source_name='4FGL J2331.0-2147' and cadence='daily' and bin_id='431'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/4615

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/4615/ft1_4FGL_J2331.0-2147_daily_bin431.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/4615/ft2_4FGL_J2331.0-2147_daily_bin431.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/4615/ft1_4FGL_J2331.0-2147_daily_bin431.fits outfile=/scratch/kocevski/4615/ft1_filteredMKT_4FGL_J2331.0-2147_daily_bin431.fits ra=352.763 dec=-21.7953 rad=12.0 tmin=351043201.0 tmax=351302401.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.42
user 3.21
sys 0.19

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/4615/ft1_filtered_4FGL_J2331.0-2147_daily_bin431.fits" evtable="EVENTS" scfile=/scratch/kocevski/4615/ft2_4FGL_J2331.0-2147_daily_bin431.fits sctable="SC_DATA" outfile=/scratch/kocevski/4615/ltcube_351043201_351302401_4FGL_J2331.0-2147_daily_bin431.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/4615/ft2_4FGL_J2331.0-2147_daily_bin431.fits
.....................!
real 11.93
user 11.58
sys 0.32

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/4615/ft1_filtered_4FGL_J2331.0-2147_daily_bin431.fits evtable="EVENTS" scfile=/scratch/kocevski/4615/ft2_4FGL_J2331.0-2147_daily_bin431.fits sctable="SC_DATA" expcube=/scratch/kocevski/4615/ltcube_351043201_351302401_4FGL_J2331.0-2147_daily_bin431.fits outfile=/scratch/kocevski/4615/expmap_351043201_351302401_4FGL_J2331.0-2147_daily_bin431.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/4615/ltcube_351043201_351302401_4FGL_J2331.0-2147_daily_bin431.fits
.....................!
real 190.08
user 185.49
sys 4.23

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/4615/ft1_filtered_4FGL_J2331.0-2147_daily_bin431.fits scfile=/scratch/kocevski/4615/ft2_4FGL_J2331.0-2147_daily_bin431.fits outfile=/scratch/kocevski/4615/cmap_351043201_351302401_4FGL_J2331.0-2147_daily_bin431.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.38
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/4615/ft1_filtered_4FGL_J2331.0-2147_daily_bin431.fits scfile=/scratch/kocevski/4615/ft2_4FGL_J2331.0-2147_daily_bin431.fits outfile=/scratch/kocevski/4615/cmap_HighResolution_351043201_351302401_4FGL_J2331.0-2147_daily_bin431.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.56
user 0.39
sys 0.16

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/4615/ft1_filtered_4FGL_J2331.0-2147_daily_bin431.fits evtable="EVENTS" scfile=/scratch/kocevski/4615/ft2_4FGL_J2331.0-2147_daily_bin431.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/4615/Model_4FGL_J2331.0-2147_daily_bin431.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/4615/ft1_filtered_4FGL_J2331.0-2147_daily_bin431.fits....................!
real 60.23
user 58.78
sys 1.22

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    39.336       1.0000         .10000E-03   10000.    
     2 'norm      '    1.1116       1.0000         .10000E-03   10000.    
     3 'Prefactor '    62.199       1.0000         .10000E-03   10000.    
     4 'norm      '    35.014       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .17448E-03   1.0000         .10000E-03   10000.    
     7 'norm      '    2.6030       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    6.4532       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    49.493       1.0000         .10000E-03   10000.    
    12 'norm      '    4.9891       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10098E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    1.0144       1.0000         .10000E-03   10000.    
    18 'norm      '    9.5978       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .14816       1.0000         .10000E-03   10000.    
    21 'Normalizat'    1.0217       1.0000         .10000E-01   10.000    
    22 'Prefactor '    .80733       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=   8048.631     FROM MIGRAD    STATUS=CONVERGED    497 CALLS     2428 TOTAL
                     EDM=   .16E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .1%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          39.332        33.730       -.12216E-05    .66063E-06
   2  norm          1.1114        1.4745        .22950E-05    .91729E-03
   3  Prefactor     62.238        45.363       -.28799E-04   -.38506E-04
   4  norm          35.024        6.6519        .14866E-05    .33343E-04
   5  Prefactor     .10000E-03    4.2446       -.24053E-07** at limit **
   6  Prefactor     .10000E-03    13.619       -.27266E-05** at limit **
   7  norm          2.6046        .73415       -.28232E-06    .14403E-02
   8  Prefactor     .10000E-03    9.3876        .56759E-06** at limit **
   9  Prefactor     6.4689        10.169        .82153E-05   -.22432E-04
  10  Prefactor     .10000E-03    7.7198       -.72692E-07** at limit **
  11  Prefactor     49.492        38.964        .94323E-06    .88066E-05
  12  norm          4.9887        2.5310       -.79988E-07   -.21417E-03
  13  Prefactor     .10000E-03    14.685        .20726E-05** at limit **
  14  Prefactor     .10000E-03    13.062       -.29653E-05** at limit **
  15  Prefactor     .10000E-03    16.205        .20905E-05** at limit **
  16  Prefactor     .10000E-03    31.760        .74465E-06** at limit **
  17  norm          1.0144        .47541       -.49206E-08   -.10761E-03
  18  norm          9.5972        4.0147       -.93305E-07   -.50341E-04
  19  Prefactor     .10000E-03    12.888        .22189E-05** at limit **
  20  Prefactor     .10232E-03    23.946       -.11511E-05** at limit **
  21  Normalizat    1.0219        .14972        .10097E-05   -.98095E-05
  22  Prefactor     .80717        .14855       -.40967E-06    .69155E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 39.3324
  norm       = 1.1114
  Prefactor  = 62.2375
  norm       = 35.0235
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 2.60459
  Prefactor  = 0.0001
  Prefactor  = 6.46893
  Prefactor  = 0.0001
  Prefactor  = 49.4918
  norm       = 4.9887
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 1.01439
  norm       = 9.59718
  Prefactor  = 0.0001
  Prefactor  = 0.000102321
  Normalizat = 1.02195
  Prefactor  = 0.807165
 **********
 **   18 **HESSE 
 **********

 FCN=   8048.631     FROM HESSE     STATUS=OK           354 CALLS     2782 TOTAL
                     EDM=   .32E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          39.332        33.742        .63908E-04   -1.4453    
   2  norm          1.1114        1.4455        .11545E-03   -1.5497    
   3  Prefactor     62.238        45.317        .50879E-04   -1.4129    
   4  norm          35.024        6.6445        .67725E-04   -1.4524    
   5  Prefactor     .10000E-03    4.2482        .18046E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    13.864        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          2.6046        .73335        .35996E-04   -1.5385    
   8  Prefactor     .10000E-03    9.5782        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     6.4689        10.128        .15799E-03   -1.5199    
  10  Prefactor     .10000E-03    7.7375        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     49.492        39.040        .57002E-04   -1.4300    
  12  norm          4.9887        2.5309        .97542E-04   -1.5261    
  13  Prefactor     .10000E-03    14.712        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    13.593        .36285E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    16.298        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    31.783        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          1.0144        .47666        .38598E-04   -1.5507    
  18  norm          9.5972        4.0374        .10556E-03   -1.5088    
  19  Prefactor     .10000E-03    12.897        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10232E-03    25.285        .13857       -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Normalizat    1.0219        .17399        .23526E-03   -.92299    
  22  Prefactor     .80717        .17210        .26544E-03   -.99465    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.17804e-10
Minuit parameter uncertainties:
  1  33.7585
  2  1.44555
  3  45.342
  4  6.6446
  5  6.80292e-06
  6  1.07224e-05
  7  0.73335
  8  7.6809e-06
  9  10.131
  10  1.03206e-06
  11  39.0601
  12  2.53092
  13  1.60342e-06
  14  3.52237e-05
  15  1.83531e-05
  16  1.51847e-05
  17  0.476664
  18  4.03753
  19  3.44969e-06
  20  0.0153288
  21  0.174084
  22  0.172219
Done.

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

Extracting fit parameters...

4FGL J2331.0-2147
   Spectrum: LogParabola
418         norm:  4.989e+00  2.531e+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.072e-01  1.722e-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.022e+00  1.741e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 7.84
Ra Dec: 352.763 -21.795
Photon Index (Fixed Index): 2.43 +/- 0.00
Photon Flux (Fixed Index): 5.35e-08 +/- 2.71e-08
Energy Flux (Fixed Index): 1.78e-05 +/- 9.02e-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) = 8048.6241735
delta logL = 0.00669253015712

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 8048.6199378
delta logL = 0.0109282251469

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    4.7054       1.0000         .10000E-03   10000.    
     2 'alpha     '    2.5152       1.0000          .0000       5.0000    
     3 'Normalizat'    1.0172       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .81029       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=   8048.620     FROM MIGRAD    STATUS=CONVERGED     52 CALLS      205 TOTAL
                     EDM=   .60E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          4.7051        39.740        .46377E-02    .13416E-03
   2  alpha         2.5154        3.7576        .32520        .59352E-04
   3  Normalizat    1.0172        .75904E-01    .43801E-01    .21614E-04
   4  Prefactor     .81031        .56266E-01    .43851E-01    .76782E-05
                               ERR DEF=  .500    
Final values: 
  norm       = 4.70508
  alpha      = 2.51543
  Normalizat = 1.01715
  Prefactor  = 0.810309
 **********
 **   18 **HESSE 
 **********

 FCN=   8048.620     FROM HESSE     STATUS=OK            33 CALLS      238 TOTAL
                     EDM=   .11E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          4.7051        3.2511        .93612E-04   -1.5274    
   2  alpha         2.5154        .58404        .11738E-01    .61708E-02
   3  Normalizat    1.0172        .17267        .23575E-03   -.92458    
   4  Prefactor     .81031        .17316        .26498E-03   -.99349    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.09871e-11
Minuit parameter uncertainties:
  1  3.25124
  2  0.589491
  3  0.172768
  4  0.173279
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/4615': 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) = 8048.61993768
delta logL = 0.0109283470765

Extracting fit parameters...

4FGL J2331.0-2147
   Spectrum: LogParabola
418         norm:  4.705e+00  3.251e+00  1.000e-04  1.000e+04 ( 1.000e-12)
419        alpha:  2.515e+00  5.895e-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.103e-01  1.733e-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.017e+00  1.728e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 7.80
Ra Dec: 352.763 -21.795
Photon Index (Free Index): 2.52 +/- 0.59
Photon Flux (Free Index): 5.67e-08 +/- 3.55e-08
Energy Flux (Free Index): 1.75e-05 +/- 9.11e-06

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/4615/cmap_HighResolution_351043201_351302401_4FGL_J2331.0-2147_daily_bin431.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='5.35e-08', energy_flux2='1.75e-05', photon_flux_error='2.71e-08', dlogl='1.09e-02', energy_flux='1.78e-05', photon_flux2='5.67e-08', job_status='DONE', time_completed='2021-09-29 22:58:47.888262', photon_index_error2='0.59', photon_index2='2.52', ts='7.84', fit_tolerance='1e-08', GAL='0.81', photon_index_error='0.00', energy_flux_error2='9.11e-06', EG='1.02', time_epoch_completed='1632981527.89', return_code='0', job_id='4615', GAL2='0.81', EG2='1.02', return_code2='0', energy_flux_error='9.02e-06', photon_flux_error2='3.55e-08', ts2='7.80', photon_index='2.43' WHERE bin_id='431' AND source_name='4FGL J2331.0-2147' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep 29 22:58:47 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0232>
Subject: Job 4615: <4FGL_J2331.0-2147_daily_bin431> in cluster <slac> Done

Job <4FGL_J2331.0-2147_daily_bin431> was submitted from host <rhel6-64h> by user <kocevski> in cluster <slac> at Wed Sep 29 22:45:43 2021
Job was executed on host(s) <bullet0232>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Sep 29 22:45:44 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:45:44 2021
Terminated at Wed Sep 29 22:58:48 2021
Results reported at Wed Sep 29 22:58:48 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2331.0-2147_daily_bin431 352.763 -21.7953 351043201 351302401 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 :                                   630.34 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             303.12 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   784 sec.
    Turnaround time :                            785 sec.

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

