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


Performing analysis on: 4FGL_J2331.0-2147_daily_bin1529
RA = 352.763, Dec = -21.7953
tmin = 635644801, tmax = 635904001
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='9205', job_status='RUN', time_executed='2021-09-29 23:01:29.225737', time_epoch_executed='1632981689.23' WHERE source_name='4FGL J2331.0-2147' and cadence='daily' and bin_id='1529'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/9205

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/9205/ft1_4FGL_J2331.0-2147_daily_bin1529.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/9205/ft2_4FGL_J2331.0-2147_daily_bin1529.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/9205/ft1_4FGL_J2331.0-2147_daily_bin1529.fits outfile=/scratch/kocevski/9205/ft1_filteredMKT_4FGL_J2331.0-2147_daily_bin1529.fits ra=352.763 dec=-21.7953 rad=12.0 tmin=635644801.0 tmax=635904001.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 4.33
user 4.08
sys 0.22

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

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

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/9205/ft1_filtered_4FGL_J2331.0-2147_daily_bin1529.fits" evtable="EVENTS" scfile=/scratch/kocevski/9205/ft2_4FGL_J2331.0-2147_daily_bin1529.fits sctable="SC_DATA" outfile=/scratch/kocevski/9205/ltcube_635644801_635904001_4FGL_J2331.0-2147_daily_bin1529.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/9205/ft2_4FGL_J2331.0-2147_daily_bin1529.fits
.....................!
real 11.74
user 11.41
sys 0.30

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/9205/ft1_filtered_4FGL_J2331.0-2147_daily_bin1529.fits evtable="EVENTS" scfile=/scratch/kocevski/9205/ft2_4FGL_J2331.0-2147_daily_bin1529.fits sctable="SC_DATA" expcube=/scratch/kocevski/9205/ltcube_635644801_635904001_4FGL_J2331.0-2147_daily_bin1529.fits outfile=/scratch/kocevski/9205/expmap_635644801_635904001_4FGL_J2331.0-2147_daily_bin1529.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/9205/ltcube_635644801_635904001_4FGL_J2331.0-2147_daily_bin1529.fits
.....................!
real 189.80
user 185.46
sys 4.03

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/9205/ft1_filtered_4FGL_J2331.0-2147_daily_bin1529.fits scfile=/scratch/kocevski/9205/ft2_4FGL_J2331.0-2147_daily_bin1529.fits outfile=/scratch/kocevski/9205/cmap_635644801_635904001_4FGL_J2331.0-2147_daily_bin1529.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.52
user 0.38
sys 0.13

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

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/9205/ft1_filtered_4FGL_J2331.0-2147_daily_bin1529.fits evtable="EVENTS" scfile=/scratch/kocevski/9205/ft2_4FGL_J2331.0-2147_daily_bin1529.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/9205/Model_4FGL_J2331.0-2147_daily_bin1529.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/9205/ft1_filtered_4FGL_J2331.0-2147_daily_bin1529.fits.....................!
real 38.17
user 36.94
sys 1.15

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     2 'norm      '    3.2904       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10129E-03   1.0000         .10000E-03   10000.    
     4 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     7 'norm      '    5.8254       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    87.061       1.0000         .10000E-03   10000.    
    12 'norm      '    .10017E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10113E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    21.680       1.0000         .10000E-03   10000.    
    15 'Prefactor '    25.187       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10033E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    .84408       1.0000         .10000E-03   10000.    
    18 'norm      '    7.2886       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    21 'Normalizat'    1.1334       1.0000         .10000E-01   10.000    
    22 'Prefactor '    .84356       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=   4134.734     FROM MIGRAD    STATUS=CONVERGED    472 CALLS     2305 TOTAL
                     EDM=   .20E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .6%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    47.985        .15648E-05** at limit **
   2  norm          3.2878        2.9280       -.73635E-08   -.14285E-03
   3  Prefactor     .10000E-03    50.650        .82268E-05** at limit **
   4  norm          .10000E-03    2.2951        .13415E-07** at limit **
   5  Prefactor     .10000E-03    9.7926        .23522E-05** at limit **
   6  Prefactor     .10000E-03    8.7117        .89788E-06** at limit **
   7  norm          5.8250        1.2443        .32112E-07   -.28680E-03
   8  Prefactor     .10000E-03    4.2639       -.24287E-07** at limit **
   9  Prefactor     .10000E-03    6.5238       -.82274E-07** at limit **
  10  Prefactor     .10000E-03    9.6286       -.32661E-05** at limit **
  11  Prefactor     87.043        83.908       -.16465E-04    .12451E-03
  12  norm          .10003E-03    3.2264       -.33612E-05** at limit **
  13  Prefactor     .10000E-03    27.443        .14108E-04** at limit **
  14  Prefactor     21.675        21.051       -.40934E-06    .35997E-04
  15  Prefactor     25.214        40.291        .29907E-04    .88676E-04
  16  Prefactor     .10000E-03    76.327       -.20262E-04** at limit **
  17  norm          .84435        .91363       -.10510E-07   -.37616E-03
  18  norm          7.2879        6.6476       -.24868E-07   -.20082E-04
  19  Prefactor     .10000E-03    30.918       -.21786E-04** at limit **
  20  Prefactor     .10000E-03    58.296        .16996E-04** at limit **
  21  Normalizat    1.1336        .23310       -.83979E-06    .43060E-03
  22  Prefactor     .84334        .22204       -.64237E-06    .28484E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  norm       = 3.28779
  Prefactor  = 0.000100001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 5.82501
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 87.0432
  norm       = 0.000100029
  Prefactor  = 0.000100002
  Prefactor  = 21.6753
  Prefactor  = 25.2143
  Prefactor  = 0.000100002
  norm       = 0.844354
  norm       = 7.28795
  Prefactor  = 0.000100004
  Prefactor  = 0.000100002
  Normalizat = 1.13364
  Prefactor  = 0.84334
 **********
 **   18 **HESSE 
 **********

 FCN=   4134.734     FROM HESSE     STATUS=OK           332 CALLS     2637 TOTAL
                     EDM=   .57E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    48.102        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          3.2878        2.9251        .10101E-03   -1.5345    
   3  Prefactor     .10000E-03    50.737        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  norm          .10000E-03    2.3050        .95109E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    9.8032        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    8.7529        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          5.8250        1.2419        .31817E-04   -1.5225    
   8  Prefactor     .10000E-03    4.2663        .12968E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    6.5382        .16034E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    9.6228        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     87.043        84.306        .43058E-04   -1.3839    
  12  norm          .10003E-03    5.8800        .22124E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    27.328        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     21.675        21.027        .86024E-04   -1.4776    
  15  Prefactor     25.214        40.589        .79818E-04   -1.4703    
  16  Prefactor     .10000E-03    76.238        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          .84435        .89448        .51378E-03   -1.5524    
  18  norm          7.2879        6.7445        .12856E-03   -1.5168    
  19  Prefactor     .10000E-03    30.647        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    58.208        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Normalizat    1.1336        .28073        .24664E-03   -.88679    
  22  Prefactor     .84334        .26636        .27552E-03   -.98150    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.68431e-09
