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


Performing analysis on: 4FGL_J2331.0-2147_daily_bin1324
RA = 352.763, Dec = -21.7953
tmin = 582508801, tmax = 582768001
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='7989', job_status='RUN', time_executed='2021-09-29 22:57:03.769436', time_epoch_executed='1632981423.77' WHERE source_name='4FGL J2331.0-2147' and cadence='daily' and bin_id='1324'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/7989

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/7989/ft1_4FGL_J2331.0-2147_daily_bin1324.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/7989/ft2_4FGL_J2331.0-2147_daily_bin1324.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/7989/ft1_4FGL_J2331.0-2147_daily_bin1324.fits outfile=/scratch/kocevski/7989/ft1_filteredMKT_4FGL_J2331.0-2147_daily_bin1324.fits ra=352.763 dec=-21.7953 rad=12.0 tmin=582508801.0 tmax=582768001.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.69
user 3.43
sys 0.21

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/7989/ft2_4FGL_J2331.0-2147_daily_bin1324.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/7989/ft1_filteredMKT_4FGL_J2331.0-2147_daily_bin1324.fits evtable="EVENTS" outfile="/scratch/kocevski/7989/ft1_filtered_4FGL_J2331.0-2147_daily_bin1324.fits" apply_filter=yes overwrite=yes header_obstimes=yes tstart=0.0 tstop=0.0 gtifile="default" chatter=3 clobber=yes debug=no gui=no mode="ql"

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

This is gtmktime version HEAD
Applying GTI filter:
IN_SAA!=T && LIVETIME>0 && gtifilter('/nfs/farm/g/glast/g/LCRepository/Likelihood/GTIs/nogrb.gti',(START+STOP)/2) && (angsep(RA_SUN,DEC_SUN,RA_ZENITH,DEC_ZENITH)>115 || gtifilter('/nfs/farm/g/glast/g/LCRepository/Likelihood/GTIs/nosolarflares.gti',(START+STOP)/2))
real 0.49
user 0.32
sys 0.16

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/7989/ft1_filtered_4FGL_J2331.0-2147_daily_bin1324.fits" evtable="EVENTS" scfile=/scratch/kocevski/7989/ft2_4FGL_J2331.0-2147_daily_bin1324.fits sctable="SC_DATA" outfile=/scratch/kocevski/7989/ltcube_582508801_582768001_4FGL_J2331.0-2147_daily_bin1324.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/7989/ft2_4FGL_J2331.0-2147_daily_bin1324.fits
.....................!
real 11.66
user 11.29
sys 0.33

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/7989/ft1_filtered_4FGL_J2331.0-2147_daily_bin1324.fits evtable="EVENTS" scfile=/scratch/kocevski/7989/ft2_4FGL_J2331.0-2147_daily_bin1324.fits sctable="SC_DATA" expcube=/scratch/kocevski/7989/ltcube_582508801_582768001_4FGL_J2331.0-2147_daily_bin1324.fits outfile=/scratch/kocevski/7989/expmap_582508801_582768001_4FGL_J2331.0-2147_daily_bin1324.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/7989/ltcube_582508801_582768001_4FGL_J2331.0-2147_daily_bin1324.fits
.....................!
real 190.16
user 184.87
sys 4.97

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/7989/ft1_filtered_4FGL_J2331.0-2147_daily_bin1324.fits scfile=/scratch/kocevski/7989/ft2_4FGL_J2331.0-2147_daily_bin1324.fits outfile=/scratch/kocevski/7989/cmap_582508801_582768001_4FGL_J2331.0-2147_daily_bin1324.fits algorithm="CMAP" ebinalg="LOG" emin=30.0 emax=200000.0 ebinfile=NONE tbinalg="LIN" tbinfile=NONE nxpix=160 nypix=160 binsz=0.25 coordsys="CEL" xref=352.763 yref=-21.7953 axisrot=0.0 rafield="RA" decfield="DEC" proj="AIT" hpx_ordering_scheme="RING" hpx_order=3 hpx_ebin=yes hpx_region="" evtable="EVENTS" sctable="SC_DATA" efield="ENERGY" tfield="TIME" chatter=2 clobber=yes debug=no gui=no mode="ql"

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

