/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 230 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.3-1558_daily_bin1362
RA = 352.839, Dec = -15.9777
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='15293', job_status='RUN', time_executed='2021-09-29 23:24:24.011702', time_epoch_executed='1632983064.01' WHERE source_name='4FGL J2331.3-1558' and cadence='daily' and bin_id='1362'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/15293

Creating custom pfile directory:
/scratch/kocevski/15293/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/15293/ft1_4FGL_J2331.3-1558_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/15293/ft2_4FGL_J2331.3-1558_daily_bin1362.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/15293/ft1_4FGL_J2331.3-1558_daily_bin1362.fits outfile=/scratch/kocevski/15293/ft1_filteredMKT_4FGL_J2331.3-1558_daily_bin1362.fits ra=352.839 dec=-15.9777 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.48
user 3.26
sys 0.20

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/15293/ft2_4FGL_J2331.3-1558_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/15293/ft1_filteredMKT_4FGL_J2331.3-1558_daily_bin1362.fits evtable="EVENTS" outfile="/scratch/kocevski/15293/ft1_filtered_4FGL_J2331.3-1558_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.51
user 0.35
sys 0.14

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/15293/ft1_filtered_4FGL_J2331.3-1558_daily_bin1362.fits" evtable="EVENTS" scfile=/scratch/kocevski/15293/ft2_4FGL_J2331.3-1558_daily_bin1362.fits sctable="SC_DATA" outfile=/scratch/kocevski/15293/ltcube_592358401_592617601_4FGL_J2331.3-1558_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/15293/ft2_4FGL_J2331.3-1558_daily_bin1362.fits
.....................!
real 11.74
user 11.42
sys 0.29

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/15293/ft1_filtered_4FGL_J2331.3-1558_daily_bin1362.fits evtable="EVENTS" scfile=/scratch/kocevski/15293/ft2_4FGL_J2331.3-1558_daily_bin1362.fits sctable="SC_DATA" expcube=/scratch/kocevski/15293/ltcube_592358401_592617601_4FGL_J2331.3-1558_daily_bin1362.fits outfile=/scratch/kocevski/15293/expmap_592358401_592617601_4FGL_J2331.3-1558_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/15293/ltcube_592358401_592617601_4FGL_J2331.3-1558_daily_bin1362.fits
.....................!
real 190.93
user 186.23
sys 4.31

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/15293/ft1_filtered_4FGL_J2331.3-1558_daily_bin1362.fits scfile=/scratch/kocevski/15293/ft2_4FGL_J2331.3-1558_daily_bin1362.fits outfile=/scratch/kocevski/15293/cmap_592358401_592617601_4FGL_J2331.3-1558_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.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.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/15293/ft1_filtered_4FGL_J2331.3-1558_daily_bin1362.fits scfile=/scratch/kocevski/15293/ft2_4FGL_J2331.3-1558_daily_bin1362.fits outfile=/scratch/kocevski/15293/cmap_HighResolution_592358401_592617601_4FGL_J2331.3-1558_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.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.57
user 0.38
sys 0.16

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/15293/ft1_filtered_4FGL_J2331.3-1558_daily_bin1362.fits evtable="EVENTS" scfile=/scratch/kocevski/15293/ft2_4FGL_J2331.3-1558_daily_bin1362.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/15293/Model_4FGL_J2331.3-1558_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/15293/ft1_filtered_4FGL_J2331.3-1558_daily_bin1362.fits.....................!
real 52.51
user 51.24
sys 1.11

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .91854E-03   1.0000         .10000E-03   10000.    
     2 'norm      '    .10012E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    89.245       1.0000         .10000E-03   10000.    
     4 'norm      '    12.200       1.0000         .10000E-03   10000.    
     5 'Prefactor '    57.747       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10330E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10808E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    134.72       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    6.3188       1.0000         .10000E-03   10000.    
    13 'Prefactor '    54.315       1.0000         .10000E-03   10000.    
    14 'Prefactor '    5.5714       1.0000         .10000E-03   10000.    
    15 'Prefactor '    10.632       1.0000         .10000E-03   10000.    
    16 'Prefactor '    182.47       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10344E-03   1.0000         .10000E-03   10000.    
    18 'norm      '    .18356       1.0000         .10000E-03   10000.    
    19 'norm      '    92.308       1.0000         .10000E-03   10000.    
    20 'Prefactor '    7.1584       1.0000         .10000E-03   10000.    
    21 'Normalizat'    .98186       1.0000         .10000E-01   10.000    
    22 'Prefactor '    .58295       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=   5980.141     FROM MIGRAD    STATUS=CONVERGED    459 CALLS     2491 TOTAL
                     EDM=   .52E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.8%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .94434E-03    7.0200        .83923E-06** at limit **
   2  norm          .10000E-03    19.118        .24108E-06** at limit **
   3  Prefactor     89.128        70.040       -.13989E-04   -.12857E-03
   4  norm          12.209        5.6726        .33366E-05    .31084E-03
   5  Prefactor     57.746        71.206       -.32789E-05   -.10717E-04
   6  Prefactor     .10000E-03    18.846        .47089E-06** at limit **
   7  Prefactor     .10000E-03    26.322       -.16799E-05** at limit **
   8  Prefactor     134.71        75.653       -.36382E-06   -.24152E-04
   9  Prefactor     .10000E-03    7.0307        .98992E-07** at limit **
  10  Prefactor     .10000E-03    4.0067       -.71494E-06** at limit **
  11  norm          .10000E-03    1.5864       -.29674E-06** at limit **
  12  norm          6.3173        3.8006       -.25761E-07    .47224E-04
  13  Prefactor     54.395        74.595       -.45387E-05    .12732E-04
  14  Prefactor     5.5304        22.194        .40879E-05   -.23907E-05
  15  Prefactor     10.630        30.147       -.80500E-06    .87039E-05
  16  Prefactor     182.38        95.119       -.11870E-05   -.11680E-03
  17  Prefactor     .10000E-03    27.761        .10335E-06** at limit **
  18  norm          .18492        1.7034        .29719E-06   -.43334E-03
  19  norm          92.291        17.326       -.85921E-07   -.34323E-03
  20  Prefactor     7.1422        10.704       -.61763E-06   -.97540E-04
  21  Normalizat    .98270        .22731        .73651E-05   -.30067E-03
  22  Prefactor     .58226        .18351       -.70548E-05    .74998E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000944338
  norm       = 0.0001
  Prefactor  = 89.1276
  norm       = 12.2091
  Prefactor  = 57.7459
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 134.708
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 6.31726
  Prefactor  = 54.3948
  Prefactor  = 5.53037
  Prefactor  = 10.6304
  Prefactor  = 182.376
  Prefactor  = 0.0001
  norm       = 0.184923
  norm       = 92.2908
  Prefactor  = 7.14218
  Normalizat = 0.982704
  Prefactor  = 0.582261
 **********
 **   18 **HESSE 
 **********

 FCN=   5980.141     FROM HESSE     STATUS=OK           350 CALLS     2841 TOTAL
                     EDM=   .31E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .94434E-03    12.177        .66745E-01   -1.5702    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          .10000E-03    19.141        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     89.128        70.622        .42533E-04   -1.3817    
   4  norm          12.209        5.7230        .57673E-04   -1.5009    
   5  Prefactor     57.746        71.090        .52792E-04   -1.4187    
   6  Prefactor     .10000E-03    19.090        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    26.684        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     134.71        75.841        .17348E-03   -1.3381    
   9  Prefactor     .10000E-03    7.0309        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    4.0121        .15115E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          .10000E-03    1.5879        .95129E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          6.3173        3.7951        .10726E-03   -1.5205    
  13  Prefactor     54.395        74.505        .54425E-04   -1.4232    
  14  Prefactor     5.5304        22.135        .17021E-03   -1.5238    
  15  Prefactor     10.630        30.141        .12287E-03   -1.5056    
  16  Prefactor     182.38        95.552        .14943E-03   -1.2999    
  17  Prefactor     .10000E-03    27.762        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          .18492        2.0374        .12063E-02   -1.5622    
  19  norm          92.291        14.165        .41827E-04   -1.3784    
  20  Prefactor     7.1422        10.742        .14993E-03   -1.5173    
  21  Normalizat    .98270        .25969        .29048E-03   -.93612    
  22  Prefactor     .58226        .20778        .32059E-03   -1.0834    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.14945e-08
