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


Performing analysis on: 4FGL_J2331.0-2147_daily_bin1597
RA = 352.763, Dec = -21.7953
tmin = 653270401, tmax = 653529601
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='9302', job_status='RUN', time_executed='2021-09-29 23:03:24.219532', time_epoch_executed='1632981804.22' WHERE source_name='4FGL J2331.0-2147' and cadence='daily' and bin_id='1597'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/9302

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/9302/ft1_4FGL_J2331.0-2147_daily_bin1597.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/9302/ft2_4FGL_J2331.0-2147_daily_bin1597.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/9302/ft1_4FGL_J2331.0-2147_daily_bin1597.fits outfile=/scratch/kocevski/9302/ft1_filteredMKT_4FGL_J2331.0-2147_daily_bin1597.fits ra=352.763 dec=-21.7953 rad=12.0 tmin=653270401.0 tmax=653529601.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.29
user 3.08
sys 0.20

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/9302/ft2_4FGL_J2331.0-2147_daily_bin1597.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/9302/ft1_filteredMKT_4FGL_J2331.0-2147_daily_bin1597.fits evtable="EVENTS" outfile="/scratch/kocevski/9302/ft1_filtered_4FGL_J2331.0-2147_daily_bin1597.fits" apply_filter=yes overwrite=yes header_obstimes=yes tstart=0.0 tstop=0.0 gtifile="default" chatter=3 clobber=yes debug=no gui=no mode="ql"

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

This is gtmktime version HEAD
Applying GTI filter:
IN_SAA!=T && LIVETIME>0 && gtifilter('/nfs/farm/g/glast/g/LCRepository/Likelihood/GTIs/nogrb.gti',(START+STOP)/2) && (angsep(RA_SUN,DEC_SUN,RA_ZENITH,DEC_ZENITH)>115 || gtifilter('/nfs/farm/g/glast/g/LCRepository/Likelihood/GTIs/nosolarflares.gti',(START+STOP)/2))
real 0.48
user 0.32
sys 0.16

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/9302/ft1_filtered_4FGL_J2331.0-2147_daily_bin1597.fits" evtable="EVENTS" scfile=/scratch/kocevski/9302/ft2_4FGL_J2331.0-2147_daily_bin1597.fits sctable="SC_DATA" outfile=/scratch/kocevski/9302/ltcube_653270401_653529601_4FGL_J2331.0-2147_daily_bin1597.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/9302/ft2_4FGL_J2331.0-2147_daily_bin1597.fits
.....................!
real 12.06
user 11.72
sys 0.31

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/9302/ft1_filtered_4FGL_J2331.0-2147_daily_bin1597.fits evtable="EVENTS" scfile=/scratch/kocevski/9302/ft2_4FGL_J2331.0-2147_daily_bin1597.fits sctable="SC_DATA" expcube=/scratch/kocevski/9302/ltcube_653270401_653529601_4FGL_J2331.0-2147_daily_bin1597.fits outfile=/scratch/kocevski/9302/expmap_653270401_653529601_4FGL_J2331.0-2147_daily_bin1597.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/9302/ltcube_653270401_653529601_4FGL_J2331.0-2147_daily_bin1597.fits
.....................!
real 191.14
user 185.72
sys 5.12

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/9302/ft1_filtered_4FGL_J2331.0-2147_daily_bin1597.fits scfile=/scratch/kocevski/9302/ft2_4FGL_J2331.0-2147_daily_bin1597.fits outfile=/scratch/kocevski/9302/cmap_653270401_653529601_4FGL_J2331.0-2147_daily_bin1597.fits algorithm="CMAP" ebinalg="LOG" emin=30.0 emax=200000.0 ebinfile=NONE tbinalg="LIN" tbinfile=NONE nxpix=160 nypix=160 binsz=0.25 coordsys="CEL" xref=352.763 yref=-21.7953 axisrot=0.0 rafield="RA" decfield="DEC" proj="AIT" hpx_ordering_scheme="RING" hpx_order=3 hpx_ebin=yes hpx_region="" evtable="EVENTS" sctable="SC_DATA" efield="ENERGY" tfield="TIME" chatter=2 clobber=yes debug=no gui=no mode="ql"

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

