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


Performing analysis on: 4FGL_J2331.0-2147_daily_bin1511
RA = 352.763, Dec = -21.7953
tmin = 630979201, tmax = 631238401
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='9178', job_status='RUN', time_executed='2021-09-29 23:00:49.512761', time_epoch_executed='1632981649.51' WHERE source_name='4FGL J2331.0-2147' and cadence='daily' and bin_id='1511'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/9178

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/9178/ft1_4FGL_J2331.0-2147_daily_bin1511.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/9178/ft2_4FGL_J2331.0-2147_daily_bin1511.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/9178/ft1_4FGL_J2331.0-2147_daily_bin1511.fits outfile=/scratch/kocevski/9178/ft1_filteredMKT_4FGL_J2331.0-2147_daily_bin1511.fits ra=352.763 dec=-21.7953 rad=12.0 tmin=630979201.0 tmax=631238401.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 2.85
user 2.65
sys 0.19

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/9178/ft2_4FGL_J2331.0-2147_daily_bin1511.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/9178/ft1_filteredMKT_4FGL_J2331.0-2147_daily_bin1511.fits evtable="EVENTS" outfile="/scratch/kocevski/9178/ft1_filtered_4FGL_J2331.0-2147_daily_bin1511.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.49
user 0.32
sys 0.16

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/9178/ft1_filtered_4FGL_J2331.0-2147_daily_bin1511.fits" evtable="EVENTS" scfile=/scratch/kocevski/9178/ft2_4FGL_J2331.0-2147_daily_bin1511.fits sctable="SC_DATA" outfile=/scratch/kocevski/9178/ltcube_630979201_631238401_4FGL_J2331.0-2147_daily_bin1511.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/9178/ft2_4FGL_J2331.0-2147_daily_bin1511.fits
.....................!
real 12.24
user 11.83
sys 0.34

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/9178/ft1_filtered_4FGL_J2331.0-2147_daily_bin1511.fits evtable="EVENTS" scfile=/scratch/kocevski/9178/ft2_4FGL_J2331.0-2147_daily_bin1511.fits sctable="SC_DATA" expcube=/scratch/kocevski/9178/ltcube_630979201_631238401_4FGL_J2331.0-2147_daily_bin1511.fits outfile=/scratch/kocevski/9178/expmap_630979201_631238401_4FGL_J2331.0-2147_daily_bin1511.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/9178/ltcube_630979201_631238401_4FGL_J2331.0-2147_daily_bin1511.fits
.....................!
real 190.32
user 185.29
sys 4.73

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/9178/ft1_filtered_4FGL_J2331.0-2147_daily_bin1511.fits scfile=/scratch/kocevski/9178/ft2_4FGL_J2331.0-2147_daily_bin1511.fits outfile=/scratch/kocevski/9178/cmap_630979201_631238401_4FGL_J2331.0-2147_daily_bin1511.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.36
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/9178/ft1_filtered_4FGL_J2331.0-2147_daily_bin1511.fits scfile=/scratch/kocevski/9178/ft2_4FGL_J2331.0-2147_daily_bin1511.fits outfile=/scratch/kocevski/9178/cmap_HighResolution_630979201_631238401_4FGL_J2331.0-2147_daily_bin1511.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/9178/ft1_filtered_4FGL_J2331.0-2147_daily_bin1511.fits evtable="EVENTS" scfile=/scratch/kocevski/9178/ft2_4FGL_J2331.0-2147_daily_bin1511.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/9178/Model_4FGL_J2331.0-2147_daily_bin1511.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/9178/ft1_filtered_4FGL_J2331.0-2147_daily_bin1511.fits.....................!
real 54.96
user 53.61
sys 1.24

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     2 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     4 'norm      '    .23845E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    13.907       1.0000         .10000E-03   10000.    
     7 'norm      '    2.7940       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    13.837       1.0000         .10000E-03   10000.    
    12 'norm      '    1.8444       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    16.432       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10017E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    18 'norm      '    27.389       1.0000         .10000E-03   10000.    
    19 'Prefactor '    20.989       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    21 'Normalizat'    1.0317       1.0000         .10000E-01   10.000    
    22 'Prefactor '    .82448       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=   7367.425     FROM MIGRAD    STATUS=CONVERGED    474 CALLS     2042 TOTAL
                     EDM=   .48E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .2%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    7.9666       -.22636E-05** at limit **
   2  norm          .10000E-03    .68631       -.46593E-07** at limit **
   3  Prefactor     .10000E-03    11.833        .37934E-05** at limit **
   4  norm          .10000E-03    2.7077        .28847E-06** at limit **
   5  Prefactor     .10000E-03    12.267        .24765E-06** at limit **
   6  Prefactor     13.912        12.931       -.11253E-05   -.22804E-03
   7  norm          2.7939        1.0272        .10606E-06   -.12970E-02
   8  Prefactor     .10000E-03    4.4379       -.91198E-08** at limit **
   9  Prefactor     .10000E-03    4.6529        .94469E-07** at limit **
  10  Prefactor     .10000E-03    7.4493        .20799E-05** at limit **
  11  Prefactor     13.819        29.039       -.20017E-04   -.56531E-05
  12  norm          1.8448        1.9381       -.10698E-06   -.30986E-03
  13  Prefactor     .10000E-03    12.522       -.21748E-05** at limit **
  14  Prefactor     .10000E-03    6.3880       -.30143E-06** at limit **
  15  Prefactor     16.430        18.533       -.46953E-06   -.38687E-05
  16  Prefactor     .10000E-03    56.401        .11944E-05** at limit **
  17  norm          .10000E-03    .12697       -.63233E-08** at limit **
  18  norm          27.388        5.3969       -.48131E-07    .52068E-04
  19  Prefactor     20.989        23.700       -.72066E-07    .24851E-05
  20  Prefactor     .10000E-03    12.455       -.13883E-05** at limit **
  21  Normalizat    1.0317        .15443        .12201E-05   -.84507E-04
  22  Prefactor     .82444        .15126       -.15990E-06    .17140E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 13.912
  norm       = 2.79394
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 13.8193
  norm       = 1.84484
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 16.4296
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 27.3885
  Prefactor  = 20.9888
  Prefactor  = 0.0001
  Normalizat = 1.03169
  Prefactor  = 0.824436
 **********
 **   18 **HESSE 
 **********

 FCN=   7367.425     FROM HESSE     STATUS=OK           342 CALLS     2384 TOTAL
                     EDM=   .10E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    7.9689        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          .10000E-03    .68988        .69429E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    11.843        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  norm          .10000E-03    26.756        .25011E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    12.300        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     13.912        13.129        .10740E-03   -1.4962    
   7  norm          2.7939        1.0875        .37939E-04   -1.5374    
   8  Prefactor     .10000E-03    4.4571        .17657E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    4.6760        .18063E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    7.4534        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     13.819        29.033        .10768E-03   -1.4964    
  12  norm          1.8448        1.9274        .11742E-03   -1.5436    
  13  Prefactor     .10000E-03    12.535        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    6.4191        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     16.430        18.518        .98804E-04   -1.4897    
  16  Prefactor     .10000E-03    56.507        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          .10000E-03    .13136        .59230E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          27.388        5.3656        .76550E-04   -1.4661    
  19  Prefactor     20.989        23.701        .87427E-04   -1.4791    
  20  Prefactor     .10000E-03    12.459        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Normalizat    1.0317        .17944        .23268E-03   -.91976    
  22  Prefactor     .82444        .17535        .25743E-03   -.98834    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.02839e-10
