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


Performing analysis on: 4FGL_J2331.0-2147_daily_bin1358
RA = 352.763, Dec = -21.7953
tmin = 591321601, tmax = 591580801
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='8047', job_status='RUN', time_executed='2021-09-29 22:57:30.001852', time_epoch_executed='1632981450.0' WHERE source_name='4FGL J2331.0-2147' and cadence='daily' and bin_id='1358'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/8047

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/8047/ft1_4FGL_J2331.0-2147_daily_bin1358.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/8047/ft2_4FGL_J2331.0-2147_daily_bin1358.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/8047/ft1_4FGL_J2331.0-2147_daily_bin1358.fits outfile=/scratch/kocevski/8047/ft1_filteredMKT_4FGL_J2331.0-2147_daily_bin1358.fits ra=352.763 dec=-21.7953 rad=12.0 tmin=591321601.0 tmax=591580801.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.89
user 2.66
sys 0.22

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/8047/ft2_4FGL_J2331.0-2147_daily_bin1358.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/8047/ft1_filteredMKT_4FGL_J2331.0-2147_daily_bin1358.fits evtable="EVENTS" outfile="/scratch/kocevski/8047/ft1_filtered_4FGL_J2331.0-2147_daily_bin1358.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/8047/ft1_filtered_4FGL_J2331.0-2147_daily_bin1358.fits" evtable="EVENTS" scfile=/scratch/kocevski/8047/ft2_4FGL_J2331.0-2147_daily_bin1358.fits sctable="SC_DATA" outfile=/scratch/kocevski/8047/ltcube_591321601_591580801_4FGL_J2331.0-2147_daily_bin1358.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/8047/ft2_4FGL_J2331.0-2147_daily_bin1358.fits
.....................!
real 12.33
user 11.83
sys 0.41

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/8047/ft1_filtered_4FGL_J2331.0-2147_daily_bin1358.fits evtable="EVENTS" scfile=/scratch/kocevski/8047/ft2_4FGL_J2331.0-2147_daily_bin1358.fits sctable="SC_DATA" expcube=/scratch/kocevski/8047/ltcube_591321601_591580801_4FGL_J2331.0-2147_daily_bin1358.fits outfile=/scratch/kocevski/8047/expmap_591321601_591580801_4FGL_J2331.0-2147_daily_bin1358.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/8047/ltcube_591321601_591580801_4FGL_J2331.0-2147_daily_bin1358.fits
.....................!
real 191.94
user 185.94
sys 5.59

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/8047/ft1_filtered_4FGL_J2331.0-2147_daily_bin1358.fits scfile=/scratch/kocevski/8047/ft2_4FGL_J2331.0-2147_daily_bin1358.fits outfile=/scratch/kocevski/8047/cmap_591321601_591580801_4FGL_J2331.0-2147_daily_bin1358.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.36
sys 0.15

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

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/8047/ft1_filtered_4FGL_J2331.0-2147_daily_bin1358.fits evtable="EVENTS" scfile=/scratch/kocevski/8047/ft2_4FGL_J2331.0-2147_daily_bin1358.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/8047/Model_4FGL_J2331.0-2147_daily_bin1358.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/8047/ft1_filtered_4FGL_J2331.0-2147_daily_bin1358.fits.....................!
real 33.24
user 31.91
sys 1.22

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10098E-03   1.0000         .10000E-03   10000.    
     2 'norm      '    .10058E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    116.71       1.0000         .10000E-03   10000.    
     4 'norm      '    .10012E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10080E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    15.422       1.0000         .10000E-03   10000.    
     7 'norm      '    .94782       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10143E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .11293E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    4.7766       1.0000         .10000E-03   10000.    
    12 'norm      '    .12052E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .17080E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    36.924       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10042E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10140E-01   1.0000         .10000E-03   10000.    
    17 'norm      '    .10010E-03   1.0000         .10000E-03   10000.    
    18 'norm      '    74.768       1.0000         .10000E-03   10000.    
    19 'Prefactor '    27.780       1.0000         .10000E-03   10000.    
    20 'Prefactor '    65.219       1.0000         .10000E-03   10000.    
    21 'Normalizat'    1.5045       1.0000         .10000E-01   10.000    
    22 'Prefactor '    .38181       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=   3368.412     FROM MIGRAD    STATUS=CONVERGED    470 CALLS     2698 TOTAL
                     EDM=   .27E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.3%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    45.270       -.69613E-07** at limit **
   2  norm          .10000E-03    3.0459        .22677E-05** at limit **
   3  Prefactor     116.74        76.737       -.16730E-06   -.14777E-03
   4  norm          .10000E-03    2.3616        .66196E-07** at limit **
   5  Prefactor     .10000E-03    24.317       -.26797E-07** at limit **
   6  Prefactor     15.412        15.899        .81876E-06   -.11517E-03
   7  norm          .94823        .92542        .14448E-06    .78026E-04
   8  Prefactor     .10000E-03    23.359        .20649E-06** at limit **
   9  Prefactor     .10000E-03    27.318        .34900E-06** at limit **
  10  Prefactor     .10000E-03    53.302        .11047E-05** at limit **
  11  Prefactor     4.7730        235.15        .67373E-05   -.43761E-05
  12  norm          .10000E-03    4.2336        .82795E-06** at limit **
  13  Prefactor     .10000E-03    84.784        .22804E-05** at limit **
  14  Prefactor     36.964        39.171        .15142E-05   -.51030E-05
  15  Prefactor     .10000E-03    24.634       -.40902E-07** at limit **
  16  Prefactor     .10000E-03    1502.0       -.92100E-04** at limit **
  17  norm          .10000E-03    .60503        .15293E-06** at limit **
  18  norm          74.763        16.080        .20360E-06   -.13693E-03
  19  Prefactor     27.791        34.464       -.19237E-06    .46088E-06
  20  Prefactor     65.240        55.614        .61042E-06    .15293E-05
  21  Normalizat    1.5049        .28842       -.56584E-05   -.82424E-04
  22  Prefactor     .38130        .24412        .41927E-06   -.15342E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 116.744
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 15.4123
  norm       = 0.948227
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 4.77304
  norm       = 0.000100002
  Prefactor  = 0.0001
  Prefactor  = 36.9636
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 74.7629
  Prefactor  = 27.7911
  Prefactor  = 65.2396
  Normalizat = 1.50491
  Prefactor  = 0.381302
 **********
 **   18 **HESSE 
 **********

 FCN=   3368.412     FROM HESSE     STATUS=OK           338 CALLS     3036 TOTAL
                     EDM=   .66E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    45.339        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          .10000E-03    3.1190        .19702E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     116.74        76.187        .18622E-03   -1.3543    
   4  norm          .10000E-03    2.3680        .86967E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    24.628        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     15.412        16.039        .10199E-03   -1.4923    
   7  norm          .94823        .91763        .43659E-04   -1.5513    
   8  Prefactor     .10000E-03    23.562        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    28.188        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    53.427        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     4.7730        241.80        .18409E-03   -1.5271    
  12  norm          .10000E-03    8.5833        .23080E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    84.794        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     36.964        39.195        .65955E-04   -1.4491    
  15  Prefactor     .10000E-03    24.665        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    1479.4        .36295E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          .10000E-03    .61151        .43853E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          74.763        15.999        .46435E-04   -1.3976    
  19  Prefactor     27.791        34.484        .76010E-04   -1.4653    
  20  Prefactor     65.240        55.799        .24847E-03   -1.4091    
  21  Normalizat    1.5049        .32892        .22526E-03   -.77641    
  22  Prefactor     .38130        .27761        .38424E-03   -1.1777    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 6.60452e-10
