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


Performing analysis on: 4FGL_J2331.0-2147_daily_bin1144
RA = 352.763, Dec = -21.7953
tmin = 535852801, tmax = 536112001
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='7700', job_status='RUN', time_executed='2021-09-29 22:56:15.005366', time_epoch_executed='1632981375.01' WHERE source_name='4FGL J2331.0-2147' and cadence='daily' and bin_id='1144'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/7700

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/7700/ft1_4FGL_J2331.0-2147_daily_bin1144.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/7700/ft2_4FGL_J2331.0-2147_daily_bin1144.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/7700/ft1_4FGL_J2331.0-2147_daily_bin1144.fits outfile=/scratch/kocevski/7700/ft1_filteredMKT_4FGL_J2331.0-2147_daily_bin1144.fits ra=352.763 dec=-21.7953 rad=12.0 tmin=535852801.0 tmax=536112001.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.56
user 3.33
sys 0.22

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/7700/ft1_filtered_4FGL_J2331.0-2147_daily_bin1144.fits" evtable="EVENTS" scfile=/scratch/kocevski/7700/ft2_4FGL_J2331.0-2147_daily_bin1144.fits sctable="SC_DATA" outfile=/scratch/kocevski/7700/ltcube_535852801_536112001_4FGL_J2331.0-2147_daily_bin1144.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/7700/ft2_4FGL_J2331.0-2147_daily_bin1144.fits
.....................!
real 11.90
user 11.54
sys 0.33

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/7700/ft1_filtered_4FGL_J2331.0-2147_daily_bin1144.fits evtable="EVENTS" scfile=/scratch/kocevski/7700/ft2_4FGL_J2331.0-2147_daily_bin1144.fits sctable="SC_DATA" expcube=/scratch/kocevski/7700/ltcube_535852801_536112001_4FGL_J2331.0-2147_daily_bin1144.fits outfile=/scratch/kocevski/7700/expmap_535852801_536112001_4FGL_J2331.0-2147_daily_bin1144.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/7700/ltcube_535852801_536112001_4FGL_J2331.0-2147_daily_bin1144.fits
.....................!
real 191.22
user 185.87
sys 5.04

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/7700/ft1_filtered_4FGL_J2331.0-2147_daily_bin1144.fits scfile=/scratch/kocevski/7700/ft2_4FGL_J2331.0-2147_daily_bin1144.fits outfile=/scratch/kocevski/7700/cmap_535852801_536112001_4FGL_J2331.0-2147_daily_bin1144.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.52
user 0.36
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/7700/ft1_filtered_4FGL_J2331.0-2147_daily_bin1144.fits scfile=/scratch/kocevski/7700/ft2_4FGL_J2331.0-2147_daily_bin1144.fits outfile=/scratch/kocevski/7700/cmap_HighResolution_535852801_536112001_4FGL_J2331.0-2147_daily_bin1144.fits algorithm="CMAP" ebinalg="LOG" emin=30.0 emax=200000.0 ebinfile=NONE tbinalg="LIN" tbinfile=NONE nxpix=500 nypix=500 binsz=0.1 coordsys="CEL" xref=352.763 yref=-21.7953 axisrot=0.0 rafield="RA" decfield="DEC" proj="AIT" hpx_ordering_scheme="RING" hpx_order=3 hpx_ebin=yes hpx_region="" evtable="EVENTS" sctable="SC_DATA" efield="ENERGY" tfield="TIME" chatter=2 clobber=yes debug=no gui=no mode="ql"

WARNING: version mismatch between CFITSIO header (v3.43) and linked library (v3.41).

