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


Performing analysis on: 4FGL_J2331.3-1558_daily_bin1012
RA = 352.839, Dec = -15.9777
tmin = 501638401, tmax = 501897601
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='13744', job_status='RUN', time_executed='2021-09-29 23:15:32.239673', time_epoch_executed='1632982532.24' WHERE source_name='4FGL J2331.3-1558' and cadence='daily' and bin_id='1012'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/13744

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/13744/ft1_4FGL_J2331.3-1558_daily_bin1012.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/13744/ft2_4FGL_J2331.3-1558_daily_bin1012.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/13744/ft1_4FGL_J2331.3-1558_daily_bin1012.fits outfile=/scratch/kocevski/13744/ft1_filteredMKT_4FGL_J2331.3-1558_daily_bin1012.fits ra=352.839 dec=-15.9777 rad=12.0 tmin=501638401.0 tmax=501897601.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.27
sys 0.18

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/13744/ft2_4FGL_J2331.3-1558_daily_bin1012.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/13744/ft1_filteredMKT_4FGL_J2331.3-1558_daily_bin1012.fits evtable="EVENTS" outfile="/scratch/kocevski/13744/ft1_filtered_4FGL_J2331.3-1558_daily_bin1012.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.48
user 0.34
sys 0.14

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/13744/ft1_filtered_4FGL_J2331.3-1558_daily_bin1012.fits" evtable="EVENTS" scfile=/scratch/kocevski/13744/ft2_4FGL_J2331.3-1558_daily_bin1012.fits sctable="SC_DATA" outfile=/scratch/kocevski/13744/ltcube_501638401_501897601_4FGL_J2331.3-1558_daily_bin1012.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/13744/ft2_4FGL_J2331.3-1558_daily_bin1012.fits
.....................!
real 12.07
user 11.70
sys 0.32

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/13744/ft1_filtered_4FGL_J2331.3-1558_daily_bin1012.fits evtable="EVENTS" scfile=/scratch/kocevski/13744/ft2_4FGL_J2331.3-1558_daily_bin1012.fits sctable="SC_DATA" expcube=/scratch/kocevski/13744/ltcube_501638401_501897601_4FGL_J2331.3-1558_daily_bin1012.fits outfile=/scratch/kocevski/13744/expmap_501638401_501897601_4FGL_J2331.3-1558_daily_bin1012.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/13744/ltcube_501638401_501897601_4FGL_J2331.3-1558_daily_bin1012.fits
.....................!
real 191.39
user 185.79
sys 5.17

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/13744/ft1_filtered_4FGL_J2331.3-1558_daily_bin1012.fits scfile=/scratch/kocevski/13744/ft2_4FGL_J2331.3-1558_daily_bin1012.fits outfile=/scratch/kocevski/13744/cmap_501638401_501897601_4FGL_J2331.3-1558_daily_bin1012.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.53
user 0.36
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/13744/ft1_filtered_4FGL_J2331.3-1558_daily_bin1012.fits scfile=/scratch/kocevski/13744/ft2_4FGL_J2331.3-1558_daily_bin1012.fits outfile=/scratch/kocevski/13744/cmap_HighResolution_501638401_501897601_4FGL_J2331.3-1558_daily_bin1012.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.53
user 0.38
sys 0.15

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/13744/ft1_filtered_4FGL_J2331.3-1558_daily_bin1012.fits evtable="EVENTS" scfile=/scratch/kocevski/13744/ft2_4FGL_J2331.3-1558_daily_bin1012.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/13744/Model_4FGL_J2331.3-1558_daily_bin1012.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/13744/ft1_filtered_4FGL_J2331.3-1558_daily_bin1012.fits.....................!
real 55.98
user 54.71
sys 1.17

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
     2 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    70.573       1.0000         .10000E-03   10000.    
     4 'norm      '    15.282       1.0000         .10000E-03   10000.    
     5 'Prefactor '    42.502       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    1.8513       1.0000         .10000E-03   10000.    
     8 'Prefactor '    5.4037       1.0000         .10000E-03   10000.    
     9 'Prefactor '    10.671       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .17023E-02   1.0000         .10000E-03   10000.    
    11 'norm      '    .26396E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    4.8625       1.0000         .10000E-03   10000.    
    13 'Prefactor '    3.4393       1.0000         .10000E-03   10000.    
    14 'Prefactor '    25.050       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10304E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    51.402       1.0000         .10000E-03   10000.    
    18 'norm      '    .46125       1.0000         .10000E-03   10000.    
    19 'norm      '    5.0750       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
    21 'Normalizat'    .38005       1.0000         .10000E-01   10.000    
    22 'Prefactor '    1.2676       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=   6857.168     FROM MIGRAD    STATUS=CONVERGED    499 CALLS     2438 TOTAL
                     EDM=   .45E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  4.0%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    3.0520       -.17135E-06** at limit **
   2  norm          .10000E-03    18.749       -.31398E-06** at limit **
   3  Prefactor     70.551        46.758        .83237E-06    .39463E-04
   4  norm          15.284        4.1978       -.13831E-06    .18119E-03
   5  Prefactor     42.486        53.308        .11867E-06    .18101E-04
   6  Prefactor     .10000E-03    3.4058        .26475E-08** at limit **
   7  Prefactor     1.8502        14.696       -.43315E-05   -.62371E-04
   8  Prefactor     5.5438        74.125       -.10495E-06   -.26114E-04
   9  Prefactor     10.671        10.998        .49778E-07    .83830E-05
  10  Prefactor     .10000E-03    40.431        .59447E-05** at limit **
  11  norm          .10004E-03    3.4789        .31803E-06** at limit **
  12  norm          4.8622        2.5528       -.27017E-07   -.14358E-04
  13  Prefactor     3.4415        213.83       -.10215E-05   -.78404E-06
  14  Prefactor     25.050        26.844       -.87668E-07    .23266E-04
  15  Prefactor     .10000E-03    31.507        .15861E-05** at limit **
  16  Prefactor     .10000E-03    13.436       -.97923E-07** at limit **
  17  Prefactor     51.335        86.181       -.27955E-05    .17486E-04
  18  norm          .46126        .44208       -.15163E-06   -.10820E-02
  19  norm          5.0749        3.4984       -.14881E-07   -.48055E-04
  20  Prefactor     .10000E-03    1.9514       -.24671E-06** at limit **
  21  Normalizat    .38016        .17232        .22784E-05    .40989E-04
  22  Prefactor     1.2675        .16952       -.28306E-06    .12701E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 70.5509
  norm       = 15.2842
  Prefactor  = 42.4861
  Prefactor  = 0.0001
  Prefactor  = 1.85022
  Prefactor  = 5.54382
  Prefactor  = 10.6714
  Prefactor  = 0.000100002
  norm       = 0.000100039
  norm       = 4.86219
  Prefactor  = 3.44148
  Prefactor  = 25.0504
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 51.3347
  norm       = 0.461264
  norm       = 5.07489
  Prefactor  = 0.0001
  Normalizat = 0.380155
  Prefactor  = 1.2675
 **********
 **   18 **HESSE 
 **********

 FCN=   6857.168     FROM HESSE     STATUS=OK           352 CALLS     2790 TOTAL
                     EDM=   .31E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    3.0616        .14132E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          .10000E-03    18.815        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     70.551        48.136        .47785E-04   -1.4026    
   4  norm          15.284        4.3641        .47998E-04   -1.4926    
   5  Prefactor     42.486        53.206        .61491E-04   -1.4403    
   6  Prefactor     .10000E-03    3.4103        .14924E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     1.8502        14.769        .30641E-03   -1.5436    
   8  Prefactor     5.5438        75.902        .17287E-03   -1.5237    
   9  Prefactor     10.671        10.999        .12265E-03   -1.5055    
  10  Prefactor     .10000E-03    40.605        .39225E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          .10004E-03    12.959        .26569E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          4.8622        2.5483        .92140E-04   -1.5267    
  13  Prefactor     3.4415        181.29        .21810E-03   -1.5337    
  14  Prefactor     25.050        24.699        .80036E-04   -1.4707    
  15  Prefactor     .10000E-03    31.692        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    13.440        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     51.335        85.316        .55938E-04   -1.4274    
  18  norm          .46126        .42111        .47684E-03   -1.5572    
  19  norm          5.0749        3.4643        .11212E-03   -1.5257    
  20  Prefactor     .10000E-03    1.9701        .11306E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Normalizat    .38016        .18508        .36020E-03   -1.1834    
  22  Prefactor     1.2675        .18387        .20814E-03   -.84279    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.09745e-09
