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


Performing analysis on: 4FGL_J2039.0-1046_daily_bin1768
RA = 309.758, Dec = -10.7731
tmin = 697593601, tmax = 697852801
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='280333', job_status='RUN', time_executed='2023-02-12 01:34:01.423939', time_epoch_executed='1676194441.42' WHERE source_name='4FGL J2039.0-1046' and cadence='daily' and bin_id='1768'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/280333

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/280333/ft1_4FGL_J2039.0-1046_daily_bin1768.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/280333/ft2_4FGL_J2039.0-1046_daily_bin1768.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/280333/ft1_4FGL_J2039.0-1046_daily_bin1768.fits outfile=/scratch/kocevski/280333/ft1_filteredMKT_4FGL_J2039.0-1046_daily_bin1768.fits ra=309.758 dec=-10.7731 rad=12.0 tmin=697593601.0 tmax=697852801.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.68
user 3.46
sys 0.21

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/280333/ft2_4FGL_J2039.0-1046_daily_bin1768.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/280333/ft2_4FGL_J2039.0-1046_daily_bin1768.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/280333/ft1_filteredMKT_4FGL_J2039.0-1046_daily_bin1768.fits evtable="EVENTS" outfile="/scratch/kocevski/280333/ft1_filtered_4FGL_J2039.0-1046_daily_bin1768.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.51
user 0.34
sys 0.15

Number of photons that the gtmktime cut: 727

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/280333/ft1_filtered_4FGL_J2039.0-1046_daily_bin1768.fits" evtable="EVENTS" scfile=/scratch/kocevski/280333/ft2_4FGL_J2039.0-1046_daily_bin1768.fits sctable="SC_DATA" outfile=/scratch/kocevski/280333/ltcube_697593601_697852801_4FGL_J2039.0-1046_daily_bin1768.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/280333/ft2_4FGL_J2039.0-1046_daily_bin1768.fits
.....................!
real 16.02
user 15.62
sys 0.34

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/280333/ft1_filtered_4FGL_J2039.0-1046_daily_bin1768.fits evtable="EVENTS" scfile=/scratch/kocevski/280333/ft2_4FGL_J2039.0-1046_daily_bin1768.fits sctable="SC_DATA" expcube=/scratch/kocevski/280333/ltcube_697593601_697852801_4FGL_J2039.0-1046_daily_bin1768.fits outfile=/scratch/kocevski/280333/expmap_697593601_697852801_4FGL_J2039.0-1046_daily_bin1768.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/280333/ltcube_697593601_697852801_4FGL_J2039.0-1046_daily_bin1768.fits
.....................!
real 194.88
user 189.18
sys 4.36

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

Setting source of interest to:
4FGL J2039.0-1046 @ 309.758 -10.7731

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/280333/ft1_filtered_4FGL_J2039.0-1046_daily_bin1768.fits scfile=/scratch/kocevski/280333/ft2_4FGL_J2039.0-1046_daily_bin1768.fits outfile=/scratch/kocevski/280333/cmap_697593601_697852801_4FGL_J2039.0-1046_daily_bin1768.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=309.758 yref=-10.7731 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.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/280333/ft1_filtered_4FGL_J2039.0-1046_daily_bin1768.fits scfile=/scratch/kocevski/280333/ft2_4FGL_J2039.0-1046_daily_bin1768.fits outfile=/scratch/kocevski/280333/cmap_HighResolution_697593601_697852801_4FGL_J2039.0-1046_daily_bin1768.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=309.758 yref=-10.7731 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/280333/ft1_filtered_4FGL_J2039.0-1046_daily_bin1768.fits evtable="EVENTS" scfile=/scratch/kocevski/280333/ft2_4FGL_J2039.0-1046_daily_bin1768.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/280333/Model_4FGL_J2039.0-1046_daily_bin1768.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/280333/ft1_filtered_4FGL_J2039.0-1046_daily_bin1768.fits.....................!
real 77.47
user 76.10
sys 1.17

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/280333/ft1_filtered_4FGL_J2039.0-1046_daily_bin1768.fits', '/scratch/kocevski/280333/ft2_4FGL_J2039.0-1046_daily_bin1768.fits', expMap='/scratch/kocevski/280333/expmap_697593601_697852801_4FGL_J2039.0-1046_daily_bin1768.fits', expCube='/scratch/kocevski/280333/ltcube_697593601_697852801_4FGL_J2039.0-1046_daily_bin1768.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/280333/Model_4FGL_J2039.0-1046_daily_bin1768.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J2039.0-1046'

