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


Performing analysis on: 4FGL_J2331.3-1558_daily_bin1569
RA = 352.839, Dec = -15.9777
tmin = 646012801, tmax = 646272001
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='15621', job_status='RUN', time_executed='2021-09-29 23:21:28.544898', time_epoch_executed='1632982888.54' WHERE source_name='4FGL J2331.3-1558' and cadence='daily' and bin_id='1569'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/15621

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/15621/ft1_4FGL_J2331.3-1558_daily_bin1569.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/15621/ft2_4FGL_J2331.3-1558_daily_bin1569.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/15621/ft1_4FGL_J2331.3-1558_daily_bin1569.fits outfile=/scratch/kocevski/15621/ft1_filteredMKT_4FGL_J2331.3-1558_daily_bin1569.fits ra=352.839 dec=-15.9777 rad=12.0 tmin=646012801.0 tmax=646272001.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 4.57
user 4.35
sys 0.20

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/15621/ft2_4FGL_J2331.3-1558_daily_bin1569.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/15621/ft1_filteredMKT_4FGL_J2331.3-1558_daily_bin1569.fits evtable="EVENTS" outfile="/scratch/kocevski/15621/ft1_filtered_4FGL_J2331.3-1558_daily_bin1569.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.15

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/15621/ft1_filtered_4FGL_J2331.3-1558_daily_bin1569.fits" evtable="EVENTS" scfile=/scratch/kocevski/15621/ft2_4FGL_J2331.3-1558_daily_bin1569.fits sctable="SC_DATA" outfile=/scratch/kocevski/15621/ltcube_646012801_646272001_4FGL_J2331.3-1558_daily_bin1569.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/15621/ft2_4FGL_J2331.3-1558_daily_bin1569.fits
.....................!
real 11.67
user 11.30
sys 0.34

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/15621/ft1_filtered_4FGL_J2331.3-1558_daily_bin1569.fits evtable="EVENTS" scfile=/scratch/kocevski/15621/ft2_4FGL_J2331.3-1558_daily_bin1569.fits sctable="SC_DATA" expcube=/scratch/kocevski/15621/ltcube_646012801_646272001_4FGL_J2331.3-1558_daily_bin1569.fits outfile=/scratch/kocevski/15621/expmap_646012801_646272001_4FGL_J2331.3-1558_daily_bin1569.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/15621/ltcube_646012801_646272001_4FGL_J2331.3-1558_daily_bin1569.fits
.....................!
real 193.25
user 187.71
sys 5.21

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/15621/ft1_filtered_4FGL_J2331.3-1558_daily_bin1569.fits scfile=/scratch/kocevski/15621/ft2_4FGL_J2331.3-1558_daily_bin1569.fits outfile=/scratch/kocevski/15621/cmap_646012801_646272001_4FGL_J2331.3-1558_daily_bin1569.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.52
user 0.37
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/15621/ft1_filtered_4FGL_J2331.3-1558_daily_bin1569.fits scfile=/scratch/kocevski/15621/ft2_4FGL_J2331.3-1558_daily_bin1569.fits outfile=/scratch/kocevski/15621/cmap_HighResolution_646012801_646272001_4FGL_J2331.3-1558_daily_bin1569.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/15621/ft1_filtered_4FGL_J2331.3-1558_daily_bin1569.fits evtable="EVENTS" scfile=/scratch/kocevski/15621/ft2_4FGL_J2331.3-1558_daily_bin1569.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/15621/Model_4FGL_J2331.3-1558_daily_bin1569.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/15621/ft1_filtered_4FGL_J2331.3-1558_daily_bin1569.fits....................!
real 40.53
user 39.27
sys 1.19

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     2 'norm      '    .10023E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    7.6070       1.0000         .10000E-03   10000.    
     4 'norm      '    1.3382       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10173E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    12.852       1.0000         .10000E-03   10000.    
     7 'Prefactor '    11.031       1.0000         .10000E-03   10000.    
     8 'Prefactor '    17.357       1.0000         .10000E-03   10000.    
     9 'Prefactor '    1.3406       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10176E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    2.2666       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10009E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    1.5071       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10022E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10026E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10108E-03   1.0000         .10000E-03   10000.    
    18 'norm      '    .10004E-03   1.0000         .10000E-03   10000.    
    19 'norm      '    9.1193       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    21 'Normalizat'    .82914       1.0000         .10000E-01   10.000    
    22 'Prefactor '    1.0528       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=   4415.558     FROM MIGRAD    STATUS=CONVERGED    496 CALLS     2397 TOTAL
                     EDM=   .61E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  4.6%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    3.3586        .76626E-07** at limit **
   2  norm          .10000E-03    35.573        .12828E-08** at limit **
   3  Prefactor     7.5876        20.933        .20686E-05   -.36882E-04
   4  norm          1.3389        1.5484       -.17794E-06    .45056E-03
   5  Prefactor     .10000E-03    18.536        .32703E-06** at limit **
   6  Prefactor     12.852        9.8169        .17942E-06    .79829E-05
   7  Prefactor     11.029        13.119        .11935E-06   -.20608E-04
   8  Prefactor     17.396        49.809        .14809E-04    .68517E-04
   9  Prefactor     1.3395        52.677        .47430E-05   -.20179E-03
  10  Prefactor     .10000E-03    5.2318       -.59599E-06** at limit **
  11  norm          .10000E-03    2.6951       -.11228E-06** at limit **
  12  norm          2.2664        4.0700        .34871E-06   -.11958E-03
  13  Prefactor     .10000E-03    27.040        .18521E-06** at limit **
  14  Prefactor     1.5048        36.506       -.28061E-06   -.48839E-04
  15  Prefactor     .10000E-03    42.428        .32343E-06** at limit **
  16  Prefactor     .10000E-03    119.45       -.30608E-05** at limit **
  17  Prefactor     .10000E-03    331.14        .26549E-05** at limit **
  18  norm          .10000E-03    .28307        .14558E-06** at limit **
  19  norm          9.1193        5.5318        .57597E-07   -.28970E-03
  20  Prefactor     .10000E-03    1.8184       -.33058E-06** at limit **
  21  Normalizat    .82918        .20372       -.93379E-06   -.78630E-04
  22  Prefactor     1.0528        .19019       -.12445E-05   -.62001E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 7.58755
  norm       = 1.33894
  Prefactor  = 0.0001
  Prefactor  = 12.8517
  Prefactor  = 11.0291
  Prefactor  = 17.3957
  Prefactor  = 1.33945
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 2.26637
  Prefactor  = 0.0001
  Prefactor  = 1.50476
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 9.11926
  Prefactor  = 0.0001
  Normalizat = 0.829178
  Prefactor  = 1.05276
 **********
 **   18 **HESSE 
 **********

 FCN=   4415.558     FROM HESSE     STATUS=OK           342 CALLS     2739 TOTAL
                     EDM=   .42E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    3.3650        .11894E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          .10000E-03    35.757        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     7.5876        25.681        .14540E-03   -1.5157    
   4  norm          1.3389        1.8992        .57143E-04   -1.5477    
   5  Prefactor     .10000E-03    18.562        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     12.852        9.8158        .11173E-03   -1.4991    
   7  Prefactor     11.029        13.116        .12063E-03   -1.5044    
   8  Prefactor     17.396        50.086        .96135E-04   -1.4874    
   9  Prefactor     1.3395        247.73        .18928E-02   -1.5476    
  10  Prefactor     .10000E-03    5.3268        .14932E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          .10000E-03    2.7156        .10657E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          2.2664        4.0575        .17015E-03   -1.5407    
  13  Prefactor     .10000E-03    27.055        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     1.5048        36.605        .34855E-03   -1.5463    
  15  Prefactor     .10000E-03    42.665        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    120.29        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    332.43        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          .10000E-03    .45306        .66050E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  norm          9.1193        5.3529        .11117E-03   -1.5104    
  20  Prefactor     .10000E-03    1.8196        .87476E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Normalizat    .82918        .23633        .26154E-03   -.98995    
  22  Prefactor     1.0528        .22155        .22025E-03   -.90991    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.15443e-09
