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


Performing analysis on: 4FGL_J2345.2-1555_daily_bin1565
RA = 356.303, Dec = -15.9182
tmin = 644976001, tmax = 645235201
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='104338', job_status='RUN', time_executed='2021-09-30 04:13:12.276552', time_epoch_executed='1633000392.28' WHERE source_name='4FGL J2345.2-1555' and cadence='daily' and bin_id='1565'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/104338

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/104338/ft1_4FGL_J2345.2-1555_daily_bin1565.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/104338/ft2_4FGL_J2345.2-1555_daily_bin1565.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/104338/ft1_4FGL_J2345.2-1555_daily_bin1565.fits outfile=/scratch/kocevski/104338/ft1_filteredMKT_4FGL_J2345.2-1555_daily_bin1565.fits ra=356.303 dec=-15.9182 rad=12.0 tmin=644976001.0 tmax=645235201.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 2.97
user 2.75
sys 0.21

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/104338/ft2_4FGL_J2345.2-1555_daily_bin1565.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/104338/ft1_filteredMKT_4FGL_J2345.2-1555_daily_bin1565.fits evtable="EVENTS" outfile="/scratch/kocevski/104338/ft1_filtered_4FGL_J2345.2-1555_daily_bin1565.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.48
user 0.32
sys 0.15

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/104338/ft1_filtered_4FGL_J2345.2-1555_daily_bin1565.fits" evtable="EVENTS" scfile=/scratch/kocevski/104338/ft2_4FGL_J2345.2-1555_daily_bin1565.fits sctable="SC_DATA" outfile=/scratch/kocevski/104338/ltcube_644976001_645235201_4FGL_J2345.2-1555_daily_bin1565.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/104338/ft2_4FGL_J2345.2-1555_daily_bin1565.fits
.....................!
real 12.15
user 11.79
sys 0.33

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/104338/ft1_filtered_4FGL_J2345.2-1555_daily_bin1565.fits evtable="EVENTS" scfile=/scratch/kocevski/104338/ft2_4FGL_J2345.2-1555_daily_bin1565.fits sctable="SC_DATA" expcube=/scratch/kocevski/104338/ltcube_644976001_645235201_4FGL_J2345.2-1555_daily_bin1565.fits outfile=/scratch/kocevski/104338/expmap_644976001_645235201_4FGL_J2345.2-1555_daily_bin1565.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/104338/ltcube_644976001_645235201_4FGL_J2345.2-1555_daily_bin1565.fits
.....................!
real 190.33
user 184.93
sys 5.10

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/104338/ft1_filtered_4FGL_J2345.2-1555_daily_bin1565.fits scfile=/scratch/kocevski/104338/ft2_4FGL_J2345.2-1555_daily_bin1565.fits outfile=/scratch/kocevski/104338/cmap_644976001_645235201_4FGL_J2345.2-1555_daily_bin1565.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.52
user 0.38
sys 0.13

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/104338/ft1_filtered_4FGL_J2345.2-1555_daily_bin1565.fits scfile=/scratch/kocevski/104338/ft2_4FGL_J2345.2-1555_daily_bin1565.fits outfile=/scratch/kocevski/104338/cmap_HighResolution_644976001_645235201_4FGL_J2345.2-1555_daily_bin1565.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.53
user 0.37
sys 0.15

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/104338/ft1_filtered_4FGL_J2345.2-1555_daily_bin1565.fits evtable="EVENTS" scfile=/scratch/kocevski/104338/ft2_4FGL_J2345.2-1555_daily_bin1565.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/104338/Model_4FGL_J2345.2-1555_daily_bin1565.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/104338/ft1_filtered_4FGL_J2345.2-1555_daily_bin1565.fits.....................!
real 54.84
user 53.48
sys 1.25

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/104338/ft1_filtered_4FGL_J2345.2-1555_daily_bin1565.fits', '/scratch/kocevski/104338/ft2_4FGL_J2345.2-1555_daily_bin1565.fits', expMap='/scratch/kocevski/104338/expmap_644976001_645235201_4FGL_J2345.2-1555_daily_bin1565.fits', expCube='/scratch/kocevski/104338/ltcube_644976001_645235201_4FGL_J2345.2-1555_daily_bin1565.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/104338/Model_4FGL_J2345.2-1555_daily_bin1565.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/104338/ft1_filtered_4FGL_J2345.2-1555_daily_bin1565.fits
Spacecraft file(s): /scratch/kocevski/104338/ft2_4FGL_J2345.2-1555_daily_bin1565.fits
Exposure map: /scratch/kocevski/104338/expmap_644976001_645235201_4FGL_J2345.2-1555_daily_bin1565.fits
Exposure cube: /scratch/kocevski/104338/ltcube_644976001_645235201_4FGL_J2345.2-1555_daily_bin1565.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/104338/Model_4FGL_J2345.2-1555_daily_bin1565.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) = 6817.00672572

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    1.4620       1.0000         .10000E-03   10000.    
     2 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    21.486       1.0000         .10000E-03   10000.    
     4 'Prefactor '    6.3194       1.0000         .10000E-03   10000.    
     5 'Prefactor '    3.5033       1.0000         .10000E-03   10000.    
     6 'Prefactor '    1.6023       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    11.807       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .84769       1.0000         .10000E-03   10000.    
    10 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10039E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    85.899       1.0000         .10000E-03   10000.    
    17 'norm      '    .27994       1.0000         .10000E-03   10000.    
    18 'norm      '    6.0640       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .42565E-03   1.0000         .10000E-03   10000.    
    20 'Normalizat'    .98406       1.0000         .10000E-01   10.000    
    21 'Prefactor '    1.0240       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=   6816.992     FROM MIGRAD    STATUS=CONVERGED    434 CALLS     2281 TOTAL
                     EDM=   .60E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  3.8%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     1.4628        5.7050       -.75746E-06   -.16599E-03
   2  norm          .10000E-03    10.403        .22413E-06** at limit **
   3  Prefactor     21.486        27.433       -.25755E-06   -.47993E-04
   4  Prefactor     6.3234        16.033       -.35783E-06   -.62667E-04
   5  Prefactor     3.5031        18.376        .87412E-06    .18995E-05
   6  Prefactor     1.6023        8.7494        .12844E-05    .42721E-04
   7  Prefactor     .10000E-03    19.228        .81147E-06** at limit **
   8  Prefactor     11.804        33.593        .97720E-06   -.25880E-04
   9  Prefactor     .84788        5.5424        .37848E-05   -.16989E-03
  10  norm          .10000E-03    1.2824        .20076E-06** at limit **
  11  norm          .10000E-03    1.0845       -.10619E-06** at limit **
  12  Prefactor     .10000E-03    18.499        .73494E-06** at limit **
  13  Prefactor     .10000E-03    4.4286        .48015E-06** at limit **
  14  Prefactor     .10000E-03    16.593       -.34508E-05** at limit **
  15  Prefactor     .10000E-03    19.250        .50076E-06** at limit **
  16  Prefactor     85.969        98.371       -.11567E-05   -.64106E-04
  17  norm          .28002        .37741        .20289E-06    .14298E-02
  18  norm          6.0640        3.5641       -.22059E-06   -.18683E-03
  19  Prefactor     .10000E-03    2.9763        .54601E-07** at limit **
  20  Normalizat    .98394        .17292        .24529E-05   -.74894E-03
  21  Prefactor     1.0242        .17579       -.43592E-05   -.32356E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 1.46283
  norm       = 0.0001
  Prefactor  = 21.4862
  Prefactor  = 6.32337
  Prefactor  = 3.50306
  Prefactor  = 1.6023
  Prefactor  = 0.0001
  Prefactor  = 11.8045
  Prefactor  = 0.847884
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000100001
  Prefactor  = 0.0001
  Prefactor  = 85.9691
  norm       = 0.280023
  norm       = 6.06398
  Prefactor  = 0.0001
  Normalizat = 0.983941
  Prefactor  = 1.02416
 **********
 **   18 **HESSE 
 **********

 FCN=   6816.992     FROM HESSE     STATUS=OK           317 CALLS     2598 TOTAL
                     EDM=   .12E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     1.4628        5.6522        .35580E-03   -1.5466    
   2  norm          .10000E-03    10.430        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     21.486        27.404        .86410E-04   -1.4781    
   4  Prefactor     6.3234        16.000        .15967E-03   -1.5205    
   5  Prefactor     3.5031        18.369        .21601E-03   -1.5334    
   6  Prefactor     1.6023        8.7382        .33487E-03   -1.5455    
   7  Prefactor     .10000E-03    19.290        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     11.804        33.573        .11658E-03   -1.5021    
   9  Prefactor     .84788        5.5758        .18717E-02   -1.5524    
  10  norm          .10000E-03    1.2919        .91392E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          .10000E-03    1.1316        .16773E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    18.540        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    4.4412        .16978E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    16.873        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    19.281        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     85.969        98.375        .21673E-03   -1.3851    
  17  norm          .28002        .34729        .53972E-03   -1.5602    
  18  norm          6.0640        3.5496        .10773E-03   -1.5215    
  19  Prefactor     .10000E-03    25.719        .26703E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Normalizat    .98394        .17939        .23356E-03   -.93570    
  21  Prefactor     1.0242        .18042        .22932E-03   -.91928    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.22961e-09
