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


Performing analysis on: 4FGL_J2145.0-3356_daily_bin1695
RA = 326.253, Dec = -33.9439
tmin = 678672001, tmax = 678931201
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='731150', job_status='RUN', time_executed='2022-07-08 00:39:23.322997', time_epoch_executed='1657265963.32' WHERE source_name='4FGL J2145.0-3356' and cadence='daily' and bin_id='1695'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/731150

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/731150/ft1_4FGL_J2145.0-3356_daily_bin1695.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/731150/ft2_4FGL_J2145.0-3356_daily_bin1695.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/731150/ft1_4FGL_J2145.0-3356_daily_bin1695.fits outfile=/scratch/kocevski/731150/ft1_filteredMKT_4FGL_J2145.0-3356_daily_bin1695.fits ra=326.253 dec=-33.9439 rad=12.0 tmin=678672001.0 tmax=678931201.0 emin=100.0 emax=100000.0 zmin=0.0 zmax=90.0 evclass=128 evtype="INDEF" convtype=-1 phasemin=0.0 phasemax=1.0 evtable="EVENTS" chatter=2 clobber=yes debug=no gui=no mode="ql"

WARNING: version mismatch between CFITSIO header (v3.43) and linked library (v3.41).

Done.
real 3.60
user 3.39
sys 0.20

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

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

