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


Performing analysis on: 4FGL_J2331.0-2147_daily_bin1070
RA = 352.763, Dec = -21.7953
tmin = 516672001, tmax = 516931201
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='7581', job_status='RUN', time_executed='2021-09-29 22:56:19.061007', time_epoch_executed='1632981379.06' WHERE source_name='4FGL J2331.0-2147' and cadence='daily' and bin_id='1070'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/7581

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/7581/ft1_4FGL_J2331.0-2147_daily_bin1070.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/7581/ft2_4FGL_J2331.0-2147_daily_bin1070.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/7581/ft1_4FGL_J2331.0-2147_daily_bin1070.fits outfile=/scratch/kocevski/7581/ft1_filteredMKT_4FGL_J2331.0-2147_daily_bin1070.fits ra=352.763 dec=-21.7953 rad=12.0 tmin=516672001.0 tmax=516931201.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.59
user 3.34
sys 0.23

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/7581/ft2_4FGL_J2331.0-2147_daily_bin1070.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/7581/ft1_filteredMKT_4FGL_J2331.0-2147_daily_bin1070.fits evtable="EVENTS" outfile="/scratch/kocevski/7581/ft1_filtered_4FGL_J2331.0-2147_daily_bin1070.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.52
user 0.36
sys 0.15

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/7581/ft1_filtered_4FGL_J2331.0-2147_daily_bin1070.fits" evtable="EVENTS" scfile=/scratch/kocevski/7581/ft2_4FGL_J2331.0-2147_daily_bin1070.fits sctable="SC_DATA" outfile=/scratch/kocevski/7581/ltcube_516672001_516931201_4FGL_J2331.0-2147_daily_bin1070.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/7581/ft2_4FGL_J2331.0-2147_daily_bin1070.fits
.....................!
real 15.26
user 14.80
sys 0.43

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/7581/ft1_filtered_4FGL_J2331.0-2147_daily_bin1070.fits evtable="EVENTS" scfile=/scratch/kocevski/7581/ft2_4FGL_J2331.0-2147_daily_bin1070.fits sctable="SC_DATA" expcube=/scratch/kocevski/7581/ltcube_516672001_516931201_4FGL_J2331.0-2147_daily_bin1070.fits outfile=/scratch/kocevski/7581/expmap_516672001_516931201_4FGL_J2331.0-2147_daily_bin1070.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/7581/ltcube_516672001_516931201_4FGL_J2331.0-2147_daily_bin1070.fits
.....................!
real 190.80
user 185.81
sys 4.69

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/7581/ft1_filtered_4FGL_J2331.0-2147_daily_bin1070.fits scfile=/scratch/kocevski/7581/ft2_4FGL_J2331.0-2147_daily_bin1070.fits outfile=/scratch/kocevski/7581/cmap_516672001_516931201_4FGL_J2331.0-2147_daily_bin1070.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.16

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

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/7581/ft1_filtered_4FGL_J2331.0-2147_daily_bin1070.fits evtable="EVENTS" scfile=/scratch/kocevski/7581/ft2_4FGL_J2331.0-2147_daily_bin1070.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/7581/Model_4FGL_J2331.0-2147_daily_bin1070.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/7581/ft1_filtered_4FGL_J2331.0-2147_daily_bin1070.fits.....................!
real 49.35
user 48.10
sys 1.15

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10007E-03   1.0000         .10000E-03   10000.    
     2 'norm      '    1.3160       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10031E-03   1.0000         .10000E-03   10000.    
     4 'norm      '    11.172       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10213E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .17078E-03   1.0000         .10000E-03   10000.    
     7 'norm      '    2.4708       1.0000         .10000E-03   10000.    
     8 'Prefactor '    12.201       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    1.1386       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .16271E-01   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    3.1549       1.0000         .10000E-03   10000.    
    18 'norm      '    .10300E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    37.132       1.0000         .10000E-03   10000.    
    21 'Normalizat'    1.3280       1.0000         .10000E-01   10.000    
    22 'Prefactor '    .44977       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=   6162.335     FROM MIGRAD    STATUS=CONVERGED    524 CALLS     2126 TOTAL
                     EDM=   .12E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    28.734        .90712E-02** at limit **
   2  norm          1.3171        1.4749        .95980E-02    .19646E-04
   3  Prefactor     .10019E-03    47.995        .90712E-02** at limit **
   4  norm          11.172        4.8859        .29965E-02    .76789E-04
   5  Prefactor     .10000E-03    7.6478        .90712E-02** at limit **
   6  Prefactor     .10000E-03    12.267        .90712E-02** at limit **
   7  norm          2.4718        .73576        .65034E-02   -.16120E-03
   8  Prefactor     12.200        11.523        .28670E-02    .10953E-02
   9  Prefactor     .10000E-03    2.3342        .90712E-02** at limit **
  10  Prefactor     .10000E-03    11.297        .90712E-02** at limit **
  11  Prefactor     .10000E-03    9.7094        .90712E-02** at limit **
  12  norm          1.1388        1.6306        .10903E-01    .20603E-03
  13  Prefactor     .10000E-03    20.849        .90712E-02** at limit **
  14  Prefactor     .10000E-03    9.2502        .90712E-02** at limit **
  15  Prefactor     .10016E-03    18.179        .11325    ** at limit **
  16  Prefactor     .10019E-03    47.181        .90712E-02** at limit **
  17  norm          3.1551        .77057        .57050E-02   -.60234E-03
  18  norm          .10000E-03    2.7936        .40538E-01** at limit **
  19  Prefactor     .10001E-03    32.343        .90712E-02** at limit **
  20  Prefactor     37.128        41.020        .16443E-02   -.76832E-03
  21  Normalizat    1.3281        .17415        .32321E-01   -.22912E-03
  22  Prefactor     .44981        .16762        .72972E-01   -.88769E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 0.000100003
  norm       = 1.31711
  Prefactor  = 0.000100186
  norm       = 11.1719
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 2.47185
  Prefactor  = 12.1996
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 1.1388
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000100158
  Prefactor  = 0.000100193
  norm       = 3.15509
  norm       = 0.0001
  Prefactor  = 0.000100011
  Prefactor  = 37.1278
  Normalizat = 1.32806
  Prefactor  = 0.449814
 **********
 **   18 **HESSE 
 **********

 FCN=   6162.335     FROM HESSE     STATUS=OK           344 CALLS     2470 TOTAL
                     EDM=   .11E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    28.825        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          1.3171        1.4514        .98075E-04   -1.5478    
   3  Prefactor     .10019E-03    48.266        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  norm          11.172        4.9061        .10689E-03   -1.5039    
   5  Prefactor     .10000E-03    7.6756        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    12.579        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          2.4718        .73409        .33703E-04   -1.5394    
   8  Prefactor     12.200        11.526        .57340E-03   -1.5009    
   9  Prefactor     .10000E-03    2.3371        .11710E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    11.314        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    9.7108        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          1.1388        1.5867        .11549E-03   -1.5495    
  13  Prefactor     .10000E-03    20.884        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    9.2957        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10016E-03    22.101        .98326E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10019E-03    47.207        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          3.1551        .73635        .31172E-04   -1.5353    
  18  norm          .10000E-03    5.9306        .24267E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10001E-03    32.404        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     37.128        41.061        .65771E-04   -1.4489    
  21  Normalizat    1.3281        .19468        .20317E-03   -.82733    
  22  Prefactor     .44981        .18592        .32313E-03   -1.1434    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.10557e-08
