/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 184 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 = 7659
number of fields = 22
No RA_SUN column yet. Adding RA_SUN/DEC_SUN columns.
Done.


Performing analysis on: 4FGL_J2331.3-1558_daily_bin6
RA = 352.839, Dec = -15.9777
tmin = 240883201, tmax = 241142401
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='9316', job_status='RUN', time_executed='2021-09-29 23:03:48.991555', time_epoch_executed='1632981828.99' WHERE source_name='4FGL J2331.3-1558' and cadence='daily' and bin_id='6'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/9316

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/9316/ft1_4FGL_J2331.3-1558_daily_bin6.fits


Retrieving the FT1 file...

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

Retrieving 48 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/9316/ft2_4FGL_J2331.3-1558_daily_bin6.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/9316/ft1_4FGL_J2331.3-1558_daily_bin6.fits outfile=/scratch/kocevski/9316/ft1_filteredMKT_4FGL_J2331.3-1558_daily_bin6.fits ra=352.839 dec=-15.9777 rad=12.0 tmin=240883201.0 tmax=241142401.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.49
user 1.31
sys 0.18

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/9316/ft2_4FGL_J2331.3-1558_daily_bin6.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/9316/ft1_filteredMKT_4FGL_J2331.3-1558_daily_bin6.fits evtable="EVENTS" outfile="/scratch/kocevski/9316/ft1_filtered_4FGL_J2331.3-1558_daily_bin6.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.50
user 0.33
sys 0.16

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/9316/ft1_filtered_4FGL_J2331.3-1558_daily_bin6.fits" evtable="EVENTS" scfile=/scratch/kocevski/9316/ft2_4FGL_J2331.3-1558_daily_bin6.fits sctable="SC_DATA" outfile=/scratch/kocevski/9316/ltcube_240883201_241142401_4FGL_J2331.3-1558_daily_bin6.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/9316/ft2_4FGL_J2331.3-1558_daily_bin6.fits
.....................!
real 12.64
user 12.31
sys 0.30

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/9316/ft1_filtered_4FGL_J2331.3-1558_daily_bin6.fits evtable="EVENTS" scfile=/scratch/kocevski/9316/ft2_4FGL_J2331.3-1558_daily_bin6.fits sctable="SC_DATA" expcube=/scratch/kocevski/9316/ltcube_240883201_241142401_4FGL_J2331.3-1558_daily_bin6.fits outfile=/scratch/kocevski/9316/expmap_240883201_241142401_4FGL_J2331.3-1558_daily_bin6.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/9316/ltcube_240883201_241142401_4FGL_J2331.3-1558_daily_bin6.fits
.....................!
real 191.13
user 185.48
sys 5.34

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/9316/ft1_filtered_4FGL_J2331.3-1558_daily_bin6.fits scfile=/scratch/kocevski/9316/ft2_4FGL_J2331.3-1558_daily_bin6.fits outfile=/scratch/kocevski/9316/cmap_240883201_241142401_4FGL_J2331.3-1558_daily_bin6.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.36
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/9316/ft1_filtered_4FGL_J2331.3-1558_daily_bin6.fits scfile=/scratch/kocevski/9316/ft2_4FGL_J2331.3-1558_daily_bin6.fits outfile=/scratch/kocevski/9316/cmap_HighResolution_240883201_241142401_4FGL_J2331.3-1558_daily_bin6.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.15

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/9316/ft1_filtered_4FGL_J2331.3-1558_daily_bin6.fits evtable="EVENTS" scfile=/scratch/kocevski/9316/ft2_4FGL_J2331.3-1558_daily_bin6.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/9316/Model_4FGL_J2331.3-1558_daily_bin6.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/9316/ft1_filtered_4FGL_J2331.3-1558_daily_bin6.fits.....................!
real 50.20
user 48.87
sys 1.24

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    2.0177       1.0000         .10000E-03   10000.    
     2 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    1.3840       1.0000         .10000E-03   10000.    
     4 'norm      '    .10063E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .75832       1.0000         .10000E-03   10000.    
     6 'Prefactor '    4.1916       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    39.743       1.0000         .10000E-03   10000.    
     9 'Prefactor '    10.689       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10922E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    .10014E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    .84348       1.0000         .10000E-03   10000.    
    13 'Prefactor '    39.861       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .12914E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    18 'norm      '    2.9257       1.0000         .10000E-03   10000.    
    19 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    8.0655       1.0000         .10000E-03   10000.    
    21 'Normalizat'    .94197       1.0000         .10000E-01   10.000    
    22 'Prefactor '    .67537       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=   6249.127     FROM MIGRAD    STATUS=CONVERGED    485 CALLS     2402 TOTAL
                     EDM=   .10E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  6.2%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     2.0184        6.5433       -.12719E-05   -.63629E-04
   2  norm          .10000E-03    16.016        .55001E-06** at limit **
   3  Prefactor     1.3743        15.642       -.40257E-06    .25420E-03
   4  norm          .10000E-03    .45552       -.40928E-06** at limit **
   5  Prefactor     .83166        52.711       -.10476E-04    .10326E-03
   6  Prefactor     4.1915        4.7615       -.99890E-07   -.55587E-04
   7  Prefactor     .10000E-03    1.9640        .52624E-08** at limit **
   8  Prefactor     39.772        37.101       -.85885E-07    .67181E-04
   9  Prefactor     10.688        19.938       -.16005E-06    .27559E-04
  10  Prefactor     .10000E-03    6.6243       -.35053E-05** at limit **
  11  norm          .10000E-03    2.6668       -.60177E-06** at limit **
  12  norm          .84299        2.0979       -.92333E-06   -.33607E-03
  13  Prefactor     39.898        46.200       -.13577E-05   -.11568E-03
  14  Prefactor     .10000E-03    11.718       -.29905E-05** at limit **
  15  Prefactor     .10000E-03    8.0371        .21186E-06** at limit **
  16  Prefactor     .10000E-03    11.605       -.26858E-06** at limit **
  17  Prefactor     .10000E-03    62.700        .99420E-06** at limit **
  18  norm          2.9257        .67429       -.75336E-08    .75194E-03
  19  norm          .10000E-03    1.2466       -.81566E-07** at limit **
  20  Prefactor     8.0653        6.0512       -.15990E-06    .79385E-04
  21  Normalizat    .94204        .15709        .14416E-05    .36229E-03
  22  Prefactor     .67527        .13935       -.10375E-06    .63345E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 2.01845
  norm       = 0.0001
  Prefactor  = 1.37433
  norm       = 0.000100001
  Prefactor  = 0.831661
  Prefactor  = 4.1915
  Prefactor  = 0.0001
  Prefactor  = 39.7723
  Prefactor  = 10.6882
  Prefactor  = 0.000100001
  norm       = 0.0001
  norm       = 0.842988
  Prefactor  = 39.8981
  Prefactor  = 0.000100001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000100001
  norm       = 2.9257
  norm       = 0.0001
  Prefactor  = 8.06527
  Normalizat = 0.942042
  Prefactor  = 0.675267
 **********
 **   18 **HESSE 
 **********

 FCN=   6249.127     FROM HESSE     STATUS=OK           338 CALLS     2740 TOTAL
                     EDM=   .25E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     2.0184        6.5447        .29138E-03   -1.5424    
   2  norm          .10000E-03    16.102        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     1.3743        18.119        .36977E-03   -1.5474    
   4  norm          .10000E-03    .64433        .93601E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .83166        58.269        .47529E-02   -1.5526    
   6  Prefactor     4.1915        4.7559        .17896E-03   -1.5298    
   7  Prefactor     .10000E-03    1.9660        .10819E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     39.772        36.934        .63581E-04   -1.4446    
   9  Prefactor     10.688        19.938        .12255E-03   -1.5054    
  10  Prefactor     .10000E-03    6.8740        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          .10000E-03    2.7380        .25212E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          .84299        2.0769        .17377E-03   -1.5524    
  13  Prefactor     39.898        46.354        .63487E-04   -1.4444    
  14  Prefactor     .10000E-03    11.820        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    8.0507        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    11.614        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    62.895        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          2.9257        .67423        .29483E-04   -1.5366    
  19  norm          .10000E-03    1.2524        .86118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     8.0653        6.0449        .14118E-03   -1.5140    
  21  Normalizat    .94204        .17933        .21662E-03   -.94998    
  22  Prefactor     .67527        .16013        .23201E-03   -1.0450    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.53685e-09