Minuit parameter uncertainties:
  1  5.95167e-06
  2  1.85406e-05
  3  76.2513
  4  9.93462e-07
  5  3.7079e-05
  6  16.0438
  7  0.91764
  8  7.05151e-05
  9  0.000127631
  10  0.000161946
  11  68.2371
  12  0.000258223
  13  0.000234145
  14  39.2226
  15  7.20787e-05
  16  0.00122107
  17  1.34072e-06
  18  16.0002
  19  34.5091
  20  55.8442
  21  0.329385
  22  0.27859
Done.

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

Extracting fit parameters...

4FGL J2331.0-2147
   Spectrum: LogParabola
418         norm:  1.000e-04  2.582e-04  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:  3.813e-01  2.786e-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.505e+00  3.294e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/8047/likelihoodResults_591321601_591580801_4FGL_J2331.0-2147_daily_bin1358.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): 102
logL (Free Index) = 3368.41224303
delta logL = -0.000554206753804

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 3368.41168849
delta logL = 3.29650447384e-07

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10020E-03   1.0000         .10000E-03   10000.    
     2 'alpha     '    2.3926       1.0000          .0000       5.0000    
     3 'Normalizat'    1.5049       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .38132       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.
 MIGRAD TERMINATED WITHOUT CONVERGENCE.

 FCN=   3368.412     FROM MIGRAD    STATUS=FAILED        95 CALLS      263 TOTAL
                     EDM=   .13E-05    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10472E-03    706.54        .24136E-02** at limit **
   2  alpha         2.1907        3.5904        .16480        .65671E-05
   3  Normalizat    1.5049        .54605E-01    .22526E-03   -.48824E-04
   4  Prefactor     .38131        .49917E-01    .38423E-03   -.25534E-04
                               ERR DEF=  .500    
 START SIMPLEX MINIMIZATION.    CONVERGENCE WHEN EDM .LT.   .20E-04
 SIMPLEX MINIMIZATION HAS CONVERGED.

 FCN=   3368.412     FROM SIMPLEX   STATUS=UNCHANGED    130 CALLS      393 TOTAL
                     EDM=   .13E-04    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10472E-03    706.54        .62260E-03** at limit **
   2  alpha         2.1907        3.5904        .55377E-04    .65671E-05
   3  Normalizat    1.5049        .54605E-01    .17482E-05   -.48824E-04
   4  Prefactor     .38131        .49917E-01    .25486E-05   -.25534E-04
                               ERR DEF=  .500    

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   3368.412     FROM MIGRAD    STATUS=CONVERGED     38 CALLS      431 TOTAL
                     EDM=   .28E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    13.291        .48273E-03** at limit **
   2  alpha         2.0891        3.3191        .65920E-01    .31733E-07
   3  Normalizat    1.5049        .29573        .45052E-04    .10760E-03
   4  Prefactor     .38131        .26962        .15369E-04    .66721E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  alpha      = 2.08913
  Normalizat = 1.5049
  Prefactor  = 0.381306
 **********
 **   18 **HESSE 
 **********

 FCN=   3368.412     FROM HESSE     STATUS=OK            23 CALLS      454 TOTAL
                     EDM=   .31E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    11.729        .96545E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  alpha         2.0891        3.1651        .26368E-02   -.16510    
   3  Normalizat    1.5049        .29559        .90104E-05   -.77641    
   4  Prefactor     .38131        .26947        .30739E-05   -1.1777    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.06921e-11
