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


Performing analysis on: 4FGL_J2331.0-2147_daily_bin1362
RA = 352.763, Dec = -21.7953
tmin = 592358401, tmax = 592617601
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='8054', job_status='RUN', time_executed='2021-09-29 22:59:59.660726', time_epoch_executed='1632981599.66' WHERE source_name='4FGL J2331.0-2147' and cadence='daily' and bin_id='1362'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/8054

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/8054/ft1_4FGL_J2331.0-2147_daily_bin1362.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/8054/ft2_4FGL_J2331.0-2147_daily_bin1362.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/8054/ft1_4FGL_J2331.0-2147_daily_bin1362.fits outfile=/scratch/kocevski/8054/ft1_filteredMKT_4FGL_J2331.0-2147_daily_bin1362.fits ra=352.763 dec=-21.7953 rad=12.0 tmin=592358401.0 tmax=592617601.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.47
user 3.25
sys 0.20

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/8054/ft2_4FGL_J2331.0-2147_daily_bin1362.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/8054/ft1_filteredMKT_4FGL_J2331.0-2147_daily_bin1362.fits evtable="EVENTS" outfile="/scratch/kocevski/8054/ft1_filtered_4FGL_J2331.0-2147_daily_bin1362.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/8054/ft1_filtered_4FGL_J2331.0-2147_daily_bin1362.fits" evtable="EVENTS" scfile=/scratch/kocevski/8054/ft2_4FGL_J2331.0-2147_daily_bin1362.fits sctable="SC_DATA" outfile=/scratch/kocevski/8054/ltcube_592358401_592617601_4FGL_J2331.0-2147_daily_bin1362.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/8054/ft2_4FGL_J2331.0-2147_daily_bin1362.fits
.....................!
real 11.75
user 11.33
sys 0.36

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/8054/ft1_filtered_4FGL_J2331.0-2147_daily_bin1362.fits evtable="EVENTS" scfile=/scratch/kocevski/8054/ft2_4FGL_J2331.0-2147_daily_bin1362.fits sctable="SC_DATA" expcube=/scratch/kocevski/8054/ltcube_592358401_592617601_4FGL_J2331.0-2147_daily_bin1362.fits outfile=/scratch/kocevski/8054/expmap_592358401_592617601_4FGL_J2331.0-2147_daily_bin1362.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/8054/ltcube_592358401_592617601_4FGL_J2331.0-2147_daily_bin1362.fits
.....................!
real 191.16
user 186.04
sys 4.62

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/8054/ft1_filtered_4FGL_J2331.0-2147_daily_bin1362.fits scfile=/scratch/kocevski/8054/ft2_4FGL_J2331.0-2147_daily_bin1362.fits outfile=/scratch/kocevski/8054/cmap_592358401_592617601_4FGL_J2331.0-2147_daily_bin1362.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/8054/ft1_filtered_4FGL_J2331.0-2147_daily_bin1362.fits scfile=/scratch/kocevski/8054/ft2_4FGL_J2331.0-2147_daily_bin1362.fits outfile=/scratch/kocevski/8054/cmap_HighResolution_592358401_592617601_4FGL_J2331.0-2147_daily_bin1362.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/8054/ft1_filtered_4FGL_J2331.0-2147_daily_bin1362.fits evtable="EVENTS" scfile=/scratch/kocevski/8054/ft2_4FGL_J2331.0-2147_daily_bin1362.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/8054/Model_4FGL_J2331.0-2147_daily_bin1362.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/8054/ft1_filtered_4FGL_J2331.0-2147_daily_bin1362.fits.....................!
real 42.79
user 41.44
sys 1.21

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10012E-03   1.0000         .10000E-03   10000.    
     2 'norm      '    3.9785       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
     4 'norm      '    .10020E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10227E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    7.8528       1.0000         .10000E-03   10000.    
     7 'norm      '    1.0059       1.0000         .10000E-03   10000.    
     8 'Prefactor '    29.450       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10164E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10021E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10040E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    6.6072       1.0000         .10000E-03   10000.    
    13 'Prefactor '    59.021       1.0000         .10000E-03   10000.    
    14 'Prefactor '    7.7227       1.0000         .10000E-03   10000.    
    15 'Prefactor '    12.595       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    .31163       1.0000         .10000E-03   10000.    
    18 'norm      '    91.117       1.0000         .10000E-03   10000.    
    19 'Prefactor '    22.949       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10008E-03   1.0000         .10000E-03   10000.    
    21 'Normalizat'    1.1495       1.0000         .10000E-01   10.000    
    22 'Prefactor '    .36166       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=   4895.376     FROM MIGRAD    STATUS=CONVERGED    473 CALLS     2364 TOTAL
                     EDM=   .19E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .8%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    21.158        .19458E-05** at limit **
   2  norm          3.9786        2.5244       -.53733E-07    .10914E-03
   3  Prefactor     .10000E-03    28.812        .31162E-05** at limit **
   4  norm          .10000E-03    3.0680       -.10698E-08** at limit **
   5  Prefactor     .10000E-03    6.6804       -.63997E-07** at limit **
   6  Prefactor     7.8312        10.437       -.13137E-05   -.87223E-04
   7  norm          1.0075        .72752        .27673E-07   -.57561E-03
   8  Prefactor     29.445        20.225       -.18794E-05    .63737E-05
   9  Prefactor     .10000E-03    8.3160       -.12532E-06** at limit **
  10  Prefactor     .10000E-03    7.2769        .16957E-06** at limit **
  11  Prefactor     .10000E-03    60.102        .23949E-05** at limit **
  12  norm          6.6073        3.8471        .10089E-05   -.18779E-02
  13  Prefactor     58.974        79.178       -.53273E-04   -.62420E-04
  14  Prefactor     7.7244        24.476        .22462E-04   -.63017E-03
  15  Prefactor     12.577        30.183       -.22015E-04   -.61721E-05
  16  Prefactor     .10000E-03    28.776        .29572E-05** at limit **
  17  norm          .30991        1.2074        .35517E-06   -.29522E-03
  18  norm          91.131        16.707        .35257E-07   -.71080E-03
  19  Prefactor     22.936        40.941       -.18860E-04    .13122E-04
  20  Prefactor     .10000E-03    26.498       -.80953E-05** at limit **
  21  Normalizat    1.1501        .20715        .51475E-05   -.21835E-03
  22  Prefactor     .36119        .19023        .54025E-06    .88166E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  norm       = 3.9786
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 7.83121
  norm       = 1.00751
  Prefactor  = 29.4451
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 6.60735
  Prefactor  = 58.9741
  Prefactor  = 7.72442
  Prefactor  = 12.5772
  Prefactor  = 0.0001
  norm       = 0.309915
  norm       = 91.1308
  Prefactor  = 22.9357
  Prefactor  = 0.0001
  Normalizat = 1.15008
  Prefactor  = 0.361189
 **********
 **   18 **HESSE 
 **********

 FCN=   4895.376     FROM HESSE     STATUS=OK           342 CALLS     2706 TOTAL
                     EDM=   .15E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    21.188        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          3.9786        2.5259        .86231E-04   -1.5309    
   3  Prefactor     .10000E-03    28.832        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  norm          .10000E-03    3.1617        .23905E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    6.6825        .17646E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     7.8312        11.072        .14309E-03   -1.5148    
   7  norm          1.0075        .76672        .41099E-04   -1.5507    
   8  Prefactor     29.445        20.222        .73828E-04   -1.4622    
   9  Prefactor     .10000E-03    8.3645        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    7.2775        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    60.275        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          6.6073        3.8231        .47800E-03   -1.5194    
  13  Prefactor     58.974        76.508        .52223E-04   -1.4171    
  14  Prefactor     7.7244        23.488        .72149E-03   -1.5152    
  15  Prefactor     12.577        30.083        .11287E-03   -1.4999    
  16  Prefactor     .10000E-03    28.783        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          .30991        1.2110        .93353E-03   -1.5597    
  18  norm          91.131        13.775        .42097E-04   -1.3796    
  19  Prefactor     22.936        41.015        .83614E-04   -1.4750    
  20  Prefactor     .10000E-03    26.551        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Normalizat    1.1501        .23043        .22370E-03   -.88160    
  22  Prefactor     .36119        .20812        .35710E-03   -1.1884    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.45123e-08
