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


Performing analysis on: 4FGL_J2331.0-2147_daily_bin1078
RA = 352.763, Dec = -21.7953
tmin = 518745601, tmax = 519004801
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='7594', job_status='RUN', time_executed='2021-09-29 22:57:59.998687', time_epoch_executed='1632981480.0' WHERE source_name='4FGL J2331.0-2147' and cadence='daily' and bin_id='1078'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/7594

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/7594/ft1_4FGL_J2331.0-2147_daily_bin1078.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/7594/ft2_4FGL_J2331.0-2147_daily_bin1078.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/7594/ft1_4FGL_J2331.0-2147_daily_bin1078.fits outfile=/scratch/kocevski/7594/ft1_filteredMKT_4FGL_J2331.0-2147_daily_bin1078.fits ra=352.763 dec=-21.7953 rad=12.0 tmin=518745601.0 tmax=519004801.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 4.34
user 4.13
sys 0.20

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/7594/ft1_filtered_4FGL_J2331.0-2147_daily_bin1078.fits" evtable="EVENTS" scfile=/scratch/kocevski/7594/ft2_4FGL_J2331.0-2147_daily_bin1078.fits sctable="SC_DATA" outfile=/scratch/kocevski/7594/ltcube_518745601_519004801_4FGL_J2331.0-2147_daily_bin1078.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/7594/ft2_4FGL_J2331.0-2147_daily_bin1078.fits
.....................!
real 13.84
user 13.44
sys 0.36

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/7594/ft1_filtered_4FGL_J2331.0-2147_daily_bin1078.fits evtable="EVENTS" scfile=/scratch/kocevski/7594/ft2_4FGL_J2331.0-2147_daily_bin1078.fits sctable="SC_DATA" expcube=/scratch/kocevski/7594/ltcube_518745601_519004801_4FGL_J2331.0-2147_daily_bin1078.fits outfile=/scratch/kocevski/7594/expmap_518745601_519004801_4FGL_J2331.0-2147_daily_bin1078.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/7594/ltcube_518745601_519004801_4FGL_J2331.0-2147_daily_bin1078.fits
.....................!
real 191.69
user 185.66
sys 5.71

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

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

