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


Performing analysis on: 4FGL_J2331.0-2147_daily_bin1162
RA = 352.763, Dec = -21.7953
tmin = 540518401, tmax = 540777601
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='7731', job_status='RUN', time_executed='2021-09-29 22:59:25.642016', time_epoch_executed='1632981565.64' WHERE source_name='4FGL J2331.0-2147' and cadence='daily' and bin_id='1162'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/7731

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/7731/ft1_4FGL_J2331.0-2147_daily_bin1162.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/7731/ft2_4FGL_J2331.0-2147_daily_bin1162.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/7731/ft1_4FGL_J2331.0-2147_daily_bin1162.fits outfile=/scratch/kocevski/7731/ft1_filteredMKT_4FGL_J2331.0-2147_daily_bin1162.fits ra=352.763 dec=-21.7953 rad=12.0 tmin=540518401.0 tmax=540777601.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.65
user 3.42
sys 0.20

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/7731/ft1_filtered_4FGL_J2331.0-2147_daily_bin1162.fits" evtable="EVENTS" scfile=/scratch/kocevski/7731/ft2_4FGL_J2331.0-2147_daily_bin1162.fits sctable="SC_DATA" outfile=/scratch/kocevski/7731/ltcube_540518401_540777601_4FGL_J2331.0-2147_daily_bin1162.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/7731/ft2_4FGL_J2331.0-2147_daily_bin1162.fits
.....................!
real 12.11
user 11.58
sys 0.32

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/7731/ft1_filtered_4FGL_J2331.0-2147_daily_bin1162.fits evtable="EVENTS" scfile=/scratch/kocevski/7731/ft2_4FGL_J2331.0-2147_daily_bin1162.fits sctable="SC_DATA" expcube=/scratch/kocevski/7731/ltcube_540518401_540777601_4FGL_J2331.0-2147_daily_bin1162.fits outfile=/scratch/kocevski/7731/expmap_540518401_540777601_4FGL_J2331.0-2147_daily_bin1162.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/7731/ltcube_540518401_540777601_4FGL_J2331.0-2147_daily_bin1162.fits
.....................!
real 193.14
user 186.05
sys 4.92

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/7731/ft1_filtered_4FGL_J2331.0-2147_daily_bin1162.fits scfile=/scratch/kocevski/7731/ft2_4FGL_J2331.0-2147_daily_bin1162.fits outfile=/scratch/kocevski/7731/cmap_540518401_540777601_4FGL_J2331.0-2147_daily_bin1162.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.37
sys 0.15

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

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/7731/ft1_filtered_4FGL_J2331.0-2147_daily_bin1162.fits evtable="EVENTS" scfile=/scratch/kocevski/7731/ft2_4FGL_J2331.0-2147_daily_bin1162.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/7731/Model_4FGL_J2331.0-2147_daily_bin1162.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/7731/ft1_filtered_4FGL_J2331.0-2147_daily_bin1162.fits.....................!
real 40.40
user 38.77
sys 1.18

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .92283E-03   1.0000         .10000E-03   10000.    
     2 'norm      '    3.9230       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .37577E-03   1.0000         .10000E-03   10000.    
     4 'norm      '    .10071E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10206E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    20.069       1.0000         .10000E-03   10000.    
     7 'norm      '    1.6356       1.0000         .10000E-03   10000.    
     8 'Prefactor '    4.8240       1.0000         .10000E-03   10000.    
     9 'Prefactor '    8.6609       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10061E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10016E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    .10017E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10048E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10047E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10072E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .72187E-02   1.0000         .10000E-03   10000.    
    17 'norm      '    .10003E-03   1.0000         .10000E-03   10000.    
    18 'norm      '    1.4947       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .89143       1.0000         .10000E-03   10000.    
    21 'Normalizat'    1.3740       1.0000         .10000E-01   10.000    
    22 'Prefactor '    .87295       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=   4411.285     FROM MIGRAD    STATUS=CONVERGED    510 CALLS     2384 TOTAL
                     EDM=   .55E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.5%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10001E-03    283.05        .99748E-05** at limit **
   2  norm          3.9281        3.0079       -.14022E-06   -.15053E-03
   3  Prefactor     .10000E-03    180.26        .27732E-05** at limit **
   4  norm          .10000E-03    2.5550        .52310E-06** at limit **
   5  Prefactor     .10000E-03    9.6368        .88645E-06** at limit **
   6  Prefactor     20.074        16.403        .62964E-06   -.84912E-04
   7  norm          1.6357        1.0661       -.24005E-06   -.61289E-03
   8  Prefactor     4.8143        16.817        .74765E-06   -.97071E-05
   9  Prefactor     8.6575        13.720        .41696E-06   -.33716E-04
  10  Prefactor     .10000E-03    14.599       -.17031E-07** at limit **
  11  Prefactor     .10000E-03    32.243        .11467E-06** at limit **
  12  norm          .10000E-03    1.3393        .27714E-07** at limit **
  13  Prefactor     .10000E-03    19.100        .11452E-07** at limit **
  14  Prefactor     .10000E-03    8.8784        .16079E-07** at limit **
  15  Prefactor     .10000E-03    13.831       -.24723E-07** at limit **
  16  Prefactor     .10002E-03    1641.2       -.15291E-04** at limit **
  17  norm          .10000E-03    .22061       -.10025E-06** at limit **
  18  norm          1.4910        4.6375        .20236E-05    .22092E-03
  19  Prefactor     .10000E-03    25.111       -.33672E-07** at limit **
  20  Prefactor     .39564        86.038       -.44043E-05    .15075E-03
  21  Normalizat    1.3744        .24539       -.35658E-05   -.44856E-05
  22  Prefactor     .87307        .22684        .23835E-05   -.13420E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 0.000100013
  norm       = 3.92809
  Prefactor  = 0.000100001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 20.0738
  norm       = 1.63573
  Prefactor  = 4.81427
  Prefactor  = 8.65751
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000100019
  norm       = 0.0001
  norm       = 1.49095
  Prefactor  = 0.0001
  Prefactor  = 0.395645
  Normalizat = 1.37438
  Prefactor  = 0.873072
 **********
 **   18 **HESSE 
 **********

 FCN=   4411.285     FROM HESSE     STATUS=OK           346 CALLS     2730 TOTAL
                     EDM=   .17E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10001E-03    291.81        .41629E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          3.9281        3.0067        .97902E-04   -1.5312    
   3  Prefactor     .10000E-03    181.87        .21292E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  norm          .10000E-03    2.5805        .10378E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    9.6602        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     20.074        16.644        .89407E-04   -1.4812    
   7  norm          1.6357        1.0790        .43609E-04   -1.5452    
   8  Prefactor     4.8143        16.845        .18316E-03   -1.5269    
   9  Prefactor     8.6575        13.693        .13621E-03   -1.5119    
  10  Prefactor     .10000E-03    14.607        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    32.276        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          .10000E-03    1.3539        .75063E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    19.105        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    8.8967        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    13.839        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10002E-03    1665.6        .18650E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          .10000E-03    .22968        .60891E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          1.4910        4.7053        .24323E-03   -1.5464    
  19  Prefactor     .10000E-03    25.116        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .39564        86.067        .16525       -1.5582    
  21  Normalizat    1.3744        .27278        .24004E-03   -.81373    
  22  Prefactor     .87307        .25718        .27934E-03   -.97088    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.74189e-09
