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


Performing analysis on: 4FGL_J2331.0-2147_daily_bin1163
RA = 352.763, Dec = -21.7953
tmin = 540777601, tmax = 541036801
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='7732', job_status='RUN', time_executed='2021-09-29 22:56:17.786393', time_epoch_executed='1632981377.79' WHERE source_name='4FGL J2331.0-2147' and cadence='daily' and bin_id='1163'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/7732

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

Retrieving the FT1 file...

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

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

Retrieving 48 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/7732/ft1_4FGL_J2331.0-2147_daily_bin1163.fits


Retrieving the FT1 file...

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

Retrieving 48 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/7732/ft2_4FGL_J2331.0-2147_daily_bin1163.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/7732/ft1_4FGL_J2331.0-2147_daily_bin1163.fits outfile=/scratch/kocevski/7732/ft1_filteredMKT_4FGL_J2331.0-2147_daily_bin1163.fits ra=352.763 dec=-21.7953 rad=12.0 tmin=540777601.0 tmax=541036801.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.62
user 3.38
sys 0.21

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/7732/ft2_4FGL_J2331.0-2147_daily_bin1163.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/7732/ft1_filteredMKT_4FGL_J2331.0-2147_daily_bin1163.fits evtable="EVENTS" outfile="/scratch/kocevski/7732/ft1_filtered_4FGL_J2331.0-2147_daily_bin1163.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/7732/ft1_filtered_4FGL_J2331.0-2147_daily_bin1163.fits" evtable="EVENTS" scfile=/scratch/kocevski/7732/ft2_4FGL_J2331.0-2147_daily_bin1163.fits sctable="SC_DATA" outfile=/scratch/kocevski/7732/ltcube_540777601_541036801_4FGL_J2331.0-2147_daily_bin1163.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/7732/ft2_4FGL_J2331.0-2147_daily_bin1163.fits
.....................!
real 11.76
user 11.41
sys 0.32

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/7732/ft1_filtered_4FGL_J2331.0-2147_daily_bin1163.fits evtable="EVENTS" scfile=/scratch/kocevski/7732/ft2_4FGL_J2331.0-2147_daily_bin1163.fits sctable="SC_DATA" expcube=/scratch/kocevski/7732/ltcube_540777601_541036801_4FGL_J2331.0-2147_daily_bin1163.fits outfile=/scratch/kocevski/7732/expmap_540777601_541036801_4FGL_J2331.0-2147_daily_bin1163.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/7732/ltcube_540777601_541036801_4FGL_J2331.0-2147_daily_bin1163.fits
.....................!
real 193.30
user 187.86
sys 5.12

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/7732/ft1_filtered_4FGL_J2331.0-2147_daily_bin1163.fits scfile=/scratch/kocevski/7732/ft2_4FGL_J2331.0-2147_daily_bin1163.fits outfile=/scratch/kocevski/7732/cmap_540777601_541036801_4FGL_J2331.0-2147_daily_bin1163.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.53
user 0.36
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/7732/ft1_filtered_4FGL_J2331.0-2147_daily_bin1163.fits scfile=/scratch/kocevski/7732/ft2_4FGL_J2331.0-2147_daily_bin1163.fits outfile=/scratch/kocevski/7732/cmap_HighResolution_540777601_541036801_4FGL_J2331.0-2147_daily_bin1163.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/7732/ft1_filtered_4FGL_J2331.0-2147_daily_bin1163.fits evtable="EVENTS" scfile=/scratch/kocevski/7732/ft2_4FGL_J2331.0-2147_daily_bin1163.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/7732/Model_4FGL_J2331.0-2147_daily_bin1163.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/7732/ft1_filtered_4FGL_J2331.0-2147_daily_bin1163.fits.....................!
real 39.02
user 37.77
sys 1.18

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10021E-03   1.0000         .10000E-03   10000.    
     2 'norm      '    1.3818       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .44916E-03   1.0000         .10000E-03   10000.    
     4 'norm      '    5.4308       1.0000         .10000E-03   10000.    
     5 'Prefactor '    19.729       1.0000         .10000E-03   10000.    
     6 'Prefactor '    1.0918       1.0000         .10000E-03   10000.    
     7 'norm      '    1.7234       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    5.1954       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    123.90       1.0000         .10000E-03   10000.    
    12 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .28592E-01   1.0000         .10000E-03   10000.    
    14 'Prefactor '    36.760       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10036E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    .10010E-03   1.0000         .10000E-03   10000.    
    18 'norm      '    .20068E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    25.831       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    21 'Normalizat'    1.6535       1.0000         .10000E-01   10.000    
    22 'Prefactor '    .75967       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=   4176.945     FROM MIGRAD    STATUS=CONVERGED    855 CALLS     3107 TOTAL
                     EDM=   .17E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    167.22        .18142E-02** at limit **
   2  norm          1.3760        2.3924        .13026E-03    .22466E-03
   3  Prefactor     .10001E-03    165.46        .21210E-02** at limit **
   4  norm          5.4305        6.3724        .15829E-03    .27974E-03
   5  Prefactor     19.731        28.058        .90173E-04    .16695E-03
   6  Prefactor     1.0832        144.52        .44152E-02    .19892E-03
   7  norm          1.7234        1.3640        .46940E-04    .95353E-03
   8  Prefactor     .10000E-03    7.9585        .17791E-02** at limit **
   9  Prefactor     5.1961        19.216        .17636E-03    .10610E-03
  10  Prefactor     .10000E-03    13.950        .18142E-02** at limit **
  11  Prefactor     123.91        78.108        .36161E-04    .22762E-04
  12  norm          .10000E-03    2.5785        .10086E-02** at limit **
  13  Prefactor     .10009E-03    193.16        .18657    ** at limit **
  14  Prefactor     36.785        36.977        .66101E-04   -.11695E-04
  15  Prefactor     .10000E-03    36.584        .18142E-02** at limit **
  16  Prefactor     .10000E-03    139.06        .18142E-02** at limit **
  17  norm          .10000E-03    .55899        .77679E-03** at limit **
  18  norm          .10000E-03    19.418        .31878E-02** at limit **
  19  Prefactor     25.822        51.664        .78819E-04   -.11395E-04
  20  Prefactor     .10000E-03    27.193        .18142E-02** at limit **
  21  Normalizat    1.6533        .32280        .24129E-03    .10997E-03
  22  Prefactor     .75985        .28989        .31819E-03    .12838E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 0.000100001
  norm       = 1.37596
  Prefactor  = 0.000100012
  norm       = 5.43049
  Prefactor  = 19.7305
  Prefactor  = 1.08324
  norm       = 1.72342
  Prefactor  = 0.0001
  Prefactor  = 5.19611
  Prefactor  = 0.0001
  Prefactor  = 123.905
  norm       = 0.0001
  Prefactor  = 0.00010009
  Prefactor  = 36.7851
  Prefactor  = 0.0001
  Prefactor  = 0.000100002
  norm       = 0.0001
  norm       = 0.000100001
  Prefactor  = 25.8217
  Prefactor  = 0.0001
  Normalizat = 1.65334
  Prefactor  = 0.759854
 **********
 **   18 **HESSE 
 **********

 FCN=   4176.945     FROM HESSE     STATUS=OK           332 CALLS     3439 TOTAL
                     EDM=   .10E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    167.29        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          1.3760        2.3911        .52103E-05   -1.5473    
   3  Prefactor     .10001E-03    165.47        .42419E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  norm          5.4305        6.3206        .63317E-05   -1.5242    
   5  Prefactor     19.731        26.938        .18035E-04   -1.4819    
   6  Prefactor     1.0832        106.85        .17661E-03   -1.5500    
   7  norm          1.7234        1.2891        .18776E-05   -1.5445    
   8  Prefactor     .10000E-03    7.9591        .35582E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     5.1961        18.705        .70545E-05   -1.5252    
  10  Prefactor     .10000E-03    13.950        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     123.91        78.107        .72322E-05   -1.3477    
  12  norm          .10000E-03    2.5788        .20172E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10009E-03    245.91        .16475       -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     36.785        37.564        .26441E-05   -1.4494    
  15  Prefactor     .10000E-03    36.587        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    139.07        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          .10000E-03    .55940        .15536E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          .10000E-03    19.565        .63756E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     25.822        51.683        .31528E-05   -1.4691    
  20  Prefactor     .10000E-03    27.194        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Normalizat    1.6533        .31839        .48258E-04   -.73556    
  22  Prefactor     .75985        .28729        .12727E-04   -1.0123    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.02795e-09
