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


Performing analysis on: 4FGL_J2331.0-2147_daily_bin1657
RA = 352.763, Dec = -21.7953
tmin = 668822401, tmax = 669081601
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='531981', job_status='RUN', time_executed='2022-03-16 01:24:32.152230', time_epoch_executed='1647419072.15' WHERE source_name='4FGL J2331.0-2147' and cadence='daily' and bin_id='1657'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/531981

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/531981/ft1_4FGL_J2331.0-2147_daily_bin1657.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/531981/ft2_4FGL_J2331.0-2147_daily_bin1657.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/531981/ft1_4FGL_J2331.0-2147_daily_bin1657.fits outfile=/scratch/kocevski/531981/ft1_filteredMKT_4FGL_J2331.0-2147_daily_bin1657.fits ra=352.763 dec=-21.7953 rad=12.0 tmin=668822401.0 tmax=669081601.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 5.72
user 5.24
sys 0.34

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/531981/ft2_4FGL_J2331.0-2147_daily_bin1657.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/531981/ft1_filteredMKT_4FGL_J2331.0-2147_daily_bin1657.fits evtable="EVENTS" outfile="/scratch/kocevski/531981/ft1_filtered_4FGL_J2331.0-2147_daily_bin1657.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.54
user 0.33
sys 0.17
Number of photons that survived the gtmktime cut: 276

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/531981/ft1_filtered_4FGL_J2331.0-2147_daily_bin1657.fits" evtable="EVENTS" scfile=/scratch/kocevski/531981/ft2_4FGL_J2331.0-2147_daily_bin1657.fits sctable="SC_DATA" outfile=/scratch/kocevski/531981/ltcube_668822401_669081601_4FGL_J2331.0-2147_daily_bin1657.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/531981/ft2_4FGL_J2331.0-2147_daily_bin1657.fits
.....................!
real 12.62
user 12.23
sys 0.35

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/531981/ft1_filtered_4FGL_J2331.0-2147_daily_bin1657.fits evtable="EVENTS" scfile=/scratch/kocevski/531981/ft2_4FGL_J2331.0-2147_daily_bin1657.fits sctable="SC_DATA" expcube=/scratch/kocevski/531981/ltcube_668822401_669081601_4FGL_J2331.0-2147_daily_bin1657.fits outfile=/scratch/kocevski/531981/expmap_668822401_669081601_4FGL_J2331.0-2147_daily_bin1657.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/531981/ltcube_668822401_669081601_4FGL_J2331.0-2147_daily_bin1657.fits
.....................!
real 190.46
user 184.92
sys 5.15

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/531981/ft1_filtered_4FGL_J2331.0-2147_daily_bin1657.fits scfile=/scratch/kocevski/531981/ft2_4FGL_J2331.0-2147_daily_bin1657.fits outfile=/scratch/kocevski/531981/cmap_668822401_669081601_4FGL_J2331.0-2147_daily_bin1657.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.55
user 0.39
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/531981/ft1_filtered_4FGL_J2331.0-2147_daily_bin1657.fits scfile=/scratch/kocevski/531981/ft2_4FGL_J2331.0-2147_daily_bin1657.fits outfile=/scratch/kocevski/531981/cmap_HighResolution_668822401_669081601_4FGL_J2331.0-2147_daily_bin1657.fits algorithm="CMAP" ebinalg="LOG" emin=30.0 emax=200000.0 ebinfile=NONE tbinalg="LIN" tbinfile=NONE nxpix=500 nypix=500 binsz=0.1 coordsys="CEL" xref=352.763 yref=-21.7953 axisrot=0.0 rafield="RA" decfield="DEC" proj="AIT" hpx_ordering_scheme="RING" hpx_order=3 hpx_ebin=yes hpx_region="" evtable="EVENTS" sctable="SC_DATA" efield="ENERGY" tfield="TIME" chatter=2 clobber=yes debug=no gui=no mode="ql"

WARNING: version mismatch between CFITSIO header (v3.43) and linked library (v3.41).

