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


Performing analysis on: 4FGL_J2331.0-2147_daily_bin1564
RA = 352.763, Dec = -21.7953
tmin = 644716801, tmax = 644976001
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='9255', job_status='RUN', time_executed='2021-09-29 23:02:38.576048', time_epoch_executed='1632981758.58' WHERE source_name='4FGL J2331.0-2147' and cadence='daily' and bin_id='1564'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/9255

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/9255/ft1_4FGL_J2331.0-2147_daily_bin1564.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/9255/ft2_4FGL_J2331.0-2147_daily_bin1564.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/9255/ft1_4FGL_J2331.0-2147_daily_bin1564.fits outfile=/scratch/kocevski/9255/ft1_filteredMKT_4FGL_J2331.0-2147_daily_bin1564.fits ra=352.763 dec=-21.7953 rad=12.0 tmin=644716801.0 tmax=644976001.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 2.86
user 2.66
sys 0.18

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/9255/ft1_filtered_4FGL_J2331.0-2147_daily_bin1564.fits" evtable="EVENTS" scfile=/scratch/kocevski/9255/ft2_4FGL_J2331.0-2147_daily_bin1564.fits sctable="SC_DATA" outfile=/scratch/kocevski/9255/ltcube_644716801_644976001_4FGL_J2331.0-2147_daily_bin1564.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/9255/ft2_4FGL_J2331.0-2147_daily_bin1564.fits
.....................!
real 12.84
user 12.47
sys 0.33

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/9255/ft1_filtered_4FGL_J2331.0-2147_daily_bin1564.fits evtable="EVENTS" scfile=/scratch/kocevski/9255/ft2_4FGL_J2331.0-2147_daily_bin1564.fits sctable="SC_DATA" expcube=/scratch/kocevski/9255/ltcube_644716801_644976001_4FGL_J2331.0-2147_daily_bin1564.fits outfile=/scratch/kocevski/9255/expmap_644716801_644976001_4FGL_J2331.0-2147_daily_bin1564.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/9255/ltcube_644716801_644976001_4FGL_J2331.0-2147_daily_bin1564.fits
.....................!
real 192.19
user 186.75
sys 5.06

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/9255/ft1_filtered_4FGL_J2331.0-2147_daily_bin1564.fits scfile=/scratch/kocevski/9255/ft2_4FGL_J2331.0-2147_daily_bin1564.fits outfile=/scratch/kocevski/9255/cmap_644716801_644976001_4FGL_J2331.0-2147_daily_bin1564.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.38
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/9255/ft1_filtered_4FGL_J2331.0-2147_daily_bin1564.fits scfile=/scratch/kocevski/9255/ft2_4FGL_J2331.0-2147_daily_bin1564.fits outfile=/scratch/kocevski/9255/cmap_HighResolution_644716801_644976001_4FGL_J2331.0-2147_daily_bin1564.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.55
user 0.38
sys 0.16

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/9255/ft1_filtered_4FGL_J2331.0-2147_daily_bin1564.fits evtable="EVENTS" scfile=/scratch/kocevski/9255/ft2_4FGL_J2331.0-2147_daily_bin1564.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/9255/Model_4FGL_J2331.0-2147_daily_bin1564.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/9255/ft1_filtered_4FGL_J2331.0-2147_daily_bin1564.fits.....................!
real 63.62
user 62.17
sys 1.23

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .69725E-02   1.0000         .10000E-03   10000.    
     2 'norm      '    2.6037       1.0000         .10000E-03   10000.    
     3 'Prefactor '    28.880       1.0000         .10000E-03   10000.    
     4 'norm      '    .57480E-01   1.0000         .10000E-03   10000.    
     5 'Prefactor '    15.251       1.0000         .10000E-03   10000.    
     6 'Prefactor '    7.7256       1.0000         .10000E-03   10000.    
     7 'norm      '    .10141E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    3.6952       1.0000         .10000E-03   10000.    
     9 'Prefactor '    14.717       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10648E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    4.3038       1.0000         .10000E-03   10000.    
    13 'Prefactor '    44.133       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10973E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .31996       1.0000         .10000E-03   10000.    
    16 'Prefactor '    64.773       1.0000         .10000E-03   10000.    
    17 'norm      '    .11355E-01   1.0000         .10000E-03   10000.    
    18 'norm      '    .52389E-01   1.0000         .10000E-03   10000.    
    19 'Prefactor '    27.249       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .11665E-03   1.0000         .10000E-03   10000.    
    21 'Normalizat'    1.0153       1.0000         .10000E-01   10.000    
    22 'Prefactor '    .93929       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=   8502.320     FROM MIGRAD    STATUS=CONVERGED    995 CALLS     2796 TOTAL
                     EDM=   .15E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    34.836        .18706E-02** at limit **
   2  norm          2.5937        1.8702        .96484E-04   -.27337E-04
   3  Prefactor     29.345        37.973        .74552E-04   -.20739E-04
   4  norm          .27732E-01    2.5222        .39511E-01   -.79430E-03
   5  Prefactor     15.313        13.294        .10256E-03   -.21017E-03
   6  Prefactor     7.7005        9.2505        .14427E-03   -.34972E-03
   7  norm          .10000E-03    .39981        .81415E-03** at limit **
   8  Prefactor     3.6770        7.2709        .21010E-03   -.25433E-04
   9  Prefactor     14.703        9.4363        .10441E-03   -.24173E-03
  10  Prefactor     .10000E-03    6.5462        .18142E-02** at limit **
  11  Prefactor     .10000E-03    22.120        .18142E-02** at limit **
  12  norm          4.3171        2.6111        .10722E-03   -.88855E-03
  13  Prefactor     42.437        37.597        .60349E-04   -.68270E-04
  14  Prefactor     .10000E-03    16.127        .18142E-02** at limit **
  15  Prefactor     .10010E-03    21.395        .10280    ** at limit **
  16  Prefactor     68.294        68.849        .24932E-03   -.14683E-04
  17  norm          .11137E-01    1.5009        .75532E-03    .15222E-02
  18  norm          .74691E-01    19.839        .18791E-02    .15329E-02
  19  Prefactor     25.820        24.178        .76745E-04   -.49833E-04
  20  Prefactor     .10000E-03    10.412        .18142E-02** at limit **
  21  Normalizat    1.0161        .17140        .22958E-03   -.28147E-03
  22  Prefactor     .93912        .16909        .24416E-03   -.52417E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  norm       = 2.59367
  Prefactor  = 29.3447
  norm       = 0.027732
  Prefactor  = 15.3132
  Prefactor  = 7.7005
  norm       = 0.0001
  Prefactor  = 3.67698
  Prefactor  = 14.703
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 4.31713
  Prefactor  = 42.4373
  Prefactor  = 0.0001
  Prefactor  = 0.000100103
  Prefactor  = 68.294
  norm       = 0.0111371
  norm       = 0.0746905
  Prefactor  = 25.8201
  Prefactor  = 0.0001
  Normalizat = 1.01606
  Prefactor  = 0.939118
 **********
 **   18 **HESSE 
 **********

 FCN=   8502.320     FROM HESSE     STATUS=OK           344 CALLS     3140 TOTAL
                     EDM=   .13E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    34.856        .37412E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          2.5937        1.8701        .38594E-05   -1.5386    
   3  Prefactor     29.345        37.957        .29821E-05   -1.4624    
   4  norm          .27732E-01    2.2855        .42774E-01   -1.5741    
   5  Prefactor     15.313        13.290        .41024E-05   -1.4925    
   6  Prefactor     7.7005        9.2474        .57709E-05   -1.5153    
   7  norm          .10000E-03    .40045        .16283E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     3.6770        7.2699        .84038E-05   -1.5324    
   9  Prefactor     14.703        9.4341        .41763E-05   -1.4941    
  10  Prefactor     .10000E-03    6.5464        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    22.123        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          4.3171        2.6111        .42888E-05   -1.5292    
  13  Prefactor     42.437        37.583        .12070E-04   -1.4404    
  14  Prefactor     .10000E-03    16.135        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10010E-03    19.690        .10883       -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     68.294        68.836        .99728E-05   -1.4053    
  17  norm          .11137E-01    1.2680        .30213E-04   -1.5687    
  18  norm          .74691E-01    16.706        .75165E-04   -1.5653    
  19  Prefactor     25.820        24.177        .15349E-04   -1.4691    
  20  Prefactor     .10000E-03    10.412        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Normalizat    1.0161        .17127        .45916E-04   -.92494    
  22  Prefactor     .93912        .16915        .48831E-04   -.94787    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.31427e-08