This is gtbin version HEAD
real 0.53
user 0.37
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/7594/ft1_filtered_4FGL_J2331.0-2147_daily_bin1078.fits scfile=/scratch/kocevski/7594/ft2_4FGL_J2331.0-2147_daily_bin1078.fits outfile=/scratch/kocevski/7594/cmap_HighResolution_518745601_519004801_4FGL_J2331.0-2147_daily_bin1078.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/7594/ft1_filtered_4FGL_J2331.0-2147_daily_bin1078.fits evtable="EVENTS" scfile=/scratch/kocevski/7594/ft2_4FGL_J2331.0-2147_daily_bin1078.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/7594/Model_4FGL_J2331.0-2147_daily_bin1078.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/7594/ft1_filtered_4FGL_J2331.0-2147_daily_bin1078.fits.....................!
real 37.42
user 36.11
sys 1.21

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10038E-03   1.0000         .10000E-03   10000.    
     2 'norm      '    2.0998       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10098E-03   1.0000         .10000E-03   10000.    
     4 'norm      '    6.7622       1.0000         .10000E-03   10000.    
     5 'Prefactor '    2.4236       1.0000         .10000E-03   10000.    
     6 'Prefactor '    34.613       1.0000         .10000E-03   10000.    
     7 'norm      '    .12673       1.0000         .10000E-03   10000.    
     8 'Prefactor '    6.0916       1.0000         .10000E-03   10000.    
     9 'Prefactor '    4.9719       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10034E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    89.512       1.0000         .10000E-03   10000.    
    12 'norm      '    .85941       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10495E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    14.538       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10053E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10055E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    4.5504       1.0000         .10000E-03   10000.    
    18 'norm      '    .10133E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10288E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    153.04       1.0000         .10000E-03   10000.    
    21 'Normalizat'    .71124       1.0000         .10000E-01   10.000    
    22 'Prefactor '    .83210       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=   4038.220     FROM MIGRAD    STATUS=CONVERGED    813 CALLS     2725 TOTAL
                     EDM=   .20E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    15.640        .18142E-02** at limit **
   2  norm          2.1001        2.2215        .94347E-04    .12454E-03
   3  Prefactor     .10000E-03    32.648        .18142E-02** at limit **
   4  norm          6.7638        6.2223        .13557E-03    .35569E-03
   5  Prefactor     2.3669        127.67        .26289E-03    .16227E-03
   6  Prefactor     34.641        27.742        .68115E-04    .10061E-02
   7  norm          .12446        5.7101        .10688E-02    .15721E-02
   8  Prefactor     6.0935        7.7971        .81335E-03   -.50131E-04
   9  Prefactor     4.9695        12.871        .18036E-03    .26190E-03
  10  Prefactor     .10000E-03    7.3568        .16834E-02** at limit **
  11  Prefactor     89.465        75.208        .21235E-03   -.30999E-04
  12  norm          .86166        2.0869        .15321E-02    .19198E-03
  13  Prefactor     .10000E-03    29.122        .18142E-02** at limit **
  14  Prefactor     14.529        19.425        .10505E-03   -.49242E-05
  15  Prefactor     .10000E-03    11.725        .18142E-02** at limit **
  16  Prefactor     .10000E-03    39.161        .18142E-02** at limit **
  17  norm          4.5509        1.0624        .18872E-04    .19037E-03
  18  norm          .10000E-03    11.377        .36285E-03** at limit **
  19  Prefactor     .10000E-03    22.610        .18142E-02** at limit **
  20  Prefactor     152.98        83.092        .16292E-03   -.65022E-04
  21  Normalizat    .71147        .23371        .25912E-03    .60349E-04
  22  Prefactor     .83182        .22384        .23844E-03    .21535E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  norm       = 2.1001
  Prefactor  = 0.0001
  norm       = 6.76378
  Prefactor  = 2.36688
  Prefactor  = 34.6412
  norm       = 0.124461
  Prefactor  = 6.09347
  Prefactor  = 4.96947
  Prefactor  = 0.0001
  Prefactor  = 89.4648
  norm       = 0.861663
  Prefactor  = 0.0001
  Prefactor  = 14.5294
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 4.55086
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 152.977
  Normalizat = 0.711466
  Prefactor  = 0.831816
 **********
 **   18 **HESSE 
 **********

 FCN=   4038.220     FROM HESSE     STATUS=OK           324 CALLS     3049 TOTAL
                     EDM=   .14E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    15.640        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          2.1001        2.2210        .37739E-05   -1.5418    
   3  Prefactor     .10000E-03    32.649        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  norm          6.7638        6.2200        .54227E-05   -1.5188    
   5  Prefactor     2.3669        125.51        .10516E-04   -1.5400    
   6  Prefactor     34.641        26.043        .13623E-04   -1.4530    
   7  norm          .12446        4.4083        .42753E-04   -1.5637    
   8  Prefactor     6.0935        7.7967        .32534E-04   -1.5214    
   9  Prefactor     4.9695        12.790        .72144E-05   -1.5262    
  10  Prefactor     .10000E-03    7.3568        .33669E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     89.465        75.209        .84939E-05   -1.3813    
  12  norm          .86166        2.0849        .61282E-04   -1.5522    
  13  Prefactor     .10000E-03    29.123        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     14.529        19.425        .42019E-05   -1.4945    
  15  Prefactor     .10000E-03    11.725        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    39.161        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          4.5509        1.0624        .37743E-05   -1.5281    
  18  norm          .10000E-03    11.378        .72569E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    22.611        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     152.98        83.091        .32584E-04   -1.3228    
  21  Normalizat    .71147        .23294        .10365E-04   -1.0344    
  22  Prefactor     .83182        .22294        .47689E-04   -.98566    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.37433e-09