This is gtbin version HEAD
real 0.55
user 0.37
sys 0.17

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/531981/ft1_filtered_4FGL_J2331.0-2147_daily_bin1657.fits evtable="EVENTS" scfile=/scratch/kocevski/531981/ft2_4FGL_J2331.0-2147_daily_bin1657.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/531981/Model_4FGL_J2331.0-2147_daily_bin1657.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/531981/ft1_filtered_4FGL_J2331.0-2147_daily_bin1657.fits......................!
real 33.64
user 32.18
sys 1.34

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    15.306       1.0000         .10000E-03   10000.    
     2 'norm      '    1.5167       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .78837E-03   1.0000         .10000E-03   10000.    
     4 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    17.001       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .12075E-03   1.0000         .10000E-03   10000.    
     7 'norm      '    .89975       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10080E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .19692E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    7.1599       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10689E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10424E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    25.569       1.0000         .10000E-03   10000.    
    16 'Prefactor '    13.048       1.0000         .10000E-03   10000.    
    17 'norm      '    .10003E-03   1.0000         .10000E-03   10000.    
    18 'norm      '    .67736       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .11088E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10995E-03   1.0000         .10000E-03   10000.    
    21 'Normalizat'    1.5183       1.0000         .10000E-01   10.000    
    22 'Prefactor '    .55945       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=   3205.103     FROM MIGRAD    STATUS=CONVERGED    495 CALLS     2750 TOTAL
                     EDM=   .21E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .2%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          15.271        65.909       -.62095E-04    .17929E-04
   2  norm          1.5187        2.2657       -.65066E-08    .67979E-03
   3  Prefactor     .10000E-03    233.69       -.34107E-04** at limit **
   4  norm          .10000E-03    2.3037       -.75625E-08** at limit **
   5  Prefactor     17.004        19.457       -.72520E-06    .31463E-04
   6  Prefactor     .10003E-03    14.840       -.29959E-06** at limit **
   7  norm          .89888        1.1374       -.24863E-06   -.23384E-03
   8  Prefactor     .10000E-03    6.1189       -.11424E-06** at limit **
   9  Prefactor     .10000E-03    29.116        .10927E-05** at limit **
  10  Prefactor     .10000E-03    13.082       -.24593E-06** at limit **
  11  Prefactor     .10000E-03    146.11        .12837E-04** at limit **
  12  norm          7.1602        5.6757       -.67077E-06    .81094E-04
  13  Prefactor     .10000E-03    46.348       -.59991E-05** at limit **
  14  Prefactor     .10000E-03    13.465        .31451E-07** at limit **
  15  Prefactor     25.575        59.530        .12804E-04    .61336E-04
  16  Prefactor     12.936        473.53       -.29303E-03    .10403E-04
  17  norm          .10000E-03    .23371        .95726E-09** at limit **
  18  norm          .67902        5.7264       -.13625E-05   -.12893E-03
  19  Prefactor     .10000E-03    22.716       -.42089E-06** at limit **
  20  Prefactor     .10000E-03    48.340        .43774E-05** at limit **
  21  Normalizat    1.5184        .26291        .43221E-05    .15687E-03
  22  Prefactor     .55934        .23600        .77016E-05    .18185E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 15.2712
  norm       = 1.51866
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 17.0043
  Prefactor  = 0.000100029
  norm       = 0.898878
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 7.16017
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 25.5746
  Prefactor  = 12.9363
  norm       = 0.0001
  norm       = 0.67902
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Normalizat = 1.51839
  Prefactor  = 0.559345
 **********
 **   18 **HESSE 
 **********

 FCN=   3205.103     FROM HESSE     STATUS=OK           342 CALLS     3092 TOTAL
                     EDM=   .12E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          15.271        65.687        .10238E-03   -1.4926    
   2  norm          1.5187        2.2243        .10072E-03   -1.5461    
   3  Prefactor     .10000E-03    236.08        .20911E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  norm          .10000E-03    2.3102        .83868E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     17.004        19.264        .97136E-04   -1.4883    
   6  Prefactor     .10003E-03    149.28        .33664E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          .89888        .99684        .52078E-03   -1.5518    
   8  Prefactor     .10000E-03    6.1260        .13678E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    29.660        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    13.085        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    146.50        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          7.1602        5.6649        .10672E-03   -1.5173    
  13  Prefactor     .10000E-03    46.433        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    13.503        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     25.575        59.834        .79222E-04   -1.4696    
  16  Prefactor     12.936        476.94        .11089E-03   -1.4988    
  17  norm          .10000E-03    .23427        .26444E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          .67902        10.349        .24983E-02   -1.5543    
  19  Prefactor     .10000E-03    22.719        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    48.377        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Normalizat    1.5184        .31113        .21661E-03   -.77263    
  22  Prefactor     .55934        .27824        .31106E-03   -1.0933    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.20307e-08
Minuit parameter uncertainties:
  1  63.4624
  2  2.22446
  3  0.000339386
  4  1.28616e-06
  5  19.2711
  6  0.00416174
  7  0.99686
  8  2.86789e-05
  9  9.64087e-05
  10  2.68331e-05
  11  0.000179968
  12  5.66532
  13  0.000135627
  14  6.22893e-05
  15  59.9746
  16  158.478
  17  4.13948e-08
  18  5.30237
  19  2.35819e-05
  20  1.0156e-05
  21  0.311525
  22  0.278926
Done.

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

Extracting fit parameters...

