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


Performing analysis on: 4FGL_J1049.8+1429_daily_bin1718
RA = 162.467, Dec = 14.4835
tmin = 684633601, tmax = 684892801
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='96137', job_status='RUN', time_executed='2022-09-16 15:33:38.443023', time_epoch_executed='1663367618.44' WHERE source_name='4FGL J1049.8+1429' and cadence='daily' and bin_id='1718'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/96137

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/96137/ft1_4FGL_J1049.8+1429_daily_bin1718.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/96137/ft2_4FGL_J1049.8+1429_daily_bin1718.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/96137/ft1_4FGL_J1049.8+1429_daily_bin1718.fits outfile=/scratch/kocevski/96137/ft1_filteredMKT_4FGL_J1049.8+1429_daily_bin1718.fits ra=162.467 dec=14.4835 rad=12.0 tmin=684633601.0 tmax=684892801.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.22
user 2.99
sys 0.19

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/96137/ft2_4FGL_J1049.8+1429_daily_bin1718.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/96137/ft1_filteredMKT_4FGL_J1049.8+1429_daily_bin1718.fits evtable="EVENTS" outfile="/scratch/kocevski/96137/ft1_filtered_4FGL_J1049.8+1429_daily_bin1718.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.49
user 0.34
sys 0.14

Number of photons that the gtmktime cut: 129

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/96137/ft1_filtered_4FGL_J1049.8+1429_daily_bin1718.fits" evtable="EVENTS" scfile=/scratch/kocevski/96137/ft2_4FGL_J1049.8+1429_daily_bin1718.fits sctable="SC_DATA" outfile=/scratch/kocevski/96137/ltcube_684633601_684892801_4FGL_J1049.8+1429_daily_bin1718.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/96137/ft2_4FGL_J1049.8+1429_daily_bin1718.fits
.....................!
real 15.73
user 15.24
sys 0.36

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/96137/ft1_filtered_4FGL_J1049.8+1429_daily_bin1718.fits evtable="EVENTS" scfile=/scratch/kocevski/96137/ft2_4FGL_J1049.8+1429_daily_bin1718.fits sctable="SC_DATA" expcube=/scratch/kocevski/96137/ltcube_684633601_684892801_4FGL_J1049.8+1429_daily_bin1718.fits outfile=/scratch/kocevski/96137/expmap_684633601_684892801_4FGL_J1049.8+1429_daily_bin1718.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/96137/ltcube_684633601_684892801_4FGL_J1049.8+1429_daily_bin1718.fits
.....................!
real 194.22
user 187.65
sys 5.88

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/96137/ft1_filtered_4FGL_J1049.8+1429_daily_bin1718.fits scfile=/scratch/kocevski/96137/ft2_4FGL_J1049.8+1429_daily_bin1718.fits outfile=/scratch/kocevski/96137/cmap_684633601_684892801_4FGL_J1049.8+1429_daily_bin1718.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.55
user 0.38
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/96137/ft1_filtered_4FGL_J1049.8+1429_daily_bin1718.fits scfile=/scratch/kocevski/96137/ft2_4FGL_J1049.8+1429_daily_bin1718.fits outfile=/scratch/kocevski/96137/cmap_HighResolution_684633601_684892801_4FGL_J1049.8+1429_daily_bin1718.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.55
user 0.40
sys 0.14

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

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/96137/ft1_filtered_4FGL_J1049.8+1429_daily_bin1718.fits', '/scratch/kocevski/96137/ft2_4FGL_J1049.8+1429_daily_bin1718.fits', expMap='/scratch/kocevski/96137/expmap_684633601_684892801_4FGL_J1049.8+1429_daily_bin1718.fits', expCube='/scratch/kocevski/96137/ltcube_684633601_684892801_4FGL_J1049.8+1429_daily_bin1718.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/96137/Model_4FGL_J1049.8+1429_daily_bin1718.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/96137/ft1_filtered_4FGL_J1049.8+1429_daily_bin1718.fits
Spacecraft file(s): /scratch/kocevski/96137/ft2_4FGL_J1049.8+1429_daily_bin1718.fits
Exposure map: /scratch/kocevski/96137/expmap_684633601_684892801_4FGL_J1049.8+1429_daily_bin1718.fits
Exposure cube: /scratch/kocevski/96137/ltcube_684633601_684892801_4FGL_J1049.8+1429_daily_bin1718.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/96137/Model_4FGL_J1049.8+1429_daily_bin1718.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) = 1550.94981565

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .12914E-01   1.0000          .0000       .10000E+07
     2 'Prefactor '    .14141E-02   1.0000          .0000       .10000E+07
     3 'Prefactor '    .30333E-01   1.0000          .0000       .10000E+07
     4 'Prefactor '    .12177E-02   1.0000          .0000       .10000E+07
     5 'Prefactor '    26.869       1.0000          .0000       .10000E+07
     6 'Prefactor '    .10030E-04   1.0000          .0000       .10000E+07
     7 'Prefactor '    .13341E-04   1.0000          .0000       .10000E+07
     8 'Prefactor '    .88311E-04   1.0000          .0000       .10000E+07
     9 'Prefactor '    4.3908       1.0000          .0000       .10000E+07
    10 'Prefactor '    7.0161       1.0000          .0000       .10000E+07
    11 'Prefactor '    .67871E-05   1.0000          .0000       .10000E+07
    12 'Prefactor '    .89399E-02   1.0000          .0000       .10000E+07
    13 'norm      '    .20134E-04   1.0000          .0000       .10000E+07
    14 'Prefactor '    136.95       1.0000          .0000       .10000E+07
    15 'Prefactor '    .11201E-01   1.0000          .0000       .10000E+07
    16 'norm      '    .13580E-01   1.0000          .0000       .10000E+07
    17 'Prefactor '    .13447       1.0000          .0000       .10000E+07
    18 'Normalizat'    1.0445       1.0000         .10000E-01   10.000    
    19 'Prefactor '    1.1819       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=   1550.847     FROM MIGRAD    STATUS=CONVERGED    181 CALLS     1428 TOTAL
                     EDM=   .48E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .5%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10059E-06    25.717       -.19138E-06** at limit **
   2  Prefactor     .37303E-07    176.44        .79729E-06** at limit **
   3  Prefactor     .55511E-10    49.071        .14283E-06** at limit **
   4  Prefactor     .23898E-06    16.807       -.14115E-06** at limit **
   5  Prefactor     28.266        22.246       -.18861E-06    .48545E-01
   6  Prefactor      .0000        3.3640       -.18656E-07** at limit **
   7  Prefactor      .0000        2.5829       -.48105E-07** at limit **
   8  Prefactor     .79420E-06    16.610        .12212E-06** at limit **
   9  Prefactor     3.5137        32.331       -.83165E-07   -.30709E-01
  10  Prefactor     6.7759        16.950        .47491E-07    .52456E-01
  11  Prefactor     .65892E-07    16.265        .35968E-06** at limit **
  12  Prefactor     .19429E-08    21.588       -.62211E-07** at limit **
  13  norm           .0000        2.0916       -.70790E-07** at limit **
  14  Prefactor     147.50        140.52       -.46172E-06   -.12652E-01
  15  Prefactor     .91038E-08    62.632        .67022E-06** at limit **
  16  norm          .54567E-07    84.734       -.18791E-06** at limit **
  17  Prefactor     .18506E-05    104.32        .90353E-06** at limit **
  18  Normalizat    1.0379        .55486        .75456E-05    .45554E-04
  19  Prefactor     1.1818        .48275       -.20834E-05    .43059E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 1.00586e-07
  Prefactor  = 3.73035e-08
  Prefactor  = 5.55112e-11
  Prefactor  = 2.38976e-07
  Prefactor  = 28.2662
  Prefactor  = 0
  Prefactor  = 0
  Prefactor  = 7.94198e-07
  Prefactor  = 3.51366
  Prefactor  = 6.77586
  Prefactor  = 6.58917e-08
  Prefactor  = 1.94289e-09
  norm       = 0
  Prefactor  = 147.5
  Prefactor  = 9.10383e-09
  norm       = 5.45675e-08
  Prefactor  = 1.85058e-06
  Normalizat = 1.03794
  Prefactor  = 1.18182
 **********
 **   18 **HESSE 
 **********

 FCN=   1550.847     FROM HESSE     STATUS=OK           296 CALLS     1724 TOTAL
                     EDM=   .41E-06    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10059E-06    26.025        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .37303E-07    176.77        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .55511E-10    49.096        .16433E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .23898E-06    17.417        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     28.266        26.898        .19295E-03   -1.5602    
   6  Prefactor      .0000        3.3660        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor      .0000        2.5836        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .79420E-06    18.619        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     3.5137        50.284        .48040E-03   -1.5670    
  10  Prefactor     6.7759        20.422        .37850E-03   -1.5656    
  11  Prefactor     .65892E-07    16.440        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .19429E-08    21.596        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm           .0000        2.0839        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     147.50        140.65        .85457E-04   -1.5465    
  15  Prefactor     .91038E-08    62.677        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          .54567E-07    84.737        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .18506E-05    334.67        .13083E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Normalizat    1.0379        .44610        .66721E-01   -.91770    
  19  Prefactor     1.1818        .38361        .56355E-01   -.86893    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.07699e-07
