aklog: Couldn't determine realm of user:aklog: No credentials cache found  while getting realm
/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 64 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 = 7483
number of fields = 31
RA_SUN column already exists. File will not be modified.
Done.


Performing analysis on: 4FGL_J2345.2-1555_daily_bin1683
RA = 356.303, Dec = -15.9182
tmin = 675561601, tmax = 675820801
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='53043', job_status='RUN', time_executed='2022-06-02 01:39:39.501532', time_epoch_executed='1654159179.5' WHERE source_name='4FGL J2345.2-1555' and cadence='daily' and bin_id='1683'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/53043

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/53043/ft1_4FGL_J2345.2-1555_daily_bin1683.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/53043/ft2_4FGL_J2345.2-1555_daily_bin1683.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/53043/ft1_4FGL_J2345.2-1555_daily_bin1683.fits outfile=/scratch/kocevski/53043/ft1_filteredMKT_4FGL_J2345.2-1555_daily_bin1683.fits ra=356.303 dec=-15.9182 rad=12.0 tmin=675561601.0 tmax=675820801.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.50
user 3.27
sys 0.21

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

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

Number of photons that the gtmktime cut: 633

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/53043/ft1_filtered_4FGL_J2345.2-1555_daily_bin1683.fits" evtable="EVENTS" scfile=/scratch/kocevski/53043/ft2_4FGL_J2345.2-1555_daily_bin1683.fits sctable="SC_DATA" outfile=/scratch/kocevski/53043/ltcube_675561601_675820801_4FGL_J2345.2-1555_daily_bin1683.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/53043/ft2_4FGL_J2345.2-1555_daily_bin1683.fits
.....................!
real 13.80
user 13.35
sys 0.36

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/53043/ft1_filtered_4FGL_J2345.2-1555_daily_bin1683.fits evtable="EVENTS" scfile=/scratch/kocevski/53043/ft2_4FGL_J2345.2-1555_daily_bin1683.fits sctable="SC_DATA" expcube=/scratch/kocevski/53043/ltcube_675561601_675820801_4FGL_J2345.2-1555_daily_bin1683.fits outfile=/scratch/kocevski/53043/expmap_675561601_675820801_4FGL_J2345.2-1555_daily_bin1683.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/53043/ltcube_675561601_675820801_4FGL_J2345.2-1555_daily_bin1683.fits
.....................!
real 192.28
user 186.64
sys 4.55

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/53043/ft1_filtered_4FGL_J2345.2-1555_daily_bin1683.fits scfile=/scratch/kocevski/53043/ft2_4FGL_J2345.2-1555_daily_bin1683.fits outfile=/scratch/kocevski/53043/cmap_675561601_675820801_4FGL_J2345.2-1555_daily_bin1683.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.55
user 0.37
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/53043/ft1_filtered_4FGL_J2345.2-1555_daily_bin1683.fits scfile=/scratch/kocevski/53043/ft2_4FGL_J2345.2-1555_daily_bin1683.fits outfile=/scratch/kocevski/53043/cmap_HighResolution_675561601_675820801_4FGL_J2345.2-1555_daily_bin1683.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.39
sys 0.15

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/53043/ft1_filtered_4FGL_J2345.2-1555_daily_bin1683.fits evtable="EVENTS" scfile=/scratch/kocevski/53043/ft2_4FGL_J2345.2-1555_daily_bin1683.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/53043/Model_4FGL_J2345.2-1555_daily_bin1683.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/53043/ft1_filtered_4FGL_J2345.2-1555_daily_bin1683.fits.....................!
real 54.65
user 53.22
sys 1.26

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    9.4114       1.0000         .10000E-03   10000.    
     2 'norm      '    48.351       1.0000         .10000E-03   10000.    
     3 'Prefactor '    19.156       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10022E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10685       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10018E-03   1.0000         .10000E-03   10000.    
    10 'norm      '    3.2815       1.0000         .10000E-03   10000.    
    11 'norm      '    .27662E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10600E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    14.312       1.0000         .10000E-03   10000.    
    14 'Prefactor '    34.427       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    18 'norm      '    21.589       1.0000         .10000E-03   10000.    
    19 'Prefactor '    3.3434       1.0000         .10000E-03   10000.    
    20 'Normalizat'    .85580       1.0000         .10000E-01   10.000    
    21 'Prefactor '    .76198       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=   6920.211     FROM MIGRAD    STATUS=CONVERGED    488 CALLS     2278 TOTAL
                     EDM=   .13E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .4%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     9.4109        6.8198       -.14196E-06   -.36984E-04
   2  norm          48.348        30.596       -.50307E-06   -.38764E-05
   3  Prefactor     19.153        30.759        .75285E-06   -.18386E-05
   4  Prefactor     .10000E-03    8.1355       -.16332E-06** at limit **
   5  Prefactor     .10000E-03    25.414       -.54134E-06** at limit **
   6  Prefactor     .10000E-03    3.4988       -.78279E-08** at limit **
   7  Prefactor     .10002E-03    20.553       -.61146E-07** at limit **
   8  Prefactor     .10000E-03    4.9681        .47875E-08** at limit **
   9  Prefactor     .10000E-03    6.4155       -.42185E-09** at limit **
  10  norm          3.2830        3.8524       -.26027E-06   -.44135E-03
  11  norm          .10000E-03    1.0226        .51602E-06** at limit **
  12  Prefactor     .10000E-03    71.022        .14971E-05** at limit **
  13  Prefactor     14.321        11.359       -.34428E-05   -.83985E-04
  14  Prefactor     34.431        26.201       -.42175E-05   -.16433E-03
  15  Prefactor     .10000E-03    10.435        .67959E-07** at limit **
  16  Prefactor     .10000E-03    45.473       -.26844E-06** at limit **
  17  norm          .10000E-03    .10881        .81772E-08** at limit **
  18  norm          21.589        4.7045        .28754E-07   -.11290E-03
  19  Prefactor     3.3431        3.5961       -.13963E-06   -.19168E-03
  20  Normalizat    .85584        .14069        .11760E-05   -.24299E-03
  21  Prefactor     .76197        .13364       -.32767E-07   -.97860E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 9.41089
  norm       = 48.3483
  Prefactor  = 19.1528
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000100021
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 3.28302
  norm       = 0.000100001
  Prefactor  = 0.000100004
  Prefactor  = 14.3212
  Prefactor  = 34.4309
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 21.5888
  Prefactor  = 3.34308
  Normalizat = 0.855843
  Prefactor  = 0.761969
 **********
 **   18 **HESSE 
 **********

 FCN=   6920.211     FROM HESSE     STATUS=OK           325 CALLS     2603 TOTAL
                     EDM=   .31E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     9.4109        6.8141        .13063E-03   -1.5094    
   2  norm          48.348        30.591        .57668E-04   -1.4316    
   3  Prefactor     19.153        30.742        .91510E-04   -1.4832    
   4  Prefactor     .10000E-03    8.1664        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    25.629        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    3.5283        .15195E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10002E-03    23.554        .11163       -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    4.9696        .18109E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    6.5536        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          3.2830        3.8633        .17002E-03   -1.5346    
  11  norm          .10000E-03    14.607        .15696E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    72.247        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     14.321        11.304        .10587E-03   -1.4951    
  14  Prefactor     34.431        26.006        .68298E-04   -1.4534    
  15  Prefactor     .10000E-03    10.439        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    45.496        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          .10000E-03    .11122        .53195E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          21.589        4.6858        .79627E-04   -1.4778    
  19  Prefactor     3.3431        3.5932        .15756E-03   -1.5342    
  20  Normalizat    .85584        .16439        .22107E-03   -.98030    
  21  Prefactor     .76197        .15686        .22840E-03   -1.0115    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.08645e-10
