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


Performing analysis on: 4FGL_J2331.0-2147_daily_bin1295
RA = 352.763, Dec = -21.7953
tmin = 574992001, tmax = 575251201
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='7942', job_status='RUN', time_executed='2021-09-29 22:57:19.283279', time_epoch_executed='1632981439.28' WHERE source_name='4FGL J2331.0-2147' and cadence='daily' and bin_id='1295'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/7942

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/7942/ft1_4FGL_J2331.0-2147_daily_bin1295.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/7942/ft2_4FGL_J2331.0-2147_daily_bin1295.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/7942/ft1_4FGL_J2331.0-2147_daily_bin1295.fits outfile=/scratch/kocevski/7942/ft1_filteredMKT_4FGL_J2331.0-2147_daily_bin1295.fits ra=352.763 dec=-21.7953 rad=12.0 tmin=574992001.0 tmax=575251201.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 5.35
user 5.07
sys 0.23

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/7942/ft1_filtered_4FGL_J2331.0-2147_daily_bin1295.fits" evtable="EVENTS" scfile=/scratch/kocevski/7942/ft2_4FGL_J2331.0-2147_daily_bin1295.fits sctable="SC_DATA" outfile=/scratch/kocevski/7942/ltcube_574992001_575251201_4FGL_J2331.0-2147_daily_bin1295.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/7942/ft2_4FGL_J2331.0-2147_daily_bin1295.fits
.....................!
real 11.89
user 11.45
sys 0.30

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/7942/ft1_filtered_4FGL_J2331.0-2147_daily_bin1295.fits evtable="EVENTS" scfile=/scratch/kocevski/7942/ft2_4FGL_J2331.0-2147_daily_bin1295.fits sctable="SC_DATA" expcube=/scratch/kocevski/7942/ltcube_574992001_575251201_4FGL_J2331.0-2147_daily_bin1295.fits outfile=/scratch/kocevski/7942/expmap_574992001_575251201_4FGL_J2331.0-2147_daily_bin1295.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/7942/ltcube_574992001_575251201_4FGL_J2331.0-2147_daily_bin1295.fits
.....................!
real 191.72
user 185.58
sys 4.18

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/7942/ft1_filtered_4FGL_J2331.0-2147_daily_bin1295.fits scfile=/scratch/kocevski/7942/ft2_4FGL_J2331.0-2147_daily_bin1295.fits outfile=/scratch/kocevski/7942/cmap_574992001_575251201_4FGL_J2331.0-2147_daily_bin1295.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.56
user 0.37
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/7942/ft1_filtered_4FGL_J2331.0-2147_daily_bin1295.fits scfile=/scratch/kocevski/7942/ft2_4FGL_J2331.0-2147_daily_bin1295.fits outfile=/scratch/kocevski/7942/cmap_HighResolution_574992001_575251201_4FGL_J2331.0-2147_daily_bin1295.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.40
sys 0.13

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/7942/ft1_filtered_4FGL_J2331.0-2147_daily_bin1295.fits evtable="EVENTS" scfile=/scratch/kocevski/7942/ft2_4FGL_J2331.0-2147_daily_bin1295.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/7942/Model_4FGL_J2331.0-2147_daily_bin1295.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/7942/ft1_filtered_4FGL_J2331.0-2147_daily_bin1295.fits.....................!
real 54.14
user 52.37
sys 1.09

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    10.007       1.0000         .10000E-03   10000.    
     2 'norm      '    1.0459       1.0000         .10000E-03   10000.    
     3 'Prefactor '    41.755       1.0000         .10000E-03   10000.    
     4 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    15.199       1.0000         .10000E-03   10000.    
     6 'Prefactor '    7.0484       1.0000         .10000E-03   10000.    
     7 'norm      '    1.9501       1.0000         .10000E-03   10000.    
     8 'Prefactor '    13.387       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10083E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10062E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    28.148       1.0000         .10000E-03   10000.    
    12 'norm      '    13.221       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10013E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    8.5487       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .24033E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10361E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    .84640       1.0000         .10000E-03   10000.    
    18 'norm      '    26.061       1.0000         .10000E-03   10000.    
    19 'Prefactor '    13.561       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10017E-03   1.0000         .10000E-03   10000.    
    21 'Normalizat'    .84873       1.0000         .10000E-01   10.000    
    22 'Prefactor '    .92813       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=   7187.444     FROM MIGRAD    STATUS=CONVERGED    481 CALLS     2349 TOTAL
                     EDM=   .45E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.0%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          10.009        18.718        .11216E-06   -.91044E-05
   2  norm          1.0433        1.4963        .19292E-05    .14367E-04
   3  Prefactor     41.802        46.649        .13903E-05   -.26101E-05
   4  norm          .10000E-03    .98521        .22857E-07** at limit **
   5  Prefactor     15.203        16.065        .54966E-07   -.30032E-04
   6  Prefactor     7.0479        12.102       -.10517E-06   -.18007E-03
   7  norm          1.9506        .81755       -.16043E-07   -.74686E-03
   8  Prefactor     13.388        9.9042        .15478E-06   -.56022E-05
   9  Prefactor     .10000E-03    10.454        .10110E-06** at limit **
  10  Prefactor     .10000E-03    48.232       -.37160E-05** at limit **
  11  Prefactor     28.150        35.855        .31182E-06   -.55843E-05
  12  norm          13.216        3.7114        .65943E-07   -.40384E-03
  13  Prefactor     .10000E-03    40.140        .13526E-05** at limit **
  14  Prefactor     8.5491        12.499        .14787E-06   -.29358E-04
  15  Prefactor     .10000E-03    75.430        .52095E-05** at limit **
  16  Prefactor     .10000E-03    110.22       -.31494E-05** at limit **
  17  norm          .84636        .49722        .90034E-09   -.70761E-05
  18  norm          26.062        5.9593        .41880E-07   -.63427E-04
  19  Prefactor     13.562        21.007        .93983E-07   -.47883E-05
  20  Prefactor     .10000E-03    22.039        .60613E-08** at limit **
  21  Normalizat    .84855        .15988       -.76813E-06   -.43451E-04
  22  Prefactor     .92816        .15877        .22026E-06   -.12248E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 10.0095
  norm       = 1.04326
  Prefactor  = 41.802
  norm       = 0.0001
  Prefactor  = 15.2028
  Prefactor  = 7.04795
  norm       = 1.95057
  Prefactor  = 13.3884
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 28.1498
  norm       = 13.2163
  Prefactor  = 0.0001
  Prefactor  = 8.54907
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.846355
  norm       = 26.0623
  Prefactor  = 13.5622
  Prefactor  = 0.0001
  Normalizat = 0.848552
  Prefactor  = 0.928163
 **********
 **   18 **HESSE 
 **********

 FCN=   7187.444     FROM HESSE     STATUS=OK           352 CALLS     2701 TOTAL
                     EDM=   .10E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          10.009        18.714        .12667E-03   -1.5075    
   2  norm          1.0433        1.5006        .14688E-02   -1.5504    
   3  Prefactor     41.802        46.978        .62036E-04   -1.4414    
   4  norm          .10000E-03    .98758        .82127E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     15.203        15.952        .10273E-03   -1.4928    
   6  Prefactor     7.0479        12.482        .15110E-03   -1.5177    
   7  norm          1.9506        .85988        .37209E-04   -1.5429    
   8  Prefactor     13.388        9.9075        .10947E-03   -1.4976    
   9  Prefactor     .10000E-03    10.666        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    49.014        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     28.150        35.883        .75512E-04   -1.4646    
  12  norm          13.216        3.7127        .82480E-04   -1.4981    
  13  Prefactor     .10000E-03    40.214        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     8.5491        12.477        .13710E-03   -1.5123    
  15  Prefactor     .10000E-03    76.988        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    110.63        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          .84636        .49104        .41545E-04   -1.5524    
  18  norm          26.062        5.9446        .78472E-04   -1.4686    
  19  Prefactor     13.562        21.008        .10877E-03   -1.4971    
  20  Prefactor     .10000E-03    22.163        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Normalizat    .84855        .18652        .25248E-03   -.98292    
  22  Prefactor     .92816        .18536        .24836E-03   -.95164    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.01836e-10
