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


Performing analysis on: 4FGL_J1049.8+1429_weekly_bin757
RA = 162.467, Dec = 14.4835
tmin = 696816001, tmax = 697420801
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='261195', job_status='RUN', time_executed='2023-02-07 01:03:04.232756', time_epoch_executed='1675760584.23' WHERE source_name='4FGL J1049.8+1429' and cadence='weekly' and bin_id='757'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/261195

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

Retrieving the FT1 file...

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

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

Retrieving 107 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/261195/ft1_4FGL_J1049.8+1429_weekly_bin757.fits


Retrieving the FT1 file...

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

Retrieving 107 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/261195/ft2_4FGL_J1049.8+1429_weekly_bin757.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/261195/ft1_4FGL_J1049.8+1429_weekly_bin757.fits outfile=/scratch/kocevski/261195/ft1_filteredMKT_4FGL_J1049.8+1429_weekly_bin757.fits ra=162.467 dec=14.4835 rad=12.0 tmin=696816001.0 tmax=697420801.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 7.81
user 7.37
sys 0.31

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

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

Number of photons that the gtmktime cut: 1249

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/261195/ft1_filtered_4FGL_J1049.8+1429_weekly_bin757.fits evtable="EVENTS" scfile=/scratch/kocevski/261195/ft2_4FGL_J1049.8+1429_weekly_bin757.fits sctable="SC_DATA" expcube=/scratch/kocevski/261195/ltcube_696816001_697420801_4FGL_J1049.8+1429_weekly_bin757.fits outfile=/scratch/kocevski/261195/expmap_696816001_697420801_4FGL_J1049.8+1429_weekly_bin757.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/261195/ltcube_696816001_697420801_4FGL_J1049.8+1429_weekly_bin757.fits
.....................!
real 192.27
user 187.39
sys 4.43

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/261195/ft1_filtered_4FGL_J1049.8+1429_weekly_bin757.fits scfile=/scratch/kocevski/261195/ft2_4FGL_J1049.8+1429_weekly_bin757.fits outfile=/scratch/kocevski/261195/cmap_696816001_697420801_4FGL_J1049.8+1429_weekly_bin757.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.61
user 0.41
sys 0.18

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/261195/ft1_filtered_4FGL_J1049.8+1429_weekly_bin757.fits scfile=/scratch/kocevski/261195/ft2_4FGL_J1049.8+1429_weekly_bin757.fits outfile=/scratch/kocevski/261195/cmap_HighResolution_696816001_697420801_4FGL_J1049.8+1429_weekly_bin757.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.61
user 0.44
sys 0.16

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .51278E-02   1.0000          .0000       .10000E+07
     2 'Prefactor '    18.136       1.0000          .0000       .10000E+07
     3 'Prefactor '    .24826E-02   1.0000          .0000       .10000E+07
     4 'Prefactor '    .22450E-04   1.0000          .0000       .10000E+07
     5 'Prefactor '    2.6589       1.0000          .0000       .10000E+07
     6 'Prefactor '    .11102E-09   1.0000          .0000       .10000E+07
     7 'Prefactor '    .79602       1.0000          .0000       .10000E+07
     8 'Prefactor '    25.419       1.0000          .0000       .10000E+07
     9 'Prefactor '    .14742E-05   1.0000          .0000       .10000E+07
    10 'Prefactor '    17.436       1.0000          .0000       .10000E+07
    11 'Prefactor '    .37248E-07   1.0000          .0000       .10000E+07
    12 'Prefactor '    4.5039       1.0000          .0000       .10000E+07
    13 'norm      '    .49960E-09   1.0000          .0000       .10000E+07
    14 'Prefactor '    .15543E-08   1.0000          .0000       .10000E+07
    15 'Prefactor '    3.6179       1.0000          .0000       .10000E+07
    16 'norm      '    .34465       1.0000          .0000       .10000E+07
    17 'Prefactor '    .99233E-04   1.0000          .0000       .10000E+07
    18 'Normalizat'    .72065       1.0000         .10000E-01   10.000    
    19 'Prefactor '    1.3455       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=   14346.35     FROM MIGRAD    STATUS=CONVERGED    132 CALLS     1159 TOTAL
                     EDM=   .12E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.3%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .83267E-09    26.400       -.56741E-06** at limit **
   2  Prefactor     17.967        5.2758       -.52083E-07    .38873E-01
   3  Prefactor     .30531E-08    20.025       -.23792E-06** at limit **
   4  Prefactor     .26590E-07    2.5242        .41526E-07** at limit **
   5  Prefactor     2.6235        4.5810       -.31141E-07    .33444E-04
   6  Prefactor      .0000        .81575        .15490E-08** at limit **
   7  Prefactor     .79608        .79827       -.17550E-07    .10191E-03
   8  Prefactor     25.361        5.9819       -.55245E-08    .71816E-04
   9  Prefactor     .17930E-07    3.3956       -.43693E-07** at limit **
  10  Prefactor     17.433        5.7296       -.96950E-08   -.20838E-02
  11  Prefactor     .55511E-10    2.3236        .22578E-06** at limit **
  12  Prefactor     4.5010        4.0455       -.86441E-09    .10576E-02
  13  norm           .0000        .58613       -.31415E-07** at limit **
  14  Prefactor     .23315E-08    3.9332       -.79289E-07** at limit **
  15  Prefactor     3.6019        3.4875        .41467E-08    .15201E-04
  16  norm          .19958        51.464       -.58226E-06** at limit **
  17  Prefactor     .12546E-07    3.9436        .71302E-07** at limit **
  18  Normalizat    .72142        .14456        .36362E-05    .25966E-05
  19  Prefactor     1.3454        .13627       -.16275E-05    .12821E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 8.32667e-10
  Prefactor  = 17.9672
  Prefactor  = 3.05311e-09
  Prefactor  = 2.65898e-08
  Prefactor  = 2.62345
  Prefactor  = 0
  Prefactor  = 0.796082
  Prefactor  = 25.3608
  Prefactor  = 1.79301e-08
  Prefactor  = 17.4334
  Prefactor  = 5.55112e-11
  Prefactor  = 4.50103
  norm       = 0
  Prefactor  = 2.33147e-09
  Prefactor  = 3.60195
  norm       = 0.199579
  Prefactor  = 1.25455e-08
  Normalizat = 0.721424
  Prefactor  = 1.34541
 **********
 **   18 **HESSE 
 **********

 FCN=   14346.35     FROM HESSE     STATUS=OK           314 CALLS     1473 TOTAL
                     EDM=   .40E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .83267E-09    26.332        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     17.967        17.519        .23491E-03   -1.5623    
   3  Prefactor     .30531E-08    20.128        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .26590E-07    4.5982        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     2.6235        4.6647        .62485E-03   -1.5676    
   6  Prefactor      .0000        .80487        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .79608        .79484        .53232E-03   -1.5690    
   8  Prefactor     25.361        5.9749        .19838E-03   -1.5607    
   9  Prefactor     .17930E-07    4.7038        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     17.433        8.1824        .23959E-03   -1.5624    
  11  Prefactor     .55511E-10    2.3255        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     4.5010        9.5116        .47417E-03   -1.5666    
  13  norm           .0000        .28187        .22558E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .23315E-08    4.0834        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     3.6019        3.4910        .53094E-03   -1.5670    
  16  norm          .19958        3.1470        .96201E-02   -1.5699    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .12546E-07    4.9310        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Normalizat    .72142        .12254        .67283E-01   -1.0305    
  19  Prefactor     1.3454        .11446        .50151E-01   -.81967    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.96288e-08
