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


Performing analysis on: 4FGL_J2331.3-1558_daily_bin8
RA = 352.839, Dec = -15.9777
tmin = 241401601, tmax = 241660801
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='9319', job_status='RUN', time_executed='2021-09-29 23:04:22.164644', time_epoch_executed='1632981862.16' WHERE source_name='4FGL J2331.3-1558' and cadence='daily' and bin_id='8'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/9319

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/9319/ft1_4FGL_J2331.3-1558_daily_bin8.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/9319/ft2_4FGL_J2331.3-1558_daily_bin8.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/9319/ft1_4FGL_J2331.3-1558_daily_bin8.fits outfile=/scratch/kocevski/9319/ft1_filteredMKT_4FGL_J2331.3-1558_daily_bin8.fits ra=352.839 dec=-15.9777 rad=12.0 tmin=241401601.0 tmax=241660801.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.47
user 1.26
sys 0.18

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/9319/ft2_4FGL_J2331.3-1558_daily_bin8.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/9319/ft1_filteredMKT_4FGL_J2331.3-1558_daily_bin8.fits evtable="EVENTS" outfile="/scratch/kocevski/9319/ft1_filtered_4FGL_J2331.3-1558_daily_bin8.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/9319/ft1_filtered_4FGL_J2331.3-1558_daily_bin8.fits" evtable="EVENTS" scfile=/scratch/kocevski/9319/ft2_4FGL_J2331.3-1558_daily_bin8.fits sctable="SC_DATA" outfile=/scratch/kocevski/9319/ltcube_241401601_241660801_4FGL_J2331.3-1558_daily_bin8.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/9319/ft2_4FGL_J2331.3-1558_daily_bin8.fits
.....................!
real 12.14
user 11.78
sys 0.32

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/9319/ft1_filtered_4FGL_J2331.3-1558_daily_bin8.fits evtable="EVENTS" scfile=/scratch/kocevski/9319/ft2_4FGL_J2331.3-1558_daily_bin8.fits sctable="SC_DATA" expcube=/scratch/kocevski/9319/ltcube_241401601_241660801_4FGL_J2331.3-1558_daily_bin8.fits outfile=/scratch/kocevski/9319/expmap_241401601_241660801_4FGL_J2331.3-1558_daily_bin8.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/9319/ltcube_241401601_241660801_4FGL_J2331.3-1558_daily_bin8.fits
.....................!
real 191.02
user 185.99
sys 4.69

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/9319/ft1_filtered_4FGL_J2331.3-1558_daily_bin8.fits scfile=/scratch/kocevski/9319/ft2_4FGL_J2331.3-1558_daily_bin8.fits outfile=/scratch/kocevski/9319/cmap_241401601_241660801_4FGL_J2331.3-1558_daily_bin8.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.54
user 0.36
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/9319/ft1_filtered_4FGL_J2331.3-1558_daily_bin8.fits scfile=/scratch/kocevski/9319/ft2_4FGL_J2331.3-1558_daily_bin8.fits outfile=/scratch/kocevski/9319/cmap_HighResolution_241401601_241660801_4FGL_J2331.3-1558_daily_bin8.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.37
sys 0.15

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/9319/ft1_filtered_4FGL_J2331.3-1558_daily_bin8.fits evtable="EVENTS" scfile=/scratch/kocevski/9319/ft2_4FGL_J2331.3-1558_daily_bin8.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/9319/Model_4FGL_J2331.3-1558_daily_bin8.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/9319/ft1_filtered_4FGL_J2331.3-1558_daily_bin8.fits.....................!
real 58.59
user 56.70
sys 1.29

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10011E-03   1.0000         .10000E-03   10000.    
     2 'norm      '    10.378       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10319E-03   1.0000         .10000E-03   10000.    
     4 'norm      '    .10344E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    3.5790       1.0000         .10000E-03   10000.    
     6 'Prefactor '    2.2906       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .44220       1.0000         .10000E-03   10000.    
     8 'Prefactor '    11.467       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    8.1377       1.0000         .10000E-03   10000.    
    11 'norm      '    8.3478       1.0000         .10000E-03   10000.    
    12 'norm      '    4.3563       1.0000         .10000E-03   10000.    
    13 'Prefactor '    8.7557       1.0000         .10000E-03   10000.    
    14 'Prefactor '    35.696       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 '    .10000E-03   1.0000         .10000E-03   10000.    
    18 'norm      '    1.3709       1.0000         .10000E-03   10000.    
    19 'norm      '    5.3916       1.0000         .10000E-03   10000.    
    20 'Prefactor '    11.079       1.0000         .10000E-03   10000.    
    21 'Normalizat'    1.2125       1.0000         .10000E-01   10.000    
    22 'Prefactor '    .71220       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=   7008.200     FROM MIGRAD    STATUS=CONVERGED    470 CALLS     2047 TOTAL
                     EDM=   .11E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  3.3%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    4.7148        .15242E-06** at limit **
   2  norm          10.372        27.727        .35386E-06   -.76527E-04
   3  Prefactor     .10000E-03    4.0082       -.79260E-06** at limit **
   4  norm          .10000E-03    .26893       -.68269E-06** at limit **
   5  Prefactor     3.5185        26.320        .50593E-07    .26388E-05
   6  Prefactor     2.2976        9.2210        .83843E-05   -.22082E-03
   7  Prefactor     .46512        8.0470       -.21704E-05    .13407E-03
   8  Prefactor     11.449        43.196        .16619E-05   -.16053E-03
   9  Prefactor     .10000E-03    9.8804        .43565E-07** at limit **
  10  Prefactor     8.1402        8.8675       -.31750E-06   -.23817E-03
  11  norm          8.3479        5.1974        .66633E-07   -.45057E-03
  12  norm          4.3567        2.7655        .54932E-07   -.39425E-04
  13  Prefactor     8.7559        42.325        .27357E-07   -.15565E-04
  14  Prefactor     35.698        18.933        .11806E-07   -.91668E-04
  15  Prefactor     .10000E-03    8.0170        .64289E-07** at limit **
  16  Prefactor     .10000E-03    28.477        .31201E-07** at limit **
  17  Prefactor     .10000E-03    61.794       -.60903E-07** at limit **
  18  norm          1.3709        .59539        .13175E-07    .22756E-03
  19  norm          5.3921        4.6613        .30870E-07   -.19443E-03
  20  Prefactor     11.080        7.8760        .58468E-07    .40051E-04
  21  Normalizat    1.2124        .16981        .11468E-05    .12774E-03
  22  Prefactor     .71217        .15319       -.22867E-05    .77252E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  norm       = 10.3718
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 3.51852
  Prefactor  = 2.29762
  Prefactor  = 0.465115
  Prefactor  = 11.4493
  Prefactor  = 0.0001
  Prefactor  = 8.14025
  norm       = 8.34787
  norm       = 4.35666
  Prefactor  = 8.75588
  Prefactor  = 35.6978
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000100001
  norm       = 1.37091
  norm       = 5.39206
  Prefactor  = 11.0804
  Normalizat = 1.2124
  Prefactor  = 0.712173
 **********
 **   18 **HESSE 
 **********

 FCN=   7008.200     FROM HESSE     STATUS=OK           348 CALLS     2395 TOTAL
                     EDM=   .26E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    4.7414        .17748E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          10.372        27.754        .12438E-03   -1.5064    
   3  Prefactor     .10000E-03    4.0484        .16419E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  norm          .10000E-03    .29836        .87647E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     3.5185        26.175        .21362E-03   -1.5333    
   6  Prefactor     2.2976        9.5613        .13561E-02   -1.5405    
   7  Prefactor     .46512        45.859        .42937E-02   -1.5572    
   8  Prefactor     11.449        43.080        .11831E-03   -1.5031    
   9  Prefactor     .10000E-03    9.9422        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     8.1402        8.8197        .14054E-03   -1.5137    
  11  norm          8.3479        5.1933        .13875E-03   -1.5130    
  12  norm          4.3567        2.7638        .10648E-03   -1.5290    
  13  Prefactor     8.7559        41.916        .13546E-03   -1.5116    
  14  Prefactor     35.698        18.850        .67076E-04   -1.4512    
  15  Prefactor     .10000E-03    8.0224        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    28.518        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    61.854        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          1.3709        .60197        .37427E-04   -1.5474    
  19  norm          5.3921        4.7239        .14673E-03   -1.5244    
  20  Prefactor     11.080        7.8963        .12036E-03   -1.5042    
  21  Normalizat    1.2124        .19830        .23118E-03   -.86220    
  22  Prefactor     .71217        .17712        .26596E-03   -1.0305    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.63379e-09
