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 133 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 make4FGLDR3xml version 01r09.
The default diffuse model files and names are for P8R3, 4FGL DRs, and the default fermitools directory locations.

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


Performing analysis on: 4FGL_J2145.0-3356_daily_bin1747
RA = 326.253, Dec = -33.9439
tmin = 692150401, tmax = 692409601
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='813628', job_status='RUN', time_executed='2022-12-11 01:42:38.127294', time_epoch_executed='1670751758.13' WHERE source_name='4FGL J2145.0-3356' and cadence='daily' and bin_id='1747'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/813628

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/813628/ft1_4FGL_J2145.0-3356_daily_bin1747.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/813628/ft2_4FGL_J2145.0-3356_daily_bin1747.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/813628/ft1_4FGL_J2145.0-3356_daily_bin1747.fits outfile=/scratch/kocevski/813628/ft1_filteredMKT_4FGL_J2145.0-3356_daily_bin1747.fits ra=326.253 dec=-33.9439 rad=12.0 tmin=692150401.0 tmax=692409601.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.99
user 3.76
sys 0.21

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/813628/ft2_4FGL_J2145.0-3356_daily_bin1747.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/813628/ft1_filteredMKT_4FGL_J2145.0-3356_daily_bin1747.fits evtable="EVENTS" outfile="/scratch/kocevski/813628/ft1_filtered_4FGL_J2145.0-3356_daily_bin1747.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.30
sys 0.18

