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


Performing analysis on: 4FGL_J2331.0-2147_daily_bin1590
RA = 352.763, Dec = -21.7953
tmin = 651456001, tmax = 651715201
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='9291', job_status='RUN', time_executed='2021-09-29 23:02:37.600501', time_epoch_executed='1632981757.6' WHERE source_name='4FGL J2331.0-2147' and cadence='daily' and bin_id='1590'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/9291

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/9291/ft1_4FGL_J2331.0-2147_daily_bin1590.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/9291/ft2_4FGL_J2331.0-2147_daily_bin1590.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/9291/ft1_4FGL_J2331.0-2147_daily_bin1590.fits outfile=/scratch/kocevski/9291/ft1_filteredMKT_4FGL_J2331.0-2147_daily_bin1590.fits ra=352.763 dec=-21.7953 rad=12.0 tmin=651456001.0 tmax=651715201.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.48
user 3.22
sys 0.23

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

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

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/9291/ft1_filtered_4FGL_J2331.0-2147_daily_bin1590.fits" evtable="EVENTS" scfile=/scratch/kocevski/9291/ft2_4FGL_J2331.0-2147_daily_bin1590.fits sctable="SC_DATA" outfile=/scratch/kocevski/9291/ltcube_651456001_651715201_4FGL_J2331.0-2147_daily_bin1590.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/9291/ft2_4FGL_J2331.0-2147_daily_bin1590.fits
.....................!
real 11.74
user 11.35
sys 0.34

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/9291/ft1_filtered_4FGL_J2331.0-2147_daily_bin1590.fits evtable="EVENTS" scfile=/scratch/kocevski/9291/ft2_4FGL_J2331.0-2147_daily_bin1590.fits sctable="SC_DATA" expcube=/scratch/kocevski/9291/ltcube_651456001_651715201_4FGL_J2331.0-2147_daily_bin1590.fits outfile=/scratch/kocevski/9291/expmap_651456001_651715201_4FGL_J2331.0-2147_daily_bin1590.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/9291/ltcube_651456001_651715201_4FGL_J2331.0-2147_daily_bin1590.fits
.....................!
real 190.67
user 184.96
sys 5.31

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/9291/ft1_filtered_4FGL_J2331.0-2147_daily_bin1590.fits scfile=/scratch/kocevski/9291/ft2_4FGL_J2331.0-2147_daily_bin1590.fits outfile=/scratch/kocevski/9291/cmap_651456001_651715201_4FGL_J2331.0-2147_daily_bin1590.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/9291/ft1_filtered_4FGL_J2331.0-2147_daily_bin1590.fits scfile=/scratch/kocevski/9291/ft2_4FGL_J2331.0-2147_daily_bin1590.fits outfile=/scratch/kocevski/9291/cmap_HighResolution_651456001_651715201_4FGL_J2331.0-2147_daily_bin1590.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.35
sys 0.17

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/9291/ft1_filtered_4FGL_J2331.0-2147_daily_bin1590.fits evtable="EVENTS" scfile=/scratch/kocevski/9291/ft2_4FGL_J2331.0-2147_daily_bin1590.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/9291/Model_4FGL_J2331.0-2147_daily_bin1590.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/9291/ft1_filtered_4FGL_J2331.0-2147_daily_bin1590.fits.....................!
real 37.82
user 36.45
sys 1.20

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10024E-03   1.0000         .10000E-03   10000.    
     2 'norm      '    .10965E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    67.953       1.0000         .10000E-03   10000.    
     4 'norm      '    .10036E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10048E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    8.0373       1.0000         .10000E-03   10000.    
     7 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10052E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10017E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    12.422       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .18019E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    11.679       1.0000         .10000E-03   10000.    
    13 'Prefactor '    24.534       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .11534E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10008E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .13250E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    .78478       1.0000         .10000E-03   10000.    
    18 'norm      '    .10012E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .16048E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    63.075       1.0000         .10000E-03   10000.    
    21 'Normalizat'    .78974       1.0000         .10000E-01   10.000    
    22 'Prefactor '    1.0457       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=   4129.358     FROM MIGRAD    STATUS=CONVERGED    470 CALLS     2360 TOTAL
                     EDM=   .49E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .3%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    47.579       -.13795E-05** at limit **
   2  norm          .10000E-03    1.9498        .52205E-07** at limit **
   3  Prefactor     67.952        79.041       -.98048E-06   -.57686E-05
   4  norm          .10000E-03    3.8393        .32294E-06** at limit **
   5  Prefactor     .10000E-03    12.427        .30673E-05** at limit **
   6  Prefactor     8.0397        9.9380       -.51099E-05   -.20820E-03
   7  norm          .10000E-03    .21572        .16549E-06** at limit **
   8  Prefactor     .10000E-03    13.091        .33009E-05** at limit **
   9  Prefactor     .10000E-03    6.6972        .34320E-06** at limit **
  10  Prefactor     12.429        23.399       -.27147E-05    .15589E-04
  11  Prefactor     .10000E-03    264.92       -.12893E-03** at limit **
  12  norm          11.679        4.8578       -.32641E-07    .89658E-04
  13  Prefactor     24.505        53.316       -.29529E-04    .35011E-04
  14  Prefactor     .10000E-03    12.996       -.57067E-05** at limit **
  15  Prefactor     .10000E-03    22.305       -.32308E-06** at limit **
  16  Prefactor     .10000E-03    242.21       -.26634E-04** at limit **
  17  norm          .78493        .47085        .28051E-07    .49325E-03
  18  norm          .10000E-03    1.7174       -.11996E-07** at limit **
  19  Prefactor     .10001E-03    212.76        .11759E-03** at limit **
  20  Prefactor     63.039        73.032       -.32433E-04   -.82042E-04
  21  Normalizat    .78976        .21110        .82018E-05   -.50193E-04
  22  Prefactor     1.0455        .20236       -.84152E-06    .20407E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 67.9524
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 8.03965
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 12.4287
  Prefactor  = 0.000100002
  norm       = 11.6793
  Prefactor  = 24.5049
  Prefactor  = 0.000100001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.784934
  norm       = 0.0001
  Prefactor  = 0.000100007
  Prefactor  = 63.039
  Normalizat = 0.789764
  Prefactor  = 1.04548
 **********
 **   18 **HESSE 
 **********

 FCN=   4129.358     FROM HESSE     STATUS=OK           330 CALLS     2690 TOTAL
                     EDM=   .10E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    47.718        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          .10000E-03    1.9575        .87320E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     67.952        78.681        .48691E-04   -1.4057    
   4  norm          .10000E-03    3.8863        .12258E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    12.476        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     8.0397        9.8359        .14143E-03   -1.5141    
   7  norm          .10000E-03    .21750        .57705E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    13.344        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    6.7253        .16226E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     12.429        23.403        .11365E-03   -1.5003    
  11  Prefactor     .10000E-03    265.58        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          11.679        4.8612        .86945E-04   -1.5024    
  13  Prefactor     24.505        53.186        .80873E-04   -1.4718    
  14  Prefactor     .10000E-03    12.999        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    22.336        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    243.24        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          .78493        .46910        .33037E-04   -1.5531    
  18  norm          .10000E-03    1.7264        .82175E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10001E-03    215.36        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     63.039        73.492        .50526E-04   -1.4118    
  21  Normalizat    .78976        .24636        .25929E-03   -1.0045    
  22  Prefactor     1.0455        .23674        .22612E-03   -.91228    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.04481e-09
