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


Performing analysis on: 4FGL_J2331.0-2147_daily_bin1026
RA = 352.763, Dec = -21.7953
tmin = 505267201, tmax = 505526401
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='7506', job_status='RUN', time_executed='2021-09-29 22:56:28.826913', time_epoch_executed='1632981388.83' WHERE source_name='4FGL J2331.0-2147' and cadence='daily' and bin_id='1026'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/7506

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/7506/ft1_4FGL_J2331.0-2147_daily_bin1026.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/7506/ft2_4FGL_J2331.0-2147_daily_bin1026.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/7506/ft1_4FGL_J2331.0-2147_daily_bin1026.fits outfile=/scratch/kocevski/7506/ft1_filteredMKT_4FGL_J2331.0-2147_daily_bin1026.fits ra=352.763 dec=-21.7953 rad=12.0 tmin=505267201.0 tmax=505526401.0 emin=100.0 emax=100000.0 zmin=0.0 zmax=90.0 evclass=128 evtype="INDEF" convtype=-1 phasemin=0.0 phasemax=1.0 evtable="EVENTS" chatter=2 clobber=yes debug=no gui=no mode="ql"

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

Done.
real 3.56
user 3.36
sys 0.19

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/7506/ft1_filtered_4FGL_J2331.0-2147_daily_bin1026.fits" evtable="EVENTS" scfile=/scratch/kocevski/7506/ft2_4FGL_J2331.0-2147_daily_bin1026.fits sctable="SC_DATA" outfile=/scratch/kocevski/7506/ltcube_505267201_505526401_4FGL_J2331.0-2147_daily_bin1026.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/7506/ft2_4FGL_J2331.0-2147_daily_bin1026.fits
.....................!
real 11.95
user 11.58
sys 0.35

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/7506/ft1_filtered_4FGL_J2331.0-2147_daily_bin1026.fits evtable="EVENTS" scfile=/scratch/kocevski/7506/ft2_4FGL_J2331.0-2147_daily_bin1026.fits sctable="SC_DATA" expcube=/scratch/kocevski/7506/ltcube_505267201_505526401_4FGL_J2331.0-2147_daily_bin1026.fits outfile=/scratch/kocevski/7506/expmap_505267201_505526401_4FGL_J2331.0-2147_daily_bin1026.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/7506/ltcube_505267201_505526401_4FGL_J2331.0-2147_daily_bin1026.fits
.....................!
real 190.30
user 186.11
sys 3.83

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/7506/ft1_filtered_4FGL_J2331.0-2147_daily_bin1026.fits scfile=/scratch/kocevski/7506/ft2_4FGL_J2331.0-2147_daily_bin1026.fits outfile=/scratch/kocevski/7506/cmap_505267201_505526401_4FGL_J2331.0-2147_daily_bin1026.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.38
sys 0.13

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/7506/ft1_filtered_4FGL_J2331.0-2147_daily_bin1026.fits scfile=/scratch/kocevski/7506/ft2_4FGL_J2331.0-2147_daily_bin1026.fits outfile=/scratch/kocevski/7506/cmap_HighResolution_505267201_505526401_4FGL_J2331.0-2147_daily_bin1026.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/7506/ft1_filtered_4FGL_J2331.0-2147_daily_bin1026.fits evtable="EVENTS" scfile=/scratch/kocevski/7506/ft2_4FGL_J2331.0-2147_daily_bin1026.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/7506/Model_4FGL_J2331.0-2147_daily_bin1026.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/7506/ft1_filtered_4FGL_J2331.0-2147_daily_bin1026.fits.....................!
real 41.30
user 40.12
sys 1.11

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .42666       1.0000         .10000E-03   10000.    
     2 'norm      '    4.9087       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10044E-03   1.0000         .10000E-03   10000.    
     4 'norm      '    .10003E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10054E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .11801E-03   1.0000         .10000E-03   10000.    
     7 'norm      '    .59663       1.0000         .10000E-03   10000.    
     8 'Prefactor '    20.282       1.0000         .10000E-03   10000.    
     9 'Prefactor '    22.635       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    .10462E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10317E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10068E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    10.676       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10388E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    1.4333       1.0000         .10000E-03   10000.    
    18 'norm      '    5.6892       1.0000         .10000E-03   10000.    
    19 'Prefactor '    49.522       1.0000         .10000E-03   10000.    
    20 'Prefactor '    54.839       1.0000         .10000E-03   10000.    
    21 'Normalizat'    .83061       1.0000         .10000E-01   10.000    
    22 'Prefactor '    .97430       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=   4902.499     FROM MIGRAD    STATUS=CONVERGED    515 CALLS     2451 TOTAL
                     EDM=   .63E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY= 11.4%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .47806        292.65       -.38792E-04    .21863E-04
   2  norm          4.9079        2.9647        .89798E-07   -.38646E-04
   3  Prefactor     .10000E-03    25.178        .11721E-05** at limit **
   4  norm          .10000E-03    1.6468        .65678E-07** at limit **
   5  Prefactor     .10000E-03    13.426        .52775E-07** at limit **
   6  Prefactor     .10000E-03    24.161        .47685E-05** at limit **
   7  norm          .59662        .63662        .20595E-06    .72718E-03
   8  Prefactor     20.280        14.217        .16071E-07   -.41389E-04
   9  Prefactor     22.611        15.935        .58720E-06   -.14000E-04
  10  Prefactor     .10000E-03    8.0543        .70951E-07** at limit **
  11  Prefactor     .10000E-03    15.351        .11867E-07** at limit **
  12  norm          .10000E-03    2.1848        .13297E-05** at limit **
  13  Prefactor     .10000E-03    43.902        .26766E-06** at limit **
  14  Prefactor     .10000E-03    8.3028        .14570E-06** at limit **
  15  Prefactor     10.588        30.947       -.39822E-06   -.14211E-03
  16  Prefactor     .10000E-03    80.395        .27069E-06** at limit **
  17  norm          1.4320        .86245        .67092E-07   -.82461E-05
  18  norm          5.6976        6.2430        .19338E-06    .17588E-03
  19  Prefactor     49.380        53.441       -.25111E-05   -.10248E-03
  20  Prefactor     54.834        63.646        .55083E-06   -.11075E-04
  21  Normalizat    .83089        .19243       -.16022E-05   -.57830E-03
  22  Prefactor     .97406        .18976        .10692E-05   -.24946E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 0.478062
  norm       = 4.90792
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000100001
  norm       = 0.596615
  Prefactor  = 20.2803
  Prefactor  = 22.6106
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 10.588
  Prefactor  = 0.0001
  norm       = 1.43203
  norm       = 5.69761
  Prefactor  = 49.3799
  Prefactor  = 54.8335
  Normalizat = 0.830888
  Prefactor  = 0.974063
 **********
 **   18 **HESSE 
 **********

 FCN=   4902.499     FROM HESSE     STATUS=OK           344 CALLS     2795 TOTAL
                     EDM=   .15E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .47806        288.38        .58012E-02   -1.5570    
   2  norm          4.9079        2.9642        .91081E-04   -1.5265    
   3  Prefactor     .10000E-03    25.222        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  norm          .10000E-03    1.6555        .87685E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    13.516        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    24.167        .35077E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          .59662        .61601        .50792E-03   -1.5553    
   8  Prefactor     20.280        14.222        .88937E-04   -1.4807    
   9  Prefactor     22.611        15.651        .84191E-04   -1.4757    
  10  Prefactor     .10000E-03    8.0557        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    15.358        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          .10000E-03    2.2123        .20009E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    43.989        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    8.3164        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     10.588        30.936        .12262E-03   -1.5057    
  16  Prefactor     .10000E-03    80.460        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          1.4320        .89500        .39146E-04   -1.5469    
  18  norm          5.6976        6.5629        .14179E-03   -1.5231    
  19  Prefactor     49.380        53.758        .28492E-03   -1.4301    
  20  Prefactor     54.834        64.022        .54166E-04   -1.4226    
  21  Normalizat    .83089        .22819        .25179E-03   -.98933    
  22  Prefactor     .97406        .22198        .23463E-03   -.93599    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.45732e-09
