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


Performing analysis on: 4FGL_J2345.2-1555_daily_bin1053
RA = 356.303, Dec = -15.9182
tmin = 512265601, tmax = 512524801
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='101214', job_status='RUN', time_executed='2021-09-30 04:01:19.758933', time_epoch_executed='1632999679.76' WHERE source_name='4FGL J2345.2-1555' and cadence='daily' and bin_id='1053'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/101214

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/101214/ft1_4FGL_J2345.2-1555_daily_bin1053.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/101214/ft2_4FGL_J2345.2-1555_daily_bin1053.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/101214/ft1_4FGL_J2345.2-1555_daily_bin1053.fits outfile=/scratch/kocevski/101214/ft1_filteredMKT_4FGL_J2345.2-1555_daily_bin1053.fits ra=356.303 dec=-15.9182 rad=12.0 tmin=512265601.0 tmax=512524801.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.54
user 3.31
sys 0.22

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/101214/ft2_4FGL_J2345.2-1555_daily_bin1053.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/101214/ft2_4FGL_J2345.2-1555_daily_bin1053.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/101214/ft1_filteredMKT_4FGL_J2345.2-1555_daily_bin1053.fits evtable="EVENTS" outfile="/scratch/kocevski/101214/ft1_filtered_4FGL_J2345.2-1555_daily_bin1053.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/101214/ft1_filtered_4FGL_J2345.2-1555_daily_bin1053.fits" evtable="EVENTS" scfile=/scratch/kocevski/101214/ft2_4FGL_J2345.2-1555_daily_bin1053.fits sctable="SC_DATA" outfile=/scratch/kocevski/101214/ltcube_512265601_512524801_4FGL_J2345.2-1555_daily_bin1053.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/101214/ft2_4FGL_J2345.2-1555_daily_bin1053.fits
.....................!
real 12.12
user 11.75
sys 0.31

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/101214/ft1_filtered_4FGL_J2345.2-1555_daily_bin1053.fits evtable="EVENTS" scfile=/scratch/kocevski/101214/ft2_4FGL_J2345.2-1555_daily_bin1053.fits sctable="SC_DATA" expcube=/scratch/kocevski/101214/ltcube_512265601_512524801_4FGL_J2345.2-1555_daily_bin1053.fits outfile=/scratch/kocevski/101214/expmap_512265601_512524801_4FGL_J2345.2-1555_daily_bin1053.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/101214/ltcube_512265601_512524801_4FGL_J2345.2-1555_daily_bin1053.fits
.....................!
real 190.84
user 185.78
sys 4.75

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 167 point sources and 0 extended sources

Setting source of interest to:
4FGL J2345.2-1555 @ 356.303 -15.9182

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/101214/ft1_filtered_4FGL_J2345.2-1555_daily_bin1053.fits scfile=/scratch/kocevski/101214/ft2_4FGL_J2345.2-1555_daily_bin1053.fits outfile=/scratch/kocevski/101214/cmap_512265601_512524801_4FGL_J2345.2-1555_daily_bin1053.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=356.303 yref=-15.9182 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.36
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/101214/ft1_filtered_4FGL_J2345.2-1555_daily_bin1053.fits scfile=/scratch/kocevski/101214/ft2_4FGL_J2345.2-1555_daily_bin1053.fits outfile=/scratch/kocevski/101214/cmap_HighResolution_512265601_512524801_4FGL_J2345.2-1555_daily_bin1053.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=356.303 yref=-15.9182 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.38
sys 0.15

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/101214/ft1_filtered_4FGL_J2345.2-1555_daily_bin1053.fits evtable="EVENTS" scfile=/scratch/kocevski/101214/ft2_4FGL_J2345.2-1555_daily_bin1053.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/101214/Model_4FGL_J2345.2-1555_daily_bin1053.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/101214/ft1_filtered_4FGL_J2345.2-1555_daily_bin1053.fits.....................!
real 46.59
user 45.36
sys 1.15

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/101214/ft1_filtered_4FGL_J2345.2-1555_daily_bin1053.fits', '/scratch/kocevski/101214/ft2_4FGL_J2345.2-1555_daily_bin1053.fits', expMap='/scratch/kocevski/101214/expmap_512265601_512524801_4FGL_J2345.2-1555_daily_bin1053.fits', expCube='/scratch/kocevski/101214/ltcube_512265601_512524801_4FGL_J2345.2-1555_daily_bin1053.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/101214/Model_4FGL_J2345.2-1555_daily_bin1053.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J2345.2-1555'