Minuit parameter uncertainties:
  1  0.000188778
  2  8.41922e-06
  3  78.8017
  4  7.35388e-05
  5  0.000107949
  6  9.8379
  7  7.51533e-06
  8  9.13278e-05
  9  6.01478e-05
  10  23.4205
  11  0.00148597
  12  4.86139
  13  53.2889
  14  0.000243977
  15  2.93082e-05
  16  0.000173094
  17  0.469098
  18  2.81237e-06
  19  0.00250574
  20  73.5984
  21  0.246708
  22  0.236979
Done.

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

Extracting fit parameters...

4FGL J2331.0-2147
   Spectrum: LogParabola
418         norm:  1.168e+01  4.861e+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.045e+00  2.370e-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:  7.898e-01  2.467e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 17.82
Ra Dec: 352.763 -21.795
Photon Index (Fixed Index): 2.43 +/- 0.00
Photon Flux (Fixed Index): 1.25e-07 +/- 5.21e-08
Energy Flux (Fixed Index): 4.16e-05 +/- 1.73e-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) = 4128.8732207
delta logL = 0.484462989483

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 4128.83656709
delta logL = 0.521116599952

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    13.236       1.0000         .10000E-03   10000.    
     2 'alpha     '    1.9528       1.0000          .0000       5.0000    
     3 'Normalizat'    .83842       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0215       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5370E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   4128.837     FROM MIGRAD    STATUS=CONVERGED     51 CALLS      205 TOTAL
                     EDM=   .88E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          13.233        11.656        .27525E-02    .36799E-04
   2  alpha         1.9527        .80767        .28183        .11629E-04
   3  Normalizat    .83847        .21218        .44110E-01    .61096E-05
   4  Prefactor     1.0215        .20321        .41991E-01   -.12098E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 13.2327
  alpha      = 1.95268
  Normalizat = 0.838473
  Prefactor  = 1.02148
 **********
 **   18 **HESSE 
 **********

 FCN=   4128.837     FROM HESSE     STATUS=OK            33 CALLS      238 TOTAL
                     EDM=   .12E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          13.233        6.3215        .10652E-03   -1.4980    
   2  alpha         1.9527        .50324        .10803E-01   -.22072    
   3  Normalizat    .83847        .24031        .25277E-03   -.98657    
   4  Prefactor     1.0215        .23515        .22877E-03   -.92017    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.17036e-12
