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


Performing analysis on: 4FGL_J2331.0-2147_daily_bin1334
RA = 352.763, Dec = -21.7953
tmin = 585100801, tmax = 585360001
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='8007', job_status='RUN', time_executed='2021-09-29 23:00:13.273882', time_epoch_executed='1632981613.27' WHERE source_name='4FGL J2331.0-2147' and cadence='daily' and bin_id='1334'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/8007

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/8007/ft1_4FGL_J2331.0-2147_daily_bin1334.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/8007/ft2_4FGL_J2331.0-2147_daily_bin1334.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/8007/ft1_4FGL_J2331.0-2147_daily_bin1334.fits outfile=/scratch/kocevski/8007/ft1_filteredMKT_4FGL_J2331.0-2147_daily_bin1334.fits ra=352.763 dec=-21.7953 rad=12.0 tmin=585100801.0 tmax=585360001.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.00
user 2.81
sys 0.18

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/8007/ft2_4FGL_J2331.0-2147_daily_bin1334.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/8007/ft1_filteredMKT_4FGL_J2331.0-2147_daily_bin1334.fits evtable="EVENTS" outfile="/scratch/kocevski/8007/ft1_filtered_4FGL_J2331.0-2147_daily_bin1334.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.49
user 0.35
sys 0.14

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/8007/ft1_filtered_4FGL_J2331.0-2147_daily_bin1334.fits" evtable="EVENTS" scfile=/scratch/kocevski/8007/ft2_4FGL_J2331.0-2147_daily_bin1334.fits sctable="SC_DATA" outfile=/scratch/kocevski/8007/ltcube_585100801_585360001_4FGL_J2331.0-2147_daily_bin1334.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/8007/ft2_4FGL_J2331.0-2147_daily_bin1334.fits
.....................!
real 12.75
user 12.39
sys 0.33

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/8007/ft1_filtered_4FGL_J2331.0-2147_daily_bin1334.fits evtable="EVENTS" scfile=/scratch/kocevski/8007/ft2_4FGL_J2331.0-2147_daily_bin1334.fits sctable="SC_DATA" expcube=/scratch/kocevski/8007/ltcube_585100801_585360001_4FGL_J2331.0-2147_daily_bin1334.fits outfile=/scratch/kocevski/8007/expmap_585100801_585360001_4FGL_J2331.0-2147_daily_bin1334.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/8007/ltcube_585100801_585360001_4FGL_J2331.0-2147_daily_bin1334.fits
.....................!
real 189.91
user 185.29
sys 4.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/8007/ft1_filtered_4FGL_J2331.0-2147_daily_bin1334.fits scfile=/scratch/kocevski/8007/ft2_4FGL_J2331.0-2147_daily_bin1334.fits outfile=/scratch/kocevski/8007/cmap_585100801_585360001_4FGL_J2331.0-2147_daily_bin1334.fits algorithm="CMAP" ebinalg="LOG" emin=30.0 emax=200000.0 ebinfile=NONE tbinalg="LIN" tbinfile=NONE nxpix=160 nypix=160 binsz=0.25 coordsys="CEL" xref=352.763 yref=-21.7953 axisrot=0.0 rafield="RA" decfield="DEC" proj="AIT" hpx_ordering_scheme="RING" hpx_order=3 hpx_ebin=yes hpx_region="" evtable="EVENTS" sctable="SC_DATA" efield="ENERGY" tfield="TIME" chatter=2 clobber=yes debug=no gui=no mode="ql"

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

