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


Performing analysis on: 4FGL_J2331.0-2147_daily_bin1413
RA = 352.763, Dec = -21.7953
tmin = 605577601, tmax = 605836801
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='9036', job_status='RUN', time_executed='2021-09-29 23:01:38.402976', time_epoch_executed='1632981698.4' WHERE source_name='4FGL J2331.0-2147' and cadence='daily' and bin_id='1413'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/9036

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/9036/ft1_4FGL_J2331.0-2147_daily_bin1413.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/9036/ft2_4FGL_J2331.0-2147_daily_bin1413.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/9036/ft1_4FGL_J2331.0-2147_daily_bin1413.fits outfile=/scratch/kocevski/9036/ft1_filteredMKT_4FGL_J2331.0-2147_daily_bin1413.fits ra=352.763 dec=-21.7953 rad=12.0 tmin=605577601.0 tmax=605836801.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 5.03
user 4.79
sys 0.22

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/9036/ft1_filtered_4FGL_J2331.0-2147_daily_bin1413.fits" evtable="EVENTS" scfile=/scratch/kocevski/9036/ft2_4FGL_J2331.0-2147_daily_bin1413.fits sctable="SC_DATA" outfile=/scratch/kocevski/9036/ltcube_605577601_605836801_4FGL_J2331.0-2147_daily_bin1413.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/9036/ft2_4FGL_J2331.0-2147_daily_bin1413.fits
.....................!
real 11.75
user 11.40
sys 0.32

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/9036/ft1_filtered_4FGL_J2331.0-2147_daily_bin1413.fits evtable="EVENTS" scfile=/scratch/kocevski/9036/ft2_4FGL_J2331.0-2147_daily_bin1413.fits sctable="SC_DATA" expcube=/scratch/kocevski/9036/ltcube_605577601_605836801_4FGL_J2331.0-2147_daily_bin1413.fits outfile=/scratch/kocevski/9036/expmap_605577601_605836801_4FGL_J2331.0-2147_daily_bin1413.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/9036/ltcube_605577601_605836801_4FGL_J2331.0-2147_daily_bin1413.fits
.....................!
real 192.23
user 187.17
sys 4.67

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/9036/ft1_filtered_4FGL_J2331.0-2147_daily_bin1413.fits scfile=/scratch/kocevski/9036/ft2_4FGL_J2331.0-2147_daily_bin1413.fits outfile=/scratch/kocevski/9036/cmap_605577601_605836801_4FGL_J2331.0-2147_daily_bin1413.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.52
user 0.38
sys 0.13

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/9036/ft1_filtered_4FGL_J2331.0-2147_daily_bin1413.fits scfile=/scratch/kocevski/9036/ft2_4FGL_J2331.0-2147_daily_bin1413.fits outfile=/scratch/kocevski/9036/cmap_HighResolution_605577601_605836801_4FGL_J2331.0-2147_daily_bin1413.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/9036/ft1_filtered_4FGL_J2331.0-2147_daily_bin1413.fits evtable="EVENTS" scfile=/scratch/kocevski/9036/ft2_4FGL_J2331.0-2147_daily_bin1413.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/9036/Model_4FGL_J2331.0-2147_daily_bin1413.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/9036/ft1_filtered_4FGL_J2331.0-2147_daily_bin1413.fits.....................!
real 35.12
user 33.82
sys 1.17

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/9036/ft1_filtered_4FGL_J2331.0-2147_daily_bin1413.fits', '/scratch/kocevski/9036/ft2_4FGL_J2331.0-2147_daily_bin1413.fits', expMap='/scratch/kocevski/9036/expmap_605577601_605836801_4FGL_J2331.0-2147_daily_bin1413.fits', expCube='/scratch/kocevski/9036/ltcube_605577601_605836801_4FGL_J2331.0-2147_daily_bin1413.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/9036/Model_4FGL_J2331.0-2147_daily_bin1413.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/9036/ft1_filtered_4FGL_J2331.0-2147_daily_bin1413.fits
Spacecraft file(s): /scratch/kocevski/9036/ft2_4FGL_J2331.0-2147_daily_bin1413.fits
Exposure map: /scratch/kocevski/9036/expmap_605577601_605836801_4FGL_J2331.0-2147_daily_bin1413.fits
Exposure cube: /scratch/kocevski/9036/ltcube_605577601_605836801_4FGL_J2331.0-2147_daily_bin1413.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/9036/Model_4FGL_J2331.0-2147_daily_bin1413.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) = 3660.67954523

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    40.260       1.0000         .10000E-03   10000.    
     2 'norm      '    .10226E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    54.662       1.0000         .10000E-03   10000.    
     4 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10035E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    18.468       1.0000         .10000E-03   10000.    
     7 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10136E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .58649E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10383E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    1.9743       1.0000         .10000E-03   10000.    
    13 'Prefactor '    3.3976       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10337E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .45251E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10036E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    .10074E-03   1.0000         .10000E-03   10000.    
    18 'norm      '    19.580       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .11224E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    14.027       1.0000         .10000E-03   10000.    
    21 'Normalizat'    1.5897       1.0000         .10000E-01   10.000    
    22 'Prefactor '    .65193       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=   3660.649     FROM MIGRAD    STATUS=CONVERGED    484 CALLS     2389 TOTAL
                     EDM=   .14E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  4.7%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          40.236        52.187        .52405E-07    .27208E-04
   2  norm          .10000E-03    3.2238        .12721E-05** at limit **
   3  Prefactor     54.625        95.975       -.23430E-05   -.16733E-03
   4  norm          .10000E-03    2.4869        .65290E-07** at limit **
   5  Prefactor     .10000E-03    7.8667        .72843E-07** at limit **
   6  Prefactor     18.489        18.864       -.13117E-05   -.14548E-03
   7  norm          .10000E-03    .43395       -.18411E-07** at limit **
   8  Prefactor     .10000E-03    29.530        .76678E-06** at limit **
   9  Prefactor     .10010E-03    143.90       -.24662E-04** at limit **
  10  Prefactor     .10000E-03    19.094        .63680E-06** at limit **
  11  Prefactor     .10000E-03    47.358       -.46007E-06** at limit **
  12  norm          1.9657        6.0651        .45643E-06    .14767E-04
  13  Prefactor     3.3327        425.82       -.62136E-05   -.34390E-04
  14  Prefactor     .10000E-03    24.042        .40692E-05** at limit **
  15  Prefactor     .10000E-03    163.36       -.78242E-06** at limit **
  16  Prefactor     .10000E-03    36.432       -.60018E-07** at limit **
  17  norm          .10000E-03    .50372       -.66820E-06** at limit **
  18  norm          19.568        9.1347        .47924E-06   -.86199E-03
  19  Prefactor     .10000E-03    67.451       -.38252E-05** at limit **
  20  Prefactor     14.164        114.38        .72461E-06   -.28752E-04
  21  Normalizat    1.5894        .28504       -.57686E-06   -.45823E-03
  22  Prefactor     .65221        .24894        .10590E-05   -.36751E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 40.2363
  norm       = 0.0001
  Prefactor  = 54.6252
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 18.4885
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000100105
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 1.96567
  Prefactor  = 3.33266
  Prefactor  = 0.000100001
  Prefactor  = 0.000100003
  Prefactor  = 0.0001
  norm       = 0.000100001
  norm       = 19.5682
  Prefactor  = 0.000100002
  Prefactor  = 14.1644
  Normalizat = 1.58936
  Prefactor  = 0.652206
 **********
 **   18 **HESSE 
 **********

 FCN=   3660.649     FROM HESSE     STATUS=OK           338 CALLS     2727 TOTAL
                     EDM=   .40E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          40.236        52.201        .63173E-04   -1.4438    
   2  norm          .10000E-03    3.3190        .21133E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     54.625        96.537        .54253E-04   -1.4228    
   4  norm          .10000E-03    2.4941        .93130E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    7.8691        .16572E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     18.489        16.520        .93199E-04   -1.4848    
   7  norm          .10000E-03    .47504        .74264E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    30.137        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10010E-03    148.96        .39905E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    19.109        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    47.424        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          1.9657        6.0461        .24011E-03   -1.5428    
  13  Prefactor     3.3327        441.18        .21949E-03   -1.5343    
  14  Prefactor     .10000E-03    24.349        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    166.87        .42412E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    36.432        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          .10000E-03    .72103        .81122E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          19.568        9.3868        .90516E-04   -1.4823    
  19  Prefactor     .10000E-03    67.598        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     14.164        113.39        .10694E-03   -1.4955    
  21  Normalizat    1.5894        .34182        .23392E-03   -.75297    
  22  Prefactor     .65221        .29472        .32352E-03   -1.0543    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.96881e-09
