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


Performing analysis on: 4FGL_J1049.8+1429_daily_bin1712
RA = 162.467, Dec = 14.4835
tmin = 683078401, tmax = 683337601
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='96130', job_status='RUN', time_executed='2022-09-16 15:33:41.124508', time_epoch_executed='1663367621.12' WHERE source_name='4FGL J1049.8+1429' and cadence='daily' and bin_id='1712'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/96130

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/96130/ft1_4FGL_J1049.8+1429_daily_bin1712.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/96130/ft2_4FGL_J1049.8+1429_daily_bin1712.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/96130/ft1_4FGL_J1049.8+1429_daily_bin1712.fits outfile=/scratch/kocevski/96130/ft1_filteredMKT_4FGL_J1049.8+1429_daily_bin1712.fits ra=162.467 dec=14.4835 rad=12.0 tmin=683078401.0 tmax=683337601.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 4.77
user 4.51
sys 0.24

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/96130/ft2_4FGL_J1049.8+1429_daily_bin1712.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/96130/ft2_4FGL_J1049.8+1429_daily_bin1712.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/96130/ft1_filteredMKT_4FGL_J1049.8+1429_daily_bin1712.fits evtable="EVENTS" outfile="/scratch/kocevski/96130/ft1_filtered_4FGL_J1049.8+1429_daily_bin1712.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.55
user 0.35
sys 0.15

Number of photons that the gtmktime cut: 612

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/96130/ft1_filtered_4FGL_J1049.8+1429_daily_bin1712.fits" evtable="EVENTS" scfile=/scratch/kocevski/96130/ft2_4FGL_J1049.8+1429_daily_bin1712.fits sctable="SC_DATA" outfile=/scratch/kocevski/96130/ltcube_683078401_683337601_4FGL_J1049.8+1429_daily_bin1712.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/96130/ft2_4FGL_J1049.8+1429_daily_bin1712.fits
.....................!
real 14.67
user 14.22
sys 0.34

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/96130/ft1_filtered_4FGL_J1049.8+1429_daily_bin1712.fits evtable="EVENTS" scfile=/scratch/kocevski/96130/ft2_4FGL_J1049.8+1429_daily_bin1712.fits sctable="SC_DATA" expcube=/scratch/kocevski/96130/ltcube_683078401_683337601_4FGL_J1049.8+1429_daily_bin1712.fits outfile=/scratch/kocevski/96130/expmap_683078401_683337601_4FGL_J1049.8+1429_daily_bin1712.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/96130/ltcube_683078401_683337601_4FGL_J1049.8+1429_daily_bin1712.fits
.....................!
real 193.95
user 186.98
sys 5.37

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

Setting source of interest to:
4FGL J1049.8+1429 @ 162.467 14.4835

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/96130/ft1_filtered_4FGL_J1049.8+1429_daily_bin1712.fits scfile=/scratch/kocevski/96130/ft2_4FGL_J1049.8+1429_daily_bin1712.fits outfile=/scratch/kocevski/96130/cmap_683078401_683337601_4FGL_J1049.8+1429_daily_bin1712.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.467 yref=14.4835 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.39
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/96130/ft1_filtered_4FGL_J1049.8+1429_daily_bin1712.fits scfile=/scratch/kocevski/96130/ft2_4FGL_J1049.8+1429_daily_bin1712.fits outfile=/scratch/kocevski/96130/cmap_HighResolution_683078401_683337601_4FGL_J1049.8+1429_daily_bin1712.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.467 yref=14.4835 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.41
sys 0.16

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/96130/ft1_filtered_4FGL_J1049.8+1429_daily_bin1712.fits evtable="EVENTS" scfile=/scratch/kocevski/96130/ft2_4FGL_J1049.8+1429_daily_bin1712.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/96130/Model_4FGL_J1049.8+1429_daily_bin1712.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/96130/ft1_filtered_4FGL_J1049.8+1429_daily_bin1712.fits.....................!
real 66.41
user 65.07
sys 1.18

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/96130/ft1_filtered_4FGL_J1049.8+1429_daily_bin1712.fits', '/scratch/kocevski/96130/ft2_4FGL_J1049.8+1429_daily_bin1712.fits', expMap='/scratch/kocevski/96130/expmap_683078401_683337601_4FGL_J1049.8+1429_daily_bin1712.fits', expCube='/scratch/kocevski/96130/ltcube_683078401_683337601_4FGL_J1049.8+1429_daily_bin1712.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/96130/Model_4FGL_J1049.8+1429_daily_bin1712.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J1049.8+1429'

