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


Performing analysis on: 4FGL_J2331.0-2147_daily_bin1068
RA = 352.763, Dec = -21.7953
tmin = 516153601, tmax = 516412801
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='7579', job_status='RUN', time_executed='2021-09-29 22:58:34.145392', time_epoch_executed='1632981514.15' WHERE source_name='4FGL J2331.0-2147' and cadence='daily' and bin_id='1068'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/7579

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/7579/ft1_4FGL_J2331.0-2147_daily_bin1068.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/7579/ft2_4FGL_J2331.0-2147_daily_bin1068.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/7579/ft1_4FGL_J2331.0-2147_daily_bin1068.fits outfile=/scratch/kocevski/7579/ft1_filteredMKT_4FGL_J2331.0-2147_daily_bin1068.fits ra=352.763 dec=-21.7953 rad=12.0 tmin=516153601.0 tmax=516412801.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.50
user 3.30
sys 0.18

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/7579/ft1_filtered_4FGL_J2331.0-2147_daily_bin1068.fits" evtable="EVENTS" scfile=/scratch/kocevski/7579/ft2_4FGL_J2331.0-2147_daily_bin1068.fits sctable="SC_DATA" outfile=/scratch/kocevski/7579/ltcube_516153601_516412801_4FGL_J2331.0-2147_daily_bin1068.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/7579/ft2_4FGL_J2331.0-2147_daily_bin1068.fits
.....................!
real 11.75
user 11.42
sys 0.30

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/7579/ft1_filtered_4FGL_J2331.0-2147_daily_bin1068.fits evtable="EVENTS" scfile=/scratch/kocevski/7579/ft2_4FGL_J2331.0-2147_daily_bin1068.fits sctable="SC_DATA" expcube=/scratch/kocevski/7579/ltcube_516153601_516412801_4FGL_J2331.0-2147_daily_bin1068.fits outfile=/scratch/kocevski/7579/expmap_516153601_516412801_4FGL_J2331.0-2147_daily_bin1068.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/7579/ltcube_516153601_516412801_4FGL_J2331.0-2147_daily_bin1068.fits
.....................!
real 190.35
user 185.94
sys 4.10

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/7579/ft1_filtered_4FGL_J2331.0-2147_daily_bin1068.fits scfile=/scratch/kocevski/7579/ft2_4FGL_J2331.0-2147_daily_bin1068.fits outfile=/scratch/kocevski/7579/cmap_516153601_516412801_4FGL_J2331.0-2147_daily_bin1068.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.37
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/7579/ft1_filtered_4FGL_J2331.0-2147_daily_bin1068.fits scfile=/scratch/kocevski/7579/ft2_4FGL_J2331.0-2147_daily_bin1068.fits outfile=/scratch/kocevski/7579/cmap_HighResolution_516153601_516412801_4FGL_J2331.0-2147_daily_bin1068.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.53
user 0.36
sys 0.16

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/7579/ft1_filtered_4FGL_J2331.0-2147_daily_bin1068.fits evtable="EVENTS" scfile=/scratch/kocevski/7579/ft2_4FGL_J2331.0-2147_daily_bin1068.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/7579/Model_4FGL_J2331.0-2147_daily_bin1068.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/7579/ft1_filtered_4FGL_J2331.0-2147_daily_bin1068.fits.....................!
real 58.84
user 57.55
sys 1.18

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10675E-03   1.0000         .10000E-03   10000.    
     2 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10019E-03   1.0000         .10000E-03   10000.    
     4 'norm      '    7.3683       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10476E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    11.608       1.0000         .10000E-03   10000.    
     7 'norm      '    1.7842       1.0000         .10000E-03   10000.    
     8 'Prefactor '    1.5840       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .23682E-01   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10294E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10365E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    .10019E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10054E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    3.6519       1.0000         .10000E-03   10000.    
    15 'Prefactor '    17.838       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10014E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    .89321       1.0000         .10000E-03   10000.    
    18 'norm      '    3.0899       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10893E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    3.9946       1.0000         .10000E-03   10000.    
    21 'Normalizat'    .87615       1.0000         .10000E-01   10.000    
    22 'Prefactor '    1.1549       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=   7844.768     FROM MIGRAD    STATUS=CONVERGED    489 CALLS     2354 TOTAL
                     EDM=   .65E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  4.9%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    27.351        .87069E-06** at limit **
   2  norm          .10000E-03    .47127        .20440E-07** at limit **
   3  Prefactor     .10000E-03    11.833       -.33569E-07** at limit **
   4  norm          7.3665        3.8261        .14602E-06    .70865E-03
   5  Prefactor     .10000E-03    20.612       -.31849E-06** at limit **
   6  Prefactor     11.605        10.194        .50760E-06    .11538E-02
   7  norm          1.7843        .81098       -.10243E-08    .35072E-02
   8  Prefactor     1.5852        13.455        .15975E-04    .94572E-04
   9  Prefactor     .10069E-03    6.4374       -.28950E-05** at limit **
  10  Prefactor     .10000E-03    5.3777        .28795E-07** at limit **
  11  Prefactor     .10000E-03    10.143       -.11000E-07** at limit **
  12  norm          .10000E-03    .96401        .51671E-07** at limit **
  13  Prefactor     .10000E-03    15.841        .43026E-06** at limit **
  14  Prefactor     3.6519        7.9828        .24166E-05   -.95384E-05
  15  Prefactor     17.825        19.029        .48027E-06   -.10260E-04
  16  Prefactor     .10000E-03    23.861       -.28423E-07** at limit **
  17  norm          .89323        .42563        .10504E-07   -.12146E-03
  18  norm          3.0904        3.0385        .10813E-06   -.47833E-04
  19  Prefactor     .10000E-03    61.860       -.51168E-05** at limit **
  20  Prefactor     3.9514        84.259        .77489E-05   -.82186E-04
  21  Normalizat    .87618        .15212       -.64223E-06    .80877E-04
  22  Prefactor     1.1548        .15628       -.14149E-05   -.57142E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 0.000100002
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 7.36648
  Prefactor  = 0.000100003
  Prefactor  = 11.6047
  norm       = 1.78434
  Prefactor  = 1.58521
  Prefactor  = 0.00010069
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 3.65186
  Prefactor  = 17.8249
  Prefactor  = 0.0001
  norm       = 0.893234
  norm       = 3.0904
  Prefactor  = 0.0001
  Prefactor  = 3.95143
  Normalizat = 0.876182
  Prefactor  = 1.15484
 **********
 **   18 **HESSE 
 **********

 FCN=   7844.768     FROM HESSE     STATUS=OK           346 CALLS     2700 TOTAL
                     EDM=   .86E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    27.509        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          .10000E-03    .47209        .59375E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    11.841        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  norm          7.3665        3.8199        .11725E-03   -1.5165    
   5  Prefactor     .10000E-03    20.730        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     11.605        10.178        .11758E-03   -1.5027    
   7  norm          1.7843        .84534        .39916E-04   -1.5441    
   8  Prefactor     1.5852        13.518        .16868E-02   -1.5456    
   9  Prefactor     .10069E-03    83.082        .36691E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    5.3790        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    10.153        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          .10000E-03    .97761        .84850E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    15.865        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     3.6519        7.9712        .10569E-02   -1.5326    
  15  Prefactor     17.825        19.056        .47415E-03   -1.4863    
  16  Prefactor     .10000E-03    23.872        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          .89323        .43072        .36729E-04   -1.5519    
  18  norm          3.0904        3.0502        .14053E-03   -1.5356    
  19  Prefactor     .10000E-03    62.979        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     3.9514        85.832        .20179E-03   -1.5310    
  21  Normalizat    .87618        .18169        .25456E-03   -.97302    
  22  Prefactor     1.1548        .18667        .23532E-03   -.87732    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 8.59623e-09