Minuit parameter uncertainties:
  1  3.38318e-06
  2  3.2316e-05
  3  25.7187
  4  1.89931
  5  2.77786e-05
  6  9.81703
  7  13.1195
  8  50.2078
  9  36.5853
  10  9.84252e-05
  11  1.64905e-05
  12  4.05798
  13  1.74652e-05
  14  14.8532
  15  6.22682e-05
  16  0.000306986
  17  0.00064303
  18  2.35026e-06
  19  5.35317
  20  1.34355e-06
  21  0.236623
  22  0.221742
Done.

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

Extracting fit parameters...

4FGL J2331.3-1558
   Spectrum: PowerLaw
425    Prefactor:  1.505e+00  1.485e+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.053e+00  2.217e-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:  8.292e-01  2.366e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/15621/likelihoodResults_646012801_646272001_4FGL_J2331.3-1558_daily_bin1569.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): 102
logL (Free Index) = 4415.53966052
delta logL = 0.0183882177434

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 4415.5133242
delta logL = 0.0447245394544

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    5.8476       1.0000         .10000E-03   10000.    
     2 'Index     '    2.0054       1.0000          .0000       10.000    
     3 'Normalizat'    .83127       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0484       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=   4415.513     FROM MIGRAD    STATUS=CONVERGED    101 CALLS      310 TOTAL
                     EDM=   .22E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     5.8618        20.602        .83038E-03   -.36007E-05
   2  Index         2.0067        1.3783        .16666E-01   -.29885E-05
   3  Normalizat    .83131        .23107        .26122E-03   -.15363E-04
   4  Prefactor     1.0483        .21839        .22064E-03   -.31946E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 5.86181
  Index      = 2.00668
  Normalizat = 0.831306
  Prefactor  = 1.04833
 **********
 **   18 **HESSE 
 **********

 FCN=   4415.513     FROM HESSE     STATUS=OK            25 CALLS      335 TOTAL
                     EDM=   .34E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     5.8618        20.358        .33215E-04   -1.5224    
   2  Index         2.0067        1.3638        .66664E-03   -.64183    
   3  Normalizat    .83131        .23128        .10449E-04   -.98918    
   4  Prefactor     1.0483        .21857        .88256E-05   -.91135    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.43175e-12