Minuit parameter uncertainties:
  1  6.81466
  2  30.6011
  3  30.767
  4  8.4012e-06
  5  3.48712e-05
  6  2.26001e-06
  7  0.00141867
  8  7.46069e-06
  9  9.63465e-07
  10  3.86363
  11  0.000186774
  12  0.00112082
  13  11.3056
  14  26.0149
  15  1.73425e-06
  16  3.84056e-05
  17  3.27407e-07
  18  4.68589
  19  3.59345
  20  0.164484
  21  0.156956
Done.

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

Extracting fit parameters...

4FGL J2345.2-1555
   Spectrum: LogParabola
477         norm:  1.000e-04  3.274e-07  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.620e-01  1.570e-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.558e-01  1.645e-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: 3.30e-08 ph cm-2 s-1
Energy Flux Upper Limit: 1.75e-05 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/53043/likelihoodResults_675561601_675820801_4FGL_J2345.2-1555_daily_bin1683.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) = 6920.21064753
delta logL = -0.00012785846684

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 6920.2100938
delta logL = 0.000425876531153

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10011E-03   1.0000         .10000E-03   10000.    
     2 'alpha     '    4.1271       1.0000          .0000       5.0000    
     3 'Normalizat'    .85571       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .76204       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.
 MACHINE ACCURACY LIMITS FURTHER IMPROVEMENT.

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.
 MIGRAD TERMINATED WITHOUT CONVERGENCE.

 FCN=   6920.210     FROM MIGRAD    STATUS=FAILED       138 CALLS      356 TOTAL
                     EDM=   .21E-05    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    .15029        .33200E-02** at limit **
   2  alpha         4.2127        2.8760        .50000        .47116E-04
   3  Normalizat    .85569        .75199E-02    .22108E-03   -.40264E-04
   4  Prefactor     .76206        .74074E-02    .22839E-03   -.42510E-04
                               ERR DEF=  .500    
 START SIMPLEX MINIMIZATION.    CONVERGENCE WHEN EDM .LT.   .20E-04
 SIMPLEX MINIMIZATION HAS CONVERGED.

 FCN=   6920.210     FROM SIMPLEX   STATUS=UNCHANGED    133 CALLS      489 TOTAL
                     EDM=   .74E-05    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    .15029        .18629E-03** at limit **
   2  alpha         4.2127        2.8760        .39566E-03    .47116E-04
   3  Normalizat    .85569        .75199E-02    .11294E-05   -.40264E-04
   4  Prefactor     .76206        .74074E-02    .12072E-05   -.42510E-04
                               ERR DEF=  .500    

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.
 MACHINE ACCURACY LIMITS FURTHER IMPROVEMENT.

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.
 MIGRAD TERMINATED WITHOUT CONVERGENCE.

 FCN=   6920.210     FROM MIGRAD    STATUS=FAILED        95 CALLS      584 TOTAL
                     EDM=   .20E-05    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    .14155        .33834E-02** at limit **
   2  alpha         4.2127        2.6923        .50000        .47116E-04
   3  Normalizat    .85569        .74179E-02    .17687E-05   -.41138E-04
   4  Prefactor     .76206        .73069E-02    .18271E-05   -.42311E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  alpha      = 4.21274
  Normalizat = 0.855692
  Prefactor  = 0.762057
 **********
 **   18 **HESSE 
 **********

 FCN=   6920.210     FROM HESSE     STATUS=NOT POSDEF    37 CALLS      621 TOTAL
                     EDM=   .20E-05    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    .13702        .34184E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  alpha         4.2127        2.5197        .50000        .75474    
   3  Normalizat    .85569        .73647E-02    .35373E-06   -.98035    
   4  Prefactor     .76206        .72547E-02    .36543E-06   -1.0114    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 1.97291e-06