Minuit parameter uncertainties:
  1  23.5956
  2  2.96424
  3  0.000101023
  4  3.24631e-07
  5  1.43387e-05
  6  0.00022633
  7  0.61602
  8  14.2241
  9  15.654
  10  2.62766e-06
  11  1.05492e-05
  12  1.36614e-05
  13  5.65002e-05
  14  9.73828e-06
  15  30.9826
  16  9.18926e-05
  17  0.895006
  18  6.56377
  19  53.8112
  20  64.1022
  21  0.228456
  22  0.222186
Done.

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

Extracting fit parameters...

4FGL J2331.0-2147
   Spectrum: LogParabola
418         norm:  1.000e-04  1.366e-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:  9.741e-01  2.222e-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:  8.309e-01  2.285e-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: 6.86e-08 ph cm-2 s-1
Energy Flux Upper Limit: 2.28e-05 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/7506/likelihoodResults_505267201_505526401_4FGL_J2331.0-2147_daily_bin1026.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) = 4902.50132051
delta logL = -0.00215659766764

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 4902.49916107
delta logL = 2.84229645331e-06

Fit tolerance = 1e-08

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

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

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.
 MIGRAD TERMINATED WITHOUT CONVERGENCE.

 FCN=   4902.499     FROM MIGRAD    STATUS=FAILED        87 CALLS      269 TOTAL
                     EDM=   .23E-05    STRATEGY= 1      ERR MATRIX APPROXIMATE

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10203E-03    4.0251        .16187E-02** at limit **
   2  alpha         2.9825        3.8003        .16576E-01   -.85890E-05
   3  Normalizat    .83089        .21740        .25179E-03    .14295E-03
   4  Prefactor     .97406        .21897        .23463E-03    .11227E-03
                               ERR DEF=  .500    
 START SIMPLEX MINIMIZATION.    CONVERGENCE WHEN EDM .LT.   .20E-04
 SIMPLEX MINIMIZATION HAS CONVERGED.

 FCN=   4902.499     FROM SIMPLEX   STATUS=UNCHANGED    107 CALLS      376 TOTAL
                     EDM=   .13E-04    STRATEGY= 1      ERR MATRIX APPROXIMATE

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10203E-03    4.0251        .21580E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  alpha         2.9825        3.8003        .11592E-02    .19421    
   3  Normalizat    .83089        .21740        .11214E-03   -.98933    
   4  Prefactor     .97406        .21897        .10870E-03   -.93599    
                               ERR DEF=  .500    

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   4902.499     FROM MIGRAD    STATUS=CONVERGED     34 CALLS      410 TOTAL
                     EDM=   .97E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    2.8979        .32373E-03** at limit **
   2  alpha         3.0737        3.1243        .33152E-01    .14746E-06
   3  Normalizat    .83089        .21760        .10072E-04    .35444E-04
   4  Prefactor     .97406        .21921        .93853E-05    .32948E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  alpha      = 3.07366
  Normalizat = 0.830892
  Prefactor  = 0.974059
 **********
 **   18 **HESSE 
 **********

 FCN=   4902.499     FROM HESSE     STATUS=OK            23 CALLS      433 TOTAL
                     EDM=   .10E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    2.8792        .64746E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  alpha         3.0737        3.1743        .13261E-02    .23153    
   3  Normalizat    .83089        .21821        .20143E-05   -.98933    
   4  Prefactor     .97406        .21979        .18771E-05   -.93599    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.02533e-10
