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


Performing analysis on: 4FGL_J2331.0-2147_daily_bin901
RA = 352.763, Dec = -21.7953
tmin = 472867201, tmax = 473126401
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='7299', job_status='RUN', time_executed='2021-09-29 22:57:26.222347', time_epoch_executed='1632981446.22' WHERE source_name='4FGL J2331.0-2147' and cadence='daily' and bin_id='901'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/7299

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/7299/ft1_4FGL_J2331.0-2147_daily_bin901.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/7299/ft2_4FGL_J2331.0-2147_daily_bin901.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/7299/ft1_4FGL_J2331.0-2147_daily_bin901.fits outfile=/scratch/kocevski/7299/ft1_filteredMKT_4FGL_J2331.0-2147_daily_bin901.fits ra=352.763 dec=-21.7953 rad=12.0 tmin=472867201.0 tmax=473126401.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.90
user 3.64
sys 0.21

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/7299/ft1_filtered_4FGL_J2331.0-2147_daily_bin901.fits" evtable="EVENTS" scfile=/scratch/kocevski/7299/ft2_4FGL_J2331.0-2147_daily_bin901.fits sctable="SC_DATA" outfile=/scratch/kocevski/7299/ltcube_472867201_473126401_4FGL_J2331.0-2147_daily_bin901.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/7299/ft2_4FGL_J2331.0-2147_daily_bin901.fits
.....................!
real 13.33
user 12.76
sys 0.35

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/7299/ft1_filtered_4FGL_J2331.0-2147_daily_bin901.fits evtable="EVENTS" scfile=/scratch/kocevski/7299/ft2_4FGL_J2331.0-2147_daily_bin901.fits sctable="SC_DATA" expcube=/scratch/kocevski/7299/ltcube_472867201_473126401_4FGL_J2331.0-2147_daily_bin901.fits outfile=/scratch/kocevski/7299/expmap_472867201_473126401_4FGL_J2331.0-2147_daily_bin901.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/7299/ltcube_472867201_473126401_4FGL_J2331.0-2147_daily_bin901.fits
.....................!
real 191.76
user 186.22
sys 5.19

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/7299/ft1_filtered_4FGL_J2331.0-2147_daily_bin901.fits scfile=/scratch/kocevski/7299/ft2_4FGL_J2331.0-2147_daily_bin901.fits outfile=/scratch/kocevski/7299/cmap_472867201_473126401_4FGL_J2331.0-2147_daily_bin901.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.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/7299/ft1_filtered_4FGL_J2331.0-2147_daily_bin901.fits scfile=/scratch/kocevski/7299/ft2_4FGL_J2331.0-2147_daily_bin901.fits outfile=/scratch/kocevski/7299/cmap_HighResolution_472867201_473126401_4FGL_J2331.0-2147_daily_bin901.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.38
sys 0.14

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/7299/ft1_filtered_4FGL_J2331.0-2147_daily_bin901.fits evtable="EVENTS" scfile=/scratch/kocevski/7299/ft2_4FGL_J2331.0-2147_daily_bin901.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/7299/Model_4FGL_J2331.0-2147_daily_bin901.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/7299/ft1_filtered_4FGL_J2331.0-2147_daily_bin901.fits......................!
real 35.57
user 34.27
sys 1.17

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    49.331       1.0000         .10000E-03   10000.    
     2 'norm      '    7.5892       1.0000         .10000E-03   10000.    
     3 'Prefactor '    25.666       1.0000         .10000E-03   10000.    
     4 'norm      '    .10018E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10085E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    10.829       1.0000         .10000E-03   10000.    
     7 'norm      '    .10102E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    2.6435       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10013E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    19.704       1.0000         .10000E-03   10000.    
    11 'Prefactor '    104.89       1.0000         .10000E-03   10000.    
    12 'norm      '    2.0045       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10011E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    12.646       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10056E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    .93054       1.0000         .10000E-03   10000.    
    18 'norm      '    7.2024       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    21 'Normalizat'    1.1257       1.0000         .10000E-01   10.000    
    22 'Prefactor '    .77468       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=   3694.292     FROM MIGRAD    STATUS=CONVERGED    474 CALLS     2366 TOTAL
                     EDM=   .20E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.3%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          49.324        47.549       -.87137E-06   -.61165E-04
   2  norm          7.5883        5.5478       -.98338E-07    .35463E-04
   3  Prefactor     25.675        91.142        .21864E-05    .23353E-04
   4  norm          .10000E-03    7.1171       -.86301E-07** at limit **
   5  Prefactor     .10000E-03    35.754        .38618E-07** at limit **
   6  Prefactor     10.808        12.695        .40919E-06    .78907E-04
   7  norm          .10000E-03    .46014       -.10977E-06** at limit **
   8  Prefactor     2.6434        14.087        .90833E-06   -.68350E-05
   9  Prefactor     .10000E-03    9.9550       -.16095E-07** at limit **
  10  Prefactor     19.706        29.995        .23146E-06    .80214E-05
  11  Prefactor     104.89        86.821        .66532E-07   -.93431E-05
  12  norm          2.0039        4.1115        .28591E-06   -.25460E-04
  13  Prefactor     .10000E-03    48.746        .38055E-05** at limit **
  14  Prefactor     .10000E-03    14.171       -.91621E-06** at limit **
  15  Prefactor     12.653        37.073        .69702E-06    .35890E-04
  16  Prefactor     .10001E-03    67.148       -.42052E-05** at limit **
  17  norm          .93053        .82893       -.34322E-06    .10248E-03
  18  norm          7.2034        7.2294        .23397E-05   -.19466E-03
  19  Prefactor     .10000E-03    22.318       -.22147E-05** at limit **
  20  Prefactor     .10000E-03    16.815        .21109E-05** at limit **
  21  Normalizat    1.1255        .22814       -.82448E-06    .48986E-04
  22  Prefactor     .77487        .21460       -.51518E-07    .28901E-05
                               ERR DEF=  .500    
