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


Performing analysis on: 4FGL_J1049.8+1429_daily_bin1780
RA = 162.467, Dec = 14.4835
tmin = 700704001, tmax = 700963201
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='59956', job_status='RUN', time_executed='2023-03-20 00:43:54.501269', time_epoch_executed='1679298234.5' WHERE source_name='4FGL J1049.8+1429' and cadence='daily' and bin_id='1780'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/59956

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/59956/ft1_4FGL_J1049.8+1429_daily_bin1780.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/59956/ft2_4FGL_J1049.8+1429_daily_bin1780.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/59956/ft1_4FGL_J1049.8+1429_daily_bin1780.fits outfile=/scratch/kocevski/59956/ft1_filteredMKT_4FGL_J1049.8+1429_daily_bin1780.fits ra=162.467 dec=14.4835 rad=12.0 tmin=700704001.0 tmax=700963201.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.10
user 3.85
sys 0.22

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/59956/ft2_4FGL_J1049.8+1429_daily_bin1780.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/59956/ft1_filteredMKT_4FGL_J1049.8+1429_daily_bin1780.fits evtable="EVENTS" outfile="/scratch/kocevski/59956/ft1_filtered_4FGL_J1049.8+1429_daily_bin1780.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.32
sys 0.16

Number of photons that the gtmktime cut: 344

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/59956/ft1_filtered_4FGL_J1049.8+1429_daily_bin1780.fits evtable="EVENTS" scfile=/scratch/kocevski/59956/ft2_4FGL_J1049.8+1429_daily_bin1780.fits sctable="SC_DATA" expcube=/scratch/kocevski/59956/ltcube_700704001_700963201_4FGL_J1049.8+1429_daily_bin1780.fits outfile=/scratch/kocevski/59956/expmap_700704001_700963201_4FGL_J1049.8+1429_daily_bin1780.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/59956/ltcube_700704001_700963201_4FGL_J1049.8+1429_daily_bin1780.fits
.....................!
real 193.24
user 186.63
sys 5.83

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/59956/ft1_filtered_4FGL_J1049.8+1429_daily_bin1780.fits scfile=/scratch/kocevski/59956/ft2_4FGL_J1049.8+1429_daily_bin1780.fits outfile=/scratch/kocevski/59956/cmap_700704001_700963201_4FGL_J1049.8+1429_daily_bin1780.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.54
user 0.37
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/59956/ft1_filtered_4FGL_J1049.8+1429_daily_bin1780.fits scfile=/scratch/kocevski/59956/ft2_4FGL_J1049.8+1429_daily_bin1780.fits outfile=/scratch/kocevski/59956/cmap_HighResolution_700704001_700963201_4FGL_J1049.8+1429_daily_bin1780.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.38
sys 0.16

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .14311       1.0000          .0000       .10000E+07
     2 'Prefactor '    63.158       1.0000          .0000       .10000E+07
     3 'Prefactor '    .65722       1.0000          .0000       .10000E+07
     4 'Prefactor '    .34384E-01   1.0000          .0000       .10000E+07
     5 'Prefactor '    .46663E-04   1.0000          .0000       .10000E+07
     6 'Prefactor '    .10655E-03   1.0000          .0000       .10000E+07
     7 'Prefactor '    .49749E-06   1.0000          .0000       .10000E+07
     8 'Prefactor '    11.760       1.0000          .0000       .10000E+07
     9 'Prefactor '    .56498E-02   1.0000          .0000       .10000E+07
    10 'Prefactor '    .31035E-02   1.0000          .0000       .10000E+07
    11 'Prefactor '    6.1703       1.0000          .0000       .10000E+07
    12 'Prefactor '    24.317       1.0000          .0000       .10000E+07
    13 'norm      '    .45242E-07   1.0000          .0000       .10000E+07
    14 'Prefactor '    .35438E-02   1.0000          .0000       .10000E+07
    15 'Prefactor '    .30923E-02   1.0000          .0000       .10000E+07
    16 'norm      '    .36732E-02   1.0000          .0000       .10000E+07
    17 'Prefactor '    .33171E-02   1.0000          .0000       .10000E+07
    18 'Normalizat'    .74688       1.0000         .10000E-01   10.000    
    19 'Prefactor '    1.3041       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=   4060.801     FROM MIGRAD    STATUS=CONVERGED    144 CALLS     1402 TOTAL
                     EDM=   .17E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  3.5%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .55511E-10    32.690       -.35953E-05** at limit **
   2  Prefactor     64.691        23.117       -.42349E-06   -.17894E-01
   3  Prefactor     .17553E-06    144.84        .51536E-05** at limit **
   4  Prefactor      .0000        21.625        .95690E-06** at limit **
   5  Prefactor      .0000        3.2731       -.27437E-06** at limit **
   6  Prefactor     .39468E-07    18.405       -.52619E-05** at limit **
   7  Prefactor      .0000        1.4288        .48676E-06** at limit **
   8  Prefactor     11.826        11.093       -.99564E-07   -.83289E-03
   9  Prefactor     .16653E-09    5.6013       -.16100E-05** at limit **
  10  Prefactor     .64948E-08    83.333        .41062E-05** at limit **
  11  Prefactor     6.1670        12.384        .37133E-05   -.50717E-02
  12  Prefactor     24.583        6.9193       -.45396E-06    .53183E-01
  13  norm           .0000        .68284        .29299E-06** at limit **
  14  Prefactor     .71332E-07    4.8356        .88953E-06** at limit **
  15  Prefactor      .0000        6.4023        .17427E-05** at limit **
  16  norm           .0000        3.4638        .15749E-05** at limit **
  17  Prefactor     .66225E-07    4.8849        .99973E-06** at limit **
  18  Normalizat    .74529        .24975        .37258E-04   -.12880E-03
  19  Prefactor     1.3046        .24032       -.39108E-04   -.13934E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 5.55112e-11
  Prefactor  = 64.691
  Prefactor  = 1.75526e-07
  Prefactor  = 0
  Prefactor  = 0
  Prefactor  = 3.94684e-08
  Prefactor  = 0
  Prefactor  = 11.8262
  Prefactor  = 1.66533e-10
  Prefactor  = 6.4948e-09
  Prefactor  = 6.16697
  Prefactor  = 24.5832
  norm       = 0
  Prefactor  = 7.13318e-08
  Prefactor  = 0
  norm       = 0
  Prefactor  = 6.62248e-08
  Normalizat = 0.745288
  Prefactor  = 1.30459
 **********
 **   18 **HESSE 
 **********

 FCN=   4060.801     FROM HESSE     STATUS=OK           300 CALLS     1702 TOTAL
                     EDM=   .97E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .55511E-10    32.752        .12891E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     64.691        45.916        .12584E-03   -1.5547    
   3  Prefactor     .17553E-06    150.22        .64251E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor      .0000        21.601        .16227E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor      .0000        3.2719        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .39468E-07    18.173        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor      .0000        1.4242        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     11.826        11.071        .29187E-03   -1.5639    
   9  Prefactor     .16653E-09    5.6010        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .64948E-08    108.03        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     6.1670        13.654        .40392E-03   -1.5658    
  12  Prefactor     24.583        23.695        .20283E-03   -1.5609    
  13  norm           .0000        .68024        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .71332E-07    9.9328        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor      .0000        9.4896        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm           .0000        9.2465        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .66225E-07    10.159        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Normalizat    .74529        .21655        .65297E-01   -1.0213    
  19  Prefactor     1.3046        .20534        .50277E-01   -.83171    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 9.6994e-08
