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


Performing analysis on: 4FGL_J2331.3-1558_daily_bin249
RA = 352.839, Dec = -15.9777
tmin = 303868801, tmax = 304128001
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='10679', job_status='RUN', time_executed='2021-09-29 23:08:31.164903', time_epoch_executed='1632982111.16' WHERE source_name='4FGL J2331.3-1558' and cadence='daily' and bin_id='249'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/10679

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/10679/ft1_4FGL_J2331.3-1558_daily_bin249.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/10679/ft2_4FGL_J2331.3-1558_daily_bin249.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/10679/ft1_4FGL_J2331.3-1558_daily_bin249.fits outfile=/scratch/kocevski/10679/ft1_filteredMKT_4FGL_J2331.3-1558_daily_bin249.fits ra=352.839 dec=-15.9777 rad=12.0 tmin=303868801.0 tmax=304128001.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.40
user 3.18
sys 0.20

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/10679/ft2_4FGL_J2331.3-1558_daily_bin249.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/10679/ft2_4FGL_J2331.3-1558_daily_bin249.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/10679/ft1_filteredMKT_4FGL_J2331.3-1558_daily_bin249.fits evtable="EVENTS" outfile="/scratch/kocevski/10679/ft1_filtered_4FGL_J2331.3-1558_daily_bin249.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/10679/ft1_filtered_4FGL_J2331.3-1558_daily_bin249.fits" evtable="EVENTS" scfile=/scratch/kocevski/10679/ft2_4FGL_J2331.3-1558_daily_bin249.fits sctable="SC_DATA" outfile=/scratch/kocevski/10679/ltcube_303868801_304128001_4FGL_J2331.3-1558_daily_bin249.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/10679/ft2_4FGL_J2331.3-1558_daily_bin249.fits
.....................!
real 11.79
user 11.39
sys 0.35

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/10679/ft1_filtered_4FGL_J2331.3-1558_daily_bin249.fits evtable="EVENTS" scfile=/scratch/kocevski/10679/ft2_4FGL_J2331.3-1558_daily_bin249.fits sctable="SC_DATA" expcube=/scratch/kocevski/10679/ltcube_303868801_304128001_4FGL_J2331.3-1558_daily_bin249.fits outfile=/scratch/kocevski/10679/expmap_303868801_304128001_4FGL_J2331.3-1558_daily_bin249.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/10679/ltcube_303868801_304128001_4FGL_J2331.3-1558_daily_bin249.fits
.....................!
real 190.42
user 185.27
sys 4.75

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 164 point sources and 0 extended sources

Setting source of interest to:
4FGL J2331.3-1558 @ 352.839 -15.9777

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/10679/ft1_filtered_4FGL_J2331.3-1558_daily_bin249.fits scfile=/scratch/kocevski/10679/ft2_4FGL_J2331.3-1558_daily_bin249.fits outfile=/scratch/kocevski/10679/cmap_303868801_304128001_4FGL_J2331.3-1558_daily_bin249.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.839 yref=-15.9777 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.12

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/10679/ft1_filtered_4FGL_J2331.3-1558_daily_bin249.fits scfile=/scratch/kocevski/10679/ft2_4FGL_J2331.3-1558_daily_bin249.fits outfile=/scratch/kocevski/10679/cmap_HighResolution_303868801_304128001_4FGL_J2331.3-1558_daily_bin249.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.839 yref=-15.9777 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.36
sys 0.17

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/10679/ft1_filtered_4FGL_J2331.3-1558_daily_bin249.fits evtable="EVENTS" scfile=/scratch/kocevski/10679/ft2_4FGL_J2331.3-1558_daily_bin249.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/10679/Model_4FGL_J2331.3-1558_daily_bin249.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/10679/ft1_filtered_4FGL_J2331.3-1558_daily_bin249.fits.....................!
real 43.47
user 42.01
sys 1.23

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/10679/ft1_filtered_4FGL_J2331.3-1558_daily_bin249.fits', '/scratch/kocevski/10679/ft2_4FGL_J2331.3-1558_daily_bin249.fits', expMap='/scratch/kocevski/10679/expmap_303868801_304128001_4FGL_J2331.3-1558_daily_bin249.fits', expCube='/scratch/kocevski/10679/ltcube_303868801_304128001_4FGL_J2331.3-1558_daily_bin249.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/10679/Model_4FGL_J2331.3-1558_daily_bin249.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J2331.3-1558'

4FGL J2331.3-1558
   Spectrum: PowerLaw
