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


Performing analysis on: 4FGL_J2331.0-2147_daily_bin1418
RA = 352.763, Dec = -21.7953
tmin = 606873601, tmax = 607132801
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='9045', job_status='RUN', time_executed='2021-09-29 23:01:17.174215', time_epoch_executed='1632981677.17' WHERE source_name='4FGL J2331.0-2147' and cadence='daily' and bin_id='1418'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/9045

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/9045/ft1_4FGL_J2331.0-2147_daily_bin1418.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/9045/ft2_4FGL_J2331.0-2147_daily_bin1418.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/9045/ft1_4FGL_J2331.0-2147_daily_bin1418.fits outfile=/scratch/kocevski/9045/ft1_filteredMKT_4FGL_J2331.0-2147_daily_bin1418.fits ra=352.763 dec=-21.7953 rad=12.0 tmin=606873601.0 tmax=607132801.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.34
user 5.10
sys 0.20

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/9045/ft1_filtered_4FGL_J2331.0-2147_daily_bin1418.fits" evtable="EVENTS" scfile=/scratch/kocevski/9045/ft2_4FGL_J2331.0-2147_daily_bin1418.fits sctable="SC_DATA" outfile=/scratch/kocevski/9045/ltcube_606873601_607132801_4FGL_J2331.0-2147_daily_bin1418.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/9045/ft2_4FGL_J2331.0-2147_daily_bin1418.fits
.....................!
real 11.44
user 11.08
sys 0.31

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/9045/ft1_filtered_4FGL_J2331.0-2147_daily_bin1418.fits evtable="EVENTS" scfile=/scratch/kocevski/9045/ft2_4FGL_J2331.0-2147_daily_bin1418.fits sctable="SC_DATA" expcube=/scratch/kocevski/9045/ltcube_606873601_607132801_4FGL_J2331.0-2147_daily_bin1418.fits outfile=/scratch/kocevski/9045/expmap_606873601_607132801_4FGL_J2331.0-2147_daily_bin1418.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/9045/ltcube_606873601_607132801_4FGL_J2331.0-2147_daily_bin1418.fits
.....................!
real 189.48
user 184.69
sys 4.36

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/9045/ft1_filtered_4FGL_J2331.0-2147_daily_bin1418.fits scfile=/scratch/kocevski/9045/ft2_4FGL_J2331.0-2147_daily_bin1418.fits outfile=/scratch/kocevski/9045/cmap_606873601_607132801_4FGL_J2331.0-2147_daily_bin1418.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.51
user 0.36
sys 0.13

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/9045/ft1_filtered_4FGL_J2331.0-2147_daily_bin1418.fits scfile=/scratch/kocevski/9045/ft2_4FGL_J2331.0-2147_daily_bin1418.fits outfile=/scratch/kocevski/9045/cmap_HighResolution_606873601_607132801_4FGL_J2331.0-2147_daily_bin1418.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/9045/ft1_filtered_4FGL_J2331.0-2147_daily_bin1418.fits evtable="EVENTS" scfile=/scratch/kocevski/9045/ft2_4FGL_J2331.0-2147_daily_bin1418.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/9045/Model_4FGL_J2331.0-2147_daily_bin1418.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/9045/ft1_filtered_4FGL_J2331.0-2147_daily_bin1418.fits.....................!
real 48.55
user 47.29
sys 1.10

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    47.123       1.0000         .10000E-03   10000.    
     2 'norm      '    1.2417       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10018E-03   1.0000         .10000E-03   10000.    
     4 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    8.1234       1.0000         .10000E-03   10000.    
     7 'norm      '    1.0952       1.0000         .10000E-03   10000.    
     8 'Prefactor '    9.5160       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .54809E-01   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10026E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    5.3384       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10249E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    15.103       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10041E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10035E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    18 'norm      '    12.580       1.0000         .10000E-03   10000.    
    19 'Prefactor '    28.318       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    21 'Normalizat'    .67405       1.0000         .10000E-01   10.000    
    22 'Prefactor '    1.1023       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=   6269.938     FROM MIGRAD    STATUS=CONVERGED    510 CALLS     2428 TOTAL
                     EDM=   .12E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          47.127        31.300        .14603E-02   -.26881E-03
   2  norm          1.2418        1.4653        .10057E-01    .13924E-03
   3  Prefactor     .10000E-03    13.795        .90712E-02** at limit **
   4  norm          .10000E-03    1.6732        .90712E-02** at limit **
   5  Prefactor     .10000E-03    8.8280        .90712E-02** at limit **
   6  Prefactor     8.0747        11.382        .35167E-02    .60242E-03
   7  norm          1.0954        .68568        .87476E-02    .91082E-04
   8  Prefactor     9.5168        10.903        .32478E-02    .15506E-03
   9  Prefactor     .13569        9.6210        .92935E-01    .15327E-03
  10  Prefactor     .10000E-03    12.845        .90712E-02** at limit **
  11  Prefactor     .10000E-03    31.716        .90712E-02** at limit **
  12  norm          5.3381        3.0542        .43486E-02    .39482E-03
  13  Prefactor     .10001E-03    163.84        .90712E-02** at limit **
  14  Prefactor     15.107        12.589        .25765E-02   -.22849E-03
  15  Prefactor     .10000E-03    25.616        .90712E-02** at limit **
  16  Prefactor     .10000E-03    49.779        .90712E-02** at limit **
  17  norm          .10000E-03    .14876        .90712E-02** at limit **
  18  norm          12.580        4.4455        .28235E-02    .78386E-04
  19  Prefactor     28.276        41.500        .18821E-02   -.13619E-02
  20  Prefactor     .10000E-03    13.887        .90712E-02** at limit **
  21  Normalizat    .67403        .16211        .41943E-01    .66223E-05
  22  Prefactor     1.1023        .16541        .37500E-01    .20396E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 47.1269
  norm       = 1.24175
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 8.07471
  norm       = 1.0954
  Prefactor  = 9.51675
  Prefactor  = 0.135686
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 5.33814
  Prefactor  = 0.000100006
  Prefactor  = 15.1073
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 12.5803
  Prefactor  = 28.2758
  Prefactor  = 0.0001
  Normalizat = 0.674029
  Prefactor  = 1.10225
 **********
 **   18 **HESSE 
 **********

 FCN=   6269.938     FROM HESSE     STATUS=OK           346 CALLS     2774 TOTAL
                     EDM=   .12E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          47.127        31.306        .58411E-04   -1.4334    
   2  norm          1.2418        1.4393        .10117E-03   -1.5485    
   3  Prefactor     .10000E-03    13.803        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  norm          .10000E-03    1.6913        .99810E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    8.8507        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     8.0747        13.456        .14067E-03   -1.5140    
   7  norm          1.0954        .72027        .39058E-04   -1.5499    
   8  Prefactor     9.5168        10.906        .12991E-03   -1.5091    
   9  Prefactor     .13569        31.589        .54233E-01   -1.5634    
  10  Prefactor     .10000E-03    12.862        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    31.892        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          5.3381        3.0515        .99674E-04   -1.5246    
  13  Prefactor     .10001E-03    165.47        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     15.107        12.563        .10306E-03   -1.4930    
  15  Prefactor     .10000E-03    25.715        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    49.806        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          .10000E-03    .15331        .59121E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          12.580        4.4160        .94000E-04   -1.4998    
  19  Prefactor     28.276        41.537        .75286E-04   -1.4644    
  20  Prefactor     .10000E-03    13.906        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Normalizat    .67403        .18735        .26012E-03   -1.0493    
  22  Prefactor     1.1023        .19145        .21865E-03   -.89395    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.23093e-08