Minuit parameter uncertainties:
  1  6.32186
  2  0.506882
  3  0.240611
  4  0.23539
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/9291': 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) = 4128.83656691
delta logL = 0.521116775477

Extracting fit parameters...

4FGL J2331.0-2147
   Spectrum: LogParabola
418         norm:  1.323e+01  6.322e+00  1.000e-04  1.000e+04 ( 1.000e-12)
419        alpha:  1.953e+00  5.069e-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.021e+00  2.354e-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.385e-01  2.406e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 18.78
Ra Dec: 352.763 -21.795
Photon Index (Free Index): 1.95 +/- 0.51
Photon Flux (Free Index): 7.78e-08 +/- 6.00e-08
Energy Flux (Free Index): 4.76e-05 +/- 2.46e-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/9291/cmap_HighResolution_651456001_651715201_4FGL_J2331.0-2147_daily_bin1590.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='1.25e-07', energy_flux2='4.76e-05', photon_flux_error='5.21e-08', dlogl='5.21e-01', energy_flux='4.16e-05', photon_flux2='7.78e-08', job_status='DONE', time_completed='2021-09-29 23:10:25.047444', photon_index_error2='0.51', photon_index2='1.95', ts='17.82', fit_tolerance='1e-08', GAL='1.05', photon_index_error='0.00', energy_flux_error2='2.46e-05', EG='0.79', time_epoch_completed='1632982225.05', return_code='0', job_id='9291', GAL2='1.02', EG2='0.84', return_code2='0', energy_flux_error='1.73e-05', photon_flux_error2='6.00e-08', ts2='18.78', photon_index='2.43' WHERE bin_id='1590' AND source_name='4FGL J2331.0-2147' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep 29 23:10:25 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0215>
Subject: Job 9291: <4FGL_J2331.0-2147_daily_bin1590> in cluster <slac> Done

Job <4FGL_J2331.0-2147_daily_bin1590> 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) <bullet0215>, 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:10:25 2021
Results reported at Wed Sep 29 23:10:25 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2331.0-2147_daily_bin1590 352.763 -21.7953 651456001 651715201 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 :                                   462.19 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             250.75 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   590 sec.
    Turnaround time :                            592 sec.

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

