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


Performing analysis on: 4FGL_J2331.0-2147_daily_bin1617
RA = 352.763, Dec = -21.7953
tmin = 658454401, tmax = 658713601
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='502695', job_status='RUN', time_executed='2021-12-08 09:37:02.089836', time_epoch_executed='1638985022.09' WHERE source_name='4FGL J2331.0-2147' and cadence='daily' and bin_id='1617'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/502695

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/502695/ft1_4FGL_J2331.0-2147_daily_bin1617.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/502695/ft2_4FGL_J2331.0-2147_daily_bin1617.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/502695/ft1_4FGL_J2331.0-2147_daily_bin1617.fits outfile=/scratch/kocevski/502695/ft1_filteredMKT_4FGL_J2331.0-2147_daily_bin1617.fits ra=352.763 dec=-21.7953 rad=12.0 tmin=658454401.0 tmax=658713601.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 2.94
user 2.72
sys 0.21

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

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

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/502695/ft1_filtered_4FGL_J2331.0-2147_daily_bin1617.fits" evtable="EVENTS" scfile=/scratch/kocevski/502695/ft2_4FGL_J2331.0-2147_daily_bin1617.fits sctable="SC_DATA" outfile=/scratch/kocevski/502695/ltcube_658454401_658713601_4FGL_J2331.0-2147_daily_bin1617.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/502695/ft2_4FGL_J2331.0-2147_daily_bin1617.fits
.....................!
real 13.68
user 13.26
sys 0.37

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/502695/ft1_filtered_4FGL_J2331.0-2147_daily_bin1617.fits evtable="EVENTS" scfile=/scratch/kocevski/502695/ft2_4FGL_J2331.0-2147_daily_bin1617.fits sctable="SC_DATA" expcube=/scratch/kocevski/502695/ltcube_658454401_658713601_4FGL_J2331.0-2147_daily_bin1617.fits outfile=/scratch/kocevski/502695/expmap_658454401_658713601_4FGL_J2331.0-2147_daily_bin1617.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/502695/ltcube_658454401_658713601_4FGL_J2331.0-2147_daily_bin1617.fits
.....................!
real 191.66
user 185.97
sys 5.08

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

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