This is gtbin version HEAD
real 0.54
user 0.37
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/8007/ft1_filtered_4FGL_J2331.0-2147_daily_bin1334.fits scfile=/scratch/kocevski/8007/ft2_4FGL_J2331.0-2147_daily_bin1334.fits outfile=/scratch/kocevski/8007/cmap_HighResolution_585100801_585360001_4FGL_J2331.0-2147_daily_bin1334.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/8007/ft1_filtered_4FGL_J2331.0-2147_daily_bin1334.fits evtable="EVENTS" scfile=/scratch/kocevski/8007/ft2_4FGL_J2331.0-2147_daily_bin1334.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/8007/Model_4FGL_J2331.0-2147_daily_bin1334.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/8007/ft1_filtered_4FGL_J2331.0-2147_daily_bin1334.fits.....................!
real 38.85
user 37.66
sys 1.12

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    46.547       1.0000         .10000E-03   10000.    
     2 'norm      '    .10011E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .12424E-03   1.0000         .10000E-03   10000.    
     4 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    23.793       1.0000         .10000E-03   10000.    
     7 'norm      '    3.1058       1.0000         .10000E-03   10000.    
     8 'Prefactor '    16.799       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10021E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    1.7582       1.0000         .10000E-03   10000.    
    11 'Prefactor '    82.207       1.0000         .10000E-03   10000.    
    12 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10060E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    18.315       1.0000         .10000E-03   10000.    
    17 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    18 'norm      '    4.5248       1.0000         .10000E-03   10000.    
    19 'Prefactor '    60.108       1.0000         .10000E-03   10000.    
    20 'Prefactor '    58.584       1.0000         .10000E-03   10000.    
    21 'Normalizat'    1.1811       1.0000         .10000E-01   10.000    
    22 'Prefactor '    .78494       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=   4490.549     FROM MIGRAD    STATUS=CONVERGED    492 CALLS     2428 TOTAL
                     EDM=   .57E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.2%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          46.549        34.397        .72579E-07    .12046E-05
   2  norm          .10000E-03    3.2975       -.79827E-06** at limit **
   3  Prefactor     .10000E-03    836.53       -.11371E-04** at limit **
   4  norm          .10000E-03    2.8223       -.78983E-06** at limit **
   5  Prefactor     .10000E-03    9.4501       -.95527E-06** at limit **
   6  Prefactor     23.801        20.662       -.36953E-06    .11866E-03
   7  norm          3.1056        1.5556        .25979E-06    .68336E-03
   8  Prefactor     16.799        18.833       -.54187E-07    .71380E-05
   9  Prefactor     .10000E-03    17.995       -.23377E-05** at limit **
  10  Prefactor     1.7535        47.329       -.11254E-05    .92630E-05
  11  Prefactor     82.187        68.107        .31133E-06    .26985E-05
  12  norm          .10000E-03    2.4862        .10641E-06** at limit **
  13  Prefactor     .10000E-03    19.047       -.11788E-06** at limit **
  14  Prefactor     .10000E-03    4.6270        .83585E-07** at limit **
  15  Prefactor     .10000E-03    40.156        .96969E-06** at limit **
  16  Prefactor     18.368        191.67       -.81509E-05    .27723E-05
  17  norm          .10000E-03    .22261       -.48298E-08** at limit **
  18  norm          4.5251        3.9091        .66707E-07    .27826E-04
  19  Prefactor     60.118        61.598        .31161E-06    .30257E-05
  20  Prefactor     58.590        66.721       -.14230E-06    .40195E-05
  21  Normalizat    1.1808        .22087        .15907E-05   -.37740E-04
  22  Prefactor     .78520        .21379       -.19796E-05    .84783E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 46.5488
  norm       = 0.0001
  Prefactor  = 0.000100001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 23.8007
  norm       = 3.10562
  Prefactor  = 16.7991
  Prefactor  = 0.0001
  Prefactor  = 1.75353
  Prefactor  = 82.1871
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 18.3683
  norm       = 0.0001
  norm       = 4.52511
  Prefactor  = 60.1182
  Prefactor  = 58.5903
  Normalizat = 1.18082
  Prefactor  = 0.785199
 **********
 **   18 **HESSE 
 **********

 FCN=   4490.549     FROM HESSE     STATUS=OK           338 CALLS     2766 TOTAL
                     EDM=   .15E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          46.549        34.415        .58769E-04   -1.4342    
   2  norm          .10000E-03    3.3877        .23646E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    857.24        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  norm          .10000E-03    2.8504        .11031E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    9.4922        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     23.801        20.733        .82120E-04   -1.4732    
   7  norm          3.1056        1.5831        .42700E-04   -1.5355    
   8  Prefactor     16.799        18.835        .97719E-04   -1.4888    
   9  Prefactor     .10000E-03    18.441        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     1.7535        47.119        .31606E-03   -1.5443    
  11  Prefactor     82.187        68.209        .44300E-04   -1.3892    
  12  norm          .10000E-03    2.5748        .20615E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    19.061        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    4.6306        .14078E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    40.352        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     18.368        190.03        .93588E-04   -1.4851    
  17  norm          .10000E-03    .27381        .59256E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          4.5251        3.7724        .11379E-03   -1.5282    
  19  Prefactor     60.118        61.622        .51751E-04   -1.4156    
  20  Prefactor     58.590        66.992        .52416E-04   -1.4176    
  21  Normalizat    1.1808        .25767        .23223E-03   -.87198    
  22  Prefactor     .78520        .24592        .27821E-03   -1.0028    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.49629e-10
