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


Performing analysis on: 4FGL_J1049.8+1429_weekly_bin748
RA = 162.467, Dec = 14.4835
tmin = 691372801, tmax = 691977601
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='6648', job_status='RUN', time_executed='2022-12-06 00:50:43.239326', time_epoch_executed='1670316643.24' WHERE source_name='4FGL J1049.8+1429' and cadence='weekly' and bin_id='748'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/6648

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

Retrieving the FT1 file...

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

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

Retrieving 107 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/6648/ft1_4FGL_J1049.8+1429_weekly_bin748.fits


Retrieving the FT1 file...

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

Retrieving 107 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/6648/ft2_4FGL_J1049.8+1429_weekly_bin748.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/6648/ft1_4FGL_J1049.8+1429_weekly_bin748.fits outfile=/scratch/kocevski/6648/ft1_filteredMKT_4FGL_J1049.8+1429_weekly_bin748.fits ra=162.467 dec=14.4835 rad=12.0 tmin=691372801.0 tmax=691977601.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 5.46
user 5.19
sys 0.23

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

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

Number of photons that the gtmktime cut: 1809

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/6648/ft1_filtered_4FGL_J1049.8+1429_weekly_bin748.fits" evtable="EVENTS" scfile=/scratch/kocevski/6648/ft2_4FGL_J1049.8+1429_weekly_bin748.fits sctable="SC_DATA" outfile=/scratch/kocevski/6648/ltcube_691372801_691977601_4FGL_J1049.8+1429_weekly_bin748.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/6648/ft2_4FGL_J1049.8+1429_weekly_bin748.fits
.....................!
real 27.63
user 27.24
sys 0.32

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/6648/ft1_filtered_4FGL_J1049.8+1429_weekly_bin748.fits evtable="EVENTS" scfile=/scratch/kocevski/6648/ft2_4FGL_J1049.8+1429_weekly_bin748.fits sctable="SC_DATA" expcube=/scratch/kocevski/6648/ltcube_691372801_691977601_4FGL_J1049.8+1429_weekly_bin748.fits outfile=/scratch/kocevski/6648/expmap_691372801_691977601_4FGL_J1049.8+1429_weekly_bin748.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/6648/ltcube_691372801_691977601_4FGL_J1049.8+1429_weekly_bin748.fits
.....................!
real 190.58
user 185.88
sys 4.28

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/6648/ft1_filtered_4FGL_J1049.8+1429_weekly_bin748.fits scfile=/scratch/kocevski/6648/ft2_4FGL_J1049.8+1429_weekly_bin748.fits outfile=/scratch/kocevski/6648/cmap_691372801_691977601_4FGL_J1049.8+1429_weekly_bin748.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.58
user 0.41
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/6648/ft1_filtered_4FGL_J1049.8+1429_weekly_bin748.fits scfile=/scratch/kocevski/6648/ft2_4FGL_J1049.8+1429_weekly_bin748.fits outfile=/scratch/kocevski/6648/cmap_HighResolution_691372801_691977601_4FGL_J1049.8+1429_weekly_bin748.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/6648/ft1_filtered_4FGL_J1049.8+1429_weekly_bin748.fits evtable="EVENTS" scfile=/scratch/kocevski/6648/ft2_4FGL_J1049.8+1429_weekly_bin748.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/6648/Model_4FGL_J1049.8+1429_weekly_bin748.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/6648/ft1_filtered_4FGL_J1049.8+1429_weekly_bin748.fits.....................!
real 155.89
user 154.21
sys 1.30

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10257E-03   1.0000          .0000       .10000E+07
     2 'Prefactor '    10.458       1.0000          .0000       .10000E+07
     3 'Prefactor '    .43521E-07   1.0000          .0000       .10000E+07
     4 'Prefactor '    1.7056       1.0000          .0000       .10000E+07
     5 'Prefactor '    2.3675       1.0000          .0000       .10000E+07
     6 'Prefactor '    3.2312       1.0000          .0000       .10000E+07
     7 'Prefactor '    .14744E-06   1.0000          .0000       .10000E+07
     8 'Prefactor '    11.140       1.0000          .0000       .10000E+07
     9 'Prefactor '    .59357E-04   1.0000          .0000       .10000E+07
    10 'Prefactor '    7.9947       1.0000          .0000       .10000E+07
    11 'Prefactor '    .60206E-04   1.0000          .0000       .10000E+07
    12 'Prefactor '    .10810E-02   1.0000          .0000       .10000E+07
    13 'norm      '    .67934       1.0000          .0000       .10000E+07
    14 'Prefactor '    .37666E-04   1.0000          .0000       .10000E+07
    15 'Prefactor '    3.7107       1.0000          .0000       .10000E+07
    16 'norm      '    .59328E-04   1.0000          .0000       .10000E+07
    17 'Prefactor '    .62018E-04   1.0000          .0000       .10000E+07
    18 'Normalizat'    .90733       1.0000         .10000E-01   10.000    
    19 'Prefactor '    1.1900       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=   20186.26     FROM MIGRAD    STATUS=CONVERGED    133 CALLS     1152 TOTAL
                     EDM=   .59E-12  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .7%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .11102E-09    12.990        .12540E-06** at limit **
   2  Prefactor     9.7599        3.4414        .15441E-07    .25667E-02
   3  Prefactor      .0000        7.4786       -.37354E-07** at limit **
   4  Prefactor     1.6935        3.5480       -.66006E-07    .56923E-04
   5  Prefactor     2.3764        3.2509       -.27829E-07    .29746E-04
   6  Prefactor     3.2297        1.5931       -.22650E-09   -.17138E-03
   7  Prefactor      .0000        .43025        .21591E-08** at limit **
   8  Prefactor     11.133        3.9829        .95596E-08   -.40755E-04
   9  Prefactor      .0000        1.5781       -.17580E-07** at limit **
  10  Prefactor     7.9942        4.5780        .80329E-07   -.19771E-03
  11  Prefactor      .0000        4.5350        .47086E-07** at limit **
  12  Prefactor      .0000        5.7368        .19003E-07** at limit **
  13  norm          .67896        .43759       -.77302E-08    .25853E-03
  14  Prefactor      .0000        2.6965        .43777E-07** at limit **
  15  Prefactor     3.7265        3.1307       -.19194E-07    .98124E-04
  16  norm           .0000        9.6386        .31184E-07** at limit **
  17  Prefactor      .0000        1.6920       -.26471E-07** at limit **
  18  Normalizat    .90749        .11301        .47003E-06   -.14538E-04
  19  Prefactor     1.1902        .10860       -.13157E-07   -.12269E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 1.11022e-10
  Prefactor  = 9.75989
  Prefactor  = 0
  Prefactor  = 1.69345
  Prefactor  = 2.3764
  Prefactor  = 3.22973
  Prefactor  = 0
  Prefactor  = 11.1332
  Prefactor  = 0
  Prefactor  = 7.99425
  Prefactor  = 0
  Prefactor  = 0
  norm       = 0.678964
  Prefactor  = 0
  Prefactor  = 3.72652
  norm       = 0
  Prefactor  = 0
  Normalizat = 0.90749
  Prefactor  = 1.19016
 **********
 **   18 **HESSE 
 **********

 FCN=   20186.26     FROM HESSE     STATUS=OK           304 CALLS     1456 TOTAL
                     EDM=   .34E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .11102E-09    13.443        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     9.7599        16.866        .30958E-03   -1.5645    
   3  Prefactor      .0000        7.4785        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     1.6935        3.5889        .80489E-03   -1.5682    
   5  Prefactor     2.3764        3.2696        .66568E-03   -1.5677    
   6  Prefactor     3.2297        1.5969        .56327E-03   -1.5672    
   7  Prefactor      .0000        .42638        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     11.133        3.9755        .29992E-03   -1.5641    
   9  Prefactor      .0000        1.5858        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     7.9942        4.5785        .35437E-03   -1.5651    
  11  Prefactor      .0000        4.5248        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor      .0000        5.7135        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          .67896        .44060        .62401E-03   -1.5691    
  14  Prefactor      .0000        2.7020        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     3.7265        3.1373        .52399E-03   -1.5669    
  16  norm           .0000        9.4575        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor      .0000        1.7023        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Normalizat    .90749        .96896E-01    .44995E-01   -.96197    
  19  Prefactor     1.1902        .92871E-01    .51867E-01   -.86635    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.42431e-08