Minuit parameter uncertainties:
  1  1.85578e-05
  2  27.7887
  3  8.9923e-05
  4  2.10057e-05
  5  19.205
  6  9.37641
  7  9.24311
  8  43.1973
  9  8.71661e-06
  10  8.8211
  11  5.19357
  12  2.76388
  13  38.3586
  14  18.8533
  15  1.10213e-05
  16  4.33571e-05
  17  0.000602845
  18  0.601971
  19  4.72422
  20  7.89708
  21  0.198422
  22  0.177258
Done.

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

Extracting fit parameters...

4FGL J2331.3-1558
   Spectrum: PowerLaw
425    Prefactor:  3.570e+01  1.885e+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.122e-01  1.773e-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:  1.212e+00  1.984e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 9.50
Ra Dec: 352.839 -15.978
Photon Index (Fixed Index): 2.54 +/- 0.00
Photon Flux (Fixed Index): 8.16e-08 +/- 4.30e-08
Energy Flux (Fixed Index): 2.26e-05 +/- 1.20e-05

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) = 7008.06369537
delta logL = 0.136030858079

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 7008.06320293
delta logL = 0.136523297556

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    43.902       1.0000         .10000E-03   10000.    
     2 'Index     '    2.3154       1.0000          .0000       10.000    
     3 'Normalizat'    1.2270       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .70299       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=   7008.063     FROM MIGRAD    STATUS=CONVERGED     87 CALLS      293 TOTAL
                     EDM=   .15E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     43.883        25.269        .60506E-04    .64786E-04
   2  Index         2.3148        .43294        .55961E-02    .36026E-03
   3  Normalizat    1.2270        .19213        .23006E-03   -.89978E-04
   4  Prefactor     .70311        .17263        .26747E-03    .93254E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 43.8828
  Index      = 2.31484
  Normalizat = 1.22698
  Prefactor  = 0.703112
 **********
 **   18 **HESSE 
 **********

 FCN=   7008.063     FROM HESSE     STATUS=OK            25 CALLS      318 TOTAL
                     EDM=   .13E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     43.883        24.754        .12101E-04   -1.4382    
   2  Index         2.3148        .42393        .11192E-02   -.56691    
   3  Normalizat    1.2270        .19219        .46012E-04   -.85773    
   4  Prefactor     .70311        .17272        .10699E-04   -1.0341    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.32684e-10
