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


Performing analysis on: 4FGL_J2331.0-2147_daily_bin1359
RA = 352.763, Dec = -21.7953
tmin = 591580801, tmax = 591840001
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='8049', job_status='RUN', time_executed='2021-09-29 22:57:08.052031', time_epoch_executed='1632981428.05' WHERE source_name='4FGL J2331.0-2147' and cadence='daily' and bin_id='1359'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/8049

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/8049/ft1_4FGL_J2331.0-2147_daily_bin1359.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/8049/ft2_4FGL_J2331.0-2147_daily_bin1359.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/8049/ft1_4FGL_J2331.0-2147_daily_bin1359.fits outfile=/scratch/kocevski/8049/ft1_filteredMKT_4FGL_J2331.0-2147_daily_bin1359.fits ra=352.763 dec=-21.7953 rad=12.0 tmin=591580801.0 tmax=591840001.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.80
user 3.59
sys 0.20

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/8049/ft2_4FGL_J2331.0-2147_daily_bin1359.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/8049/ft1_filteredMKT_4FGL_J2331.0-2147_daily_bin1359.fits evtable="EVENTS" outfile="/scratch/kocevski/8049/ft1_filtered_4FGL_J2331.0-2147_daily_bin1359.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/8049/ft1_filtered_4FGL_J2331.0-2147_daily_bin1359.fits" evtable="EVENTS" scfile=/scratch/kocevski/8049/ft2_4FGL_J2331.0-2147_daily_bin1359.fits sctable="SC_DATA" outfile=/scratch/kocevski/8049/ltcube_591580801_591840001_4FGL_J2331.0-2147_daily_bin1359.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/8049/ft2_4FGL_J2331.0-2147_daily_bin1359.fits
.....................!
real 11.72
user 11.35
sys 0.35

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/8049/ft1_filtered_4FGL_J2331.0-2147_daily_bin1359.fits evtable="EVENTS" scfile=/scratch/kocevski/8049/ft2_4FGL_J2331.0-2147_daily_bin1359.fits sctable="SC_DATA" expcube=/scratch/kocevski/8049/ltcube_591580801_591840001_4FGL_J2331.0-2147_daily_bin1359.fits outfile=/scratch/kocevski/8049/expmap_591580801_591840001_4FGL_J2331.0-2147_daily_bin1359.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/8049/ltcube_591580801_591840001_4FGL_J2331.0-2147_daily_bin1359.fits
.....................!
real 192.23
user 186.32
sys 5.59

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/8049/ft1_filtered_4FGL_J2331.0-2147_daily_bin1359.fits scfile=/scratch/kocevski/8049/ft2_4FGL_J2331.0-2147_daily_bin1359.fits outfile=/scratch/kocevski/8049/cmap_591580801_591840001_4FGL_J2331.0-2147_daily_bin1359.fits algorithm="CMAP" ebinalg="LOG" emin=30.0 emax=200000.0 ebinfile=NONE tbinalg="LIN" tbinfile=NONE nxpix=160 nypix=160 binsz=0.25 coordsys="CEL" xref=352.763 yref=-21.7953 axisrot=0.0 rafield="RA" decfield="DEC" proj="AIT" hpx_ordering_scheme="RING" hpx_order=3 hpx_ebin=yes hpx_region="" evtable="EVENTS" sctable="SC_DATA" efield="ENERGY" tfield="TIME" chatter=2 clobber=yes debug=no gui=no mode="ql"

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