Final values: 
  norm       = 49.3237
  norm       = 7.58835
  Prefactor  = 25.6753
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 10.8081
  norm       = 0.0001
  Prefactor  = 2.64336
  Prefactor  = 0.0001
  Prefactor  = 19.7055
  Prefactor  = 104.892
  norm       = 2.00386
  Prefactor  = 0.000100004
  Prefactor  = 0.0001
  Prefactor  = 12.6529
  Prefactor  = 0.000100005
  norm       = 0.930531
  norm       = 7.20345
  Prefactor  = 0.000100001
  Prefactor  = 0.000100001
  Normalizat = 1.12552
  Prefactor  = 0.774869
 **********
 **   18 **HESSE 
 **********

 FCN=   3694.292     FROM HESSE     STATUS=OK           342 CALLS     2708 TOTAL
                     EDM=   .41E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          49.324        47.681        .57095E-04   -1.4302    
   2  norm          7.5883        5.5763        .10157E-03   -1.5157    
   3  Prefactor     25.675        91.656        .79072E-04   -1.4694    
   4  norm          .10000E-03    7.2752        .31550E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    36.050        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     10.808        11.737        .12175E-03   -1.5050    
   7  norm          .10000E-03    .60370        .74058E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     2.6434        14.065        .25076E-03   -1.5383    
   9  Prefactor     .10000E-03    9.9886        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     19.706        30.021        .90230E-04   -1.4820    
  11  Prefactor     104.89        87.084        .39263E-04   -1.3656    
  12  norm          2.0039        4.0453        .15486E-03   -1.5425    
  13  Prefactor     .10000E-03    50.127        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    14.300        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     12.653        36.754        .11264E-03   -1.4996    
  16  Prefactor     .10001E-03    68.879        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          .93053        .82937        .43408E-04   -1.5515    
  18  norm          7.2034        7.3832        .68175E-03   -1.5171    
  19  Prefactor     .10000E-03    22.789        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    17.241        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Normalizat    1.1255        .26894        .23554E-03   -.88937    
  22  Prefactor     .77487        .25159        .26579E-03   -1.0066    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.06748e-10
