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


Performing analysis on: 4FGL_J2331.0-2147_daily_bin1259
RA = 352.763, Dec = -21.7953
tmin = 565660801, tmax = 565920001
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='7884', job_status='RUN', time_executed='2021-09-29 22:57:44.096196', time_epoch_executed='1632981464.1' WHERE source_name='4FGL J2331.0-2147' and cadence='daily' and bin_id='1259'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/7884

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/7884/ft1_4FGL_J2331.0-2147_daily_bin1259.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/7884/ft2_4FGL_J2331.0-2147_daily_bin1259.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/7884/ft1_4FGL_J2331.0-2147_daily_bin1259.fits outfile=/scratch/kocevski/7884/ft1_filteredMKT_4FGL_J2331.0-2147_daily_bin1259.fits ra=352.763 dec=-21.7953 rad=12.0 tmin=565660801.0 tmax=565920001.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.55
user 3.29
sys 0.20

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/7884/ft2_4FGL_J2331.0-2147_daily_bin1259.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/7884/ft1_filteredMKT_4FGL_J2331.0-2147_daily_bin1259.fits evtable="EVENTS" outfile="/scratch/kocevski/7884/ft1_filtered_4FGL_J2331.0-2147_daily_bin1259.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/7884/ft1_filtered_4FGL_J2331.0-2147_daily_bin1259.fits" evtable="EVENTS" scfile=/scratch/kocevski/7884/ft2_4FGL_J2331.0-2147_daily_bin1259.fits sctable="SC_DATA" outfile=/scratch/kocevski/7884/ltcube_565660801_565920001_4FGL_J2331.0-2147_daily_bin1259.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/7884/ft2_4FGL_J2331.0-2147_daily_bin1259.fits
.....................!
real 11.73
user 11.36
sys 0.34

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/7884/ft1_filtered_4FGL_J2331.0-2147_daily_bin1259.fits evtable="EVENTS" scfile=/scratch/kocevski/7884/ft2_4FGL_J2331.0-2147_daily_bin1259.fits sctable="SC_DATA" expcube=/scratch/kocevski/7884/ltcube_565660801_565920001_4FGL_J2331.0-2147_daily_bin1259.fits outfile=/scratch/kocevski/7884/expmap_565660801_565920001_4FGL_J2331.0-2147_daily_bin1259.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/7884/ltcube_565660801_565920001_4FGL_J2331.0-2147_daily_bin1259.fits
.....................!
real 190.52
user 185.56
sys 4.54

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/7884/ft1_filtered_4FGL_J2331.0-2147_daily_bin1259.fits scfile=/scratch/kocevski/7884/ft2_4FGL_J2331.0-2147_daily_bin1259.fits outfile=/scratch/kocevski/7884/cmap_565660801_565920001_4FGL_J2331.0-2147_daily_bin1259.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.35
sys 0.17

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/7884/ft1_filtered_4FGL_J2331.0-2147_daily_bin1259.fits scfile=/scratch/kocevski/7884/ft2_4FGL_J2331.0-2147_daily_bin1259.fits outfile=/scratch/kocevski/7884/cmap_HighResolution_565660801_565920001_4FGL_J2331.0-2147_daily_bin1259.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/7884/ft1_filtered_4FGL_J2331.0-2147_daily_bin1259.fits evtable="EVENTS" scfile=/scratch/kocevski/7884/ft2_4FGL_J2331.0-2147_daily_bin1259.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/7884/Model_4FGL_J2331.0-2147_daily_bin1259.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/7884/ft1_filtered_4FGL_J2331.0-2147_daily_bin1259.fits.....................!
real 50.03
user 48.69
sys 1.18

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    59.496       1.0000         .10000E-03   10000.    
     2 'norm      '    1.6489       1.0000         .10000E-03   10000.    
     3 'Prefactor '    89.665       1.0000         .10000E-03   10000.    
     4 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10763E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    16.878       1.0000         .10000E-03   10000.    
     7 'norm      '    2.1912       1.0000         .10000E-03   10000.    
     8 'Prefactor '    1.5765       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    14.987       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    .10056E-03   1.0000         .10000E-03   10000.    
    18 'norm      '    29.849       1.0000         .10000E-03   10000.    
    19 'Prefactor '    77.123       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10026E-03   1.0000         .10000E-03   10000.    
    21 'Normalizat'    .61442       1.0000         .10000E-01   10.000    
    22 'Prefactor '    1.1170       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=   6574.630     FROM MIGRAD    STATUS=CONVERGED    469 CALLS     2395 TOTAL
                     EDM=   .75E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          59.495        34.337        .13004E-02    .12596E-02
   2  norm          1.6488        1.9246        .82211E-02    .15085E-03
   3  Prefactor     89.665        57.104        .10608E-02   -.31803E-03
   4  norm          .10000E-03    1.0538        .90712E-02** at limit **
   5  Prefactor     .10000E-03    26.042        .90712E-02** at limit **
   6  Prefactor     16.870        11.431        .24372E-02    .14937E-03
   7  norm          2.1923        .89470        .69507E-02    .20929E-03
   8  Prefactor     1.5762        13.696        .84598E-02    .41015E-03
   9  Prefactor     .10000E-03    2.3858        .90712E-02** at limit **
  10  Prefactor     .10000E-03    6.2274        .90712E-02** at limit **
  11  Prefactor     .10000E-03    11.599        .90712E-02** at limit **
  12  norm          .10000E-03    .65569        .90712E-02** at limit **
  13  Prefactor     .10000E-03    50.642        .90712E-02** at limit **
  14  Prefactor     .10000E-03    6.9291        .90712E-02** at limit **
  15  Prefactor     14.987        15.977        .25865E-02    .10936E-04
  16  Prefactor     .10002E-03    15.275        .90712E-02** at limit **
  17  norm          .10000E-03    .21670        .20356E-01** at limit **
  18  norm          29.851        6.0766        .18334E-02   -.94554E-03
  19  Prefactor     77.123        43.856        .11431E-02   -.39723E-03
  20  Prefactor     .10002E-03    15.760        .90712E-02** at limit **
  21  Normalizat    .61433        .15892        .63131E-01    .29711E-04
  22  Prefactor     1.1171        .16349        .36973E-01    .17414E-05
                               ERR DEF=  .500    