Minuit parameter uncertainties:
  1  0.000122311
  2  1.87012
  3  37.988
  4  0.502621
  5  13.2928
  6  9.24913
  7  1.08712e-05
  8  7.27165
  9  9.43505
  10  6.69065e-06
  11  5.75465e-05
  12  2.61116
  13  37.6044
  14  7.65824e-05
  15  0.00284619
  16  68.916
  17  0.23661
  18  2.2332
  19  24.1857
  20  1.04868e-05
  21  0.171359
  22  0.169241
Done.

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

Extracting fit parameters...

4FGL J2331.0-2147
   Spectrum: LogParabola
418         norm:  4.317e+00  2.611e+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:  9.391e-01  1.692e-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.016e+00  1.714e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 7.96
Ra Dec: 352.763 -21.795
Photon Index (Fixed Index): 2.43 +/- 0.00
Photon Flux (Fixed Index): 4.63e-08 +/- 2.80e-08
Energy Flux (Fixed Index): 1.54e-05 +/- 9.31e-06

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) = 8502.16633337
delta logL = 0.153939869409

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 8502.16496128
delta logL = 0.155311961204

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    3.3145       1.0000         .10000E-03   10000.    
     2 'alpha     '    2.8863       1.0000          .0000       5.0000    
     3 'Normalizat'    .98286       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .95919       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=   8502.165     FROM MIGRAD    STATUS=CONVERGED     57 CALLS      246 TOTAL
                     EDM=   .17E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          3.3140        24.295        .55589E-02    .39473E-03
   2  alpha         2.8862        3.9288        .25241        .10826E-03
   3  Normalizat    .98297        .68255E-01    .45952E-01    .18743E-04
   4  Prefactor     .95918        .51464E-01    .45755E-01    .17624E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 3.31397
  alpha      = 2.88623
  Normalizat = 0.982974
  Prefactor  = 0.959185
 **********
 **   18 **HESSE 
 **********

 FCN=   8502.165     FROM HESSE     STATUS=OK            33 CALLS      279 TOTAL
                     EDM=   .43E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          3.3140        3.3573        .78585E-04   -1.5344    
   2  alpha         2.8862        .89831        .12448E-01    .15511    
   3  Normalizat    .98297        .17659        .23282E-03   -.93603    
   4  Prefactor     .95918        .17294        .24182E-03   -.94103    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.30809e-11
