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


Performing analysis on: 4FGL_J2331.0-2147_daily_bin1588
RA = 352.763, Dec = -21.7953
tmin = 650937601, tmax = 651196801
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='9288', job_status='RUN', time_executed='2021-09-29 23:01:06.544135', time_epoch_executed='1632981666.54' WHERE source_name='4FGL J2331.0-2147' and cadence='daily' and bin_id='1588'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/9288

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/9288/ft1_4FGL_J2331.0-2147_daily_bin1588.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/9288/ft2_4FGL_J2331.0-2147_daily_bin1588.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/9288/ft1_4FGL_J2331.0-2147_daily_bin1588.fits outfile=/scratch/kocevski/9288/ft1_filteredMKT_4FGL_J2331.0-2147_daily_bin1588.fits ra=352.763 dec=-21.7953 rad=12.0 tmin=650937601.0 tmax=651196801.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.60
user 3.37
sys 0.21

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/9288/ft2_4FGL_J2331.0-2147_daily_bin1588.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/9288/ft1_filteredMKT_4FGL_J2331.0-2147_daily_bin1588.fits evtable="EVENTS" outfile="/scratch/kocevski/9288/ft1_filtered_4FGL_J2331.0-2147_daily_bin1588.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/9288/ft1_filtered_4FGL_J2331.0-2147_daily_bin1588.fits" evtable="EVENTS" scfile=/scratch/kocevski/9288/ft2_4FGL_J2331.0-2147_daily_bin1588.fits sctable="SC_DATA" outfile=/scratch/kocevski/9288/ltcube_650937601_651196801_4FGL_J2331.0-2147_daily_bin1588.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/9288/ft2_4FGL_J2331.0-2147_daily_bin1588.fits
.....................!
real 11.70
user 11.37
sys 0.31

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/9288/ft1_filtered_4FGL_J2331.0-2147_daily_bin1588.fits evtable="EVENTS" scfile=/scratch/kocevski/9288/ft2_4FGL_J2331.0-2147_daily_bin1588.fits sctable="SC_DATA" expcube=/scratch/kocevski/9288/ltcube_650937601_651196801_4FGL_J2331.0-2147_daily_bin1588.fits outfile=/scratch/kocevski/9288/expmap_650937601_651196801_4FGL_J2331.0-2147_daily_bin1588.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/9288/ltcube_650937601_651196801_4FGL_J2331.0-2147_daily_bin1588.fits
.....................!
real 190.40
user 185.25
sys 4.83

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/9288/ft1_filtered_4FGL_J2331.0-2147_daily_bin1588.fits scfile=/scratch/kocevski/9288/ft2_4FGL_J2331.0-2147_daily_bin1588.fits outfile=/scratch/kocevski/9288/cmap_650937601_651196801_4FGL_J2331.0-2147_daily_bin1588.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.53
user 0.37
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/9288/ft1_filtered_4FGL_J2331.0-2147_daily_bin1588.fits scfile=/scratch/kocevski/9288/ft2_4FGL_J2331.0-2147_daily_bin1588.fits outfile=/scratch/kocevski/9288/cmap_HighResolution_650937601_651196801_4FGL_J2331.0-2147_daily_bin1588.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/9288/ft1_filtered_4FGL_J2331.0-2147_daily_bin1588.fits evtable="EVENTS" scfile=/scratch/kocevski/9288/ft2_4FGL_J2331.0-2147_daily_bin1588.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/9288/Model_4FGL_J2331.0-2147_daily_bin1588.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/9288/ft1_filtered_4FGL_J2331.0-2147_daily_bin1588.fits.....................!
real 37.00
user 35.72
sys 1.22

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    77.805       1.0000         .10000E-03   10000.    
     2 'norm      '    .10162E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    8.1454       1.0000         .10000E-03   10000.    
     4 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10009E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    13.302       1.0000         .10000E-03   10000.    
     7 'norm      '    .61468       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .11824E-01   1.0000         .10000E-03   10000.    
     9 'Prefactor '    1.5300       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10168E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .39731E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    9.0536       1.0000         .10000E-03   10000.    
    13 'Prefactor '    6.1507       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10035E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    19.411       1.0000         .10000E-03   10000.    
    16 'Prefactor '    193.24       1.0000         .10000E-03   10000.    
    17 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    18 'norm      '    25.011       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10008E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .68544E-03   1.0000         .10000E-03   10000.    
    21 'Normalizat'    .90627       1.0000         .10000E-01   10.000    
    22 'Prefactor '    .92236       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=   4026.468     FROM MIGRAD    STATUS=CONVERGED    475 CALLS     2405 TOTAL
                     EDM=   .22E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.0%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          77.805        55.033       -.12092E-06    .72935E-05
   2  norm          .10000E-03    1.3483        .16931E-05** at limit **
   3  Prefactor     8.2440        82.928       -.13042E-05   -.51070E-05
   4  norm          .10000E-03    1.8660        .57471E-07** at limit **
   5  Prefactor     .10000E-03    11.445       -.98463E-07** at limit **
   6  Prefactor     13.301        13.980       -.66048E-07   -.77186E-04
   7  norm          .61463        .84286        .97789E-07    .14334E-03
   8  Prefactor     .10220E-03    6.7359        .75989E-06** at limit **
   9  Prefactor     1.5293        11.292        .22570E-05    .32352E-04
  10  Prefactor     .10000E-03    22.352        .23015E-06** at limit **
  11  Prefactor     .10000E-03    198.63        .28211E-05** at limit **
  12  norm          9.0529        5.9413        .11640E-06    .34786E-04
  13  Prefactor     6.1939        173.37        .17980E-05    .17435E-04
  14  Prefactor     .10000E-03    8.1746        .69973E-06** at limit **
  15  Prefactor     19.416        53.107        .48122E-06    .48415E-05
  16  Prefactor     193.29        186.26        .91194E-06    .12195E-04
  17  norm          .10000E-03    .49676       -.26772E-06** at limit **
  18  norm          25.004        8.6662        .39476E-06    .44339E-03
  19  Prefactor     .10000E-03    38.392       -.11393E-06** at limit **
  20  Prefactor     .10000E-03    511.05       -.93941E-05** at limit **
  21  Normalizat    .90603        .24903       -.37119E-05    .85330E-04
  22  Prefactor     .92253        .22567        .33063E-05   -.61746E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 77.8048
  norm       = 0.0001
  Prefactor  = 8.24402
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 13.3008
  norm       = 0.614625
  Prefactor  = 0.000102204
  Prefactor  = 1.52932
  Prefactor  = 0.0001
  Prefactor  = 0.000100002
  norm       = 9.05294
  Prefactor  = 6.19393
  Prefactor  = 0.0001
  Prefactor  = 19.4161
  Prefactor  = 193.29
  norm       = 0.0001
  norm       = 25.0038
  Prefactor  = 0.0001
  Prefactor  = 0.000100002
  Normalizat = 0.906031
  Prefactor  = 0.922528
 **********
 **   18 **HESSE 
 **********

 FCN=   4026.468     FROM HESSE     STATUS=OK           354 CALLS     2759 TOTAL
                     EDM=   .60E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          77.805        55.042        .45526E-04   -1.3942    
   2  norm          .10000E-03    1.3792        .72527E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     8.2440        82.853        .14048E-03   -1.5134    
   4  norm          .10000E-03    1.8664        .84592E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    11.463        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     13.301        13.809        .10983E-03   -1.4978    
   7  norm          .61463        .78924        .55262E-03   -1.5551    
   8  Prefactor     .10220E-03    10.021        .59827E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     1.5293        11.142        .34507E-03   -1.5461    
  10  Prefactor     .10000E-03    22.439        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    203.98        .42533E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          9.0529        5.9265        .11138E-03   -1.5106    
  13  Prefactor     6.1939        171.76        .16188E-03   -1.5210    
  14  Prefactor     .10000E-03    8.1728        .17708E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     19.416        53.015        .90907E-04   -1.4826    
  16  Prefactor     193.29        186.75        .14529E-03   -1.2918    
  17  norm          .10000E-03    .94633        .81647E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          25.004        8.3059        .80098E-04   -1.4707    
  19  Prefactor     .10000E-03    38.419        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    527.21        .41983E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Normalizat    .90603        .27564        .26285E-03   -.96249    
  22  Prefactor     .92253        .24954        .25213E-03   -.95358    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 6.03335e-10
