/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 222 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 = 7673
number of fields = 27
No RA_SUN column yet. Adding RA_SUN/DEC_SUN columns.
Done.


Performing analysis on: 4FGL_J2331.3-1558_daily_bin362
RA = 352.839, Dec = -15.9777
tmin = 333158401, tmax = 333417601
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='10844', job_status='RUN', time_executed='2021-09-29 23:09:37.722937', time_epoch_executed='1632982177.72' WHERE source_name='4FGL J2331.3-1558' and cadence='daily' and bin_id='362'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/10844

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

Retrieving the FT1 file...

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

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

Retrieving 51 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/10844/ft1_4FGL_J2331.3-1558_daily_bin362.fits


Retrieving the FT1 file...

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

Retrieving 51 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/10844/ft2_4FGL_J2331.3-1558_daily_bin362.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/10844/ft1_4FGL_J2331.3-1558_daily_bin362.fits outfile=/scratch/kocevski/10844/ft1_filteredMKT_4FGL_J2331.3-1558_daily_bin362.fits ra=352.839 dec=-15.9777 rad=12.0 tmin=333158401.0 tmax=333417601.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 6.15
user 5.87
sys 0.25

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/10844/ft1_filtered_4FGL_J2331.3-1558_daily_bin362.fits" evtable="EVENTS" scfile=/scratch/kocevski/10844/ft2_4FGL_J2331.3-1558_daily_bin362.fits sctable="SC_DATA" outfile=/scratch/kocevski/10844/ltcube_333158401_333417601_4FGL_J2331.3-1558_daily_bin362.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/10844/ft2_4FGL_J2331.3-1558_daily_bin362.fits
.....................!
real 11.48
user 11.15
sys 0.30

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/10844/ft1_filtered_4FGL_J2331.3-1558_daily_bin362.fits evtable="EVENTS" scfile=/scratch/kocevski/10844/ft2_4FGL_J2331.3-1558_daily_bin362.fits sctable="SC_DATA" expcube=/scratch/kocevski/10844/ltcube_333158401_333417601_4FGL_J2331.3-1558_daily_bin362.fits outfile=/scratch/kocevski/10844/expmap_333158401_333417601_4FGL_J2331.3-1558_daily_bin362.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/10844/ltcube_333158401_333417601_4FGL_J2331.3-1558_daily_bin362.fits
.....................!
real 192.42
user 186.88
sys 5.17

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/10844/ft1_filtered_4FGL_J2331.3-1558_daily_bin362.fits scfile=/scratch/kocevski/10844/ft2_4FGL_J2331.3-1558_daily_bin362.fits outfile=/scratch/kocevski/10844/cmap_333158401_333417601_4FGL_J2331.3-1558_daily_bin362.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.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/10844/ft1_filtered_4FGL_J2331.3-1558_daily_bin362.fits scfile=/scratch/kocevski/10844/ft2_4FGL_J2331.3-1558_daily_bin362.fits outfile=/scratch/kocevski/10844/cmap_HighResolution_333158401_333417601_4FGL_J2331.3-1558_daily_bin362.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.56
user 0.37
sys 0.17

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/10844/ft1_filtered_4FGL_J2331.3-1558_daily_bin362.fits evtable="EVENTS" scfile=/scratch/kocevski/10844/ft2_4FGL_J2331.3-1558_daily_bin362.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/10844/Model_4FGL_J2331.3-1558_daily_bin362.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/10844/ft1_filtered_4FGL_J2331.3-1558_daily_bin362.fits.....................!
real 45.23
user 43.92
sys 1.17

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    10.768       1.0000         .10000E-03   10000.    
     2 'norm      '    .10031E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10013E-03   1.0000         .10000E-03   10000.    
     4 'norm      '    .10028E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    1.6955       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .52750       1.0000         .10000E-03   10000.    
     7 'Prefactor '    15.947       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10008E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10051E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    3.8744       1.0000         .10000E-03   10000.    
    12 'norm      '    2.5627       1.0000         .10000E-03   10000.    
    13 'Prefactor '    36.172       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10013E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    96.060       1.0000         .10000E-03   10000.    
    18 'norm      '    3.4509       1.0000         .10000E-03   10000.    
    19 'norm      '    .48433       1.0000         .10000E-03   10000.    
    20 'Prefactor '    6.9744       1.0000         .10000E-03   10000.    
    21 'Normalizat'    .98416       1.0000         .10000E-01   10.000    
    22 'Prefactor '    .57520       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=   5375.020     FROM MIGRAD    STATUS=CONVERGED    487 CALLS     2411 TOTAL
                     EDM=   .12E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.7%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     10.770        8.2685        .13304E-06    .13345E-03
   2  norm          .10000E-03    17.062        .92632E-07** at limit **
   3  Prefactor     .10000E-03    12.576       -.95269E-06** at limit **
   4  norm          .10000E-03    .45195       -.40540E-06** at limit **
   5  Prefactor     1.7140        43.427        .20531E-05   -.21238E-04
   6  Prefactor     .50015        9.9712        .91199E-06   -.20744E-03
   7  Prefactor     15.949        11.711        .24333E-06    .13463E-03
   8  Prefactor     .10000E-03    31.109       -.45028E-06** at limit **
   9  Prefactor     .10000E-03    92.593       -.24918E-05** at limit **
  10  Prefactor     .10000E-03    5.3022       -.49978E-06** at limit **
  11  norm          3.8732        4.2263        .23505E-05   -.13224E-02
  12  norm          2.5623        2.4020        .13317E-06    .13628E-03
  13  Prefactor     36.142        43.628       -.68123E-05   -.39047E-03
  14  Prefactor     .10000E-03    7.5513       -.47725E-06** at limit **
  15  Prefactor     .10000E-03    21.417       -.12168E-05** at limit **
  16  Prefactor     .10000E-03    18.664        .85400E-06** at limit **
  17  Prefactor     96.063        101.70        .97550E-06    .44896E-04
  18  norm          3.4502        .93925        .49896E-07    .11462E-02
  19  norm          .49442        3.7286       -.40531E-06    .44578E-03
  20  Prefactor     6.9744        5.8314        .85027E-06    .63394E-03
  21  Normalizat    .98406        .16321        .10360E-05    .11291E-03
  22  Prefactor     .57528        .14801       -.14010E-05    .21774E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 10.7698
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 1.71404
  Prefactor  = 0.500146
  Prefactor  = 15.9486
  Prefactor  = 0.0001
  Prefactor  = 0.000100001
  Prefactor  = 0.0001
  norm       = 3.87315
  norm       = 2.56232
  Prefactor  = 36.1421
  Prefactor  = 0.0001
  Prefactor  = 0.000100001
  Prefactor  = 0.0001
  Prefactor  = 96.0633
  norm       = 3.45022
  norm       = 0.494415
  Prefactor  = 6.97443
  Normalizat = 0.984064
  Prefactor  = 0.575281
 **********
 **   18 **HESSE 
 **********

 FCN=   5375.020     FROM HESSE     STATUS=OK           346 CALLS     2757 TOTAL
                     EDM=   .49E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     10.770        8.2662        .12209E-03   -1.5052    
   2  norm          .10000E-03    17.090        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    12.683        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  norm          .10000E-03    .65874        .86886E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     1.7140        37.545        .32317E-03   -1.5446    
   6  Prefactor     .50015        53.390        .42450E-02   -1.5567    
   7  Prefactor     15.949        11.703        .10030E-03   -1.4909    
   8  Prefactor     .10000E-03    31.198        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    95.683        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    5.3859        .16514E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          3.8732        4.4618        .79986E-03   -1.5314    
  12  norm          2.5623        2.3965        .10547E-03   -1.5388    
  13  Prefactor     36.142        46.752        .66635E-04   -1.4505    
  14  Prefactor     .10000E-03    7.5516        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    21.616        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    18.710        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     96.063        101.97        .41010E-04   -1.3745    
  18  norm          3.4502        1.0022        .29099E-04   -1.5336    
  19  norm          .49442        19.604        .21749E-02   -1.5567    
  20  Prefactor     6.9744        5.8755        .15191E-03   -1.5180    
  21  Normalizat    .98406        .18991        .21175E-03   -.93566    
  22  Prefactor     .57528        .17263        .24871E-03   -1.0864    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.8749e-09
