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


Performing analysis on: 4FGL_J2331.0-2147_daily_bin469
RA = 352.763, Dec = -21.7953
tmin = 360892801, tmax = 361152001
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='4674', job_status='RUN', time_executed='2021-09-29 22:49:39.966834', time_epoch_executed='1632980979.97' WHERE source_name='4FGL J2331.0-2147' and cadence='daily' and bin_id='469'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/4674

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/4674/ft1_4FGL_J2331.0-2147_daily_bin469.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/4674/ft2_4FGL_J2331.0-2147_daily_bin469.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/4674/ft1_4FGL_J2331.0-2147_daily_bin469.fits outfile=/scratch/kocevski/4674/ft1_filteredMKT_4FGL_J2331.0-2147_daily_bin469.fits ra=352.763 dec=-21.7953 rad=12.0 tmin=360892801.0 tmax=361152001.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.51
user 3.29
sys 0.21

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/4674/ft1_filtered_4FGL_J2331.0-2147_daily_bin469.fits" evtable="EVENTS" scfile=/scratch/kocevski/4674/ft2_4FGL_J2331.0-2147_daily_bin469.fits sctable="SC_DATA" outfile=/scratch/kocevski/4674/ltcube_360892801_361152001_4FGL_J2331.0-2147_daily_bin469.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/4674/ft2_4FGL_J2331.0-2147_daily_bin469.fits
.....................!
real 11.90
user 11.55
sys 0.32

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/4674/ft1_filtered_4FGL_J2331.0-2147_daily_bin469.fits evtable="EVENTS" scfile=/scratch/kocevski/4674/ft2_4FGL_J2331.0-2147_daily_bin469.fits sctable="SC_DATA" expcube=/scratch/kocevski/4674/ltcube_360892801_361152001_4FGL_J2331.0-2147_daily_bin469.fits outfile=/scratch/kocevski/4674/expmap_360892801_361152001_4FGL_J2331.0-2147_daily_bin469.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/4674/ltcube_360892801_361152001_4FGL_J2331.0-2147_daily_bin469.fits
.....................!
real 190.95
user 185.70
sys 4.94

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/4674/ft1_filtered_4FGL_J2331.0-2147_daily_bin469.fits scfile=/scratch/kocevski/4674/ft2_4FGL_J2331.0-2147_daily_bin469.fits outfile=/scratch/kocevski/4674/cmap_360892801_361152001_4FGL_J2331.0-2147_daily_bin469.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.14

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

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

