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


Performing analysis on: 4FGL_J2145.0-3356_daily_bin1707
RA = 326.253, Dec = -33.9439
tmin = 681782401, tmax = 682041601
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='550223', job_status='RUN', time_executed='2022-08-13 00:32:06.349943', time_epoch_executed='1660375926.35' WHERE source_name='4FGL J2145.0-3356' and cadence='daily' and bin_id='1707'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/550223

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/550223/ft1_4FGL_J2145.0-3356_daily_bin1707.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/550223/ft2_4FGL_J2145.0-3356_daily_bin1707.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/550223/ft1_4FGL_J2145.0-3356_daily_bin1707.fits outfile=/scratch/kocevski/550223/ft1_filteredMKT_4FGL_J2145.0-3356_daily_bin1707.fits ra=326.253 dec=-33.9439 rad=12.0 tmin=681782401.0 tmax=682041601.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 5.42
user 5.19
sys 0.20

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

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

Number of photons that the gtmktime cut: 605

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/550223/ft1_filtered_4FGL_J2145.0-3356_daily_bin1707.fits" evtable="EVENTS" scfile=/scratch/kocevski/550223/ft2_4FGL_J2145.0-3356_daily_bin1707.fits sctable="SC_DATA" outfile=/scratch/kocevski/550223/ltcube_681782401_682041601_4FGL_J2145.0-3356_daily_bin1707.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/550223/ft2_4FGL_J2145.0-3356_daily_bin1707.fits
.....................!
real 11.63
user 11.25
sys 0.33

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/550223/ft1_filtered_4FGL_J2145.0-3356_daily_bin1707.fits evtable="EVENTS" scfile=/scratch/kocevski/550223/ft2_4FGL_J2145.0-3356_daily_bin1707.fits sctable="SC_DATA" expcube=/scratch/kocevski/550223/ltcube_681782401_682041601_4FGL_J2145.0-3356_daily_bin1707.fits outfile=/scratch/kocevski/550223/expmap_681782401_682041601_4FGL_J2145.0-3356_daily_bin1707.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/550223/ltcube_681782401_682041601_4FGL_J2145.0-3356_daily_bin1707.fits
.....................!
real 190.34
user 184.52
sys 5.46

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/550223/ft1_filtered_4FGL_J2145.0-3356_daily_bin1707.fits scfile=/scratch/kocevski/550223/ft2_4FGL_J2145.0-3356_daily_bin1707.fits outfile=/scratch/kocevski/550223/cmap_681782401_682041601_4FGL_J2145.0-3356_daily_bin1707.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/550223/ft1_filtered_4FGL_J2145.0-3356_daily_bin1707.fits scfile=/scratch/kocevski/550223/ft2_4FGL_J2145.0-3356_daily_bin1707.fits outfile=/scratch/kocevski/550223/cmap_HighResolution_681782401_682041601_4FGL_J2145.0-3356_daily_bin1707.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.39
sys 0.15

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/550223/ft1_filtered_4FGL_J2145.0-3356_daily_bin1707.fits evtable="EVENTS" scfile=/scratch/kocevski/550223/ft2_4FGL_J2145.0-3356_daily_bin1707.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/550223/Model_4FGL_J2145.0-3356_daily_bin1707.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/550223/ft1_filtered_4FGL_J2145.0-3356_daily_bin1707.fits.....................!
real 53.23
user 51.89
sys 1.18

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .12060E-01   1.0000         .10000E-03   10000.    
     2 'Prefactor '    15.129       1.0000         .10000E-03   10000.    
     3 'Prefactor '    36.414       1.0000         .10000E-03   10000.    
     4 'norm      '    3.9132       1.0000         .10000E-03   10000.    
     5 'norm      '    .10014E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10016E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    3.3009       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10225E-02   1.0000         .10000E-03   10000.    
     9 'norm      '    .10003E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    13.015       1.0000         .10000E-03   10000.    
    13 'norm      '    .66434       1.0000         .10000E-03   10000.    
    14 'Prefactor '    2.6290       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10132E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    6.7395       1.0000         .10000E-03   10000.    
    19 'Normalizat'    1.2719       1.0000         .10000E-01   10.000    
    20 'Prefactor '    .75329       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.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   6508.682     FROM MIGRAD    STATUS=CONVERGED    735 CALLS     2398 TOTAL
                     EDM=   .20E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .29935E-01    16.735        .78098E-01    .88144E-04
   2  Prefactor     15.124        18.471        .10297E-03    .13359E-04
   3  Prefactor     36.416        29.957        .66414E-04    .22972E-03
   4  norm          3.9140        6.8516        .10197E-02    .30224E-04
   5  norm          .10000E-03    5.8380        .36285E-02** at limit **
   6  Prefactor     .10000E-03    3.3901        .14457E-02** at limit **
   7  Prefactor     3.3015        10.357        .22284E-03    .90302E-05
   8  Prefactor     .10000E-03    20.431        .38558E-02** at limit **
   9  norm          .10000E-03    2.6076        .12702E-02** at limit **
  10  Prefactor     .10000E-03    4.2758        .16291E-02** at limit **
  11  Prefactor     .10000E-03    13.094        .18142E-02** at limit **
  12  norm          13.015        5.2975        .10797E-03    .17121E-03
  13  norm          .66434        .35017        .32335E-04    .13888E-03
  14  Prefactor     2.6288        4.9764        .24229E-03    .83991E-05
  15  Prefactor     .10000E-03    22.595        .18142E-02** at limit **
  16  Prefactor     .10000E-03    3.7216        .15135E-02** at limit **
  17  Prefactor     .10000E-03    7.0988        .18142E-02** at limit **
  18  Prefactor     6.7397        11.764        .15456E-03    .45604E-05
  19  Normalizat    1.2719        .20217        .25243E-03    .12361E-03
  20  Prefactor     .75324        .12832        .20557E-03    .20882E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0299347
  Prefactor  = 15.1236
  Prefactor  = 36.4157
  norm       = 3.91398
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 3.30154
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 13.0148
  norm       = 0.664344
  Prefactor  = 2.62877
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 6.73968
  Normalizat = 1.2719
  Prefactor  = 0.753236
 **********
 **   18 **HESSE 
 **********

 FCN=   6508.682     FROM HESSE     STATUS=OK           283 CALLS     2681 TOTAL
                     EDM=   .19E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .29935E-01    15.286        .82568E-01   -1.5673    
   2  Prefactor     15.124        18.471        .41189E-05   -1.4930    
   3  Prefactor     36.416        29.942        .13283E-04   -1.4500    
   4  norm          3.9140        6.8508        .40790E-04   -1.5312    
   5  norm          .10000E-03    5.8763        .72569E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    3.3906        .28914E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     3.3015        10.356        .89134E-05   -1.5345    
   8  Prefactor     .10000E-03    20.609        .77117E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          .10000E-03    2.6078        .25403E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    4.2758        .32582E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    13.094        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          13.015        5.2976        .43188E-05   -1.4986    
  13  norm          .66434        .35017        .12934E-05   -1.5545    
  14  Prefactor     2.6288        4.9764        .96915E-05   -1.5384    
  15  Prefactor     .10000E-03    22.605        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    3.7224        .30270E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    7.0991        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     6.7397        11.764        .61825E-05   -1.5189    
  19  Normalizat    1.2719        .20229        .50486E-04   -.84409    
  20  Prefactor     .75324        .12838        .82229E-05   -1.0148    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.9306e-10
