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


Performing analysis on: 4FGL_J2331.3-1558_daily_bin1096
RA = 352.839, Dec = -15.9777
tmin = 523411201, tmax = 523670401
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='13866', job_status='RUN', time_executed='2021-09-29 23:17:01.964293', time_epoch_executed='1632982621.96' WHERE source_name='4FGL J2331.3-1558' and cadence='daily' and bin_id='1096'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/13866

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/13866/ft1_4FGL_J2331.3-1558_daily_bin1096.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/13866/ft2_4FGL_J2331.3-1558_daily_bin1096.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/13866/ft1_4FGL_J2331.3-1558_daily_bin1096.fits outfile=/scratch/kocevski/13866/ft1_filteredMKT_4FGL_J2331.3-1558_daily_bin1096.fits ra=352.839 dec=-15.9777 rad=12.0 tmin=523411201.0 tmax=523670401.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.52
user 3.30
sys 0.21

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/13866/ft2_4FGL_J2331.3-1558_daily_bin1096.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/13866/ft1_filteredMKT_4FGL_J2331.3-1558_daily_bin1096.fits evtable="EVENTS" outfile="/scratch/kocevski/13866/ft1_filtered_4FGL_J2331.3-1558_daily_bin1096.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/13866/ft1_filtered_4FGL_J2331.3-1558_daily_bin1096.fits" evtable="EVENTS" scfile=/scratch/kocevski/13866/ft2_4FGL_J2331.3-1558_daily_bin1096.fits sctable="SC_DATA" outfile=/scratch/kocevski/13866/ltcube_523411201_523670401_4FGL_J2331.3-1558_daily_bin1096.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/13866/ft2_4FGL_J2331.3-1558_daily_bin1096.fits
.....................!
real 11.58
user 11.23
sys 0.31

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/13866/ft1_filtered_4FGL_J2331.3-1558_daily_bin1096.fits evtable="EVENTS" scfile=/scratch/kocevski/13866/ft2_4FGL_J2331.3-1558_daily_bin1096.fits sctable="SC_DATA" expcube=/scratch/kocevski/13866/ltcube_523411201_523670401_4FGL_J2331.3-1558_daily_bin1096.fits outfile=/scratch/kocevski/13866/expmap_523411201_523670401_4FGL_J2331.3-1558_daily_bin1096.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/13866/ltcube_523411201_523670401_4FGL_J2331.3-1558_daily_bin1096.fits
.....................!
real 190.66
user 185.38
sys 4.97

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/13866/ft1_filtered_4FGL_J2331.3-1558_daily_bin1096.fits scfile=/scratch/kocevski/13866/ft2_4FGL_J2331.3-1558_daily_bin1096.fits outfile=/scratch/kocevski/13866/cmap_523411201_523670401_4FGL_J2331.3-1558_daily_bin1096.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.37
sys 0.15

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

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .25441E-03   1.0000         .10000E-03   10000.    
     2 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    8.5029       1.0000         .10000E-03   10000.    
     4 'norm      '    .11290E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    51.962       1.0000         .10000E-03   10000.    
     6 'Prefactor '    5.4318       1.0000         .10000E-03   10000.    
     7 'Prefactor '    53.062       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    3.5687       1.0000         .10000E-03   10000.    
    11 'norm      '    9.7565       1.0000         .10000E-03   10000.    
    12 'norm      '    1.5752       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    18.815       1.0000         .10000E-03   10000.    
    16 'Prefactor '    20.840       1.0000         .10000E-03   10000.    
    17 'Prefactor '    31.099       1.0000         .10000E-03   10000.    
    18 'norm      '    .75526E-01   1.0000         .10000E-03   10000.    
    19 'norm      '    38.460       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    21 'Normalizat'    .75398       1.0000         .10000E-01   10.000    
    22 'Prefactor '    .85628       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5340E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   4707.460     FROM MIGRAD    STATUS=CONVERGED     64 CALLS     2314 TOTAL
                     EDM=   .17E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY= 10.3%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    .40958        .19968E-06** at limit **
   2  norm          .10001E-03    13.048        .13931E-04** at limit **
   3  Prefactor     8.4580        9.0775       -.20912E-04    .49335E-02
   4  norm          .10000E-03    2.0348        .44991E-06** at limit **
   5  Prefactor     51.951        1.2376       -.55618E-06   -.44384E-02
   6  Prefactor     5.4308        1.0696        .10129E-05   -.17472E-03
   7  Prefactor     53.057        1.0461       -.20929E-06   -.15717E-02
   8  Prefactor     .10046E-03    12.675       -.29176E-04** at limit **
   9  Prefactor     .10077E-03    11.933        .30320E-04** at limit **
  10  Prefactor     3.5687        1.0253       -.23769E-06   -.12061E-03
  11  norm          9.7564        1.0291       -.26271E-06   -.63763E-03
  12  norm          1.5756        4.1555       -.54265E-05   -.15348E-03
  13  Prefactor     .10018E-03    15.426       -.17227E-04** at limit **
  14  Prefactor     .10000E-03    6.4851       -.13317E-05** at limit **
  15  Prefactor     18.819        2.0824        .28232E-05   -.31163E-02
  16  Prefactor     20.839        1.1432       -.82824E-06    .11181E-02
  17  Prefactor     31.108        4.3493        .52010E-05   -.10378E-01
  18  norm          .75902E-01    1.2745       -.81804E-06   -.47948E-03
  19  norm          38.457        1.1401       -.35645E-06   -.27468E-03
  20  Prefactor     .10000E-03    4.0153        .25805E-06** at limit **
  21  Normalizat    .75409        .23132        .30990E-05    .11413E-03
  22  Prefactor     .85621        .20968        .15148E-05   -.85108E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  norm       = 0.000100011
  Prefactor  = 8.45799
  norm       = 0.0001
  Prefactor  = 51.9505
  Prefactor  = 5.43083
  Prefactor  = 53.0574
  Prefactor  = 0.000100463
  Prefactor  = 0.000100772
  Prefactor  = 3.56869
  norm       = 9.75636
  norm       = 1.57557
  Prefactor  = 0.000100177
  Prefactor  = 0.000100002
  Prefactor  = 18.8192
  Prefactor  = 20.8392
  Prefactor  = 31.1081
  norm       = 0.0759017
  norm       = 38.4575
  Prefactor  = 0.000100001
  Normalizat = 0.754086
  Prefactor  = 0.856212
 **********
 **   18 **HESSE 
 **********

 FCN=   4707.460     FROM HESSE     STATUS=OK           404 CALLS     2718 TOTAL
                     EDM=   .43E-05    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    6.6355        .60645E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          .10001E-03    25.441        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     8.4580        28.432        .34368E-02   -1.5126    
   4  norm          .10000E-03    1.5189        .22848E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     51.951        54.265        .13909E-02   -1.4265    
   6  Prefactor     5.4308        8.7585        .43103E-02   -1.5242    
   7  Prefactor     53.057        20.492        .13765E-02   -1.4250    
   8  Prefactor     .10046E-03    14.611        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10077E-03    15.880        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     3.5687        7.0927        .53484E-02   -1.5330    
  11  norm          9.7564        5.8102        .32073E-02   -1.5083    
  12  norm          1.5756        4.8481        .84640E-02   -1.5457    
  13  Prefactor     .10018E-03    27.254        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    6.4813        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     18.819        45.431        .23084E-02   -1.4840    
  16  Prefactor     20.839        40.299        .21935E-02   -1.4795    
  17  Prefactor     31.108        103.07        .17962E-02   -1.4592    
  18  norm          .75902E-01    1.2623        .16864E-01   -1.5653    
  19  norm          38.457        11.528        .16157E-02   -1.4467    
  20  Prefactor     .10000E-03    3.9817        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Normalizat    .75409        .20095        .61801E-01   -1.0180    
  22  Prefactor     .85621        .17927        .44445E-01   -.97688    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.30504e-06
