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


Performing analysis on: 4FGL_J2331.0-2147_daily_bin1488
RA = 352.763, Dec = -21.7953
tmin = 625017601, tmax = 625276801
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='9146', job_status='RUN', time_executed='2021-09-29 23:00:45.767834', time_epoch_executed='1632981645.77' WHERE source_name='4FGL J2331.0-2147' and cadence='daily' and bin_id='1488'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/9146

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

Retrieving the FT1 file...

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

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

Retrieving 48 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/9146/ft1_4FGL_J2331.0-2147_daily_bin1488.fits


Retrieving the FT1 file...

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

Retrieving 48 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/9146/ft2_4FGL_J2331.0-2147_daily_bin1488.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/9146/ft1_4FGL_J2331.0-2147_daily_bin1488.fits outfile=/scratch/kocevski/9146/ft1_filteredMKT_4FGL_J2331.0-2147_daily_bin1488.fits ra=352.763 dec=-21.7953 rad=12.0 tmin=625017601.0 tmax=625276801.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.61
user 3.34
sys 0.23

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/9146/ft2_4FGL_J2331.0-2147_daily_bin1488.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/9146/ft1_filteredMKT_4FGL_J2331.0-2147_daily_bin1488.fits evtable="EVENTS" outfile="/scratch/kocevski/9146/ft1_filtered_4FGL_J2331.0-2147_daily_bin1488.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/9146/ft1_filtered_4FGL_J2331.0-2147_daily_bin1488.fits" evtable="EVENTS" scfile=/scratch/kocevski/9146/ft2_4FGL_J2331.0-2147_daily_bin1488.fits sctable="SC_DATA" outfile=/scratch/kocevski/9146/ltcube_625017601_625276801_4FGL_J2331.0-2147_daily_bin1488.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/9146/ft2_4FGL_J2331.0-2147_daily_bin1488.fits
.....................!
real 12.00
user 11.64
sys 0.33

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/9146/ft1_filtered_4FGL_J2331.0-2147_daily_bin1488.fits evtable="EVENTS" scfile=/scratch/kocevski/9146/ft2_4FGL_J2331.0-2147_daily_bin1488.fits sctable="SC_DATA" expcube=/scratch/kocevski/9146/ltcube_625017601_625276801_4FGL_J2331.0-2147_daily_bin1488.fits outfile=/scratch/kocevski/9146/expmap_625017601_625276801_4FGL_J2331.0-2147_daily_bin1488.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/9146/ltcube_625017601_625276801_4FGL_J2331.0-2147_daily_bin1488.fits
.....................!
real 190.36
user 185.66
sys 4.38

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/9146/ft1_filtered_4FGL_J2331.0-2147_daily_bin1488.fits scfile=/scratch/kocevski/9146/ft2_4FGL_J2331.0-2147_daily_bin1488.fits outfile=/scratch/kocevski/9146/cmap_625017601_625276801_4FGL_J2331.0-2147_daily_bin1488.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.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/9146/ft1_filtered_4FGL_J2331.0-2147_daily_bin1488.fits scfile=/scratch/kocevski/9146/ft2_4FGL_J2331.0-2147_daily_bin1488.fits outfile=/scratch/kocevski/9146/cmap_HighResolution_625017601_625276801_4FGL_J2331.0-2147_daily_bin1488.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.40
sys 0.13

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/9146/ft1_filtered_4FGL_J2331.0-2147_daily_bin1488.fits evtable="EVENTS" scfile=/scratch/kocevski/9146/ft2_4FGL_J2331.0-2147_daily_bin1488.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/9146/Model_4FGL_J2331.0-2147_daily_bin1488.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/9146/ft1_filtered_4FGL_J2331.0-2147_daily_bin1488.fits.....................!
real 50.59
user 49.36
sys 1.14

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10041E-03   1.0000         .10000E-03   10000.    
     2 'norm      '    .10023E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    41.762       1.0000         .10000E-03   10000.    
     4 'norm      '    .10005E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10847E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    6.3534       1.0000         .10000E-03   10000.    
     7 'norm      '    3.3889       1.0000         .10000E-03   10000.    
     8 'Prefactor '    4.6389       1.0000         .10000E-03   10000.    
     9 'Prefactor '    7.0083       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    8.3262       1.0000         .10000E-03   10000.    
    12 'norm      '    .11418E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    16.722       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10030E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .22269E-02   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10105E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    18 'norm      '    45.533       1.0000         .10000E-03   10000.    
    19 'Prefactor '    29.409       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    21 'Normalizat'    1.1086       1.0000         .10000E-01   10.000    
    22 'Prefactor '    .53628       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=   6685.190     FROM MIGRAD    STATUS=CONVERGED    867 CALLS     2775 TOTAL
                     EDM=   .25E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    30.462        .18142E-02** at limit **
   2  norm          .10000E-03    1.2067        .87040E-03** at limit **
   3  Prefactor     41.787        45.529        .62031E-04    .33173E-04
   4  norm          .10000E-03    4.7739        .34131E-03** at limit **
   5  Prefactor     .10000E-03    37.029        .36285E-03** at limit **
   6  Prefactor     6.3331        12.874        .15924E-03    .13565E-03
   7  norm          3.3896        1.1368        .32262E-04    .63993E-03
   8  Prefactor     4.6393        4.8306        .17861E-03    .92293E-05
   9  Prefactor     7.0081        7.7729        .15154E-03    .48164E-04
  10  Prefactor     .10000E-03    6.4032        .18142E-02** at limit **
  11  Prefactor     8.3302        31.715        .69467E-03   -.28149E-05
  12  norm          .10000E-03    2.6169        .18950E-02** at limit **
  13  Prefactor     16.720        32.418        .97944E-04    .10098E-04
  14  Prefactor     .10000E-03    4.9788        .17796E-02** at limit **
  15  Prefactor     .10000E-03    23.339        .98157E-01** at limit **
  16  Prefactor     .10000E-03    199.76        .18142E-02** at limit **
  17  norm          .10000E-03    .58425        .84541E-03** at limit **
  18  norm          45.522        6.7532        .59417E-04    .66202E-04
  19  Prefactor     29.405        24.072        .73880E-04   -.20005E-05
  20  Prefactor     .10000E-03    11.035        .18142E-02** at limit **
  21  Normalizat    1.1086        .18200        .21227E-03    .20888E-05
  22  Prefactor     .53615        .17216        .29273E-03    .36195E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 41.7873
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 6.33314
  norm       = 3.3896
  Prefactor  = 4.63931
  Prefactor  = 7.00814
  Prefactor  = 0.0001
  Prefactor  = 8.33023
  norm       = 0.0001
  Prefactor  = 16.72
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 45.5224
  Prefactor  = 29.4052
  Prefactor  = 0.0001
  Normalizat = 1.10857
  Prefactor  = 0.536153
 **********
 **   18 **HESSE 
 **********

 FCN=   6685.190     FROM HESSE     STATUS=OK           330 CALLS     3105 TOTAL
                     EDM=   .25E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    30.471        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          .10000E-03    1.2067        .17408E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     41.787        45.537        .24812E-05   -1.4414    
   4  norm          .10000E-03    4.7741        .68261E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    37.030        .72569E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     6.3331        12.866        .63696E-05   -1.5205    
   7  norm          3.3896        1.1364        .12905E-05   -1.5340    
   8  Prefactor     4.6393        4.8306        .71445E-05   -1.5277    
   9  Prefactor     7.0081        7.7718        .60615E-05   -1.5178    
  10  Prefactor     .10000E-03    6.4033        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     8.3302        31.711        .27787E-04   -1.5131    
  12  norm          .10000E-03    2.6237        .37900E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     16.720        32.414        .39177E-05   -1.4890    
  14  Prefactor     .10000E-03    4.9791        .35591E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    21.537        .10364       -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    199.84        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          .10000E-03    .58588        .16908E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          45.522        6.7506        .23767E-05   -1.4358    
  19  Prefactor     29.405        24.074        .29552E-05   -1.4623    
  20  Prefactor     .10000E-03    11.035        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Normalizat    1.1086        .18217        .84906E-05   -.89477    
  22  Prefactor     .53615        .17233        .11709E-04   -1.1035    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.52379e-10