Minuit parameter uncertainties:
  1  7.89016e-05
  2  16.8659
  3  1.92609e-06
  4  3.58895
  5  3.2696
  6  1.5969
  7  1.22786e-07
  8  3.97551
  9  9.28673e-07
  10  4.57848
  11  9.41004e-07
  12  1.09047e-06
  13  0.440599
  14  5.86435e-07
  15  3.13735
  16  1.23643e-05
  17  4.7446e-07
  18  0.0969141
  19  0.0928838
Done.

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

Extracting fit parameters...

4FGL J1049.8+1429
   Spectrum: PowerLaw
221    Prefactor:  1.113e+01  3.976e+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

GAL_V02
   Spectrum: PowerLaw
525    Prefactor:  1.190e+00  9.288e-02  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:  9.075e-01  9.691e-02  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 13.81
Ra Dec: 162.467 14.483
Photon Index (Fixed Index): 2.59 +/- 0.00
Photon Flux (Fixed Index): 6.63e-08 +/- 2.36e-08
Energy Flux (Fixed Index): 1.75e-05 +/- 6.25e-06

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) = 20186.2444864
delta logL = 0.0118949517964

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 20186.2383637
delta logL = 0.0180177150796

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    11.629       1.0000          .0000       .10000E+07
     2 'Index     '    2.5123       1.0000          .0000       10.000    
     3 'Normalizat'    .91254       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.1863       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=   20186.24     FROM MIGRAD    STATUS=CONVERGED     56 CALLS      221 TOTAL
                     EDM=   .12E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     11.629        58.015        .29352E-03    .17514E-01
   2  Index         2.5123        3.1829        .17390        .19107E-03
   3  Normalizat    .91254        .59296E-01    .45062E-01    .48305E-04
   4  Prefactor     1.1863        .47154E-01    .51937E-01    .11669E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 11.6287
  Index      = 2.51234
  Normalizat = 0.912545
  Prefactor  = 1.18632
 **********
 **   18 **HESSE 
 **********

 FCN=   20186.24     FROM HESSE     STATUS=OK            33 CALLS      254 TOTAL
                     EDM=   .42E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     11.629        4.9736        .11741E-04   -1.5640    
   2  Index         2.5123        .42900        .89013E-02   -.52075    
   3  Normalizat    .91254        .11246        .25843E-03   -.96021    
   4  Prefactor     1.1863        .11021        .22962E-03   -.86753    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.16083e-10