Minuit parameter uncertainties:
  1  9.81163e-05
  2  45.9167
  3  0.0102697
  4  8.4732e-06
  5  2.14832e-06
  6  0.00169427
  7  1.14214e-05
  8  11.0709
  9  6.22737e-05
  10  0.00167207
  11  13.6543
  12  23.6949
  13  1.29824e-06
  14  0.00168331
  15  2.12757e-05
  16  2.53046e-05
  17  0.0016403
  18  0.216801
  19  0.205465
Done.

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

Extracting fit parameters...

4FGL J1049.8+1429
   Spectrum: PowerLaw
221    Prefactor:  1.183e+01  1.107e+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.305e+00  2.055e-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:  7.453e-01  2.168e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 1.60
Ra Dec: 162.467 14.483
Photon Index (Fixed Index): 2.59 +/- 0.00
Photon Flux (Fixed Index): 7.04e-08 +/- 6.58e-08
Energy Flux (Fixed Index): 1.86e-05 +/- 1.74e-05

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

Saving results to:
/scratch/kocevski/59956/likelihoodResults_700704001_700963201_4FGL_J1049.8+1429_daily_bin1780.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) = 4060.3442676
delta logL = 0.456304129369

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 4060.02259776
delta logL = 0.777973969051

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .19569E-01   1.0000          .0000       .10000E+07
     2 'Index     '    7.5331       1.0000          .0000       10.000    
     3 'Normalizat'    .62112       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.4121       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.

 FCN=   4060.023     FROM MIGRAD    STATUS=CONVERGED     58 CALLS      325 TOTAL
                     EDM=   .16E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .19538E-01    .22422        .12726E-03** at limit **
   2  Index         7.5354        3.3650        .12519        .82417E-04
   3  Normalizat    .62059        .68590E-01    .71022E-01    .11776E-04
   4  Prefactor     1.4123        .68060E-01    .48698E-01   -.19446E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0195377
  Index      = 7.53538
  Normalizat = 0.62059
  Prefactor  = 1.4123
 **********
 **   18 **HESSE 
 **********

 FCN=   4060.023     FROM HESSE     STATUS=NOT POSDEF    33 CALLS      358 TOTAL
                     EDM=   .35E-11    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .19538E-01    .39783        .55357E-06   -1.5705    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         7.5354        7.9757        .52361E-02    .53179    
   3  Normalizat    .62059        .22812        .31437E-03   -1.0712    
   4  Prefactor     1.4123        .21998        .21527E-03   -.80026    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 3.4735e-12
