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


Performing analysis on: 4FGL_J2331.0-2147_daily_bin1381
RA = 352.763, Dec = -21.7953
tmin = 597283201, tmax = 597542401
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='8093', job_status='RUN', time_executed='2021-09-29 22:57:07.619614', time_epoch_executed='1632981427.62' WHERE source_name='4FGL J2331.0-2147' and cadence='daily' and bin_id='1381'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/8093

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/8093/ft1_4FGL_J2331.0-2147_daily_bin1381.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/8093/ft2_4FGL_J2331.0-2147_daily_bin1381.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/8093/ft1_4FGL_J2331.0-2147_daily_bin1381.fits outfile=/scratch/kocevski/8093/ft1_filteredMKT_4FGL_J2331.0-2147_daily_bin1381.fits ra=352.763 dec=-21.7953 rad=12.0 tmin=597283201.0 tmax=597542401.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.57
user 3.37
sys 0.19

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/8093/ft2_4FGL_J2331.0-2147_daily_bin1381.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/8093/ft1_filteredMKT_4FGL_J2331.0-2147_daily_bin1381.fits evtable="EVENTS" outfile="/scratch/kocevski/8093/ft1_filtered_4FGL_J2331.0-2147_daily_bin1381.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/8093/ft1_filtered_4FGL_J2331.0-2147_daily_bin1381.fits" evtable="EVENTS" scfile=/scratch/kocevski/8093/ft2_4FGL_J2331.0-2147_daily_bin1381.fits sctable="SC_DATA" outfile=/scratch/kocevski/8093/ltcube_597283201_597542401_4FGL_J2331.0-2147_daily_bin1381.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/8093/ft2_4FGL_J2331.0-2147_daily_bin1381.fits
.....................!
real 11.58
user 11.22
sys 0.33

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/8093/ft1_filtered_4FGL_J2331.0-2147_daily_bin1381.fits evtable="EVENTS" scfile=/scratch/kocevski/8093/ft2_4FGL_J2331.0-2147_daily_bin1381.fits sctable="SC_DATA" expcube=/scratch/kocevski/8093/ltcube_597283201_597542401_4FGL_J2331.0-2147_daily_bin1381.fits outfile=/scratch/kocevski/8093/expmap_597283201_597542401_4FGL_J2331.0-2147_daily_bin1381.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/8093/ltcube_597283201_597542401_4FGL_J2331.0-2147_daily_bin1381.fits
.....................!
real 189.96
user 184.49
sys 5.16

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/8093/ft1_filtered_4FGL_J2331.0-2147_daily_bin1381.fits scfile=/scratch/kocevski/8093/ft2_4FGL_J2331.0-2147_daily_bin1381.fits outfile=/scratch/kocevski/8093/cmap_597283201_597542401_4FGL_J2331.0-2147_daily_bin1381.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/8093/ft1_filtered_4FGL_J2331.0-2147_daily_bin1381.fits scfile=/scratch/kocevski/8093/ft2_4FGL_J2331.0-2147_daily_bin1381.fits outfile=/scratch/kocevski/8093/cmap_HighResolution_597283201_597542401_4FGL_J2331.0-2147_daily_bin1381.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.53
user 0.37
sys 0.16

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10003E-03   1.0000         .10000E-03   10000.    
     2 'norm      '    1.9312       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10041E-03   1.0000         .10000E-03   10000.    
     4 'norm      '    2.5771       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    6.2102       1.0000         .10000E-03   10000.    
     7 'norm      '    .35150       1.0000         .10000E-03   10000.    
     8 'Prefactor '    2.6818       1.0000         .10000E-03   10000.    
     9 'Prefactor '    4.7712       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10026E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    8.8774       1.0000         .10000E-03   10000.    
    13 'Prefactor '    76.574       1.0000         .10000E-03   10000.    
    14 'Prefactor '    23.610       1.0000         .10000E-03   10000.    
    15 'Prefactor '    25.513       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    .64312       1.0000         .10000E-03   10000.    
    18 'norm      '    1.6771       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10165E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    53.541       1.0000         .10000E-03   10000.    
    21 'Normalizat'    .99110       1.0000         .10000E-01   10.000    
    22 'Prefactor '    .60123       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=   4909.268     FROM MIGRAD    STATUS=CONVERGED    474 CALLS     2402 TOTAL
                     EDM=   .13E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .4%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    14.236       -.15859E-05** at limit **
   2  norm          1.9276        2.2203       -.15476E-06    .10570E-02
   3  Prefactor     .10000E-03    113.28       -.43630E-04** at limit **
   4  norm          2.5770        2.5872        .16679E-06    .27643E-03
   5  Prefactor     .10000E-03    5.6612        .62059E-07** at limit **
   6  Prefactor     6.1962        12.331       -.28562E-05   -.65542E-04
   7  norm          .35263        .86435        .30871E-06   -.99152E-03
   8  Prefactor     2.6823        10.297       -.97469E-06   -.18404E-03
   9  Prefactor     4.7673        9.1748       -.32104E-06   -.12832E-03
  10  Prefactor     .10000E-03    11.816        .10497E-05** at limit **
  11  Prefactor     .10000E-03    22.212        .70600E-05** at limit **
  12  norm          8.8771        4.0875        .12455E-05    .16798E-03
  13  Prefactor     76.495        78.731       -.75827E-04    .15791E-04
  14  Prefactor     23.619        22.329        .24077E-04    .83950E-04
  15  Prefactor     25.505        31.035       -.52042E-05    .58893E-04
  16  Prefactor     .10000E-03    37.508       -.49448E-04** at limit **
  17  norm          .64305        .42297        .13690E-06    .14082E-02
  18  norm          1.6766        3.1756        .14508E-06   -.22692E-03
  19  Prefactor     .10000E-03    48.697        .66645E-04** at limit **
  20  Prefactor     53.542        49.056        .26817E-06   -.10235E-03
  21  Normalizat    .99146        .17121        .76278E-05   -.40078E-03
  22  Prefactor     .60089        .16111       -.27594E-05    .28236E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  norm       = 1.92764
  Prefactor  = 0.000100001
  norm       = 2.57701
  Prefactor  = 0.0001
  Prefactor  = 6.19624
  norm       = 0.352634
  Prefactor  = 2.68233
  Prefactor  = 4.76727
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 8.87711
  Prefactor  = 76.4953
  Prefactor  = 23.6192
  Prefactor  = 25.5053
  Prefactor  = 0.0001
  norm       = 0.643049
  norm       = 1.67664
  Prefactor  = 0.000100001
  Prefactor  = 53.5423
  Normalizat = 0.99146
  Prefactor  = 0.600894
 **********
 **   18 **HESSE 
 **********

 FCN=   4909.268     FROM HESSE     STATUS=OK           344 CALLS     2746 TOTAL
                     EDM=   .31E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    14.251        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          1.9276        2.1906        .10808E-03   -1.5430    
   3  Prefactor     .10000E-03    113.66        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  norm          2.5770        2.5883        .10725E-03   -1.5387    
   5  Prefactor     .10000E-03    5.6646        .16266E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     6.1962        11.729        .16109E-03   -1.5210    
   7  norm          .35263        .77193        .62106E-03   -1.5589    
   8  Prefactor     2.6823        10.287        .24882E-03   -1.5380    
   9  Prefactor     4.7673        9.0277        .18420E-03   -1.5271    
  10  Prefactor     .10000E-03    11.826        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    22.259        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          8.8771        4.0845        .87978E-04   -1.5112    
  13  Prefactor     76.495        78.874        .45888E-04   -1.3956    
  14  Prefactor     23.619        22.341        .82437E-04   -1.4736    
  15  Prefactor     25.505        31.134        .79308E-04   -1.4697    
  16  Prefactor     .10000E-03    37.543        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          .64305        .43475        .32324E-04   -1.5548    
  18  norm          1.6766        3.2482        .14955E-03   -1.5449    
  19  Prefactor     .10000E-03    48.743        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     53.542        49.203        .54815E-04   -1.4243    
  21  Normalizat    .99146        .20137        .20902E-03   -.93317    
  22  Prefactor     .60089        .18784        .25743E-03   -1.0755    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.12993e-09