This is gtbin version HEAD
real 0.55
user 0.37
sys 0.17

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/4674/ft1_filtered_4FGL_J2331.0-2147_daily_bin469.fits evtable="EVENTS" scfile=/scratch/kocevski/4674/ft2_4FGL_J2331.0-2147_daily_bin469.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/4674/Model_4FGL_J2331.0-2147_daily_bin469.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/4674/ft1_filtered_4FGL_J2331.0-2147_daily_bin469.fits.....................!
real 57.89
user 56.53
sys 1.25

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    29.298       1.0000         .10000E-03   10000.    
     2 'norm      '    1.5691       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     4 'norm      '    22.196       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10023E-03   1.0000         .10000E-03   10000.    
     7 'norm      '    3.8975       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .15422E-02   1.0000         .10000E-03   10000.    
    10 'Prefactor '    7.4594       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    .10243E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10016E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .73576       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    5.8949       1.0000         .10000E-03   10000.    
    18 'norm      '    13.521       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    21 'Normalizat'    1.1281       1.0000         .10000E-01   10.000    
    22 'Prefactor '    .87988       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=   7721.016     FROM MIGRAD    STATUS=CONVERGED    469 CALLS     2023 TOTAL
                     EDM=   .23E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .4%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          29.286        28.625       -.91304E-05    .59318E-06
   2  norm          1.5692        1.6390       -.79150E-07   -.15660E-03
   3  Prefactor     .10000E-03    18.630        .21333E-05** at limit **
   4  norm          22.197        6.4206        .10922E-05    .35806E-03
   5  Prefactor     .10000E-03    15.184       -.17535E-05** at limit **
   6  Prefactor     .10000E-03    10.200       -.93495E-07** at limit **
   7  norm          3.8986        .93310       -.79939E-07    .28975E-02
   8  Prefactor     .10000E-03    4.3804       -.63940E-07** at limit **
   9  Prefactor     .10006E-03    6.2897       -.13711E-05** at limit **
  10  Prefactor     7.4567        16.083       -.82635E-06   -.35825E-04
  11  Prefactor     .10000E-03    15.594        .14576E-05** at limit **
  12  norm          .10000E-03    1.7960        .69019E-07** at limit **
  13  Prefactor     .10000E-03    18.320        .36377E-05** at limit **
  14  Prefactor     .10000E-03    3.9475       -.95889E-07** at limit **
  15  Prefactor     .63276        13.359       -.18435E-05    .30619E-04
  16  Prefactor     .10000E-03    19.580       -.25455E-05** at limit **
  17  norm          5.8952        1.0605       -.80283E-07    .32259E-03
  18  norm          13.520        6.5837        .77236E-06   -.92923E-04
  19  Prefactor     .10000E-03    30.447        .33941E-05** at limit **
  20  Prefactor     .10000E-03    19.669       -.31218E-05** at limit **
  21  Normalizat    1.1282        .16370        .14028E-06    .24044E-03
  22  Prefactor     .87987        .16265        .33826E-06    .16755E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 29.2863
  norm       = 1.56924
  Prefactor  = 0.0001
  norm       = 22.1967
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 3.89864
  Prefactor  = 0.0001
  Prefactor  = 0.000100062
  Prefactor  = 7.45669
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.632758
  Prefactor  = 0.0001
  norm       = 5.89518
  norm       = 13.5199
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Normalizat = 1.12817
  Prefactor  = 0.879873
 **********
 **   18 **HESSE 
 **********

 FCN=   7721.016     FROM HESSE     STATUS=OK           338 CALLS     2361 TOTAL
                     EDM=   .23E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          29.286        28.643        .74019E-04   -1.4625    
   2  norm          1.5692        1.6300        .11193E-03   -1.5457    
   3  Prefactor     .10000E-03    18.659        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  norm          22.197        6.4471        .85019E-04   -1.4765    
   5  Prefactor     .10000E-03    15.307        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    10.317        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          3.8986        .89019        .36108E-04   -1.5313    
   8  Prefactor     .10000E-03    4.4245        .17959E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10006E-03    30.228        .40018E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     7.4567        16.103        .14684E-03   -1.5162    
  11  Prefactor     .10000E-03    15.602        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          .10000E-03    1.8741        .22949E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    18.334        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    3.9516        .17050E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .63276        107.86        .61475E-02   -1.5549    
  16  Prefactor     .10000E-03    19.581        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          5.8952        1.0714        .33064E-04   -1.5222    
  18  norm          13.520        6.6401        .10893E-03   -1.4972    
  19  Prefactor     .10000E-03    30.484        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    19.688        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Normalizat    1.1282        .19656        .25379E-03   -.88852    
  22  Prefactor     .87987        .19606        .28342E-03   -.96848    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.32487e-09
Minuit parameter uncertainties:
  1  28.6567
  2  1.63001
  3  9.29572e-06
  4  6.44726
  5  5.2412e-05
  6  3.61529e-05
  7  0.890198
  8  1.84671e-06
  9  0.00273094
  10  16.1124
  11  1.9744e-06
  12  3.00482e-06
  13  5.66807e-06
  14  1.11832e-06
  15  16.5516
  16  8.91876e-07
  17  1.07138
  18  6.64047
  19  6.47315e-06
  20  1.07216e-06
  21  0.196693
  22  0.196218
Done.

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

Extracting fit parameters...

4FGL J2331.0-2147
   Spectrum: LogParabola
