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


Performing analysis on: 4FGL_J2331.0-2147_daily_bin1051
RA = 352.763, Dec = -21.7953
tmin = 511747201, tmax = 512006401
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='7551', job_status='RUN', time_executed='2021-09-29 22:59:13.982560', time_epoch_executed='1632981553.98' WHERE source_name='4FGL J2331.0-2147' and cadence='daily' and bin_id='1051'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/7551

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/7551/ft1_4FGL_J2331.0-2147_daily_bin1051.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/7551/ft2_4FGL_J2331.0-2147_daily_bin1051.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/7551/ft1_4FGL_J2331.0-2147_daily_bin1051.fits outfile=/scratch/kocevski/7551/ft1_filteredMKT_4FGL_J2331.0-2147_daily_bin1051.fits ra=352.763 dec=-21.7953 rad=12.0 tmin=511747201.0 tmax=512006401.0 emin=100.0 emax=100000.0 zmin=0.0 zmax=90.0 evclass=128 evtype="INDEF" convtype=-1 phasemin=0.0 phasemax=1.0 evtable="EVENTS" chatter=2 clobber=yes debug=no gui=no mode="ql"

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

Done.
real 3.57
user 3.31
sys 0.18

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/7551/ft1_filtered_4FGL_J2331.0-2147_daily_bin1051.fits" evtable="EVENTS" scfile=/scratch/kocevski/7551/ft2_4FGL_J2331.0-2147_daily_bin1051.fits sctable="SC_DATA" outfile=/scratch/kocevski/7551/ltcube_511747201_512006401_4FGL_J2331.0-2147_daily_bin1051.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/7551/ft2_4FGL_J2331.0-2147_daily_bin1051.fits
.....................!
real 13.13
user 12.78
sys 0.32

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/7551/ft1_filtered_4FGL_J2331.0-2147_daily_bin1051.fits evtable="EVENTS" scfile=/scratch/kocevski/7551/ft2_4FGL_J2331.0-2147_daily_bin1051.fits sctable="SC_DATA" expcube=/scratch/kocevski/7551/ltcube_511747201_512006401_4FGL_J2331.0-2147_daily_bin1051.fits outfile=/scratch/kocevski/7551/expmap_511747201_512006401_4FGL_J2331.0-2147_daily_bin1051.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/7551/ltcube_511747201_512006401_4FGL_J2331.0-2147_daily_bin1051.fits
.....................!
real 189.38
user 185.07
sys 4.00

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/7551/ft1_filtered_4FGL_J2331.0-2147_daily_bin1051.fits scfile=/scratch/kocevski/7551/ft2_4FGL_J2331.0-2147_daily_bin1051.fits outfile=/scratch/kocevski/7551/cmap_511747201_512006401_4FGL_J2331.0-2147_daily_bin1051.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/7551/ft1_filtered_4FGL_J2331.0-2147_daily_bin1051.fits scfile=/scratch/kocevski/7551/ft2_4FGL_J2331.0-2147_daily_bin1051.fits outfile=/scratch/kocevski/7551/cmap_HighResolution_511747201_512006401_4FGL_J2331.0-2147_daily_bin1051.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.39
sys 0.13

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

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      '    .19617E-01   1.0000         .10000E-03   10000.    
     3 'Prefactor '    12.222       1.0000         .10000E-03   10000.    
     4 'norm      '    1.3100       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10019E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    12.535       1.0000         .10000E-03   10000.    
     7 'norm      '    .24657       1.0000         .10000E-03   10000.    
     8 'Prefactor '    18.944       1.0000         .10000E-03   10000.    
     9 'Prefactor '    6.5984       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    .10081E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .21809E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    21.456       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10044E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    2.7894       1.0000         .10000E-03   10000.    
    18 'norm      '    .13078E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10010E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    16.540       1.0000         .10000E-03   10000.    
    21 'Normalizat'    1.0989       1.0000         .10000E-01   10.000    
    22 'Prefactor '    .83878       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=   6959.021     FROM MIGRAD    STATUS=CONVERGED    487 CALLS     2391 TOTAL
                     EDM=   .19E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.0%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    6.9045        .24817E-06** at limit **
   2  norm          .10083E-03    .94936       -.13779E-07** at limit **
   3  Prefactor     12.487        22.100        .35752E-05    .43288E-05
   4  norm          1.3100        1.4118        .14575E-07    .35714E-03
   5  Prefactor     .10000E-03    7.4325       -.12611E-05** at limit **
   6  Prefactor     12.526        9.2220        .84617E-06    .25736E-03
   7  norm          .24689        .62288       -.44949E-06   -.30207E-02
   8  Prefactor     18.946        12.514        .24253E-06   -.41040E-04
   9  Prefactor     6.5975        8.6600       -.54905E-06    .84229E-06
  10  Prefactor     .10000E-03    8.1593       -.34515E-05** at limit **
  11  Prefactor     .10000E-03    11.995       -.13187E-05** at limit **
  12  norm          .10000E-03    .81409       -.11473E-06** at limit **
  13  Prefactor     .10000E-03    31.845       -.29472E-04** at limit **
  14  Prefactor     .10006E-03    8.2866        .19335E-05** at limit **
  15  Prefactor     21.450        22.559        .19243E-05   -.18051E-04
  16  Prefactor     .10000E-03    36.170       -.31761E-05** at limit **
  17  norm          2.7886        .75446       -.62594E-07   -.50842E-02
  18  norm          .10002E-03    2.5776        .12496E-05** at limit **
  19  Prefactor     .10000E-03    24.158        .95221E-05** at limit **
  20  Prefactor     16.534        51.416       -.81541E-05   -.15425E-04
  21  Normalizat    1.0991        .16528       -.78754E-07   -.30623E-03
  22  Prefactor     .83856        .16214       -.14370E-06   -.22581E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  norm       = 0.000100828
  Prefactor  = 12.4866
  norm       = 1.31003
  Prefactor  = 0.0001
  Prefactor  = 12.5259
  norm       = 0.246892
  Prefactor  = 18.9458
  Prefactor  = 6.59751
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000100058
  Prefactor  = 21.4497
  Prefactor  = 0.0001
  norm       = 2.78859
  norm       = 0.000100022
  Prefactor  = 0.0001
  Prefactor  = 16.5341
  Normalizat = 1.09905
  Prefactor  = 0.838559
 **********
 **   18 **HESSE 
 **********

 FCN=   6959.021     FROM HESSE     STATUS=OK           352 CALLS     2743 TOTAL
                     EDM=   .74E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    6.9052        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          .10083E-03    1.6096        .28152E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     12.487        24.161        .11458E-03   -1.5001    
   4  norm          1.3100        1.4208        .99710E-04   -1.5479    
   5  Prefactor     .10000E-03    7.4576        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     12.526        8.4341        .11314E-03   -1.5000    
   7  norm          .24689        .53694        .69705E-04   -1.5609    
   8  Prefactor     18.946        12.514        .92021E-04   -1.4837    
   9  Prefactor     6.5975        8.5043        .15622E-03   -1.5194    
  10  Prefactor     .10000E-03    8.1623        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    11.999        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          .10000E-03    .82266        .73450E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    30.948        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10006E-03    37.210        .45709E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     21.450        22.576        .86470E-04   -1.4781    
  16  Prefactor     .10000E-03    36.180        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          2.7886        .68934        .32900E-04   -1.5374    
  18  norm          .10002E-03    8.0159        .23258E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    24.141        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     16.534        51.742        .98480E-04   -1.4894    
  21  Normalizat    1.0991        .19120        .22613E-03   -.89782    
  22  Prefactor     .83856        .18839        .25877E-03   -.98322    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 7.42883e-09