Minuit parameter uncertainties:
  1  52.2604
  2  4.0491e-05
  3  96.8149
  4  9.54983e-06
  5  1.69239e-05
  6  16.5244
  7  1.15345e-05
  8  7.15768e-05
  9  0.00791733
  10  6.49523e-05
  11  0.00020975
  12  6.04796
  13  77.2762
  14  0.000367085
  15  0.00136536
  16  3.59791e-05
  17  4.90646e-05
  18  9.38751
  19  0.000748641
  20  80.363
  21  0.342319
  22  0.29542
Done.

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

Extracting fit parameters...

4FGL J2331.0-2147
   Spectrum: LogParabola
418         norm:  1.966e+00  6.048e+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.522e-01  2.954e-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.589e+00  3.423e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 0.13
Ra Dec: 352.763 -21.795
Photon Flux Upper Limit: 1.67e-07 ph cm-2 s-1
Energy Flux Upper Limit: 5.54e-05 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/9036/likelihoodResults_605577601_605836801_4FGL_J2331.0-2147_daily_bin1413.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) = 3660.19870397
delta logL = 0.450485324521

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 3660.17947203
delta logL = 0.469717268321

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    1.7683       1.0000         .10000E-03   10000.    
     2 'alpha     '    3.4010       1.0000          .0000       5.0000    
     3 'Normalizat'    1.5229       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .68344       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=   3660.179     FROM MIGRAD    STATUS=CONVERGED     54 CALLS      220 TOTAL
                     EDM=   .11E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          1.7680        47.587        .78738E-02    .46940E-03
   2  alpha         3.4011        4.1791        .31725        .35181E-04
   3  Normalizat    1.5228        .75742E-01    .53783E-01   -.26171E-05
   4  Prefactor     .68345        .71842E-01    .71459E-01    .13829E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 1.76799
  alpha      = 3.40113
  Normalizat = 1.52285
  Prefactor  = 0.683446
 **********
 **   18 **HESSE 
 **********

 FCN=   3660.179     FROM HESSE     STATUS=OK            31 CALLS      251 TOTAL
                     EDM=   .31E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          1.7680        3.7112        .80913E-04   -1.5442    
   2  alpha         3.4011        1.0781        .12458E-01    .36875    
   3  Normalizat    1.5228        .32242        .23779E-03   -.77138    
   4  Prefactor     .68345        .29387        .31627E-03   -1.0418    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.10358e-12