Minuit parameter uncertainties:
  1  18.725
  2  1.50063
  3  47.0195
  4  3.35104e-06
  5  15.9569
  6  12.4864
  7  0.859885
  8  9.90871
  9  4.33803e-05
  10  0.000123083
  11  35.9103
  12  3.71272
  13  5.63049e-05
  14  12.4803
  15  5.83313e-05
  16  3.35116e-05
  17  0.491041
  18  5.9447
  19  21.019
  20  1.70035e-05
  21  0.186657
  22  0.18549
Done.

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

Extracting fit parameters...

4FGL J2331.0-2147
   Spectrum: LogParabola
418         norm:  1.322e+01  3.713e+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:  9.282e-01  1.855e-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.486e-01  1.867e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 45.66
Ra Dec: 352.763 -21.795
Photon Index (Fixed Index): 2.43 +/- 0.00
Photon Flux (Fixed Index): 1.42e-07 +/- 3.98e-08
Energy Flux (Fixed Index): 4.71e-05 +/- 1.32e-05

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) = 7186.76124169
delta logL = 0.682552142694

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 7186.76110969
delta logL = 0.682684148061

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    15.843       1.0000         .10000E-03   10000.    
     2 'alpha     '    2.0703       1.0000          .0000       5.0000    
     3 'Normalizat'    .88920       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .90593       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=   7186.761     FROM MIGRAD    STATUS=CONVERGED     54 CALLS      262 TOTAL
                     EDM=   .55E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          15.837        68.320        .25156E-02    .37726E-05
   2  alpha         2.0698        3.5163        .22385        .48244E-04
   3  Normalizat    .88925        .29462        .44763E-01    .16400E-04
   4  Prefactor     .90594        .17752        .45081E-01    .12386E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 15.8367
  alpha      = 2.06984
  Normalizat = 0.889255
  Prefactor  = 0.905943
 **********
 **   18 **HESSE 
 **********

 FCN=   7186.761     FROM HESSE     STATUS=OK            33 CALLS      295 TOTAL
                     EDM=   .13E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          15.837        4.9565        .97998E-04   -1.4912    
   2  alpha         2.0698        .31801        .89682E-02   -.17292    
   3  Normalizat    .88925        .18164        .24756E-03   -.96839    
   4  Prefactor     .90594        .18360        .25127E-03   -.95934    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.27756e-12