Minuit parameter uncertainties:
  1  2.30743e-06
  2  9.07121e-08
  3  2.07742e-07
  4  0.000171757
  5  3.41622e-05
  6  13.1316
  7  1.08753
  8  4.79147e-06
  9  7.75733e-06
  10  3.52345e-06
  11  29.0626
  12  1.92747
  13  6.12928e-06
  14  6.61231e-06
  15  18.5246
  16  1.19381e-06
  17  1.86038e-07
  18  5.36573
  19  23.7111
  20  2.28957e-06
  21  0.179549
  22  0.175467
Done.

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

Extracting fit parameters...

4FGL J2331.0-2147
   Spectrum: LogParabola
418         norm:  1.845e+00  1.927e+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:  8.244e-01  1.755e-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.032e+00  1.795e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 1.84
Ra Dec: 352.763 -21.795
Photon Index (Fixed Index): 2.43 +/- 0.00
Photon Flux (Fixed Index): 1.98e-08 +/- 2.07e-08
Energy Flux (Fixed Index): 6.57e-06 +/- 6.87e-06

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

Saving results to:
/scratch/kocevski/9178/likelihoodResults_630979201_631238401_4FGL_J2331.0-2147_daily_bin1511.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) = 7367.20536157
delta logL = 0.219524444614

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 7367.16476667
delta logL = 0.26011935066

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    2.5068       1.0000         .10000E-03   10000.    
     2 'alpha     '    1.6719       1.0000          .0000       5.0000    
     3 'Normalizat'    1.0451       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .81506       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=   7367.165     FROM MIGRAD    STATUS=CONVERGED     50 CALLS      201 TOTAL
                     EDM=   .56E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          2.5049        7.2207        .64522E-02    .11059E-03
   2  alpha         1.6711        1.8193        .44448       -.21592E-04
   3  Normalizat    1.0451        .15789        .40898E-01    .70365E-06
   4  Prefactor     .81504        .15578        .43913E-01    .17456E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 2.50495
  alpha      = 1.67111
  Normalizat = 1.04508
  Prefactor  = 0.815043
 **********
 **   18 **HESSE 
 **********

 FCN=   7367.165     FROM HESSE     STATUS=OK            33 CALLS      234 TOTAL
                     EDM=   .11E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          2.5049        2.5152        .13242E-03   -1.5391    
   2  alpha         1.6711        .86574        .25380E-01   -.33795    
   3  Normalizat    1.0451        .17362        .23136E-03   -.91535    
   4  Prefactor     .81504        .17437        .25869E-03   -.99176    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.14183e-09