Minuit parameter uncertainties:
  1  5.65428
  2  2.47743e-05
  3  27.4196
  4  16.0106
  5  16.051
  6  7.48507
  7  9.92692e-05
  8  33.6269
  9  4.34894
  10  7.2295e-06
  11  1.50301e-06
  12  6.17755e-05
  13  2.16525e-05
  14  0.000296282
  15  6.70294e-05
  16  98.5617
  17  0.347294
  18  3.54973
  19  0.00017497
  20  0.179505
  21  0.180523
Done.

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

Extracting fit parameters...

4FGL J2345.2-1555
   Spectrum: LogParabola
477         norm:  2.800e-01  3.473e-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:  1.024e+00  1.805e-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:  9.839e-01  1.795e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 1.08
Ra Dec: 356.303 -15.918
Photon Index (Fixed Index): 2.03 +/- 0.00
Photon Flux (Fixed Index): 1.60e-08 +/- 1.99e-08
Energy Flux (Fixed Index): 8.47e-06 +/- 1.05e-05

TS (Fixed Index): 1.08
Ra Dec: 356.303 -15.918
Photon Flux Upper Limit: 6.30e-08 ph cm-2 s-1
Energy Flux Upper Limit: 3.33e-05 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/104338/likelihoodResults_644976001_645235201_4FGL_J2345.2-1555_daily_bin1565.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) = 6816.98839317
delta logL = 0.00393806893771

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6816.98818755
delta logL = 0.00414368330712

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .28699       1.0000         .10000E-03   10000.    
     2 'alpha     '    1.9556       1.0000          .0000       5.0000    
     3 'Normalizat'    .98526       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0233       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=   6816.988     FROM MIGRAD    STATUS=CONVERGED     49 CALLS      222 TOTAL
                     EDM=   .13E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .28660        12.896        .10368E-01    .14756E-02
   2  alpha         1.9541        2.9436        .42458       -.31526E-05
   3  Normalizat    .98529        .49593E-01    .45982E-01    .26450E-04
   4  Prefactor     1.0233        .48907E-01    .41829E-01    .24842E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 0.286596
  alpha      = 1.9541
  Normalizat = 0.985291
  Prefactor  = 1.02326
 **********
 **   18 **HESSE 
 **********

 FCN=   6816.988     FROM HESSE     STATUS=OK            35 CALLS      257 TOTAL
                     EDM=   .15E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .28660        .34222        .54596E-03   -1.5601    
   2  alpha         1.9541        .85414        .23236E-01   -.22013    
   3  Normalizat    .98529        .17656        .23342E-03   -.93525    
   4  Prefactor     1.0233        .17716        .22940E-03   -.91958    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.50233e-09
