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


Performing analysis on: 4FGL_J2331.0-2147_daily_bin1222
RA = 352.763, Dec = -21.7953
tmin = 556070401, tmax = 556329601
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='7824', job_status='RUN', time_executed='2021-09-29 22:57:41.536744', time_epoch_executed='1632981461.54' WHERE source_name='4FGL J2331.0-2147' and cadence='daily' and bin_id='1222'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/7824

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/7824/ft1_4FGL_J2331.0-2147_daily_bin1222.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/7824/ft2_4FGL_J2331.0-2147_daily_bin1222.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/7824/ft1_4FGL_J2331.0-2147_daily_bin1222.fits outfile=/scratch/kocevski/7824/ft1_filteredMKT_4FGL_J2331.0-2147_daily_bin1222.fits ra=352.763 dec=-21.7953 rad=12.0 tmin=556070401.0 tmax=556329601.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.78
user 3.55
sys 0.20

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/7824/ft2_4FGL_J2331.0-2147_daily_bin1222.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/7824/ft1_filteredMKT_4FGL_J2331.0-2147_daily_bin1222.fits evtable="EVENTS" outfile="/scratch/kocevski/7824/ft1_filtered_4FGL_J2331.0-2147_daily_bin1222.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/7824/ft1_filtered_4FGL_J2331.0-2147_daily_bin1222.fits" evtable="EVENTS" scfile=/scratch/kocevski/7824/ft2_4FGL_J2331.0-2147_daily_bin1222.fits sctable="SC_DATA" outfile=/scratch/kocevski/7824/ltcube_556070401_556329601_4FGL_J2331.0-2147_daily_bin1222.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/7824/ft2_4FGL_J2331.0-2147_daily_bin1222.fits
.....................!
real 11.57
user 11.24
sys 0.30

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/7824/ft1_filtered_4FGL_J2331.0-2147_daily_bin1222.fits evtable="EVENTS" scfile=/scratch/kocevski/7824/ft2_4FGL_J2331.0-2147_daily_bin1222.fits sctable="SC_DATA" expcube=/scratch/kocevski/7824/ltcube_556070401_556329601_4FGL_J2331.0-2147_daily_bin1222.fits outfile=/scratch/kocevski/7824/expmap_556070401_556329601_4FGL_J2331.0-2147_daily_bin1222.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/7824/ltcube_556070401_556329601_4FGL_J2331.0-2147_daily_bin1222.fits
.....................!
real 189.80
user 184.65
sys 4.76

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/7824/ft1_filtered_4FGL_J2331.0-2147_daily_bin1222.fits scfile=/scratch/kocevski/7824/ft2_4FGL_J2331.0-2147_daily_bin1222.fits outfile=/scratch/kocevski/7824/cmap_556070401_556329601_4FGL_J2331.0-2147_daily_bin1222.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.36
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/7824/ft1_filtered_4FGL_J2331.0-2147_daily_bin1222.fits scfile=/scratch/kocevski/7824/ft2_4FGL_J2331.0-2147_daily_bin1222.fits outfile=/scratch/kocevski/7824/cmap_HighResolution_556070401_556329601_4FGL_J2331.0-2147_daily_bin1222.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.16

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/7824/ft1_filtered_4FGL_J2331.0-2147_daily_bin1222.fits evtable="EVENTS" scfile=/scratch/kocevski/7824/ft2_4FGL_J2331.0-2147_daily_bin1222.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/7824/Model_4FGL_J2331.0-2147_daily_bin1222.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/7824/ft1_filtered_4FGL_J2331.0-2147_daily_bin1222.fits.....................!
real 71.19
user 69.75
sys 1.25

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    9.6830       1.0000         .10000E-03   10000.    
     2 'norm      '    3.6856       1.0000         .10000E-03   10000.    
     3 'Prefactor '    8.5082       1.0000         .10000E-03   10000.    
     4 'norm      '    .10006E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    6.6606       1.0000         .10000E-03   10000.    
     6 'Prefactor '    16.175       1.0000         .10000E-03   10000.    
     7 'norm      '    2.7791       1.0000         .10000E-03   10000.    
     8 'Prefactor '    8.2173       1.0000         .10000E-03   10000.    
     9 'Prefactor '    12.220       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    17.303       1.0000         .10000E-03   10000.    
    12 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    4.6923       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .19141E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .81645       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .14312E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    .15231       1.0000         .10000E-03   10000.    
    18 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10015E-03   1.0000         .10000E-03   10000.    
    21 'Normalizat'    .92580       1.0000         .10000E-01   10.000    
    22 'Prefactor '    1.0289       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=   10178.22     FROM MIGRAD    STATUS=CONVERGED    484 CALLS     2436 TOTAL
                     EDM=   .90E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.3%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          9.6824        12.541        .75706E-06   -.17018E-03
   2  norm          3.6857        2.2148       -.33728E-07    .28480E-04
   3  Prefactor     8.5079        67.554        .16550E-06   -.28519E-04
   4  norm          .10000E-03    1.5228       -.99472E-07** at limit **
   5  Prefactor     6.6630        9.5084       -.12299E-05    .15387E-03
   6  Prefactor     16.174        11.724        .16402E-05   -.47921E-03
   7  norm          2.7790        .78112       -.62446E-07    .49821E-03
   8  Prefactor     8.2180        8.2480        .17981E-06   -.19696E-03
   9  Prefactor     12.222        9.8134       -.17683E-05    .55562E-03
  10  Prefactor     .10000E-03    4.7963        .24543E-07** at limit **
  11  Prefactor     17.306        39.199        .14955E-05   -.79657E-04
  12  norm          .10000E-03    .77625        .36181E-07** at limit **
  13  Prefactor     4.7003        46.051       -.17243E-04   -.39182E-04
  14  Prefactor     .10003E-03    6.4203        .31103E-05** at limit **
  15  Prefactor     .81738        11.124       -.14527E-05    .64097E-04
  16  Prefactor     .10000E-03    265.57       -.30483E-05** at limit **
  17  norm          .15227        .25676       -.74011E-07   -.33711E-02
  18  norm          .10000E-03    .84479        .26418E-07** at limit **
  19  Prefactor     .10000E-03    6.8796       -.87387E-08** at limit **
  20  Prefactor     .10000E-03    9.2585       -.30317E-07** at limit **
  21  Normalizat    .92568        .13639        .37936E-06   -.23537E-03
  22  Prefactor     1.0290        .13352        .18358E-06   -.17362E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 9.68244
  norm       = 3.68572
  Prefactor  = 8.5079
  norm       = 0.0001
  Prefactor  = 6.66298
  Prefactor  = 16.1743
  norm       = 2.77896
  Prefactor  = 8.21801
  Prefactor  = 12.2222
  Prefactor  = 0.0001
  Prefactor  = 17.3062
  norm       = 0.0001
  Prefactor  = 4.70031
  Prefactor  = 0.000100026
  Prefactor  = 0.817383
  Prefactor  = 0.000100003
  norm       = 0.15227
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Normalizat = 0.925683
  Prefactor  = 1.02901
 **********
 **   18 **HESSE 
 **********

 FCN=   10178.22     FROM HESSE     STATUS=OK           354 CALLS     2790 TOTAL
                     EDM=   .26E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          9.6824        12.514        .12878E-03   -1.5086    
   2  norm          3.6857        2.2321        .98210E-04   -1.5324    
   3  Prefactor     8.5079        68.517        .13743E-03   -1.5125    
   4  norm          .10000E-03    3.1529        .23448E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     6.6630        9.3565        .15548E-03   -1.5192    
   6  Prefactor     16.174        11.652        .99585E-04   -1.4903    
   7  norm          2.7790        .79924        .36765E-04   -1.5375    
   8  Prefactor     8.2180        8.2399        .13986E-03   -1.5135    
   9  Prefactor     12.222        9.5983        .11459E-03   -1.5009    
  10  Prefactor     .10000E-03    4.7980        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     17.306        39.336        .96284E-04   -1.4876    
  12  norm          .10000E-03    .79040        .86627E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     4.7003        46.313        .18577E-03   -1.5274    
  14  Prefactor     .10003E-03    24.032        .45780E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .81738        82.333        .62981E-02   -1.5527    
  16  Prefactor     .10000E-03    268.73        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          .15227        .22345        .64262E-03   -1.5630    
  18  norm          .10000E-03    .85283        .90364E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    6.8819        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    9.2652        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Normalizat    .92568        .16102        .24233E-03   -.95563    
  22  Prefactor     1.0290        .15800        .23844E-03   -.91769    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.63508e-09