Minuit parameter uncertainties:
  1  8.26704
  2  6.72807e-06
  3  6.2794e-06
  4  1.90603e-05
  5  16.0552
  6  10.3434
  7  11.7049
  8  0.000117286
  9  0.000527073
  10  5.25405e-05
  11  4.46218
  12  2.39659
  13  46.799
  14  6.77709e-05
  15  0.000227438
  16  0.000130368
  17  102.153
  18  1.00218
  19  6.22819
  20  5.87597
  21  0.190044
  22  0.172785
Done.

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

Extracting fit parameters...

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

EG_v02
   Spectrum: FileFunction
530   Normalization:  9.841e-01  1.900e-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: 6.70e-08 ph cm-2 s-1
Energy Flux Upper Limit: 5.23e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/10844/likelihoodResults_333158401_333417601_4FGL_J2331.3-1558_daily_bin362.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) = 5375.02091338
delta logL = -0.000630971579994

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 5375.02028261
delta logL = -2.00267095352e-07

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10250E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.5317       1.0000          .0000       10.000    
     3 'Normalizat'    .98401       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .57534       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=   5375.020     FROM MIGRAD    STATUS=CONVERGED     85 CALLS      234 TOTAL
                     EDM=   .48E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10089E-03    115.75        .18142E-02** at limit **
   2  Index         2.4721        8.0863        .50000        .99297E-05
   3  Normalizat    .98407        .15381E-01    .21175E-03    .18522E-04
   4  Prefactor     .57528        .14192E-01    .24871E-03    .86394E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.00010089
  Index      = 2.47207
  Normalizat = 0.984065
  Prefactor  = 0.575279
 **********
 **   18 **HESSE 
 **********

 FCN=   5375.020     FROM HESSE     STATUS=NOT POSDEF    29 CALLS      263 TOTAL
                     EDM=   .22E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10089E-03    486.09        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.4721        6.4988        .50000       -.53006    
   3  Normalizat    .98407        .33702E-01    .84701E-05   -.93566    
   4  Prefactor     .57528        .31093E-01    .99483E-05   -1.0864    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 2.20047e-08
