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


Performing analysis on: 4FGL_J2331.0-2147_daily_bin1240
RA = 352.763, Dec = -21.7953
tmin = 560736001, tmax = 560995201
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='7854', job_status='RUN', time_executed='2021-09-29 22:57:01.245183', time_epoch_executed='1632981421.25' WHERE source_name='4FGL J2331.0-2147' and cadence='daily' and bin_id='1240'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/7854

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/7854/ft1_4FGL_J2331.0-2147_daily_bin1240.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/7854/ft2_4FGL_J2331.0-2147_daily_bin1240.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/7854/ft1_4FGL_J2331.0-2147_daily_bin1240.fits outfile=/scratch/kocevski/7854/ft1_filteredMKT_4FGL_J2331.0-2147_daily_bin1240.fits ra=352.763 dec=-21.7953 rad=12.0 tmin=560736001.0 tmax=560995201.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.82
user 3.59
sys 0.21

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/7854/ft1_filtered_4FGL_J2331.0-2147_daily_bin1240.fits" evtable="EVENTS" scfile=/scratch/kocevski/7854/ft2_4FGL_J2331.0-2147_daily_bin1240.fits sctable="SC_DATA" outfile=/scratch/kocevski/7854/ltcube_560736001_560995201_4FGL_J2331.0-2147_daily_bin1240.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/7854/ft2_4FGL_J2331.0-2147_daily_bin1240.fits
.....................!
real 14.76
user 14.34
sys 0.36

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/7854/ft1_filtered_4FGL_J2331.0-2147_daily_bin1240.fits evtable="EVENTS" scfile=/scratch/kocevski/7854/ft2_4FGL_J2331.0-2147_daily_bin1240.fits sctable="SC_DATA" expcube=/scratch/kocevski/7854/ltcube_560736001_560995201_4FGL_J2331.0-2147_daily_bin1240.fits outfile=/scratch/kocevski/7854/expmap_560736001_560995201_4FGL_J2331.0-2147_daily_bin1240.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/7854/ltcube_560736001_560995201_4FGL_J2331.0-2147_daily_bin1240.fits
.....................!
real 191.94
user 186.16
sys 5.12

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/7854/ft1_filtered_4FGL_J2331.0-2147_daily_bin1240.fits scfile=/scratch/kocevski/7854/ft2_4FGL_J2331.0-2147_daily_bin1240.fits outfile=/scratch/kocevski/7854/cmap_560736001_560995201_4FGL_J2331.0-2147_daily_bin1240.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.38
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/7854/ft1_filtered_4FGL_J2331.0-2147_daily_bin1240.fits scfile=/scratch/kocevski/7854/ft2_4FGL_J2331.0-2147_daily_bin1240.fits outfile=/scratch/kocevski/7854/cmap_HighResolution_560736001_560995201_4FGL_J2331.0-2147_daily_bin1240.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.56
user 0.40
sys 0.15

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/7854/ft1_filtered_4FGL_J2331.0-2147_daily_bin1240.fits evtable="EVENTS" scfile=/scratch/kocevski/7854/ft2_4FGL_J2331.0-2147_daily_bin1240.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/7854/Model_4FGL_J2331.0-2147_daily_bin1240.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/7854/ft1_filtered_4FGL_J2331.0-2147_daily_bin1240.fits.....................!
real 74.60
user 73.26
sys 1.16

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    11.774       1.0000         .10000E-03   10000.    
     2 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    53.964       1.0000         .10000E-03   10000.    
     4 'norm      '    .10003E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10011E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    7.3618       1.0000         .10000E-03   10000.    
     7 'norm      '    1.6997       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .99733       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      '    .54737E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10008E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    19.000       1.0000         .10000E-03   10000.    
    15 'Prefactor '    11.736       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    .21679       1.0000         .10000E-03   10000.    
    18 'norm      '    10.229       1.0000         .10000E-03   10000.    
    19 'Prefactor '    4.4702       1.0000         .10000E-03   10000.    
    20 'Prefactor '    32.535       1.0000         .10000E-03   10000.    
    21 'Normalizat'    1.0874       1.0000         .10000E-01   10.000    
    22 'Prefactor '    .76198       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=   10545.85     FROM MIGRAD    STATUS=CONVERGED    466 CALLS     2359 TOTAL
                     EDM=   .72E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.5%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          11.773        17.093       -.21477E-05    .53278E-05
   2  norm          .10000E-03    .94056        .20586E-06** at limit **
   3  Prefactor     53.960        35.866       -.38165E-05   -.21589E-04
   4  norm          .10000E-03    1.1216        .13369E-07** at limit **
   5  Prefactor     .10000E-03    4.8004       -.17028E-06** at limit **
   6  Prefactor     7.3618        8.7322        .97995E-06   -.11570E-03
   7  norm          1.6991        .65250       -.73951E-07    .84716E-03
   8  Prefactor     .10000E-03    5.7948       -.19111E-06** at limit **
   9  Prefactor     1.0022        .67847       -.11483E-06   -.91154E-03
  10  Prefactor     .10000E-03    5.7580        .80180E-06** at limit **
  11  Prefactor     .10000E-03    8.7207       -.13190E-05** at limit **
  12  norm          .10013E-03    .66391       -.12589E-05** at limit **
  13  Prefactor     .10000E-03    15.557       -.13714E-06** at limit **
  14  Prefactor     18.999        10.400        .37989E-06    .91561E-04
  15  Prefactor     11.750        17.222        .20103E-04    .40817E-03
  16  Prefactor     .10000E-03    15.513        .77445E-06** at limit **
  17  norm          .21703        .25537       -.79051E-08    .52499E-04
  18  norm          10.227        3.7117        .11981E-06    .17727E-03
  19  Prefactor     4.4666        17.615       -.77239E-05    .43039E-05
  20  Prefactor     32.532        30.840       -.35764E-05    .10741E-04
  21  Normalizat    1.0874        .12957       -.13206E-05    .75440E-03
  22  Prefactor     .76202        .12603        .30722E-06    .42200E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 11.7726
  norm       = 0.0001
  Prefactor  = 53.9597
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 7.36179
  norm       = 1.69908
  Prefactor  = 0.0001
  Prefactor  = 1.00216
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.000100133
  Prefactor  = 0.0001
  Prefactor  = 18.9991
  Prefactor  = 11.7504
  Prefactor  = 0.0001
  norm       = 0.21703
  norm       = 10.227
  Prefactor  = 4.46664
  Prefactor  = 32.5323
  Normalizat = 1.08735
  Prefactor  = 0.762022
 **********
 **   18 **HESSE 
 **********

 FCN=   10545.85     FROM HESSE     STATUS=OK           350 CALLS     2709 TOTAL
                     EDM=   .11E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          11.773        17.091        .11675E-03   -1.5022    
   2  norm          .10000E-03    .95891        .19324E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     53.960        35.703        .54601E-04   -1.4237    
   4  norm          .10000E-03    1.1398        .10604E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    4.8058        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     7.3618        9.5514        .73911E-03   -1.5165    
   7  norm          1.6991        .71715        .37683E-04   -1.5447    
   8  Prefactor     .10000E-03    5.8409        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     1.0022        9.1252        .26312E-02   -1.5508    
  10  Prefactor     .10000E-03    5.7727        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    8.7278        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          .10013E-03    16.509        .15819E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    15.578        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     18.999        10.391        .91887E-04   -1.4836    
  15  Prefactor     11.750        17.247        .11694E-03   -1.5022    
  16  Prefactor     .10000E-03    15.516        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          .21703        .22718        .50197E-03   -1.5615    
  18  norm          10.227        3.5917        .10468E-03   -1.5068    
  19  Prefactor     4.4666        17.582        .19044E-03   -1.5285    
  20  Prefactor     32.532        30.940        .70250E-04   -1.4567    
  21  Normalizat    1.0874        .15148        .21934E-03   -.90159    
  22  Prefactor     .76202        .14693        .25871E-03   -1.0114    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.12632e-08
