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


Performing analysis on: 4FGL_J2331.0-2147_daily_bin179
RA = 352.763, Dec = -21.7953
tmin = 285724801, tmax = 285984001
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='3189', job_status='RUN', time_executed='2021-09-29 22:44:46.135691', time_epoch_executed='1632980686.14' WHERE source_name='4FGL J2331.0-2147' and cadence='daily' and bin_id='179'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/3189

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

Retrieving the FT1 file...

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

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

Retrieving 48 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/3189/ft1_4FGL_J2331.0-2147_daily_bin179.fits


Retrieving the FT1 file...

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

Retrieving 48 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/3189/ft2_4FGL_J2331.0-2147_daily_bin179.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/3189/ft1_4FGL_J2331.0-2147_daily_bin179.fits outfile=/scratch/kocevski/3189/ft1_filteredMKT_4FGL_J2331.0-2147_daily_bin179.fits ra=352.763 dec=-21.7953 rad=12.0 tmin=285724801.0 tmax=285984001.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.20
user 3.97
sys 0.18

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/3189/ft2_4FGL_J2331.0-2147_daily_bin179.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/3189/ft1_filteredMKT_4FGL_J2331.0-2147_daily_bin179.fits evtable="EVENTS" outfile="/scratch/kocevski/3189/ft1_filtered_4FGL_J2331.0-2147_daily_bin179.fits" apply_filter=yes overwrite=yes header_obstimes=yes tstart=0.0 tstop=0.0 gtifile="default" chatter=3 clobber=yes debug=no gui=no mode="ql"

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