425    Prefactor:  2.463e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-13)
426        Index:  2.542e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
427        Scale:  1.004e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/10679/ft1_filtered_4FGL_J2331.3-1558_daily_bin249.fits
Spacecraft file(s): /scratch/kocevski/10679/ft2_4FGL_J2331.3-1558_daily_bin249.fits
Exposure map: /scratch/kocevski/10679/expmap_303868801_304128001_4FGL_J2331.3-1558_daily_bin249.fits
Exposure cube: /scratch/kocevski/10679/ltcube_303868801_304128001_4FGL_J2331.3-1558_daily_bin249.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/10679/Model_4FGL_J2331.3-1558_daily_bin249.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) = 4828.38094102

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    8.8509       1.0000         .10000E-03   10000.    
     2 'norm      '    .10018E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     4 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    1.1126       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10008E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10214E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10017E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .13921E-02   1.0000         .10000E-03   10000.    
    11 'norm      '    .10035E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    .10662E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10012E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    6.1425       1.0000         .10000E-03   10000.    
    15 'Prefactor '    8.5579       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10043E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10082E-03   1.0000         .10000E-03   10000.    
    18 'norm      '    .11149E-03   1.0000         .10000E-03   10000.    
    19 'norm      '    3.3907       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10034E-03   1.0000         .10000E-03   10000.    
    21 'Normalizat'    1.2677       1.0000         .10000E-01   10.000    
    22 'Prefactor '    .55512       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5340E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   4828.212     FROM MIGRAD    STATUS=CONVERGED    496 CALLS     2044 TOTAL
                     EDM=   .72E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  3.8%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     8.8508        7.9144        .98972E-08    .67232E-05
   2  norm          .10000E-03    18.268        .11688E-06** at limit **
   3  Prefactor     .10000E-03    4.5550       -.14098E-06** at limit **
   4  norm          .10000E-03    .28388       -.62783E-07** at limit **
   5  Prefactor     .10000E-03    7.2032       -.10462E-06** at limit **
   6  Prefactor     1.1037        23.862        .16484E-05    .10220E-04
   7  Prefactor     .10000E-03    4.0389       -.84324E-07** at limit **
   8  Prefactor     .10000E-03    45.124       -.17782E-05** at limit **
   9  Prefactor     .10000E-03    12.750        .14660E-06** at limit **
  10  Prefactor     .10001E-03    9.2768       -.86284E-06** at limit **
  11  norm          .10000E-03    4.9178       -.86777E-07** at limit **
  12  norm          .10000E-03    1.3443        .12800E-05** at limit **
  13  Prefactor     .10000E-03    15.622       -.47950E-06** at limit **
  14  Prefactor     6.1417        8.7225       -.44417E-07   -.59576E-05
  15  Prefactor     8.4698        26.769        .15960E-05    .21684E-05
  16  Prefactor     .10000E-03    37.802       -.38150E-06** at limit **
  17  Prefactor     .10000E-03    32.052        .14642E-05** at limit **
  18  norm          .10000E-03    .43470       -.42481E-07** at limit **
  19  norm          3.3931        4.1743        .16469E-06    .85303E-04
  20  Prefactor     .10000E-03    3.7376       -.20905E-06** at limit **
  21  Normalizat    1.2681        .18556       -.14116E-05    .15521E-03
  22  Prefactor     .55477        .16763        .19638E-05    .23838E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 8.85075
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 1.10373
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000100012
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 6.14172
  Prefactor  = 8.46982
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 3.39306
  Prefactor  = 0.0001
  Normalizat = 1.26814
  Prefactor  = 0.554771
 **********
 **   18 **HESSE 
 **********

 FCN=   4828.212     FROM HESSE     STATUS=OK           338 CALLS     2382 TOTAL
                     EDM=   .39E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     8.8508        7.9132        .13473E-03   -1.5113    
   2  norm          .10000E-03    18.337        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    4.5739        .14484E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  norm          .10000E-03    .29228        .72317E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    7.2100        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     1.1037        24.203        .22361E-02   -1.5498    
   7  Prefactor     .10000E-03    4.0501        .13638E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    45.485        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    12.779        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10001E-03    40.389        .38431E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          .10000E-03    4.9692        .14992E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          .10000E-03    1.3828        .79163E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    15.660        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     6.1417        8.7189        .16199E-03   -1.5212    
  15  Prefactor     8.4698        26.685        .13703E-03   -1.5126    
  16  Prefactor     .10000E-03    37.845        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    32.214        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          .10000E-03    2.8251        .80353E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  norm          3.3931        3.8092        .13571E-03   -1.5340    
  20  Prefactor     .10000E-03    3.7690        .13115E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Normalizat    1.2681        .20537        .19465E-03   -.84522    
  22  Prefactor     .55477        .18370        .25768E-03   -1.0953    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.88855e-10
Minuit parameter uncertainties:
  1  7.91416
  2  1.02088e-05
  3  3.89537e-06
  4  4.2777e-07
  5  2.61756e-06
  6  10.3414
  7  9.25525e-07
  8  0.000188881
  9  1.21425e-05
  10  0.00141498
  11  6.78776e-06
  12  9.44532e-06
  13  3.67762e-05
  14  8.72074
  15  26.7229
  16  2.74327e-05
  17  0.000130434
  18  1.88467e-06
  19  3.80943
  20  2.74161e-06
  21  0.2055
  22  0.183902
