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


Performing analysis on: 4FGL_J2331.0-2147_daily_bin432
RA = 352.763, Dec = -21.7953
tmin = 351302401, tmax = 351561601
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='4617', job_status='RUN', time_executed='2021-09-29 22:49:02.088639', time_epoch_executed='1632980942.09' WHERE source_name='4FGL J2331.0-2147' and cadence='daily' and bin_id='432'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/4617

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/4617/ft1_4FGL_J2331.0-2147_daily_bin432.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/4617/ft2_4FGL_J2331.0-2147_daily_bin432.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/4617/ft1_4FGL_J2331.0-2147_daily_bin432.fits outfile=/scratch/kocevski/4617/ft1_filteredMKT_4FGL_J2331.0-2147_daily_bin432.fits ra=352.763 dec=-21.7953 rad=12.0 tmin=351302401.0 tmax=351561601.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.41
user 3.21
sys 0.19

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/4617/ft2_4FGL_J2331.0-2147_daily_bin432.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/4617/ft2_4FGL_J2331.0-2147_daily_bin432.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/4617/ft1_filteredMKT_4FGL_J2331.0-2147_daily_bin432.fits evtable="EVENTS" outfile="/scratch/kocevski/4617/ft1_filtered_4FGL_J2331.0-2147_daily_bin432.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.16

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/4617/ft1_filtered_4FGL_J2331.0-2147_daily_bin432.fits" evtable="EVENTS" scfile=/scratch/kocevski/4617/ft2_4FGL_J2331.0-2147_daily_bin432.fits sctable="SC_DATA" outfile=/scratch/kocevski/4617/ltcube_351302401_351561601_4FGL_J2331.0-2147_daily_bin432.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/4617/ft2_4FGL_J2331.0-2147_daily_bin432.fits
.....................!
real 11.88
user 11.52
sys 0.31

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/4617/ft1_filtered_4FGL_J2331.0-2147_daily_bin432.fits evtable="EVENTS" scfile=/scratch/kocevski/4617/ft2_4FGL_J2331.0-2147_daily_bin432.fits sctable="SC_DATA" expcube=/scratch/kocevski/4617/ltcube_351302401_351561601_4FGL_J2331.0-2147_daily_bin432.fits outfile=/scratch/kocevski/4617/expmap_351302401_351561601_4FGL_J2331.0-2147_daily_bin432.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/4617/ltcube_351302401_351561601_4FGL_J2331.0-2147_daily_bin432.fits
.....................!
real 190.41
user 185.53
sys 4.51

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 166 point sources and 0 extended sources

Setting source of interest to:
4FGL J2331.0-2147 @ 352.763 -21.7953

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/4617/ft1_filtered_4FGL_J2331.0-2147_daily_bin432.fits scfile=/scratch/kocevski/4617/ft2_4FGL_J2331.0-2147_daily_bin432.fits outfile=/scratch/kocevski/4617/cmap_351302401_351561601_4FGL_J2331.0-2147_daily_bin432.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.763 yref=-21.7953 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.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/4617/ft1_filtered_4FGL_J2331.0-2147_daily_bin432.fits scfile=/scratch/kocevski/4617/ft2_4FGL_J2331.0-2147_daily_bin432.fits outfile=/scratch/kocevski/4617/cmap_HighResolution_351302401_351561601_4FGL_J2331.0-2147_daily_bin432.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.763 yref=-21.7953 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/4617/ft1_filtered_4FGL_J2331.0-2147_daily_bin432.fits evtable="EVENTS" scfile=/scratch/kocevski/4617/ft2_4FGL_J2331.0-2147_daily_bin432.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/4617/Model_4FGL_J2331.0-2147_daily_bin432.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/4617/ft1_filtered_4FGL_J2331.0-2147_daily_bin432.fits....................!
real 55.60
user 54.17
sys 1.27

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/4617/ft1_filtered_4FGL_J2331.0-2147_daily_bin432.fits', '/scratch/kocevski/4617/ft2_4FGL_J2331.0-2147_daily_bin432.fits', expMap='/scratch/kocevski/4617/expmap_351302401_351561601_4FGL_J2331.0-2147_daily_bin432.fits', expCube='/scratch/kocevski/4617/ltcube_351302401_351561601_4FGL_J2331.0-2147_daily_bin432.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/4617/Model_4FGL_J2331.0-2147_daily_bin432.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J2331.0-2147'