Minuit parameter uncertainties:
  1  47.7183
  2  5.57666
  3  92.1651
  4  3.51368e-06
  5  2.94181e-05
  6  11.7395
  7  4.13427e-07
  8  12.1993
  9  4.30985e-08
  10  30.0441
  11  87.19
  12  4.04588
  13  0.000896168
  14  0.000125209
  15  36.8198
  16  0.0011907
  17  0.829382
  18  7.3841
  19  0.000356252
  20  0.000298294
  21  0.269273
  22  0.251963
Done.

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

Extracting fit parameters...

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

GAL_V02
   Spectrum: PowerLaw
534    Prefactor:  7.749e-01  2.520e-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.126e+00  2.693e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 0.36
Ra Dec: 352.763 -21.795
Photon Flux Upper Limit: 1.23e-07 ph cm-2 s-1
Energy Flux Upper Limit: 4.10e-05 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/7299/likelihoodResults_472867201_473126401_4FGL_J2331.0-2147_daily_bin901.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) = 3694.16237946
delta logL = 0.130040383548

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 3694.15980626
delta logL = 0.132613583274

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    1.2949       1.0000         .10000E-03   10000.    
     2 'alpha     '    3.1321       1.0000          .0000       5.0000    
     3 'Normalizat'    1.1049       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .78592       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=   3694.160     FROM MIGRAD    STATUS=CONVERGED     50 CALLS      235 TOTAL
                     EDM=   .10E-10    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          1.2933        46.917        .97198E-02    .44052E-03
   2  alpha         3.1331        3.8821        .42951        .25018E-04
   3  Normalizat    1.1048        .54267E-01    .37804E-01   -.37034E-04
   4  Prefactor     .78636        .51051E-01    .43534E-01   -.29151E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 1.29335
  alpha      = 3.13306
  Normalizat = 1.10475
  Prefactor  = 0.786355
 **********
 **   18 **HESSE 
 **********

 FCN=   3694.160     FROM HESSE     STATUS=OK            33 CALLS      268 TOTAL
                     EDM=   .52E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          1.2933        3.3326        .94035E-04   -1.5481    
   2  alpha         3.1331        1.4945        .16294E-01    .25601    
   3  Normalizat    1.1048        .26251        .23728E-03   -.89599    
   4  Prefactor     .78636        .24789        .26393E-03   -1.0023    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.22577e-09
Minuit parameter uncertainties:
  1  3.33309
  2  1.61102
  3  0.262818
  4  0.24824
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/7299': 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) = 3694.15980252
delta logL = 0.132617318421

Extracting fit parameters...

4FGL J2331.0-2147
   Spectrum: LogParabola
418         norm:  1.293e+00  3.333e+00  1.000e-04  1.000e+04 ( 1.000e-12)
419        alpha:  3.133e+00  1.611e+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:  7.864e-01  2.482e-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.105e+00  2.628e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 0.36
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/7299/cmap_HighResolution_472867201_473126401_4FGL_J2331.0-2147_daily_bin901.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='4.10e-05', job_status='DONE', photon_flux_upper_limit='1.23e-07', time_completed='2021-09-29 23:05:35.330501', job_id='7299', GAL2='0.79', fit_tolerance='1e-08', EG2='1.10', EG='1.13', time_epoch_completed='1632981935.33', return_code2='0', ts='0.36', comment='SUCCESS', return_code='0', GAL='0.77', dlogl='1.33e-01', ts2='0.63', photon_index_error='0.00', photon_index='2.43' WHERE bin_id='901' AND source_name='4FGL J2331.0-2147' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep 29 23:05:35 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0089>
Subject: Job 7299: <4FGL_J2331.0-2147_daily_bin901> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2331.0-2147_daily_bin901 352.763 -21.7953 472867201 473126401 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 :                                   484.00 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             268.05 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   611 sec.
    Turnaround time :                            614 sec.

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

