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


Performing analysis on: 4FGL_J2331.3-1558_daily_bin131
RA = 352.839, Dec = -15.9777
tmin = 273283201, tmax = 273542401
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='10506', job_status='RUN', time_executed='2021-09-29 23:07:43.045473', time_epoch_executed='1632982063.05' WHERE source_name='4FGL J2331.3-1558' and cadence='daily' and bin_id='131'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/10506

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/10506/ft1_4FGL_J2331.3-1558_daily_bin131.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/10506/ft2_4FGL_J2331.3-1558_daily_bin131.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/10506/ft1_4FGL_J2331.3-1558_daily_bin131.fits outfile=/scratch/kocevski/10506/ft1_filteredMKT_4FGL_J2331.3-1558_daily_bin131.fits ra=352.839 dec=-15.9777 rad=12.0 tmin=273283201.0 tmax=273542401.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 1.71
user 1.52
sys 0.18

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/10506/ft1_filtered_4FGL_J2331.3-1558_daily_bin131.fits" evtable="EVENTS" scfile=/scratch/kocevski/10506/ft2_4FGL_J2331.3-1558_daily_bin131.fits sctable="SC_DATA" outfile=/scratch/kocevski/10506/ltcube_273283201_273542401_4FGL_J2331.3-1558_daily_bin131.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/10506/ft2_4FGL_J2331.3-1558_daily_bin131.fits
.....................!
real 12.51
user 12.15
sys 0.33

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/10506/ft1_filtered_4FGL_J2331.3-1558_daily_bin131.fits evtable="EVENTS" scfile=/scratch/kocevski/10506/ft2_4FGL_J2331.3-1558_daily_bin131.fits sctable="SC_DATA" expcube=/scratch/kocevski/10506/ltcube_273283201_273542401_4FGL_J2331.3-1558_daily_bin131.fits outfile=/scratch/kocevski/10506/expmap_273283201_273542401_4FGL_J2331.3-1558_daily_bin131.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/10506/ltcube_273283201_273542401_4FGL_J2331.3-1558_daily_bin131.fits
.....................!
real 190.54
user 184.89
sys 5.27

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/10506/ft1_filtered_4FGL_J2331.3-1558_daily_bin131.fits scfile=/scratch/kocevski/10506/ft2_4FGL_J2331.3-1558_daily_bin131.fits outfile=/scratch/kocevski/10506/cmap_273283201_273542401_4FGL_J2331.3-1558_daily_bin131.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/10506/ft1_filtered_4FGL_J2331.3-1558_daily_bin131.fits scfile=/scratch/kocevski/10506/ft2_4FGL_J2331.3-1558_daily_bin131.fits outfile=/scratch/kocevski/10506/cmap_HighResolution_273283201_273542401_4FGL_J2331.3-1558_daily_bin131.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.60
user 0.39
sys 0.16

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/10506/ft1_filtered_4FGL_J2331.3-1558_daily_bin131.fits evtable="EVENTS" scfile=/scratch/kocevski/10506/ft2_4FGL_J2331.3-1558_daily_bin131.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/10506/Model_4FGL_J2331.3-1558_daily_bin131.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/10506/ft1_filtered_4FGL_J2331.3-1558_daily_bin131.fits.....................!
real 50.45
user 49.15
sys 1.16

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

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      '    .21041E-01   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .27799E-01   1.0000         .10000E-03   10000.    
     4 'norm      '    .92507       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    120.57       1.0000         .10000E-03   10000.    
     9 'Prefactor '    3.0216       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .24805E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    1.1039       1.0000         .10000E-03   10000.    
    12 'norm      '    .10411E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    12.231       1.0000         .10000E-03   10000.    
    15 'Prefactor '    9.4360       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10492E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10476E-03   1.0000         .10000E-03   10000.    
    18 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    19 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    2.9393       1.0000         .10000E-03   10000.    
    21 'Normalizat'    .76058       1.0000         .10000E-01   10.000    
    22 'Prefactor '    .96346       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5340E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   5967.138     FROM MIGRAD    STATUS=CONVERGED    188 CALLS     2203 TOTAL
                     EDM=   .70E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  3.9%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    3.9969       -.99943E-06** at limit **
   2  norm          1.4374        281.82       -.32201E-04   -.13415E-04
   3  Prefactor     .10002E-03    224.65       -.73180E-04** at limit **
   4  norm          .92771        .75190        .54795E-06    .91935E-03
   5  Prefactor     .10000E-03    11.089        .12327E-04** at limit **
   6  Prefactor     .10000E-03    3.1176        .10296E-05** at limit **
   7  Prefactor     .10000E-03    1.9012        .28422E-06** at limit **
   8  Prefactor     120.57        50.219       -.10458E-04   -.19427E-02
   9  Prefactor     3.0433        3.2132       -.37720E-05    .54547E-02
  10  Prefactor     .10000E-03    7.3608        .21668E-05** at limit **
  11  norm          1.1085        3.7607       -.24493E-05    .14189E-04
  12  norm          .10000E-03    1.8896        .13782E-05** at limit **
  13  Prefactor     .10000E-03    11.795       -.78824E-05** at limit **
  14  Prefactor     12.247        11.800        .13132E-05   -.10627E-02
  15  Prefactor     9.4564        1.7347       -.98068E-06   -.30491E-02
  16  Prefactor     .10000E-03    49.064       -.10509E-04** at limit **
  17  Prefactor     .10000E-03    81.786        .29764E-05** at limit **
  18  norm          .10000E-03    .29457       -.49218E-06** at limit **
  19  norm          .10000E-03    .93513        .60076E-07** at limit **
  20  Prefactor     2.9479        5.4883        .30898E-06    .19899E-04
  21  Normalizat    .75996        .18396        .31826E-05    .35932E-04
  22  Prefactor     .96330        .17621       -.13523E-06    .46348E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  norm       = 1.43739
  Prefactor  = 0.000100022
  norm       = 0.927713
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 120.574
  Prefactor  = 3.04325
  Prefactor  = 0.0001
  norm       = 1.1085
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 12.2466
  Prefactor  = 9.45637
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 2.94788
  Normalizat = 0.759957
  Prefactor  = 0.963302
 **********
 **   18 **HESSE 
 **********

 FCN=   5967.138     FROM HESSE     STATUS=OK           390 CALLS     2593 TOTAL
                     EDM=   .36E-06    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    3.9811        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          1.4374        275.48        .91278E-02   -1.5468    
   3  Prefactor     .10002E-03    9.4405        .91612E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  norm          .92771        1.0086        .12898E-01   -1.5515    
   5  Prefactor     .10000E-03    11.065        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    3.1087        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    1.9017        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     120.57        51.474        .91625E-03   -1.3507    
   9  Prefactor     3.0433        20.603        .58366E-02   -1.5359    
  10  Prefactor     .10000E-03    7.3587        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          1.1085        3.8202        .11283E-01   -1.5497    
  12  norm          .10000E-03    1.8256        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    11.807        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     12.247        11.881        .28635E-02   -1.5008    
  15  Prefactor     9.4564        24.030        .32616E-02   -1.5093    
  16  Prefactor     .10000E-03    48.959        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    80.723        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          .10000E-03    .15611        .15471E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  norm          .10000E-03    .93233        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     2.9479        5.4850        .59227E-02   -1.5365    
  21  Normalizat    .75996        .15845        .43094E-01   -1.0157    
  22  Prefactor     .96330        .14859        .45809E-01   -.93963    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.64621e-07