Minuit parameter uncertainties:
  1  2.42352e-05
  2  2.19066
  3  0.000678162
  4  2.5884
  5  2.169e-05
  6  11.7331
  7  0.77195
  8  10.2941
  9  9.03023
  10  0.000125311
  11  6.43863e-05
  12  4.08464
  13  78.9822
  14  22.3484
  15  31.1534
  16  2.83365e-05
  17  0.434751
  18  3.24851
  19  0.000391959
  20  49.2399
  21  0.201521
  22  0.188037
Done.

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

Extracting fit parameters...

4FGL J2331.0-2147
   Spectrum: LogParabola
418         norm:  8.877e+00  4.085e+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.009e-01  1.880e-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:  9.915e-01  2.015e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 11.57
Ra Dec: 352.763 -21.795
Photon Index (Fixed Index): 2.43 +/- 0.00
Photon Flux (Fixed Index): 9.52e-08 +/- 4.38e-08
Energy Flux (Fixed Index): 3.16e-05 +/- 1.46e-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) = 4909.26258601
delta logL = 0.00496828902942

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 4909.25969986
delta logL = 0.00785444062694

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    8.5606       1.0000         .10000E-03   10000.    
     2 'alpha     '    2.4907       1.0000          .0000       5.0000    
     3 'Normalizat'    .98666       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .60363       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.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   4909.260     FROM MIGRAD    STATUS=CONVERGED     83 CALLS      230 TOTAL
                     EDM=   .22E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          8.5608        4.7114        .85282E-04   -.77331E-03
   2  alpha         2.4906        .47088        .88400E-02   -.92194E-04
   3  Normalizat    .98667        .19033        .20942E-03    .60366E-04
   4  Prefactor     .60362        .18325        .25687E-03    .90861E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 8.56078
  alpha      = 2.49062
  Normalizat = 0.986673
  Prefactor  = 0.603625
 **********
 **   18 **HESSE 
 **********

 FCN=   4909.260     FROM HESSE     STATUS=OK            25 CALLS      255 TOTAL
                     EDM=   .25E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          8.5608        4.5841        .34113E-05   -1.5123    
   2  alpha         2.4906        .45779        .35360E-03   -.37527E-02
   3  Normalizat    .98667        .19029        .83769E-05   -.93478    
   4  Prefactor     .60362        .18330        .10275E-04   -1.0743    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.49737e-10