This is gtbin version HEAD
real 0.54
user 0.38
sys 0.15

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10447E-03   1.0000         .10000E-03   10000.    
     2 'norm      '    .20082E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    10.157       1.0000         .10000E-03   10000.    
     4 'norm      '    3.4631       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10009E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .69214E-03   1.0000         .10000E-03   10000.    
     7 'norm      '    3.6895       1.0000         .10000E-03   10000.    
     8 'Prefactor '    31.572       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10060E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .11065E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    20.318       1.0000         .10000E-03   10000.    
    12 'norm      '    .10193E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10168E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    1.7570       1.0000         .10000E-03   10000.    
    15 'Prefactor '    4.2846       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10089E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    1.0773       1.0000         .10000E-03   10000.    
    18 'norm      '    12.987       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10093E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10825E-03   1.0000         .10000E-03   10000.    
    21 'Normalizat'    1.4613       1.0000         .10000E-01   10.000    
    22 'Prefactor '    .90866       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=   5003.873     FROM MIGRAD    STATUS=CONVERGED    518 CALLS     2432 TOTAL
                     EDM=   .90E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  5.8%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    11.363       -.16321E-06** at limit **
   2  norm          .10000E-03    3.1375        .84420E-06** at limit **
   3  Prefactor     10.330        73.112       -.45784E-05   -.51568E-04
   4  norm          3.4620        3.7169       -.83536E-07   -.99371E-04
   5  Prefactor     .10000E-03    16.173       -.64664E-06** at limit **
   6  Prefactor     .10000E-03    100.12       -.87327E-05** at limit **
   7  norm          3.6910        1.1125       -.36545E-06   -.12927E-02
   8  Prefactor     31.579        23.148        .39455E-06    .26316E-04
   9  Prefactor     .10000E-03    18.807       -.88331E-06** at limit **
  10  Prefactor     .10000E-03    26.725        .50808E-06** at limit **
  11  Prefactor     20.180        72.494        .12468E-04    .88871E-04
  12  norm          .10000E-03    3.4164       -.12503E-07** at limit **
  13  Prefactor     .10000E-03    117.13       -.52669E-06** at limit **
  14  Prefactor     1.7489        82.859       -.11430E-04   -.63791E-04
  15  Prefactor     4.2976        43.748        .58941E-06    .11115E-04
  16  Prefactor     .10000E-03    44.014       -.62191E-06** at limit **
  17  norm          1.0771        .75019        .26937E-06    .86014E-03
  18  norm          12.993        7.5555       -.55442E-06   -.18702E-03
  19  Prefactor     .10000E-03    13.591        .24108E-07** at limit **
  20  Prefactor     .10000E-03    16.663        .82743E-06** at limit **
  21  Normalizat    1.4607        .26829       -.65741E-05    .27587E-03
  22  Prefactor     .90928        .24950        .75609E-05   -.13413E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 10.3299
  norm       = 3.46201
  Prefactor  = 0.0001
  Prefactor  = 0.000100003
  norm       = 3.69103
  Prefactor  = 31.5789
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 20.1804
  norm       = 0.000100001
  Prefactor  = 0.000100002
  Prefactor  = 1.74887
  Prefactor  = 4.29762
  Prefactor  = 0.0001
  norm       = 1.07714
  norm       = 12.9928
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Normalizat = 1.46065
  Prefactor  = 0.909284
 **********
 **   18 **HESSE 
 **********

 FCN=   5003.873     FROM HESSE     STATUS=OK           340 CALLS     2772 TOTAL
                     EDM=   .19E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    11.364        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          .10000E-03    3.2136        .24179E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     10.330        71.781        .12573E-03   -1.5065    
   4  norm          3.4620        3.7205        .13581E-03   -1.5336    
   5  Prefactor     .10000E-03    16.268        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    99.635        .36362E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          3.6910        1.1099        .38349E-04   -1.5324    
   8  Prefactor     31.579        23.157        .71310E-04   -1.4583    
   9  Prefactor     .10000E-03    19.075        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    26.813        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     20.180        73.406        .88857E-04   -1.4809    
  12  norm          .10000E-03    6.6866        .24738E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    117.21        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     1.7489        87.368        .31618E-03   -1.5443    
  15  Prefactor     4.2976        42.692        .19463E-03   -1.5293    
  16  Prefactor     .10000E-03    44.036        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          1.0771        .75950        .44863E-04   -1.5500    
  18  norm          12.993        7.6410        .11115E-03   -1.4987    
  19  Prefactor     .10000E-03    13.592        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    16.678        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Normalizat    1.4607        .28972        .25863E-03   -.78890    
  22  Prefactor     .90928        .26955        .30497E-03   -.95817    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.94272e-09
Minuit parameter uncertainties:
  1  8.85737e-06
  2  2.57026e-05
  3  54.5541
  4  3.72072
  5  7.18007e-05
  6  0.00116526
  7  1.10995
  8  23.1639
  9  0.000118312
  10  0.000129313
  11  73.7369
  12  0.000135845
  13  0.00103507
  14  24.7597
  15  27.1154
  16  9.68981e-05
  17  0.759507
  18  7.64162
  19  4.5359e-07
  20  7.43919e-05
  21  0.290052
  22  0.269943
Done.

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

Extracting fit parameters...

4FGL J2331.0-2147
   Spectrum: LogParabola
