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


Performing analysis on: 4FGL_J2331.0-2147_daily_bin1080
RA = 352.763, Dec = -21.7953
tmin = 519264001, tmax = 519523201
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='7597', job_status='RUN', time_executed='2021-09-29 22:56:22.186852', time_epoch_executed='1632981382.19' WHERE source_name='4FGL J2331.0-2147' and cadence='daily' and bin_id='1080'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/7597

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/7597/ft1_4FGL_J2331.0-2147_daily_bin1080.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/7597/ft2_4FGL_J2331.0-2147_daily_bin1080.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/7597/ft1_4FGL_J2331.0-2147_daily_bin1080.fits outfile=/scratch/kocevski/7597/ft1_filteredMKT_4FGL_J2331.0-2147_daily_bin1080.fits ra=352.763 dec=-21.7953 rad=12.0 tmin=519264001.0 tmax=519523201.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.55
user 3.27
sys 0.21

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/7597/ft1_filtered_4FGL_J2331.0-2147_daily_bin1080.fits" evtable="EVENTS" scfile=/scratch/kocevski/7597/ft2_4FGL_J2331.0-2147_daily_bin1080.fits sctable="SC_DATA" outfile=/scratch/kocevski/7597/ltcube_519264001_519523201_4FGL_J2331.0-2147_daily_bin1080.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/7597/ft2_4FGL_J2331.0-2147_daily_bin1080.fits
.....................!
real 13.50
user 13.16
sys 0.30

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/7597/ft1_filtered_4FGL_J2331.0-2147_daily_bin1080.fits evtable="EVENTS" scfile=/scratch/kocevski/7597/ft2_4FGL_J2331.0-2147_daily_bin1080.fits sctable="SC_DATA" expcube=/scratch/kocevski/7597/ltcube_519264001_519523201_4FGL_J2331.0-2147_daily_bin1080.fits outfile=/scratch/kocevski/7597/expmap_519264001_519523201_4FGL_J2331.0-2147_daily_bin1080.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/7597/ltcube_519264001_519523201_4FGL_J2331.0-2147_daily_bin1080.fits
.....................!
real 191.79
user 186.56
sys 4.71

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/7597/ft1_filtered_4FGL_J2331.0-2147_daily_bin1080.fits scfile=/scratch/kocevski/7597/ft2_4FGL_J2331.0-2147_daily_bin1080.fits outfile=/scratch/kocevski/7597/cmap_519264001_519523201_4FGL_J2331.0-2147_daily_bin1080.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.39
sys 0.13

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/7597/ft1_filtered_4FGL_J2331.0-2147_daily_bin1080.fits scfile=/scratch/kocevski/7597/ft2_4FGL_J2331.0-2147_daily_bin1080.fits outfile=/scratch/kocevski/7597/cmap_HighResolution_519264001_519523201_4FGL_J2331.0-2147_daily_bin1080.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.55
user 0.39
sys 0.14

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/7597/ft1_filtered_4FGL_J2331.0-2147_daily_bin1080.fits evtable="EVENTS" scfile=/scratch/kocevski/7597/ft2_4FGL_J2331.0-2147_daily_bin1080.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/7597/Model_4FGL_J2331.0-2147_daily_bin1080.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/7597/ft1_filtered_4FGL_J2331.0-2147_daily_bin1080.fits.....................!
real 52.91
user 51.56
sys 1.19

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     2 'norm      '    .24444       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10017E-03   1.0000         .10000E-03   10000.    
     4 'norm      '    13.458       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10107E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    25.275       1.0000         .10000E-03   10000.    
     7 'norm      '    .42057       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10017E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10717E-02   1.0000         .10000E-03   10000.    
    10 'Prefactor '    11.867       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    9.1484       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .20829E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    7.1792       1.0000         .10000E-03   10000.    
    15 'Prefactor '    1.3498       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .22472E-02   1.0000         .10000E-03   10000.    
    17 'norm      '    6.4500       1.0000         .10000E-03   10000.    
    18 'norm      '    9.4002       1.0000         .10000E-03   10000.    
    19 'Prefactor '    12.723       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10399E-03   1.0000         .10000E-03   10000.    
    21 'Normalizat'    1.1827       1.0000         .10000E-01   10.000    
    22 'Prefactor '    .79575       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=   6529.996     FROM MIGRAD    STATUS=CONVERGED    482 CALLS     2373 TOTAL
                     EDM=   .13E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.2%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    28.596        .40452E-06** at limit **
   2  norm          .24435        2.5715        .24812E-05   -.29180E-03
   3  Prefactor     .10000E-03    40.617       -.61803E-06** at limit **
   4  norm          13.461        6.4374       -.14269E-06   -.30241E-03
   5  Prefactor     .10000E-03    7.2637        .98882E-07** at limit **
   6  Prefactor     25.319        16.244       -.18296E-05   -.28353E-03
   7  norm          .41962        .92457        .91948E-06    .19573E-02
   8  Prefactor     .10000E-03    9.9902        .38666E-06** at limit **
   9  Prefactor     .10015E-03    8.9177       -.73336E-07** at limit **
  10  Prefactor     11.869        19.873        .52515E-06   -.15300E-04
  11  Prefactor     .10000E-03    43.411        .39967E-06** at limit **
  12  norm          9.1488        3.8873        .26565E-08    .27017E-03
  13  Prefactor     .10000E-03    88.713        .14207E-05** at limit **
  14  Prefactor     7.1783        12.135        .88289E-06   -.47122E-04
  15  Prefactor     1.2644        216.39       -.88017E-05   -.44051E-05
  16  Prefactor     .10014E-03    759.90       -.38603E-04** at limit **
  17  norm          6.4498        1.3386       -.32218E-06    .78608E-03
  18  norm          9.4006        8.6518        .33349E-05   -.59907E-03
  19  Prefactor     12.739        22.275        .10539E-06    .98918E-05
  20  Prefactor     .10000E-03    9.7077        .56226E-07** at limit **
  21  Normalizat    1.1827        .18642       -.86123E-06    .32054E-04
  22  Prefactor     .79572        .17848       -.25435E-05    .11478E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  norm       = 0.244347
  Prefactor  = 0.000100001
  norm       = 13.4614
  Prefactor  = 0.0001
  Prefactor  = 25.3187
  norm       = 0.419615
  Prefactor  = 0.0001
  Prefactor  = 0.000100149
  Prefactor  = 11.8688
  Prefactor  = 0.0001
  norm       = 9.14882
  Prefactor  = 0.000100003
  Prefactor  = 7.17828
  Prefactor  = 1.26436
  Prefactor  = 0.000100137
  norm       = 6.44982
  norm       = 9.4006
  Prefactor  = 12.7386
  Prefactor  = 0.0001
  Normalizat = 1.18275
  Prefactor  = 0.795723
 **********
 **   18 **HESSE 
 **********

 FCN=   6529.996     FROM HESSE     STATUS=OK           350 CALLS     2723 TOTAL
                     EDM=   .69E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    28.758        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          .24435        2.6170        .24947E-03   -1.5609    
   3  Prefactor     .10000E-03    40.792        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  norm          13.461        6.3930        .10919E-03   -1.4974    
   5  Prefactor     .10000E-03    7.2717        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     25.319        14.831        .79680E-04   -1.4701    
   7  norm          .41962        .80155        .81181E-03   -1.5578    
   8  Prefactor     .10000E-03    10.143        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10015E-03    48.015        .40133E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     11.869        19.870        .11629E-03   -1.5019    
  11  Prefactor     .10000E-03    43.523        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          9.1488        3.8621        .47928E-03   -1.5103    
  13  Prefactor     .10000E-03    89.276        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     7.1783        12.106        .14971E-03   -1.5172    
  15  Prefactor     1.2644        221.60        .37663E-02   -1.5483    
  16  Prefactor     .10014E-03    776.98        .40243E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          6.4498        1.3564        .32208E-04   -1.5200    
  18  norm          9.4006        8.6708        .65356E-03   -1.5095    
  19  Prefactor     12.739        22.272        .11230E-03   -1.4994    
  20  Prefactor     .10000E-03    9.7092        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Normalizat    1.1827        .22793        .25010E-03   -.87138    
  22  Prefactor     .79572        .21616        .29302E-03   -.99886    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 6.92949e-09