4FGL J1049.8+1429
   Spectrum: PowerLaw
221    Prefactor:  4.091e+00  0.000e+00  0.000e+00  1.000e+06 ( 1.000e-12)
222        Index:  2.592e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
223        Scale:  5.785e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/96130/ft1_filtered_4FGL_J1049.8+1429_daily_bin1712.fits
Spacecraft file(s): /scratch/kocevski/96130/ft2_4FGL_J1049.8+1429_daily_bin1712.fits
Exposure map: /scratch/kocevski/96130/expmap_683078401_683337601_4FGL_J1049.8+1429_daily_bin1712.fits
Exposure cube: /scratch/kocevski/96130/ltcube_683078401_683337601_4FGL_J1049.8+1429_daily_bin1712.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/96130/Model_4FGL_J1049.8+1429_daily_bin1712.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) = 6881.12914916

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    95.828       1.0000          .0000       .10000E+07
     2 'Prefactor '    15.224       1.0000          .0000       .10000E+07
     3 'Prefactor '    7.4730       1.0000          .0000       .10000E+07
     4 'Prefactor '    .11330       1.0000          .0000       .10000E+07
     5 'Prefactor '    .13870E-02   1.0000          .0000       .10000E+07
     6 'Prefactor '    .17603E-06   1.0000          .0000       .10000E+07
     7 'Prefactor '    .76781       1.0000          .0000       .10000E+07
     8 'Prefactor '    18.877       1.0000          .0000       .10000E+07
     9 'Prefactor '    .58242E-03   1.0000          .0000       .10000E+07
    10 'Prefactor '    4.0966       1.0000          .0000       .10000E+07
    11 'Prefactor '    1.6536       1.0000          .0000       .10000E+07
    12 'Prefactor '    .10112E-01   1.0000          .0000       .10000E+07
    13 'norm      '    .94020       1.0000          .0000       .10000E+07
    14 'Prefactor '    .37952E-03   1.0000          .0000       .10000E+07
    15 'Prefactor '    1.5676       1.0000          .0000       .10000E+07
    16 'norm      '    5.6837       1.0000          .0000       .10000E+07
    17 'Prefactor '    .78320E-03   1.0000          .0000       .10000E+07
    18 'Normalizat'    1.1243       1.0000         .10000E-01   10.000    
    19 'Prefactor '    1.6504       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5280E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   6881.059     FROM MIGRAD    STATUS=CONVERGED    178 CALLS     1524 TOTAL
                     EDM=   .37E-11  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .8%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     99.918        95.198       -.89281E-07    .20180E-02
   2  Prefactor     13.905        36.300        .21031E-06   -.35684E-03
   3  Prefactor     7.4394        16.129       -.13687E-06    .45822E-02
   4  Prefactor      .0000        33.677        .13228E-06** at limit **
   5  Prefactor     .34750E-07    97.273        .88856E-06** at limit **
   6  Prefactor      .0000        3.1374        .49404E-07** at limit **
   7  Prefactor     .77733        2.8519        .18994E-07    .33424E-03
   8  Prefactor     18.813        12.264        .28176E-08    .13741E-03
   9  Prefactor      .0000        5.8838       -.11627E-07** at limit **
  10  Prefactor     4.2198        17.258       -.51002E-07    .69321E-04
  11  Prefactor     1.3758        55.227       -.40745E-06   -.47270E-05
  12  Prefactor      .0000        12.632        .27491E-07** at limit **
  13  norm          .94184        1.4864        .59816E-08    .49893E-04
  14  Prefactor     .33307E-09    27.599       -.91003E-07** at limit **
  15  Prefactor     1.6139        4.4924        .59937E-07    .12058E-04
  16  norm          5.7472        9.9604        .29646E-07    .80720E-04
  17  Prefactor      .0000        5.1808        .91496E-08** at limit **
  18  Normalizat    1.1229        .27442        .70235E-06    .30626E-04
  19  Prefactor     1.6511        .24896       -.10086E-06    .39759E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 99.9179
  Prefactor  = 13.9051
  Prefactor  = 7.43938
  Prefactor  = 0
  Prefactor  = 3.475e-08
  Prefactor  = 0
  Prefactor  = 0.777332
  Prefactor  = 18.8135
  Prefactor  = 0
  Prefactor  = 4.21979
  Prefactor  = 1.37579
  Prefactor  = 0
  norm       = 0.941839
  Prefactor  = 3.33067e-10
  Prefactor  = 1.61394
  norm       = 5.74719
  Prefactor  = 0
  Normalizat = 1.12289
  Prefactor  = 1.65113
 **********
 **   18 **HESSE 
 **********

 FCN=   6881.059     FROM HESSE     STATUS=OK           322 CALLS     1846 TOTAL
                     EDM=   .80E-06    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     99.918        94.795        .10216E-03   -1.5508    
   2  Prefactor     13.905        36.342        .25643E-03   -1.5633    
   3  Prefactor     7.4394        73.052        .36664E-03   -1.5653    
   4  Prefactor      .0000        33.615        .13585E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .34750E-07    7.1592        .64237E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor      .0000        3.0429        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .77733        2.8920        .55366E-03   -1.5690    
   8  Prefactor     18.813        12.222        .23025E-03   -1.5621    
   9  Prefactor      .0000        5.8800        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     4.2198        27.354        .49785E-03   -1.5667    
  11  Prefactor     1.3758        85.374        .82053E-03   -1.5685    
  12  Prefactor      .0000        12.654        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          .94184        1.4962        .43020E-03   -1.5689    
  14  Prefactor     .33307E-09    27.701        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     1.6139        4.5395        .84900E-03   -1.5683    
  16  norm          5.7472        9.9444        .42110E-03   -1.5660    
  17  Prefactor      .0000        5.1816        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Normalizat    1.1229        .22802        .71132E-01   -.89020    
  19  Prefactor     1.6511        .20667        .58750E-01   -.73390    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 8.03372e-07