Minuit parameter uncertainties:
  1  0.000299277
  2  17.5193
  3  0.000494667
  4  0.000699447
  5  4.66466
  6  1.86283e-06
  7  0.794837
  8  5.97488
  9  0.00058089
  10  8.18242
  11  1.81391e-05
  12  9.51167
  13  1.96679e-07
  14  0.000194964
  15  3.49099
  16  1.58503
  17  0.000497055
  18  0.122588
  19  0.11448
Done.

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

Extracting fit parameters...

4FGL J1049.8+1429
   Spectrum: PowerLaw
221    Prefactor:  2.536e+01  5.975e+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.345e+00  1.145e-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.214e-01  1.226e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 47.01
Ra Dec: 162.467 14.483
Photon Index (Fixed Index): 2.59 +/- 0.00
Photon Flux (Fixed Index): 1.51e-07 +/- 3.55e-08
Energy Flux (Fixed Index): 3.99e-05 +/- 9.39e-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) = 14345.7200989
delta logL = 0.626449047415

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 14345.6924252
delta logL = 0.654122791522

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    28.117       1.0000          .0000       .10000E+07
     2 'Index     '    2.3235       1.0000          .0000       10.000    
     3 'Normalizat'    .75123       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.3258       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=   14345.69     FROM MIGRAD    STATUS=CONVERGED     52 CALLS      223 TOTAL
                     EDM=   .88E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     28.117        14.781        .18862E-03   -.55837E-03
   2  Index         2.3236        .44654        .13714        .77678E-04
   3  Normalizat    .75121        .11966        .66079E-01    .50007E-04
   4  Prefactor     1.3258        .11595        .50465E-01   -.75908E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 28.1174
  Index      = 2.32358
  Normalizat = 0.751215
  Prefactor  = 1.32582
 **********
 **   18 **HESSE 
 **********

 FCN=   14345.69     FROM HESSE     STATUS=OK            31 CALLS      254 TOTAL
                     EDM=   .31E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     28.117        7.0141        .75448E-05   -1.5602    
   2  Index         2.3236        .23071        .55379E-02   -.56484    
   3  Normalizat    .75121        .14054        .29236E-03   -1.0190    
   4  Prefactor     1.3258        .13619        .22310E-03   -.82542    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.14189e-10
