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


Performing analysis on: 4FGL_J2331.0-2147_daily_bin1592
RA = 352.763, Dec = -21.7953
tmin = 651974401, tmax = 652233601
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='9295', job_status='RUN', time_executed='2021-09-29 23:00:58.132029', time_epoch_executed='1632981658.13' WHERE source_name='4FGL J2331.0-2147' and cadence='daily' and bin_id='1592'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/9295

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/9295/ft1_4FGL_J2331.0-2147_daily_bin1592.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/9295/ft2_4FGL_J2331.0-2147_daily_bin1592.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/9295/ft1_4FGL_J2331.0-2147_daily_bin1592.fits outfile=/scratch/kocevski/9295/ft1_filteredMKT_4FGL_J2331.0-2147_daily_bin1592.fits ra=352.763 dec=-21.7953 rad=12.0 tmin=651974401.0 tmax=652233601.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.48
user 3.25
sys 0.21

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/9295/ft1_filtered_4FGL_J2331.0-2147_daily_bin1592.fits" evtable="EVENTS" scfile=/scratch/kocevski/9295/ft2_4FGL_J2331.0-2147_daily_bin1592.fits sctable="SC_DATA" outfile=/scratch/kocevski/9295/ltcube_651974401_652233601_4FGL_J2331.0-2147_daily_bin1592.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/9295/ft2_4FGL_J2331.0-2147_daily_bin1592.fits
.....................!
real 11.64
user 11.28
sys 0.32

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/9295/ft1_filtered_4FGL_J2331.0-2147_daily_bin1592.fits evtable="EVENTS" scfile=/scratch/kocevski/9295/ft2_4FGL_J2331.0-2147_daily_bin1592.fits sctable="SC_DATA" expcube=/scratch/kocevski/9295/ltcube_651974401_652233601_4FGL_J2331.0-2147_daily_bin1592.fits outfile=/scratch/kocevski/9295/expmap_651974401_652233601_4FGL_J2331.0-2147_daily_bin1592.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/9295/ltcube_651974401_652233601_4FGL_J2331.0-2147_daily_bin1592.fits
.....................!
real 190.47
user 185.61
sys 4.51

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/9295/ft1_filtered_4FGL_J2331.0-2147_daily_bin1592.fits scfile=/scratch/kocevski/9295/ft2_4FGL_J2331.0-2147_daily_bin1592.fits outfile=/scratch/kocevski/9295/cmap_651974401_652233601_4FGL_J2331.0-2147_daily_bin1592.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.39
sys 0.13

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/9295/ft1_filtered_4FGL_J2331.0-2147_daily_bin1592.fits scfile=/scratch/kocevski/9295/ft2_4FGL_J2331.0-2147_daily_bin1592.fits outfile=/scratch/kocevski/9295/cmap_HighResolution_651974401_652233601_4FGL_J2331.0-2147_daily_bin1592.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.39
sys 0.15

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/9295/ft1_filtered_4FGL_J2331.0-2147_daily_bin1592.fits evtable="EVENTS" scfile=/scratch/kocevski/9295/ft2_4FGL_J2331.0-2147_daily_bin1592.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/9295/Model_4FGL_J2331.0-2147_daily_bin1592.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/9295/ft1_filtered_4FGL_J2331.0-2147_daily_bin1592.fits.....................!
real 42.27
user 40.92
sys 1.23

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     2 'norm      '    1.0501       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10229E-03   1.0000         .10000E-03   10000.    
     4 'norm      '    1.4464       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10083E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .36038E-03   1.0000         .10000E-03   10000.    
     7 'norm      '    .10023E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    26.275       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10124E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    5.9349       1.0000         .10000E-03   10000.    
    13 'Prefactor '    37.288       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10012E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    12.448       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10199E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    .21274E-02   1.0000         .10000E-03   10000.    
    18 'norm      '    8.2271       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10019E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10191E-03   1.0000         .10000E-03   10000.    
    21 'Normalizat'    .50596       1.0000         .10000E-01   10.000    
    22 'Prefactor '    1.3766       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=   5162.377     FROM MIGRAD    STATUS=CONVERGED    499 CALLS     2420 TOTAL
                     EDM=   .18E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.3%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    10.870        .63358E-08** at limit **
   2  norm          1.0495        2.4276        .70051E-06    .25312E-03
   3  Prefactor     .10000E-03    100.12        .20986E-06** at limit **
   4  norm          1.4446        3.3798        .56365E-06    .60283E-04
   5  Prefactor     .10000E-03    22.008        .36715E-07** at limit **
   6  Prefactor     .10000E-03    5.5534       -.10023E-05** at limit **
   7  norm          .10000E-03    .28629       -.11990E-06** at limit **
   8  Prefactor     .10000E-03    6.2917        .17488E-07** at limit **
   9  Prefactor     26.252        13.567        .49146E-06    .50097E-03
  10  Prefactor     .10000E-03    8.4040        .96509E-07** at limit **
  11  Prefactor     .10000E-03    41.826        .60524E-06** at limit **
  12  norm          5.9352        3.7703        .63026E-06   -.46663E-03
  13  Prefactor     37.296        44.356       -.32891E-06    .38316E-04
  14  Prefactor     .10000E-03    8.3512        .15724E-06** at limit **
  15  Prefactor     12.445        33.095       -.12537E-05    .11022E-05
  16  Prefactor     .10000E-03    115.06       -.98770E-06** at limit **
  17  norm          .35706E-02    .35373       -.10218E-07    .68037E-03
  18  norm          8.2204        4.7603       -.14244E-06    .17802E-03
  19  Prefactor     .10000E-03    13.593       -.44279E-07** at limit **
  20  Prefactor     .10000E-03    33.739       -.56468E-06** at limit **
  21  Normalizat    .50589        .18271       -.21326E-06    .11544E-03
  22  Prefactor     1.3766        .18636       -.12904E-06    .15561E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  norm       = 1.04953
  Prefactor  = 0.0001
  norm       = 1.44456
  Prefactor  = 0.0001
  Prefactor  = 0.000100002
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 26.2517
  Prefactor  = 0.0001
  Prefactor  = 0.000100001
  norm       = 5.93515
  Prefactor  = 37.2964
  Prefactor  = 0.0001
  Prefactor  = 12.4451
  Prefactor  = 0.000100002
  norm       = 0.00357063
  norm       = 8.22042
  Prefactor  = 0.0001
  Prefactor  = 0.000100001
  Normalizat = 0.505889
  Prefactor  = 1.37661
 **********
 **   18 **HESSE 
 **********

 FCN=   5162.377     FROM HESSE     STATUS=OK           348 CALLS     2768 TOTAL
                     EDM=   .13E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    10.873        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          1.0495        2.1973        .16956E-02   -1.5503    
   3  Prefactor     .10000E-03    100.42        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  norm          1.4446        3.3027        .19165E-03   -1.5468    
   5  Prefactor     .10000E-03    22.713        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    15.322        .28341E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          .10000E-03    .33939        .71554E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    6.3152        .17600E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     26.252        12.487        .78152E-04   -1.4683    
  10  Prefactor     .10000E-03    8.4075        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    42.008        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          5.9352        3.6349        .49099E-03   -1.5221    
  13  Prefactor     37.296        44.376        .65634E-04   -1.4486    
  14  Prefactor     .10000E-03    8.3653        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     12.445        32.977        .11354E-03   -1.5002    
  16  Prefactor     .10000E-03    115.42        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          .35706E-02    .99807        .12294E-01   -1.5696    
  18  norm          8.2204        5.2705        .10042E-03   -1.5134    
  19  Prefactor     .10000E-03    13.596        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    33.846        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Normalizat    .50589        .21026        .30749E-03   -1.1214    
  22  Prefactor     1.3766        .21714        .20615E-03   -.81057    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.31922e-09