Minuit parameter uncertainties:
  1  0.202833
  2  1.18521e-06
  3  70.6882
  4  5.72325
  5  71.1943
  6  5.61612e-05
  7  7.05135e-05
  8  75.8958
  9  4.72238e-06
  10  1.90631e-05
  11  4.95675e-06
  12  3.7952
  13  74.633
  14  22.1423
  15  30.1839
  16  95.633
  17  1.91112e-06
  18  1.22734
  19  14.1655
  20  10.7449
  21  0.260024
  22  0.208057
Done.

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

Extracting fit parameters...

4FGL J2331.3-1558
   Spectrum: PowerLaw
425    Prefactor:  5.530e+00  2.214e+01  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.823e-01  2.081e-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:  9.827e-01  2.600e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 0.11
Ra Dec: 352.839 -15.978
Photon Flux Upper Limit: 1.26e-07 ph cm-2 s-1
Energy Flux Upper Limit: 9.82e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/15293/likelihoodResults_592358401_592617601_4FGL_J2331.3-1558_daily_bin1362.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) = 5980.13158457
delta logL = 0.00937874656302

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5980.12917228
delta logL = 0.0117910403906

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    4.4824       1.0000         .10000E-03   10000.    
     2 'Index     '    2.8889       1.0000          .0000       10.000    
     3 'Normalizat'    .97691       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .58543       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.
 MACHINE ACCURACY LIMITS FURTHER IMPROVEMENT.

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   5980.129     FROM MIGRAD    STATUS=CONVERGED    107 CALLS      278 TOTAL
                     EDM=   .17E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     4.4419        22.284        .95089E-03   -.96149E-04
   2  Index         2.8969        2.6556        .48895E-02   -.29441E-04
   3  Normalizat    .97696        .24020        .29116E-03   -.33462E-04
   4  Prefactor     .58538        .20601        .31978E-03   -.31392E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 4.44187
  Index      = 2.89692
  Normalizat = 0.976962
  Prefactor  = 0.585383
 **********
 **   18 **HESSE 
 **********

 FCN=   5980.129     FROM HESSE     STATUS=OK            23 CALLS      301 TOTAL
                     EDM=   .16E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     4.4419        17.677        .38036E-04   -1.5286    
   2  Index         2.8969        2.3925        .19558E-03   -.43412    
   3  Normalizat    .97696        .24019        .11647E-04   -.93806    
   4  Prefactor     .58538        .20596        .12791E-04   -1.0821    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.56436e-10
