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


Performing analysis on: 4FGL_J2345.2-1555_daily_bin1128
RA = 356.303, Dec = -15.9182
tmin = 531705601, tmax = 531964801
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='102527', job_status='RUN', time_executed='2021-09-30 04:07:07.002902', time_epoch_executed='1633000027.0' WHERE source_name='4FGL J2345.2-1555' and cadence='daily' and bin_id='1128'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/102527

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/102527/ft1_4FGL_J2345.2-1555_daily_bin1128.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/102527/ft2_4FGL_J2345.2-1555_daily_bin1128.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/102527/ft1_4FGL_J2345.2-1555_daily_bin1128.fits outfile=/scratch/kocevski/102527/ft1_filteredMKT_4FGL_J2345.2-1555_daily_bin1128.fits ra=356.303 dec=-15.9182 rad=12.0 tmin=531705601.0 tmax=531964801.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 4.16
user 3.72
sys 0.26

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/102527/ft2_4FGL_J2345.2-1555_daily_bin1128.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/102527/ft1_filteredMKT_4FGL_J2345.2-1555_daily_bin1128.fits evtable="EVENTS" outfile="/scratch/kocevski/102527/ft1_filtered_4FGL_J2345.2-1555_daily_bin1128.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/102527/ft1_filtered_4FGL_J2345.2-1555_daily_bin1128.fits" evtable="EVENTS" scfile=/scratch/kocevski/102527/ft2_4FGL_J2345.2-1555_daily_bin1128.fits sctable="SC_DATA" outfile=/scratch/kocevski/102527/ltcube_531705601_531964801_4FGL_J2345.2-1555_daily_bin1128.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/102527/ft2_4FGL_J2345.2-1555_daily_bin1128.fits
.....................!
real 12.11
user 11.75
sys 0.30

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/102527/ft1_filtered_4FGL_J2345.2-1555_daily_bin1128.fits evtable="EVENTS" scfile=/scratch/kocevski/102527/ft2_4FGL_J2345.2-1555_daily_bin1128.fits sctable="SC_DATA" expcube=/scratch/kocevski/102527/ltcube_531705601_531964801_4FGL_J2345.2-1555_daily_bin1128.fits outfile=/scratch/kocevski/102527/expmap_531705601_531964801_4FGL_J2345.2-1555_daily_bin1128.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/102527/ltcube_531705601_531964801_4FGL_J2345.2-1555_daily_bin1128.fits
.....................!
real 191.37
user 184.96
sys 5.71

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/102527/ft1_filtered_4FGL_J2345.2-1555_daily_bin1128.fits scfile=/scratch/kocevski/102527/ft2_4FGL_J2345.2-1555_daily_bin1128.fits outfile=/scratch/kocevski/102527/cmap_531705601_531964801_4FGL_J2345.2-1555_daily_bin1128.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.39
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/102527/ft1_filtered_4FGL_J2345.2-1555_daily_bin1128.fits scfile=/scratch/kocevski/102527/ft2_4FGL_J2345.2-1555_daily_bin1128.fits outfile=/scratch/kocevski/102527/cmap_HighResolution_531705601_531964801_4FGL_J2345.2-1555_daily_bin1128.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.37
sys 0.16

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/102527/ft1_filtered_4FGL_J2345.2-1555_daily_bin1128.fits evtable="EVENTS" scfile=/scratch/kocevski/102527/ft2_4FGL_J2345.2-1555_daily_bin1128.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/102527/Model_4FGL_J2345.2-1555_daily_bin1128.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/102527/ft1_filtered_4FGL_J2345.2-1555_daily_bin1128.fits.....................!
real 36.51
user 35.20
sys 1.13

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
     2 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10073E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    19.344       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    38.697       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10036E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10016E-03   1.0000         .10000E-03   10000.    
    10 'norm      '    2.3811       1.0000         .10000E-03   10000.    
    11 'norm      '    .11071E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .44753E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    29.402       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10119E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    18 'norm      '    11.386       1.0000         .10000E-03   10000.    
    19 'Prefactor '    13.037       1.0000         .10000E-03   10000.    
    20 'Normalizat'    1.2429       1.0000         .10000E-01   10.000    
    21 'Prefactor '    .56327       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=   3562.121     FROM MIGRAD    STATUS=CONVERGED    437 CALLS     2157 TOTAL
                     EDM=   .19E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .3%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    3.7281       -.79834E-07** at limit **
   2  norm          .10000E-03    15.289        .93168E-05** at limit **
   3  Prefactor     .10000E-03    25.599        .11366E-04** at limit **
   4  Prefactor     19.342        18.506       -.87099E-06    .13080E-04
   5  Prefactor     .10000E-03    10.672        .12012E-05** at limit **
   6  Prefactor     38.693        23.666       -.22088E-05    .59484E-04
   7  Prefactor     .10000E-03    21.281       -.15557E-04** at limit **
   8  Prefactor     .10000E-03    13.125       -.10367E-04** at limit **
   9  Prefactor     .10000E-03    4.0182       -.82433E-07** at limit **
  10  norm          2.3805        4.6714       -.44686E-06   -.26687E-03
  11  norm          .10000E-03    2.0661        .13008E-05** at limit **
  12  Prefactor     .10000E-03    176.87       -.36647E-04** at limit **
  13  Prefactor     .10000E-03    15.102        .90392E-05** at limit **
  14  Prefactor     29.334        41.507       -.69103E-04    .81368E-05
  15  Prefactor     .10000E-03    18.351       -.48318E-05** at limit **
  16  Prefactor     .10000E-03    103.57        .15883E-04** at limit **
  17  norm          .10000E-03    .30437       -.14198E-06** at limit **
  18  norm          11.382        6.9053        .24128E-06    .30796E-03
  19  Prefactor     13.033        8.5084       -.92222E-06    .52294E-04
  20  Normalizat    1.2439        .22445        .87574E-05   -.19187E-03
  21  Prefactor     .56247        .19886       -.52094E-06    .30641E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 19.3425
  Prefactor  = 0.0001
  Prefactor  = 38.6933
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 2.38048
  norm       = 0.000100004
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 29.3341
  Prefactor  = 0.0001
  Prefactor  = 0.000100001
  norm       = 0.0001
  norm       = 11.3823
  Prefactor  = 13.0332
  Normalizat = 1.24389
  Prefactor  = 0.562467
 **********
 **   18 **HESSE 
 **********

 FCN=   3562.121     FROM HESSE     STATUS=OK           311 CALLS     2468 TOTAL
                     EDM=   .44E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    3.7333        .11254E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          .10000E-03    15.289        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    25.606        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     19.342        18.517        .91065E-04   -1.4828    
   5  Prefactor     .10000E-03    10.675        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     38.693        23.668        .64432E-04   -1.4463    
   7  Prefactor     .10000E-03    21.296        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    13.130        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    4.0267        .11678E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          2.3805        4.6512        .17498E-03   -1.5399    
  11  norm          .10000E-03    2.0917        .83911E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    178.48        .21211E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    15.144        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     29.334        41.575        .73888E-04   -1.4624    
  15  Prefactor     .10000E-03    18.356        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    103.73        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          .10000E-03    .32788        .62106E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          11.382        6.7241        .11175E-03   -1.5033    
  19  Prefactor     13.033        8.5165        .11094E-03   -1.4986    
  20  Normalizat    1.2439        .26814        .21533E-03   -.85257    
  21  Prefactor     .56247        .23621        .27956E-03   -1.0919    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.42084e-09
