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


Performing analysis on: 4FGL_J2331.0-2147_daily_bin1263
RA = 352.763, Dec = -21.7953
tmin = 566697601, tmax = 566956801
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='7891', job_status='RUN', time_executed='2021-09-29 22:59:00.245689', time_epoch_executed='1632981540.25' WHERE source_name='4FGL J2331.0-2147' and cadence='daily' and bin_id='1263'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/7891

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/7891/ft1_4FGL_J2331.0-2147_daily_bin1263.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/7891/ft2_4FGL_J2331.0-2147_daily_bin1263.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/7891/ft1_4FGL_J2331.0-2147_daily_bin1263.fits outfile=/scratch/kocevski/7891/ft1_filteredMKT_4FGL_J2331.0-2147_daily_bin1263.fits ra=352.763 dec=-21.7953 rad=12.0 tmin=566697601.0 tmax=566956801.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 1.99
user 1.78
sys 0.20

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/7891/ft2_4FGL_J2331.0-2147_daily_bin1263.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/7891/ft1_filteredMKT_4FGL_J2331.0-2147_daily_bin1263.fits evtable="EVENTS" outfile="/scratch/kocevski/7891/ft1_filtered_4FGL_J2331.0-2147_daily_bin1263.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.50
user 0.31
sys 0.16

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/7891/ft1_filtered_4FGL_J2331.0-2147_daily_bin1263.fits" evtable="EVENTS" scfile=/scratch/kocevski/7891/ft2_4FGL_J2331.0-2147_daily_bin1263.fits sctable="SC_DATA" outfile=/scratch/kocevski/7891/ltcube_566697601_566956801_4FGL_J2331.0-2147_daily_bin1263.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/7891/ft2_4FGL_J2331.0-2147_daily_bin1263.fits
.....................!
real 12.73
user 12.36
sys 0.34

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/7891/ft1_filtered_4FGL_J2331.0-2147_daily_bin1263.fits evtable="EVENTS" scfile=/scratch/kocevski/7891/ft2_4FGL_J2331.0-2147_daily_bin1263.fits sctable="SC_DATA" expcube=/scratch/kocevski/7891/ltcube_566697601_566956801_4FGL_J2331.0-2147_daily_bin1263.fits outfile=/scratch/kocevski/7891/expmap_566697601_566956801_4FGL_J2331.0-2147_daily_bin1263.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/7891/ltcube_566697601_566956801_4FGL_J2331.0-2147_daily_bin1263.fits
.....................!
real 192.13
user 186.73
sys 4.98

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/7891/ft1_filtered_4FGL_J2331.0-2147_daily_bin1263.fits scfile=/scratch/kocevski/7891/ft2_4FGL_J2331.0-2147_daily_bin1263.fits outfile=/scratch/kocevski/7891/cmap_566697601_566956801_4FGL_J2331.0-2147_daily_bin1263.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.36
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/7891/ft1_filtered_4FGL_J2331.0-2147_daily_bin1263.fits scfile=/scratch/kocevski/7891/ft2_4FGL_J2331.0-2147_daily_bin1263.fits outfile=/scratch/kocevski/7891/cmap_HighResolution_566697601_566956801_4FGL_J2331.0-2147_daily_bin1263.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/7891/ft1_filtered_4FGL_J2331.0-2147_daily_bin1263.fits evtable="EVENTS" scfile=/scratch/kocevski/7891/ft2_4FGL_J2331.0-2147_daily_bin1263.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/7891/Model_4FGL_J2331.0-2147_daily_bin1263.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/7891/ft1_filtered_4FGL_J2331.0-2147_daily_bin1263.fits.....................!
real 59.89
user 58.53
sys 1.25

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    8.9236       1.0000         .10000E-03   10000.    
     2 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10044E-03   1.0000         .10000E-03   10000.    
     4 'norm      '    .62410       1.0000         .10000E-03   10000.    
     5 'Prefactor '    9.3701       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10588E-03   1.0000         .10000E-03   10000.    
     7 'norm      '    2.0547       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10028E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    32.195       1.0000         .10000E-03   10000.    
    12 'norm      '    .10119E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .68192E-02   1.0000         .10000E-03   10000.    
    14 'Prefactor '    1.0146       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .16322E-02   1.0000         .10000E-03   10000.    
    16 'Prefactor '    19.827       1.0000         .10000E-03   10000.    
    17 'norm      '    .14976       1.0000         .10000E-03   10000.    
    18 'norm      '    15.550       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10017E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    21 'Normalizat'    1.0215       1.0000         .10000E-01   10.000    
    22 'Prefactor '    .82298       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=   8352.387     FROM MIGRAD    STATUS=CONVERGED    532 CALLS     2511 TOTAL
                     EDM=   .17E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  6.0%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          8.9448        21.254        .32261E-06    .34064E-04
   2  norm          .10000E-03    1.0433       -.14081E-06** at limit **
   3  Prefactor     .10000E-03    74.471       -.19535E-05** at limit **
   4  norm          .62407        1.8291       -.64301E-07   -.70170E-03
   5  Prefactor     9.3732        8.8167       -.25723E-06   -.52388E-04
   6  Prefactor     .10000E-03    4.4567        .11360E-05** at limit **
   7  norm          2.0552        .64939       -.58569E-07   -.65204E-03
   8  Prefactor     .10000E-03    4.2875       -.12645E-06** at limit **
   9  Prefactor     .10000E-03    11.766        .13158E-06** at limit **
  10  Prefactor     .10000E-03    14.542        .94615E-07** at limit **
  11  Prefactor     32.181        35.670        .20255E-06   -.14718E-04
  12  norm          .10001E-03    .94828       -.37686E-06** at limit **
  13  Prefactor     .10038E-03    64.569        .47869E-05** at limit **
  14  Prefactor     1.0526        17.040       -.42842E-05    .42428E-03
  15  Prefactor     .10000E-03    66.676       -.42229E-05** at limit **
  16  Prefactor     19.719        88.068        .48958E-05    .81387E-04
  17  norm          .14977        .20260        .39081E-06    .48896E-02
  18  norm          15.549        4.2833       -.99735E-07   -.61184E-04
  19  Prefactor     .10000E-03    17.879        .49297E-06** at limit **
  20  Prefactor     .10000E-03    15.679       -.36302E-06** at limit **
  21  Normalizat    1.0215        .14505       -.23723E-05    .17303E-03
  22  Prefactor     .82303        .13980        .20943E-05   -.25837E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 8.94476
  norm       = 0.0001
  Prefactor  = 0.000100002
  norm       = 0.624066
  Prefactor  = 9.37319
  Prefactor  = 0.000100003
  norm       = 2.05517
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 32.1805
  norm       = 0.000100015
  Prefactor  = 0.000100376
  Prefactor  = 1.05265
  Prefactor  = 0.000100002
  Prefactor  = 19.7192
  norm       = 0.14977
  norm       = 15.5492
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Normalizat = 1.02145
  Prefactor  = 0.823032
 **********
 **   18 **HESSE 
 **********

 FCN=   8352.387     FROM HESSE     STATUS=OK           364 CALLS     2875 TOTAL
                     EDM=   .82E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          8.9448        21.282        .13417E-03   -1.5110    
   2  norm          .10000E-03    1.0862        .18214E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    75.185        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  norm          .62407        1.7914        .20532E-02   -1.5550    
   5  Prefactor     9.3732        8.7586        .13092E-03   -1.5096    
   6  Prefactor     .10000E-03    29.862        .31220E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          2.0552        .61327        .36280E-04   -1.5421    
   8  Prefactor     .10000E-03    4.3393        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    12.222        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    14.661        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     32.181        35.699        .70618E-04   -1.4573    
  12  norm          .10001E-03    4.5832        .16505E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10038E-03    51.182        .13286       -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     1.0526        45.323        .48689E-02   -1.5503    
  15  Prefactor     .10000E-03    66.861        .56016E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     19.719        93.143        .89950E-04   -1.4820    
  17  norm          .14977        .19691        .54706E-03   -1.5631    
  18  norm          15.549        4.2468        .90848E-04   -1.4919    
  19  Prefactor     .10000E-03    17.922        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    15.723        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Normalizat    1.0215        .15916        .22161E-03   -.92315    
  22  Prefactor     .82303        .15466        .24633E-03   -.98885    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 8.15444e-09
