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


Performing analysis on: 4FGL_J2331.0-2147_daily_bin1417
RA = 352.763, Dec = -21.7953
tmin = 606614401, tmax = 606873601
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='10466', job_status='RUN', time_executed='2021-09-29 23:06:09.530190', time_epoch_executed='1632981969.53' WHERE source_name='4FGL J2331.0-2147' and cadence='daily' and bin_id='1417'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/10466

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/10466/ft1_4FGL_J2331.0-2147_daily_bin1417.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/10466/ft2_4FGL_J2331.0-2147_daily_bin1417.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/10466/ft1_4FGL_J2331.0-2147_daily_bin1417.fits outfile=/scratch/kocevski/10466/ft1_filteredMKT_4FGL_J2331.0-2147_daily_bin1417.fits ra=352.763 dec=-21.7953 rad=12.0 tmin=606614401.0 tmax=606873601.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.07
user 4.81
sys 0.24

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/10466/ft1_filtered_4FGL_J2331.0-2147_daily_bin1417.fits" evtable="EVENTS" scfile=/scratch/kocevski/10466/ft2_4FGL_J2331.0-2147_daily_bin1417.fits sctable="SC_DATA" outfile=/scratch/kocevski/10466/ltcube_606614401_606873601_4FGL_J2331.0-2147_daily_bin1417.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/10466/ft2_4FGL_J2331.0-2147_daily_bin1417.fits
.....................!
real 11.98
user 11.62
sys 0.32

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/10466/ft1_filtered_4FGL_J2331.0-2147_daily_bin1417.fits evtable="EVENTS" scfile=/scratch/kocevski/10466/ft2_4FGL_J2331.0-2147_daily_bin1417.fits sctable="SC_DATA" expcube=/scratch/kocevski/10466/ltcube_606614401_606873601_4FGL_J2331.0-2147_daily_bin1417.fits outfile=/scratch/kocevski/10466/expmap_606614401_606873601_4FGL_J2331.0-2147_daily_bin1417.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/10466/ltcube_606614401_606873601_4FGL_J2331.0-2147_daily_bin1417.fits
.....................!
real 190.18
user 185.22
sys 4.57

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/10466/ft1_filtered_4FGL_J2331.0-2147_daily_bin1417.fits scfile=/scratch/kocevski/10466/ft2_4FGL_J2331.0-2147_daily_bin1417.fits outfile=/scratch/kocevski/10466/cmap_606614401_606873601_4FGL_J2331.0-2147_daily_bin1417.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.37
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/10466/ft1_filtered_4FGL_J2331.0-2147_daily_bin1417.fits scfile=/scratch/kocevski/10466/ft2_4FGL_J2331.0-2147_daily_bin1417.fits outfile=/scratch/kocevski/10466/cmap_HighResolution_606614401_606873601_4FGL_J2331.0-2147_daily_bin1417.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.37
sys 0.16

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/10466/ft1_filtered_4FGL_J2331.0-2147_daily_bin1417.fits evtable="EVENTS" scfile=/scratch/kocevski/10466/ft2_4FGL_J2331.0-2147_daily_bin1417.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/10466/Model_4FGL_J2331.0-2147_daily_bin1417.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/10466/ft1_filtered_4FGL_J2331.0-2147_daily_bin1417.fits.....................!
real 51.23
user 49.96
sys 1.17

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    22.041       1.0000         .10000E-03   10000.    
     2 'norm      '    .10010E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    19.320       1.0000         .10000E-03   10000.    
     4 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .98142E-01   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .68932E-01   1.0000         .10000E-03   10000.    
     7 'norm      '    1.1081       1.0000         .10000E-03   10000.    
     8 'Prefactor '    2.1012       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    24.722       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    57.332       1.0000         .10000E-03   10000.    
    13 'Prefactor '    20.125       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10169E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    .23175       1.0000         .10000E-03   10000.    
    18 'norm      '    9.1573       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    40.133       1.0000         .10000E-03   10000.    
    21 'Normalizat'    1.2653       1.0000         .10000E-01   10.000    
    22 'Prefactor '    .62314       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=   6547.381     FROM MIGRAD    STATUS=CONVERGED    531 CALLS     2439 TOTAL
                     EDM=   .85E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.5%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          22.039        23.029        .62767E-06    .13370E-07
   2  norm          .10000E-03    1.1185       -.16528E-06** at limit **
   3  Prefactor     19.338        35.138        .67392E-05    .27301E-04
   4  norm          .10000E-03    1.7471       -.99764E-08** at limit **
   5  Prefactor     .16395        7.1409       -.19481E-06   -.57955E-05
   6  Prefactor     .10012E-03    7.9947       -.32842E-06** at limit **
   7  norm          1.1096        .63512       -.11267E-08    .74379E-03
   8  Prefactor     2.1007        1.9986        .46273E-07   -.41308E-03
   9  Prefactor     .10000E-03    2.9765       -.78202E-08** at limit **
  10  Prefactor     24.721        28.066        .23873E-05    .22123E-05
  11  Prefactor     .10000E-03    13.639        .58753E-07** at limit **
  12  norm          57.332        7.0387        .52774E-07    .17545E-04
  13  Prefactor     20.099        48.814       -.69609E-05   -.65320E-05
  14  Prefactor     .10000E-03    6.2948        .79436E-07** at limit **
  15  Prefactor     .10000E-03    15.331       -.22696E-07** at limit **
  16  Prefactor     .10000E-03    37.595        .79606E-07** at limit **
  17  norm          .23259        .60412        .67733E-07    .21611E-03
  18  norm          9.1492        6.0443        .50481E-07   -.50199E-04
  19  Prefactor     .10000E-03    35.247        .70364E-07** at limit **
  20  Prefactor     40.126        37.029       -.13569E-05    .89522E-07
  21  Normalizat    1.2656        .17635        .14702E-06    .30754E-04
  22  Prefactor     .62294        .16930       -.44089E-06    .38315E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 22.0394
  norm       = 0.0001
  Prefactor  = 19.3377
  norm       = 0.0001
  Prefactor  = 0.163948
  Prefactor  = 0.000100115
  norm       = 1.10963
  Prefactor  = 2.10068
  Prefactor  = 0.0001
  Prefactor  = 24.7206
  Prefactor  = 0.0001
  norm       = 57.3324
  Prefactor  = 20.0991
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.232594
  norm       = 9.14916
  Prefactor  = 0.0001
  Prefactor  = 40.1264
  Normalizat = 1.26559
  Prefactor  = 0.62294
 **********
 **   18 **HESSE 
 **********

 FCN=   6547.381     FROM HESSE     STATUS=OK           358 CALLS     2797 TOTAL
                     EDM=   .59E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          22.039        23.028        .85318E-04   -1.4769    
   2  norm          .10000E-03    1.1380        .83760E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     19.338        35.283        .91122E-04   -1.4828    
   4  norm          .10000E-03    1.7702        .10430E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .16395        123.04        .38105E-02   -1.5627    
   6  Prefactor     .10012E-03    13.205        .50829E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          1.1096        .70436        .40713E-04   -1.5497    
   8  Prefactor     2.1007        16.183        .14235E-02   -1.5418    
   9  Prefactor     .10000E-03    2.9803        .13627E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     24.721        28.013        .80565E-04   -1.4713    
  11  Prefactor     .10000E-03    13.645        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          57.332        7.0546        .52982E-04   -1.4192    
  13  Prefactor     20.099        48.690        .89282E-04   -1.4811    
  14  Prefactor     .10000E-03    6.3010        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    15.350        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    37.608        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          .23259        .53082        .77243E-03   -1.5612    
  18  norm          9.1492        5.5321        .12342E-03   -1.5103    
  19  Prefactor     .10000E-03    35.389        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     40.126        37.101        .63273E-04   -1.4440    
  21  Normalizat    1.2656        .20982        .23392E-03   -.84599    
  22  Prefactor     .62294        .20117        .31471E-03   -1.0663    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.90436e-08
