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


Performing analysis on: 4FGL_J2331.3-1558_daily_bin103
RA = 352.839, Dec = -15.9777
tmin = 266025601, tmax = 266284801
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='9455', job_status='RUN', time_executed='2021-09-29 23:01:02.514035', time_epoch_executed='1632981662.51' WHERE source_name='4FGL J2331.3-1558' and cadence='daily' and bin_id='103'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/9455

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/9455/ft1_4FGL_J2331.3-1558_daily_bin103.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/9455/ft2_4FGL_J2331.3-1558_daily_bin103.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/9455/ft1_4FGL_J2331.3-1558_daily_bin103.fits outfile=/scratch/kocevski/9455/ft1_filteredMKT_4FGL_J2331.3-1558_daily_bin103.fits ra=352.839 dec=-15.9777 rad=12.0 tmin=266025601.0 tmax=266284801.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.40
user 1.22
sys 0.16

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/9455/ft1_filtered_4FGL_J2331.3-1558_daily_bin103.fits" evtable="EVENTS" scfile=/scratch/kocevski/9455/ft2_4FGL_J2331.3-1558_daily_bin103.fits sctable="SC_DATA" outfile=/scratch/kocevski/9455/ltcube_266025601_266284801_4FGL_J2331.3-1558_daily_bin103.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/9455/ft2_4FGL_J2331.3-1558_daily_bin103.fits
.....................!
real 12.26
user 11.93
sys 0.29

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/9455/ft1_filtered_4FGL_J2331.3-1558_daily_bin103.fits evtable="EVENTS" scfile=/scratch/kocevski/9455/ft2_4FGL_J2331.3-1558_daily_bin103.fits sctable="SC_DATA" expcube=/scratch/kocevski/9455/ltcube_266025601_266284801_4FGL_J2331.3-1558_daily_bin103.fits outfile=/scratch/kocevski/9455/expmap_266025601_266284801_4FGL_J2331.3-1558_daily_bin103.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/9455/ltcube_266025601_266284801_4FGL_J2331.3-1558_daily_bin103.fits
.....................!
real 190.43
user 185.91
sys 4.18

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/9455/ft1_filtered_4FGL_J2331.3-1558_daily_bin103.fits scfile=/scratch/kocevski/9455/ft2_4FGL_J2331.3-1558_daily_bin103.fits outfile=/scratch/kocevski/9455/cmap_266025601_266284801_4FGL_J2331.3-1558_daily_bin103.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/9455/ft1_filtered_4FGL_J2331.3-1558_daily_bin103.fits scfile=/scratch/kocevski/9455/ft2_4FGL_J2331.3-1558_daily_bin103.fits outfile=/scratch/kocevski/9455/cmap_HighResolution_266025601_266284801_4FGL_J2331.3-1558_daily_bin103.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.38
sys 0.14

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/9455/ft1_filtered_4FGL_J2331.3-1558_daily_bin103.fits evtable="EVENTS" scfile=/scratch/kocevski/9455/ft2_4FGL_J2331.3-1558_daily_bin103.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/9455/Model_4FGL_J2331.3-1558_daily_bin103.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/9455/ft1_filtered_4FGL_J2331.3-1558_daily_bin103.fits.....................!
real 49.64
user 48.31
sys 1.19

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    2.5035       1.0000         .10000E-03   10000.    
     2 'norm      '    13.385       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10670E-03   1.0000         .10000E-03   10000.    
     4 'norm      '    .11920E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    2.8481       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10084E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    9.3516       1.0000         .10000E-03   10000.    
     9 'Prefactor '    37.341       1.0000         .10000E-03   10000.    
    10 'Prefactor '    9.0028       1.0000         .10000E-03   10000.    
    11 'norm      '    13.126       1.0000         .10000E-03   10000.    
    12 'norm      '    1.6587       1.0000         .10000E-03   10000.    
    13 'Prefactor '    39.760       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .13795E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    12.520       1.0000         .10000E-03   10000.    
    17 'Prefactor '    145.62       1.0000         .10000E-03   10000.    
    18 'norm      '    .28072E-01   1.0000         .10000E-03   10000.    
    19 'norm      '    6.5745       1.0000         .10000E-03   10000.    
    20 'Prefactor '    11.807       1.0000         .10000E-03   10000.    
    21 'Normalizat'    1.2327       1.0000         .10000E-01   10.000    
    22 'Prefactor '    .73190       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=   5982.165     FROM MIGRAD    STATUS=CONVERGED    510 CALLS     2443 TOTAL
                     EDM=   .15E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .3%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     2.5055        6.2473       -.12824E-05   -.36228E-03
   2  norm          13.381        27.435       -.36479E-05    .10422E-04
   3  Prefactor     .10000E-03    8.6610       -.26779E-06** at limit **
   4  norm          .10000E-03    .61962       -.34704E-06** at limit **
   5  Prefactor     2.8980        38.051        .19099E-05    .62647E-04
   6  Prefactor     .10000E-03    3.4160       -.37666E-07** at limit **
   7  Prefactor     .10000E-03    4.8480       -.16747E-06** at limit **
   8  Prefactor     9.3570        44.592       -.15983E-04   -.90418E-05
   9  Prefactor     37.330        29.477        .20852E-04    .47376E-04
  10  Prefactor     9.0019        14.122        .40609E-05    .20011E-04
  11  norm          13.127        8.0027       -.40383E-06    .29313E-04
  12  norm          1.6586        2.5129        .21371E-06   -.32006E-03
  13  Prefactor     39.684        53.442       -.69833E-06    .89684E-04
  14  Prefactor     .10000E-03    11.432       -.53315E-06** at limit **
  15  Prefactor     .10002E-03    42.347        .30475E-05** at limit **
  16  Prefactor     12.381        61.725       -.71926E-05    .54049E-05
  17  Prefactor     145.43        122.86       -.12047E-03    .14561E-04
  18  norm          .26044E-01    .33766       -.39724E-06    .37229E-03
  19  norm          6.5860        4.5725       -.17881E-06    .75129E-03
  20  Prefactor     11.805        8.6461       -.16375E-05    .64095E-04
  21  Normalizat    1.2330        .19326        .73501E-05   -.11572E-03
  22  Prefactor     .73168        .17032       -.20188E-05    .52376E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 2.50552
  norm       = 13.3808
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 2.89798
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 9.35701
  Prefactor  = 37.3301
  Prefactor  = 9.00193
  norm       = 13.1268
  norm       = 1.65856
  Prefactor  = 39.6843
  Prefactor  = 0.000100001
  Prefactor  = 0.000100017
  Prefactor  = 12.3814
  Prefactor  = 145.428
  norm       = 0.0260439
  norm       = 6.58595
  Prefactor  = 11.8051
  Normalizat = 1.23299
  Prefactor  = 0.731675
 **********
 **   18 **HESSE 
 **********

 FCN=   5982.165     FROM HESSE     STATUS=OK           348 CALLS     2791 TOTAL
                     EDM=   .39E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     2.5055        6.2169        .25827E-03   -1.5391    
   2  norm          13.381        27.438        .10948E-03   -1.4976    
   3  Prefactor     .10000E-03    8.6924        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  norm          .10000E-03    .92040        .10002E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     2.8980        27.092        .24092E-03   -1.5367    
   6  Prefactor     .10000E-03    3.4217        .13959E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    4.8769        .16630E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     9.3570        43.945        .13105E-03   -1.5096    
   9  Prefactor     37.330        29.466        .65587E-04   -1.4485    
  10  Prefactor     9.0019        13.997        .13358E-03   -1.5108    
  11  norm          13.127        7.9869        .11056E-03   -1.4983    
  12  norm          1.6586        2.4894        .14433E-03   -1.5450    
  13  Prefactor     39.684        53.772        .63568E-04   -1.4447    
  14  Prefactor     .10000E-03    11.445        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10002E-03    42.614        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     12.381        61.641        .11321E-03   -1.5004    
  17  Prefactor     145.43        122.98        .16696E-03   -1.3290    
  18  norm          .26044E-01    3.1739        .74244E-03   -1.5676    
  19  norm          6.5860        5.2650        .11415E-03   -1.5195    
  20  Prefactor     11.805        8.6612        .11659E-03   -1.5021    
  21  Normalizat    1.2330        .23370        .23124E-03   -.85589    
  22  Prefactor     .73168        .20384        .26606E-03   -1.0230    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.94159e-09
