/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 122 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 = 7558
number of fields = 27
No RA_SUN column yet. Adding RA_SUN/DEC_SUN columns.
Done.


Performing analysis on: 4FGL_J2331.3-1558_daily_bin320
RA = 352.839, Dec = -15.9777
tmin = 322272001, tmax = 322531201
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='10782', job_status='RUN', time_executed='2021-09-29 23:07:51.654668', time_epoch_executed='1632982071.65' WHERE source_name='4FGL J2331.3-1558' and cadence='daily' and bin_id='320'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/10782

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/10782/ft1_4FGL_J2331.3-1558_daily_bin320.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/10782/ft2_4FGL_J2331.3-1558_daily_bin320.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/10782/ft1_4FGL_J2331.3-1558_daily_bin320.fits outfile=/scratch/kocevski/10782/ft1_filteredMKT_4FGL_J2331.3-1558_daily_bin320.fits ra=352.839 dec=-15.9777 rad=12.0 tmin=322272001.0 tmax=322531201.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.45
user 3.24
sys 0.19

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/10782/ft2_4FGL_J2331.3-1558_daily_bin320.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/10782/ft2_4FGL_J2331.3-1558_daily_bin320.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/10782/ft1_filteredMKT_4FGL_J2331.3-1558_daily_bin320.fits evtable="EVENTS" outfile="/scratch/kocevski/10782/ft1_filtered_4FGL_J2331.3-1558_daily_bin320.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.34
sys 0.13

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/10782/ft1_filtered_4FGL_J2331.3-1558_daily_bin320.fits" evtable="EVENTS" scfile=/scratch/kocevski/10782/ft2_4FGL_J2331.3-1558_daily_bin320.fits sctable="SC_DATA" outfile=/scratch/kocevski/10782/ltcube_322272001_322531201_4FGL_J2331.3-1558_daily_bin320.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/10782/ft2_4FGL_J2331.3-1558_daily_bin320.fits
.....................!
real 12.00
user 11.61
sys 0.33

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/10782/ft1_filtered_4FGL_J2331.3-1558_daily_bin320.fits evtable="EVENTS" scfile=/scratch/kocevski/10782/ft2_4FGL_J2331.3-1558_daily_bin320.fits sctable="SC_DATA" expcube=/scratch/kocevski/10782/ltcube_322272001_322531201_4FGL_J2331.3-1558_daily_bin320.fits outfile=/scratch/kocevski/10782/expmap_322272001_322531201_4FGL_J2331.3-1558_daily_bin320.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/10782/ltcube_322272001_322531201_4FGL_J2331.3-1558_daily_bin320.fits
.....................!
real 190.15
user 185.17
sys 4.58

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 164 point sources and 0 extended sources

Setting source of interest to:
4FGL J2331.3-1558 @ 352.839 -15.9777

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/10782/ft1_filtered_4FGL_J2331.3-1558_daily_bin320.fits scfile=/scratch/kocevski/10782/ft2_4FGL_J2331.3-1558_daily_bin320.fits outfile=/scratch/kocevski/10782/cmap_322272001_322531201_4FGL_J2331.3-1558_daily_bin320.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.839 yref=-15.9777 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.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/10782/ft1_filtered_4FGL_J2331.3-1558_daily_bin320.fits scfile=/scratch/kocevski/10782/ft2_4FGL_J2331.3-1558_daily_bin320.fits outfile=/scratch/kocevski/10782/cmap_HighResolution_322272001_322531201_4FGL_J2331.3-1558_daily_bin320.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.839 yref=-15.9777 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.14

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/10782/ft1_filtered_4FGL_J2331.3-1558_daily_bin320.fits evtable="EVENTS" scfile=/scratch/kocevski/10782/ft2_4FGL_J2331.3-1558_daily_bin320.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/10782/Model_4FGL_J2331.3-1558_daily_bin320.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/10782/ft1_filtered_4FGL_J2331.3-1558_daily_bin320.fits.....................!
real 49.42
user 47.98
sys 1.24

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/10782/ft1_filtered_4FGL_J2331.3-1558_daily_bin320.fits', '/scratch/kocevski/10782/ft2_4FGL_J2331.3-1558_daily_bin320.fits', expMap='/scratch/kocevski/10782/expmap_322272001_322531201_4FGL_J2331.3-1558_daily_bin320.fits', expCube='/scratch/kocevski/10782/ltcube_322272001_322531201_4FGL_J2331.3-1558_daily_bin320.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/10782/Model_4FGL_J2331.3-1558_daily_bin320.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J2331.3-1558'

4FGL J2331.3-1558
   Spectrum: PowerLaw