Minuit parameter uncertainties:
  1  0.176326
  2  5.53306
  3  0.228467
  4  0.220127
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/59956': 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) = 4060.02259091
delta logL = 0.777980817875

Extracting fit parameters...

4FGL J1049.8+1429
   Spectrum: PowerLaw
221    Prefactor:  1.954e-02  1.763e-01  0.000e+00  1.000e+06 ( 1.000e-12)
222        Index:  7.535e+00  5.533e+00  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.412e+00  2.201e-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:  6.206e-01  2.285e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 3.59
Ra Dec: 162.467 14.483
Photon Index (Free Index): 7.54 +/- 5.53
Photon Flux (Free Index): 1.69e-07 +/- 1.10e-07
Energy Flux (Free Index): 1.98e-05 +/- 1.39e-05

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/59956/cmap_HighResolution_700704001_700963201_4FGL_J1049.8+1429_daily_bin1780.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.63e-02', comment='SUCCESS', photon_flux='7.04e-08', energy_flux2='1.98e-05', photon_flux_error='6.58e-08', dlogl='7.78e-01', energy_flux='1.86e-05', photon_flux2='1.69e-07', job_status='DONE', time_completed='2023-03-20 00:51:28.761174', photon_index_error2='5.53', photon_index2='7.54', ts='1.60', fit_tolerance='1e-08', GAL='1.30', photon_index_error='0.00', photon_flux_upper_limit='2.09e-07', energy_flux_error2='1.39e-05', EG='0.75', time_epoch_completed='1679298688.76', return_code='0', job_id='59956', GAL2='1.41', EG2='0.62', return_code2='102', energy_flux_error='1.74e-05', photon_flux_error2='1.10e-07', ts2='3.59', photon_index='2.59' WHERE bin_id='1780' AND source_name='4FGL J1049.8+1429' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Mon Mar 20 00:51:28 PDT 2023


------------------------------------------------------------
Sender: LSF System <lsf@bullet0223>
Subject: Job 59956: <4FGL_J1049.8+1429_daily_bin1780> in cluster <slac> Done

Job <4FGL_J1049.8+1429_daily_bin1780> was submitted from host <rhel6-64p> by user <kocevski> in cluster <slac> at Mon Mar 20 00:40:14 2023
Job was executed on host(s) <bullet0223>, in queue <medium>, as user <kocevski> in cluster <slac> at Mon Mar 20 00:40:16 2023
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Mon Mar 20 00:40:16 2023
Terminated at Mon Mar 20 00:51:29 2023
Results reported at Mon Mar 20 00:51:29 2023

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1049.8+1429_daily_bin1780 162.467 14.4835 700704001 700963201 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 :                                   455.53 sec.
    Max Memory :                                 1093 MB
    Average Memory :                             221.82 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   673 sec.
    Turnaround time :                            675 sec.

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

