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


Performing analysis on: 4FGL_J2331.0-2147_daily_bin1098
RA = 352.763, Dec = -21.7953
tmin = 523929601, tmax = 524188801
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='7625', job_status='RUN', time_executed='2021-09-29 22:59:51.654243', time_epoch_executed='1632981591.65' WHERE source_name='4FGL J2331.0-2147' and cadence='daily' and bin_id='1098'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/7625

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/7625/ft1_4FGL_J2331.0-2147_daily_bin1098.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/7625/ft2_4FGL_J2331.0-2147_daily_bin1098.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/7625/ft1_4FGL_J2331.0-2147_daily_bin1098.fits outfile=/scratch/kocevski/7625/ft1_filteredMKT_4FGL_J2331.0-2147_daily_bin1098.fits ra=352.763 dec=-21.7953 rad=12.0 tmin=523929601.0 tmax=524188801.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.50
user 3.28
sys 0.18

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/7625/ft1_filtered_4FGL_J2331.0-2147_daily_bin1098.fits" evtable="EVENTS" scfile=/scratch/kocevski/7625/ft2_4FGL_J2331.0-2147_daily_bin1098.fits sctable="SC_DATA" outfile=/scratch/kocevski/7625/ltcube_523929601_524188801_4FGL_J2331.0-2147_daily_bin1098.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/7625/ft2_4FGL_J2331.0-2147_daily_bin1098.fits
.....................!
real 11.83
user 11.48
sys 0.32

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/7625/ft1_filtered_4FGL_J2331.0-2147_daily_bin1098.fits evtable="EVENTS" scfile=/scratch/kocevski/7625/ft2_4FGL_J2331.0-2147_daily_bin1098.fits sctable="SC_DATA" expcube=/scratch/kocevski/7625/ltcube_523929601_524188801_4FGL_J2331.0-2147_daily_bin1098.fits outfile=/scratch/kocevski/7625/expmap_523929601_524188801_4FGL_J2331.0-2147_daily_bin1098.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/7625/ltcube_523929601_524188801_4FGL_J2331.0-2147_daily_bin1098.fits
.....................!
real 191.04
user 184.80
sys 5.92

Generating the xml model:
radLim = 0.001
maxRad = 12
normsOnly = True
freeVariableSources = True
Fixing all sources to their catalog values, except variable sources
Creating file and adding sources from 4FGL
Added 166 point sources and 0 extended sources

