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


Performing analysis on: 4FGL_J2345.2-1555_daily_bin1164
RA = 356.303, Dec = -15.9182
tmin = 541036801, tmax = 541296001
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='102585', job_status='RUN', time_executed='2021-09-30 04:06:55.620466', time_epoch_executed='1633000015.62' WHERE source_name='4FGL J2345.2-1555' and cadence='daily' and bin_id='1164'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/102585

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/102585/ft1_4FGL_J2345.2-1555_daily_bin1164.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/102585/ft2_4FGL_J2345.2-1555_daily_bin1164.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/102585/ft1_4FGL_J2345.2-1555_daily_bin1164.fits outfile=/scratch/kocevski/102585/ft1_filteredMKT_4FGL_J2345.2-1555_daily_bin1164.fits ra=356.303 dec=-15.9182 rad=12.0 tmin=541036801.0 tmax=541296001.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.60
user 3.38
sys 0.21

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/102585/ft2_4FGL_J2345.2-1555_daily_bin1164.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/102585/ft1_filteredMKT_4FGL_J2345.2-1555_daily_bin1164.fits evtable="EVENTS" outfile="/scratch/kocevski/102585/ft1_filtered_4FGL_J2345.2-1555_daily_bin1164.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/102585/ft1_filtered_4FGL_J2345.2-1555_daily_bin1164.fits" evtable="EVENTS" scfile=/scratch/kocevski/102585/ft2_4FGL_J2345.2-1555_daily_bin1164.fits sctable="SC_DATA" outfile=/scratch/kocevski/102585/ltcube_541036801_541296001_4FGL_J2345.2-1555_daily_bin1164.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/102585/ft2_4FGL_J2345.2-1555_daily_bin1164.fits
.....................!
real 11.85
user 11.50
sys 0.32

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/102585/ft1_filtered_4FGL_J2345.2-1555_daily_bin1164.fits evtable="EVENTS" scfile=/scratch/kocevski/102585/ft2_4FGL_J2345.2-1555_daily_bin1164.fits sctable="SC_DATA" expcube=/scratch/kocevski/102585/ltcube_541036801_541296001_4FGL_J2345.2-1555_daily_bin1164.fits outfile=/scratch/kocevski/102585/expmap_541036801_541296001_4FGL_J2345.2-1555_daily_bin1164.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/102585/ltcube_541036801_541296001_4FGL_J2345.2-1555_daily_bin1164.fits
.....................!
real 193.21
user 187.60
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/102585/ft1_filtered_4FGL_J2345.2-1555_daily_bin1164.fits scfile=/scratch/kocevski/102585/ft2_4FGL_J2345.2-1555_daily_bin1164.fits outfile=/scratch/kocevski/102585/cmap_541036801_541296001_4FGL_J2345.2-1555_daily_bin1164.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.37
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/102585/ft1_filtered_4FGL_J2345.2-1555_daily_bin1164.fits scfile=/scratch/kocevski/102585/ft2_4FGL_J2345.2-1555_daily_bin1164.fits outfile=/scratch/kocevski/102585/cmap_HighResolution_541036801_541296001_4FGL_J2345.2-1555_daily_bin1164.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.16

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/102585/ft1_filtered_4FGL_J2345.2-1555_daily_bin1164.fits evtable="EVENTS" scfile=/scratch/kocevski/102585/ft2_4FGL_J2345.2-1555_daily_bin1164.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/102585/Model_4FGL_J2345.2-1555_daily_bin1164.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/102585/ft1_filtered_4FGL_J2345.2-1555_daily_bin1164.fits.....................!
real 40.80
user 39.52
sys 1.19

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
     2 'norm      '    9.3978       1.0000         .10000E-03   10000.    
     3 'Prefactor '    18.286       1.0000         .10000E-03   10000.    
     4 'Prefactor '    24.065       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10009E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    16.492       1.0000         .10000E-03   10000.    
     7 'Prefactor '    46.959       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10706E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10032E-03   1.0000         .10000E-03   10000.    
    10 'norm      '    4.1071       1.0000         .10000E-03   10000.    
    11 'norm      '    .10024E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .74751       1.0000         .10000E-03   10000.    
    13 'Prefactor '    30.471       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .69703E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10086E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .11644E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    .10034E-03   1.0000         .10000E-03   10000.    
    18 'norm      '    9.9159       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    20 'Normalizat'    .85192       1.0000         .10000E-01   10.000    
    21 'Prefactor '    1.3863       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=   4450.559     FROM MIGRAD    STATUS=CONVERGED    549 CALLS     2330 TOTAL
                     EDM=   .10E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  7.0%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    13.697       -.25387E-06** at limit **
   2  norm          9.4844        70.457       -.12671E-06   -.93292E-05
   3  Prefactor     18.271        38.794       -.37217E-06   -.47063E-04
   4  Prefactor     24.076        21.037        .15697E-07    .52890E-05
   5  Prefactor     .10000E-03    11.447        .65935E-08** at limit **
   6  Prefactor     16.490        14.304       -.90806E-08   -.40340E-06
   7  Prefactor     46.960        52.089       -.40399E-07   -.12274E-04
   8  Prefactor     .10000E-03    21.384        .35140E-07** at limit **
   9  Prefactor     .10000E-03    6.6335       -.63683E-07** at limit **
  10  norm          4.1086        5.3284        .36528E-07   -.67792E-04
  11  norm          .10000E-03    3.8951        .16117E-07** at limit **
  12  Prefactor     .10249E-03    170.54        .81204E-05** at limit **
  13  Prefactor     30.609        28.994       -.23491E-05   -.53349E-04
  14  Prefactor     .10000E-03    170.98       -.35072E-06** at limit **
  15  Prefactor     .10000E-03    27.677        .57033E-08** at limit **
  16  Prefactor     .10000E-03    51.827        .27591E-08** at limit **
  17  norm          .10000E-03    .30985        .35009E-07** at limit **
  18  norm          9.9067        6.0998       -.17315E-07   -.50233E-04
  19  Prefactor     .10000E-03    6.6991        .30318E-08** at limit **
  20  Normalizat    .85194        .23599       -.71711E-06    .89688E-04
  21  Prefactor     1.3863        .22547        .36873E-06   -.43549E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100001
  norm       = 9.48436
  Prefactor  = 18.2714
  Prefactor  = 24.0758
  Prefactor  = 0.0001
  Prefactor  = 16.4896
  Prefactor  = 46.9604
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 4.10861
  norm       = 0.0001
  Prefactor  = 0.000102487
  Prefactor  = 30.6088
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 9.90671
  Prefactor  = 0.0001
  Normalizat = 0.851941
  Prefactor  = 1.38633
 **********
 **   18 **HESSE 
 **********

 FCN=   4450.559     FROM HESSE     STATUS=OK           323 CALLS     2653 TOTAL
                     EDM=   .24E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    13.899        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          9.4844        70.621        .13073E-03   -1.5092    
   3  Prefactor     18.271        38.797        .93662E-04   -1.4853    
   4  Prefactor     24.076        21.039        .81656E-04   -1.4726    
   5  Prefactor     .10000E-03    11.451        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     16.490        14.305        .98625E-04   -1.4896    
   7  Prefactor     46.960        52.060        .58512E-04   -1.4336    
   8  Prefactor     .10000E-03    21.405        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    6.6551        .16758E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          4.1086        5.3191        .16921E-03   -1.5303    
  11  norm          .10000E-03    4.0453        .25683E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10249E-03    252.78        .16521       -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     30.609        44.904        .72584E-04   -1.4601    
  14  Prefactor     .10000E-03    175.79        .41964E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    27.685        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    51.839        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          .10000E-03    .36118        .70436E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          9.9067        5.9681        .11952E-03   -1.5078    
  19  Prefactor     .10000E-03    6.8356        .16856E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Normalizat    .85194        .28439        .30106E-03   -.98170    
  21  Prefactor     1.3863        .27186        .23646E-03   -.80775    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.41481e-10