Minuit parameter uncertainties:
  1  21.3
  2  2.72498e-06
  3  0.000775749
  4  1.79155
  5  8.75984
  6  0.00058037
  7  0.613267
  8  1.14043e-05
  9  2.75805e-05
  10  5.17583e-05
  11  35.7231
  12  0.000518796
  13  0.00877553
  14  13.8249
  15  0.00080987
  16  85.9324
  17  0.196909
  18  4.24683
  19  9.9951e-05
  20  9.39156e-05
  21  0.159235
  22  0.154746
Done.

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

Extracting fit parameters...

4FGL J2331.0-2147
   Spectrum: LogParabola
418         norm:  1.000e-04  5.188e-04  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:  8.230e-01  1.547e-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.021e+00  1.592e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): -0.00
Ra Dec: 352.763 -21.795
Photon Flux Upper Limit: 4.74e-08 ph cm-2 s-1
Energy Flux Upper Limit: 1.57e-05 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/7891/likelihoodResults_566697601_566956801_4FGL_J2331.0-2147_daily_bin1263.txt

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) = 8352.38767144
delta logL = -0.00104423997982

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 8352.38662845
delta logL = -1.2519358279e-06

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .11669E-03   1.0000         .10000E-03   10000.    
     2 'alpha     '    2.4761       1.0000          .0000       5.0000    
     3 'Normalizat'    1.0216       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .82296       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.
 MIGRAD TERMINATED WITHOUT CONVERGENCE.

 FCN=   8352.387     FROM MIGRAD    STATUS=FAILED        92 CALLS      253 TOTAL
                     EDM=   .31E-07    STRATEGY= 1      ERR MATRIX APPROXIMATE

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10014E-03    5.7475        .15582E-02** at limit **
   2  alpha         2.5283        3.5649        .16462       -.57653E-04
   3  Normalizat    1.0214        .15110        .22161E-03    .43807E-03
   4  Prefactor     .82303        .15312        .24633E-03    .43232E-03
                               ERR DEF=  .500    
 START SIMPLEX MINIMIZATION.    CONVERGENCE WHEN EDM .LT.   .20E-04
 SIMPLEX MINIMIZATION HAS CONVERGED.

 FCN=   8352.387     FROM SIMPLEX   STATUS=UNCHANGED    120 CALLS      373 TOTAL
                     EDM=   .88E-05    STRATEGY= 1      ERR MATRIX APPROXIMATE

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10014E-03    5.7475        .21682E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  alpha         2.5283        3.5649        .97466E-03    .11302E-01
   3  Normalizat    1.0214        .15110        .56419E-04   -.92315    
   4  Prefactor     .82303        .15312        .64619E-04   -.98885    
                               ERR DEF=  .500    

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   8352.387     FROM MIGRAD    STATUS=CONVERGED     27 CALLS      400 TOTAL
                     EDM=   .40E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    5.7155        .31164E-03** at limit **
   2  alpha         2.5285        3.5585        .65847E-02   -.57584E-04
   3  Normalizat    1.0214        .15122        .44321E-04   -.20880E-03
   4  Prefactor     .82303        .15324        .49266E-04   -.17455E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 0.000100004
  alpha      = 2.52848
  Normalizat = 1.02145
  Prefactor  = 0.823033
 **********
 **   18 **HESSE 
 **********

 FCN=   8352.387     FROM HESSE     STATUS=OK            23 CALLS      423 TOTAL
                     EDM=   .41E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    5.7159        .62327E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  alpha         2.5285        3.5583        .13169E-02    .11392E-01
   3  Normalizat    1.0214        .15124        .88643E-05   -.92315    
   4  Prefactor     .82303        .15327        .98531E-05   -.98885    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.07619e-09
