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


Performing analysis on: 4FGL_J2331.0-2147_daily_bin315
RA = 352.763, Dec = -21.7953
tmin = 320976001, tmax = 321235201
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='4433', job_status='RUN', time_executed='2021-09-29 22:49:01.527822', time_epoch_executed='1632980941.53' WHERE source_name='4FGL J2331.0-2147' and cadence='daily' and bin_id='315'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/4433

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/4433/ft1_4FGL_J2331.0-2147_daily_bin315.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/4433/ft2_4FGL_J2331.0-2147_daily_bin315.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/4433/ft1_4FGL_J2331.0-2147_daily_bin315.fits outfile=/scratch/kocevski/4433/ft1_filteredMKT_4FGL_J2331.0-2147_daily_bin315.fits ra=352.763 dec=-21.7953 rad=12.0 tmin=320976001.0 tmax=321235201.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.49
user 3.28
sys 0.18

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/4433/ft1_filtered_4FGL_J2331.0-2147_daily_bin315.fits" evtable="EVENTS" scfile=/scratch/kocevski/4433/ft2_4FGL_J2331.0-2147_daily_bin315.fits sctable="SC_DATA" outfile=/scratch/kocevski/4433/ltcube_320976001_321235201_4FGL_J2331.0-2147_daily_bin315.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/4433/ft2_4FGL_J2331.0-2147_daily_bin315.fits
.....................!
real 11.49
user 11.16
sys 0.28

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/4433/ft1_filtered_4FGL_J2331.0-2147_daily_bin315.fits evtable="EVENTS" scfile=/scratch/kocevski/4433/ft2_4FGL_J2331.0-2147_daily_bin315.fits sctable="SC_DATA" expcube=/scratch/kocevski/4433/ltcube_320976001_321235201_4FGL_J2331.0-2147_daily_bin315.fits outfile=/scratch/kocevski/4433/expmap_320976001_321235201_4FGL_J2331.0-2147_daily_bin315.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/4433/ltcube_320976001_321235201_4FGL_J2331.0-2147_daily_bin315.fits
.....................!
real 189.43
user 185.02
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/4433/ft1_filtered_4FGL_J2331.0-2147_daily_bin315.fits scfile=/scratch/kocevski/4433/ft2_4FGL_J2331.0-2147_daily_bin315.fits outfile=/scratch/kocevski/4433/cmap_320976001_321235201_4FGL_J2331.0-2147_daily_bin315.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.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/4433/ft1_filtered_4FGL_J2331.0-2147_daily_bin315.fits scfile=/scratch/kocevski/4433/ft2_4FGL_J2331.0-2147_daily_bin315.fits outfile=/scratch/kocevski/4433/cmap_HighResolution_320976001_321235201_4FGL_J2331.0-2147_daily_bin315.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.37
sys 0.16

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/4433/ft1_filtered_4FGL_J2331.0-2147_daily_bin315.fits evtable="EVENTS" scfile=/scratch/kocevski/4433/ft2_4FGL_J2331.0-2147_daily_bin315.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/4433/Model_4FGL_J2331.0-2147_daily_bin315.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/4433/ft1_filtered_4FGL_J2331.0-2147_daily_bin315.fits.....................!
real 36.41
user 35.19
sys 1.15

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/4433/ft1_filtered_4FGL_J2331.0-2147_daily_bin315.fits', '/scratch/kocevski/4433/ft2_4FGL_J2331.0-2147_daily_bin315.fits', expMap='/scratch/kocevski/4433/expmap_320976001_321235201_4FGL_J2331.0-2147_daily_bin315.fits', expCube='/scratch/kocevski/4433/ltcube_320976001_321235201_4FGL_J2331.0-2147_daily_bin315.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/4433/Model_4FGL_J2331.0-2147_daily_bin315.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/4433/ft1_filtered_4FGL_J2331.0-2147_daily_bin315.fits
Spacecraft file(s): /scratch/kocevski/4433/ft2_4FGL_J2331.0-2147_daily_bin315.fits
Exposure map: /scratch/kocevski/4433/expmap_320976001_321235201_4FGL_J2331.0-2147_daily_bin315.fits
Exposure cube: /scratch/kocevski/4433/ltcube_320976001_321235201_4FGL_J2331.0-2147_daily_bin315.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/4433/Model_4FGL_J2331.0-2147_daily_bin315.xml
Optimizer: MINUIT
Statistic: UNBINNED

Performing an iterative likelihood fit...

Fit tolerance = 1

Performing likelihood fit...
Done.

