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


Performing analysis on: 4FGL_J2331.0-2147_daily_bin1110
RA = 352.763, Dec = -21.7953
tmin = 527040001, tmax = 527299201
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='7645', job_status='RUN', time_executed='2021-09-29 22:57:13.276066', time_epoch_executed='1632981433.28' WHERE source_name='4FGL J2331.0-2147' and cadence='daily' and bin_id='1110'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/7645

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/7645/ft1_4FGL_J2331.0-2147_daily_bin1110.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/7645/ft2_4FGL_J2331.0-2147_daily_bin1110.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/7645/ft1_4FGL_J2331.0-2147_daily_bin1110.fits outfile=/scratch/kocevski/7645/ft1_filteredMKT_4FGL_J2331.0-2147_daily_bin1110.fits ra=352.763 dec=-21.7953 rad=12.0 tmin=527040001.0 tmax=527299201.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 5.95
user 5.71
sys 0.22

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/7645/ft2_4FGL_J2331.0-2147_daily_bin1110.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/7645/ft1_filteredMKT_4FGL_J2331.0-2147_daily_bin1110.fits evtable="EVENTS" outfile="/scratch/kocevski/7645/ft1_filtered_4FGL_J2331.0-2147_daily_bin1110.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/7645/ft1_filtered_4FGL_J2331.0-2147_daily_bin1110.fits" evtable="EVENTS" scfile=/scratch/kocevski/7645/ft2_4FGL_J2331.0-2147_daily_bin1110.fits sctable="SC_DATA" outfile=/scratch/kocevski/7645/ltcube_527040001_527299201_4FGL_J2331.0-2147_daily_bin1110.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/7645/ft2_4FGL_J2331.0-2147_daily_bin1110.fits
.....................!
real 15.37
user 14.99
sys 0.34

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/7645/ft1_filtered_4FGL_J2331.0-2147_daily_bin1110.fits evtable="EVENTS" scfile=/scratch/kocevski/7645/ft2_4FGL_J2331.0-2147_daily_bin1110.fits sctable="SC_DATA" expcube=/scratch/kocevski/7645/ltcube_527040001_527299201_4FGL_J2331.0-2147_daily_bin1110.fits outfile=/scratch/kocevski/7645/expmap_527040001_527299201_4FGL_J2331.0-2147_daily_bin1110.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/7645/ltcube_527040001_527299201_4FGL_J2331.0-2147_daily_bin1110.fits
.....................!
real 192.35
user 187.28
sys 4.74

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/7645/ft1_filtered_4FGL_J2331.0-2147_daily_bin1110.fits scfile=/scratch/kocevski/7645/ft2_4FGL_J2331.0-2147_daily_bin1110.fits outfile=/scratch/kocevski/7645/cmap_527040001_527299201_4FGL_J2331.0-2147_daily_bin1110.fits algorithm="CMAP" ebinalg="LOG" emin=30.0 emax=200000.0 ebinfile=NONE tbinalg="LIN" tbinfile=NONE nxpix=160 nypix=160 binsz=0.25 coordsys="CEL" xref=352.763 yref=-21.7953 axisrot=0.0 rafield="RA" decfield="DEC" proj="AIT" hpx_ordering_scheme="RING" hpx_order=3 hpx_ebin=yes hpx_region="" evtable="EVENTS" sctable="SC_DATA" efield="ENERGY" tfield="TIME" chatter=2 clobber=yes debug=no gui=no mode="ql"

WARNING: version mismatch between CFITSIO header (v3.43) and linked library (v3.41).