This is gtmktime version HEAD
Applying GTI filter:
IN_SAA!=T && LIVETIME>0 && gtifilter('/nfs/farm/g/glast/g/LCRepository/Likelihood/GTIs/nogrb.gti',(START+STOP)/2) && (angsep(RA_SUN,DEC_SUN,RA_ZENITH,DEC_ZENITH)>115 || gtifilter('/nfs/farm/g/glast/g/LCRepository/Likelihood/GTIs/nosolarflares.gti',(START+STOP)/2))
real 0.49
user 0.33
sys 0.15

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/3189/ft1_filtered_4FGL_J2331.0-2147_daily_bin179.fits" evtable="EVENTS" scfile=/scratch/kocevski/3189/ft2_4FGL_J2331.0-2147_daily_bin179.fits sctable="SC_DATA" outfile=/scratch/kocevski/3189/ltcube_285724801_285984001_4FGL_J2331.0-2147_daily_bin179.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/3189/ft2_4FGL_J2331.0-2147_daily_bin179.fits
.....................!
real 11.67
user 11.28
sys 0.34

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/3189/ft1_filtered_4FGL_J2331.0-2147_daily_bin179.fits evtable="EVENTS" scfile=/scratch/kocevski/3189/ft2_4FGL_J2331.0-2147_daily_bin179.fits sctable="SC_DATA" expcube=/scratch/kocevski/3189/ltcube_285724801_285984001_4FGL_J2331.0-2147_daily_bin179.fits outfile=/scratch/kocevski/3189/expmap_285724801_285984001_4FGL_J2331.0-2147_daily_bin179.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/3189/ltcube_285724801_285984001_4FGL_J2331.0-2147_daily_bin179.fits
.....................!
real 191.52
user 186.46
sys 4.68

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/3189/ft1_filtered_4FGL_J2331.0-2147_daily_bin179.fits scfile=/scratch/kocevski/3189/ft2_4FGL_J2331.0-2147_daily_bin179.fits outfile=/scratch/kocevski/3189/cmap_285724801_285984001_4FGL_J2331.0-2147_daily_bin179.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.58
user 0.37
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/3189/ft1_filtered_4FGL_J2331.0-2147_daily_bin179.fits scfile=/scratch/kocevski/3189/ft2_4FGL_J2331.0-2147_daily_bin179.fits outfile=/scratch/kocevski/3189/cmap_HighResolution_285724801_285984001_4FGL_J2331.0-2147_daily_bin179.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/3189/ft1_filtered_4FGL_J2331.0-2147_daily_bin179.fits evtable="EVENTS" scfile=/scratch/kocevski/3189/ft2_4FGL_J2331.0-2147_daily_bin179.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/3189/Model_4FGL_J2331.0-2147_daily_bin179.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/3189/ft1_filtered_4FGL_J2331.0-2147_daily_bin179.fits.....................!
real 48.83
user 47.51
sys 1.17

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .85015       1.0000         .10000E-03   10000.    
     2 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10026E-03   1.0000         .10000E-03   10000.    
     4 'norm      '    3.4121       1.0000         .10000E-03   10000.    
     5 'Prefactor '    11.891       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .51070       1.0000         .10000E-03   10000.    
     7 'norm      '    .10003E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10182E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10048E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    48.321       1.0000         .10000E-03   10000.    
    12 'norm      '    1.9165       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10011E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    29.091       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    5.6973       1.0000         .10000E-03   10000.    
    18 'norm      '    2.3637       1.0000         .10000E-03   10000.    
    19 'Prefactor '    35.017       1.0000         .10000E-03   10000.    
    20 'Prefactor '    26.344       1.0000         .10000E-03   10000.    
    21 'Normalizat'    .48673       1.0000         .10000E-01   10.000    
    22 'Prefactor '    1.2901       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=   6472.304     FROM MIGRAD    STATUS=CONVERGED    844 CALLS     2775 TOTAL
                     EDM=   .15E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .73936        219.65        .79287E-02    .54537E-04
   2  norm          .10000E-03    .87444        .73022E-03** at limit **
   3  Prefactor     .10000E-03    32.365        .18142E-02** at limit **
   4  norm          3.4127        3.8239        .73386E-03    .65497E-03
   5  Prefactor     11.896        17.596        .11617E-03    .66990E-03
   6  Prefactor     .51206        50.436        .26839E-02    .31456E-03
   7  norm          .10000E-03    .24682        .66284E-03** at limit **
   8  Prefactor     .10000E-03    3.8971        .15474E-02** at limit **
   9  Prefactor     .10000E-03    12.956        .32476E-02** at limit **
  10  Prefactor     .10000E-03    30.340        .18142E-02** at limit **
  11  Prefactor     48.315        52.805        .57686E-04    .68978E-04
  12  norm          1.9173        2.5564        .13936E-03    .34672E-04
  13  Prefactor     .10000E-03    20.071        .18142E-02** at limit **
  14  Prefactor     .10000E-03    4.7436        .17097E-02** at limit **
  15  Prefactor     29.085        25.520        .74281E-04    .85402E-04
  16  Prefactor     .10001E-03    25.730        .18142E-02** at limit **
  17  norm          5.6973        .94169        .27898E-04    .11614E-03
  18  norm          2.3637        3.6825        .17157E-03   -.31409E-04
  19  Prefactor     35.008        51.108        .67722E-04    .67888E-04
  20  Prefactor     26.341        42.191        .78049E-04    .42096E-04
  21  Normalizat    .48676        .19533        .30837E-03    .30006E-03
  22  Prefactor     1.2901        .19805        .21106E-03    .31519E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 0.739362
  norm       = 0.0001
  Prefactor  = 0.000100004
  norm       = 3.41272
  Prefactor  = 11.8965
  Prefactor  = 0.512063
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 48.3154
  norm       = 1.91726
  Prefactor  = 0.000100001
  Prefactor  = 0.0001
  Prefactor  = 29.085
  Prefactor  = 0.000100006
  norm       = 5.69726
  norm       = 2.36366
  Prefactor  = 35.0083
  Prefactor  = 26.3409
  Normalizat = 0.486763
  Prefactor  = 1.29008
 **********
 **   18 **HESSE 
 **********

 FCN=   6472.304     FROM HESSE     STATUS=OK           324 CALLS     3099 TOTAL
                     EDM=   .12E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .73936        226.73        .31715E-03   -1.5536    
   2  norm          .10000E-03    .87451        .14604E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    32.371        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  norm          3.4127        3.7919        .29354E-04   -1.5338    
   5  Prefactor     11.896        16.089        .23234E-04   -1.5018    
   6  Prefactor     .51206        40.525        .10736E-03   -1.5565    
   7  norm          .10000E-03    .24688        .13257E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    3.8977        .30947E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    13.021        .64952E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    30.349        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     48.315        52.786        .11537E-04   -1.4317    
  12  norm          1.9173        2.5554        .55742E-05   -1.5431    
  13  Prefactor     .10000E-03    20.073        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    4.7438        .34193E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     29.085        25.511        .29712E-05   -1.4629    
  16  Prefactor     .10001E-03    25.731        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          5.6973        .94134        .11159E-05   -1.5231    
  18  norm          2.3637        3.6816        .68628E-05   -1.5400    
  19  Prefactor     35.008        51.078        .13544E-04   -1.4524    
  20  Prefactor     26.341        42.186        .31220E-05   -1.4681    
  21  Normalizat    .48676        .19314        .12335E-04   -1.1303    
  22  Prefactor     1.2901        .19724        .42212E-04   -.83602    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.15451e-09
