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


Performing analysis on: 4FGL_J2331.0-2147_daily_bin1320
RA = 352.763, Dec = -21.7953
tmin = 581472001, tmax = 581731201
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='7983', job_status='RUN', time_executed='2021-09-29 22:56:46.633565', time_epoch_executed='1632981406.63' WHERE source_name='4FGL J2331.0-2147' and cadence='daily' and bin_id='1320'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/7983

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/7983/ft1_4FGL_J2331.0-2147_daily_bin1320.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/7983/ft2_4FGL_J2331.0-2147_daily_bin1320.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/7983/ft1_4FGL_J2331.0-2147_daily_bin1320.fits outfile=/scratch/kocevski/7983/ft1_filteredMKT_4FGL_J2331.0-2147_daily_bin1320.fits ra=352.763 dec=-21.7953 rad=12.0 tmin=581472001.0 tmax=581731201.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.78
user 2.57
sys 0.19

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/7983/ft2_4FGL_J2331.0-2147_daily_bin1320.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/7983/ft1_filteredMKT_4FGL_J2331.0-2147_daily_bin1320.fits evtable="EVENTS" outfile="/scratch/kocevski/7983/ft1_filtered_4FGL_J2331.0-2147_daily_bin1320.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.58
user 0.33
sys 0.15

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/7983/ft1_filtered_4FGL_J2331.0-2147_daily_bin1320.fits" evtable="EVENTS" scfile=/scratch/kocevski/7983/ft2_4FGL_J2331.0-2147_daily_bin1320.fits sctable="SC_DATA" outfile=/scratch/kocevski/7983/ltcube_581472001_581731201_4FGL_J2331.0-2147_daily_bin1320.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/7983/ft2_4FGL_J2331.0-2147_daily_bin1320.fits
.....................!
real 12.44
user 12.10
sys 0.30

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/7983/ft1_filtered_4FGL_J2331.0-2147_daily_bin1320.fits evtable="EVENTS" scfile=/scratch/kocevski/7983/ft2_4FGL_J2331.0-2147_daily_bin1320.fits sctable="SC_DATA" expcube=/scratch/kocevski/7983/ltcube_581472001_581731201_4FGL_J2331.0-2147_daily_bin1320.fits outfile=/scratch/kocevski/7983/expmap_581472001_581731201_4FGL_J2331.0-2147_daily_bin1320.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/7983/ltcube_581472001_581731201_4FGL_J2331.0-2147_daily_bin1320.fits
.....................!
real 190.47
user 185.62
sys 4.43

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/7983/ft1_filtered_4FGL_J2331.0-2147_daily_bin1320.fits scfile=/scratch/kocevski/7983/ft2_4FGL_J2331.0-2147_daily_bin1320.fits outfile=/scratch/kocevski/7983/cmap_581472001_581731201_4FGL_J2331.0-2147_daily_bin1320.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.38
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/7983/ft1_filtered_4FGL_J2331.0-2147_daily_bin1320.fits scfile=/scratch/kocevski/7983/ft2_4FGL_J2331.0-2147_daily_bin1320.fits outfile=/scratch/kocevski/7983/cmap_HighResolution_581472001_581731201_4FGL_J2331.0-2147_daily_bin1320.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.39
sys 0.14

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/7983/ft1_filtered_4FGL_J2331.0-2147_daily_bin1320.fits evtable="EVENTS" scfile=/scratch/kocevski/7983/ft2_4FGL_J2331.0-2147_daily_bin1320.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/7983/Model_4FGL_J2331.0-2147_daily_bin1320.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/7983/ft1_filtered_4FGL_J2331.0-2147_daily_bin1320.fits.....................!
real 47.90
user 46.54
sys 1.16

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    2.2816       1.0000         .10000E-03   10000.    
     2 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     4 'norm      '    3.7070       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10281E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    14.429       1.0000         .10000E-03   10000.    
     7 'norm      '    2.5128       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    81.113       1.0000         .10000E-03   10000.    
    12 'norm      '    1.3942       1.0000         .10000E-03   10000.    
    13 'Prefactor '    4.1224       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10080E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    45.025       1.0000         .10000E-03   10000.    
    16 'Prefactor '    45.155       1.0000         .10000E-03   10000.    
    17 'norm      '    .10011E-03   1.0000         .10000E-03   10000.    
    18 'norm      '    7.3357       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    24.938       1.0000         .10000E-03   10000.    
    21 'Normalizat'    1.1062       1.0000         .10000E-01   10.000    
    22 'Prefactor '    .82612       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=   5724.872     FROM MIGRAD    STATUS=CONVERGED    474 CALLS     2336 TOTAL
                     EDM=   .19E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .4%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          2.2315        97.129       -.16339E-03    .14096E-04
   2  norm          .10000E-03    .64250       -.32500E-08** at limit **
   3  Prefactor     .10000E-03    12.932        .53196E-05** at limit **
   4  norm          3.6990        4.4066       -.66137E-06   -.86132E-03
   5  Prefactor     .10000E-03    37.247        .22169E-04** at limit **
   6  Prefactor     14.404        15.149       -.44495E-05   -.60103E-03
   7  norm          2.5122        1.1599        .21789E-06   -.43794E-02
   8  Prefactor     .10000E-03    4.7158       -.32179E-06** at limit **
   9  Prefactor     .10000E-03    3.7706        .18975E-07** at limit **
  10  Prefactor     .10000E-03    9.3430       -.77717E-05** at limit **
  11  Prefactor     81.115        44.788        .58305E-06    .27210E-04
  12  norm          1.3960        2.7261        .34413E-06   -.18952E-03
  13  Prefactor     4.0838        92.506       -.13251E-03   -.27161E-04
  14  Prefactor     .10001E-03    8.8051        .72465E-05** at limit **
  15  Prefactor     45.014        32.825       -.70564E-05    .11331E-03
  16  Prefactor     45.063        103.65       -.13091E-03    .34286E-04
  17  norm          .10000E-03    .18989        .10592E-06** at limit **
  18  norm          7.3357        3.8034       -.14356E-06   -.71075E-03
  19  Prefactor     .10000E-03    23.853       -.14123E-04** at limit **
  20  Prefactor     24.933        45.532       -.88083E-05    .36279E-04
  21  Normalizat    1.1062        .19408        .13836E-04    .20013E-03
  22  Prefactor     .82609        .18488        .50604E-05    .75191E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 2.23146
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 3.69896
  Prefactor  = 0.0001
  Prefactor  = 14.4038
  norm       = 2.51216
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 81.1145
  norm       = 1.39603
  Prefactor  = 4.08383
  Prefactor  = 0.000100007
  Prefactor  = 45.0142
  Prefactor  = 45.0629
  norm       = 0.0001
  norm       = 7.33574
  Prefactor  = 0.0001
  Prefactor  = 24.9334
  Normalizat = 1.10623
  Prefactor  = 0.826093
 **********
 **   18 **HESSE 
 **********

 FCN=   5724.872     FROM HESSE     STATUS=OK           336 CALLS     2672 TOTAL
                     EDM=   .43E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          2.2315        99.103        .27182E-03   -1.5409    
   2  norm          .10000E-03    .64346        .59226E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    12.934        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  norm          3.6990        4.3831        .15832E-03   -1.5323    
   5  Prefactor     .10000E-03    38.148        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     14.404        16.292        .10544E-03   -1.4949    
   7  norm          2.5122        1.2492        .38807E-04   -1.5391    
   8  Prefactor     .10000E-03    4.7265        .16046E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    3.7760        .14341E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    9.3466        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     81.115        44.805        .22298E-03   -1.3904    
  12  norm          1.3960        2.6763        .16184E-03   -1.5472    
  13  Prefactor     4.0838        93.429        .19854E-03   -1.5304    
  14  Prefactor     .10001E-03    8.8616        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     45.014        32.643        .59750E-04   -1.4365    
  16  Prefactor     45.063        103.73        .59664E-04   -1.4364    
  17  norm          .10000E-03    .23963        .62256E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          7.3357        3.6999        .49679E-03   -1.5166    
  19  Prefactor     .10000E-03    23.869        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     24.933        45.598        .80215E-04   -1.4709    
  21  Normalizat    1.1062        .22998        .23143E-03   -.89552    
  22  Prefactor     .82609        .21899        .26206E-03   -.98774    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.26422e-09