Minuit parameter uncertainties:
  1  4.52131e-05
  2  2.52598
  3  3.13437e-05
  4  8.12063e-06
  5  9.68282e-06
  6  11.0752
  7  0.766728
  8  20.2265
  9  8.28296e-06
  10  2.11004e-05
  11  0.000195212
  12  3.82322
  13  76.6363
  14  23.5163
  15  30.1196
  16  2.76152e-05
  17  1.21105
  18  13.7753
  19  41.0658
  20  5.92423e-05
  21  0.230628
  22  0.208552
Done.

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

Extracting fit parameters...

4FGL J2331.0-2147
   Spectrum: LogParabola
418         norm:  6.607e+00  3.823e+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:  3.612e-01  2.086e-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.150e+00  2.306e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 8.99
Ra Dec: 352.763 -21.795
Photon Index (Fixed Index): 2.43 +/- 0.00
Photon Flux (Fixed Index): 7.08e-08 +/- 4.10e-08
Energy Flux (Fixed Index): 2.35e-05 +/- 1.36e-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) = 4894.77460233
delta logL = 0.601163678447

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 4894.77442168
delta logL = 0.601344330154

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    8.5120       1.0000         .10000E-03   10000.    
     2 'alpha     '    1.8623       1.0000          .0000       5.0000    
     3 'Normalizat'    1.1793       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .34253       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=   4894.774     FROM MIGRAD    STATUS=CONVERGED     53 CALLS      229 TOTAL
                     EDM=   .11E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          8.4950        10.741        .34350E-02    .12247E-03
   2  alpha         1.8621        .96061        .32109        .14249E-04
   3  Normalizat    1.1793        .21145        .35420E-01   -.66488E-05
   4  Prefactor     .34255        .19639        .82626E-01    .99524E-05
                               ERR DEF=  .500    