Number of photons that the gtmktime cut: 454

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/731150/ft1_filtered_4FGL_J2145.0-3356_daily_bin1695.fits" evtable="EVENTS" scfile=/scratch/kocevski/731150/ft2_4FGL_J2145.0-3356_daily_bin1695.fits sctable="SC_DATA" outfile=/scratch/kocevski/731150/ltcube_678672001_678931201_4FGL_J2145.0-3356_daily_bin1695.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/731150/ft2_4FGL_J2145.0-3356_daily_bin1695.fits
.....................!
real 12.16
user 11.77
sys 0.35

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/731150/ft1_filtered_4FGL_J2145.0-3356_daily_bin1695.fits evtable="EVENTS" scfile=/scratch/kocevski/731150/ft2_4FGL_J2145.0-3356_daily_bin1695.fits sctable="SC_DATA" expcube=/scratch/kocevski/731150/ltcube_678672001_678931201_4FGL_J2145.0-3356_daily_bin1695.fits outfile=/scratch/kocevski/731150/expmap_678672001_678931201_4FGL_J2145.0-3356_daily_bin1695.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/731150/ltcube_678672001_678931201_4FGL_J2145.0-3356_daily_bin1695.fits
.....................!
real 191.17
user 185.42
sys 5.28

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/731150/ft1_filtered_4FGL_J2145.0-3356_daily_bin1695.fits scfile=/scratch/kocevski/731150/ft2_4FGL_J2145.0-3356_daily_bin1695.fits outfile=/scratch/kocevski/731150/cmap_678672001_678931201_4FGL_J2145.0-3356_daily_bin1695.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.36
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/731150/ft1_filtered_4FGL_J2145.0-3356_daily_bin1695.fits scfile=/scratch/kocevski/731150/ft2_4FGL_J2145.0-3356_daily_bin1695.fits outfile=/scratch/kocevski/731150/cmap_HighResolution_678672001_678931201_4FGL_J2145.0-3356_daily_bin1695.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.53
user 0.37
sys 0.13

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

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/731150/ft1_filtered_4FGL_J2145.0-3356_daily_bin1695.fits', '/scratch/kocevski/731150/ft2_4FGL_J2145.0-3356_daily_bin1695.fits', expMap='/scratch/kocevski/731150/expmap_678672001_678931201_4FGL_J2145.0-3356_daily_bin1695.fits', expCube='/scratch/kocevski/731150/ltcube_678672001_678931201_4FGL_J2145.0-3356_daily_bin1695.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/731150/Model_4FGL_J2145.0-3356_daily_bin1695.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/731150/ft1_filtered_4FGL_J2145.0-3356_daily_bin1695.fits
Spacecraft file(s): /scratch/kocevski/731150/ft2_4FGL_J2145.0-3356_daily_bin1695.fits
Exposure map: /scratch/kocevski/731150/expmap_678672001_678931201_4FGL_J2145.0-3356_daily_bin1695.fits
Exposure cube: /scratch/kocevski/731150/ltcube_678672001_678931201_4FGL_J2145.0-3356_daily_bin1695.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/731150/Model_4FGL_J2145.0-3356_daily_bin1695.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) = 5132.38617328

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    5.3144       1.0000         .10000E-03   10000.    
     2 'Prefactor '    30.874       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     4 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     5 'norm      '    .38082       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10243E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    5.8649       1.0000         .10000E-03   10000.    
     9 'norm      '    8.0735       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10088E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    .97898       1.0000         .10000E-03   10000.    
    13 'norm      '    .56769       1.0000         .10000E-03   10000.    
    14 'Prefactor '    5.2665       1.0000         .10000E-03   10000.    
    15 'Prefactor '    12.062       1.0000         .10000E-03   10000.    
    16 'Prefactor '    6.0274       1.0000         .10000E-03   10000.    
    17 'Prefactor '    31.859       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    19 'Normalizat'    1.3614       1.0000         .10000E-01   10.000    
    20 'Prefactor '    .78808       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.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   5132.382     FROM MIGRAD    STATUS=CONVERGED    425 CALLS     2029 TOTAL
                     EDM=   .15E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.9%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     5.3221        42.719        .88876E-05    .17055E-04
   2  Prefactor     30.872        34.062       -.12687E-05   -.24303E-04
   3  Prefactor     .10000E-03    24.585        .49861E-07** at limit **
   4  norm          .10000E-03    4.6865       -.11879E-06** at limit **
   5  norm          .38790        3.7937        .26830E-06   -.22553E-03
   6  Prefactor     .10000E-03    3.4989       -.84183E-07** at limit **
   7  Prefactor     .10000E-03    27.806        .30801E-06** at limit **
   8  Prefactor     5.8643        6.0082        .86237E-06    .61250E-04
   9  norm          8.0739        8.5153       -.52683E-07   -.26910E-04
  10  Prefactor     .10000E-03    12.326        .37084E-06** at limit **
  11  Prefactor     .10000E-03    79.929       -.48785E-05** at limit **
  12  norm          .97395        6.1406        .16211E-06   -.12334E-03
  13  norm          .56777        .39325        .16129E-08   -.87493E-04
  14  Prefactor     5.2637        8.6951        .59297E-07   -.53892E-03
  15  Prefactor     12.061        16.536        .21610E-06   -.36022E-07
  16  Prefactor     6.0235        9.7896        .35656E-06   -.49383E-03
  17  Prefactor     31.858        25.274       -.94496E-07   -.31433E-05
  18  Prefactor     .10000E-03    9.6597        .26779E-06** at limit **
  19  Normalizat    1.3617        .23124        .26946E-06   -.70544E-04
  20  Prefactor     .78784        .14190       -.10809E-05   -.10171E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 5.32215
  Prefactor  = 30.8723
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 0.387897
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 5.86428
  norm       = 8.07392
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.973947
  norm       = 0.567775
  Prefactor  = 5.26367
  Prefactor  = 12.0606
  Prefactor  = 6.02351
  Prefactor  = 31.8584
  Prefactor  = 0.0001
  Normalizat = 1.36167
  Prefactor  = 0.787836
 **********
 **   18 **HESSE 
 **********

 FCN=   5132.382     FROM HESSE     STATUS=OK           301 CALLS     2330 TOTAL
                     EDM=   .55E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     5.3221        42.894        .17434E-03   -1.5247    
   2  Prefactor     30.872        34.242        .72110E-04   -1.4596    
   3  Prefactor     .10000E-03    24.715        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  norm          .10000E-03    4.6926        .15146E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          .38790        9.2847        .27110E-02   -1.5583    
   6  Prefactor     .10000E-03    3.5142        .13085E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    28.362        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     5.8643        6.0126        .16583E-03   -1.5224    
   9  norm          8.0739        8.4929        .14111E-03   -1.5140    
  10  Prefactor     .10000E-03    12.348        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    80.159        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          .97395        10.780        .28609E-02   -1.5511    
  13  norm          .56777        .38654        .32378E-04   -1.5557    
  14  Prefactor     5.2637        11.688        .87573E-03   -1.5249    
  15  Prefactor     12.061        16.556        .11534E-03   -1.5013    
  16  Prefactor     6.0235        12.763        .81773E-03   -1.5217    
  17  Prefactor     31.858        25.316        .70989E-04   -1.4578    
  18  Prefactor     .10000E-03    9.6622        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Normalizat    1.3617        .28077        .26610E-03   -.81744    
  20  Prefactor     .78784        .16574        .21534E-03   -1.0018    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.49211e-08
Minuit parameter uncertainties:
  1  30.2478
  2  34.2642
  3  2.49473e-06
  4  4.96629e-07
  5  3.79571
  6  1.41538e-06
  7  3.44424e-05
  8  6.01318
  9  8.49421
  10  1.02457e-05
  11  0.000148811
  12  6.48168
  13  0.386539
  14  11.6934
  15  16.5619
  16  12.7689
  17  25.3245
  18  4.15379e-06
  19  0.281084
  20  0.165848
Done.

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

Extracting fit parameters...

4FGL J2145.0-3356
   Spectrum: LogParabola