Minuit parameter uncertainties:
  1  1.351
  2  18.4781
  3  29.9543
  4  6.85222
  5  7.55811e-06
  6  2.96499e-06
  7  10.3615
  8  0.000103289
  9  2.86645e-06
  10  6.35573e-07
  11  1.77511e-06
  12  5.29778
  13  0.35017
  14  4.97715
  15  9.00944e-05
  16  1.39367e-05
  17  1.03303e-05
  18  11.7677
  19  0.20242
  20  0.128435
Done.

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

Extracting fit parameters...

4FGL J2145.0-3356
   Spectrum: LogParabola
270         norm:  1.000e-04  2.866e-06  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.532e-01  1.284e-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.272e+00  2.024e-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: 4.84e-08 ph cm-2 s-1
Energy Flux Upper Limit: 1.96e-05 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/550223/likelihoodResults_681782401_682041601_4FGL_J2145.0-3356_daily_bin1707.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) = 6508.68384426
delta logL = -0.00181806106229

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 6508.6820262
delta logL = -2.68664734904e-09

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     2 'alpha     '    2.1600       1.0000          .0000       5.0000    
     3 'Normalizat'    1.2719       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .75324       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.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   6508.682     FROM MIGRAD    STATUS=CONVERGED     92 CALLS      235 TOTAL
                     EDM=   .36E-10    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    614.08        .12708E-02** at limit **
   2  alpha         2.0564        3.9645        .16657       -.17063E-08
   3  Normalizat    1.2719        .15608        .25243E-03    .28148E-04
   4  Prefactor     .75324        .10111        .20558E-03    .38048E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  alpha      = 2.05644
  Normalizat = 1.2719
  Prefactor  = 0.753236
 **********
 **   18 **HESSE 
 **********

 FCN=   6508.682     FROM HESSE     STATUS=OK            23 CALLS      258 TOTAL
                     EDM=   .11E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    2.6286        .25417E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  alpha         2.0564        3.6522        .66628E-02   -.17837    
   3  Normalizat    1.2719        .19419        .10097E-04   -.84409    
   4  Prefactor     .75324        .12581        .82230E-05   -1.0148    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.07567e-12
