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


Performing analysis on: 4FGL_J2331.0-2147_daily_bin411
RA = 352.763, Dec = -21.7953
tmin = 345859201, tmax = 346118401
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='4583', job_status='RUN', time_executed='2021-09-29 22:49:15.588812', time_epoch_executed='1632980955.59' WHERE source_name='4FGL J2331.0-2147' and cadence='daily' and bin_id='411'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/4583

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/4583/ft1_4FGL_J2331.0-2147_daily_bin411.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/4583/ft2_4FGL_J2331.0-2147_daily_bin411.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/4583/ft1_4FGL_J2331.0-2147_daily_bin411.fits outfile=/scratch/kocevski/4583/ft1_filteredMKT_4FGL_J2331.0-2147_daily_bin411.fits ra=352.763 dec=-21.7953 rad=12.0 tmin=345859201.0 tmax=346118401.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.39
user 3.17
sys 0.18

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/4583/ft2_4FGL_J2331.0-2147_daily_bin411.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/4583/ft1_filteredMKT_4FGL_J2331.0-2147_daily_bin411.fits evtable="EVENTS" outfile="/scratch/kocevski/4583/ft1_filtered_4FGL_J2331.0-2147_daily_bin411.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.48
user 0.33
sys 0.15

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/4583/ft1_filtered_4FGL_J2331.0-2147_daily_bin411.fits" evtable="EVENTS" scfile=/scratch/kocevski/4583/ft2_4FGL_J2331.0-2147_daily_bin411.fits sctable="SC_DATA" outfile=/scratch/kocevski/4583/ltcube_345859201_346118401_4FGL_J2331.0-2147_daily_bin411.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/4583/ft2_4FGL_J2331.0-2147_daily_bin411.fits
.....................!
real 11.61
user 11.29
sys 0.30

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/4583/ft1_filtered_4FGL_J2331.0-2147_daily_bin411.fits evtable="EVENTS" scfile=/scratch/kocevski/4583/ft2_4FGL_J2331.0-2147_daily_bin411.fits sctable="SC_DATA" expcube=/scratch/kocevski/4583/ltcube_345859201_346118401_4FGL_J2331.0-2147_daily_bin411.fits outfile=/scratch/kocevski/4583/expmap_345859201_346118401_4FGL_J2331.0-2147_daily_bin411.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/4583/ltcube_345859201_346118401_4FGL_J2331.0-2147_daily_bin411.fits
.....................!
real 191.13
user 186.24
sys 4.58