Minuit parameter uncertainties:
  1  0.0032357
  2  0.00513512
  3  9.24731e-05
  4  0.00408035
  5  26.8977
  6  1.22565e-05
  7  6.25274e-06
  8  0.00769092
  9  26.5844
  10  20.4219
  11  0.0020813
  12  0.000412546
  13  8.84531e-06
  14  140.655
  15  0.00151101
  16  0.00430171
  17  0.0497753
  18  0.447718
  19  0.384523
Done.

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

Extracting fit parameters...

4FGL J1049.8+1429
   Spectrum: PowerLaw
221    Prefactor:  7.942e-07  7.691e-03  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.182e+00  3.845e-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.038e+00  4.477e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/96137/likelihoodResults_684633601_684892801_4FGL_J1049.8+1429_daily_bin1718.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) = 1550.84697603
delta logL = -6.20437474481e-05

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 1550.84692472
delta logL = -1.07378180019e-05

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .97632E-04   1.0000          .0000       .10000E+07
     2 'Index     '    1.4238       1.0000          .0000       10.000    
     3 'Normalizat'    1.0382       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.1823       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=   1550.847     FROM MIGRAD    STATUS=CONVERGED     33 CALLS      234 TOTAL
                     EDM=   .11E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.2%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .22260E-07    16.695        .43805E-05** at limit **
   2  Index         1.9683        5.5916        .22760E-03   -.15184E-08
   3  Normalizat    1.0379        .52975        .11614E-03    .23112E-03
   4  Prefactor     1.1818        .47567       -.89549E-04    .14618E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 2.226e-08
  Index      = 1.96827
  Normalizat = 1.03795
  Prefactor  = 1.18182
 **********
 **   18 **HESSE 
 **********

 FCN=   1550.847     FROM HESSE     STATUS=NOT POSDEF    39 CALLS      273 TOTAL
                     EDM=   .12E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .22260E-07    11.553        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         1.9683        5.8704        .50000       -.65146    
   3  Normalizat    1.0379        .86869E-02    .66722E-01   -.91770    
   4  Prefactor     1.1818        .78005E-02    .56355E-01   -.86893    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 1.19248e-09