Minuit parameter uncertainties:
  1  17.098
  2  1.83005e-05
  3  35.7168
  4  1.23782e-06
  5  2.24935e-06
  6  9.55335
  7  0.717156
  8  1.16612e-05
  9  6.04902
  10  4.76053e-07
  11  5.26463e-06
  12  0.00296748
  13  1.21337e-05
  14  10.3916
  15  17.254
  16  3.39216e-05
  17  0.227178
  18  3.59179
  19  17.6019
  20  30.9551
  21  0.151539
  22  0.147009
Done.

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

Extracting fit parameters...

4FGL J2331.0-2147
   Spectrum: LogParabola
418         norm:  1.001e-04  2.967e-03  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.620e-01  1.470e-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.087e+00  1.515e-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: 4.73e-08 ph cm-2 s-1
Energy Flux Upper Limit: 1.57e-05 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/7854/likelihoodResults_560736001_560995201_4FGL_J2331.0-2147_daily_bin1240.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) = 10545.8522188
delta logL = -0.00029353442369

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 10545.8519281
delta logL = -2.78676088783e-06

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .16318E-03   1.0000         .10000E-03   10000.    
     2 'alpha     '    2.3589       1.0000          .0000       5.0000    
     3 'Normalizat'    1.0871       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .76230       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=   10545.85     FROM MIGRAD    STATUS=FAILED       103 CALLS      271 TOTAL
                     EDM=   .11E-06    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10009E-03    1272.8        .17472E-02** at limit **
   2  alpha         2.2615        2.6104        .16494        .27240E-06
   3  Normalizat    1.0874        .24740E-01    .21934E-03    .27989E-05
   4  Prefactor     .76202        .25001E-01    .25871E-03    .50976E-05
                               ERR DEF=  .500    
 START SIMPLEX MINIMIZATION.    CONVERGENCE WHEN EDM .LT.   .20E-04
 SIMPLEX MINIMIZATION HAS CONVERGED.

 FCN=   10545.85     FROM SIMPLEX   STATUS=UNCHANGED    161 CALLS      432 TOTAL
                     EDM=   .80E-05    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10009E-03    1272.8        .67672E-03** at limit **
   2  alpha         2.2615        2.6104        .21112E-05    .27240E-06
   3  Normalizat    1.0874        .24740E-01    .48713E-07    .27989E-05
   4  Prefactor     .76202        .25001E-01    .35952E-07    .50976E-05
                               ERR DEF=  .500    

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   10545.85     FROM MIGRAD    STATUS=CONVERGED     28 CALLS      460 TOTAL
                     EDM=   .27E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10003E-03    23.949        .69886E-04** at limit **
   2  alpha         2.2645        3.8671        .65976E-02    .67548E-06
   3  Normalizat    1.0874        .14393        .87737E-05    .12958E-04
   4  Prefactor     .76202        .14529        .10348E-04    .13183E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 0.000100033
  alpha      = 2.26453
  Normalizat = 1.08735
  Prefactor  = 0.762023
 **********
 **   18 **HESSE 
 **********

 FCN=   10545.85     FROM HESSE     STATUS=OK            23 CALLS      483 TOTAL
                     EDM=   .27E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10003E-03    23.942        .13977E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  alpha         2.2645        3.8675        .13195E-02   -.94327E-01
   3  Normalizat    1.0874        .14373        .17547E-05   -.90159    
   4  Prefactor     .76202        .14505        .20696E-05   -1.0114    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.73989e-09