Minuit parameter uncertainties:
  1  1.1383e-06
  2  2.19745
  3  0.000327096
  4  3.30312
  5  1.10722e-05
  6  0.00031109
  7  2.27741e-08
  8  5.47999e-07
  9  12.4885
  10  1.82805e-05
  11  0.000343115
  12  3.63502
  13  44.4153
  14  2.50836e-05
  15  33.0255
  16  0.000913942
  17  0.117712
  18  5.27083
  19  1.27537e-05
  20  0.000304925
  21  0.210588
  22  0.217284
Done.

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

Extracting fit parameters...

4FGL J2331.0-2147
   Spectrum: LogParabola
418         norm:  5.935e+00  3.635e+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.377e+00  2.173e-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:  5.059e-01  2.106e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 5.46
Ra Dec: 352.763 -21.795
Photon Index (Fixed Index): 2.43 +/- 0.00
Photon Flux (Fixed Index): 6.36e-08 +/- 3.90e-08
Energy Flux (Fixed Index): 2.12e-05 +/- 1.30e-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) = 5162.04523206
delta logL = 0.332043331511

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5162.04346305
delta logL = 0.333812344404

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    3.9189       1.0000         .10000E-03   10000.    
     2 'alpha     '    2.9221       1.0000          .0000       5.0000    
     3 'Normalizat'    .47605       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.3961       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=   5162.043     FROM MIGRAD    STATUS=CONVERGED     47 CALLS      242 TOTAL
                     EDM=   .11E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          3.9189        39.040        .50949E-02   -.43699E-03
   2  alpha         2.9221        3.9489        .22721       -.13126E-04
   3  Normalizat    .47603        .80226E-01    .71437E-01    .29197E-04
   4  Prefactor     1.3962        .73839E-01    .46342E-01    .76257E-05
                               ERR DEF=  .500    