270         norm:  8.074e+00  8.494e+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:  7.878e-01  1.658e-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:  1.362e+00  2.811e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 1.50
Ra Dec: 326.253 -33.944
Photon Index (Fixed Index): 2.16 +/- 0.00
Photon Flux (Fixed Index): 3.17e-08 +/- 3.33e-08
Energy Flux (Fixed Index): 1.28e-05 +/- 1.35e-05

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

Saving results to:
/scratch/kocevski/731150/likelihoodResults_678672001_678931201_4FGL_J2145.0-3356_daily_bin1695.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) = 5131.01381624
delta logL = 1.36805531005

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5131.00935632
delta logL = 1.3725152365

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    4.0768       1.0000         .10000E-03   10000.    
     2 'alpha     '    3.8461       1.0000          .0000       5.0000    
     3 'Normalizat'    1.2517       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .82779       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=   5131.009     FROM MIGRAD    STATUS=CONVERGED     55 CALLS      275 TOTAL
                     EDM=   .38E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          4.0715        47.256        .49920E-02    .32146E-03
   2  alpha         3.8466        4.3852        .32275        .44410E-04
   3  Normalizat    1.2513        .95805E-01    .62233E-01    .25636E-04
   4  Prefactor     .82808        .57379E-01    .44078E-01    .10742E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 4.07148
  alpha      = 3.84662
  Normalizat = 1.25134
  Prefactor  = 0.828076
 **********
 **   18 **HESSE 
 **********

 FCN=   5131.009     FROM HESSE     STATUS=OK            31 CALLS      306 TOTAL
                     EDM=   .19E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          4.0715        5.9996        .80584E-04   -1.5304    
   2  alpha         3.8466        1.0721        .13943E-02    .56883    
   3  Normalizat    1.2513        .26143        .27526E-03   -.85031    
   4  Prefactor     .82808        .16237        .21039E-03   -.98702    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.93858e-12
Minuit parameter uncertainties:
  1  6.00047
  2  1.12482
  3  0.261706
  4  0.162465
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/731150': 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) = 5131.00935367
delta logL = 1.37251788016

Extracting fit parameters...

4FGL J2145.0-3356
   Spectrum: LogParabola
270         norm:  4.071e+00  6.000e+00  1.000e-04  1.000e+04 ( 1.000e-12)
271        alpha:  3.847e+00  1.125e+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:  8.281e-01  1.625e-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:  1.251e+00  2.617e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 4.42
Ra Dec: 326.253 -33.944
Photon Index (Free Index): 3.85 +/- 1.12
Photon Flux (Free Index): 1.36e-07 +/- 9.12e-08
Energy Flux (Free Index): 2.20e-05 +/- 1.32e-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/731150/cmap_HighResolution_678672001_678931201_4FGL_J2145.0-3356_daily_bin1695.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='4.60e-05', comment='SUCCESS', photon_flux='3.17e-08', energy_flux2='2.20e-05', photon_flux_error='3.33e-08', dlogl='1.37e+00', energy_flux='1.28e-05', photon_flux2='1.36e-07', job_status='DONE', time_completed='2022-07-08 00:48:07.006850', photon_index_error2='1.12', photon_index2='3.85', ts='1.50', fit_tolerance='1e-08', GAL='0.79', photon_index_error='0.00', photon_flux_upper_limit='1.14e-07', energy_flux_error2='1.32e-05', EG='1.36', time_epoch_completed='1657266487.01', return_code='0', job_id='731150', GAL2='0.83', EG2='1.25', return_code2='0', energy_flux_error='1.35e-05', photon_flux_error2='9.12e-08', ts2='4.42', photon_index='2.16' WHERE bin_id='1695' AND source_name='4FGL J2145.0-3356' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Fri Jul  8 00:48:07 PDT 2022


------------------------------------------------------------
Sender: LSF System <lsf@bullet0239>
Subject: Job 731150: <4FGL_J2145.0-3356_daily_bin1695> in cluster <slac> Done

Job <4FGL_J2145.0-3356_daily_bin1695> was submitted from host <rhel6-64q> by user <kocevski> in cluster <slac> at Fri Jul  8 00:35:15 2022
Job was executed on host(s) <bullet0239>, in queue <medium>, as user <kocevski> in cluster <slac> at Fri Jul  8 00:35:16 2022
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Fri Jul  8 00:35:16 2022
Terminated at Fri Jul  8 00:48:07 2022
Results reported at Fri Jul  8 00:48:07 2022

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2145.0-3356_daily_bin1695 326.253 -33.9439 678672001 678931201 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 :                                   526.00 sec.
    Max Memory :                                 1255 MB
    Average Memory :                             292.16 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   771 sec.
    Turnaround time :                            772 sec.

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

