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


Performing analysis on: 4FGL_J2145.0-3356_daily_bin1700
RA = 326.253, Dec = -33.9439
tmin = 679968001, tmax = 680227201
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='83323', job_status='RUN', time_executed='2022-07-23 00:37:38.298184', time_epoch_executed='1658561858.3' WHERE source_name='4FGL J2145.0-3356' and cadence='daily' and bin_id='1700'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/83323

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/83323/ft1_4FGL_J2145.0-3356_daily_bin1700.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/83323/ft2_4FGL_J2145.0-3356_daily_bin1700.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/83323/ft1_4FGL_J2145.0-3356_daily_bin1700.fits outfile=/scratch/kocevski/83323/ft1_filteredMKT_4FGL_J2145.0-3356_daily_bin1700.fits ra=326.253 dec=-33.9439 rad=12.0 tmin=679968001.0 tmax=680227201.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.56
user 4.31
sys 0.23

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/83323/ft2_4FGL_J2145.0-3356_daily_bin1700.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/83323/ft2_4FGL_J2145.0-3356_daily_bin1700.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/83323/ft1_filteredMKT_4FGL_J2145.0-3356_daily_bin1700.fits evtable="EVENTS" outfile="/scratch/kocevski/83323/ft1_filtered_4FGL_J2145.0-3356_daily_bin1700.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.50
user 0.34
sys 0.15

Number of photons that the gtmktime cut: 517

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/83323/ft1_filtered_4FGL_J2145.0-3356_daily_bin1700.fits" evtable="EVENTS" scfile=/scratch/kocevski/83323/ft2_4FGL_J2145.0-3356_daily_bin1700.fits sctable="SC_DATA" outfile=/scratch/kocevski/83323/ltcube_679968001_680227201_4FGL_J2145.0-3356_daily_bin1700.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/83323/ft2_4FGL_J2145.0-3356_daily_bin1700.fits
.....................!
real 11.79
user 11.44
sys 0.32

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/83323/ft1_filtered_4FGL_J2145.0-3356_daily_bin1700.fits evtable="EVENTS" scfile=/scratch/kocevski/83323/ft2_4FGL_J2145.0-3356_daily_bin1700.fits sctable="SC_DATA" expcube=/scratch/kocevski/83323/ltcube_679968001_680227201_4FGL_J2145.0-3356_daily_bin1700.fits outfile=/scratch/kocevski/83323/expmap_679968001_680227201_4FGL_J2145.0-3356_daily_bin1700.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/83323/ltcube_679968001_680227201_4FGL_J2145.0-3356_daily_bin1700.fits
.....................!
real 191.47
user 185.37
sys 5.48

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 165 point sources and 0 extended sources

Setting source of interest to:
4FGL J2145.0-3356 @ 326.253 -33.9439

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/83323/ft1_filtered_4FGL_J2145.0-3356_daily_bin1700.fits scfile=/scratch/kocevski/83323/ft2_4FGL_J2145.0-3356_daily_bin1700.fits outfile=/scratch/kocevski/83323/cmap_679968001_680227201_4FGL_J2145.0-3356_daily_bin1700.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=326.253 yref=-33.9439 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.93
user 0.38
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/83323/ft1_filtered_4FGL_J2145.0-3356_daily_bin1700.fits scfile=/scratch/kocevski/83323/ft2_4FGL_J2145.0-3356_daily_bin1700.fits outfile=/scratch/kocevski/83323/cmap_HighResolution_679968001_680227201_4FGL_J2145.0-3356_daily_bin1700.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=326.253 yref=-33.9439 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.88
user 0.39
sys 0.16

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/83323/ft1_filtered_4FGL_J2145.0-3356_daily_bin1700.fits evtable="EVENTS" scfile=/scratch/kocevski/83323/ft2_4FGL_J2145.0-3356_daily_bin1700.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/83323/Model_4FGL_J2145.0-3356_daily_bin1700.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/83323/ft1_filtered_4FGL_J2145.0-3356_daily_bin1700.fits.....................!
real 51.79
user 46.39
sys 1.27

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/83323/ft1_filtered_4FGL_J2145.0-3356_daily_bin1700.fits', '/scratch/kocevski/83323/ft2_4FGL_J2145.0-3356_daily_bin1700.fits', expMap='/scratch/kocevski/83323/expmap_679968001_680227201_4FGL_J2145.0-3356_daily_bin1700.fits', expCube='/scratch/kocevski/83323/ltcube_679968001_680227201_4FGL_J2145.0-3356_daily_bin1700.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/83323/Model_4FGL_J2145.0-3356_daily_bin1700.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J2145.0-3356'