Minuit parameter uncertainties:
  1  2.51531
  2  0.886463
  3  0.173714
  4  0.174488
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/9178': 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) = 7367.16476606
delta logL = 0.260119952741

Extracting fit parameters...

4FGL J2331.0-2147
   Spectrum: LogParabola
418         norm:  2.505e+00  2.515e+00  1.000e-04  1.000e+04 ( 1.000e-12)
419        alpha:  1.671e+00  8.865e-01  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.150e-01  1.745e-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.045e+00  1.737e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 2.36
Ra Dec: 352.763 -21.795
Photon Index (Free Index): 1.67 +/- 0.89
Photon Flux (Free Index): 1.13e-08 +/- 1.43e-08
Energy Flux (Free Index): 1.16e-05 +/- 1.67e-05

Creating a high resolution counts map...
INFO: Auto-setting vmin to -1.000e-01 [aplpy.core]
INFO: Auto-setting vmax to  1.110e+00 [aplpy.core]
Saving /scratch/kocevski/9178/cmap_HighResolution_630979201_631238401_4FGL_J2331.0-2147_daily_bin1511.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='2.40e-05', comment='SUCCESS', photon_flux='1.98e-08', energy_flux2='1.16e-05', photon_flux_error='2.07e-08', dlogl='2.60e-01', energy_flux='6.57e-06', photon_flux2='1.13e-08', job_status='DONE', time_completed='2021-09-29 23:11:24.579393', photon_index_error2='0.89', photon_index2='1.67', ts='1.84', fit_tolerance='1e-08', GAL='0.82', photon_index_error='0.00', photon_flux_upper_limit='7.22e-08', energy_flux_error2='1.67e-05', EG='1.03', time_epoch_completed='1632982284.58', return_code='0', job_id='9178', GAL2='0.82', EG2='1.05', return_code2='0', energy_flux_error='6.87e-06', photon_flux_error2='1.43e-08', ts2='2.36', photon_index='2.43' WHERE bin_id='1511' AND source_name='4FGL J2331.0-2147' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep 29 23:11:24 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0110>
Subject: Job 9178: <4FGL_J2331.0-2147_daily_bin1511> in cluster <slac> Done

Job <4FGL_J2331.0-2147_daily_bin1511> was submitted from host <rhel6-64k> by user <kocevski> in cluster <slac> at Wed Sep 29 23:00:25 2021
Job was executed on host(s) <bullet0110>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Sep 29 23:00:26 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:26 2021
Terminated at Wed Sep 29 23:11:24 2021
Results reported at Wed Sep 29 23:11:24 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2331.0-2147_daily_bin1511 352.763 -21.7953 630979201 631238401 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 :                                   632.00 sec.
    Max Memory :                                 1093 MB
    Average Memory :                             299.57 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   658 sec.
    Turnaround time :                            659 sec.

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

