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


Performing analysis on: 4FGL_J2331.3-1558_daily_bin720
RA = 352.839, Dec = -15.9777
tmin = 425952001, tmax = 426211201
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='12312', job_status='RUN', time_executed='2021-09-29 23:13:22.702824', time_epoch_executed='1632982402.7' WHERE source_name='4FGL J2331.3-1558' and cadence='daily' and bin_id='720'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/12312

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/12312/ft1_4FGL_J2331.3-1558_daily_bin720.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/12312/ft2_4FGL_J2331.3-1558_daily_bin720.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/12312/ft1_4FGL_J2331.3-1558_daily_bin720.fits outfile=/scratch/kocevski/12312/ft1_filteredMKT_4FGL_J2331.3-1558_daily_bin720.fits ra=352.839 dec=-15.9777 rad=12.0 tmin=425952001.0 tmax=426211201.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.65
user 3.40
sys 0.22

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/12312/ft1_filtered_4FGL_J2331.3-1558_daily_bin720.fits" evtable="EVENTS" scfile=/scratch/kocevski/12312/ft2_4FGL_J2331.3-1558_daily_bin720.fits sctable="SC_DATA" outfile=/scratch/kocevski/12312/ltcube_425952001_426211201_4FGL_J2331.3-1558_daily_bin720.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/12312/ft2_4FGL_J2331.3-1558_daily_bin720.fits
.....................!
real 12.94
user 12.55
sys 0.34

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/12312/ft1_filtered_4FGL_J2331.3-1558_daily_bin720.fits evtable="EVENTS" scfile=/scratch/kocevski/12312/ft2_4FGL_J2331.3-1558_daily_bin720.fits sctable="SC_DATA" expcube=/scratch/kocevski/12312/ltcube_425952001_426211201_4FGL_J2331.3-1558_daily_bin720.fits outfile=/scratch/kocevski/12312/expmap_425952001_426211201_4FGL_J2331.3-1558_daily_bin720.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/12312/ltcube_425952001_426211201_4FGL_J2331.3-1558_daily_bin720.fits
.....................!
real 189.75
user 184.41
sys 4.98

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/12312/ft1_filtered_4FGL_J2331.3-1558_daily_bin720.fits scfile=/scratch/kocevski/12312/ft2_4FGL_J2331.3-1558_daily_bin720.fits outfile=/scratch/kocevski/12312/cmap_425952001_426211201_4FGL_J2331.3-1558_daily_bin720.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/12312/ft1_filtered_4FGL_J2331.3-1558_daily_bin720.fits scfile=/scratch/kocevski/12312/ft2_4FGL_J2331.3-1558_daily_bin720.fits outfile=/scratch/kocevski/12312/cmap_HighResolution_425952001_426211201_4FGL_J2331.3-1558_daily_bin720.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.15

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
     2 'norm      '    11.269       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     4 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10192E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    30.711       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .56554E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    28.425       1.0000         .10000E-03   10000.    
     9 'Prefactor '    5.8955       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10113E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    .10207E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    3.0588       1.0000         .10000E-03   10000.    
    13 'Prefactor '    26.964       1.0000         .10000E-03   10000.    
    14 'Prefactor '    5.7041       1.0000         .10000E-03   10000.    
    15 'Prefactor '    20.624       1.0000         .10000E-03   10000.    
    16 'Prefactor '    13.649       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .39833E-03   1.0000         .10000E-03   10000.    
    18 'norm      '    2.0232       1.0000         .10000E-03   10000.    
    19 'norm      '    4.0381       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10130E-03   1.0000         .10000E-03   10000.    
    21 'Normalizat'    .76636       1.0000         .10000E-01   10.000    
    22 'Prefactor '    .95404       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=   4682.298     FROM MIGRAD    STATUS=CONVERGED    477 CALLS     2380 TOTAL
                     EDM=   .75E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  6.9%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    8.9694       -.83203E-06** at limit **
   2  norm          11.250        19.487        .54049E-07   -.77626E-05
   3  Prefactor     .10000E-03    7.0033       -.41249E-06** at limit **
   4  norm          .10000E-03    .30529       -.15983E-06** at limit **
   5  Prefactor     .10000E-03    30.449       -.11816E-05** at limit **
   6  Prefactor     30.704        16.748       -.29815E-07    .18701E-03
   7  Prefactor     .10000E-03    105.75        .33278E-04** at limit **
   8  Prefactor     28.430        56.777        .11709E-05    .70167E-04
   9  Prefactor     5.8898        33.520        .67210E-06    .10444E-03
  10  Prefactor     .10000E-03    7.5962       -.17463E-05** at limit **
  11  norm          .10000E-03    2.9794       -.81906E-06** at limit **
  12  norm          3.0609        3.2014        .18813E-06    .42472E-03
  13  Prefactor     26.709        124.23        .41741E-05    .11629E-03
  14  Prefactor     5.8302        69.265       -.26666E-05    .11706E-03
  15  Prefactor     20.585        29.944       -.31775E-06    .38858E-04
  16  Prefactor     13.687        40.703        .94189E-06    .10360E-06
  17  Prefactor     .10000E-03    42.551        .21168E-06** at limit **
  18  norm          2.0231        .85053        .38242E-07    .14447E-02
  19  norm          4.0381        5.1121        .46687E-06    .48149E-03
  20  Prefactor     .10000E-03    2.3597       -.31880E-06** at limit **
  21  Normalizat    .76620        .22977       -.61108E-05    .41251E-03
  22  Prefactor     .95412        .20471        .56357E-05    .29750E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100001
  norm       = 11.2497
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.000100001
  Prefactor  = 30.7041
  Prefactor  = 0.000100005
  Prefactor  = 28.4298
  Prefactor  = 5.88982
  Prefactor  = 0.000100003
  norm       = 0.000100001
  norm       = 3.0609
  Prefactor  = 26.7085
  Prefactor  = 5.8302
  Prefactor  = 20.585
  Prefactor  = 13.6865
  Prefactor  = 0.0001
  norm       = 2.02309
  norm       = 4.03812
  Prefactor  = 0.0001
  Normalizat = 0.766197
  Prefactor  = 0.954117
 **********
 **   18 **HESSE 
 **********

 FCN=   4682.298     FROM HESSE     STATUS=OK           346 CALLS     2726 TOTAL
                     EDM=   .13E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    9.1407        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          11.250        19.481        .11934E-03   -1.5037    
   3  Prefactor     .10000E-03    7.0451        .17685E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  norm          .10000E-03    .31182        .36920E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    30.644        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     30.704        16.744        .72301E-04   -1.4599    
   7  Prefactor     .10000E-03    7.2129        .60997E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     28.430        56.722        .75144E-04   -1.4641    
   9  Prefactor     5.8898        33.455        .16539E-03   -1.5223    
  10  Prefactor     .10000E-03    7.7431        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          .10000E-03    3.0298        .11578E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          3.0609        3.1874        .11774E-03   -1.5358    
  13  Prefactor     26.709        125.95        .77149E-04   -1.4674    
  14  Prefactor     5.8302        69.866        .16818E-03   -1.5225    
  15  Prefactor     20.585        29.925        .88197E-04   -1.4800    
  16  Prefactor     13.687        40.667        .10842E-03   -1.4968    
  17  Prefactor     .10000E-03    42.565        .21266E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          2.0231        .86184        .34993E-04   -1.5423    
  19  norm          4.0381        5.1773        .15086E-03   -1.5306    
  20  Prefactor     .10000E-03    2.3699        .10270E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Normalizat    .76620        .22929        .25918E-03   -1.0134    
  22  Prefactor     .95412        .20509        .21781E-03   -.94275    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.32661e-09