Minuit parameter uncertainties:
  1  9.08924e-05
  2  1.59909
  3  0.000298237
  4  6.3933
  5  1.3267e-05
  6  14.8329
  7  0.801575
  8  1.96356e-05
  9  0.00536144
  10  19.8807
  11  9.32437e-05
  12  3.8622
  13  0.000995281
  14  12.1098
  15  33.603
  16  0.0208755
  17  1.35641
  18  8.67198
  19  22.2868
  20  1.3252e-05
  21  0.228119
  22  0.216386
Done.

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

Extracting fit parameters...

4FGL J2331.0-2147
   Spectrum: LogParabola
418         norm:  9.149e+00  3.862e+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:  7.957e-01  2.164e-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.183e+00  2.281e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 15.34
Ra Dec: 352.763 -21.795
Photon Index (Fixed Index): 2.43 +/- 0.00
Photon Flux (Fixed Index): 9.81e-08 +/- 4.14e-08
Energy Flux (Fixed Index): 3.26e-05 +/- 1.38e-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) = 6529.96113589
delta logL = 0.0344610342745

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6529.96020906
delta logL = 0.0353878720862

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    8.3634       1.0000         .10000E-03   10000.    
     2 'alpha     '    2.5499       1.0000          .0000       5.0000    
     3 'Normalizat'    1.1725       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .80247       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=   6529.960     FROM MIGRAD    STATUS=CONVERGED     55 CALLS      235 TOTAL
                     EDM=   .71E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          8.3680        56.473        .34656E-02    .13650E-03
   2  alpha         2.5496        3.7724        .22381        .69234E-04
   3  Normalizat    1.1726        .12099        .56756E-01    .46345E-04
   4  Prefactor     .80235        .90146E-01    .65984E-01    .20813E-05
                               ERR DEF=  .500    