Minuit parameter uncertainties:
  1  24.7601
  2  0.424646
  3  0.192304
  4  0.172856
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/9319': 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) = 7008.06319965
delta logL = 0.136526581257

Extracting fit parameters...

4FGL J2331.3-1558
   Spectrum: PowerLaw
425    Prefactor:  4.388e+01  2.476e+01  1.000e-04  1.000e+04 ( 1.000e-13)
426        Index:  2.315e+00  4.246e-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:  7.031e-01  1.729e-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:  1.227e+00  1.923e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 9.80
Ra Dec: 352.839 -15.978
Photon Index (Free Index): 2.31 +/- 0.42
Photon Flux (Free Index): 6.96e-08 +/- 4.05e-08
Energy Flux (Free Index): 2.57e-05 +/- 1.44e-05

Creating a high resolution counts map...
INFO: Auto-setting vmin to -1.000e-01 [aplpy.core]
INFO: Auto-setting vmax to  1.110e+00 [aplpy.core]
Saving /scratch/kocevski/9319/cmap_HighResolution_241401601_241660801_4FGL_J2331.3-1558_daily_bin8.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='8.16e-08', energy_flux2='2.57e-05', photon_flux_error='4.30e-08', dlogl='1.37e-01', energy_flux='2.26e-05', photon_flux2='6.96e-08', job_status='DONE', time_completed='2021-09-29 23:13:31.392021', photon_index_error2='0.42', photon_index2='2.31', ts='9.50', fit_tolerance='1e-08', GAL='0.71', photon_index_error='0.00', energy_flux_error2='1.44e-05', EG='1.21', time_epoch_completed='1632982411.39', return_code='0', job_id='9319', GAL2='0.70', EG2='1.23', return_code2='0', energy_flux_error='1.20e-05', photon_flux_error2='4.05e-08', ts2='9.80', photon_index='2.54' WHERE bin_id='8' AND source_name='4FGL J2331.3-1558' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep 29 23:13:31 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0223>
Subject: Job 9319: <4FGL_J2331.3-1558_daily_bin8> in cluster <slac> Done

Job <4FGL_J2331.3-1558_daily_bin8> 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) <bullet0223>, 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:32 2021
Results reported at Wed Sep 29 23:13:32 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2331.3-1558_daily_bin8 352.839 -15.9777 241401601 241660801 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 :                                   549.07 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             262.87 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   775 sec.
    Turnaround time :                            777 sec.

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