Minuit parameter uncertainties:
  1  1.15252e-05
  2  1.25849e-05
  3  4.51663e-05
  4  18.5228
  5  1.7504e-05
  6  23.6736
  7  5.14076e-05
  8  1.06278e-05
  9  1.62939e-05
  10  4.65188
  11  0.000185347
  12  0.000364742
  13  2.49914e-05
  14  41.6164
  15  2.52769e-05
  16  0.000683528
  17  7.92847e-06
  18  6.72457
  19  8.51731
  20  0.26844
  21  0.236626
Done.

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

Extracting fit parameters...

4FGL J2345.2-1555
   Spectrum: LogParabola
477         norm:  1.000e-04  7.928e-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:  5.625e-01  2.366e-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.244e+00  2.684e-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.55e-08 ph cm-2 s-1
Energy Flux Upper Limit: 3.99e-05 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/102527/likelihoodResults_531705601_531964801_4FGL_J2345.2-1555_daily_bin1128.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): 102
logL (Free Index) = 3562.12117464
delta logL = -2.28092771977e-05

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 3562.12113173
delta logL = 2.00932540793e-05

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10463E-03   1.0000         .10000E-03   10000.    
     2 'alpha     '    2.3553       1.0000          .0000       5.0000    
     3 'Normalizat'    1.2439       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .56245       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=   3562.121     FROM MIGRAD    STATUS=CONVERGED     69 CALLS      255 TOTAL
                     EDM=   .16E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    .29665        .14558E-01** at limit **
   2  alpha         2.8929        3.5520        .41239        .81168E-06
   3  Normalizat    1.2439        .64160E-02    .48707E-01    .98489E-04
   4  Prefactor     .56246        .58388E-02    .63181E-01    .95011E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  alpha      = 2.89294
  Normalizat = 1.24389
  Prefactor  = 0.562463
 **********
 **   18 **HESSE 
 **********

 FCN=   3562.121     FROM HESSE     STATUS=OK            31 CALLS      286 TOTAL
                     EDM=   .72E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    .62187        .53778E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  alpha         2.8929        3.6378        .16496        .15783    
   3  Normalizat    1.2439        .25820        .21532E-03   -.85257    
   4  Prefactor     .56246        .23445        .27956E-03   -1.0919    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 7.20579e-10
