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


Performing analysis on: 4FGL_J2331.0-2147_daily_bin1170
RA = 352.763, Dec = -21.7953
tmin = 542592001, tmax = 542851201
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='7740', job_status='RUN', time_executed='2021-09-29 22:57:18.433086', time_epoch_executed='1632981438.43' WHERE source_name='4FGL J2331.0-2147' and cadence='daily' and bin_id='1170'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/7740

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/7740/ft1_4FGL_J2331.0-2147_daily_bin1170.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/7740/ft2_4FGL_J2331.0-2147_daily_bin1170.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/7740/ft1_4FGL_J2331.0-2147_daily_bin1170.fits outfile=/scratch/kocevski/7740/ft1_filteredMKT_4FGL_J2331.0-2147_daily_bin1170.fits ra=352.763 dec=-21.7953 rad=12.0 tmin=542592001.0 tmax=542851201.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 6.79
user 6.48
sys 0.28

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/7740/ft1_filtered_4FGL_J2331.0-2147_daily_bin1170.fits" evtable="EVENTS" scfile=/scratch/kocevski/7740/ft2_4FGL_J2331.0-2147_daily_bin1170.fits sctable="SC_DATA" outfile=/scratch/kocevski/7740/ltcube_542592001_542851201_4FGL_J2331.0-2147_daily_bin1170.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/7740/ft2_4FGL_J2331.0-2147_daily_bin1170.fits
.....................!
real 11.93
user 11.56
sys 0.34

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/7740/ft1_filtered_4FGL_J2331.0-2147_daily_bin1170.fits evtable="EVENTS" scfile=/scratch/kocevski/7740/ft2_4FGL_J2331.0-2147_daily_bin1170.fits sctable="SC_DATA" expcube=/scratch/kocevski/7740/ltcube_542592001_542851201_4FGL_J2331.0-2147_daily_bin1170.fits outfile=/scratch/kocevski/7740/expmap_542592001_542851201_4FGL_J2331.0-2147_daily_bin1170.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/7740/ltcube_542592001_542851201_4FGL_J2331.0-2147_daily_bin1170.fits
.....................!
real 192.67
user 187.64
sys 4.69

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/7740/ft1_filtered_4FGL_J2331.0-2147_daily_bin1170.fits scfile=/scratch/kocevski/7740/ft2_4FGL_J2331.0-2147_daily_bin1170.fits outfile=/scratch/kocevski/7740/cmap_542592001_542851201_4FGL_J2331.0-2147_daily_bin1170.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.54
user 0.39
sys 0.13

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/7740/ft1_filtered_4FGL_J2331.0-2147_daily_bin1170.fits scfile=/scratch/kocevski/7740/ft2_4FGL_J2331.0-2147_daily_bin1170.fits outfile=/scratch/kocevski/7740/cmap_HighResolution_542592001_542851201_4FGL_J2331.0-2147_daily_bin1170.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.39
sys 0.14

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    35.741       1.0000         .10000E-03   10000.    
     2 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10115E-03   1.0000         .10000E-03   10000.    
     4 'norm      '    .10007E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    29.862       1.0000         .10000E-03   10000.    
     6 'Prefactor '    11.146       1.0000         .10000E-03   10000.    
     7 'norm      '    1.2234       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10132E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    3.7245       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    4.6582       1.0000         .10000E-03   10000.    
    15 'Prefactor '    8.3704       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    18 'norm      '    16.832       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    21 'Normalizat'    1.1472       1.0000         .10000E-01   10.000    
    22 'Prefactor '    .82457       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=   4309.009     FROM MIGRAD    STATUS=CONVERGED    496 CALLS     2422 TOTAL
                     EDM=   .37E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  7.1%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          35.744        47.532        .17366E-07   -.12626E-05
   2  norm          .10000E-03    .93442       -.10209E-07** at limit **
   3  Prefactor     .10000E-03    136.03       -.68064E-05** at limit **
   4  norm          .10000E-03    2.6908       -.21589E-06** at limit **
   5  Prefactor     29.864        21.734        .95798E-06    .11642E-03
   6  Prefactor     11.141        15.628       -.19174E-05    .11235E-03
   7  norm          1.2234        .85354        .24122E-06    .59241E-03
   8  Prefactor     .10000E-03    82.026        .53513E-05** at limit **
   9  Prefactor     .10000E-03    12.688       -.15209E-05** at limit **
  10  Prefactor     .10000E-03    18.665       -.13231E-05** at limit **
  11  Prefactor     .10000E-03    10.912        .38174E-07** at limit **
  12  norm          3.7248        3.3741       -.30909E-07    .32004E-05
  13  Prefactor     .10000E-03    39.218       -.26313E-05** at limit **
  14  Prefactor     4.6567        17.178        .55616E-06    .27693E-04
  15  Prefactor     8.3683        31.277       -.51940E-06    .10398E-05
  16  Prefactor     .10000E-03    28.288        .95137E-06** at limit **
  17  norm          .10000E-03    .24412        .81828E-07** at limit **
  18  norm          16.828        6.4322       -.92202E-07   -.85941E-04
  19  Prefactor     .10000E-03    15.441        .93440E-06** at limit **
  20  Prefactor     .10000E-03    25.340        .12187E-05** at limit **
  21  Normalizat    1.1474        .22211        .15392E-05    .30910E-04
  22  Prefactor     .82437        .21613       -.11013E-05    .87928E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 35.7437
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 29.864
  Prefactor  = 11.1409
  norm       = 1.22342
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 3.72476
  Prefactor  = 0.0001
  Prefactor  = 4.65669
  Prefactor  = 8.36828
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 16.828
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Normalizat = 1.14737
  Prefactor  = 0.824365
 **********
 **   18 **HESSE 
 **********

 FCN=   4309.009     FROM HESSE     STATUS=OK           342 CALLS     2764 TOTAL
                     EDM=   .67E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          35.744        47.513        .67034E-04   -1.4512    
   2  norm          .10000E-03    .93642        .61969E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    136.72        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  norm          .10000E-03    2.7355        .10509E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     29.864        21.804        .73318E-04   -1.4614    
   6  Prefactor     11.141        15.663        .60001E-03   -1.5040    
   7  norm          1.2234        .85327        .41070E-04   -1.5487    
   8  Prefactor     .10000E-03    80.282        .39729E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    12.889        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    18.707        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    10.914        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          3.7248        3.3580        .10676E-03   -1.5322    
  13  Prefactor     .10000E-03    39.333        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     4.6567        17.177        .18647E-03   -1.5276    
  15  Prefactor     8.3683        31.187        .13856E-03   -1.5129    
  16  Prefactor     .10000E-03    28.289        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          .10000E-03    .27230        .62083E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          16.828        6.3429        .96819E-04   -1.4887    
  19  Prefactor     .10000E-03    15.443        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    25.349        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Normalizat    1.1474        .25185        .22722E-03   -.88245    
  22  Prefactor     .82437        .24560        .26555E-03   -.98836    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 6.69346e-11