Minuit parameter uncertainties:
  1  4.62399e-07
  2  0.00230865
  3  24.1794
  4  1.42083
  5  2.85873e-06
  6  8.43485
  7  0.536949
  8  12.5161
  9  8.50585
  10  9.13114e-07
  11  2.59532e-06
  12  2.10642e-06
  13  3.31216e-05
  14  0.00294858
  15  22.5854
  16  2.98354e-06
  17  0.689343
  18  0.000840159
  19  4.12855e-05
  20  51.8832
  21  0.191325
  22  0.188533
Done.

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

Extracting fit parameters...

4FGL J2331.0-2147
   Spectrum: LogParabola
418         norm:  1.000e-04  2.106e-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:  8.386e-01  1.885e-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.099e+00  1.913e-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.10e-08 ph cm-2 s-1
Energy Flux Upper Limit: 1.36e-05 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/7551/likelihoodResults_511747201_512006401_4FGL_J2331.0-2147_daily_bin1051.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) = 6959.02695556
delta logL = -0.00569670343248

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 6959.02125849
delta logL = 3.632158041e-07

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 'alpha     '    2.4209       1.0000          .0000       5.0000    
     3 'Normalizat'    1.0991       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .83856       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=   6959.021     FROM MIGRAD    STATUS=CONVERGED     89 CALLS      221 TOTAL
                     EDM=   .11E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    122.82        .73906E-02** at limit **
   2  alpha         1.8803        3.4363        .82356E-01    .75648E-07
   3  Normalizat    1.0991        .53593E-01    .22613E-03   -.17144E-04
   4  Prefactor     .83856        .54572E-01    .25877E-03    .80398E-05
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  alpha      = 1.88034
  Normalizat = 1.09905
  Prefactor  = 0.838559
 **********
 **   18 **HESSE 
 **********

 FCN=   6959.021     FROM HESSE     STATUS=OK            23 CALLS      244 TOTAL
                     EDM=   .19E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    .95780        .79557E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  alpha         1.8803        2.6499        .32942E-02   -.25047    
   3  Normalizat    1.0991        .18113        .90453E-05   -.89782    
   4  Prefactor     .83856        .18444        .10351E-04   -.98322    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.94338e-11
Minuit parameter uncertainties:
  1  2.15518e-06
  2  127.832
  3  0.181234
  4  0.184572
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/7551': 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) = 6959.02125029
delta logL = 8.56434235175e-06

Extracting fit parameters...

4FGL J2331.0-2147
   Spectrum: LogParabola
418         norm:  1.000e-04  2.155e-06  1.000e-04  1.000e+04 ( 1.000e-12)
419        alpha:  1.880e+00  1.278e+02  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.386e-01  1.846e-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.099e+00  1.812e-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/7551/cmap_HighResolution_511747201_512006401_4FGL_J2331.0-2147_daily_bin1051.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.36e-05', job_status='DONE', photon_flux_upper_limit='4.10e-08', time_completed='2021-09-29 23:10:13.131289', job_id='7551', GAL2='0.84', fit_tolerance='1e-08', EG2='1.10', EG='1.10', time_epoch_completed='1632982213.13', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.84', dlogl='8.56e-06', ts2='-0.00', photon_index_error='0.00', photon_index='2.43' WHERE bin_id='1051' AND source_name='4FGL J2331.0-2147' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep 29 23:10:13 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0264>
Subject: Job 7551: <4FGL_J2331.0-2147_daily_bin1051> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2331.0-2147_daily_bin1051 352.763 -21.7953 511747201 512006401 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 :                                   651.12 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             293.63 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   870 sec.
    Turnaround time :                            871 sec.

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