Minuit parameter uncertainties:
  1  1.13181e-07
  2  39.9847
  3  0.000910857
  4  1.00863
  5  1.3576e-06
  6  7.85401e-08
  7  4.5732e-08
  8  51.4934
  9  15.8444
  10  5.53699e-07
  11  3.82106
  12  1.92096e-08
  13  8.25075e-07
  14  11.8832
  15  24.0546
  16  0.00017055
  17  0.000323293
  18  2.90209e-09
  19  2.29294e-08
  20  5.48597
  21  0.158543
  22  0.148658
Done.

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

Extracting fit parameters...

4FGL J2331.3-1558
   Spectrum: PowerLaw
425    Prefactor:  1.225e+01  1.188e+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:  9.633e-01  1.487e-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:  7.600e-01  1.585e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 1.91
Ra Dec: 352.839 -15.978
Photon Index (Fixed Index): 2.54 +/- 0.00
Photon Flux (Fixed Index): 2.80e-08 +/- 2.71e-08
Energy Flux (Fixed Index): 7.77e-06 +/- 7.53e-06

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

Saving results to:
/scratch/kocevski/10506/likelihoodResults_273283201_273542401_4FGL_J2331.3-1558_daily_bin131.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) = 5966.76420215
delta logL = 0.373695624508

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5966.76337848
delta logL = 0.374519294433

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    21.006       1.0000         .10000E-03   10000.    
     2 'Index     '    1.9983       1.0000          .0000       10.000    
     3 'Normalizat'    .77243       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .95356       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=   5966.763     FROM MIGRAD    STATUS=CONVERGED     56 CALLS      267 TOTAL
                     EDM=   .32E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     21.065        672.45        .21848E-02   -.27798E-04
   2  Index         2.0005        5.7239        .23226        .24360E-05
   3  Normalizat    .77238        .88080E-01    .43249E-01    .37863E-05
   4  Prefactor     .95348        .67667E-01    .45684E-01   -.37272E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 21.065
  Index      = 2.0005
  Normalizat = 0.77238
  Prefactor  = 0.953483
 **********
 **   18 **HESSE 
 **********

 FCN=   5966.763     FROM HESSE     STATUS=OK            33 CALLS      300 TOTAL
                     EDM=   .10E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     21.065        19.310        .87391E-04   -1.4790    
   2  Index         2.0005        .56559        .81055E-02   -.64338    
   3  Normalizat    .77238        .18102        .23961E-03   -1.0110    
   4  Prefactor     .95348        .17449        .20890E-03   -.94297    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.01381e-11