4FGL J2331.0-2147
   Spectrum: LogParabola
418         norm:  7.160e+00  5.665e+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:  5.593e-01  2.789e-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.518e+00  3.115e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 3.31
Ra Dec: 352.763 -21.795
Photon Index (Fixed Index): 2.43 +/- 0.00
Photon Flux (Fixed Index): 7.68e-08 +/- 6.07e-08
Energy Flux (Fixed Index): 2.55e-05 +/- 2.02e-05

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

Saving results to:
/scratch/kocevski/531981/likelihoodResults_668822401_669081601_4FGL_J2331.0-2147_daily_bin1657.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) = 3205.06763265
delta logL = 0.0354599013517

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 3205.06282152
delta logL = 0.0402710276076

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    5.5804       1.0000         .10000E-03   10000.    
     2 'alpha     '    2.8055       1.0000          .0000       5.0000    
     3 'Normalizat'    1.4814       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .58484       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=   3205.063     FROM MIGRAD    STATUS=CONVERGED     57 CALLS      270 TOTAL
                     EDM=   .13E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          5.5712        79.681        .42516E-02    .37228E-03
   2  alpha         2.8088        3.7260        .32252        .46203E-04
   3  Normalizat    1.4805        .11895        .49476E-01    .70667E-04
   4  Prefactor     .58550        .79945E-01    .68831E-01    .61795E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 5.57116
  alpha      = 2.80879
  Normalizat = 1.48055
  Prefactor  = 0.585501
 **********
 **   18 **HESSE 
 **********

 FCN=   3205.063     FROM HESSE     STATUS=OK            31 CALLS      301 TOTAL
                     EDM=   .41E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          5.5712        10.474        .88516E-04   -1.5236    
   2  alpha         2.8088        1.7146        .11002E-01    .12383    
   3  Normalizat    1.4805        .35798        .21872E-03   -.78326    
   4  Prefactor     .58550        .30979        .30465E-03   -1.0820    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.10676e-11
Minuit parameter uncertainties:
  1  10.477
  2  1.89306
  3  0.358592
  4  0.310696
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/531981': 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) = 3205.0628162
delta logL = 0.0402763521051

Extracting fit parameters...

4FGL J2331.0-2147
   Spectrum: LogParabola
418         norm:  5.571e+00  1.048e+01  1.000e-04  1.000e+04 ( 1.000e-12)
419        alpha:  2.809e+00  1.893e+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:  5.855e-01  3.107e-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.481e+00  3.586e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 3.40
Ra Dec: 352.763 -21.795
Photon Index (Free Index): 2.81 +/- 1.89
Photon Flux (Free Index): 1.04e-07 +/- 1.46e-07
Energy Flux (Free Index): 2.58e-05 +/- 1.80e-05

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/531981/cmap_HighResolution_668822401_669081601_4FGL_J2331.0-2147_daily_bin1657.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='6.73e-05', comment='SUCCESS', photon_flux='7.68e-08', energy_flux2='2.58e-05', photon_flux_error='6.07e-08', dlogl='4.03e-02', energy_flux='2.55e-05', photon_flux2='1.04e-07', job_status='DONE', time_completed='2022-03-16 01:32:38.888370', photon_index_error2='1.89', photon_index2='2.81', ts='3.31', fit_tolerance='1e-08', GAL='0.56', photon_index_error='0.00', photon_flux_upper_limit='2.02e-07', energy_flux_error2='1.80e-05', EG='1.52', time_epoch_completed='1647419558.89', return_code='0', job_id='531981', GAL2='0.59', EG2='1.48', return_code2='0', energy_flux_error='2.02e-05', photon_flux_error2='1.46e-07', ts2='3.40', photon_index='2.43' WHERE bin_id='1657' AND source_name='4FGL J2331.0-2147' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Mar 16 01:32:38 PDT 2022


------------------------------------------------------------
Sender: LSF System <lsf@bullet0174>
Subject: Job 531981: <4FGL_J2331.0-2147_daily_bin1657> in cluster <slac> Done

Job <4FGL_J2331.0-2147_daily_bin1657> was submitted from host <rhel6-64k> by user <kocevski> in cluster <slac> at Wed Mar 16 01:20:28 2022
Job was executed on host(s) <bullet0174>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Mar 16 01:22:04 2022
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Wed Mar 16 01:22:04 2022
Terminated at Wed Mar 16 01:32:39 2022
Results reported at Wed Mar 16 01:32:39 2022

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2331.0-2147_daily_bin1657 352.763 -21.7953 668822401 669081601 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 :                                   487.55 sec.
    Max Memory :                                 1093 MB
    Average Memory :                             218.73 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   635 sec.
    Turnaround time :                            731 sec.

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