Minuit parameter uncertainties:
  1  5.85843e-06
  2  3.07217e-05
  3  48.1626
  4  4.36415
  5  53.2655
  6  1.22416e-06
  7  10.4582
  8  41.0892
  9  11.0007
  10  0.000507558
  11  0.00142214
  12  2.54834
  13  50.1166
  14  24.7095
  15  7.95408e-05
  16  8.44675e-06
  17  85.5202
  18  0.421117
  19  3.46446
  20  6.79216e-06
  21  0.185374
  22  0.183967
Done.

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

Extracting fit parameters...

4FGL J2331.3-1558
   Spectrum: PowerLaw
425    Prefactor:  2.505e+01  2.471e+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:  1.267e+00  1.840e-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:  3.802e-01  1.854e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 3.74
Ra Dec: 352.839 -15.978
Photon Index (Fixed Index): 2.54 +/- 0.00
Photon Flux (Fixed Index): 5.72e-08 +/- 5.64e-08
Energy Flux (Fixed Index): 1.59e-05 +/- 1.57e-05

TS (Fixed Index): 3.74
Ra Dec: 352.839 -15.978
Photon Flux Upper Limit: 1.30e-07 ph cm-2 s-1
Energy Flux Upper Limit: 1.01e-02 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/13744/likelihoodResults_501638401_501897601_4FGL_J2331.3-1558_daily_bin1012.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) = 6856.8884095
delta logL = 0.2791640382

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6856.88166068
delta logL = 0.285912852314

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    13.842       1.0000         .10000E-03   10000.    
     2 'Index     '    3.0112       1.0000          .0000       10.000    
     3 'Normalizat'    .36030       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.2813       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.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   6856.882     FROM MIGRAD    STATUS=CONVERGED     85 CALLS      295 TOTAL
                     EDM=   .16E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     13.845        20.786        .10766E-03    .16136E-03
   2  Index         3.0109        .83339        .47148E-02    .94977E-04
   3  Normalizat    .36024        .18328        .36954E-03    .17609E-03
   4  Prefactor     1.2812        .18437        .20714E-03    .34439E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 13.8449
  Index      = 3.01085
  Normalizat = 0.360241
  Prefactor  = 1.28123
 **********
 **   18 **HESSE 
 **********

 FCN=   6856.882     FROM HESSE     STATUS=OK            25 CALLS      320 TOTAL
                     EDM=   .97E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     13.845        16.888        .43063E-05   -1.4964    
   2  Index         3.0109        .67769        .18859E-03   -.40915    
   3  Normalizat    .36024        .18311        .14782E-04   -1.1941    
   4  Prefactor     1.2812        .18413        .41428E-04   -.83867    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 9.67072e-11
