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


Performing analysis on: 4FGL_J2331.0-2147_daily_bin1463
RA = 352.763, Dec = -21.7953
tmin = 618537601, tmax = 618796801
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='9110', job_status='RUN', time_executed='2021-09-29 23:03:43.785090', time_epoch_executed='1632981823.79' WHERE source_name='4FGL J2331.0-2147' and cadence='daily' and bin_id='1463'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/9110

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/9110/ft1_4FGL_J2331.0-2147_daily_bin1463.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/9110/ft2_4FGL_J2331.0-2147_daily_bin1463.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/9110/ft1_4FGL_J2331.0-2147_daily_bin1463.fits outfile=/scratch/kocevski/9110/ft1_filteredMKT_4FGL_J2331.0-2147_daily_bin1463.fits ra=352.763 dec=-21.7953 rad=12.0 tmin=618537601.0 tmax=618796801.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.71
user 3.47
sys 0.23

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/9110/ft2_4FGL_J2331.0-2147_daily_bin1463.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/9110/ft1_filteredMKT_4FGL_J2331.0-2147_daily_bin1463.fits evtable="EVENTS" outfile="/scratch/kocevski/9110/ft1_filtered_4FGL_J2331.0-2147_daily_bin1463.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/9110/ft1_filtered_4FGL_J2331.0-2147_daily_bin1463.fits" evtable="EVENTS" scfile=/scratch/kocevski/9110/ft2_4FGL_J2331.0-2147_daily_bin1463.fits sctable="SC_DATA" outfile=/scratch/kocevski/9110/ltcube_618537601_618796801_4FGL_J2331.0-2147_daily_bin1463.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/9110/ft2_4FGL_J2331.0-2147_daily_bin1463.fits
.....................!
real 11.78
user 11.42
sys 0.33

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/9110/ft1_filtered_4FGL_J2331.0-2147_daily_bin1463.fits evtable="EVENTS" scfile=/scratch/kocevski/9110/ft2_4FGL_J2331.0-2147_daily_bin1463.fits sctable="SC_DATA" expcube=/scratch/kocevski/9110/ltcube_618537601_618796801_4FGL_J2331.0-2147_daily_bin1463.fits outfile=/scratch/kocevski/9110/expmap_618537601_618796801_4FGL_J2331.0-2147_daily_bin1463.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/9110/ltcube_618537601_618796801_4FGL_J2331.0-2147_daily_bin1463.fits
.....................!
real 191.12
user 185.63
sys 5.17

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/9110/ft1_filtered_4FGL_J2331.0-2147_daily_bin1463.fits scfile=/scratch/kocevski/9110/ft2_4FGL_J2331.0-2147_daily_bin1463.fits outfile=/scratch/kocevski/9110/cmap_618537601_618796801_4FGL_J2331.0-2147_daily_bin1463.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.54
user 0.36
sys 0.16

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

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/9110/ft1_filtered_4FGL_J2331.0-2147_daily_bin1463.fits evtable="EVENTS" scfile=/scratch/kocevski/9110/ft2_4FGL_J2331.0-2147_daily_bin1463.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/9110/Model_4FGL_J2331.0-2147_daily_bin1463.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/9110/ft1_filtered_4FGL_J2331.0-2147_daily_bin1463.fits.....................!
real 36.13
user 34.88
sys 1.19

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10011E-03   1.0000         .10000E-03   10000.    
     2 'norm      '    .10269E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    36.145       1.0000         .10000E-03   10000.    
     4 'norm      '    .10034E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10026E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    31.824       1.0000         .10000E-03   10000.    
     7 'norm      '    .10275E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    6.6479       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10631E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    109.94       1.0000         .10000E-03   10000.    
    12 'norm      '    11.712       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10033E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    3.9704       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10036E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10032E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    18 'norm      '    16.068       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    21 'Normalizat'    1.0073       1.0000         .10000E-01   10.000    
    22 'Prefactor '    .85162       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=   3999.324     FROM MIGRAD    STATUS=CONVERGED    491 CALLS     2440 TOTAL
                     EDM=   .24E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .5%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    26.475        .55051E-05** at limit **
   2  norm          .10000E-03    1.6691       -.29535E-06** at limit **
   3  Prefactor     36.161        61.081        .15391E-04   -.38453E-05
   4  norm          .10000E-03    4.7236        .12055E-06** at limit **
   5  Prefactor     .10000E-03    9.8889        .59726E-07** at limit **
   6  Prefactor     31.801        16.989       -.17785E-05   -.41577E-03
   7  norm          .10000E-03    .65187        .43713E-06** at limit **
   8  Prefactor     6.6485        14.811       -.21785E-06   -.58567E-04
   9  Prefactor     .10000E-03    31.746       -.85419E-05** at limit **
  10  Prefactor     .10000E-03    8.4174        .59785E-08** at limit **
  11  Prefactor     109.96        93.748        .95445E-05   -.73153E-05
  12  norm          11.714        5.2764        .70649E-07   -.13607E-03
  13  Prefactor     .10000E-03    23.982        .49081E-05** at limit **
  14  Prefactor     3.9702        15.526       -.48208E-06   -.80928E-04
  15  Prefactor     .10000E-03    39.949        .29670E-05** at limit **
  16  Prefactor     .10000E-03    255.02       -.16540E-05** at limit **
  17  norm          .10000E-03    .26085       -.62221E-09** at limit **
  18  norm          16.071        6.6762       -.28760E-07   -.80100E-04
  19  Prefactor     .10000E-03    20.939       -.62588E-05** at limit **
  20  Prefactor     .10000E-03    18.134        .17765E-05** at limit **
  21  Normalizat    1.0066        .23214       -.13600E-05   -.55702E-04
  22  Prefactor     .85225        .21289        .93550E-07   -.11374E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 36.1605
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 31.801
  norm       = 0.000100001
  Prefactor  = 6.64848
  Prefactor  = 0.000100001
  Prefactor  = 0.0001
  Prefactor  = 109.957
  norm       = 11.7137
  Prefactor  = 0.0001
  Prefactor  = 3.97021
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 16.0706
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Normalizat = 1.00665
  Prefactor  = 0.852251
 **********
 **   18 **HESSE 
 **********

 FCN=   3999.324     FROM HESSE     STATUS=OK           338 CALLS     2778 TOTAL
                     EDM=   .48E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    26.478        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          .10000E-03    1.6842        .79785E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     36.161        61.109        .66660E-04   -1.4505    
   4  norm          .10000E-03    4.7798        .13388E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    9.8935        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     31.801        14.697        .71028E-04   -1.4580    
   7  norm          .10000E-03    8.0792        .83489E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     6.6485        14.809        .15563E-03   -1.5192    
   9  Prefactor     .10000E-03    31.451        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    8.4180        .17921E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     109.96        94.090        .38360E-04   -1.3607    
  12  norm          11.714        5.2764        .92583E-04   -1.5023    
  13  Prefactor     .10000E-03    23.982        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     3.9702        15.517        .20242E-03   -1.5309    
  15  Prefactor     .10000E-03    40.298        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    255.56        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          .10000E-03    .26625        .62365E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          16.071        6.6277        .98709E-04   -1.4906    
  19  Prefactor     .10000E-03    20.911        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    18.131        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Normalizat    1.0066        .27341        .24998E-03   -.92808    
  22  Prefactor     .85225        .24953        .25770E-03   -.97830    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.80621e-10