4FGL J2331.0-2147
   Spectrum: LogParabola
418         norm:  2.017e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-12)
419        alpha:  2.433e+00  0.000e+00  0.000e+00  5.000e+00 ( 1.000e+00) fixed
420         beta:  1.305e-01  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
421           Eb:  9.116e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/4617/ft1_filtered_4FGL_J2331.0-2147_daily_bin432.fits
Spacecraft file(s): /scratch/kocevski/4617/ft2_4FGL_J2331.0-2147_daily_bin432.fits
Exposure map: /scratch/kocevski/4617/expmap_351302401_351561601_4FGL_J2331.0-2147_daily_bin432.fits
Exposure cube: /scratch/kocevski/4617/ltcube_351302401_351561601_4FGL_J2331.0-2147_daily_bin432.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/4617/Model_4FGL_J2331.0-2147_daily_bin432.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) = 7158.16856859

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    13.197       1.0000         .10000E-03   10000.    
     2 'norm      '    1.7219       1.0000         .10000E-03   10000.    
     3 'Prefactor '    17.789       1.0000         .10000E-03   10000.    
     4 'norm      '    26.291       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .11063E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    33.260       1.0000         .10000E-03   10000.    
     7 'norm      '    1.5583       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10019E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10008E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    27.818       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    11.634       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    1.5769       1.0000         .10000E-03   10000.    
    15 'Prefactor '    1.1661       1.0000         .10000E-03   10000.    
    16 'Prefactor '    91.745       1.0000         .10000E-03   10000.    
    17 'norm      '    .10011E-03   1.0000         .10000E-03   10000.    
    18 'norm      '    19.957       1.0000         .10000E-03   10000.    
    19 'Prefactor '    13.106       1.0000         .10000E-03   10000.    
    20 'Prefactor '    27.406       1.0000         .10000E-03   10000.    
    21 'Normalizat'    1.0428       1.0000         .10000E-01   10.000    
    22 'Prefactor '    .64196       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5370E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   7158.143     FROM MIGRAD    STATUS=CONVERGED    462 CALLS     2362 TOTAL
                     EDM=   .83E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .6%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          13.196        25.584       -.10865E-05   -.45749E-05
   2  norm          1.7210        1.9703       -.17621E-05    .96799E-05
   3  Prefactor     17.800        32.250        .17181E-04   -.40244E-04
   4  norm          26.290        6.9021       -.26853E-06    .12929E-03
   5  Prefactor     .10000E-03    32.900       -.16087E-05** at limit **
   6  Prefactor     33.278        13.091        .94971E-06    .89277E-04
   7  norm          1.5584        .86672       -.28532E-06   -.31397E-03
   8  Prefactor     .10000E-03    3.2595       -.38841E-07** at limit **
   9  Prefactor     .10000E-03    3.6224       -.22190E-06** at limit **
  10  Prefactor     27.819        19.776        .10750E-05    .49214E-04
  11  Prefactor     .10000E-03    19.573        .14110E-04** at limit **
  12  norm          11.634        3.6464       -.10501E-05    .38615E-03
  13  Prefactor     .10000E-03    18.403       -.11864E-04** at limit **
  14  Prefactor     1.5709        16.141       -.44032E-05   -.27738E-03
  15  Prefactor     1.1538        61.528       -.10780E-04   -.10355E-03
  16  Prefactor     91.730        86.679       -.14687E-04    .28337E-04
  17  norm          .10000E-03    .18554        .23272E-06** at limit **
  18  norm          19.959        5.2493       -.12749E-05   -.46693E-03
  19  Prefactor     13.118        28.122        .21979E-04    .14197E-04
  20  Prefactor     27.385        35.808       -.29589E-04   -.22262E-05
  21  Normalizat    1.0421        .16124        .31091E-05   -.76119E-04
  22  Prefactor     .64265        .15503       -.27427E-06    .14498E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 13.1961
  norm       = 1.72097
  Prefactor  = 17.8003
  norm       = 26.2905
  Prefactor  = 0.000100001
  Prefactor  = 33.2782
  norm       = 1.55842
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 27.8194
  Prefactor  = 0.0001
  norm       = 11.6344
  Prefactor  = 0.0001
  Prefactor  = 1.57089
  Prefactor  = 1.15382
  Prefactor  = 91.7302
  norm       = 0.0001
  norm       = 19.9586
  Prefactor  = 13.1182
  Prefactor  = 27.3853
  Normalizat = 1.04207
  Prefactor  = 0.642655
 **********
 **   18 **HESSE 
 **********

 FCN=   7158.143     FROM HESSE     STATUS=OK           350 CALLS     2712 TOTAL
                     EDM=   .17E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          13.196        25.582        .11026E-03   -1.4981    
   2  norm          1.7210        1.9796        .10889E-03   -1.5446    
   3  Prefactor     17.800        32.577        .94960E-04   -1.4864    
   4  norm          26.290        6.9045        .78128E-04   -1.4682    
   5  Prefactor     .10000E-03    33.554        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     33.278        13.330        .69482E-04   -1.4554    
   7  norm          1.5584        .87248        .44250E-04   -1.5458    
   8  Prefactor     .10000E-03    3.2673        .14916E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    3.6382        .15715E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     27.819        19.758        .75958E-04   -1.4653    
  11  Prefactor     .10000E-03    19.612        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          11.634        3.6105        .83899E-04   -1.5026    
  13  Prefactor     .10000E-03    18.378        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     1.5709        16.238        .33834E-03   -1.5457    
  15  Prefactor     1.1538        62.475        .42575E-03   -1.5493    
  16  Prefactor     91.730        86.672        .41954E-04   -1.3790    
  17  norm          .10000E-03    .22870        .68576E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          19.959        5.0951        .89656E-04   -1.4814    
  19  Prefactor     13.118        28.109        .11064E-03   -1.4983    
  20  Prefactor     27.385        35.803        .76526E-04   -1.4661    
  21  Normalizat    1.0421        .19198        .22963E-03   -.91634    
  22  Prefactor     .64265        .18334        .28445E-03   -1.0582    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.73938e-09
