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


Performing analysis on: 4FGL_J2331.0-2147_daily_bin1319
RA = 352.763, Dec = -21.7953
tmin = 581212801, tmax = 581472001
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='7981', job_status='RUN', time_executed='2021-09-29 22:57:17.966103', time_epoch_executed='1632981437.97' WHERE source_name='4FGL J2331.0-2147' and cadence='daily' and bin_id='1319'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/7981

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/7981/ft1_4FGL_J2331.0-2147_daily_bin1319.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/7981/ft2_4FGL_J2331.0-2147_daily_bin1319.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/7981/ft1_4FGL_J2331.0-2147_daily_bin1319.fits outfile=/scratch/kocevski/7981/ft1_filteredMKT_4FGL_J2331.0-2147_daily_bin1319.fits ra=352.763 dec=-21.7953 rad=12.0 tmin=581212801.0 tmax=581472001.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 2.98
user 2.75
sys 0.21

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/7981/ft1_filtered_4FGL_J2331.0-2147_daily_bin1319.fits" evtable="EVENTS" scfile=/scratch/kocevski/7981/ft2_4FGL_J2331.0-2147_daily_bin1319.fits sctable="SC_DATA" outfile=/scratch/kocevski/7981/ltcube_581212801_581472001_4FGL_J2331.0-2147_daily_bin1319.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/7981/ft2_4FGL_J2331.0-2147_daily_bin1319.fits
.....................!
real 16.48
user 16.10
sys 0.30

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/7981/ft1_filtered_4FGL_J2331.0-2147_daily_bin1319.fits evtable="EVENTS" scfile=/scratch/kocevski/7981/ft2_4FGL_J2331.0-2147_daily_bin1319.fits sctable="SC_DATA" expcube=/scratch/kocevski/7981/ltcube_581212801_581472001_4FGL_J2331.0-2147_daily_bin1319.fits outfile=/scratch/kocevski/7981/expmap_581212801_581472001_4FGL_J2331.0-2147_daily_bin1319.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/7981/ltcube_581212801_581472001_4FGL_J2331.0-2147_daily_bin1319.fits
.....................!
real 190.42
user 185.10
sys 4.95

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/7981/ft1_filtered_4FGL_J2331.0-2147_daily_bin1319.fits scfile=/scratch/kocevski/7981/ft2_4FGL_J2331.0-2147_daily_bin1319.fits outfile=/scratch/kocevski/7981/cmap_581212801_581472001_4FGL_J2331.0-2147_daily_bin1319.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/7981/ft1_filtered_4FGL_J2331.0-2147_daily_bin1319.fits scfile=/scratch/kocevski/7981/ft2_4FGL_J2331.0-2147_daily_bin1319.fits outfile=/scratch/kocevski/7981/cmap_HighResolution_581212801_581472001_4FGL_J2331.0-2147_daily_bin1319.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.55
user 0.38
sys 0.17

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10010E-03   1.0000         .10000E-03   10000.    
     2 'norm      '    .94537       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     4 'norm      '    1.6303       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    17.925       1.0000         .10000E-03   10000.    
     7 'norm      '    2.4442       1.0000         .10000E-03   10000.    
     8 'Prefactor '    3.6207       1.0000         .10000E-03   10000.    
     9 'Prefactor '    6.6808       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    47.244       1.0000         .10000E-03   10000.    
    12 'norm      '    .10087E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10010E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10020E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    84.447       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    .32631       1.0000         .10000E-03   10000.    
    18 'norm      '    5.9555       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10863E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    4.1993       1.0000         .10000E-03   10000.    
    21 'Normalizat'    .73982       1.0000         .10000E-01   10.000    
    22 'Prefactor '    1.1780       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=   7591.716     FROM MIGRAD    STATUS=CONVERGED    468 CALLS     2400 TOTAL
                     EDM=   .10E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  3.9%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    19.551       -.41137E-06** at limit **
   2  norm          .94560        1.8066       -.16024E-06   -.24711E-03
   3  Prefactor     .10000E-03    16.193        .93778E-06** at limit **
   4  norm          1.6305        1.8500        .22967E-07    .23008E-05
   5  Prefactor     .10000E-03    3.2322       -.90677E-09** at limit **
   6  Prefactor     17.921        11.229       -.71090E-07    .13017E-04
   7  norm          2.4444        .85619        .24172E-07   -.23170E-04
   8  Prefactor     3.6213        8.7315        .17584E-05    .10032E-03
   9  Prefactor     6.6810        6.7545        .54150E-07    .18678E-05
  10  Prefactor     .10000E-03    8.9345       -.16905E-06** at limit **
  11  Prefactor     47.209        45.945        .17025E-05   -.24047E-04
  12  norm          .10000E-03    1.6201       -.68304E-08** at limit **
  13  Prefactor     .10000E-03    13.315       -.32293E-06** at limit **
  14  Prefactor     .10000E-03    8.7855        .27918E-06** at limit **
  15  Prefactor     84.439        30.137        .18179E-06   -.19786E-04
  16  Prefactor     .10000E-03    47.463        .12651E-05** at limit **
  17  norm          .32764        .52703        .23006E-06    .83100E-03
  18  norm          5.9466        4.5896       -.64596E-07    .19408E-04
  19  Prefactor     .10000E-03    41.617       -.21097E-05** at limit **
  20  Prefactor     4.1417        94.773        .84107E-05   -.15040E-04
  21  Normalizat    .74020        .17263        .15955E-05   -.13377E-03
  22  Prefactor     1.1776        .17581       -.21524E-05    .11518E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  norm       = 0.945598
  Prefactor  = 0.0001
  norm       = 1.63045
  Prefactor  = 0.0001
  Prefactor  = 17.9206
  norm       = 2.44444
  Prefactor  = 3.62132
  Prefactor  = 6.681
  Prefactor  = 0.0001
  Prefactor  = 47.2093
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 84.4392
  Prefactor  = 0.0001
  norm       = 0.327638
  norm       = 5.94664
  Prefactor  = 0.0001
  Prefactor  = 4.14172
  Normalizat = 0.740198
  Prefactor  = 1.17762
 **********
 **   18 **HESSE 
 **********

 FCN=   7591.716     FROM HESSE     STATUS=OK           348 CALLS     2748 TOTAL
                     EDM=   .55E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    19.624        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          .94560        1.5619        .15811E-02   -1.5513    
   3  Prefactor     .10000E-03    16.208        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  norm          1.6305        1.8468        .12181E-03   -1.5453    
   5  Prefactor     .10000E-03    3.2328        .15295E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     17.921        11.546        .94599E-04   -1.4861    
   7  norm          2.4444        .87930        .37113E-04   -1.5395    
   8  Prefactor     3.6213        8.8472        .10617E-02   -1.5327    
   9  Prefactor     6.6810        6.7319        .15525E-03   -1.5191    
  10  Prefactor     .10000E-03    8.9427        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     47.209        46.113        .58337E-04   -1.4333    
  12  norm          .10000E-03    1.6503        .10803E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    13.327        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    8.8682        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     84.439        30.192        .43714E-04   -1.3868    
  16  Prefactor     .10000E-03    47.476        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          .32764        .48920        .63582E-03   -1.5594    
  18  norm          5.9466        4.4848        .64281E-03   -1.5220    
  19  Prefactor     .10000E-03    42.123        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     4.1417        96.634        .19666E-03   -1.5301    
  21  Normalizat    .74020        .20180        .27330E-03   -1.0233    
  22  Prefactor     1.1776        .19992        .22941E-03   -.87023    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.46697e-09