4FGL J2145.0-3356
   Spectrum: LogParabola
270         norm:  5.316e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-12)
271        alpha:  2.164e+00  0.000e+00  0.000e+00  5.000e+00 ( 1.000e+00) fixed
272         beta:  1.178e-01  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
273           Eb:  6.388e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/83323/ft1_filtered_4FGL_J2145.0-3356_daily_bin1700.fits
Spacecraft file(s): /scratch/kocevski/83323/ft2_4FGL_J2145.0-3356_daily_bin1700.fits
Exposure map: /scratch/kocevski/83323/expmap_679968001_680227201_4FGL_J2145.0-3356_daily_bin1700.fits
Exposure cube: /scratch/kocevski/83323/ltcube_679968001_680227201_4FGL_J2145.0-3356_daily_bin1700.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/83323/Model_4FGL_J2145.0-3356_daily_bin1700.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) = 5586.10919752

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    11.297       1.0000         .10000E-03   10000.    
     2 'Prefactor '    21.841       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
     4 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     5 'norm      '    2.2739       1.0000         .10000E-03   10000.    
     6 'Prefactor '    6.3823       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    4.6452       1.0000         .10000E-03   10000.    
     9 'norm      '    8.3844       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    .94452       1.0000         .10000E-03   10000.    
    13 'norm      '    .37041       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    13.912       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    19 'Normalizat'    .79680       1.0000         .10000E-01   10.000    
    20 'Prefactor '    .96087       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5360E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   5586.079     FROM MIGRAD    STATUS=CONVERGED    400 CALLS     2013 TOTAL
                     EDM=   .17E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     11.297        22.088        .29799E-02    .19276E-03
   2  Prefactor     21.841        18.354        .21427E-02   -.11916E-03
   3  Prefactor     .10000E-03    15.674        .90712E-02** at limit **
   4  norm          .10000E-03    2.2652        .90712E-02** at limit **
   5  norm          2.2737        2.9631        .68082E-02    .29328E-03
   6  Prefactor     6.3816        9.1426        .39719E-02    .17724E-03
   7  Prefactor     .10001E-03    10.598        .90712E-02** at limit **
   8  Prefactor     4.6456        8.8258        .46683E-02    .20865E-03
   9  norm          8.3848        9.2022        .34612E-02    .96857E-04
  10  Prefactor     .10003E-03    7.9711        .90712E-02** at limit **
  11  Prefactor     .10007E-03    23.936        .90712E-02** at limit **
  12  norm          .94398        3.8612        .12968E-01    .11734E-02
  13  norm          .37043        .25063        .65092E-02    .15841E-03
  14  Prefactor     .10002E-03    7.0937        .90712E-02** at limit **
  15  Prefactor     13.912        13.228        .26847E-02    .52683E-04
  16  Prefactor     .10000E-03    3.4449        .90712E-02** at limit **
  17  Prefactor     .10000E-03    5.9248        .90712E-02** at limit **
  18  Prefactor     .10009E-03    20.784        .90712E-02** at limit **
  19  Normalizat    .79681        .17460        .62354E-01    .23815E-04
  20  Prefactor     .96086        .11952        .45776E-01   -.20260E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 11.2965
  Prefactor  = 21.8414
  Prefactor  = 0.000100002
  norm       = 0.0001
  norm       = 2.27374
  Prefactor  = 6.38163
  Prefactor  = 0.000100007
  Prefactor  = 4.64559
  norm       = 8.38483
  Prefactor  = 0.000100031
  Prefactor  = 0.00010007
  norm       = 0.94398
  norm       = 0.370427
  Prefactor  = 0.000100017
  Prefactor  = 13.9117
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000100091
  Normalizat = 0.796813
  Prefactor  = 0.960855
 **********
 **   18 **HESSE 
 **********

 FCN=   5586.079     FROM HESSE     STATUS=OK           291 CALLS     2304 TOTAL
                     EDM=   .14E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     11.297        22.153        .11920E-03   -1.5036    
   2  Prefactor     21.841        18.373        .85706E-04   -1.4773    
   3  Prefactor     .10000E-03    15.714        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  norm          .10000E-03    2.2657        .10986E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          2.2737        2.9499        .14230E-03   -1.5406    
   6  Prefactor     6.3816        9.0950        .15888E-03   -1.5203    
   7  Prefactor     .10001E-03    10.663        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     4.6456        8.7641        .18673E-03   -1.5277    
   9  norm          8.3848        9.1648        .13845E-03   -1.5129    
  10  Prefactor     .10003E-03    7.9822        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10007E-03    23.954        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          .94398        3.8055        .26177E-03   -1.5514    
  13  norm          .37043        .24521        .29053E-04   -1.5586    
  14  Prefactor     .10002E-03    7.2069        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     13.912        13.241        .10739E-03   -1.4962    
  16  Prefactor     .10000E-03    3.4657        .13542E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    5.9278        .17768E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10009E-03    20.881        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Normalizat    .79681        .19945        .27580E-03   -1.0019    
  20  Prefactor     .96086        .13845        .17875E-03   -.94046    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.44309e-08