Minuit parameter uncertainties:
  1  6.21848
  2  27.4636
  3  7.80976e-05
  4  3.42726e-05
  5  17.7317
  6  9.74212e-06
  7  3.84048e-05
  8  40.6045
  9  29.4771
  10  14.0017
  11  7.98753
  12  2.48951
  13  53.8377
  14  0.0001908
  15  0.00172032
  16  55.3432
  17  123.199
  18  0.573944
  19  5.26538
  20  8.66213
  21  0.233902
  22  0.204048
Done.

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

Extracting fit parameters...

4FGL J2331.3-1558
   Spectrum: PowerLaw
425    Prefactor:  1.000e-04  1.908e-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:  7.317e-01  2.040e-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.233e+00  2.339e-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: 8.04e-08 ph cm-2 s-1
Energy Flux Upper Limit: 6.27e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/9455/likelihoodResults_266025601_266284801_4FGL_J2331.3-1558_daily_bin103.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) = 5982.16552832
delta logL = -0.000416365278397

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5982.16511197
delta logL = -1.11749614007e-08

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10015E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.5400       1.0000          .0000       10.000    
     3 'Normalizat'    1.2330       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .73168       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=   5982.165     FROM MIGRAD    STATUS=CONVERGED     54 CALLS      208 TOTAL
                     EDM=   .17E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    1641.3        .90712E-02** at limit **
   2  Index         2.5380        5.4241        .50000        .15310E-05
   3  Normalizat    1.2330        .72079E-01    .52299E-01   -.68965E-04
   4  Prefactor     .73167        .65636E-01    .42821E-01   -.15018E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Index      = 2.538
  Normalizat = 1.233
  Prefactor  = 0.731666
 **********
 **   18 **HESSE 
 **********

 FCN=   5982.165     FROM HESSE     STATUS=OK            33 CALLS      241 TOTAL
                     EDM=   .12E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    15.743        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.5380        6.2512        .50000       -.51485    
   3  Normalizat    1.2330        .21654        .23123E-03   -.85589    
   4  Prefactor     .73167        .19806        .26606E-03   -1.0230    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.15427e-11