Minuit parameter uncertainties:
  1  34.4292
  2  2.66582e-06
  3  0.001975
  4  8.02837e-06
  5  1.87005e-05
  6  20.739
  7  1.58313
  8  18.8415
  9  8.36212e-05
  10  18.1951
  11  68.2738
  12  7.3267e-08
  13  3.18283e-06
  14  4.07002e-07
  15  3.96065e-05
  16  118.65
  17  6.58036e-07
  18  3.77261
  19  61.6877
  20  67.0781
  21  0.257948
  22  0.246261
Done.

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

Extracting fit parameters...

4FGL J2331.0-2147
   Spectrum: LogParabola
418         norm:  1.000e-04  7.327e-08  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:  7.852e-01  2.463e-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.181e+00  2.579e-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: 7.46e-08 ph cm-2 s-1
Energy Flux Upper Limit: 2.48e-05 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/8007/likelihoodResults_585100801_585360001_4FGL_J2331.0-2147_daily_bin1334.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) = 4490.55054723
delta logL = -0.0018499408161

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 4490.54869715
delta logL = 1.44228579302e-07

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10135E-03   1.0000         .10000E-03   10000.    
     2 'alpha     '    2.4605       1.0000          .0000       5.0000    
     3 'Normalizat'    1.1808       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .78532       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=   4490.549     FROM MIGRAD    STATUS=CONVERGED     54 CALLS      209 TOTAL
                     EDM=   .14E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    9.7567        .90712E-02** at limit **
   2  alpha         2.4895        3.6654        .41158       -.57671E-04
   3  Normalizat    1.1808        .20032        .52524E-01   -.24792E-03
   4  Prefactor     .78519        .20043        .62898E-01   -.24639E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  alpha      = 2.4895
  Normalizat = 1.18082
  Prefactor  = 0.785195
 **********
 **   18 **HESSE 
 **********

 FCN=   4490.549     FROM HESSE     STATUS=OK            29 CALLS      238 TOTAL
                     EDM=   .35E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    2.7536        .21226E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  alpha         2.4895        3.5498        .50000       -.41987E-02
   3  Normalizat    1.1808        .23907        .23223E-03   -.87198    
   4  Prefactor     .78519        .23938        .27821E-03   -1.0028    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.50658e-09
Minuit parameter uncertainties:
  1  2.96771e-05
  2  2.50145
  3  0.239287
  4  0.239699
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/8007': 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) = 4490.54869603
delta logL = 1.25926362671e-06

Extracting fit parameters...

4FGL J2331.0-2147
   Spectrum: LogParabola
418         norm:  1.000e-04  2.968e-05  1.000e-04  1.000e+04 ( 1.000e-12)
419        alpha:  2.490e+00  2.501e+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:  7.852e-01  2.397e-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.181e+00  2.393e-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/8007/cmap_HighResolution_585100801_585360001_4FGL_J2331.0-2147_daily_bin1334.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='2.48e-05', job_status='DONE', photon_flux_upper_limit='7.46e-08', time_completed='2021-09-29 23:08:59.550758', job_id='8007', GAL2='0.79', fit_tolerance='1e-08', EG2='1.18', EG='1.18', time_epoch_completed='1632982139.55', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.79', dlogl='1.26e-06', ts2='-0.00', photon_index_error='0.00', photon_index='2.43' WHERE bin_id='1334' AND source_name='4FGL J2331.0-2147' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep 29 23:08:59 PDT 2021


------------------------------------------------------------
Sender: LSF System <scs@bullet0185>
Subject: Job 8007: <4FGL_J2331.0-2147_daily_bin1334> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2331.0-2147_daily_bin1334 352.763 -21.7953 585100801 585360001 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 :                                   521.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             227.88 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   755 sec.
    Turnaround time :                            757 sec.

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