418         norm:  1.000e-04  1.358e-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:  9.093e-01  2.699e-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.461e+00  2.901e-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: 1.04e-07 ph cm-2 s-1
Energy Flux Upper Limit: 3.47e-05 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/7700/likelihoodResults_535852801_536112001_4FGL_J2331.0-2147_daily_bin1144.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) = 5003.87399431
delta logL = -0.000712125733116

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5003.873281
delta logL = 1.18936259241e-06

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10234E-03   1.0000         .10000E-03   10000.    
     2 'alpha     '    2.4986       1.0000          .0000       5.0000    
     3 'Normalizat'    1.4607       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .90925       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.
 MIGRAD TERMINATED WITHOUT CONVERGENCE.

 FCN=   5003.873     FROM MIGRAD    STATUS=FAILED        98 CALLS      268 TOTAL
                     EDM=   .38E-07    STRATEGY= 1      ERR MATRIX APPROXIMATE

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10031E-03    13.224        .19014E-02** at limit **
   2  alpha         2.5856        3.6031        .16461       -.62058E-04
   3  Normalizat    1.4606        .27703        .25863E-03    .37642E-03
   4  Prefactor     .90929        .26639        .30497E-03    .27675E-03
                               ERR DEF=  .500    
 START SIMPLEX MINIMIZATION.    CONVERGENCE WHEN EDM .LT.   .20E-04
 SIMPLEX MINIMIZATION HAS CONVERGED.

 FCN=   5003.873     FROM SIMPLEX   STATUS=UNCHANGED    113 CALLS      381 TOTAL
                     EDM=   .11E-04    STRATEGY= 1      ERR MATRIX APPROXIMATE

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10031E-03    13.224        .56357E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  alpha         2.5856        3.6031        .49480E-03    .34254E-01
   3  Normalizat    1.4606        .27703        .38110E-04   -.78890    
   4  Prefactor     .90929        .26639        .62173E-04   -.95817    
                               ERR DEF=  .500    

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   5003.444     FROM MIGRAD    STATUS=CONVERGED    104 CALLS      485 TOTAL
                     EDM=   .19E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .68176E-01    3.9672        .38027E-02    .34526E-02
   2  alpha         5.0000        4.1749        .50000    ** at limit **
   3  Normalizat    1.3826        .11963        .51725E-04    .10567E-03
   4  Prefactor     .95611        .10721        .60995E-04    .95542E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0681761
  alpha      = 5
  Normalizat = 1.38258
  Prefactor  = 0.956106
 **********
 **   18 **HESSE 
 **********

 FCN=   5003.444     FROM HESSE     STATUS=OK            33 CALLS      518 TOTAL
                     EDM=   .27E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .68176E-01    .96759E-01    .21297E-03   -1.5656    
   2  alpha         5.0000        3.5197        .50000        1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Normalizat    1.3826        .29394        .10345E-04   -.81134    
   4  Prefactor     .95611        .27522        .12199E-04   -.94207    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.71652e-11
Minuit parameter uncertainties:
  1  0.0967593
  2  2.0517e-06
  3  0.294301
  4  0.275627
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/7700': 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) = 5003.44447872
delta logL = 0.428803469751

Extracting fit parameters...

4FGL J2331.0-2147
   Spectrum: LogParabola
418         norm:  6.818e-02  9.676e-02  1.000e-04  1.000e+04 ( 1.000e-12)
419        alpha:  5.000e+00  2.052e-06  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:  9.561e-01  2.756e-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.383e+00  2.943e-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/7700/cmap_HighResolution_535852801_536112001_4FGL_J2331.0-2147_daily_bin1144.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='3.47e-05', job_status='DONE', photon_flux_upper_limit='1.04e-07', time_completed='2021-09-29 23:05:40.335343', job_id='7700', GAL2='0.96', fit_tolerance='1e-08', EG2='1.38', EG='1.46', time_epoch_completed='1632981940.34', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.91', dlogl='4.29e-01', ts2='0.92', photon_index_error='0.00', photon_index='2.43' WHERE bin_id='1144' AND source_name='4FGL J2331.0-2147' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep 29 23:05:40 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0024>
Subject: Job 7700: <4FGL_J2331.0-2147_daily_bin1144> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2331.0-2147_daily_bin1144 352.763 -21.7953 535852801 536112001 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 :                                   558.35 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             295.95 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   582 sec.
    Turnaround time :                            583 sec.

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