Minuit parameter uncertainties:
  1  4.97362
  2  0.429707
  3  0.112486
  4  0.110227
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/6648': 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) = 20186.2383637
delta logL = 0.018017715367

Extracting fit parameters...

4FGL J1049.8+1429
   Spectrum: PowerLaw
221    Prefactor:  1.163e+01  4.974e+00  0.000e+00  1.000e+06 ( 1.000e-12)
222        Index:  2.512e+00  4.297e-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.186e+00  1.102e-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:  9.125e-01  1.125e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 13.81
Ra Dec: 162.467 14.483
Photon Index (Free Index): 2.51 +/- 0.43
Photon Flux (Free Index): 6.33e-08 +/- 2.74e-08
Energy Flux (Free Index): 1.81e-05 +/- 7.71e-06

Creating a high resolution counts map...
INFO: Auto-setting vmin to -1.000e-01 [aplpy.core]
INFO: Auto-setting vmax to  1.110e+00 [aplpy.core]
Saving /scratch/kocevski/6648/cmap_HighResolution_691372801_691977601_4FGL_J1049.8+1429_weekly_bin748.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='6.63e-08', energy_flux2='1.81e-05', photon_flux_error='2.36e-08', dlogl='1.80e-02', energy_flux='1.75e-05', photon_flux2='6.33e-08', job_status='DONE', time_completed='2022-12-06 01:05:24.363208', photon_index_error2='0.43', photon_index2='2.51', ts='13.81', fit_tolerance='1e-08', GAL='1.19', photon_index_error='0.00', energy_flux_error2='7.71e-06', EG='0.91', time_epoch_completed='1670317524.36', return_code='0', job_id='6648', GAL2='1.19', EG2='0.91', return_code2='0', energy_flux_error='6.25e-06', photon_flux_error2='2.74e-08', ts2='13.81', photon_index='2.59' WHERE bin_id='748' AND source_name='4FGL J1049.8+1429' AND cadence='weekly';

Database successfully updated.


Analysis Complete.


Tue Dec  6 01:05:24 PST 2022


------------------------------------------------------------
Sender: LSF System <lsf@bullet0208>
Subject: Job 6648: <4FGL_J1049.8+1429_weekly_bin748> in cluster <slac> Done

Job <4FGL_J1049.8+1429_weekly_bin748> was submitted from host <rhel6-64e> by user <kocevski> in cluster <slac> at Tue Dec  6 00:50:19 2022
Job was executed on host(s) <bullet0208>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Dec  6 00:50:21 2022
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Tue Dec  6 00:50:21 2022
Terminated at Tue Dec  6 01:05:25 2022
Results reported at Tue Dec  6 01:05:25 2022

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1049.8+1429_weekly_bin748 162.467 14.4835 691372801 691977601 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 :                                   882.00 sec.
    Max Memory :                                 1095 MB
    Average Memory :                             337.35 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   903 sec.
    Turnaround time :                            906 sec.

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