4FGL J2345.2-1555
   Spectrum: LogParabola
477         norm:  1.857e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-11)
478        alpha:  2.034e+00  0.000e+00  0.000e+00  5.000e+00 ( 1.000e+00) fixed
479         beta:  1.029e-01  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
480           Eb:  8.265e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/101214/ft1_filtered_4FGL_J2345.2-1555_daily_bin1053.fits
Spacecraft file(s): /scratch/kocevski/101214/ft2_4FGL_J2345.2-1555_daily_bin1053.fits
Exposure map: /scratch/kocevski/101214/expmap_512265601_512524801_4FGL_J2345.2-1555_daily_bin1053.fits
Exposure cube: /scratch/kocevski/101214/ltcube_512265601_512524801_4FGL_J2345.2-1555_daily_bin1053.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/101214/Model_4FGL_J2345.2-1555_daily_bin1053.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) = 5149.42283187

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10016E-03   1.0000         .10000E-03   10000.    
     2 'norm      '    .10010E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10094E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    50.735       1.0000         .10000E-03   10000.    
     5 'Prefactor '    36.727       1.0000         .10000E-03   10000.    
     6 'Prefactor '    1.8220       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10013E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    18.442       1.0000         .10000E-03   10000.    
    10 'norm      '    .54167       1.0000         .10000E-03   10000.    
    11 'norm      '    .10397E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10010E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10029E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10032E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    41.237       1.0000         .10000E-03   10000.    
    16 'Prefactor '    142.17       1.0000         .10000E-03   10000.    
    17 'norm      '    1.2239       1.0000         .10000E-03   10000.    
    18 'norm      '    .11208E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10025E-03   1.0000         .10000E-03   10000.    
    20 'Normalizat'    1.3216       1.0000         .10000E-01   10.000    
    21 'Prefactor '    .72298       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5430E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   5149.413     FROM MIGRAD    STATUS=CONVERGED    449 CALLS     2196 TOTAL
                     EDM=   .20E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.9%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    5.6204       -.26314E-07** at limit **
   2  norm          .10000E-03    22.395       -.13253E-05** at limit **
   3  Prefactor     .10000E-03    55.344       -.50073E-06** at limit **
   4  Prefactor     50.729        35.340       -.50252E-06   -.78889E-04
   5  Prefactor     36.726        27.905       -.46138E-07   -.89090E-05
   6  Prefactor     1.8229        6.6821        .10117E-05   -.56046E-04
   7  Prefactor     .10000E-03    26.088        .22031E-06** at limit **
   8  Prefactor     .10000E-03    16.264        .21737E-06** at limit **
   9  Prefactor     18.445        10.551       -.58697E-06   -.19536E-03
  10  norm          .54162        7.6332        .33979E-05   -.16495E-03
  11  norm          .10000E-03    1.9839        .65113E-07** at limit **
  12  Prefactor     .10000E-03    27.437        .12814E-05** at limit **
  13  Prefactor     .10000E-03    12.799        .62504E-06** at limit **
  14  Prefactor     .10000E-03    11.244       -.63967E-06** at limit **
  15  Prefactor     41.225        58.427       -.21755E-05   -.94673E-04
  16  Prefactor     142.15        106.39       -.21209E-05   -.95482E-04
  17  norm          1.2232        .66482       -.12918E-07   -.11771E-02
  18  norm          .10000E-03    3.4733        .47632E-06** at limit **
  19  Prefactor     .10000E-03    4.6625       -.77773E-08** at limit **
  20  Normalizat    1.3217        .19275        .36184E-06   -.19157E-03
  21  Prefactor     .72280        .17922       -.52565E-06   -.97160E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  norm       = 0.000100001
  Prefactor  = 0.0001
  Prefactor  = 50.7291
  Prefactor  = 36.726
  Prefactor  = 1.82289
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 18.4451
  norm       = 0.541623
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 41.2247
  Prefactor  = 142.146
  norm       = 1.22319
  norm       = 0.000100003
  Prefactor  = 0.0001
  Normalizat = 1.32171
  Prefactor  = 0.7228
 **********
 **   18 **HESSE 
 **********

 FCN=   5149.413     FROM HESSE     STATUS=OK           311 CALLS     2507 TOTAL
                     EDM=   .68E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    5.6363        .16612E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          .10000E-03    22.748        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    55.458        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     50.729        35.490        .56303E-04   -1.4282    
   5  Prefactor     36.726        27.906        .66132E-04   -1.4495    
   6  Prefactor     1.8229        6.6736        .30933E-03   -1.5438    
   7  Prefactor     .10000E-03    26.116        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    16.293        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     18.445        10.553        .93264E-04   -1.4849    
  10  norm          .54162        8.0707        .37591E-03   -1.5561    
  11  norm          .10000E-03    4.4581        .19537E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    27.712        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    12.925        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    11.316        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     41.225        59.268        .62424E-04   -1.4423    
  16  Prefactor     142.15        108.38        .16894E-03   -1.3318    
  17  norm          1.2232        .61077        .38181E-04   -1.5487    
  18  norm          .10000E-03    10.149        .23194E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    4.6916        .15126E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Normalizat    1.3217        .22631        .22348E-03   -.82921    
  21  Prefactor     .72280        .21144        .27608E-03   -1.0264    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 6.75996e-10