Minuit parameter uncertainties:
  1  25.6028
  2  1.97972
  3  32.6091
  4  6.90476
  5  0.000271336
  6  13.3311
  7  0.872488
  8  8.2253e-06
  9  1.66732e-05
  10  19.7623
  11  3.43922e-05
  12  3.61055
  13  7.83012e-05
  14  10.1043
  15  16.9985
  16  86.7921
  17  1.11773e-05
  18  5.09526
  19  28.1374
  20  35.8308
  21  0.192103
  22  0.183506
Done.

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

Extracting fit parameters...

4FGL J2331.0-2147
   Spectrum: LogParabola
418         norm:  1.163e+01  3.611e+00  1.000e-04  1.000e+04 ( 1.000e-12)
419        alpha:  2.433e+00  0.000e+00  0.000e+00  5.000e+00 ( 1.000e+00) fixed
420         beta:  1.305e-01  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
421           Eb:  9.116e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
534    Prefactor:  6.427e-01  1.835e-01  0.000e+00  1.000e+01 ( 1.000e+00)
535        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
536        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
533   Normalization:  1.042e+00  1.921e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 28.07
Ra Dec: 352.763 -21.795
Photon Index (Fixed Index): 2.43 +/- 0.00
Photon Flux (Fixed Index): 1.25e-07 +/- 3.87e-08
Energy Flux (Fixed Index): 4.15e-05 +/- 1.29e-05

Performing a free index iterative likelihood fit...

Freezing all point sources, except source of interest...

Done.

Freeing candidate source...
Done.

