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


Performing analysis on: 4FGL_J2039.0-1046_daily_bin1756
RA = 309.758, Dec = -10.7731
tmin = 694483201, tmax = 694742401
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='24098', job_status='RUN', time_executed='2023-01-07 01:35:35.596827', time_epoch_executed='1673084135.6' WHERE source_name='4FGL J2039.0-1046' and cadence='daily' and bin_id='1756'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/24098

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/24098/ft1_4FGL_J2039.0-1046_daily_bin1756.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/24098/ft2_4FGL_J2039.0-1046_daily_bin1756.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/24098/ft1_4FGL_J2039.0-1046_daily_bin1756.fits outfile=/scratch/kocevski/24098/ft1_filteredMKT_4FGL_J2039.0-1046_daily_bin1756.fits ra=309.758 dec=-10.7731 rad=12.0 tmin=694483201.0 tmax=694742401.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.00
user 2.76
sys 0.23

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

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

Number of photons that the gtmktime cut: 271

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/24098/ft1_filtered_4FGL_J2039.0-1046_daily_bin1756.fits" evtable="EVENTS" scfile=/scratch/kocevski/24098/ft2_4FGL_J2039.0-1046_daily_bin1756.fits sctable="SC_DATA" outfile=/scratch/kocevski/24098/ltcube_694483201_694742401_4FGL_J2039.0-1046_daily_bin1756.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/24098/ft2_4FGL_J2039.0-1046_daily_bin1756.fits
.....................!
real 16.01
user 15.62
sys 0.35

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/24098/ft1_filtered_4FGL_J2039.0-1046_daily_bin1756.fits evtable="EVENTS" scfile=/scratch/kocevski/24098/ft2_4FGL_J2039.0-1046_daily_bin1756.fits sctable="SC_DATA" expcube=/scratch/kocevski/24098/ltcube_694483201_694742401_4FGL_J2039.0-1046_daily_bin1756.fits outfile=/scratch/kocevski/24098/expmap_694483201_694742401_4FGL_J2039.0-1046_daily_bin1756.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/24098/ltcube_694483201_694742401_4FGL_J2039.0-1046_daily_bin1756.fits
.....................!
real 191.89
user 185.93
sys 5.61

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/24098/ft1_filtered_4FGL_J2039.0-1046_daily_bin1756.fits scfile=/scratch/kocevski/24098/ft2_4FGL_J2039.0-1046_daily_bin1756.fits outfile=/scratch/kocevski/24098/cmap_694483201_694742401_4FGL_J2039.0-1046_daily_bin1756.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.39
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/24098/ft1_filtered_4FGL_J2039.0-1046_daily_bin1756.fits scfile=/scratch/kocevski/24098/ft2_4FGL_J2039.0-1046_daily_bin1756.fits outfile=/scratch/kocevski/24098/cmap_HighResolution_694483201_694742401_4FGL_J2039.0-1046_daily_bin1756.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/24098/ft1_filtered_4FGL_J2039.0-1046_daily_bin1756.fits evtable="EVENTS" scfile=/scratch/kocevski/24098/ft2_4FGL_J2039.0-1046_daily_bin1756.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/24098/Model_4FGL_J2039.0-1046_daily_bin1756.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/24098/ft1_filtered_4FGL_J2039.0-1046_daily_bin1756.fits.....................!
real 41.00
user 39.59
sys 1.31

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/24098/ft1_filtered_4FGL_J2039.0-1046_daily_bin1756.fits', '/scratch/kocevski/24098/ft2_4FGL_J2039.0-1046_daily_bin1756.fits', expMap='/scratch/kocevski/24098/expmap_694483201_694742401_4FGL_J2039.0-1046_daily_bin1756.fits', expCube='/scratch/kocevski/24098/ltcube_694483201_694742401_4FGL_J2039.0-1046_daily_bin1756.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/24098/Model_4FGL_J2039.0-1046_daily_bin1756.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/24098/ft1_filtered_4FGL_J2039.0-1046_daily_bin1756.fits
Spacecraft file(s): /scratch/kocevski/24098/ft2_4FGL_J2039.0-1046_daily_bin1756.fits
Exposure map: /scratch/kocevski/24098/expmap_694483201_694742401_4FGL_J2039.0-1046_daily_bin1756.fits
Exposure cube: /scratch/kocevski/24098/ltcube_694483201_694742401_4FGL_J2039.0-1046_daily_bin1756.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/24098/Model_4FGL_J2039.0-1046_daily_bin1756.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) = 3124.49491919

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    68.983       1.0000          .0000       .10000E+07
     2 'Prefactor '    .56903       1.0000          .0000       .10000E+07
     3 'Prefactor '    75.551       1.0000          .0000       .10000E+07
     4 'Prefactor '    14.079       1.0000          .0000       .10000E+07
     5 'Prefactor '    .29399E-01   1.0000          .0000       .10000E+07
     6 'norm      '    .32132E-02   1.0000          .0000       .10000E+07
     7 'Prefactor '    .10922E-04   1.0000          .0000       .10000E+07
     8 'Prefactor '    163.03       1.0000          .0000       .10000E+07
     9 'norm      '    .41754E-02   1.0000          .0000       .10000E+07
    10 'norm      '    46.585       1.0000          .0000       .10000E+07
    11 'norm      '    .16770E-05   1.0000          .0000       .10000E+07
    12 'Prefactor '    .19596E-03   1.0000          .0000       .10000E+07
    13 'norm      '    1.5462       1.0000          .0000       .10000E+07
    14 'Prefactor '    .21469E-03   1.0000          .0000       .10000E+07
    15 'Prefactor '    .15624E-05   1.0000          .0000       .10000E+07
    16 'Prefactor '    .81577E-03   1.0000          .0000       .10000E+07
    17 'Prefactor '    13.192       1.0000          .0000       .10000E+07
    18 'Normalizat'    1.1952       1.0000         .10000E-01   10.000    
    19 'Prefactor '    .81304       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=   3124.492     FROM MIGRAD    STATUS=CONVERGED    172 CALLS     1491 TOTAL
                     EDM=   .11E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.9%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     68.719        10.077       -.25411E-05   -.23251    
   2  Prefactor     .10580E-05    179.12        .23199E-05** at limit **
   3  Prefactor     78.125        152.94        .35813E-04    .16268    
   4  Prefactor     13.996        13.410        .32005E-06    .21233E-02
   5  Prefactor     .55511E-10    77.625       -.12028E-05** at limit **
   6  norm          .67724E-08    23.628       -.95001E-05** at limit **
   7  Prefactor     .27756E-09    22.210        .25693E-05** at limit **
   8  Prefactor     164.69        129.25        .20678E-04   -.30488    
   9  norm          .29587E-07    31.161       -.10916E-04** at limit **
  10  norm          43.009        93.010       -.14773E-06    .17889E-01
  11  norm           .0000        3.3325        .43606E-05** at limit **
  12  Prefactor      .0000        10.554       -.25200E-06** at limit **
  13  norm          1.5101        11.721        .64793E-05   -.64995E-03
  14  Prefactor     .35361E-07    30.299        .17627E-04** at limit **
  15  Prefactor      .0000        2.1646       -.11949E-06** at limit **
  16  Prefactor     .11102E-09    11.185        .40432E-06** at limit **
  17  Prefactor     13.156        14.252       -.40774E-06   -.22487E-03
  18  Normalizat    1.1963        .44909       -.10904E-03    .10067E-03
  19  Prefactor     .81321        .18694       -.16934E-04    .21271E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 68.7191
  Prefactor  = 1.05804e-06
  Prefactor  = 78.1245
  Prefactor  = 13.996
  Prefactor  = 5.55112e-11
  norm       = 6.77236e-09
  Prefactor  = 2.77556e-10
  Prefactor  = 164.691
  norm       = 2.95874e-08
  norm       = 43.0089
  norm       = 0
  Prefactor  = 0
  norm       = 1.51012
  Prefactor  = 3.53606e-08
  Prefactor  = 0
  Prefactor  = 1.11022e-10
  Prefactor  = 13.1559
  Normalizat = 1.19631
  Prefactor  = 0.813208
 **********
 **   18 **HESSE 
 **********

 FCN=   3124.492     FROM HESSE     STATUS=OK           296 CALLS     1787 TOTAL
                     EDM=   .83E-04    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     68.719        37.257        .12041E-03   -1.5542    
   2  Prefactor     .10580E-05    180.85        .72049E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     78.125        160.37        .11505E-03   -1.5531    
   4  Prefactor     13.996        13.463        .26668E-03   -1.5633    
   5  Prefactor     .55511E-10    77.183        .16482E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          .67724E-08    23.610        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .27756E-09    22.227        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     164.69        359.94        .78326E-04   -1.5451    
   9  norm          .29587E-07    31.185        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          43.009        94.833        .14653E-03   -1.5577    
  11  norm           .0000        3.2730        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor      .0000        10.556        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          1.5101        11.831        .85663E-03   -1.5683    
  14  Prefactor     .35361E-07    30.158        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor      .0000        2.1629        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .11102E-09    11.176        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     13.156        14.238        .27553E-03   -1.5635    
  18  Normalizat    1.1963        .36749        .79995E-01   -.86717    
  19  Prefactor     .81321        .15237        .43887E-01   -.99243    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 8.31786e-05