Minuit parameter uncertainties:
  1  7.01409
  2  0.230828
  3  0.140604
  4  0.136228
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/261195': 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) = 14345.6924251
delta logL = 0.654122813132

Extracting fit parameters...

4FGL J1049.8+1429
   Spectrum: PowerLaw
221    Prefactor:  2.812e+01  7.014e+00  0.000e+00  1.000e+06 ( 1.000e-12)
222        Index:  2.324e+00  2.308e-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.326e+00  1.362e-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.512e-01  1.406e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 48.11
Ra Dec: 162.467 14.483
Photon Index (Free Index): 2.32 +/- 0.23
Photon Flux (Free Index): 1.26e-07 +/- 3.86e-08
Energy Flux (Free Index): 4.58e-05 +/- 1.35e-05

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/261195/cmap_HighResolution_696816001_697420801_4FGL_J1049.8+1429_weekly_bin757.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='1.51e-07', energy_flux2='4.58e-05', photon_flux_error='3.55e-08', dlogl='6.54e-01', energy_flux='3.99e-05', photon_flux2='1.26e-07', job_status='DONE', time_completed='2023-02-07 01:15:32.963991', photon_index_error2='0.23', photon_index2='2.32', ts='47.01', fit_tolerance='1e-08', GAL='1.35', photon_index_error='0.00', energy_flux_error2='1.35e-05', EG='0.72', time_epoch_completed='1675761332.96', return_code='0', job_id='261195', GAL2='1.33', EG2='0.75', return_code2='0', energy_flux_error='9.39e-06', photon_flux_error2='3.86e-08', ts2='48.11', photon_index='2.59' WHERE bin_id='757' AND source_name='4FGL J1049.8+1429' AND cadence='weekly';

Database successfully updated.


Analysis Complete.


Tue Feb  7 01:15:32 PST 2023


------------------------------------------------------------
Sender: LSF System <lsf@bullet0050>
Subject: Job 261195: <4FGL_J1049.8+1429_weekly_bin757> in cluster <slac> Done

Job <4FGL_J1049.8+1429_weekly_bin757> was submitted from host <rhel6-64p> by user <kocevski> in cluster <slac> at Tue Feb  7 01:00:25 2023
Job was executed on host(s) <bullet0050>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Feb  7 01:00:38 2023
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Tue Feb  7 01:00:38 2023
Terminated at Tue Feb  7 01:15:33 2023
Results reported at Tue Feb  7 01:15:33 2023

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1049.8+1429_weekly_bin757 162.467 14.4835 696816001 697420801 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 :                                   749.06 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             315.03 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   895 sec.
    Turnaround time :                            908 sec.

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