Minuit parameter uncertainties:
  1  0.000411314
  2  5.59863e-07
  3  4.07967e-05
  4  3.82
  5  0.000483402
  6  10.1795
  7  0.845346
  8  9.26076
  9  0.0151682
  10  2.69581e-06
  11  3.55438e-06
  12  3.10481e-06
  13  8.76948e-05
  14  7.9735
  15  19.0622
  16  4.32727e-06
  17  0.430725
  18  3.05037
  19  5.90357e-05
  20  36.8924
  21  0.181822
  22  0.18678
Done.

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

Extracting fit parameters...

4FGL J2331.0-2147
   Spectrum: LogParabola
418         norm:  1.000e-04  3.105e-06  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:  1.155e+00  1.868e-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:  8.762e-01  1.818e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): -0.00
Ra Dec: 352.763 -21.795
Photon Flux Upper Limit: 4.44e-08 ph cm-2 s-1
Energy Flux Upper Limit: 1.48e-05 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/7579/likelihoodResults_516153601_516412801_4FGL_J2331.0-2147_daily_bin1068.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) = 7844.77259765
delta logL = -0.00484424041406

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 7844.76775415
delta logL = -7.4229137681e-07

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10103E-03   1.0000         .10000E-03   10000.    
     2 'alpha     '    2.4198       1.0000          .0000       5.0000    
     3 'Normalizat'    .87636       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.1547       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.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   7844.768     FROM MIGRAD    STATUS=CONVERGED     93 CALLS      229 TOTAL
                     EDM=   .40E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    86.757        .85483E-02** at limit **
   2  alpha         1.7226        3.1483        .16471        .53422E-07
   3  Normalizat    .87618        .33905E-01    .25456E-03    .32405E-03
   4  Prefactor     1.1548        .35642E-01    .23532E-03    .39404E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  alpha      = 1.72256
  Normalizat = 0.876182
  Prefactor  = 1.15485
 **********
 **   18 **HESSE 
 **********

 FCN=   7844.768     FROM HESSE     STATUS=OK            23 CALLS      252 TOTAL
                     EDM=   .15E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    1.2440        .95936E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  alpha         1.7226        3.5676        .65886E-02   -.31622    
   3  Normalizat    .87618        .17614        .10183E-04   -.97302    
   4  Prefactor     1.1548        .18514        .47064E-04   -.87732    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.52314e-10