Minuit parameter uncertainties:
  1  0.000137689
  2  19.492
  3  4.76309e-05
  4  4.2131e-06
  5  0.00026062
  6  16.7471
  7  0.000370013
  8  56.8296
  9  28.0984
  10  0.000293415
  11  8.55694e-05
  12  3.18762
  13  116.402
  14  40.4236
  15  29.9463
  16  40.7491
  17  8.80797e-05
  18  0.861849
  19  5.17784
  20  2.44516e-05
  21  0.229582
  22  0.205262
Done.

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

Extracting fit parameters...

4FGL J2331.3-1558
   Spectrum: PowerLaw
425    Prefactor:  5.830e+00  4.042e+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:  9.541e-01  2.053e-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.662e-01  2.296e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/12312/likelihoodResults_425952001_426211201_4FGL_J2331.3-1558_daily_bin720.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) = 4682.05547921
delta logL = 0.242652523209

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 4682.02996937
delta logL = 0.26816235895

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    4.4610       1.0000         .10000E-03   10000.    
     2 'Index     '    3.4516       1.0000          .0000       10.000    
     3 'Normalizat'    .72376       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .97627       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=   4682.030     FROM MIGRAD    STATUS=CONVERGED     56 CALLS      217 TOTAL
                     EDM=   .22E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     4.4540        195.10        .47661E-02    .39215E-03
   2  Index         3.4528        6.7021        .11992        .11057E-03
   3  Normalizat    .72377        .58129E-01    .42607E-01    .15424E-04
   4  Prefactor     .97624        .53132E-01    .45970E-01    .42022E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 4.45399
  Index      = 3.4528
  Normalizat = 0.723771
  Prefactor  = 0.976241
 **********
 **   18 **HESSE 
 **********

 FCN=   4682.030     FROM HESSE     STATUS=OK            33 CALLS      250 TOTAL
                     EDM=   .48E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     4.4540        16.808        .17936E-03   -1.5286    
   2  Index         3.4528        1.8152        .71353E-02   -.31460    
   3  Normalizat    .72377        .22590        .26576E-03   -1.0296    
   4  Prefactor     .97624        .20413        .21546E-03   -.93526    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.77035e-11
