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


Performing analysis on: 4FGL_J2331.0-2147_daily_bin1294
RA = 352.763, Dec = -21.7953
tmin = 574732801, tmax = 574992001
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='7941', job_status='RUN', time_executed='2021-09-29 22:59:12.989089', time_epoch_executed='1632981552.99' WHERE source_name='4FGL J2331.0-2147' and cadence='daily' and bin_id='1294'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/7941

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/7941/ft1_4FGL_J2331.0-2147_daily_bin1294.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/7941/ft2_4FGL_J2331.0-2147_daily_bin1294.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/7941/ft1_4FGL_J2331.0-2147_daily_bin1294.fits outfile=/scratch/kocevski/7941/ft1_filteredMKT_4FGL_J2331.0-2147_daily_bin1294.fits ra=352.763 dec=-21.7953 rad=12.0 tmin=574732801.0 tmax=574992001.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.37
user 5.08
sys 0.21

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/7941/ft1_filtered_4FGL_J2331.0-2147_daily_bin1294.fits" evtable="EVENTS" scfile=/scratch/kocevski/7941/ft2_4FGL_J2331.0-2147_daily_bin1294.fits sctable="SC_DATA" outfile=/scratch/kocevski/7941/ltcube_574732801_574992001_4FGL_J2331.0-2147_daily_bin1294.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/7941/ft2_4FGL_J2331.0-2147_daily_bin1294.fits
.....................!
real 11.40
user 11.08
sys 0.30

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/7941/ft1_filtered_4FGL_J2331.0-2147_daily_bin1294.fits evtable="EVENTS" scfile=/scratch/kocevski/7941/ft2_4FGL_J2331.0-2147_daily_bin1294.fits sctable="SC_DATA" expcube=/scratch/kocevski/7941/ltcube_574732801_574992001_4FGL_J2331.0-2147_daily_bin1294.fits outfile=/scratch/kocevski/7941/expmap_574732801_574992001_4FGL_J2331.0-2147_daily_bin1294.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/7941/ltcube_574732801_574992001_4FGL_J2331.0-2147_daily_bin1294.fits
.....................!
real 190.64
user 185.27
sys 5.06

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/7941/ft1_filtered_4FGL_J2331.0-2147_daily_bin1294.fits scfile=/scratch/kocevski/7941/ft2_4FGL_J2331.0-2147_daily_bin1294.fits outfile=/scratch/kocevski/7941/cmap_574732801_574992001_4FGL_J2331.0-2147_daily_bin1294.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.37
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/7941/ft1_filtered_4FGL_J2331.0-2147_daily_bin1294.fits scfile=/scratch/kocevski/7941/ft2_4FGL_J2331.0-2147_daily_bin1294.fits outfile=/scratch/kocevski/7941/cmap_HighResolution_574732801_574992001_4FGL_J2331.0-2147_daily_bin1294.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/7941/ft1_filtered_4FGL_J2331.0-2147_daily_bin1294.fits evtable="EVENTS" scfile=/scratch/kocevski/7941/ft2_4FGL_J2331.0-2147_daily_bin1294.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/7941/Model_4FGL_J2331.0-2147_daily_bin1294.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/7941/ft1_filtered_4FGL_J2331.0-2147_daily_bin1294.fits.....................!
real 50.67
user 49.37
sys 1.20

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

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      '    1.6138       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10373E-03   1.0000         .10000E-03   10000.    
     4 'norm      '    1.0751       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10031E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    11.525       1.0000         .10000E-03   10000.    
     7 'norm      '    .84631       1.0000         .10000E-03   10000.    
     8 'Prefactor '    10.950       1.0000         .10000E-03   10000.    
     9 'Prefactor '    25.684       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    7.7241       1.0000         .10000E-03   10000.    
    12 'norm      '    14.645       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    19.338       1.0000         .10000E-03   10000.    
    15 'Prefactor '    6.2617       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    .77430       1.0000         .10000E-03   10000.    
    18 'norm      '    20.388       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
    21 'Normalizat'    .88446       1.0000         .10000E-01   10.000    
    22 'Prefactor '    .93900       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=   6505.291     FROM MIGRAD    STATUS=CONVERGED    491 CALLS     2363 TOTAL
                     EDM=   .23E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.5%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    10.766        .36631E-07** at limit **
   2  norm          1.6090        1.6331       -.79746E-08   -.27863E-04
   3  Prefactor     .10000E-03    109.05       -.81919E-06** at limit **
   4  norm          1.0777        2.3674        .31357E-06   -.30509E-04
   5  Prefactor     .10000E-03    3.6532       -.12589E-07** at limit **
   6  Prefactor     11.515        13.102        .18059E-07   -.80421E-05
   7  norm          .84674        .62005       -.18819E-07   -.18566E-03
   8  Prefactor     10.951        15.745        .11632E-06   -.36381E-05
   9  Prefactor     25.678        17.391        .55570E-07    .24145E-04
  10  Prefactor     .10000E-03    9.4142       -.20846E-07** at limit **
  11  Prefactor     7.7237        39.960        .15374E-05   -.77841E-04
  12  norm          14.645        4.3079       -.38890E-07   -.46264E-04
  13  Prefactor     .10000E-03    60.721        .76119E-06** at limit **
  14  Prefactor     19.336        15.853       -.44924E-07   -.58888E-04
  15  Prefactor     6.2622        14.514        .16856E-05   -.31265E-03
  16  Prefactor     .10000E-03    28.972       -.59320E-06** at limit **
  17  norm          .77443        .63313        .15998E-06    .31445E-03
  18  norm          20.388        6.1712       -.66802E-06   -.85522E-03
  19  Prefactor     .10000E-03    18.126       -.27183E-06** at limit **
  20  Prefactor     .10000E-03    21.832        .61219E-06** at limit **
  21  Normalizat    .88424        .17306        .14411E-06   -.45858E-04
  22  Prefactor     .93918        .16935       -.10671E-06   -.14934E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  norm       = 1.60895
  Prefactor  = 0.0001
  norm       = 1.07765
  Prefactor  = 0.0001
  Prefactor  = 11.5148
  norm       = 0.846736
  Prefactor  = 10.9506
  Prefactor  = 25.678
  Prefactor  = 0.0001
  Prefactor  = 7.72369
  norm       = 14.6453
  Prefactor  = 0.0001
  Prefactor  = 19.336
  Prefactor  = 6.26222
  Prefactor  = 0.0001
  norm       = 0.77443
  norm       = 20.388
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Normalizat = 0.884243
  Prefactor  = 0.939184
 **********
 **   18 **HESSE 
 **********

 FCN=   6505.291     FROM HESSE     STATUS=OK           350 CALLS     2713 TOTAL
                     EDM=   .45E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    10.778        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          1.6090        1.6162        .10085E-03   -1.5454    
   3  Prefactor     .10000E-03    110.48        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  norm          1.0777        1.9653        .18170E-02   -1.5500    
   5  Prefactor     .10000E-03    3.6540        .15052E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     11.515        13.061        .11800E-03   -1.5029    
   7  norm          .84674        .61611        .45126E-04   -1.5524    
   8  Prefactor     10.951        15.760        .12107E-03   -1.5046    
   9  Prefactor     25.678        17.270        .79044E-04   -1.4694    
  10  Prefactor     .10000E-03    9.4212        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     7.7237        42.901        .72143E-03   -1.5152    
  12  norm          14.645        4.3206        .85178E-04   -1.4942    
  13  Prefactor     .10000E-03    60.980        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     19.336        15.871        .91080E-04   -1.4828    
  15  Prefactor     6.2622        16.698        .80209E-03   -1.5207    
  16  Prefactor     .10000E-03    29.037        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          .77443        .62920        .50063E-04   -1.5532    
  18  norm          20.388        6.5771        .88704E-04   -1.4805    
  19  Prefactor     .10000E-03    18.172        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    21.911        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Normalizat    .88424        .20271        .25319E-03   -.97016    
  22  Prefactor     .93918        .19739        .25079E-03   -.94785    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.45624e-09
