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


Performing analysis on: 4FGL_J2039.0-1046_daily_bin1701
RA = 309.758, Dec = -10.7731
tmin = 680227201, tmax = 680486401
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='191904', job_status='RUN', time_executed='2022-07-26 02:14:02.797931', time_epoch_executed='1658826842.8' WHERE source_name='4FGL J2039.0-1046' and cadence='daily' and bin_id='1701'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/191904

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/191904/ft1_4FGL_J2039.0-1046_daily_bin1701.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/191904/ft2_4FGL_J2039.0-1046_daily_bin1701.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/191904/ft1_4FGL_J2039.0-1046_daily_bin1701.fits outfile=/scratch/kocevski/191904/ft1_filteredMKT_4FGL_J2039.0-1046_daily_bin1701.fits ra=309.758 dec=-10.7731 rad=12.0 tmin=680227201.0 tmax=680486401.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 2.90
user 2.68
sys 0.21

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/191904/ft2_4FGL_J2039.0-1046_daily_bin1701.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/191904/ft1_filteredMKT_4FGL_J2039.0-1046_daily_bin1701.fits evtable="EVENTS" outfile="/scratch/kocevski/191904/ft1_filtered_4FGL_J2039.0-1046_daily_bin1701.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.35
sys 0.16

Number of photons that the gtmktime cut: 97

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/191904/ft1_filtered_4FGL_J2039.0-1046_daily_bin1701.fits" evtable="EVENTS" scfile=/scratch/kocevski/191904/ft2_4FGL_J2039.0-1046_daily_bin1701.fits sctable="SC_DATA" outfile=/scratch/kocevski/191904/ltcube_680227201_680486401_4FGL_J2039.0-1046_daily_bin1701.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/191904/ft2_4FGL_J2039.0-1046_daily_bin1701.fits
.....................!
real 14.83
user 14.44
sys 0.33

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/191904/ft1_filtered_4FGL_J2039.0-1046_daily_bin1701.fits evtable="EVENTS" scfile=/scratch/kocevski/191904/ft2_4FGL_J2039.0-1046_daily_bin1701.fits sctable="SC_DATA" expcube=/scratch/kocevski/191904/ltcube_680227201_680486401_4FGL_J2039.0-1046_daily_bin1701.fits outfile=/scratch/kocevski/191904/expmap_680227201_680486401_4FGL_J2039.0-1046_daily_bin1701.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/191904/ltcube_680227201_680486401_4FGL_J2039.0-1046_daily_bin1701.fits
.....................!
real 194.79
user 188.72
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 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/191904/ft1_filtered_4FGL_J2039.0-1046_daily_bin1701.fits scfile=/scratch/kocevski/191904/ft2_4FGL_J2039.0-1046_daily_bin1701.fits outfile=/scratch/kocevski/191904/cmap_680227201_680486401_4FGL_J2039.0-1046_daily_bin1701.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.56
user 0.37
sys 0.18

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/191904/ft1_filtered_4FGL_J2039.0-1046_daily_bin1701.fits scfile=/scratch/kocevski/191904/ft2_4FGL_J2039.0-1046_daily_bin1701.fits outfile=/scratch/kocevski/191904/cmap_HighResolution_680227201_680486401_4FGL_J2039.0-1046_daily_bin1701.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.57
user 0.40
sys 0.16

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/191904/ft1_filtered_4FGL_J2039.0-1046_daily_bin1701.fits evtable="EVENTS" scfile=/scratch/kocevski/191904/ft2_4FGL_J2039.0-1046_daily_bin1701.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/191904/Model_4FGL_J2039.0-1046_daily_bin1701.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/191904/ft1_filtered_4FGL_J2039.0-1046_daily_bin1701.fits.........................!
real 25.06
user 23.67
sys 1.30

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/191904/ft1_filtered_4FGL_J2039.0-1046_daily_bin1701.fits', '/scratch/kocevski/191904/ft2_4FGL_J2039.0-1046_daily_bin1701.fits', expMap='/scratch/kocevski/191904/expmap_680227201_680486401_4FGL_J2039.0-1046_daily_bin1701.fits', expCube='/scratch/kocevski/191904/ltcube_680227201_680486401_4FGL_J2039.0-1046_daily_bin1701.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/191904/Model_4FGL_J2039.0-1046_daily_bin1701.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  1.000e-04  1.000e+04 ( 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  0.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/191904/ft1_filtered_4FGL_J2039.0-1046_daily_bin1701.fits
Spacecraft file(s): /scratch/kocevski/191904/ft2_4FGL_J2039.0-1046_daily_bin1701.fits
Exposure map: /scratch/kocevski/191904/expmap_680227201_680486401_4FGL_J2039.0-1046_daily_bin1701.fits
Exposure cube: /scratch/kocevski/191904/ltcube_680227201_680486401_4FGL_J2039.0-1046_daily_bin1701.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/191904/Model_4FGL_J2039.0-1046_daily_bin1701.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) = 1222.96069404

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    25.418       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10119E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .79272E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    68.053       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10114E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    186.07       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10061E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    .10976E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    71.898       1.0000         .10000E-03   10000.    
    10 'Prefactor '    1948.4       1.0000         .10000E-03   10000.    
    11 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    .10193E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    .15533E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    1.7780       1.0000         .10000E-03   10000.    
    15 'norm      '    .10020E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10016E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10270E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .11746E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10053E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10138E-03   1.0000         .10000E-03   10000.    
    21 'Normalizat'    .10000E-01   1.0000         .10000E-01   10.000    
    22 'Prefactor '    .99882       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.

 FCN=   1222.911     FROM MIGRAD    STATUS=CONVERGED    469 CALLS     2372 TOTAL
                     EDM=   .86E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.3%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     25.439        21.464        .11641E-07    .24017E-04
   2  Prefactor     .10000E-03    168.11       -.19497E-05** at limit **
   3  Prefactor     .10002E-03    389.40        .11997E-04** at limit **
   4  Prefactor     67.532        238.46       -.22859E-05    .51463E-05
   5  Prefactor     .10000E-03    16.909       -.12218E-05** at limit **
   6  Prefactor     186.23        149.88       -.17034E-07    .75167E-05
   7  Prefactor     .10000E-03    133.19       -.72836E-06** at limit **
   8  norm          .10000E-03    90.616       -.28367E-05** at limit **
   9  Prefactor     71.944        93.475       -.39647E-06    .19891E-04
  10  Prefactor     1947.0        1355.2        .11912E-05    .21139E-05
  11  norm          .10000E-03    20.739       -.11838E-07** at limit **
  12  norm          .10000E-03    85.866       -.83906E-06** at limit **
  13  norm          .10000E-03    4.3779       -.10022E-05** at limit **
  14  Prefactor     1.7576        130.35        .84771E-05    .31050E-04
  15  norm          .10000E-03    13.052       -.24970E-06** at limit **
  16  Prefactor     .10000E-03    96.681       -.23499E-06** at limit **
  17  Prefactor     .10000E-03    15.354       -.88123E-08** at limit **
  18  Prefactor     .10000E-03    237.03       -.80533E-07** at limit **
  19  Prefactor     .10000E-03    137.44       -.11803E-06** at limit **
  20  Prefactor     .10000E-03    526.79       -.52952E-06** at limit **
  21  Normalizat    .10000E-01    .19454       -.37931E-05** at limit **
  22  Prefactor     .99863        .14907        .95459E-06    .11411E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 25.4386
  Prefactor  = 0.000100001
  Prefactor  = 0.00010002
  Prefactor  = 67.5319
  Prefactor  = 0.0001
  Prefactor  = 186.229
  Prefactor  = 0.0001
  norm       = 0.000100001
  Prefactor  = 71.9441
  Prefactor  = 1946.97
  norm       = 0.0001
  norm       = 0.0001
  norm       = 0.000100004
  Prefactor  = 1.75756
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Normalizat = 0.01
  Prefactor  = 0.998634
 **********
 **   18 **HESSE 
 **********

 FCN=   1222.911     FROM HESSE     STATUS=OK           332 CALLS     2704 TOTAL
                     EDM=   .26E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     25.439        21.477        .79455E-04   -1.4699    
   2  Prefactor     .10000E-03    167.77        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10002E-03    369.47        .20908E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     67.532        239.29        .24328E-03   -1.4063    
   5  Prefactor     .10000E-03    16.738        .13976E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     186.23        150.40        .14801E-03   -1.2970    
   7  Prefactor     .10000E-03    133.15        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          .10000E-03    89.759        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     71.944        94.190        .47346E-04   -1.4010    
  10  Prefactor     1947.0        1355.6        .50495E-04   -.65683    
  11  norm          .10000E-03    20.741        .15560E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          .10000E-03    85.823        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          .10000E-03    38.963        .12641E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     1.7576        124.56        .31391E-03   -1.5443    
  15  norm          .10000E-03    13.065        .12340E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    96.680        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    15.484        .13379E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    238.77        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    137.45        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    526.97        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Normalizat    .10000E-01    .21569        .93735E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     .99863        .14890        .14266E-03   -.92775    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.563e-10