Minuit parameter uncertainties:
  1  22.1694
  2  18.3782
  3  0.000343731
  4  1.38287e-06
  5  2.95006
  6  9.097
  7  0.000534362
  8  8.76648
  9  9.16631
  10  0.000993638
  11  0.0025837
  12  3.79088
  13  0.245212
  14  0.000694078
  15  13.2435
  16  2.53122e-06
  17  9.32083e-05
  18  0.00276191
  19  0.199633
  20  0.138504
Done.

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

Extracting fit parameters...

4FGL J2145.0-3356
   Spectrum: LogParabola
270         norm:  8.385e+00  9.166e+00  1.000e-04  1.000e+04 ( 1.000e-12)
271        alpha:  2.164e+00  0.000e+00  0.000e+00  5.000e+00 ( 1.000e+00) fixed
272         beta:  1.178e-01  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
273           Eb:  6.388e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
533    Prefactor:  9.609e-01  1.385e-01  0.000e+00  1.000e+01 ( 1.000e+00)
534        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
535        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
532   Normalization:  7.968e-01  1.996e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 1.17
Ra Dec: 326.253 -33.944
Photon Index (Fixed Index): 2.16 +/- 0.00
Photon Flux (Fixed Index): 3.29e-08 +/- 3.60e-08
Energy Flux (Fixed Index): 1.33e-05 +/- 1.45e-05