Minuit parameter uncertainties:
  1  25.9926
  2  6.90771e-07
  3  0.000709691
  4  3.79217
  5  16.0951
  6  9.11623
  7  4.09018e-06
  8  6.14134e-06
  9  7.34369e-05
  10  0.000144487
  11  52.8374
  12  2.55559
  13  0.000227264
  14  5.19115e-06
  15  25.5207
  16  0.000756082
  17  0.941342
  18  3.6819
  19  51.142
  20  42.2341
  21  0.19341
  22  0.19735
Done.

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

Extracting fit parameters...

4FGL J2331.0-2147
   Spectrum: LogParabola
418         norm:  1.917e+00  2.556e+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.290e+00  1.974e-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:  4.868e-01  1.934e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/3189/likelihoodResults_285724801_285984001_4FGL_J2331.0-2147_daily_bin179.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) = 6472.00966126
delta logL = 0.294425942535

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 6471.96073341
delta logL = 0.343353793912

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .76650       1.0000         .10000E-03   10000.    
     2 'alpha     '    3.4560       1.0000          .0000       5.0000    
     3 'Normalizat'    .45654       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.3108       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=   6471.961     FROM MIGRAD    STATUS=CONVERGED     53 CALLS      245 TOTAL
                     EDM=   .14E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .76417        10.103        .12314E-01    .11376E-02
   2  alpha         3.4581        4.0792        .42092        .56875E-04
   3  Normalizat    .45666        .31545E-01    .71777E-01    .77124E-04
   4  Prefactor     1.3106        .33729E-01    .47409E-01   -.35386E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 0.764168
  alpha      = 3.45813
  Normalizat = 0.456656
  Prefactor  = 1.31061
 **********
 **   18 **HESSE 
 **********

 FCN=   6471.961     FROM HESSE     STATUS=NOT POSDEF    35 CALLS      280 TOTAL
                     EDM=   .15E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .76417        31.889        .64205E-03   -1.5533    
   2  alpha         3.4581        3.1363        .14834E-01    .39332    
   3  Normalizat    .45666        .17657        .31780E-03   -1.1447    
   4  Prefactor     1.3106        .18589        .20956E-03   -.82992    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 1.54766e-10
Minuit parameter uncertainties:
  1  9.87787
  2  7.8713
  3  0.176784
  4  0.185984
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/3189': 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): 102
logL (Free Index) = 6471.9607317
delta logL = 0.343355499732

Extracting fit parameters...

4FGL J2331.0-2147
   Spectrum: LogParabola
418         norm:  7.642e-01  9.878e+00  1.000e-04  1.000e+04 ( 1.000e-12)
419        alpha:  3.458e+00  7.871e+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.311e+00  1.860e-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:  4.567e-01  1.768e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 1.48
Ra Dec: 352.763 -21.795
Photon Index (Free Index): 3.46 +/- 7.87
Photon Flux (Free Index): 4.21e-08 +/- 5.05e-08
Energy Flux (Free Index): 7.74e-06 +/- 1.54e-05

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/3189/cmap_HighResolution_285724801_285984001_4FGL_J2331.0-2147_daily_bin179.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='2.72e-05', comment='SUCCESS', energy_flux2='7.74e-06', dlogl='3.43e-01', photon_flux2='4.21e-08', job_status='DONE', time_completed='2021-09-29 22:55:36.248144', photon_index_error2='7.87', photon_index2='3.46', ts='0.76', fit_tolerance='1e-08', GAL='1.29', photon_index_error='0.00', photon_flux_upper_limit='8.17e-08', energy_flux_error2='1.54e-05', EG='0.49', time_epoch_completed='1632981336.25', return_code='0', job_id='3189', GAL2='1.31', EG2='0.46', return_code2='102', photon_flux_error2='5.05e-08', ts2='1.48', photon_index='2.43' WHERE bin_id='179' AND source_name='4FGL J2331.0-2147' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep 29 22:55:36 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0075>
Subject: Job 3189: <4FGL_J2331.0-2147_daily_bin179> in cluster <slac> Done

Job <4FGL_J2331.0-2147_daily_bin179> was submitted from host <rhel6-64f> by user <kocevski> in cluster <slac> at Wed Sep 29 22:40:49 2021
Job was executed on host(s) <bullet0075>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Sep 29 22:40:50 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:40:50 2021
Terminated at Wed Sep 29 22:55:36 2021
Results reported at Wed Sep 29 22:55:36 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2331.0-2147_daily_bin179 352.763 -21.7953 285724801 285984001 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 :                                   648.41 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             226.82 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   886 sec.
    Turnaround time :                            887 sec.

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