Minuit parameter uncertainties:
  1  0.00392633
  2  3.00682
  3  0.000617028
  4  1.47289e-05
  5  4.60491e-05
  6  16.648
  7  1.07906
  8  16.8612
  9  13.6975
  10  3.90444e-07
  11  4.06641e-05
  12  2.97099e-06
  13  7.11505e-06
  14  2.50398e-06
  15  1.13352e-05
  16  0.0115292
  17  3.29244e-06
  18  4.70645
  19  8.00666e-06
  20  11.6864
  21  0.273072
  22  0.257537
Done.

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

Extracting fit parameters...

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

GAL_V02
   Spectrum: PowerLaw
534    Prefactor:  8.731e-01  2.575e-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.374e+00  2.731e-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: 6.47e-08 ph cm-2 s-1
Energy Flux Upper Limit: 2.15e-05 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/7731/likelihoodResults_540518401_540777601_4FGL_J2331.0-2147_daily_bin1162.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) = 4411.28876101
delta logL = -0.00339072563656

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 4411.28537033
delta logL = -3.82233338314e-08

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
     2 'alpha     '    2.4335       1.0000          .0000       5.0000    
     3 'Normalizat'    1.3744       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .87310       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=   4411.285     FROM MIGRAD    STATUS=CONVERGED     48 CALLS      195 TOTAL
                     EDM=   .10E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    1.3397        .90712E-02** at limit **
   2  alpha         2.4341        3.5365        .41170       -.23991E-05
   3  Normalizat    1.3744        .22282        .54290E-01    .12962E-04
   4  Prefactor     .87308        .21323        .44661E-01    .28030E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  alpha      = 2.43413
  Normalizat = 1.37437
  Prefactor  = 0.873075
 **********
 **   18 **HESSE 
 **********

 FCN=   4411.285     FROM HESSE     STATUS=OK            33 CALLS      228 TOTAL
                     EDM=   .90E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    1.3537        .75063E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  alpha         2.4341        3.5364        .50000       -.26351E-01
   3  Normalizat    1.3744        .26326        .24005E-03   -.81373    
   4  Prefactor     .87308        .25192        .27933E-03   -.97088    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 8.96681e-12
Minuit parameter uncertainties:
  1  4.32451e-06
  2  2.49957
  3  0.263519
  4  0.252253
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/7731': 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) = 4411.28537029
delta logL = 1.1787051335e-09

Extracting fit parameters...

4FGL J2331.0-2147
   Spectrum: LogParabola
418         norm:  1.000e-04  4.325e-06  1.000e-04  1.000e+04 ( 1.000e-12)
419        alpha:  2.434e+00  2.500e+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:  8.731e-01  2.523e-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.374e+00  2.635e-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  0.000e+00 [aplpy.core]
INFO: Auto-setting vmax to  0.000e+00 [aplpy.core]
Saving /scratch/kocevski/7731/cmap_HighResolution_540518401_540777601_4FGL_J2331.0-2147_daily_bin1162.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='2.15e-05', job_status='DONE', photon_flux_upper_limit='6.47e-08', time_completed='2021-09-29 23:08:20.173654', job_id='7731', GAL2='0.87', fit_tolerance='1e-08', EG2='1.37', EG='1.37', time_epoch_completed='1632982100.17', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.87', dlogl='1.18e-09', ts2='-0.00', photon_index_error='0.00', photon_index='2.43' WHERE bin_id='1162' AND source_name='4FGL J2331.0-2147' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep 29 23:08:20 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0206>
Subject: Job 7731: <4FGL_J2331.0-2147_daily_bin1162> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2331.0-2147_daily_bin1162 352.763 -21.7953 540518401 540777601 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 :                                   515.30 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             219.40 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   739 sec.
    Turnaround time :                            741 sec.

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

