aklog: Couldn't determine realm of user:aklog: unknown RPC error (-1765328189)  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 8 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 make4FGLxml version 01r04.
The default diffuse model files and names are for pass 8 and 4FGL and assume you have v11r5p3 of the Fermi Science Tools or higher.

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


Performing analysis on: 4FGL_J1049.8+1429_weekly_bin530
RA = 162.467, Dec = 14.4835
tmin = 559526401, tmax = 560131201
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='569376', job_status='RUN', time_executed='2021-07-17 10:13:56.904470', time_epoch_executed='1626542036.9' WHERE source_name='4FGL J1049.8+1429' and cadence='weekly' and bin_id='530'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/569376

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

Retrieving the FT1 file...

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

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

Retrieving 108 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/569376/ft1_4FGL_J1049.8+1429_weekly_bin530.fits


Retrieving the FT1 file...

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

Retrieving 108 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/569376/ft2_4FGL_J1049.8+1429_weekly_bin530.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/569376/ft1_4FGL_J1049.8+1429_weekly_bin530.fits outfile=/scratch/kocevski/569376/ft1_filteredMKT_4FGL_J1049.8+1429_weekly_bin530.fits ra=162.467 dec=14.4835 rad=12.0 tmin=559526401.0 tmax=560131201.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 6.32
user 6.01
sys 0.27

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/569376/ft1_filtered_4FGL_J1049.8+1429_weekly_bin530.fits" evtable="EVENTS" scfile=/scratch/kocevski/569376/ft2_4FGL_J1049.8+1429_weekly_bin530.fits sctable="SC_DATA" outfile=/scratch/kocevski/569376/ltcube_559526401_560131201_4FGL_J1049.8+1429_weekly_bin530.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/569376/ft2_4FGL_J1049.8+1429_weekly_bin530.fits
.....................!
real 25.87
user 25.47
sys 0.31

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/569376/ft1_filtered_4FGL_J1049.8+1429_weekly_bin530.fits evtable="EVENTS" scfile=/scratch/kocevski/569376/ft2_4FGL_J1049.8+1429_weekly_bin530.fits sctable="SC_DATA" expcube=/scratch/kocevski/569376/ltcube_559526401_560131201_4FGL_J1049.8+1429_weekly_bin530.fits outfile=/scratch/kocevski/569376/expmap_559526401_560131201_4FGL_J1049.8+1429_weekly_bin530.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/569376/ltcube_559526401_560131201_4FGL_J1049.8+1429_weekly_bin530.fits
.....................!
real 159.29
user 153.95
sys 4.62

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/569376/ft1_filtered_4FGL_J1049.8+1429_weekly_bin530.fits scfile=/scratch/kocevski/569376/ft2_4FGL_J1049.8+1429_weekly_bin530.fits outfile=/scratch/kocevski/569376/cmap_559526401_560131201_4FGL_J1049.8+1429_weekly_bin530.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.51
user 0.34
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/569376/ft1_filtered_4FGL_J1049.8+1429_weekly_bin530.fits scfile=/scratch/kocevski/569376/ft2_4FGL_J1049.8+1429_weekly_bin530.fits outfile=/scratch/kocevski/569376/cmap_HighResolution_559526401_560131201_4FGL_J1049.8+1429_weekly_bin530.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.51
user 0.36
sys 0.14

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

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/569376/ft1_filtered_4FGL_J1049.8+1429_weekly_bin530.fits', '/scratch/kocevski/569376/ft2_4FGL_J1049.8+1429_weekly_bin530.fits', expMap='/scratch/kocevski/569376/expmap_559526401_560131201_4FGL_J1049.8+1429_weekly_bin530.fits', expCube='/scratch/kocevski/569376/ltcube_559526401_560131201_4FGL_J1049.8+1429_weekly_bin530.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/569376/Model_4FGL_J1049.8+1429_weekly_bin530.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  1.000e-04  1.000e+04 ( 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/569376/ft1_filtered_4FGL_J1049.8+1429_weekly_bin530.fits
Spacecraft file(s): /scratch/kocevski/569376/ft2_4FGL_J1049.8+1429_weekly_bin530.fits
Exposure map: /scratch/kocevski/569376/expmap_559526401_560131201_4FGL_J1049.8+1429_weekly_bin530.fits
Exposure cube: /scratch/kocevski/569376/ltcube_559526401_560131201_4FGL_J1049.8+1429_weekly_bin530.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/569376/Model_4FGL_J1049.8+1429_weekly_bin530.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) = 7492.4203456

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    18.698       1.0000         .10000E-03   10000.    
     2 'Prefactor '    46.220       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .12276E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10077E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .11850       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .30161E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    1.2683       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    4.7175       1.0000         .10000E-03   10000.    
    10 'Prefactor '    1.2096       1.0000         .10000E-03   10000.    
    11 'Prefactor '    8.5813       1.0000         .10000E-03   10000.    
    12 'Prefactor '    5.0686       1.0000         .10000E-03   10000.    
    13 'norm      '    .10007E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10012E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    4.5408       1.0000         .10000E-03   10000.    
    17 'Prefactor '    5.6824       1.0000         .10000E-03   10000.    
    18 'Prefactor '    19.865       1.0000         .10000E-03   10000.    
    19 'Normalizat'    1.1878       1.0000         .10000E-01   10.000    
    20 'Prefactor '    .81758       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5280E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   7492.409     FROM MIGRAD    STATUS=CONVERGED    451 CALLS     2098 TOTAL
                     EDM=   .11E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.6%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     18.668        103.66       -.49971E-04   -.13712E-05
   2  Prefactor     46.218        31.329       -.62864E-06   -.10510E-03
   3  Prefactor     .10001E-03    200.66       -.21549E-04** at limit **
   4  Prefactor     .10000E-03    26.725       -.47285E-06** at limit **
   5  Prefactor     .18785        2.9920        .17239E-05   -.68521E-03
   6  Prefactor     .10000E-03    2.5308        .48039E-06** at limit **
   7  Prefactor     1.2655        1.6365        .40843E-06   -.87216E-03
   8  Prefactor     .10000E-03    1.8947        .73532E-07** at limit **
   9  Prefactor     4.7135        14.879        .19805E-05   -.48928E-04
  10  Prefactor     1.2102        1.6933        .18113E-06   -.16730E-02
  11  Prefactor     8.5785        8.4087       -.38818E-05   -.45019E-03
  12  Prefactor     5.0734        14.136        .11327E-04   -.75920E-04
  13  norm          .10000E-03    .51107       -.28086E-06** at limit **
  14  Prefactor     .10000E-03    70.529        .20315E-04** at limit **
  15  Prefactor     .10000E-03    1.3438       -.26740E-07** at limit **
  16  norm          4.5409        15.609        .16391E-04   -.25260E-04
  17  Prefactor     5.6875        9.0237        .79192E-05   -.80300E-04
  18  Prefactor     19.869        53.628        .74667E-05   -.85278E-04
  19  Normalizat    1.1876        .17146       -.50597E-05   -.49034E-03
  20  Prefactor     .81740        .15279        .66697E-07   -.83038E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 18.6685
  Prefactor  = 46.2182
  Prefactor  = 0.000100005
  Prefactor  = 0.0001
  Prefactor  = 0.187849
  Prefactor  = 0.000100001
  Prefactor  = 1.26553
  Prefactor  = 0.0001
  Prefactor  = 4.71355
  Prefactor  = 1.2102
  Prefactor  = 8.57853
  Prefactor  = 5.07341
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 4.5409
  Prefactor  = 5.68745
  Prefactor  = 19.8693
  Normalizat = 1.18761
  Prefactor  = 0.8174
 **********
 **   18 **HESSE 
 **********

 FCN=   7492.409     FROM HESSE     STATUS=OK           295 CALLS     2393 TOTAL
                     EDM=   .20E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     18.668        103.20        .92624E-04   -1.4844    
   2  Prefactor     46.218        31.350        .58976E-04   -1.4347    
   3  Prefactor     .10001E-03    200.24        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    26.735        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .18785        35.685        .26396E-02   -1.5621    
   6  Prefactor     .10000E-03    7.5321        .26604E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     1.2655        1.5934        .11382E-03   -1.5483    
   8  Prefactor     .10000E-03    1.8990        .11634E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     4.7135        14.778        .18527E-03   -1.5274    
  10  Prefactor     1.2102        16.128        .20576E-02   -1.5488    
  11  Prefactor     8.5785        8.6938        .13684E-03   -1.5122    
  12  Prefactor     5.0734        15.205        .17860E-03   -1.5257    
  13  norm          .10000E-03    .80643        .11892E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    71.515        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    1.3464        .97973E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          4.5409        15.432        .18892E-03   -1.5282    
  17  Prefactor     5.6875        9.0452        .16851E-03   -1.5231    
  18  Prefactor     19.869        53.279        .89864E-04   -1.4816    
  19  Normalizat    1.1876        .20658        .23505E-03   -.86987    
  20  Prefactor     .81740        .18057        .26744E-03   -.99090    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.03666e-08
