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


Performing analysis on: 4FGL_J2345.2-1555_daily_bin745
RA = 356.303, Dec = -15.9182
tmin = 432432001, tmax = 432691201
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='99480', job_status='RUN', time_executed='2021-09-30 03:58:07.626658', time_epoch_executed='1632999487.63' WHERE source_name='4FGL J2345.2-1555' and cadence='daily' and bin_id='745'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/99480

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/99480/ft1_4FGL_J2345.2-1555_daily_bin745.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/99480/ft2_4FGL_J2345.2-1555_daily_bin745.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/99480/ft1_4FGL_J2345.2-1555_daily_bin745.fits outfile=/scratch/kocevski/99480/ft1_filteredMKT_4FGL_J2345.2-1555_daily_bin745.fits ra=356.303 dec=-15.9182 rad=12.0 tmin=432432001.0 tmax=432691201.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.15
user 4.84
sys 0.22

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/99480/ft1_filtered_4FGL_J2345.2-1555_daily_bin745.fits" evtable="EVENTS" scfile=/scratch/kocevski/99480/ft2_4FGL_J2345.2-1555_daily_bin745.fits sctable="SC_DATA" outfile=/scratch/kocevski/99480/ltcube_432432001_432691201_4FGL_J2345.2-1555_daily_bin745.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/99480/ft2_4FGL_J2345.2-1555_daily_bin745.fits
.....................!
real 12.35
user 11.87
sys 0.36

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/99480/ft1_filtered_4FGL_J2345.2-1555_daily_bin745.fits evtable="EVENTS" scfile=/scratch/kocevski/99480/ft2_4FGL_J2345.2-1555_daily_bin745.fits sctable="SC_DATA" expcube=/scratch/kocevski/99480/ltcube_432432001_432691201_4FGL_J2345.2-1555_daily_bin745.fits outfile=/scratch/kocevski/99480/expmap_432432001_432691201_4FGL_J2345.2-1555_daily_bin745.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/99480/ltcube_432432001_432691201_4FGL_J2345.2-1555_daily_bin745.fits
.....................!
real 193.68
user 186.18
sys 5.30

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/99480/ft1_filtered_4FGL_J2345.2-1555_daily_bin745.fits scfile=/scratch/kocevski/99480/ft2_4FGL_J2345.2-1555_daily_bin745.fits outfile=/scratch/kocevski/99480/cmap_432432001_432691201_4FGL_J2345.2-1555_daily_bin745.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.54
user 0.37
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/99480/ft1_filtered_4FGL_J2345.2-1555_daily_bin745.fits scfile=/scratch/kocevski/99480/ft2_4FGL_J2345.2-1555_daily_bin745.fits outfile=/scratch/kocevski/99480/cmap_HighResolution_432432001_432691201_4FGL_J2345.2-1555_daily_bin745.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.56
user 0.38
sys 0.17

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/99480/ft1_filtered_4FGL_J2345.2-1555_daily_bin745.fits evtable="EVENTS" scfile=/scratch/kocevski/99480/ft2_4FGL_J2345.2-1555_daily_bin745.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/99480/Model_4FGL_J2345.2-1555_daily_bin745.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/99480/ft1_filtered_4FGL_J2345.2-1555_daily_bin745.fits.....................!
real 28.75
user 27.18
sys 1.21

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     2 'norm      '    55.712       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10067E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    22.417       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    16.616       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10030E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .14895E-03   1.0000         .10000E-03   10000.    
    10 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    .18989E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10027E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10030E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .30668E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .19040E-02   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    1.0419       1.0000         .10000E-03   10000.    
    18 'norm      '    4.2487       1.0000         .10000E-03   10000.    
    19 'Prefactor '    10.696       1.0000         .10000E-03   10000.    
    20 'Normalizat'    1.0919       1.0000         .10000E-01   10.000    
    21 'Prefactor '    .72575       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=   2321.132     FROM MIGRAD    STATUS=CONVERGED    436 CALLS     2167 TOTAL
                     EDM=   .73E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.2%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    6.8539       -.62847E-07** at limit **
   2  norm          55.733        70.348        .53676E-06    .66480E-05
   3  Prefactor     .10000E-03    41.356       -.10107E-06** at limit **
   4  Prefactor     .10000E-03    23.652       -.11655E-06** at limit **
   5  Prefactor     22.426        28.984        .18193E-06    .62959E-05
   6  Prefactor     .10000E-03    6.7773       -.11900E-07** at limit **
   7  Prefactor     16.699        126.82       -.13865E-04   -.36720E-04
   8  Prefactor     .10000E-03    14.875       -.29817E-07** at limit **
   9  Prefactor     .10000E-03    36.165        .12685E-04** at limit **
  10  norm          .10000E-03    5.6479        .10359E-05** at limit **
  11  norm          .10093E-03    4.5518        .16789E-05** at limit **
  12  Prefactor     .10000E-03    34.533       -.15614E-06** at limit **
  13  Prefactor     .10000E-03    13.035        .29290E-08** at limit **
  14  Prefactor     .10000E-03    193.09       -.32232E-05** at limit **
  15  Prefactor     .10002E-03    463.66       -.17136E-05** at limit **
  16  Prefactor     .10000E-03    64.524        .26944E-07** at limit **
  17  norm          1.0420        .92383        .28999E-07   -.11351E-03
  18  norm          4.2494        6.7567        .12908E-06   -.54201E-04
  19  Prefactor     10.699        13.573        .95018E-07   -.18226E-04
  20  Normalizat    1.0917        .27240       -.71442E-06   -.26357E-03
  21  Prefactor     .72562        .24956       -.21078E-06   -.23250E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  norm       = 55.7328
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 22.4257
  Prefactor  = 0.0001
  Prefactor  = 16.6994
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 0.000100925
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000100001
  Prefactor  = 0.000100018
  Prefactor  = 0.0001
  norm       = 1.04204
  norm       = 4.24943
  Prefactor  = 10.6986
  Normalizat = 1.09171
  Prefactor  = 0.725616
 **********
 **   18 **HESSE 
 **********

 FCN=   2321.132     FROM HESSE     STATUS=OK           307 CALLS     2474 TOTAL
                     EDM=   .18E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    6.8615        .12318E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          55.733        70.299        .53742E-04   -1.4213    
   3  Prefactor     .10000E-03    41.374        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    23.696        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     22.426        28.973        .84599E-04   -1.4760    
   6  Prefactor     .10000E-03    6.7795        .12251E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     16.699        134.31        .98255E-04   -1.4890    
   8  Prefactor     .10000E-03    14.877        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    37.426        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          .10000E-03    5.6673        .11189E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          .10093E-03    51.732        .18522E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    34.532        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    13.054        .16991E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    196.44        .21380E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10002E-03    462.40        .20273E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    64.526        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          1.0420        .93205        .37821E-04   -1.5504    
  18  norm          4.2494        6.9078        .13657E-03   -1.5296    
  19  Prefactor     10.699        13.634        .12251E-03   -1.5054    
  20  Normalizat    1.0917        .31400        .22073E-03   -.90019    
  21  Prefactor     .72562        .28786        .24989E-03   -1.0253    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.75109e-08