Minuit parameter uncertainties:
  1  29.7938
  2  2.27531e-06
  3  2.84211e-05
  4  4.38348
  5  5.8586e-05
  6  16.2971
  7  1.24922
  8  6.3504e-05
  9  4.52078e-06
  10  6.24792e-05
  11  44.8238
  12  2.67653
  13  39.1351
  14  0.000487377
  15  32.6555
  16  104.147
  17  5.44826e-06
  18  3.70005
  19  3.04148e-05
  20  45.6614
  21  0.230185
  22  0.219224
Done.

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

Extracting fit parameters...

4FGL J2331.0-2147
   Spectrum: LogParabola
418         norm:  1.396e+00  2.677e+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:  8.261e-01  2.192e-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.106e+00  2.302e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/7983/likelihoodResults_581472001_581731201_4FGL_J2331.0-2147_daily_bin1320.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) = 5724.60798019
delta logL = 0.264091700443

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 5724.59514765
delta logL = 0.276924239382

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .58903       1.0000         .10000E-03   10000.    
     2 'alpha     '    3.5767       1.0000          .0000       5.0000    
     3 'Normalizat'    1.0757       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .84487       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=   5724.595     FROM MIGRAD    STATUS=CONVERGED     46 CALLS      232 TOTAL
                     EDM=   .13E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .58914        10.479        .11629E-01    .76055E-04
   2  alpha         3.5769        4.2344        .47483        .68431E-04
   3  Normalizat    1.0754        .33933E-01    .39088E-01    .19473E-04
   4  Prefactor     .84532        .33751E-01    .44298E-01    .32539E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 0.589138
  alpha      = 3.57687
  Normalizat = 1.07541
  Prefactor  = 0.845319
 **********
 **   18 **HESSE 
 **********

 FCN=   5724.595     FROM HESSE     STATUS=NOT POSDEF    35 CALLS      267 TOTAL
                     EDM=   .62E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .58914        39.093        .65861E-03   -1.5554    
   2  alpha         3.5769        2.8266        .17501E-01    .44532    
   3  Normalizat    1.0754        .21721        .23416E-03   -.90545    
   4  Prefactor     .84532        .21337        .25927E-03   -.98079    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 6.20648e-08