Minuit parameter uncertainties:
  1  88.0204
  2  31.3607
  3  0.00202582
  4  0.000190324
  5  5.17994
  6  0.000124798
  7  1.59348
  8  4.23274e-06
  9  14.7892
  10  8.83836
  11  8.69505
  12  15.2167
  13  2.17623e-05
  14  8.94647e-05
  15  1.08008e-05
  16  15.4457
  17  9.04741
  18  53.4071
  19  0.206725
  20  0.180704
Done.

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

Extracting fit parameters...

4FGL J1049.8+1429
   Spectrum: PowerLaw
221    Prefactor:  1.000e-04  4.233e-06  1.000e-04  1.000e+04 ( 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:  8.174e-01  1.807e-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.188e+00  2.067e-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: 5.72e-08 ph cm-2 s-1
Energy Flux Upper Limit: 4.47e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/569376/likelihoodResults_559526401_560131201_4FGL_J1049.8+1429_weekly_bin530.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) = 7492.41196214
delta logL = -0.00248984230439

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 7492.40947233
delta logL = -3.19878381561e-08

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.5910       1.0000          .0000       10.000    
     3 'Normalizat'    1.1876       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .81744       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5280E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   7492.409     FROM MIGRAD    STATUS=CONVERGED     87 CALLS      237 TOTAL
                     EDM=   .31E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10003E-03    144.54        .11635E-02** at limit **
   2  Index         2.5745        7.1115        .50000        .49169E-05
   3  Normalizat    1.1876        .38453E-01    .23506E-03   -.35791E-04
   4  Prefactor     .81740        .37209E-01    .26744E-03   -.29544E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100032
  Index      = 2.57447
  Normalizat = 1.1876
  Prefactor  = 0.817405
 **********
 **   18 **HESSE 
 **********

 FCN=   7492.409     FROM HESSE     STATUS=NOT POSDEF    29 CALLS      266 TOTAL
                     EDM=   .15E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10003E-03    439.94        .23269E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.5745        8.6387        .50000       -.50648    
   3  Normalizat    1.1876        .13181        .94022E-05   -.86987    
   4  Prefactor     .81740        .12744        .10697E-04   -.99090    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 1.50697e-08