Minuit parameter uncertainties:
  1  55.0781
  2  1.44093e-05
  3  52.3639
  4  8.12434e-07
  5  1.76567e-05
  6  13.8128
  7  0.78925
  8  0.00940192
  9  8.25775
  10  7.0694e-06
  11  0.00141164
  12  5.92692
  13  65.4423
  14  1.13315e-05
  15  53.1436
  16  187.323
  17  4.95921e-06
  18  8.30628
  19  1.40476e-06
  20  0.00180566
  21  0.27607
  22  0.249849
Done.

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

Extracting fit parameters...

4FGL J2331.0-2147
   Spectrum: LogParabola
418         norm:  9.053e+00  5.927e+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.225e-01  2.498e-01  0.000e+00  1.000e+01 ( 1.000e+00)
535        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
536        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
533   Normalization:  9.060e-01  2.761e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 4.44
Ra Dec: 352.763 -21.795
Photon Index (Fixed Index): 2.43 +/- 0.00
Photon Flux (Fixed Index): 9.71e-08 +/- 6.35e-08
Energy Flux (Fixed Index): 3.23e-05 +/- 2.11e-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) = 4026.30419642
delta logL = 0.16377895735

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 4026.29239043
delta logL = 0.175584944596

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    6.6603       1.0000         .10000E-03   10000.    
     2 'alpha     '    2.8572       1.0000          .0000       5.0000    
     3 'Normalizat'    .85854       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .95348       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=   4026.292     FROM MIGRAD    STATUS=CONVERGED     79 CALLS      259 TOTAL
                     EDM=   .15E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          6.6592        6.7725        .87125E-04    .12327E-02
   2  alpha         2.8574        .79713        .92604E-02    .11357E-03
   3  Normalizat    .85900        .26953        .26898E-03   -.24103E-03
   4  Prefactor     .95314        .25262        .24847E-03   -.60880E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 6.65918
  alpha      = 2.85741
  Normalizat = 0.859001
  Prefactor  = 0.953135
 **********
 **   18 **HESSE 
 **********

 FCN=   4026.292     FROM HESSE     STATUS=OK            25 CALLS      284 TOTAL
                     EDM=   .15E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          6.6592        6.1698        .34850E-05   -1.5192    
   2  alpha         2.8574        .72685        .37042E-03    .14346    
   3  Normalizat    .85900        .26767        .53797E-04   -.97916    
   4  Prefactor     .95314        .25131        .49693E-04   -.94308    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.54087e-09