MINUIT Return Code (Fixed Index): 102
logL (Fixed Index) = 3738.46425886

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
     2 'norm      '    .10108E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    131.39       1.0000         .10000E-03   10000.    
     4 'norm      '    9.6456       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
     7 'norm      '    1.9242       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10137E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    3.9339       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10045E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10024E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    4.1001       1.0000         .10000E-03   10000.    
    16 'Prefactor '    82.195       1.0000         .10000E-03   10000.    
    17 'norm      '    .67222       1.0000         .10000E-03   10000.    
    18 'norm      '    13.567       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .35036E-01   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    21 'Normalizat'    1.2249       1.0000         .10000E-01   10.000    
    22 'Prefactor '    .77242       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=   3738.312     FROM MIGRAD    STATUS=CONVERGED    842 CALLS     2798 TOTAL
                     EDM=   .41E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    25.273        .18142E-02** at limit **
   2  norm          .10000E-03    1.8288        .80463E-03** at limit **
   3  Prefactor     131.35        78.764        .17564E-03    .39516E-04
   4  norm          9.6447        6.5095        .12119E-03    .17542E-04
   5  Prefactor     .10000E-03    6.2809        .14962E-02** at limit **
   6  Prefactor     .10000E-03    4.2147        .12247E-02** at limit **
   7  norm          1.9239        .88591        .36873E-04    .22199E-03
   8  Prefactor     .10000E-03    6.2039        .14843E-02** at limit **
   9  Prefactor     .10000E-03    4.3491        .12444E-02** at limit **
  10  Prefactor     .10000E-03    11.455        .18142E-02** at limit **
  11  Prefactor     .10000E-03    103.80        .18142E-02** at limit **
  12  norm          3.9327        4.6272        .12922E-03    .75530E-04
  13  Prefactor     .10000E-03    45.004        .18142E-02** at limit **
  14  Prefactor     .10000E-03    13.662        .18142E-02** at limit **
  15  Prefactor     4.0686        113.96        .19909E-03    .41970E-05
  16  Prefactor     81.794        195.63        .22152E-03    .59790E-05
  17  norm          .67315        1.4574        .63788E-04   -.32615E-04
  18  norm          13.555        13.017        .10874E-03    .18975E-04
  19  Prefactor     .10001E-03    108.03        .17345    ** at limit **
  20  Prefactor     .10000E-03    60.816        .18142E-02** at limit **
  21  Normalizat    1.2262        .28653        .23839E-03    .85311E-04
  22  Prefactor     .77146        .25959        .27946E-03    .57279E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 131.349
  norm       = 9.64474
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 1.92386
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 3.93266
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 4.06858
  Prefactor  = 81.7939
  norm       = 0.673148
  norm       = 13.5554
  Prefactor  = 0.000100006
  Prefactor  = 0.0001
  Normalizat = 1.22617
  Prefactor  = 0.771458
 **********
 **   18 **HESSE 
 **********

 FCN=   3738.312     FROM HESSE     STATUS=OK           330 CALLS     3128 TOTAL
                     EDM=   .41E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    25.274        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          .10000E-03    1.8288        .16093E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     131.35        78.764        .70256E-05   -1.3411    
   4  norm          9.6447        6.5097        .48478E-05   -1.5087    
   5  Prefactor     .10000E-03    6.2809        .29924E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    4.2148        .24494E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          1.9239        .88593        .14749E-05   -1.5431    
   8  Prefactor     .10000E-03    6.2046        .29687E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    4.3492        .24889E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    11.455        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    103.81        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          3.9327        4.6257        .51688E-05   -1.5311    
  13  Prefactor     .10000E-03    45.006        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    13.663        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     4.0686        113.84        .79638E-05   -1.5305    
  16  Prefactor     81.794        195.55        .88607E-05   -1.3897    
  17  norm          .67315        1.4575        .25515E-05   -1.5544    
  18  norm          13.555        13.019        .43497E-05   -1.4971    
  19  Prefactor     .10001E-03    118.21        .16371       -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    60.817        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Normalizat    1.2262        .28688        .47678E-04   -.85798    
  22  Prefactor     .77146        .25985        .11178E-04   -1.0079    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.08388e-11
Minuit parameter uncertainties:
  1  3.39845e-05
  2  9.38875e-06
  3  78.8274
  4  6.51018
  5  7.956e-08
  6  1.83361e-07
  7  0.885937
  8  2.42964e-05
  9  2.4606e-06
  10  1.52842e-05
  11  0.0002249
  12  4.62611
  13  0.000146164
  14  5.69795e-05
  15  43.1335
  16  197.124
  17  1.4576
  18  13.0221
  19  0.00174473
  20  8.38902e-06
  21  0.287245
  22  0.260259