Minuit parameter uncertainties:
  1  0.00761187
  2  1775.52
  3  0.13185
  4  0.127489
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/569376': 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) = 7492.40947228
delta logL = 1.62399373949e-08

Extracting fit parameters...

4FGL J1049.8+1429
   Spectrum: PowerLaw
221    Prefactor:  1.000e-04  7.612e-03  1.000e-04  1.000e+04 ( 1.000e-12)
222        Index:  2.574e+00  1.776e+03  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:  8.174e-01  1.275e-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.188e+00  1.319e-01  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 -2.500e-04 [aplpy.core]
INFO: Auto-setting vmax to  2.775e-03 [aplpy.core]
Saving /scratch/kocevski/569376/cmap_HighResolution_559526401_560131201_4FGL_J1049.8+1429_weekly_bin530.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='4.47e-03', job_status='DONE', photon_flux_upper_limit='5.72e-08', time_completed='2021-07-17 10:23:43.862868', job_id='569376', GAL2='0.82', fit_tolerance='1e-08', EG2='1.19', EG='1.19', time_epoch_completed='1626542623.86', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.82', dlogl='1.62e-08', ts2='-0.00', photon_index_error='0.00', photon_index='2.59' WHERE bin_id='530' AND source_name='4FGL J1049.8+1429' AND cadence='weekly';

Database successfully updated.


Analysis Complete.


Sat Jul 17 10:23:43 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0023>
Subject: Job 569376: <4FGL_J1049.8+1429_weekly_bin530> in cluster <slac> Done

Job <4FGL_J1049.8+1429_weekly_bin530> was submitted from host <rhel6-64a> by user <kocevski> in cluster <slac> at Sat Jul 17 10:10:52 2021
Job was executed on host(s) <bullet0023>, in queue <medium>, as user <kocevski> in cluster <slac> at Sat Jul 17 10:13:39 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Sat Jul 17 10:13:39 2021
Terminated at Sat Jul 17 10:23:44 2021
Results reported at Sat Jul 17 10:23:44 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1049.8+1429_weekly_bin530 162.467 14.4835 559526401 560131201 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 :                                   564.00 sec.
    Max Memory :                                 1095 MB
    Average Memory :                             311.58 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   605 sec.
    Turnaround time :                            772 sec.

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