Minuit parameter uncertainties:
  1  2.02628e-05
  2  1.38345e-05
  3  45.5748
  4  6.1099e-06
  5  6.86231e-05
  6  12.8719
  7  1.13644
  8  4.83099
  9  7.77294
  10  1.41397e-06
  11  31.7751
  12  7.11152e-05
  13  32.4477
  14  9.29516e-07
  15  4.46613e-06
  16  2.27873e-05
  17  7.92616e-07
  18  6.75074
  19  24.0822
  20  1.34666e-07
  21  0.182275
  22  0.172498
Done.

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

Extracting fit parameters...

4FGL J2331.0-2147
   Spectrum: LogParabola
418         norm:  1.000e-04  7.112e-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:  5.362e-01  1.725e-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.109e+00  1.823e-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: 5.85e-08 ph cm-2 s-1
Energy Flux Upper Limit: 1.94e-05 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/9146/likelihoodResults_625017601_625276801_4FGL_J2331.0-2147_daily_bin1488.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) = 6685.19229967
delta logL = -0.00182108899207

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6685.19047907
delta logL = -4.8253332352e-07

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10240E-03   1.0000         .10000E-03   10000.    
     2 'alpha     '    2.4737       1.0000          .0000       5.0000    
     3 'Normalizat'    1.1084       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .53643       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=   6685.077     FROM MIGRAD    STATUS=CONVERGED    164 CALLS      324 TOTAL
                     EDM=   .21E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .96373E-01    .64957        .19282E-02   -.37227E-02
   2  alpha         4.2130        4.1910        .16462        .60542E-04
   3  Normalizat    1.0838        .18321        .21227E-03   -.74125E-04
   4  Prefactor     .54937        .17498        .29273E-03    .15612E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 0.096373
  alpha      = 4.21295
  Normalizat = 1.0838
  Prefactor  = 0.549368
 **********
 **   18 **HESSE 
 **********

 FCN=   6685.077     FROM HESSE     STATUS=OK            27 CALLS      351 TOTAL
                     EDM=   .31E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .96373E-01    .67001        .51277E-04   -1.5770    
   2  alpha         4.2130        4.1781        .45986E-02    .75485    
   3  Normalizat    1.0838        .17984        .84907E-05   -.90274    
   4  Prefactor     .54937        .17326        .11709E-04   -1.0976    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.08495e-11