Minuit parameter uncertainties:
  1  21.484
  2  0.000600562
  3  0.00544502
  4  242.829
  5  0.000106255
  6  150.713
  7  0.00014416
  8  0.000567688
  9  94.3864
  10  1383.59
  11  9.00473e-07
  12  0.000190181
  13  0.000823121
  14  29.6557
  15  1.57855e-05
  16  1.3221e-05
  17  2.10873e-05
  18  6.37422e-05
  19  8.20765e-07
  20  0.000216792
  21  1.8902e-06
  22  0.148964
Done.

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

Extracting fit parameters...

4FGL J2039.0-1046
   Spectrum: LogParabola
308         norm:  1.000e-04  1.579e-05  1.000e-04  1.000e+04 ( 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  0.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:  9.986e-01  1.490e-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.000e-02  1.890e-06  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): -0.00
Ra Dec: 309.758 -10.773
Photon Flux Upper Limit: 4.56e-07 ph cm-2 s-1
Energy Flux Upper Limit: 2.98e-04 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/191904/likelihoodResults_680227201_680486401_4FGL_J2039.0-1046_daily_bin1701.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) = 1222.91100953
delta logL = -0.000371623103547

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 1222.91063801
delta logL = -1.11849658424e-07

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     '    1.9580       1.0000          .0000       5.0000    
     3 'Normalizat'    .10000E-01   1.0000         .10000E-01   10.000    
     4 'Prefactor '    .99857       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=   1222.911     FROM MIGRAD    STATUS=CONVERGED     89 CALLS      242 TOTAL
                     EDM=   .79E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10008E-03    23.087        .12343E-02** at limit **
   2  alpha         1.9974        3.9825        .16978       -.39438E-06
   3  Normalizat    .10000E-01    .21569        .93736E-02** at limit **
   4  Prefactor     .99863        .12520        .14266E-03    .24904E-05
                               ERR DEF=  .500    