Minuit parameter uncertainties:
  1  0.000178159
  2  51.8465
  3  38.8507
  4  21.0456
  5  3.23833e-06
  6  14.3077
  7  52.1107
  8  1.07274e-05
  9  3.05174e-05
  10  5.31973
  11  3.28254e-06
  12  0.0503614
  13  44.9539
  14  1.41034e-05
  15  5.66665e-06
  16  5.90194e-06
  17  1.11796e-06
  18  5.96848
  19  9.66392e-06
  20  0.284889
  21  0.272143
Done.

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

Extracting fit parameters...

4FGL J2345.2-1555
   Spectrum: LogParabola
477         norm:  1.000e-04  1.118e-06  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.386e+00  2.721e-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:  8.519e-01  2.849e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/102585/likelihoodResults_541036801_541296001_4FGL_J2345.2-1555_daily_bin1164.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) = 4450.55930282
delta logL = -5.75492285861e-05

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 4450.55923686
delta logL = 8.41067412694e-06

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
     2 'alpha     '    2.0882       1.0000          .0000       5.0000    
     3 'Normalizat'    .85195       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.3863       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=   4450.398     FROM MIGRAD    STATUS=CONVERGED    179 CALLS      346 TOTAL
                     EDM=   .34E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .27269E-01    .97504        .42651E-02    .48333E-02
   2  alpha         4.2475        3.6460        .41880        .41577E-04
   3  Normalizat    .80017        .42087E-01    .69933E-01   -.11664E-03
   4  Prefactor     1.4162        .41121E-01    .52972E-01   -.24955E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0272687
  alpha      = 4.24755
  Normalizat = 0.800172
  Prefactor  = 1.4162
 **********
 **   18 **HESSE 
 **********

 FCN=   4450.398     FROM HESSE     STATUS=OK            29 CALLS      375 TOTAL
                     EDM=   .95E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .27269E-01    .26105        .18635E-04   -1.5675    
   2  alpha         4.2475        4.4630        .34888E-02    .77403    
   3  Normalizat    .80017        .28807        .30944E-03   -1.0006    
   4  Prefactor     1.4162        .27389        .23419E-03   -.79915    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 9.54115e-11