Minuit parameter uncertainties:
  1  37.2573
  2  0.0276658
  3  160.377
  4  13.4628
  5  0.00015463
  6  0.000800757
  7  0.000149342
  8  359.983
  9  0.00192036
  10  94.836
  11  9.41482e-06
  12  1.60544e-05
  13  8.4537
  14  0.00206526
  15  1.42689e-06
  16  6.87348e-05
  17  14.2379
  18  0.368283
  19  0.152446
Done.

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

Extracting fit parameters...

4FGL J2039.0-1046
   Spectrum: LogParabola
308         norm:  1.510e+00  8.454e+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

GAL_V02
   Spectrum: PowerLaw
595    Prefactor:  8.132e-01  1.524e-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.196e+00  3.683e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/24098/likelihoodResults_694483201_694742401_4FGL_J2039.0-1046_daily_bin1756.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) = 3124.39259799
delta logL = 0.0996016685085

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 3124.38137372
delta logL = 0.110825943679

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    1.0669       1.0000          .0000       .10000E+07
     2 'alpha     '    .90356       1.0000          .0000       5.0000    
     3 'Normalizat'    1.2037       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .81109       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.

 FCN=   3124.381     FROM MIGRAD    STATUS=CONVERGED     54 CALLS      219 TOTAL
                     EDM=   .20E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          1.0661        5.5727        .31070E-02    .44651E-02
   2  alpha         .90359        1.2978        .50000       -.30328E-04
   3  Normalizat    1.2037        .36001        .79755E-01    .69818E-05
   4  Prefactor     .81106        .14676        .43861E-01    .13367E-05
                               ERR DEF=  .500    