Minuit parameter uncertainties:
  1  3.25871e-06
  2  70.404
  3  9.91282e-06
  4  5.06406e-05
  5  28.9915
  6  1.83924e-06
  7  95.0109
  8  7.96673e-06
  9  0.000220505
  10  1.01035e-05
  11  0.0138494
  12  7.75228e-05
  13  7.6822e-06
  14  0.00073715
  15  0.00574304
  16  0.000102474
  17  0.932066
  18  6.90911
  19  13.6384
  20  0.314538
  21  0.288452
Done.

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

Extracting fit parameters...

4FGL J2345.2-1555
   Spectrum: LogParabola
477         norm:  1.042e+00  9.321e-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.256e-01  2.885e-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.092e+00  3.145e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 3.09
Ra Dec: 356.303 -15.918
Photon Index (Fixed Index): 2.03 +/- 0.00
Photon Flux (Fixed Index): 5.96e-08 +/- 5.33e-08
Energy Flux (Fixed Index): 3.15e-05 +/- 2.82e-05

TS (Fixed Index): 3.09
Ra Dec: 356.303 -15.918
Photon Flux Upper Limit: 1.74e-07 ph cm-2 s-1
Energy Flux Upper Limit: 9.20e-05 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/99480/likelihoodResults_432432001_432691201_4FGL_J2345.2-1555_daily_bin745.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) = 2320.94691713
delta logL = 0.185423352013

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 2320.94058496
delta logL = 0.191755516691

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .84490       1.0000         .10000E-03   10000.    
     2 'alpha     '    2.5375       1.0000          .0000       5.0000    
     3 'Normalizat'    1.0552       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .74817       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.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   2320.941     FROM MIGRAD    STATUS=CONVERGED     80 CALLS      256 TOTAL
                     EDM=   .20E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .84488        .84785        .31192E-04   -.16206E-02
   2  alpha         2.5376        .87678        .10389E-01   -.51884E-04
   3  Normalizat    1.0552        .31072        .22387E-03   -.82776E-05
   4  Prefactor     .74822        .28880        .24636E-03   -.31287E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 0.844876
  alpha      = 2.53756
  Normalizat = 1.05519
  Prefactor  = 0.748221
 **********
 **   18 **HESSE 
 **********

 FCN=   2320.941     FROM HESSE     STATUS=OK            23 CALLS      279 TOTAL
                     EDM=   .22E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .84488        .81587        .12477E-05   -1.5524    
   2  alpha         2.5376        .84416        .41556E-03    .15025E-01
   3  Normalizat    1.0552        .31047        .89547E-05   -.91204    
   4  Prefactor     .74822        .28873        .98544E-05   -1.0167    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.19527e-10
