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


Performing analysis on: 4FGL_J1050.1+0432_daily_bin1765
RA = 162.546, Dec = 4.5377
tmin = 696816001, tmax = 697075201
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='631367', job_status='RUN', time_executed='2023-02-03 00:46:56.230766', time_epoch_executed='1675414016.23' WHERE source_name='4FGL J1050.1+0432' and cadence='daily' and bin_id='1765'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/631367

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/631367/ft1_4FGL_J1050.1+0432_daily_bin1765.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/631367/ft2_4FGL_J1050.1+0432_daily_bin1765.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/631367/ft1_4FGL_J1050.1+0432_daily_bin1765.fits outfile=/scratch/kocevski/631367/ft1_filteredMKT_4FGL_J1050.1+0432_daily_bin1765.fits ra=162.546 dec=4.5377 rad=12.0 tmin=696816001.0 tmax=697075201.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.75
user 3.47
sys 0.24

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/631367/ft2_4FGL_J1050.1+0432_daily_bin1765.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/631367/ft2_4FGL_J1050.1+0432_daily_bin1765.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/631367/ft1_filteredMKT_4FGL_J1050.1+0432_daily_bin1765.fits evtable="EVENTS" outfile="/scratch/kocevski/631367/ft1_filtered_4FGL_J1050.1+0432_daily_bin1765.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.16

Number of photons that the gtmktime cut: 562

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/631367/ft1_filtered_4FGL_J1050.1+0432_daily_bin1765.fits" evtable="EVENTS" scfile=/scratch/kocevski/631367/ft2_4FGL_J1050.1+0432_daily_bin1765.fits sctable="SC_DATA" outfile=/scratch/kocevski/631367/ltcube_696816001_697075201_4FGL_J1050.1+0432_daily_bin1765.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/631367/ft2_4FGL_J1050.1+0432_daily_bin1765.fits
.....................!
real 16.00
user 15.58
sys 0.34

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/631367/ft1_filtered_4FGL_J1050.1+0432_daily_bin1765.fits evtable="EVENTS" scfile=/scratch/kocevski/631367/ft2_4FGL_J1050.1+0432_daily_bin1765.fits sctable="SC_DATA" expcube=/scratch/kocevski/631367/ltcube_696816001_697075201_4FGL_J1050.1+0432_daily_bin1765.fits outfile=/scratch/kocevski/631367/expmap_696816001_697075201_4FGL_J1050.1+0432_daily_bin1765.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/631367/ltcube_696816001_697075201_4FGL_J1050.1+0432_daily_bin1765.fits
.....................!
real 193.12
user 186.54
sys 6.00

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

Setting source of interest to:
4FGL J1050.1+0432 @ 162.546 4.5377

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/631367/ft1_filtered_4FGL_J1050.1+0432_daily_bin1765.fits scfile=/scratch/kocevski/631367/ft2_4FGL_J1050.1+0432_daily_bin1765.fits outfile=/scratch/kocevski/631367/cmap_696816001_697075201_4FGL_J1050.1+0432_daily_bin1765.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=162.546 yref=4.5377 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.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/631367/ft1_filtered_4FGL_J1050.1+0432_daily_bin1765.fits scfile=/scratch/kocevski/631367/ft2_4FGL_J1050.1+0432_daily_bin1765.fits outfile=/scratch/kocevski/631367/cmap_HighResolution_696816001_697075201_4FGL_J1050.1+0432_daily_bin1765.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=162.546 yref=4.5377 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.58
user 0.40
sys 0.17

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/631367/ft1_filtered_4FGL_J1050.1+0432_daily_bin1765.fits evtable="EVENTS" scfile=/scratch/kocevski/631367/ft2_4FGL_J1050.1+0432_daily_bin1765.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/631367/Model_4FGL_J1050.1+0432_daily_bin1765.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/631367/ft1_filtered_4FGL_J1050.1+0432_daily_bin1765.fits.....................!
real 58.68
user 57.12
sys 1.32

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/631367/ft1_filtered_4FGL_J1050.1+0432_daily_bin1765.fits', '/scratch/kocevski/631367/ft2_4FGL_J1050.1+0432_daily_bin1765.fits', expMap='/scratch/kocevski/631367/expmap_696816001_697075201_4FGL_J1050.1+0432_daily_bin1765.fits', expCube='/scratch/kocevski/631367/ltcube_696816001_697075201_4FGL_J1050.1+0432_daily_bin1765.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/631367/Model_4FGL_J1050.1+0432_daily_bin1765.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J1050.1+0432'