Minuit parameter uncertainties:
  1  9.60392
  2  9.81722
  3  0.217388
  4  0.213579
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/7983': 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) = 5724.59514478
delta logL = 0.276927117297

Extracting fit parameters...

4FGL J2331.0-2147
   Spectrum: LogParabola
418         norm:  5.891e-01  9.604e+00  1.000e-04  1.000e+04 ( 1.000e-12)
419        alpha:  3.577e+00  9.817e+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.453e-01  2.136e-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.075e+00  2.174e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

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/7983/cmap_HighResolution_581472001_581731201_4FGL_J2331.0-2147_daily_bin1320.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='2.83e-05', job_status='DONE', photon_flux_upper_limit='8.50e-08', time_completed='2021-09-29 23:06:22.388736', job_id='7983', GAL2='0.85', fit_tolerance='1e-08', EG2='1.08', EG='1.11', time_epoch_completed='1632981982.39', return_code2='102', ts='0.35', comment='SUCCESS', return_code='0', GAL='0.83', dlogl='2.77e-01', ts2='0.93', photon_index_error='0.00', photon_index='2.43' WHERE bin_id='1320' AND source_name='4FGL J2331.0-2147' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep 29 23:06:22 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0202>
Subject: Job 7983: <4FGL_J2331.0-2147_daily_bin1320> in cluster <slac> Done

Job <4FGL_J2331.0-2147_daily_bin1320> was submitted from host <rhel6-64d> by user <kocevski> in cluster <slac> at Wed Sep 29 22:56:21 2021
Job was executed on host(s) <bullet0202>, 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:06:23 2021
Results reported at Wed Sep 29 23:06:23 2021

Your job looked like:

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

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