Minuit parameter uncertainties:
  1  2.21175e-05
  2  99.1172
  3  0.258467
  4  0.234858
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/102527': 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) = 3562.12110933
delta logL = 4.25025891673e-05

Extracting fit parameters...

4FGL J2345.2-1555
   Spectrum: LogParabola
477         norm:  1.000e-04  2.212e-05  1.000e-04  1.000e+04 ( 1.000e-11)
478        alpha:  2.893e+00  9.912e+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:  5.625e-01  2.349e-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.244e+00  2.585e-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/102527/cmap_HighResolution_531705601_531964801_4FGL_J2345.2-1555_daily_bin1128.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='3.99e-05', job_status='DONE', photon_flux_upper_limit='7.55e-08', time_completed='2021-09-30 04:15:27.282268', job_id='102527', GAL2='0.56', fit_tolerance='1e-08', EG2='1.24', EG='1.24', time_epoch_completed='1633000527.28', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.56', dlogl='4.25e-05', ts2='-0.00', photon_index_error='0.00', photon_index='2.03' WHERE bin_id='1128' AND source_name='4FGL J2345.2-1555' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Thu Sep 30 04:15:27 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0082>
Subject: Job 102527: <4FGL_J2345.2-1555_daily_bin1128> in cluster <slac> Done

Job <4FGL_J2345.2-1555_daily_bin1128> was submitted from host <rhel6-64d> by user <kocevski> in cluster <slac> at Thu Sep 30 04:05:17 2021
Job was executed on host(s) <bullet0082>, in queue <medium>, as user <kocevski> in cluster <slac> at Thu Sep 30 04:05:19 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:19 2021
Terminated at Thu Sep 30 04:15:28 2021
Results reported at Thu Sep 30 04:15:28 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2345.2-1555_daily_bin1128 356.303 -15.9182 531705601 531964801 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 :                                   469.09 sec.
    Max Memory :                                 1255 MB
    Average Memory :                             328.84 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   608 sec.
    Turnaround time :                            611 sec.

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