4FGL J1050.1+0432
   Spectrum: PowerLaw
232    Prefactor:  4.184e+00  0.000e+00  0.000e+00  1.000e+06 ( 1.000e-12)
233        Index:  2.606e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
234        Scale:  5.656e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/631367/ft1_filtered_4FGL_J1050.1+0432_daily_bin1765.fits
Spacecraft file(s): /scratch/kocevski/631367/ft2_4FGL_J1050.1+0432_daily_bin1765.fits
Exposure map: /scratch/kocevski/631367/expmap_696816001_697075201_4FGL_J1050.1+0432_daily_bin1765.fits
Exposure cube: /scratch/kocevski/631367/ltcube_696816001_697075201_4FGL_J1050.1+0432_daily_bin1765.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/631367/Model_4FGL_J1050.1+0432_daily_bin1765.xml
Optimizer: MINUIT
Statistic: UNBINNED

Performing an iterative likelihood fit...

Fit tolerance = 1

Performing likelihood fit...
Done.

MINUIT Return Code (Fixed Index): 102
logL (Fixed Index) = 6316.56615328

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .40765       1.0000          .0000       .10000E+07
     2 'Prefactor '    .35757E-02   1.0000          .0000       .10000E+07
     3 'Prefactor '    .75525E-05   1.0000          .0000       .10000E+07
     4 'Prefactor '    10.234       1.0000          .0000       .10000E+07
     5 'Prefactor '    .33206E-02   1.0000          .0000       .10000E+07
     6 'Prefactor '    .21912E-02   1.0000          .0000       .10000E+07
     7 'norm      '    .31702E-03   1.0000          .0000       .10000E+07
     8 'Prefactor '    13.092       1.0000          .0000       .10000E+07
     9 'Prefactor '    .40007       1.0000          .0000       .10000E+07
    10 'Prefactor '    47.188       1.0000          .0000       .10000E+07
    11 'Prefactor '    .27800E-04   1.0000          .0000       .10000E+07
    12 'norm      '    .30175       1.0000          .0000       .10000E+07
    13 'norm      '    .13206E-04   1.0000          .0000       .10000E+07
    14 'Prefactor '    .35350E-02   1.0000          .0000       .10000E+07
    15 'Prefactor '    .39512E-04   1.0000          .0000       .10000E+07
    16 'norm      '    .93702       1.0000          .0000       .10000E+07
    17 'Prefactor '    1.7948       1.0000          .0000       .10000E+07
    18 'Normalizat'    .75426       1.0000         .10000E-01   10.000    
    19 'Prefactor '    1.0352       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5470E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   6316.407     FROM MIGRAD    STATUS=CONVERGED    145 CALLS     1153 TOTAL
                     EDM=   .42E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.4%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .20142        7.3970       -.20321E-06** at limit **
   2  Prefactor     .58009E-07    11.555        .29739E-07** at limit **
   3  Prefactor     .31641E-08    5.2414       -.23053E-06** at limit **
   4  Prefactor     9.6070        57.713        .91049E-07    .77956E-02
   5  Prefactor     .15321E-07    26.866        .95461E-07** at limit **
   6  Prefactor     .28699E-07    12.121       -.17230E-06** at limit **
   7  norm          .80957E-06    8.4692        .43034E-06** at limit **
   8  Prefactor     13.125        6.7684        .11984E-07    .63428E-03
   9  Prefactor     .39768        2.2952       -.88554E-07   -.43104E-03
  10  Prefactor     47.168        11.356        .38636E-07   -.77813E-02
  11  Prefactor     .31019E-05    9.3845       -.60976E-06** at limit **
  12  norm          .30102        .39629        .48619E-08   -.33496E-03
  13  norm          .13323E-08    1.7449        .12851E-06** at limit **
  14  Prefactor     .16280E-05    7.5426       -.54028E-06** at limit **
  15  Prefactor     .44409E-09    1.9674        .14104E-06** at limit **
  16  norm          .93099        .72439       -.54551E-08    .12233E-01
  17  Prefactor     1.7938        1.5934        .14648E-07    .31926E-03
  18  Normalizat    .75481        .20476       -.48643E-05    .84087E-05
  19  Prefactor     1.0352        .17110        .33518E-05    .15435E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.201421
  Prefactor  = 5.80092e-08
  Prefactor  = 3.16414e-09
  Prefactor  = 9.607
  Prefactor  = 1.53211e-08
  Prefactor  = 2.86993e-08
  norm       = 8.09575e-07
  Prefactor  = 13.1255
  Prefactor  = 0.397682
  Prefactor  = 47.1677
  Prefactor  = 3.10185e-06
  norm       = 0.30102
  norm       = 1.33227e-09
  Prefactor  = 1.62798e-06
  Prefactor  = 4.44089e-10
  norm       = 0.930994
  Prefactor  = 1.79377
  Normalizat = 0.754811
  Prefactor  = 1.03524
 **********
 **   18 **HESSE 
 **********

 FCN=   6316.407     FROM HESSE     STATUS=OK           314 CALLS     1467 TOTAL
                     EDM=   .30E-06    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .20142        7.2207        .88605E-02   -1.5699    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .58009E-07    11.837        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .31641E-08    5.2661        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     9.6070        61.604        .31296E-03   -1.5646    
   5  Prefactor     .15321E-07    27.051        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .28699E-07    15.743        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          .80957E-06    1.1629        .25841E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     13.125        6.8218        .27657E-03   -1.5636    
   9  Prefactor     .39768        2.2824        .89479E-03   -1.5695    
  10  Prefactor     47.168        11.352        .14559E-03   -1.5571    
  11  Prefactor     .31019E-05    19.625        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          .30102        .42257        .10189E-02   -1.5697    
  13  norm          .13323E-08    1.6862        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .16280E-05    16.887        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .44409E-09    1.9685        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          .93099        21.928        .43234E-03   -1.5689    
  17  Prefactor     1.7938        1.6018        .78026E-03   -1.5681    
  18  Normalizat    .75481        .17664        .62758E-01   -1.0177    
  19  Prefactor     1.0352        .14475        .40865E-01   -.91564    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.95962e-07