Minuit parameter uncertainties:
  1  0.000637406
  2  2.39127
  3  0.00279883
  4  6.32138
  5  26.9545
  6  21.5557
  7  1.28914
  8  4.25762e-06
  9  18.7256
  10  3.37672e-06
  11  78.1724
  12  2.67026e-07
  13  0.00945596
  14  37.588
  15  4.86065e-05
  16  0.000982235
  17  1.89587e-05
  18  0.000258781
  19  51.7725
  20  2.56615e-05
  21  0.318782
  22  0.287854
Done.

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

Extracting fit parameters...

4FGL J2331.0-2147
   Spectrum: LogParabola
418         norm:  1.000e-04  2.670e-07  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:  7.599e-01  2.879e-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.653e+00  3.188e-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: 1.06e-07 ph cm-2 s-1
Energy Flux Upper Limit: 3.51e-05 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/7732/likelihoodResults_540777601_541036801_4FGL_J2331.0-2147_daily_bin1163.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) = 4176.94699335
delta logL = -0.0018315127254

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 4176.94516185
delta logL = -1.61835487233e-08

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10053E-03   1.0000         .10000E-03   10000.    
     2 'alpha     '    2.4465       1.0000          .0000       5.0000    
     3 'Normalizat'    1.6534       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .75987       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=   4176.945     FROM MIGRAD    STATUS=CONVERGED     52 CALLS      199 TOTAL
                     EDM=   .93E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    2.9585        .90712E-02** at limit **
   2  alpha         2.4604        3.5852        .41164       -.27549E-04
   3  Normalizat    1.6533        .24742        .54576E-01   -.16755E-05
   4  Prefactor     .75985        .23312        .71898E-01    .15975E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  alpha      = 2.46042
  Normalizat = 1.65334
  Prefactor  = 0.759852
 **********
 **   18 **HESSE 
 **********

 FCN=   4176.945     FROM HESSE     STATUS=OK            31 CALLS      230 TOTAL
                     EDM=   .77E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    2.6183        .10160E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  alpha         2.4604        3.5429        .16465       -.15833E-01
   3  Normalizat    1.6533        .29363        .24129E-03   -.73556    
   4  Prefactor     .75985        .27623        .31819E-03   -1.0123    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 7.67489e-10