Minuit parameter uncertainties:
  1  1.32152e-06
  2  194.861
  3  0.194301
  4  0.125853
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/550223': 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) = 6508.68202605
delta logL = 1.5044133761e-07

Extracting fit parameters...

4FGL J2145.0-3356
   Spectrum: LogParabola
270         norm:  1.000e-04  1.322e-06  1.000e-04  1.000e+04 ( 1.000e-12)
271        alpha:  2.056e+00  1.949e+02  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:  7.532e-01  1.259e-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.272e+00  1.943e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
Ra Dec: 326.253 -33.944

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/550223/cmap_HighResolution_681782401_682041601_4FGL_J2145.0-3356_daily_bin1707.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.96e-05', job_status='DONE', photon_flux_upper_limit='4.84e-08', time_completed='2022-08-13 00:42:16.842199', job_id='550223', GAL2='0.75', fit_tolerance='1e-08', EG2='1.27', EG='1.27', time_epoch_completed='1660376536.84', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.75', dlogl='1.50e-07', ts2='-0.00', photon_index_error='0.00', photon_index='2.16' WHERE bin_id='1707' AND source_name='4FGL J2145.0-3356' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Aug 13 00:42:16 PDT 2022


------------------------------------------------------------
Sender: LSF System <lsf@bullet0192>
Subject: Job 550223: <4FGL_J2145.0-3356_daily_bin1707> in cluster <slac> Done

Job <4FGL_J2145.0-3356_daily_bin1707> was submitted from host <rhel6-64k> by user <kocevski> in cluster <slac> at Sat Aug 13 00:30:34 2022
Job was executed on host(s) <bullet0192>, in queue <medium>, as user <kocevski> in cluster <slac> at Sat Aug 13 00:30:35 2022
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Sat Aug 13 00:30:35 2022
Terminated at Sat Aug 13 00:42:17 2022
Results reported at Sat Aug 13 00:42:17 2022

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2145.0-3356_daily_bin1707 326.253 -33.9439 681782401 682041601 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 :                                   612.49 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             367.43 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   702 sec.
    Turnaround time :                            703 sec.

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