Minuit parameter uncertainties:
  1  31.3168
  2  1.43933
  3  1.42488e-05
  4  3.33722e-06
  5  4.40385e-05
  6  13.4611
  7  0.720275
  8  10.9084
  9  4.14129
  10  9.14754e-06
  11  2.06283e-05
  12  3.05157
  13  0.00193176
  14  12.5653
  15  2.25939e-05
  16  3.98036e-05
  17  4.35055e-08
  18  4.41611
  19  41.5795
  20  1.86587e-05
  21  0.187525
  22  0.191565
Done.

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

Extracting fit parameters...

4FGL J2331.0-2147
   Spectrum: LogParabola
418         norm:  5.338e+00  3.052e+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.102e+00  1.916e-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:  6.740e-01  1.875e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 5.15
Ra Dec: 352.763 -21.795
Photon Index (Fixed Index): 2.43 +/- 0.00
Photon Flux (Fixed Index): 5.72e-08 +/- 3.27e-08
Energy Flux (Fixed Index): 1.90e-05 +/- 1.09e-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) = 6269.8469419
delta logL = 0.0913208535112

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6269.84263537
delta logL = 0.0956273814518

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    4.3300       1.0000         .10000E-03   10000.    
     2 'alpha     '    2.6884       1.0000          .0000       5.0000    
     3 'Normalizat'    .65899       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.1127       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=   6269.843     FROM MIGRAD    STATUS=CONVERGED     50 CALLS      227 TOTAL
                     EDM=   .39E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          4.3334        43.726        .48396E-02    .25115E-03
   2  alpha         2.6880        3.8435        .27125        .59495E-04
   3  Normalizat    .65899        .73968E-01    .41740E-01    .15969E-04
   4  Prefactor     1.1126        .61472E-01    .37124E-01   -.10044E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 4.3334
  alpha      = 2.68804
  Normalizat = 0.658987
  Prefactor  = 1.1126
 **********
 **   18 **HESSE 
 **********

 FCN=   6269.843     FROM HESSE     STATUS=OK            33 CALLS      260 TOTAL
                     EDM=   .74E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          4.3334        3.8001        .86272E-04   -1.5292    
   2  alpha         2.6880        .63829        .10485E-01    .75288E-01
   3  Normalizat    .65899        .18387        .26281E-03   -1.0553    
   4  Prefactor     1.1126        .19136        .21777E-03   -.89065    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 7.44454e-12