Minuit parameter uncertainties:
  1  1.23091e-05
  2  2.5007
  3  0.293942
  4  0.276728
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/7732': 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) = 4176.94516154
delta logL = 2.99409293802e-07

Extracting fit parameters...

4FGL J2331.0-2147
   Spectrum: LogParabola
418         norm:  1.000e-04  1.231e-05  1.000e-04  1.000e+04 ( 1.000e-12)
419        alpha:  2.460e+00  2.501e+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:  7.599e-01  2.767e-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.653e+00  2.939e-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  0.000e+00 [aplpy.core]
INFO: Auto-setting vmax to  0.000e+00 [aplpy.core]
Saving /scratch/kocevski/7732/cmap_HighResolution_540777601_541036801_4FGL_J2331.0-2147_daily_bin1163.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='3.51e-05', job_status='DONE', photon_flux_upper_limit='1.06e-07', time_completed='2021-09-29 23:05:25.802477', job_id='7732', GAL2='0.76', fit_tolerance='1e-08', EG2='1.65', EG='1.65', time_epoch_completed='1632981925.8', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.76', dlogl='2.99e-07', ts2='-0.00', photon_index_error='0.00', photon_index='2.43' WHERE bin_id='1163' AND source_name='4FGL J2331.0-2147' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep 29 23:05:25 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0052>
Subject: Job 7732: <4FGL_J2331.0-2147_daily_bin1163> in cluster <slac> Done

Job <4FGL_J2331.0-2147_daily_bin1163> was submitted from host <rhel6-64d> by user <kocevski> in cluster <slac> at Wed Sep 29 22:55:59 2021
Job was executed on host(s) <bullet0052>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Sep 29 22:56:01 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:56:01 2021
Terminated at Wed Sep 29 23:05:26 2021
Results reported at Wed Sep 29 23:05:26 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2331.0-2147_daily_bin1163 352.763 -21.7953 540777601 541036801 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 :                                   542.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             346.05 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   565 sec.
    Turnaround time :                            567 sec.

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