Minuit parameter uncertainties:
  1  4.31786e-05
  2  2.92525
  3  0.000322711
  4  2.58411e-07
  5  4.07207e-05
  6  1.2487e-05
  7  1.24195
  8  1.69846e-06
  9  5.0297e-07
  10  5.62988e-05
  11  84.4219
  12  0.000830482
  13  0.000411205
  14  21.0341
  15  40.633
  16  0.000749114
  17  0.894493
  18  6.74522
  19  0.000692193
  20  0.000640775
  21  0.281099
  22  0.266765
Done.

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

Extracting fit parameters...

4FGL J2331.0-2147
   Spectrum: LogParabola
418         norm:  1.000e-04  8.305e-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.433e-01  2.668e-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.134e+00  2.811e-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: 1.06e-07 ph cm-2 s-1
Energy Flux Upper Limit: 3.51e-05 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/9205/likelihoodResults_635644801_635904001_4FGL_J2331.0-2147_daily_bin1529.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) = 4134.73453856
delta logL = -0.000810020299468

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 4134.73373136
delta logL = -2.8169606594e-06

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10068E-03   1.0000         .10000E-03   10000.    
     2 'alpha     '    2.5059       1.0000          .0000       5.0000    
     3 'Normalizat'    1.1328       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .84414       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=   4134.734     FROM MIGRAD    STATUS=FAILED        96 CALLS      260 TOTAL
                     EDM=   .80E-07    STRATEGY= 1      ERR MATRIX APPROXIMATE

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10071E-03    16.647        .17679E-02** at limit **
   2  alpha         2.6101        3.6303        .16461       -.81334E-04
   3  Normalizat    1.1336        .26766        .24664E-03    .31767E-03
   4  Prefactor     .84334        .26314        .27552E-03    .32658E-03
                               ERR DEF=  .500    
 START SIMPLEX MINIMIZATION.    CONVERGENCE WHEN EDM .LT.   .20E-04
 SIMPLEX MINIMIZATION HAS CONVERGED.

 FCN=   4134.734     FROM SIMPLEX   STATUS=UNCHANGED    107 CALLS      367 TOTAL
                     EDM=   .13E-04    STRATEGY= 1      ERR MATRIX APPROXIMATE

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10071E-03    16.647        .57118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  alpha         2.6101        3.6303        .41034E-03    .44049E-01
   3  Normalizat    1.1336        .26766        .47351E-04   -.88679    
   4  Prefactor     .84334        .26314        .68257E-04   -.98150    
                               ERR DEF=  .500    

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   4134.255     FROM MIGRAD    STATUS=CONVERGED    168 CALLS      535 TOTAL
                     EDM=   .17E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .78400E-01    .74410        .19374E-04   -.89254E-03
   2  alpha         4.9517        2.5086        .26337E-02   -.22662E-05
   3  Normalizat    1.0488        .28246        .19731E-04   -.91383E-04
   4  Prefactor     .89582        .27141        .22042E-04   -.80359E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0783997
  alpha      = 4.95172
  Normalizat = 1.04883
  Prefactor  = 0.895816
 **********
 **   18 **HESSE 
 **********

 FCN=   4134.255     FROM HESSE     STATUS=OK            23 CALLS      558 TOTAL
                     EDM=   .18E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .78400E-01    .62646        .77495E-06   -1.5652    
   2  alpha         4.9517        2.5275        .10535E-03    1.3740    
   3  Normalizat    1.0488        .28226        .39462E-05   -.91412    
   4  Prefactor     .89582        .27135        .44083E-05   -.96287    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.75263e-11