Minuit parameter uncertainties:
  1  94.7969
  2  36.3429
  3  46.6253
  4  3.6647e-06
  5  0.000997296
  6  7.27499e-07
  7  2.89204
  8  12.2217
  9  1.09375e-06
  10  21.4876
  11  21.6758
  12  2.10274e-05
  13  1.4962
  14  0.000196073
  15  4.53947
  16  9.94439
  17  1.49296e-06
  18  0.228216
  19  0.20678
Done.

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

Extracting fit parameters...

4FGL J1049.8+1429
   Spectrum: PowerLaw
221    Prefactor:  1.881e+01  1.222e+01  0.000e+00  1.000e+06 ( 1.000e-12)
222        Index:  2.592e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
223        Scale:  5.785e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
525    Prefactor:  1.651e+00  2.068e-01  0.000e+00  1.000e+01 ( 1.000e+00)
526        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
527        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
524   Normalization:  1.123e+00  2.282e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 3.35
Ra Dec: 162.467 14.483
Photon Index (Fixed Index): 2.59 +/- 0.00
Photon Flux (Fixed Index): 1.12e-07 +/- 7.27e-08
Energy Flux (Fixed Index): 2.96e-05 +/- 1.92e-05

TS (Fixed Index): 3.35
Ra Dec: 162.467 14.483
Photon Flux Upper Limit: 2.47e-07 ph cm-2 s-1
Energy Flux Upper Limit: 1.93e-02 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/96130/likelihoodResults_683078401_683337601_4FGL_J1049.8+1429_daily_bin1712.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) = 6879.84026059
delta logL = 1.21886724982

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6879.82154926
delta logL = 1.2375785772

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    7.8467       1.0000          .0000       .10000E+07
     2 'Index     '    3.7404       1.0000          .0000       10.000    
     3 'Normalizat'    1.0024       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.7373       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5280E+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=   6879.822     FROM MIGRAD    STATUS=CONVERGED     82 CALLS      282 TOTAL
                     EDM=   .19E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     7.8450        15.129        .10309E-04   -.11828E-01
   2  Index         3.7406        1.3814        .49174E-02   -.30067E-03
   3  Normalizat    1.0026        .27325        .33053E-03   -.78454E-03
   4  Prefactor     1.7371        .25844        .25458E-03   -.10071E-02
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 7.84495
  Index      = 3.74058
  Normalizat = 1.00259
  Prefactor  = 1.73714
 **********
 **   18 **HESSE 
 **********

 FCN=   6879.822     FROM HESSE     STATUS=OK            25 CALLS      307 TOTAL
                     EDM=   .17E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     7.8450        10.012        .41236E-06   -1.5652    
   2  Index         3.7406        .91986        .19669E-03   -.25463    
   3  Normalizat    1.0026        .27225        .66105E-04   -.92944    
   4  Prefactor     1.7371        .25593        .50916E-04   -.71097    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.65191e-09