Minuit parameter uncertainties:
  1  47.5629
  2  3.42084e-07
  3  0.00018429
  4  3.39446e-06
  5  21.8098
  6  15.6689
  7  0.853282
  8  0.000101824
  9  3.31615e-05
  10  6.0782e-06
  11  6.27086e-07
  12  3.35821
  13  2.3883e-06
  14  17.1953
  15  31.2475
  16  4.73536e-06
  17  8.68639e-08
  18  6.34313
  19  3.51111e-06
  20  9.33754e-06
  21  0.252111
  22  0.245926
Done.

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

Extracting fit parameters...

4FGL J2331.0-2147
   Spectrum: LogParabola
418         norm:  3.725e+00  3.358e+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  2.459e-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.147e+00  2.521e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 2.09
Ra Dec: 352.763 -21.795
Photon Index (Fixed Index): 2.43 +/- 0.00
Photon Flux (Fixed Index): 3.99e-08 +/- 3.60e-08
Energy Flux (Fixed Index): 1.33e-05 +/- 1.20e-05

TS (Fixed Index): 2.09
Ra Dec: 352.763 -21.795
Photon Flux Upper Limit: 1.21e-07 ph cm-2 s-1
Energy Flux Upper Limit: 4.02e-05 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/7740/likelihoodResults_542592001_542851201_4FGL_J2331.0-2147_daily_bin1170.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) = 4308.94601588
delta logL = 0.0628113704179

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 4308.94373064
delta logL = 0.0650966150652

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    4.6325       1.0000         .10000E-03   10000.    
     2 'alpha     '    2.1876       1.0000          .0000       5.0000    
     3 'Normalizat'    1.1539       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .81895       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=   4308.944     FROM MIGRAD    STATUS=CONVERGED     53 CALLS      252 TOTAL
                     EDM=   .47E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          4.6395        138.58        .46749E-02    .15916E-03
   2  alpha         2.1889        2.7903        .33533        .22259E-04
   3  Normalizat    1.1540        .10396        .36135E-01    .32145E-05
   4  Prefactor     .81880        .96712E-01    .43963E-01    .11005E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 4.63952
  alpha      = 2.18891
  Normalizat = 1.15402
  Prefactor  = 0.818799
 **********
 **   18 **HESSE 
 **********

 FCN=   4308.944     FROM HESSE     STATUS=OK            33 CALLS      285 TOTAL
                     EDM=   .58E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          4.6395        4.5766        .11708E-03   -1.5277    
   2  alpha         2.1889        .65826        .13133E-01   -.12476    
   3  Normalizat    1.1540        .23942        .22663E-03   -.88036    
   4  Prefactor     .81880        .24234        .26631E-03   -.99039    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.77603e-10