Minuit parameter uncertainties:
  1  23.0376
  2  1.82157e-05
  3  35.3211
  4  1.80931e-06
  5  8.99836
  6  0.0024683
  7  0.704367
  8  11.6654
  9  1.82931e-06
  10  28.0283
  11  9.27359e-07
  12  7.05466
  13  48.7867
  14  1.89988e-05
  15  4.61025e-07
  16  2.56203e-06
  17  0.530829
  18  5.53239
  19  1.86251e-05
  20  37.1222
  21  0.209964
  22  0.201407
Done.

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

Extracting fit parameters...

4FGL J2331.0-2147
   Spectrum: LogParabola
418         norm:  5.733e+01  7.055e+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:  6.229e-01  2.014e-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.266e+00  2.100e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 207.82
Ra Dec: 352.763 -21.795
Photon Index (Fixed Index): 2.43 +/- 0.00
Photon Flux (Fixed Index): 6.15e-07 +/- 7.56e-08
Energy Flux (Fixed Index): 2.04e-04 +/- 2.51e-05

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) = 6547.2596762
delta logL = 0.120927071425

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6547.11841422
delta logL = 0.262189053454

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    62.808       1.0000         .10000E-03   10000.    
     2 'alpha     '    2.3322       1.0000          .0000       5.0000    
     3 'Normalizat'    1.2955       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .60241       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=   6547.118     FROM MIGRAD    STATUS=CONVERGED     50 CALLS      214 TOTAL
                     EDM=   .23E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          62.808        17.441        .12658E-02    .34506E-03
   2  alpha         2.3322        .22213        .68379E-01    .27725E-04
   3  Normalizat    1.2955        .17772        .52460E-01   -.24467E-03
   4  Prefactor     .60240        .17024        .72185E-01   -.30367E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 62.8079
  alpha      = 2.33218
  Normalizat = 1.29551
  Prefactor  = 0.602399
 **********
 **   18 **HESSE 
 **********

 FCN=   6547.118     FROM HESSE     STATUS=OK            27 CALLS      241 TOTAL
                     EDM=   .32E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          62.808        10.723        .50633E-04   -1.4121    
   2  alpha         2.3322        .13792        .30098E-03   -.67177E-01
   3  Normalizat    1.2955        .20629        .23194E-03   -.83700    
   4  Prefactor     .60240        .19772        .31955E-03   -1.0749    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.2189e-10