Minuit parameter uncertainties:
  1  10.0124
  2  0.925496
  3  0.272624
  4  0.256129
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/96130': 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) = 6879.82154895
delta logL = 1.23757888432

Extracting fit parameters...

4FGL J1049.8+1429
   Spectrum: PowerLaw
221    Prefactor:  7.845e+00  1.001e+01  0.000e+00  1.000e+06 ( 1.000e-12)
222        Index:  3.741e+00  9.255e-01  0.000e+00  1.000e+01 (-1.000e+00)
223        Scale:  5.785e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
525    Prefactor:  1.737e+00  2.561e-01  0.000e+00  1.000e+01 ( 1.000e+00)
526        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
527        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
524   Normalization:  1.003e+00  2.726e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 6.32
Ra Dec: 162.467 14.483
Photon Index (Free Index): 3.74 +/- 0.93
Photon Flux (Free Index): 2.04e-07 +/- 1.03e-07
Energy Flux (Free Index): 3.21e-05 +/- 1.61e-05

Creating a high resolution counts map...
INFO: Auto-setting vmin to -2.500e-04 [aplpy.core]
INFO: Auto-setting vmax to  2.775e-03 [aplpy.core]
Saving /scratch/kocevski/96130/cmap_HighResolution_683078401_683337601_4FGL_J1049.8+1429_daily_bin1712.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.93e-02', comment='SUCCESS', photon_flux='1.12e-07', energy_flux2='3.21e-05', photon_flux_error='7.27e-08', dlogl='1.24e+00', energy_flux='2.96e-05', photon_flux2='2.04e-07', job_status='DONE', time_completed='2022-09-16 15:43:20.853183', photon_index_error2='0.93', photon_index2='3.74', ts='3.35', fit_tolerance='1e-08', GAL='1.65', photon_index_error='0.00', photon_flux_upper_limit='2.47e-07', energy_flux_error2='1.61e-05', EG='1.12', time_epoch_completed='1663368200.85', return_code='0', job_id='96130', GAL2='1.74', EG2='1.00', return_code2='0', energy_flux_error='1.92e-05', photon_flux_error2='1.03e-07', ts2='6.32', photon_index='2.59' WHERE bin_id='1712' AND source_name='4FGL J1049.8+1429' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Fri Sep 16 15:43:20 PDT 2022


------------------------------------------------------------
Sender: LSF System <lsf@bullet0149>
Subject: Job 96130: <4FGL_J1049.8+1429_daily_bin1712> in cluster <slac> Done

Job <4FGL_J1049.8+1429_daily_bin1712> was submitted from host <rhel6-64f> by user <kocevski> in cluster <slac> at Fri Sep 16 15:30:19 2022
Job was executed on host(s) <bullet0149>, in queue <medium>, as user <kocevski> in cluster <slac> at Fri Sep 16 15:31:09 2022
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Fri Sep 16 15:31:09 2022
Terminated at Fri Sep 16 15:43:21 2022
Results reported at Fri Sep 16 15:43:21 2022

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1049.8+1429_daily_bin1712 162.467 14.4835 683078401 683337601 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J1049.8+1429 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   581.00 sec.
    Max Memory :                                 1093 MB
    Average Memory :                             277.38 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   732 sec.
    Turnaround time :                            782 sec.

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