Minuit parameter uncertainties:
  1  3.07402e-06
  2  0.000249762
  3  9.28665e-05
  4  35.5051
  5  27.9158
  6  6.67632
  7  5.34507e-05
  8  2.182e-05
  9  10.5537
  10  4.18182
  11  1.50038e-05
  12  0.000233854
  13  6.37906e-05
  14  7.38071e-05
  15  59.3525
  16  108.53
  17  0.61077
  18  0.000363942
  19  2.18525e-06
  20  0.226481
  21  0.211671
Done.

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

Extracting fit parameters...

4FGL J2345.2-1555
   Spectrum: LogParabola
477         norm:  1.223e+00  6.108e-01  1.000e-04  1.000e+04 ( 1.000e-11)
478        alpha:  2.034e+00  0.000e+00  0.000e+00  5.000e+00 ( 1.000e+00) fixed
479         beta:  1.029e-01  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
480           Eb:  8.265e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
540    Prefactor:  7.228e-01  2.117e-01  0.000e+00  1.000e+01 ( 1.000e+00)
541        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
542        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
539   Normalization:  1.322e+00  2.265e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 11.06
Ra Dec: 356.303 -15.918
Photon Index (Fixed Index): 2.03 +/- 0.00
Photon Flux (Fixed Index): 6.99e-08 +/- 3.49e-08
Energy Flux (Fixed Index): 3.70e-05 +/- 1.85e-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) = 5148.76230306
delta logL = 0.651123503716

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5148.74821984
delta logL = 0.665206718874

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    1.0103       1.0000         .10000E-03   10000.    
     2 'alpha     '    2.5669       1.0000          .0000       5.0000    
     3 'Normalizat'    1.2711       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .74970       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5430E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   5148.748     FROM MIGRAD    STATUS=CONVERGED     51 CALLS      211 TOTAL
                     EDM=   .40E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          1.0102        6.9769        .67556E-02    .16337E-03
   2  alpha         2.5668        3.7827        .21700        .45712E-04
   3  Normalizat    1.2711        .93855E-01    .51336E-01    .62572E-05
   4  Prefactor     .74970        .75892E-01    .43059E-01    .20882E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 1.01022
  alpha      = 2.56679
  Normalizat = 1.27107
  Prefactor  = 0.749699
 **********
 **   18 **HESSE 
 **********

 FCN=   5148.748     FROM HESSE     STATUS=OK            33 CALLS      244 TOTAL
                     EDM=   .14E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          1.0102        .58792        .30021E-04   -1.5507    
   2  alpha         2.5668        .47602        .88573E-02    .26718E-01
   3  Normalizat    1.2711        .22861        .22697E-03   -.84434    
   4  Prefactor     .74970        .21243        .27113E-03   -1.0161    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.37585e-09
