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


Performing analysis on: 4FGL_J2331.0-2147_daily_bin1535
RA = 352.763, Dec = -21.7953
tmin = 637200001, tmax = 637459201
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='9213', job_status='RUN', time_executed='2021-09-29 23:02:34.257199', time_epoch_executed='1632981754.26' WHERE source_name='4FGL J2331.0-2147' and cadence='daily' and bin_id='1535'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/9213

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/9213/ft1_4FGL_J2331.0-2147_daily_bin1535.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/9213/ft2_4FGL_J2331.0-2147_daily_bin1535.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/9213/ft1_4FGL_J2331.0-2147_daily_bin1535.fits outfile=/scratch/kocevski/9213/ft1_filteredMKT_4FGL_J2331.0-2147_daily_bin1535.fits ra=352.763 dec=-21.7953 rad=12.0 tmin=637200001.0 tmax=637459201.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 5.36
user 5.12
sys 0.23

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/9213/ft1_filtered_4FGL_J2331.0-2147_daily_bin1535.fits" evtable="EVENTS" scfile=/scratch/kocevski/9213/ft2_4FGL_J2331.0-2147_daily_bin1535.fits sctable="SC_DATA" outfile=/scratch/kocevski/9213/ltcube_637200001_637459201_4FGL_J2331.0-2147_daily_bin1535.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/9213/ft2_4FGL_J2331.0-2147_daily_bin1535.fits
.....................!
real 11.47
user 11.12
sys 0.32

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/9213/ft1_filtered_4FGL_J2331.0-2147_daily_bin1535.fits evtable="EVENTS" scfile=/scratch/kocevski/9213/ft2_4FGL_J2331.0-2147_daily_bin1535.fits sctable="SC_DATA" expcube=/scratch/kocevski/9213/ltcube_637200001_637459201_4FGL_J2331.0-2147_daily_bin1535.fits outfile=/scratch/kocevski/9213/expmap_637200001_637459201_4FGL_J2331.0-2147_daily_bin1535.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/9213/ltcube_637200001_637459201_4FGL_J2331.0-2147_daily_bin1535.fits
.....................!
real 190.07
user 185.20
sys 4.56

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/9213/ft1_filtered_4FGL_J2331.0-2147_daily_bin1535.fits scfile=/scratch/kocevski/9213/ft2_4FGL_J2331.0-2147_daily_bin1535.fits outfile=/scratch/kocevski/9213/cmap_637200001_637459201_4FGL_J2331.0-2147_daily_bin1535.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.15

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

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/9213/ft1_filtered_4FGL_J2331.0-2147_daily_bin1535.fits evtable="EVENTS" scfile=/scratch/kocevski/9213/ft2_4FGL_J2331.0-2147_daily_bin1535.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/9213/Model_4FGL_J2331.0-2147_daily_bin1535.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/9213/ft1_filtered_4FGL_J2331.0-2147_daily_bin1535.fits......................!
real 37.45
user 36.20
sys 1.18

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    13.744       1.0000         .10000E-03   10000.    
     2 'norm      '    2.5776       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
     4 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    18.204       1.0000         .10000E-03   10000.    
     7 'norm      '    2.6833       1.0000         .10000E-03   10000.    
     8 'Prefactor '    19.178       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10002E-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      '    8.6674       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10012E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10057E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    60.688       1.0000         .10000E-03   10000.    
    17 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    18 'norm      '    9.8631       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10010E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
    21 'Normalizat'    1.3982       1.0000         .10000E-01   10.000    
    22 'Prefactor '    1.0478       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=   3914.042     FROM MIGRAD    STATUS=CONVERGED    463 CALLS     2314 TOTAL
                     EDM=   .14E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .4%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          13.722        50.541       -.35391E-04   -.11479E-04
   2  norm          2.5772        3.4128        .36522E-06   -.21357E-03
   3  Prefactor     .10000E-03    82.431        .19752E-04** at limit **
   4  norm          .10000E-03    2.1905        .23338E-06** at limit **
   5  Prefactor     .10000E-03    14.487       -.11065E-04** at limit **
   6  Prefactor     18.213        20.659        .91320E-06    .25209E-04
   7  norm          2.6830        1.3022        .83391E-07    .27097E-03
   8  Prefactor     19.178        16.607        .98846E-06   -.38935E-04
   9  Prefactor     .10000E-03    11.369       -.19804E-07** at limit **
  10  Prefactor     .10000E-03    14.775        .10512E-04** at limit **
  11  Prefactor     .10000E-03    64.340        .24979E-04** at limit **
  12  norm          8.6675        5.5744        .17856E-05    .87077E-04
  13  Prefactor     .10000E-03    45.249       -.11914E-04** at limit **
  14  Prefactor     .10000E-03    9.7381        .52648E-06** at limit **
  15  Prefactor     .10003E-03    100.72       -.42112E-04** at limit **
  16  Prefactor     60.883        170.12        .24121E-03    .90544E-05
  17  norm          .10000E-03    .26756       -.12945E-06** at limit **
  18  norm          9.8639        6.3639        .39609E-05   -.35107E-04
  19  Prefactor     .10000E-03    49.837       -.65955E-05** at limit **
  20  Prefactor     .10000E-03    38.828        .27889E-05** at limit **
  21  Normalizat    1.3976        .28070       -.13119E-04    .38952E-03
  22  Prefactor     1.0484        .26097        .37843E-06   -.22844E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 13.7223
  norm       = 2.57716
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 18.2134
  norm       = 2.68298
  Prefactor  = 19.1778
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 8.66748
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000100032
  Prefactor  = 60.8831
  norm       = 0.0001
  norm       = 9.86386
  Prefactor  = 0.000100001
  Prefactor  = 0.0001
  Normalizat = 1.3976
  Prefactor  = 1.04836
 **********
 **   18 **HESSE 
 **********

 FCN=   3914.042     FROM HESSE     STATUS=OK           334 CALLS     2648 TOTAL
                     EDM=   .41E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          13.722        50.598        .10804E-03   -1.4967    
   2  norm          2.5772        3.4003        .12885E-03   -1.5387    
   3  Prefactor     .10000E-03    82.513        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  norm          .10000E-03    2.1925        .90407E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    14.496        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     18.213        21.254        .93871E-04   -1.4854    
   7  norm          2.6830        1.3342        .40986E-04   -1.5380    
   8  Prefactor     19.178        16.614        .91458E-04   -1.4832    
   9  Prefactor     .10000E-03    11.392        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    14.783        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    64.412        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          8.6675        5.5733        .11346E-03   -1.5119    
  13  Prefactor     .10000E-03    45.302        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    9.7493        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10003E-03    101.75        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     60.883        169.96        .25752E-03   -1.4146    
  17  norm          .10000E-03    .27112        .31438E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          9.8639        6.3413        .12119E-03   -1.5080    
  19  Prefactor     .10000E-03    49.869        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    38.838        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Normalizat    1.3976        .34503        .27365E-03   -.80698    
  22  Prefactor     1.0484        .32053        .29433E-03   -.91135    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.07589e-09