Minuit parameter uncertainties:
  1  19.3158
  2  0.567487
  3  0.181166
  4  0.174596
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/10506': 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) = 5966.76336268
delta logL = 0.374535095942

Extracting fit parameters...

4FGL J2331.3-1558
   Spectrum: PowerLaw
425    Prefactor:  2.107e+01  1.932e+01  1.000e-04  1.000e+04 ( 1.000e-13)
426        Index:  2.000e+00  5.675e-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:  9.535e-01  1.746e-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:  7.724e-01  1.812e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 2.66
Ra Dec: 352.839 -15.978
Photon Index (Free Index): 2.00 +/- 0.57
Photon Flux (Free Index): 2.12e-08 +/- 2.18e-08
Energy Flux (Free Index): 1.47e-05 +/- 1.83e-05

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/10506/cmap_HighResolution_273283201_273542401_4FGL_J2331.3-1558_daily_bin131.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='7.28e-03', comment='SUCCESS', photon_flux='2.80e-08', energy_flux2='1.47e-05', photon_flux_error='2.71e-08', dlogl='3.75e-01', energy_flux='7.77e-06', photon_flux2='2.12e-08', job_status='DONE', time_completed='2021-09-29 23:17:28.161520', photon_index_error2='0.57', photon_index2='2.00', ts='1.91', fit_tolerance='1e-08', GAL='0.96', photon_index_error='0.00', photon_flux_upper_limit='9.33e-08', energy_flux_error2='1.83e-05', EG='0.76', time_epoch_completed='1632982648.16', return_code='0', job_id='10506', GAL2='0.95', EG2='0.77', return_code2='0', energy_flux_error='7.53e-06', photon_flux_error2='2.18e-08', ts2='2.66', photon_index='2.54' WHERE bin_id='131' AND source_name='4FGL J2331.3-1558' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep 29 23:17:28 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0202>
Subject: Job 10506: <4FGL_J2331.3-1558_daily_bin131> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2331.3-1558_daily_bin131 352.839 -15.9777 273283201 273542401 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 :                                   582.46 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             333.72 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   730 sec.
    Turnaround time :                            732 sec.

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