Minuit parameter uncertainties:
  1  0.0419493
  2  1204.29
  3  0.0337025
  4  0.0310936
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/10844': 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) = 5375.02028229
delta logL = 1.19924152386e-07

Extracting fit parameters...

4FGL J2331.3-1558
   Spectrum: PowerLaw
425    Prefactor:  1.009e-04  4.195e-02  1.000e-04  1.000e+04 ( 1.000e-13)
426        Index:  2.472e+00  1.204e+03  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:  5.753e-01  3.109e-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:  9.841e-01  3.370e-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/10844/cmap_HighResolution_333158401_333417601_4FGL_J2331.3-1558_daily_bin362.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='5.23e-03', job_status='DONE', photon_flux_upper_limit='6.70e-08', time_completed='2021-09-29 23:19:18.903739', job_id='10844', GAL2='0.58', fit_tolerance='1e-08', EG2='0.98', EG='0.98', time_epoch_completed='1632982758.9', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.58', dlogl='1.20e-07', ts2='-0.00', photon_index_error='0.00', photon_index='2.54' WHERE bin_id='362' AND source_name='4FGL J2331.3-1558' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep 29 23:19:18 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0054>
Subject: Job 10844: <4FGL_J2331.3-1558_daily_bin362> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2331.3-1558_daily_bin362 352.839 -15.9777 333158401 333417601 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 :                                   579.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             221.92 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   813 sec.
    Turnaround time :                            815 sec.

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