Generating the xml model:
radLim = 0.001
maxRad = 12
normsOnly = True
freeVariableSources = True
Fixing all sources to their catalog values, except variable sources
Creating file and adding sources from 4FGL
Added 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/4583/ft1_filtered_4FGL_J2331.0-2147_daily_bin411.fits scfile=/scratch/kocevski/4583/ft2_4FGL_J2331.0-2147_daily_bin411.fits outfile=/scratch/kocevski/4583/cmap_345859201_346118401_4FGL_J2331.0-2147_daily_bin411.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.37
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/4583/ft1_filtered_4FGL_J2331.0-2147_daily_bin411.fits scfile=/scratch/kocevski/4583/ft2_4FGL_J2331.0-2147_daily_bin411.fits outfile=/scratch/kocevski/4583/cmap_HighResolution_345859201_346118401_4FGL_J2331.0-2147_daily_bin411.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.37
sys 0.16

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/4583/ft1_filtered_4FGL_J2331.0-2147_daily_bin411.fits evtable="EVENTS" scfile=/scratch/kocevski/4583/ft2_4FGL_J2331.0-2147_daily_bin411.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/4583/Model_4FGL_J2331.0-2147_daily_bin411.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/4583/ft1_filtered_4FGL_J2331.0-2147_daily_bin411.fits.....................!
real 50.44
user 49.12
sys 1.22

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10301E-03   1.0000         .10000E-03   10000.    
     2 'norm      '    .89165       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .31614E-02   1.0000         .10000E-03   10000.    
     4 'norm      '    1.8083       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .11727E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    14.940       1.0000         .10000E-03   10000.    
     7 'norm      '    .10419E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    6.6934       1.0000         .10000E-03   10000.    
    10 'Prefactor '    40.370       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10015E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    .49847       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10027E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    26.080       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10283E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    .30163       1.0000         .10000E-03   10000.    
    18 'norm      '    44.523       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .11373       1.0000         .10000E-03   10000.    
    21 'Normalizat'    .66624       1.0000         .10000E-01   10.000    
    22 'Prefactor '    1.0245       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=   6825.183     FROM MIGRAD    STATUS=CONVERGED    550 CALLS     2871 TOTAL
                     EDM=   .24E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.3%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    58.937       -.17507E-06** at limit **
   2  norm          .89251        1.8358        .65987E-06    .25007E-03
   3  Prefactor     .10004E-03    26.723       -.13438E-05** at limit **
   4  norm          1.8092        3.9141        .67781E-06   -.14726E-03
   5  Prefactor     .10000E-03    27.605       -.10106E-05** at limit **
   6  Prefactor     14.949        8.6541       -.47753E-06   -.28745E-03
   7  norm          .10000E-03    .36793       -.11908E-06** at limit **
   8  Prefactor     .10000E-03    2.5457        .72309E-08** at limit **
   9  Prefactor     6.6927        8.4095        .12335E-05    .21059E-03
  10  Prefactor     40.371        22.510        .30396E-06    .74939E-04
  11  Prefactor     .10000E-03    12.531       -.41062E-08** at limit **
  12  norm          .49851        1.8820        .82472E-06   -.58244E-03
  13  Prefactor     .10000E-03    12.717        .31107E-07** at limit **
  14  Prefactor     .10000E-03    4.3733        .67899E-08** at limit **
  15  Prefactor     26.080        25.527       -.20648E-06    .15173E-04
  16  Prefactor     .10000E-03    40.248        .15967E-06** at limit **
  17  norm          .30168        .29399       -.26180E-08    .74308E-04
  18  norm          44.520        6.5244       -.36674E-08   -.20591E-04
  19  Prefactor     .10000E-03    20.761       -.13468E-06** at limit **
  20  Prefactor     .10007E-03    42.614       -.81893E-07** at limit **
  21  Normalizat    .66614        .15121        .17561E-06   -.38017E-04
  22  Prefactor     1.0247        .15412       -.40022E-06    .37463E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  norm       = 0.892509
  Prefactor  = 0.000100035
  norm       = 1.80924
  Prefactor  = 0.0001
  Prefactor  = 14.9494
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 6.69272
  Prefactor  = 40.3711
  Prefactor  = 0.0001
  norm       = 0.498512
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 26.0796
  Prefactor  = 0.0001
  norm       = 0.301679
  norm       = 44.5199
  Prefactor  = 0.0001
  Prefactor  = 0.000100067
  Normalizat = 0.666137
  Prefactor  = 1.0247
 **********
 **   18 **HESSE 
 **********

 FCN=   6825.183     FROM HESSE     STATUS=OK           360 CALLS     3231 TOTAL
                     EDM=   .74E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    59.330        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          .89251        1.6382        .15517E-02   -1.5519    
   3  Prefactor     .10004E-03    190.66        .75496E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  norm          1.8092        3.7606        .20172E-03   -1.5439    
   5  Prefactor     .10000E-03    28.043        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     14.949        8.2865        .10362E-03   -1.4934    
   7  norm          .10000E-03    1.3290        .86633E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    2.5495        .12873E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     6.6927        8.4897        .15510E-03   -1.5191    
  10  Prefactor     40.371        22.563        .63088E-04   -1.4436    
  11  Prefactor     .10000E-03    12.542        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          .49851        1.8871        .20642E-03   -1.5567    
  13  Prefactor     .10000E-03    12.726        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    4.3871        .16871E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     26.080        25.484        .78444E-04   -1.4686    
  16  Prefactor     .10000E-03    40.293        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          .30168        .29958        .41719E-03   -1.5598    
  18  norm          44.520        6.4745        .60085E-04   -1.4373    
  19  Prefactor     .10000E-03    20.827        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10007E-03    40.995        .14188       -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Normalizat    .66614        .17527        .25954E-03   -1.0525    
  22  Prefactor     1.0247        .17836        .22270E-03   -.91911    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 7.35638e-10
Minuit parameter uncertainties:
  1  2.65607e-05
  2  1.63829
  3  0.0051848
  4  3.76105
  5  3.45926e-05
  6  8.28717
  7  2.00262e-05
  8  6.64528e-07
  9  8.49118
  10  22.5675
  11  9.5477e-07
  12  1.8873
  13  3.7113e-08
  14  1.6136e-06
  15  25.4942
  16  2.61536e-05
  17  0.299586
  18  6.4746
  19  1.69191e-05
  20  0.00331904
  21  0.175418
  22  0.178461