Done.

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

Extracting fit parameters...

4FGL J2331.0-2147
   Spectrum: LogParabola
418         norm:  3.933e+00  4.626e+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:  7.715e-01  2.603e-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.226e+00  2.872e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 1.14
Ra Dec: 352.763 -21.795
Photon Index (Fixed Index): 2.43 +/- 0.00
Photon Flux (Fixed Index): 4.22e-08 +/- 4.96e-08
Energy Flux (Fixed Index): 1.40e-05 +/- 1.65e-05

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

Saving results to:
/scratch/kocevski/4433/likelihoodResults_320976001_321235201_4FGL_J2331.0-2147_daily_bin315.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) = 3738.31173168
delta logL = 7.01565277268e-05

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 3738.3117076
delta logL = 9.42350388868e-05

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    3.9621       1.0000         .10000E-03   10000.    
     2 'alpha     '    2.4187       1.0000          .0000       5.0000    
     3 'Normalizat'    1.2267       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .77122       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=   3738.312     FROM MIGRAD    STATUS=CONVERGED     55 CALLS      229 TOTAL
                     EDM=   .23E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          3.9654        146.14        .50661E-02    .90614E-04
   2  alpha         2.4196        2.7185        .41179        .15889E-05
   3  Normalizat    1.2267        .96797E-01    .53902E-01   -.15716E-03
   4  Prefactor     .77111        .76924E-01    .63193E-01   -.20663E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 3.96545
  alpha      = 2.41957
  Normalizat = 1.2267
  Prefactor  = 0.77111
 **********
 **   18 **HESSE 
 **********

 FCN=   3738.312     FROM HESSE     STATUS=OK            31 CALLS      260 TOTAL
                     EDM=   .12E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          3.9654        5.1573        .12988E-03   -1.5310    
   2  alpha         2.4196        .97110        .15497E-01   -.32178E-01
   3  Normalizat    1.2267        .26917        .23833E-03   -.85782    
   4  Prefactor     .77111        .25582        .27953E-03   -1.0080    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.15822e-10
Minuit parameter uncertainties:
  1  5.15783
  2  0.997373
  3  0.269476
  4  0.256218
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/4433': 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) = 3738.31170608
delta logL = 9.5751374829e-05

Extracting fit parameters...

4FGL J2331.0-2147
   Spectrum: LogParabola
418         norm:  3.965e+00  5.158e+00  1.000e-04  1.000e+04 ( 1.000e-12)
419        alpha:  2.420e+00  9.974e-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:  7.711e-01  2.562e-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.227e+00  2.695e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 1.13
Ra Dec: 352.763 -21.795
Photon Index (Free Index): 2.42 +/- 1.00
Photon Flux (Free Index): 4.17e-08 +/- 5.54e-08
Energy Flux (Free Index): 1.41e-05 +/- 1.61e-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/4433/cmap_HighResolution_320976001_321235201_4FGL_J2331.0-2147_daily_bin315.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='5.05e-05', comment='SUCCESS', photon_flux='4.22e-08', energy_flux2='1.41e-05', photon_flux_error='4.96e-08', dlogl='9.58e-05', energy_flux='1.40e-05', photon_flux2='4.17e-08', job_status='DONE', time_completed='2021-09-29 22:57:19.844912', photon_index_error2='1.00', photon_index2='2.42', ts='1.14', fit_tolerance='1e-08', GAL='0.77', photon_index_error='0.00', photon_flux_upper_limit='1.52e-07', energy_flux_error2='1.61e-05', EG='1.23', time_epoch_completed='1632981439.84', return_code='0', job_id='4433', GAL2='0.77', EG2='1.23', return_code2='0', energy_flux_error='1.65e-05', photon_flux_error2='5.54e-08', ts2='1.13', photon_index='2.43' WHERE bin_id='315' AND source_name='4FGL J2331.0-2147' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep 29 22:57:19 PDT 2021


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

Job <4FGL_J2331.0-2147_daily_bin315> was submitted from host <rhel6-64h> by user <kocevski> in cluster <slac> at Wed Sep 29 22:45:28 2021
Job was executed on host(s) <bullet0268>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Sep 29 22:45:29 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:29 2021
Terminated at Wed Sep 29 22:57:20 2021
Results reported at Wed Sep 29 22:57:20 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2331.0-2147_daily_bin315 352.763 -21.7953 320976001 321235201 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 :                                   497.40 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             287.30 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   711 sec.
    Turnaround time :                            712 sec.

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

