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


Performing analysis on: 4FGL_J2331.3-1558_daily_bin1485
RA = 352.839, Dec = -15.9777
tmin = 624240001, tmax = 624499201
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='15488', job_status='RUN', time_executed='2021-09-29 23:21:03.709355', time_epoch_executed='1632982863.71' WHERE source_name='4FGL J2331.3-1558' and cadence='daily' and bin_id='1485'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/15488

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/15488/ft1_4FGL_J2331.3-1558_daily_bin1485.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/15488/ft2_4FGL_J2331.3-1558_daily_bin1485.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/15488/ft1_4FGL_J2331.3-1558_daily_bin1485.fits outfile=/scratch/kocevski/15488/ft1_filteredMKT_4FGL_J2331.3-1558_daily_bin1485.fits ra=352.839 dec=-15.9777 rad=12.0 tmin=624240001.0 tmax=624499201.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.46
user 3.23
sys 0.22

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/15488/ft1_filtered_4FGL_J2331.3-1558_daily_bin1485.fits" evtable="EVENTS" scfile=/scratch/kocevski/15488/ft2_4FGL_J2331.3-1558_daily_bin1485.fits sctable="SC_DATA" outfile=/scratch/kocevski/15488/ltcube_624240001_624499201_4FGL_J2331.3-1558_daily_bin1485.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/15488/ft2_4FGL_J2331.3-1558_daily_bin1485.fits
.....................!
real 11.90
user 11.52
sys 0.34

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/15488/ft1_filtered_4FGL_J2331.3-1558_daily_bin1485.fits evtable="EVENTS" scfile=/scratch/kocevski/15488/ft2_4FGL_J2331.3-1558_daily_bin1485.fits sctable="SC_DATA" expcube=/scratch/kocevski/15488/ltcube_624240001_624499201_4FGL_J2331.3-1558_daily_bin1485.fits outfile=/scratch/kocevski/15488/expmap_624240001_624499201_4FGL_J2331.3-1558_daily_bin1485.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/15488/ltcube_624240001_624499201_4FGL_J2331.3-1558_daily_bin1485.fits
.....................!
real 190.61
user 185.13
sys 5.12

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/15488/ft1_filtered_4FGL_J2331.3-1558_daily_bin1485.fits scfile=/scratch/kocevski/15488/ft2_4FGL_J2331.3-1558_daily_bin1485.fits outfile=/scratch/kocevski/15488/cmap_624240001_624499201_4FGL_J2331.3-1558_daily_bin1485.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.38
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/15488/ft1_filtered_4FGL_J2331.3-1558_daily_bin1485.fits scfile=/scratch/kocevski/15488/ft2_4FGL_J2331.3-1558_daily_bin1485.fits outfile=/scratch/kocevski/15488/cmap_HighResolution_624240001_624499201_4FGL_J2331.3-1558_daily_bin1485.fits algorithm="CMAP" ebinalg="LOG" emin=30.0 emax=200000.0 ebinfile=NONE tbinalg="LIN" tbinfile=NONE nxpix=500 nypix=500 binsz=0.1 coordsys="CEL" xref=352.839 yref=-15.9777 axisrot=0.0 rafield="RA" decfield="DEC" proj="AIT" hpx_ordering_scheme="RING" hpx_order=3 hpx_ebin=yes hpx_region="" evtable="EVENTS" sctable="SC_DATA" efield="ENERGY" tfield="TIME" chatter=2 clobber=yes debug=no gui=no mode="ql"

WARNING: version mismatch between CFITSIO header (v3.43) and linked library (v3.41).