Minuit parameter uncertainties:
  1  4.57699
  2  0.666246
  3  0.239647
  4  0.24266
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/7740': 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) = 4308.94372435
delta logL = 0.0651028985712

Extracting fit parameters...

4FGL J2331.0-2147
   Spectrum: LogParabola
418         norm:  4.640e+00  4.577e+00  1.000e-04  1.000e+04 ( 1.000e-12)
419        alpha:  2.189e+00  6.662e-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.188e-01  2.427e-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.154e+00  2.396e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 2.22
Ra Dec: 352.763 -21.795
Photon Index (Free Index): 2.19 +/- 0.67
Photon Flux (Free Index): 3.59e-08 +/- 3.32e-08
Energy Flux (Free Index): 1.57e-05 +/- 1.55e-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/7740/cmap_HighResolution_542592001_542851201_4FGL_J2331.0-2147_daily_bin1170.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='4.02e-05', comment='SUCCESS', photon_flux='3.99e-08', energy_flux2='1.57e-05', photon_flux_error='3.60e-08', dlogl='6.51e-02', energy_flux='1.33e-05', photon_flux2='3.59e-08', job_status='DONE', time_completed='2021-09-29 23:06:27.925701', photon_index_error2='0.67', photon_index2='2.19', ts='2.09', fit_tolerance='1e-08', GAL='0.82', photon_index_error='0.00', photon_flux_upper_limit='1.21e-07', energy_flux_error2='1.55e-05', EG='1.15', time_epoch_completed='1632981987.93', return_code='0', job_id='7740', GAL2='0.82', EG2='1.15', return_code2='0', energy_flux_error='1.20e-05', photon_flux_error2='3.32e-08', ts2='2.22', photon_index='2.43' WHERE bin_id='1170' AND source_name='4FGL J2331.0-2147' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep 29 23:06:27 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0108>
Subject: Job 7740: <4FGL_J2331.0-2147_daily_bin1170> in cluster <slac> Done

Job <4FGL_J2331.0-2147_daily_bin1170> was submitted from host <rhel6-64d> by user <kocevski> in cluster <slac> at Wed Sep 29 22:56:01 2021
Job was executed on host(s) <bullet0108>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Sep 29 22:56:03 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Wed Sep 29 22:56:03 2021
Terminated at Wed Sep 29 23:06:28 2021
Results reported at Wed Sep 29 23:06:28 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2331.0-2147_daily_bin1170 352.763 -21.7953 542592001 542851201 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 :                                   542.00 sec.
    Max Memory :                                 1093 MB
    Average Memory :                             299.86 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   625 sec.
    Turnaround time :                            627 sec.

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