Minuit parameter uncertainties:
  1  9.32466e-06
  2  4.27467e-05
  3  61.2147
  4  1.75837e-05
  5  2.01452e-05
  6  14.6991
  7  0.00013464
  8  14.8173
  9  0.000261682
  10  1.80224e-06
  11  94.2176
  12  5.27662
  13  1.53217e-05
  14  15.5326
  15  3.2474e-07
  16  9.48561e-06
  17  9.99657e-07
  18  6.628
  19  4.33451e-06
  20  3.86624e-06
  21  0.273796
  22  0.24986
Done.

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

Extracting fit parameters...

4FGL J2331.0-2147
   Spectrum: LogParabola
418         norm:  1.171e+01  5.277e+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:  8.523e-01  2.499e-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.007e+00  2.738e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 8.87
Ra Dec: 352.763 -21.795
Photon Index (Fixed Index): 2.43 +/- 0.00
Photon Flux (Fixed Index): 1.26e-07 +/- 5.65e-08
Energy Flux (Fixed Index): 4.17e-05 +/- 1.88e-05

Performing a free index iterative likelihood fit...

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

Done.

Freeing candidate source...
Done.

Fit tolerance = 1

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 3999.07748452
delta logL = 0.246859634914

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 3999.07682802
delta logL = 0.247516129052

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    14.530       1.0000         .10000E-03   10000.    
     2 'alpha     '    2.1326       1.0000          .0000       5.0000    
     3 'Normalizat'    1.0371       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .82898       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=   3999.077     FROM MIGRAD    STATUS=CONVERGED     55 CALLS      263 TOTAL
                     EDM=   .17E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          14.516        144.45        .26269E-02    .62135E-04
   2  alpha         2.1316        3.3532        .21062        .27641E-04
   3  Normalizat    1.0372        .28810        .41513E-01    .13362E-04
   4  Prefactor     .82897        .26517        .44093E-01    .16087E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 14.5163
  alpha      = 2.13157
  Normalizat = 1.03723
  Prefactor  = 0.828972
 **********
 **   18 **HESSE 
 **********

 FCN=   3999.077     FROM HESSE     STATUS=OK            33 CALLS      296 TOTAL
                     EDM=   .99E-12    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          14.516        7.2377        .10465E-03   -1.4946    
   2  alpha         2.1316        .41781        .86944E-02   -.14791    
   3  Normalizat    1.0372        .25975        .24676E-03   -.91793    
   4  Prefactor     .82897        .24811        .26075E-03   -.98669    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 9.85037e-13
