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


Performing analysis on: 4FGL_J2331.0-2147_daily_bin1340
RA = 352.763, Dec = -21.7953
tmin = 586656001, tmax = 586915201
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='8018', job_status='RUN', time_executed='2021-09-29 23:00:28.660662', time_epoch_executed='1632981628.66' WHERE source_name='4FGL J2331.0-2147' and cadence='daily' and bin_id='1340'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/8018

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/8018/ft1_4FGL_J2331.0-2147_daily_bin1340.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/8018/ft2_4FGL_J2331.0-2147_daily_bin1340.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/8018/ft1_4FGL_J2331.0-2147_daily_bin1340.fits outfile=/scratch/kocevski/8018/ft1_filteredMKT_4FGL_J2331.0-2147_daily_bin1340.fits ra=352.763 dec=-21.7953 rad=12.0 tmin=586656001.0 tmax=586915201.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.69
user 3.45
sys 0.19

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/8018/ft2_4FGL_J2331.0-2147_daily_bin1340.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/8018/ft1_filteredMKT_4FGL_J2331.0-2147_daily_bin1340.fits evtable="EVENTS" outfile="/scratch/kocevski/8018/ft1_filtered_4FGL_J2331.0-2147_daily_bin1340.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/8018/ft1_filtered_4FGL_J2331.0-2147_daily_bin1340.fits" evtable="EVENTS" scfile=/scratch/kocevski/8018/ft2_4FGL_J2331.0-2147_daily_bin1340.fits sctable="SC_DATA" outfile=/scratch/kocevski/8018/ltcube_586656001_586915201_4FGL_J2331.0-2147_daily_bin1340.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/8018/ft2_4FGL_J2331.0-2147_daily_bin1340.fits
.....................!
real 11.55
user 11.19
sys 0.33

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/8018/ft1_filtered_4FGL_J2331.0-2147_daily_bin1340.fits evtable="EVENTS" scfile=/scratch/kocevski/8018/ft2_4FGL_J2331.0-2147_daily_bin1340.fits sctable="SC_DATA" expcube=/scratch/kocevski/8018/ltcube_586656001_586915201_4FGL_J2331.0-2147_daily_bin1340.fits outfile=/scratch/kocevski/8018/expmap_586656001_586915201_4FGL_J2331.0-2147_daily_bin1340.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/8018/ltcube_586656001_586915201_4FGL_J2331.0-2147_daily_bin1340.fits
.....................!
real 190.41
user 185.28
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/8018/ft1_filtered_4FGL_J2331.0-2147_daily_bin1340.fits scfile=/scratch/kocevski/8018/ft2_4FGL_J2331.0-2147_daily_bin1340.fits outfile=/scratch/kocevski/8018/cmap_586656001_586915201_4FGL_J2331.0-2147_daily_bin1340.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.54
user 0.36
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/8018/ft1_filtered_4FGL_J2331.0-2147_daily_bin1340.fits scfile=/scratch/kocevski/8018/ft2_4FGL_J2331.0-2147_daily_bin1340.fits outfile=/scratch/kocevski/8018/cmap_HighResolution_586656001_586915201_4FGL_J2331.0-2147_daily_bin1340.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/8018/ft1_filtered_4FGL_J2331.0-2147_daily_bin1340.fits evtable="EVENTS" scfile=/scratch/kocevski/8018/ft2_4FGL_J2331.0-2147_daily_bin1340.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/8018/Model_4FGL_J2331.0-2147_daily_bin1340.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/8018/ft1_filtered_4FGL_J2331.0-2147_daily_bin1340.fits.....................!
real 36.91
user 35.57
sys 1.22

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    23.445       1.0000         .10000E-03   10000.    
     2 'norm      '    1.7278       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
     4 'norm      '    .10018E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10053E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    6.5120       1.0000         .10000E-03   10000.    
     7 'norm      '    1.8992       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10063E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    13.796       1.0000         .10000E-03   10000.    
    10 'Prefactor '    16.548       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    2.1664       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10661E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10932E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    21.807       1.0000         .10000E-03   10000.    
    16 'Prefactor '    1.9091       1.0000         .10000E-03   10000.    
    17 'norm      '    .13543       1.0000         .10000E-03   10000.    
    18 'norm      '    .14442E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    27.312       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10085E-03   1.0000         .10000E-03   10000.    
    21 'Normalizat'    .93252       1.0000         .10000E-01   10.000    
    22 'Prefactor '    1.0635       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=   4095.039     FROM MIGRAD    STATUS=CONVERGED    555 CALLS     3187 TOTAL
                     EDM=   .18E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .3%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          23.442        24.689        .62587E-06   -.13233E-04
   2  norm          1.7278        1.8353        .83437E-07    .18043E-03
   3  Prefactor     .10000E-03    32.098        .19587E-07** at limit **
   4  norm          .10000E-03    2.2027        .89221E-07** at limit **
   5  Prefactor     .10000E-03    7.2370        .15333E-07** at limit **
   6  Prefactor     6.5131        19.904       -.88445E-05   -.14105E-03
   7  norm          1.8981        1.2408        .14471E-06   -.70987E-03
   8  Prefactor     .10000E-03    5.1110        .50348E-08** at limit **
   9  Prefactor     13.797        21.456        .95724E-05    .53036E-04
  10  Prefactor     16.553        19.968        .17081E-05    .11258E-05
  11  Prefactor     .10000E-03    31.441        .36963E-08** at limit **
  12  norm          2.1657        3.5716        .19032E-06   -.37141E-03
  13  Prefactor     .10001E-03    553.04       -.94748E-05** at limit **
  14  Prefactor     .10000E-03    38.335        .45334E-06** at limit **
  15  Prefactor     21.813        29.437       -.92234E-06    .42653E-05
  16  Prefactor     .79044        7909.5       -.97733E-04   -.93635E-05
  17  norm          .13667        .61559       -.29260E-06   -.32004E-02
  18  norm          .10000E-03    4.3605        .10649E-05** at limit **
  19  Prefactor     27.360        71.713        .64693E-04    .17404E-04
  20  Prefactor     .10000E-03    57.251       -.60496E-06** at limit **
  21  Normalizat    .93291        .23227       -.33090E-05    .24682E-04
  22  Prefactor     1.0636        .21958       -.67606E-06   -.74372E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 23.4419
  norm       = 1.72782
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 6.51306
  norm       = 1.89812
  Prefactor  = 0.0001
  Prefactor  = 13.7967
  Prefactor  = 16.5531
  Prefactor  = 0.0001
  norm       = 2.16568
  Prefactor  = 0.000100015
  Prefactor  = 0.0001
  Prefactor  = 21.8135
  Prefactor  = 0.79044
  norm       = 0.136674
  norm       = 0.000100003
  Prefactor  = 27.3603
  Prefactor  = 0.000100002
  Normalizat = 0.93291
  Prefactor  = 1.06355
 **********
 **   18 **HESSE 
 **********

 FCN=   4095.039     FROM HESSE     STATUS=OK           352 CALLS     3539 TOTAL
                     EDM=   .27E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          23.442        24.687        .82726E-04   -1.4739    
   2  norm          1.7278        1.8444        .87073E-04   -1.5445    
   3  Prefactor     .10000E-03    32.116        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  norm          .10000E-03    2.2073        .92679E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    7.2381        .16809E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     6.5131        20.415        .15727E-03   -1.5197    
   7  norm          1.8981        1.2854        .42545E-04   -1.5432    
   8  Prefactor     .10000E-03    5.1167        .14129E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     13.797        21.148        .10784E-03   -1.4965    
  10  Prefactor     16.553        19.961        .98458E-04   -1.4894    
  11  Prefactor     .10000E-03    31.452        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          2.1657        3.5467        .14678E-03   -1.5414    
  13  Prefactor     .10001E-03    573.00        .36285E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    39.012        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     21.813        29.381        .85774E-04   -1.4774    
  16  Prefactor     .79044        7970.9        .30089E-02   -1.5530    
  17  norm          .13667        .47401        .76556E-04   -1.5634    
  18  norm          .10000E-03    23.269        .20499E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     27.360        71.022        .76656E-04   -1.4661    
  20  Prefactor     .10000E-03    57.302        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Normalizat    .93291        .27268        .25682E-03   -.95313    
  22  Prefactor     1.0636        .25971        .23900E-03   -.90640    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.67994e-09