This is gtbin version HEAD
real 0.54
user 0.37
sys 0.16

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10037E-03   1.0000         .10000E-03   10000.    
     2 'norm      '    25.516       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10021E-03   1.0000         .10000E-03   10000.    
     4 'norm      '    1.1569       1.0000         .10000E-03   10000.    
     5 'Prefactor '    32.879       1.0000         .10000E-03   10000.    
     6 'Prefactor '    24.770       1.0000         .10000E-03   10000.    
     7 'Prefactor '    6.9192       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10183E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10014E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    .16137E-01   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .16584E-02   1.0000         .10000E-03   10000.    
    14 'Prefactor '    9.4137       1.0000         .10000E-03   10000.    
    15 'Prefactor '    36.183       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10442E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    168.27       1.0000         .10000E-03   10000.    
    18 'norm      '    .13306E-03   1.0000         .10000E-03   10000.    
    19 'norm      '    30.806       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .13971E-02   1.0000         .10000E-03   10000.    
    21 'Normalizat'    .87516       1.0000         .10000E-01   10.000    
    22 'Prefactor '    .79402       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=   4407.668     FROM MIGRAD    STATUS=CONVERGED    485 CALLS     2443 TOTAL
                     EDM=   .11E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.6%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    8.8564        .50794E-07** at limit **
   2  norm          25.520        23.970       -.10498E-07   -.69470E-05
   3  Prefactor     .10000E-03    12.046        .33515E-07** at limit **
   4  norm          1.1569        1.0432        .11299E-07    .25812E-05
   5  Prefactor     32.879        33.179       -.93697E-07    .24490E-05
   6  Prefactor     24.772        14.193       -.11715E-07   -.42556E-05
   7  Prefactor     6.9229        13.629        .84204E-07    .77007E-05
   8  Prefactor     .10000E-03    45.893        .85296E-07** at limit **
   9  Prefactor     .10000E-03    22.842       -.21442E-06** at limit **
  10  Prefactor     .10000E-03    6.2073        .72524E-07** at limit **
  11  norm          .10000E-03    2.7460        .40211E-07** at limit **
  12  norm          .22382E-01    2.0424        .50296E-07   -.21516E-03
  13  Prefactor     .10000E-03    258.72       -.83744E-05** at limit **
  14  Prefactor     9.4468        17.846       -.32113E-05   -.19601E-03
  15  Prefactor     36.137        39.234        .13969E-05   -.63771E-05
  16  Prefactor     .10000E-03    134.69        .71650E-06** at limit **
  17  Prefactor     168.35        126.57        .35618E-06    .60639E-04
  18  norm          .10000E-03    .44767        .40803E-06** at limit **
  19  norm          30.792        7.6541       -.70727E-06   -.16224E-02
  20  Prefactor     .10030E-03    5.2540       -.19804E-05** at limit **
  21  Normalizat    .87499        .20454        .17412E-05    .17825E-04
  22  Prefactor     .79402        .17653       -.11736E-05    .10160E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  norm       = 25.5204
  Prefactor  = 0.0001
  norm       = 1.1569
  Prefactor  = 32.8794
  Prefactor  = 24.7716
  Prefactor  = 6.92294
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 0.0223821
  Prefactor  = 0.0001
  Prefactor  = 9.44678
  Prefactor  = 36.1372
  Prefactor  = 0.0001
  Prefactor  = 168.354
  norm       = 0.000100001
  norm       = 30.7919
  Prefactor  = 0.0001003
  Normalizat = 0.87499
  Prefactor  = 0.794024
 **********
 **   18 **HESSE 
 **********

 FCN=   4407.668     FROM HESSE     STATUS=OK           350 CALLS     2793 TOTAL
                     EDM=   .10E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    8.9695        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          25.520        23.969        .79304E-04   -1.4697    
   3  Prefactor     .10000E-03    12.105        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  norm          1.1569        1.0524        .56576E-04   -1.5493    
   5  Prefactor     32.879        33.028        .69882E-04   -1.4561    
   6  Prefactor     24.772        14.193        .80488E-04   -1.4712    
   7  Prefactor     6.9229        13.609        .15252E-03   -1.5182    
   8  Prefactor     .10000E-03    45.969        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    22.885        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    6.2389        .16150E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          .10000E-03    2.7735        .10742E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          .22382E-01    5.1888        .31143E-01   -1.5678    
  13  Prefactor     .10000E-03    247.66        .20390E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     9.4468        17.343        .13062E-03   -1.5093    
  15  Prefactor     36.137        40.039        .66625E-04   -1.4505    
  16  Prefactor     .10000E-03    135.43        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     168.35        127.15        .15549E-03   -1.3106    
  18  norm          .10000E-03    8.6770        .76097E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  norm          30.792        7.4658        .72189E-04   -1.4598    
  20  Prefactor     .10030E-03    30.195        .25839E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Normalizat    .87499        .23451        .24965E-03   -.97345    
  22  Prefactor     .79402        .20292        .23525E-03   -.99949    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.04526e-08