This is gtbin version HEAD
real 0.53
user 0.37
sys 0.15

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

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    16.505       1.0000         .10000E-03   10000.    
     2 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     4 'norm      '    .10023E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    26.922       1.0000         .10000E-03   10000.    
     6 'Prefactor '    4.5735       1.0000         .10000E-03   10000.    
     7 'norm      '    3.0941       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10016E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    5.2864       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    .10007E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    13.425       1.0000         .10000E-03   10000.    
    15 'Prefactor '    2.2383       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    .93199       1.0000         .10000E-03   10000.    
    18 'norm      '    6.2411       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .11273E-02   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10009E-03   1.0000         .10000E-03   10000.    
    21 'Normalizat'    1.3926       1.0000         .10000E-01   10.000    
    22 'Prefactor '    .70608       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=   4776.333     FROM MIGRAD    STATUS=CONVERGED    464 CALLS     3055 TOTAL
                     EDM=   .62E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .6%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          16.513        45.872        .12189E-04    .13071E-05
   2  norm          .10000E-03    1.4627       -.15033E-07** at limit **
   3  Prefactor     .10000E-03    19.332        .11918E-04** at limit **
   4  norm          .10000E-03    3.9219        .12937E-07** at limit **
   5  Prefactor     26.930        24.378        .55721E-05    .10050E-03
   6  Prefactor     4.5570        22.938       -.11227E-04   -.16507E-03
   7  norm          3.0945        1.3915        .25003E-06    .14526E-03
   8  Prefactor     .10000E-03    14.411        .32849E-05** at limit **
   9  Prefactor     5.2969        17.323        .27034E-05    .25713E-04
  10  Prefactor     .10000E-03    16.435       -.11805E-04** at limit **
  11  Prefactor     .10000E-03    27.436       -.91718E-05** at limit **
  12  norm          .10000E-03    1.5285        .98928E-07** at limit **
  13  Prefactor     .10000E-03    55.905        .26193E-04** at limit **
  14  Prefactor     13.425        13.578       -.21455E-06   -.74617E-04
  15  Prefactor     2.2316        107.60       -.16576E-04   -.16675E-04
  16  Prefactor     .10000E-03    30.002       -.12981E-04** at limit **
  17  norm          .93211        .72945        .22434E-07   -.62512E-03
  18  norm          6.2408        5.2962       -.48465E-06   -.13590E-03
  19  Prefactor     .10006E-03    244.90       -.21965E-03** at limit **
  20  Prefactor     .10000E-03    22.915        .84984E-05** at limit **
  21  Normalizat    1.3927        .21530        .21545E-05    .47309E-03
  22  Prefactor     .70586        .20456       -.16351E-05    .46588E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 16.5126
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 26.9301
  Prefactor  = 4.557
  norm       = 3.09455
  Prefactor  = 0.0001
  Prefactor  = 5.29686
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 13.4247
  Prefactor  = 2.2316
  Prefactor  = 0.0001
  norm       = 0.932115
  norm       = 6.24082
  Prefactor  = 0.000100063
  Prefactor  = 0.0001
  Normalizat = 1.39266
  Prefactor  = 0.70586
 **********
 **   18 **HESSE 
 **********

 FCN=   4776.333     FROM HESSE     STATUS=OK           334 CALLS     3389 TOTAL
                     EDM=   .12E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          16.513        45.843        .98586E-04   -1.4895    
   2  norm          .10000E-03    1.4852        .81604E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    19.345        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  norm          .10000E-03    3.9492        .13339E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     26.930        24.165        .77208E-04   -1.4670    
   6  Prefactor     4.5570        22.108        .18823E-03   -1.5281    
   7  norm          3.0945        1.4123        .39946E-04   -1.5356    
   8  Prefactor     .10000E-03    14.509        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     5.2969        16.914        .17481E-03   -1.5248    
  10  Prefactor     .10000E-03    16.460        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    27.457        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          .10000E-03    1.5375        .83330E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    56.064        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     13.425        13.572        .10932E-03   -1.4975    
  15  Prefactor     2.2316        108.35        .27473E-03   -1.5409    
  16  Prefactor     .10000E-03    30.008        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          .93211        .73198        .44820E-04   -1.5515    
  18  norm          6.2408        5.3699        .12622E-03   -1.5208    
  19  Prefactor     .10006E-03    244.57        .20682E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    22.928        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Normalizat    1.3927        .25978        .22978E-03   -.80841    
  22  Prefactor     .70586        .24532        .29943E-03   -1.0330    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.21496e-09
