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


Performing analysis on: 4FGL_J2331.0-2147_daily_bin1063
RA = 352.763, Dec = -21.7953
tmin = 514857601, tmax = 515116801
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='7570', job_status='RUN', time_executed='2021-09-29 22:56:40.832064', time_epoch_executed='1632981400.83' WHERE source_name='4FGL J2331.0-2147' and cadence='daily' and bin_id='1063'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/7570

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/7570/ft1_4FGL_J2331.0-2147_daily_bin1063.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/7570/ft2_4FGL_J2331.0-2147_daily_bin1063.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/7570/ft1_4FGL_J2331.0-2147_daily_bin1063.fits outfile=/scratch/kocevski/7570/ft1_filteredMKT_4FGL_J2331.0-2147_daily_bin1063.fits ra=352.763 dec=-21.7953 rad=12.0 tmin=514857601.0 tmax=515116801.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.51
user 3.28
sys 0.20

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/7570/ft1_filtered_4FGL_J2331.0-2147_daily_bin1063.fits" evtable="EVENTS" scfile=/scratch/kocevski/7570/ft2_4FGL_J2331.0-2147_daily_bin1063.fits sctable="SC_DATA" outfile=/scratch/kocevski/7570/ltcube_514857601_515116801_4FGL_J2331.0-2147_daily_bin1063.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/7570/ft2_4FGL_J2331.0-2147_daily_bin1063.fits
.....................!
real 12.25
user 11.90
sys 0.31

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/7570/ft1_filtered_4FGL_J2331.0-2147_daily_bin1063.fits evtable="EVENTS" scfile=/scratch/kocevski/7570/ft2_4FGL_J2331.0-2147_daily_bin1063.fits sctable="SC_DATA" expcube=/scratch/kocevski/7570/ltcube_514857601_515116801_4FGL_J2331.0-2147_daily_bin1063.fits outfile=/scratch/kocevski/7570/expmap_514857601_515116801_4FGL_J2331.0-2147_daily_bin1063.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/7570/ltcube_514857601_515116801_4FGL_J2331.0-2147_daily_bin1063.fits
.....................!
real 190.25
user 184.86
sys 4.98

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/7570/ft1_filtered_4FGL_J2331.0-2147_daily_bin1063.fits scfile=/scratch/kocevski/7570/ft2_4FGL_J2331.0-2147_daily_bin1063.fits outfile=/scratch/kocevski/7570/cmap_514857601_515116801_4FGL_J2331.0-2147_daily_bin1063.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.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/7570/ft1_filtered_4FGL_J2331.0-2147_daily_bin1063.fits scfile=/scratch/kocevski/7570/ft2_4FGL_J2331.0-2147_daily_bin1063.fits outfile=/scratch/kocevski/7570/cmap_HighResolution_514857601_515116801_4FGL_J2331.0-2147_daily_bin1063.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.57
user 0.39
sys 0.16

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/7570/ft1_filtered_4FGL_J2331.0-2147_daily_bin1063.fits evtable="EVENTS" scfile=/scratch/kocevski/7570/ft2_4FGL_J2331.0-2147_daily_bin1063.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/7570/Model_4FGL_J2331.0-2147_daily_bin1063.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/7570/ft1_filtered_4FGL_J2331.0-2147_daily_bin1063.fits....................!
real 49.25
user 47.97
sys 1.12

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    4.3697       1.0000         .10000E-03   10000.    
     2 'norm      '    .11555E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    66.521       1.0000         .10000E-03   10000.    
     4 'norm      '    2.2482       1.0000         .10000E-03   10000.    
     5 'Prefactor '    38.723       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10099E-03   1.0000         .10000E-03   10000.    
     7 'norm      '    2.3812       1.0000         .10000E-03   10000.    
     8 'Prefactor '    25.259       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10015E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    4.5272       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10037E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    74.226       1.0000         .10000E-03   10000.    
    17 'norm      '    .51526       1.0000         .10000E-03   10000.    
    18 'norm      '    5.2894       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10205E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    44.950       1.0000         .10000E-03   10000.    
    21 'Normalizat'    1.4803       1.0000         .10000E-01   10.000    
    22 'Prefactor '    .59365       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=   6073.301     FROM MIGRAD    STATUS=CONVERGED    503 CALLS     2389 TOTAL
                     EDM=   .16E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.9%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          4.3699        31.409       -.90779E-07    .13146E-04
   2  norm          .10000E-03    2.3045        .58323E-05** at limit **
   3  Prefactor     66.639        56.153       -.11178E-04   -.57279E-03
   4  norm          2.2461        4.9845        .46633E-05   -.38596E-03
   5  Prefactor     38.749        25.192       -.10432E-05   -.99741E-03
   6  Prefactor     .10000E-03    18.345       -.30557E-05** at limit **
   7  norm          2.3819        .93581        .92543E-07    .81637E-03
   8  Prefactor     25.257        14.504       -.13804E-07    .46537E-04
   9  Prefactor     .10000E-03    6.1664       -.28482E-06** at limit **
  10  Prefactor     .10000E-03    7.8543       -.20039E-07** at limit **
  11  Prefactor     .10000E-03    17.643       -.14301E-06** at limit **
  12  norm          4.5282        3.3858        .37222E-07    .12261E-04
  13  Prefactor     .10000E-03    27.842        .52937E-07** at limit **
  14  Prefactor     .10000E-03    6.1059       -.36879E-07** at limit **
  15  Prefactor     .10000E-03    10.559       -.43560E-07** at limit **
  16  Prefactor     74.244        105.20       -.43071E-06    .47048E-04
  17  norm          .51520        .46865       -.14601E-07   -.11961E-03
  18  norm          5.2900        3.7620        .11806E-07    .42168E-05
  19  Prefactor     .10000E-03    16.785        .36713E-06** at limit **
  20  Prefactor     44.943        51.191        .13813E-06   -.27327E-04
  21  Normalizat    1.4797        .19122       -.27194E-07   -.37715E-03
  22  Prefactor     .59419        .18259        .30388E-06   -.21512E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 4.36991
  norm       = 0.000100005
  Prefactor  = 66.6394
  norm       = 2.24611
  Prefactor  = 38.7488
  Prefactor  = 0.000100001
  norm       = 2.38191
  Prefactor  = 25.2569
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 4.5282
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 74.2436
  norm       = 0.5152
  norm       = 5.28998
  Prefactor  = 0.000100001
  Prefactor  = 44.9429
  Normalizat = 1.47972
  Prefactor  = 0.594192
 **********
 **   18 **HESSE 
 **********

 FCN=   6073.301     FROM HESSE     STATUS=OK           338 CALLS     2727 TOTAL
                     EDM=   .43E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          4.3699        31.369        .19268E-03   -1.5290    
   2  norm          .10000E-03    3.4696        .18753E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     66.639        59.691        .24604E-03   -1.4073    
   4  norm          2.2461        5.2100        .11625E-02   -1.5408    
   5  Prefactor     38.749        25.426        .64410E-04   -1.4462    
   6  Prefactor     .10000E-03    18.587        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          2.3819        .94873        .40108E-04   -1.5399    
   8  Prefactor     25.257        14.503        .79706E-04   -1.4702    
   9  Prefactor     .10000E-03    6.1882        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    7.8572        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    17.652        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          4.5282        3.3850        .11850E-03   -1.5282    
  13  Prefactor     .10000E-03    27.907        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    6.1171        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    10.565        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     74.244        105.44        .46602E-04   -1.3983    
  17  norm          .51520        .46533        .46237E-04   -1.5564    
  18  norm          5.2900        3.7611        .11606E-03   -1.5248    
  19  Prefactor     .10000E-03    16.783        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     44.943        51.421        .59800E-04   -1.4366    
  21  Normalizat    1.4797        .22598        .22245E-03   -.78350    
  22  Prefactor     .59419        .21315        .32335E-03   -1.0783    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.32718e-09