Minuit parameter uncertainties:
  1  16.8943
  2  0.680177
  3  0.183412
  4  0.184226
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/13744': 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) = 6856.88165935
delta logL = 0.285914183328

Extracting fit parameters...

4FGL J2331.3-1558
   Spectrum: PowerLaw
425    Prefactor:  1.384e+01  1.689e+01  1.000e-04  1.000e+04 ( 1.000e-13)
426        Index:  3.011e+00  6.802e-01  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:  1.281e+00  1.842e-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:  3.602e-01  1.834e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 4.35
Ra Dec: 352.839 -15.978
Photon Index (Free Index): 3.01 +/- 0.68
Photon Flux (Free Index): 7.16e-08 +/- 4.36e-08
Energy Flux (Free Index): 1.42e-05 +/- 8.70e-06

Creating a high resolution counts map...
INFO: Auto-setting vmin to -2.500e-04 [aplpy.core]
INFO: Auto-setting vmax to  2.775e-03 [aplpy.core]
Saving /scratch/kocevski/13744/cmap_HighResolution_501638401_501897601_4FGL_J2331.3-1558_daily_bin1012.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.01e-02', comment='SUCCESS', photon_flux='5.72e-08', energy_flux2='1.42e-05', photon_flux_error='5.64e-08', dlogl='2.86e-01', energy_flux='1.59e-05', photon_flux2='7.16e-08', job_status='DONE', time_completed='2021-09-29 23:26:26.264359', photon_index_error2='0.68', photon_index2='3.01', ts='3.74', fit_tolerance='1e-08', GAL='1.27', photon_index_error='0.00', photon_flux_upper_limit='1.30e-07', energy_flux_error2='8.70e-06', EG='0.38', time_epoch_completed='1632983186.26', return_code='0', job_id='13744', GAL2='1.28', EG2='0.36', return_code2='0', energy_flux_error='1.57e-05', photon_flux_error2='4.36e-08', ts2='4.35', photon_index='2.54' WHERE bin_id='1012' AND source_name='4FGL J2331.3-1558' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep 29 23:26:26 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0077>
Subject: Job 13744: <4FGL_J2331.3-1558_daily_bin1012> in cluster <slac> Done

Job <4FGL_J2331.3-1558_daily_bin1012> was submitted from host <rhel6-64p> by user <kocevski> in cluster <slac> at Wed Sep 29 23:15:16 2021
Job was executed on host(s) <bullet0077>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Sep 29 23:15:17 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:15:17 2021
Terminated at Wed Sep 29 23:26:26 2021
Results reported at Wed Sep 29 23:26:26 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2331.3-1558_daily_bin1012 352.839 -15.9777 501638401 501897601 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 :                                   651.42 sec.
    Max Memory :                                 1136 MB
    Average Memory :                             320.95 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   669 sec.
    Turnaround time :                            670 sec.

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