Minuit parameter uncertainties:
  1  50.7567
  2  3.40052
  3  0.000146763
  4  1.97215e-06
  5  1.09957e-05
  6  21.2627
  7  1.33419
  8  16.6184
  9  1.61166e-05
  10  2.69032e-05
  11  6.35819e-05
  12  5.57366
  13  0.000109068
  14  2.60858e-05
  15  0.00361296
  16  171.346
  17  4.55048e-06
  18  6.3417
  19  0.000392174
  20  5.48582e-05
  21  0.345606
  22  0.321117
Done.

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

Extracting fit parameters...

4FGL J2331.0-2147
   Spectrum: LogParabola
418         norm:  8.667e+00  5.574e+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:  1.048e+00  3.211e-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.398e+00  3.456e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 4.17
Ra Dec: 352.763 -21.795
Photon Index (Fixed Index): 2.43 +/- 0.00
Photon Flux (Fixed Index): 9.29e-08 +/- 5.97e-08
Energy Flux (Fixed Index): 3.09e-05 +/- 1.99e-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) = 3913.86428642
delta logL = 0.177266898644

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 3913.86365468
delta logL = 0.177898633199

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    10.437       1.0000         .10000E-03   10000.    
     2 'alpha     '    2.0688       1.0000          .0000       5.0000    
     3 'Normalizat'    1.4209       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0348       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.
 MACHINE ACCURACY LIMITS FURTHER IMPROVEMENT.

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   3913.864     FROM MIGRAD    STATUS=CONVERGED    101 CALLS      316 TOTAL
                     EDM=   .24E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          10.446        7.0206        .62012E-03    .59394E-04
   2  alpha         2.0697        .60267        .12365E-01    .63169E-04
   3  Normalizat    1.4208        .33368        .27186E-03    .29272E-06
   4  Prefactor     1.0348        .31636        .29602E-03    .19202E-06
                               ERR DEF=  .500    