Minuit parameter uncertainties:
  1  0.442959
  2  2.83481
  3  0.282664
  4  0.271764
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/9205': 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) = 4134.25476929
delta logL = 0.478959256948

Extracting fit parameters...

4FGL J2331.0-2147
   Spectrum: LogParabola
418         norm:  7.840e-02  4.430e-01  1.000e-04  1.000e+04 ( 1.000e-12)
419        alpha:  4.952e+00  2.835e+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.958e-01  2.718e-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.049e+00  2.827e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 1.03
Ra Dec: 352.763 -21.795
Photon Index (Free Index): 4.95 +/- 2.83
Photon Flux (Free Index): 6.83e-08 +/- 7.75e-08
Energy Flux (Free Index): 9.50e-06 +/- 1.13e-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/9205/cmap_HighResolution_635644801_635904001_4FGL_J2331.0-2147_daily_bin1529.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='3.51e-05', comment='SUCCESS', energy_flux2='9.50e-06', dlogl='4.79e-01', photon_flux2='6.83e-08', job_status='DONE', time_completed='2021-09-29 23:10:09.266515', photon_index_error2='2.83', photon_index2='4.95', ts='-0.00', fit_tolerance='1e-08', GAL='0.84', photon_index_error='0.00', photon_flux_upper_limit='1.06e-07', energy_flux_error2='1.13e-05', EG='1.13', time_epoch_completed='1632982209.27', return_code='0', job_id='9205', GAL2='0.90', EG2='1.05', return_code2='0', photon_flux_error2='7.75e-08', ts2='1.03', photon_index='2.43' WHERE bin_id='1529' AND source_name='4FGL J2331.0-2147' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep 29 23:10:09 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0005>
Subject: Job 9205: <4FGL_J2331.0-2147_daily_bin1529> in cluster <slac> Done

Job <4FGL_J2331.0-2147_daily_bin1529> was submitted from host <rhel6-64k> by user <kocevski> in cluster <slac> at Wed Sep 29 23:00:27 2021
Job was executed on host(s) <bullet0005>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Sep 29 23:00:28 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:28 2021
Terminated at Wed Sep 29 23:10:09 2021
Results reported at Wed Sep 29 23:10:09 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2331.0-2147_daily_bin1529 352.763 -21.7953 635644801 635904001 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 :                                   518.00 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             303.89 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   581 sec.
    Turnaround time :                            582 sec.

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