Minuit parameter uncertainties:
  1  12.5179
  2  2.23213
  3  48.3637
  4  1.86352e-05
  5  9.3585
  6  11.6541
  7  0.79924
  8  8.24103
  9  9.59947
  10  6.08769e-06
  11  39.3946
  12  3.09362e-06
  13  29.5379
  14  0.00157029
  15  16.4293
  16  0.00172682
  17  0.22345
  18  2.47483e-06
  19  1.14026e-06
  20  3.83992e-07
  21  0.161101
  22  0.158068
Done.

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

Extracting fit parameters...

4FGL J2331.0-2147
   Spectrum: LogParabola
418         norm:  1.000e-04  3.094e-06  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:  1.029e+00  1.581e-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.257e-01  1.611e-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: 3.51e-08 ph cm-2 s-1
Energy Flux Upper Limit: 1.17e-05 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/7824/likelihoodResults_556070401_556329601_4FGL_J2331.0-2147_daily_bin1222.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) = 10178.2220232
delta logL = -0.00603369760938

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 10178.2159895
delta logL = 2.93948687613e-09

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
     2 'alpha     '    2.4365       1.0000          .0000       5.0000    
     3 'Normalizat'    .92568       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0290       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=   10178.22     FROM MIGRAD    STATUS=FAILED        90 CALLS      226 TOTAL
                     EDM=   .25E-06    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    123.74        .86653E-03** at limit **
   2  alpha         2.7693        3.8771        .50000        .68898E-06
   3  Normalizat    .92568        .51083E-01    .24233E-03   -.68114E-03
   4  Prefactor     1.0290        .52957E-01    .23844E-03   -.74708E-03
                               ERR DEF=  .500    
 START SIMPLEX MINIMIZATION.    CONVERGENCE WHEN EDM .LT.   .20E-04
 SIMPLEX MINIMIZATION HAS CONVERGED.

 FCN=   10178.22     FROM SIMPLEX   STATUS=UNCHANGED    217 CALLS      443 TOTAL
                     EDM=   .89E-05    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    123.74        .13622E-03** at limit **
   2  alpha         2.7693        3.8771        .71702E-07    .68898E-06
   3  Normalizat    .92568        .51083E-01    .31380E-08   -.68114E-03
   4  Prefactor     1.0290        .52957E-01    .29794E-09   -.74708E-03
                               ERR DEF=  .500    

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   10178.22     FROM MIGRAD    STATUS=CONVERGED     34 CALLS      477 TOTAL
                     EDM=   .25E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    1.0084        .17331E-03** at limit **
   2  alpha         2.7695        3.8721        .50000        .70565E-06
   3  Normalizat    .92568        .14965        .48466E-04   -.67922E-03
   4  Prefactor     1.0290        .15524        .47689E-04   -.74483E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  alpha      = 2.7695
  Normalizat = 0.925682
  Prefactor  = 1.02901
 **********
 **   18 **HESSE 
 **********

 FCN=   10178.22     FROM HESSE     STATUS=OK            27 CALLS      504 TOTAL
                     EDM=   .20E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    .81752        .34661E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  alpha         2.7695        3.8846        .50000        .10801    
   3  Normalizat    .92568        .14967        .96932E-05   -.95563    
   4  Prefactor     1.0290        .15526        .95378E-05   -.91769    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.0446e-09