Minuit parameter uncertainties:
  1  23.4333
  2  0.000258562
  3  59.7444
  4  5.21102
  5  25.4327
  6  0.000204315
  7  0.948736
  8  14.5046
  9  6.88064e-06
  10  7.28142e-06
  11  3.49894e-05
  12  3.38513
  13  0.000147157
  14  1.71379e-05
  15  1.0284e-05
  16  105.708
  17  0.465335
  18  3.76123
  19  0.000200741
  20  51.4717
  21  0.226135
  22  0.213439
Done.

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

Extracting fit parameters...

4FGL J2331.0-2147
   Spectrum: LogParabola
418         norm:  4.528e+00  3.385e+00  1.000e-04  1.000e+04 ( 1.000e-12)
419        alpha:  2.433e+00  0.000e+00  0.000e+00  5.000e+00 ( 1.000e+00) fixed
420         beta:  1.305e-01  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
421           Eb:  9.116e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
534    Prefactor:  5.942e-01  2.134e-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.480e+00  2.261e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 2.85
Ra Dec: 352.763 -21.795
Photon Index (Fixed Index): 2.43 +/- 0.00
Photon Flux (Fixed Index): 4.85e-08 +/- 3.63e-08
Energy Flux (Fixed Index): 1.61e-05 +/- 1.21e-05