This is gtbin version HEAD
real 0.53
user 0.37
sys 0.14

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

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/8049/ft1_filtered_4FGL_J2331.0-2147_daily_bin1359.fits evtable="EVENTS" scfile=/scratch/kocevski/8049/ft2_4FGL_J2331.0-2147_daily_bin1359.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/8049/Model_4FGL_J2331.0-2147_daily_bin1359.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/8049/ft1_filtered_4FGL_J2331.0-2147_daily_bin1359.fits.....................!
real 33.34
user 32.04
sys 1.22

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    43.036       1.0000         .10000E-03   10000.    
     2 'norm      '    .10145E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    12.796       1.0000         .10000E-03   10000.    
     4 'norm      '    .10005E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10012E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10463E-03   1.0000         .10000E-03   10000.    
     7 'norm      '    .89148       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    17.486       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10073E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    95.844       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .17030E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10025E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    .10782E-03   1.0000         .10000E-03   10000.    
    18 'norm      '    87.105       1.0000         .10000E-03   10000.    
    19 'Prefactor '    90.746       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .13761E-03   1.0000         .10000E-03   10000.    
    21 'Normalizat'    1.0235       1.0000         .10000E-01   10.000    
    22 'Prefactor '    .73988       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=   3371.261     FROM MIGRAD    STATUS=CONVERGED    466 CALLS     2380 TOTAL
                     EDM=   .94E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .3%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          43.042        45.524        .62136E-05    .61792E-05
   2  norm          .10000E-03    1.7400       -.46518E-07** at limit **
   3  Prefactor     12.795        110.61       -.31757E-05    .88643E-05
   4  norm          .10000E-03    1.6157       -.13885E-07** at limit **
   5  Prefactor     .10000E-03    7.1086        .54550E-07** at limit **
   6  Prefactor     .10000E-03    11.791       -.16852E-05** at limit **
   7  norm          .89144        .75288       -.77257E-07    .46723E-04
   8  Prefactor     .10000E-03    5.1823       -.47613E-07** at limit **
   9  Prefactor     17.491        14.966       -.13937E-05    .64615E-04
  10  Prefactor     .10000E-03    16.201        .43163E-05** at limit **
  11  Prefactor     .10000E-03    61.876        .21643E-04** at limit **
  12  norm          .10000E-03    3.0732        .10664E-06** at limit **
  13  Prefactor     95.760        99.198       -.79185E-04    .10209E-03
  14  Prefactor     .10004E-03    30.273       -.23770E-04** at limit **
  15  Prefactor     .10000E-03    16.301        .18961E-05** at limit **
  16  Prefactor     .10000E-03    48.881        .69097E-04** at limit **
  17  norm          .10000E-03    1.1380        .10825E-06** at limit **
  18  norm          87.070        16.992        .32377E-05    .48011E-04
  19  Prefactor     90.723        83.059       -.22430E-04    .13041E-03
  20  Prefactor     .10000E-03    78.332       -.93070E-04** at limit **
  21  Normalizat    1.0231        .25368        .74911E-05    .49302E-04
  22  Prefactor     .74014        .23819        .15369E-05    .21799E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 43.0422
  norm       = 0.0001
  Prefactor  = 12.7952
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.891437
  Prefactor  = 0.0001
  Prefactor  = 17.491
  Prefactor  = 0.000100001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 95.7597
  Prefactor  = 0.00010004
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 87.0699
  Prefactor  = 90.7229
  Prefactor  = 0.000100002
  Normalizat = 1.02314
  Prefactor  = 0.740143
 **********
 **   18 **HESSE 
 **********

 FCN=   3371.261     FROM HESSE     STATUS=OK           332 CALLS     2712 TOTAL
                     EDM=   .20E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          43.042        45.529        .61110E-04   -1.4395    
   2  norm          .10000E-03    1.7518        .74617E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     12.795        110.34        .11198E-03   -1.4992    
   4  norm          .10000E-03    1.6174        .72060E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    7.1140        .15116E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    11.907        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          .89144        .74303        .41781E-04   -1.5519    
   8  Prefactor     .10000E-03    5.1835        .12910E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     17.491        14.910        .95780E-04   -1.4871    
  10  Prefactor     .10000E-03    16.213        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    62.023        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          .10000E-03    3.1546        .19867E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     95.760        98.901        .20528E-03   -1.3748    
  14  Prefactor     .10004E-03    29.972        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    16.308        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    49.024        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          .10000E-03    1.5261        .10994E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          87.070        15.645        .43047E-04   -1.3839    
  19  Prefactor     90.723        83.035        .42182E-04   -1.3800    
  20  Prefactor     .10000E-03    78.432        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Normalizat    1.0231        .30234        .25540E-03   -.92259    
  22  Prefactor     .74014        .28292        .28362E-03   -1.0197    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.04797e-09