Minuit parameter uncertainties:
  1  10.7229
  2  0.137989
  3  0.206425
  4  0.19795
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/10466': 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) = 6547.11841422
delta logL = 0.262189054097

Extracting fit parameters...

4FGL J2331.0-2147
   Spectrum: LogParabola
418         norm:  6.281e+01  1.072e+01  1.000e-04  1.000e+04 ( 1.000e-12)
419        alpha:  2.332e+00  1.380e-01  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.024e-01  1.979e-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.296e+00  2.064e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 206.69
Ra Dec: 352.763 -21.795
Photon Index (Free Index): 2.33 +/- 0.14
Photon Flux (Free Index): 5.86e-07 +/- 8.28e-08
Energy Flux (Free Index): 2.16e-04 +/- 3.20e-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/10466/cmap_HighResolution_606614401_606873601_4FGL_J2331.0-2147_daily_bin1417.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='6.15e-07', energy_flux2='2.16e-04', photon_flux_error='7.56e-08', dlogl='2.62e-01', energy_flux='2.04e-04', photon_flux2='5.86e-07', job_status='DONE', time_completed='2021-09-29 23:15:53.879531', photon_index_error2='0.14', photon_index2='2.33', ts='207.82', fit_tolerance='1e-08', GAL='0.62', photon_index_error='0.00', energy_flux_error2='3.20e-05', EG='1.27', time_epoch_completed='1632982553.88', return_code='0', job_id='10466', GAL2='0.60', EG2='1.30', return_code2='0', energy_flux_error='2.51e-05', photon_flux_error2='8.28e-08', ts2='206.69', photon_index='2.43' WHERE bin_id='1417' AND source_name='4FGL J2331.0-2147' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep 29 23:15:53 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0038>
Subject: Job 10466: <4FGL_J2331.0-2147_daily_bin1417> in cluster <slac> Done

Job <4FGL_J2331.0-2147_daily_bin1417> was submitted from host <rhel6-64p> by user <kocevski> in cluster <slac> at Wed Sep 29 23:05:12 2021
Job was executed on host(s) <bullet0038>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Sep 29 23:05:14 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Wed Sep 29 23:05:14 2021
Terminated at Wed Sep 29 23:15:54 2021
Results reported at Wed Sep 29 23:15:54 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2331.0-2147_daily_bin1417 352.763 -21.7953 606614401 606873601 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 :                                   586.43 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             274.48 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   640 sec.
    Turnaround time :                            642 sec.

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