Minuit parameter uncertainties:
  1  1.64428e-05
  2  23.978
  3  3.57823e-06
  4  1.05243
  5  33.0461
  6  14.1948
  7  13.6156
  8  1.93266e-05
  9  4.13786e-05
  10  9.51903e-07
  11  8.45681e-07
  12  0.680111
  13  0.000146584
  14  17.3519
  15  40.0687
  16  0.000352576
  17  127.361
  18  0.000172112
  19  7.46607
  20  0.00602744
  21  0.234779
  22  0.203114
Done.

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

Extracting fit parameters...

4FGL J2331.3-1558
   Spectrum: PowerLaw
425    Prefactor:  9.447e+00  1.735e+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:  7.940e-01  2.031e-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.750e-01  2.348e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/15488/likelihoodResults_624240001_624499201_4FGL_J2331.3-1558_daily_bin1485.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) = 4407.62629925
delta logL = 0.0420685038707

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 4407.6089791
delta logL = 0.0593886502502

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    6.3601       1.0000         .10000E-03   10000.    
     2 'Index     '    2.9760       1.0000          .0000       10.000    
     3 'Normalizat'    .86488       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .79966       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=   4407.609     FROM MIGRAD    STATUS=CONVERGED     81 CALLS      269 TOTAL
                     EDM=   .13E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     6.3563        18.597        .15916E-03   -.19058E-03
   2  Index         2.9756        1.5747        .89493E-02   -.49747E-04
   3  Normalizat    .86533        .22486        .25086E-03   -.93806E-03
   4  Prefactor     .79941        .20101        .23452E-03   -.90659E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 6.3563
  Index      = 2.97563
  Normalizat = 0.865334
  Prefactor  = 0.799413
 **********
 **   18 **HESSE 
 **********

 FCN=   4407.609     FROM HESSE     STATUS=OK            25 CALLS      294 TOTAL
                     EDM=   .14E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     6.3563        15.449        .63662E-05   -1.5204    
   2  Index         2.9756        1.3149        .35797E-03   -.41684    
   3  Normalizat    .86533        .22496        .50171E-04   -.97689    
   4  Prefactor     .79941        .20098        .46903E-04   -.99750    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.37152e-09
Minuit parameter uncertainties:
  1  15.4584
  2  1.33378
  3  0.225202
  4  0.201164
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/15488': 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) = 4407.60897645
delta logL = 0.0593913014363

Extracting fit parameters...

4FGL J2331.3-1558
   Spectrum: PowerLaw
425    Prefactor:  6.356e+00  1.546e+01  1.000e-04  1.000e+04 ( 1.000e-13)
426        Index:  2.976e+00  1.334e+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:  7.994e-01  2.012e-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.653e-01  2.252e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 0.38
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/15488/cmap_HighResolution_624240001_624499201_4FGL_J2331.3-1558_daily_bin1485.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='9.28e-03', job_status='DONE', photon_flux_upper_limit='1.19e-07', time_completed='2021-09-29 23:29:57.630144', job_id='15488', GAL2='0.80', fit_tolerance='1e-08', EG2='0.87', EG='0.87', time_epoch_completed='1632983397.63', return_code2='0', ts='0.38', comment='SUCCESS', return_code='0', GAL='0.79', dlogl='5.94e-02', ts2='0.50', photon_index_error='0.00', photon_index='2.54' WHERE bin_id='1485' AND source_name='4FGL J2331.3-1558' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep 29 23:29:57 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0243>
Subject: Job 15488: <4FGL_J2331.3-1558_daily_bin1485> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2331.3-1558_daily_bin1485 352.839 -15.9777 624240001 624499201 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 :                                   521.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             309.11 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   556 sec.
    Turnaround time :                            559 sec.

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