This is gtbin version HEAD
real 0.54
user 0.39
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/502695/ft1_filtered_4FGL_J2331.0-2147_daily_bin1617.fits scfile=/scratch/kocevski/502695/ft2_4FGL_J2331.0-2147_daily_bin1617.fits outfile=/scratch/kocevski/502695/cmap_HighResolution_658454401_658713601_4FGL_J2331.0-2147_daily_bin1617.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.38
sys 0.17

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/502695/ft1_filtered_4FGL_J2331.0-2147_daily_bin1617.fits evtable="EVENTS" scfile=/scratch/kocevski/502695/ft2_4FGL_J2331.0-2147_daily_bin1617.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/502695/Model_4FGL_J2331.0-2147_daily_bin1617.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/502695/ft1_filtered_4FGL_J2331.0-2147_daily_bin1617.fits.....................!
real 72.00
user 69.80
sys 1.25

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10067E-03   1.0000         .10000E-03   10000.    
     2 'norm      '    3.8419       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10056E-03   1.0000         .10000E-03   10000.    
     4 'norm      '    .10353E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .11431E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    6.6466       1.0000         .10000E-03   10000.    
     7 'norm      '    .36227       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .44147E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10019E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    1.6711       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    6.3248       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10000E-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      '    38.414       1.0000         .10000E-03   10000.    
    19 'Prefactor '    10.445       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .14206E-03   1.0000         .10000E-03   10000.    
    21 'Normalizat'    1.1165       1.0000         .10000E-01   10.000    
    22 'Prefactor '    .87149       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5370E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   10195.17     FROM MIGRAD    STATUS=CONVERGED    891 CALLS     2498 TOTAL
                     EDM=   .25E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    29.793        .18142E-02** at limit **
   2  norm          3.8411        1.8110        .90680E-04   -.58599E-03
   3  Prefactor     .10001E-03    75.234        .36285E-03** at limit **
   4  norm          .10001E-03    5.9857        .20504E-02** at limit **
   5  Prefactor     .10000E-03    9.2981        .18142E-02** at limit **
   6  Prefactor     6.6358        6.5347        .15565E-03   -.81498E-03
   7  norm          .36331        .48212        .59943E-03   -.23018E-02
   8  Prefactor     .24740E-01    4.8414        .66532E-01    .23807E-03
   9  Prefactor     .10000E-03    2.8488        .16496E-02** at limit **
  10  Prefactor     1.6705        14.706        .16305E-02   -.28392E-04
  11  Prefactor     .10000E-03    10.638        .18142E-02** at limit **
  12  norm          6.3256        2.5935        .99668E-04    .20304E-04
  13  Prefactor     .10000E-03    14.748        .18142E-02** at limit **
  14  Prefactor     .10000E-03    4.4580        .18142E-02** at limit **
  15  Prefactor     .10000E-03    7.1603        .18142E-02** at limit **
  16  Prefactor     .10000E-03    28.133        .18142E-02** at limit **
  17  norm          .10000E-03    .25794        .72292E-03** at limit **
  18  norm          38.415        5.4494        .64668E-04   -.10037E-02
  19  Prefactor     10.437        24.159        .12398E-03    .87298E-04
  20  Prefactor     .10000E-03    103.81        .18142E-02** at limit **
  21  Normalizat    1.1163        .16345        .23399E-03   -.25957E-03
  22  Prefactor     .87152        .16442        .26419E-03   -.87354E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  norm       = 3.84113
  Prefactor  = 0.000100005
  norm       = 0.000100008
  Prefactor  = 0.0001
  Prefactor  = 6.63579
  norm       = 0.363305
  Prefactor  = 0.0247403
  Prefactor  = 0.0001
  Prefactor  = 1.67054
  Prefactor  = 0.0001
  norm       = 6.32559
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 38.4149
  Prefactor  = 10.4372
  Prefactor  = 0.0001
  Normalizat = 1.11634
  Prefactor  = 0.871524
 **********
 **   18 **HESSE 
 **********

 FCN=   10195.17     FROM HESSE     STATUS=OK           334 CALLS     2832 TOTAL
                     EDM=   .26E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    29.798        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          3.8411        1.8110        .18136E-04   -1.5316    
   3  Prefactor     .10001E-03    75.238        .72569E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  norm          .10001E-03    6.0543        .41008E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    9.3014        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     6.6358        6.5027        .62260E-05   -1.5193    
   7  norm          .36331        .47972        .23977E-04   -1.5587    
   8  Prefactor     .24740E-01    4.7125        .68011E-01   -1.5677    
   9  Prefactor     .10000E-03    2.8502        .32993E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     1.6705        14.699        .65220E-04   -1.5449    
  11  Prefactor     .10000E-03    10.638        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          6.3256        2.5935        .39867E-05   -1.5205    
  13  Prefactor     .10000E-03    14.750        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    4.4586        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    7.1609        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    28.133        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          .10000E-03    .25829        .14458E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          38.415        5.4486        .12934E-04   -1.4468    
  19  Prefactor     10.437        24.153        .49591E-05   -1.5062    
  20  Prefactor     .10000E-03    103.87        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Normalizat    1.1163        .16362        .46797E-04   -.89229    
  22  Prefactor     .87152        .16456        .10568E-04   -.97143    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.57731e-09
Minuit parameter uncertainties:
  1  0.000139223
  2  1.81102
  3  0.00124955
  4  0.000431236
  5  0.000109041
  6  6.50336
  7  0.479728
  8  0.681571
  9  1.96999e-05
  10  9.91362
  11  6.41273e-06
  12  2.59351
  13  2.35024e-05
  14  9.81844e-06
  15  6.11853e-06
  16  1.22387e-05
  17  1.2784e-05
  18  5.44869
  19  24.1752
  20  0.000208047
  21  0.163692
  22  0.164651