Minuit parameter uncertainties:
  1  0.815876
  2  0.861087
  3  0.311004
  4  0.289312
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/99480': 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) = 2320.94058492
delta logL = 0.191755557248

Extracting fit parameters...

4FGL J2345.2-1555
   Spectrum: LogParabola
477         norm:  8.449e-01  8.159e-01  1.000e-04  1.000e+04 ( 1.000e-11)
478        alpha:  2.538e+00  8.611e-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.482e-01  2.893e-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.055e+00  3.110e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 3.51
Ra Dec: 356.303 -15.918
Photon Index (Free Index): 2.54 +/- 0.86
Photon Flux (Free Index): 9.07e-08 +/- 8.33e-08
Energy Flux (Free Index): 2.64e-05 +/- 1.98e-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/99480/cmap_HighResolution_432432001_432691201_4FGL_J2345.2-1555_daily_bin745.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='9.20e-05', comment='SUCCESS', photon_flux='5.96e-08', energy_flux2='2.64e-05', photon_flux_error='5.33e-08', dlogl='1.92e-01', energy_flux='3.15e-05', photon_flux2='9.07e-08', job_status='DONE', time_completed='2021-09-30 04:05:20.614565', photon_index_error2='0.86', photon_index2='2.54', ts='3.09', fit_tolerance='1e-08', GAL='0.73', photon_index_error='0.00', photon_flux_upper_limit='1.74e-07', energy_flux_error2='1.98e-05', EG='1.09', time_epoch_completed='1632999920.61', return_code='0', job_id='99480', GAL2='0.75', EG2='1.06', return_code2='0', energy_flux_error='2.82e-05', photon_flux_error2='8.33e-08', ts2='3.51', photon_index='2.03' WHERE bin_id='745' AND source_name='4FGL J2345.2-1555' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Thu Sep 30 04:05:20 PDT 2021


------------------------------------------------------------
Sender: LSF System <scs@bullet0137>
Subject: Job 99480: <4FGL_J2345.2-1555_daily_bin745> in cluster <slac> Done

Job <4FGL_J2345.2-1555_daily_bin745> was submitted from host <rhel6-64d> by user <kocevski> in cluster <slac> at Thu Sep 30 03:55:48 2021
Job was executed on host(s) <bullet0137>, in queue <medium>, as user <kocevski> in cluster <slac> at Thu Sep 30 03:55:49 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Thu Sep 30 03:55:49 2021
Terminated at Thu Sep 30 04:05:37 2021
Results reported at Thu Sep 30 04:05:37 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2345.2-1555_daily_bin745 356.303 -15.9182 432432001 432691201 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 :                                   425.13 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             299.95 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   571 sec.
    Turnaround time :                            589 sec.

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