Minuit parameter uncertainties:
  1  3.35747
  2  0.919399
  3  0.176691
  4  0.173044
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/9255': 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) = 8502.16496038
delta logL = 0.155312856501

Extracting fit parameters...

4FGL J2331.0-2147
   Spectrum: LogParabola
418         norm:  3.314e+00  3.357e+00  1.000e-04  1.000e+04 ( 1.000e-12)
419        alpha:  2.886e+00  9.194e-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:  9.592e-01  1.730e-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:  9.830e-01  1.767e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 8.31
Ra Dec: 352.763 -21.795
Photon Index (Free Index): 2.89 +/- 0.92
Photon Flux (Free Index): 7.02e-08 +/- 5.34e-08
Energy Flux (Free Index): 1.66e-05 +/- 8.25e-06

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/9255/cmap_HighResolution_644716801_644976001_4FGL_J2331.0-2147_daily_bin1564.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='4.63e-08', energy_flux2='1.66e-05', photon_flux_error='2.80e-08', dlogl='1.55e-01', energy_flux='1.54e-05', photon_flux2='7.02e-08', job_status='DONE', time_completed='2021-09-29 23:14:20.823377', photon_index_error2='0.92', photon_index2='2.89', ts='7.96', fit_tolerance='1e-08', GAL='0.94', photon_index_error='0.00', energy_flux_error2='8.25e-06', EG='1.02', time_epoch_completed='1632982460.82', return_code='0', job_id='9255', GAL2='0.96', EG2='0.98', return_code2='0', energy_flux_error='9.31e-06', photon_flux_error2='5.34e-08', ts2='8.31', photon_index='2.43' WHERE bin_id='1564' AND source_name='4FGL J2331.0-2147' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep 29 23:14:20 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0042>
Subject: Job 9255: <4FGL_J2331.0-2147_daily_bin1564> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2331.0-2147_daily_bin1564 352.763 -21.7953 644716801 644976001 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 :                                   699.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             295.79 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   828 sec.
    Turnaround time :                            831 sec.

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