Minuit parameter uncertainties:
  1  1.22937e-06
  2  54.2801
  3  0.00736473
  4  0.00725471
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/53043': 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): 1
logL (Free Index) = 6920.21008779
delta logL = 0.000431880408541

Extracting fit parameters...

4FGL J2345.2-1555
   Spectrum: LogParabola
477         norm:  1.000e-04  1.229e-06  1.000e-04  1.000e+04 ( 1.000e-11)
478        alpha:  4.213e+00  5.428e+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.621e-01  7.255e-03  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.557e-01  7.365e-03  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 -1.000e-01 [aplpy.core]
INFO: Auto-setting vmax to  1.110e+00 [aplpy.core]
Saving /scratch/kocevski/53043/cmap_HighResolution_675561601_675820801_4FGL_J2345.2-1555_daily_bin1683.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.75e-05', job_status='DONE', photon_flux_upper_limit='3.30e-08', time_completed='2022-06-02 01:50:50.824653', job_id='53043', GAL2='0.76', fit_tolerance='1e-08', EG2='0.86', EG='0.86', time_epoch_completed='1654159850.82', return_code2='1', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.76', dlogl='4.32e-04', ts2='-0.00', photon_index_error='0.00', photon_index='2.03' WHERE bin_id='1683' AND source_name='4FGL J2345.2-1555' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Thu Jun  2 01:50:50 PDT 2022


------------------------------------------------------------
Sender: LSF System <scs@bullet0119>
Subject: Job 53043: <4FGL_J2345.2-1555_daily_bin1683> in cluster <slac> Done

Job <4FGL_J2345.2-1555_daily_bin1683> was submitted from host <rhel6-64p> by user <kocevski> in cluster <slac> at Thu Jun  2 01:35:36 2022
Job was executed on host(s) <bullet0119>, in queue <medium>, as user <kocevski> in cluster <slac> at Thu Jun  2 01:38:26 2022
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Thu Jun  2 01:38:26 2022
Terminated at Thu Jun  2 01:50:51 2022
Results reported at Thu Jun  2 01:50:51 2022

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2345.2-1555_daily_bin1683 356.303 -15.9182 675561601 675820801 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 :                                   672.51 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             329.96 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   745 sec.
    Turnaround time :                            915 sec.

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