Minuit parameter uncertainties:
  1  2.41198
  2  0.0016577
  3  0.000257093
  4  48.6558
  5  0.00128641
  6  0.0013441
  7  0.00194054
  8  6.82182
  9  1.90544
  10  11.3521
  11  0.0156043
  12  0.422565
  13  9.49135e-05
  14  0.0104865
  15  5.88216e-05
  16  9.03653
  17  1.60177
  18  0.176775
  19  0.144802
Done.

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

Extracting fit parameters...

4FGL J1050.1+0432
   Spectrum: PowerLaw
232    Prefactor:  3.102e-06  1.560e-02  0.000e+00  1.000e+06 ( 1.000e-12)
233        Index:  2.606e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
234        Scale:  5.656e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
544    Prefactor:  1.035e+00  1.448e-01  0.000e+00  1.000e+01 ( 1.000e+00)
545        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
546        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
543   Normalization:  7.548e-01  1.768e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): -0.00
Ra Dec: 162.546 4.538
Photon Flux Upper Limit: 9.28e-08 ph cm-2 s-1
Energy Flux Upper Limit: 7.26e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/631367/likelihoodResults_696816001_697075201_4FGL_J1050.1+0432_daily_bin1765.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): 102
logL (Free Index) = 6316.40312164
delta logL = 0.00392215644388

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 6316.29801579
delta logL = 0.109028003089

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .19116       1.0000          .0000       .10000E+07
     2 'Index     '    4.7904       1.0000          .0000       10.000    
     3 'Normalizat'    .72730       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0498       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5470E+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.
 MIGRAD TERMINATED WITHOUT CONVERGENCE.

 FCN=   6316.298     FROM MIGRAD    STATUS=FAILED        84 CALLS      310 TOTAL
                     EDM=   .98E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .19110        47.107        .74144E-05** at limit **
   2  Index         4.7906        6.9103        .13656E-01   -.30949E-03
   3  Normalizat    .72732        .14631        .28250E-03   -.61295E-03
   4  Prefactor     1.0498        .12277        .20448E-03   -.51116E-03
                               ERR DEF=  .500    
 START SIMPLEX MINIMIZATION.    CONVERGENCE WHEN EDM .LT.   .20E-04
 SIMPLEX MINIMIZATION HAS CONVERGED.

 FCN=   6316.298     FROM SIMPLEX   STATUS=UNCHANGED     86 CALLS      396 TOTAL
                     EDM=   .12E-04    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .19110        47.107        .17390E-04** at limit **
   2  Index         4.7906        6.9103        .34910E-02   -.30949E-03
   3  Normalizat    .72732        .14631        .16773E-03   -.61295E-03
   4  Prefactor     1.0498        .12277        .12535E-03   -.51116E-03
                               ERR DEF=  .500    

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   6316.298     FROM MIGRAD    STATUS=CONVERGED     32 CALLS      428 TOTAL
                     EDM=   .60E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .19098        3.7191        .29657E-06** at limit **
   2  Index         4.7911        7.1640        .54623E-03   -.56195E-06
   3  Normalizat    .72732        .20635        .56501E-04    .45474E-04
   4  Prefactor     1.0498        .17335        .40896E-04    .87066E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.190975
  Index      = 4.79113
  Normalizat = 0.727319
  Prefactor  = 1.04981
 **********
 **   18 **HESSE 
 **********

 FCN=   6316.298     FROM HESSE     STATUS=OK            23 CALLS      451 TOTAL
                     EDM=   .60E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .19098        3.2186        .37430E-06   -1.5699    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         4.7911        7.0771        .21849E-04   -.41786E-01
   3  Normalizat    .72732        .20632        .11300E-04   -1.0282    
   4  Prefactor     1.0498        .17339        .81793E-05   -.91087    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 6.01474e-12