Minuit parameter uncertainties:
  1  0.587921
  2  0.47895
  3  0.228791
  4  0.212662
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/101214': 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) = 5148.74821967
delta logL = 0.665206892008

Extracting fit parameters...

4FGL J2345.2-1555
   Spectrum: LogParabola
477         norm:  1.010e+00  5.879e-01  1.000e-04  1.000e+04 ( 1.000e-11)
478        alpha:  2.567e+00  4.789e-01  0.000e+00  5.000e+00 ( 1.000e+00)
479         beta:  1.029e-01  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
480           Eb:  8.265e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
540    Prefactor:  7.497e-01  2.127e-01  0.000e+00  1.000e+01 ( 1.000e+00)
541        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
542        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
539   Normalization:  1.271e+00  2.288e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 12.36
Ra Dec: 356.303 -15.918
Photon Index (Free Index): 2.57 +/- 0.48
Photon Flux (Free Index): 1.13e-07 +/- 5.87e-08
Energy Flux (Free Index): 3.20e-05 +/- 1.44e-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/101214/cmap_HighResolution_512265601_512524801_4FGL_J2345.2-1555_daily_bin1053.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='6.99e-08', energy_flux2='3.20e-05', photon_flux_error='3.49e-08', dlogl='6.65e-01', energy_flux='3.70e-05', photon_flux2='1.13e-07', job_status='DONE', time_completed='2021-09-30 04:09:44.621692', photon_index_error2='0.48', photon_index2='2.57', ts='11.06', fit_tolerance='1e-08', GAL='0.72', photon_index_error='0.00', energy_flux_error2='1.44e-05', EG='1.32', time_epoch_completed='1633000184.62', return_code='0', job_id='101214', GAL2='0.75', EG2='1.27', return_code2='0', energy_flux_error='1.85e-05', photon_flux_error2='5.87e-08', ts2='12.36', photon_index='2.03' WHERE bin_id='1053' AND source_name='4FGL J2345.2-1555' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Thu Sep 30 04:09:44 PDT 2021


------------------------------------------------------------
Sender: LSF System <scs@bullet0185>
Subject: Job 101214: <4FGL_J2345.2-1555_daily_bin1053> in cluster <slac> Done

Job <4FGL_J2345.2-1555_daily_bin1053> was submitted from host <rhel6-64p> by user <kocevski> in cluster <slac> at Thu Sep 30 04:00:37 2021
Job was executed on host(s) <bullet0185>, in queue <medium>, as user <kocevski> in cluster <slac> at Thu Sep 30 04:00:39 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Thu Sep 30 04:00:39 2021
Terminated at Thu Sep 30 04:09:45 2021
Results reported at Thu Sep 30 04:09:45 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2345.2-1555_daily_bin1053 356.303 -15.9182 512265601 512524801 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J2345.2-1555 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   501.00 sec.
    Max Memory :                                 1093 MB
    Average Memory :                             270.06 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   545 sec.
    Turnaround time :                            548 sec.

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