Minuit parameter uncertainties:
  1  1.31221e-05
  2  132.247
  3  0.17626
  4  0.185246
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/7579': 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) = 7844.7677425
delta logL = 1.09072061605e-05

Extracting fit parameters...

4FGL J2331.0-2147
   Spectrum: LogParabola
418         norm:  1.000e-04  1.312e-05  1.000e-04  1.000e+04 ( 1.000e-12)
419        alpha:  1.723e+00  1.322e+02  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:  1.155e+00  1.852e-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:  8.762e-01  1.763e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
Ra Dec: 352.763 -21.795

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/7579/cmap_HighResolution_516153601_516412801_4FGL_J2331.0-2147_daily_bin1068.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.48e-05', job_status='DONE', photon_flux_upper_limit='4.44e-08', time_completed='2021-09-29 23:10:12.209686', job_id='7579', GAL2='1.15', fit_tolerance='1e-08', EG2='0.88', EG='0.88', time_epoch_completed='1632982212.21', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.15', dlogl='1.09e-05', ts2='-0.00', photon_index_error='0.00', photon_index='2.43' WHERE bin_id='1068' AND source_name='4FGL J2331.0-2147' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep 29 23:10:12 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0268>
Subject: Job 7579: <4FGL_J2331.0-2147_daily_bin1068> in cluster <slac> Done

Job <4FGL_J2331.0-2147_daily_bin1068> was submitted from host <rhel6-64d> by user <kocevski> in cluster <slac> at Wed Sep 29 22:55:45 2021
Job was executed on host(s) <bullet0268>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Sep 29 22:55: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 22:55:46 2021
Terminated at Wed Sep 29 23:10:13 2021
Results reported at Wed Sep 29 23:10:13 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2331.0-2147_daily_bin1068 352.763 -21.7953 516153601 516412801 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 :                                   686.00 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             286.15 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   866 sec.
    Turnaround time :                            868 sec.

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

