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


Performing analysis on: 4FGL_J2331.0-2147_daily_bin760
RA = 352.763, Dec = -21.7953
tmin = 436320001, tmax = 436579201
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='6083', job_status='RUN', time_executed='2021-09-29 22:54:33.600374', time_epoch_executed='1632981273.6' WHERE source_name='4FGL J2331.0-2147' and cadence='daily' and bin_id='760'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/6083

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/6083/ft1_4FGL_J2331.0-2147_daily_bin760.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/6083/ft2_4FGL_J2331.0-2147_daily_bin760.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/6083/ft1_4FGL_J2331.0-2147_daily_bin760.fits outfile=/scratch/kocevski/6083/ft1_filteredMKT_4FGL_J2331.0-2147_daily_bin760.fits ra=352.763 dec=-21.7953 rad=12.0 tmin=436320001.0 tmax=436579201.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 5.38
user 4.98
sys 0.23

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/6083/ft1_filtered_4FGL_J2331.0-2147_daily_bin760.fits" evtable="EVENTS" scfile=/scratch/kocevski/6083/ft2_4FGL_J2331.0-2147_daily_bin760.fits sctable="SC_DATA" outfile=/scratch/kocevski/6083/ltcube_436320001_436579201_4FGL_J2331.0-2147_daily_bin760.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/6083/ft2_4FGL_J2331.0-2147_daily_bin760.fits
.....................!
real 11.99
user 11.66
sys 0.30

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/6083/ft1_filtered_4FGL_J2331.0-2147_daily_bin760.fits evtable="EVENTS" scfile=/scratch/kocevski/6083/ft2_4FGL_J2331.0-2147_daily_bin760.fits sctable="SC_DATA" expcube=/scratch/kocevski/6083/ltcube_436320001_436579201_4FGL_J2331.0-2147_daily_bin760.fits outfile=/scratch/kocevski/6083/expmap_436320001_436579201_4FGL_J2331.0-2147_daily_bin760.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/6083/ltcube_436320001_436579201_4FGL_J2331.0-2147_daily_bin760.fits
.....................!
real 190.14
user 186.49
sys 3.32

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/6083/ft1_filtered_4FGL_J2331.0-2147_daily_bin760.fits scfile=/scratch/kocevski/6083/ft2_4FGL_J2331.0-2147_daily_bin760.fits outfile=/scratch/kocevski/6083/cmap_436320001_436579201_4FGL_J2331.0-2147_daily_bin760.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.56
user 0.38
sys 0.13

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/6083/ft1_filtered_4FGL_J2331.0-2147_daily_bin760.fits scfile=/scratch/kocevski/6083/ft2_4FGL_J2331.0-2147_daily_bin760.fits outfile=/scratch/kocevski/6083/cmap_HighResolution_436320001_436579201_4FGL_J2331.0-2147_daily_bin760.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.58
user 0.39
sys 0.13

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/6083/ft1_filtered_4FGL_J2331.0-2147_daily_bin760.fits evtable="EVENTS" scfile=/scratch/kocevski/6083/ft2_4FGL_J2331.0-2147_daily_bin760.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/6083/Model_4FGL_J2331.0-2147_daily_bin760.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/6083/ft1_filtered_4FGL_J2331.0-2147_daily_bin760.fits.....................!
real 24.62
user 23.43
sys 1.13

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10140E-03   1.0000         .10000E-03   10000.    
     2 'norm      '    .10468E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    14.797       1.0000         .10000E-03   10000.    
     4 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    9.5171       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10041E-03   1.0000         .10000E-03   10000.    
     7 'norm      '    .20667       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10117E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10116E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10055E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10044E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    .10841E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    56.040       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .46707E-01   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    342.37       1.0000         .10000E-03   10000.    
    17 'norm      '    .10006E-03   1.0000         .10000E-03   10000.    
    18 'norm      '    .10018E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10600E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .14460E-03   1.0000         .10000E-03   10000.    
    21 'Normalizat'    1.5271       1.0000         .10000E-01   10.000    
    22 'Prefactor '    .35809       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=   1706.726     FROM MIGRAD    STATUS=CONVERGED    842 CALLS     3143 TOTAL
                     EDM=   .13E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    31.437        .18142E-02** at limit **
   2  norm          .10000E-03    6.2804        .19844E-03** at limit **
   3  Prefactor     14.879        157.96        .10412E-03   -.13621E-04
   4  norm          .10000E-03    2.9175        .68876E-03** at limit **
   5  Prefactor     9.5021        19.379        .12990E-03   -.14900E-04
   6  Prefactor     .10000E-03    9.0716        .12138E-02** at limit **
   7  norm          .20660        .64749        .59946E-03    .23913E-02
   8  Prefactor     .10000E-03    30.040        .18142E-02** at limit **
   9  Prefactor     .10000E-03    11.417        .13614E-02** at limit **
  10  Prefactor     .10000E-03    57.033        .18142E-02** at limit **
  11  Prefactor     .10000E-03    42.417        .18142E-02** at limit **
  12  norm          .10000E-03    10.033        .24971E-03** at limit **
  13  Prefactor     55.852        207.66        .26793E-03    .31877E-04
  14  Prefactor     .10000E-03    200.91        .95612E-01** at limit **
  15  Prefactor     .10000E-03    52.764        .18142E-02** at limit **
  16  Prefactor     342.76        327.01        .10999E-03    .15732E-04
  17  norm          .10000E-03    .37458        .24572E-03** at limit **
  18  norm          .10000E-03    4.9472        .89529E-03** at limit **
  19  Prefactor     .10000E-03    34.237        .18142E-02** at limit **
  20  Prefactor     .10000E-03    242.40        .18142E-02** at limit **
  21  Normalizat    1.5270        .40431        .20209E-03    .16469E-04
  22  Prefactor     .35802        .33086        .34702E-03    .33441E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 14.8787
  norm       = 0.0001
  Prefactor  = 9.50215
  Prefactor  = 0.0001
  norm       = 0.206603
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 55.8523
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 342.758
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Normalizat = 1.52705
  Prefactor  = 0.358024
 **********
 **   18 **HESSE 
 **********

 FCN=   1706.726     FROM HESSE     STATUS=OK           332 CALLS     3475 TOTAL
                     EDM=   .14E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    31.438        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          .10000E-03    6.2804        .39688E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     14.879        157.84        .41648E-05   -1.4936    
   4  norm          .10000E-03    2.9175        .13775E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     9.5021        19.376        .51961E-05   -1.5091    
   6  Prefactor     .10000E-03    9.0717        .24276E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          .20660        .64696        .11989E-03   -1.5617    
   8  Prefactor     .10000E-03    30.045        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    11.418        .27228E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    57.036        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    42.418        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          .10000E-03    10.033        .49941E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     55.852        206.76        .10717E-04   -1.4212    
  14  Prefactor     .10000E-03    178.61        .10185       -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    52.765        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     342.76        327.02        .21998E-04   -1.1984    
  17  norm          .10000E-03    .37458        .49144E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          .10000E-03    4.9474        .17906E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    34.237        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    242.43        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Normalizat    1.5270        .40453        .80837E-05   -.77021    
  22  Prefactor     .35802        .33090        .13881E-04   -1.1901    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.37626e-10