4FGL J2039.0-1046
   Spectrum: LogParabola
308         norm:  2.263e+00  0.000e+00  0.000e+00  1.000e+06 ( 1.000e-12)
309        alpha:  1.956e+00  0.000e+00  0.000e+00  5.000e+00 ( 1.000e+00) fixed
310         beta:  9.320e-02  0.000e+00 -5.000e+00  1.000e+01 ( 1.000e+00) fixed
311           Eb:  1.019e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/280333/ft1_filtered_4FGL_J2039.0-1046_daily_bin1768.fits
Spacecraft file(s): /scratch/kocevski/280333/ft2_4FGL_J2039.0-1046_daily_bin1768.fits
Exposure map: /scratch/kocevski/280333/expmap_697593601_697852801_4FGL_J2039.0-1046_daily_bin1768.fits
Exposure cube: /scratch/kocevski/280333/ltcube_697593601_697852801_4FGL_J2039.0-1046_daily_bin1768.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/280333/Model_4FGL_J2039.0-1046_daily_bin1768.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) = 8057.54315173

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .16353E-02   1.0000          .0000       .10000E+07
     2 'Prefactor '    14.976       1.0000          .0000       .10000E+07
     3 'Prefactor '    .13716E-03   1.0000          .0000       .10000E+07
     4 'Prefactor '    2.4163       1.0000          .0000       .10000E+07
     5 'Prefactor '    90.629       1.0000          .0000       .10000E+07
     6 'norm      '    .15608E-04   1.0000          .0000       .10000E+07
     7 'Prefactor '    .12019E-02   1.0000          .0000       .10000E+07
     8 'Prefactor '    .36563E-01   1.0000          .0000       .10000E+07
     9 'norm      '    28.510       1.0000          .0000       .10000E+07
    10 'norm      '    .44537E-06   1.0000          .0000       .10000E+07
    11 'norm      '    .11324E-07   1.0000          .0000       .10000E+07
    12 'Prefactor '    .17552E-02   1.0000          .0000       .10000E+07
    13 'norm      '    .14981E-04   1.0000          .0000       .10000E+07
    14 'Prefactor '    .33121E-02   1.0000          .0000       .10000E+07
    15 'Prefactor '    8.7946       1.0000          .0000       .10000E+07
    16 'Prefactor '    23.405       1.0000          .0000       .10000E+07
    17 'Prefactor '    1.8543       1.0000          .0000       .10000E+07
    18 'Normalizat'    1.0705       1.0000         .10000E-01   10.000    
    19 'Prefactor '    1.0731       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5980E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   8057.527     FROM MIGRAD    STATUS=CONVERGED    132 CALLS     1428 TOTAL
                     EDM=   .13E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.5%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .59175E-07    4.4139        .89303E-06** at limit **
   2  Prefactor     14.881        4.4145        .45824E-06   -.49132E-01
   3  Prefactor     .10547E-08    9.8516       -.71880E-06** at limit **
   4  Prefactor     2.4167        1.9722       -.68598E-07    .28908E-03
   5  Prefactor     91.638        52.143        .98983E-06   -.27328E-01
   6  norm          .30104E-06    3.6432       -.26890E-05** at limit **
   7  Prefactor     .94924E-08    30.685        .11893E-05** at limit **
   8  Prefactor      .0000        48.014        .14143E-06** at limit **
   9  norm          28.505        1.4021       -.65720E-07    .72643E-03
  10  norm          .62172E-08    12.847        .63827E-07** at limit **
  11  norm           .0000        .30925        .81633E-07** at limit **
  12  Prefactor     .10969E-06    4.2436        .10077E-05** at limit **
  13  norm          .55511E-10    2.7969       -.71790E-07** at limit **
  14  Prefactor     .72164E-09    11.645        .32718E-05** at limit **
  15  Prefactor     8.7812        6.6692       -.45402E-06   -.26294E-02
  16  Prefactor     23.324        6.2855        .68284E-06   -.99121E-01
  17  Prefactor     1.9359        15.139       -.40949E-05    .26310E-01
  18  Normalizat    1.0707        .30657        .67308E-06    .11249E-03
  19  Prefactor     1.0728        .12201        .37868E-05    .42755E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 5.91749e-08
  Prefactor  = 14.8808
  Prefactor  = 1.05471e-09
  Prefactor  = 2.41665
  Prefactor  = 91.6381
  norm       = 3.01037e-07
  Prefactor  = 9.49241e-09
  Prefactor  = 0
  norm       = 28.5051
  norm       = 6.21725e-09
  norm       = 0
  Prefactor  = 1.0969e-07
  norm       = 5.55112e-11
  Prefactor  = 7.21645e-10
  Prefactor  = 8.78118
  Prefactor  = 23.3239
  Prefactor  = 1.9359
  Normalizat = 1.07071
  Prefactor  = 1.07284
 **********
 **   18 **HESSE 
 **********

 FCN=   8057.527     FROM HESSE     STATUS=OK           302 CALLS     1730 TOTAL
                     EDM=   .11E-05    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .59175E-07    4.6257        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     14.881        37.813        .25855E-03   -1.5631    
   3  Prefactor     .10547E-08    9.9625        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     2.4167        1.9879        .65824E-03   -1.5677    
   5  Prefactor     91.638        52.750        .10505E-03   -1.5517    
   6  norm          .30104E-06    4.6082        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .94924E-08    30.752        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor      .0000        47.991        .16123E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          28.505        18.931        .18732E-03   -1.5601    
  10  norm          .62172E-08    12.981        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm           .0000        .30843        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10969E-06    4.6619        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          .55511E-10    2.7635        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .72164E-09    12.927        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     8.7812        6.6838        .33775E-03   -1.5649    
  16  Prefactor     23.324        30.543        .20675E-03   -1.5611    
  17  Prefactor     1.9359        38.896        .76519E-03   -1.5680    
  18  Normalizat    1.0707        .26820        .95137E-01   -.90698    
  19  Prefactor     1.0728        .10481        .38713E-01   -.90339    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.06245e-06