Minuit parameter uncertainties:
  1  3.71165
  2  1.12079
  3  0.322852
  4  0.294542
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/9036': 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) = 3660.17947201
delta logL = 0.469717287505

Extracting fit parameters...

4FGL J2331.0-2147
   Spectrum: LogParabola
418         norm:  1.768e+00  3.712e+00  1.000e-04  1.000e+04 ( 1.000e-12)
419        alpha:  3.401e+00  1.121e+00  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.834e-01  2.945e-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.523e+00  3.229e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 1.11
Ra Dec: 352.763 -21.795
Photon Index (Free Index): 3.40 +/- 1.12
Photon Flux (Free Index): 8.82e-08 +/- 9.69e-08
Energy Flux (Free Index): 1.65e-05 +/- 1.85e-05

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/9036/cmap_HighResolution_605577601_605836801_4FGL_J2331.0-2147_daily_bin1413.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='5.54e-05', comment='SUCCESS', energy_flux2='1.65e-05', dlogl='4.70e-01', photon_flux2='8.82e-08', job_status='DONE', time_completed='2021-09-29 23:09:52.836295', photon_index_error2='1.12', photon_index2='3.40', ts='0.13', fit_tolerance='1e-08', GAL='0.65', photon_index_error='0.00', photon_flux_upper_limit='1.67e-07', energy_flux_error2='1.85e-05', EG='1.59', time_epoch_completed='1632982192.84', return_code='0', job_id='9036', GAL2='0.68', EG2='1.52', return_code2='0', photon_flux_error2='9.69e-08', ts2='1.11', photon_index='2.43' WHERE bin_id='1413' AND source_name='4FGL J2331.0-2147' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep 29 23:09:52 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0207>
Subject: Job 9036: <4FGL_J2331.0-2147_daily_bin1413> in cluster <slac> Done

Job <4FGL_J2331.0-2147_daily_bin1413> was submitted from host <rhel6-64k> by user <kocevski> in cluster <slac> at Wed Sep 29 23:00:16 2021
Job was executed on host(s) <bullet0207>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Sep 29 23:00:18 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Wed Sep 29 23:00:18 2021
Terminated at Wed Sep 29 23:09:53 2021
Results reported at Wed Sep 29 23:09:53 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2331.0-2147_daily_bin1413 352.763 -21.7953 605577601 605836801 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 :                                   488.09 sec.
    Max Memory :                                 1093 MB
    Average Memory :                             267.00 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   575 sec.
    Turnaround time :                            577 sec.

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