Minuit parameter uncertainties:
  1  0.00177659
  2  136.55
  3  0.143779
  4  0.14512
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/7854': 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) = 10545.8519244
delta logL = 8.60192812979e-07

Extracting fit parameters...

4FGL J2331.0-2147
   Spectrum: LogParabola
418         norm:  1.000e-04  1.777e-03  1.000e-04  1.000e+04 ( 1.000e-12)
419        alpha:  2.265e+00  1.365e+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.620e-01  1.451e-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.087e+00  1.438e-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 -1.000e-01 [aplpy.core]
INFO: Auto-setting vmax to  1.110e+00 [aplpy.core]
Saving /scratch/kocevski/7854/cmap_HighResolution_560736001_560995201_4FGL_J2331.0-2147_daily_bin1240.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.57e-05', job_status='DONE', photon_flux_upper_limit='4.73e-08', time_completed='2021-09-29 23:11:17.174260', job_id='7854', GAL2='0.76', fit_tolerance='1e-08', EG2='1.09', EG='1.09', time_epoch_completed='1632982277.17', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.76', dlogl='8.60e-07', ts2='-0.00', photon_index_error='0.00', photon_index='2.43' WHERE bin_id='1240' AND source_name='4FGL J2331.0-2147' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep 29 23:11:17 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0237>
Subject: Job 7854: <4FGL_J2331.0-2147_daily_bin1240> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2331.0-2147_daily_bin1240 352.763 -21.7953 560736001 560995201 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 :                                   842.35 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             369.86 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   905 sec.
    Turnaround time :                            907 sec.

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