Minuit parameter uncertainties:
  1  4.47636e-06
  2  1.61626
  3  0.000230655
  4  1.96542
  5  1.76363e-06
  6  13.0641
  7  0.616115
  8  15.7663
  9  17.2731
  10  1.30331e-06
  11  36.4461
  12  4.32065
  13  0.000189122
  14  15.874
  15  16.7103
  16  7.63377e-05
  17  0.629204
  18  6.57728
  19  2.91336e-05
  20  6.14151e-05
  21  0.202881
  22  0.197543
Done.

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

Extracting fit parameters...

4FGL J2331.0-2147
   Spectrum: LogParabola
418         norm:  1.465e+01  4.321e+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.392e-01  1.975e-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:  8.842e-01  2.029e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 26.71
Ra Dec: 352.763 -21.795
Photon Index (Fixed Index): 2.43 +/- 0.00
Photon Flux (Fixed Index): 1.57e-07 +/- 4.63e-08
Energy Flux (Fixed Index): 5.22e-05 +/- 1.54e-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) = 6505.28762884
delta logL = 0.00319333530388

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6505.28432843
delta logL = 0.00649373835313

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    14.219       1.0000         .10000E-03   10000.    
     2 'alpha     '    2.4708       1.0000          .0000       5.0000    
     3 'Normalizat'    .87902       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .94272       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=   6505.284     FROM MIGRAD    STATUS=CONVERGED     86 CALLS      234 TOTAL
                     EDM=   .16E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          14.220        5.7818        .83394E-04   -.17081E-03
   2  alpha         2.4708        .34319        .68934E-02    .27107E-03
   3  Normalizat    .87905        .19779        .25382E-03   -.10835E-03
   4  Prefactor     .94272        .19779        .25037E-03   -.77557E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 14.2196
  alpha      = 2.4708
  Normalizat = 0.879048
  Prefactor  = 0.942716
 **********
 **   18 **HESSE 
 **********

 FCN=   6505.284     FROM HESSE     STATUS=OK            25 CALLS      259 TOTAL
                     EDM=   .17E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          14.220        5.6293        .33358E-05   -1.4954    
   2  alpha         2.4708        .33395        .13787E-02   -.11681E-01
   3  Normalizat    .87905        .19773        .10153E-04   -.97200    
   4  Prefactor     .94272        .19782        .10015E-04   -.94664    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.6848e-11