Minuit parameter uncertainties:
  1  1.56802
  2  5.0893
  3  0.206546
  4  0.173479
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/631367': 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) = 6316.29801577
delta logL = 0.109028019922

Extracting fit parameters...

4FGL J1050.1+0432
   Spectrum: PowerLaw
232    Prefactor:  1.910e-01  1.568e+00  0.000e+00  1.000e+06 ( 1.000e-12)
233        Index:  4.791e+00  5.089e+00  0.000e+00  1.000e+01 (-1.000e+00)
234        Scale:  5.656e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
544    Prefactor:  1.050e+00  1.735e-01  0.000e+00  1.000e+01 ( 1.000e+00)
545        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
546        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
543   Normalization:  7.273e-01  2.065e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
Ra Dec: 162.546 4.538

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/631367/cmap_HighResolution_696816001_697075201_4FGL_J1050.1+0432_daily_bin1765.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='7.26e-03', job_status='DONE', photon_flux_upper_limit='9.28e-08', time_completed='2023-02-03 00:55:56.873074', job_id='631367', GAL2='1.05', fit_tolerance='1e-08', EG2='0.73', EG='0.75', time_epoch_completed='1675414556.87', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.04', dlogl='1.09e-01', ts2='0.24', photon_index_error='0.00', photon_index='2.61' WHERE bin_id='1765' AND source_name='4FGL J1050.1+0432' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Fri Feb  3 00:55:56 PST 2023


------------------------------------------------------------
Sender: LSF System <lsf@bullet0199>
Subject: Job 631367: <4FGL_J1050.1+0432_daily_bin1765> in cluster <slac> Done

Job <4FGL_J1050.1+0432_daily_bin1765> was submitted from host <rhel6-64j> by user <kocevski> in cluster <slac> at Fri Feb  3 00:45:21 2023
Job was executed on host(s) <bullet0199>, in queue <medium>, as user <kocevski> in cluster <slac> at Fri Feb  3 00:46:32 2023
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Fri Feb  3 00:46:32 2023
Terminated at Fri Feb  3 00:55:57 2023
Results reported at Fri Feb  3 00:55:57 2023

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1050.1+0432_daily_bin1765 162.546 4.5377 696816001 697075201 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J1050.1+0432 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   541.37 sec.
    Max Memory :                                 1093 MB
    Average Memory :                             326.86 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   565 sec.
    Turnaround time :                            636 sec.

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