Minuit parameter uncertainties:
  1  24.6978
  2  1.84444
  3  5.45747e-05
  4  1.43965e-05
  5  6.97109e-06
  6  20.4372
  7  1.28537
  8  9.15931e-06
  9  21.1595
  10  19.9694
  11  2.71774e-05
  12  3.54709
  13  0.00589692
  14  0.000262043
  15  29.4007
  16  158.08
  17  0.474018
  18  0.000510651
  19  71.2429
  20  0.000598991
  21  0.27309
  22  0.260023
Done.

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

Extracting fit parameters...

4FGL J2331.0-2147
   Spectrum: LogParabola
418         norm:  2.166e+00  3.547e+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:  1.064e+00  2.600e-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.329e-01  2.731e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/8018/likelihoodResults_586656001_586915201_4FGL_J2331.0-2147_daily_bin1340.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) = 4094.83928493
delta logL = 0.199807989347

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 4094.83847785
delta logL = 0.200615072549

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    3.9625       1.0000         .10000E-03   10000.    
     2 'alpha     '    1.8704       1.0000          .0000       5.0000    
     3 'Normalizat'    .94632       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0482       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=   4094.838     FROM MIGRAD    STATUS=CONVERGED     51 CALLS      265 TOTAL
                     EDM=   .25E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          3.9521        264.48        .50658E-02    .34228E-03
   2  alpha         1.8680        3.5641        .42936        .45881E-04
   3  Normalizat    .94611        .11527        .45491E-01   -.13730E-03
   4  Prefactor     1.0486        .12782        .40013E-01   -.12934E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 3.95209
  alpha      = 1.86802
  Normalizat = 0.946109
  Prefactor  = 1.0486
 **********
 **   18 **HESSE 
 **********

 FCN=   4094.838     FROM HESSE     STATUS=OK            31 CALLS      296 TOTAL
                     EDM=   .22E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          3.9521        5.0002        .15264E-03   -1.5310    
   2  alpha         1.8680        .76854        .16496E-01   -.25557    
   3  Normalizat    .94611        .25705        .25515E-03   -.94858    
   4  Prefactor     1.0486        .25602        .24032E-03   -.91127    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.20043e-10
