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


Performing analysis on: 4FGL_J2331.0-2147_daily_bin1318
RA = 352.763, Dec = -21.7953
tmin = 580953601, tmax = 581212801
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='7980', job_status='RUN', time_executed='2021-09-29 22:57:06.079322', time_epoch_executed='1632981426.08' WHERE source_name='4FGL J2331.0-2147' and cadence='daily' and bin_id='1318'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/7980

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/7980/ft1_4FGL_J2331.0-2147_daily_bin1318.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/7980/ft2_4FGL_J2331.0-2147_daily_bin1318.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/7980/ft1_4FGL_J2331.0-2147_daily_bin1318.fits outfile=/scratch/kocevski/7980/ft1_filteredMKT_4FGL_J2331.0-2147_daily_bin1318.fits ra=352.763 dec=-21.7953 rad=12.0 tmin=580953601.0 tmax=581212801.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.97
user 2.75
sys 0.19

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/7980/ft2_4FGL_J2331.0-2147_daily_bin1318.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/7980/ft1_filteredMKT_4FGL_J2331.0-2147_daily_bin1318.fits evtable="EVENTS" outfile="/scratch/kocevski/7980/ft1_filtered_4FGL_J2331.0-2147_daily_bin1318.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.34
sys 0.14

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/7980/ft1_filtered_4FGL_J2331.0-2147_daily_bin1318.fits" evtable="EVENTS" scfile=/scratch/kocevski/7980/ft2_4FGL_J2331.0-2147_daily_bin1318.fits sctable="SC_DATA" outfile=/scratch/kocevski/7980/ltcube_580953601_581212801_4FGL_J2331.0-2147_daily_bin1318.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/7980/ft2_4FGL_J2331.0-2147_daily_bin1318.fits
.....................!
real 12.23
user 11.90
sys 0.31

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/7980/ft1_filtered_4FGL_J2331.0-2147_daily_bin1318.fits evtable="EVENTS" scfile=/scratch/kocevski/7980/ft2_4FGL_J2331.0-2147_daily_bin1318.fits sctable="SC_DATA" expcube=/scratch/kocevski/7980/ltcube_580953601_581212801_4FGL_J2331.0-2147_daily_bin1318.fits outfile=/scratch/kocevski/7980/expmap_580953601_581212801_4FGL_J2331.0-2147_daily_bin1318.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/7980/ltcube_580953601_581212801_4FGL_J2331.0-2147_daily_bin1318.fits
.....................!
real 190.69
user 185.52
sys 4.81

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/7980/ft1_filtered_4FGL_J2331.0-2147_daily_bin1318.fits scfile=/scratch/kocevski/7980/ft2_4FGL_J2331.0-2147_daily_bin1318.fits outfile=/scratch/kocevski/7980/cmap_580953601_581212801_4FGL_J2331.0-2147_daily_bin1318.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.37
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/7980/ft1_filtered_4FGL_J2331.0-2147_daily_bin1318.fits scfile=/scratch/kocevski/7980/ft2_4FGL_J2331.0-2147_daily_bin1318.fits outfile=/scratch/kocevski/7980/cmap_HighResolution_580953601_581212801_4FGL_J2331.0-2147_daily_bin1318.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.39
sys 0.15

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/7980/ft1_filtered_4FGL_J2331.0-2147_daily_bin1318.fits evtable="EVENTS" scfile=/scratch/kocevski/7980/ft2_4FGL_J2331.0-2147_daily_bin1318.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/7980/Model_4FGL_J2331.0-2147_daily_bin1318.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/7980/ft1_filtered_4FGL_J2331.0-2147_daily_bin1318.fits.....................!
real 63.23
user 61.88
sys 1.24

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/7980/ft1_filtered_4FGL_J2331.0-2147_daily_bin1318.fits', '/scratch/kocevski/7980/ft2_4FGL_J2331.0-2147_daily_bin1318.fits', expMap='/scratch/kocevski/7980/expmap_580953601_581212801_4FGL_J2331.0-2147_daily_bin1318.fits', expCube='/scratch/kocevski/7980/ltcube_580953601_581212801_4FGL_J2331.0-2147_daily_bin1318.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/7980/Model_4FGL_J2331.0-2147_daily_bin1318.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/7980/ft1_filtered_4FGL_J2331.0-2147_daily_bin1318.fits
Spacecraft file(s): /scratch/kocevski/7980/ft2_4FGL_J2331.0-2147_daily_bin1318.fits
Exposure map: /scratch/kocevski/7980/expmap_580953601_581212801_4FGL_J2331.0-2147_daily_bin1318.fits
Exposure cube: /scratch/kocevski/7980/ltcube_580953601_581212801_4FGL_J2331.0-2147_daily_bin1318.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/7980/Model_4FGL_J2331.0-2147_daily_bin1318.xml
Optimizer: MINUIT
Statistic: UNBINNED