TS (Fixed Index): 2.85
Ra Dec: 352.763 -21.795
Photon Flux Upper Limit: 1.26e-07 ph cm-2 s-1
Energy Flux Upper Limit: 4.20e-05 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/7570/likelihoodResults_514857601_515116801_4FGL_J2331.0-2147_daily_bin1063.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) = 6073.20782889
delta logL = 0.0934741596948

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6073.20059267
delta logL = 0.100710378665

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    2.9663       1.0000         .10000E-03   10000.    
     2 'alpha     '    2.9268       1.0000          .0000       5.0000    
     3 'Normalizat'    1.4493       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .61578       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=   6073.201     FROM MIGRAD    STATUS=CONVERGED     59 CALLS      251 TOTAL
                     EDM=   .60E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          2.9647        40.970        .58940E-02    .40669E-03
   2  alpha         2.9283        3.9414        .27365        .66842E-04
   3  Normalizat    1.4496        .73368E-01    .50734E-01   -.92089E-05
   4  Prefactor     .61558        .60596E-01    .71878E-01    .26334E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 2.9647
  alpha      = 2.92831
  Normalizat = 1.44964
  Prefactor  = 0.615583
 **********
 **   18 **HESSE 
 **********

 FCN=   6073.201     FROM HESSE     STATUS=OK            33 CALLS      284 TOTAL
                     EDM=   .59E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          2.9647        6.6904        .88343E-04   -1.5364    
   2  alpha         2.9283        1.6207        .13289E-01    .17217    
   3  Normalizat    1.4496        .24013        .22429E-03   -.79204    
   4  Prefactor     .61558        .22452        .31817E-03   -1.0693    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.86753e-11
Minuit parameter uncertainties:
  1  6.69213
  2  1.76885
  3  0.240322
  4  0.224845
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/7570': 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) = 6073.20058756
delta logL = 0.100715485852

Extracting fit parameters...

4FGL J2331.0-2147
   Spectrum: LogParabola
418         norm:  2.965e+00  6.692e+00  1.000e-04  1.000e+04 ( 1.000e-12)
419        alpha:  2.928e+00  1.769e+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:  6.156e-01  2.248e-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.450e+00  2.403e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 3.05
Ra Dec: 352.763 -21.795
Photon Index (Free Index): 2.93 +/- 1.77
Photon Flux (Free Index): 6.72e-08 +/- 6.56e-08
Energy Flux (Free Index): 1.55e-05 +/- 1.17e-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/7570/cmap_HighResolution_514857601_515116801_4FGL_J2331.0-2147_daily_bin1063.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='4.20e-05', comment='SUCCESS', photon_flux='4.85e-08', energy_flux2='1.55e-05', photon_flux_error='3.63e-08', dlogl='1.01e-01', energy_flux='1.61e-05', photon_flux2='6.72e-08', job_status='DONE', time_completed='2021-09-29 23:06:57.331531', photon_index_error2='1.77', photon_index2='2.93', ts='2.85', fit_tolerance='1e-08', GAL='0.59', photon_index_error='0.00', photon_flux_upper_limit='1.26e-07', energy_flux_error2='1.17e-05', EG='1.48', time_epoch_completed='1632982017.33', return_code='0', job_id='7570', GAL2='0.62', EG2='1.45', return_code2='0', energy_flux_error='1.21e-05', photon_flux_error2='6.56e-08', ts2='3.05', photon_index='2.43' WHERE bin_id='1063' AND source_name='4FGL J2331.0-2147' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep 29 23:06:57 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0203>
Subject: Job 7570: <4FGL_J2331.0-2147_daily_bin1063> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2331.0-2147_daily_bin1063 352.763 -21.7953 514857601 515116801 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 :                                   608.43 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             307.33 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   671 sec.
    Turnaround time :                            675 sec.

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