Minuit parameter uncertainties:
  1  0.168434
  2  3.27523
  3  0.288617
  4  0.274177
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/102585': 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) = 4450.39839273
delta logL = 0.160852539713

Extracting fit parameters...

4FGL J2345.2-1555
   Spectrum: LogParabola
477         norm:  2.727e-02  1.684e-01  1.000e-04  1.000e+04 ( 1.000e-11)
478        alpha:  4.248e+00  3.275e+00  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.416e+00  2.742e-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:  8.002e-01  2.886e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
Ra Dec: 356.303 -15.918

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/102585/cmap_HighResolution_541036801_541296001_4FGL_J2345.2-1555_daily_bin1164.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='4.13e-05', job_status='DONE', photon_flux_upper_limit='7.81e-08', time_completed='2021-09-30 04:16:29.547868', job_id='102585', GAL2='1.42', fit_tolerance='1e-08', EG2='0.80', EG='0.85', time_epoch_completed='1633000589.55', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.39', dlogl='1.61e-01', ts2='0.37', photon_index_error='0.00', photon_index='2.03' WHERE bin_id='1164' AND source_name='4FGL J2345.2-1555' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Thu Sep 30 04:16:29 PDT 2021


------------------------------------------------------------
Sender: LSF System <scs@bullet0116>
Subject: Job 102585: <4FGL_J2345.2-1555_daily_bin1164> in cluster <slac> Done

Job <4FGL_J2345.2-1555_daily_bin1164> was submitted from host <rhel6-64d> by user <kocevski> in cluster <slac> at Thu Sep 30 04:05:23 2021
Job was executed on host(s) <bullet0116>, in queue <medium>, as user <kocevski> in cluster <slac> at Thu Sep 30 04:05:25 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:05:25 2021
Terminated at Thu Sep 30 04:16:29 2021
Results reported at Thu Sep 30 04:16:29 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2345.2-1555_daily_bin1164 356.303 -15.9182 541036801 541296001 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 :                                   535.00 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             275.41 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   664 sec.
    Turnaround time :                            666 sec.

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