Final values: 
  norm       = 1.06611
  alpha      = 0.903587
  Normalizat = 1.20374
  Prefactor  = 0.81106
 **********
 **   18 **HESSE 
 **********

 FCN=   3124.381     FROM HESSE     STATUS=OK            35 CALLS      254 TOTAL
                     EDM=   .33E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          1.0661        3.4382        .15877E-03   -1.5687    
   2  alpha         .90359        1.2013        .24940E-01   -.69263    
   3  Normalizat    1.2037        .43643        .35305E-03   -.86487    
   4  Prefactor     .81106        .17837        .17061E-03   -.99322    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.34622e-09
Minuit parameter uncertainties:
  1  3.43825
  2  1.29747
  3  0.43776
  4  0.178499
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/24098': 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) = 3124.38137364
delta logL = 0.110826026291

Extracting fit parameters...

4FGL J2039.0-1046
   Spectrum: LogParabola
308         norm:  1.066e+00  3.438e+00  0.000e+00  1.000e+06 ( 1.000e-12)
309        alpha:  9.036e-01  1.297e+00  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:  8.111e-01  1.785e-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.204e+00  4.378e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 0.04
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/24098/cmap_HighResolution_694483201_694742401_4FGL_J2039.0-1046_daily_bin1756.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.24e-04', job_status='DONE', photon_flux_upper_limit='1.90e-07', time_completed='2023-01-07 01:43:03.447605', job_id='24098', GAL2='0.81', fit_tolerance='1e-08', EG2='1.20', EG='1.20', time_epoch_completed='1673084583.45', return_code2='0', ts='0.04', comment='SUCCESS', return_code='0', GAL='0.81', dlogl='1.11e-01', ts2='0.26', photon_index_error='0.00', photon_index='1.96' WHERE bin_id='1756' AND source_name='4FGL J2039.0-1046' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Jan  7 01:43:03 PST 2023


------------------------------------------------------------
Sender: LSF System <lsf@bullet0098>
Subject: Job 24098: <4FGL_J2039.0-1046_daily_bin1756> in cluster <slac> Done

Job <4FGL_J2039.0-1046_daily_bin1756> was submitted from host <rhel6-64k> by user <kocevski> in cluster <slac> at Sat Jan  7 01:30:23 2023
Job was executed on host(s) <bullet0098>, in queue <medium>, as user <kocevski> in cluster <slac> at Sat Jan  7 01:31:31 2023
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Sat Jan  7 01:31:31 2023
Terminated at Sat Jan  7 01:43:04 2023
Results reported at Sat Jan  7 01:43:04 2023

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2039.0-1046_daily_bin1756 309.758 -10.7731 694483201 694742401 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 :                                   450.61 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             202.67 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   692 sec.
    Turnaround time :                            761 sec.

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