Minuit parameter uncertainties:
  1  2.20303e-06
  2  4.97164e-06
  3  97.2513
  4  2.98541e-07
  5  19.3884
  6  6.69673e-06
  7  0.64698
  8  3.31418e-05
  9  5.77954e-06
  10  1.70758e-05
  11  2.95058e-05
  12  4.03142e-05
  13  209.509
  14  0.000221029
  15  9.73096e-05
  16  328.808
  17  3.17926e-07
  18  4.17262e-06
  19  1.40082e-05
  20  6.03429e-05
  21  0.405395
  22  0.332671
Done.

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

Extracting fit parameters...

4FGL J2331.0-2147
   Spectrum: LogParabola
418         norm:  1.000e-04  4.031e-05  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:  3.580e-01  3.327e-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.527e+00  4.054e-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.89e-07 ph cm-2 s-1
Energy Flux Upper Limit: 6.28e-05 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/6083/likelihoodResults_436320001_436579201_4FGL_J2331.0-2147_daily_bin760.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) = 1706.72697298
delta logL = -0.000474794878983

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 1706.7264989
delta logL = -7.15218448022e-07

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .13019E-03   1.0000         .10000E-03   10000.    
     2 'alpha     '    2.4936       1.0000          .0000       5.0000    
     3 'Normalizat'    1.5273       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .35779       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=   1706.726     FROM MIGRAD    STATUS=CONVERGED     63 CALLS      222 TOTAL
                     EDM=   .24E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10005E-03    7.5715        .35070E-01** at limit **
   2  alpha         2.5777        3.5827        .41152       -.40571E-04
   3  Normalizat    1.5271        .32496        .45720E-01    .62764E-04
   4  Prefactor     .35802        .28601        .78332E-01    .20768E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 0.000100047
  alpha      = 2.57767
  Normalizat = 1.52705
  Prefactor  = 0.358021
 **********
 **   18 **HESSE 
 **********

 FCN=   1706.726     FROM HESSE     STATUS=OK            31 CALLS      253 TOTAL
                     EDM=   .58E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10005E-03    18.341        .21516E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  alpha         2.5777        3.5932        .16461        .31075E-01
   3  Normalizat    1.5271        .35758        .20209E-03   -.77021    
   4  Prefactor     .35802        .31549        .34703E-03   -1.1901    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.84329e-09