This is gtbin version HEAD
real 0.52
user 0.36
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/9302/ft1_filtered_4FGL_J2331.0-2147_daily_bin1597.fits scfile=/scratch/kocevski/9302/ft2_4FGL_J2331.0-2147_daily_bin1597.fits outfile=/scratch/kocevski/9302/cmap_HighResolution_653270401_653529601_4FGL_J2331.0-2147_daily_bin1597.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/9302/ft1_filtered_4FGL_J2331.0-2147_daily_bin1597.fits evtable="EVENTS" scfile=/scratch/kocevski/9302/ft2_4FGL_J2331.0-2147_daily_bin1597.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/9302/Model_4FGL_J2331.0-2147_daily_bin1597.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/9302/ft1_filtered_4FGL_J2331.0-2147_daily_bin1597.fits.......................!
real 17.39
user 16.12
sys 1.23

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

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 'norm      '    .10003E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    18.661       1.0000         .10000E-03   10000.    
     4 'norm      '    3.9173       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    6.4726       1.0000         .10000E-03   10000.    
     7 'norm      '    .10011E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    14.723       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10111E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    13.276       1.0000         .10000E-03   10000.    
    12 'norm      '    15.082       1.0000         .10000E-03   10000.    
    13 'Prefactor '    49.995       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10173E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    79.850       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10021E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    .65916       1.0000         .10000E-03   10000.    
    18 'norm      '    .10008E-03   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.5475       1.0000         .10000E-01   10.000    
    22 'Prefactor '    .27879E-04   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=   711.7376     FROM MIGRAD    STATUS=CONVERGED    490 CALLS     2734 TOTAL
                     EDM=   .80E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  9.3%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    53.328       -.48655E-07** at limit **
   2  norm          .10000E-03    4.7115       -.18640E-06** at limit **
   3  Prefactor     18.636        193.45        .75116E-06   -.68313E-05
   4  norm          3.9171        9.2137        .16292E-06   -.63870E-04
   5  Prefactor     .10000E-03    20.125       -.95137E-07** at limit **
   6  Prefactor     6.4926        21.098       -.22036E-06   -.41430E-04
   7  norm          .10000E-03    1.0244       -.71967E-07** at limit **
   8  Prefactor     14.718        34.291        .51971E-07   -.38847E-05
   9  Prefactor     .10000E-03    30.016       -.12760E-06** at limit **
  10  Prefactor     .10000E-03    176.65       -.10534E-06** at limit **
  11  Prefactor     13.361        373.70        .57747E-06    .11820E-04
  12  norm          15.081        10.197       -.20347E-07    .42167E-05
  13  Prefactor     49.996        99.973       -.24488E-08   -.72826E-05
  14  Prefactor     .10000E-03    50.729       -.13228E-07** at limit **
  15  Prefactor     79.885        75.134        .20250E-06    .24802E-04
  16  Prefactor     .10000E-03    181.36        .32550E-07** at limit **
  17  norm          .65962        1.3888        .43830E-07   -.69215E-04
  18  norm          .10000E-03    17.057       -.10269E-06** at limit **
  19  Prefactor     .10000E-03    68.414        .39492E-07** at limit **
  20  Prefactor     .10000E-03    52.669       -.50764E-08** at limit **
  21  Normalizat    1.5474        .27041        .32884E-05    .66096E-04
  22  Prefactor     .30049E-08    .88383       -.20938E-04** at limit **
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 18.636
  norm       = 3.91712
  Prefactor  = 0.0001
  Prefactor  = 6.49257
  norm       = 0.0001
  Prefactor  = 14.7185
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 13.3615
  norm       = 15.0811
  Prefactor  = 49.9962
  Prefactor  = 0.0001
  Prefactor  = 79.8845
  Prefactor  = 0.0001
  norm       = 0.659619
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Normalizat = 1.54737
  Prefactor  = 3.00488e-09
 **********
 **   18 **HESSE 
 **********

 FCN=   711.7376     FROM HESSE     STATUS=OK           346 CALLS     3080 TOTAL
                     EDM=   .15E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    53.335        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          .10000E-03    4.6999        .56426E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     18.636        193.70        .92715E-04   -1.4844    
   4  norm          3.9171        9.2124        .11688E-03   -1.5312    
   5  Prefactor     .10000E-03    20.125        .11693E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     6.4926        21.113        .15775E-03   -1.5198    
   7  norm          .10000E-03    1.0296        .52168E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     14.718        34.419        .10438E-03   -1.4940    
   9  Prefactor     .10000E-03    30.039        .14252E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    177.49        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     13.361        375.32        .10993E-03   -1.4977    
  12  norm          15.081        10.213        .67213E-04   -1.4931    
  13  Prefactor     49.996       100.000        .56716E-04   -1.4293    
  14  Prefactor     .10000E-03    50.737        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     79.885        75.126        .22472E-03   -1.3918    
  16  Prefactor     .10000E-03    181.39        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          .65962        1.3381        .43144E-03   -1.5546    
  18  norm          .10000E-03    17.287        .21387E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    68.421        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    52.670        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Normalizat    1.5474        .46006        .16714E-03   -.76456    
  22  Prefactor     .30049E-08    6.2665        .14267       -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.50657e-10