Minuit parameter uncertainties:
  1  20.3822
  2  1.39164
  3  0.231551
  4  0.218757
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/15621': 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) = 4415.51332345
delta logL = 0.0447252866061

Extracting fit parameters...

4FGL J2331.3-1558
   Spectrum: PowerLaw
425    Prefactor:  5.862e+00  2.038e+01  1.000e-04  1.000e+04 ( 1.000e-13)
426        Index:  2.007e+00  1.392e+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:  1.048e+00  2.188e-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:  8.313e-01  2.316e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 0.01
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/15621/cmap_HighResolution_646012801_646272001_4FGL_J2331.3-1558_daily_bin1569.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='8.11e-03', job_status='DONE', photon_flux_upper_limit='1.04e-07', time_completed='2021-09-29 23:30:14.053089', job_id='15621', GAL2='1.05', fit_tolerance='1e-08', EG2='0.83', EG='0.83', time_epoch_completed='1632983414.05', return_code2='0', ts='0.01', comment='SUCCESS', return_code='0', GAL='1.05', dlogl='4.47e-02', ts2='0.10', photon_index_error='0.00', photon_index='2.54' WHERE bin_id='1569' AND source_name='4FGL J2331.3-1558' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep 29 23:30:14 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0221>
Subject: Job 15621: <4FGL_J2331.3-1558_daily_bin1569> in cluster <slac> Done

Job <4FGL_J2331.3-1558_daily_bin1569> was submitted from host <rhel6-64d> by user <kocevski> in cluster <slac> at Wed Sep 29 23:20:52 2021
Job was executed on host(s) <bullet0221>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Sep 29 23:20:54 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:54 2021
Terminated at Wed Sep 29 23:30:14 2021
Results reported at Wed Sep 29 23:30:14 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2331.3-1558_daily_bin1569 352.839 -15.9777 646012801 646272001 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 :                                   522.00 sec.
    Max Memory :                                 1093 MB
    Average Memory :                             286.21 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   560 sec.
    Turnaround time :                            562 sec.

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