Performing an iterative likelihood fit...

Fit tolerance = 1

Performing likelihood fit...
Done.

MINUIT Return Code (Fixed Index): 102
logL (Fixed Index) = 8670.22414975

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10123E-03   1.0000         .10000E-03   10000.    
     2 'norm      '    2.2269       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
     4 'norm      '    6.0770       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .40400       1.0000         .10000E-03   10000.    
     6 'Prefactor '    4.5304       1.0000         .10000E-03   10000.    
     7 'norm      '    1.0171       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    14.662       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10517E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    .10475E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    2.8778       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10279E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    1.6573       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    .11147       1.0000         .10000E-03   10000.    
    18 'norm      '    8.2806       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10074E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    27.168       1.0000         .10000E-03   10000.    
    21 'Normalizat'    1.3494       1.0000         .10000E-01   10.000    
    22 'Prefactor '    .77051       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=   8670.128     FROM MIGRAD    STATUS=CONVERGED    493 CALLS     2074 TOTAL
                     EDM=   .37E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.7%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    11.683        .79274E-06** at limit **
   2  norm          2.2270        1.5132       -.56926E-08    .25894E-04
   3  Prefactor     .10000E-03    13.691        .11609E-05** at limit **
   4  norm          6.0748        3.8979        .26723E-07    .17905E-03
   5  Prefactor     .47288        8.4441       -.77103E-06    .54112E-04
   6  Prefactor     4.5052        4.0365        .55705E-06   -.10970E-02
   7  norm          1.0169        .66477        .17605E-07    .69696E-03
   8  Prefactor     .10000E-03    6.6381        .90349E-08** at limit **
   9  Prefactor     14.663        9.1064       -.14118E-06    .12038E-03
  10  Prefactor     .10000E-03    17.520        .78775E-06** at limit **
  11  Prefactor     .10000E-03    12.607       -.19317E-05** at limit **
  12  norm          .10000E-03    .92859        .26149E-06** at limit **
  13  Prefactor     2.8637        54.963       -.15898E-04   -.21284E-04
  14  Prefactor     .10000E-03    5.4710        .18198E-06** at limit **
  15  Prefactor     1.6315        70.694       -.95590E-05   -.30993E-04
  16  Prefactor     .10000E-03    18.216       -.57390E-06** at limit **
  17  norm          .11140        .40720        .84911E-07   -.23363E-03
  18  norm          8.2816        4.6746        .37377E-07   -.17372E-04
  19  Prefactor     .10000E-03    27.670       -.39460E-06** at limit **
  20  Prefactor     27.181        30.406        .69878E-05    .43027E-04
  21  Normalizat    1.3494        .14952        .74656E-06    .18360E-04
  22  Prefactor     .77056        .14599       -.36536E-06    .10288E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  norm       = 2.22696
  Prefactor  = 0.0001
  norm       = 6.07482
  Prefactor  = 0.472878
  Prefactor  = 4.50519
  norm       = 1.01688
  Prefactor  = 0.0001
  Prefactor  = 14.6627
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 2.86374
  Prefactor  = 0.0001
  Prefactor  = 1.63151
  Prefactor  = 0.0001
  norm       = 0.111399
  norm       = 8.28164
  Prefactor  = 0.0001
  Prefactor  = 27.1814
  Normalizat = 1.34939
  Prefactor  = 0.77056
 **********
 **   18 **HESSE 
 **********

 FCN=   8670.128     FROM HESSE     STATUS=OK           350 CALLS     2424 TOTAL
                     EDM=   .73E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    11.699        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          2.2270        1.5117        .91925E-04   -1.5409    
   3  Prefactor     .10000E-03    13.698        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  norm          6.0748        3.9655        .13214E-03   -1.5215    
   5  Prefactor     .47288        115.82        .43023E-02   -1.5570    
   6  Prefactor     4.5052        12.877        .94572E-03   -1.5283    
   7  norm          1.0169        .75024        .48434E-04   -1.5506    
   8  Prefactor     .10000E-03    6.7127        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     14.663        9.2030        .10460E-03   -1.4942    
  10  Prefactor     .10000E-03    17.857        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    12.617        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          .10000E-03    1.4099        .17054E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     2.8637        55.050        .23959E-03   -1.5370    
  14  Prefactor     .10000E-03    5.4937        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     1.6315        69.703        .32779E-03   -1.5453    
  16  Prefactor     .10000E-03    18.220        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          .11140        .37771        .89020E-04   -1.5641    
  18  norm          8.2816        4.2973        .11782E-03   -1.5132    
  19  Prefactor     .10000E-03    27.853        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     27.181        30.332        .76859E-04   -1.4665    
  21  Normalizat    1.3494        .18375        .21864E-03   -.82104    
  22  Prefactor     .77056        .17713        .28110E-03   -1.0082    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 7.32253e-09