Number of photons that the gtmktime cut: 445

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/813628/ft1_filtered_4FGL_J2145.0-3356_daily_bin1747.fits" evtable="EVENTS" scfile=/scratch/kocevski/813628/ft2_4FGL_J2145.0-3356_daily_bin1747.fits sctable="SC_DATA" outfile=/scratch/kocevski/813628/ltcube_692150401_692409601_4FGL_J2145.0-3356_daily_bin1747.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/813628/ft2_4FGL_J2145.0-3356_daily_bin1747.fits
.....................!
real 11.89
user 11.49
sys 0.37

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/813628/ft1_filtered_4FGL_J2145.0-3356_daily_bin1747.fits evtable="EVENTS" scfile=/scratch/kocevski/813628/ft2_4FGL_J2145.0-3356_daily_bin1747.fits sctable="SC_DATA" expcube=/scratch/kocevski/813628/ltcube_692150401_692409601_4FGL_J2145.0-3356_daily_bin1747.fits outfile=/scratch/kocevski/813628/expmap_692150401_692409601_4FGL_J2145.0-3356_daily_bin1747.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/813628/ltcube_692150401_692409601_4FGL_J2145.0-3356_daily_bin1747.fits
.....................!
real 191.16
user 185.53
sys 5.29

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/813628/ft1_filtered_4FGL_J2145.0-3356_daily_bin1747.fits scfile=/scratch/kocevski/813628/ft2_4FGL_J2145.0-3356_daily_bin1747.fits outfile=/scratch/kocevski/813628/cmap_692150401_692409601_4FGL_J2145.0-3356_daily_bin1747.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.54
user 0.38
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/813628/ft1_filtered_4FGL_J2145.0-3356_daily_bin1747.fits scfile=/scratch/kocevski/813628/ft2_4FGL_J2145.0-3356_daily_bin1747.fits outfile=/scratch/kocevski/813628/cmap_HighResolution_692150401_692409601_4FGL_J2145.0-3356_daily_bin1747.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.55
user 0.38
sys 0.16

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/813628/ft1_filtered_4FGL_J2145.0-3356_daily_bin1747.fits evtable="EVENTS" scfile=/scratch/kocevski/813628/ft2_4FGL_J2145.0-3356_daily_bin1747.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/813628/Model_4FGL_J2145.0-3356_daily_bin1747.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/813628/ft1_filtered_4FGL_J2145.0-3356_daily_bin1747.fits.....................!
real 45.67
user 44.37
sys 1.20

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/813628/ft1_filtered_4FGL_J2145.0-3356_daily_bin1747.fits', '/scratch/kocevski/813628/ft2_4FGL_J2145.0-3356_daily_bin1747.fits', expMap='/scratch/kocevski/813628/expmap_692150401_692409601_4FGL_J2145.0-3356_daily_bin1747.fits', expCube='/scratch/kocevski/813628/ltcube_692150401_692409601_4FGL_J2145.0-3356_daily_bin1747.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/813628/Model_4FGL_J2145.0-3356_daily_bin1747.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  0.000e+00  1.000e+06 ( 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 -5.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/813628/ft1_filtered_4FGL_J2145.0-3356_daily_bin1747.fits
Spacecraft file(s): /scratch/kocevski/813628/ft2_4FGL_J2145.0-3356_daily_bin1747.fits
Exposure map: /scratch/kocevski/813628/expmap_692150401_692409601_4FGL_J2145.0-3356_daily_bin1747.fits
Exposure cube: /scratch/kocevski/813628/ltcube_692150401_692409601_4FGL_J2145.0-3356_daily_bin1747.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/813628/Model_4FGL_J2145.0-3356_daily_bin1747.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) = 5102.46250042

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    34.456       1.0000          .0000       .10000E+07
     2 'Prefactor '    .38576E-03   1.0000          .0000       .10000E+07
     3 'Prefactor '    .22091E-02   1.0000          .0000       .10000E+07
     4 'norm      '    .23202E-03   1.0000          .0000       .10000E+07
     5 'norm      '    6.7726       1.0000          .0000       .10000E+07
     6 'Prefactor '    3.1759       1.0000          .0000       .10000E+07
     7 'Prefactor '    29.421       1.0000          .0000       .10000E+07
     8 'Prefactor '    .27709E-03   1.0000          .0000       .10000E+07
     9 'norm      '    .24363E-03   1.0000          .0000       .10000E+07
    10 'Prefactor '    .13307E-01   1.0000          .0000       .10000E+07
    11 'Prefactor '    88.702       1.0000          .0000       .10000E+07
    12 'norm      '    .45928E-02   1.0000          .0000       .10000E+07
    13 'norm      '    .69014       1.0000          .0000       .10000E+07
    14 'Prefactor '    .28744E-03   1.0000          .0000       .10000E+07
    15 'Prefactor '    .23799E-02   1.0000          .0000       .10000E+07
    16 'Prefactor '    .12269E-03   1.0000          .0000       .10000E+07
    17 'Prefactor '    .67786E-04   1.0000          .0000       .10000E+07
    18 'Prefactor '    .13751E-02   1.0000          .0000       .10000E+07
    19 'Normalizat'    .88432       1.0000         .10000E-01   10.000    
    20 'Prefactor '    1.2254       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5360E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   5102.455     FROM MIGRAD    STATUS=CONVERGED    142 CALLS     1566 TOTAL
                     EDM=   .14E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .7%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     34.449        31.128        .12524E-04   -.43021E-01
   2  Prefactor     .74946E-06    10.463       -.47657E-05** at limit **
   3  Prefactor     .33307E-09    10.218       -.20850E-05** at limit **
   4  norm          .55511E-10    4.0176       -.11651E-06** at limit **
   5  norm          6.7785        4.8273        .19531E-06    .99615E-03
   6  Prefactor     3.2024        11.775       -.10728E-05    .39201E-02
   7  Prefactor     29.269        6.4272        .98101E-07   -.18992E-01
   8  Prefactor     .61490E-06    2.5179       -.19821E-05** at limit **
   9  norm          .28477E-07    5.4280        .98361E-06** at limit **
  10  Prefactor     .23453E-06    20.183       -.19881E-06** at limit **
  11  Prefactor     91.554        94.526        .22958E-05   -.36456E-02
  12  norm          .11418E-05    3.5528       -.21425E-05** at limit **
  13  norm          .68794        .42035        .36260E-07   -.35898E-02
  14  Prefactor     .45108E-06    3.5292        .15676E-05** at limit **
  15  Prefactor     .39413E-08    10.622        .33329E-05** at limit **
  16  Prefactor      .0000        3.9537       -.21486E-07** at limit **
  17  Prefactor     .22026E-05    7.1175        .38036E-05** at limit **
  18  Prefactor     .25607E-06    15.642        .49436E-05** at limit **
  19  Normalizat    .88298        .28535       -.12978E-04   -.12743E-04
  20  Prefactor     1.2256        .18249       -.11291E-04    .79768E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 34.4486
  Prefactor  = 7.49456e-07
  Prefactor  = 3.33067e-10
  norm       = 5.55112e-11
  norm       = 6.7785
  Prefactor  = 3.20243
  Prefactor  = 29.2688
  Prefactor  = 6.14897e-07
  norm       = 2.84772e-08
  Prefactor  = 2.34535e-07
  Prefactor  = 91.5538
  norm       = 1.14175e-06
  norm       = 0.687944
  Prefactor  = 4.51084e-07
  Prefactor  = 3.94129e-09
  Prefactor  = 0
  Prefactor  = 2.20263e-06
  Prefactor  = 2.56073e-07
  Normalizat = 0.88298
  Prefactor  = 1.2256
 **********
 **   18 **HESSE 
 **********

 FCN=   5102.455     FROM HESSE     STATUS=OK           327 CALLS     1893 TOTAL
                     EDM=   .53E-06    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     34.449        33.068        .17038E-03   -1.5591    
   2  Prefactor     .74946E-06    14.771        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .33307E-09    10.271        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  norm          .55511E-10    4.0178        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          6.7785        4.8289        .38532E-03   -1.5656    
   6  Prefactor     3.2024        11.803        .56841E-03   -1.5672    
   7  Prefactor     29.269        23.078        .18439E-03   -1.5600    
   8  Prefactor     .61490E-06    5.5597        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          .28477E-07    5.5258        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .23453E-06    22.044        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     91.554        94.520        .10618E-03   -1.5517    
  12  norm          .11418E-05    21.804        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          .68794        .42217        .61512E-03   -1.5691    
  14  Prefactor     .45108E-06    5.5997        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .39413E-08    10.740        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor      .0000        3.9568        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .22026E-05    15.627        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .25607E-06    18.369        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Normalizat    .88298        .25264        .77764E-01   -.97061    
  20  Prefactor     1.2256        .16029        .34056E-01   -.85547    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.29953e-07
