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


Performing analysis on: 4FGL_J2331.0-2147_daily_bin1524
RA = 352.763, Dec = -21.7953
tmin = 634348801, tmax = 634608001
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='9198', job_status='RUN', time_executed='2021-09-29 23:01:42.066326', time_epoch_executed='1632981702.07' WHERE source_name='4FGL J2331.0-2147' and cadence='daily' and bin_id='1524'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/9198

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/9198/ft1_4FGL_J2331.0-2147_daily_bin1524.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/9198/ft2_4FGL_J2331.0-2147_daily_bin1524.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/9198/ft1_4FGL_J2331.0-2147_daily_bin1524.fits outfile=/scratch/kocevski/9198/ft1_filteredMKT_4FGL_J2331.0-2147_daily_bin1524.fits ra=352.763 dec=-21.7953 rad=12.0 tmin=634348801.0 tmax=634608001.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.76
user 3.49
sys 0.21

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/9198/ft1_filtered_4FGL_J2331.0-2147_daily_bin1524.fits" evtable="EVENTS" scfile=/scratch/kocevski/9198/ft2_4FGL_J2331.0-2147_daily_bin1524.fits sctable="SC_DATA" outfile=/scratch/kocevski/9198/ltcube_634348801_634608001_4FGL_J2331.0-2147_daily_bin1524.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/9198/ft2_4FGL_J2331.0-2147_daily_bin1524.fits
.....................!
real 12.10
user 11.71
sys 0.34

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/9198/ft1_filtered_4FGL_J2331.0-2147_daily_bin1524.fits evtable="EVENTS" scfile=/scratch/kocevski/9198/ft2_4FGL_J2331.0-2147_daily_bin1524.fits sctable="SC_DATA" expcube=/scratch/kocevski/9198/ltcube_634348801_634608001_4FGL_J2331.0-2147_daily_bin1524.fits outfile=/scratch/kocevski/9198/expmap_634348801_634608001_4FGL_J2331.0-2147_daily_bin1524.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/9198/ltcube_634348801_634608001_4FGL_J2331.0-2147_daily_bin1524.fits
.....................!
real 191.21
user 186.25
sys 4.63

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/9198/ft1_filtered_4FGL_J2331.0-2147_daily_bin1524.fits scfile=/scratch/kocevski/9198/ft2_4FGL_J2331.0-2147_daily_bin1524.fits outfile=/scratch/kocevski/9198/cmap_634348801_634608001_4FGL_J2331.0-2147_daily_bin1524.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.36
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/9198/ft1_filtered_4FGL_J2331.0-2147_daily_bin1524.fits scfile=/scratch/kocevski/9198/ft2_4FGL_J2331.0-2147_daily_bin1524.fits outfile=/scratch/kocevski/9198/cmap_HighResolution_634348801_634608001_4FGL_J2331.0-2147_daily_bin1524.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.15

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/9198/ft1_filtered_4FGL_J2331.0-2147_daily_bin1524.fits evtable="EVENTS" scfile=/scratch/kocevski/9198/ft2_4FGL_J2331.0-2147_daily_bin1524.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/9198/Model_4FGL_J2331.0-2147_daily_bin1524.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/9198/ft1_filtered_4FGL_J2331.0-2147_daily_bin1524.fits.....................!
real 34.77
user 33.52
sys 1.18

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    12.039       1.0000         .10000E-03   10000.    
     2 'norm      '    3.8021       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     4 'norm      '    .10078E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    4.7320       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10064E-03   1.0000         .10000E-03   10000.    
     7 'norm      '    2.7507       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .16968E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    .10382E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10008E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    17.020       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10020E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    .10928E-03   1.0000         .10000E-03   10000.    
    18 'norm      '    11.177       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    21 'Normalizat'    1.0421       1.0000         .10000E-01   10.000    
    22 'Prefactor '    .86660       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=   3721.646     FROM MIGRAD    STATUS=CONVERGED    512 CALLS     2100 TOTAL
                     EDM=   .71E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .3%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          12.039        19.607        .15316E-06   -.71718E-05
   2  norm          3.8007        3.4974       -.65625E-07   -.10170E-03
   3  Prefactor     .10000E-03    37.717        .16911E-04** at limit **
   4  norm          .10000E-03    7.1051        .59109E-06** at limit **
   5  Prefactor     4.7272        36.988        .26794E-05    .18211E-03
   6  Prefactor     .10000E-03    29.539       -.17347E-04** at limit **
   7  norm          2.7508        1.3275        .20084E-07    .29747E-02
   8  Prefactor     .10000E-03    5.2109        .11063E-06** at limit **
   9  Prefactor     .10000E-03    12.987        .25712E-06** at limit **
  10  Prefactor     .10000E-03    32.699        .20043E-04** at limit **
  11  Prefactor     .10000E-03    279.36       -.40584E-04** at limit **
  12  norm          .10000E-03    2.1033        .55959E-06** at limit **
  13  Prefactor     .10000E-03    43.802       -.20467E-04** at limit **
  14  Prefactor     .10000E-03    9.7975       -.17140E-05** at limit **
  15  Prefactor     17.029        25.256       -.42488E-05   -.54438E-04
  16  Prefactor     .10000E-03    70.353        .46816E-04** at limit **
  17  norm          .10000E-03    .44095        .90670E-07** at limit **
  18  norm          11.173        6.1562       -.37973E-06   -.14336E-02
  19  Prefactor     .10000E-03    55.265       -.39759E-04** at limit **
  20  Prefactor     .10000E-03    39.807        .44835E-05** at limit **
  21  Normalizat    1.0422        .20662        .76370E-06    .81207E-04
  22  Prefactor     .86649        .20531       -.20986E-06    .62629E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 12.039
  norm       = 3.80073
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 4.72721
  Prefactor  = 0.0001
  norm       = 2.75083
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.000100001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 17.0288
  Prefactor  = 0.0001
  norm       = 0.000100005
  norm       = 11.1729
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Normalizat = 1.04224
  Prefactor  = 0.866487
 **********
 **   18 **HESSE 
 **********

 FCN=   3721.646     FROM HESSE     STATUS=OK           344 CALLS     2444 TOTAL
                     EDM=   .17E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          12.039        19.604        .11545E-03   -1.5014    
   2  norm          3.8007        3.4945        .10667E-03   -1.5318    
   3  Prefactor     .10000E-03    37.713        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  norm          .10000E-03    7.1434        .15740E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     4.7272        38.363        .18497E-03   -1.5273    
   6  Prefactor     .10000E-03    29.811        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          2.7508        1.3625        .40209E-04   -1.5376    
   8  Prefactor     .10000E-03    5.2177        .13601E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    13.053        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    32.777        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    282.20        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          .10000E-03    8.2337        .16937E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    43.833        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    9.8158        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     17.029        25.101        .97081E-04   -1.4882    
  16  Prefactor     .10000E-03    70.235        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          .10000E-03    1.0093        .11911E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          11.173        6.5301        .46571E-03   -1.5039    
  19  Prefactor     .10000E-03    55.222        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    39.846        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Normalizat    1.0422        .23831        .22760E-03   -.91628    
  22  Prefactor     .86649        .23694        .24824E-03   -.97322    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.71435e-09