Setting source of interest to:
4FGL J2331.0-2147 @ 352.763 -21.7953

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/7625/ft1_filtered_4FGL_J2331.0-2147_daily_bin1098.fits scfile=/scratch/kocevski/7625/ft2_4FGL_J2331.0-2147_daily_bin1098.fits outfile=/scratch/kocevski/7625/cmap_523929601_524188801_4FGL_J2331.0-2147_daily_bin1098.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/7625/ft1_filtered_4FGL_J2331.0-2147_daily_bin1098.fits scfile=/scratch/kocevski/7625/ft2_4FGL_J2331.0-2147_daily_bin1098.fits outfile=/scratch/kocevski/7625/cmap_HighResolution_523929601_524188801_4FGL_J2331.0-2147_daily_bin1098.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.37
sys 0.16

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/7625/ft1_filtered_4FGL_J2331.0-2147_daily_bin1098.fits evtable="EVENTS" scfile=/scratch/kocevski/7625/ft2_4FGL_J2331.0-2147_daily_bin1098.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/7625/Model_4FGL_J2331.0-2147_daily_bin1098.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/7625/ft1_filtered_4FGL_J2331.0-2147_daily_bin1098.fits.....................!
real 46.03
user 44.77
sys 1.19

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
     2 'norm      '    1.7720       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10011E-03   1.0000         .10000E-03   10000.    
     4 'norm      '    8.0371       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10034E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .95419       1.0000         .10000E-03   10000.    
     7 'norm      '    3.6506       1.0000         .10000E-03   10000.    
     8 'Prefactor '    12.217       1.0000         .10000E-03   10000.    
     9 'Prefactor '    6.2065       1.0000         .10000E-03   10000.    
    10 'Prefactor '    14.459       1.0000         .10000E-03   10000.    
    11 'Prefactor '    13.182       1.0000         .10000E-03   10000.    
    12 'norm      '    1.2785       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10067E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    28.673       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10309E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    1.6476       1.0000         .10000E-03   10000.    
    18 'norm      '    34.687       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    20.355       1.0000         .10000E-03   10000.    
    21 'Normalizat'    .91611       1.0000         .10000E-01   10.000    
    22 'Prefactor '    .96659       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=   5654.104     FROM MIGRAD    STATUS=CONVERGED    467 CALLS     2373 TOTAL
                     EDM=   .37E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.2%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    9.7827       -.50811E-07** at limit **
   2  norm          1.7720        1.7949       -.72090E-07   -.83771E-04
   3  Prefactor     .10000E-03    17.127       -.59283E-07** at limit **
   4  norm          8.0370        5.5632       -.19788E-06   -.39341E-03
   5  Prefactor     .10000E-03    11.829       -.96842E-08** at limit **
   6  Prefactor     .93610        11.944        .17320E-05   -.58042E-04
   7  norm          3.6515        1.3085       -.19014E-06   -.27890E-02
   8  Prefactor     12.217        13.082        .22839E-07   -.46574E-05
   9  Prefactor     6.2082        16.762       -.93759E-06   -.24959E-03
  10  Prefactor     14.460        24.356       -.61852E-07    .48587E-06
  11  Prefactor     13.250        56.282        .13043E-05    .14112E-04
  12  norm          1.2785        1.7588        .82706E-08    .20671E-04
  13  Prefactor     .10000E-03    36.366       -.47598E-07** at limit **
  14  Prefactor     28.673        22.276        .29715E-06   -.11250E-04
  15  Prefactor     .10000E-03    25.413       -.35505E-06** at limit **
  16  Prefactor     .10000E-03    41.758       -.21915E-07** at limit **
  17  norm          1.6476        .94078       -.15691E-07    .27508E-04
  18  norm          34.687        9.1688        .81773E-07   -.26877E-04
  19  Prefactor     .10000E-03    16.712        .11295E-06** at limit **
  20  Prefactor     20.364        57.246        .13487E-05   -.34328E-05
  21  Normalizat    .91586        .23018       -.35227E-05   -.91025E-05
  22  Prefactor     .96682        .22182        .30794E-05   -.25542E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  norm       = 1.77201
  Prefactor  = 0.0001
  norm       = 8.03703
  Prefactor  = 0.0001
  Prefactor  = 0.936104
  norm       = 3.6515
  Prefactor  = 12.217
  Prefactor  = 6.20816
  Prefactor  = 14.4603
  Prefactor  = 13.2504
  norm       = 1.2785
  Prefactor  = 0.0001
  Prefactor  = 28.6732
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 1.64762
  norm       = 34.6869
  Prefactor  = 0.0001
  Prefactor  = 20.3644
  Normalizat = 0.91586
  Prefactor  = 0.966817
 **********
 **   18 **HESSE 
 **********

 FCN=   5654.104     FROM HESSE     STATUS=OK           348 CALLS     2721 TOTAL
                     EDM=   .48E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    9.7836        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          1.7720        1.8086        .98710E-04   -1.5442    
   3  Prefactor     .10000E-03    17.130        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  norm          8.0370        5.7302        .13731E-03   -1.5141    
   5  Prefactor     .10000E-03    11.842        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .93610        128.87        .34416E-02   -1.5514    
   7  norm          3.6515        1.7436        .37842E-04   -1.5326    
   8  Prefactor     12.217        13.087        .11461E-03   -1.5009    
   9  Prefactor     6.2082        17.770        .16114E-03   -1.5210    
  10  Prefactor     14.460        24.359        .10533E-03   -1.4947    
  11  Prefactor     13.250        56.147        .11032E-03   -1.4980    
  12  norm          1.2785        1.7303        .11350E-03   -1.5482    
  13  Prefactor     .10000E-03    36.383        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     28.673        22.215        .74820E-04   -1.4637    
  15  Prefactor     .10000E-03    25.499        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    41.772        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          1.6476        .93657        .45206E-04   -1.5451    
  18  norm          34.687        9.1795        .68042E-04   -1.4529    
  19  Prefactor     .10000E-03    16.713        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     20.364        57.157        .88776E-04   -1.4805    
  21  Normalizat    .91586        .23585        .26920E-03   -.95905    
  22  Prefactor     .96682        .22714        .26315E-03   -.93844    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.76576e-08
Minuit parameter uncertainties:
  1  2.45257e-06
  2  1.80865
  3  4.54683e-06
  4  5.73059
  5  1.41136e-05
  6  22.0141
  7  1.74364
  8  13.0903
  9  17.785
  10  24.3761
  11  54.6391
  12  1.73038
  13  2.75995e-05
  14  22.2211
  15  7.47434e-06
  16  6.83926e-06
  17  0.936578
  18  9.17983
  19  3.04405e-06
  20  57.3111
  21  0.23612
  22  0.227361