Minuit parameter uncertainties:
  1  1.05474e-05
  2  6.8938e-05
  3  120.67
  4  9.21577
  5  6.74646e-05
  6  21.1375
  7  9.06344e-06
  8  34.4649
  9  6.89748e-05
  10  0.000260827
  11  142.629
  12  10.2138
  13  100.338
  14  1.24859e-05
  15  75.2157
  16  0.000271497
  17  1.33817
  18  4.6196e-06
  19  4.54071e-05
  20  3.80022e-05
  21  0.461317
  22  0.000182854
Done.

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

Extracting fit parameters...

4FGL J2331.0-2147
   Spectrum: LogParabola
418         norm:  1.508e+01  1.021e+01  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:  3.005e-09  1.829e-04  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.547e+00  4.613e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 9.19
Ra Dec: 352.763 -21.795
Photon Index (Fixed Index): 2.43 +/- 0.00
Photon Flux (Fixed Index): 1.62e-07 +/- 1.09e-07
Energy Flux (Fixed Index): 5.37e-05 +/- 3.64e-05

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) = 711.646489507
delta logL = 0.0911190384863

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 711.637561416
delta logL = 0.100047130038

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    18.622       1.0000         .10000E-03   10000.    
     2 'alpha     '    2.0800       1.0000          .0000       5.0000    
     3 'Normalizat'    1.5635       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .75279E-04   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=   711.6375     FROM MIGRAD    STATUS=CONVERGED     95 CALLS      311 TOTAL
                     EDM=   .13E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          18.619        14.555        .79971E-04    .10022E-04
   2  alpha         2.0820        .78008        .71267E-02    .25185E-05
   3  Normalizat    1.5628        .23870        .16690E-03    .45252E-04
   4  Prefactor     .43590E-09    6.4942        .11587E-01** at limit **
                               ERR DEF=  .500    
Final values: 
  norm       = 18.619
  alpha      = 2.08196
  Normalizat = 1.56284
  Prefactor  = 4.35901e-10
 **********
 **   18 **HESSE 
 **********

 FCN=   711.6375     FROM HESSE     STATUS=OK            25 CALLS      336 TOTAL
                     EDM=   .14E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          18.619        14.434        .31988E-05   -1.4845    
   2  alpha         2.0820        .77365        .28507E-03   -.16800    
   3  Normalizat    1.5628        .23653        .33381E-04   -.76028    
   4  Prefactor     .43590E-09    6.5012        .23174E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.3615e-10
Minuit parameter uncertainties:
  1  14.4369
  2  0.786948
  3  0.236694
  4  7.65753e-05
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/9302': 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) = 711.637542657
delta logL = 0.10006588888

Extracting fit parameters...

4FGL J2331.0-2147
   Spectrum: LogParabola
418         norm:  1.862e+01  1.444e+01  1.000e-04  1.000e+04 ( 1.000e-12)
419        alpha:  2.082e+00  7.869e-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:  4.359e-10  7.658e-05  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.563e+00  2.367e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 9.40
Ra Dec: 352.763 -21.795
Photon Index (Free Index): 2.08 +/- 0.79
Photon Flux (Free Index): 1.27e-07 +/- 1.21e-07
Energy Flux (Free Index): 6.37e-05 +/- 5.52e-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/9302/cmap_HighResolution_653270401_653529601_4FGL_J2331.0-2147_daily_bin1597.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='1.62e-07', energy_flux2='6.37e-05', photon_flux_error='1.09e-07', dlogl='1.00e-01', energy_flux='5.37e-05', photon_flux2='1.27e-07', job_status='DONE', time_completed='2021-09-29 23:09:16.771283', photon_index_error2='0.79', photon_index2='2.08', ts='9.19', fit_tolerance='1e-08', GAL='0.00', photon_index_error='0.00', energy_flux_error2='5.52e-05', EG='1.55', time_epoch_completed='1632982156.77', return_code='0', job_id='9302', GAL2='0.00', EG2='1.56', return_code2='0', energy_flux_error='3.64e-05', photon_flux_error2='1.21e-07', ts2='9.40', photon_index='2.43' WHERE bin_id='1597' AND source_name='4FGL J2331.0-2147' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep 29 23:09:16 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0031>
Subject: Job 9302: <4FGL_J2331.0-2147_daily_bin1597> in cluster <slac> Done

Job <4FGL_J2331.0-2147_daily_bin1597> was submitted from host <rhel6-64k> by user <kocevski> in cluster <slac> at Wed Sep 29 23:00:34 2021
Job was executed on host(s) <bullet0031>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Sep 29 23:00:35 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:35 2021
Terminated at Wed Sep 29 23:09:17 2021
Results reported at Wed Sep 29 23:09:17 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2331.0-2147_daily_bin1597 352.763 -21.7953 653270401 653529601 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 :                                   346.38 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             271.83 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   522 sec.
    Turnaround time :                            523 sec.

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