Minuit parameter uncertainties:
  1  17.6979
  2  2.52019
  3  0.240454
  4  0.20622
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/15293': 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) = 5980.12916687
delta logL = 0.0117964466535

Extracting fit parameters...

4FGL J2331.3-1558
   Spectrum: PowerLaw
425    Prefactor:  4.442e+00  1.770e+01  1.000e-04  1.000e+04 ( 1.000e-13)
426        Index:  2.897e+00  2.520e+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.854e-01  2.062e-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:  9.770e-01  2.405e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 0.11
Ra Dec: 352.839 -15.978

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/15293/cmap_HighResolution_592358401_592617601_4FGL_J2331.3-1558_daily_bin1362.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='9.82e-03', job_status='DONE', photon_flux_upper_limit='1.26e-07', time_completed='2021-09-29 23:35:26.722110', job_id='15293', GAL2='0.59', fit_tolerance='1e-08', EG2='0.98', EG='0.98', time_epoch_completed='1632983726.72', return_code2='0', ts='0.11', comment='SUCCESS', return_code='0', GAL='0.58', dlogl='1.18e-02', ts2='0.13', photon_index_error='0.00', photon_index='2.54' WHERE bin_id='1362' AND source_name='4FGL J2331.3-1558' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep 29 23:35:26 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0208>
Subject: Job 15293: <4FGL_J2331.3-1558_daily_bin1362> in cluster <slac> Done

Job <4FGL_J2331.3-1558_daily_bin1362> was submitted from host <rhel6-64d> by user <kocevski> in cluster <slac> at Wed Sep 29 23:20:22 2021
Job was executed on host(s) <bullet0208>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Sep 29 23:20:24 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:20:24 2021
Terminated at Wed Sep 29 23:35:27 2021
Results reported at Wed Sep 29 23:35:27 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2331.3-1558_daily_bin1362 352.839 -15.9777 592358401 592617601 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 :                                   615.02 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             283.72 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   903 sec.
    Turnaround time :                            905 sec.

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