425    Prefactor:  2.463e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-13)
426        Index:  2.542e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
427        Scale:  1.004e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/10782/ft1_filtered_4FGL_J2331.3-1558_daily_bin320.fits
Spacecraft file(s): /scratch/kocevski/10782/ft2_4FGL_J2331.3-1558_daily_bin320.fits
Exposure map: /scratch/kocevski/10782/expmap_322272001_322531201_4FGL_J2331.3-1558_daily_bin320.fits
Exposure cube: /scratch/kocevski/10782/ltcube_322272001_322531201_4FGL_J2331.3-1558_daily_bin320.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/10782/Model_4FGL_J2331.3-1558_daily_bin320.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) = 5639.34186713

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    9.5949       1.0000         .10000E-03   10000.    
     2 'norm      '    .10040E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10044E-03   1.0000         .10000E-03   10000.    
     4 'norm      '    .10011E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10347E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    3.2573       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .13540E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .11652E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10135E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10116E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    .10054E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    .42993E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10097E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10045E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10040E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    44.284       1.0000         .10000E-03   10000.    
    17 'Prefactor '    91.766       1.0000         .10000E-03   10000.    
    18 'norm      '    1.7938       1.0000         .10000E-03   10000.    
    19 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10089E-03   1.0000         .10000E-03   10000.    
    21 'Normalizat'    1.4962       1.0000         .10000E-01   10.000    
    22 'Prefactor '    .48944       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5340E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   5639.334     FROM MIGRAD    STATUS=CONVERGED    473 CALLS     2372 TOTAL
                     EDM=   .79E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .4%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     9.6114        9.7136       -.33796E-07   -.47351E-04
   2  norm          .10000E-03    23.361        .36414E-06** at limit **
   3  Prefactor     .10000E-03    3.8502       -.42161E-07** at limit **
   4  norm          .10000E-03    .21923       -.76742E-07** at limit **
   5  Prefactor     .10000E-03    18.125       -.62471E-05** at limit **
   6  Prefactor     3.2557        7.0986       -.28930E-06   -.20501E-03
   7  Prefactor     .10047E-03    6.4954       -.19846E-05** at limit **
   8  Prefactor     .10000E-03    37.735        .17020E-04** at limit **
   9  Prefactor     .10000E-03    11.037       -.49958E-06** at limit **
  10  Prefactor     .10000E-03    7.9578       -.39795E-05** at limit **
  11  norm          .10000E-03    2.5957       -.34963E-06** at limit **
  12  norm          .10000E-03    1.1707        .22469E-06** at limit **
  13  Prefactor     .10000E-03    13.389        .49762E-05** at limit **
  14  Prefactor     .10000E-03    6.5824       -.10844E-05** at limit **
  15  Prefactor     .10000E-03    7.3538        .45734E-05** at limit **
  16  Prefactor     44.302        51.574        .21703E-04    .11815E-04
  17  Prefactor     91.732        77.398       -.31905E-04   -.71214E-05
  18  norm          1.7948        .58915       -.21951E-07    .13361E-03
  19  norm          .10000E-03    2.5417       -.22962E-06** at limit **
  20  Prefactor     .10000E-03    3.9534        .14677E-08** at limit **
  21  Normalizat    1.4968        .18088        .59440E-06    .16006E-03
  22  Prefactor     .48924        .16360       -.15214E-05    .16178E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 9.61139
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 3.2557
  Prefactor  = 0.000100474
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 44.302
  Prefactor  = 91.7323
  norm       = 1.79483
  norm       = 0.0001
  Prefactor  = 0.0001
  Normalizat = 1.49678
  Prefactor  = 0.48924
 **********
 **   18 **HESSE 
 **********

 FCN=   5639.334     FROM HESSE     STATUS=OK           338 CALLS     2710 TOTAL
                     EDM=   .10E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     9.6114        9.7025        .12937E-03   -1.5088    
   2  norm          .10000E-03    23.396        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    3.8587        .14390E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  norm          .10000E-03    .22111        .34320E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    18.206        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     3.2557        7.0932        .22440E-03   -1.5347    
   7  Prefactor     .10047E-03    44.821        .36700E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    37.758        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    11.050        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    8.0838        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          .10000E-03    2.6170        .11815E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          .10000E-03    15.261        .15750E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    13.396        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    6.6029        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    7.3638        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     44.302        51.547        .60246E-04   -1.4376    
  17  Prefactor     91.732        77.442        .20975E-03   -1.3789    
  18  norm          1.7948        .58894        .31818E-04   -1.5440    
  19  norm          .10000E-03    2.5801        .11660E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    3.9870        .14572E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Normalizat    1.4968        .21035        .20482E-03   -.77869    
  22  Prefactor     .48924        .18955        .30425E-03   -1.1247    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.03967e-08