Fit tolerance = 1

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 7156.52370846
delta logL = 1.61946222089

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 7156.21640227
delta logL = 1.92676840491

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    15.627       1.0000         .10000E-03   10000.    
     2 'alpha     '    1.8064       1.0000          .0000       5.0000    
     3 'Normalizat'    1.1065       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .60100       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5370E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   7156.216     FROM MIGRAD    STATUS=CONVERGED     48 CALLS      210 TOTAL
                     EDM=   .17E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          15.627        6.6439        .25329E-02    .84261E-03
   2  alpha         1.8064        .37677        .23822        .10339E-04
   3  Normalizat    1.1065        .15907        .37741E-01    .59225E-05
   4  Prefactor     .60101        .15648        .66286E-01    .30201E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 15.6274
  alpha      = 1.8064
  Normalizat = 1.10651
  Prefactor  = 0.601009
 **********
 **   18 **HESSE 
 **********

 FCN=   7156.216     FROM HESSE     STATUS=OK            31 CALLS      241 TOTAL
                     EDM=   .11E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          15.627        5.0975        .10132E-03   -1.4917    
   2  alpha         1.8064        .31205        .96927E-02   -.28113    
   3  Normalizat    1.1065        .18366        .22398E-03   -.89543    
   4  Prefactor     .60101        .18112        .29334E-03   -1.0754    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.14158e-10
Minuit parameter uncertainties:
  1  5.09767
  2  0.312938
  3  0.183769
  4  0.181295
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/4617': 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) = 7156.21640227
delta logL = 1.92676840781

Extracting fit parameters...

4FGL J2331.0-2147
   Spectrum: LogParabola
418         norm:  1.563e+01  5.098e+00  1.000e-04  1.000e+04 ( 1.000e-12)
419        alpha:  1.806e+00  3.129e-01  0.000e+00  5.000e+00 ( 1.000e+00)
420         beta:  1.305e-01  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
421           Eb:  9.116e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
534    Prefactor:  6.010e-01  1.813e-01  0.000e+00  1.000e+01 ( 1.000e+00)
535        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
536        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
533   Normalization:  1.107e+00  1.838e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 31.77
Ra Dec: 352.763 -21.795
Photon Index (Free Index): 1.81 +/- 0.31
Photon Flux (Free Index): 7.93e-08 +/- 3.47e-08
Energy Flux (Free Index): 6.25e-05 +/- 2.70e-05

Creating a high resolution counts map...
INFO: Auto-setting vmin to -1.000e-01 [aplpy.core]
INFO: Auto-setting vmax to  1.110e+00 [aplpy.core]
Saving /scratch/kocevski/4617/cmap_HighResolution_351302401_351561601_4FGL_J2331.0-2147_daily_bin432.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='1.25e-07', energy_flux2='6.25e-05', photon_flux_error='3.87e-08', dlogl='1.93e+00', energy_flux='4.15e-05', photon_flux2='7.93e-08', job_status='DONE', time_completed='2021-09-29 22:59:02.964216', photon_index_error2='0.31', photon_index2='1.81', ts='28.07', fit_tolerance='1e-08', GAL='0.64', photon_index_error='0.00', energy_flux_error2='2.70e-05', EG='1.04', time_epoch_completed='1632981542.96', return_code='0', job_id='4617', GAL2='0.60', EG2='1.11', return_code2='0', energy_flux_error='1.29e-05', photon_flux_error2='3.47e-08', ts2='31.77', photon_index='2.43' WHERE bin_id='432' AND source_name='4FGL J2331.0-2147' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep 29 22:59:02 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0237>
Subject: Job 4617: <4FGL_J2331.0-2147_daily_bin432> in cluster <slac> Done

Job <4FGL_J2331.0-2147_daily_bin432> was submitted from host <rhel6-64h> by user <kocevski> in cluster <slac> at Wed Sep 29 22:45:43 2021
Job was executed on host(s) <bullet0237>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Sep 29 22:45:44 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Wed Sep 29 22:45:44 2021
Terminated at Wed Sep 29 22:59:03 2021
Results reported at Wed Sep 29 22:59:03 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2331.0-2147_daily_bin432 352.763 -21.7953 351302401 351561601 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J2331.0-2147 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   601.00 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             265.73 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   799 sec.
    Turnaround time :                            800 sec.

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