Done.

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

Extracting fit parameters...

4FGL J2331.0-2147
   Spectrum: LogParabola
418         norm:  6.326e+00  2.594e+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.715e-01  1.647e-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.116e+00  1.637e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 12.27
Ra Dec: 352.763 -21.795
Photon Index (Fixed Index): 2.43 +/- 0.00
Photon Flux (Fixed Index): 6.78e-08 +/- 2.78e-08
Energy Flux (Fixed Index): 2.25e-05 +/- 9.24e-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) = 10195.1294553
delta logL = 0.040974829586

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 10195.1218068
delta logL = 0.0486233578813

Fit tolerance = 1e-08

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

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

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          6.8354        46.649        .38367E-02   -.76493E-03
   2  alpha         2.3121        3.6557        .30054       -.10794E-04
   3  Normalizat    1.1233        .79946E-01    .37126E-01   -.36024E-04
   4  Prefactor     .86726        .61112E-01    .44588E-01    .43716E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 6.83535
  alpha      = 2.31206
  Normalizat = 1.12334
  Prefactor  = 0.867261
 **********
 **   18 **HESSE 
 **********

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

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          6.8354        3.2627        .10591E-03   -1.5185    
   2  alpha         2.3121        .39328        .11345E-01   -.75247E-01
   3  Normalizat    1.1233        .16146        .23338E-03   -.89006    
   4  Prefactor     .86726        .16244        .26480E-03   -.97295    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 8.0376e-10
Minuit parameter uncertainties:
  1  3.26282
  2  0.394925
  3  0.161535
  4  0.162532
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/502695': 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) = 10195.1218061
delta logL = 0.0486240732462

Extracting fit parameters...

4FGL J2331.0-2147
   Spectrum: LogParabola
418         norm:  6.835e+00  3.263e+00  1.000e-04  1.000e+04 ( 1.000e-12)
419        alpha:  2.312e+00  3.949e-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.673e-01  1.625e-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.123e+00  1.615e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 12.31
Ra Dec: 352.763 -21.795
Photon Index (Free Index): 2.31 +/- 0.39
Photon Flux (Free Index): 6.21e-08 +/- 3.18e-08
Energy Flux (Free Index): 2.34e-05 +/- 1.03e-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/502695/cmap_HighResolution_658454401_658713601_4FGL_J2331.0-2147_daily_bin1617.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='6.78e-08', energy_flux2='2.34e-05', photon_flux_error='2.78e-08', dlogl='4.86e-02', energy_flux='2.25e-05', photon_flux2='6.21e-08', job_status='DONE', time_completed='2021-12-08 09:49:09.935515', photon_index_error2='0.39', photon_index2='2.31', ts='12.27', fit_tolerance='1e-08', GAL='0.87', photon_index_error='0.00', energy_flux_error2='1.03e-05', EG='1.12', time_epoch_completed='1638985749.94', return_code='0', job_id='502695', GAL2='0.87', EG2='1.12', return_code2='0', energy_flux_error='9.24e-06', photon_flux_error2='3.18e-08', ts2='12.31', photon_index='2.43' WHERE bin_id='1617' AND source_name='4FGL J2331.0-2147' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Dec  8 09:49:09 PST 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0294>
Subject: Job 502695: <4FGL_J2331.0-2147_daily_bin1617> in cluster <slac> Done

Job <4FGL_J2331.0-2147_daily_bin1617> was submitted from host <rhel6-64n> by user <kocevski> in cluster <slac> at Wed Dec  8 09:35:21 2021
Job was executed on host(s) <bullet0294>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Dec  8 09:35:59 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Wed Dec  8 09:35:59 2021
Terminated at Wed Dec  8 09:49:10 2021
Results reported at Wed Dec  8 09:49:10 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2331.0-2147_daily_bin1617 352.763 -21.7953 658454401 658713601 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 :                                   726.00 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             368.37 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   791 sec.
    Turnaround time :                            829 sec.

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