Minuit parameter uncertainties:
  1  0.00101445
  2  10401.4
  3  0.00868695
  4  0.00780046
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/96137': 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): 102
logL (Free Index) = 1550.84691397
delta logL = 2.03810941457e-08

Extracting fit parameters...

4FGL J1049.8+1429
   Spectrum: PowerLaw
221    Prefactor:  2.226e-08  1.014e-03  0.000e+00  1.000e+06 ( 1.000e-12)
222        Index:  1.968e+00  1.040e+04  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.182e+00  7.800e-03  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.038e+00  8.687e-03  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
Ra Dec: 162.467 14.483

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/96137/cmap_HighResolution_684633601_684892801_4FGL_J1049.8+1429_daily_bin1718.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='2.61e-02', job_status='DONE', photon_flux_upper_limit='3.33e-07', time_completed='2022-09-16 15:39:55.154996', job_id='96137', GAL2='1.18', fit_tolerance='1e-08', EG2='1.04', EG='1.04', time_epoch_completed='1663367995.16', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.18', dlogl='2.04e-08', ts2='-0.00', photon_index_error='0.00', photon_index='2.59' WHERE bin_id='1718' AND source_name='4FGL J1049.8+1429' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Fri Sep 16 15:39:55 PDT 2022


------------------------------------------------------------
Sender: LSF System <lsf@bullet0162>
Subject: Job 96137: <4FGL_J1049.8+1429_daily_bin1718> in cluster <slac> Done

Job <4FGL_J1049.8+1429_daily_bin1718> was submitted from host <rhel6-64f> by user <kocevski> in cluster <slac> at Fri Sep 16 15:30:20 2022
Job was executed on host(s) <bullet0162>, in queue <medium>, as user <kocevski> in cluster <slac> at Fri Sep 16 15:31:12 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:12 2022
Terminated at Fri Sep 16 15:39:56 2022
Results reported at Fri Sep 16 15:39:56 2022

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1049.8+1429_daily_bin1718 162.467 14.4835 684633601 684892801 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 :                                   378.48 sec.
    Max Memory :                                 1255 MB
    Average Memory :                             255.83 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   523 sec.
    Turnaround time :                            576 sec.

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