Minuit parameter uncertainties:
  1  4.58428
  2  0.460389
  3  0.190423
  4  0.183479
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/8093': 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) = 4909.25969985
delta logL = 0.00785445725796

Extracting fit parameters...

4FGL J2331.0-2147
   Spectrum: LogParabola
418         norm:  8.561e+00  4.584e+00  1.000e-04  1.000e+04 ( 1.000e-12)
419        alpha:  2.491e+00  4.604e-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.036e-01  1.835e-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:  9.867e-01  1.904e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 11.60
Ra Dec: 352.763 -21.795
Photon Index (Free Index): 2.49 +/- 0.46
Photon Flux (Free Index): 9.96e-08 +/- 5.57e-08
Energy Flux (Free Index): 3.14e-05 +/- 1.39e-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/8093/cmap_HighResolution_597283201_597542401_4FGL_J2331.0-2147_daily_bin1381.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='9.52e-08', energy_flux2='3.14e-05', photon_flux_error='4.38e-08', dlogl='7.85e-03', energy_flux='3.16e-05', photon_flux2='9.96e-08', job_status='DONE', time_completed='2021-09-29 23:05:33.090091', photon_index_error2='0.46', photon_index2='2.49', ts='11.57', fit_tolerance='1e-08', GAL='0.60', photon_index_error='0.00', energy_flux_error2='1.39e-05', EG='0.99', time_epoch_completed='1632981933.09', return_code='0', job_id='8093', GAL2='0.60', EG2='0.99', return_code2='0', energy_flux_error='1.46e-05', photon_flux_error2='5.57e-08', ts2='11.60', photon_index='2.43' WHERE bin_id='1381' AND source_name='4FGL J2331.0-2147' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep 29 23:05:33 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0088>
Subject: Job 8093: <4FGL_J2331.0-2147_daily_bin1381> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2331.0-2147_daily_bin1381 352.763 -21.7953 597283201 597542401 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 :                                   500.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             383.28 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   536 sec.
    Turnaround time :                            538 sec.

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