Minuit parameter uncertainties:
  1  1.38699e-05
  2  2.22108
  3  4.55854e-05
  4  6.2206
  5  34.5467
  6  26.0514
  7  1.48095
  8  7.79795
  9  12.7975
  10  9.96317e-07
  11  75.2893
  12  2.08511
  13  2.17164e-06
  14  19.4334
  15  7.24005e-06
  16  5.49194e-05
  17  1.06238
  18  1.98559e-05
  19  1.42508e-05
  20  83.1544
  21  0.233264
  22  0.22318
Done.

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

Extracting fit parameters...

4FGL J2331.0-2147
   Spectrum: LogParabola
418         norm:  8.617e-01  2.085e+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:  8.318e-01  2.232e-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:  7.115e-01  2.333e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/7594/likelihoodResults_518745601_519004801_4FGL_J2331.0-2147_daily_bin1078.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) = 4037.99771729
delta logL = 0.222517603743

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 4037.99751819
delta logL = 0.222716704944

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    1.6022       1.0000         .10000E-03   10000.    
     2 'alpha     '    1.6012       1.0000          .0000       5.0000    
     3 'Normalizat'    .71956       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .82361       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=   4037.998     FROM MIGRAD    STATUS=CONVERGED     43 CALLS      226 TOTAL
                     EDM=   .14E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          1.6022        2.6393        .83722E-02    .17021E-03
   2  alpha         1.6011        1.0466        .45153E-01   -.38269E-05
   3  Normalizat    .71956        .18895        .42551E-01    .12684E-04
   4  Prefactor     .82361        .18821        .44024E-01    .71309E-05
                               ERR DEF=  .500    
Final values: 
  norm       = 1.6022
  alpha      = 1.60107
  Normalizat = 0.719563
  Prefactor  = 0.823613
 **********
 **   18 **HESSE 
 **********

 FCN=   4037.998     FROM HESSE     STATUS=OK            31 CALLS      257 TOTAL
                     EDM=   .18E-13    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          1.6022        2.6233        .12726E-03   -1.5455    
   2  alpha         1.6011        1.0532        .18061E-02   -.36781    
   3  Normalizat    .71956        .21633        .25772E-03   -1.0313    
   4  Prefactor     .82361        .21560        .23934E-03   -.98864    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.82491e-14
Minuit parameter uncertainties:
  1  2.62352
  2  1.09275
  3  0.216589
  4  0.21582
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/7594': 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) = 4037.99751818
delta logL = 0.222716713346

Extracting fit parameters...

4FGL J2331.0-2147
   Spectrum: LogParabola
418         norm:  1.602e+00  2.624e+00  1.000e-04  1.000e+04 ( 1.000e-12)
419        alpha:  1.601e+00  1.093e+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:  8.236e-01  2.158e-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:  7.196e-01  2.166e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 0.23
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/7594/cmap_HighResolution_518745601_519004801_4FGL_J2331.0-2147_daily_bin1078.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='2.63e-05', job_status='DONE', photon_flux_upper_limit='7.91e-08', time_completed='2021-09-29 23:06:52.297013', job_id='7594', GAL2='0.82', fit_tolerance='1e-08', EG2='0.72', EG='0.71', time_epoch_completed='1632982012.3', return_code2='0', ts='0.23', comment='SUCCESS', return_code='0', GAL='0.83', dlogl='2.23e-01', ts2='0.68', photon_index_error='0.00', photon_index='2.43' WHERE bin_id='1078' AND source_name='4FGL J2331.0-2147' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep 29 23:06:52 PDT 2021


------------------------------------------------------------
Sender: LSF System <scs@bullet0119>
Subject: Job 7594: <4FGL_J2331.0-2147_daily_bin1078> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2331.0-2147_daily_bin1078 352.763 -21.7953 518745601 519004801 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 :                                   522.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             325.00 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   666 sec.
    Turnaround time :                            666 sec.

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