Minuit parameter uncertainties:
  1  45.5657
  2  5.33261e-06
  3  75.3345
  4  1.09311e-06
  5  1.03615e-06
  6  1.88451e-05
  7  0.743034
  8  2.72497e-07
  9  14.9136
  10  0.000183963
  11  0.000204321
  12  2.69415e-05
  13  99.0721
  14  0.00219839
  15  5.48826e-06
  16  1.00772e-05
  17  1.47426e-05
  18  15.6455
  19  83.1413
  20  0.000716362
  21  0.302845
  22  0.283472
Done.

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

Extracting fit parameters...

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

GAL_V02
   Spectrum: PowerLaw
534    Prefactor:  7.401e-01  2.835e-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.023e+00  3.028e-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: 9.88e-08 ph cm-2 s-1
Energy Flux Upper Limit: 3.28e-05 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/8049/likelihoodResults_591580801_591840001_4FGL_J2331.0-2147_daily_bin1359.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) = 3371.26217432
delta logL = -0.00150777570434

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 3371.26066678
delta logL = -2.38322627411e-07

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10250E-03   1.0000         .10000E-03   10000.    
     2 'alpha     '    2.4522       1.0000          .0000       5.0000    
     3 'Normalizat'    1.0233       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .74008       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=   3371.261     FROM MIGRAD    STATUS=CONVERGED     52 CALLS      199 TOTAL
                     EDM=   .14E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    4.0378        .90712E-02** at limit **
   2  alpha         2.4728        3.6228        .41161       -.33867E-04
   3  Normalizat    1.0231        .24468        .42912E-01    .43101E-04
   4  Prefactor     .74014        .23566        .64113E-01    .48652E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  alpha      = 2.47282
  Normalizat = 1.02315
  Prefactor  = 0.740138
 **********
 **   18 **HESSE 
 **********

 FCN=   3371.261     FROM HESSE     STATUS=OK            33 CALLS      232 TOTAL
                     EDM=   .12E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    3.2588        .20160E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  alpha         2.4728        3.5456        .50000       -.10873E-01
   3  Normalizat    1.0231        .29044        .25540E-03   -.92259    
   4  Prefactor     .74014        .27950        .28363E-03   -1.0197    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.15137e-09
Minuit parameter uncertainties:
  1  6.52581e-06
  2  2.50021
  3  0.290891
  4  0.280034
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/8049': 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) = 3371.26066602
delta logL = 5.22570189787e-07

Extracting fit parameters...

4FGL J2331.0-2147
   Spectrum: LogParabola
418         norm:  1.000e-04  6.526e-06  1.000e-04  1.000e+04 ( 1.000e-12)
419        alpha:  2.473e+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:  7.401e-01  2.800e-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.023e+00  2.909e-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/8049/cmap_HighResolution_591580801_591840001_4FGL_J2331.0-2147_daily_bin1359.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='3.28e-05', job_status='DONE', photon_flux_upper_limit='9.88e-08', time_completed='2021-09-29 23:05:08.471390', job_id='8049', GAL2='0.74', fit_tolerance='1e-08', EG2='1.02', EG='1.02', time_epoch_completed='1632981908.47', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.74', dlogl='5.23e-07', ts2='-0.00', photon_index_error='0.00', photon_index='2.43' WHERE bin_id='1359' AND source_name='4FGL J2331.0-2147' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep 29 23:05:08 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0096>
Subject: Job 8049: <4FGL_J2331.0-2147_daily_bin1359> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2331.0-2147_daily_bin1359 352.763 -21.7953 591580801 591840001 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 :                                   467.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             280.89 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   519 sec.
    Turnaround time :                            523 sec.

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