Minuit parameter uncertainties:
  1  4.95666
  2  0.318896
  3  0.181764
  4  0.183721
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/7942': 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) = 7186.76110736
delta logL = 0.682686476921

Extracting fit parameters...

4FGL J2331.0-2147
   Spectrum: LogParabola
418         norm:  1.584e+01  4.957e+00  1.000e-04  1.000e+04 ( 1.000e-12)
419        alpha:  2.070e+00  3.189e-01  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.059e-01  1.837e-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.893e-01  1.818e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 46.78
Ra Dec: 352.763 -21.795
Photon Index (Free Index): 2.07 +/- 0.32
Photon Flux (Free Index): 1.06e-07 +/- 4.45e-08
Energy Flux (Free Index): 5.44e-05 +/- 1.88e-05

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/7942/cmap_HighResolution_574992001_575251201_4FGL_J2331.0-2147_daily_bin1295.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='1.42e-07', energy_flux2='5.44e-05', photon_flux_error='3.98e-08', dlogl='6.83e-01', energy_flux='4.71e-05', photon_flux2='1.06e-07', job_status='DONE', time_completed='2021-09-29 23:07:31.428049', photon_index_error2='0.32', photon_index2='2.07', ts='45.66', fit_tolerance='1e-08', GAL='0.93', photon_index_error='0.00', energy_flux_error2='1.88e-05', EG='0.85', time_epoch_completed='1632982051.43', return_code='0', job_id='7942', GAL2='0.91', EG2='0.89', return_code2='0', energy_flux_error='1.32e-05', photon_flux_error2='4.45e-08', ts2='46.78', photon_index='2.43' WHERE bin_id='1295' AND source_name='4FGL J2331.0-2147' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep 29 23:07:31 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0032>
Subject: Job 7942: <4FGL_J2331.0-2147_daily_bin1295> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2331.0-2147_daily_bin1295 352.763 -21.7953 574992001 575251201 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 :                                   605.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             284.18 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   672 sec.
    Turnaround time :                            674 sec.

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