Final values: 
  norm       = 10.4457
  alpha      = 2.06972
  Normalizat = 1.42083
  Prefactor  = 1.03477
 **********
 **   18 **HESSE 
 **********

 FCN=   3913.864     FROM HESSE     STATUS=OK            27 CALLS      343 TOTAL
                     EDM=   .35E-12    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          10.446        6.9820        .12402E-03   -1.5061    
   2  alpha         2.0697        .59931        .24731E-02   -.17297    
   3  Normalizat    1.4208        .33401        .10874E-04   -.80028    
   4  Prefactor     1.0348        .31669        .11841E-04   -.91579    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.53425e-13
Minuit parameter uncertainties:
  1  6.98252
  2  0.605394
  3  0.334528
  4  0.317264
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/9213': 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) = 3913.86365233
delta logL = 0.177900989032

Extracting fit parameters...

4FGL J2331.0-2147
   Spectrum: LogParabola
418         norm:  1.045e+01  6.983e+00  1.000e-04  1.000e+04 ( 1.000e-12)
419        alpha:  2.070e+00  6.054e-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:  1.035e+00  3.173e-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.421e+00  3.345e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 4.51
Ra Dec: 352.763 -21.795
Photon Index (Free Index): 2.07 +/- 0.61
Photon Flux (Free Index): 7.00e-08 +/- 6.25e-08
Energy Flux (Free Index): 3.59e-05 +/- 2.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/9213/cmap_HighResolution_637200001_637459201_4FGL_J2331.0-2147_daily_bin1535.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='9.29e-08', energy_flux2='3.59e-05', photon_flux_error='5.97e-08', dlogl='1.78e-01', energy_flux='3.09e-05', photon_flux2='7.00e-08', job_status='DONE', time_completed='2021-09-29 23:10:20.067797', photon_index_error2='0.61', photon_index2='2.07', ts='4.17', fit_tolerance='1e-08', GAL='1.05', photon_index_error='0.00', energy_flux_error2='2.55e-05', EG='1.40', time_epoch_completed='1632982220.07', return_code='0', job_id='9213', GAL2='1.03', EG2='1.42', return_code2='0', energy_flux_error='1.99e-05', photon_flux_error2='6.25e-08', ts2='4.51', photon_index='2.43' WHERE bin_id='1535' AND source_name='4FGL J2331.0-2147' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep 29 23:10:20 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0111>
Subject: Job 9213: <4FGL_J2331.0-2147_daily_bin1535> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2331.0-2147_daily_bin1535 352.763 -21.7953 637200001 637459201 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 :                                   464.00 sec.
    Max Memory :                                 1093 MB
    Average Memory :                             277.43 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   591 sec.
    Turnaround time :                            592 sec.

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