Minuit parameter uncertainties:
  1  0.000584465
  2  1.45139
  3  0.0059993
  4  4.90627
  5  2.43472e-05
  6  1.33736e-05
  7  0.734095
  8  11.5282
  9  1.13058e-05
  10  1.40813e-05
  11  4.31338e-06
  12  1.58676
  13  3.42837e-05
  14  2.34503e-05
  15  0.00373644
  16  0.00603681
  17  0.736353
  18  1.67167e-05
  19  0.00119821
  20  41.0926
  21  0.194785
  22  0.186172
Done.

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

Extracting fit parameters...

4FGL J2331.0-2147
   Spectrum: LogParabola
418         norm:  1.139e+00  1.587e+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:  4.498e-01  1.862e-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.328e+00  1.948e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 0.92
Ra Dec: 352.763 -21.795
Photon Flux Upper Limit: 6.23e-08 ph cm-2 s-1
Energy Flux Upper Limit: 2.07e-05 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/7581/likelihoodResults_516672001_516931201_4FGL_J2331.0-2147_daily_bin1070.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) = 6162.31801281
delta logL = 0.0169146890885

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6162.31453543
delta logL = 0.0203920701333

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    1.2845       1.0000         .10000E-03   10000.    
     2 'alpha     '    2.1976       1.0000          .0000       5.0000    
     3 'Normalizat'    1.3307       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .44830       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.

 FCN=   6162.315     FROM MIGRAD    STATUS=CONVERGED     83 CALLS      237 TOTAL
                     EDM=   .69E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          1.2843        1.8803        .12229E-03   -.15619E-04
   2  alpha         2.1975        1.1347        .28288E-01   -.40780E-05
   3  Normalizat    1.3307        .19147        .20300E-03   -.53808E-04
   4  Prefactor     .44829        .18570        .32364E-03   -.44156E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 1.28434
  alpha      = 2.19754
  Normalizat = 1.33071
  Prefactor  = 0.448294
 **********
 **   18 **HESSE 
 **********

 FCN=   6162.315     FROM HESSE     STATUS=OK            25 CALLS      262 TOTAL
                     EDM=   .14E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          1.2843        1.8462        .48914E-05   -1.5481    
   2  alpha         2.1975        1.1161        .11315E-02   -.12128    
   3  Normalizat    1.3307        .19153        .40600E-04   -.82654    
   4  Prefactor     .44829        .18578        .12945E-04   -1.1441    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.43512e-11
Minuit parameter uncertainties:
  1  1.84626
  2  1.15758
  3  0.191636
  4  0.186032
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/7581': 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) = 6162.31453542
delta logL = 0.0203920790545

Extracting fit parameters...

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

GAL_V02
   Spectrum: PowerLaw
534    Prefactor:  4.483e-01  1.860e-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.331e+00  1.916e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 0.92
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/7581/cmap_HighResolution_516672001_516931201_4FGL_J2331.0-2147_daily_bin1070.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='2.07e-05', job_status='DONE', photon_flux_upper_limit='6.23e-08', time_completed='2021-09-29 23:06:35.776277', job_id='7581', GAL2='0.45', fit_tolerance='1e-08', EG2='1.33', EG='1.33', time_epoch_completed='1632981995.78', return_code2='0', ts='0.92', comment='SUCCESS', return_code='0', GAL='0.45', dlogl='2.04e-02', ts2='0.96', photon_index_error='0.00', photon_index='2.43' WHERE bin_id='1070' AND source_name='4FGL J2331.0-2147' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep 29 23:06:35 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0279>
Subject: Job 7581: <4FGL_J2331.0-2147_daily_bin1070> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2331.0-2147_daily_bin1070 352.763 -21.7953 516672001 516931201 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 :                                   598.00 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             348.00 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   650 sec.
    Turnaround time :                            651 sec.

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