Minuit parameter uncertainties:
  1  9.70411
  2  9.27696e-06
  3  5.89649e-06
  4  7.28771e-07
  5  4.03226e-05
  6  7.09499
  7  0.00922512
  8  0.00011972
  9  3.39242e-06
  10  8.3281e-05
  11  2.12115e-05
  12  7.26388e-05
  13  1.6547e-06
  14  8.25461e-07
  15  1.88691e-05
  16  51.5993
  17  77.5274
  18  0.588941
  19  3.55797e-06
  20  6.0847e-06
  21  0.210469
  22  0.189795
Done.

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

Extracting fit parameters...

4FGL J2331.3-1558
   Spectrum: PowerLaw
425    Prefactor:  1.000e-04  8.255e-07  1.000e-04  1.000e+04 ( 1.000e-13)
426        Index:  2.542e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
427        Scale:  1.004e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
531    Prefactor:  4.892e-01  1.898e-01  0.000e+00  1.000e+01 ( 1.000e+00)
532        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
533        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
530   Normalization:  1.497e+00  2.105e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): -0.00
Ra Dec: 352.839 -15.978
Photon Flux Upper Limit: 6.05e-08 ph cm-2 s-1
Energy Flux Upper Limit: 4.72e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/10782/likelihoodResults_322272001_322531201_4FGL_J2331.3-1558_daily_bin320.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) = 5639.33455198
delta logL = -0.000719686866432

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5639.33383229
delta logL = 2.26737029152e-09

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.5373       1.0000          .0000       10.000    
     3 'Normalizat'    1.4968       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .48924       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5340E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   5639.334     FROM MIGRAD    STATUS=CONVERGED     56 CALLS      212 TOTAL
                     EDM=   .43E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    651.71        .90712E-02** at limit **
   2  Index         2.5325        8.5220        .50000        .64500E-05
   3  Normalizat    1.4968        .51227E-01    .46337E-01    .49555E-05
   4  Prefactor     .48924        .46083E-01    .68731E-01    .28135E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Index      = 2.53247
  Normalizat = 1.49679
  Prefactor  = 0.489239
 **********
 **   18 **HESSE 
 **********

 FCN=   5639.334     FROM HESSE     STATUS=OK            33 CALLS      245 TOTAL
                     EDM=   .44E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    6.8628        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.5325        6.2647        .50000       -.51612    
   3  Normalizat    1.4968        .20749        .20482E-03   -.77869    
   4  Prefactor     .48924        .18637        .30425E-03   -1.1247    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.36811e-11
Minuit parameter uncertainties:
  1  1.33346e-06
  2  4.43511
  3  0.207608
  4  0.186604
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/10782': 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) = 5639.33383228
delta logL = 1.44682417158e-08

Extracting fit parameters...

4FGL J2331.3-1558
   Spectrum: PowerLaw
425    Prefactor:  1.000e-04  1.333e-06  1.000e-04  1.000e+04 ( 1.000e-13)
426        Index:  2.532e+00  4.435e+00  0.000e+00  1.000e+01 (-1.000e+00)
427        Scale:  1.004e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
531    Prefactor:  4.892e-01  1.866e-01  0.000e+00  1.000e+01 ( 1.000e+00)
532        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
533        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
530   Normalization:  1.497e+00  2.076e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
Ra Dec: 352.839 -15.978

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/10782/cmap_HighResolution_322272001_322531201_4FGL_J2331.3-1558_daily_bin320.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='4.72e-03', job_status='DONE', photon_flux_upper_limit='6.05e-08', time_completed='2021-09-29 23:17:27.126611', job_id='10782', GAL2='0.49', fit_tolerance='1e-08', EG2='1.50', EG='1.50', time_epoch_completed='1632982647.13', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.49', dlogl='1.45e-08', ts2='-0.00', photon_index_error='0.00', photon_index='2.54' WHERE bin_id='320' AND source_name='4FGL J2331.3-1558' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep 29 23:17:27 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0069>
Subject: Job 10782: <4FGL_J2331.3-1558_daily_bin320> in cluster <slac> Done

Job <4FGL_J2331.3-1558_daily_bin320> was submitted from host <rhel6-64p> by user <kocevski> in cluster <slac> at Wed Sep 29 23:05:38 2021
Job was executed on host(s) <bullet0069>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Sep 29 23:05:41 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Wed Sep 29 23:05:41 2021
Terminated at Wed Sep 29 23:17:27 2021
Results reported at Wed Sep 29 23:17:27 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2331.3-1558_daily_bin320 352.839 -15.9777 322272001 322531201 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J2331.3-1558 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   574.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             313.78 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   706 sec.
    Turnaround time :                            709 sec.

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