TS (Fixed Index): 1.17
Ra Dec: 326.253 -33.944
Photon Flux Upper Limit: 1.11e-07 ph cm-2 s-1
Energy Flux Upper Limit: 4.50e-05 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/83323/likelihoodResults_679968001_680227201_4FGL_J2145.0-3356_daily_bin1700.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) = 5583.66613653
delta logL = 2.41287490038

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5583.61220061
delta logL = 2.46681082416

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .84861       1.0000         .10000E-03   10000.    
     2 'alpha     '    4.8375       1.0000          .0000       5.0000    
     3 'Normalizat'    .68039       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0099       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5360E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   5583.612     FROM MIGRAD    STATUS=CONVERGED     52 CALLS      274 TOTAL
                     EDM=   .25E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .84859        .66671        .71908E-02    .54885E-02
   2  alpha         4.8382        .54499        .50000       -.65668E-05
   3  Normalizat    .68030        .17280        .66711E-01   -.28321E-03
   4  Prefactor     1.0099        .11892        .43341E-01   -.84351E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 0.848593
  alpha      = 4.83817
  Normalizat = 0.680299
  Prefactor  = 1.00994
 **********
 **   18 **HESSE 
 **********

 FCN=   5583.612     FROM HESSE     STATUS=OK            31 CALLS      305 TOTAL
                     EDM=   .17E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .84859        2.2861        .32202E-04   -1.5524    
   2  alpha         4.8382        4.4872        .30689E-01    1.2090    
   3  Normalizat    .68030        .19529        .29519E-03   -1.0468    
   4  Prefactor     1.0099        .13603        .17447E-03   -.92399    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.66244e-09
Minuit parameter uncertainties:
  1  2.2863
  2  1.70119
  3  0.195491
  4  0.136074
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/83323': 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) = 5583.61219874
delta logL = 2.46681269384

Extracting fit parameters...

4FGL J2145.0-3356
   Spectrum: LogParabola
270         norm:  8.486e-01  2.286e+00  1.000e-04  1.000e+04 ( 1.000e-12)
271        alpha:  4.838e+00  1.701e+00  0.000e+00  5.000e+00 ( 1.000e+00)
272         beta:  1.178e-01  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
273           Eb:  6.388e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
533    Prefactor:  1.010e+00  1.361e-01  0.000e+00  1.000e+01 ( 1.000e+00)
534        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
535        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
532   Normalization:  6.803e-01  1.955e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 6.50
Ra Dec: 326.253 -33.944
Photon Index (Free Index): 4.84 +/- 1.70
Photon Flux (Free Index): 1.29e-07 +/- 6.39e-08
Energy Flux (Free Index): 1.79e-05 +/- 9.30e-06

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/83323/cmap_HighResolution_679968001_680227201_4FGL_J2145.0-3356_daily_bin1700.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='4.50e-05', comment='SUCCESS', photon_flux='3.29e-08', energy_flux2='1.79e-05', photon_flux_error='3.60e-08', dlogl='2.47e+00', energy_flux='1.33e-05', photon_flux2='1.29e-07', job_status='DONE', time_completed='2022-07-23 00:47:24.989469', photon_index_error2='1.70', photon_index2='4.84', ts='1.17', fit_tolerance='1e-08', GAL='0.96', photon_index_error='0.00', photon_flux_upper_limit='1.11e-07', energy_flux_error2='9.30e-06', EG='0.80', time_epoch_completed='1658562444.99', return_code='0', job_id='83323', GAL2='1.01', EG2='0.68', return_code2='0', energy_flux_error='1.45e-05', photon_flux_error2='6.39e-08', ts2='6.50', photon_index='2.16' WHERE bin_id='1700' AND source_name='4FGL J2145.0-3356' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Jul 23 00:47:25 PDT 2022


------------------------------------------------------------
Sender: LSF System <lsf@bullet0240>
Subject: Job 83323: <4FGL_J2145.0-3356_daily_bin1700> in cluster <slac> Done

Job <4FGL_J2145.0-3356_daily_bin1700> was submitted from host <rhel6-64k> by user <kocevski> in cluster <slac> at Sat Jul 23 00:35:38 2022
Job was executed on host(s) <bullet0240>, in queue <medium>, as user <kocevski> in cluster <slac> at Sat Jul 23 00:35:40 2022
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Sat Jul 23 00:35:40 2022
Terminated at Sat Jul 23 00:47:25 2022
Results reported at Sat Jul 23 00:47:25 2022

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2145.0-3356_daily_bin1700 326.253 -33.9439 679968001 680227201 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J2145.0-3356 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   554.13 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             294.14 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   705 sec.
    Turnaround time :                            707 sec.

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