This is gtbin version HEAD
real 0.52
user 0.37
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/7645/ft1_filtered_4FGL_J2331.0-2147_daily_bin1110.fits scfile=/scratch/kocevski/7645/ft2_4FGL_J2331.0-2147_daily_bin1110.fits outfile=/scratch/kocevski/7645/cmap_HighResolution_527040001_527299201_4FGL_J2331.0-2147_daily_bin1110.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.38
sys 0.14

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/7645/ft1_filtered_4FGL_J2331.0-2147_daily_bin1110.fits evtable="EVENTS" scfile=/scratch/kocevski/7645/ft2_4FGL_J2331.0-2147_daily_bin1110.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/7645/Model_4FGL_J2331.0-2147_daily_bin1110.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/7645/ft1_filtered_4FGL_J2331.0-2147_daily_bin1110.fits.......................!
real 27.51
user 26.31
sys 1.13

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .42918E-02   1.0000         .10000E-03   10000.    
     2 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10102E-03   1.0000         .10000E-03   10000.    
     4 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10173E-03   1.0000         .10000E-03   10000.    
     7 'norm      '    2.1754       1.0000         .10000E-03   10000.    
     8 'Prefactor '    37.767       1.0000         .10000E-03   10000.    
     9 'Prefactor '    36.908       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10008E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    95.803       1.0000         .10000E-03   10000.    
    12 'norm      '    4.2323       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .25789E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    23.268       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    1.8346       1.0000         .10000E-03   10000.    
    18 'norm      '    .10052E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .80184E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .84575       1.0000         .10000E-03   10000.    
    21 'Normalizat'    1.0631       1.0000         .10000E-01   10.000    
    22 'Prefactor '    .71328       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=   2146.795     FROM MIGRAD    STATUS=CONVERGED    468 CALLS     2433 TOTAL
                     EDM=   .15E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY= 17.4%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10081E-03    870.19        .13265E-04** at limit **
   2  norm          .10000E-03    .99552        .25573E-06** at limit **
   3  Prefactor     .10000E-03    36.271        .11367E-05** at limit **
   4  norm          .10000E-03    1.6098        .10183E-06** at limit **
   5  Prefactor     .10000E-03    11.376        .10744E-07** at limit **
   6  Prefactor     .10000E-03    11.656        .80186E-06** at limit **
   7  norm          2.1755        1.2228        .13660E-07   -.10685E-02
   8  Prefactor     37.771        26.420       -.25500E-07   -.20084E-03
   9  Prefactor     36.916        23.263       -.38372E-06   -.22794E-03
  10  Prefactor     .10000E-03    17.700        .47954E-06** at limit **
  11  Prefactor     95.982        151.23       -.11211E-06   -.48309E-05
  12  norm          4.2456        8.1371       -.14271E-06   -.20359E-03
  13  Prefactor     .10001E-03    100.65       -.51001E-06** at limit **
  14  Prefactor     23.346        48.198       -.12322E-05   -.95247E-04
  15  Prefactor     .10000E-03    22.832       -.26000E-07** at limit **
  16  Prefactor     .10000E-03    96.724        .11208E-05** at limit **
  17  norm          1.8346        1.4373       -.15132E-06   -.10136E-02
  18  norm          .10001E-03    14.506        .22841E-05** at limit **
  19  Prefactor     .10069E-03    1821.9        .13577E-04** at limit **
  20  Prefactor     .80879        7365.1       -.28842E-03    .79222E-05
  21  Normalizat    1.0629        .40586        .10261E-04   -.30815E-03
  22  Prefactor     .71325        .34935       -.11578E-04   -.23409E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 0.000100811
  norm       = 0.0001
  Prefactor  = 0.000100002
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000100001
  norm       = 2.17549
  Prefactor  = 37.7706
  Prefactor  = 36.9159
  Prefactor  = 0.0001
  Prefactor  = 95.9825
  norm       = 4.24557
  Prefactor  = 0.000100014
  Prefactor  = 23.3461
  Prefactor  = 0.0001
  Prefactor  = 0.000100001
  norm       = 1.83459
  norm       = 0.000100006
  Prefactor  = 0.000100687
  Prefactor  = 0.808793
  Normalizat = 1.0629
  Prefactor  = 0.713253
 **********
 **   18 **HESSE 
 **********

 FCN=   2146.795     FROM HESSE     STATUS=OK           334 CALLS     2767 TOTAL
                     EDM=   .27E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10081E-03    885.16        .19406E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          .10000E-03    1.0001        .45221E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    36.357        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  norm          .10000E-03    1.6108        .57420E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    11.383        .15262E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    11.711        .15449E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          2.1755        1.2256        .34220E-04   -1.5413    
   8  Prefactor     37.771        26.431        .65217E-04   -1.4478    
   9  Prefactor     36.916        23.388        .65970E-04   -1.4492    
  10  Prefactor     .10000E-03    17.706        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     95.982        151.01        .20532E-03   -1.3745    
  12  norm          4.2456        8.1274        .17236E-03   -1.5296    
  13  Prefactor     .10001E-03    100.85        .21452E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     23.346        47.973        .83040E-04   -1.4741    
  15  Prefactor     .10000E-03    22.835        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    96.780        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          1.8346        1.4350        .46301E-04   -1.5437    
  18  norm          .10001E-03    14.882        .17350E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10069E-03    1863.5        .20901E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .80879        248.05        .20062       -1.5528    
  21  Normalizat    1.0629        .40350        .26031E-03   -.90952    
  22  Prefactor     .71325        .34819        .27985E-03   -1.0301    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.68046e-09