Minuit parameter uncertainties:
  1  0.000105232
  2  0.0010354
  3  28.4776
  4  4.72151e-05
  5  54.317
  6  8.76053
  7  20.4948
  8  0.00520274
  9  0.0070061
  10  7.09438
  11  5.81055
  12  4.8493
  13  0.00439878
  14  0.000197985
  15  45.5143
  16  40.3519
  17  103.672
  18  0.61868
  19  11.5288
  20  0.000134138
  21  0.201145
  22  0.17939
Done.

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

Extracting fit parameters...

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

EG_v02
   Spectrum: FileFunction
530   Normalization:  7.541e-01  2.011e-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.16e-08 ph cm-2 s-1
Energy Flux Upper Limit: 5.58e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/13866/likelihoodResults_523411201_523670401_4FGL_J2331.3-1558_daily_bin1096.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): 102
logL (Free Index) = 4707.46061473
delta logL = -0.000732509703994

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 4707.45988237
delta logL = -1.55456291395e-07

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10276E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.5233       1.0000          .0000       10.000    
     3 'Normalizat'    .75416       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .85615       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=   4707.460     FROM MIGRAD    STATUS=CONVERGED     92 CALLS      244 TOTAL
                     EDM=   .71E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10238E-03    6.9579        .17296E-01** at limit **
   2  Index         2.4356        8.2817        .50000        .20481E-04
   3  Normalizat    .75408        .47736E-02    .27337E-03   -.19920E-04
   4  Prefactor     .85621        .44090E-02    .23645E-03   -.22502E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000102383
  Index      = 2.4356
  Normalizat = 0.754084
  Prefactor  = 0.856214
 **********
 **   18 **HESSE 
 **********

 FCN=   4707.460     FROM HESSE     STATUS=NOT POSDEF    29 CALLS      273 TOTAL
                     EDM=   .92E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10238E-03    88.952        .17695E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.4356        5.3006        .50000       -.53854    
   3  Normalizat    .75408        .17271E-01    .10935E-04   -1.0180    
   4  Prefactor     .85621        .15952E-01    .94580E-05   -.97688    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 9.17929e-09