Minuit parameter uncertainties:
  1  45.9408
  2  1.27911e-06
  3  1.01986e-05
  4  1.03464e-05
  5  24.1737
  6  20.0863
  7  1.41232
  8  2.24089e-05
  9  16.9298
  10  4.053e-07
  11  9.55561e-06
  12  1.07582e-05
  13  4.26779e-05
  14  13.575
  15  31.1585
  16  1.64071e-05
  17  0.731985
  18  5.37027
  19  0.00787479
  20  3.18905e-05
  21  0.260022
  22  0.2457
Done.

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

Extracting fit parameters...

4FGL J2331.0-2147
   Spectrum: LogParabola
418         norm:  1.000e-04  1.076e-05  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.059e-01  2.457e-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.393e+00  2.600e-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: 7.24e-08 ph cm-2 s-1
Energy Flux Upper Limit: 2.41e-05 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/7989/likelihoodResults_582508801_582768001_4FGL_J2331.0-2147_daily_bin1324.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): 102
logL (Free Index) = 4776.33574696
delta logL = -0.00305079727877

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 4776.33269611
delta logL = 5.28689270141e-08

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10019E-03   1.0000         .10000E-03   10000.    
     2 'alpha     '    2.4207       1.0000          .0000       5.0000    
     3 'Normalizat'    1.3927       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .70589       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5370E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   4776.333     FROM MIGRAD    STATUS=CONVERGED     99 CALLS      246 TOTAL
                     EDM=   .28E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    120.74        .83857E-02** at limit **
   2  alpha         1.8821        2.7502        .16471       -.37341E-07
   3  Normalizat    1.3927        .47392E-01    .22978E-03    .23533E-03
   4  Prefactor     .70586        .45791E-01    .29943E-03    .18859E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  alpha      = 1.8821
  Normalizat = 1.39266
  Prefactor  = 0.705857
 **********
 **   18 **HESSE 
 **********

 FCN=   4776.333     FROM HESSE     STATUS=OK            23 CALLS      269 TOTAL
                     EDM=   .83E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    1.7649        .89523E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  alpha         1.8821        3.3283        .65885E-02   -.24975    
   3  Normalizat    1.3927        .24918        .45955E-04   -.80841    
   4  Prefactor     .70586        .24059        .11977E-04   -1.0330    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 8.31851e-11
Minuit parameter uncertainties:
  1  3.83853e-06
  2  202.105
  3  0.249394
  4  0.240944
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/7989': 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) = 4776.33269198
delta logL = 4.17618230131e-06

Extracting fit parameters...

4FGL J2331.0-2147
   Spectrum: LogParabola
418         norm:  1.000e-04  3.839e-06  1.000e-04  1.000e+04 ( 1.000e-12)
419        alpha:  1.882e+00  2.021e+02  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.059e-01  2.409e-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.393e+00  2.494e-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/7989/cmap_HighResolution_582508801_582768001_4FGL_J2331.0-2147_daily_bin1324.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='2.41e-05', job_status='DONE', photon_flux_upper_limit='7.24e-08', time_completed='2021-09-29 23:06:32.952469', job_id='7989', GAL2='0.71', fit_tolerance='1e-08', EG2='1.39', EG='1.39', time_epoch_completed='1632981992.95', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.71', dlogl='4.18e-06', ts2='-0.00', photon_index_error='0.00', photon_index='2.43' WHERE bin_id='1324' AND source_name='4FGL J2331.0-2147' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep 29 23:06:32 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0274>
Subject: Job 7989: <4FGL_J2331.0-2147_daily_bin1324> in cluster <slac> Done

Job <4FGL_J2331.0-2147_daily_bin1324> was submitted from host <rhel6-64d> by user <kocevski> in cluster <slac> at Wed Sep 29 22:56:21 2021
Job was executed on host(s) <bullet0274>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Sep 29 22:56:23 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Wed Sep 29 22:56:23 2021
Terminated at Wed Sep 29 23:06:33 2021
Results reported at Wed Sep 29 23:06:33 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2331.0-2147_daily_bin1324 352.763 -21.7953 582508801 582768001 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 :                                   565.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             328.53 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   610 sec.
    Turnaround time :                            612 sec.

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