Minuit parameter uncertainties:
  1  4.78102e-05
  2  5.11532
  3  0.216694
  4  0.19825
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/9455': 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) = 5982.16511195
delta logL = 2.62207322521e-09

Extracting fit parameters...

4FGL J2331.3-1558
   Spectrum: PowerLaw
425    Prefactor:  1.000e-04  4.781e-05  1.000e-04  1.000e+04 ( 1.000e-13)
426        Index:  2.538e+00  5.115e+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.317e-01  1.983e-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.233e+00  2.167e-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/9455/cmap_HighResolution_266025601_266284801_4FGL_J2331.3-1558_daily_bin103.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='6.27e-03', job_status='DONE', photon_flux_upper_limit='8.04e-08', time_completed='2021-09-29 23:10:44.425405', job_id='9455', GAL2='0.73', fit_tolerance='1e-08', EG2='1.23', EG='1.23', time_epoch_completed='1632982244.43', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.73', dlogl='2.62e-09', ts2='-0.00', photon_index_error='0.00', photon_index='2.54' WHERE bin_id='103' AND source_name='4FGL J2331.3-1558' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep 29 23:10:44 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0304>
Subject: Job 9455: <4FGL_J2331.3-1558_daily_bin103> in cluster <slac> Done

Job <4FGL_J2331.3-1558_daily_bin103> was submitted from host <rhel6-64k> by user <kocevski> in cluster <slac> at Wed Sep 29 23:00:44 2021
Job was executed on host(s) <bullet0304>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Sep 29 23:00:46 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:46 2021
Terminated at Wed Sep 29 23:10:45 2021
Results reported at Wed Sep 29 23:10:45 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2331.3-1558_daily_bin103 352.839 -15.9777 266025601 266284801 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 :                                   581.00 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             335.43 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   598 sec.
    Turnaround time :                            601 sec.

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