Minuit parameter uncertainties:
  1  0.0291607
  2  439.74
  3  0.0172709
  4  0.0159518
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/13866': 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): 102
logL (Free Index) = 4707.45988183
delta logL = 3.89913111576e-07

Extracting fit parameters...

4FGL J2331.3-1558
   Spectrum: PowerLaw
425    Prefactor:  1.024e-04  2.916e-02  1.000e-04  1.000e+04 ( 1.000e-13)
426        Index:  2.436e+00  4.397e+02  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:  8.562e-01  1.595e-02  0.000e+00  1.000e+01 ( 1.000e+00)
532        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
533        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
530   Normalization:  7.541e-01  1.727e-02  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/13866/cmap_HighResolution_523411201_523670401_4FGL_J2331.3-1558_daily_bin1096.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='5.58e-03', job_status='DONE', photon_flux_upper_limit='7.16e-08', time_completed='2021-09-29 23:25:59.581593', job_id='13866', GAL2='0.86', fit_tolerance='1e-08', EG2='0.75', EG='0.75', time_epoch_completed='1632983159.58', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.86', dlogl='3.90e-07', ts2='-0.00', photon_index_error='0.00', photon_index='2.54' WHERE bin_id='1096' AND source_name='4FGL J2331.3-1558' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep 29 23:25:59 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0279>
Subject: Job 13866: <4FGL_J2331.3-1558_daily_bin1096> in cluster <slac> Done

Job <4FGL_J2331.3-1558_daily_bin1096> was submitted from host <rhel6-64p> by user <kocevski> in cluster <slac> at Wed Sep 29 23:15:26 2021
Job was executed on host(s) <bullet0279>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Sep 29 23:15:27 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:15:27 2021
Terminated at Wed Sep 29 23:25:59 2021
Results reported at Wed Sep 29 23:25:59 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2331.3-1558_daily_bin1096 352.839 -15.9777 523411201 523670401 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 :                                   525.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             307.91 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   632 sec.
    Turnaround time :                            633 sec.

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