Minuit parameter uncertainties:
  1  19.6148
  2  3.49467
  3  2.62129e-06
  4  2.03884e-05
  5  26.9566
  6  1.1787e-05
  7  1.36255
  8  9.90751e-07
  9  1.06832e-05
  10  4.82361e-05
  11  0.000691236
  12  0.000206751
  13  2.16339e-05
  14  3.18934e-06
  15  25.1166
  16  9.65566e-06
  17  0.000136448
  18  6.53051
  19  5.07065e-05
  20  7.32619e-06
  21  0.238558
  22  0.237224
Done.

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

Extracting fit parameters...

4FGL J2331.0-2147
   Spectrum: LogParabola
418         norm:  1.000e-04  2.068e-04  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:  8.665e-01  2.372e-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.042e+00  2.386e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/9198/likelihoodResults_634348801_634608001_4FGL_J2331.0-2147_daily_bin1524.txt

Performing a free index iterative likelihood fit...

Freezing all point sources, except source of interest...

Done.

Freeing candidate source...
Done.

Fit tolerance = 1

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 3721.64697234
delta logL = -0.000580028353397

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 3721.64639389
delta logL = -1.57294107339e-06

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .16065E-03   1.0000         .10000E-03   10000.    
     2 'alpha     '    2.5105       1.0000          .0000       5.0000    
     3 'Normalizat'    1.0425       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .86626       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=   3721.646     FROM MIGRAD    STATUS=CONVERGED     67 CALLS      232 TOTAL
                     EDM=   .19E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10172E-03    44.825        .53486E-01** at limit **
   2  alpha         2.6365        3.2983        .41152       -.65736E-04
   3  Normalizat    1.0422        .30794E-01    .41088E-01   -.25230E-03
   4  Prefactor     .86649        .30713E-01    .44574E-01   -.87149E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 0.000101718
  alpha      = 2.63649
  Normalizat = 1.04224
  Prefactor  = 0.86649
 **********
 **   18 **HESSE 
 **********

 FCN=   3721.646     FROM HESSE     STATUS=OK            33 CALLS      265 TOTAL
                     EDM=   .64E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10172E-03    41.371        .14331E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  alpha         2.6365        3.6279        .16461        .54625E-01
   3  Normalizat    1.0422        .23272        .22760E-03   -.91629    
   4  Prefactor     .86649        .23465        .24824E-03   -.97322    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 6.44052e-08
Minuit parameter uncertainties:
  1  0.016874
  2  2.66195
  3  0.232948
  4  0.234927
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/9198': 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) = 3721.64638761
delta logL = 4.70498389404e-06

Extracting fit parameters...

4FGL J2331.0-2147
   Spectrum: LogParabola
418         norm:  1.017e-04  1.687e-02  1.000e-04  1.000e+04 ( 1.000e-12)
419        alpha:  2.636e+00  2.662e+00  0.000e+00  5.000e+00 ( 1.000e+00)
420         beta:  1.305e-01  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
421           Eb:  9.116e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
534    Prefactor:  8.665e-01  2.349e-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.042e+00  2.329e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
Ra Dec: 352.763 -21.795

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/9198/cmap_HighResolution_634348801_634608001_4FGL_J2331.0-2147_daily_bin1524.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='2.82e-05', job_status='DONE', photon_flux_upper_limit='8.49e-08', time_completed='2021-09-29 23:09:43.889653', job_id='9198', GAL2='0.87', fit_tolerance='1e-08', EG2='1.04', EG='1.04', time_epoch_completed='1632982183.89', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.87', dlogl='4.70e-06', ts2='-0.00', photon_index_error='0.00', photon_index='2.43' WHERE bin_id='1524' AND source_name='4FGL J2331.0-2147' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep 29 23:09:43 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0224>
Subject: Job 9198: <4FGL_J2331.0-2147_daily_bin1524> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2331.0-2147_daily_bin1524 352.763 -21.7953 634348801 634608001 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 :                                   477.17 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             321.00 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   557 sec.
    Turnaround time :                            557 sec.

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