Minuit parameter uncertainties:
  1  0.0544121
  2  2.12049e-05
  3  0.000533816
  4  1.06525e-05
  5  2.04537e-05
  6  0.000159923
  7  1.22563
  8  26.4395
  9  23.3939
  10  8.20151e-05
  11  151.623
  12  8.12955
  13  0.00236011
  14  48.0525
  15  1.30711e-06
  16  0.000666859
  17  1.43499
  18  0.000604382
  19  0.0740055
  20  28.446
  21  0.404671
  22  0.349259
Done.

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

Extracting fit parameters...

4FGL J2331.0-2147
   Spectrum: LogParabola
418         norm:  4.246e+00  8.130e+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.133e-01  3.493e-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.063e+00  4.047e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/7645/likelihoodResults_527040001_527299201_4FGL_J2331.0-2147_daily_bin1110.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) = 2146.7873308
delta logL = 0.0078065363773

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 2146.78605298
delta logL = 0.0090843566154

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    3.9075       1.0000         .10000E-03   10000.    
     2 'alpha     '    2.6086       1.0000          .0000       5.0000    
     3 'Normalizat'    1.0568       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .71634       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=   2146.786     FROM MIGRAD    STATUS=CONVERGED     56 CALLS      212 TOTAL
                     EDM=   .88E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          3.9008        349.94        .51025E-02    .12803E-03
   2  alpha         2.6095        3.2689        .41201        .47874E-05
   3  Normalizat    1.0568        .10475        .59015E-01   -.54678E-05
   4  Prefactor     .71638        .95013E-01    .63131E-01   -.15154E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 3.90082
  alpha      = 2.60954
  Normalizat = 1.05676
  Prefactor  = 0.716379
 **********
 **   18 **HESSE 
 **********

 FCN=   2146.786     FROM HESSE     STATUS=OK            33 CALLS      245 TOTAL
                     EDM=   .11E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          3.9008        8.3377        .15911E-03   -1.5313    
   2  alpha         2.6095        1.2962        .16500E-01    .43829E-01
   3  Normalizat    1.0568        .37767        .26098E-03   -.91152    
   4  Prefactor     .71638        .33820        .27927E-03   -1.0289    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.06817e-11
Minuit parameter uncertainties:
  1  8.34017
  2  1.36277
  3  0.378632
  4  0.339178
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/7645': 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) = 2146.78605254
delta logL = 0.00908480220733

Extracting fit parameters...

4FGL J2331.0-2147
   Spectrum: LogParabola
418         norm:  3.901e+00  8.340e+00  1.000e-04  1.000e+04 ( 1.000e-12)
419        alpha:  2.610e+00  1.363e+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.164e-01  3.392e-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.057e+00  3.786e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 0.36
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/7645/cmap_HighResolution_527040001_527299201_4FGL_J2331.0-2147_daily_bin1110.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='8.82e-05', job_status='DONE', photon_flux_upper_limit='2.65e-07', time_completed='2021-09-29 23:04:31.115638', job_id='7645', GAL2='0.72', fit_tolerance='1e-08', EG2='1.06', EG='1.06', time_epoch_completed='1632981871.12', return_code2='0', ts='0.36', comment='SUCCESS', return_code='0', GAL='0.71', dlogl='9.08e-03', ts2='0.37', photon_index_error='0.00', photon_index='2.43' WHERE bin_id='1110' AND source_name='4FGL J2331.0-2147' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep 29 23:04:31 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0261>
Subject: Job 7645: <4FGL_J2331.0-2147_daily_bin1110> in cluster <slac> Done

Job <4FGL_J2331.0-2147_daily_bin1110> was submitted from host <rhel6-64d> by user <kocevski> in cluster <slac> at Wed Sep 29 22:55:52 2021
Job was executed on host(s) <bullet0261>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Sep 29 22:55:53 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Wed Sep 29 22:55:53 2021
Terminated at Wed Sep 29 23:04:31 2021
Results reported at Wed Sep 29 23:04:31 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2331.0-2147_daily_bin1110 352.763 -21.7953 527040001 527299201 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 :                                   428.04 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             275.56 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   518 sec.
    Turnaround time :                            519 sec.

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