Minuit parameter uncertainties:
  1  0.342221
  2  0.872628
  3  0.176664
  4  0.177265
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/104338': 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) = 6816.98818495
delta logL = 0.00414628907765

Extracting fit parameters...

4FGL J2345.2-1555
   Spectrum: LogParabola
477         norm:  2.866e-01  3.422e-01  1.000e-04  1.000e+04 ( 1.000e-11)
478        alpha:  1.954e+00  8.726e-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:  1.023e+00  1.773e-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:  9.853e-01  1.767e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 1.09
Ra Dec: 356.303 -15.918
Photon Index (Free Index): 1.95 +/- 0.87
Photon Flux (Free Index): 1.51e-08 +/- 2.00e-08
Energy Flux (Free Index): 9.09e-06 +/- 1.32e-05

Creating a high resolution counts map...
INFO: Auto-setting vmin to -2.500e-04 [aplpy.core]
INFO: Auto-setting vmax to  2.775e-03 [aplpy.core]
Saving /scratch/kocevski/104338/cmap_HighResolution_644976001_645235201_4FGL_J2345.2-1555_daily_bin1565.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='3.33e-05', comment='SUCCESS', photon_flux='1.60e-08', energy_flux2='9.09e-06', photon_flux_error='1.99e-08', dlogl='4.15e-03', energy_flux='8.47e-06', photon_flux2='1.51e-08', job_status='DONE', time_completed='2021-09-30 04:23:39.849125', photon_index_error2='0.87', photon_index2='1.95', ts='1.08', fit_tolerance='1e-08', GAL='1.02', photon_index_error='0.00', photon_flux_upper_limit='6.30e-08', energy_flux_error2='1.32e-05', EG='0.98', time_epoch_completed='1633001019.85', return_code='0', job_id='104338', GAL2='1.02', EG2='0.99', return_code2='0', energy_flux_error='1.05e-05', photon_flux_error2='2.00e-08', ts2='1.09', photon_index='2.03' WHERE bin_id='1565' AND source_name='4FGL J2345.2-1555' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Thu Sep 30 04:23:39 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0124>
Subject: Job 104338: <4FGL_J2345.2-1555_daily_bin1565> in cluster <slac> Done

Job <4FGL_J2345.2-1555_daily_bin1565> was submitted from host <rhel6-64q> by user <kocevski> in cluster <slac> at Thu Sep 30 04:10:27 2021
Job was executed on host(s) <bullet0124>, in queue <medium>, as user <kocevski> in cluster <slac> at Thu Sep 30 04:10:28 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:10:28 2021
Terminated at Thu Sep 30 04:23:40 2021
Results reported at Thu Sep 30 04:23:40 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2345.2-1555_daily_bin1565 356.303 -15.9182 644976001 645235201 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 :                                   624.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             302.40 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   792 sec.
    Turnaround time :                            793 sec.

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