Minuit parameter uncertainties:
  1  3.80027
  2  0.64548
  3  0.184037
  4  0.191478
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/9045': 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) = 6269.84263473
delta logL = 0.0956280220862

Extracting fit parameters...

4FGL J2331.0-2147
   Spectrum: LogParabola
418         norm:  4.333e+00  3.800e+00  1.000e-04  1.000e+04 ( 1.000e-12)
419        alpha:  2.688e+00  6.455e-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:  1.113e+00  1.915e-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:  6.590e-01  1.840e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 5.33
Ra Dec: 352.763 -21.795
Photon Index (Free Index): 2.69 +/- 0.65
Photon Flux (Free Index): 6.75e-08 +/- 4.22e-08
Energy Flux (Free Index): 1.81e-05 +/- 1.04e-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/9045/cmap_HighResolution_606873601_607132801_4FGL_J2331.0-2147_daily_bin1418.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='5.72e-08', energy_flux2='1.81e-05', photon_flux_error='3.27e-08', dlogl='9.56e-02', energy_flux='1.90e-05', photon_flux2='6.75e-08', job_status='DONE', time_completed='2021-09-29 23:10:39.613998', photon_index_error2='0.65', photon_index2='2.69', ts='5.15', fit_tolerance='1e-08', GAL='1.10', photon_index_error='0.00', energy_flux_error2='1.04e-05', EG='0.67', time_epoch_completed='1632982239.61', return_code='0', job_id='9045', GAL2='1.11', EG2='0.66', return_code2='0', energy_flux_error='1.09e-05', photon_flux_error2='4.22e-08', ts2='5.33', photon_index='2.43' WHERE bin_id='1418' AND source_name='4FGL J2331.0-2147' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep 29 23:10:39 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0202>
Subject: Job 9045: <4FGL_J2331.0-2147_daily_bin1418> in cluster <slac> Done

Job <4FGL_J2331.0-2147_daily_bin1418> was submitted from host <rhel6-64k> by user <kocevski> in cluster <slac> at Wed Sep 29 23:00:17 2021
Job was executed on host(s) <bullet0202>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Sep 29 23:00:19 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:00:19 2021
Terminated at Wed Sep 29 23:10:40 2021
Results reported at Wed Sep 29 23:10:40 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2331.0-2147_daily_bin1418 352.763 -21.7953 606873601 607132801 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 :                                   559.09 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             332.84 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   620 sec.
    Turnaround time :                            623 sec.

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