Minuit parameter uncertainties:
  1  6.547
  2  0.000116876
  3  9.98359
  4  4.73103e-05
  5  13.9359
  6  4.75631
  7  4.59376e-07
  8  36.9555
  9  19.9501
  10  0.00014782
  11  1.25265e-05
  12  2.07707
  13  46.3956
  14  0.000166259
  15  2.90536e-05
  16  5.35473e-05
  17  0.000438429
  18  0.674229
  19  2.81035e-06
  20  6.0454
  21  0.179439
  22  0.160235
Done.

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

Extracting fit parameters...

4FGL J2331.3-1558
   Spectrum: PowerLaw
425    Prefactor:  1.000e-04  1.663e-04  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:  6.753e-01  1.602e-01  0.000e+00  1.000e+01 ( 1.000e+00)
532        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
533        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
530   Normalization:  9.420e-01  1.794e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/9316/likelihoodResults_240883201_241142401_4FGL_J2331.3-1558_daily_bin6.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) = 6249.12757103
delta logL = -0.00040327609986

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6249.12716773
delta logL = 2.55768100033e-08

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10009E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.5569       1.0000          .0000       10.000    
     3 'Normalizat'    .94206       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .67526       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=   6249.127     FROM MIGRAD    STATUS=CONVERGED     51 CALLS      202 TOTAL
                     EDM=   .94E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    647.28        .90712E-02** at limit **
   2  Index         2.5719        6.2705        .50000       -.11472E-04
   3  Normalizat    .94204        .29013E-01    .45437E-01    .37277E-04
   4  Prefactor     .67526        .26809E-01    .42071E-01    .34368E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Index      = 2.57188
  Normalizat = 0.942044
  Prefactor  = 0.675264
 **********
 **   18 **HESSE 
 **********

 FCN=   6249.127     FROM HESSE     STATUS=OK            33 CALLS      235 TOTAL
                     EDM=   .14E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    13.254        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.5719        6.2858        .50000       -.50708    
   3  Normalizat    .94204        .16935        .21662E-03   -.94998    
   4  Prefactor     .67526        .15661        .23200E-03   -1.0450    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.36824e-10