Final values: 
  norm       = 59.4951
  norm       = 1.64883
  Prefactor  = 89.6653
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 16.8698
  norm       = 2.19229
  Prefactor  = 1.5762
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 14.9873
  Prefactor  = 0.000100019
  norm       = 0.0001
  norm       = 29.8514
  Prefactor  = 77.1234
  Prefactor  = 0.00010002
  Normalizat = 0.614328
  Prefactor  = 1.11714
 **********
 **   18 **HESSE 
 **********

 FCN=   6574.630     FROM HESSE     STATUS=OK           336 CALLS     2731 TOTAL
                     EDM=   .65E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          59.495        34.336        .52015E-04   -1.4164    
   2  norm          1.6488        1.9142        .11155E-03   -1.5451    
   3  Prefactor     89.665        57.200        .42434E-04   -1.3811    
   4  norm          .10000E-03    1.0560        .81241E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    26.868        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     16.870        12.093        .97490E-04   -1.4886    
   7  norm          2.1923        .94745        .36764E-04   -1.5412    
   8  Prefactor     1.5762        13.761        .33839E-03   -1.5457    
   9  Prefactor     .10000E-03    2.3881        .12227E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    6.2290        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    11.610        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          .10000E-03    .65966        .64096E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    51.062        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    6.9634        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     14.987        15.985        .10346E-03   -1.4934    
  16  Prefactor     .10002E-03    15.276        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          .10000E-03    .43867        .69887E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          29.851        5.8058        .73334E-04   -1.4615    
  19  Prefactor     77.123        43.878        .45726E-04   -1.3949    
  20  Prefactor     .10002E-03    15.772        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Normalizat    .61433        .18396        .27933E-03   -1.0738    
  22  Prefactor     1.1171        .18955        .22275E-03   -.88920    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 6.53084e-09