Done.

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

Extracting fit parameters...

4FGL J2331.0-2147
   Spectrum: LogParabola
418         norm:  4.985e-01  1.887e+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:  1.025e+00  1.785e-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.661e-01  1.754e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 0.08
Ra Dec: 352.763 -21.795
Photon Flux Upper Limit: 5.84e-08 ph cm-2 s-1
Energy Flux Upper Limit: 1.94e-05 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/4583/likelihoodResults_345859201_346118401_4FGL_J2331.0-2147_daily_bin411.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) = 6825.17873726
delta logL = 0.00411776869532

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6825.17840095
delta logL = 0.00445407846746

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .45378       1.0000         .10000E-03   10000.    
     2 'alpha     '    2.5934       1.0000          .0000       5.0000    
     3 'Normalizat'    .66529       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0251       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=   6825.178     FROM MIGRAD    STATUS=CONVERGED     94 CALLS      239 TOTAL
                     EDM=   .37E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .45560        2.2195        .18698E-03   -.75845E-03
   2  alpha         2.5944        1.7776        .41069E-01   -.25780E-04
   3  Normalizat    .66530        .16705        .25969E-03   -.87601E-04
   4  Prefactor     1.0251        .17555        .22266E-03   -.41817E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 0.455605
  alpha      = 2.59443
  Normalizat = 0.665302
  Prefactor  = 1.02511
 **********
 **   18 **HESSE 
 **********

 FCN=   6825.178     FROM HESSE     STATUS=OK            25 CALLS      264 TOTAL
                     EDM=   .51E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .45560        1.7689        .74791E-05   -1.5573    
   2  alpha         2.5944        1.6044        .16428E-02    .37783E-01
   3  Normalizat    .66530        .16720        .10387E-04   -1.0528    
   4  Prefactor     1.0251        .17562        .89064E-05   -.91897    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.0567e-10
Minuit parameter uncertainties:
  1  1.76914
  2  1.74226
  3  0.167323
  4  0.175715
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/4583': 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) = 6825.17839972
delta logL = 0.0044553108055

Extracting fit parameters...

4FGL J2331.0-2147
   Spectrum: LogParabola
418         norm:  4.556e-01  1.769e+00  1.000e-04  1.000e+04 ( 1.000e-12)
419        alpha:  2.594e+00  1.742e+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:  1.025e+00  1.757e-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.653e-01  1.673e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 0.08
Ra Dec: 352.763 -21.795

Creating a high resolution counts map...
INFO: Auto-setting vmin to -2.500e-04 [aplpy.core]
INFO: Auto-setting vmax to  2.775e-03 [aplpy.core]
Saving /scratch/kocevski/4583/cmap_HighResolution_345859201_346118401_4FGL_J2331.0-2147_daily_bin411.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.94e-05', job_status='DONE', photon_flux_upper_limit='5.84e-08', time_completed='2021-09-29 23:00:30.724138', job_id='4583', GAL2='1.03', fit_tolerance='1e-08', EG2='0.67', EG='0.67', time_epoch_completed='1632981630.72', return_code2='0', ts='0.08', comment='SUCCESS', return_code='0', GAL='1.02', dlogl='4.46e-03', ts2='0.09', photon_index_error='0.00', photon_index='2.43' WHERE bin_id='411' AND source_name='4FGL J2331.0-2147' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep 29 23:00:30 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0077>
Subject: Job 4583: <4FGL_J2331.0-2147_daily_bin411> in cluster <slac> Done

Job <4FGL_J2331.0-2147_daily_bin411> was submitted from host <rhel6-64h> by user <kocevski> in cluster <slac> at Wed Sep 29 22:45:40 2021
Job was executed on host(s) <bullet0077>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Sep 29 22:45:42 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:45:42 2021
Terminated at Wed Sep 29 23:00:31 2021
Results reported at Wed Sep 29 23:00:31 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2331.0-2147_daily_bin411 352.763 -21.7953 345859201 346118401 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 :                                   673.34 sec.
    Max Memory :                                 1136 MB
    Average Memory :                             298.82 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   888 sec.
    Turnaround time :                            891 sec.

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