Minuit parameter uncertainties:
  1  2.96894e-06
  2  144.679
  3  0.149741
  4  0.155331
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/7824': 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) = 10178.2159879
delta logL = 1.60867784871e-06

Extracting fit parameters...

4FGL J2331.0-2147
   Spectrum: LogParabola
418         norm:  1.000e-04  2.969e-06  1.000e-04  1.000e+04 ( 1.000e-12)
419        alpha:  2.770e+00  1.447e+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:  1.029e+00  1.553e-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.257e-01  1.497e-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 -1.000e-01 [aplpy.core]
INFO: Auto-setting vmax to  1.110e+00 [aplpy.core]
Saving /scratch/kocevski/7824/cmap_HighResolution_556070401_556329601_4FGL_J2331.0-2147_daily_bin1222.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.17e-05', job_status='DONE', photon_flux_upper_limit='3.51e-08', time_completed='2021-09-29 23:11:19.737091', job_id='7824', GAL2='1.03', fit_tolerance='1e-08', EG2='0.93', EG='0.93', time_epoch_completed='1632982279.74', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.03', dlogl='1.61e-06', ts2='-0.00', photon_index_error='0.00', photon_index='2.43' WHERE bin_id='1222' AND source_name='4FGL J2331.0-2147' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep 29 23:11:19 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0233>
Subject: Job 7824: <4FGL_J2331.0-2147_daily_bin1222> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2331.0-2147_daily_bin1222 352.763 -21.7953 556070401 556329601 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 :                                   811.22 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             345.87 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   911 sec.
    Turnaround time :                            913 sec.

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