Minuit parameter uncertainties:
  1  33.0682
  2  0.00665444
  3  0.000113769
  4  2.93869e-05
  5  4.82889
  6  11.8035
  7  23.0777
  8  0.00369786
  9  0.000793589
  10  0.00454766
  11  94.5218
  12  0.00997885
  13  0.422173
  14  0.0031787
  15  0.000412602
  16  5.70874e-06
  17  0.0117338
  18  0.00433789
  19  0.252977
  20  0.160351
Done.

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

Extracting fit parameters...

4FGL J2145.0-3356
   Spectrum: LogParabola
270         norm:  2.848e-08  7.936e-04  0.000e+00  1.000e+06 ( 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 -5.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.226e+00  1.604e-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:  8.830e-01  2.530e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): -0.00
Ra Dec: 326.253 -33.944
Photon Flux Upper Limit: 8.66e-08 ph cm-2 s-1
Energy Flux Upper Limit: 3.50e-05 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/813628/likelihoodResults_692150401_692409601_4FGL_J2145.0-3356_daily_bin1747.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) = 5100.78122838
delta logL = 1.67332276887

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5100.78065129
delta logL = 1.67389985934

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .76144       1.0000          .0000       .10000E+07
     2 'alpha     '    5.0000       1.0000          .0000       5.0000    
     3 'Normalizat'    .72161       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.2854       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=   5100.781     FROM MIGRAD    STATUS=CONVERGED     49 CALLS      256 TOTAL
                     EDM=   .11E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .76184        .60614        .55854E-04    .47998E-01
   2  alpha         5.0000        .80240        .46407    ** at limit **
   3  Normalizat    .72168        .25348        .84979E-01    .22161E-04
   4  Prefactor     1.2854        .16428        .32869E-01   -.93083E-06
                               ERR DEF=  .500    