Minuit parameter uncertainties:
  1  5.00075
  2  0.782096
  3  0.257388
  4  0.256323
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/8018': 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) = 4094.83846922
delta logL = 0.200623699521

Extracting fit parameters...

4FGL J2331.0-2147
   Spectrum: LogParabola
418         norm:  3.952e+00  5.001e+00  1.000e-04  1.000e+04 ( 1.000e-12)
419        alpha:  1.868e+00  7.821e-01  0.000e+00  5.000e+00 ( 1.000e+00)
420         beta:  1.305e-01  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
421           Eb:  9.116e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
534    Prefactor:  1.049e+00  2.563e-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.461e-01  2.574e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 0.49
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/8018/cmap_HighResolution_586656001_586915201_4FGL_J2331.0-2147_daily_bin1340.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='3.89e-05', job_status='DONE', photon_flux_upper_limit='1.17e-07', time_completed='2021-09-29 23:09:26.356674', job_id='8018', GAL2='1.05', fit_tolerance='1e-08', EG2='0.95', EG='0.93', time_epoch_completed='1632982166.36', return_code2='0', ts='0.49', comment='SUCCESS', return_code='0', GAL='1.06', dlogl='2.01e-01', ts2='0.90', photon_index_error='0.00', photon_index='2.43' WHERE bin_id='1340' AND source_name='4FGL J2331.0-2147' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep 29 23:09:26 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0208>
Subject: Job 8018: <4FGL_J2331.0-2147_daily_bin1340> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2331.0-2147_daily_bin1340 352.763 -21.7953 586656001 586915201 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 :                                   531.46 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             198.33 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   781 sec.
    Turnaround time :                            783 sec.

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