Minuit parameter uncertainties:
  1  4.18625e-05
  2  202.92
  3  0.295932
  4  0.270369
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/8047': 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) = 3368.41168728
delta logL = 1.53844894157e-06

Extracting fit parameters...

4FGL J2331.0-2147
   Spectrum: LogParabola
418         norm:  1.000e-04  4.186e-05  1.000e-04  1.000e+04 ( 1.000e-12)
419        alpha:  2.089e+00  2.029e+02  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:  3.813e-01  2.704e-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.505e+00  2.959e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
Ra Dec: 352.763 -21.795

Creating a high resolution counts map...
INFO: Auto-setting vmin to  0.000e+00 [aplpy.core]
INFO: Auto-setting vmax to  0.000e+00 [aplpy.core]
Saving /scratch/kocevski/8047/cmap_HighResolution_591321601_591580801_4FGL_J2331.0-2147_daily_bin1358.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='4.14e-05', job_status='DONE', photon_flux_upper_limit='1.25e-07', time_completed='2021-09-29 23:05:32.443461', job_id='8047', GAL2='0.38', fit_tolerance='1e-08', EG2='1.50', EG='1.50', time_epoch_completed='1632981932.44', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.38', dlogl='1.54e-06', ts2='-0.00', photon_index_error='0.00', photon_index='2.43' WHERE bin_id='1358' AND source_name='4FGL J2331.0-2147' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep 29 23:05:32 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0249>
Subject: Job 8047: <4FGL_J2331.0-2147_daily_bin1358> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2331.0-2147_daily_bin1358 352.763 -21.7953 591321601 591580801 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 :                                   480.38 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             294.63 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   543 sec.
    Turnaround time :                            547 sec.

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