Minuit parameter uncertainties:
  1  0.00186446
  2  2.58591
  3  0.358176
  4  0.317022
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/6083': 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) = 1706.72649608
delta logL = 2.1020900931e-06

Extracting fit parameters...

4FGL J2331.0-2147
   Spectrum: LogParabola
418         norm:  1.000e-04  1.864e-03  1.000e-04  1.000e+04 ( 1.000e-12)
419        alpha:  2.578e+00  2.586e+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:  3.580e-01  3.170e-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.527e+00  3.582e-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  0.000e+00 [aplpy.core]
INFO: Auto-setting vmax to  0.000e+00 [aplpy.core]
Saving /scratch/kocevski/6083/cmap_HighResolution_436320001_436579201_4FGL_J2331.0-2147_daily_bin760.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='6.28e-05', job_status='DONE', photon_flux_upper_limit='1.89e-07', time_completed='2021-09-29 23:01:23.387125', job_id='6083', GAL2='0.36', fit_tolerance='1e-08', EG2='1.53', EG='1.53', time_epoch_completed='1632981683.39', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.36', dlogl='2.10e-06', ts2='-0.00', photon_index_error='0.00', photon_index='2.43' WHERE bin_id='760' AND source_name='4FGL J2331.0-2147' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep 29 23:01:23 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0006>
Subject: Job 6083: <4FGL_J2331.0-2147_daily_bin760> in cluster <slac> Done

Job <4FGL_J2331.0-2147_daily_bin760> was submitted from host <rhel6-64q> by user <kocevski> in cluster <slac> at Wed Sep 29 22:50:43 2021
Job was executed on host(s) <bullet0006>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Sep 29 22:50:45 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:50:45 2021
Terminated at Wed Sep 29 23:01:24 2021
Results reported at Wed Sep 29 23:01:24 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2331.0-2147_daily_bin760 352.763 -21.7953 436320001 436579201 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 :                                   407.32 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             212.44 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   638 sec.
    Turnaround time :                            641 sec.

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