Minuit parameter uncertainties:
  1  7.23816
  2  0.419826
  3  0.260069
  4  0.248447
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/9110': 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) = 3999.07682055
delta logL = 0.2475236009

Extracting fit parameters...

4FGL J2331.0-2147
   Spectrum: LogParabola
418         norm:  1.452e+01  7.238e+00  1.000e-04  1.000e+04 ( 1.000e-12)
419        alpha:  2.132e+00  4.198e-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:  8.290e-01  2.484e-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.037e+00  2.601e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 9.33
Ra Dec: 352.763 -21.795
Photon Index (Free Index): 2.13 +/- 0.42
Photon Flux (Free Index): 1.05e-07 +/- 5.73e-08
Energy Flux (Free Index): 4.92e-05 +/- 2.58e-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/9110/cmap_HighResolution_618537601_618796801_4FGL_J2331.0-2147_daily_bin1463.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='1.26e-07', energy_flux2='4.92e-05', photon_flux_error='5.65e-08', dlogl='2.48e-01', energy_flux='4.17e-05', photon_flux2='1.05e-07', job_status='DONE', time_completed='2021-09-29 23:11:41.210333', photon_index_error2='0.42', photon_index2='2.13', ts='8.87', fit_tolerance='1e-08', GAL='0.85', photon_index_error='0.00', energy_flux_error2='2.58e-05', EG='1.01', time_epoch_completed='1632982301.21', return_code='0', job_id='9110', GAL2='0.83', EG2='1.04', return_code2='0', energy_flux_error='1.88e-05', photon_flux_error2='5.73e-08', ts2='9.33', photon_index='2.43' WHERE bin_id='1463' AND source_name='4FGL J2331.0-2147' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep 29 23:11:41 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0244>
Subject: Job 9110: <4FGL_J2331.0-2147_daily_bin1463> in cluster <slac> Done

Job <4FGL_J2331.0-2147_daily_bin1463> was submitted from host <rhel6-64k> by user <kocevski> in cluster <slac> at Wed Sep 29 23:00:21 2021
Job was executed on host(s) <bullet0244>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Sep 29 23:00:23 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:23 2021
Terminated at Wed Sep 29 23:11:42 2021
Results reported at Wed Sep 29 23:11:42 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2331.0-2147_daily_bin1463 352.763 -21.7953 618537601 618796801 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 :                                   469.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             240.50 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   678 sec.
    Turnaround time :                            681 sec.

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