Final values: 
  norm       = 8.36795
  alpha      = 2.54962
  Normalizat = 1.17263
  Prefactor  = 0.802348
 **********
 **   18 **HESSE 
 **********

 FCN=   6529.960     FROM HESSE     STATUS=OK            33 CALLS      268 TOTAL
                     EDM=   .19E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          8.3680        4.7540        .90001E-04   -1.5129    
   2  alpha         2.5496        .45732        .90729E-02    .19851E-01
   3  Normalizat    1.1726        .22012        .25098E-03   -.87453    
   4  Prefactor     .80235        .21377        .29190E-03   -.99642    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.9358e-11
Minuit parameter uncertainties:
  1  4.75419
  2  0.459916
  3  0.220291
  4  0.213988
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/7597': 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) = 6529.96020842
delta logL = 0.0353885081549

Extracting fit parameters...

4FGL J2331.0-2147
   Spectrum: LogParabola
418         norm:  8.368e+00  4.754e+00  1.000e-04  1.000e+04 ( 1.000e-12)
419        alpha:  2.550e+00  4.599e-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:  8.023e-01  2.140e-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.173e+00  2.203e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 15.30
Ra Dec: 352.763 -21.795
Photon Index (Free Index): 2.55 +/- 0.46
Photon Flux (Free Index): 1.06e-07 +/- 5.13e-08
Energy Flux (Free Index): 3.17e-05 +/- 1.33e-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/7597/cmap_HighResolution_519264001_519523201_4FGL_J2331.0-2147_daily_bin1080.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='9.81e-08', energy_flux2='3.17e-05', photon_flux_error='4.14e-08', dlogl='3.54e-02', energy_flux='3.26e-05', photon_flux2='1.06e-07', job_status='DONE', time_completed='2021-09-29 23:06:01.043985', photon_index_error2='0.46', photon_index2='2.55', ts='15.34', fit_tolerance='1e-08', GAL='0.80', photon_index_error='0.00', energy_flux_error2='1.33e-05', EG='1.18', time_epoch_completed='1632981961.04', return_code='0', job_id='7597', GAL2='0.80', EG2='1.17', return_code2='0', energy_flux_error='1.38e-05', photon_flux_error2='5.13e-08', ts2='15.30', photon_index='2.43' WHERE bin_id='1080' AND source_name='4FGL J2331.0-2147' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep 29 23:06:01 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0032>
Subject: Job 7597: <4FGL_J2331.0-2147_daily_bin1080> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2331.0-2147_daily_bin1080 352.763 -21.7953 519264001 519523201 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 :                                   569.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             354.50 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   613 sec.
    Turnaround time :                            615 sec.

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