Final values: 
  norm       = 0.761842
  alpha      = 5
  Normalizat = 0.721684
  Prefactor  = 1.28538
 **********
 **   18 **HESSE 
 **********

 FCN=   5100.781     FROM HESSE     STATUS=OK            31 CALLS      287 TOTAL
                     EDM=   .61E-12    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .76184        .51403        .11171E-04   -1.5691    
   2  alpha         5.0000        3.1345        .46431E-01    1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Normalizat    .72168        .28121        .37637E-03   -1.0304    
   4  Prefactor     1.2854        .18320        .19297E-03   -.83743    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 6.07336e-13
Minuit parameter uncertainties:
  1  0.514033
  2  1.49348e-07
  3  0.281771
  4  0.18329
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/813628': 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) = 5100.78065069
delta logL = 1.67390045541

Extracting fit parameters...

4FGL J2145.0-3356
   Spectrum: LogParabola
270         norm:  7.618e-01  5.140e-01  0.000e+00  1.000e+06 ( 1.000e-12)
271        alpha:  5.000e+00  1.493e-07  0.000e+00  5.000e+00 ( 1.000e+00)
272         beta:  1.178e-01  0.000e+00 -5.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.285e+00  1.833e-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.217e-01  2.818e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 3.64
Ra Dec: 326.253 -33.944
Photon Index (Free Index): 5.00 +/- 0.00
Photon Flux (Free Index): 1.50e-07 +/- 1.01e-07
Energy Flux (Free Index): 2.05e-05 +/- 1.38e-05

Creating a high resolution counts map...
INFO: Auto-setting vmin to  0.000e+00 [aplpy.core]
INFO: Auto-setting vmax to  0.000e+00 [aplpy.core]
Saving /scratch/kocevski/813628/cmap_HighResolution_692150401_692409601_4FGL_J2145.0-3356_daily_bin1747.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='3.50e-05', comment='SUCCESS', energy_flux2='2.05e-05', dlogl='1.67e+00', photon_flux2='1.50e-07', job_status='DONE', time_completed='2022-12-11 01:50:53.694152', photon_index_error2='0.00', photon_index2='5.00', ts='-0.00', fit_tolerance='1e-08', GAL='1.23', photon_index_error='0.00', photon_flux_upper_limit='8.66e-08', energy_flux_error2='1.38e-05', EG='0.88', time_epoch_completed='1670752253.69', return_code='0', job_id='813628', GAL2='1.29', EG2='0.72', return_code2='0', photon_flux_error2='1.01e-07', ts2='3.64', photon_index='2.16' WHERE bin_id='1747' AND source_name='4FGL J2145.0-3356' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Dec 11 01:50:53 PST 2022


------------------------------------------------------------
Sender: LSF System <lsf@bullet0169>
Subject: Job 813628: <4FGL_J2145.0-3356_daily_bin1747> in cluster <slac> Done

Job <4FGL_J2145.0-3356_daily_bin1747> was submitted from host <rhel6-64e> by user <kocevski> in cluster <slac> at Sun Dec 11 01:40:16 2022
Job was executed on host(s) <bullet0169>, in queue <medium>, as user <kocevski> in cluster <slac> at Sun Dec 11 01:40:17 2022
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Sun Dec 11 01:40:17 2022
Terminated at Sun Dec 11 01:50:54 2022
Results reported at Sun Dec 11 01:50:54 2022

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2145.0-3356_daily_bin1747 326.253 -33.9439 692150401 692409601 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 :                                   498.09 sec.
    Max Memory :                                 1255 MB
    Average Memory :                             279.35 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   636 sec.
    Turnaround time :                            638 sec.

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