Final values: 
  norm       = 0.00010008
  alpha      = 1.9974
  Normalizat = 0.01
  Prefactor  = 0.998633
 **********
 **   18 **HESSE 
 **********

 FCN=   1222.911     FROM HESSE     STATUS=OK            23 CALLS      265 TOTAL
                     EDM=   .14E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10008E-03    13.110        .24685E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  alpha         1.9974        3.1409        .67913E-02   -.20242    
   3  Normalizat    .10000E-01    .21570        .18747E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .99863        .12519        .57064E-05   -.92775    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.36054e-08
Minuit parameter uncertainties:
  1  0.00204496
  2  524.618
  3  8.85891e-09
  4  0.125227
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/191904': 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) = 1222.9106379
delta logL = 6.79460754327e-09

Extracting fit parameters...

4FGL J2039.0-1046
   Spectrum: LogParabola
308         norm:  1.001e-04  2.045e-03  1.000e-04  1.000e+04 ( 1.000e-12)
309        alpha:  1.997e+00  5.246e+02  0.000e+00  5.000e+00 ( 1.000e+00)
310         beta:  9.320e-02  0.000e+00  0.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:  9.986e-01  1.252e-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.000e-02  8.859e-09  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  0.000e+00 [aplpy.core]
INFO: Auto-setting vmax to  0.000e+00 [aplpy.core]
Saving /scratch/kocevski/191904/cmap_HighResolution_680227201_680486401_4FGL_J2039.0-1046_daily_bin1701.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='2.98e-04', job_status='DONE', photon_flux_upper_limit='4.56e-07', time_completed='2022-07-26 02:20:27.889870', job_id='191904', GAL2='1.00', fit_tolerance='1e-08', EG2='0.01', EG='0.01', time_epoch_completed='1658827227.89', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.00', dlogl='6.79e-09', ts2='-0.00', photon_index_error='0.00', photon_index='1.96' WHERE bin_id='1701' AND source_name='4FGL J2039.0-1046' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Jul 26 02:20:27 PDT 2022


------------------------------------------------------------
Sender: LSF System <scs@bullet0185>
Subject: Job 191904: <4FGL_J2039.0-1046_daily_bin1701> in cluster <slac> Done

Job <4FGL_J2039.0-1046_daily_bin1701> was submitted from host <rhel6-64p> by user <kocevski> in cluster <slac> at Tue Jul 26 02:10:14 2022
Job was executed on host(s) <bullet0185>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Jul 26 02:10:32 2022
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Tue Jul 26 02:10:32 2022
Terminated at Tue Jul 26 02:20:28 2022
Results reported at Tue Jul 26 02:20:28 2022

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2039.0-1046_daily_bin1701 309.758 -10.7731 680227201 680486401 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 :                                   387.29 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             233.29 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   596 sec.
    Turnaround time :                            614 sec.

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

