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


Performing analysis on: 4FGL_J2331.0-2147_daily_bin1366
RA = 352.763, Dec = -21.7953
tmin = 593395201, tmax = 593654401
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='8061', job_status='RUN', time_executed='2021-09-29 22:59:05.448904', time_epoch_executed='1632981545.45' WHERE source_name='4FGL J2331.0-2147' and cadence='daily' and bin_id='1366'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/8061

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

Retrieving the FT1 file...

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

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

Retrieving 48 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/8061/ft1_4FGL_J2331.0-2147_daily_bin1366.fits


Retrieving the FT1 file...

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

Retrieving 48 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/8061/ft2_4FGL_J2331.0-2147_daily_bin1366.fits


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

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

Done.
real 4.10
user 3.87
sys 0.20

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/8061/ft1_filtered_4FGL_J2331.0-2147_daily_bin1366.fits" evtable="EVENTS" scfile=/scratch/kocevski/8061/ft2_4FGL_J2331.0-2147_daily_bin1366.fits sctable="SC_DATA" outfile=/scratch/kocevski/8061/ltcube_593395201_593654401_4FGL_J2331.0-2147_daily_bin1366.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/8061/ft2_4FGL_J2331.0-2147_daily_bin1366.fits
.....................!
real 11.72
user 11.34
sys 0.29

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/8061/ft1_filtered_4FGL_J2331.0-2147_daily_bin1366.fits evtable="EVENTS" scfile=/scratch/kocevski/8061/ft2_4FGL_J2331.0-2147_daily_bin1366.fits sctable="SC_DATA" expcube=/scratch/kocevski/8061/ltcube_593395201_593654401_4FGL_J2331.0-2147_daily_bin1366.fits outfile=/scratch/kocevski/8061/expmap_593395201_593654401_4FGL_J2331.0-2147_daily_bin1366.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/8061/ltcube_593395201_593654401_4FGL_J2331.0-2147_daily_bin1366.fits
.....................!
real 190.81
user 185.78
sys 4.66

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/8061/ft1_filtered_4FGL_J2331.0-2147_daily_bin1366.fits scfile=/scratch/kocevski/8061/ft2_4FGL_J2331.0-2147_daily_bin1366.fits outfile=/scratch/kocevski/8061/cmap_593395201_593654401_4FGL_J2331.0-2147_daily_bin1366.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.53
user 0.38
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/8061/ft1_filtered_4FGL_J2331.0-2147_daily_bin1366.fits scfile=/scratch/kocevski/8061/ft2_4FGL_J2331.0-2147_daily_bin1366.fits outfile=/scratch/kocevski/8061/cmap_HighResolution_593395201_593654401_4FGL_J2331.0-2147_daily_bin1366.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/8061/ft1_filtered_4FGL_J2331.0-2147_daily_bin1366.fits evtable="EVENTS" scfile=/scratch/kocevski/8061/ft2_4FGL_J2331.0-2147_daily_bin1366.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/8061/Model_4FGL_J2331.0-2147_daily_bin1366.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/8061/ft1_filtered_4FGL_J2331.0-2147_daily_bin1366.fits.....................!
real 61.20
user 59.84
sys 1.18

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    17.569       1.0000         .10000E-03   10000.    
     2 'norm      '    2.7152       1.0000         .10000E-03   10000.    
     3 'Prefactor '    38.473       1.0000         .10000E-03   10000.    
     4 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    20.011       1.0000         .10000E-03   10000.    
     7 'norm      '    1.1933       1.0000         .10000E-03   10000.    
     8 'Prefactor '    2.5593       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    1.1326       1.0000         .10000E-03   10000.    
    13 'Prefactor '    7.0359       1.0000         .10000E-03   10000.    
    14 'Prefactor '    2.2835       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10009E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    31.697       1.0000         .10000E-03   10000.    
    17 'norm      '    .10658       1.0000         .10000E-03   10000.    
    18 'norm      '    76.165       1.0000         .10000E-03   10000.    
    19 'Prefactor '    6.1572       1.0000         .10000E-03   10000.    
    20 'Prefactor '    32.615       1.0000         .10000E-03   10000.    
    21 'Normalizat'    .71677       1.0000         .10000E-01   10.000    
    22 'Prefactor '    1.0113       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=   8263.774     FROM MIGRAD    STATUS=CONVERGED    470 CALLS     2398 TOTAL
                     EDM=   .92E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  6.5%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          17.569        17.152        .25043E-07    .87935E-06
   2  norm          2.7165        2.6290       -.26248E-07    .51562E-03
   3  Prefactor     38.451        47.001        .18991E-05   -.62898E-04
   4  norm          .10000E-03    1.7298        .16624E-07** at limit **
   5  Prefactor     .10000E-03    5.4153        .34888E-07** at limit **
   6  Prefactor     20.011        10.529        .13847E-06    .42481E-04
   7  norm          1.1934        .78804       -.45228E-07   -.53815E-03
   8  Prefactor     2.5591        7.1979        .40431E-05   -.46482E-03
   9  Prefactor     .10000E-03    1.9021       -.14808E-07** at limit **
  10  Prefactor     .10000E-03    7.8241        .66459E-07** at limit **
  11  Prefactor     .10000E-03    8.9915        .29587E-07** at limit **
  12  norm          1.1328        2.4968        .44272E-06   -.11542E-04
  13  Prefactor     7.0445        102.61       -.12513E-04   -.68016E-04
  14  Prefactor     2.2885        45.108        .79313E-05    .14750E-03
  15  Prefactor     .10000E-03    25.551       -.94266E-07** at limit **
  16  Prefactor     31.691        40.641        .11974E-05    .19873E-05
  17  norm          .10621        .45198        .53055E-07   -.46401E-03
  18  norm          76.166        9.3173        .85072E-07    .20329E-03
  19  Prefactor     6.1579        52.093        .12075E-05   -.24193E-04
  20  Prefactor     32.610        45.104        .88391E-06    .41511E-05
  21  Normalizat    .71677        .15257       -.76043E-07   -.30958E-04
  22  Prefactor     1.0113        .15218       -.75681E-06   -.56341E-05
                               ERR DEF=  .500    