Minuit parameter uncertainties:
  1  2.26799e-05
  2  1.56192
  3  3.88938e-06
  4  1.84688
  5  4.33555e-07
  6  11.5471
  7  0.879307
  8  8.85035
  9  6.7327
  10  6.3766e-06
  11  46.1478
  12  1.03865e-06
  13  6.14216e-06
  14  1.69318e-06
  15  30.1975
  16  4.8323e-05
  17  0.489208
  18  4.48501
  19  7.75231e-05
  20  40.084
  21  0.202005
  22  0.200052
Done.

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

Extracting fit parameters...

4FGL J2331.0-2147
   Spectrum: LogParabola
418         norm:  1.000e-04  1.039e-06  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.178e+00  2.001e-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.402e-01  2.020e-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: 5.85e-08 ph cm-2 s-1
Energy Flux Upper Limit: 1.94e-05 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/7981/likelihoodResults_581212801_581472001_4FGL_J2331.0-2147_daily_bin1319.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): 102
logL (Free Index) = 7591.71907872
delta logL = -0.00288692272261

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 7591.71619199
delta logL = -1.92854713532e-07

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10008E-03   1.0000         .10000E-03   10000.    
     2 'alpha     '    2.4265       1.0000          .0000       5.0000    
     3 'Normalizat'    .74023       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.1776       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=   7591.716     FROM MIGRAD    STATUS=CONVERGED     98 CALLS      249 TOTAL
                     EDM=   .13E-10    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    15.880        .10824E-01** at limit **
   2  alpha         2.1690        2.6039        .50000        .31173E-07
   3  Normalizat    .74020        .11604E-01    .27329E-03   -.11623E-03
   4  Prefactor     1.1776        .12088E-01    .22941E-03   -.11831E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  alpha      = 2.16903
  Normalizat = 0.740199
  Prefactor  = 1.17762
 **********
 **   18 **HESSE 
 **********

 FCN=   7591.716     FROM HESSE     STATUS=NOT POSDEF    29 CALLS      278 TOTAL
                     EDM=   .14E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    166.99        .10997E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  alpha         2.1690        2.7822        .50000       -.13278    
   3  Normalizat    .74020        .42263E-01    .10931E-04   -1.0233    
   4  Prefactor     1.1776        .44025E-01    .45883E-04   -.87023    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 1.36031e-10
Minuit parameter uncertainties:
  1  9.90079e-05
  2  1401.85
  3  0.0422649
  4  0.0440268
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/7981': 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): 102
logL (Free Index) = 7591.71619082
delta logL = 9.78106982075e-07

Extracting fit parameters...

4FGL J2331.0-2147
   Spectrum: LogParabola
418         norm:  1.000e-04  9.901e-05  1.000e-04  1.000e+04 ( 1.000e-12)
419        alpha:  2.169e+00  1.402e+03  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.178e+00  4.403e-02  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.402e-01  4.226e-02  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/7981/cmap_HighResolution_581212801_581472001_4FGL_J2331.0-2147_daily_bin1319.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.94e-05', job_status='DONE', photon_flux_upper_limit='5.85e-08', time_completed='2021-09-29 23:08:44.680435', job_id='7981', GAL2='1.18', fit_tolerance='1e-08', EG2='0.74', EG='0.74', time_epoch_completed='1632982124.68', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.18', dlogl='9.78e-07', ts2='-0.00', photon_index_error='0.00', photon_index='2.43' WHERE bin_id='1319' AND source_name='4FGL J2331.0-2147' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep 29 23:08:44 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0066>
Subject: Job 7981: <4FGL_J2331.0-2147_daily_bin1319> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2331.0-2147_daily_bin1319 352.763 -21.7953 581212801 581472001 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 :                                   683.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             332.16 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   742 sec.
    Turnaround time :                            745 sec.

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