Minuit parameter uncertainties:
  1  0.00104618
  2  37.8137
  3  0.000206232
  4  1.98788
  5  52.75
  6  0.00235559
  7  0.00108113
  8  8.70517e-06
  9  18.9314
  10  0.000569281
  11  4.21184e-07
  12  0.00143025
  13  2.89845e-05
  14  0.000196295
  15  6.6838
  16  30.5435
  17  17.355
  18  0.26854
  19  0.104826
Done.

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

Extracting fit parameters...

4FGL J2039.0-1046
   Spectrum: LogParabola
308         norm:  5.551e-11  2.898e-05  0.000e+00  1.000e+06 ( 1.000e-12)
309        alpha:  1.956e+00  0.000e+00  0.000e+00  5.000e+00 ( 1.000e+00) fixed
310         beta:  9.320e-02  0.000e+00 -5.000e+00  1.000e+01 ( 1.000e+00) fixed
311           Eb:  1.019e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
595    Prefactor:  1.073e+00  1.048e-01  0.000e+00  1.000e+01 ( 1.000e+00)
596        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
597        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
594   Normalization:  1.071e+00  2.685e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): -0.00
Ra Dec: 309.758 -10.773
Photon Flux Upper Limit: 5.80e-08 ph cm-2 s-1
Energy Flux Upper Limit: 3.79e-05 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/280333/likelihoodResults_697593601_697852801_4FGL_J2039.0-1046_daily_bin1768.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) = 8057.73503453
delta logL = -0.207887541166

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 8057.46747141
delta logL = 0.0596755790812

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .13948E-01   1.0000          .0000       .10000E+07
     2 'alpha     '    4.9958       1.0000          .0000       5.0000    
     3 'Normalizat'    1.0392       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0801       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5980E+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=   8057.467     FROM MIGRAD    STATUS=CONVERGED    170 CALLS      346 TOTAL
                     EDM=   .42E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .14032E-01    .58561E-01    .24382E-04** at limit **
   2  alpha         5.0000        4.5097        .50000    ** at limit **
   3  Normalizat    1.0382        .31761        .42741E-03   -.21732E-04
   4  Prefactor     1.0804        .12280        .16650E-03   -.92668E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0140318
  alpha      = 5
  Normalizat = 1.03824
  Prefactor  = 1.08044
 **********
 **   18 **HESSE 
 **********

 FCN=   8057.467     FROM HESSE     STATUS=OK            31 CALLS      377 TOTAL
                     EDM=   .26E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .14032E-01    .48337E-01    .97527E-06   -1.5706    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  alpha         5.0000        4.9457        .50000        1.5704    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Normalizat    1.0382        .31914        .17096E-04   -.91760    
   4  Prefactor     1.0804        .12310        .33301E-04   -.90094    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.6072e-10