Minuit parameter uncertainties:
  1  16.826
  2  1.86248
  3  0.226193
  4  0.204288
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/12312': 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) = 4682.02996884
delta logL = 0.26816289154

Extracting fit parameters...

4FGL J2331.3-1558
   Spectrum: PowerLaw
425    Prefactor:  4.454e+00  1.683e+01  1.000e-04  1.000e+04 ( 1.000e-13)
426        Index:  3.453e+00  1.862e+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:  9.762e-01  2.043e-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.238e-01  2.262e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 0.08
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/12312/cmap_HighResolution_425952001_426211201_4FGL_J2331.3-1558_daily_bin720.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='9.95e-03', job_status='DONE', photon_flux_upper_limit='1.28e-07', time_completed='2021-09-29 23:22:12.518997', job_id='12312', GAL2='0.98', fit_tolerance='1e-08', EG2='0.72', EG='0.77', time_epoch_completed='1632982932.52', return_code2='0', ts='0.08', comment='SUCCESS', return_code='0', GAL='0.95', dlogl='2.68e-01', ts2='0.66', photon_index_error='0.00', photon_index='2.54' WHERE bin_id='720' AND source_name='4FGL J2331.3-1558' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep 29 23:22:12 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0048>
Subject: Job 12312: <4FGL_J2331.3-1558_daily_bin720> in cluster <slac> Done

Job <4FGL_J2331.3-1558_daily_bin720> was submitted from host <rhel6-64p> by user <kocevski> in cluster <slac> at Wed Sep 29 23:10:40 2021
Job was executed on host(s) <bullet0048>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Sep 29 23:10:42 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:10:42 2021
Terminated at Wed Sep 29 23:22:13 2021
Results reported at Wed Sep 29 23:22:13 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2331.3-1558_daily_bin720 352.839 -15.9777 425952001 426211201 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 :                                   526.29 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             286.36 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              7
    Max Threads :                                21
    Run time :                                   690 sec.
    Turnaround time :                            693 sec.

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