Minuit parameter uncertainties:
  1  6.17036
  2  0.73773
  3  0.268088
  4  0.251615
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/9288': 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) = 4026.29238853
delta logL = 0.175586850301

Extracting fit parameters...

4FGL J2331.0-2147
   Spectrum: LogParabola
418         norm:  6.659e+00  6.170e+00  1.000e-04  1.000e+04 ( 1.000e-12)
419        alpha:  2.857e+00  7.377e-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.531e-01  2.516e-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.590e-01  2.681e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 4.81
Ra Dec: 352.763 -21.795
Photon Index (Free Index): 2.86 +/- 0.74
Photon Flux (Free Index): 1.35e-07 +/- 9.72e-08
Energy Flux (Free Index): 3.24e-05 +/- 1.86e-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/9288/cmap_HighResolution_650937601_651196801_4FGL_J2331.0-2147_daily_bin1588.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='9.71e-08', energy_flux2='3.24e-05', photon_flux_error='6.35e-08', dlogl='1.76e-01', energy_flux='3.23e-05', photon_flux2='1.35e-07', job_status='DONE', time_completed='2021-09-29 23:08:54.583394', photon_index_error2='0.74', photon_index2='2.86', ts='4.44', fit_tolerance='1e-08', GAL='0.92', photon_index_error='0.00', energy_flux_error2='1.86e-05', EG='0.91', time_epoch_completed='1632982134.58', return_code='0', job_id='9288', GAL2='0.95', EG2='0.86', return_code2='0', energy_flux_error='2.11e-05', photon_flux_error2='9.72e-08', ts2='4.81', photon_index='2.43' WHERE bin_id='1588' AND source_name='4FGL J2331.0-2147' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep 29 23:08:54 PDT 2021


------------------------------------------------------------
Sender: LSF System <scs@bullet0185>
Subject: Job 9288: <4FGL_J2331.0-2147_daily_bin1588> in cluster <slac> Done

Job <4FGL_J2331.0-2147_daily_bin1588> was submitted from host <rhel6-64k> by user <kocevski> in cluster <slac> at Wed Sep 29 23:00:33 2021
Job was executed on host(s) <bullet0185>, 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:08:55 2021
Results reported at Wed Sep 29 23:08:55 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2331.0-2147_daily_bin1588 352.763 -21.7953 650937601 651196801 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 :                                   463.23 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             342.24 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   499 sec.
    Turnaround time :                            502 sec.

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