Final values: 
  norm       = 17.5688
  norm       = 2.71646
  Prefactor  = 38.4508
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 20.0111
  norm       = 1.19341
  Prefactor  = 2.55907
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 1.13282
  Prefactor  = 7.04455
  Prefactor  = 2.28854
  Prefactor  = 0.0001
  Prefactor  = 31.6908
  norm       = 0.106215
  norm       = 76.1663
  Prefactor  = 6.15792
  Prefactor  = 32.6102
  Normalizat = 0.716773
  Prefactor  = 1.01131
 **********
 **   18 **HESSE 
 **********

 FCN=   8263.774     FROM HESSE     STATUS=OK           348 CALLS     2746 TOTAL
                     EDM=   .32E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          17.569        17.152        .95555E-04   -1.4869    
   2  norm          2.7165        2.6423        .11312E-03   -1.5378    
   3  Prefactor     38.451        46.563        .64618E-04   -1.4467    
   4  norm          .10000E-03    1.7617        .11657E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    5.4207        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     20.011        11.054        .89535E-04   -1.4813    
   7  norm          1.1934        .80999        .47141E-04   -1.5489    
   8  Prefactor     2.5591        7.1519        .12760E-02   -1.5388    
   9  Prefactor     .10000E-03    1.9037        .12239E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    7.8312        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    8.9951        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          1.1328        2.4912        .20109E-03   -1.5495    
  13  Prefactor     7.0445        97.137        .15124E-03   -1.5177    
  14  Prefactor     2.2885        41.823        .27169E-03   -1.5405    
  15  Prefactor     .10000E-03    26.014        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     31.691        40.586        .71170E-04   -1.4581    
  17  norm          .10621        .55477        .96811E-03   -1.5643    
  18  norm          76.166        8.4736        .46010E-04   -1.3960    
  19  Prefactor     6.1579        51.901        .80895E-03   -1.5212    
  20  Prefactor     32.610        45.294        .70164E-04   -1.4565    
  21  Normalizat    .71677        .18241        .27540E-03   -1.0323    
  22  Prefactor     1.0113        .18121        .24358E-03   -.92353    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.21657e-08