Minuit parameter uncertainties:
  1  3.95738e-05
  2  4.5974
  3  0.169443
  4  0.156708
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/9316': 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) = 6249.12716768
delta logL = 7.76562956162e-08

Extracting fit parameters...

4FGL J2331.3-1558
   Spectrum: PowerLaw
425    Prefactor:  1.000e-04  3.957e-05  1.000e-04  1.000e+04 ( 1.000e-13)
426        Index:  2.572e+00  4.597e+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:  6.753e-01  1.567e-01  0.000e+00  1.000e+01 ( 1.000e+00)
532        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
533        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
530   Normalization:  9.420e-01  1.694e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
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/9316/cmap_HighResolution_240883201_241142401_4FGL_J2331.3-1558_daily_bin6.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='5.61e-03', job_status='DONE', photon_flux_upper_limit='7.20e-08', time_completed='2021-09-29 23:13:41.152140', job_id='9316', GAL2='0.68', fit_tolerance='1e-08', EG2='0.94', EG='0.94', time_epoch_completed='1632982421.15', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.68', dlogl='7.77e-08', ts2='-0.00', photon_index_error='0.00', photon_index='2.54' WHERE bin_id='6' AND source_name='4FGL J2331.3-1558' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep 29 23:13:41 PDT 2021


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

Job <4FGL_J2331.3-1558_daily_bin6> was submitted from host <rhel6-64k> by user <kocevski> in cluster <slac> at Wed Sep 29 23:00:35 2021
Job was executed on host(s) <bullet0077>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Sep 29 23:00:36 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:00:36 2021
Terminated at Wed Sep 29 23:13:41 2021
Results reported at Wed Sep 29 23:13:41 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2331.3-1558_daily_bin6 352.839 -15.9777 240883201 241142401 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 :                                   592.08 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             288.67 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   785 sec.
    Turnaround time :                            786 sec.

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