Minuit parameter uncertainties:
  1  0.0483369
  2  0.00317542
  3  0.319729
  4  0.123129
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/280333': 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) = 8057.46744093
delta logL = 0.0597060641285

Extracting fit parameters...

4FGL J2039.0-1046
   Spectrum: LogParabola
308         norm:  1.403e-02  4.834e-02  0.000e+00  1.000e+06 ( 1.000e-12)
309        alpha:  5.000e+00  3.175e-03  0.000e+00  5.000e+00 ( 1.000e+00)
310         beta:  9.320e-02  0.000e+00 -5.000e+00  1.000e+01 ( 1.000e+00) fixed
311           Eb:  1.019e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
595    Prefactor:  1.080e+00  1.231e-01  0.000e+00  1.000e+01 ( 1.000e+00)
596        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
597        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
594   Normalization:  1.038e+00  3.197e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
Ra Dec: 309.758 -10.773

Creating a high resolution counts map...
INFO: Auto-setting vmin to -1.000e-01 [aplpy.core]
INFO: Auto-setting vmax to  1.110e+00 [aplpy.core]
Saving /scratch/kocevski/280333/cmap_HighResolution_697593601_697852801_4FGL_J2039.0-1046_daily_bin1768.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='3.79e-05', job_status='DONE', photon_flux_upper_limit='5.80e-08', time_completed='2023-02-12 01:44:40.645604', job_id='280333', GAL2='1.08', fit_tolerance='1e-08', EG2='1.04', EG='1.07', time_epoch_completed='1676195080.65', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.07', dlogl='5.97e-02', ts2='0.13', photon_index_error='0.00', photon_index='1.96' WHERE bin_id='1768' AND source_name='4FGL J2039.0-1046' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Feb 12 01:44:40 PST 2023


------------------------------------------------------------
Sender: LSF System <lsf@bullet0106>
Subject: Job 280333: <4FGL_J2039.0-1046_daily_bin1768> in cluster <slac> Done

Job <4FGL_J2039.0-1046_daily_bin1768> was submitted from host <rhel6-64j> by user <kocevski> in cluster <slac> at Sun Feb 12 01:30:17 2023
Job was executed on host(s) <bullet0106>, in queue <medium>, as user <kocevski> in cluster <slac> at Sun Feb 12 01:33:12 2023
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Sun Feb 12 01:33:12 2023
Terminated at Sun Feb 12 01:44:41 2023
Results reported at Sun Feb 12 01:44:41 2023

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2039.0-1046_daily_bin1768 309.758 -10.7731 697593601 697852801 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J2039.0-1046 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   639.22 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             299.43 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   688 sec.
    Turnaround time :                            864 sec.

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