Minuit parameter uncertainties:
  1  34.3478
  2  1.91432
  3  57.2347
  4  1.57679e-08
  5  0.000173935
  6  12.0949
  7  0.947456
  8  9.31708
  9  1.67358e-07
  10  2.05976e-06
  11  3.98422e-05
  12  2.608e-08
  13  0.000116082
  14  8.07533e-06
  15  15.9893
  16  0.00106524
  17  8.60792e-08
  18  5.80595
  19  43.896
  20  0.00111322
  21  0.184142
  22  0.18966
Done.

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

Extracting fit parameters...

4FGL J2331.0-2147
   Spectrum: LogParabola
418         norm:  1.000e-04  2.608e-08  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:  1.117e+00  1.897e-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:  6.143e-01  1.841e-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: 3.67e-08 ph cm-2 s-1
Energy Flux Upper Limit: 1.22e-05 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/7884/likelihoodResults_565660801_565920001_4FGL_J2331.0-2147_daily_bin1259.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) = 6574.63672758
delta logL = -0.00688438290763

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 6574.62983747
delta logL = 5.72650424147e-06

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .11260E-03   1.0000         .10000E-03   10000.    
     2 'alpha     '    2.1941       1.0000          .0000       5.0000    
     3 'Normalizat'    .61427       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.1172       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=   6574.630     FROM MIGRAD    STATUS=CONVERGED     62 CALLS      228 TOTAL
                     EDM=   .50E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    27.167        .90712E-02** at limit **
   2  alpha         1.5628        2.9980        .41548       -.23486E-06
   3  Normalizat    .61433        .19513E-01    .63131E-01    .29101E-04
   4  Prefactor     1.1171        .20583E-01    .36966E-01    .15516E-06
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  alpha      = 1.56283
  Normalizat = 0.614329
  Prefactor  = 1.11714
 **********
 **   18 **HESSE 
 **********

 FCN=   6574.630     FROM HESSE     STATUS=OK            31 CALLS      259 TOTAL
                     EDM=   .20E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    2.1565        .81641E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  alpha         1.5628        2.9665        .16619       -.38425    
   3  Normalizat    .61433        .17714        .27933E-03   -1.0738    
   4  Prefactor     1.1171        .18721        .22275E-03   -.88920    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.99336e-10
Minuit parameter uncertainties:
  1  4.27479e-05
  2  146.694
  3  0.177299
  4  0.187324
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/7884': 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) = 6574.62981406
delta logL = 2.91357018796e-05

Extracting fit parameters...

4FGL J2331.0-2147
   Spectrum: LogParabola
418         norm:  1.000e-04  4.275e-05  1.000e-04  1.000e+04 ( 1.000e-12)
419        alpha:  1.563e+00  1.467e+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:  1.117e+00  1.873e-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:  6.143e-01  1.773e-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 -2.355e-04 [aplpy.core]
INFO: Auto-setting vmax to  2.614e-03 [aplpy.core]
Saving /scratch/kocevski/7884/cmap_HighResolution_565660801_565920001_4FGL_J2331.0-2147_daily_bin1259.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.22e-05', job_status='DONE', photon_flux_upper_limit='3.67e-08', time_completed='2021-09-29 23:08:11.512678', job_id='7884', GAL2='1.12', fit_tolerance='1e-08', EG2='0.61', EG='0.61', time_epoch_completed='1632982091.51', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.12', dlogl='2.91e-05', ts2='-0.00', photon_index_error='0.00', photon_index='2.43' WHERE bin_id='1259' AND source_name='4FGL J2331.0-2147' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep 29 23:08:11 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0076>
Subject: Job 7884: <4FGL_J2331.0-2147_daily_bin1259> in cluster <slac> Done

Job <4FGL_J2331.0-2147_daily_bin1259> was submitted from host <rhel6-64d> by user <kocevski> in cluster <slac> at Wed Sep 29 22:56:12 2021
Job was executed on host(s) <bullet0076>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Sep 29 22:56:14 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:14 2021
Terminated at Wed Sep 29 23:08:12 2021
Results reported at Wed Sep 29 23:08:12 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2331.0-2147_daily_bin1259 352.763 -21.7953 565660801 565920001 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 :                                   627.00 sec.
    Max Memory :                                 1093 MB
    Average Memory :                             308.67 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   717 sec.
    Turnaround time :                            720 sec.

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