Final values: 
  norm       = 3.9189
  alpha      = 2.92206
  Normalizat = 0.476034
  Prefactor  = 1.39615
 **********
 **   18 **HESSE 
 **********

 FCN=   5162.043     FROM HESSE     STATUS=OK            33 CALLS      275 TOTAL
                     EDM=   .78E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          3.9189        3.8418        .72005E-04   -1.5312    
   2  alpha         2.9221        .66994        .91768E-02    .16964    
   3  Normalizat    .47603        .20676        .31627E-03   -1.1354    
   4  Prefactor     1.3962        .21723        .20484E-03   -.80491    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 7.76141e-11
Minuit parameter uncertainties:
  1  3.84207
  2  0.678481
  3  0.207093
  4  0.217374
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/9295': 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) = 5162.04346305
delta logL = 0.333812346195

Extracting fit parameters...

4FGL J2331.0-2147
   Spectrum: LogParabola
418         norm:  3.919e+00  3.842e+00  1.000e-04  1.000e+04 ( 1.000e-12)
419        alpha:  2.922e+00  6.785e-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:  1.396e+00  2.174e-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.760e-01  2.071e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 6.17
Ra Dec: 352.763 -21.795
Photon Index (Free Index): 2.92 +/- 0.68
Photon Flux (Free Index): 8.79e-08 +/- 5.22e-08
Energy Flux (Free Index): 2.03e-05 +/- 1.11e-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/9295/cmap_HighResolution_651974401_652233601_4FGL_J2331.0-2147_daily_bin1592.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='6.36e-08', energy_flux2='2.03e-05', photon_flux_error='3.90e-08', dlogl='3.34e-01', energy_flux='2.12e-05', photon_flux2='8.79e-08', job_status='DONE', time_completed='2021-09-29 23:09:31.398647', photon_index_error2='0.68', photon_index2='2.92', ts='5.46', fit_tolerance='1e-08', GAL='1.38', photon_index_error='0.00', energy_flux_error2='1.11e-05', EG='0.51', time_epoch_completed='1632982171.4', return_code='0', job_id='9295', GAL2='1.40', EG2='0.48', return_code2='0', energy_flux_error='1.30e-05', photon_flux_error2='5.22e-08', ts2='6.17', photon_index='2.43' WHERE bin_id='1592' AND source_name='4FGL J2331.0-2147' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep 29 23:09:31 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0241>
Subject: Job 9295: <4FGL_J2331.0-2147_daily_bin1592> in cluster <slac> Done

Job <4FGL_J2331.0-2147_daily_bin1592> was submitted from host <rhel6-64k> by user <kocevski> in cluster <slac> at Wed Sep 29 23:00:34 2021
Job was executed on host(s) <bullet0241>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Sep 29 23:00:35 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Wed Sep 29 23:00:35 2021
Terminated at Wed Sep 29 23:09:32 2021
Results reported at Wed Sep 29 23:09:32 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2331.0-2147_daily_bin1592 352.763 -21.7953 651974401 652233601 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 :                                   508.23 sec.
    Max Memory :                                 1093 MB
    Average Memory :                             307.78 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   536 sec.
    Turnaround time :                            538 sec.

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