Minuit parameter uncertainties:
  1  2.73465e-06
  2  1.51174
  3  4.59912e-06
  4  3.96568
  5  14.8284
  6  12.8847
  7  0.75025
  8  1.92574e-06
  9  9.20384
  10  3.60871e-05
  11  1.71063e-05
  12  3.87115e-05
  13  25.1379
  14  5.39907e-05
  15  21.354
  16  1.33938e-06
  17  0.377722
  18  4.29751
  19  5.62684e-05
  20  30.3491
  21  0.183838
  22  0.17726
Done.

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

Extracting fit parameters...

4FGL J2331.0-2147
   Spectrum: LogParabola
418         norm:  1.000e-04  3.871e-05  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.706e-01  1.773e-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.349e+00  1.838e-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: 4.42e-08 ph cm-2 s-1
Energy Flux Upper Limit: 1.47e-05 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/7980/likelihoodResults_580953601_581212801_4FGL_J2331.0-2147_daily_bin1318.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) = 8670.13145551
delta logL = -0.00338007292885

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 8670.12807599
delta logL = -5.50582626602e-07

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10097E-03   1.0000         .10000E-03   10000.    
     2 'alpha     '    2.4154       1.0000          .0000       5.0000    
     3 'Normalizat'    1.3496       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .77045       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=   8670.128     FROM MIGRAD    STATUS=FAILED        96 CALLS      247 TOTAL
                     EDM=   .15E-03    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10612E-03    283.69        .17235E-02** at limit **
   2  alpha         1.8533        3.1533        .16473        .14116E-04
   3  Normalizat    1.3494        .56616E-01    .21864E-03   -.42443E-03
   4  Prefactor     .77056        .56997E-01    .28110E-03   -.26458E-03
                               ERR DEF=  .500    
 START SIMPLEX MINIMIZATION.    CONVERGENCE WHEN EDM .LT.   .20E-04
 SIMPLEX MINIMIZATION HAS CONVERGED.

 FCN=   8670.128     FROM SIMPLEX   STATUS=PROGRESS     131 CALLS      378 TOTAL
                     EDM=   .66E-05    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10118E-03    283.69        .15371E-03** at limit **
   2  alpha         1.8532        3.1533        .68983E-04    .14116E-04
   3  Normalizat    1.3494        .56616E-01    .14530E-05   -.42443E-03
   4  Prefactor     .77056        .56997E-01    .19356E-05   -.26458E-03
                               ERR DEF=  .500    

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   8670.128     FROM MIGRAD    STATUS=CONVERGED     44 CALLS      422 TOTAL
                     EDM=   .92E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    1.9765        .34470E-03** at limit **
   2  alpha         1.7567        3.0884        .65890E-02    .45550E-07
   3  Normalizat    1.3494        .17218        .43727E-04   -.16119E-04
   4  Prefactor     .77056        .17319        .11244E-04    .16177E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  alpha      = 1.75673
  Normalizat = 1.34939
  Prefactor  = 0.770559
 **********
 **   18 **HESSE 
 **********

 FCN=   8670.128     FROM HESSE     STATUS=OK            23 CALLS      445 TOTAL
                     EDM=   .99E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    1.9763        .68941E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  alpha         1.7567        3.1197        .13178E-02   -.30187    
   3  Normalizat    1.3494        .17204        .87454E-05   -.82104    
   4  Prefactor     .77056        .17303        .22488E-05   -1.0082    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 9.8919e-12
Minuit parameter uncertainties:
  1  1.54522e-07
  2  127.237
  3  0.172118
  4  0.173155
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/7980': 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) = 8670.12806534
delta logL = 1.0102548913e-05

Extracting fit parameters...

4FGL J2331.0-2147
   Spectrum: LogParabola
418         norm:  1.000e-04  1.545e-07  1.000e-04  1.000e+04 ( 1.000e-12)
419        alpha:  1.757e+00  1.272e+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:  7.706e-01  1.732e-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.349e+00  1.721e-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/7980/cmap_HighResolution_580953601_581212801_4FGL_J2331.0-2147_daily_bin1318.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.47e-05', job_status='DONE', photon_flux_upper_limit='4.42e-08', time_completed='2021-09-29 23:09:06.128207', job_id='7980', GAL2='0.77', fit_tolerance='1e-08', EG2='1.35', EG='1.35', time_epoch_completed='1632982146.13', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.77', dlogl='1.01e-05', ts2='-0.00', photon_index_error='0.00', photon_index='2.43' WHERE bin_id='1318' AND source_name='4FGL J2331.0-2147' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep 29 23:09:06 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0110>
Subject: Job 7980: <4FGL_J2331.0-2147_daily_bin1318> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2331.0-2147_daily_bin1318 352.763 -21.7953 580953601 581212801 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 :                                   716.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             339.69 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   765 sec.
    Turnaround time :                            766 sec.

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