Done.

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

Extracting fit parameters...

4FGL J2331.0-2147
   Spectrum: LogParabola
418         norm:  1.279e+00  1.730e+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:  9.668e-01  2.274e-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:  9.159e-01  2.361e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 1.10
Ra Dec: 352.763 -21.795
Photon Index (Fixed Index): 2.43 +/- 0.00
Photon Flux (Fixed Index): 1.37e-08 +/- 1.85e-08
Energy Flux (Fixed Index): 4.56e-06 +/- 6.17e-06

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

Saving results to:
/scratch/kocevski/7625/likelihoodResults_523929601_524188801_4FGL_J2331.0-2147_daily_bin1098.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) = 5653.91337187
delta logL = 0.190502052919

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5653.86782624
delta logL = 0.23604768407

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    1.9089       1.0000         .10000E-03   10000.    
     2 'alpha     '    1.4402       1.0000          .0000       5.0000    
     3 'Normalizat'    .92617       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .95891       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=   5653.868     FROM MIGRAD    STATUS=CONVERGED     47 CALLS      188 TOTAL
                     EDM=   .36E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          1.9108        2.3362        .75227E-02    .42780E-04
   2  alpha         1.4406        1.0503        .47219E-01   -.12506E-04
   3  Normalizat    .92612        .18936        .45235E-01    .12312E-04
   4  Prefactor     .95880        .19066        .45751E-01    .92196E-05
                               ERR DEF=  .500    
Final values: 
  norm       = 1.91083
  alpha      = 1.4406
  Normalizat = 0.92612
  Prefactor  = 0.958797
 **********
 **   18 **HESSE 
 **********

 FCN=   5653.868     FROM HESSE     STATUS=OK            31 CALLS      219 TOTAL
                     EDM=   .29E-13    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          1.9108        2.3307        .12285E-03   -1.5431    
   2  alpha         1.4406        1.0550        .18887E-02   -.43759    
   3  Normalizat    .92612        .21957        .26783E-03   -.95548    
   4  Prefactor     .95880        .22113        .26403E-03   -.94116    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.86914e-14
Minuit parameter uncertainties:
  1  2.3308
  2  1.09749
  3  0.219783
  4  0.221341
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/7625': 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) = 5653.86782486
delta logL = 0.236049067201

Extracting fit parameters...

4FGL J2331.0-2147
   Spectrum: LogParabola
418         norm:  1.911e+00  2.331e+00  1.000e-04  1.000e+04 ( 1.000e-12)
419        alpha:  1.441e+00  1.097e+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:  9.588e-01  2.213e-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:  9.261e-01  2.198e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 1.57
Ra Dec: 352.763 -21.795
Photon Index (Free Index): 1.44 +/- 1.10
Photon Flux (Free Index): 7.50e-09 +/- 1.03e-08
Energy Flux (Free Index): 1.26e-05 +/- 2.79e-05

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/7625/cmap_HighResolution_523929601_524188801_4FGL_J2331.0-2147_daily_bin1098.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='2.43e-05', comment='SUCCESS', photon_flux='1.37e-08', energy_flux2='1.26e-05', photon_flux_error='1.85e-08', dlogl='2.36e-01', energy_flux='4.56e-06', photon_flux2='7.50e-09', job_status='DONE', time_completed='2021-09-29 23:09:34.295153', photon_index_error2='1.10', photon_index2='1.44', ts='1.10', fit_tolerance='1e-08', GAL='0.97', photon_index_error='0.00', photon_flux_upper_limit='7.32e-08', energy_flux_error2='2.79e-05', EG='0.92', time_epoch_completed='1632982174.3', return_code='0', job_id='7625', GAL2='0.96', EG2='0.93', return_code2='0', energy_flux_error='6.17e-06', photon_flux_error2='1.03e-08', ts2='1.57', photon_index='2.43' WHERE bin_id='1098' AND source_name='4FGL J2331.0-2147' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep 29 23:09:34 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0263>
Subject: Job 7625: <4FGL_J2331.0-2147_daily_bin1098> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2331.0-2147_daily_bin1098 352.763 -21.7953 523929601 524188801 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 :                                   579.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             297.36 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   823 sec.
    Turnaround time :                            826 sec.

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