Minuit parameter uncertainties:
  1  2.37536e-05
  2  151.317
  3  0.218438
  4  0.219991
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/7506': 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) = 4902.49915868
delta logL = 5.23712242284e-06

Extracting fit parameters...

4FGL J2331.0-2147
   Spectrum: LogParabola
418         norm:  1.000e-04  2.375e-05  1.000e-04  1.000e+04 ( 1.000e-12)
419        alpha:  3.074e+00  1.513e+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:  9.741e-01  2.200e-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:  8.309e-01  2.184e-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/7506/cmap_HighResolution_505267201_505526401_4FGL_J2331.0-2147_daily_bin1026.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='2.28e-05', job_status='DONE', photon_flux_upper_limit='6.86e-08', time_completed='2021-09-29 23:05:45.424569', job_id='7506', GAL2='0.97', fit_tolerance='1e-08', EG2='0.83', EG='0.83', time_epoch_completed='1632981945.42', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.97', dlogl='5.24e-06', ts2='-0.00', photon_index_error='0.00', photon_index='2.43' WHERE bin_id='1026' AND source_name='4FGL J2331.0-2147' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep 29 23:05:45 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0103>
Subject: Job 7506: <4FGL_J2331.0-2147_daily_bin1026> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2331.0-2147_daily_bin1026 352.763 -21.7953 505267201 505526401 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 :                                   548.00 sec.
    Max Memory :                                 1093 MB
    Average Memory :                             255.84 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   606 sec.
    Turnaround time :                            607 sec.

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