Final values: 
  norm       = 8.49502
  alpha      = 1.86213
  Normalizat = 1.17934
  Prefactor  = 0.342554
 **********
 **   18 **HESSE 
 **********

 FCN=   4894.774     FROM HESSE     STATUS=OK            33 CALLS      262 TOTAL
                     EDM=   .15E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          8.4950        4.9408        .11463E-03   -1.5125    
   2  alpha         1.8621        .50347        .12630E-01   -.25800    
   3  Normalizat    1.1793        .22124        .22146E-03   -.87244    
   4  Prefactor     .34255        .20600        .36622E-03   -1.1985    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.5424e-11
Minuit parameter uncertainties:
  1  4.94108
  2  0.507187
  3  0.221412
  4  0.206439
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/8054': 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) = 4894.77441574
delta logL = 0.601350273408

Extracting fit parameters...

4FGL J2331.0-2147
   Spectrum: LogParabola
418         norm:  8.495e+00  4.941e+00  1.000e-04  1.000e+04 ( 1.000e-12)
419        alpha:  1.862e+00  5.072e-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:  3.426e-01  2.064e-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.179e+00  2.214e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 10.20
Ra Dec: 352.763 -21.795
Photon Index (Free Index): 1.86 +/- 0.51
Photon Flux (Free Index): 4.55e-08 +/- 3.47e-08
Energy Flux (Free Index): 3.24e-05 +/- 2.28e-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/8054/cmap_HighResolution_592358401_592617601_4FGL_J2331.0-2147_daily_bin1362.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='7.08e-08', energy_flux2='3.24e-05', photon_flux_error='4.10e-08', dlogl='6.01e-01', energy_flux='2.35e-05', photon_flux2='4.55e-08', job_status='DONE', time_completed='2021-09-29 23:08:27.868269', photon_index_error2='0.51', photon_index2='1.86', ts='8.99', fit_tolerance='1e-08', GAL='0.36', photon_index_error='0.00', energy_flux_error2='2.28e-05', EG='1.15', time_epoch_completed='1632982107.87', return_code='0', job_id='8054', GAL2='0.34', EG2='1.18', return_code2='0', energy_flux_error='1.36e-05', photon_flux_error2='3.47e-08', ts2='10.20', photon_index='2.43' WHERE bin_id='1362' AND source_name='4FGL J2331.0-2147' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep 29 23:08:27 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0262>
Subject: Job 8054: <4FGL_J2331.0-2147_daily_bin1362> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2331.0-2147_daily_bin1362 352.763 -21.7953 592358401 592617601 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 :                                   504.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             263.75 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              7
    Max Threads :                                21
    Run time :                                   717 sec.
    Turnaround time :                            720 sec.

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