Minuit parameter uncertainties:
  1  17.1571
  2  2.64238
  3  46.6066
  4  7.86565e-07
  5  2.89312e-06
  6  11.0549
  7  0.81
  8  7.1543
  9  1.03801e-06
  10  1.15469e-05
  11  5.59575e-08
  12  2.49144
  13  52.421
  14  19.582
  15  1.2676e-05
  16  40.621
  17  0.485268
  18  8.47377
  19  35.7965
  20  45.3416
  21  0.182567
  22  0.181323
Done.

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

Extracting fit parameters...

4FGL J2331.0-2147
   Spectrum: LogParabola
418         norm:  1.133e+00  2.491e+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:  1.011e+00  1.813e-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:  7.168e-01  1.826e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 0.24
Ra Dec: 352.763 -21.795
Photon Flux Upper Limit: 7.08e-08 ph cm-2 s-1
Energy Flux Upper Limit: 2.35e-05 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/8061/likelihoodResults_593395201_593654401_4FGL_J2331.0-2147_daily_bin1366.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) = 8263.77380974
delta logL = 0.000418592986534

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 8263.7734604
delta logL = 0.000767929468566

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    1.0495       1.0000         .10000E-03   10000.    
     2 'alpha     '    2.5091       1.0000          .0000       5.0000    
     3 'Normalizat'    .71587       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0121       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=   8263.773     FROM MIGRAD    STATUS=CONVERGED     52 CALLS      201 TOTAL
                     EDM=   .54E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          1.0510        64.450        .12093E-01    .10991E-02
   2  alpha         2.5098        2.9280        .41152        .36826E-04
   3  Normalizat    .71588        .28350E-01    .62291E-01   -.45791E-04
   4  Prefactor     1.0120        .29345E-01    .43043E-01   -.24497E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 1.05097
  alpha      = 2.50981
  Normalizat = 0.715885
  Prefactor  = 1.01204
 **********
 **   18 **HESSE 
 **********

 FCN=   8263.773     FROM HESSE     STATUS=OK            33 CALLS      234 TOTAL
                     EDM=   .17E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          1.0510        5.0573        .19249E-03   -1.5503    
   2  alpha         2.5098        3.6438        .33527E-01    .39228E-02
   3  Normalizat    .71588        .17266        .27556E-03   -1.0327    
   4  Prefactor     1.0120        .17910        .24351E-03   -.92329    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.73144e-10
Minuit parameter uncertainties:
  1  4.61133
  2  2.87499
  3  0.172795
  4  0.17921
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/8061': 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) = 8263.77345983
delta logL = 0.000768503790823

Extracting fit parameters...

4FGL J2331.0-2147
   Spectrum: LogParabola
418         norm:  1.051e+00  4.611e+00  1.000e-04  1.000e+04 ( 1.000e-12)
419        alpha:  2.510e+00  2.875e+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:  1.012e+00  1.792e-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:  7.159e-01  1.728e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 0.24
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/8061/cmap_HighResolution_593395201_593654401_4FGL_J2331.0-2147_daily_bin1366.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='2.35e-05', job_status='DONE', photon_flux_upper_limit='7.08e-08', time_completed='2021-09-29 23:11:08.226004', job_id='8061', GAL2='1.01', fit_tolerance='1e-08', EG2='0.72', EG='0.72', time_epoch_completed='1632982268.23', return_code2='0', ts='0.24', comment='SUCCESS', return_code='0', GAL='1.01', dlogl='7.69e-04', ts2='0.24', photon_index_error='0.00', photon_index='2.43' WHERE bin_id='1366' AND source_name='4FGL J2331.0-2147' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep 29 23:11:08 PDT 2021


------------------------------------------------------------
Sender: LSF System <scs@bullet0009>
Subject: Job 8061: <4FGL_J2331.0-2147_daily_bin1366> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2331.0-2147_daily_bin1366 352.763 -21.7953 593395201 593654401 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 :                                   716.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             314.26 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   877 sec.
    Turnaround time :                            879 sec.

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