Minuit parameter uncertainties:
  1  5.62947
  2  0.334954
  3  0.197891
  4  0.197967
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/7941': 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) = 6505.2843284
delta logL = 0.0064937722027

Extracting fit parameters...

4FGL J2331.0-2147
   Spectrum: LogParabola
418         norm:  1.422e+01  5.629e+00  1.000e-04  1.000e+04 ( 1.000e-12)
419        alpha:  2.471e+00  3.350e-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:  9.427e-01  1.980e-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:  8.790e-01  1.979e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 26.49
Ra Dec: 352.763 -21.795
Photon Index (Free Index): 2.47 +/- 0.33
Photon Flux (Free Index): 1.61e-07 +/- 5.69e-08
Energy Flux (Free Index): 5.16e-05 +/- 1.58e-05

Creating a high resolution counts map...
INFO: Auto-setting vmin to -2.500e-04 [aplpy.core]
INFO: Auto-setting vmax to  2.775e-03 [aplpy.core]
Saving /scratch/kocevski/7941/cmap_HighResolution_574732801_574992001_4FGL_J2331.0-2147_daily_bin1294.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='1.57e-07', energy_flux2='5.16e-05', photon_flux_error='4.63e-08', dlogl='6.49e-03', energy_flux='5.22e-05', photon_flux2='1.61e-07', job_status='DONE', time_completed='2021-09-29 23:08:57.328945', photon_index_error2='0.33', photon_index2='2.47', ts='26.71', fit_tolerance='1e-08', GAL='0.94', photon_index_error='0.00', energy_flux_error2='1.58e-05', EG='0.88', time_epoch_completed='1632982137.33', return_code='0', job_id='7941', GAL2='0.94', EG2='0.88', return_code2='0', energy_flux_error='1.54e-05', photon_flux_error2='5.69e-08', ts2='26.49', photon_index='2.43' WHERE bin_id='1294' AND source_name='4FGL J2331.0-2147' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep 29 23:08:57 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0289>
Subject: Job 7941: <4FGL_J2331.0-2147_daily_bin1294> in cluster <slac> Done

Job <4FGL_J2331.0-2147_daily_bin1294> was submitted from host <rhel6-64d> by user <kocevski> in cluster <slac> at Wed Sep 29 22:56:18 2021
Job was executed on host(s) <bullet0289>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Sep 29 22:56:19 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:19 2021
Terminated at Wed Sep 29 23:08:58 2021
Results reported at Wed Sep 29 23:08:58 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2331.0-2147_daily_bin1294 352.763 -21.7953 574732801 574992001 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 :                                   576.44 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             234.12 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   758 sec.
    Turnaround time :                            760 sec.

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