Done.

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

Extracting fit parameters...

4FGL J2331.3-1558
   Spectrum: PowerLaw
425    Prefactor:  6.142e+00  8.721e+00  1.000e-04  1.000e+04 ( 1.000e-13)
426        Index:  2.542e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
427        Scale:  1.004e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
531    Prefactor:  5.548e-01  1.839e-01  0.000e+00  1.000e+01 ( 1.000e+00)
532        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
533        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
530   Normalization:  1.268e+00  2.055e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 0.95
Ra Dec: 352.839 -15.978
Photon Flux Upper Limit: 7.81e-08 ph cm-2 s-1
Energy Flux Upper Limit: 6.09e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/10679/likelihoodResults_303868801_304128001_4FGL_J2331.3-1558_daily_bin249.txt

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) = 4828.17636718
delta logL = 0.035919753589

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 4828.17541919
delta logL = 0.0368677415763

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    7.9826       1.0000         .10000E-03   10000.    
     2 'Index     '    2.2192       1.0000          .0000       10.000    
     3 'Normalizat'    1.2726       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .55193       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5340E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   4828.175     FROM MIGRAD    STATUS=CONVERGED     55 CALLS      220 TOTAL
                     EDM=   .47E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     8.1324        13.906        .35478E-02    .27680E-04
   2  Index         2.2122        1.2172        .24664E-01    .24634E-04
   3  Normalizat    1.2725        .17229        .33315E-01    .17643E-05
   4  Prefactor     .55189        .15711        .58387E-01    .23006E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 8.13235
  Index      = 2.21224
  Normalizat = 1.27252
  Prefactor  = 0.551891
 **********
 **   18 **HESSE 
 **********

 FCN=   4828.175     FROM HESSE     STATUS=OK            31 CALLS      251 TOTAL
                     EDM=   .60E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     8.1324        12.696        .14191E-03   -1.5138    
   2  Index         2.2122        1.1167        .98655E-03   -.59143    
   3  Normalizat    1.2725        .19874        .19435E-03   -.84390    
   4  Prefactor     .55189        .18089        .25828E-03   -1.0965    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.95649e-12
Minuit parameter uncertainties:
  1  12.7
  2  1.13064
  3  0.198855
  4  0.181079
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/10679': 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) = 4828.17534824
delta logL = 0.0369386927532

Extracting fit parameters...

4FGL J2331.3-1558
   Spectrum: PowerLaw
425    Prefactor:  8.132e+00  1.270e+01  1.000e-04  1.000e+04 ( 1.000e-13)
426        Index:  2.212e+00  1.131e+00  0.000e+00  1.000e+01 (-1.000e+00)
427        Scale:  1.004e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
531    Prefactor:  5.519e-01  1.811e-01  0.000e+00  1.000e+01 ( 1.000e+00)
532        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
533        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
530   Normalization:  1.273e+00  1.989e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 1.03
Ra Dec: 352.839 -15.978
Photon Index (Free Index): 2.21 +/- 1.13
Photon Flux (Free Index): 1.10e-08 +/- 1.88e-08
Energy Flux (Free Index): 4.85e-06 +/- 8.54e-06

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/10679/cmap_HighResolution_303868801_304128001_4FGL_J2331.3-1558_daily_bin249.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='6.09e-03', comment='SUCCESS', energy_flux2='4.85e-06', dlogl='3.69e-02', photon_flux2='1.10e-08', job_status='DONE', time_completed='2021-09-29 23:17:11.651197', photon_index_error2='1.13', photon_index2='2.21', ts='0.95', fit_tolerance='1e-08', GAL='0.55', photon_index_error='0.00', photon_flux_upper_limit='7.81e-08', energy_flux_error2='8.54e-06', EG='1.27', time_epoch_completed='1632982631.65', return_code='0', job_id='10679', GAL2='0.55', EG2='1.27', return_code2='0', photon_flux_error2='1.88e-08', ts2='1.03', photon_index='2.54' WHERE bin_id='249' AND source_name='4FGL J2331.3-1558' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep 29 23:17:11 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0210>
Subject: Job 10679: <4FGL_J2331.3-1558_daily_bin249> in cluster <slac> Done

Job <4FGL_J2331.3-1558_daily_bin249> was submitted from host <rhel6-64p> by user <kocevski> in cluster <slac> at Wed Sep 29 23:05:30 2021
Job was executed on host(s) <bullet0210>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Sep 29 23:05:32 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Wed Sep 29 23:05:32 2021
Terminated at Wed Sep 29 23:17:12 2021
Results reported at Wed Sep 29 23:17:12 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2331.3-1558_daily_bin249 352.839 -15.9777 303868801 304128001 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J2331.3-1558 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   517.02 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             316.43 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   699 sec.
    Turnaround time :                            702 sec.

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