418         norm:  1.000e-04  3.005e-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.799e-01  1.962e-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.128e+00  1.967e-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.48e-08 ph cm-2 s-1
Energy Flux Upper Limit: 1.82e-05 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/4674/likelihoodResults_360892801_361152001_4FGL_J2331.0-2147_daily_bin469.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) = 7721.01823818
delta logL = -0.00254006157229

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 7721.01569708
delta logL = 1.04141236079e-06

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.4660       1.0000          .0000       5.0000    
     3 'Normalizat'    1.1282       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .87990       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=   7720.500     FROM MIGRAD    STATUS=CONVERGED    156 CALLS      313 TOTAL
                     EDM=   .45E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .49518E-01    .63643E-01    .20270E-03    .23429E-01
   2  alpha         5.0000        3.3834        .50000    ** at limit **
   3  Normalizat    1.0663        .20569        .25996E-03    .20659E-03
   4  Prefactor     .91721        .19996        .27796E-03   -.11677E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0495184
  alpha      = 5
  Normalizat = 1.06633
  Prefactor  = 0.917213
 **********
 **   18 **HESSE 
 **********

 FCN=   7720.500     FROM HESSE     STATUS=OK            31 CALLS      344 TOTAL
                     EDM=   .45E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .49518E-01    .61052E-01    .40540E-04   -1.5664    
   2  alpha         5.0000        3.3236        .50000        1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Normalizat    1.0663        .20623        .10399E-04   -.90840    
   4  Prefactor     .91721        .20031        .11118E-04   -.95542    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.47432e-10
Minuit parameter uncertainties:
  1  0.0610521
  2  2.33973e-06
  3  0.20639
  4  0.200473
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/4674': 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) = 7720.50045479
delta logL = 0.515243327529

Extracting fit parameters...

4FGL J2331.0-2147
   Spectrum: LogParabola
418         norm:  4.952e-02  6.105e-02  1.000e-04  1.000e+04 ( 1.000e-12)
419        alpha:  5.000e+00  2.340e-06  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:  9.172e-01  2.005e-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.066e+00  2.064e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 1.10
Ra Dec: 352.763 -21.795
Photon Index (Free Index): 5.00 +/- 0.00
Photon Flux (Free Index): 4.74e-08 +/- 5.81e-08
Energy Flux (Free Index): 6.55e-06 +/- 8.06e-06

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/4674/cmap_HighResolution_360892801_361152001_4FGL_J2331.0-2147_daily_bin469.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.82e-05', comment='SUCCESS', energy_flux2='6.55e-06', dlogl='5.15e-01', photon_flux2='4.74e-08', job_status='DONE', time_completed='2021-09-29 23:00:38.876018', photon_index_error2='0.00', photon_index2='5.00', ts='-0.00', fit_tolerance='1e-08', GAL='0.88', photon_index_error='0.00', photon_flux_upper_limit='5.48e-08', energy_flux_error2='8.06e-06', EG='1.13', time_epoch_completed='1632981638.88', return_code='0', job_id='4674', GAL2='0.92', EG2='1.07', return_code2='0', photon_flux_error2='5.81e-08', ts2='1.10', photon_index='2.43' WHERE bin_id='469' AND source_name='4FGL J2331.0-2147' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep 29 23:00:38 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0082>
Subject: Job 4674: <4FGL_J2331.0-2147_daily_bin469> in cluster <slac> Done

Job <4FGL_J2331.0-2147_daily_bin469> was submitted from host <rhel6-64h> by user <kocevski> in cluster <slac> at Wed Sep 29 22:45:47 2021
Job was executed on host(s) <bullet0082>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Sep 29 22:45:48 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:45:48 2021
Terminated at Wed Sep 29 23:00:39 2021
Results reported at Wed Sep 29 23:00:39 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2331.0-2147_daily_bin469 352.763 -21.7953 360892801 361152001 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 :                                   659.00 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             245.00 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   891 sec.
    Turnaround time :                            892 sec.

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