Minuit parameter uncertainties:
  1  0.000313174
  2  2.49986
  3  0.151305
  4  0.153346
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/7891': 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) = 8352.38662512
delta logL = 2.07442644751e-06

Extracting fit parameters...

4FGL J2331.0-2147
   Spectrum: LogParabola
418         norm:  1.000e-04  3.132e-04  1.000e-04  1.000e+04 ( 1.000e-12)
419        alpha:  2.528e+00  2.500e+00  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:  8.230e-01  1.533e-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.021e+00  1.513e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
Ra Dec: 352.763 -21.795

Creating a high resolution counts map...
INFO: Auto-setting vmin to -1.000e-01 [aplpy.core]
INFO: Auto-setting vmax to  1.110e+00 [aplpy.core]
Saving /scratch/kocevski/7891/cmap_HighResolution_566697601_566956801_4FGL_J2331.0-2147_daily_bin1263.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.57e-05', job_status='DONE', photon_flux_upper_limit='4.74e-08', time_completed='2021-09-29 23:11:13.054209', job_id='7891', GAL2='0.82', fit_tolerance='1e-08', EG2='1.02', EG='1.02', time_epoch_completed='1632982273.05', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.82', dlogl='2.07e-06', ts2='-0.00', photon_index_error='0.00', photon_index='2.43' WHERE bin_id='1263' AND source_name='4FGL J2331.0-2147' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep 29 23:11:13 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0082>
Subject: Job 7891: <4FGL_J2331.0-2147_daily_bin1263> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2331.0-2147_daily_bin1263 352.763 -21.7953 566697601 566956801 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 :                                   729.08 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             322.11 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   898 sec.
    Turnaround time :                            901 sec.

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