Minuit parameter uncertainties:
  1  0.507958
  2  2.68055
  3  0.179946
  4  0.173423
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/9146': 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) = 6685.07740525
delta logL = 0.113073334155

Extracting fit parameters...

4FGL J2331.0-2147
   Spectrum: LogParabola
418         norm:  9.637e-02  5.080e-01  1.000e-04  1.000e+04 ( 1.000e-12)
419        alpha:  4.213e+00  2.681e+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.494e-01  1.734e-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.084e+00  1.799e-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 -9.398e-02 [aplpy.core]
INFO: Auto-setting vmax to  1.043e+00 [aplpy.core]
Saving /scratch/kocevski/9146/cmap_HighResolution_625017601_625276801_4FGL_J2331.0-2147_daily_bin1488.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.94e-05', job_status='DONE', photon_flux_upper_limit='5.85e-08', time_completed='2021-09-29 23:12:04.518780', job_id='9146', GAL2='0.55', fit_tolerance='1e-08', EG2='1.08', EG='1.11', time_epoch_completed='1632982324.52', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.54', dlogl='1.13e-01', ts2='0.25', photon_index_error='0.00', photon_index='2.43' WHERE bin_id='1488' AND source_name='4FGL J2331.0-2147' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep 29 23:12:04 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0282>
Subject: Job 9146: <4FGL_J2331.0-2147_daily_bin1488> in cluster <slac> Done

Job <4FGL_J2331.0-2147_daily_bin1488> was submitted from host <rhel6-64k> by user <kocevski> in cluster <slac> at Wed Sep 29 23:00:23 2021
Job was executed on host(s) <bullet0282>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Sep 29 23:00:24 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Wed Sep 29 23:00:24 2021
Terminated at Wed Sep 29 23:12:04 2021
Results reported at Wed Sep 29 23:12:04 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2331.0-2147_daily_bin1488 352.763 -21.7953 625017601 625276801 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 :                                   671.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             340.35 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   700 sec.
    Turnaround time :                            701 sec.

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

